/* CYNPRO Voice Portal. The look of the game's main menu and HUD: a stage-lit purple and navy room, bold rounded
   circus panels with dark outlines, gold and cyan accents, crisp white text. Dark only. */
:root {
  color-scheme: dark;
  --night: #0b0522; --bg: #120830; --deep: #1b0b45; --panel: rgba(22, 10, 60, .9); --card: #2a1868; --card2: #24145a; --well: #150a3c;
  --line: #3d2a86; --line2: #4c38a0; --ink: #ffffff; --ink2: #eef0ff; --soft: #c3bdf0; --dim: rgba(236, 232, 255, .62);
  --gold: #ffd23c; --gold2: #ffe27a; --cyan: #3fd0ff; --cyan2: #6fe0ff; --pink: #ff4fb4; --red: #ff5a4a; --green: #6fe6a0; --orange: #ffa24a;
  --round: "Arial Rounded MT Bold", "Arial Rounded MT", ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1); --pop: cubic-bezier(.3, 1.6, .5, 1);
  /* the cast, as coloured in the game's subtitles and HUD */
  --c-pomni: #5ad1ff; --c-jax: #b78cff; --c-ragatha: #ff7a66; --c-kinger: #f074dc; --c-zooble: #ffb347; --c-gangle: #ff9cc0; --c-caine: #ff4a5e; --c-gummigoo: #6fd86a; --c-other: #c3bdf0;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden;
  background: transparent; color: var(--ink); font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
/* the stage: a soft spotlight from above over deep purple and navy, a faint pink and cyan wash at the sides */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(56% 52% at 50% -8%, rgba(176, 140, 255, .55) 0, rgba(120, 80, 240, .24) 42%, transparent 74%),
    radial-gradient(42% 55% at 0% 75%, rgba(63, 120, 255, .22) 0, transparent 72%),
    radial-gradient(44% 55% at 100% 45%, rgba(255, 79, 180, .14) 0, transparent 72%),
    linear-gradient(180deg, #251162 0, #1a0b4a 38%, #110735 72%, #0b0524 100%); }
/* two faint light beams falling from the top, as in the menu's stage lights */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background:
    linear-gradient(104deg, transparent 36%, rgba(200, 180, 255, .08) 43%, transparent 51%),
    linear-gradient(76deg, transparent 49%, rgba(200, 180, 255, .07) 56%, transparent 64%); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(255, 210, 60, .85); color: var(--deep); }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 16px 36px; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px;
  background: linear-gradient(180deg, rgba(34, 16, 88, .9), rgba(24, 11, 66, .82)); border-bottom: 3px solid var(--deep);
  box-shadow: 0 1px 0 rgba(63, 208, 255, .18), 0 10px 30px rgba(5, 2, 20, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { display: block; width: auto; height: 52px; filter: drop-shadow(0 3px 0 rgba(10, 4, 30, .55)) drop-shadow(0 0 14px rgba(120, 90, 255, .25)); }
.brand-text { padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .16); min-width: 0; }
.brand-sub { font: 900 11px/1.2 var(--round); letter-spacing: 3.5px; text-transform: uppercase; color: var(--cyan2); }
.brand-name { font: 900 20px/1.15 var(--round); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 var(--deep); white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-me { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 6px 5px 12px; border-radius: 30px; background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(255, 255, 255, .1); font-weight: 600; font-size: 14px; }
.who-me #whoName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.who-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.who-role { padding: 1px 9px; border-radius: 20px; font: 900 10px/1.6 var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--deep); background: var(--gold); }
.who-me:not(:has(.who-role:not([hidden]))) { padding-right: 12px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 22px 16px 28px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.foot p { max-width: 760px; margin: 0 auto; text-wrap: balance; }
.foot .foot-small { margin-top: 4px; font-size: 11.5px; opacity: .75; }

/* ------------------------------------------------------------------ buttons: the menu's rounded pills */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 9px 20px; min-height: 42px;
  border-radius: 40px; border: 3px solid var(--deep); background: var(--gold); color: var(--deep);
  font: 900 14px/1.1 var(--round); letter-spacing: .6px; box-shadow: 0 4px 0 var(--deep); white-space: nowrap;
  transition: transform .16s var(--pop), box-shadow .16s ease, filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 0 var(--deep); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--deep); transition-duration: .05s; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 40px; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 12.5px; box-shadow: 0 3px 0 var(--deep); }
.btn.big { min-height: 52px; font-size: 17px; letter-spacing: 2px; text-transform: uppercase; }
.btn.green { background: var(--green); } .btn.red { background: var(--red); } .btn.blue { background: var(--cyan); } .btn.pink { background: var(--pink); }
.btn.ghost { background: rgba(43, 26, 110, .7); color: var(--ink2); border-color: var(--deep); box-shadow: 0 3px 0 var(--deep), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.btn.ghost:hover:not(:disabled) { background: #3a2490; filter: none; box-shadow: 0 5px 0 var(--deep), inset 0 0 0 1.5px rgba(63, 208, 255, .45); }
.btn.ghost.danger:hover:not(:disabled) { color: #ffb3aa; box-shadow: 0 5px 0 var(--deep), inset 0 0 0 1.5px rgba(255, 90, 74, .6); }
.btn.rec { background: var(--pink); color: var(--deep); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff2f4f; border: 2.5px solid var(--deep); flex: 0 0 auto; }
.btn.rec.on { background: var(--red); color: #fff; animation: rec-pulse 1.1s ease-in-out infinite; }
.btn.rec.on .rec-dot { border-radius: 3px; background: #fff; }
@keyframes rec-pulse { 50% { box-shadow: 0 4px 0 var(--deep), 0 0 0 7px rgba(255, 90, 74, .22); } }

/* ------------------------------------------------------------------ form fields */
input[type=text], input[type=password], input[type=search], select, textarea { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--well); color: var(--ink); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
input::placeholder, textarea::placeholder { color: rgba(195, 189, 240, .55); }
input:hover, select:hover, textarea:hover { border-color: var(--line2); }
input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25), 0 0 0 3px rgba(63, 208, 255, .25); }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; border-radius: 40px; font-weight: 600;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23ffd23c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
select option { background: var(--deep); color: var(--ink); }
input[type=search] { border-radius: 40px; padding-left: 42px;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='6.8' cy='6.8' r='5' fill='none' stroke='%236fe0ff' stroke-width='2.2'/%3E%3Cpath d='M10.6 10.6l3.6 3.6' stroke='%236fe0ff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 16px center; }
textarea { min-height: 70px; resize: vertical; line-height: 1.45; }
label, .cap-label { display: block; margin: 14px 0 6px; font: 900 11px/1.3 var(--round); letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); }
.cap-label { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.err { min-height: 1.4em; margin-top: 12px; color: #ff9a8f; font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------------ login: the logo is the hero */
.login-wrap { display: flex; flex-direction: column; align-items: center; padding-top: clamp(8px, 4vh, 48px); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.hero-logo { display: block; width: min(380px, 84vw); height: auto; animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 0 rgba(10, 4, 30, .55)) drop-shadow(0 0 40px rgba(140, 100, 255, .35)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.hero-title { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 900 15px/1 var(--round); letter-spacing: 5px; text-transform: uppercase; color: var(--ink); }
.hero-brand { color: var(--gold); text-shadow: 0 2px 0 var(--deep); }
.hero-sep { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ------------------------------------------------------------------ panels: the menu's panel with its cyan inner line */
.card, .stage { position: relative; background: var(--panel); border: 4px solid var(--deep); border-radius: 26px;
  box-shadow: 0 8px 0 rgba(8, 3, 26, .55), 0 24px 60px rgba(4, 1, 16, .45); }
.card::before, .stage::before { content: ""; position: absolute; inset: 4px; border: 3px solid var(--cyan); border-radius: 19px; pointer-events: none; opacity: .9; }
.card { padding: 24px 26px; }
.login { width: 100%; max-width: 440px; padding: 30px 32px 26px; animation: rise .5s var(--ease) both; }
.login h1 { margin: 0 0 6px; font: 900 24px/1.15 var(--round); letter-spacing: 4px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 var(--deep); }
.login p { color: var(--soft); }
.login .btn { width: 100%; margin-top: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.stage { padding: 30px 32px 32px; }
.stage.enter { animation: rise .35s var(--ease) both; }
.stage-head { margin-bottom: 20px; }
.stage-head h2 { margin: 0 0 4px; font: 900 32px/1.1 var(--round); letter-spacing: 6px; text-transform: uppercase; color: var(--gold); text-shadow: 0 3px 0 var(--deep); }
.stage-head p { color: var(--soft); font-size: 15.5px; }
/* panels inside the stage are the slot cards: no second cyan line */
.stage .card { background: var(--card2); border-width: 3px; border-radius: 20px; padding: 20px 22px; box-shadow: 0 5px 0 rgba(8, 3, 26, .6); }
.stage .card::before { display: none; }
.card + .card, .codebox + .card { margin-top: 16px; }
.stage > .card p + p { margin-top: 10px; }

/* ------------------------------------------------------------------ tabs: the menu's selected item, a gold pill with a red dot */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 6px; width: fit-content; max-width: 100%; border-radius: 40px;
  background: rgba(14, 6, 40, .7); border: 3px solid var(--deep); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; padding: 8px 18px; border-radius: 30px;
  font: 900 13.5px/1.2 var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--ink2);
  transition: background-color .18s ease, color .18s ease, transform .18s var(--pop), box-shadow .18s ease, padding .18s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, .08); }
.tab::before { content: ""; width: 0; height: 12px; border-radius: 50%; background: #ff5a4a; border: 0 solid var(--deep); transition: width .18s var(--pop), border-width .18s; margin-right: -8px; }
.tab.on { color: var(--deep); background: var(--gold); box-shadow: 0 4px 0 var(--deep); transform: rotate(-1deg); }
.tab.on::before { width: 12px; border-width: 2.5px; margin-right: 0; }
.tab:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 30px; }
.tab .n { min-width: 22px; padding: 1px 7px; border-radius: 20px; text-align: center; font-size: 11.5px; letter-spacing: 0; color: var(--deep); background: var(--cyan); }
.tab.on .n { background: var(--deep); color: var(--gold); }

/* ------------------------------------------------------------------ filters, progress and stats */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.progress { margin-bottom: 14px; }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.progress-head .cap-label { margin: 0; }
.progress-n { font-size: 14px; color: var(--soft); }
.progress-n b { font: 900 18px var(--round); color: var(--green); }
.progress-bar { display: flex; height: 14px; border-radius: 10px; overflow: hidden; background: var(--well); border: 2px solid var(--deep); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .3); }
.progress-bar i { display: block; min-width: 3px; transition: flex-grow .4s var(--ease); }
.progress-bar i + i { box-shadow: inset 2px 0 0 rgba(11, 5, 34, .7); }
.progress-bar .approved { background: linear-gradient(180deg, #8af5b7, var(--green)); }
.progress-bar .pending { background: linear-gradient(180deg, var(--cyan2), var(--cyan)); }
.progress-bar .variant { background: linear-gradient(180deg, #ffc27e, var(--orange)); }
.progress-bar .rejected { background: linear-gradient(180deg, #ff8b7f, var(--red)); }
.progress-bar .todo { background: transparent; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 30px; background: rgba(255, 255, 255, .05);
  border: 2px solid rgba(255, 255, 255, .09); font: 900 11px/1.2 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.stat b { min-width: 30px; padding: 2px 8px; border-radius: 20px; text-align: center; font-size: 14px; letter-spacing: 0; color: var(--deep); background: var(--soft); }
.stat.s-variant b { background: var(--orange); } .stat.s-pending b { background: var(--cyan); } .stat.s-approved b { background: var(--green); }
.stat.s-rejected b { background: var(--red); } .stat.s-todo b { background: #d9d3ff; }
.stage > .card > .stats .stat b { background: var(--gold); }
.empty { padding: 44px 10px; text-align: center; color: var(--soft); font-size: 15px; }
.more { display: flex; margin: 18px auto 0; }

/* ------------------------------------------------------------------ line and take cards: the save slot cards */
.item { position: relative; background: linear-gradient(180deg, #2d1a70, var(--card2)); border: 3px solid var(--deep); border-radius: 20px; margin-bottom: 14px;
  box-shadow: 0 5px 0 rgba(8, 3, 26, .6); transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease; }
.item:hover { box-shadow: 0 7px 0 rgba(8, 3, 26, .6), 0 0 0 2px rgba(63, 208, 255, .25); }
.item.open { box-shadow: 0 7px 0 rgba(8, 3, 26, .6), 0 0 0 3px var(--cyan), 0 0 28px rgba(63, 208, 255, .18); }
.item { padding: 0 20px; }
.item > :last-child:not(.item-head) { margin-bottom: 18px; }
.item-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; margin: 0 -20px; padding: 16px 20px; border-radius: 17px; }
.item-head.click { cursor: pointer; }
.item-head.click:hover .item-text { color: #fff; }
.item-head:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; border-radius: 17px; }
.item-head + * { margin-top: -4px; }
.item-main { min-width: 0; flex: 1 1 auto; }
.item-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--dim); }
.item-id .sit { font: 900 10.5px/1.2 var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--cyan2); }
.item-id .lid { font-family: var(--mono); font-size: 11.5px; color: rgba(195, 189, 240, .55); word-break: break-all; }
.item-id .gone { padding: 1px 9px; border-radius: 20px; font: 900 10px/1.6 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: var(--deep); background: var(--orange); }
.item-text { margin: 8px 0 2px; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink2); overflow-wrap: anywhere; transition: color .15s ease; }
.item-tone { display: inline-flex; gap: 6px; margin-top: 4px; font-size: 13.5px; font-style: italic; color: var(--cyan2); }
.meta { font-size: 13.5px; color: var(--soft); }
.item-main .meta { margin-top: 6px; }

/* the cast's name tags */
.who-tag { --c: var(--c-other); display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px 2px 8px; border-radius: 20px; background: var(--c); color: var(--deep);
  border: 2px solid var(--deep); font: 900 11px/1.5 var(--round); letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 2px 0 var(--deep); }
.who-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); opacity: .75; }
/* :is() adds a class's weight, so these win over the .chk default further down */
:is(.who-tag, .chk)[data-who=pomni] { --c: var(--c-pomni); }
:is(.who-tag, .chk)[data-who=jax] { --c: var(--c-jax); }
:is(.who-tag, .chk)[data-who=ragatha] { --c: var(--c-ragatha); }
:is(.who-tag, .chk)[data-who=kinger] { --c: var(--c-kinger); }
:is(.who-tag, .chk)[data-who=zooble] { --c: var(--c-zooble); }
:is(.who-tag, .chk)[data-who=gangle] { --c: var(--c-gangle); }
:is(.who-tag, .chk)[data-who=caine] { --c: var(--c-caine); }
:is(.who-tag, .chk)[data-who=gummigoo] { --c: var(--c-gummigoo); }
:is(.who-tag, .chk)[data-who=bubble] { --c: #a8ecff; }

/* status pills: a coloured dot and word, as in the HUD */
.pill { --c: var(--soft); flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; border-radius: 30px; white-space: nowrap;
  font: 900 10.5px/1.4 var(--round); letter-spacing: 1.6px; text-transform: uppercase; color: var(--c);
  background: rgba(10, 4, 32, .55); border: 2px solid currentColor; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.todo { --c: #d9d3ff; border-color: rgba(217, 211, 255, .35); } .pill.todo::before { background: transparent; border: 2px solid currentColor; box-shadow: none; width: 6px; height: 6px; }
.pill.pending { --c: var(--cyan2); } .pill.approved { --c: var(--green); } .pill.rejected { --c: #ff8478; } .pill.variant { --c: var(--orange); }
.pill.pending::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ work area: upload, record, send */
.work { padding-top: 16px; border-top: 2px dashed rgba(255, 255, 255, .12); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-cell { display: flex; flex-direction: column; padding: 14px; border-radius: 18px; background: rgba(10, 4, 32, .45); border: 2px solid rgba(255, 255, 255, .07); min-width: 0; }
.drop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 18px; text-align: center;
  border: 3px dashed rgba(195, 189, 240, .35); border-radius: 16px; color: var(--soft); cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s var(--pop); }
.drop:hover { border-color: var(--cyan); background: rgba(63, 208, 255, .06); color: var(--ink); }
.drop:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 16px; }
.drop.over { border-color: var(--gold); border-style: solid; background: rgba(255, 210, 60, .1); color: var(--ink); transform: scale(1.015); }
.drop-icon { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 4px; background: var(--gold); border: 3px solid var(--deep); box-shadow: 0 3px 0 var(--deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 15V4M5 8.5L10 4l5 4.5' fill='none' stroke='%231b0b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; transition: transform .2s var(--pop); }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px); }
.drop-main { font-weight: 700; font-size: 15px; color: var(--ink2); }
.drop-sub { font-size: 12px; color: var(--dim); }
.recorder .cap-label { justify-content: space-between; }
.rec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; color: #fff; background: var(--red); letter-spacing: 2px; }
.rec-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.rec-idle { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 10px; text-align: center; font-size: 13.5px; color: var(--dim);
  border-radius: 14px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 3px, transparent 3px 9px) center / 100% 2px no-repeat; }
.wave { display: block; width: 100%; height: 72px; border-radius: 12px; background: rgba(5, 2, 18, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
.wave.live { flex: 1; min-height: 72px; box-shadow: inset 0 0 0 2px rgba(255, 90, 74, .45), 0 0 18px rgba(255, 90, 74, .12); }
.rec-row { margin-top: 12px; }
.rec-clock { min-width: 56px; font: 900 15px var(--round); letter-spacing: 1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.level { position: relative; flex: 1 1 110px; height: 12px; border-radius: 8px; background: var(--well); overflow: hidden; border: 2px solid var(--deep); }
.level::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(11, 5, 34, .85) 7px 9px); pointer-events: none; }
.level i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 10px var(--green); transition: width .06s linear; }
.level i.hot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.level i.clip { background: var(--red); box-shadow: 0 0 10px var(--red); }
.draft { margin-top: 14px; padding: 16px; border-radius: 18px; background: rgba(111, 230, 160, .06); border: 2px solid rgba(111, 230, 160, .35); }
.draft .meta { margin-bottom: 10px; }
.sent { margin-top: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row .grow { flex: 1 1 220px; }
.actions { margin-top: 14px; }
.row-gap { flex: 1 1 0; min-width: 0; }
audio { display: block; width: 100%; height: 42px; margin-top: 10px; border-radius: 30px; }
.take { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 4, 32, .5); border: 2px solid rgba(255, 255, 255, .07); }
.take-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--soft); }
.note { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(5, 2, 18, .5); border-left: 4px solid var(--cyan); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note.admin { border-left-color: var(--gold); }
.note b { display: block; margin-bottom: 2px; font: 900 10.5px/1.4 var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); white-space: normal; }

/* ------------------------------------------------------------------ voice actors */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 2px solid rgba(255, 255, 255, .07); vertical-align: middle; font-size: 14px; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
tbody tr:last-child td { border-bottom: 0; }
th { padding-top: 0; font: 900 10.5px/1.3 var(--round); letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); }
td b { font-size: 15.5px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.a-n { font: 900 18px var(--round); color: var(--gold); }
.a-act .row { margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; }
.off { margin-top: 4px; display: inline-block; padding: 1px 9px; border-radius: 20px; font: 900 10px/1.6 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: #ff8478; background: rgba(255, 90, 74, .12); border: 1.5px solid rgba(255, 90, 74, .5); }
.chars { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { --c: var(--c-other); position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 12px 5px 8px; border-radius: 30px; cursor: pointer;
  font: 700 13px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink2); background: rgba(5, 2, 18, .5); border: 2px solid rgba(255, 255, 255, .1);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.chk:hover { border-color: var(--c); }
.chk input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 17px; height: 17px; margin: 0; border-radius: 5px; border: 2px solid var(--c); background: transparent no-repeat center / 11px 9px; cursor: pointer; transition: background-color .15s; }
.chk input:checked { background-color: var(--c); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1.5 4.6l2.8 2.8L9.6 1.6' fill='none' stroke='%231b0b45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chk:has(input:checked) { background: color-mix(in srgb, var(--c) 20%, rgba(5, 2, 18, .6)); border-color: var(--c); color: #fff; }
.chk:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.codebox { position: relative; margin-bottom: 16px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 210, 60, .07); border: 3px dashed var(--gold); }
.codebox code { display: inline-block; margin-left: 4px; padding: 2px 14px; border-radius: 12px; font: 900 26px/1.3 var(--mono); letter-spacing: 5px; color: var(--deep); background: var(--gold); border: 3px solid var(--deep); box-shadow: 0 3px 0 var(--deep); user-select: all; }
.codebox .meta { margin-top: 10px; }

/* ------------------------------------------------------------------ toast, loading */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 22px; border-radius: 40px;
  background: var(--gold); color: var(--deep); font: 900 14px/1.35 var(--round); letter-spacing: .4px; text-align: center; border: 3px solid var(--deep); box-shadow: 0 5px 0 var(--deep), 0 14px 40px rgba(0, 0, 0, .45);
  animation: toast-in .35s var(--pop) both; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 14vh; font: 900 13px var(--round); letter-spacing: 3px; text-transform: uppercase; color: var(--soft); }
.stage .loading { padding-top: 30px; }
.spin { width: 52px; height: 52px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .1); border-top-color: var(--gold); border-right-color: var(--cyan); animation: spin .8s linear infinite;
  box-shadow: 0 0 24px rgba(63, 208, 255, .2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ crop tool (crop.js): a stage panel over the page */
.player-row { display: flex; align-items: center; gap: 12px; }
.player-row audio { flex: 1 1 auto; min-width: 0; }
.crop-btn { margin-top: 10px; flex: 0 0 auto; }
.scissors { width: 16px; height: 16px; flex: 0 0 auto; background: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231b0b45' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='4' cy='4' r='2.4'/%3E%3Ccircle cx='4' cy='12' r='2.4'/%3E%3Cpath d='M6 5.4L14 12M6 10.6L14 4'/%3E%3C/svg%3E"); }
.cut-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.cut-tag { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 20px; font: 900 10px/1.7 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: var(--deep); background: var(--cyan); margin-right: 4px; }
body.crop-open { overflow: hidden; }
.crop-back { position: fixed; inset: 0; z-index: 25; display: flex; align-items: flex-start; justify-content: center; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(6, 2, 22, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } }
.crop { position: relative; width: 100%; max-width: 1180px; margin: auto 0; padding: 26px 28px 0; background: var(--panel); border: 4px solid var(--deep); border-radius: 26px;
  box-shadow: 0 8px 0 rgba(8, 3, 26, .55), 0 24px 60px rgba(4, 1, 16, .6); animation: rise .3s var(--ease) both; }
.crop::before { content: ""; position: absolute; inset: 4px; border: 3px solid var(--cyan); border-radius: 19px; pointer-events: none; opacity: .9; }
.crop:focus { outline: none; }
.crop-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.crop-head-main { min-width: 0; }
.crop-head h2 { margin: 0 0 8px; font: 900 30px/1.1 var(--round); letter-spacing: 6px; text-transform: uppercase; color: var(--gold); text-shadow: 0 3px 0 var(--deep); }
.crop-quote { margin: 8px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink2); overflow-wrap: anywhere; }
.crop-load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 50px 10px; font: 900 13px var(--round); letter-spacing: 3px; text-transform: uppercase; color: var(--soft); text-align: center; }
.crop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.crop-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crop-bar-o { margin-left: auto; }
.crop-play { min-width: 96px; }
.crop-play.on { background: var(--pink); }
.crop-clock { font: 700 14px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crop-chk { font-size: 12.5px; }
.crop-waves { padding: 8px; border-radius: 16px; background: rgba(5, 2, 18, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
.crop-wave { display: block; width: 100%; height: 200px; border-radius: 10px; background: rgba(10, 4, 32, .7); cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-wave.edge { cursor: ew-resize; }
.crop-wave:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
.crop-over { display: block; width: 100%; height: 38px; margin-top: 8px; border-radius: 8px; background: rgba(10, 4, 32, .7); cursor: grab; touch-action: none; }
.crop-hint { margin: 10px 2px 0; font-size: 12.5px; color: var(--dim); }
.crop-sel { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 210, 60, .06); border: 2px solid rgba(255, 210, 60, .45); transition: opacity .15s ease, border-color .15s ease; }
.crop-sel.none { opacity: .6; border-color: rgba(255, 255, 255, .1); background: rgba(10, 4, 32, .4); }
.crop-sel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.crop-sel-title { font: 900 13px/1.3 var(--round); letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.crop-sel-edges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.crop-edge { display: inline-flex; align-items: center; gap: 6px; }
.crop-edge-label { min-width: 40px; font: 900 11px/1.3 var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.crop-edge.edge-on .crop-edge-label { color: #fff; }
.crop-edge.edge-on input.crop-time { border-color: #fff; }
.crop-edge .btn.small { min-width: 38px; padding: 6px 10px; font-size: 16px; }
input.crop-time { width: 112px; min-height: 38px; padding: 6px 10px; border-radius: 12px; text-align: center; font: 700 14px var(--mono); font-variant-numeric: tabular-nums; }
select.crop-step, select.crop-gap { width: auto; min-height: 36px; padding: 6px 38px 6px 14px; font-size: 13px; }
.crop-sel-btns { margin-top: 10px; }
.crop-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 20px 0 10px; }
.crop-list-head .cap-label { margin: 0; }
.crop-count { color: var(--gold); letter-spacing: 1px; }
.crop-find { margin-top: 0; }
.crop-list { display: flex; flex-direction: column; gap: 10px; }
.crop-empty { padding: 26px 10px; }
.crop-row { padding: 12px 14px; border-radius: 16px; background: rgba(10, 4, 32, .5); border: 2px solid rgba(255, 255, 255, .08); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.crop-row:hover { border-color: rgba(63, 208, 255, .4); }
.crop-row.on { border-color: var(--gold); background: rgba(255, 210, 60, .07); }
.crop-row.bad { border-color: rgba(255, 90, 74, .65); }
.crop-row.saved { border-color: rgba(111, 230, 160, .6); background: rgba(111, 230, 160, .06); cursor: default; }
.crop-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.crop-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 20px; font: 900 14px var(--round); color: var(--deep); background: var(--gold); border: 2px solid var(--deep); }
.crop-row.saved .crop-num { background: var(--green); }
.crop-row-time { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 700 13.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink2); }
.crop-len { color: var(--cyan2); }
.crop-row-btns { display: flex; gap: 8px; margin-left: auto; }
.crop-row-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; font-size: 14px; color: var(--soft); }
.crop-row-line .lid, .crop-pick .lid { font-family: var(--mono); font-size: 11.5px; color: rgba(195, 189, 240, .55); word-break: break-all; }
.crop-line-text { color: var(--ink2); overflow-wrap: anywhere; }
.crop-row-opts { display: grid; grid-template-columns: auto minmax(170px, 220px) 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.crop-row-opts select, .crop-row-opts input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.crop-target { justify-content: flex-start; }
.crop-err { margin-top: 8px; color: #ff9a8f; font-weight: 700; font-size: 13.5px; }
.crop-done { margin-top: 8px; font: 900 11px/1.4 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.crop-pick { margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(5, 2, 18, .6); border: 2px solid var(--cyan); }
.crop-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; margin-top: 8px; overflow-y: auto; }
.crop-pick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); text-align: left; cursor: pointer; }
.crop-pick-item:hover, .crop-pick-item:focus-visible { border-color: var(--cyan); background: rgba(63, 208, 255, .08); outline: none; }
.crop-pick-item.on { border-color: var(--gold); }
.crop-pick-text { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.crop-pick-more { padding: 6px 4px; }
.crop-foot { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px -28px 0; padding: 14px 28px 20px; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(22, 10, 60, .92), rgba(18, 8, 50, .98)); border-top: 2px solid rgba(63, 208, 255, .25); }
.crop-sum { flex: 0 1 auto; }

/* ------------------------------------------------------------------ auditions */
/* a character chip in Voice actors: tick it, then Cast or Audition */
.chk.role { padding: 4px 5px 4px 8px; gap: 8px; cursor: default; }
.role-name { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; cursor: pointer; padding-right: 4px; }
.chk.role:not(.on) { padding-right: 12px; }
.chk.role:not(.on) .role-seg { display: none; }
.role-seg { display: inline-flex; padding: 2px; border-radius: 20px; background: rgba(5, 2, 18, .65); border: 1.5px solid rgba(255, 255, 255, .12); }
.role-opt { padding: 2px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--soft); cursor: pointer; font: 900 10px/1.6 var(--round); letter-spacing: 1.4px; text-transform: uppercase; }
.role-opt:hover { color: #fff; }
.role-opt[aria-pressed=true] { background: var(--c); color: var(--deep); }
.role-opt[data-v=aud][aria-pressed=true] { background: var(--gold); }
.role-opt:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-radius: 16px; }
.chk.role[data-role=aud] { border-style: dashed; border-color: var(--gold); }
.role-help { margin-top: 10px; font-size: 12.5px; }
.role-help b { color: var(--ink2); }
.aud-mini { margin-top: 5px; display: block; width: fit-content; padding: 1px 9px; border-radius: 20px; font: 900 10px/1.6 var(--round); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); background: rgba(255, 210, 60, .1); border: 1.5px dashed rgba(255, 210, 60, .6); white-space: nowrap; }
.aud-mini.aud-declined { color: #ff8478; border-color: rgba(255, 90, 74, .5); background: rgba(255, 90, 74, .08); }
/* the whole audition's standing */
.pill.aud-open { --c: var(--gold); } .pill.aud-more { --c: var(--orange); } .pill.aud-declined { --c: #ff8478; } .pill.aud-cast { --c: var(--green); }
.pill.aud-open::before { animation: blink 1.6s ease-in-out infinite; }
/* the sub switch in the Auditions tab */
.seg { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 30px; background: rgba(5, 2, 18, .55); border: 2px solid rgba(255, 255, 255, .08); }
.seg-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border: 0; border-radius: 24px; background: transparent; color: var(--soft); cursor: pointer;
  font: 900 12.5px/1.2 var(--round); letter-spacing: 1.5px; text-transform: uppercase; }
.seg-opt:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.seg-opt.on { background: var(--cyan); color: var(--deep); box-shadow: 0 3px 0 var(--deep); }
.seg-opt .n { min-width: 22px; padding: 1px 7px; border-radius: 20px; text-align: center; font-size: 11.5px; letter-spacing: 0; color: var(--deep); background: var(--gold); }
.seg-opt:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 24px; }
.aud-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 20px;
  font: 900 13px var(--round); color: var(--deep); background: var(--gold); border: 2px solid var(--deep); }
.aud-name { font: 900 15px var(--round); letter-spacing: .5px; color: var(--ink); }
.aud-card { padding-bottom: 4px; }
.aud-line { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 4, 32, .35); border: 2px solid rgba(255, 255, 255, .07); }
.aud-line.asked { border-color: rgba(255, 162, 74, .6); }
.aud-line-head { display: flex; gap: 12px; align-items: flex-start; }
.aud-line-main { flex: 1 1 auto; min-width: 0; }
.aud-line-text { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink2); overflow-wrap: anywhere; }
.aud-line-text.small { margin-top: 10px; font-size: 14px; }
.aud-pick { flex: 0 0 auto; font-size: 12px; }
.aud-pick:has(input:checked) { --c: var(--orange); }
.aud-none { margin-top: 8px; font-style: italic; }
.aud-old { margin-top: 16px; }
.aud-hint { margin-top: 10px; font-size: 12.5px; }
.item.asked { box-shadow: 0 7px 0 rgba(8, 3, 26, .6), 0 0 0 2px rgba(255, 162, 74, .55); }
.item.asked.open { box-shadow: 0 7px 0 rgba(8, 3, 26, .6), 0 0 0 3px var(--cyan), 0 0 28px rgba(63, 208, 255, .18); }
/* the auditioner's page */
.aud-intro { margin-bottom: 16px; }
.aud-intro-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aud-title { margin: 14px 0 6px; font: 900 24px/1.15 var(--round); letter-spacing: 2px; color: var(--gold); text-shadow: 0 2px 0 var(--deep); }
.aud-blurb { font-size: 16.5px; line-height: 1.5; color: var(--ink2); max-width: 75ch; }
.aud-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.aud-tips > div { padding: 14px 16px; border-radius: 16px; background: rgba(10, 4, 32, .45); border: 2px solid rgba(255, 255, 255, .07); }
.aud-tips .cap-label { margin-bottom: 8px; color: var(--cyan2); }
.aud-tips ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--soft); }
.aud-tips li + li { margin-top: 4px; }
.aud-count { margin-top: 14px; }
.aud-count b { font: 900 16px var(--round); color: var(--green); }
.aud-banner { margin: 0 0 16px; }
.aud-welcome { margin: 0 0 16px; border-left-color: var(--green); }
/* the script editor */
.script-card .item-id { margin-bottom: 4px; }
.script-count { margin-top: 18px; justify-content: space-between; }
.script-line { margin-top: 12px; padding: 12px 14px 14px; border-radius: 16px; background: rgba(10, 4, 32, .4); border: 2px solid rgba(255, 255, 255, .08); }
.script-line-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.script-text { min-height: 58px; font-size: 15.5px; font-weight: 600; }
textarea.grow { overflow: hidden; resize: none; }
.script-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.script-field label { margin-top: 10px; }
.script-field input { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .drop { min-height: 120px; }
}
@media (max-width: 700px) {
  table.actors, table.actors tbody, table.actors tr, table.actors td { display: block; width: 100%; }
  table.actors thead { display: none; }
  table.actors tr { padding: 12px 0; border-bottom: 2px solid rgba(255, 255, 255, .07); }
  table.actors tr:last-child { border-bottom: 0; }
  table.actors td { padding: 4px 0; border: 0; }
  .a-n::before { content: attr(data-label) " "; font: 900 10.5px var(--round); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
  .a-act .row { justify-content: flex-start; flex-wrap: wrap; }
  .row-gap { display: none; }
}
@media (max-width: 600px) {
  main { padding: 16px 16px 28px; }
  .top { padding: 8px 16px; }
  .brand { gap: 10px; }
  .brand-logo { height: 38px; }
  .brand-text { padding-left: 10px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 2.5px; }
  .brand-name { font-size: 15px; letter-spacing: 2px; }
  .who-me { display: none; }
  .stage { padding: 22px 16px 20px; border-radius: 22px; }
  .stage::before, .card::before { border-radius: 16px; }
  .stage-head h2 { font-size: 24px; letter-spacing: 4px; }
  .stage-head p { font-size: 14px; }
  .card { padding: 20px 18px; }
  .login { padding: 26px 20px 22px; }
  .stage .card { padding: 16px 14px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 26px; }
  .tab { padding: 8px 12px; font-size: 12px; letter-spacing: 1.2px; flex: 1 1 auto; justify-content: center; }
  .item-head { padding: 14px 14px; flex-direction: column-reverse; gap: 8px; }
  .item { padding: 0 14px; }
  .item-head { margin: 0 -14px; }
  .item-text { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .codebox code { font-size: 21px; letter-spacing: 3px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .aud-tips, .script-grid { grid-template-columns: 1fr; }
  .aud-title { font-size: 20px; }
  .seg { display: flex; width: 100%; }
  .seg-opt { flex: 1 1 0; justify-content: center; padding: 8px 10px; font-size: 11.5px; }
  .aud-line-head { flex-wrap: wrap; }
  .aud-pick { margin-left: 40px; }
  .aud-line, .script-line { padding: 10px 10px 12px; }
  .filters > select:only-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .crop-back { padding: 0; }
  .crop { min-height: 100%; border-radius: 0; border-width: 0; padding: 18px 16px 0; margin: 0; }
  .crop::before { display: none; }
  .crop-head h2 { font-size: 22px; letter-spacing: 4px; }
  .crop-quote { font-size: 15px; }
  .crop-wave { height: 150px; }
  .crop-bar-o { margin-left: 0; }
  .crop-hint { display: none; }
  .crop-row-opts { grid-template-columns: 1fr 1fr; }
  .crop-row-opts input { grid-column: 1 / -1; }
  .crop-row-btns { margin-left: 0; width: 100%; }
  .crop-row-btns .btn { flex: 1 1 auto; }
  .crop-foot { margin: 14px -16px 0; padding: 12px 16px 16px; border-radius: 0; }
  .crop-foot .btn { flex: 1 1 auto; }
  .crop-foot .row-gap { display: none; }
  .crop-sum { flex-basis: 100%; }
  .player-row { flex-wrap: wrap; }
  .player-row audio { flex-basis: 100%; }
  .player-row .crop-btn { margin-top: 0; }
}
/* below this the header's name ran under the Progress and Log out buttons: the logo alone says it */
@media (max-width: 440px) {
  .brand-text { display: none; }
}
/* ------------------------------------------------------------------ the public progress page (progress.html) */
.prog-page { --k-approved: #38d96c; --k-waiting: #3d8bff; --k-redo: #ff9124; --k-todo: #ef3b3b; }
.prog-page main { max-width: 1840px; }
.prog-page .top { position: relative; }
.prog-page a.brand { color: inherit; text-decoration: none; }
.prog-page .top > .btn { text-decoration: none; }
.prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.prog-total { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.prog-total b { font: 900 46px/1 var(--round); color: var(--gold); text-shadow: 0 3px 0 var(--deep); letter-spacing: 1px; }
.prog-total span { margin-top: 4px; font-size: 14px; color: var(--soft); }
.prog-bar-wrap { margin-bottom: 14px; }
.prog-bar { height: 22px; border-radius: 12px; }
.progress-bar .k-approved, .prog-legend .k-approved { background: var(--k-approved); }
.progress-bar .k-waiting, .prog-legend .k-waiting { background: var(--k-waiting); }
.progress-bar .k-redo, .prog-legend .k-redo { background: var(--k-redo); }
.progress-bar .k-todo, .prog-legend .k-todo { background: var(--k-todo); }
.prog-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--soft); }
.leg { display: inline-flex; align-items: center; gap: 8px; }
.leg b { color: var(--ink2); font-weight: 700; }
.leg .sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--deep); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3); }
.prog-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin: 6px 0 12px; }
.prog-crumb .crumb { display: inline-flex; align-items: center; gap: 10px; }
.crumb-sep { width: 8px; height: 8px; border-top: 2.5px solid var(--soft); border-right: 2.5px solid var(--soft); transform: rotate(45deg); }
.prog-crumb .who-tag { font-size: 13px; }
.prog-group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog-group .cap-label { margin: 0 4px 0 0; }
.prog-group .btn[aria-pressed=true] { background: var(--gold); color: var(--deep); border-color: var(--deep); }
.tm-wrap { position: relative; width: 100%; min-height: 120px; border: 3px solid var(--deep); border-radius: 8px; background: #0b0522; overflow: hidden;
  box-shadow: 0 5px 0 rgba(8, 3, 26, .6), 0 0 0 1px rgba(63, 208, 255, .18); }
.tm { display: block; cursor: zoom-in; touch-action: manipulation; }
.tm-wrap.zoomed .tm { cursor: crosshair; }
.tm-wrap > .loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.tm-labels { position: absolute; inset: 0; pointer-events: none; }
.tm-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.tm-label .who-tag { flex: 0 0 auto; padding: 0 9px 0 6px; font-size: 10.5px; line-height: 1.45; letter-spacing: 1.5px; box-shadow: none; }
.tm-label .tm-count { overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.tm-label.small { padding: 0 3px; }
.tm-label.small .who-tag { font-size: 9.5px; letter-spacing: 1px; padding: 0 7px 0 5px; box-shadow: 0 1px 0 var(--deep), 0 0 0 2px rgba(11, 5, 34, .55); }
.tm-label.big { gap: 12px; padding: 0 10px; }
.tm-label.big .who-tag { font-size: 13px; padding: 1px 12px 1px 8px; }
.tm-label.big .tm-count { font-size: 15px; }
.tm-probe { position: absolute; left: -9999px; top: 0; }
.tm-tip { position: absolute; z-index: 2; max-width: min(340px, calc(100% - 8px)); padding: 10px 12px; border-radius: 14px; pointer-events: none;
  background: rgba(22, 10, 60, .96); border: 3px solid var(--deep); box-shadow: 0 0 0 2px rgba(63, 208, 255, .55), 0 10px 24px rgba(5, 2, 20, .6); font-size: 13.5px; }
.tip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tip-n { color: var(--soft); font-size: 12.5px; }
.tip-row { display: flex; gap: 10px; align-items: baseline; margin-top: 3px; }
.tip-k { min-width: 64px; font: 900 10px/1.2 var(--round); letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); }
.tip-sit { font-family: var(--mono); color: var(--cyan2); overflow-wrap: anywhere; }
.tip-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.tip-status::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--deep); background: currentColor; }
.tip-approved { color: var(--k-approved); } .tip-waiting { color: #7fb2ff; } .tip-redo { color: var(--k-redo); } .tip-todo { color: #ff6b6b; }
.tip-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--ink2); }
.tip-hint { margin-top: 6px; font-size: 12px; color: var(--dim); }
.prog-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 8px 22px; margin-top: 22px; }
.prog-chars > .cap-label { grid-column: 1 / -1; margin-bottom: 2px; }
.pc-row { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 2px solid rgba(255, 255, 255, .07); text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.pc-row:hover { background: rgba(255, 255, 255, .08); border-color: rgba(63, 208, 255, .4); }
.pc-row.on { border-color: var(--gold); }
.pc-name { min-width: 0; overflow: hidden; }
.pc-bar { height: 14px; }
.pc-n { font-size: 13px; color: var(--soft); white-space: nowrap; }
.pc-n b { color: var(--ink2); }
.pc-pct { display: inline-block; min-width: 48px; margin-left: 8px; text-align: right; font: 900 13px var(--round); color: var(--k-approved); }
.prog-updated { margin-top: 18px; }
.login-wrap .prog-link, .top .prog-link { text-decoration: none; }
.prog-link-row { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 600px) {
  .prog-total { align-items: flex-start; text-align: left; }
  .prog-total b { font-size: 38px; }
  .pc-row { grid-template-columns: 108px 1fr auto; gap: 8px; padding: 7px 8px; }
  .pc-row .who-tag { letter-spacing: 1px; padding-right: 8px; }
  .prog-tools { scroll-margin-top: 8px; }
  .prog-group { flex-wrap: nowrap; gap: 6px; }
  .prog-group .cap-label { letter-spacing: 1.5px; }
  .pc-pct { min-width: 40px; }
  .prog-page .top > .btn { padding: 6px 10px; font-size: 11.5px; }
}

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