/* ─────────────────────────── CutBee · sistema visual ───────────────────────────
   Escuro com amarelo de abelha. Superfícies em camadas (panel → panel-2 → panel-3),
   campos afundados (sunken), bordas finas e um único acento. Os seletores são os
   mesmos que app.js e account.js montam; mudar nomes aqui quebra a interface. */

:root {
  --bg: #090b10;
  --panel: #10141c;
  --panel-2: #161b25;
  --panel-3: #1e2430;
  --panel-4: #272e3d;
  --sunken: #0b0e14;
  --line: #232a37;
  --line-soft: #1a1f2a;
  --line-strong: #313a4b;
  --text: #eef1f6;
  --text-2: #cdd4e0;
  --muted: #99a3b6;
  --faint: #677187;
  --accent: #ffd60a;
  --accent-hi: #ffe35a;
  --accent-lo: #f1c300;
  --accent-ink: #1a1400;
  --accent-soft: rgba(255, 214, 10, .12);
  --accent-line: rgba(255, 214, 10, .38);
  --ok: #3ddc9b;
  --warn: #ffb224;
  --err: #ff6b6b;
  --info: #6cb2ff;
  --manual: #b593ff;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --radius-lg: 22px;
  --ring: 0 0 0 4px rgba(255, 214, 10, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 18px 40px -14px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .28);
  --shadow-lg: 0 40px 90px -28px rgba(0, 0, 0, .8), 0 6px 18px rgba(0, 0, 0, .3);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .045);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f99ad' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f99ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  --icon-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d0dc' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  /* Coluna: o conteúdo cresce e o rodapé fica no fim da tela mesmo em páginas curtas. */
  display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(255, 214, 10, .065), transparent 62%),
    radial-gradient(900px 480px at 96% -14%, rgba(110, 130, 255, .055), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 214, 10, .3); }
* { scrollbar-width: thin; scrollbar-color: #2c3445 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3242; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a4458; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── barra superior ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 22px;
  height: 64px; padding: 0 26px;
  background: rgba(9, 11, 16, .72); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.025em; }
.brand svg { filter: drop-shadow(0 4px 10px rgba(255, 214, 10, .22)); transition: transform .4s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }
.brand b { font-weight: 800; color: var(--accent); }
.topnav { display: flex; gap: 4px; padding: 4px; border-radius: 12px; }
.topnav a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.topnav a.on { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: var(--edge); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

main#app { flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 34px 26px 96px; outline: none; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* ── botões ── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 7px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)), var(--panel-2);
  box-shadow: var(--edge), var(--shadow-sm);
  color: var(--text);
  font-weight: 600; font-size: 13.5px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .08s;
}
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)), var(--panel-3); border-color: #3e4960; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), var(--edge); border-color: var(--accent-line); border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ico { flex: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 52%, var(--accent-lo) 100%);
  border-color: rgba(255, 214, 10, .9); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px -10px rgba(255, 214, 10, .45);
}
.btn.primary:hover:not([disabled]) {
  background: linear-gradient(180deg, #ffea7a 0%, var(--accent-hi) 50%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -10px rgba(255, 214, 10, .6);
}
.btn.primary.big { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(255, 214, 10, .6); }
.btn.primary:focus-visible { box-shadow: 0 0 0 4px rgba(255, 214, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); border-color: transparent; }
.btn.danger { color: #ff8a8a; }
.btn.danger:hover { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.btn.ghost.danger:hover { background: rgba(255, 107, 107, .1); }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn.big { min-height: 48px; padding: 11px 24px; font-size: 15.5px; border-radius: 13px; gap: 10px; }
.btn.icon { min-width: 38px; padding: 7px; }
.btn.small.icon { min-width: 32px; padding: 5px; }

/* ── pílulas e selos ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.pill.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 155, .14), 0 0 10px rgba(61, 220, 155, .5); }
.pill.warn .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 178, 36, .14), 0 0 10px rgba(255, 178, 36, .45); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.4; border: 1px solid transparent; }
.badge.ia { background: rgba(255, 214, 10, .14); color: var(--accent); border-color: rgba(255, 214, 10, .3); }
.badge.manual { background: rgba(181, 147, 255, .15); color: #c9b1ff; border-color: rgba(181, 147, 255, .3); }
.badge.state-pronto { background: rgba(61, 220, 155, .12); color: var(--ok); border-color: rgba(61, 220, 155, .25); }
.badge.state-processando { background: rgba(108, 178, 255, .13); color: var(--info); border-color: rgba(108, 178, 255, .28); }
.badge.state-na_fila { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line); }
.badge.state-erro { background: rgba(255, 107, 107, .13); color: var(--err); border-color: rgba(255, 107, 107, .28); }
.badge.state-cancelado, .badge.state-novo { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line); }
.badge.state-pronto::before, .badge.state-processando::before, .badge.state-erro::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.state-processando::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ── estrutura ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0) 120px), var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--edge), 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.panel.pad { padding: 22px; }

/* ── campos ── */
label.field { display: block; }
label.field > span, .field-label { display: block; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-bottom: 7px; letter-spacing: .005em; }
input[type=text], input[type=url], input[type=search], input[type=number], input[type=email], input[type=password], select, textarea {
  width: 100%; min-height: 42px; padding: 10px 13px;
  background-color: var(--sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { min-height: 84px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #6f798e; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #414c62; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 214, 10, .75); box-shadow: var(--ring), inset 0 1px 2px rgba(0, 0, 0, .35); background-color: #0d1118; }
input[readonly] { color: var(--muted); }
input[type=search] {
  padding-left: 40px;
  background-image: var(--icon-search); background-repeat: no-repeat; background-position: 13px 50%; background-size: 17px;
}
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-left: 6px; cursor: pointer;
  border-radius: 50%; background: rgba(255, 255, 255, .1) var(--icon-clear) center / 11px no-repeat;
}
input[type=search]::-webkit-search-cancel-button:hover { background-color: rgba(255, 255, 255, .2); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
}
select option { background: var(--panel-2); color: var(--text); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
textarea { resize: vertical; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; line-height: 1.5; }
details:not(.account-menu) > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; user-select: none; transition: color .15s; }
details:not(.account-menu) > summary::-webkit-details-marker { display: none; }
details:not(.account-menu) > summary::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px;
  background: rgba(255, 255, 255, .05) var(--icon-chevron) center / 14px no-repeat; transform: rotate(-90deg); transition: transform .2s var(--ease);
}
details:not(.account-menu)[open] > summary::before { transform: none; }
details:not(.account-menu) > summary:hover { color: var(--text) !important; }

.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── lista de projetos ── */
.catalog-search { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.catalog-search .field { flex: 1; max-width: 610px; }
.catalog-search > .btn { min-height: 42px; }
.page-head .catalog-search { margin: 0; flex: 0 1 440px; }
.page-head .catalog-search .field { max-width: none; }
.page-head .catalog-search input[type=search] { min-height: 44px; border-radius: 13px; background-color: rgba(11, 14, 20, .8); }
.grid-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.project-card {
  display: block; overflow: hidden; border-color: var(--line);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover { border-color: #3a4560; transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 214, 10, .06); }
.project-card:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.project-card .cover { position: relative; aspect-ratio: 16 / 9; background: #0a0c11 center / cover no-repeat; overflow: hidden; }
.project-card .cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0) 45%, rgba(9, 11, 16, .55) 100%);
  transition: opacity .25s;
}
.project-card:hover .cover::after { opacity: .55; }
.project-card .cover .dur { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(5, 7, 10, .72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.project-card .cover .bar { position: absolute; z-index: 2; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 12px rgba(255, 214, 10, .6); transition: width .6s; }
.project-card .cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); background: radial-gradient(circle at 50% 40%, rgba(255, 214, 10, .06), transparent 60%); }
.project-card .body { padding: 15px 17px 17px; }
.project-card h3 { font-size: 15.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.project-card .meta { display: flex; align-items: center; gap: 8px 10px; margin-top: 11px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }

.empty {
  text-align: center; padding: 72px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: radial-gradient(600px 240px at 50% 0%, rgba(255, 214, 10, .05), transparent 70%), rgba(255, 255, 255, .012);
}
.empty svg { color: var(--accent); margin-bottom: 18px; filter: drop-shadow(0 8px 22px rgba(255, 214, 10, .35)); }
.empty h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 540px; margin: 0 auto 26px; line-height: 1.65; }

/* ── novo projeto ── */
.new-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "left right" "foot right"; gap: 24px; align-items: start; }
.new-left { grid-area: left; }
.new-right { grid-area: right; position: sticky; top: 88px; }
.new-foot { grid-area: foot; }
.segmented { display: inline-flex; padding: 4px; background: var(--sunken); border: 1px solid var(--line); border-radius: 13px; gap: 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.segmented button { padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)), var(--panel-3); color: var(--text); box-shadow: var(--edge), 0 2px 6px rgba(0, 0, 0, .35); }
.dropzone {
  position: relative; margin-top: 16px; padding: 46px 22px; text-align: center; cursor: pointer;
  border: 2px dashed #2f3848; border-radius: var(--radius); background: radial-gradient(420px 160px at 50% 0%, rgba(255, 214, 10, .045), transparent 70%), var(--sunken);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: radial-gradient(420px 180px at 50% 0%, rgba(255, 214, 10, .1), transparent 70%), var(--sunken); }
.dropzone.over { transform: scale(1.01); }
.dropzone svg { color: var(--accent); margin-bottom: 12px; padding: 12px; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(255, 214, 10, .2), 0 10px 26px -8px rgba(255, 214, 10, .4); box-sizing: content-box; }
.dropzone strong { display: block; font-size: 16px; margin-bottom: 5px; }
.file-chosen { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-chosen .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chosen .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card {
  position: relative; padding: 15px 16px 15px 44px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--sunken); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .2s;
}
.mode-card::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #46516a; transition: border-color .15s, box-shadow .15s; }
.mode-card:hover { border-color: #3c475e; background: #0e1219; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card.on { border-color: var(--accent-line); background: linear-gradient(135deg, rgba(255, 214, 10, .09), rgba(255, 214, 10, .02)); box-shadow: 0 0 0 1px rgba(255, 214, 10, .15), 0 10px 26px -14px rgba(255, 214, 10, .35); }
.mode-card.on::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px #12161e, inset 0 0 0 8px var(--accent); }
.mode-card strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.mode-card span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sunken); cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--muted); transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.chip:hover { color: var(--text); border-color: #46516a; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(255, 214, 10, .08); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); height: 22px; cursor: pointer; }
.range-row output {
  min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 4px 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255, 214, 10, .25);
}
.caption-demo {
  position: relative; margin-top: 12px; height: 92px; border-radius: 13px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 55%), linear-gradient(135deg, #2c3653, #151a27);
  border: 1px solid var(--line); box-shadow: inset 0 0 40px rgba(0, 0, 0, .35);
}
.caption-demo::after { content: "PRÉVIA"; position: absolute; top: 9px; left: 11px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .35); }
.caption-demo span { font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.cap-hormozi span { text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, .7); }
.cap-hormozi b { color: #ffe600; }
.cap-karaoke span { color: rgba(255, 255, 255, .55); }
.cap-karaoke b { color: #fff; }
.cap-branded span { font-weight: 700; }
.cap-branded b { background: #101216; padding: 2px 7px; border-radius: 6px; }
.cap-subtle span { font-weight: 500; font-size: 14px; opacity: .92; }
.cap-subtle b { font-weight: 500; }
.cap-outline span { -webkit-text-stroke: 1.2px #000; paint-order: stroke fill; text-transform: uppercase; }
.cap-outline b { color: #7dffb1; }
.cap-none { background: linear-gradient(135deg, #2c3653, #151a27); }
.cap-none span { font-size: 13px; font-weight: 500; color: var(--muted); }
.cap-none b { font-weight: 500; }
.upload-progress { padding: 15px 17px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--edge); }
.submit-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }

.progress { height: 10px; border-radius: 999px; background: var(--sunken); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03); }
.progress > i {
  position: relative; display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 14px rgba(255, 214, 10, .45);
  transition: width .5s ease; overflow: hidden;
}
.progress > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 45%, transparent 70%);
  transform: translateX(-100%); animation: shine 2.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.progress.indeterminate > i { width: 35% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ── projeto ── */
.project-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.project-head .titles { flex: 1; min-width: 0; }
.project-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 60%; }
.project-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.03em; font-weight: 700; overflow-wrap: anywhere; }
.project-head .meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); margin-top: 10px; font-size: 12.5px; }
.project-head .meta > * { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; padding: 4px 10px 4px 6px; margin-left: -6px; border-radius: 8px; transition: color .15s, background .15s; }
.back:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.jobbox { padding: 20px 22px; margin-bottom: 22px; border-color: rgba(255, 214, 10, .14); background: radial-gradient(700px 160px at 0% 0%, rgba(255, 214, 10, .06), transparent 70%), var(--panel); }
.jobbox .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.jobbox .top h2 { font-size: 16.5px; letter-spacing: -.01em; flex: 1; display: flex; align-items: center; gap: 10px; }
.jobbox .numbers { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 16px 0 2px; }
.stage { display: block; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .02); color: var(--faint); transition: border-color .2s, background .2s; }
.stage .mark { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }
.stage.feita { color: var(--ok); }
.stage.feita .mark { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 155, .4); }
.stage.feita .mark::after { content: ""; width: 6px; height: 3px; border-left: 2px solid #06281b; border-bottom: 2px solid #06281b; transform: rotate(-45deg) translateY(-1px); }
.stage.ativa { color: var(--text); background: rgba(255, 214, 10, .045); }
.stage.ativa .mark { border-color: rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.stage-heading { display: flex; align-items: center; gap: 8px; }
.stage-label { flex: 1; min-width: 0; font-size: 12px; }
.stage-percent { font-size: 10.5px; max-width: 80px; text-align: right; font-variant-numeric: tabular-nums; color: var(--faint); }
.stage-progress { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .06); margin-top: 10px; overflow: hidden; }
.stage-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.stage.feita .stage-progress i { background: var(--ok); }
.stage.ativa { border-color: rgba(255, 214, 10, .3); box-shadow: 0 0 0 3px rgba(255, 214, 10, .05); }
.stage.ativa .stage-percent { color: var(--accent); }
.stage.pulada { opacity: .55; }
.stage.pulada .stage-progress { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 17px; border-radius: 13px; margin-bottom: 16px; border: 1px solid; box-shadow: var(--edge); }
.banner.err { background: linear-gradient(90deg, rgba(255, 107, 107, .1), rgba(255, 107, 107, .03)); border-color: rgba(255, 107, 107, .35); }
.banner.warn { background: linear-gradient(90deg, rgba(255, 178, 36, .1), rgba(255, 178, 36, .03)); border-color: rgba(255, 178, 36, .32); }
.banner.info { background: linear-gradient(90deg, rgba(108, 178, 255, .1), rgba(108, 178, 255, .03)); border-color: rgba(108, 178, 255, .3); }
.banner .grow { flex: 1; min-width: 0; }
.banner strong { display: block; margin-bottom: 2px; }
.banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--sunken); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.tabs button { display: inline-flex; align-items: center; padding: 9px 18px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; }
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.tabs button.on { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)), var(--panel-3); box-shadow: var(--edge), 0 2px 8px rgba(0, 0, 0, .35); }
.tabs .count { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tabs button.on .count { background: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

/* ── cortes ── */
.clip-controls {
  padding: 18px; margin-bottom: 20px;
  background: radial-gradient(600px 160px at 0% 0%, rgba(255, 214, 10, .05), transparent 70%), var(--panel);
  border-color: var(--line);
}
.clip-controls-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.clip-controls-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.clip-controls .field { position: relative; min-width: 0; }
.clip-controls .clip-search { flex: 1; }
.clip-controls .field > .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1;
  margin: 0; color: #8f99ad; pointer-events: none; transition: color .15s;
}
.clip-controls .field:focus-within > .ico { color: var(--accent); }
.clip-controls input[type=search], .clip-controls select {
  width: 100%; min-height: 46px; padding: 11px 40px 11px 44px;
  background-color: var(--sunken); background-image: none; border-color: var(--line-strong); border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.clip-controls input[type=search] { padding-right: 14px; }
.clip-controls select { appearance: none; cursor: pointer; }
.clip-controls input:hover, .clip-controls select:hover { border-color: #46516a; background-color: #0e1219; }
.clip-controls .active > .ico { color: var(--accent); }
.clip-controls .active select { border-color: var(--accent-line); background-color: rgba(255, 214, 10, .07); color: #ffe982; }
.clip-filter-field > .filter-chevron { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); display: flex; margin: 0; pointer-events: none; color: var(--muted); }
.catalog-results { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 33px; margin-top: 8px; }
.catalog-count { color: var(--muted); font-size: 12.5px; }
.clip-results-count {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums;
}
.clip-results-count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .6); }
.clip-filter-summary { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; flex-wrap: wrap; }
.clip-active-filters { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 7px; min-width: 0; }
.clip-filter-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px;
  border: 1px solid rgba(255, 214, 10, .28); border-radius: 999px;
  background: rgba(255, 214, 10, .08); color: #ffe982; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.clip-filter-chip > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clip-filter-chip > .ico { flex-shrink: 0; color: var(--accent); }
.clip-filter-chip:hover { background: rgba(255, 214, 10, .16); border-color: rgba(255, 214, 10, .5); }
.toolbar-download-count { padding: 1px 7px; min-width: 22px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.batch-download-button { gap: 11px; padding: 9px 14px; border-color: rgba(255, 214, 10, .38); background: linear-gradient(180deg, rgba(255, 214, 10, .1), rgba(255, 214, 10, .04)), var(--panel-2); }
.batch-download-button:hover { border-color: rgba(255, 214, 10, .6); background: linear-gradient(180deg, rgba(255, 214, 10, .16), rgba(255, 214, 10, .06)), var(--panel-2); }
.batch-download-button > .ico { color: var(--accent); }
.batch-download-text { display: grid; text-align: left; gap: 2px; }
.batch-download-text strong { font-size: 13.5px; font-weight: 650; }
.batch-download-text small { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.clip-selection-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: -6px 0 14px; min-height: 32px; }
.clip-selection-controls .grow { flex: 1; }
.selection-count { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.clip-selection-hint { margin: -8px 0 6px; padding-left: 12px; color: var(--faint); font-size: 11.5px; }
.grid-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; align-items: start; padding: 12px; border-radius: var(--radius); }
.clip-selection-area { position: fixed; z-index: 1000; pointer-events: none; border: 1px solid var(--accent); border-radius: 6px; background: rgba(255, 214, 10, .12); box-shadow: 0 0 0 1px rgba(255, 214, 10, .12), 0 3px 18px rgba(0, 0, 0, .1); }
.clip-area-selecting, .clip-area-selecting * { user-select: none !important; cursor: crosshair !important; }
.clip-card { overflow: hidden; border-color: var(--line); transition: box-shadow .25s var(--ease), border-color .2s, transform .25s var(--ease); cursor: pointer; }
.clip-card:hover, .clip-card:focus-within { border-color: #46516a; box-shadow: var(--shadow); transform: translateY(-3px); }
.clip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.clip-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 214, 10, .16), var(--shadow); }
.clip-card.flash { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px rgba(255, 214, 10, .25); }
.clip-card .media { position: relative; background: #000; }
.clip-card .media::after { content: ""; position: absolute; inset: 0 0 auto; height: 72px; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); }
.clip-card.is-playing .media::after { opacity: 0; }
.clip-card .media.vertical { aspect-ratio: 9 / 16; }
.clip-card .media.square { aspect-ratio: 1; }
.clip-card .media.horizontal { aspect-ratio: 16 / 9; }
.clip-card video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.clip-card .media .tag { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.clip-card .media .tag.badge, .clip-card .media .badge { backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.clip-card .media .badge.ia { background: rgba(255, 214, 10, .9); color: var(--accent-ink); border-color: transparent; }
.clip-card .media .badge.manual { background: rgba(181, 147, 255, .9); color: #170b33; border-color: transparent; }
.clip-select { position: absolute; right: 10px; top: 10px; z-index: 3; cursor: pointer; }
.clip-select input { position: absolute; inset: 0; opacity: 0; width: 30px; height: 30px; margin: 0; cursor: pointer; }
.clip-select-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 10px; background: rgba(10, 14, 22, .55); backdrop-filter: blur(10px); color: transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.clip-select:hover .clip-select-mark { border-color: #fff; transform: scale(1.06); }
.clip-select input:checked + .clip-select-mark { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); box-shadow: 0 2px 10px rgba(255, 214, 10, .45); }
.clip-select input:focus-visible + .clip-select-mark { outline: 2px solid #fff; outline-offset: 3px; }
.clip-select input:disabled + .clip-select-mark { opacity: .3; cursor: not-allowed; }
.clip-quickactions-host { position: absolute; top: 52px; left: 10px; right: 10px; z-index: 3; }
.clip-quickactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 5px; background: rgba(12, 16, 24, .9); border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); backdrop-filter: blur(14px); opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease); pointer-events: none; }
.clip-card:hover .clip-quickactions, .clip-card:focus-within .clip-quickactions { opacity: 1; transform: translateY(0); pointer-events: auto; }
.clip-card.is-playing .media > :not(video) { opacity: 0; visibility: hidden; pointer-events: none; }
.clip-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; padding: 8px 3px; color: #dce3ee; background: transparent; border-radius: 9px; font-size: 11px; font-weight: 600; cursor: pointer; min-width: 0; text-decoration: none; transition: background .15s, color .15s; }
.clip-action small { color: var(--muted); font-size: 9px; font-weight: 400; }
.clip-action:hover, .clip-action:focus-visible { background: rgba(255, 255, 255, .09); color: #fff; }
.clip-action.download { color: var(--accent); background: rgba(255, 214, 10, .09); }
.clip-action.download:hover { background: rgba(255, 214, 10, .18); }
.clip-action.subtitles:hover { color: #b9e3ff; background: rgba(127, 193, 239, .14); }
.clip-action.delete:hover { color: #ffb0b0; background: rgba(255, 107, 107, .16); }
.clip-action:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: none), (pointer: coarse) {
  .clip-quickactions { opacity: 1; transform: none; pointer-events: auto; }
}
.clip-card .body { padding: 13px 14px 14px; }
.clip-card h3 { font-size: 14.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; overflow-wrap: anywhere; }
.clip-card .facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.clip-card .actions { display: flex; gap: 6px; margin-top: 12px; }
.clip-card .actions .btn { flex: 1; }
.clip-card .actions .btn.icon { flex: none; }
.clip-metadata-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; margin-top: 11px; padding: 11px 0 0; border: 0; border-top: 1px solid var(--line-soft); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: color .15s; }
.clip-metadata-trigger:hover, .clip-metadata-trigger:focus-visible { color: var(--accent); }
.clip-metadata-trigger > .ico { transform: rotate(-90deg); flex: 0 0 auto; transition: transform .2s var(--ease); }
.clip-metadata-trigger:hover > .ico { transform: rotate(-90deg) translateY(2px); }
.clip-card .pending { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; margin-top: 9px; line-height: 1.45; }
.clip-metadata-dialog { width: min(740px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.clip-metadata-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(500px 140px at 0% 0%, rgba(255, 214, 10, .08), transparent 70%); }
.clip-metadata-head > div { min-width: 0; }
.clip-metadata-head > button { flex: 0 0 auto; padding: 7px; }
.clip-metadata-eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.clip-metadata-subtitle { font-size: 13px; overflow-wrap: anywhere; }
.clip-metadata-content { padding: 20px 26px; display: grid; gap: 14px; }
.clip-metadata-section { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .018); }
.clip-metadata-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.clip-metadata-section h3 { font-size: 12px; font-weight: 700; color: #e0e6f0; letter-spacing: .02em; }
.clip-metadata-section-head > .hint { font-size: 11px; margin: 0; }
.clip-metadata-section-head > button { flex: 0 0 auto; font-size: 11px; padding: 4px 8px; }
.clip-metadata-section p { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.clip-metadata-titles ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.clip-metadata-titles li { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 4px 7px; background: rgba(0, 0, 0, .18); transition: border-color .15s; }
.clip-metadata-titles li:hover { border-color: var(--line-strong); }
.clip-metadata-titles li.main { border-color: rgba(255, 214, 10, .28); background: rgba(255, 214, 10, .05); }
.clip-metadata-title-copy { display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 2px; border: 0; border-radius: 6px; background: transparent; color: #dce3ee; font-size: 13.5px; line-height: 1.5; cursor: pointer; min-width: 0; flex: 1; }
.clip-metadata-title-copy > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.clip-metadata-title-copy > .ico { flex: 0 0 auto; color: var(--muted); opacity: 0; transition: opacity .15s; }
.clip-metadata-title-copy:hover > .ico, .clip-metadata-title-copy:focus-visible > .ico { opacity: 1; }
.clip-metadata-titles li.main .clip-metadata-title-copy { color: var(--accent); }
.clip-metadata-main { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.clip-metadata-use { font-size: 11px; padding: 5px 9px; flex: 0 0 auto; }
.clip-metadata-hashtags p { color: #a7cee8; }
.clip-metadata-why { background: transparent; }
.clip-metadata-why p { color: var(--muted); margin-top: 8px; }
.clip-metadata-copy-post { justify-self: start; }
.clip-metadata-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px 22px; border-top: 1px solid var(--line-soft); }
.clip-metadata-foot > div { min-width: 0; }
.clip-metadata-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .clip-metadata-head { padding: 18px 16px 16px; gap: 10px; }
  .clip-metadata-content { padding: 16px; gap: 12px; }
  .clip-metadata-section { padding: 12px; }
  .clip-metadata-section-head { flex-wrap: wrap; gap: 6px; }
  .clip-metadata-titles li { flex-wrap: wrap; }
  .clip-metadata-title-copy { flex-basis: 100%; }
  .clip-metadata-title-copy > .ico { opacity: .7; }
  .clip-metadata-main, .clip-metadata-use { margin-bottom: 5px; }
  .clip-metadata-foot { padding: 14px 16px 16px; }
}

/* ── editor ── */
.editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .wait { color: var(--muted); padding: 24px; text-align: center; }
.timeline {
  position: relative; height: 40px; margin-top: 14px; border-radius: 11px; cursor: pointer; overflow: hidden; touch-action: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 24px), var(--sunken);
  border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45);
}
.timeline .clipbar { position: absolute; top: 5px; bottom: 5px; min-width: 3px; border-radius: 4px; background: rgba(255, 214, 10, .26); border-left: 2px solid rgba(255, 214, 10, .8); }
.timeline .clipbar.manual { background: rgba(181, 147, 255, .26); border-left-color: rgba(181, 147, 255, .85); }
.timeline .clipbar.selected { background: rgba(61, 220, 155, .3); border-left-color: var(--ok); }
.timeline .sel { position: absolute; top: 2px; bottom: 2px; min-width: 4px; background: rgba(61, 220, 155, .28); border: 1.5px solid var(--ok); border-radius: 6px; pointer-events: none; box-shadow: 0 0 14px rgba(61, 220, 155, .3); }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.timeline .head::before { content: ""; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.timeline-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }
.cutform { margin-top: 16px; padding: 18px; }
.editor-save-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-save-actions .muted { flex: 1 1 200px; }
.editor-preview-btn { border-color: rgba(61, 220, 155, .38); background: linear-gradient(180deg, rgba(61, 220, 155, .1), rgba(61, 220, 155, .03)), var(--panel-2); }
.editor-preview-btn:hover:not(:disabled) { border-color: var(--ok); background: linear-gradient(180deg, rgba(61, 220, 155, .16), rgba(61, 220, 155, .05)), var(--panel-2); }
.editor-preview-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.editor-preview-head { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.editor-preview-head p { font-size: 13px; }
.editor-preview-close { flex: 0 0 auto; padding: 7px; }
.editor-preview-status { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--ok); background: rgba(61, 220, 155, .08); border: 1px solid rgba(61, 220, 155, .2); margin-top: 18px; font-size: 13px; }
.editor-preview-status.err { color: var(--err); background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .25); }
.editor-preview-media { display: grid; place-items: center; margin-top: 14px; border-radius: var(--radius-sm); background: #000; overflow: hidden; border: 1px solid var(--line); }
.editor-preview-media video { display: block; max-width: 100%; width: auto; max-height: min(65vh, 640px); background: #000; }
.editor-preview-detail { font-size: 12px; line-height: 1.5; margin-top: 12px; }
.editor-selection { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 13px; margin-bottom: 14px; border: 1px solid rgba(61, 220, 155, .35); border-radius: 12px; background: linear-gradient(90deg, rgba(61, 220, 155, .09), rgba(61, 220, 155, .02)); }
.editor-selection > div { display: grid; gap: 3px; min-width: 0; }
.editor-selection strong { font-size: 13px; color: var(--ok); }
.editor-selection span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.editor-selection.conflict { border-color: rgba(255, 178, 36, .4); background: linear-gradient(90deg, rgba(255, 178, 36, .1), rgba(255, 178, 36, .02)); }
.editor-selection.conflict strong { color: var(--warn); }
.editor-clips { margin-top: 16px; padding: 16px; }
.editor-clips-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-clips-head h3 { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 650; }
.editor-clips-head .count { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); font-weight: 600; }
.editor-clips > .hint { margin-top: 6px; }
.editor-clips-list { display: grid; gap: 6px; max-height: 232px; overflow: auto; margin-top: 12px; padding-right: 2px; }
.editor-clips-list:empty { display: none; }
.editor-clips-empty { font-size: 13px; color: var(--muted); margin-top: 14px; }
.editor-clip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--sunken); transition: border-color .15s, background .15s; }
.editor-clip:hover { border-color: #3a4560; background: var(--panel-2); }
.editor-clip:disabled { opacity: .5; cursor: not-allowed; }
.editor-clip[aria-pressed=true] { border-color: var(--ok); background: rgba(61, 220, 155, .09); box-shadow: inset 3px 0 var(--ok); }
.editor-clip-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.editor-clip-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-clip-times { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.editor-clip-selected { font-size: 11px; color: var(--ok); font-weight: 700; display: none; }
.editor-clip[aria-pressed=true] .editor-clip-selected { display: block; }
.cutrow { display: grid; grid-template-columns: 62px 112px auto 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.cutrow .lbl { font-weight: 650; color: var(--text-2); font-size: 13px; }
.cutrow input { text-align: center; font-variant-numeric: tabular-nums; padding: 7px 8px; min-height: 38px; font-weight: 600; }
.nudges { display: flex; gap: 4px; }
.nudges .btn { min-height: 34px; padding: 5px 9px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cut-summary { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 11px 14px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line-soft); flex-wrap: wrap; }
.cut-summary .len { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.cut-summary .len.bad { color: var(--err); }
.cut-summary .len.long { color: var(--warn); }
.cut-summary .grow { flex: 1; }
.cut-text { font-size: 13px; color: var(--muted); max-height: 4.6em; overflow: hidden; margin-bottom: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.keys { margin-top: 12px; font-size: 12px; color: var(--faint); }
kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--panel-2); font: 600 11px Consolas, monospace; color: var(--text-2); }

.transcript { display: flex; flex-direction: column; max-height: calc(100vh - 160px); min-height: 440px; position: sticky; top: 84px; overflow: hidden; }
.transcript .thead { padding: 16px 16px 12px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); }
.transcript .thead h3 { font-size: 15px; font-weight: 650; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.transcript .thead h3 small { font-weight: 600; color: var(--faint); font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.transcript-tools { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.transcript-tools .btn { font-size: 11.5px; padding: 5px 9px; min-height: 30px; }
.transcript-message { margin-top: 8px; font-size: 11.5px; }
.transcript-message.err { color: var(--err); }
.transcript-find { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid rgba(255, 178, 36, .28); border-radius: 12px; background: rgba(255, 178, 36, .04); min-width: 0; }
.transcript-find-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.transcript-find-head strong { font-size: 12.5px; font-weight: 700; }
.transcript-find-head .btn { padding: 3px; border: 0; min-height: 26px; }
.transcript-find input[type=text] { min-width: 0; min-height: 34px; padding: 7px 10px; font-size: 12.5px; }
.transcript-find-query { display: grid; grid-template-columns: minmax(0, 1fr) 32px 32px; gap: 4px; }
.transcript-find-nav { padding: 6px !important; justify-content: center; min-height: 34px; }
.transcript-find-nav:first-of-type .ico { transform: rotate(180deg); }
.transcript-find-options { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.transcript-find-options label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); cursor: pointer; }
.transcript-find-options input { width: 13px; height: 13px; margin: 0; accent-color: var(--accent); }
.transcript-find-footer { display: grid; gap: 7px; }
.transcript-find-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.transcript-find-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.transcript-find-actions .btn { padding: 5px 9px; font-size: 11px; min-height: 28px; }
.transcript-find-scope { color: var(--faint); font-size: 10.5px; line-height: 1.45; }
.transcript-find-message { color: var(--ok); font-size: 11px; line-height: 1.4; }
.transcript-find-message.err { color: var(--err); }
.transcript.editing .seg.find-match { background: rgba(255, 178, 36, .05); }
.transcript.editing .seg.find-current { border-left-color: var(--accent); background: rgba(255, 178, 36, .12); }
.transcript.editing .seg.find-current .seg-text-editor { border-color: rgba(255, 178, 36, .6); }
.caption-edit-hint { margin-top: 8px; font-size: 11px; }
.transcript .list { overflow: auto; padding: 8px; flex: 1; }
.seg { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: start; padding: 7px 9px; border-radius: 10px; cursor: pointer; border-left: 3px solid transparent; transition: background .12s; }
.seg:hover { background: rgba(255, 255, 255, .04); }
.seg .t { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; padding-top: 2px; font-weight: 600; }
.seg-time { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.seg:focus-visible { outline: 1px solid var(--ok); outline-offset: -1px; }
.seg .x { font-size: 13.5px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.seg-content { min-width: 0; }
.seg-caption { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.seg-caption input { width: 10px; height: 10px; accent-color: var(--ok); margin: 0; flex: 0 0 auto; }
.seg.caption-hidden .x { color: var(--muted); }
.seg.caption-hidden .seg-caption { color: #d2b88b; }
.seg-text-editor { width: 100%; resize: vertical; min-height: 66px; padding: 8px; font-size: 13px; line-height: 1.45; border-color: #404b60; }
.transcript.editing .seg { cursor: default; grid-template-columns: 52px minmax(0, 1fr); }
.transcript.editing .marks { display: none; }
.seg .x mark { background: rgba(255, 214, 10, .35); color: inherit; border-radius: 3px; }
.seg .marks { display: flex; gap: 3px; visibility: hidden; }
.seg:hover .marks, .seg:focus-within .marks { visibility: visible; }
.seg .marks button { all: unset; cursor: pointer; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-3); }
.seg .marks button:hover { color: var(--accent-ink); background: var(--accent); }
.seg.insel { background: rgba(61, 220, 155, .1); border-left-color: var(--ok); }
.seg.now { background: rgba(255, 214, 10, .05); }
.seg.now .x { color: var(--accent); }
.transcript .none { padding: 30px 18px; text-align: center; color: var(--muted); }
.transcript .pause { margin: 10px 8px; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--faint); font-size: 12px; text-align: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 8px, transparent 8px 16px); }

/* ── diálogos e avisos ── */
dialog {
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 140px), var(--panel); color: var(--text);
  box-shadow: var(--shadow-lg), var(--edge);
}
dialog[open] { animation: dialog-in .22s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog::backdrop { background: rgba(4, 6, 10, .6); backdrop-filter: blur(6px); }
dialog form, dialog .dlg { padding: 24px; }
dialog h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.generation-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.generation-choices { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 9px; }
.generation-choices legend { padding: 0; margin-bottom: 9px; }
.generation-choice { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: var(--sunken); transition: border-color .15s, background .15s; }
.generation-choice:hover { border-color: #3c475e; }
.generation-choice.selected { border-color: var(--accent-line); background: linear-gradient(135deg, rgba(255, 214, 10, .09), rgba(255, 214, 10, .02)); }
.generation-choice input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--accent); }
.generation-choice strong, .generation-choice .muted { display: block; }
.generation-choice strong { font-size: 14px; }
.generation-choice .muted { font-size: 12px; margin-top: 3px; }
.generation-options:disabled .generation-choice { cursor: wait; opacity: .65; }
.generation-note { color: var(--muted); font-size: 12px; margin: 10px 0 18px; }
.generation-note.replace { color: var(--warn); }
.generation-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.generation-dialog .dlg-actions { flex-wrap: wrap; }
.download-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.download-title { margin-bottom: 18px; overflow-wrap: anywhere; font-size: 13.5px; }
.download-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.download-options legend { padding: 0; margin-bottom: 9px; }
.download-choices { display: grid; gap: 8px; }
.download-choice { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: var(--sunken); transition: border-color .15s, background .15s; }
.download-choice:hover { border-color: #3c475e; }
.download-choice.selected { border-color: var(--accent-line); background: linear-gradient(135deg, rgba(255, 214, 10, .09), rgba(255, 214, 10, .02)); }
.download-choice input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--accent); }
.download-choice strong, .download-choice .muted { display: block; }
.download-choice strong { font-size: 14px; }
.download-choice .muted { font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.download-choice-content { flex: 1; min-width: 0; }
.download-size { text-align: right; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 3px; max-width: 105px; }
.download-ready { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; }
.download-options:disabled .download-choice { cursor: wait; opacity: .65; }
.download-note { margin-top: 12px; }
.download-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.download-status:not(:empty) { margin-top: 12px; }
.download-dialog .form-message { margin-top: 12px; }
.download-retry:not(:has([hidden])) { margin-top: 10px; }
.download-dialog .dlg-actions { flex-wrap: wrap; }
.batch-delete-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.batch-delete-heading { display: flex; align-items: center; gap: 12px; }
.batch-delete-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.batch-delete-symbol { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border-radius: 13px; color: var(--err); background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .25); }
.batch-delete-description { margin-top: 14px; font-size: 13.5px; }
.batch-delete-hidden { margin-top: 12px; color: var(--warn); font-size: 12.5px; }
.batch-delete-list { list-style: none; margin: 16px 0 0; padding: 0; max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); }
.batch-delete-list li { display: grid; gap: 3px; padding: 10px 13px; font-size: 13px; overflow-wrap: anywhere; }
.batch-delete-list li + li { border-top: 1px solid var(--line); }
.batch-delete-list small { color: var(--muted); font-size: 10.5px; }
.batch-delete-status { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.batch-delete-dialog .form-message { margin-top: 12px; }
.batch-delete-dialog .dlg-actions { flex-wrap: wrap; }
.batch-delete-dialog .dlg-actions .btn { min-width: 100px; }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }
.toast {
  position: relative; display: flex; gap: 10px; align-items: center; padding: 13px 16px 13px 18px; border-radius: 13px; overflow: hidden;
  background: rgba(24, 29, 39, .92); backdrop-filter: blur(14px); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); animation: rise .25s var(--ease); font-size: 14px;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); }
.toast.err { border-color: rgba(255, 107, 107, .45); }
.toast.err::before { background: var(--err); }
.toast.ok { border-color: rgba(61, 220, 155, .4); }
.toast.ok::before { background: var(--ok); }
.toast button { all: unset; cursor: pointer; color: var(--accent); font-weight: 700; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.loading { display: grid; place-items: center; padding: 90px 0; color: var(--muted); gap: 14px; }
.loading .spinner { width: 22px; height: 22px; border-width: 2.5px; }

/* ── acesso e conta ── */
.auth-pending .topbar { border-bottom-color: transparent; }
.signed-out .topbar { position: static; background: transparent; backdrop-filter: none; border-bottom: 0; height: 80px; padding: 0 max(28px, calc((100vw - 1236px) / 2)); }
.signed-out .brand { font-size: 24px; }
.signed-out .brand svg { width: 38px; height: 38px; }
.signed-out main#app { padding-top: 28px; }
.eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 78px; align-items: center; min-height: calc(100vh - 214px); max-width: 1120px; margin: 0 auto; }
.auth-story { min-width: 0; padding: 26px 0; }
.auth-story h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.045em; font-weight: 750; }
.auth-story h1 > span { background: linear-gradient(100deg, var(--accent-hi), var(--accent) 45%, #ffb000); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-intro { font-size: 16.5px; line-height: 1.75; color: var(--muted); margin-top: 22px; max-width: 470px; }
.auth-illustration { position: relative; height: 220px; margin: 38px 0 34px; isolation: isolate; }
.auth-illustration::before { content: ""; position: absolute; inset: -20px; background: radial-gradient(ellipse at 45% 55%, rgba(255, 214, 10, .1), transparent 68%); z-index: -1; }
.auth-video-frame { position: absolute; top: 8px; left: 0; width: min(94%, 444px); height: 180px; border: 1px solid #374136; border-radius: 18px; background: linear-gradient(125deg, #202719, #121821 60%, #1b2330); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.auth-video-frame::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; }
.auth-waveform { position: absolute; left: 34px; right: 32px; top: 20px; bottom: 54px; display: flex; align-items: center; gap: 5px; }
.auth-waveform i { flex: 1; min-width: 2px; border-radius: 5px; background: linear-gradient(to top, rgba(255, 214, 10, .24), #ffd60a); opacity: .85; }
.auth-clip-marker { position: absolute; bottom: 25px; left: 30px; display: flex; align-items: center; gap: 9px; color: #d3d9c6; font-size: 11px; }
.auth-clip-marker .ico { color: var(--accent); }
.auth-clip-preview { position: absolute; right: 0; top: 37px; height: 179px; width: 118px; background: linear-gradient(180deg, #ffe35a, #ffd60a 60%, #f1c300); color: var(--accent-ink); border: 5px solid #222a34; border-radius: 17px; box-shadow: 0 18px 34px rgba(0, 0, 0, .4), 0 0 40px rgba(255, 214, 10, .15); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transform: rotate(5deg); }
.auth-clip-preview .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); align-items: center; justify-content: center; }
.auth-clip-preview > span:not(.ico) { font-size: 10px; font-weight: 900; line-height: 1.5; text-align: center; }
.auth-features { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-2); font-size: 12px; }
.auth-features > span { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.auth-features .ico { color: var(--accent); }
.auth-card { padding: 36px; border-color: var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-lg), var(--edge); background: radial-gradient(420px 160px at 100% 0%, rgba(255, 214, 10, .06), transparent 70%), var(--panel); }
.auth-card .eyebrow { font-size: 10px; letter-spacing: .14em; margin-bottom: 12px; }
.auth-card h2 { font-size: 28px; letter-spacing: -.03em; }
.auth-description { color: var(--muted); font-size: 13.5px; margin: 10px 0 25px; line-height: 1.6; }
.google-button { width: 100%; min-height: 48px; background: #f4f5f7; border-color: #f4f5f7; color: #1f2430; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.google-button:hover { background: #fff; border-color: #fff; color: #11141b; }
.google-button:disabled { background: var(--panel-2); border-color: var(--line); color: var(--muted); opacity: .65; }
.google-hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--faint); font-size: 11.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { gap: 16px; }
.auth-form input { padding: 12px 14px; min-height: 48px; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 80px; }
.password-toggle { position: absolute; top: 0; right: 5px; height: 100%; border: 0; padding: 0 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.password-toggle:hover { color: var(--accent); }
.password-toggle:disabled { cursor: not-allowed; }
.auth-submit { width: 100%; min-height: 50px; justify-content: space-between; margin-top: 4px; padding: 12px 17px; }
.auth-submit > span { font-size: 18px; transition: transform .2s var(--ease); }
.auth-submit:hover > span { transform: translateX(3px); }
.auth-switch { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a, .text-link { color: var(--accent); font-weight: 650; }
.auth-switch a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-footnote { margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 17px; text-align: center; font-size: 11px; color: var(--faint); line-height: 1.65; }
.form-message { font-size: 13px; padding: 10px 13px; border-radius: 10px; overflow-wrap: anywhere; }
.form-message.err { color: #ffa3a3; border: 1px solid rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .08); }
.account-menu { position: relative; }
.account-menu-trigger { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; border-radius: 12px; padding: 4px 8px 4px 4px; font-size: 13px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.account-menu-trigger::-webkit-details-marker { display: none; }
.account-menu-trigger:hover, .account-menu[open] .account-menu-trigger { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.account-menu-avatar, .account-avatar { display: grid; place-items: center; background: linear-gradient(140deg, rgba(255, 214, 10, .28), rgba(255, 214, 10, .08)); color: var(--accent); border: 1px solid rgba(255, 214, 10, .35); font-weight: 750; }
.account-menu-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 13px; }
#account-menu-name { overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.account-menu-chevron { color: var(--muted); }
.account-menu-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(22, 27, 37, .96); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); display: grid; z-index: 40; animation: dialog-in .16s var(--ease); }
.account-menu-list > a, .account-menu-list > button { display: block; width: 100%; text-align: left; padding: 10px 11px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .12s; }
.account-menu-list > a:hover, .account-menu-list > button:hover { background: rgba(255, 255, 255, .06); }
.account-menu-list > button:last-child:hover { color: #ffb3b3; background: rgba(255, 107, 107, .1); }
.account-menu-email { padding: 9px 11px 12px; margin-bottom: 4px; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-page-head { margin: 4px 0 28px; }
.account-page-head .eyebrow { margin-bottom: 10px; }
.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.account-summary { padding: 28px 24px; align-self: start; position: sticky; top: 88px; background: radial-gradient(260px 160px at 0% 0%, rgba(255, 214, 10, .07), transparent 70%), var(--panel); }
.account-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 28px; margin-bottom: 18px; box-shadow: 0 10px 26px -10px rgba(255, 214, 10, .45); }
.account-summary h2 { font-size: 18px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.account-email { font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.account-methods { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; display: grid; gap: 10px; }
.account-method { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.account-method .ico svg { width: 16px; height: 16px; }
.method-check { color: var(--ok); font-weight: 700; width: 16px; text-align: center; }
.account-summary > .hint { margin-top: 24px; line-height: 1.7; }
.account-sections { gap: 20px; }
.account-section { padding: 28px; }
.account-section-head { margin-bottom: 22px; }
.account-section-head h2 { font-size: 19px; letter-spacing: -.02em; }
.account-section-head p { font-size: 13px; margin-top: 6px; line-height: 1.6; }
.account-section input { min-height: 44px; }
.account-section input[readonly] { color: var(--muted); background-color: rgba(255, 255, 255, .025); border-style: dashed; }
.account-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-section .pill { justify-self: start; }
.mode-card.off { cursor: not-allowed; opacity: .55; }
.mode-card.off:hover { border-color: var(--line); background: var(--sunken); }
.auth-footnote a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); transition: color .15s; }
.auth-footnote a:hover { color: var(--accent); }

/* ── rodapé e documentos legais (/termos, /privacidade) ── */
.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 20px; padding: 0 26px 30px; color: var(--faint); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-footer a { color: var(--muted); transition: color .15s; }
.site-footer a:hover { color: var(--accent); }
.site-footer a[aria-current] { color: var(--text-2); }
.legal { flex: 1 0 auto; width: 100%; max-width: 780px; margin: 0 auto; padding: 52px 26px 72px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; animation: page-in .35s var(--ease); }
.legal .eyebrow { margin-bottom: 12px; }
.legal h1 { font-size: 42px; line-height: 1.08; letter-spacing: -.035em; color: var(--text); }
.legal-meta { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.legal-summary { margin: 34px 0 0; padding: 22px 26px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 214, 10, .08), rgba(255, 214, 10, .015)); box-shadow: var(--edge); }
.legal .legal-summary h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.legal-toc { margin: 18px 0 0; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--edge); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 14px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-toc li::marker { color: var(--faint); }
.legal-toc a { color: var(--muted); transition: color .15s; }
.legal-toc a:hover { color: var(--accent); }
.legal section { margin-top: 44px; scroll-margin-top: 90px; }
.legal h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; color: var(--text); margin-bottom: 12px; }
.legal h3 { font-size: 15.5px; color: var(--text); margin: 24px 0 6px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 650; }
.legal section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 214, 10, .4); }
.legal section a:hover { text-decoration-color: var(--accent); }
.legal code { font-family: "Cascadia Code", Consolas, ui-monospace, monospace; font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--panel-3); color: var(--text); }
.legal-table { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.legal th, .legal td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal th { background: var(--panel-2); color: var(--text); font-weight: 650; font-size: 13px; }
.legal tr:last-child td { border-bottom: 0; }
.legal .legal-note { margin: 10px 0 4px; padding: 12px 15px; border-left: 3px solid var(--warn); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; background: rgba(255, 178, 36, .07); font-size: 14.5px; line-height: 1.65; }

@media (max-width: 1080px) {
  .auth-layout { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); }
  .auth-card { padding: 28px; }
  .auth-story h1 { font-size: 42px; }
  .auth-features { gap: 8px; }
}
@media (max-width: 780px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 460px; gap: 26px; min-height: auto; }
  .signed-out .topbar { height: 68px; justify-content: center; padding: 0 22px; }
  .signed-out main#app { padding-top: 8px; }
  .auth-story { padding: 0; text-align: center; }
  .auth-story > .eyebrow, .auth-illustration, .auth-features { display: none; }
  .auth-story h1 { font-size: 32px; }
  .auth-intro { font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-summary { position: static; padding: 22px; }
}

@media (max-width: 980px) {
  .new-layout, .editor { grid-template-columns: minmax(0, 1fr); }
  .new-layout { grid-template-areas: "left" "right" "foot"; }
  .new-right { position: static; }
  .transcript { position: static; max-height: 540px; }
  .clip-controls-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-head .catalog-search { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 10px; height: 58px; }
  .topnav, #status-pill { display: none; }
  main#app { padding: 20px 14px 64px; }
  .page-head h1 { font-size: 25px; }
  .row2, .mode-cards { grid-template-columns: 1fr; }
  .project-head { flex-wrap: wrap; gap: 6px 10px; }
  .project-head .titles { flex-basis: 100%; }
  .project-head h1 { font-size: 22px; }
  .project-head-actions { max-width: 100%; justify-content: flex-start; }
  .tabs { display: flex; }
  .tabs button { flex: 1; justify-content: center; }
  .catalog-search { align-items: stretch; flex-direction: column; gap: 6px; }
  .catalog-search > .btn { align-self: flex-start; }
  .clip-controls-fields { grid-template-columns: 1fr; }
  .clip-controls { padding: 13px; }
  .clip-controls-top { align-items: stretch; flex-direction: column; gap: 10px; }
  .clip-results-count { align-self: flex-start; }
  .clip-filter-summary { gap: 8px; }
  .clip-active-filters { flex-basis: 100%; }
  .cutrow { grid-template-columns: 54px minmax(0, 1fr); }
  .cutrow .nudges { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cutrow .mark-btn { grid-column: 1 / -1; }
  .editor-clip-selected { font-size: 10px; }
  .editor-clip { gap: 7px; padding: 9px; flex-wrap: wrap; }
  .editor-clip-body { min-width: 140px; }
  .editor-selection { flex-wrap: wrap; }
  .grid-clips { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 4px; }
  .grid-projects { gap: 14px; }
  #account-menu-name, .account-menu-chevron { display: none; }
  .topbar-right { gap: 6px; }
  .topbar-right > .btn { padding: 7px 11px; font-size: 12.5px; }
  .auth-card { padding: 25px 21px; }
  .auth-card h2 { font-size: 25px; }
  .account-section { padding: 22px; }
  .account-page-head h1 { font-size: 24px; }
  .legal { padding: 30px 16px 56px; font-size: 15px; }
  .legal h1 { font-size: 31px; }
  .legal h2 { font-size: 20px; }
  .legal-summary, .legal-toc { padding: 16px 18px; }
  .legal-toc ol { columns: 1; }
  .site-footer { padding: 0 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
