:root {
  --bg: #f6f5f2; --fg: #0b0f19; --mute: #57534e; --edge: #d6d3cc; --field: #efede8; --field-hover: #e9e7e1;
  --field-focus: #fff; --well: #e6e3dd; --track: #dedbd4; --acc: #0b0f19; --acc-fg: #fff; --acc-hover: #1c2230; --caret: #ffd21e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19; --fg: #f5f5f4; --mute: #a8a29e; --edge: #2a2f3a; --field: #141a25; --field-hover: #181e2a;
    --field-focus: #1d2331; --well: #10151f; --track: #2a303c; --acc: #ffd21e; --acc-fg: #0b0f19; --acc-hover: #f5c400; --caret: #0b0f19;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 "Instrument Sans", system-ui, sans-serif; }
main { max-width: 980px; margin: 0 auto; padding: 24px 16px 12px; }
a { color: inherit; }

.head h1 { font-size: 30px; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 4px; line-height: 1.15; }
.head .sub { margin: 0 0 14px; color: var(--mute); max-width: 70ch; }
.badges { display: flex; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 7px; border-radius: 8px;
  background: var(--field); text-decoration: none; color: var(--fg); line-height: 1; }
.badge:hover { background: var(--field-hover); }
.badge .t { display: flex; flex-direction: column; gap: 3px; }
.badge .t b { font-size: 15.5px; font-weight: 640; }
.badge .t span { font-size: 12px; color: var(--mute); }
.av { position: relative; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.75px #ffd21e; flex: none; }
.av img.p { position: absolute; inset: 2.5px; width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.av .hf { position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--field); display: grid; place-items: center; }
.av .hf img { width: 15px; height: 15px; }

.grid { display: grid; grid-template-columns: 5fr 6fr; gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { background: var(--field); border-radius: 8px; padding: 12px 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.label.plain { margin-bottom: 6px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

button, .filebtn { font: inherit; border: 0; border-radius: 8px; cursor: pointer; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--field-focus); color: var(--fg); font-weight: 600; font-size: 14px; }
.secondary:hover { background: var(--well); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #d9a900; }
.recording .dot { background: #c2410c; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.well { margin-top: 10px; border-radius: 6px; background: var(--well); color: var(--mute); text-align: center; padding: 22px 8px; font-size: 14px; font-weight: 500; }
.well.over { background: var(--field-focus); color: var(--fg); }
audio { width: 100%; margin-top: 10px; height: 36px; }

.primary { min-height: 46px; background: var(--acc); color: var(--acc-fg); font-weight: 640; font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.primary::after { content: ""; width: 7px; height: 7px; border: solid var(--caret); border-width: 2.2px 2.2px 0 0; transform: rotate(45deg); }
.primary:hover:not(:disabled) { background: var(--acc-hover); }
.primary:disabled { opacity: .45; cursor: default; }

.settings summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mute); list-style: none; display: flex; justify-content: space-between; }
.settings summary::after { content: ""; width: 7px; height: 7px; border: solid var(--mute); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); margin: 3px 4px 0 0; }
.settings[open] summary::after { transform: rotate(-135deg); margin-top: 7px; }
.settings[open] summary { margin-bottom: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; background: var(--track); margin: 0; cursor: pointer; flex: none; }
.check input:checked { background: var(--acc); box-shadow: inset 0 0 0 4px var(--acc), inset 0 0 0 9px var(--caret); }

.bar { height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.meta { color: var(--mute); font-size: 13px; margin: 0; }
.note { margin-top: 18px; }

.out textarea { width: 100%; border: 0; background: transparent; color: var(--fg); font: 15px/1.5 inherit; font-family: inherit; resize: vertical; outline: none; padding: 0; }
.out textarea::placeholder { color: var(--mute); }
.copy { background: transparent; color: var(--mute); font-size: 12.5px; font-weight: 600; padding: 2px 6px; }
.copy:hover { color: var(--fg); }

.examples { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--field); color: var(--fg); padding: 7px 11px; border-radius: 7px; font-size: 13.5px; }
.chip:hover { background: var(--field-hover); }

.foot { display: flex; justify-content: center; padding: 18px 0 6px; }
.made { height: 32px; padding: 0 11px 0 6px; gap: 7px; font-size: 12.5px; }
.made img { width: 20px; height: 20px; border-radius: 50%; }
.made .by { color: var(--mute); }
.made .me { font-weight: 600; }
.made i { width: 1px; height: 12px; background: var(--edge); margin: 0 3px; }
.made svg { width: 11px; height: 11px; color: var(--mute); }
