/* Live Commerce design system. No inline styles anywhere (strict Content-Security-Policy). */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-muted: #f9fafb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --success: #047857;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-soft: #fef2f2;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --live: #e11d48;
  --live-hover: #be123c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .3);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.icon { width: 18px; height: 18px; flex: none; }
.section-title { margin: 18px 0 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-muted); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: #f3f4f6; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-live { background: var(--live); color: #fff; }
.btn-live:hover { background: var(--live-hover); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy .icon { visibility: hidden; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .7); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-secondary.is-busy::after, .btn-ghost.is-busy::after { border-color: var(--text-subtle); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
label, .label { font-size: 13px; font-weight: 600; color: #374151; }
.hint { font-size: 12.5px; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
input:disabled, select:disabled { background: #f3f4f6; cursor: not-allowed; }
.file-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-muted); }
.file-drop .icon { width: 28px; height: 28px; color: var(--primary); }
.file-drop input[type=file] { flex: 1; min-width: 0; font-size: 13px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row > .field { flex: 1 1 200px; margin-top: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-error { color: var(--danger); font-size: 13px; }

/* ---------- cards, badges, tables ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-header p { margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge-live { background: var(--live); color: #fff; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.badge-scheduled, .badge-ai { background: var(--primary-soft); color: var(--primary-hover); }
.badge-ended { background: #f3f4f6; color: #4b5563; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 22px; border-bottom: 1px solid var(--border); background: var(--surface-muted); color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.table td { padding: 12px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; }
.cell-title { font-weight: 600; }
.cell-sub { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: 13px; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

.empty { padding: 40px 24px; color: var(--text-muted); text-align: center; }
.empty .icon { width: 36px; height: 36px; margin-bottom: 10px; color: var(--text-subtle); }
.empty h3 { margin-bottom: 4px; color: var(--text); }
.empty p { max-width: 380px; margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat-label { color: var(--text-muted); font-size: 12.5px; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rank-list li:last-child { border-bottom: none; }

/* ---------- toasts, dialogs ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 400px; padding: 12px 16px; border-radius: var(--radius-sm); background: #111827; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; white-space: pre-line; animation: toast-in .2s ease-out; }
.toast-success .icon { color: #6ee7b7; }
.toast-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: none; border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(17, 24, 39, .45); }
dialog#results-dialog { width: min(820px, calc(100vw - 32px)); }
.dialog-body { padding: 22px 24px; }
.dialog-body h2 { margin-bottom: 6px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-muted); }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #db2777); color: #fff; }
.brand-mark .icon { width: 16px; height: 16px; }

/* ---------- studio: sign in ---------- */
.auth-layout { display: grid; place-items: center; min-height: 100vh; padding: 32px 16px; background: radial-gradient(1200px 600px at 10% -10%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fce7f3 0%, transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); }
.auth-card > .brand { justify-content: center; margin-bottom: 22px; font-size: 18px; }
.auth-intro { margin-bottom: 20px; text-align: center; }
.auth-intro p { margin-top: 6px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: var(--radius-sm); background: #f3f4f6; }
.tab { flex: 1; height: 36px; border: none; border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tab[aria-selected=true] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.demo-hint { margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-hover); font-size: 13px; text-align: center; }

/* ---------- studio: app shell ---------- */
.app-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 18px; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--border); background: var(--surface); }
.sidebar > .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 12px 10px 6px; color: var(--text-subtle); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: none; border-radius: 8px; background: none; color: #374151; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.nav-item:hover { background: #f3f4f6; }
.nav-item .icon { color: var(--text-subtle); }
.nav-item[aria-current=page] { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
.nav-item[aria-current=page] .icon { color: var(--primary); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; }
.user-meta { flex: 1; min-width: 0; }
.user-email { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-role { color: var(--text-muted); font-size: 12px; text-transform: capitalize; }
.content { width: 100%; max-width: 1180px; padding: 32px 40px 60px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-header p { max-width: 660px; margin-top: 6px; color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.step { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.step-number { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); font-size: 13px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 13px; }

.show-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.show-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.show-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.show-card h3 { font-size: 16px; }
.show-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.clip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 18px 22px; }
.clip { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111827; }
.clip-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.clip-title { font-size: 14px; font-weight: 600; }
.clip-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; overflow-x: auto; border-radius: var(--radius-sm); background: #0f172a; color: #e2e8f0; font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
.code code { flex: 1; white-space: nowrap; }

/* ---------- live studio (console) ---------- */
.console-layout { display: flex; flex-direction: column; min-height: 100vh; background: #0b1020; color: #e5e7eb; }
.console-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #0f172a; }
.console-top h1 { overflow: hidden; color: #fff; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.console-top .spacer { flex: 1; }
.console-top .btn-ghost { color: #cbd5e1; }
.console-top .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.timer { color: #fda4af; font-variant-numeric: tabular-nums; font-weight: 600; }
.console-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; padding: 20px; }
.console-panel { border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); background: #111827; }
.console-panel .card-header { border-color: rgba(255, 255, 255, .08); }
.console-panel h2 { color: #fff; }
.console-panel .card-header p, .console-panel .hint { color: #94a3b8; }
.console-panel label { color: #cbd5e1; }
.console-panel select { border-color: rgba(255, 255, 255, .18); background: #0b1020; color: #fff; }
.console-panel select:disabled { background: #1f2937; color: #94a3b8; }
.console-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.console-controls .card-body { padding: 16px 18px; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #cbd5e1; font-size: 13px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.dot.on { background: #34d399; }
.console-side { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 110px); }
.queue { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 12px; }
.queue-item { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-sm); background: #1f2937; }
.queue-item.is-answering { border-color: var(--live); box-shadow: 0 0 0 1px var(--live) inset; }
.queue-item.is-done { opacity: .7; }
.queue-item .who { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 12.5px; }
.queue-item .who strong { color: #e5e7eb; }
.queue-item .question { margin: 6px 0; color: #fff; font-weight: 600; }
.ai-note { padding: 8px 10px; border-radius: 8px; background: rgba(99, 102, 241, .16); color: #cbd5e1; font-size: 13px; }
.ai-note.needs-host { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.queue-item .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.queue-item .btn-secondary { border-color: rgba(255, 255, 255, .2); background: transparent; color: #e5e7eb; box-shadow: none; }
.queue-item .btn-secondary:hover { background: rgba(255, 255, 255, .08); }
.console-layout .empty { color: #94a3b8; }
.console-layout .empty h3 { color: #fff; }

/* ---------- video stage (studio, viewer, replay) ---------- */
.stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }
.stage video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.stage-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: radial-gradient(circle at 50% 40%, #312e81 0%, #0b1020 70%); color: #fff; text-align: center; }
.stage-overlay .icon { width: 40px; height: 40px; color: #a5b4fc; }
.stage-overlay h2 { color: #fff; font-size: 20px; }
.stage-overlay p { max-width: 440px; color: #c7d2fe; }
.stage-overlay form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(420px, 100%); }
.stage-overlay form input { flex: 1 1 200px; }
.stage-badge { position: absolute; top: 14px; left: 14px; }
.stage-action { position: absolute; top: 14px; right: 14px; }
.caption { position: absolute; bottom: 18px; left: 50%; max-width: 86%; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 16px; text-align: center; transform: translateX(-50%); }

/* ---------- viewer page ---------- */
.viewer-top { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.viewer-top .titles { flex: 1; min-width: 0; }
.viewer-top h1 { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.viewer-top .store { color: var(--text-muted); font-size: 13px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.viewer-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.product-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.product-thumb { display: grid; place-items: center; flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.product-thumb .icon { width: 30px; height: 30px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex: 1; min-width: 0; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-title { font-size: 17px; font-weight: 700; }
.product-price { margin-top: 2px; font-size: 18px; font-weight: 700; }
.product-desc { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 13px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.chat { position: sticky; top: 20px; display: flex; flex-direction: column; height: calc(100vh - 106px); min-height: 520px; overflow: hidden; }
.chat-header { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chat-header p { margin-top: 2px; color: var(--text-muted); font-size: 13px; }
.name-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-muted); font-size: 13px; }
.name-row input { max-width: 200px; height: 32px; font-size: 13px; }
.chat-feed { display: flex; flex: 1; flex-direction: column; gap: 14px; overflow-y: auto; padding: 16px; background: var(--surface-muted); }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msg-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.msg-meta strong { color: var(--text); font-weight: 600; }
.bubble { max-width: 92%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.bubble.question { align-self: flex-start; }
.msg.mine .bubble.question { align-self: flex-end; border-color: var(--primary); background: var(--primary); color: #fff; }
.msg.mine .msg-meta { justify-content: flex-end; }
.bubble.answer { align-self: flex-start; border-color: #c7d2fe; }
.answer-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--primary-hover); font-size: 12px; font-weight: 700; }
.answer-label .icon { width: 14px; height: 14px; }
.bubble.answer video { display: block; width: 100%; margin-top: 8px; border-radius: 8px; background: #000; }
.bubble.pending { color: var(--text-muted); font-style: italic; }
.bubble.host-note { display: flex; align-items: center; gap: 8px; border-color: #fde68a; background: var(--warning-soft); color: #92400e; }
.msg-actions { display: flex; gap: 6px; }
.vote { height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.vote:hover { border-color: var(--primary); color: var(--primary); }
.system-card { padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: #312e81; font-size: 14px; }
.system-card strong { display: block; margin-bottom: 2px; }
.chat-compose { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--border); background: #fff; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: #374151; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.compose-row { display: flex; gap: 8px; }
.compose-row input { flex: 1; }
.btn.mic { width: 40px; padding: 0; }
.btn.mic.is-listening { border-color: var(--live); background: var(--live); color: #fff; }
.chat-closed { padding: 16px; border-top: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 13px; text-align: center; }

/* ---------- replay ---------- */
.chapter { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); cursor: pointer; }
.chapter:last-child { border-bottom: none; }
.chapter:hover { background: var(--surface-muted); }
.chapter .grow { flex: 1; min-width: 0; }
.time-pill { flex: none; padding: 3px 8px; border-radius: 6px; background: #f3f4f6; color: #374151; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.search-box { padding: 12px 22px; border-bottom: 1px solid var(--border); }
.transcript { max-height: 420px; overflow-y: auto; }
.line { display: flex; gap: 12px; width: 100%; padding: 8px 22px; border: none; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.line:hover { background: var(--surface-muted); }
.line.is-current { background: var(--primary-soft); }
.line.is-current .time-pill { background: var(--primary); color: #fff; }
.qa-item { padding: 14px 22px; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: none; }
.qa-q { font-weight: 600; }
.qa-a { margin-top: 4px; color: #374151; font-size: 14px; }
.qa-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.side-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- presenter tools (live studio) ---------- */
.console-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.console-main .console-controls { margin-top: 0; }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #f59e0b; border-radius: var(--radius-sm); background: #451a03; color: #fde68a; animation: toast-in .2s ease-out; }
.nudge > .icon { color: #fbbf24; }
.nudge-text { flex: 1; min-width: 0; font-size: 15px; }
.nudge-text strong { color: #fff; }
.nudge .btn-ghost { color: #fde68a; }
.prompter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.prompter-card { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); background: #111827; }
.prompter-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #a5b4fc; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.prompter-label .icon { width: 14px; height: 14px; }
.prompter-label span { color: #94a3b8; font-weight: 600; letter-spacing: 0; text-transform: none; }
.prompter-empty { color: #94a3b8; font-size: 14px; }
.say-next-text { color: #fff; font-size: 19px; font-weight: 650; line-height: 1.35; }
.say-next-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #94a3b8; font-size: 13px; }
.points { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; color: #e5e7eb; font-size: 15px; }
.points .prompter-empty { margin-left: -18px; list-style: none; }
.dot.warn { background: #f59e0b; }
.meter { width: 90px; height: 6px; margin-left: auto; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.meter-bar { display: block; width: 0; height: 100%; background: #34d399; transition: width .2s; }
.plan-list { margin: 0; padding: 4px 0; list-style: none; }
.plan-empty { padding: 14px 22px; color: #94a3b8; font-size: 14px; }
.plan-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.plan-item.is-now { background: rgba(225, 29, 72, .1); }
.plan-index { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1f2937; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.plan-body { flex: 1; min-width: 180px; }
.plan-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #fff; }
.plan-detail { color: #94a3b8; font-size: 13px; }
.plan-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: #fda4af; font-size: 13px; }
.plan-progress .progress { flex: 1; height: 6px; background: rgba(255, 255, 255, .1); }
.progress-bar.is-over { background: var(--live); }
.plan-controls { display: flex; align-items: center; gap: 4px; color: #94a3b8; font-size: 13px; }
.plan-controls input, .plan-add input { width: 64px; height: 32px; border-color: rgba(255, 255, 255, .18); background: #0b1020; color: #fff; }
.plan-controls .btn-ghost { padding: 0 8px; color: #cbd5e1; }
.plan-controls .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.plan-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 22px 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.plan-add select { flex: 1 1 200px; width: auto; height: 32px; border-color: rgba(255, 255, 255, .18); background: #0b1020; color: #fff; }
.plan-add .btn-secondary { border-color: rgba(255, 255, 255, .2); background: transparent; color: #e5e7eb; box-shadow: none; }
.pulse { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pulse-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pulse-tile { padding: 10px 12px; border-radius: 10px; background: #1f2937; }
.pulse-tile b { display: block; color: #fff; font-size: 22px; line-height: 1.2; }
.pulse-tile span { color: #94a3b8; font-size: 12px; }
.pulse-trending { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: #94a3b8; font-size: 12.5px; }
.pulse-trending .topic { padding: 3px 10px; border-radius: 999px; background: rgba(99, 102, 241, .2); color: #c7d2fe; font-weight: 600; }
.suggestion { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #818cf8; border-radius: 6px; background: rgba(99, 102, 241, .12); color: #e0e7ff; font-size: 13px; }
.suggestion ul { margin: 4px 0 0; padding-left: 18px; }
.coach h3 { display: flex; align-items: center; gap: 6px; }
.coach h3 .icon { color: var(--primary); }
.coach-tips { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 12px 14px 12px 32px; border-radius: var(--radius-sm); background: var(--primary-soft); color: #312e81; font-size: 14px; }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.coach-block { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.coach-block h4 { margin: 0 0 6px; font-size: 13px; }
.coach-block ul { margin: 0; padding-left: 18px; font-size: 13.5px; }

/* ---------- get started checklist ---------- */
.how-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.how-links li { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-muted); }
.content code { padding: 1px 6px; border-radius: 5px; background: var(--primary-soft); color: #3730a3; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.content .code code { padding: 0; background: none; color: inherit; }
.table a .icon { width: 14px; height: 14px; vertical-align: -2px; }
.nav-pill { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }
.nav-pill.is-complete { background: var(--success-soft); color: var(--success); }
.tour-link { justify-content: flex-start; width: 100%; }
.setup-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.setup-percent { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.setup-meter { flex: 1 1 260px; }
.setup-meter p { margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.progress { height: 10px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.progress-bar { width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #db2777); transition: width .5s ease; }
.setup-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.setup-step { position: relative; display: flex; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.setup-step:last-child { border-bottom: none; }
.setup-step:not(:last-child)::before { content: ""; position: absolute; top: 54px; bottom: -18px; left: 39px; width: 2px; background: var(--border); }
.setup-step.is-done:not(:last-child)::before { background: #a7f3d0; }
.step-marker { z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-muted); font-weight: 700; }
.setup-step.is-done .step-marker { border-color: var(--success); background: var(--success); color: #fff; }
.setup-step.is-current { background: linear-gradient(90deg, var(--primary-soft), transparent 70%); }
.setup-step.is-current .step-marker { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(79, 70, 229, .15); }
.setup-step.is-locked .step-body { opacity: .55; }
.step-body { flex: 1; min-width: 0; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step-body p { margin-top: 4px; color: var(--text-muted); font-size: 14px; }
.step-count { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.step-count .icon { width: 15px; height: 15px; color: var(--success); }
.step-ongoing { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--primary); border-radius: 6px; background: var(--primary-soft); color: #3730a3; font-size: 13px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.setup-done { display: flex; align-items: center; gap: 14px; }
.setup-done .icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--success-soft); color: var(--success); }

/* ---------- onboarding tour ---------- */
dialog.tour { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.tour-top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.tour-top .progress { flex: 1; height: 6px; }
.tour-count { color: var(--text-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tour-slide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px; }
.tour-text h2 { font-size: 24px; letter-spacing: -.01em; }
.tour-text > p { margin-top: 8px; color: var(--text-muted); }
.tour-where { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-hover); font-size: 12px; font-weight: 700; }
.tour-where .icon { width: 14px; height: 14px; }
.tour-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.tour-list li { position: relative; padding-left: 18px; font-size: 14px; }
.tour-list li::before { content: ""; position: absolute; top: 7px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.tour-note { margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.tour-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-muted); }
.tour-dots { display: flex; gap: 6px; margin-right: auto; }
.tour-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--border-strong); cursor: pointer; }
.tour-dot[aria-current=step] { width: 24px; border-radius: 999px; background: var(--primary); }

/* Illustrations: small mock screens built from plain elements. */
.tour-visual { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 300px; padding: 22px; border-radius: var(--radius); background: radial-gradient(500px 260px at 0% 0%, #e0e7ff, transparent 70%), radial-gradient(400px 240px at 100% 100%, #fce7f3, transparent 70%), #f8fafc; font-size: 12.5px; }
.mock { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.mock-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.mock-title .icon { width: 15px; height: 15px; color: var(--primary); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.mock-row .grow { flex: 1; min-width: 0; }
.mock-thumb { flex: none; width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #c7d2fe, #fbcfe8); }
.mock-file { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1.5px dashed var(--border-strong); border-radius: 8px; background: var(--surface-muted); font-weight: 600; }
.mock-file .icon { color: var(--primary); }
.mock-file .mock-btn, .mock-product .mock-btn { margin-left: auto; }
.mock-product .grow { flex: 1; min-width: 0; }
.mock-queue .muted { color: #94a3b8; }
.mock-queue > div:first-of-type { margin-top: 4px; font-weight: 600; }
.mock-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.mock-btn .icon { width: 13px; height: 13px; }
.mock-btn.live { background: var(--live); }
.mock-btn.light { border: 1px solid var(--border-strong); background: #fff; color: var(--text); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-video { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(135deg, #312e81, #831843); color: #fff; }
.mock-video .icon { width: 30px; height: 30px; }
.mock-video span { position: absolute; bottom: 6px; left: 8px; font-size: 11px; font-weight: 600; }
.mock-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-path div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 600; text-align: center; }
.mock-path b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; }
.mock-browser { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.mock-browser-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #f1f5f9; color: var(--text-muted); }
.mock-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mock-browser-bar span { flex: 1; margin-left: 6px; padding: 2px 8px; border-radius: 5px; background: #fff; }
.mock-code { padding: 8px 10px; border-radius: 7px; background: #0f172a; color: #a5b4fc; font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; overflow-wrap: anywhere; }
.mock-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #4c1d95, #0b1020 75%); color: #c7d2fe; }
.mock-stage > .icon { width: 40px; height: 40px; }
.mock-stage .badge { position: absolute; top: 10px; left: 10px; }
.mock-stage .mock-timer { position: absolute; top: 12px; right: 12px; color: #fda4af; font-weight: 700; }
.mock-stage .mock-product { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--text); }
.mock-bubble { align-self: flex-start; max-width: 88%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.mock-bubble.ai { align-self: flex-end; border-color: #c7d2fe; }
.mock-bubble.ai b { display: block; color: var(--primary-hover); font-size: 11px; }
.mock-queue { padding: 10px 12px; border-radius: 10px; background: #1f2937; color: #e5e7eb; }
.mock-queue .note { margin: 6px 0 8px; padding: 6px 8px; border-radius: 6px; background: rgba(245, 158, 11, .16); color: #fcd34d; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.mock-stats b { display: block; font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .console-grid, .viewer-layout { grid-template-columns: 1fr; }
  .chat { position: static; height: 620px; }
  .console-side { max-height: 640px; }
}
@media (max-width: 860px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; height: auto; padding: 12px; }
  .nav { flex-direction: row; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-label, .user-meta { display: none; }
  .nav-item { flex: none; width: auto; }
  .sidebar-footer { margin: 0 0 0 auto; padding: 0; border: none; }
  .content { padding: 20px 16px 40px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .console-controls { grid-template-columns: 1fr; }
  .prompter { grid-template-columns: minmax(0, 1fr); }
  .tour-slide { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .tour-visual { min-height: 0; }
  .tour-text h2 { font-size: 20px; }
  .setup-step { padding: 16px; }
  .setup-step:not(:last-child)::before { left: 33px; }
  .viewer-top { padding: 10px 12px; }
  .viewer-layout, .console-grid { padding: 12px; }
  .table th, .table td { padding-right: 14px; padding-left: 14px; }
  .hide-mobile { display: none; }
}

/* ---------- Shop page (/shop/STORE_ID): Find products + Live shows ---------- */
.shop-page { min-height: 100vh; display: flex; flex-direction: column; }
.shop-tabs { margin-left: auto; display: flex; gap: 6px; }
.shop-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shop-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }
.live-banner { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 16px; border-radius: var(--radius); background: #fff1f2; color: var(--text); text-decoration: none; border: 1px solid #fecdd3; }
.live-banner:hover { text-decoration: none; background: #ffe4e6; }
.live-banner-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner-join { display: inline-flex; align-items: center; gap: 4px; color: var(--live); font-weight: 700; }
.shop-main { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 16px; min-height: 0; }
.shop-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.find-frame { flex: 1; width: 100%; min-height: 70vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.shop-live { gap: 20px; }
.shop-group h2 { font-size: 16px; margin-bottom: 10px; }
.show-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.show-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; color: var(--text); text-decoration: none; }
.show-tile:hover { text-decoration: none; border-color: var(--primary); }
.show-tile-action { color: var(--primary); font-weight: 600; font-size: 14px; }
.empty-note { color: var(--text-muted); }
@media (max-width: 640px) {
  .shop-page .viewer-top { flex-wrap: wrap; }
  .shop-tabs { margin-left: 0; width: 100%; }
  .shop-tab { flex: 1; justify-content: center; }
}

/* ---------- Studio: catalog, product search, all stores ---------- */
.section-gap { margin-bottom: 20px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 14px; }
.field .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.search-frame { width: 100%; height: calc(100vh - 170px); min-height: 560px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sync-stat { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-muted); }
.sync-stat strong { display: block; font-size: 20px; }
.sync-stat span { color: var(--text-muted); font-size: 13px; }
.agent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.agent-row:first-child { border-top: 0; }
.agent-row .agent-info { flex: 1; min-width: 0; }
.agent-row .agent-info p { color: var(--text-muted); font-size: 13px; }
.cost-days { display: flex; flex-direction: column; gap: 6px; }
.cost-day { display: grid; grid-template-columns: 48px 1fr 80px; align-items: center; gap: 10px; font-size: 13px; }
.cost-day-label { color: var(--text-muted); }
.cost-day-value { text-align: right; font-variant-numeric: tabular-nums; }
.cost-bar { display: flex; height: 12px; border-radius: 6px; background: var(--surface-muted); overflow: hidden; }
.cost-bar-search { background: var(--primary); }
.cost-bar-live { background: var(--live); }

/* Wide tables scroll inside their card on small screens instead of widening the page. */
.card:has(> .table) { overflow-x: auto; }
#costs-days { width: auto; min-width: 170px; }
.empty-panel { padding: 40px 24px; text-align: center; }
.empty-panel h2 { margin-bottom: 6px; }
.empty-panel p { margin: 0 auto 16px; max-width: 460px; color: var(--text-muted); }
@media (max-width: 640px) {
  .find-frame { border: 0; border-radius: 0; min-height: calc(100vh - 140px); }
  .shop-main { padding: 8px 0 0; }
}
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.example-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; min-width: 0; }
.example-card img, .example-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-subtle); }
.example-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapping-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 16px; }
.mapping-fields .is-unsure select { border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.notice-warning { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font-size: 14px; }
