/* =========================================================================
   SHARK CUTS — design system mobile-first
   Tema escuro, superfícies organizadas, alvos de toque, coluna única.
   ========================================================================= */

:root {
  /* superfícies */
  --bg: #0A0C10;
  --bg-2: #0E1118;
  --surface: #12151C;
  --surface-2: #171B25;
  --surface-3: #1D2231;
  --border: #232838;
  --border-2: #2E3547;

  /* texto */
  --text: #E9ECF3;
  --text-2: #B7BECE;
  --muted: #8B93A7;

  /* acentos */
  --accent: #E01B24;
  --accent-2: #FF3B41;
  --accent-soft: rgba(224, 27, 36, .14);
  --green: #2FA35F;
  --green-soft: rgba(47, 163, 95, .16);
  --amber: #E8B33E;
  --amber-soft: rgba(232, 179, 62, .16);
  --blue: #4C8DFF;
  --blue-soft: rgba(76, 141, 255, .16);
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, .14);
  --violet: #9B7BFF;
  --violet-soft: rgba(155, 123, 255, .16);

  /* forma */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* espaçamento */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px;

  /* dimensões */
  --topbar-h: 56px;
  --bottomnav-h: 62px;
  --sidebar-w: 250px;
  --tap: 44px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .30);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Tabler */
  --tblr-body-bg: var(--bg);
  --tblr-card-bg: var(--surface);
  --tblr-border-color: var(--border);
  --tblr-primary: var(--accent);
  --tblr-body-color: var(--text);
}

/* ---------- reset / base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { color: var(--text-2); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

::selection { background: var(--accent-soft); color: #fff; }

/* scrollbar discreta */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* =========================================================================
   SHELL — topbar, sidebar off-canvas, bottom-nav, conteúdo
   ========================================================================= */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s4);
  background: rgba(10, 12, 16, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .04em; font-size: 16px; color: #fff; }
.topbar .brand .sh { color: var(--accent-2); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.brand-name { color: #edf0f4; font-size: 13px; font-weight: 850; letter-spacing: .105em; white-space: nowrap; }
.brand-name .sh, .login-brand strong span { color: #d3d8df; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar-brand .brand-name { font-size: 15px; }
.home-brand { display: flex; align-items: center; gap: 9px; }
.home-brand img { width: 22px; height: 22px; border-radius: 6px; }
.topbar .title {
  font-size: 13px; color: var(--muted); font-weight: 600;
  margin-left: auto; margin-right: auto;
  max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.icon-btn {
  width: var(--tap); height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 20px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.icon-btn:active { transform: scale(.96); }

/* estado da conexão (SSE) */
.conn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 4px 8px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.conn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.conn[data-state="live"] .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.conn[data-state="poll"] .dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.conn[data-state="off"] .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* sidebar off-canvas */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 80;
  width: min(84vw, var(--sidebar-w));
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  transform: translateX(-102%);
  transition: transform .22s ease;
  display: flex; flex-direction: column;
  padding: var(--s3) 0;
  overflow-y: auto;
}
.sidebar.open { transform: none; }

.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.scrim.open { opacity: 1; visibility: visible; }

.nav-list { list-style: none; margin: 0; padding: 0 var(--s2); display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--tap); padding: 0 14px;
  border-radius: var(--r-sm); color: var(--text-2);
  font-size: 14.5px; font-weight: 600;
}
.nav-list a i { font-size: 19px; width: 22px; text-align: center; color: var(--muted); }
.nav-list a:hover { background: var(--surface-2); color: #fff; }
.nav-list a.active { background: var(--accent-soft); color: #fff; }
.nav-list a.active i { color: var(--accent-2); }

.sidebar-foot { margin-top: auto; padding: var(--s4) var(--s4) var(--s2); border-top: 1px solid var(--border); }
.sidebar-foot .who { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* conteúdo */
.main { flex: 1; width: 100%; padding: var(--s4) var(--s4) calc(var(--bottomnav-h) + 28px); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; }

/* bottom-nav (mobile) */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(14, 17, 24, .96);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.bottomnav a i { font-size: 21px; }
.bottomnav a.active { color: #fff; }
.bottomnav a.active i { color: var(--accent-2); }
.bottomnav a:active { transform: scale(.95); }

@media (min-width: 992px) {
  .app { display: block; }
  .topbar { display: none; }
  .bottomnav { display: none; }
  .sidebar { transform: none; width: var(--sidebar-w); }
  .scrim { display: none; }
  .main { margin-left: var(--sidebar-w); padding: var(--s6) var(--s6) var(--s8); }
}

/* =========================================================================
   TIPOGRAFIA / SEÇÕES
   ========================================================================= */
.page-head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-head .spacer { flex: 1; }

.sec { margin-bottom: var(--s7); }
.sec-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.sec-head h3 { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sec-head .spacer { flex: 1; }
.sec-head .count { font-size: 12px; color: var(--muted); font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.hidden { display: none !important; }

/* =========================================================================
   BOTÕES
   ========================================================================= */
.btn {
  --tblr-btn-color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
  font-size: 14.5px; font-weight: 700; font-family: inherit;
  cursor: pointer; user-select: none; text-align: center;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-3); color: #fff; }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn i { font-size: 18px; }

.btn-red {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(224, 27, 36, .25);
}
.btn-red:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #35b869; border-color: #35b869; color: #fff; }

.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }

.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.btn-soft:hover { background: rgba(224, 27, 36, .22); color: #fff; }

.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }

.btn-lg { min-height: 52px; font-size: 16px; padding: 0 22px; border-radius: var(--r-md); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger-soft { background: transparent; border-color: rgba(224, 27, 36, .5); color: var(--accent-2); }
.btn-danger-soft:hover { background: var(--accent-soft); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* =========================================================================
   FORMULÁRIOS
   ========================================================================= */
label, .label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}

input[type="text"], input[type="password"], input[type="number"], input[type="url"],
input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; min-height: var(--tap);
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text); font-family: inherit; font-size: 15px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #6B7385; }
input[type="color"] {
  width: 100%; height: var(--tap); padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); cursor: pointer;
}
input[type="file"] { width: 100%; color: var(--muted); font-size: 13px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }

.field { margin-bottom: var(--s3); }
.field-row { display: grid; gap: var(--s3); }

/* =========================================================================
   CARDS / SUPERFÍCIES
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.card.tight { padding: var(--s3); }
.card.flush { padding: 0; overflow: hidden; }
.card-title { font-size: 14px; font-weight: 800; margin-bottom: var(--s3); display: flex; align-items: center; gap: 8px; }
.card + .card { margin-top: var(--s3); }

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
}

/* =========================================================================
   STATS
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s4);
  display: flex; flex-direction: column; gap: 2px;
}
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat.accent .n { color: var(--accent-2); }
.stat.green .n { color: var(--green); }
.stat.amber .n { color: var(--amber); }
.stat.blue .n { color: var(--blue); }

/* atalhos */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 780px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }

.sec-card {
  display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s4); color: var(--text);
  transition: border-color .14s, transform .14s;
}
.sec-card:hover { border-color: var(--accent); transform: translateY(-2px); color: #fff; }
.sec-card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2); font-size: 19px;
  margin-bottom: 10px;
}
.sec-card .t { font-weight: 800; font-size: 15px; }
.sec-card .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

/* =========================================================================
   BADGES / STATUS
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  background: var(--surface-3); color: var(--text-2);
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }

.b-pendente, .b-aguardando, .b-encontrado { background: var(--surface-3); color: var(--text-2); }
.b-preparando, .b-importado, .b-aguardando_importacao { background: var(--blue-soft); color: #8DB6FF; }
.b-em_analise, .b-analisando { background: var(--violet-soft); color: #BCA8FF; }
.b-em_execucao, .b-renderizando, .b-em_renderizacao { background: var(--cyan-soft); color: #67E8F9; }
.b-concluido, .b-aprovado, .b-publicado, .b-pronto { background: var(--green-soft); color: #6EDD9B; }
.b-aguardando_aprovacao, .b-agendado, .b-rascunho { background: var(--amber-soft); color: #F2CC74; }
.b-falhou, .b-cancelado, .b-error { background: var(--accent-soft); color: #FF8087; }
.b-cancelando { background: var(--amber-soft); color: #F2CC74; }
.b-info { background: var(--blue-soft); color: #8DB6FF; }
.b-warn { background: var(--amber-soft); color: #F2CC74; }

.tpl-tag {
  display: inline-block; padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--surface-3); color: var(--muted);
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

/* =========================================================================
   PROGRESSO
   ========================================================================= */
.bar {
  position: relative; width: 100%; height: 7px;
  background: var(--surface-3); border-radius: 999px; overflow: hidden;
}
.bar > i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px; transition: width .35s ease;
}
.bar.green > i { background: linear-gradient(90deg, var(--green), #4ED288); }
.bar.blue > i { background: linear-gradient(90deg, var(--blue), #79A9FF); }
.bar.indet > i { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { left: -35%; } 100% { left: 100%; } }

.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-row .pct { font-size: 12px; font-weight: 800; color: var(--muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* trilho de etapas da análise */
.stage-rail { display: flex; flex-direction: column; gap: 8px; }
.stage-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.stage-item i { font-size: 16px; width: 18px; text-align: center; }
.stage-item[data-state="done"] { color: var(--text-2); border-color: rgba(47,163,95,.4); }
.stage-item[data-state="done"] i { color: var(--green); }
.stage-item[data-state="active"] { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.stage-item[data-state="active"] i { color: var(--accent-2); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   TABELAS
   ========================================================================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; padding: 10px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

/* listas */
.list { display: flex; flex-direction: column; gap: var(--s2); }
.list-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* eventos */
.events { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.event {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; padding: 8px 10px;
  background: var(--surface-2); border-radius: var(--r-sm);
  border-left: 3px solid var(--border-2);
}
.event.error { border-left-color: var(--accent); }
.event.warn { border-left-color: var(--amber); }
.event.info { border-left-color: var(--blue); }
.event .when { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* =========================================================================
   GRADES / TEMPLATES
   ========================================================================= */
.grid2 { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .tpl-grid { grid-template-columns: repeat(5, 1fr); } }

.tpl-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: border-color .14s, transform .14s;
  display: block; color: inherit; text-decoration: none; position: relative;
}
.tpl-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.tpl-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl-card .tpl-thumb {
  position: relative; aspect-ratio: 9 / 16; background: #000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tpl-card .tpl-thumb video, .tpl-card .tpl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-card .tpl-body { padding: 10px 12px 12px; }
.tpl-card .tpl-body .n { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tpl-card .tpl-body .d { color: var(--muted); font-size: 11.5px; margin-top: 3px; line-height: 1.4; }

.tpl-state {
  position: absolute; inset: auto 0 0 0; padding: 6px 8px;
  background: rgba(0, 0, 0, .78); color: #fff;
  font-size: 11px; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tpl-state.busy i { animation: spin 1s linear infinite; }

/* mock de template (usado só quando NÃO há vídeo — nunca fingindo ser render) */
.tpl-mock {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  padding: 10px; font-weight: 900; text-align: center; align-items: center;
}

/* =========================================================================
   EDITOR — etapas A..G
   ========================================================================= */
.steps {
  display: flex; gap: 6px; list-style: none; margin: 0 0 var(--s4); padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.steps li {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.steps li .k {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--surface-3); color: var(--muted);
  display: grid; place-items: center; font-size: 10.5px;
}
.steps li[data-state="active"] { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.steps li[data-state="active"] .k { background: var(--accent); color: #fff; }
.steps li[data-state="done"] { color: var(--text-2); border-color: rgba(47,163,95,.45); }
.steps li[data-state="done"] .k { background: var(--green); color: #fff; }
.count-entry { display:flex; align-items:center; gap:12px; margin-top:14px; max-width:300px; }
.count-entry label { color:var(--muted); font-size:13px; font-weight:650; }
.count-entry input { width:86px; min-height:42px; padding:7px 10px; border:1px solid var(--border-2); border-radius:10px; background:var(--surface-2); color:var(--text); font:700 16px var(--font); text-align:center; }
.count-entry input:focus { outline:none; border-color:var(--accent-2); box-shadow:0 0 0 3px var(--accent-soft); }

/* Etapas independentes para título, legendas e composição visual. */
.caption-toggle { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 20px; }
.caption-toggle .chip { gap:8px; }
.caption-preview-panel { display:flex; align-items:center; gap:18px; padding:14px; margin:0 0 22px; border:1px solid var(--border); border-radius:var(--r-lg); background:linear-gradient(130deg,#171b24,#101319); }
.caption-preview-frame { width:clamp(106px,20vw,174px); flex:0 0 auto; aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:#050608; box-shadow:0 12px 32px #0008; }
.caption-preview-frame video { width:100%; height:100%; display:block; object-fit:cover; }
.caption-preview-copy { display:flex; flex-direction:column; gap:8px; min-width:0; }
.caption-preview-copy strong { font-size:clamp(17px,2.3vw,24px); letter-spacing:-.02em; }
.caption-preview-copy > span:last-child { color:var(--muted); font-size:13px; line-height:1.5; }
.library-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:8px 0 20px; }
.library-head h1 { margin:2px 0 4px; font-size:clamp(25px,4vw,36px); letter-spacing:-.035em; }
.library-head p { margin:0; font-size:13px; }
.library-tools { display:flex; align-items:center; gap:8px; }
.library-search { display:flex; align-items:center; gap:8px; min-width:min(260px,46vw); padding:0 12px; border:1px solid var(--border-2); border-radius:11px; background:var(--surface); color:var(--muted); }
.library-search input { width:100%; min-height:42px; padding:0; border:0; outline:0; color:var(--text); background:transparent; }
.library-filters { display:flex; gap:8px; overflow-x:auto; padding:0 0 16px; }
.library-filters .chip { min-height:38px; font-size:13px; }
.library-batch { margin:14px 0 28px; }
.library-batch-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 12px; border-bottom:1px solid var(--border); margin-bottom:12px; }
.library-batch-head h2 { margin:4px 0 0; font-size:16px; letter-spacing:-.01em; }
.library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr)); gap:12px; }
.library-card { display:flex; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); transition:border-color .16s,transform .16s; }
.library-card:hover { border-color:var(--border-2); transform:translateY(-1px); }
.library-media { position:relative; flex:0 0 min(35%,170px); align-self:flex-start; aspect-ratio:9/16; overflow:hidden; background:#050608; }
.library-media > img,.library-media > video { width:100%; height:100%; display:block; object-fit:cover; }
.library-media .badge { position:absolute; top:8px; left:8px; box-shadow:0 2px 10px #0008; }
.library-placeholder { display:grid; width:100%; height:100%; place-items:center; color:var(--muted); font-size:30px; }
.library-card-body { display:flex; flex:1; flex-direction:column; align-items:flex-start; min-width:0; padding:12px; }
.library-card-body h3 { display:-webkit-box; margin:0; overflow:hidden; font-size:14px; line-height:1.4; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.library-source { margin:5px 0 10px; color:var(--muted); font-size:12px; line-height:1.4; }
.library-meta { display:flex; flex-wrap:wrap; gap:10px; color:var(--text-2); font-size:11px; }
.retention-label { margin-top:7px; color:var(--amber); font-size:11px; }
.library-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:12px; }
.library-actions .icon-btn { width:34px; height:34px; border-color:var(--border); font-size:16px; }
.library-empty { padding:45px 18px; text-align:center; border:1px dashed var(--border-2); border-radius:var(--r-xl); background:var(--bg-2); }
.library-empty .big { color:var(--muted); font-size:30px; }
.library-empty h2 { margin:10px 0 4px; }
.library-empty p { margin:0 auto 18px; max-width:440px; }
@media(max-width:760px) {
  .library-head { align-items:stretch; flex-direction:column; }
  .library-tools { align-items:stretch; }
  .library-search { flex:1; min-width:0; }
}
@media(max-width:440px) {
  .caption-preview-panel { align-items:flex-start; gap:12px; padding:10px; }
  .caption-preview-frame { width:98px; }
  .library-card { border-radius:14px; }
  .library-media { flex-basis:31%; min-width:104px; }
  .library-card-body { padding:10px; }
  .library-actions .btn { padding-inline:9px; font-size:11px; }
}

.stage { margin-bottom: var(--s6); }
.stage[hidden] { display: none; }
.stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.stage-head .k {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 900;
}
.stage-head h3 { font-size: 15.5px; }
.stage-head .hint { font-size: 12.5px; color: var(--muted); }

/* dropzone */
.dropzone {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  min-height: 168px; padding: var(--s5);
  background: var(--surface); border: 2px dashed var(--border-2);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .big { font-size: 34px; color: var(--accent-2); }
.dropzone .t { font-weight: 800; font-size: 15.5px; }
.dropzone .d { font-size: 12.5px; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* vídeo em destaque */
.video-stage {
  position: relative; background: #000;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16; max-height: 66vh; margin: 0 auto;
}
.video-stage.wide { aspect-ratio: 16 / 9; max-height: none; }
.video-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* overlay de template (prévia instantânea, geometria real do preset) */
.tpl-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tpl-overlay .ov-clip { position: absolute; left: 0; right: 0; overflow: hidden; }
.tpl-overlay .ov-head {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px; font-weight: 900; line-height: 1.15;
}
.tpl-overlay .ov-brand {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; letter-spacing: .12em;
}
.tpl-overlay .ov-subs {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: center; padding: 0 16px;
  text-align: center;
}
.tpl-overlay .ov-sub {
  font-weight: 900; line-height: 1.2; max-width: 100%;
  transition: opacity .12s;
}
.tpl-overlay .ov-sub .hl { }

/* faixa de templates horizontal no mobile */
.tpl-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--s3); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.tpl-strip > * { scroll-snap-align: start; }
@media (min-width: 760px) { .tpl-strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* quantidade */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-width: 56px; min-height: var(--tap); padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 999px; color: var(--text-2);
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.chip:hover { background: var(--surface-3); color: #fff; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on::before { content: "✓"; margin-right: 6px; font-size: 13px; }

/* =========================================================================
   LINHA DO TEMPO
   ========================================================================= */
.tl { user-select: none; }
.tl-toolbar { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.tl-toolbar .zoom { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tl-toolbar .zoom button { width: 36px; height: 36px; padding: 0; }

.tl-scroll {
  position: relative; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); touch-action: pan-x;
}
.tl-inner { position: relative; height: 132px; min-width: 100%; }

.tl-ruler { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-bottom: 1px solid var(--border); }
.tl-tick { position: absolute; top: 0; height: 22px; border-left: 1px solid var(--border-2); padding-left: 4px; font-size: 10px; color: var(--muted); line-height: 22px; }

.tl-track { position: absolute; left: 0; right: 0; top: 30px; height: 74px; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tl-wave { position: absolute; inset: 0; opacity: .5; }

.tl-marker {
  position: absolute; top: 30px; height: 74px;
  background: rgba(76, 141, 255, .16);
  border: 1px solid rgba(76, 141, 255, .55);
  border-radius: 4px; cursor: pointer; overflow: hidden;
}
.tl-marker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tl-marker .lbl {
  position: absolute; left: 4px; top: 4px; right: 4px;
  font-size: 10px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-marker.sel { background: rgba(224, 27, 36, .22); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); z-index: 3; }
.tl-marker.discarded { opacity: .3; filter: grayscale(1); }
.tl-marker.rendering { border-color: var(--cyan); background: rgba(34, 211, 238, .14); }
.tl-marker.done { border-color: var(--green); background: rgba(47, 163, 95, .16); }

/* alças arrastáveis */
.tl-handle {
  position: absolute; top: -6px; bottom: -6px; width: 26px;
  display: grid; place-items: center; cursor: ew-resize;
  touch-action: none; z-index: 5;
}
.tl-handle::after {
  content: ""; width: 8px; height: 46px; border-radius: 4px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.tl-handle.start { left: -13px; }
.tl-handle.end { right: -13px; }
.tl-handle:active::after, .tl-handle.drag::after { background: var(--accent-2); }

.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-2); z-index: 6; pointer-events: none; box-shadow: 0 0 8px rgba(255,59,65,.8); }

/* lista de trechos (revisar / reordenar) */
.seg-list { display: flex; flex-direction: column; gap: var(--s2); }
.seg {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.seg.sel { border-color: var(--accent); background: var(--accent-soft); }
.seg.discarded { opacity: .45; }
.seg .idx {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px;
  background: var(--surface-3); color: var(--text-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
}
.seg .grow { flex: 1; min-width: 0; }
.seg .ts { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.seg .ttl { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg .acts { display: flex; gap: 4px; }
.seg .acts button { width: 34px; height: 34px; padding: 0; }

/* =========================================================================
   FILA DE GERAÇÃO
   ========================================================================= */
.queue { display: flex; flex-direction: column; gap: var(--s2); }
.q-item {
  display: grid; grid-template-columns: 66px 1fr; gap: var(--s3);
  padding: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.q-item .qthumb {
  position: relative; width: 66px; aspect-ratio: 9 / 16; border-radius: var(--r-sm);
  background: #000; overflow: hidden; display: grid; place-items: center;
}
.q-item .qthumb img, .q-item .qthumb video { width: 100%; height: 100%; object-fit: cover; }
.q-item .qthumb .ph { color: #333; font-size: 22px; }
.q-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-top .qid { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.q-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.q-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.q-acts .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.q-err {
  font-size: 12px; color: #FF9098; background: var(--accent-soft);
  padding: 6px 8px; border-radius: var(--r-xs); word-break: break-word;
}
.q-item.is-done { border-color: rgba(47,163,95,.4); }
.q-item.is-error { border-color: rgba(224,27,36,.45); }
.q-item.is-active { border-color: rgba(34,211,238,.5); }

/* barra de ações fixa */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  z-index: 64; padding: 10px var(--s4) 12px;
  background: rgba(10, 12, 16, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; gap: var(--s2); align-items: center;
}
.actionbar .btn { flex: 1; }
.actionbar .grow { flex: 2; }
@media (min-width: 992px) {
  .actionbar {
    left: var(--sidebar-w); bottom: 0;
    padding: 12px var(--s6);
    max-width: calc(1180px + var(--s6) * 2);
  }
}
body.has-actionbar .main { padding-bottom: calc(var(--bottomnav-h) + 84px); }
@media (min-width: 992px) { body.has-actionbar .main { padding-bottom: 96px; } }

/* =========================================================================
   MODAL / TOAST
   ========================================================================= */
.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .72);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-back.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-2);
}
.modal .m-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.modal .m-head h4 { font-size: 16px; flex: 1; }
@media (min-width: 720px) {
  .modal-back { align-items: center; }
  .modal { border-radius: var(--r-lg); }
}

#toast-root {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + 74px); z-index: 95;
  display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px);
  pointer-events: none;
}
.toast {
  background: var(--surface-3); border: 1px solid var(--border-2);
  color: var(--text); padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-2);
  display: flex; gap: 9px; align-items: center;
  animation: toast-in .18s ease;
}
.toast.ok { border-color: rgba(47,163,95,.5); }
.toast.err { border-color: rgba(224,27,36,.6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================================
   DIVERSOS
   ========================================================================= */
.empty {
  text-align: center; padding: var(--s7) var(--s4);
  background: var(--surface); border: 1px dashed var(--border-2);
  border-radius: var(--r-md); color: var(--muted);
}
.empty .big { font-size: 38px; margin-bottom: 8px; }
.empty .t { font-weight: 800; color: var(--text); font-size: 15px; }
.empty .d { font-size: 13px; margin-top: 4px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 0; }

.inline { display: inline; }
.player { width: 100%; border-radius: var(--r-md); background: #000; }

.thumb { background: #000; border-radius: var(--r-sm); overflow: hidden; }
.thumb img { display: block; width: 100%; }

.divider { height: 1px; background: var(--border); margin: var(--s4) 0; }

.spin { animation: spin 1s linear infinite; }

/* utilitários de layout do editor */
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.row.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   TÍTULOS DE ABERTURA — galeria dark cinematográfico
   ========================================================================= */
.title-strip { grid-auto-columns: 52%; }
@media (min-width: 760px) {
  .title-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}
.title-card .tpl-thumb video { object-fit: cover; }
.title-card.selected { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(224, 27, 36, .25); }

.title-modal-box {
  max-width: min(920px, 96vw); width: 100%;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tm-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .tm-grid { grid-template-columns: 250px 1fr; } }

.tm-video-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tm-video-wrap {
  position: relative; width: min(250px, 68vw); aspect-ratio: 9 / 16;
  background: #000; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-2); flex: 0 0 auto;
}
.tm-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.tm-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tm-ov-dim { position: absolute; inset: 0; opacity: 0; background: #000; }
.tm-ov-box { position: absolute; left: 7%; right: 7%; opacity: 0; }
.tm-ov-panel { position: absolute; inset: 0; opacity: .55; }
.tm-ov-border { position: absolute; inset: 0; border: 2px solid #fff; box-sizing: border-box; }
.tm-ov-corner { position: absolute; width: 16%; height: 14%; border: 2px solid #fff; box-sizing: border-box; }
.tm-ov-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tm-ov-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.tm-ov-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.tm-ov-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.tm-ov-line {
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 2px; width: 60%; opacity: .75; display: none;
}
.tm-ov-line-top { top: -5px; }
.tm-ov-line-bot { bottom: -5px; }
.tm-ov-text {
  position: absolute; left: 50%; width: max-content; max-width: 90%; text-align: center;
  line-height: 1.18; letter-spacing: .02em; opacity: 0;
  will-change: opacity, transform; word-break: break-word;
}

.tm-form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px; align-content: start;
}
.tm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-field label { font-size: 11px; color: var(--muted); font-weight: 700; }
.tm-field input[type="text"], .tm-field input[type="number"], .tm-field select {
  min-height: 36px; padding: 6px 8px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-2); color: #fff;
  font-family: inherit; font-size: 13px; width: 100%;
}
.tm-field input[type="color"] {
  min-height: 36px; width: 100%; padding: 2px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-2); cursor: pointer;
}
.tm-field input[type="range"] { width: 100%; accent-color: var(--accent); }

/* SHARK CUTS studio polish: cinematic workspace surfaces and focused navigation */
.nav-label {
  list-style: none; padding: 18px 14px 5px; color: #687184;
  font: 700 10px/1 var(--font); letter-spacing: .14em;
}
.nav-list a { transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-list a.active { box-shadow: inset 2px 0 0 var(--accent-2); }
.home-hero {
  position: relative; overflow: hidden; min-height: 205px; align-items: center;
  padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(177, 190, 211, .11);
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse at 82% 8%, rgba(167, 37, 42, .2), transparent 38%),
              linear-gradient(125deg, #171a21, #101218 64%, #171317);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 20px 60px rgba(0,0,0,.17);
}
.home-hero::after {
  content: ""; position: absolute; width: 250px; height: 250px; right: 5%; top: -55%;
  border: 1px solid rgba(255,255,255,.055); border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.012), 0 0 0 54px rgba(255,255,255,.01);
  pointer-events: none;
}
.home-hero h1, .title-page-head h1 { max-width: 740px; font-size: clamp(27px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.home-hero .sub, .title-page-head .sub { max-width: 580px; margin-top: 10px; color: #a5acbb; font-size: 14px; }
.section-kicker { margin-bottom: 10px; color: #c0a77c; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.page-head { gap: 18px; }
.sec { margin-top: clamp(24px, 4vw, 38px); }
.sec-head { margin-bottom: 12px; }
.stat, .sec-card, .card, .list-item { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.sec-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.sec-card:hover { transform: translateY(-2px); border-color: #454b59; }
.empty { background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 65%), var(--surface); }
.empty .big { color: #8a7480; }
.title-page-head { align-items: end; margin: 10px 0 28px; }
.title-page-shell { max-width: 1100px; }
.cinema-title-panel { padding: clamp(16px, 3vw, 28px); border: 1px solid rgba(177,190,211,.12); border-radius: var(--r-xl); background: linear-gradient(145deg, #151820, #101218 72%); }
.cinema-title-panel > .section-kicker { margin-bottom: 5px; }
.cinema-title-panel > h3 { font-size: clamp(20px, 3vw, 28px); letter-spacing: -.025em; }
.cinema-title-panel > p { max-width: 650px; margin: 7px 0 20px; }
.cinema-title-panel .divider { display: none; }
.cinema-title-panel .sec-head { display: block; margin: 0 0 14px; }
.cinema-title-panel .sec-head h3 { font-size: 15px; }
.cinema-title-panel .sec-head .hint { margin-top: 5px; max-width: 720px; }
.title-strip { grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 759px) {
  .title-strip { grid-auto-columns: minmax(74vw, 1fr); }
  .title-page-head { align-items: flex-start; flex-direction: column; }
  .home-hero { min-height: 180px; }
}
@media (min-width: 760px) {
  .title-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .title-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tm-ov-sweep { position: absolute; height: 2px; z-index: 1; transform: translateX(-50%); box-shadow: 0 0 12px currentColor; }
.tm-ov-particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.title-modal-box .tm-field input[type="range"] { accent-color: #c2a673; }
.progress-indeterminate { overflow: hidden; }
.progress-indeterminate > i { width: 32%; animation: progress-sweep 1.5s ease-in-out infinite; }
.retention-label { color: #c3a975; }
@keyframes progress-sweep { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) {
  .home-hero, .sec-card, .nav-list a { transition: none; }
}

@font-face { font-family: SharkSans; src: url('/static/fonts/shark-sans.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: SharkSansBold; src: url('/static/fonts/shark-sans-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: SharkSerif; src: url('/static/fonts/shark-serif.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: SharkSerifBold; src: url('/static/fonts/shark-serif-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: SharkMono; src: url('/static/fonts/shark-mono.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: SharkNarrow; src: url('/static/fonts/shark-narrow-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.tm-ov-text { z-index: 2; }
.tm-ov-sweep { transform: none; }
.tm-ov-particle { z-index: 1; }

.login-page .topbar, .login-page .sidebar, .login-page .scrim, .login-page .bottomnav { display: none !important; }
.login-page .main { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; width: 100%; margin-left: 0; padding: 24px; }
.login-page .container { max-width: 460px; }
.login-card { padding: clamp(24px, 5vw, 38px); border-radius: var(--r-xl); background: radial-gradient(ellipse at 88% 0, rgba(165,45,48,.16), transparent 45%), linear-gradient(145deg,#171a21,#101218); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.login-brand img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.login-brand strong { font-size: 18px; letter-spacing: .12em; }
.login-brand .section-kicker { margin: 5px 0 0; font-size: 9px; }
.login-card h1 { font-size: clamp(27px, 7vw, 36px); letter-spacing: -.045em; }
.login-card > .muted { margin: 8px 0 26px; }
.login-card label { margin-bottom: 6px; }
.login-card input { min-height: 46px; }
.login-card input:focus { outline: none; border-color: #9e8151; box-shadow: 0 0 0 3px rgba(194,166,115,.14); }
