/* Monk Whisper · 页面样式（基于 /ui/monk-ui.css） */
html { scroll-padding-top: 84px; scroll-behavior: smooth; }
.muted { color: var(--mk-muted); } .small { font-size: 13px; }
.t-moon { display: none; }
:root[data-theme="dark"] .t-sun { display: block; } :root[data-theme="dark"] .t-moon { display: none; }
:root[data-theme="light"] .t-sun { display: none; } :root[data-theme="light"] .t-moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .t-sun { display: none; } :root:not([data-theme]) .t-moon { display: block; } }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--mk-accent); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.sec { padding-block: 80px 0; }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-width: 720px; }
.sec-head.row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- hero ---------------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: 34px 30px; }
.hero .mk-lede { max-width: 640px; }

/* ---------------- studio ---------------- */
.studio { padding: 14px; border-radius: var(--mk-r-xl); max-width: 980px; margin: 0 auto; }
.pick { display: flex; flex-direction: column; gap: 12px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 26px 18px; border-radius: calc(var(--mk-r-xl) - 6px); border: 2px dashed var(--mk-border-strong); background: var(--mk-surface-2); cursor: pointer; text-align: center; transition: border-color .25s, background .25s, transform .3s var(--mk-ease); }
.drop:hover, .drop:focus-within { border-color: var(--mk-accent-line); background: color-mix(in srgb, var(--mk-accent) 5%, var(--mk-surface-2)); }
.drop.over { border-color: var(--mk-accent); background: color-mix(in srgb, var(--mk-accent) 10%, var(--mk-surface-2)); transform: scale(1.01); }
.drop-t { font-size: 18px; font-weight: 800; color: var(--mk-text); }
.drop-t .lnk { color: var(--mk-accent-ink); margin-left: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--mk-accent-line); }
.drop-s { font-size: 13px; color: var(--mk-muted); }
.wave-art { display: flex; align-items: center; gap: 5px; height: 64px; margin-bottom: 6px; }
.wave-art i { width: 6px; border-radius: 6px; background: linear-gradient(180deg, var(--mk-accent-2), var(--mk-accent)); height: 20%; animation: eq 1.4s var(--mk-ease) infinite; opacity: .9; }
.wave-art i:nth-child(1) { animation-delay: -.1s } .wave-art i:nth-child(2) { animation-delay: -.5s } .wave-art i:nth-child(3) { animation-delay: -.9s }
.wave-art i:nth-child(4) { animation-delay: -.3s } .wave-art i:nth-child(5) { animation-delay: -1.1s } .wave-art i:nth-child(6) { animation-delay: -.7s }
.wave-art i:nth-child(7) { animation-delay: -.2s } .wave-art i:nth-child(8) { animation-delay: -1.3s } .wave-art i:nth-child(9) { animation-delay: -.6s }
.wave-art i:nth-child(10) { animation-delay: -1s } .wave-art i:nth-child(11) { animation-delay: -.4s } .wave-art i:nth-child(12) { animation-delay: -.8s } .wave-art i:nth-child(13) { animation-delay: -1.2s }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.drop:hover .wave-art i { animation-duration: .8s; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mk-subtle); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--mk-border); }
.rec-btn { align-self: center; min-width: 220px; }
.rec-btn svg { color: #ef4444; }

.drop-veil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--mk-bg) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drop-veil.on { opacity: 1; }
.drop-veil > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 56px; border-radius: 28px; border: 2px dashed var(--mk-accent); background: var(--mk-surface); box-shadow: var(--mk-shadow-glow); }
.drop-veil svg { width: 40px; height: 40px; color: var(--mk-accent-ink); }
.drop-veil b { font-size: 20px; }

.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 6px 6px 0; }
.opt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--mk-text-2); }
.opt small { display: block; font-size: 11px; font-weight: 500; color: var(--mk-subtle); }
.opt.sw { cursor: pointer; }
.opt-l { color: var(--mk-muted); font-weight: 600; }
.opt .mk-seg button { height: 32px; padding: 0 12px; font-size: 12px; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 34px 0 12px; border-radius: var(--mk-r-md); border: 1px solid var(--mk-border); background: var(--mk-surface); color: var(--mk-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sel select:focus { outline: 0; border-color: var(--mk-accent-line); box-shadow: 0 0 0 4px var(--mk-accent-soft); }
.sel svg { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--mk-muted); pointer-events: none; }
.more-t { margin-left: auto; background: none; border: 0; color: var(--mk-muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.more-t svg { width: 16px; height: 16px; transition: transform .35s var(--mk-ease); }
.more-t[aria-expanded="true"] svg { transform: rotate(180deg); }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--mk-ease); }
.more.open { grid-template-rows: 1fr; }
.more > div { overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; padding: 0 6px; }
.more.open > div { padding: 12px 6px 4px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 340px; font-size: 13px; font-weight: 700; color: var(--mk-text-2); }
.field small { font-weight: 500; color: var(--mk-subtle); margin-left: 8px; }

/* ---------------- recording ---------------- */
.recording { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 10px 26px; animation: rise .45s var(--mk-ease); }
.rec-orb { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.rec-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rec-time { position: relative; font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.rec-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------------- work ---------------- */
.work { display: flex; flex-direction: column; gap: 12px; padding: 6px; animation: rise .45s var(--mk-ease); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-file { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.w-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--mk-accent), var(--mk-accent-2)); color: #fff; box-shadow: var(--mk-shadow-glow); }
.w-ico svg { width: 22px; height: 22px; }
.w-meta { min-width: 0; display: flex; flex-direction: column; }
.w-meta b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-meta span { font-size: 12px; color: var(--mk-muted); }

.prog { padding: 14px; border-radius: var(--mk-r-lg); background: var(--mk-surface-2); border: 1px solid var(--mk-border); display: flex; flex-direction: column; gap: 10px; }
.prog-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--mk-text-2); }
.prog-top .mk-num { color: var(--mk-accent-ink); }
.prog-bar { height: 8px; border-radius: 99px; background: var(--mk-surface-3); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mk-accent), var(--mk-accent-2)); transition: width .5s var(--mk-ease); position: relative; overflow: hidden; }
.prog-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: shine 1.4s linear infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.prog.done .prog-bar i::after { display: none; }
.chunks { display: flex; gap: 3px; height: 10px; }
.chunks i { flex: 1; border-radius: 3px; background: var(--mk-surface-3); transition: background .35s; }
.chunks i.busy { background: color-mix(in srgb, var(--mk-accent) 45%, var(--mk-surface-3)); animation: blink .9s ease-in-out infinite alternate; }
.chunks i.ok { background: var(--mk-ok); }
.chunks i.bad { background: var(--mk-warn); }
@keyframes blink { to { opacity: .45; } }

.player { border-radius: var(--mk-r-lg); overflow: hidden; background: var(--mk-surface-2); border: 1px solid var(--mk-border); position: sticky; top: 72px; z-index: 5; }
.player audio { display: block; width: 100%; height: 48px; }
.player video { display: block; width: 100%; max-height: 300px; background: #000; }

.out-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.out-bar .mk-seg button { height: 32px; padding: 0 12px; font-size: 12px; }
.out-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.follow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--mk-muted); margin-right: 6px; cursor: pointer; }
.mk-btn.ok { color: var(--mk-ok); border-color: var(--mk-ok); }
.mk-btn--primary.ok { color: #fff; border-color: transparent; }
.edit-tip { margin: -2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mk-subtle); }
.edit-tip svg { width: 14px; height: 14px; }

.segs { display: flex; flex-direction: column; gap: 2px; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: 0 -4px; scroll-behavior: smooth; }
.segs:empty { display: none; }
.seg { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: var(--mk-r-md); transition: background .25s; animation: rise .5s var(--mk-ease) both; }
.seg:hover { background: var(--mk-surface-2); }
.seg.now { background: var(--mk-accent-soft); }
.seg-t { border: 0; background: none; padding: 2px 6px; margin-left: -6px; border-radius: 6px; font-family: var(--mk-mono); font-size: 12px; color: var(--mk-muted); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.seg-t:hover { color: var(--mk-accent-ink); background: var(--mk-surface-3); }
.seg.now .seg-t { color: var(--mk-accent-ink); font-weight: 700; }
.seg-x { font-size: 15px; line-height: 1.7; color: var(--mk-text); outline: 0; border-radius: 6px; padding: 0 4px; margin: 0 -4px; }
.seg-x:focus { background: var(--mk-surface); box-shadow: 0 0 0 2px var(--mk-accent-line); }
.seg.pending .seg-x { color: var(--mk-subtle); }
.raw-out { margin: 0; max-height: 62vh; overflow: auto; padding: 14px; border-radius: var(--mk-r-lg); background: var(--mk-surface-2); border: 1px solid var(--mk-border); font-family: var(--mk-mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--mk-text-2); }
.w-err { margin: 0; padding: 12px 14px; border-radius: var(--mk-r-md); background: var(--mk-warn-soft); color: var(--mk-warn); font-size: 13px; font-weight: 600; }

/* ---------------- history ---------------- */
.hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hc { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--mk-r-lg); background: var(--mk-surface); border: 1px solid var(--mk-border); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .35s var(--mk-ease), border-color .25s, box-shadow .35s; }
.hc:hover { transform: translateY(-3px); border-color: var(--mk-border-strong); box-shadow: var(--mk-shadow-2); }
.hc-top { display: flex; align-items: center; gap: 8px; }
.hc-top b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-meta { font-size: 11px; color: var(--mk-subtle); }
.hc p { margin: 0; font-size: 13px; color: var(--mk-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hist-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--mk-muted); border: 1.5px dashed var(--mk-border-strong); border-radius: var(--mk-r-lg); font-size: 14px; }

/* ---------------- faq ---------------- */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.qa { border-radius: var(--mk-r-lg); background: var(--mk-surface); border: 1px solid var(--mk-border); overflow: hidden; transition: border-color .25s; }
.qa.open { border-color: var(--mk-accent-line); }
.qa-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; color: inherit; text-align: left; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.qa-q svg { width: 18px; height: 18px; margin-left: auto; color: var(--mk-muted); transition: transform .4s var(--mk-ease); flex: none; }
.qa.open .qa-q svg { transform: rotate(180deg); color: var(--mk-accent-ink); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--mk-ease); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { margin: 0; padding: 0 18px 18px; color: var(--mk-text-2); font-size: 14px; }

/* ---------------- footer ---------------- */
.foot { display: flex; flex-direction: column; gap: 22px; }
.ai-box { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; padding: 18px; border-radius: var(--mk-r-lg); background: var(--mk-surface); border: 1px solid var(--mk-border); }
.ai-box b { color: var(--mk-text); font-size: 14px; }
.ai-box p { margin: 2px 0 0; }
.ai-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--mk-r-sm); border: 1px solid var(--mk-border); background: var(--mk-surface-2); font-size: 12px; min-width: 0; }
.ai-row span { width: 58px; font-weight: 700; color: var(--mk-text-2); flex: none; }
.ai-row code { color: var(--mk-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-row svg { width: 14px; height: 14px; margin-left: auto; flex: none; }
.ai-row:hover { border-color: var(--mk-accent-line); }
.foot-links .spacer { flex: 1; }
.disclaimer { margin: 0; font-size: 12px; color: var(--mk-subtle); max-width: 70ch; }

/* ---------------- responsive ---------------- */
@media (max-width: 700px) {
  .hero { padding-top: 20px; }
  .drop { min-height: 190px; }
  .more-t { margin-left: 0; }
  .opt { width: 100%; justify-content: space-between; }
  .opt.sw { justify-content: flex-start; }
  .seg { grid-template-columns: 1fr; gap: 0; }
  .player { top: 66px; }
  .out-acts { width: 100%; }
  .out-acts .mk-btn { flex: 1; }
  .follow { width: 100%; }
  .w-acts, .w-acts .mk-btn { width: 100%; }
}
.mk-brand > span { white-space: nowrap; }
.player.is-video { position: relative; top: auto; }
@media (max-width: 700px) { .player video { max-height: 220px; } }
@media (max-width: 380px) { .mk-brand > span:not(.mk-brand-icon) { font-size: 16px; } }
@media (max-width: 420px) { .hdr-hist { display: none; } }
