[hidden] { display: none !important; }

/* Kinora — liquid glass over blue. Wireframes: Paper file "Kinora: interface" (light on page 1, dark on "Escuro").
   Palette (1 darkest → 9 lightest): #0B203D #0A1B60 #122B8F #173BC3 #2558DC #4C78F3 #84A3F6 #B8CCF0 #F5F5F5.
   Colors are roles, set twice: light here, dark below. data-theme on <html> (Perfil → Aparência) overrides the phone. */
@font-face { font-family: "Kinora Sans"; src: url("/fonts/PlusJakartaSans.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #F5F5F5;
  --surface: #FFFFFF;                      /* cards, rows, fields */
  --surface-2: rgba(23, 59, 195, .08);     /* chips, secondary buttons, tinted boxes */
  --line: rgba(184, 204, 240, .75);
  --title: #0B203D;                        /* headings and main text */
  --text: #0B203D;
  --muted: #173BC3;                        /* secondary text: blue, not grey */
  --soft: #84A3F6;                         /* tertiary text, empty states */
  --accent: #2558DC;                       /* the ONE main action of a screen */
  --accent-2: #4C78F3;
  --accent-text: #FFFFFF;
  --strong: #0B203D;                       /* selected pill / segment */
  --strong-text: #F5F5F5;
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(184, 204, 240, .9);
  --sheet: rgba(245, 245, 245, .94);
  --bar: rgba(11, 32, 61, .84);            /* floating tab bar and action bar: navy glass in both themes */
  --bar-line: rgba(255, 255, 255, .08);
  --bar-text: #84A3F6;
  --blob-1: #84A3F6; --blob-2: #4C78F3; --blob-op: .4;
  --ok: #16a34a; --warn: #b45309; --danger: #dc2626;
  --ok-bg: rgba(52, 211, 153, .16); --warn-bg: rgba(252, 211, 77, .22); --danger-bg: rgba(248, 113, 113, .14);
  --hero: linear-gradient(180deg, #173BC3 0%, #122B8F 55%, #0A1B60 100%);
  --veil: linear-gradient(0deg, rgba(10, 27, 96, 1) 0%, rgba(10, 27, 96, .82) 22%, rgba(10, 27, 96, .45) 48%, rgba(10, 27, 96, .12) 75%, rgba(10, 27, 96, 0) 100%);
  --orb: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #B8CCF0 22%, #4C78F3 55%, #173BC3 100%);
  --radius: 26px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #000B14; --surface: rgba(255, 255, 255, .06); --surface-2: rgba(132, 163, 246, .14); --line: rgba(132, 163, 246, .2);
  --title: #F5F5F5; --text: #F5F5F5; --muted: #84A3F6; --soft: #4C78F3;
  --strong: #2558DC; --strong-text: #FFFFFF; --glass: rgba(255, 255, 255, .07); --glass-line: rgba(132, 163, 246, .22);
  --sheet: rgba(10, 27, 96, .9); --bar: rgba(18, 43, 143, .45); --bar-line: rgba(255, 255, 255, .12);
  --blob-1: #173BC3; --blob-2: #2558DC; --blob-op: .55;
  --ok: #34d399; --warn: #fcd34d; --danger: #f87171;
  --ok-bg: rgba(52, 211, 153, .14); --warn-bg: rgba(252, 211, 77, .14); --danger-bg: rgba(248, 113, 113, .14);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000B14; --surface: rgba(255, 255, 255, .06); --surface-2: rgba(132, 163, 246, .14); --line: rgba(132, 163, 246, .2);
  --title: #F5F5F5; --text: #F5F5F5; --muted: #84A3F6; --soft: #4C78F3;
  --strong: #2558DC; --strong-text: #FFFFFF; --glass: rgba(255, 255, 255, .07); --glass-line: rgba(132, 163, 246, .22);
  --sheet: rgba(10, 27, 96, .9); --bar: rgba(18, 43, 143, .45); --bar-line: rgba(255, 255, 255, .12);
  --blob-1: #173BC3; --blob-2: #2558DC; --blob-op: .55;
  --ok: #34d399; --warn: #fcd34d; --danger: #f87171;
  --ok-bg: rgba(52, 211, 153, .14); --warn-bg: rgba(252, 211, 77, .14); --danger-bg: rgba(248, 113, 113, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 "Kinora Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh; overflow-x: hidden;
  padding: var(--safe-t) 16px calc(112px + var(--safe-b));
}
main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
/* Soft blue light behind the glass: what the frosted surfaces blur. */
.blob { position: fixed; z-index: 0; width: 300px; height: 300px; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); pointer-events: none; }
.blob.b1 { background: var(--blob-1); top: -90px; right: -80px; }
.blob.b2 { background: var(--blob-2); bottom: 10%; left: -140px; opacity: calc(var(--blob-op) * .7); }
h1 { font-size: 32px; line-height: 1.12; margin: 18px 0 6px; letter-spacing: -0.03em; font-weight: 800; color: var(--title); text-wrap: balance; }
h2 { font-size: 20px; margin: 22px 0 10px; font-weight: 800; letter-spacing: -0.01em; color: var(--title); }
h3 { font-size: 16px; margin: 0 0 6px; font-weight: 750; color: var(--title); }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
a { color: var(--accent); }
.num { font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--title); font-variant-numeric: tabular-nums; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 12px 0;
}
.card.tap { cursor: pointer; }
.card.tap:active { background: var(--surface-2); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.big-choice { display: grid; gap: 12px; margin-top: 16px; }
.big-choice .card { display: flex; gap: 14px; align-items: center; padding: 20px 16px; }
.big-choice .emoji { font-size: 34px; }

button, .btn {
  font: inherit; font-weight: 750; border: 0; border-radius: 999px; padding: 15px 20px; min-height: 50px;
  background: var(--accent); color: var(--accent-text); width: 100%; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none;
  transition: transform .12s ease, background-color .2s ease, filter .2s ease;
}
button:active, .btn:active { transform: scale(.97); }
button:not(.secondary):not(.ghost):not(.chip):not(.linkish):active { background: var(--accent-2); }
button.secondary, .btn.secondary { background: var(--surface-2); color: var(--muted); border: 0; }
button.ghost { background: transparent; color: var(--muted); padding: 10px; width: auto; min-height: 0; font-weight: 650; }
button:disabled { opacity: .5; }
button:focus-visible, .btn:focus-visible, .tap:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.iconbtn { width: 44px; height: 44px; min-height: 0; padding: 0; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.iconbtn svg, .rbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

input, textarea, select {
  font: inherit; width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 6px 0 12px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--soft); }
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2384A3F6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
/* The open list is drawn by the browser: on desktop it can't use the select's see-through background and falls
   back to white, while the options inherit the light text of the dark theme. Give them solid theme colors. */
select option { background-color: var(--bg); color: var(--text); font-weight: 600; }
label { font-size: 14px; color: var(--muted); font-weight: 600; }

.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--surface-2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* The AI at work: a glowing blue sphere that breathes. */
.orb { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--orb); box-shadow: 0 0 22px rgba(76, 120, 243, .7); animation: breathe 2.4s ease-in-out infinite; }
.orb.s { width: 26px; height: 26px; box-shadow: 0 0 12px rgba(76, 120, 243, .75); }
.orb.xl { width: 116px; height: 116px; box-shadow: 0 0 60px rgba(132, 163, 246, .85), 0 0 120px rgba(76, 120, 243, .45); }
@keyframes breathe { 50% { transform: scale(1.06); filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .orb, .spinner { animation: none; } }
.status { display: flex; gap: 12px; align-items: center; }

/* Onboarding chat */
.ob-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.ob-head b { display: block; font-size: 17px; color: var(--title); }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 120px; }
.bubble { padding: 12px 16px; border-radius: 22px; max-width: 86%; white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.bubble.ai { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; color: var(--text); }
.bubble.me { background: var(--accent); color: #FFFFFF; align-self: flex-end; border-bottom-right-radius: 6px; }
.composer {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 10; max-width: 560px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-end; padding: 8px 8px 8px 16px; border-radius: 30px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 10px 30px rgba(10, 27, 96, .14);
}
.composer textarea { min-height: 44px; max-height: 140px; margin: 0; border: 0; background: none; padding: 11px 0; box-shadow: none; }
.composer button { width: 44px; min-height: 44px; height: 44px; padding: 0; flex: none; font-size: 20px; }

.takes { list-style: none; padding: 0; margin: 8px 0; }
.takes li {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px 12px; margin: 8px 0;
}
.takes li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.takes li button { width: 36px; height: 36px; min-height: 0; padding: 0; background: var(--surface-2); color: var(--text); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--danger-bg); color: var(--danger); }

video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 9 / 16; max-height: 70vh; }
.cover { width: 38%; border-radius: 16px; }
.copybox { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; font-size: 15px; }
ul.plain { padding-left: 18px; margin: 6px 0; }
.md h1, .md h2, .md h3 { margin: 14px 0 6px; }
.md p { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }

/* Floating glass tab bar with the create button in the middle */
nav#tabs {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + var(--safe-b)); z-index: 15; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 8px; border-radius: 999px;
  background: var(--bar); border: 1px solid var(--bar-line); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 14px 36px rgba(0, 11, 20, .28);
}
nav#tabs button {
  background: none; color: var(--bar-text); border-radius: 999px; padding: 0; min-height: 52px; height: 52px; width: 64px; flex: none;
  font-size: 11px; font-weight: 650; flex-direction: column; gap: 2px; transition: background-color .25s ease, color .25s ease;
}
nav#tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
nav#tabs button.on { color: #F5F5F5; font-weight: 800; background: rgba(76, 120, 243, .3); width: 72px; }
nav#tabs button.create { width: 52px; background: var(--accent); color: #FFFFFF; }
nav#tabs button.create svg { width: 24px; height: 24px; stroke-width: 2.3; }
nav#tabs button:active { transform: scale(.93); background: rgba(76, 120, 243, .2); }
nav#tabs button.create:active { background: var(--accent-2); }
#toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); z-index: 40;
  background: var(--bar); color: #F5F5F5; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 11px 18px; border-radius: 99px; opacity: 0; transition: opacity .25s; pointer-events: none; font-size: 14px; font-weight: 600; max-width: 90vw;
}
#toast.on { opacity: 1; }

/* shared: section labels, sub-screen header, bottom sheet */
.label { font-size: 12px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin: 24px 0 10px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.tap { cursor: pointer; }
.grow { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; }
.topbar h2 { margin: 0; font-size: 20px; }
.topbar .back { width: 40px; height: 40px; min-height: 0; padding: 0; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--title); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
html:has(.sheet-back), html:has(.sheet-back) body { overflow: hidden; }
.sheet-back { position: fixed; inset: 0; overscroll-behavior: contain; background: rgba(0, 11, 20, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; z-index: 30; }
.sheet { width: 100%; max-width: 592px; margin: 0 auto; max-height: 88dvh; overflow: auto; overscroll-behavior: contain; background: var(--sheet);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  border-top: 1px solid var(--glass-line); border-radius: 34px 34px 0 0; padding: 10px 20px calc(22px + var(--safe-b)); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--soft); opacity: .6; margin: 0 auto 14px; }
.sheet h2 { margin-top: 4px; font-size: 24px; letter-spacing: -0.02em; }

/* Big image at the top (Início, Resultado, Processando, Entrar): media under a blue veil, glass on top. */
.hero { position: relative; margin: calc(-1 * var(--safe-t)) -16px 0; padding: calc(var(--safe-t) + 14px) 22px 18px; min-height: 380px;
  border-radius: 0 0 40px 40px; overflow: hidden; color: #F5F5F5; background: var(--hero); display: flex; flex-direction: column; isolation: isolate; }
.hero > .media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil); pointer-events: none; }
.hero.blur > .media { filter: blur(14px) saturate(120%); transform: scale(1.1); }
.hero .rings { position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(184, 204, 240, .25); pointer-events: none; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero h1, .hero h2 { color: #F5F5F5; }
.hero .muted { color: #B8CCF0; }
.gbtn { width: 44px; height: 44px; min-height: 0; padding: 0; flex: none; border-radius: 50%; color: #FFFFFF;
  background: rgba(184, 204, 240, .2); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.gbtn.pill { width: auto; border-radius: 999px; padding: 0 16px; font-size: 14px; font-weight: 750; }
.gbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gband { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 30px; color: #F5F5F5;
  background: rgba(76, 120, 243, .28); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); }
.gband .grow b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gband .grow span { font-size: 13px; color: #B8CCF0; }
.gband .pct { font-size: 26px; font-weight: 200; letter-spacing: -0.04em; }
.gband.err { background: rgba(248, 113, 113, .3); }

/* Início */
.hello { display: flex; align-items: center; justify-content: space-between; }
.hello .hi { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.avatar-glass { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  background: rgba(184, 204, 240, .18); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.bignum { margin-top: auto; padding-top: 24px; }
.bignum .n { font-size: 96px; font-weight: 200; letter-spacing: -0.06em; line-height: .95; }
.bignum span { display: block; font-size: 15px; color: #B8CCF0; margin-top: 4px; }
#busy { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.hero #busy { margin-top: 18px; }
.proc { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.proc .ph { width: 40px; height: 56px; border-radius: 10px; background: var(--surface-2); flex: none; }
.proc p { margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc.err { background: var(--danger-bg); border-color: transparent; }
.bar.thin { height: 5px; margin: 0; }
/* Início (wireframe 01): a short blue band, no photo behind the name */
.home-hero { min-height: 0; padding-bottom: 22px; }
.home-hero .hello { align-items: flex-start; }
.home-hero .date { display: block; font-size: 13px; color: #B8CCF0; margin-bottom: 2px; }
.home-hero .hi { display: block; font-size: 28px; }
.home-hero .stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.home-hero .stats > div { padding-right: 12px; }
.home-hero .stats > div + div { padding-left: 18px; border-left: 1px solid rgba(184, 204, 240, .22); }
.home-hero .stats .n { font-size: 64px; font-weight: 200; letter-spacing: -0.06em; line-height: 1; }
.home-hero .stats span { display: block; font-size: 14px; color: #B8CCF0; margin-top: 4px; }
.home-ready-head { margin: 26px 0 10px; align-items: center; }
.home-ready-head h3 { margin: 0; font-size: 18px; }
.ready-strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ready-strip::-webkit-scrollbar { display: none; }
.ready-card { flex: none; width: 128px; height: 228px; min-height: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--hero);
  scroll-snap-align: start; }
.ready-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder { margin-top: 22px; }
.folder-tab { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.folder-tab .tab { height: 34px; padding: 0 18px; border-radius: 18px 18px 0 0; background: #173BC3; display: flex; align-items: center;
  color: #B8CCF0; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.folder-tab .tags { padding-bottom: 8px; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; }
.folder-tab .tags .tag { overflow: hidden; text-overflow: ellipsis; }
.next { position: relative; overflow: hidden; padding: 18px 20px 20px; border-radius: 0 30px 30px 30px; background: var(--hero); color: #F5F5F5; }
.next::after { content: ""; position: absolute; right: -90px; top: -120px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px solid rgba(184, 204, 240, .3); pointer-events: none; }
.next h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.27; color: #F5F5F5; letter-spacing: -0.02em; }
.next .muted { color: #B8CCF0; font-size: 14px; }
.next .row { margin-top: 16px; position: relative; z-index: 1; }
.next button.secondary { background: rgba(184, 204, 240, .16); color: #F5F5F5; }
.next button.light { background: #F5F5F5; color: #0B203D; }
.dot-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.ready-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 6px 4px; }
.ready-row .num { font-size: 44px; }
.ready-row .muted { font-weight: 600; }
.deck { position: relative; width: 170px; height: 128px; flex: none; }
.deck img, .deck i { position: absolute; top: 6px; width: 76px; height: 112px; border-radius: 16px; object-fit: cover; background: var(--hero);
  box-shadow: 0 8px 18px rgba(10, 27, 96, .25); }
.deck > :nth-child(1) { left: 0; transform: rotate(-12deg); z-index: 3; }
.deck > :nth-child(2) { left: 40px; transform: rotate(-2deg); z-index: 2; }
.deck > :nth-child(3) { left: 78px; transform: rotate(10deg); z-index: 1; }
.covers { display: flex; gap: 10px; }
.covers .tile { width: calc((100% - 20px) / 3); }
.covers img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 16px; background: var(--surface-2); display: block; }
.covers span { display: block; font-size: 13px; font-weight: 650; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .tag { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.tag.solid { background: var(--strong); color: var(--strong-text); }
.tag.blue { background: var(--accent); color: #FFFFFF; }

/* Resultado: the video on top, then check → copy → post */
.vhero { position: relative; margin: calc(-1 * var(--safe-t)) -16px 0; height: min(62vh, 560px); border-radius: 0 0 40px 40px; overflow: hidden; background: #0A1B60; }
.vhero video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; background: #0A1B60; }
.vhero .veil { position: absolute; inset: 0; background: var(--veil); pointer-events: none; transition: opacity .3s; }
.vhero .top { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 12px); padding: 0 18px; display: flex; justify-content: space-between; z-index: 2; }
.vhero .info { position: absolute; left: 20px; right: 100px; bottom: 22px; z-index: 2; color: #F5F5F5; transition: opacity .3s; }
.vhero .info h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.25; color: #F5F5F5; }
.vhero .play { position: absolute; right: 20px; bottom: 22px; width: 64px; height: 64px; z-index: 2; }
.vhero .play svg { width: 26px; height: 26px; fill: #FFFFFF; stroke: none; }
.vhero.playing .veil, .vhero.playing .info, .vhero.playing .play, .vhero.playing .top { opacity: 0; pointer-events: none; }
.result-top { display: flex; gap: 14px; align-items: flex-start; }
.result-top video { width: 118px; flex: none; aspect-ratio: 9 / 16; max-height: none; border-radius: 18px; }
.result-top h3 { font-size: 17px; line-height: 1.3; margin: 2px 0 6px; }
.pills2 { display: flex; gap: 10px; margin-top: 12px; }
.pills2 > * { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 22px; background: var(--surface-2); font-size: 13px; font-weight: 650; color: var(--text); line-height: 1.25; }
.pills2 .n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--accent); color: #FFFFFF; }
.pills2 .warnbox { background: var(--warn-bg); }
.pills2 .warnbox .n { background: #FCD34D; color: #0B203D; }
.postcard { display: flex; gap: 12px; margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.postcard .label { margin: 0 0 6px; }
.postcard p { margin: 0; font-size: 14px; line-height: 1.45; }
.checklist { margin-top: 14px; padding: 14px 16px 6px; border-radius: var(--radius); background: var(--warn-bg); }
.checklist .head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; color: var(--warn); font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); color: var(--text); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
p.check { margin: 0; }
.warnline { color: var(--warn); }

/* Ajustar: the video stays in view while editing below it */
.adjvid { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; padding: calc(6px + var(--safe-t)) 0 10px; margin-top: calc(-1 * var(--safe-t)); background: var(--bg); }
.adjvid video { height: 32vh; width: auto; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; box-shadow: 0 10px 24px rgba(10, 27, 96, .22); }
.secpills { display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 4px; padding: 0 16px 4px; scrollbar-width: none; }
.secpills::-webkit-scrollbar { display: none; }
.phr { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phr .tm { width: 46px; min-height: 0; flex: none; padding: 4px 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phr .txt { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 10px; font-size: 15px; line-height: 1.4; outline: none; color: var(--text); font-weight: 550; }
.phr .txt:focus { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.phr .cutbtn { width: auto; min-height: 0; flex: none; padding: 6px 12px; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.phr.cut .txt { text-decoration: line-through; color: var(--soft); font-weight: 400; }
.phr.cut .cutbtn { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.phr .why { display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.rtp .tm { padding-top: 4px; }
details.rtbox { margin-top: 18px; }
.phr mark, .muted mark { background: none; color: inherit; text-decoration: underline wavy var(--warn); text-underline-offset: 3px; }
.mline { padding: 10px 0; border-bottom: 1px solid var(--line); }
.imrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.imrow .row { align-items: center; flex-wrap: wrap; }
.imrow .row + .row { margin-top: 6px; }
.imrow .sec { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.imrow .sec input { width: 70px; padding: 8px; }
.imrow .ghost { padding: 6px 8px; }
.imrow select { width: auto; flex: 1; min-width: 0; }
.imthumb { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; background: var(--surface); flex: none; }
.tkrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tkrow .row { align-items: center; flex-wrap: wrap; }
.tkrow .tkrange { margin-top: 6px; }
.tkrow .tkrange select { width: auto; padding: 8px 40px 8px 12px; font-size: 14px; }
.tkrow [data-black] { margin: 6px 0 0; }
.imrow select[data-imf="fill"] { width: auto; flex: none; }
.tkrow .sec { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.tkrow .sec input { width: 70px; padding: 8px; }
.tkbody { margin-top: 8px; }
.tkvid { display: block; width: 100%; max-height: 46vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 16px; margin-bottom: 8px; }
.take .tnote { margin-top: 6px; padding: 8px 10px; font-size: 14px; }
.trashrow { padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
#mcpurl { font-size: 14px; }
.sedit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sedit .sthumb { width: 84px; flex: none; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: var(--surface); }
.sedit label.small { display: block; margin: 8px 0 4px; }
.sedit textarea { min-height: 0; font-size: 15px; }
.sedit .opt.tight { margin-top: 8px; padding: 8px 10px; }
.mline textarea { min-height: 0; }
.mline .row { margin-top: 6px; align-items: center; flex-wrap: wrap; }
.mline select { width: auto; flex: none; }
.mline .sec { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.mline .sec input { width: 64px; padding: 8px; }
.mline .ghost { padding: 6px 8px; }
#addline { margin-top: 10px; }
.tip { color: var(--muted); font-size: 14px; margin-top: 14px; }
.preview { margin: 0 0 6px; }
details.more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent); padding: 10px 0; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 10px; }
details.more .btn { margin-top: 12px; }
button.posted { margin-top: 12px; padding-left: 0; color: var(--accent); }
button.del { display: block; margin: 8px auto 0; color: var(--danger); font-size: 14px; }
#sharemsg { color: var(--text); }
/* Floating glass action bar (navy in both themes) */
.actionbar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + var(--safe-b)); z-index: 15; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 34px;
  background: var(--bar); border: 1px solid var(--bar-line); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 14px 36px rgba(0, 11, 20, .28); }
.actionbar button, .actionbar .btn { min-height: 52px; padding: 14px 18px; }
.actionbar button.secondary, .actionbar .btn.secondary { background: rgba(132, 163, 246, .18); color: #B8CCF0; }
.actionbar .rbtn { width: 52px; flex: none; padding: 0; background: rgba(132, 163, 246, .18); color: #B8CCF0; }
.actionbar .muted, .actionbar p { color: #B8CCF0; }

/* Novo vídeo */
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 16px; }
.seg button { background: none; color: var(--muted); padding: 10px 0; min-height: 42px; border-radius: 999px; font-weight: 650; }
.seg button[aria-selected="true"] { background: var(--strong); color: var(--strong-text); font-weight: 800; }
.pick { flex-direction: column; gap: 4px; padding: 26px 16px; background: color-mix(in srgb, var(--soft) 10%, transparent); color: var(--accent); border: 1.5px dashed var(--soft); border-radius: var(--radius); font-weight: 800; }
.pick .big { font-size: 26px; color: var(--accent); }
.pick.add { padding: 14px; font-weight: 700; flex-direction: row; }
.thumb { width: 44px; height: 66px; aspect-ratio: auto; max-height: none; object-fit: cover; border-radius: 12px; background: var(--surface-2); flex: none; }
.thumb.blank { display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.thumb.loading { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.picked { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--glass-line); border-radius: 24px; background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.picked .thumb { width: 72px; height: 112px; border-radius: 16px; }
.picked b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--title); }
.picked p { margin: 2px 0; }
button.linkish { width: auto; min-height: 0; padding: 4px 0; background: none; color: var(--accent); font-size: 14px; font-weight: 700; }
.take { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--glass-line); border-radius: 22px; background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.take .n { width: 18px; text-align: center; flex: none; color: var(--muted); font-weight: 700; }
.take .grow { display: flex; flex-direction: column; }
.take .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--title); }
.take button { width: 36px; height: 40px; min-height: 0; padding: 0; flex: none; background: none; color: var(--muted); font-size: 18px; font-weight: 400; }
.take .handle { touch-action: none; cursor: grab; font-size: 22px; }
.take.dragging { border-color: var(--accent); background: var(--surface-2); }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.opt:has(input:checked) { border: 1.5px solid var(--accent); }
details.ctx { margin-top: 14px; border-top: 1px solid var(--line); }
details.ctx summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 650; color: var(--title); }
details.ctx summary::-webkit-details-marker { display: none; }
.actionbar.col { flex-direction: column; align-items: stretch; border-radius: 28px; }
.actionbar #up p { margin: 4px 0; }
.howto { margin: 14px 0 6px; }
.howto .tab { display: inline-flex; height: 32px; padding: 0 16px; border-radius: 16px 16px 0 0; background: #173BC3; align-items: center;
  color: #B8CCF0; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.howto ol { list-style: none; margin: 0; padding: 16px 18px; border-radius: 0 26px 26px 26px; background: var(--hero); color: #F5F5F5; display: grid; gap: 12px; }
.howto li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.howto li i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(245, 245, 245, .16); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 13px; }
.howto li:last-child i { background: #F5F5F5; color: #0B203D; }

/* Processando */
.phero { min-height: 340px; align-items: center; justify-content: flex-end; text-align: center; }
.orbwrap { position: relative; width: 220px; height: 220px; margin: 6px auto 4px; display: flex; align-items: center; justify-content: center; }
.orbwrap i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(184, 204, 240, .2); }
.orbwrap i + i { inset: 26px; border: 1.5px solid rgba(184, 204, 240, .3); }
.orbwrap .orb.xl { margin: 0; }
.phero h1 { margin: 0; font-size: 26px; }
.phero .back-abs { position: absolute; left: 18px; top: calc(var(--safe-t) + 12px); }
.steps { list-style: none; margin: 18px 0; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 15px; color: var(--muted); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.steps .done .dot { background: var(--accent); color: #FFFFFF; }
.steps .now { font-weight: 800; color: var(--title); }
.steps .now .dot { background: var(--orb); box-shadow: 0 0 14px rgba(76, 120, 243, .8); animation: breathe 2.4s ease-in-out infinite; }
.steps .todo { color: var(--soft); }
.steps .todo .dot { border: 1.5px solid var(--soft); opacity: .7; }
.leave { padding: 14px 16px; border-radius: 22px; background: var(--surface-2); }
.leave b { color: var(--title); }
.leave p { margin: 4px 0 0; }

/* Ideias */
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.title-row h1 { margin-bottom: 0; }
button.pill { width: auto; flex: none; min-height: 0; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; margin-top: 14px; }
.chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.filter-row { margin: 14px 0 4px; }
.filter-row select { width: 100%; border-radius: 999px; background-color: var(--glass); border-color: var(--glass-line); font-weight: 700; color: var(--title);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.cs-preview { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center;
  padding: calc(6px + var(--safe-t)) 0 10px; margin-top: calc(-1 * var(--safe-t)); background: var(--bg); }
.cs-preview img { height: 36vh; width: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: var(--surface); object-fit: cover; box-shadow: 0 16px 36px rgba(10, 27, 96, .25); }
.cs-preview .spinner { position: absolute; top: 18px; right: calc(50% - 18vh * 9 / 16 + 10px); }
.cs-note { margin: 0 0 14px; text-align: center; }
.cs-field { margin: 0 0 16px; }
.cs-field label { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 700; color: var(--title); }
.cs-field label .muted { color: var(--muted); font-weight: 600; }
.cs-field .seg { margin: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); padding: 0; background: none; border: 0; box-shadow: none; }
.cs-check { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 15px; color: var(--text); font-weight: 600; }
.cs-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip { width: auto; min-height: 0; flex: none; padding: 9px 15px; border-radius: 999px; background: var(--surface-2); border: 0;
  color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--strong); color: var(--strong-text); font-weight: 800; }
.idea-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.idea-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.idea-row:active { background: var(--surface-2); }
.idea-row .fmt { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.idea-row .fmt.meme { background: color-mix(in srgb, var(--soft) 24%, transparent); color: var(--muted); }
.idea-row .fmt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-row .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 750; line-height: 1.33; color: var(--title); }
.idea-row .t small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.st-slot { width: 76px; flex: none; display: flex; justify-content: flex-end; }
.st { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.st.nova { background: var(--surface-2); color: var(--muted); }
.st.roteiro { background: var(--accent); color: #FFFFFF; }
.st.gravada { background: var(--strong); color: var(--strong-text); }
:root[data-theme="dark"] .st.gravada { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st.gravada { background: var(--surface-2); color: var(--muted); } }
.empty { padding: 28px 0; }
.empty h2 { margin-top: 0; }
#view > .proc { margin-top: 14px; }
.sheet .label:first-of-type { margin-top: 16px; }
.sheet-actions { margin-top: 18px; }
.sheet input { margin-bottom: 4px; }
.hook { display: flex; gap: 10px; margin: 14px 0; padding: 14px 16px; border-radius: 22px; background: var(--hero); color: #F5F5F5; }
.hook::before { content: "“"; color: #84A3F6; font-size: 30px; font-weight: 800; line-height: .9; }
.hook small { display: block; color: #B8CCF0; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hook p { margin: 2px 0 0; font-weight: 650; line-height: 1.4; }

/* Instruções pra IA */
textarea.instructions { min-height: 46dvh; font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.ins-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#count.over { color: var(--danger); }

/* Vídeos */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.vtile { display: flex; flex-direction: column; min-width: 0; }
.vcover { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--hero); }
.vcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 27, 96, .9) 0%, rgba(10, 27, 96, .35) 32%, rgba(10, 27, 96, 0) 60%); pointer-events: none; }
.vbadge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: #F5F5F5; color: #0B203D; }
.vbadge.posted { background: rgba(11, 32, 61, .55); color: #B8CCF0; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vdur { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(11, 32, 61, .55); color: #F5F5F5; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vt { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; padding: 10px 11px; border-radius: 20px; font-size: 12px; font-weight: 750; line-height: 1.3; color: #FFFFFF;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Entrar */
.lhero { min-height: 400px; justify-content: flex-end; padding-bottom: 34px; background: radial-gradient(circle at 75% 15%, #4C78F3 0%, #2558DC 25%, #122B8F 55%, #0A1B60 85%); }
.lhero::before { display: none; }
.lhero .logo { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 11, 20, .45); margin-bottom: 22px; }
.lhero h1 { font-size: 46px; margin: 0 0 6px; letter-spacing: -0.04em; }
.lhero p { font-size: 18px; color: #B8CCF0; line-height: 1.4; margin: 0; font-weight: 500; }
.brand { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 20px; font-weight: 800; }
.brand img { border-radius: 16px; }
.pw { position: relative; }
.pw input { padding-right: 92px; }
.pw .show { position: absolute; right: 6px; top: 6px; bottom: 18px; width: auto; min-height: 0; padding: 0 12px; background: none;
  color: var(--accent); font-size: 13px; font-weight: 750; }
form.plainform { margin-top: 22px; }
form.plainform button[type=submit] { margin-top: 8px; }
.auth-links { text-align: center; }
.auth-links a { color: var(--muted); font-weight: 650; text-decoration: none; }
.auth-links .btn { margin-top: 10px; }
.sheet-actions .btn { flex: 1; }

/* Perfil */
.who { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.who h1 { margin: 0; font-size: 26px; }
.who p { margin: 2px 0 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; padding: 3px;
  background: linear-gradient(140deg, #84A3F6 0%, #2558DC 50%, #0A1B60 100%); }
.avatar span { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0A1B60; color: #F5F5F5; font-weight: 800; font-size: 22px; }
.knows { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.knows .label { margin-top: 0; }
.knows p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.prows { margin-top: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.plan { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.full { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.plan p { margin: 4px 0 8px; }
.planrow { margin-top: 8px; align-items: center; flex-wrap: wrap; }
.planrow select { width: auto; padding: 6px 40px 6px 12px; font-size: 14px; }
#quota { margin: 14px 0 0; }
.prow { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow:active { background: var(--surface-2); }
.prow b { display: block; font-size: 15px; color: var(--title); }
.prow .muted { font-size: 12px; font-weight: 550; }
.prow .arrow { color: var(--soft); font-size: 20px; flex: none; }
.theme-seg { margin: 6px 0 0; }
.theme-seg button { gap: 6px; font-size: 14px; }
.theme-seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.md.doc { font-size: 15px; line-height: 1.55; }
.md.doc h2, .md.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.md blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--soft); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.md ol.plain { padding-left: 22px; }
.mdtable { margin: 8px 0; }
.mdrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mdrow span { display: block; }
.mdrow span:first-child { font-weight: 700; color: var(--title); }
.mdrow span + span { color: var(--muted); font-size: 14px; }

/* Boas-vindas */
.whero { min-height: 360px; align-items: center; justify-content: flex-end; text-align: center; background: radial-gradient(circle at 50% 38%, #84A3F6 0%, #4C78F3 18%, #2558DC 36%, #122B8F 62%, #0A1B60 90%); }
.whero::before { display: none; }
.whero .orbwrap { margin: 20px auto 10px; }
.whero h1 { margin: 0; font-size: 28px; }
.whero p { color: #B8CCF0; margin: 6px 0 0; }
.start { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.start.main { background: linear-gradient(120deg, #2558DC 0%, #173BC3 60%, #0A1B60 100%); border: 0; color: #F5F5F5; }
.start .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.start.main .ic { background: rgba(245, 245, 245, .16); color: #FFFFFF; }
.start .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.start b { display: block; font-size: 16px; color: var(--title); }
.start.main b { color: #F5F5F5; }
.start span { font-size: 13px; color: var(--muted); }
.start.main span { color: #B8CCF0; }

/* Stories result */
.stitle { margin: 4px 0 2px; font-size: 18px; }
.srow { display: flex; gap: 12px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.srow::-webkit-scrollbar { display: none; }
.sframe { position: relative; flex: none; width: 168px; min-height: 0; aspect-ratio: 9 / 16; padding: 0; border-radius: 26px; overflow: hidden; scroll-snap-align: center;
  background: var(--hero); border: 0; box-shadow: 0 14px 30px rgba(10, 27, 96, .22); }
.sframe img, .sframe video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; max-height: none; }
.snum { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; background: rgba(11, 32, 61, .55); color: #F5F5F5; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
ul.todo li { margin: 6px 0; }
.sbig img, .sbig video { width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 20px; background: #000; display: block; aspect-ratio: auto; }

/* references (ideas) */
.row.tight { gap: 8px; width: auto; flex: none; }
.ref { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.refbox { padding: 12px 14px; margin: 8px 0 4px; border-radius: 20px; background: var(--surface-2); }
.refbox ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }

#err { color: var(--danger); min-height: 1em; }
.person { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-of-type { border-bottom: 0; }
.person .row { flex: none; }
.person button { width: auto; min-height: 0; padding: 9px 14px; font-size: 14px; }
.err-box { background: var(--danger-bg); border-color: transparent; }
input[type="file"] { padding: 10px; color: var(--muted); font-size: 14px; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 16px;
  margin-right: 12px; background: var(--surface-2); color: var(--accent); cursor: pointer;
}

/* ---------- Editor (wireframes 21–25): always dark, like any video editor; the video is what shines ---------- */
.ed { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #000B14; color: #F5F5F5;
  padding-top: var(--safe-t); max-width: 640px; margin: 0 auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ed-wait { align-items: center; justify-content: center; gap: 14px; color: #B8CCF0; }
.ed svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ed svg .fill { fill: currentColor; stroke: none; }
.ed button { min-height: 0; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.ed-top h2 { flex: 1; margin: 0; font-size: 18px; color: #F5F5F5; }
.ed-ib { width: 40px; height: 40px; padding: 0; flex: none; border-radius: 50%; background: rgba(184, 204, 240, .12); color: #F5F5F5;
  display: flex; align-items: center; justify-content: center; }
.ed-ib:disabled { opacity: .35; }
.ed-stagewrap { flex: 1; min-height: 160px; display: flex; justify-content: center; padding: 6px 16px 0; }
.ed-stage { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; background: #0A1B60;
  box-shadow: 0 18px 40px rgba(37, 88, 220, .25); }
.ed-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #B8CCF0; font-size: 13px; }
/* The caption font is loaded per weight file (capFont): font-weight stays normal, or the browser fakes a heavier bold
   on top and the preview looks thicker than the video. */
.ed-cap { position: absolute; text-align: center; font-family: "Plus Jakarta Sans", "Kinora Sans", sans-serif; font-weight: normal; line-height: 1.12;
  color: #FFFFFF; -webkit-text-stroke-color: #000; paint-order: stroke fill; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.ed-cap em { font-style: normal; }
.ed-cap.drag { outline: 1.5px dashed rgba(255, 255, 255, .9); outline-offset: 6px; border-radius: 6px; cursor: grab; touch-action: none; }
.ed-cap .ph { opacity: .6; }
.ed-zone { position: absolute; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(0, 11, 20, .55) 0 6px, rgba(0, 11, 20, .2) 6px 12px); }
.ed-zb { left: 0; right: 0; bottom: 0; height: 21%; border-top: 1px dashed rgba(252, 211, 77, .7); display: flex; align-items: flex-end; padding: 0 0 8px 10px; }
.ed-zb span { font-size: 10px; font-weight: 700; color: #FCD34D; }
.ed-zr { right: 0; top: 40%; bottom: 21%; width: 14%; border-left: 1px dashed rgba(252, 211, 77, .7); }
.ed-ctl { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px 0; font-size: 13px; color: #B8CCF0; font-variant-numeric: tabular-nums; }
.ed-ctl b { color: #F5F5F5; }
.ed-ctl > span, .ed-rate { width: 84px; }
.ed-play { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #F5F5F5; color: #000B14; display: flex; align-items: center; justify-content: center; }
.ed-play svg { width: 16px; height: 16px; }
.ed-rate { background: none; color: #B8CCF0; padding: 6px 0; text-align: right; font-size: 13px; font-weight: 700; }
.ed-tabs { display: flex; gap: 4px; margin: 10px 16px 0; padding: 4px; border-radius: 999px; background: rgba(184, 204, 240, .08); }
.ed-tabs button { flex: 1; padding: 0; height: 38px; border-radius: 999px; background: none; color: #B8CCF0; font-size: 14px; font-weight: 600; transition: none; }
.ed-tabs button[aria-selected="true"] { background: #F5F5F5; color: #000B14; font-weight: 800; }
.ed-body { flex: none; height: 168px; padding-top: 10px; overflow: hidden; }
.ed-body.ed-scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
/* Typing the title or a caption: only the video and the box stay, so both fit above the keyboard. */
.ed-typing .ed-ctl, .ed-typing .ed-tabs, .ed-typing .ed-body { display: none; }
.ed-typing .ed-foot { padding-top: 10px; }
.ed-stage { touch-action: manipulation; }          /* a double tap edits the text: no double-tap zoom */
.ed-in.ed-ta { height: auto; min-height: 0; margin: 0; padding: 10px 12px; resize: none; font: inherit; font-size: 16px; line-height: 1.35;
  user-select: text; -webkit-user-select: text; }
.ed-hint { margin: 6px 20px 0; text-align: center; font-size: 12px; color: rgba(184, 204, 240, .65); min-height: 16px; }
.ed-tlwrap { position: relative; }
.ed-tl { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ed-tl::-webkit-scrollbar { display: none; }
.ed-track { position: relative; height: 112px; }
.ed-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: rgba(184, 204, 240, .55); }
.ed-blk { position: absolute; top: 20px; height: 56px; border-radius: 12px; display: flex; align-items: center; overflow: visible; }
.ed-blk .ed-wave { position: absolute; left: 0; top: 4px; width: 100%; height: 48px; }
.ed-blk.seg { transition: transform .12s ease, box-shadow .12s ease; touch-action: pan-x; }
.ed-blk.lift { z-index: 6; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); border: 2px solid #FCD34D; transition: none; }
.ed-blk.drop { box-shadow: inset 3px 0 0 #FCD34D; }
.ed-gap { position: absolute; top: 34px; width: 28px; height: 28px; margin-left: -14px; padding: 0; z-index: 3; border-radius: 50%;
  background: #000B14; border: 1.5px dashed rgba(184, 204, 240, .6); color: #B8CCF0; font-size: 16px; font-weight: 800; line-height: 1; }
.ed-gap.on { border: 2px solid #F5F5F5; color: #F5F5F5; background: #173BC3; }
.ed-zoom { position: absolute; right: 12px; top: -2px; display: flex; gap: 4px; z-index: 5; }
.ed-zoom button { width: 26px; height: 22px; padding: 0; border-radius: 8px; background: rgba(184, 204, 240, .14); color: #B8CCF0; font-size: 15px; font-weight: 800; }
.ed-guide { position: absolute; pointer-events: none; background: #FCD34D; z-index: 2; }
.ed-guide.v { left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; }
.ed-guide.h { top: calc(50% - .5px); left: 0; right: 0; height: 1px; }
.ed-hook { position: absolute; left: 7.4%; right: 7.4%; text-align: center; font-family: "Plus Jakarta Sans", "Kinora Sans", sans-serif; font-weight: normal;
  line-height: 1.1; color: #FFFFFF; -webkit-text-stroke-color: #000; paint-order: stroke fill; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); cursor: text; }
.ed-blk.seg { background: rgba(37, 88, 220, .28); border: 1px solid rgba(76, 120, 243, .7); }
.ed-blk.seg .ed-wave path { stroke: #84A3F6; stroke-width: 2; stroke-linecap: round; }
.ed-blk.gap { border: 1px dashed rgba(184, 204, 240, .3); }
.ed-blk.gap .ed-wave path { stroke: rgba(184, 204, 240, .28); stroke-width: 2; stroke-linecap: round; }
.ed-blk.on { border: 2px solid #F5F5F5; z-index: 4; }   /* above the + markers (3): its handles sit where they are */
.ed-blk.seg.on { background: rgba(37, 88, 220, .45); }
.ed-lbl { position: absolute; top: 62px; left: 4px; right: 4px; font-size: 12px; font-weight: 600; color: rgba(184, 204, 240, .8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ed-blk.gap .ed-lbl { color: rgba(184, 204, 240, .45); font-weight: 700; }
.ed-blk.on .ed-lbl { color: #F5F5F5; }
.ed-h { position: absolute; top: -6px; width: 22px; height: 68px; border-radius: 10px; background: #F5F5F5; touch-action: none; z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.ed-h::after { content: ""; position: absolute; left: 9px; top: 22px; width: 4px; height: 24px; border-radius: 2px; background: #2558DC; }
.ed-h.l { left: -12px; } .ed-h.r { right: -12px; }
.ed-blk.trimming { z-index: 5; }
/* Memes: thumbnails of the takes (edit/strip.jpg, 32x56 frames), the on-screen lines on the timeline and the video. */
.ed-blk .ed-thumbs { top: 0; height: 100%; overflow: hidden; border-radius: 11px; opacity: .85; }
.ed-thumbs i { position: absolute; top: 0; width: 32px; height: 56px; background-image: var(--strip); background-repeat: no-repeat; background-size: auto 56px; }
.ed-blk.line { height: 26px; padding: 0 8px; border-radius: 8px; background: rgba(252, 211, 77, .14); border: 1px solid rgba(252, 211, 77, .55); touch-action: pan-x; }
.ed-blk.line span { font-size: 11px; font-weight: 700; color: #FDE68A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ed-blk.line.on { border: 2px solid #F5F5F5; background: rgba(252, 211, 77, .28); }
.ed-blk.line .ed-h { top: -5px; width: 16px; height: 34px; border-radius: 7px; }
.ed-blk.line .ed-h::after { left: 6px; top: 9px; height: 16px; }
.ed-blk.line .ed-h.l { left: -9px; } .ed-blk.line .ed-h.r { right: -9px; }
.ed-add { display: block; margin: 4px auto 0; width: auto; height: 34px; min-height: 0; padding: 0 18px; border-radius: 999px; background: rgba(252, 211, 77, .16); color: #FDE68A; font-size: 13px; font-weight: 800; }
.ed-mtext { position: absolute; inset: 0; pointer-events: none; }
.ed-mt { position: absolute; text-align: center; font-family: "Plus Jakarta Sans", "Kinora Sans", sans-serif; font-weight: normal; line-height: 1.15;
  -webkit-text-stroke-color: #000; paint-order: stroke fill; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.ed-mt em { font-style: normal; }
.ed-mtext.drag [data-l] { pointer-events: auto; cursor: grab; touch-action: none; }
.ed-mtext.drag [data-l].sel { outline: 1.5px dashed rgba(255, 255, 255, .9); outline-offset: 4px; border-radius: 6px; }
.ed-pos { display: flex; gap: 6px; }
.ed-pos button { flex: 1; height: 38px; padding: 0; border-radius: 999px; background: rgba(184, 204, 240, .12); color: #F5F5F5; font-size: 13px; font-weight: 700; }
.ed-pos button[aria-pressed="true"] { background: #F5F5F5; color: #000B14; }
.ed-pos .ed-del { flex: none; width: 38px; background: rgba(239, 68, 68, .16); color: #FCA5A5; display: flex; align-items: center; justify-content: center; }
.ed-pos .ed-del svg { width: 18px; height: 18px; }
.ed-in { height: 44px; border-radius: 14px; background: rgba(0, 11, 20, .5); border: 1px solid rgba(184, 204, 240, .25); color: #F5F5F5; padding: 0 12px; font-size: 15px; }
.ed-shade { position: absolute; top: 0; bottom: 0; background: rgba(4, 9, 28, .62); border-radius: 10px; pointer-events: none; z-index: 1; }
.ed-head { position: absolute; left: calc(50% - 2px); top: 14px; width: 4px; height: 68px; border-radius: 2px; background: #FCD34D;
  box-shadow: 0 0 12px rgba(252, 211, 77, .5); pointer-events: none; z-index: 4; }
.ed-head::before { content: ""; position: absolute; left: -6px; top: -4px; width: 16px; height: 8px; border-radius: 4px; background: #FCD34D; }
.ed-foot { flex: none; padding: 0 16px calc(14px + var(--safe-b)); }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(10, 27, 96, .72); border: 1px solid rgba(255, 255, 255, .08); }
.ed-bar span { padding: 0 10px 0 12px; font-size: 13px; font-weight: 600; color: #B8CCF0; white-space: nowrap; }
.ed-bar button { flex: 1; height: 52px; border-radius: 999px; }
.ed-sheet { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 24px; background: rgba(10, 27, 96, .7); border: 1px solid rgba(255, 255, 255, .1); }
.ed-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ed-row b { font-size: 16px; }
.ed-muted, .ed-sheet small { font-size: 13px; color: #B8CCF0; font-variant-numeric: tabular-nums; }
.ed-cap-l { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #84A3F6; }
.ed-nudge { display: flex; gap: 10px; }
.ed-nudge > div { flex: 1; }
.ed-nudge > div > div { display: flex; gap: 6px; }
.ed-nudge button, .ed-acts button { height: 40px; padding: 0 10px; border-radius: 999px; background: rgba(184, 204, 240, .12); color: #F5F5F5; font-size: 13px; font-weight: 700; }
.ed-acts { display: flex; gap: 8px; }
.ed-acts button { flex: 1; height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ed-acts button.light { background: #F5F5F5; color: #000B14; }
.ed-acts button.ok { background: #2558DC; color: #FFFFFF; }
.ed-acts .ed-del { flex: none; width: 46px; padding: 0; background: rgba(239, 68, 68, .16); color: #FCA5A5; }
.ed-acts .ed-mv { flex: none; width: 46px; padding: 0; }
.ed-acts .ed-mv:disabled { opacity: .3; }
.ed-sheet .ed-done { height: 44px; border-radius: 999px; background: #2558DC; color: #FFFFFF; }
.ed-capctl { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 0; }
.ed-line { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.ed-line > span { width: 78px; flex: none; }
.ed-line > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ed-line small { font-size: 12px; font-weight: 500; color: #B8CCF0; }
.ed-line input[type=range] { flex: 1; margin: 0; }
.ed-line b { width: 42px; text-align: right; color: #B8CCF0; font-weight: 600; }
.ed-sw { width: 48px; height: 28px; flex: none; padding: 3px; border-radius: 999px; background: rgba(184, 204, 240, .2); display: flex; }
.ed-sw i { width: 22px; height: 22px; border-radius: 50%; background: #F5F5F5; transition: transform .15s; }
.ed-sw[aria-checked="true"] { background: #2558DC; }
.ed-sw[aria-checked="true"] i { transform: translateX(20px); }
.ed-capctl .ed-hint { margin: 0; text-align: left; }
.ed-link { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; min-height: 0; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); color: #F5F5F5; font-size: 14px; font-weight: 700; }
.ed-link small { grid-column: 1; font-size: 12px; font-weight: 500; color: #B8CCF0; }
.ed-link i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 20px; color: #84A3F6; }
.ed-words { height: 136px; overflow-y: auto; padding: 8px 20px 0; font-size: 17px; font-weight: 600; line-height: 30px; color: #F5F5F5; user-select: none; }
.ed-words span { padding: 2px 1px; border-radius: 6px; cursor: pointer; }
.ed-words .low { color: #FCD34D; text-decoration: underline dotted; text-underline-offset: 4px; }
.ed-words .fixed { color: #84A3F6; }
.ed-words .now { background: rgba(37, 88, 220, .5); }
.ed-y { color: #FCD34D; }
.ed-fix { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.ed-fix .was { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.ed-fix .arr { color: var(--soft); }
.ed-fix input { flex: 1; margin: 0; font-size: 18px; font-weight: 800; }
@media (max-height: 700px) { .ed-body { height: 150px; } .ed-words { height: 118px; } }

/* ---------- Feedback do time (equipe) ---------- */
#fbbtn { position: fixed; z-index: 14; right: max(16px, calc((100vw - 560px) / 2)); bottom: calc(92px + var(--safe-b));
  width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; background: var(--bar); color: var(--bar-text);
  border: 1px solid var(--bar-line); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 11, 20, .25); }
#fbbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
nav#tabs[hidden] + #fbbtn { display: none; }
#fbbtn.dot::after, nav#tabs button.dot::after { content: ""; position: absolute; top: 8px; right: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bar-line); }
nav#tabs button { position: relative; }
nav#tabs button.dot::after { top: 6px; right: 16px; }
.fb-compose textarea { margin-bottom: 8px; }
.fb-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-tools button { width: auto; flex: 1; min-height: 44px; padding: 10px 14px; }
.fb-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-tools button.on { background: var(--danger-bg); color: var(--danger); }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
.fb-files { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-files:not(:empty) { margin-bottom: 10px; }
.fb-file { position: relative; display: inline-flex; }
.fb-file img { width: 72px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.fb-file.audio { flex: 1 1 100%; }
.fb-file audio { width: 100%; height: 40px; }
.fb-file button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; min-height: 0; padding: 0; font-size: 15px; line-height: 1;
  background: var(--title); color: var(--bg); }
.fb-kind { margin: 4px 0 6px; }
.fb-kind-hint { margin: 0 0 14px; }
.fb-chips { margin-bottom: 8px; }
.topbar .fb-new { margin-top: 0; }
.fb-row-top { display: flex; gap: 10px; align-items: flex-start; }
.fb-row b { line-height: 1.3; }
.fb-row p { margin: 4px 0 0; }
.fb-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.fb-st { flex: none; }
.fb-st.discuss { background: var(--warn-bg); color: var(--warn); }
.fb-st.todo { background: var(--accent); color: #FFFFFF; }
.fb-st.done { background: var(--ok-bg); color: var(--ok); }
.fb-st.archived { background: var(--surface-2); color: var(--muted); }
.fb-empty { text-align: center; margin: 32px 0; }
.fb-title { margin: 4px 0 2px; font-size: 19px; line-height: 1.3; }
.fb-status { margin-top: 12px; }
.fb-status button { font-size: 13px; padding: 8px 0; min-height: 38px; }
.fb-thread { margin: 14px 0 18px; }
.fb-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin: 10px 0; }
.fb-msg.mine { background: var(--surface-2); }
.fb-msg.claude { border-color: var(--accent); }
.fb-msg p { margin: 4px 0; }
.fb-img { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; margin: 8px 0 4px; border: 1px solid var(--line); }
.fb-msg audio { width: 100%; height: 40px; margin-top: 6px; }
.fb-transcript { font-style: italic; }
.fb-event { text-align: center; margin: 8px 0; }
.fb-push b { display: block; }
.fb-push p { margin: 4px 0 12px; }
.fb-push p:last-child { margin-bottom: 0; }
.person .row button { font-size: 14px; padding: 10px 12px; min-height: 44px; }
