/* ==========================================================================
   Podcast Studio — système de design
   Sombre, net, précis : surfaces en couches, une seule couleur d'accent, mouvements courts.
   ========================================================================== */
:root {
  /* Palette RCT (rctraining.pro) : bleu nuit, bleu roi, or */
  --bg: #070c18; --bg-2: #0a1020; --surface: #0e1628; --surface-2: #111a2e; --surface-3: #18233b; --surface-4: #212e4a;
  --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .1); --line-3: rgba(255, 255, 255, .17);
  --text: #f1f3f7; --muted: rgba(241, 243, 247, .7); --faint: rgba(241, 243, 247, .46);
  --accent: #4059db; --accent-2: #6c8aff; --accent-3: #2f44b8; --accent-soft: rgba(64, 89, 219, .18); --accent-line: rgba(108, 138, 255, .45);
  --gold: #fcd34d; --gold-soft: rgba(252, 211, 77, .14);
  --rec: #ef4444; --rec-soft: rgba(239, 68, 68, .15); --ok: #22c55e; --ok-soft: rgba(34, 197, 94, .14); --warn: #fcd34d; --warn-soft: rgba(252, 211, 77, .13);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45); --shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--line);
  --shadow-pop: 0 24px 64px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss03";
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { font-size: 14px; line-height: 1.5; letter-spacing: -.006em; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; font-weight: 650; line-height: 1.2; }
h1, .display { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 30px; line-height: 1.1; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0; }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-sm);
  transition: background-color .15s ease, border-color .15s ease, transform .16s var(--ease-out), opacity .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(180deg, #5a72ea, var(--accent) 55%, var(--accent-3)); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .5), 0 8px 22px -8px rgba(64, 89, 219, .7); }
.btn.danger { background: linear-gradient(180deg, #f26666, var(--rec)); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 18px -6px rgba(239, 68, 68, .5); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--surface-3); border-color: var(--line-3); }
  .btn.primary:hover { background: linear-gradient(180deg, #6c82f0, #4d66e3 55%, var(--accent)); }
  .btn.danger:hover { filter: brightness(1.06); }
  .btn.ghost:hover { background: var(--surface-2); color: var(--text); }
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; border: 0; flex: none;
  background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface-3); color: var(--text); } }

/* ---------- Champs ---------- */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input[type=number] { width: 90px; height: 34px; }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
select { appearance: none; padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239d9daa' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 550; color: var(--muted); min-width: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 20px; }
input[type=color] { width: 40px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); padding: 3px; cursor: pointer; }
.with-ic { position: relative; }
.with-ic > .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.with-ic > select, .with-ic > input { padding-left: 36px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--surface-4); position: relative; flex: none; transition: background-color .2s ease; box-shadow: inset 0 0 0 1px var(--line-2); }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease-out); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.switch input:checked + .track { background: var(--accent); box-shadow: none; }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch .lbl { display: flex; flex-direction: column; font-weight: 550; font-size: 13.5px; }
.switch .lbl small { font-weight: 400; color: var(--muted); font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.rec { background: var(--rec-soft); color: #f87171; } .badge.accent { background: var(--accent-soft); color: var(--accent-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--surface-3); box-shadow: inset 0 -1px 0 var(--line-2); font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Logo ---------- */
.logo { width: 46px; height: 17px; flex: none; background: url(/rct-logo-white.png) center / contain no-repeat; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand .brand-sub { color: var(--accent-2); }

/* ---------- Coquille de l'app (hôte) ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; background: var(--bg-2); border-right: 1px solid var(--line); }
.sidebar .brand { padding: 4px 8px 18px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: 13.5px; transition: background-color .15s ease, color .15s ease; }
.nav-item.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav-item .count-pill { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .nav-item:not(.on):hover { background: var(--surface-2); color: var(--text); } }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.side-foot .who { min-width: 0; flex: 1; font-size: 12.5px; }
.side-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.main { min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; padding: 30px 40px 0; flex-wrap: wrap; max-width: 1240px; }
.page-head .titles { min-width: 0; flex: 1; }
.page-head p { margin-top: 8px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); margin-bottom: 10px; font-weight: 550; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.content { padding: 26px 40px 80px; max-width: 1240px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.section-head .ic { color: var(--faint); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar .brand { padding: 0 8px 0 0; } .nav-label, .side-foot .who { display: none; }
  .side-foot { margin: 0 0 0 auto; padding: 4px; border: 0; background: none; }
  .page-head { padding: 22px 18px 0; } .content { padding: 18px 18px 60px; }
}

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card.flat { background: var(--bg-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.studio-card { padding: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; transition: border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease; animation: rise .4s var(--ease-out) both; }
.grid > :nth-child(2) { animation-delay: 40ms; } .grid > :nth-child(3) { animation-delay: 80ms; } .grid > :nth-child(4) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (hover: hover) and (pointer: fine) { .studio-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); } }
.cover { position: relative; height: 112px; overflow: hidden; background:
  radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--c) 70%, transparent) 0%, transparent 55%),
  radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--c) 35%, transparent) 0%, transparent 60%), var(--surface-2); }
.cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 7px); mask: linear-gradient(transparent, #000 40%, transparent); }
.studio-card > .mono-av { position: absolute; left: 18px; top: 86px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: color-mix(in srgb, var(--c) 85%, #000); box-shadow: 0 0 0 4px var(--surface), 0 8px 20px -6px rgba(0, 0, 0, .6); z-index: 1; }
.cover .cover-tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 1; }
.cover .cover-tags .badge { background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); color: #e6e6ee; }
.studio-body { padding: 32px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.studio-body h3 { font-size: 16px; }
.stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.stats span { display: inline-flex; align-items: center; gap: 5px; } .stats .ic { color: var(--faint); }
.studio-actions { display: flex; gap: 8px; margin-top: auto; }
.studio-actions .btn.primary { flex: 1; }
.empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-xl); background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%); }
.empty > .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent-2); margin: 0 auto 16px; }
.empty h3 { font-size: 17px; } .empty p { margin: 8px auto 20px; max-width: 380px; }

/* Tableau des prises */
.table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.t-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) 130px 80px minmax(0, 1.2fr) 120px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); transition: background-color .12s ease; }
.t-row.head { border-top: 0; padding-top: 10px; padding-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); }
a.t-row { cursor: pointer; }
.t-row > .badge { justify-self: start; } @media (hover: hover) and (pointer: fine) { a.t-row:hover { background: var(--surface-2); } }
.t-row .t-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row .t-sub { font-size: 12px; color: var(--faint); }
.t-row .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.avstack { display: flex; } .avstack .avatar { box-shadow: 0 0 0 2px var(--surface); } .avstack .avatar + .avatar { margin-left: -6px; }
@media (max-width: 900px) { .t-row { grid-template-columns: minmax(0, 1fr) auto; } .t-row > :nth-child(2), .t-row > :nth-child(3), .t-row > :nth-child(4), .t-row > :nth-child(5) { display: none; } }
.search { max-width: 280px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 550; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--accent); flex: none; letter-spacing: 0; }
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; align-items: center; }
.meta > span { display: inline-flex; align-items: center; gap: 5px; } .meta .ic { color: var(--faint); }

/* Page d'une prise */
.take-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .take-layout { grid-template-columns: 1fr; } }
input.title-input { background: transparent; border: 1px solid transparent; font-size: 26px; font-weight: 650; letter-spacing: -.022em; height: 44px; padding: 0 8px; margin-left: -9px; border-radius: 10px; }
input.title-input:hover { border-color: var(--line-2); } input.title-input:focus { background: var(--surface); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.person-block { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.person-block + .person-block { margin-top: 12px; }
.person-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.person-head b { font-weight: 600; }
.trk { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.trk + .trk { border-top: 1px solid var(--line); }
.trk .kind { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); }
.trk .trk-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 550; font-size: 13.5px; }
.trk video { width: 100%; max-height: 220px; margin-top: 10px; border-radius: 10px; background: #000; display: block; }
.wave { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; }
.wave .play { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--text); color: #000; cursor: pointer; transition: transform .16s var(--ease-out); }
.wave .play:active { transform: scale(.92); }
.wave canvas { width: 100%; height: 44px; display: block; cursor: pointer; }
.wave .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 88px; text-align: right; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px; }
.side-card + .side-card { margin-top: 14px; }
.side-card h3 { font-size: 13.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.side-card h3 .ic { color: var(--faint); }
.claude-box { background: linear-gradient(160deg, rgba(64, 89, 219, .2), rgba(64, 89, 219, .03) 60%), var(--surface); border-color: var(--accent-line); }
.claude-box pre { margin: 12px 0 0; padding: 10px 12px; background: rgba(0, 0, 0, .35); border-radius: 10px; white-space: pre-wrap; word-break: break-word; color: var(--muted); max-height: 120px; overflow: auto; }
.marker-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: background-color .12s ease; }
@media (hover: hover) and (pointer: fine) { .marker-row:hover { background: var(--surface-2); } }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.export-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.export-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .export-btn:hover { border-color: var(--accent-line); background: var(--surface-2); } }
.export-btn b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.export-btn small { color: var(--faint); font-size: 11.5px; line-height: 1.35; }
.export-btn:disabled { opacity: .6; cursor: progress; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; }
.file-row .mono { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Toasts & modales ---------- */
#toasts { position: fixed; bottom: 104px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { background: rgba(17, 26, 46, .92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-pop); font-weight: 550; font-size: 13.5px; max-width: min(560px, 92vw); text-align: center; pointer-events: auto;
  transition: opacity .3s ease, transform .3s var(--ease-out); @starting-style { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast.error { border-color: rgba(239, 68, 68, .5); color: #fecaca; } .toast.ok { border-color: rgba(52, 211, 153, .4); }
.toast.out { opacity: 0; transform: translateY(6px); }
dialog.modal { border: 0; background: var(--surface); color: var(--text); border-radius: var(--r-xl); padding: 0; width: min(500px, 94vw); box-shadow: var(--shadow-pop);
  transition: opacity .2s ease, transform .22s var(--ease-out); @starting-style { opacity: 0; transform: scale(.96); } }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0 22px; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 22px 20px; }
.link-box { display: flex; gap: 8px; } .link-box input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.45; }

/* ---------- Écrans centrés (connexion, fin de session) ---------- */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(50% 45% at 50% 0%, rgba(64, 89, 219, .2), transparent 70%), var(--bg); }
.center-screen .card { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 34px 30px; box-shadow: var(--shadow-pop); border-color: var(--line-2); animation: rise .4s var(--ease-out) both; }
.auth-card { text-align: left !important; align-items: stretch !important; }
.auth-card .logo { width: 92px; height: 34px; margin-bottom: 6px; }
.big-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent-2); }
.progress { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width .3s ease; border-radius: inherit; }

/* ---------- Salle d'accueil (lobby) ---------- */
.lobby { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(60% 50% at 30% 0%, rgba(64, 89, 219, .16), transparent 70%), var(--bg); }
.lobby-card { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; animation: rise .45s var(--ease-out) both; }
.preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #000; box-shadow: var(--shadow-pop); }
.preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .cam-off { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface)); color: var(--muted); }
.preview .pv-name { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 9px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(12px); font-weight: 600; font-size: 13px; }
.preview .pv-q { position: absolute; right: 14px; top: 14px; }
.preview .pv-q .badge { background: rgba(0, 0, 0, .5); backdrop-filter: blur(12px); color: #ddd; }
.mirror { transform: scaleX(-1); }
.vu { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--faint); }
.meter { flex: 1; height: 8px; border-radius: 3px; background: var(--surface-3); overflow: hidden; position: relative;
  mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok) 0 60%, #d4f05c 75%, var(--warn) 88%, var(--rec)); background-size: 100vw 100%; transition: width .06s linear; }
.lobby-hint { font-size: 12.5px; color: var(--faint); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.lobby-form { display: flex; flex-direction: column; gap: 16px; }
.lobby-form h1 { font-size: 34px; }
.form-group { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.form-group .g-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bg-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bg-chip { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 10px; position: relative; overflow: hidden; padding: 0; transition: transform .16s var(--ease-out), box-shadow .15s ease; background: var(--surface-3); }
.bg-chip:active { transform: scale(.94); }
.bg-chip.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); border-color: transparent; }
.role-line { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .lobby-card { grid-template-columns: 1fr; } .bg-chips { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* ---------- Studio en direct ---------- */
.studio { height: 100vh; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: radial-gradient(70% 60% at 50% 110%, rgba(64, 89, 219, .1), transparent 70%), var(--bg); overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(7, 12, 24, .7); backdrop-filter: blur(20px); z-index: 5; min-width: 0; }
.topbar .name { font-weight: 650; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sep { width: 1px; height: 18px; background: var(--line-2); }
.rec-badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-badge.on { background: var(--rec); color: #fff; box-shadow: 0 0 0 4px var(--rec-soft); }
.up-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .3s ease; }
.up-mini svg { transform: rotate(-90deg); }
.up-mini.done { color: var(--ok); }
.rec-badge.on .dot { animation: pulse 1.2s ease-in-out infinite; }
.body { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; position: relative; }
.stage-wrap { position: relative; min-height: 0; padding: 18px 18px 104px; display: flex; }
.stage { flex: 1; display: grid; gap: 12px; min-height: 0; align-content: center; justify-content: center; --cols: 1; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: 1500px; margin: 0 auto; width: 100%; }
.stage[data-n="2"] { --cols: 2; } .stage[data-n="3"], .stage[data-n="4"] { --cols: 2; } .stage[data-n="5"], .stage[data-n="6"], .stage[data-n="7"], .stage[data-n="8"], .stage[data-n="9"] { --cols: 3; }
.stage.featured { grid-template-columns: minmax(0, 1fr) 240px; grid-auto-rows: min-content; align-content: start; }
.stage.featured .tile.screen { grid-column: 1; grid-row: 1 / span 6; }
.tile { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); max-height: calc(100vh - 190px); transition: box-shadow .25s ease; animation: rise .35s var(--ease-out) both; }
.tile.speaking { box-shadow: 0 0 0 2px var(--ok), 0 0 28px -4px rgba(52, 211, 153, .45); }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.tile.screen video { object-fit: contain; }
.tile .avatar-big { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface)); }
.tile .avatar-big span { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; background: var(--accent); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
.tile.cam-off .avatar-big { display: grid; }
.tile .label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(12px); font-weight: 600; font-size: 12.5px; max-width: calc(100% - 20px); }
.tile .label .muted-ic { color: #f87171; }
.tile .tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tile .tags .badge { background: rgba(0, 0, 0, .55); backdrop-filter: blur(12px); color: #e2e2ea; }
.tile .tags .badge.ok { color: var(--ok); } .tile .tags .badge.warn { color: var(--warn); } .tile .tags .badge.rec { color: #f87171; }
.panel { width: 340px; margin: 12px 12px 104px 0; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: rgba(10, 16, 32, .92); backdrop-filter: blur(20px); display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow-pop);
  transition: opacity .2s ease, transform .25s var(--ease-drawer); @starting-style { opacity: 0; transform: translateX(16px); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 18px; }
.panel-head h3 { font-size: 14px; }
.panel-body { flex: 1; overflow: auto; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .person:hover { background: var(--surface-2); } }
.person .avatar { width: 32px; height: 32px; font-size: 12px; }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13.5px; }
.person .who small { color: var(--faint); font-size: 12px; }
.subhead { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; margin: 8px 0 0; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.msg b { font-size: 12.5px; font-weight: 600; } .msg time { color: var(--faint); font-size: 11px; margin-left: 6px; }
.msg p { margin-top: 2px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.chat-form { display: flex; gap: 8px; padding-top: 8px; }
.sound-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.sound-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.waiting-list .person { background: var(--warn-soft); }
.mini-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.mini-card .row b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barre de contrôle flottante */
.controls { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 20px;
  background: rgba(10, 16, 32, .82); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); max-width: calc(100vw - 24px); overflow-x: auto; }
.controls .group { display: flex; gap: 6px; align-items: center; }
.controls .divider { width: 1px; height: 28px; background: var(--line-2); margin: 0 4px; flex: none; }
.ctl { position: relative; width: 44px; height: 44px; border-radius: 13px; border: 0; background: var(--surface-3); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.ctl:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .ctl:hover { background: var(--surface-4); } }
.ctl.off { background: var(--rec-soft); color: #f87171; }
.ctl.active { background: var(--accent-soft); color: var(--accent-2); }
.ctl:disabled { opacity: .35; cursor: not-allowed; }
.ctl .count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rec); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(10, 16, 32, 1); }
.ctl.leave { width: auto; padding: 0 14px; gap: 8px; display: flex; background: var(--rec-soft); color: #f87171; font: inherit; font-weight: 650; font-size: 13.5px; }
.rec-btn { height: 44px; padding: 0 18px 0 14px; border-radius: 13px; border: 0; background: var(--rec); color: #fff; font: inherit; font-weight: 650; font-size: 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -8px rgba(239, 68, 68, .7); transition: transform .16s var(--ease-out), filter .15s ease, background-color .2s ease; }
.rec-btn:active { transform: scale(.96); }
.rec-btn .rdot { width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: border-radius .2s var(--ease-out), transform .2s var(--ease-out); }
.rec-btn.on { background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--line-2); }
.rec-btn.on .rdot { border-radius: 3px; background: var(--rec); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 12, 24, .55); backdrop-filter: blur(6px); z-index: 20; pointer-events: none; }
.countdown span { font-family: var(--font-head); font-size: 180px; font-weight: 600; color: #fff; letter-spacing: -.05em; animation: cd 1s var(--ease-out); text-shadow: 0 10px 60px rgba(64, 89, 219, .6); }
@keyframes cd { from { transform: scale(1.35); opacity: 0; } 25% { opacity: 1; } }
.prompter { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: min(760px, 86%); height: 34%; z-index: 10; background: rgba(0, 0, 0, .8); backdrop-filter: blur(14px); border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden; }
.prompter .scroll { height: 100%; overflow: hidden; padding: 40% 28px; font-size: 28px; font-weight: 600; line-height: 1.5; white-space: pre-wrap; text-align: center; }
.prompter::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 32%; background: linear-gradient(rgba(0, 0, 0, .92), transparent); pointer-events: none; }
.upload-pill { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .panel { position: fixed; right: 8px; top: 64px; bottom: 96px; margin: 0; z-index: 30; width: min(360px, calc(100vw - 16px)); }
  .ctl { width: 40px; height: 40px; } .rec-btn { padding: 0 12px; height: 40px; }
  .rec-btn .txt, .ctl.leave .txt, .hide-sm { display: none; }
  .stage[data-n="2"], .stage[data-n="3"], .stage[data-n="4"] { --cols: 1; }
}

/* ---------- Éditeur ---------- */
.editor { height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px minmax(0, 1fr) 300px; background: var(--bg); overflow: hidden; }
.ed-top { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.ed-top .title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26vw; letter-spacing: -.015em; }
.ed-top select { width: auto; height: 32px; font-size: 13px; }
.save-state { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ed-main { display: grid; grid-template-columns: 330px minmax(0, 1fr) 340px; min-height: 0; }
.ed-side { border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; }
.ed-side.right { border-right: 0; border-left: 1px solid var(--line); }
.ed-side .head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.ed-side .head h3 { font-size: 13px; flex: 1; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.ed-side .scroll { flex: 1; overflow: auto; padding: 4px 16px 18px; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 12.5px; padding: 8px 9px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.insp { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.insp h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-top: 6px; font-weight: 600; }
.insp .row > * { min-width: 0; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btns .btn { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.seg-btns .btn.on { background: var(--accent); border-color: transparent; color: #fff; }
.stage-ed { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(64, 89, 219, .08), transparent 70%); }
.canvas-wrap { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 18px; }
.canvas-wrap canvas { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-pop); background: #000; }
.transport { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px 14px; }
.transport .time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 140px; text-align: center; color: var(--muted); font-size: 13px; }
.transport .time b { color: var(--text); }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--text); color: #000; display: grid; place-items: center; cursor: pointer; transition: transform .16s var(--ease-out); box-shadow: 0 6px 20px -6px rgba(255, 255, 255, .25); }
.play-btn:active { transform: scale(.93); }
.banner-warn { margin: 12px 18px 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.transcript { font-size: 15px; line-height: 1.8; }
.transcript .turn { margin-bottom: 16px; }
.transcript .who { font-size: 12px; font-weight: 650; display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.transcript .who time { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.transcript .w { border-radius: 4px; cursor: pointer; padding: 1px 0; transition: background-color .1s ease; }
@media (hover: hover) and (pointer: fine) { .transcript .w:hover { background: var(--surface-3); } }
.transcript .w.cut { text-decoration: line-through; color: var(--faint); opacity: .5; }
.transcript .w.now { background: var(--accent-soft); color: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
.transcript .w.filler { color: var(--warn); }
.transcript .w.found { background: rgba(251, 191, 36, .25); }
.sel-tools { position: fixed; z-index: 40; display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(17, 26, 46, .95); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.timeline { border-top: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; }
.tl-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tl-tools .btn { height: 30px; font-size: 12.5px; padding: 0 11px; flex: none; border-radius: 8px; }
.tl-tools input[type=range] { width: 120px; }
.tl-canvas { flex: 1; min-height: 0; position: relative; cursor: text; }
.tl-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress-row { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1100px) { .ed-main { grid-template-columns: 0 minmax(0, 1fr) 320px; } .ed-side.left { display: none; } }

/* Marque & pilote automatique */
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.brand-sticky { position: sticky; top: 24px; }
.brand-preview { width: 100%; border-radius: 14px; box-shadow: var(--shadow-pop); background: #000; display: block; }
.logo-prev { display: grid; place-items: center; height: 84px; border-radius: 12px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 0 0 / 16px 16px; margin-bottom: 10px; }
.logo-prev img { max-height: 56px; max-width: 70%; }
.ap-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ap-step .ic { color: var(--ok); } .ap-step .err { color: #f87171; }
.ap-card h3 .spacer { flex: 1; }
@media (max-width: 1000px) { .brand-layout { grid-template-columns: 1fr; } .brand-sticky { position: static; } }

/* Relecture invité */
.review { min-height: 100vh; background: radial-gradient(60% 40% at 50% 0%, rgba(64, 89, 219, .14), transparent 70%), var(--bg); }
.review-head { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.review-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 28px; max-width: 1400px; margin: 0 auto; align-items: start; }
.review-media { width: 100%; border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-pop); display: block; }
audio.review-media { height: 54px; }
@media (max-width: 900px) { .review-body { grid-template-columns: 1fr; padding: 16px; } }
/* Téléphone en 2e caméra */
.phonecam { min-height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--bg); }
.phonecam video { width: 100%; border-radius: var(--r-lg); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.phonecam .state { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.qr-box { display: grid; place-items: center; padding: 16px; border-radius: 14px; background: #fff; }
.qr-box svg, .qr-box img { width: 220px; height: 220px; }

/* Éditeur : éléments sélectionnés, visée du zoom, mesure de volume */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-card.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.canvas-wrap canvas.aim { cursor: crosshair; }
.lufs { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lufs.ok { color: var(--ok, #22c55e); } .lufs.warn { color: #fcd34d; }
.canvas-wrap canvas.drag-cap { cursor: move; }
