/* Herald (2026-11-20), laid out and coloured like the studio (2026-11-21, the user's "Make the Herald UI
   like this" with a picture of the studio): the studio's dark and light colours (ultra.css), its top bar, a
   glowing stage, a glass control row, a card of tiles under the stage, the dock with big buttons, and a
   rail of panels on the right. Everything is under .hd-app / body.hd-page. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.hd-page { margin: 0; background: #07090d; overflow: hidden; }

/* ---------- Colours (the studio's) ---------- */
.hd-app {
  --bg: #07090d; --panel: #0d1017; --panel2: #151925; --tile: #1a1f2c; --hover: #1c2130;
  --border: #232838; --text: #eceef4; --dim: #9097a8; --faint: #7b8296;
  --accent: #7c6cff; --accent-rgb: 124, 108, 255; --fg-rgb: 255, 255, 255;
  --live: #ff3b5c; --ok: #34d399;
  --hairline: rgba(255, 255, 255, .08);
  --glass: color-mix(in srgb, var(--panel) 74%, transparent);
  --lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 22px 48px -26px rgba(0, 0, 0, .7);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #c084fc) 55%, color-mix(in srgb, var(--accent) 45%, #60a5fa) 100%);
  --grad-live: linear-gradient(135deg, #ff3b5c 0%, #ff5a4a 55%, #ff7a3d 100%);
  --wave: #343a4c;
  --frame: rgba(var(--accent-rgb), .22);
}
.hd-app[data-theme="light"] {
  --bg: #f3f4f8; --panel: #ffffff; --panel2: #f3f4f8; --tile: #e7e9f0; --hover: #eceef4;
  --border: #e3e6ee; --text: #10131a; --dim: #5b6273; --faint: #6b7283;
  --accent: #5b4ff0; --accent-rgb: 91, 79, 240; --fg-rgb: 16, 19, 26;
  --live: #e11d48; --ok: #047857;
  --hairline: rgba(16, 19, 26, .09);
  --glass: #ffffff;
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 22px 48px -28px rgba(30, 34, 60, .28);
  --wave: #cfd3de;
  --frame: #e6c9ea;
}

/* ---------- The window ---------- */
.hd-wrap { position: fixed; inset: 0; }
.hd-app {
  height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 76px 400px; grid-template-rows: 56px minmax(0, 1fr);
  background: var(--bg); color: var(--text); font: 500 14px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.hd-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hd-app svg .fill, .hd-app svg.fill { fill: currentColor; stroke: none; }
:where(.hd-app) :where(button, a) { font-family: inherit; color: inherit; cursor: pointer; } /* no weight, so each button's own colour wins */
.hd-app button:disabled { cursor: default; opacity: .45; }
.hd-app :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hd-app [hidden] { display: none !important; }
.hd-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; }
.hd-dim { color: var(--dim); }
.small { font-size: 12px; line-height: 1.5; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.hd-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--border); min-width: 0; }
.hd-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-decoration: none; color: var(--text); flex: none; }
.hd-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ff9a3d, #ff5a36 55%, #ff3d6e); color: #fff; box-shadow: 0 6px 16px -8px rgba(255, 90, 54, .8); }
.hd-logo svg { width: 16px; height: 16px; stroke-width: 2.4; }
.hd-namepill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--hairline); background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); min-width: 0; color: var(--dim); }
.hd-namepill svg { width: 14px; height: 14px; }
.hd-title { width: 200px; min-width: 60px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 700 14px 'Plus Jakarta Sans', sans-serif; outline: none; }
.hd-pills { flex: 1; display: flex; justify-content: center; gap: 8px; min-width: 0; overflow: hidden; }
.hd-pill-s { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--panel); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text); }
.hd-pill-s i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
#hd-state[data-state="busy"] i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: hdBlink 1s infinite; }
#hd-state[data-state="bad"] i { background: var(--live); box-shadow: 0 0 0 3px rgba(255, 59, 92, .2); }
@keyframes hdBlink { 50% { opacity: .35; } }
#hd-saved[data-state="busy"] { color: var(--dim); }
#hd-saved[data-state="bad"] { color: var(--live); }
.hd-top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.hd-projects { height: 36px; max-width: 190px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--panel2); color: var(--text); font: 600 12.5px 'Plus Jakarta Sans', sans-serif; padding: 0 12px; }

/* ---------- Buttons ---------- */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--panel2); font-weight: 700; font-size: 13px; white-space: nowrap; transition: border-color .15s, background .15s, transform .1s, filter .15s; }
.hd-btn:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .45); }
.hd-btn.primary, .hd-btn.go { border: 0; background: var(--grad-accent); color: #fff; box-shadow: 0 12px 32px -12px rgba(var(--accent-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hd-btn.primary:hover, .hd-btn.go:hover { filter: brightness(1.06); }
.hd-btn.primary { border-radius: 999px; height: 36px; }
.hd-btn.solid { background: var(--text); color: var(--bg); border: 0; }
.hd-btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.hd-btn.big { height: 48px; font-size: 14.5px; font-weight: 800; width: 100%; border-radius: 14px; }
.hd-btn.wide { width: 100%; }
.hd-btn.dashed { border-style: dashed; background: transparent; }
.hd-ibtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--panel2); }
.hd-x { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); font-size: 13px; font-weight: 800; }
.hd-x:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.hd-x svg { width: 13px; height: 13px; }
.hd-row { display: flex; gap: 8px; align-items: center; }
.hd-row > .hd-btn { flex: 1; }

/* ---------- The stage ---------- */
.hd-stagewrap {
  grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 28px 0;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 70%),
    radial-gradient(45% 40% at 90% 100%, rgba(56, 189, 248, .07), transparent 70%),
    radial-gradient(40% 35% at 5% 90%, rgba(244, 114, 182, .05), transparent 70%),
    var(--bg);
}
/* Everything as wide as the stage, and the stage sized so the video, the control row, the looks / pictures / voices and the dock fit the window (like the studio's --stage-w); the timeline is just below. */
.hd-stagewrap { --stage-w: clamp(520px, calc((100vh - 480px) * 16 / 9 + 32px), 1000px); }
.hd-stagewrap > * { width: 100%; max-width: var(--stage-w); flex: none; }
.hd-labelrow { display: flex; align-items: center; gap: 12px; }
.hd-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 10px; border-radius: 999px; background: rgba(255, 59, 92, .1); box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .2); color: var(--live); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; }
.hd-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 59, 92, .18); }
.hd-app.playing .hd-label i { animation: hdBlink 1.4s infinite; }
#hd-bgname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-what { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.hd-stage { position: relative; aspect-ratio: 16 / 9; padding: 16px; box-sizing: border-box; border-radius: 22px; background: var(--frame); box-shadow: 0 0 0 1px var(--hairline), 0 30px 70px -30px rgba(var(--accent-rgb), .45); }
.hd-stage canvas { position: absolute; inset: 16px; margin: auto; display: block; max-width: calc(100% - 32px); max-height: calc(100% - 32px); width: auto; height: auto; border-radius: 14px; background: #000; }
.hd-stage[data-aspect="16:9"] canvas { width: calc(100% - 32px); height: calc(100% - 32px); }
.hd-app.playing .hd-stage { box-shadow: 0 0 0 2px var(--live), 0 0 0 7px rgba(255, 59, 92, .14), 0 30px 70px -24px rgba(255, 59, 92, .4); }

/* The glass control row under it. */
.hd-cutrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hd-glass { display: flex; align-items: center; gap: 2px; height: 42px; padding: 3px; box-sizing: border-box; border-radius: 13px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--lift); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hd-glass > button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.hd-glass > button svg { width: 15px; height: 15px; }
.hd-glass > button:hover:not(:disabled) { color: var(--text); }
.hd-glass > button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--hairline); }
.hd-app:not([data-theme="light"]) .hd-glass > button[aria-pressed="true"] { background: rgba(var(--fg-rgb), .12); }
.hd-scrubbox { flex: 1; gap: 12px; padding: 0 14px; }
.hd-time { font-size: 12.5px; color: var(--text); white-space: nowrap; }
.hd-time span { color: var(--faint); }
.hd-scrub { position: relative; flex: 1; height: 8px; border-radius: 99px; background: rgba(var(--fg-rgb), .1); cursor: pointer; touch-action: none; }
.hd-scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--grad-accent); pointer-events: none; }
.hd-note { margin: -4px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
.hd-note.bad { color: var(--live); font-weight: 700; }

/* ---------- Tiles under the stage ---------- */
.hd-tiles { overflow: hidden; display: flex; flex-direction: column; gap: 0; padding: 2px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--hairline); box-shadow: var(--lift); }
.hd-tilerow { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--hairline); }
.hd-tilegroup { display: flex; align-items: center; gap: 14px; padding: 9px 0; min-width: 0; }
.hd-tilegroup + .hd-tilegroup { padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--hairline); }
.hd-tilegroup.grow { flex: 1; }
.hd-tl-h { flex: none; width: 74px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hd-strip { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-x: auto; padding: 2px; }
.hd-lookbtn { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--panel2); font-size: 11px; font-weight: 800; }
.hd-lookbtn.on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 16px -8px rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.hd-lookbtn i { font-style: normal; }
.hd-lookbtn .lk-word { padding: 1px 4px; border-radius: 4px; background: linear-gradient(135deg, #ff8a3d, #ff3d6e); color: #fff; }
.hd-lookbtn .lk-pop { color: #e0a400; -webkit-text-stroke: .4px #000; }
.hd-lookbtn .lk-lower { border-left: 2px solid #ff6a1a; padding-left: 3px; }
.hd-lookbtn .lk-film { background: rgba(0, 0, 0, .7); color: #fff; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.hd-pic { position: relative; flex: none; width: 76px; height: 44px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--tile) center / cover no-repeat; overflow: hidden; }
.hd-pic.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-pic b { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 10px; }
.hd-pic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 5px; font-size: 9.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-pic.add { display: grid; place-items: center; border-style: dashed; background: transparent; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.hd-voicetile { position: relative; flex: none; display: flex; flex-direction: column; justify-content: flex-end; width: 124px; height: 44px; padding: 4px 9px; white-space: nowrap; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--hairline); background: #10131a; color: #fff; text-align: left; }
.hd-voicetile b { font-size: 12px; }
.hd-voicetile small { font-size: 9.5px; color: #a8aec0; }
.hd-voicetile em { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 8.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--live); color: #fff; letter-spacing: .04em; }
.hd-voicetile.on { box-shadow: 0 0 0 2px var(--accent); }
.hd-voicetile.rec { width: auto; padding-right: 12px; }

/* The timeline. */
.hd-timeline { padding: 12px 0 14px; }
.hd-tl-grid { display: flex; gap: 12px; }
.hd-tl-labels { flex: none; width: 74px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; color: var(--dim); }
.hd-tl-labels span { display: flex; align-items: center; }
.hd-tl-labels span:nth-child(1) { height: 14px; }
.hd-tl-labels span:nth-child(2) { height: 38px; }
.hd-tl-labels span:nth-child(3) { height: 46px; }
.hd-tl-labels span:nth-child(4) { height: 26px; }
.hd-tl-labels span:nth-child(5) { height: 34px; }
.hd-tracks { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; touch-action: none; }
.hd-ruler { position: relative; height: 14px; font-size: 10.5px; color: var(--faint); }
.hd-ruler span { position: absolute; top: 0; transform: translateX(-2px); white-space: nowrap; }
.hd-row-bg { position: relative; height: 38px; }
.hd-block { position: absolute; top: 0; bottom: 0; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 5px; overflow: hidden; border-radius: 9px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-block.first { border-color: rgba(var(--accent-rgb), .5); }
.hd-bdot { flex: none; width: 28px; height: 26px; border-radius: 6px; background: var(--tile) center / cover no-repeat; }
.hd-bname { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .45)); }
.hd-handle:hover { background: linear-gradient(90deg, transparent, var(--accent)); }
.hd-tl-empty { height: 100%; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; border: 1px dashed var(--hairline); color: var(--dim); font-size: 12px; }
.hd-wave { display: block; width: 100%; height: 46px; border-radius: 9px; background: var(--panel2); }
.hd-row-cap { position: relative; height: 26px; }
.hd-cblock { position: absolute; top: 0; bottom: 0; box-sizing: border-box; display: flex; align-items: center; padding: 0 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 7px; background: var(--panel2); border: 1px solid var(--hairline); font-size: 11px; font-weight: 600; color: var(--dim); }
.hd-row-music { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 34px; padding: 0 6px 0 12px; border-radius: 9px; background: rgba(var(--accent-rgb), .1); }
.hd-mname { font-size: 12px; font-weight: 700; color: var(--accent); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-row-music .hd-slider { flex: 1 1 160px; max-width: 280px; margin: 0; }
.hd-playhead { position: absolute; top: 14px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); pointer-events: none; }
.hd-playhead i { position: absolute; top: -6px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }

/* ---------- The dock ---------- */
.hd-dock {
  position: sticky; bottom: 12px; z-index: 5; margin: 0 auto 12px; width: auto !important; max-width: 100% !important;
  display: flex; align-items: center; gap: 4px; padding: 7px 8px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(var(--fg-rgb), .03), transparent 60%), var(--glass);
  border: 1px solid var(--hairline); box-shadow: var(--lift), 0 30px 60px -30px rgba(0, 0, 0, .6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hd-app[data-theme="light"] .hd-dock { box-shadow: 0 18px 40px -16px rgba(16, 19, 26, .22), 0 2px 6px rgba(16, 19, 26, .05), inset 0 1px 0 #fff; }
.hd-ctrl { position: relative; width: 60px; height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 0; border-radius: 16px; background: transparent; color: var(--text); transition: transform .12s, background .12s; }
.hd-ctrl svg { width: 21px; height: 21px; }
.hd-ctrl::after { content: attr(data-label); font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--dim); white-space: nowrap; }
.hd-ctrl:hover { background: rgba(var(--fg-rgb), .07); transform: translateY(-2px); }
.hd-ctrl:hover::after { color: var(--text); }
.hd-ctrl.on { background: rgba(var(--accent-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); color: var(--accent); }
.hd-ctrl.on::after { color: var(--accent); }
.hd-ctrl.play svg { width: 22px; height: 22px; }
.hd-sep { width: 1px; height: 30px; margin: 0 5px; background: var(--hairline); }
.hd-big { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px; border: 0; border-radius: 17px; font-size: 14px; font-weight: 800; white-space: nowrap; text-decoration: none; background: rgba(var(--fg-rgb), .06); color: var(--text); }
.hd-big.soft::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hd-big.go { padding: 0 26px 0 22px; font-size: 15px; letter-spacing: -.01em; background: var(--grad-live); color: #fff; box-shadow: 0 12px 30px -12px rgba(255, 59, 92, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hd-big.go::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; animation: hdDot 1.8s ease-out infinite; }
@keyframes hdDot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
.hd-big.go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 48%, transparent 64%); transform: translateX(-120%); animation: hdShine 4.5s ease-in-out infinite; }
@keyframes hdShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.hd-big-sub { font-weight: 600; opacity: .9; }
.hd-big.leave { color: #ff5a76; background: rgba(255, 59, 92, .08); }
.hd-big.leave:hover { background: var(--live); color: #fff; }
.hd-app[data-theme="light"] .hd-big.leave { color: #d61f45; }
.hd-app[data-theme="light"] .hd-big.leave:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hd-big.go::before, .hd-big.go::after { animation: none; } }

/* ---------- The rail ---------- */
.hd-rail { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; background: var(--panel); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.hd-railbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; padding: 9px 0 8px; border: 0; border-radius: 14px; background: transparent; color: var(--dim); font-size: 10.5px; font-weight: 700; }
.hd-railbtn svg { width: 20px; height: 20px; }
.hd-railbtn:hover { background: var(--hover); color: var(--text); }
.hd-railbtn.on { background: rgba(var(--accent-rgb), .12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.hd-rail-sp { flex: 1; }
.hd-rail-settings { position: relative; }
.hd-railmenu { position: absolute; right: calc(100% + 10px); bottom: 0; z-index: 30; width: 250px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.hd-railmenu button, .hd-railmenu a { display: flex; align-items: center; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; text-align: left; text-decoration: none; }
.hd-railmenu button:hover, .hd-railmenu a:hover { background: rgba(var(--accent-rgb), .12); }
.hd-railmenu button.on { color: var(--accent); }
.hd-railmenu button.on::after { content: '✓'; margin-left: auto; }
.hd-menu-h { padding: 8px 12px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hd-menu-k { margin: 0; padding: 2px 12px 8px; font-size: 12px; color: var(--dim); line-height: 1.6; }
kbd { font: 600 11px 'JetBrains Mono', monospace; padding: 1px 5px; border-radius: 5px; background: rgba(var(--fg-rgb), .08); }

/* ---------- The panel ---------- */
.hd-panel { grid-column: 3; grid-row: 2; min-height: 0; display: flex; flex-direction: column; padding: 16px 16px 12px; background: var(--panel); overflow: hidden; }
.hd-panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hd-panel-h h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.hd-pane { display: none; flex-direction: column; gap: 10px; min-height: 0; }
.hd-pane.on { display: flex; }
.hd-pane[data-pane="voice"], .hd-pane[data-pane="captions"], .hd-pane[data-pane="pictures"], .hd-pane[data-pane="music"], .hd-pane[data-pane="brand"], .hd-pane[data-pane="projects"] { overflow-y: auto; flex: 1; }
.hd-linesbox { display: none; flex: 1; min-height: 0; flex-direction: column; margin-top: 8px; }
.hd-linesbox.on { display: flex; }
.hd-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hd-card-h h2, .hd-card-h h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); }
.hd-sec { padding: 14px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--panel); }
.hd-sec + .hd-sec { margin-top: 2px; }

/* Script tabs, like People | Chat | Comments. */
.hd-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-tabs button { height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-weight: 700; font-size: 13px; }
.hd-tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--hairline); }
.hd-app:not([data-theme="light"]) .hd-tabs button[aria-selected="true"] { background: rgba(var(--fg-rgb), .12); }
.hd-tabbody { display: flex; flex-direction: column; gap: 10px; }
.hd-tabbody:empty { display: none; }
.hd-paste { width: 100%; box-sizing: border-box; min-height: 170px; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font: 500 13.5px/1.55 'Plus Jakarta Sans', sans-serif; }
.hd-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); cursor: pointer; transition: background .15s; }
.hd-drop.over, .hd-drop:hover { background: rgba(var(--accent-rgb), .14); }
.hd-drop b { display: block; font-size: 13px; }
.hd-drop small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.hd-drop-i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.hd-sermons { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.hd-sermon { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--panel2); }
.hd-sermon:hover { border-color: rgba(var(--accent-rgb), .5); }
.hd-sermon b { display: block; font-size: 13px; }
.hd-sermon small { color: var(--dim); font-size: 11.5px; }

/* Lines, like the People cards. */
.hd-lines { flex: 1 1 auto; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.hd-empty { margin: 4px 0; padding: 22px 16px; border-radius: 14px; border: 1px dashed var(--hairline); text-align: center; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.hd-empty b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
.hd-line { padding: 10px 10px 8px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, background .15s; }
.hd-line:focus-within { border-color: rgba(var(--accent-rgb), .4); }
.hd-line.active { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .55); }
.hd-line.pause { background: transparent; border-style: dashed; padding-top: 6px; padding-bottom: 6px; box-shadow: none; }
.hd-line-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.hd-time-l { border: 0; background: transparent; padding: 0; font: 600 11px 'JetBrains Mono', monospace; color: var(--dim); }
.hd-time-l:hover { color: var(--accent); }
.hd-vchip { border: 0; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.hd-vchip.v-am_michael, .hd-vchip.v-bm_george { background: rgba(56, 189, 248, .14); color: #0891b2; }
.hd-app:not([data-theme="light"]) .hd-vchip.v-am_michael, .hd-app:not([data-theme="light"]) .hd-vchip.v-bm_george { color: #67d4f5; }
.hd-pausetag { font-size: 10.5px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.hd-speaking { display: none; margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255, 59, 92, .12); color: var(--live); box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .3); }
.hd-line.active .hd-speaking { display: inline; }
.hd-line-h .hd-x { margin-left: auto; width: 24px; height: 24px; opacity: 0; }
.hd-line.active .hd-line-h .hd-x { margin-left: 0; }
.hd-line:hover .hd-x, .hd-line:focus-within .hd-x { opacity: 1; }
.hd-line-t { display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden; border: 0; padding: 2px 0; background: transparent; color: var(--text); font: 500 13.5px/1.5 'Plus Jakarta Sans', sans-serif; outline: none; }
.hd-line-t::placeholder { color: var(--faint); }
.hd-script-f { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 0; border-top: 1px solid var(--hairline); margin-top: 6px; }
.hd-script-f p { margin: 0; }

/* Listen. */
.hd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-chip { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--hairline); background: var(--panel2); font-size: 12px; font-weight: 700; color: var(--dim); }
.hd-chip.on { background: rgba(var(--accent-rgb), .12); color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.hd-listen { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-listen.on { background: rgba(255, 59, 92, .06); border-color: rgba(255, 59, 92, .35); }
.hd-listen-top { display: flex; align-items: center; gap: 14px; }
.hd-mic { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--grad-live); color: #fff; box-shadow: 0 12px 28px -12px rgba(255, 59, 92, .8); }
.hd-mic svg { width: 24px; height: 24px; stroke-width: 2.2; }
.hd-listen.on .hd-mic::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255, 59, 92, .45); animation: hdPulse 1.6s ease-out infinite; }
@keyframes hdPulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.hd-listen-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hd-listen-txt b { font-size: 14.5px; font-weight: 800; }
.hd-listen-txt .hd-mono { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.hd-listen.on .hd-listen-txt .hd-mono { color: var(--live); }
.hd-meter { display: flex; align-items: center; gap: 3px; height: 30px; }
.hd-meter i { flex: 1; height: 30%; border-radius: 3px; background: var(--wave); transition: height .08s, background .08s; }
.hd-meter i:nth-child(3n) { height: 55%; } .hd-meter i:nth-child(4n) { height: 42%; } .hd-meter i:nth-child(5n) { height: 70%; }
.hd-meter i.on { background: linear-gradient(#34d399, #a3e635); }
.hd-interim { margin: 0; font-size: 12.5px; font-style: italic; color: var(--dim); line-height: 1.45; }
.hd-field { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.hd-field select { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font: 600 12.5px 'Plus Jakarta Sans', sans-serif; padding: 0 8px; }
.hd-check { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text); line-height: 1.4; cursor: pointer; }
.hd-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* Voice, captions, pictures, music. */
.hd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hd-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; min-height: 52px; border-radius: 12px; text-align: left; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-pick b { font-size: 13px; }
.hd-pick small { font-size: 11px; color: var(--dim); }
.hd-pick.on, .hd-look.on, .hd-kind.on { background: rgba(var(--accent-rgb), .1); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-look { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 70px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-look small { font-size: 11px; color: var(--dim); font-weight: 700; }
.hd-sample { font-weight: 800; font-size: 14px; }
.hd-sample.s-word { padding: 2px 8px; border-radius: 7px; background: linear-gradient(135deg, #ff8a3d, #ff3d6e); color: #fff; }
.hd-sample.s-pop { color: #ffd84d; letter-spacing: .04em; -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.hd-sample.s-lower { font-size: 13px; padding: 3px 8px; border-left: 3px solid #ff6a1a; background: rgba(12, 12, 16, .78); color: #fff; }
.hd-sample.s-film { font-weight: 600; background: rgba(0, 0, 0, .7); color: #fff; padding: 2px 8px; border-radius: 4px; }
.hd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; margin-top: 10px; padding: 3px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-seg.flex { margin-top: 0; flex: 1; }
.hd-seg button { white-space: nowrap; height: 30px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 700; color: var(--dim); }
.hd-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--hairline); }
.hd-app:not([data-theme="light"]) .hd-seg button.on { background: rgba(var(--fg-rgb), .12); }
.hd-slider { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--dim); }
.hd-slider > span:first-child { width: 52px; flex: none; }
.hd-slider input[type="range"] { flex: 1; min-width: 60px; accent-color: var(--accent); }
.hd-slider output { width: 42px; text-align: right; font: 600 11px 'JetBrains Mono', monospace; color: var(--text); }
.hd-slider.inline { margin-top: 0; }
.hd-sec .hd-check { margin-top: 12px; }
.hd-sec p.small, .hd-pane > p.small { margin: 10px 0 0; }
.hd-bglist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hd-bgitem { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 11px; background: var(--panel2); }
.hd-thumb { position: relative; flex: none; width: 52px; height: 32px; border-radius: 7px; background: var(--tile) center / cover no-repeat; }
.hd-thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; text-shadow: 0 1px 3px #000; }
.hd-bgname { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-secs { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--dim); }
.hd-secs input { width: 54px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font: 600 11px 'JetBrains Mono', monospace; padding: 0 4px; text-align: right; }
.hd-projlist { display: flex; flex-direction: column; gap: 6px; }
.hd-proj { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--panel2); text-align: left; }
.hd-proj.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-proj b { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-proj small { font-size: 11px; color: var(--dim); }

/* ---------- Export ---------- */
.hd-exportbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(4, 4, 8, .55); backdrop-filter: blur(4px); }
.hd-exdialog { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); display: flex; flex-direction: column; }
.hd-exdialog .hd-card-h h2 { font-size: 17px; }
#hd-exbody { display: flex; flex-direction: column; gap: 14px; }
#hd-exbody p { margin: 0; }
.hd-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hd-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; min-height: 64px; border-radius: 14px; text-align: left; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-kind b { font-size: 13.5px; }
.hd-kind small { font-size: 11.5px; color: var(--dim); }
.hd-exopts { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--panel2); }
.hd-exopts .hd-check { margin-top: 2px; }
.hd-exl { font-size: 11px; font-weight: 700; color: var(--dim); }
.hd-opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.hd-opt { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); font-size: 12px; font-weight: 700; color: var(--dim); }
.hd-opt.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--text); }
.hd-exfile { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); }
.hd-exfile span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-prog { height: 10px; border-radius: 99px; background: rgba(var(--fg-rgb), .1); overflow: hidden; }
.hd-prog i { display: block; height: 100%; width: 0; background: var(--grad-live); transition: width .2s; }
#hd-exbody .hd-btn.go { background: var(--grad-live); box-shadow: 0 12px 30px -12px rgba(255, 59, 92, .7); }

.hd-toast { position: fixed; left: 50%; bottom: 96px; z-index: 210; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 13px; line-height: 1.45; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }

/* ---------- Smaller windows: one column ---------- */
@media (max-width: 860px) {
  body.hd-page { overflow: auto; }
  .hd-wrap { position: static; }
  .hd-app { height: auto; min-height: 100vh; display: flex; flex-direction: column; }
  .hd-top { flex-wrap: wrap; padding: 10px 12px; }
  .hd-pills { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .hd-stagewrap { overflow: visible; padding: 14px 12px 0; --stage-w: 100%; }
  .hd-cutrow { flex-wrap: wrap; }
  .hd-scrubbox { order: 3; flex-basis: 100%; }
  .hd-tilegroup, .hd-tilegroup.grow { flex: 1 1 100%; }
  .hd-dock { position: static; }
  .hd-tilegroup + .hd-tilegroup { padding-left: 0; margin-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .hd-rail { flex-direction: row; overflow-x: auto; padding: 8px; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .hd-rail-sp { flex: 1; }
  .hd-railmenu { right: 0; bottom: calc(100% + 8px); }
  .hd-panel { overflow: visible; min-height: 520px; }
  .hd-dock { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
}
@media (max-width: 640px) {
  .hd-ctrl { width: 48px; height: 48px; }
  .hd-ctrl::after { display: none; }
  .hd-big { height: 46px; padding: 0 14px; }
  .hd-tilegroup + .hd-tilegroup { padding-left: 0; margin-left: 0; border-left: 0; }
  .hd-tl-h, .hd-tl-labels { width: 56px; }
}

/* ======================================================================
   2026-11-21, the user's "Make the UI exactly like this" (the studio's picture again): the studio's exact
   proportions — a 50 px top bar with a round pencil, Search and your picture; ● VIDEO with a small bar and the
   time; the picture's name on the video like a name tag; one small pill under the stage (Undo · Redo · shape);
   Looks and Pictures like Layouts and Scenes, Voices like People; the panel 344 px (the Timeline panel wider,
   like the studio's Media); the accent bar beside the chosen rail item.
   ====================================================================== */
.hd-app { grid-template-columns: minmax(0, 1fr) 76px 344px; grid-template-rows: 50px minmax(0, 1fr); }
.hd-app.wide-panel { grid-template-columns: minmax(0, 1fr) 76px 600px; }
.hd-top { gap: 10px; padding: 0 12px; }
.hd-brand { font-size: 15px; gap: 8px; }
.hd-logo { width: 26px; height: 26px; border-radius: 7px; }
.hd-logo svg { width: 14px; height: 14px; }
.hd-namepill { height: 30px; padding: 0 10px 0 2px; }
.hd-title { width: 170px; height: 26px; font-size: 13.5px; }
.hd-roundbtn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--panel); color: var(--dim); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.hd-roundbtn svg { width: 13px; height: 13px; }
.hd-roundbtn:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .4); }
.hd-pill-s { height: 28px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.hd-pill-s svg { width: 13px; height: 13px; color: var(--dim); }
.hd-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--panel); color: var(--dim); }
.hd-search svg { width: 15px; height: 15px; }
.hd-search input { width: 70px; border: 0; background: transparent; color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; outline: none; transition: width .2s; }
.hd-search input:focus { width: 160px; }
.hd-search input::placeholder { color: var(--dim); }
.hd-search input::-webkit-search-cancel-button { display: none; }
.hd-search kbd { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--hairline); color: var(--dim); }
.hd-btn.primary { height: 32px; padding: 0 14px; font-size: 13px; }
.hd-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #7c6cff, #60a5fa); color: #fff; flex: none; }
.hd-avatar svg { width: 16px; height: 16px; }
.hd-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* The stage, sized like the studio's: everything fits the window. */
.hd-stagewrap { --stage-w: clamp(480px, calc((var(--app-vh, 1vh) * 100 - 368px) * 16 / 9), 1120px); padding: 12px 24px 0; gap: 10px; overflow: hidden; }
.hd-labelrow { gap: 10px; height: 24px; }
.hd-labelsp { flex: 1; }
.hd-labelrow .hd-scrub { flex: none; width: 56px; height: 5px; background: rgba(var(--fg-rgb), .12); }
.hd-labelrow .hd-scrub i { background: linear-gradient(90deg, #34d399, #a3e635); }
.hd-labelrow .hd-time { font: 600 12.5px 'Plus Jakarta Sans', sans-serif; color: var(--dim); }
.hd-labelrow .hd-time span { color: var(--faint); }
.hd-stage { padding: 17px; border-radius: 18px; }
.hd-stage canvas { inset: 17px; max-width: calc(100% - 34px); max-height: calc(100% - 34px); border-radius: 9px; }
.hd-stage[data-aspect="16:9"] canvas { width: calc(100% - 34px); height: calc(100% - 34px); }
.hd-nametag { position: absolute; left: 30px; bottom: 30px; max-width: 45%; padding: 5px 10px; border-radius: 8px; background: rgba(12, 14, 20, .82); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.hd-nametag:empty { display: none; }
.hd-cutrow { justify-content: center; }
.hd-glass { height: 40px; padding: 4px; border-radius: 14px; gap: 2px; }
.hd-glass > button { height: 32px; padding: 0 11px; font-size: 12.5px; }
.hd-shapesel select { height: 32px; padding: 0 26px 0 11px; border: 0; border-radius: 10px; appearance: none; -webkit-appearance: none; cursor: pointer; background-color: var(--panel2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238a90a2' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; color: var(--text); font: 700 12.5px 'Plus Jakarta Sans', sans-serif; }
.hd-note { display: none; }
.hd-note.bad { display: block; margin: -2px 0 0; }

/* The card: Looks | Pictures, then Voices. */
.hd-tiles { padding: 0 14px; border-radius: 16px; width: calc(100% + 40px) !important; max-width: calc(var(--stage-w) + 40px) !important; box-sizing: border-box; }
.hd-tilerow:last-child { border-bottom: 0; }
.hd-tilegroup { padding: 9px 0; gap: 12px; }
.hd-tilegroup + .hd-tilegroup { padding-left: 16px; margin-left: 16px; }
.hd-tl-h { width: 62px; font-size: 10.5px; letter-spacing: .13em; }
.hd-strip { gap: 7px; }
.hd-lookbtn { width: 38px; height: 30px; border-radius: 9px; background: var(--panel2); font-size: 10.5px; }
.hd-lookbtn.on { background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 1.5px var(--accent); border-color: transparent; }
.hd-pic { width: 72px; height: 42px; border-radius: 9px; background-color: #1b1f2c; border: 0; box-shadow: 0 0 0 1px var(--hairline); }
.hd-pic.on { box-shadow: 0 0 0 2px var(--accent); }
.hd-pic b { left: 3px; top: 3px; min-width: 15px; height: 15px; border-radius: 50%; font-size: 9.5px; }
.hd-pic span { font-size: 9.5px; text-align: center; padding: 2px 4px 3px; }
.hd-pic.add { width: 72px; background: var(--panel); box-shadow: none; border: 1px dashed var(--border); color: var(--text); font-size: 11px; line-height: 1.15; text-align: left; padding: 0 8px; justify-items: start; }
.hd-voicetile { width: 78px; height: 42px; padding: 0 4px 4px; justify-content: flex-end; align-items: center; text-align: center; border-radius: 8px; border: 0; background: #11141c; box-shadow: 0 0 0 1px var(--hairline); }
.hd-app .hd-voicetile { color: #fff; }
.hd-voicetile::before { content: attr(data-initial); position: absolute; top: 6px; left: 0; right: 0; font-size: 15px; font-weight: 800; color: #a5b4fc; line-height: 1; }
.hd-voicetile b { font-size: 10.5px; line-height: 1.1; }
.hd-voicetile small { display: none; }
.hd-voicetile em { left: 4px; right: auto; top: 4px; font-size: 7.5px; padding: 1px 4px; border-radius: 3px; }
.hd-voicetile.on { box-shadow: 0 0 0 1.5px var(--live); }
.hd-voicetile.rec { width: auto; padding: 0 10px 4px; }

/* The dock at the bottom, like the studio's. */
.hd-dock { position: static; margin: auto auto 10px; padding: 6px 7px; border-radius: 24px; }
.hd-ctrl { width: 58px; height: 52px; }
.hd-ctrl svg { width: 20px; height: 20px; }
.hd-big { height: 52px; border-radius: 16px; }
.hd-big.soft::before { background: var(--live); }

/* The rail: the accent bar beside the chosen item. */
.hd-rail { padding: 12px 0; gap: 2px; }
.hd-railbtn { position: relative; width: 60px; padding: 9px 0 7px; border-radius: 12px; font-size: 10.5px; font-weight: 600; color: var(--dim); }
.hd-railbtn.on { background: rgba(var(--accent-rgb), .1); box-shadow: none; color: var(--accent); }
.hd-railbtn.on::after { content: ''; position: absolute; right: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.hd-railbtn svg { width: 19px; height: 19px; }

/* The panel. */
.hd-panel { padding: 16px 14px 12px; }
.hd-panel-h h2 { font-size: 19px; }
.hd-pane[data-pane="timeline"] { overflow-y: auto; overflow-x: hidden; flex: 1; }
.hd-pane[data-pane="timeline"] .hd-timeline { padding: 4px 0 0; }
.hd-pane[data-pane="timeline"] .hd-tl-labels { width: 62px; }
.hd-ruler { font: 600 10.5px 'JetBrains Mono', monospace; }
.hd-line.found { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b; }

@media (max-width: 860px) {
  .hd-stagewrap { --stage-w: 100%; overflow: visible; }
  .hd-tiles { width: 100% !important; max-width: 100% !important; }
  .hd-dock { margin: 6px auto 12px; }
  .hd-search input, .hd-search input:focus { width: 90px; }
  .hd-search kbd { display: none; }
  .hd-app.wide-panel { grid-template-columns: none; }
}
.hd-ruler span:last-child { transform: translateX(-100%); } /* the last time mark stays inside */

/* A smaller top bar (2026-11-21, the user's "reduce the size" on a picture of it). */
.hd-app { grid-template-rows: 44px minmax(0, 1fr); }
.hd-top { gap: 8px; padding: 0 10px; }
.hd-brand { font-size: 13.5px; gap: 7px; }
.hd-logo { width: 22px; height: 22px; border-radius: 6px; }
.hd-logo svg { width: 12px; height: 12px; }
.hd-namepill { height: 26px; padding: 0 8px 0 2px; gap: 4px; }
.hd-namepill svg { width: 12px; height: 12px; }
.hd-title { width: 150px; height: 22px; font-size: 12.5px; }
.hd-roundbtn { width: 26px; height: 26px; }
.hd-roundbtn svg { width: 12px; height: 12px; }
.hd-pills { gap: 6px; }
.hd-pill-s { height: 24px; padding: 0 9px; font-size: 11.5px; gap: 5px; }
.hd-pill-s i { width: 7px; height: 7px; }
.hd-pill-s svg { width: 11px; height: 11px; }
.hd-search { height: 28px; gap: 6px; padding: 0 5px 0 10px; }
.hd-search svg { width: 13px; height: 13px; }
.hd-search input { width: 56px; font-size: 12px; }
.hd-search input:focus { width: 140px; }
.hd-search kbd { font-size: 9.5px; padding: 1px 5px; }
.hd-btn.primary { height: 28px; padding: 0 12px; font-size: 12px; gap: 5px; }
.hd-btn.primary svg { width: 14px; height: 14px; }
.hd-avatar { width: 26px; height: 26px; }
.hd-avatar svg { width: 14px; height: 14px; }

/* Send to studio: your studios open now (2026-11-21). */
.hd-studios { display: flex; flex-direction: column; gap: 8px; }
.hd-studio { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--panel2); text-align: left; }
.hd-studio:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .55); }
.hd-studio-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.hd-studio b { display: block; font-size: 13.5px; }
.hd-studio small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 1px; }
.hd-studio > span:nth-child(2) { flex: 1; min-width: 0; }
.hd-studio-go { flex: none; padding: 7px 14px; border-radius: 10px; background: var(--grad-live); color: #fff; font-size: 12.5px; font-weight: 800; }
.hd-linkbox { padding: 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.hd-linkbox .hd-card-h { margin-bottom: 0; }
.hd-linkbox p { margin: 0; }
.hd-linkrow { display: flex; gap: 8px; }
.hd-linkrow input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 12px 'JetBrains Mono', monospace; }
#hd-exbody .hd-linkrow .hd-btn.go { background: var(--grad-accent); }

/* The Live transcript card in Listen (2026-11-21, the user's "Add this to the listening", Scripture's card). */
.hd-ltx { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(var(--accent-rgb), .04), transparent 60%), var(--panel); box-shadow: var(--lift); }
.hd-ltx-h { display: flex; align-items: center; gap: 10px; }
.hd-ltx-h b { flex: 1; font-size: 15px; font-weight: 800; }
.hd-ltx-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ff9a3d, #ff5a36 55%, #ff3d6e); color: #fff; }
.hd-ltx-ic svg { width: 15px; height: 15px; stroke-width: 2.4; }
.hd-ltx-clear { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--panel); color: var(--dim); }
.hd-ltx-clear svg { width: 15px; height: 15px; }
.hd-ltx-clear:hover:not(:disabled) { color: var(--live); border-color: rgba(255, 59, 92, .4); }
.hd-ltx-body { min-height: 120px; max-height: 220px; overflow-y: auto; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.hd-ltx-body i { color: var(--dim); }
.hd-ltx-body mark { padding: 0 3px; border-radius: 4px; background: rgba(245, 158, 11, .22); color: inherit; font-weight: 700; }
.hd-ltx-empty { color: var(--dim); }
.hd-ltx-f { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); cursor: pointer; }
.hd-ltx-f > svg { width: 18px; height: 18px; color: #10b981; }
.hd-ltx-f b { flex: 1; font-size: 14px; font-weight: 800; }
.hd-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.hd-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hd-switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(var(--fg-rgb), .14); transition: background .2s; pointer-events: none; }
.hd-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.hd-switch input:checked + i { background: #10b981; }
.hd-switch input:checked + i::after { transform: translateX(20px); }
.hd-switch input:disabled + i { opacity: .5; }

/* A smaller card under the stage (2026-11-21, the user's "reduce the size" on a picture of it). */
.hd-tiles { padding: 0 12px; border-radius: 14px; }
.hd-tilegroup { padding: 7px 0; gap: 10px; }
.hd-tilegroup + .hd-tilegroup { padding-left: 12px; margin-left: 12px; }
.hd-tl-h { width: 54px; font-size: 9.5px; letter-spacing: .12em; }
.hd-strip { gap: 6px; }
.hd-lookbtn { width: 32px; height: 25px; border-radius: 7px; font-size: 9.5px; }
.hd-pic { width: 60px; height: 35px; border-radius: 7px; }
.hd-pic b { min-width: 13px; height: 13px; font-size: 8.5px; }
.hd-pic span { font-size: 8.5px; padding: 1px 3px 2px; }
.hd-pic.add { width: 60px; font-size: 9.5px; padding: 0 6px; }
.hd-voicetile { width: 64px; height: 35px; border-radius: 7px; padding: 0 3px 3px; }
.hd-voicetile::before { top: 4px; font-size: 12.5px; }
.hd-voicetile b { font-size: 9.5px; }
.hd-voicetile em { font-size: 6.5px; padding: 0 3px; top: 3px; left: 3px; }
.hd-strip { scrollbar-width: thin; }

/* More voices + templates (2026-11-21). */
.hd-vchip { position: relative; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.hd-vchip::after { content: '▾'; font-size: 8px; opacity: .7; }
.hd-vchip select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 13px; }
.hd-vchip.m { background: rgba(56, 189, 248, .14); color: #0891b2; }
.hd-app:not([data-theme="light"]) .hd-vchip.m { color: #67d4f5; }
.hd-vgroup + .hd-vgroup { margin-top: 12px; }
.hd-vgroup-h { display: block; margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hd-vpick { flex-direction: row; align-items: center; padding: 0; min-height: 46px; overflow: hidden; }
.hd-vpick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 4px 8px 11px; border: 0; background: transparent; text-align: left; }
.hd-vpick-main b { font-size: 13px; }
.hd-vpick-main small { font-size: 11px; color: var(--dim); }
.hd-vplay { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-right: 7px; border-radius: 50%; border: 0; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.hd-vplay svg { width: 12px; height: 12px; }
.hd-vplay:hover { background: var(--accent); color: #fff; }
.hd-voicetile.more { background: var(--panel); box-shadow: none; border: 1px dashed var(--border); }
.hd-app .hd-voicetile.more { color: var(--text); }
.hd-voicetile.more::before { color: var(--accent); }
.hd-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hd-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--panel2); text-align: left; }
.hd-tpl:hover { border-color: rgba(var(--accent-rgb), .55); }
.hd-tpl b { font-size: 13.5px; }
.hd-tpl small { font-size: 11.5px; color: var(--dim); line-height: 1.4; }
.hd-tpl-shape { display: grid; place-items: center; margin-bottom: 6px; border-radius: 6px; background: linear-gradient(160deg, #23173a, #6b2f4f 60%, #e0763c); color: #fff; font-size: 10px; font-weight: 800; }
.hd-tpl-shape.s169 { width: 64px; height: 36px; }
.hd-tpl-shape.s916 { width: 28px; height: 48px; }
.hd-tpl-shape.s11 { width: 40px; height: 40px; }
.hd-tpl-shape .lk-word { padding: 1px 3px; border-radius: 3px; background: linear-gradient(135deg, #ff8a3d, #ff3d6e); font-style: normal; }
.hd-tpl-shape .lk-pop { color: #ffd84d; font-style: normal; }
.hd-tpl-shape .lk-lower { border-left: 2px solid #ff6a1a; padding-left: 3px; font-style: normal; }
.hd-tpl-shape .lk-film { background: rgba(0, 0, 0, .65); padding: 1px 3px; border-radius: 2px; font-style: normal; font-weight: 600; }

/* Word-by-word editing, under the timeline (2026-11-21). */
.hd-cblock { cursor: pointer; }
.hd-cblock:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--text); }
.hd-cblock.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); color: var(--text); }
.hd-capedit { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--panel2); }
.hd-capedit .hd-card-h { margin-bottom: 8px; }
.hd-capedit-empty b { display: block; font-size: 13px; margin-bottom: 2px; }
.hd-capedit-empty span { font-size: 12px; color: var(--dim); line-height: 1.5; }
.hd-wchips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 10px; }
.hd-wchip { height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--panel); font-size: 12.5px; font-weight: 600; }
.hd-wchip.cap { background: rgba(var(--accent-rgb), .08); }
.hd-wchip.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-wchip.hid { text-decoration: line-through; opacity: .55; }
.hd-wchip.ed { border-style: dashed; border-color: #f59e0b; }
.hd-wbreak { font-weight: 800; color: var(--accent); }
.hd-wedit { display: flex; flex-direction: column; gap: 8px; }
.hd-winput { height: 34px; margin-top: 4px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; }
.hd-wbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-btn.sm.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.hd-wedit p { margin: 0; }

/* The Brand panel and built-in backgrounds (2026-11-21). */
.hd-drop-i img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.hd-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hd-colors label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.hd-colors input[type="color"] { width: 100%; height: 36px; padding: 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; }
.hd-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hd-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.hd-swatch:hover { box-shadow: 0 0 0 2px var(--accent); }
.hd-brandon p { margin: 8px 0 0; }
.hd-pals { display: flex; gap: 6px; margin-bottom: 10px; }
.hd-pal { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.hd-pal.on { box-shadow: 0 0 0 2px var(--accent); }
.hd-bis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hd-bi { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; text-align: center; }
.hd-bi span { display: block; aspect-ratio: 16 / 9; border-radius: 9px; background: var(--tile) center / cover; box-shadow: 0 0 0 1px var(--hairline); transition: box-shadow .15s, transform .15s; }
.hd-bi:hover span { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }
.hd-bi small { font-size: 11px; font-weight: 700; color: var(--dim); }

/* More caption looks (2026-11-21). */
.hd-sample.s-neon { color: #fff; text-shadow: 0 0 6px #ff8a3d, 0 0 14px #ff3d6e; }
.hd-sample.s-boxes { display: inline-flex; gap: 3px; }
.hd-sample.s-boxes::before { content: ''; }
.hd-sample.s-boxes { padding: 2px 7px; border-radius: 5px; background: #fff; color: #12131a; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hd-sample.s-typewriter { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text); }
.hd-sample.s-typewriter::after { content: '▍'; color: #ff6a1a; animation: hdBlink 1s infinite; }
.hd-sample.s-glass { padding: 2px 9px; border-radius: 8px; background: rgba(18,20,30,.55); border: 1px solid rgba(255,255,255,.35); color: #fff; box-shadow: inset 0 -3px 0 -1px #ff5a36; }
.hd-sample.s-outline { color: transparent; -webkit-text-stroke: 1.2px var(--text); letter-spacing: .04em; }
.hd-sample.s-marker { padding: 0 6px; color: #12131a; background: linear-gradient(100deg, transparent 2%, #ffd84d 4%, #ffd84d 96%, transparent 98%); transform: rotate(-2deg); }
.hd-lookbtn .lk-neon { color: #fff; text-shadow: 0 0 4px #ff3d6e; }
.hd-app[data-theme="light"] .hd-lookbtn .lk-neon { color: #ff3d6e; }
.hd-lookbtn .lk-boxes { background: #12131a; color: #fff; padding: 0 3px; border-radius: 3px; }
.hd-lookbtn .lk-typewriter { font-family: 'JetBrains Mono', monospace; }
.hd-lookbtn .lk-glass { border: 1px solid var(--border); padding: 0 3px; border-radius: 4px; }
.hd-lookbtn .lk-outline { color: transparent; -webkit-text-stroke: .8px var(--text); }
.hd-lookbtn .lk-marker { background: #ffd84d; color: #12131a; padding: 0 3px; }

/* The studio's theme picker in Settings (2026-11-21). */
.hd-railmenu { width: 280px; padding: 10px; gap: 4px; }
.hd-theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; font-size: 13px; font-weight: 700; }
.hd-theme-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-railmenu .hd-theme-seg button { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.hd-railmenu .hd-theme-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--hairline); }
.hd-railmenu .hd-theme-seg button.on::after { content: none; }
.hd-app:not([data-theme="light"]) .hd-railmenu .hd-theme-seg button.on { background: rgba(var(--fg-rgb), .12); }
.hd-menu-div { height: 1px; margin: 6px 2px; background: var(--hairline); }
.hd-accents { display: flex; gap: 10px; padding: 4px; }
.hd-railmenu .hd-accent { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.hd-railmenu .hd-accent:hover { background: var(--sw); transform: scale(1.06); }
.hd-railmenu .hd-accent.on { box-shadow: 0 0 0 2px var(--text); }
.hd-railmenu .hd-accent.on::after { content: none; }
.hd-bg-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 13px; color: var(--dim); }
.hd-bg-row label { flex: 1; }
.hd-bg-row input[type="color"] { width: 34px; height: 30px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; }
.hd-railmenu .hd-bg-row .hd-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* Panels on the left (2026-11-21): the panel, then the rail, then the stage. */
.hd-app.panels-left { grid-template-columns: 344px 76px minmax(0, 1fr); }
.hd-app.panels-left.wide-panel { grid-template-columns: 600px 76px minmax(0, 1fr); }
.hd-app.panels-left .hd-panel { grid-column: 1; }
.hd-app.panels-left .hd-rail { grid-column: 2; }
.hd-app.panels-left .hd-stagewrap { grid-column: 3; }
.hd-app.panels-left .hd-railbtn.on::after { right: auto; left: -8px; }
.hd-app.panels-left .hd-railmenu { right: auto; left: calc(100% + 10px); }
@media (max-width: 860px) { .hd-app.panels-left { grid-template-columns: none; } }

/* 2026-11-21 features: cards, emphasis, pinned pictures, transitions, clips, thumbnail, dock. */
.hd-addrow { display: flex; gap: 8px; }
.hd-addrow .hd-btn.wide { flex: 1; }
.hd-addrow #hd-addcard { flex: none; padding: 0 16px; }
.hd-cardline { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .03)); border: 1px solid rgba(var(--accent-rgb), .28); }
.hd-cardline .hd-field { margin: 0; }
.hd-cardline .hd-seg { margin: 0; }
.hd-cardline .hd-slider { margin: 0; }
.hd-cardtag { font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--accent), #ff3d6e); text-transform: uppercase; letter-spacing: .06em; }
.hd-card-ta { width: 100%; box-sizing: border-box; resize: none; min-height: 52px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 500 13px/1.45 inherit; font-family: inherit; }
.hd-embtn { height: 22px; padding: 0 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; color: var(--dim); background: transparent; border: 1px dashed var(--border); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-line:not(:hover):not(.active) .hd-embtn:not(.set):not(.on) { opacity: 0; }
.hd-embtn.set { color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .08); }
.hd-embtn.on { color: var(--text); border-style: solid; }
.hd-emph { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-emph .hd-seg, .hd-emph .hd-slider { margin: 0; }
.hd-emph-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.hd-emph-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hd-emph .hd-wchip.on { background: linear-gradient(135deg, var(--accent), #ff3d6e); color: #fff; border-color: transparent; }
.hd-pinchip { width: 30px; height: 18px; padding: 0; border-radius: 5px; background: var(--panel2) center / cover; border: 1px solid rgba(var(--accent-rgb), .5); flex: none; }
.hd-bgitem.two { flex-direction: column; align-items: stretch; gap: 5px; }
.hd-bgrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hd-bgopts { display: flex; gap: 6px; padding-left: 2px; }
.hd-mini { display: block; min-width: 0; }
.hd-mini.grow { flex: 1; }
.hd-mini select { width: 100%; height: 26px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 11px inherit; font-family: inherit; }
.hd-trrow { align-items: flex-start; }
.hd-trs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hd-trs button { height: 26px; padding: 0 4px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--dim); background: var(--panel2); border: 1px solid var(--hairline); }
.hd-trs button.on { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.hd-clipsel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hd-clipsel .hd-field { margin: 0; }
.hd-clipsel select { width: 100%; }
.hd-thumbprev { display: block; max-width: 100%; margin: 0 auto 10px; border-radius: 10px; box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -14px rgba(0,0,0,.5); background: #000; }
.hd-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd-kind { min-height: 58px; padding: 10px 11px; }
.hd-ctrl.play.on { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
.hd-ctrl#hd-loop.on { color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.hd-ctrl:disabled { opacity: .4; cursor: default; }

/* 2026-11-21b: Write tab, overlays, presenter, batch. */
.hd-tabs [data-tab="write"] { color: var(--accent); font-weight: 800; }
.hd-write { display: flex; flex-direction: column; gap: 8px; }
.hd-write .hd-field { margin: 0; }
.hd-write .hd-chips { margin: 0; }
.hd-werr { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: #c2183b; background: rgba(255, 61, 110, .1); }
.hd-wdraft { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .03)); border: 1px solid rgba(var(--accent-rgb), .3); }
.hd-wdraft > b { font-size: 14px; }
.hd-wdraft-t { max-height: 260px; overflow: auto; font-size: 13px; line-height: 1.5; }
.hd-wdraft-t p { margin: 0 0 6px; }
.hd-ovkinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hd-ovkind { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-ovkind:hover { border-color: var(--accent); }
.hd-ovkind small { font-size: 10.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.hd-ovprev { height: 26px; display: grid; place-items: center; }
.hd-ovprev span { font-size: 9px; font-weight: 800; white-space: nowrap; }
.ovp-sub { background: #ff0033; color: #fff; padding: 4px 7px; border-radius: 99px; } .ovp-sub i { font-style: normal; margin-right: 3px; font-size: 7px; }
.ovp-like { background: #fff; color: #12131a; padding: 4px 7px; border-radius: 99px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.ovp-grad { background: linear-gradient(135deg, #ff8a3d, #ff3d6e); color: #fff; padding: 4px 8px; border-radius: 99px; }
.ovp-name { display: flex; flex-direction: column; line-height: 1.05; background: #14141c; color: #fff; padding: 3px 7px 3px 6px; border-left: 3px solid #ff5a36; border-radius: 3px; } .ovp-name small { font-size: 7px; color: #ffd84d; }
.ovp-arrow { font-size: 18px !important; background: linear-gradient(135deg, #ff8a3d, #ff3d6e); -webkit-background-clip: text; color: transparent; }
.ovp-emoji { font-size: 20px !important; }
.ovp-text { background: #14141c; color: #fff; padding: 4px 8px; border-radius: 99px; }
.hd-ovlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hd-ovitem { border-radius: 12px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-ovitem.open { border-color: rgba(var(--accent-rgb), .45); }
.hd-ovhead { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; }
.hd-ovname { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 4px 6px; text-align: left; background: none; }
.hd-ovname b { font-size: 12.5px; }
.hd-ovname small { font-size: 11px; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-ovbody { display: flex; flex-direction: column; gap: 8px; padding: 2px 10px 10px; }
.hd-ovbody .hd-field, .hd-ovbody .hd-slider, .hd-ovbody .hd-seg { margin: 0; }
.hd-ovgrid { display: flex; gap: 10px; align-items: stretch; }
.hd-ovsegs { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hd-posgrid { display: grid; grid-template-columns: repeat(3, 22px); grid-template-rows: repeat(3, 16px); gap: 3px; padding: 5px; border-radius: 9px; background: var(--panel); border: 1px solid var(--hairline); }
.hd-posgrid button { padding: 0; border-radius: 4px; background: rgba(var(--fg-rgb, 0,0,0), .08); border: 0; display: grid; place-items: center; }
.hd-posgrid button i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.hd-posgrid button.on { background: rgba(var(--accent-rgb), .2); } .hd-posgrid button.on i { background: var(--accent); }
.hd-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.hd-emojis button { width: 32px; height: 32px; padding: 0; font-size: 17px; border-radius: 9px; background: var(--panel); border: 1px solid var(--hairline); }
.hd-emojis button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-presrow { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 11px; background: var(--panel2); margin-bottom: 8px; }
.hd-presrow .hd-thumb { border-radius: 50%; width: 38px; height: 38px; }
.hd-camwrap { margin-bottom: 12px; padding: 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-camwrap[hidden] { display: none; }
.hd-camwrap video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; transform: scaleX(-1); }
.hd-camwrap.recording video { box-shadow: 0 0 0 3px var(--live); }
.hd-camctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.hd-camtime { flex: 1; font: 700 13px 'JetBrains Mono', monospace; color: var(--dim); }
.hd-camwrap.recording .hd-camtime { color: var(--live); }
.hd-batchta { min-height: 120px; }
.hd-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hd-presbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.hd-presbtns .hd-btn { min-width: 0; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
.hd-corners { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.hd-corners .hd-seg { margin: 0; }
.hd-app .hd-ovname { border: 0; box-shadow: none; background: none; height: auto; }
.hd-app .hd-ovname:hover { background: rgba(var(--accent-rgb), .06); }

/* The teleprompter over the stage (2026-11-21). */
.hd-prompter { position: absolute; inset: 16px; z-index: 5; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(6, 6, 12, .9); backdrop-filter: blur(6px); color: #fff; }
.hd-prompter[hidden] { display: none; }
.hd-pr-view { position: relative; flex: 1; overflow: hidden; cursor: ns-resize; }
.hd-pr-guide { position: absolute; left: 0; right: 0; top: 30%; height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .9), transparent); z-index: 1; pointer-events: none; }
.hd-pr-guide::before, .hd-pr-guide::after { content: ''; position: absolute; top: -7px; border: 8px solid transparent; }
.hd-pr-guide::before { left: 6px; border-left-color: var(--accent); }
.hd-pr-guide::after { right: 6px; border-right-color: var(--accent); }
.hd-pr-text { padding: 30% 9% 60%; will-change: transform; text-align: center; }
.hd-prompter.mirror .hd-pr-text { transform-origin: center; scale: -1 1; }
.hd-pr-text p { margin: 0 0 .7em; font-weight: 700; line-height: 1.3; color: rgba(255, 255, 255, .5); cursor: pointer; transition: color .2s; }
.hd-pr-text p.lit { color: #fff; }
.hd-pr-text p.card { font-style: italic; color: rgba(255, 216, 77, .6); }
.hd-pr-text p.card.lit { color: #ffd84d; }
.hd-prompter[data-size="s"] .hd-pr-text p { font-size: 24px; }
.hd-prompter[data-size="m"] .hd-pr-text p { font-size: 34px; }
.hd-prompter[data-size="l"] .hd-pr-text p { font-size: 46px; }
.hd-pr-text .hd-pr-end { font-size: 14px !important; font-weight: 600; color: rgba(255, 255, 255, .35) !important; cursor: default; }
.hd-pr-text .hd-pr-empty { font-size: 18px !important; color: rgba(255, 255, 255, .75) !important; cursor: default; }
.hd-pr-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: rgba(0, 0, 0, .55); border-top: 1px solid rgba(255, 255, 255, .1); }
.hd-pr-bar button { height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 13px inherit; font-family: inherit; }
.hd-pr-bar button:hover { background: rgba(255, 255, 255, .2); }
.hd-pr-bar button.on { background: rgba(var(--accent-rgb), .55); }
.hd-pr-bar .hd-pr-go { min-width: 44px; background: var(--accent); }
.hd-pr-bar .sz { font-size: 11px; } .hd-pr-bar .sz.m { font-size: 14px; } .hd-pr-bar .sz.l { font-size: 17px; }
.hd-pr-wpm { min-width: 64px; text-align: center; font: 700 12px 'JetBrains Mono', monospace; color: rgba(255, 255, 255, .8); }
.hd-pr-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .15); }
.hd-pr-bar .hd-pr-x { margin-left: auto; }
/* Two more dock buttons: a little narrower so the dock still fits. */
.hd-ctrl { width: 54px; }
.hd-dock .hd-sep { margin: 0 3px; }
/* The dock's big buttons keep their dot and words with Camera and Prompter added. */
.hd-big.soft::before { flex: none; }
.hd-dock .hd-big { flex: none; padding: 0 14px; }
.hd-dock .hd-big.go { padding: 0 18px 0 16px; font-size: 14.5px; }
.hd-dock .hd-big.leave { padding: 0 13px; }

/* The tabs at the top of every combined panel (2026-11-21). */
.hd-subtabs { margin-bottom: 12px; }
.hd-subtabs[hidden] { display: none; }
.hd-subtabs[data-group="script"] button { font-size: 12.5px; padding: 0 2px; }

/* The camera on the stage (2026-11-21): the panel's picture is only its source now; the bar sits under the stage. */
.hd-camwrap { position: absolute; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.hd-app.cam-on .hd-cutrow > .hd-glass:not(.hd-cambar) { display: none; }
.hd-cambar[hidden] { display: none; }
.hd-cambar { gap: 6px; }
.hd-cambar > button { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.hd-cambar > button:hover { color: var(--text); }
.hd-cambar .hd-camgo { background: var(--live); color: #fff; }
.hd-cambar .hd-camgo:hover { color: #fff; filter: brightness(1.08); }
.hd-cambar .hd-camgo.stop { background: var(--text); color: var(--panel); }
.hd-cambar .hd-camgo[hidden] { display: none; }
.hd-cambar .hd-camtime { flex: none; min-width: 44px; text-align: center; }
.hd-app.cam-on .hd-camwrap.recording ~ * { }
.hd-camseg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-camseg button { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 12px; font-weight: 700; }
.hd-camseg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--hairline); }
.hd-app.cam-on .hd-stage { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .55), 0 30px 70px -30px rgba(var(--accent-rgb), .45); }
.hd-app.cam-on.cam-rec .hd-stage { box-shadow: 0 0 0 2px var(--live), 0 0 0 7px rgba(255, 59, 92, .14); }
/* With the camera open, the teleprompter takes only the top half, so you can see yourself under it. */
.hd-app.cam-on .hd-prompter { bottom: 48%; }

/* The presenter's background (2026-11-21). */
.hd-cutbox { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.hd-cutbox .hd-seg, .hd-cutbox .hd-slider { margin: 0; }
.hd-cutbox .hd-seg button { padding: 0 6px; font-size: 12px; }
.hd-keyrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.hd-keyrow > span { flex: 1; }
.hd-keysw { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.hd-keysw.on { box-shadow: 0 0 0 2px var(--text); }
.hd-keypick input { width: 34px; height: 28px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; }
.hd-cutbox .hd-seg { display: flex; }
.hd-cutbox .hd-seg button { flex: 1 1 auto; min-width: 0; padding: 0 7px; font-size: 11.5px; white-space: nowrap; }

.hd-pr-bar .hd-pr-phone { margin-left: auto; background: rgba(var(--accent-rgb), .55); }
.hd-pr-bar .hd-pr-phone + .hd-pr-x { margin-left: 0; }

/* A line's own speed (2026-11-21). */
.hd-spchip { background: rgba(var(--fg-rgb, 0,0,0), .06); color: var(--dim); }
.hd-spchip.set { background: rgba(20, 179, 145, .14); color: #0f8a70; }
.hd-app:not([data-theme="light"]) .hd-spchip.set { color: #5dcaa5; }

/* ✦ Add punctuation (2026-11-22). */
.hd-punct { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04)); border: 1px solid rgba(var(--accent-rgb), .35); font-size: 12.5px; line-height: 1.45; }
.hd-punct[hidden] { display: none; }
.hd-punct .hd-btn { align-self: flex-start; }
.hd-punct-any { margin-top: 6px; }

/* The Timeline's tools (2026-11-22). */
.hd-tltools { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; padding: 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-tltools button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-size: 12.5px; font-weight: 700; }
.hd-tltools button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-tltools button:hover:not(:disabled) { background: var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.hd-tltools button:disabled { opacity: .4; cursor: default; }
.hd-tltools #hd-tl-split-line:not(:disabled), .hd-tltools #hd-tl-split-pic:not(:disabled) { color: var(--accent); }
.hd-tl-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--hairline); }
.hd-tl-at { margin-left: auto; padding: 0 8px; font: 700 12px 'JetBrains Mono', monospace; color: var(--dim); }

/* The Timeline: zoom, add, edit, reorder (2026-11-22). */
.hd-tl-scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; scrollbar-width: thin; }
.hd-tl-scroll .hd-tracks { min-width: 100%; }
.hd-wave { will-change: transform; }
.hd-tl-zoom { min-width: 46px; text-align: center; font: 700 11.5px 'JetBrains Mono', monospace; color: var(--dim); }
.hd-tltools #hd-tl-zfit { padding: 0 9px; }
.hd-block { cursor: pointer; touch-action: none; }
.hd-block.sel { box-shadow: 0 0 0 2px var(--accent); z-index: 2; }
.hd-block.dragging { opacity: .75; z-index: 5; cursor: grabbing; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.hd-bvid { font-style: normal; font-size: 9px; margin-right: 2px; color: var(--accent); }
.hd-tl-add { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); z-index: 3; width: 26px; height: 26px; padding: 0; border-radius: 8px; border: 1px dashed var(--border); background: var(--panel); color: var(--accent); font-size: 15px; font-weight: 800; }
.hd-tl-add:hover { border-style: solid; border-color: var(--accent); }
.hd-tracks.over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.hd-tl-edit { margin: 12px 0 8px; padding: 12px; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb), .45); background: var(--panel2); display: flex; flex-direction: column; gap: 10px; }
.hd-tl-edit[hidden] { display: none; }
.hd-tle-h { display: flex; align-items: center; gap: 8px; }
.hd-tle-h .hd-thumb { width: 44px; height: 28px; border-radius: 6px; flex: none; }
.hd-tle-h b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-tle-h small { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.hd-tle-h .hd-x { margin-left: auto; }
.hd-tle-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hd-tle-f .hd-field { margin: 0; font-size: 12px; }
.hd-tle-f input, .hd-tle-f select { width: 100%; }
.hd-tle-a { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-btn.hd-danger { color: #d61f45; }
.hd-tl-scroll { flex: 1 1 auto; }
.hd-tltools { flex-wrap: wrap; row-gap: 2px; }
.hd-tltools button { white-space: nowrap; padding: 0 9px; }
.hd-tl-zgrp { display: inline-flex; align-items: center; gap: 2px; }
.hd-tltools .hd-tl-zgrp button { padding: 0 7px; }
.hd-tltools button.hd-tl-zoom { min-width: 54px; justify-content: center; font: 700 11.5px 'JetBrains Mono', monospace; color: var(--dim); }

/* Ultra batch (2026-11-22): the second layer and effects rows, chapter flags, effects panel, audiogram tiles,
   chapters list, layer position picker. */
.hd-tl-labels span.l-ruler { height: 14px; }
.hd-tl-labels span.l-bg { height: 38px; }
.hd-tl-labels span.l-layer { height: 30px; }
.hd-tl-labels span.l-wave { height: 46px; }
.hd-tl-labels span.l-cap { height: 26px; }
.hd-tl-labels span.l-sfx { height: 24px; }
.hd-tl-labels span.l-music { height: 34px; }
.hd-row-layer { position: relative; height: 30px; border-radius: 9px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(var(--accent-rgb), .04) 10px 20px); }
.hd-row-layer .hd-block { padding: 0 10px 0 4px; }
.hd-row-layer .hd-bdot { width: 22px; height: 20px; }
.hd-lblock { border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .1); }
.hd-row-sfx { position: relative; height: 24px; border-radius: 9px; background: var(--panel2); }
.hd-sfxm { position: absolute; top: 2px; width: 20px; height: 20px; margin-left: -10px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; cursor: grab; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 1; }
.hd-sfxm.auto { background: var(--panel); color: var(--dim); border: 1px dashed var(--border); cursor: default; box-shadow: none; }
.hd-sfxm.sel { outline: 2px solid var(--text); outline-offset: 1px; z-index: 2; }
.hd-row-sfx .hd-tl-add, .hd-row-layer .hd-tl-add { width: 22px; height: 22px; font-size: 13px; }
.hd-chapf { position: absolute; top: -1px; font: 700 9.5px 'Plus Jakarta Sans', sans-serif; color: var(--accent); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; padding-left: 3px; border-left: 2px solid var(--accent); line-height: 13px; pointer-events: none; }
.hd-sfxgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hd-sfx { position: relative; }
.hd-sfx-hear { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--panel2); color: var(--text); }
.hd-sfx-hear span { font-size: 18px; color: var(--accent); line-height: 1; }
.hd-sfx-hear b { font-size: 11.5px; }
.hd-sfx-hear:hover { border-color: rgba(var(--accent-rgb), .5); }
.hd-sfx-add { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border-radius: 7px; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.hd-sfxlist, .hd-chaplist { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.hd-sfxrow, .hd-chaprow { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--hairline); }
.hd-sfxrow select { min-width: 0; flex: 1 1 0; }
.hd-sfxrow input[type=range] { width: 64px; flex: none; }
.hd-sfxrow .hd-secs input { width: 52px; }
.hd-sfxat, .hd-chaprow .hd-mono { font-size: 11px; color: var(--dim); min-width: 34px; }
.hd-chaprow input.hd-winput { flex: 1 1 0; min-width: 0; }
.hd-chaprow select { width: 112px; flex: none; }
.hd-agtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.hd-agtile { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--panel2); color: var(--text); }
.hd-agtile span { display: block; aspect-ratio: 16 / 9; border-radius: 8px; background: #14121c center / cover no-repeat; }
.hd-agtile small { font-size: 11px; font-weight: 700; }
.hd-agtile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-tle-pos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hd-tle-pos button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--panel); color: var(--text); }
.hd-tle-pos button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hd-tle-pos small { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.hd-tle-pos i { position: relative; width: 38px; height: 22px; border-radius: 4px; background: var(--tile, rgba(127,127,127,.25)); overflow: hidden; }
.hd-tle-pos i::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; }
.hd-tle-pos i.p-tr::after { top: 3px; right: 3px; width: 14px; height: 8px; }
.hd-tle-pos i.p-tl::after { top: 3px; left: 3px; width: 14px; height: 8px; }
.hd-tle-pos i.p-br::after { bottom: 3px; right: 3px; width: 14px; height: 8px; }
.hd-tle-pos i.p-bl::after { bottom: 3px; left: 3px; width: 14px; height: 8px; }
.hd-tle-pos i.p-center::after { top: 6px; left: 11px; width: 16px; height: 10px; }
.hd-tle-pos i.p-left::after { top: 0; left: 0; width: 19px; height: 22px; border-radius: 0; }
.hd-tle-pos i.p-right::after { top: 0; right: 0; width: 19px; height: 22px; border-radius: 0; }
.hd-tle-pos i.p-full::after { inset: 0; border-radius: 0; }
.hd-sfxthumb { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.hd-tle-f .hd-field output { font: 700 11px 'JetBrains Mono', monospace; color: var(--accent); }
.hd-tle-f input[type=range] { margin-top: 6px; }
.hd-bgopts { flex-wrap: wrap; }
.hd-bgopts .hd-mini { flex: 1 1 45%; }
.hd-gifrow { display: flex; align-items: flex-end; gap: 8px; }
.hd-gifrow .hd-field { flex: 1 1 auto; margin: 0; }

/* Herald's plans (2026-11-22): the plan pill, the upgrade card, locks. */
.hd-plan { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); color: var(--text); font-size: 12.5px; }
.hd-plan[hidden] { display: none; }
.hd-plan b { font-weight: 800; }
.hd-plan span { color: var(--accent); font-weight: 800; }
.hd-upsell { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(8, 8, 14, .45); backdrop-filter: blur(4px); }
.hd-upsell-card { width: min(420px, calc(100vw - 32px)); padding: 24px; border-radius: 20px; background: var(--panel); color: var(--text); border: 1px solid var(--hairline); box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: center; }
.hd-upsell-card h3 { margin: 10px 0 8px; font-size: 18px; }
.hd-upsell-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.hd-upsell-card .hd-row { justify-content: center; gap: 8px; margin-top: 14px; }
.hd-upsell-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 22px; }
.hd-lock { font-style: normal; font-size: 10px; margin-left: 5px; opacity: .8; }
.hd-opt.locked, .hd-kind.locked { opacity: .72; }
.hd-linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 800; text-decoration: underline; cursor: pointer; font-size: inherit; }
