/* Meeting Recorder (Claude Code 2026-11-09). Uses the per-theme --vt-* colours of voice-lux-themes.css, so all 9 themes follow. */
body[data-route="recorder"] {
  background: radial-gradient(120% 60% at 50% -8%, var(--vt-halo) 0%, transparent 60%), var(--vt-stage) !important;
  background-attachment: fixed !important;
}
html:has(body[data-route="recorder"]) { background: var(--vt-base) !important; }
body[data-route="recorder"] .app, body[data-route="recorder"] main#main { background: transparent !important; }
html.tg body[data-route="recorder"] .app { padding-top: max(6px, env(safe-area-inset-top, 0px), var(--tg-top, 0px)) !important; }

#v-recorder { --rc-acc: var(--vt-acc); color: var(--vt-ink); font-family: "Manrope", "Kantumruy Pro", system-ui, sans-serif; }
#v-recorder .rc-wrap { max-width: 760px; margin: 0 auto; padding: 6px 2px 24px; display: grid; gap: 14px; }
#v-recorder .rc-head { display: flex; align-items: center; gap: 10px; min-height: 50px; }
#v-recorder .rc-title {
  flex: 1; margin: 0; font: 700 1.5rem/1.1 "Cormorant Garamond", Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--vt-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#v-recorder .rc-key {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none;
  color: var(--vt-acc); background: var(--vt-chip); border: 1px solid var(--vt-line);
}
#v-recorder .rc-key .ic { width: 18px; height: 18px; }
#v-recorder .rc-card {
  border-radius: 24px; padding: 16px; background: var(--vt-card); border: 1px solid var(--vt-line);
  box-shadow: var(--vt-card-shadow); display: grid; gap: 12px;
}
#v-recorder .rc-h { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 1.05rem/1.25 "Manrope", sans-serif; color: var(--vt-ink); }
#v-recorder .rc-h .ic, #v-recorder .rc-h3 .ic { width: 18px; height: 18px; color: var(--vt-acc); }
#v-recorder .rc-h3 { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 .95rem/1.25 "Manrope", sans-serif; color: var(--vt-ink); }

/* ---------------- live */
#v-recorder .rc-live { justify-items: center; text-align: center; padding: 20px 16px 22px; }
#v-recorder .rc-time { font: 600 3.1rem/1 "Manrope", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--vt-ink); }
#v-recorder .rc-state { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1.2 "Manrope", sans-serif; color: var(--vt-ink-2); min-height: 1.2em; }
#v-recorder .rc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vt-ph); }
#v-recorder .rc-live[data-state="rec"] .rc-dot { background: #F0566A; box-shadow: 0 0 0 4px rgba(240, 86, 106, .2); animation: rcBlink 1.2s ease-in-out infinite; }
#v-recorder .rc-live[data-state="rec"].is-voice .rc-dot { background: #34D3A0; box-shadow: 0 0 0 5px rgba(52, 211, 160, .25); animation: none; }
#v-recorder .rc-live[data-state="pause"] .rc-dot { background: var(--vt-acc); }
@keyframes rcBlink { 50% { opacity: .35; } }
#v-recorder .rc-wave { width: 100%; height: 120px; display: block; border-radius: 16px; background: var(--vt-field); border: 1px solid var(--vt-field-line); }
#v-recorder .rc-meter { width: 100%; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--vt-acc) 14%, transparent); overflow: hidden; }
#v-recorder .rc-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #34D3A0 0%, #E7C77E 70%, #F0566A 100%); transition: width .08s linear; }
#v-recorder .rc-hint { font: 500 .78rem/1.4 "Manrope", sans-serif; color: var(--vt-ink-2); max-width: 30em; }
#v-recorder .rc-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: 100%; max-width: 420px; margin-top: 4px; }
#v-recorder .rc-rec {
  width: 84px; height: 84px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--vt-chip); border: 2px solid color-mix(in srgb, var(--vt-acc) 70%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--vt-acc) 12%, transparent), 0 12px 26px rgba(0, 0, 0, calc(.1 + var(--vt-dark, 1) * .3));
}
#v-recorder .rc-rec-in { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8E9C 0%, #F0566A 45%, #B3152F 100%); transition: border-radius .2s ease, transform .2s ease; }
#v-recorder .rc-live[data-state="rec"] .rc-rec-in { transform: scale(.55); border-radius: 12px; animation: rcPulse 1.6s ease-in-out infinite; }
#v-recorder .rc-live[data-state="rec"] .rc-rec { cursor: default; }
@keyframes rcPulse { 50% { box-shadow: 0 0 0 10px rgba(240, 86, 106, .15); } }
#v-recorder .rc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 700 .86rem/1 "Manrope", sans-serif; letter-spacing: .02em;
}
#v-recorder .rc-btn .ic { width: 17px; height: 17px; }
#v-recorder .rc-btn:disabled { opacity: .4; cursor: default; }
#v-recorder .rc-ghost { color: var(--vt-ink); background: var(--vt-chip); border: 1px solid var(--vt-line); }
#v-recorder .rc-ghost .ic { color: var(--vt-acc); }
#v-recorder .rc-sq { width: 12px; height: 12px; border-radius: 3px; background: #F0566A; }
#v-recorder .rc-gold {
  color: #2A1C05; border: 1px solid #F6DC9A; background: linear-gradient(180deg, #FFF0C4 0%, #F1CF7E 34%, #D7A649 70%, #B5852F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 16px rgba(197, 150, 69, .32);
}
#v-recorder .rc-gold .ic { color: #3A2706; }

/* ---------------- forms */
#v-recorder .rc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
#v-recorder .rc-field { display: grid; gap: 6px; font: 600 .78rem/1.2 "Manrope", sans-serif; color: var(--vt-ink-2); }
#v-recorder .rc-field.rc-inline { flex: 1 1 200px; }
#v-recorder .rc-field input, #v-recorder .rc-field select, #v-recorder .rc-text {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 14px;
  font: 500 .95rem/1.5 "Manrope", "Kantumruy Pro", sans-serif; color: var(--vt-ink); background: var(--vt-field); border: 1px solid var(--vt-field-line);
}
#v-recorder .rc-field select { color-scheme: light dark; }
#v-recorder .rc-field select option { color: #1E2C4A; background: #fff; }
#v-recorder .rc-text { min-height: 140px; resize: vertical; line-height: 1.65; }
#v-recorder :is(.rc-field input, .rc-field select, .rc-text):focus { outline: none; border-color: var(--vt-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vt-acc) 20%, transparent); }
#v-recorder .rc-progress { margin: 0; font: 600 .8rem/1.4 "Manrope", sans-serif; color: var(--vt-acc-hi); }
#v-recorder .rc-note { margin: 0; font: 500 .74rem/1.4 "Manrope", sans-serif; color: var(--vt-ink-2); }
#v-recorder .rc-langrow .rc-btn { flex: 0 0 auto; }

/* ---------------- detail */
#v-recorder .rc-det-head { display: grid; gap: 2px; }
#v-recorder .rc-det-head .rc-h { font: 700 1.3rem/1.2 "Cormorant Garamond", Georgia, serif; }
#v-recorder .rc-h.is-edit { outline: 2px solid var(--vt-acc); outline-offset: 3px; border-radius: 6px; }
#v-recorder .rc-meta { font: 500 .76rem/1.3 "Manrope", sans-serif; color: var(--vt-ink-2); }
#v-recorder .rc-player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
#v-recorder .rc-play {
  width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center; color: #2A1C05;
  border: 1px solid #F6DC9A; background: linear-gradient(180deg, #FFF0C4 0%, #F1CF7E 34%, #D7A649 70%, #B5852F 100%);
}
#v-recorder .rc-play .ic { width: 20px; height: 20px; }
#v-recorder .rc-wave-static { height: 72px; cursor: pointer; }
#v-recorder .rc-ptime { font: 600 .74rem/1 "Manrope", sans-serif; font-variant-numeric: tabular-nums; color: var(--vt-ink-2); white-space: nowrap; }
#v-recorder .rc-tools { align-items: center; }
#v-recorder .rc-tool {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 700 .8rem/1 "Manrope", sans-serif; color: var(--vt-ink); background: var(--vt-chip); border: 1px solid var(--vt-line);
}
#v-recorder .rc-tool .ic { width: 16px; height: 16px; color: var(--vt-acc); }
#v-recorder .is-armed { border-color: #F0566A !important; color: #F0566A !important; }
#v-recorder .is-armed .ic { color: #F0566A !important; }
#v-recorder .rc-sub { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--vt-line) 70%, transparent); }
#v-recorder .rc-summary {
  padding: 14px 16px; border-radius: 16px; background: var(--vt-field); border: 1px solid var(--vt-field-line);
  font: 500 .92rem/1.6 "Manrope", "Kantumruy Pro", sans-serif; color: var(--vt-ink);
}
#v-recorder .rc-summary .rc-sum-t { margin: 0 0 6px; font: 700 1.2rem/1.25 "Cormorant Garamond", "Kantumruy Pro", Georgia, serif; color: var(--vt-acc-hi); }
#v-recorder .rc-summary p { margin: 0 0 8px; }
#v-recorder .rc-summary h4 { margin: 10px 0 4px; font: 800 .7rem/1 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--vt-acc); }
#v-recorder .rc-summary ul { margin: 0; padding-left: 1.15em; }
#v-recorder .rc-summary li { margin: 2px 0; }

/* ---------------- list */
#v-recorder .rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#v-recorder .rc-item {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; text-align: left;
  border-radius: 16px; cursor: pointer; color: var(--vt-ink); background: var(--vt-chip); border: 1px solid var(--vt-line);
}
#v-recorder .rc-item.is-on { border-color: var(--vt-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vt-acc) 16%, transparent); }
#v-recorder .rc-item-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #F0566A; background: rgba(240, 86, 106, .12); }
#v-recorder .rc-item-ic .ic { width: 16px; height: 16px; }
#v-recorder .rc-item-t { display: grid; gap: 2px; min-width: 0; }
#v-recorder .rc-item-t b { font: 700 .9rem/1.3 "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-recorder .rc-item-t small { font: 500 .72rem/1.2 "Manrope", sans-serif; color: var(--vt-ink-2); }
#v-recorder .rc-item > .ic { width: 16px; height: 16px; color: var(--vt-acc); }
#v-recorder .rc-empty { margin: 0; font: 500 .85rem/1.4 "Manrope", sans-serif; color: var(--vt-ink-2); }

@media (max-width: 440px) {
  #v-recorder .rc-card { padding: 14px 12px; }
  #v-recorder .rc-time { font-size: 2.7rem; }
  #v-recorder .rc-controls { gap: 12px; }
  #v-recorder .rc-btn { padding: 0 12px; }
  #v-recorder .rc-langrow .rc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { #v-recorder * { animation: none !important; transition: none !important; } }

/* ---------------- entry card in the Live Meeting lobby */
#v-meet .mt-rec-link { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
#v-meet .mt-rec-link[hidden] { display: none !important; }
#v-meet .mt-rec-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #FF8E9C 0%, #F0566A 45%, #B3152F 100%); }
#v-meet .mt-rec-ic .ic { width: 18px; height: 18px; }
#v-meet .mt-rec-t { display: grid; gap: 3px; }
#v-meet .mt-rec-t b { font: 700 1rem/1.25 "Manrope", sans-serif; }
#v-meet .mt-rec-t small { font: 500 .76rem/1.3 "Manrope", sans-serif; opacity: .8; }
#v-meet .mt-rec-link > .ic { width: 18px; height: 18px; opacity: .8; }
