/* Design system da Central de Edição = o mesmo do Sistema ADV (adv.sonetfy.com.br), medido do CSS publicado em 02/10/2026:
   Geist Variable, cinza-zinco + indigo #4f46e5, raio .65rem, cartões rounded-2xl com borda fina, ícones em "chip", sidebar escura de 240px. */
@font-face { font-family: "Geist Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-wght-normal-BgDaEnEv.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-ext-wght-normal-DC-KSUi6.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, :root[data-tema="claro"] {
  --radius: .65rem; --r-lg: var(--radius); --r-xl: calc(var(--radius) * 1.4); --r-2xl: calc(var(--radius) * 1.8);
  --background: #fafafa; --foreground: #18181b; --card: #fff; --card-foreground: #18181b; --popover: #fff;
  --primary: #4f46e5; --primary-foreground: #fff; --brand: #4f46e5; --surface-subtle: #f8f8f9;
  --secondary: #f4f4f5; --muted: #f4f4f5; --muted-foreground: #6b6b75; --accent: #f4f4f5;
  --destructive: #dc2626; --border: #ececec; --input: #d4d4d8; --ring: #4f46e5;
  --sidebar: #18181b; --sidebar-foreground: #e4e4e7; --sidebar-border: #ffffff14; --sidebar-accent: #ffffff12;
  --success: oklch(52.5% .167 153.6); --warning: oklch(66.9% .182 62.4); --info: oklch(58.8% .21 248.5);
  --shadow-sm: 0 1px 2px 0 #0000000d; --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --chip-ind: #e0e7ff; --chip-ind-t: #4338ca; --chip-amb: #fef3c7; --chip-amb-t: #b45309; --chip-pur: #f3e8ff; --chip-pur-t: #7e22ce; --chip-grn: #d1fae5; --chip-grn-t: #047857; --chip-red: #ffe4e6; --chip-red-t: #be123c; --chip-cya: #cffafe; --chip-cya-t: #0e7490;
  --sidebar-bg: linear-gradient(#18181b, #131316); color-scheme: light;
}
:root[data-tema="escuro"] {
  --background: #09090b; --foreground: #fafafa; --card: #18181b; --card-foreground: #fafafa; --popover: #1f1f23;
  --primary: #4f46e5; --brand: #7b74ec; --surface-subtle: #111114; --secondary: #27272a; --muted: #27272a; --muted-foreground: #a1a1aa; --accent: #27272a;
  --destructive: #fb7185; --border: #26262b; --input: #3a3a41; --ring: #9e99f1;
  --sidebar: #131316; --sidebar-border: #ffffff12; --sidebar-accent: #ffffff0f;
  --chip-ind: #312e8199; --chip-ind-t: #a5b4fc; --chip-amb: #78350f80; --chip-amb-t: #fcd34d; --chip-pur: #581c8780; --chip-pur-t: #d8b4fe; --chip-grn: #064e3b80; --chip-grn-t: #6ee7b7; --chip-red: #881337 80; --chip-red-t: #fda4af; --chip-cya: #164e6380; --chip-cya-t: #67e8f9;
  --chip-red: #88133780; --shadow-sm: 0 1px 2px 0 #00000066; --shadow-md: 0 4px 6px -1px #00000080, 0 2px 4px -2px #00000080; --shadow-xl: 0 20px 25px -5px #000000b3, 0 8px 10px -6px #000000b3;
  --sidebar-bg: linear-gradient(#141417, #101013); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 450; color: var(--foreground); background: var(--background); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.oculto { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--foreground) 16%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-track { background: transparent; }
@keyframes entrada { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulsa { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }
@keyframes brilho { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ layout (sidebar 240px + cabeçalho 56px) */
.app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; overflow: hidden; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-foreground); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--sidebar-border); }
.marca { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; height: 56px; }
.marca .logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #4f46e5, #7b74ec); display: grid; place-items: center; color: #fff; box-shadow: 0 2px 8px #4f46e559; }
.marca b { display: block; font-size: 16px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: #fff; } .marca b em { font-style: normal; color: #9e99f1; }
.marca small { color: #a1a1aa; font-size: 10.5px; letter-spacing: .02em; }
.nav { flex: 1; overflow-y: auto; padding: 12px 8px 8px; }
.nav-sec { padding: 14px 16px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: #a1a1aab3; }
.nav-sec:first-child { padding-top: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: var(--r-lg); font-size: 14px; font-weight: 500; color: #fafafaa6; transition: all .2s; position: relative; text-decoration: none; }
.nav a:hover { color: #fafafa; background: var(--sidebar-accent); }
.nav a.ativo { color: #fafafa; background: #ffffff14; box-shadow: var(--shadow-sm); outline: 1px solid #ffffff1a; outline-offset: -1px; } .nav a.ativo svg { color: #9e99f1; }
.nav .badge { margin-left: auto; background: #4f46e5; color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 8px; font-weight: 700; min-width: 20px; text-align: center; } .nav .badge.verde { background: #10b981; }
.sidebar .rodape { border-top: 1px solid var(--sidebar-border); padding: 12px; display: grid; gap: 10px; }
.maquina { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d4d4d8; padding: 6px 8px; border-radius: var(--r-lg); background: #ffffff0a; }
.maquina .ponto { width: 8px; height: 8px; border-radius: 99px; background: #71717a; flex: none; } .maquina.ok .ponto { background: #34d399; box-shadow: 0 0 8px #34d399; } .maquina.alerta .ponto { background: #fbbf24; }
.usuario { display: flex; align-items: center; gap: 10px; padding: 4px; } .avatar { width: 34px; height: 34px; border-radius: 99px; background: #4f46e533; border: 1px solid #7b74ec80; color: #c7d2fe; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.usuario b { display: block; font-size: 13px; color: #fafafa; line-height: 1.2; } .usuario small { color: #a1a1aa; font-size: 11px; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.topbar { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--border); }
.topbar .esp { flex: 1; } .topbar .cam { color: var(--muted-foreground); font-size: 13px; display: flex; align-items: center; gap: 8px; } .topbar .cam b { color: var(--foreground); font-weight: 600; }
#view { flex: 1; overflow-y: auto; padding: 28px 32px 56px; }
#view > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.pagina { animation: entrada .3s ease-out both; }
.cabeca { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .cabeca .txt { flex: 1; min-width: 220px; }
.cabeca h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; } .cabeca p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 13.5px; }

/* ------------------------------------------------------------ componentes */
.chip-i { width: 36px; height: 36px; border-radius: var(--r-xl); display: grid; place-items: center; flex: none; background: var(--chip-ind); color: var(--chip-ind-t); }
.chip-i.amb { background: var(--chip-amb); color: var(--chip-amb-t); } .chip-i.pur { background: var(--chip-pur); color: var(--chip-pur-t); } .chip-i.grn { background: var(--chip-grn); color: var(--chip-grn-t); } .chip-i.red { background: var(--chip-red); color: var(--chip-red-t); } .chip-i.cya { background: var(--chip-cya); color: var(--chip-cya-t); }
.chip-i.solido { background: linear-gradient(135deg, #4f46e5, #7b74ec); color: #fff; box-shadow: 0 2px 8px #4f46e54d; } .chip-i.grande { width: 52px; height: 52px; border-radius: 16px; } .chip-i.grande svg { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-xl); font-weight: 600; font-size: 13.5px; color: #fff; text-decoration: none !important; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, #7b74ec)); box-shadow: 0 2px 8px #4f46e540; transition: all .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px #4f46e559; filter: brightness(1.05); } .btn:active:not(:disabled) { transform: scale(.97); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sec { background: var(--card); color: var(--foreground); border: 1px solid var(--input); box-shadow: var(--shadow-sm); } .btn.sec:hover:not(:disabled) { background: var(--accent); filter: none; box-shadow: var(--shadow-md); }
.btn.perigo { background: color-mix(in srgb, var(--destructive) 12%, transparent); color: var(--destructive); border: 1px solid color-mix(in srgb, var(--destructive) 35%, transparent); box-shadow: none; }
.btn.mini { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-lg); } .btn.grande { height: 44px; padding: 0 24px; font-size: 15px; }
.cartao { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 18px; box-shadow: var(--shadow-sm); }
.painel-c { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.painel-c > .ph { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); } .painel-c .ph b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; } .painel-c .ph small { color: var(--muted-foreground); font-size: 12.5px; } .painel-c .ph .esp { flex: 1; } .painel-c > .pb { padding: 16px; }
.cartao h2, .secao h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; } .cartao .sub, .secao .sub { color: var(--muted-foreground); font-size: 13px; margin: 0 0 14px; }
.grade { display: grid; gap: 16px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--secondary); color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; }
.pill.novo { background: var(--chip-amb); color: var(--chip-amb-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-amb-t) 25%, transparent); }
.pill.em-edicao { background: var(--chip-cya); color: var(--chip-cya-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-cya-t) 25%, transparent); }
.pill.pronto { background: var(--chip-grn); color: var(--chip-grn-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-grn-t) 25%, transparent); }
.pill.erro { background: var(--chip-red); color: var(--chip-red-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-red-t) 25%, transparent); }
.pill .pulsa { width: 7px; height: 7px; border-radius: 99px; background: currentColor; animation: pulsa 1.2s infinite; }
label.rot { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); margin: 16px 0 6px; }
input[type=text], input[type=search], input[type=email], input[type=password], select, textarea, input[type=number] { width: 100%; background: transparent; border: 1px solid var(--input); border-radius: var(--r-lg); padding: 8px 12px; min-height: 38px; outline: none; transition: border-color .15s, box-shadow .15s; }
:root[data-tema="escuro"] input[type=text], :root[data-tema="escuro"] input[type=search], :root[data-tema="escuro"] input[type=email], :root[data-tema="escuro"] input[type=password], :root[data-tema="escuro"] select, :root[data-tema="escuro"] textarea { background: #ffffff0d; }
select option { color: #111; }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), 0 0 20px color-mix(in srgb, var(--primary) 8%, transparent); }
::placeholder { color: var(--muted-foreground); opacity: .8; }
.dica { color: var(--muted-foreground); font-size: 12px; margin-top: 5px; }
.vazio { text-align: center; padding: 36px 20px; color: var(--muted-foreground); } .vazio .chip-i { margin: 0 auto 12px; } .vazio b { display: block; color: var(--foreground); font-size: 15px; font-weight: 600; margin-bottom: 4px; } .vazio .btn { margin-top: 14px; }
.cartao.nota, .nota { background: color-mix(in srgb, var(--warning) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); color: var(--foreground); border-radius: var(--r-xl); padding: 10px 14px; font-size: 13px; margin-top: 12px; }

/* herói e indicadores do painel */
.heroi { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: 26px 28px; color: #fff; margin-bottom: 20px; background: radial-gradient(1200px 300px at 90% -20%, #a5b4fc66, transparent 60%), linear-gradient(135deg, #312e81, #4f46e5 55%, #7b74ec); box-shadow: var(--shadow-lg); }
.heroi::after { content: ""; position: absolute; right: -40px; top: -30px; width: 280px; height: 280px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.heroi .quando { font-size: 13px; opacity: .8; } .heroi h1 { margin: 2px 0 4px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; } .heroi p { margin: 0; opacity: .85; font-size: 14px; }
.heroi .acoes-rapidas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.heroi .acoes-rapidas a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-lg); background: #ffffff26; backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; transition: transform .2s; } .heroi .acoes-rapidas a:hover { transform: translateY(-2px); text-decoration: none; } .heroi .acoes-rapidas a.branco { background: #fff; color: #27272a; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px; transition: all .3s; } .kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi .lab { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); } .kpi .num { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; } .kpi .leg { font-size: 12px; color: var(--muted-foreground); }
.kpi .chip-i { position: absolute; right: 14px; top: 14px; }
.kpi::after { content: ""; position: absolute; right: -16px; bottom: -22px; width: 96px; height: 96px; border-radius: 50%; background: currentColor; opacity: .035; }

/* galeria e lista */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card-video { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; cursor: pointer; transition: all .3s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.card-video:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.poster { position: relative; background: #0b0b0e center/cover no-repeat; aspect-ratio: 9 / 12; display: grid; place-items: center; } .poster.h { aspect-ratio: 16 / 10; }
.poster .play { width: 46px; height: 46px; border-radius: 99px; background: #000a; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s; } .card-video:hover .play { opacity: 1; }
.poster .dur { position: absolute; right: 8px; bottom: 8px; background: #000c; color: #fff; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.poster .novo-tag { position: absolute; left: 8px; top: 8px; background: #10b981; color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
.poster .estrela { position: absolute; right: 8px; top: 8px; color: #fbbf24; } .poster .sem { color: #71717a; }
.card-video .info { padding: 12px 14px 14px; } .card-video .info b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-video .info small { color: var(--muted-foreground); font-size: 12px; }
.fila { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 10px 14px 10px 10px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .2s; }
.item:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-1px); }
.item .mini-poster { width: 56px; height: 56px; border-radius: var(--r-xl); background: var(--secondary) center/cover; display: grid; place-items: center; color: var(--muted-foreground); }
.item b { font-size: 14.5px; font-weight: 600; } .item small { color: var(--muted-foreground); display: block; margin-top: 2px; font-size: 12.5px; } .item .meio { min-width: 0; } .item .meio b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .dir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.barra-fina { height: 5px; border-radius: 99px; background: var(--secondary); overflow: hidden; margin-top: 8px; } .barra-fina i { display: block; height: 100%; background: linear-gradient(90deg, #4f46e5, #7b74ec); transition: width .4s; border-radius: 99px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.chip { border: 1px solid var(--input); background: var(--card); border-radius: 99px; padding: 5px 14px; font-weight: 500; font-size: 13px; color: var(--muted-foreground); box-shadow: var(--shadow-sm); transition: all .15s; } .chip:hover { color: var(--foreground); }
.chip.ativo { background: var(--primary); border-color: var(--primary); color: #fff; }
.busca { max-width: 280px; margin-left: auto; }
.passos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 14px 0 6px; }
.passo { text-align: center; font-size: 11px; color: var(--muted-foreground); } .passo i { display: block; height: 6px; border-radius: 99px; background: var(--secondary); margin-bottom: 6px; }
.passo.feito i { background: #4f46e5; } .passo.atual i { background: linear-gradient(90deg, #4f46e5, #7b74ec, #4f46e5); background-size: 200% 100%; animation: brilho 1.6s linear infinite; } .passo.atual { color: var(--foreground); font-weight: 600; }
.msg-claude { background: var(--secondary); border-left: 3px solid var(--primary); border-radius: var(--r-lg); padding: 9px 12px; margin-top: 12px; color: var(--muted-foreground); font-size: 13px; } .msg-claude b { color: var(--foreground); }
pre.log { max-height: 280px; overflow: auto; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 10px 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: var(--foreground); }

/* novo pedido */
.novo { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.sticky { position: sticky; top: 0; display: grid; gap: 16px; } .blocos { display: grid; gap: 16px; }
.bloco-t { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .bloco-t .n { width: 26px; height: 26px; border-radius: 99px; background: var(--chip-ind); color: var(--chip-ind-t); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.drop { border: 1.5px dashed var(--input); border-radius: var(--r-xl); padding: 18px; text-align: center; color: var(--muted-foreground); cursor: pointer; transition: all .2s; min-height: 110px; display: grid; place-items: center; background: var(--surface-subtle); }
.drop:hover, .drop.sobre { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); } .drop.tem { border-style: solid; border-color: #10b981; }
.drop input { display: none; } .drop b { color: var(--foreground); display: block; font-weight: 600; } .drop small { color: var(--muted-foreground); } .drop video { max-height: 130px; border-radius: var(--r-lg); }
.seg { display: inline-flex; background: var(--secondary); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: var(--r-lg); font-weight: 500; color: var(--muted-foreground); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; } .seg button:hover { color: var(--foreground); }
.seg button.ativo { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); outline: 1px solid var(--border); font-weight: 600; } .seg button.ativo svg { color: var(--brand); }
.estilos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.estilo { text-align: left; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 12px; display: grid; gap: 4px; transition: all .2s; box-shadow: var(--shadow-sm); }
.estilo:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); transform: translateY(-1px); box-shadow: var(--shadow-md); } .estilo.ativo { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
.estilo b { display: flex; align-items: center; gap: 8px; font-weight: 600; } .estilo b svg { color: var(--brand); } .estilo small { color: var(--muted-foreground); font-size: 12px; line-height: 1.4; }
.opc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; } .sw input { width: 38px; height: 22px; appearance: none; background: var(--input); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex: none; min-height: 0; border: 0; padding: 0; box-shadow: none; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px #0004; } .sw input:checked { background: var(--primary); } .sw input:checked::after { transform: translateX(16px); }
.cores { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cor { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--card); outline: 1px solid var(--input); } .cor.ativo { outline: 2px solid var(--primary); } .cores input[type=color] { width: 36px; height: 30px; padding: 2px; min-height: 0; }
.exemplos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .exemplos button { font-size: 12px; border: 1px dashed var(--input); background: transparent; border-radius: 99px; padding: 4px 11px; color: var(--muted-foreground); } .exemplos button:hover { border-color: var(--primary); color: var(--foreground); }
.telefone { width: 150px; height: 266px; border-radius: 22px; border: 3px solid var(--input); background: linear-gradient(160deg, #3a3a4c, #1c1c28); position: relative; margin: 0 auto; overflow: hidden; } .telefone.h { width: 250px; height: 140px; }
.telefone .leg { position: absolute; left: 6px; right: 6px; text-align: center; font-weight: 800; transform: translateY(-50%); text-shadow: 0 2px 4px #000, 0 0 2px #000; line-height: 1.1; }
.telefone .tit { position: absolute; top: 8px; left: 6px; right: 6px; text-align: center; font-family: Impact, sans-serif; font-size: 13px; color: #fff; letter-spacing: .5px; }
.resumo-l { display: grid; gap: 7px; margin: 10px 0 14px; } .resumo-l div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px dashed var(--border); padding-bottom: 5px; } .resumo-l span { color: var(--muted-foreground); } .resumo-l b { text-align: right; font-weight: 600; }

/* modal */
.fundo-modal { position: fixed; inset: 0; background: #000a; backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: entrada .15s; }
.modal { background: var(--popover); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--r-2xl); width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.modal-cab { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); } .modal-cab h3 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.modal-corpo { overflow: auto; padding: 18px 20px 22px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; } .aba { background: transparent; border: 0; padding: 9px 14px; color: var(--muted-foreground); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; } .aba:hover { color: var(--foreground); } .aba.ativo { color: var(--foreground); border-bottom-color: var(--primary); }
.player { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 22px; align-items: start; } .player.h { grid-template-columns: minmax(0, 560px) 1fr; }
.player video { width: 100%; max-height: 66vh; background: #000; border-radius: var(--r-xl); display: block; }
.fontes { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13px; } .kv span { color: var(--muted-foreground); } .kv b { font-weight: 600; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.spec { white-space: pre-wrap; font-size: 12.5px; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 12px; max-height: 340px; overflow: auto; }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--popover); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--r-xl); padding: 12px 16px; box-shadow: var(--shadow-xl); max-width: 360px; animation: entrada .2s; cursor: pointer; font-size: 13.5px; }
.toast.ok { border-left-color: #10b981; } .toast.erro { border-left-color: var(--destructive); } .toast b { display: block; font-weight: 600; } .toast span { color: var(--muted-foreground); }
.progresso-global { position: fixed; inset: 0; background: #000b; backdrop-filter: blur(3px); z-index: 150; display: grid; place-items: center; } .progresso-global .cartao { width: min(460px, 92vw); box-shadow: var(--shadow-xl); }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; } .faq summary { cursor: pointer; font-weight: 600; } .faq p { color: var(--muted-foreground); margin: 8px 0 0; }
.diag ul { padding: 0; margin: 0; } .diag li { list-style: none; padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; } .diag .ok { color: #10b981; } .diag .nok { color: var(--destructive); }

@media (max-width: 1100px) { .novo { grid-template-columns: 1fr; } .sticky { position: static; } .g5 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 64px 1fr; } .marca div:last-child, .nav a span, .nav-sec, .nav .badge, .sidebar .rodape .maquina span, .usuario div { display: none; } .marca { justify-content: center; padding: 14px 0; }
  .nav a { justify-content: center; padding: 11px; } .g2, .g3, .opc, .player, .player.h { grid-template-columns: 1fr; } #view { padding: 18px 14px 50px; }
  .item { grid-template-columns: 52px 1fr; } .item .dir { grid-column: 1 / -1; justify-content: flex-start; } .passos { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(2, 1fr); }
}
