/* AIOS Video Studio: Creator pages and landing. Light "aurora" theme (Master, 29 Nov: light mode, a modern advanced
   AI site, not old-school SaaS): soft aurora wash, white glass surfaces, Inter, one indigo→violet accent with a glow,
   generous radii, 8 px grid. Old dark theme: app.css_artifact_20261129. The editor and edit screens bring their own
   styles (under .se / #edit-app). */
:root {
  --bg: #f5f6fb; --panel: #ffffff; --raise: #f2f3f9; --line: rgba(15, 23, 42, 0.08); --line-strong: rgba(15, 23, 42, 0.14);
  --text: #0b1020; --muted: #5d6579; --faint: #8b93a7;
  --accent: #5b4cf0; --accent-2: #9b4dee; --accent-ink: #4338ca; --accent-soft: rgba(91, 76, 240, 0.09); --accent-ring: rgba(91, 76, 240, 0.22);
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%);
  --bad: #e11d48; --bad-soft: rgba(225, 29, 72, 0.08); --good: #059669; --good-soft: rgba(5, 150, 105, 0.1);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 24, 40, 0.03), 0 16px 40px -16px rgba(30, 27, 75, 0.22);
  --glow: 0 8px 22px -8px rgba(91, 76, 240, 0.55);
  --glass: rgba(255, 255, 255, 0.72);
  --stage: #0d1020;
  --unit: 8px; --menu: 232px; --bar: 60px; --top: 52px; --radius: 16px; --radius-sm: 10px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
/* the aurora: two soft washes of colour behind everything, fixed so pages scroll over them */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 42% at 8% -6%, rgba(99, 102, 241, 0.16), transparent 70%),
              radial-gradient(40% 36% at 102% 2%, rgba(217, 70, 239, 0.12), transparent 70%),
              radial-gradient(50% 40% at 60% 110%, rgba(56, 189, 248, 0.10), transparent 70%); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 36px; letter-spacing: -0.022em; }
h2 { font-size: 16px; font-weight: 620; line-height: 24px; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: rgba(124, 58, 237, 0.18); }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- shell: glass sidebar on desktop, top strip and bottom bar on a phone (one include) ---------- */
.app { display: flex; min-height: 100%; }
.app-menu { width: var(--menu); flex: none; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0;
  height: 100vh; height: 100dvh; padding: 20px 14px; background: var(--glass); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
.app-head { display: contents; }
.app-brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; font-weight: 650; letter-spacing: -0.01em; }
.app-brand img { width: 30px; height: 30px; padding: 6px 4px; border-radius: 9px; object-fit: contain; background: #0b1020; box-shadow: var(--shadow-1); }
.app-space { margin: 4px 6px 18px; padding: 8px 10px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--raise); border-radius: var(--radius-sm); }
.app-links { display: flex; flex-direction: column; gap: 2px; }
.app-link { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--muted);
  font-weight: 500; transition: background 0.15s, color 0.15s; }
.app-link svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-link:hover { color: var(--text); background: rgba(15, 23, 42, 0.04); }
.app-link.is-active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.app-link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.app-out { order: 99; margin-top: auto; }
.app-partner { order: 98; margin-top: auto; color: var(--accent-ink); }
.app-menu:has(.app-partner) .app-out { margin-top: 0; }
.app-main { flex: 1; min-width: 0; padding: 36px 40px; }
.app-page { max-width: 1160px; margin: 0 auto; }
/* Full-height screens (editor, edit) fill the window themselves. */
.shell-editor .app-menu { display: none; }
.shell-editor .app-main { padding: 0; height: 100vh; height: 100dvh; overflow: hidden; }
@media (max-width: 991px) {
  .app { display: block; }
  .app-menu { display: contents; }
  .app-head { display: flex; align-items: center; gap: 8px; position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--top);
    padding: 0 16px; background: var(--glass); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .app-brand { height: auto; padding: 0; }
  .app-brand span { display: none; }
  .app-space { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 14px; color: var(--text); background: none; }
  .app-out { order: 0; margin: 0; height: 32px; padding: 0 8px; flex: none; }
  .app-out svg { display: none; }
  .app-links { position: fixed; inset: auto 0 0 0; z-index: 20; flex-direction: row; justify-content: space-around; gap: 0;
    height: calc(var(--bar) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); background: var(--glass);
    border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .app-links .app-link { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; height: var(--bar); padding: 0;
    font-size: 11px; border-radius: 0; background: none; }
  .app-links .app-link.is-active { color: var(--accent-ink); background: none; }
  .app-links .app-link.is-active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .app-main { padding: calc(var(--top) + 16px) 16px calc(var(--bar) + env(safe-area-inset-bottom) + 24px); }
  .shell-editor .app-head, .shell-editor .app-links { display: none; }
  .app-partner { display: none; }
  .shell-editor .app-main { padding: 0; }
}

/* ---------- page parts ---------- */
.page-head { display: flex; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 28px; }
.page-head h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head .actions { display: flex; gap: 8px; flex: none; }
.section { margin-top: 44px; }
.section > h2 { margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow-1); }
.card b { display: block; font-size: 26px; line-height: 34px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card span { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters .grow { flex: 1 1 200px; }
.panel { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.5); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; font-weight: 550;
  box-shadow: var(--shadow-1); transition: transform 0.12s ease, box-shadow 0.15s, border-color 0.15s, background 0.15s, filter 0.15s; }
.btn:hover { border-color: rgba(15, 23, 42, 0.24); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 10px 28px -8px rgba(91, 76, 240, 0.65); transform: translateY(-1px); }
.btn.bad { color: var(--bad); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: rgba(15, 23, 42, 0.05); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: default; transform: none; box-shadow: none; filter: none; }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { height: auto; min-height: 80px; padding: 10px 14px; resize: vertical; }
.select { width: auto; padding-right: 34px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235d6579' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.select.wide { width: 100%; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: 12px; font-weight: 550; color: var(--muted); }
.field-error { color: var(--bad); font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--muted); font-weight: 500; transition: all 0.15s; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-ring); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--panel); }
.pill.on { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.pill.solid { border-color: transparent; background: var(--grad); color: #fff; }
.pill.bad { border-color: transparent; background: var(--bad-soft); color: var(--bad); }
.code { display: block; padding: 12px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-sm); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all; white-space: pre-wrap; text-align: left; user-select: all; }
/* a segmented switch (how a shot is made) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); flex: none; }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit; }
.seg button:hover:not(:disabled) { color: var(--text); }
.seg button.is-on { background: var(--panel); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(91, 76, 240, 0.18); }
.seg button:disabled { cursor: default; }

/* ---------- table: rows become cards on a phone ---------- */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(242, 243, 249, 0.6); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover { background: rgba(91, 76, 240, 0.035); }
.table th.num, .table td.num { text-align: right; }
.table td.acts { text-align: right; white-space: nowrap; }
.table td.acts .btn + .btn { margin-left: 4px; }
.table .plus { color: var(--good); }
.table .thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--raise); display: block; }
.table .thumb.blank { display: grid; place-items: center; color: var(--muted); }
.table .thumb.blank svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.table .cell-main { font-weight: 550; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody { display: block; width: 100%; }
  .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; min-width: 0; }
  .table td:empty { display: none; }
  .table td.cell-main { flex: 1 1 50%; font-size: 15px; overflow-wrap: anywhere; }
  .table td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 12px; }
  .table td.num { text-align: left; }
  .table td.wide, .table td.acts, .table td.empty-cell { flex: 1 1 100%; }
  .table td.acts { text-align: left; padding-top: 8px; }
}

/* ---------- project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 20px; }
.project { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(91, 76, 240, 0.22); }
.project-shot { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef0fb, #f6eefb); overflow: hidden; }
.project-shot img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.project:hover .project-shot img { transform: scale(1.035); }
.project-shot svg { width: 32px; height: 32px; fill: none; stroke: #a5abc0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.project-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 14px 8px 14px 16px; align-items: center; }
.project-name { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.project-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; grid-column: 1; min-width: 0; flex-wrap: wrap; }
.project-more { grid-row: 1 / span 2; grid-column: 2; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: rgba(15, 23, 42, 0.05); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.menu { position: absolute; z-index: 30; min-width: 180px; padding: 6px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(30, 27, 75, 0.28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.menu button, .menu a { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.menu button:hover, .menu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- dialog ---------- */
dialog.sheet { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  color: var(--text); overflow: auto; box-shadow: 0 30px 80px -20px rgba(30, 27, 75, 0.4); }
dialog.sheet::backdrop { background: rgba(15, 18, 40, 0.38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-body { display: grid; gap: 16px; padding: 26px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pictures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pictures img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--raise); display: block; }
.drop { display: grid; place-items: center; gap: 4px; padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); cursor: pointer; text-align: center;
  background: rgba(242, 243, 249, 0.5); transition: all 0.15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
audio { width: 100%; height: 40px; }

/* ---------- watch ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.player { background: var(--stage); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; box-shadow: var(--shadow-2); }
.player video { width: 100%; height: 100%; display: block; background: var(--stage); }
.player.tall { aspect-ratio: auto; height: min(70dvh, 640px); }
.now { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 14px 0 24px; flex-wrap: wrap; }
.now .title { flex: 1 0 auto; max-width: 100%; font-weight: 620; }   /* never squeezed under the pills: the buttons wrap to the next line instead */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  text-align: left; cursor: pointer; box-shadow: var(--shadow-1); transition: all 0.15s; }
.item:hover { border-color: rgba(91, 76, 240, 0.25); }
.item.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.item .grow { flex: 1; min-width: 0; }
.item small { display: block; color: var(--muted); font-size: 12px; }
.shot-name { margin: 16px 0 8px; color: var(--muted); font-size: 12px; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.comment-head b { color: var(--text); font-size: 14px; font-weight: 600; }
.comment p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 8px; margin-top: 16px; }
.moment { border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; font-size: 12px; font-weight: 550; }
@media (max-width: 991px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  h1 { font-size: 22px; line-height: 30px; }
  .cards, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cards.three .card:last-child { grid-column: 1 / -1; }
  .card { padding: 12px 14px; }
  .card b { font-size: 20px; line-height: 28px; }
  .page-head { margin-bottom: 18px; }
  .page-head.wraps { flex-wrap: wrap; gap: 8px; }
  .page-head.wraps h1 { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; }
  .panel { padding: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .filters .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .section { margin-top: 32px; }
}

/* ---------- SweetAlert2 in the studio's colours ---------- */
.swal2-popup { background: var(--panel) !important; color: var(--text) !important; border: 1px solid var(--line); border-radius: 20px !important; font-size: 14px !important;
  box-shadow: 0 30px 80px -20px rgba(30, 27, 75, 0.4) !important; font-family: inherit !important; }
.swal2-title { color: var(--text) !important; font-size: 18px !important; font-weight: 650 !important; letter-spacing: -0.01em; }
.swal2-html-container { color: var(--muted) !important; font-size: 14px !important; }
.swal2-input, .swal2-textarea, .swal2-select { background: var(--panel) !important; border: 1px solid var(--line-strong) !important; color: var(--text) !important; box-shadow: none !important;
  font-size: 14px !important; border-radius: 10px !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-ring) !important; }
.swal2-styled.swal2-confirm { background: var(--grad) !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: var(--glow) !important; }
.swal2-styled.swal2-cancel, .swal2-styled.swal2-deny { background: var(--panel) !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important; font-size: 14px !important; color: var(--text) !important; box-shadow: none !important; }
.swal2-validation-message { background: var(--bad-soft) !important; color: var(--bad) !important; }
.swal2-toast { box-shadow: 0 16px 40px -12px rgba(30, 27, 75, 0.3) !important; border-radius: 14px !important; }
.swal2-container.swal2-backdrop-show { background: rgba(15, 18, 40, 0.38) !important; }
.swal2-icon { transform: scale(0.8); }
.swal2-timer-progress-bar { background: var(--grad) !important; }

/* ---------- landing, sign-in, invitation ---------- */
.land { min-height: 100%; display: flex; flex-direction: column; }
.land-nav { display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 32px; position: sticky; top: 0; z-index: 10; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.land-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-right: auto; letter-spacing: -0.01em; }
.land-nav .brand img { width: 32px; height: 32px; padding: 6px 4px; border-radius: 10px; object-fit: contain; background: #0b1020; box-shadow: var(--shadow-1); }
.land-nav a.link { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.land-nav a.link:hover, .land-nav a.link.is-active { color: var(--text); background: rgba(15, 23, 42, 0.04); }
.land-main { flex: 1; display: grid; place-items: center; padding: 48px 24px 96px; }
.hero { max-width: 820px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 24px auto 40px; color: var(--muted); font-size: 19px; max-width: 560px; line-height: 1.55; }
.hero .row { justify-content: center; gap: 12px; }
.hero .btn { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; margin-bottom: 28px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 550; color: var(--muted); }
.hero-badge b { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 650; }
.auth { width: min(420px, 100%); padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2); }
.auth h1 { margin-bottom: 8px; }
.auth > p { color: var(--muted); margin-bottom: 24px; }
.auth form { display: grid; gap: 16px; }
.auth .btn { width: 100%; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); }
@media (max-width: 760px) {
  .land-nav { padding: 0 16px; height: 58px; }
  .land-main { padding: 24px 16px 64px; }
  .hero p { font-size: 16px; }
  .hero .row .btn { flex: 1 1 100%; }
  .auth { padding: 24px; border-radius: 20px; }
}

/* watch layout: player and talk on the left, the lists on the right; one column on a phone (player, lists, talk) */
.watch { grid-template-areas: "main side" "talk side"; }
.watch-main { grid-area: main; min-width: 0; }
.watch-side { grid-area: side; min-width: 0; }
.watch-talk { grid-area: talk; min-width: 0; }
.watch h2 { margin-bottom: 8px; }
.watch-side h2:not(:first-child) { margin-top: 24px; }
@media (max-width: 991px) {
  .watch { grid-template-areas: "main" "side" "talk"; }
  .now { margin-bottom: 0; }
}

ul.policy { margin: 0; padding: 12px 16px 12px 32px; display: grid; gap: 6px; background: var(--raise); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; }

/* AI-only buttons are hidden where the AI is off (nothing useless) */
html[data-ai="0"] [data-ai="1"] { display: none !important; }

/* reduced motion: no lifts or shimmer */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
