@font-face { font-family: Manrope; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: NK; src: url(fonts/kannada.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f6f1e5; --paper-2: #efe8d8; --ink: #1b170f; --ink-2: #423a2b; --muted: #6c6350; --faint: #83795f;
  --gold: #8a6a14; --gold-soft: #e6c374; --hair: rgba(27, 23, 15, .12); --hair-2: rgba(27, 23, 15, .24);
  --ok: #65701c; --bad: #a1521f;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Manrope, NK, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; }
.kn { font-family: NK, Manrope, sans-serif; }
.num { font-variant-numeric: tabular-nums; }

/* top */
.top { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 24px 0; max-width: 640px; width: 100%; margin: 0 auto; }
.mark { font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.mark::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); margin-right: 8px; transform: translateY(-2px); }
.by { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.wrap { max-width: 640px; width: 100%; margin: 0 auto; padding: 48px 24px 32px; flex: 1; }
.view { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; font-weight: 600; }
.display { font-weight: 300; font-size: clamp(44px, 12vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.sub { color: var(--muted); margin: 20px 0 0; max-width: 460px; }
.sub.kn { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.sub.small { font-size: 15px; margin-top: 8px; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.label.gap { margin: 40px 0 12px; }
.fine { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.guide { margin-top: 16px; }
.rule { height: 1px; background: var(--hair); margin: 40px 0 20px; }
.error { color: var(--bad); font-size: 14px; margin: 16px 0 0; }

/* name field: underline only */
.line-field { display: block; margin-top: 48px; }
.line-field input { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--hair-2); background: transparent; padding: 12px 0; font: 400 22px/1.3 Manrope, NK, sans-serif; color: var(--ink); border-radius: 0; }
.line-field input::placeholder { color: #b4aa92; }
.line-field input:focus { outline: none; border-bottom-color: var(--ink); }

/* record / upload tiles */
.choose { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tile { display: grid; gap: 4px; justify-items: start; padding: 24px 16px 24px 0; background: none; border: 0; cursor: pointer; text-align: left; transition: background .25s; }
.tile + .tile { border-left: 1px solid var(--hair); padding-left: 20px; }
.tile:hover .t { color: var(--gold); }
.tile .t { font-weight: 600; font-size: 17px; margin-top: 12px; transition: color .2s; }
.tile .s { font-size: 13px; color: var(--faint); }
.glyph { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--hair-2); display: grid; place-items: center; }
.rec-glyph::after { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--bad); }
.up-glyph::after { content: ""; width: 10px; height: 10px; border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: translateY(2px) rotate(45deg); }

.recording { text-align: center; padding: 32px 0 8px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.clock { font-weight: 200; font-size: 64px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
#scope { width: 100%; height: 60px; display: block; margin: 20px 0; }
.stop { width: 72px; height: 72px; border-radius: 999px; border: 1px solid var(--hair-2); background: none; display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.stop::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 1px solid var(--bad); opacity: .5; animation: breathe 1.6s ease-in-out infinite; }
.stop span { width: 22px; height: 22px; border-radius: 4px; background: var(--bad); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .15; } }

.picked { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.picked .player { flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair-2); cursor: pointer; font-size: 14px; }
.link:hover { color: var(--ink); }

/* primary button */
.primary { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 32px; padding: 20px 24px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; letter-spacing: .01em; cursor: pointer; transition: background .25s, transform .25s var(--ease); }
.primary:hover { background: #30240a; }
.primary:active { transform: scale(.99); }
.primary:disabled { background: var(--paper-2); color: var(--faint); cursor: not-allowed; }
.primary .arrow { font-weight: 400; transition: transform .25s var(--ease); }
.primary:hover .arrow { transform: translateX(4px); }
.primary:focus-visible, .tile:focus-visible, .speed button:focus-visible, .link:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* player */
.player { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.pl-btn { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hair-2); background: none; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.pl-btn:hover { border-color: var(--ink); }
.pl-btn::after { content: ""; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.pl-btn.on::after { border: 0; width: 10px; height: 13px; margin: 0; background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%); }
.pl-track { flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; }
.pl-track i { display: block; height: 1px; width: 100%; background: var(--hair-2); position: relative; }
.pl-track b { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); width: 0; }
.pl-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.row-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }

/* studio */
.ready { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.ready .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.ready #who { font-weight: 600; }
.engine { margin-left: auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.engine.off { color: var(--bad); }
#text { display: block; width: 100%; border: 0; background: transparent; resize: none; padding: 28px 0 12px; font: 400 24px/1.5 NK, Manrope, sans-serif; color: var(--ink); min-height: 200px; }
#text::placeholder { color: #b4aa92; }
#text:focus { outline: none; }
.controls { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hair); padding-top: 16px; }
.speed { display: flex; gap: 20px; }
.speed button { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--faint); cursor: pointer; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.speed button[aria-checked="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { font-size: 13px; color: var(--faint); }

.ledger-head { margin: 56px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 20px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; animation: rise .4s var(--ease) both; }
.ledger .n { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.ledger .tx { font-family: NK, Manrope, sans-serif; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ledger .st { font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ledger .st.work { color: var(--gold); }
.ledger .st.fail { color: var(--bad); }
.ledger .player { grid-column: 2; margin-top: 12px; }
.ledger .dl { grid-column: 2; display: flex; gap: 20px; margin-top: 8px; }
.ledger .dl a { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair-2); }
.ledger .empty { display: block; color: var(--faint); font-size: 14px; }
.bar { grid-column: 2; height: 1px; background: var(--hair); margin-top: 12px; overflow: hidden; position: relative; }
.bar::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--gold); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.foot { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 24px; }

/* studio (admin) */
.s-wrap { max-width: 980px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 20px 0 16px; border-bottom: 1px solid var(--hair); }
.stat:not(:nth-child(3n+1)) { padding-left: 16px; border-left: 1px solid var(--hair); }
.stat .v { font-weight: 300; font-size: 40px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 16px; color: var(--faint); margin-left: 2px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(6, 1fr); } .stat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .stat + .stat { padding-left: 16px; border-left: 1px solid var(--hair); } }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.section-h h2 { margin: 0; font-weight: 300; font-size: 32px; letter-spacing: -.02em; }
.voice-row { padding: 24px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 12px; }
.voice-row .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.voice-row h3 { margin: 0; font-weight: 600; font-size: 20px; }
.voice-row .meta { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.tag.pending { color: var(--gold); } .tag.approved { color: var(--ok); } .tag.rejected { color: var(--bad); }
.voice-row textarea { width: 100%; border: 0; border-bottom: 1px solid var(--hair-2); background: transparent; font: 400 15px/1.5 NK, Manrope, sans-serif; color: var(--ink-2); resize: vertical; padding: 8px 0; }
.voice-row textarea:focus { outline: none; border-bottom-color: var(--ink); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-s { padding: 12px 20px; border-radius: 12px; border: 1px solid var(--hair-2); background: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn-s.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-s.bad { color: var(--bad); border-color: rgba(161, 82, 31, .4); }
.btn-s:hover { border-color: var(--ink); }
table.jobs { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.jobs th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 8px 8px 0; border-bottom: 1px solid var(--hair); }
.jobs td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.jobs td.tx { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: NK, Manrope, sans-serif; color: var(--ink-2); }
.jobs .s-queued { color: var(--faint); } .jobs .s-working { color: var(--gold); font-weight: 600; } .jobs .s-done { color: var(--ok); } .jobs .s-failed { color: var(--bad); }
.scroll-x { overflow-x: auto; }
.worker-line { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.worker-line .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 8px; background: var(--bad); }
.worker-line .dot.on { background: var(--ok); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
