/* =========================================================================
   ADS STUDIO — admin studio (Concepts / Footage / Ads tabs + scene editor)
   and the client-portal recorder (teleprompter overlay). Linked by BOTH
   shells: Magnet CRM.html (studio) and Client App.html (recorder + banner).
   ========================================================================= */

/* ---- studio shell ------------------------------------------------------ */
.ads-studio { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); max-width: 1060px; margin: 0 auto; width: 100%; }
.as-head { display: flex; align-items: center; gap: var(--space-4); }
.as-head-txt h2 { margin: 0; font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--text-strong); }
.as-head-txt span { font-size: var(--text-sm); color: var(--text-soft); }
.as-tabs { align-self: flex-start; }
.as-tabcount { margin-left: 6px; font-size: var(--text-2xs); font-weight: var(--fw-semibold); color: var(--text-soft); background: var(--surface-sunk); border-radius: 999px; padding: 1px 7px; }
.as-tabs button.active .as-tabcount { color: var(--primary-600); background: var(--primary-50); }
.as-body { display: flex; flex-direction: column; gap: var(--space-4); }
/* toolbar client-picker chip */
.as-clientpick { max-width: 260px; }
.as-clientpick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- concepts: generate box ------------------------------------------- */
.asgen { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid color-mix(in srgb, var(--primary-600) 22%, var(--border-faint)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary-600) 4%, var(--surface)); }
.asgen-head { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--primary-600); }
/* icon() emits size-less SVGs (viewBox only) — every bare drop-in needs an
   explicit size or it fills its container */
.asgen-head > svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.asgen-head > div { display: flex; flex-direction: column; gap: 2px; }
.asgen-head strong { font-size: var(--text-md); font-weight: var(--fw-bold); color: var(--text-strong); }
.asgen-head span { font-size: var(--text-sm); color: var(--text-soft); }
.asgen-notes { width: 100%; resize: vertical; min-height: 40px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-field); color: var(--text); font: inherit; font-size: var(--text-sm); }
.asgen-notes:focus { outline: none; border-color: var(--primary-400); }
.asgen-foot { display: flex; align-items: center; gap: var(--space-3); }
.asgen-err { font-size: var(--text-sm); color: var(--danger-600); background: var(--danger-bg); border-radius: var(--radius-md); padding: 8px 12px; }

/* ---- concepts: cards ---------------------------------------------------- */
.as-filterrow { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.as-filterrow .btn.is-on { border-color: var(--primary-400); color: var(--primary-600); background: var(--primary-50); }
.ascards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
.ascards .lead-empty, .asf-grid .lead-empty { grid-column: 1 / -1; }
.ascard { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
.ascard.status-assigned { border-color: color-mix(in srgb, var(--success-600) 45%, var(--border)); }
.ascard.status-archived { opacity: 0.7; }
.ascard-head { display: flex; align-items: center; gap: var(--space-2); }
.ascard-status { font-size: var(--text-2xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-soft); background: var(--surface-sunk); border-radius: 999px; padding: 3px 9px; }
.ascard.status-approved .ascard-status { color: var(--primary-600); background: var(--primary-50); }
.ascard.status-assigned .ascard-status { color: var(--success-600); background: var(--success-bg); }
.ascard-ai { display: inline-flex; color: var(--primary-500); }
.ascard-ai svg { width: 14px; height: 14px; }
.ascard-takes { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--success-600); }
.ascard-takes svg { width: 13px; height: 13px; }
.ascard-title { margin: 0; font-size: var(--text-md); font-weight: var(--fw-bold); color: var(--text-strong); }
.ascard-angle { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.ascard-hook { margin: 0; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text); }
.ascard-script { margin: 0; font-size: var(--text-sm); color: var(--text-soft); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ascard-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--space-2); }
.ascard-live { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--success-600); }
.ascard-live svg { width: 14px; height: 14px; }

/* edit/create sheet */
.asedit { display: flex; flex-direction: column; gap: var(--space-4); }
.asedit label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.asedit-sub { font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text-muted); }
.asedit input, .asedit textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-field); color: var(--text); font: inherit; font-size: var(--text-sm); resize: vertical; }
.asedit input:focus, .asedit textarea:focus { outline: none; border-color: var(--primary-400); }

/* ---- footage ------------------------------------------------------------ */
.asf-bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.asf-count { margin-left: 6px; font-size: var(--text-2xs); font-weight: var(--fw-semibold); color: var(--text-soft); }
.asf-uploading { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.asf-up-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-soft); }
.asf-up-track { height: 6px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.asf-up-bar { height: 100%; border-radius: 999px; background: var(--primary-600); transition: width 0.2s var(--ease); }
.asf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4); }
.asf-card { display: flex; flex-direction: column; gap: var(--space-2); cursor: pointer; min-width: 0; }
.asf-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); border: 1px solid var(--border-faint); display: flex; align-items: center; justify-content: center; }
.asf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asf-glyph { display: inline-flex; color: var(--text-muted); }
.asf-glyph svg { width: 28px; height: 28px; }
.asf-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, 0.18); opacity: 0.9; }
.asf-play svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5)); }
.asf-kind { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-2xs); font-weight: var(--fw-semibold); color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 999px; padding: 3px 8px; backdrop-filter: blur(4px); }
.asf-kind svg { width: 11px; height: 11px; }
.asf-kind.take { background: color-mix(in srgb, var(--success-600) 82%, black); }
.asf-dur { position: absolute; bottom: 8px; right: 8px; font-size: var(--text-2xs); font-weight: var(--fw-semibold); color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: var(--radius-xs); padding: 2px 6px; }
.asf-del { position: absolute; top: 6px; right: 6px; color: #fff; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.15s var(--ease); }
.asf-card:hover .asf-del, .asf-card:focus-within .asf-del { opacity: 1; }
.asf-del:hover { background: color-mix(in srgb, var(--danger-600) 80%, black); color: #fff; }
.asf-meta { display: flex; flex-direction: column; min-width: 0; }
.asf-name { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asf-sub { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* preview modal */
.asprev { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.asprev-media { max-width: 100%; max-height: 62vh; border-radius: var(--radius-lg); background: #000; }
img.asprev-media { object-fit: contain; }
.asprev-facts { font-size: var(--text-sm); color: var(--text-soft); }

/* ---- ads: list ----------------------------------------------------------- */
.ase-bar { display: flex; align-items: center; gap: var(--space-3); }
.ase-bar-hint { font-size: var(--text-sm); color: var(--text-muted); }
.ase-list { display: flex; flex-direction: column; gap: var(--space-3); }
.ase-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; }
.ase-card:hover { background: var(--surface-hover); }
.ase-card-thumb { position: relative; flex: 0 0 auto; width: 54px; aspect-ratio: 9 / 16; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); border: 1px solid var(--border-faint); display: flex; align-items: center; justify-content: center; }
.ase-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ase-card-thumb .asf-play svg { width: 18px; height: 18px; }
.ase-card-thumb .asf-glyph svg { width: 18px; height: 18px; }
.ase-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ase-card-title { font-size: var(--text-md); font-weight: var(--fw-bold); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ase-card-actions { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }

/* status chips + spinner */
.ase-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: var(--fw-semibold); border-radius: 999px; padding: 3px 10px; color: var(--text-soft); background: var(--surface-sunk); white-space: nowrap; }
.ase-chip svg { width: 13px; height: 13px; }
.ase-chip.rendered { color: var(--success-600); background: var(--success-bg); }
.ase-chip.rendering { color: var(--primary-600); background: var(--primary-50); }
.ase-chip.failed { color: var(--danger-600); background: var(--danger-bg); }
.ase-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: ase-spin 0.8s linear infinite; flex: 0 0 auto; }
@keyframes ase-spin { to { transform: rotate(360deg); } }

/* ---- ads: editor ---------------------------------------------------------- */
.ase-editor { display: flex; flex-direction: column; gap: var(--space-4); }
.ase-ed-head { display: flex; align-items: center; gap: var(--space-3); }
.ase-title { flex: 1; min-width: 80px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; padding: 8px 10px; font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--text-strong); font-family: inherit; }
.ase-title:hover { border-color: var(--border-faint); }
.ase-title:focus { outline: none; border-color: var(--primary-400); background: var(--surface-field); }
.ase-fail { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--danger-600); background: var(--danger-bg); border-radius: var(--radius-md); padding: 10px 14px; }
.ase-fail svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.ase-result { display: flex; justify-content: center; }
.ase-result video { max-height: 420px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: #000; }
.ase-scenes { display: flex; flex-direction: column; gap: var(--space-3); }
.ase-scene { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ase-scene.is-broken { border-color: color-mix(in srgb, var(--danger-600) 45%, var(--border)); }
.ase-scene-n { flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--fw-bold); color: var(--text-soft); background: var(--surface-sunk); border-radius: 50%; margin-top: 4px; }
.ase-scene-thumb { flex: 0 0 auto; width: 48px; aspect-ratio: 9 / 16; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); border: 1px solid var(--border-faint); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ase-scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ase-scene-thumb .asf-glyph svg { width: 16px; height: 16px; }
.ase-scene-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ase-scene-top { display: flex; align-items: center; gap: var(--space-2); }
.ase-scene-label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ase-scene-len { font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.ase-trim { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ase-trim label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-soft); }
.ase-trim input { width: 74px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-field); color: var(--text); font: inherit; font-size: var(--text-sm); }
.ase-trim input:focus { outline: none; border-color: var(--primary-400); }
.ase-cap { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-field); color: var(--text); font: inherit; font-size: var(--text-sm); }
.ase-cap:focus { outline: none; border-color: var(--primary-400); }
.ase-scene-side { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.ase-ed-foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ase-total { font-size: var(--text-xs); color: var(--text-muted); }
.ase-total.over { color: var(--danger-600); font-weight: var(--fw-semibold); }
.ase-picker .asf-grid--pick { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---- studio mobile ------------------------------------------------------ */
@media (max-width: 640px) {
  .ads-studio { padding: var(--space-4); gap: var(--space-4); }
  .ascards { grid-template-columns: 1fr; }
  .asf-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .asf-del { opacity: 1; }   /* no hover on touch — keep delete reachable */
  .ase-bar-hint { display: none; }
  .ase-scene { flex-wrap: wrap; }
  .ase-scene-side { flex-direction: row; width: 100%; justify-content: flex-end; }
  .ase-ed-head { flex-wrap: wrap; }
  .ase-title { flex-basis: 100%; order: 10; }
}

/* =========================================================================
   CLIENT PORTAL — record banner, popup and the full-screen recorder
   ========================================================================= */
.adrec-banner { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary-600) 35%, var(--border-faint)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary-600) 6%, var(--surface)); }
.adrec-banner-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); }
.adrec-banner-ico svg { width: 17px; height: 17px; }
.adrec-banner-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.adrec-banner-txt strong { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.adrec-banner-txt span { font-size: var(--text-xs); color: var(--text-soft); }
.adrec-pop { text-align: center; padding: 6px 4px 2px; }
.adrec-pop-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); margin-bottom: 10px; }
.adrec-pop-ico svg { width: 22px; height: 22px; }
.adrec-pop h3 { margin: 0 0 6px; font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--text-strong); }
.adrec-pop p { margin: 0; font-size: var(--text-sm); color: var(--text-soft); }

/* full-screen surface — sits ABOVE the modal layer (z 60): the recorder owns
   the whole screen while open (camera + teleprompter need every pixel). */
.adrec-ov { position: fixed; inset: 0; z-index: 100; background: #0b0b10; color: #fff; display: flex; flex-direction: column; overscroll-behavior: contain; }
.adrec-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; flex: 0 0 auto; }
.adrec-top-title { flex: 1; min-width: 0; font-size: var(--text-md); font-weight: var(--fw-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adrec-top .kebab { color: #fff; background: rgba(255, 255, 255, 0.12); }
.adrec-top .kebab:hover { background: rgba(255, 255, 255, 0.2); }
.adrec-pager { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.75); }

/* step: script review */
.adrec-scriptstep { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; width: 100%; }
.adrec-hook { font-size: var(--text-xl); font-weight: var(--fw-bold); line-height: var(--leading-snug); }
.adrec-script { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; white-space: pre-line; font-size: var(--text-md); line-height: var(--leading-relaxed); color: rgba(255, 255, 255, 0.85); }
.adrec-takechip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: var(--text-xs); font-weight: var(--fw-semibold); color: #6ee7a0; background: rgba(110, 231, 160, 0.12); border-radius: 999px; padding: 4px 10px; }
.adrec-takechip svg { width: 13px; height: 13px; }
.adrec-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.adrec-actions .btn { justify-content: center; padding: 13px 16px; font-size: var(--text-md); }
.adrec-actions .btn:not(.btn-primary) { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.adrec-hint { text-align: center; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.55); }

/* step: camera */
.adrec-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.adrec-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }   /* mirrored self-view */
.adrec-video.is-playback { transform: none; object-fit: contain; }
.adrec-tele { position: absolute; top: 0; left: 0; right: 0; height: 44%; overflow: hidden; padding: 10px 18px 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.45) 82%, transparent); pointer-events: none; }
.adrec-tele-txt { white-space: pre-line; font-size: 22px; line-height: 1.5; font-weight: var(--fw-semibold); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); transform: translateY(0); will-change: transform; padding-bottom: 60vh; }
.adrec-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: var(--fw-bold); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); pointer-events: none; }
.adrec-timer { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: var(--fw-semibold); background: rgba(0, 0, 0, 0.55); border-radius: 999px; padding: 5px 12px; }
.adrec-timer .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; animation: adrec-blink 1.1s ease-in-out infinite; }
@keyframes adrec-blink { 50% { opacity: 0.25; } }
.adrec-controls { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); flex: 0 0 auto; }
.adrec-side { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: var(--text-2xs); color: rgba(255, 255, 255, 0.7); background: none; border: 0; cursor: pointer; width: 64px; }
.adrec-side .kebab { color: #fff; background: rgba(255, 255, 255, 0.12); width: 38px; height: 38px; }
.adrec-rec { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.adrec-rec .core { width: 54px; height: 54px; border-radius: 50%; background: #ff4d4f; transition: all 0.18s var(--ease); }
.adrec-rec.is-on .core { width: 26px; height: 26px; border-radius: 8px; }
.adrec-rec:disabled { opacity: 0.5; }

/* step: review / upload / done */
.adrec-reviewbar { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); flex: 0 0 auto; }
.adrec-reviewbar .row { display: flex; gap: 10px; }
.adrec-reviewbar .btn { flex: 1; justify-content: center; padding: 13px 16px; font-size: var(--text-md); }
.adrec-reviewbar .btn:not(.btn-primary) { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.adrec-up { display: flex; flex-direction: column; gap: 8px; }
.adrec-up-head { display: flex; justify-content: space-between; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.8); }
.adrec-up-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.adrec-up-bar { height: 100%; border-radius: 999px; background: var(--primary-500); transition: width 0.2s var(--ease); }
.adrec-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.adrec-done-ico { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(110, 231, 160, 0.14); color: #6ee7a0; }
.adrec-done-ico svg { width: 30px; height: 30px; }
.adrec-done h3 { margin: 0; font-size: var(--text-xl); font-weight: var(--fw-bold); }
.adrec-done p { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.7); max-width: 340px; }
.adrec-err { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 20px; }
.adrec-err p { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.75); max-width: 360px; }

/* desktop: the recorder still works (webcam) — cap the stage like a phone */
@media (min-width: 700px) {
  .adrec-stage { margin: 0 auto; width: min(420px, 100%); border-radius: var(--radius-xl); }
  .adrec-ov { align-items: stretch; }
}
