/* Fontes da identidade BZL: Muory (títulos) e Inter (texto). Poppins fica para os vídeos (motor). */
@font-face { font-family: "Muory"; src: url(/fonts/Muory-Bold.ttf); font-weight: 700; }
@font-face { font-family: "Muory"; src: url(/fonts/Muory-Regular.ttf); font-weight: 400; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-Variable.ttf); font-weight: 100 900; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-Medium.ttf); font-weight: 500; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-Bold.ttf); font-weight: 700; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-ExtraBold.ttf); font-weight: 800; }

/* Paleta oficial Bezalel (Manual de Identidade Visual 2026):
   Obsidian Black #1F1D1F · Electric Lime #DAFF02 · Soft Ivory #F3F0EB · Creative Orange #FE572A · Visionary Purple #685BC7 */
:root {
  --black: #1f1d1f;
  --lime: #daff02;
  --ivory: #f3f0eb;
  --orange: #fe572a;
  --purple: #685bc7;

  --bg: #1f1d1f;
  --bg-2: #181618;
  --panel: #262426;
  --panel-2: #2f2c2f;
  --line: #3a373a;
  --line-2: #4a464a;
  --text: var(--ivory);
  --muted: #b3aea9;
  --faint: #7d7874;
  --accent: var(--lime);
  --accent-ink: var(--black);
  --accent-soft: rgba(218, 255, 2, 0.12);
  --brand: var(--purple);
  --brand-soft: rgba(104, 91, 199, 0.24);
  --danger: var(--orange);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Muory", "Inter", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 500 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.spacer { flex: 1; }
.screen { height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--lime); color: var(--black); }

button { cursor: pointer; border: 1.5px solid var(--line-2); background: var(--panel-2); border-radius: var(--radius-sm); padding: 7px 14px; font-weight: 600; transition: background .12s, border-color .12s, transform .08s; }
button:hover { border-color: var(--lime); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--lime); color: var(--black); border-color: var(--lime); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; box-shadow: 3px 3px 0 var(--purple); }
button.primary:hover { box-shadow: 4px 4px 0 var(--orange); }
button.ghost { background: transparent; }
button.small { padding: 5px 10px; font-size: 12px; }
button.round { width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--lime); color: var(--black); border: none; font-size: 15px; box-shadow: 3px 3px 0 var(--purple); }
input[type=text], input[type=number], textarea, select, .proj-name {
  background: var(--bg-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 6px 9px; outline: none; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--lime); }
input[type=range] { accent-color: var(--lime); }
a { color: inherit; }

/* topo */
.topbar { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1.5px solid var(--line); background: var(--bg-2); flex: none; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand .logo { height: 30px; display: block; }
.brand.small .logo { height: 24px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; color: var(--ivory); padding-top: 3px; }
.brand.small .brand-word { font-size: 15px; }
.proj-name { width: 300px; background: transparent; border-color: transparent; font-weight: 700; }
.proj-name:hover { border-color: var(--line); }
.save-state { color: var(--faint); font-size: 12px; min-width: 70px; }
.claude-badge { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.claude-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.claude-badge.ok .dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.claude-badge.off .dot { background: var(--orange); }

/* início */
.home-main { flex: 1; overflow: auto; padding: 26px 40px 40px; }
.hero { position: relative; overflow: hidden; background: var(--lime); color: var(--black); border-radius: 24px; padding: 34px 40px; min-height: 290px; display: flex; align-items: center; }
.hero-shape { position: absolute; right: -120px; top: -140px; width: 560px; height: 560px; border-radius: 50%; background: var(--purple); z-index: 0; }
.hero-shape::after { content: ""; position: absolute; left: -90px; bottom: 40px; width: 230px; height: 230px; border-radius: 50%; background: var(--orange); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-logo { height: 34px; display: block; margin-bottom: 16px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: .98; margin: 0 0 12px; text-transform: uppercase; letter-spacing: -.005em; }
.hero p { font-size: 15px; margin: 0 0 20px; max-width: 470px; font-weight: 500; }
.hero-mascot { position: absolute; z-index: 1; right: 80px; bottom: -8px; height: 300px; filter: drop-shadow(6px 6px 0 rgba(31,29,31,.35)); }
.drop { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; padding: 6px; border-radius: 99px; border: 2px dashed transparent; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--black); background: rgba(31,29,31,.08); }
.drop-btn { background: var(--black); color: var(--lime); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; padding: 12px 22px; border-radius: 99px; box-shadow: 4px 4px 0 var(--purple); }
.drop:hover .drop-btn { box-shadow: 5px 5px 0 var(--orange); }
.drop-sub { font-weight: 600; font-size: 13px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 32px 0 14px; letter-spacing: .02em; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; transition: transform .12s, border-color .12s, box-shadow .12s; }
.card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 5px 5px 0 var(--purple); }
.card .thumb { aspect-ratio: 9/16; background: var(--bg-2) center/cover no-repeat; }
.card .meta { padding: 10px 12px; }
.card .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 11.5px; }
.card .job { position: absolute; inset: auto 0 56px 0; padding: 9px 11px; background: rgba(31,29,31,.9); font-size: 12px; }
.card .job.failed { color: #ffd0c3; display: flex; flex-direction: column; gap: 7px; }
.card .job .retry { align-self: flex-start; }
.card .bar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.card .bar > i { display: block; height: 100%; background: var(--lime); }
.card .del { position: absolute; top: 8px; right: 8px; padding: 2px 9px; font-size: 12px; opacity: 0; background: rgba(31,29,31,.85); }
.card:hover .del { opacity: 1; }
.empty-projects { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.empty-projects img { height: 90px; }

/* editor */
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr 300px; }
.panel-title { font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; padding: 12px 14px 8px; display: flex; align-items: center; gap: 8px; }
.panel-title .muted { font-family: var(--font); font-size: 11.5px; text-transform: none; font-weight: 500; }
.panel-title .avatar { height: 30px; width: 30px; object-fit: contain; }
.chat { border-right: 1.5px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; max-width: 96%; }
.msg.user { align-self: flex-end; background: var(--purple); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--panel-2); border: 1.5px solid var(--line); border-bottom-left-radius: 4px; }
.msg.error { border-color: var(--orange); color: #ffd0c3; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row .avatar { height: 28px; width: 28px; object-fit: contain; flex: none; }
.steps { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.steps div { color: var(--muted); font-size: 11.5px; }
.steps div::before { content: "› "; color: var(--lime); }
.welcome { color: var(--muted); padding: 6px 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.welcome img { height: 110px; }
.welcome b { color: var(--text); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--bg-2); border: 1.5px solid var(--line-2); font-weight: 500; }
.chip:hover { border-color: var(--lime); }
.chat-form { padding: 10px 14px 14px; border-top: 1.5px solid var(--line); }
.chat-form textarea { resize: none; }
.chat-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chat-actions span { flex: 1; }
.login-banner { margin: 4px 14px 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--purple); display: grid; grid-template-columns: 54px 1fr; gap: 8px 10px; align-items: center; }
.login-banner .banner-mascot { grid-row: span 3; height: 70px; }
.login-banner button { justify-self: start; }
.login-banner button.ghost { border-color: rgba(243,240,235,.4); }

.stage-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 14px; gap: 10px; background: radial-gradient(circle at 50% 38%, #2b282b, var(--bg)); }
.stage-box { position: relative; flex: 1; min-height: 0; aspect-ratio: 9/16; max-width: 100%; }
#stage { width: 100%; height: 100%; display: block; border-radius: 12px; background: #000; box-shadow: 0 12px 44px rgba(0,0,0,.55); }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.sel { pointer-events: auto; position: absolute; border: 2px solid var(--lime); border-radius: 3px; cursor: move; }
.sel .h { position: absolute; width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--black); border-radius: 50%; }
.sel .h.scale { right: -8px; bottom: -8px; cursor: nwse-resize; }
.sel .h.rot { left: 50%; top: -34px; margin-left: -7px; cursor: grab; }
.sel .h.rot::after { content: ""; position: absolute; left: 4px; top: 12px; width: 2px; height: 20px; background: var(--lime); }
.lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(31,29,31,.6); border-radius: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; backdrop-filter: blur(3px); }
.lock-mascot { height: 150px; animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; background: var(--purple); }
.dots i:nth-child(3) { animation-delay: .4s; background: var(--orange); }
@keyframes blink { 50% { opacity: .25; } }
.transport { display: flex; align-items: center; gap: 14px; flex: none; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 130px; }

.inspector { border-left: 1.5px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1.5px solid var(--line); }
.tab { border: none; background: none; border-radius: 0; padding: 8px 10px; color: var(--muted); border-bottom: 3px solid transparent; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 13px; box-shadow: none; }
.tab.active { color: var(--text); border-bottom-color: var(--lime); }
.tab-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
.field { margin-bottom: 11px; }
.field > label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sw { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); padding: 0; cursor: pointer; box-shadow: none; }
.sw.on { border-color: var(--lime); box-shadow: 0 0 0 2px var(--bg); }
.sw-custom { width: 30px; height: 26px; padding: 0; border: none; background: none; }
.layer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.layer-head .kind { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 17px; }
.layer-actions { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.empty-note { color: var(--muted); padding: 10px 0; }
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.palette-btn { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 8px; font-weight: 600; }
.palette-btn .strip { display: flex; height: 16px; border-radius: 5px; overflow: hidden; }
.palette-btn .strip i { flex: 1; }
.color-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.color-row label { flex: 1; font-size: 12px; color: var(--muted); }
.color-row input[type=color] { width: 34px; height: 26px; border: none; background: none; padding: 0; }
.color-row input[type=text] { width: 90px; }

/* timeline */
.timeline { height: 270px; flex: none; border-top: 1.5px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.tl-toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1.5px solid var(--line); }
.tl-toolbar input[type=range] { width: 140px; }
.add-wrap { position: relative; }
.menu { position: absolute; bottom: 34px; left: 0; z-index: 30; background: var(--panel-2); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 6px; width: 230px; max-height: 330px; overflow: auto; box-shadow: 6px 6px 0 var(--purple); }
.menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 6px 9px; font-weight: 500; box-shadow: none; }
.menu button:hover { background: var(--accent-soft); color: var(--lime); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.tl-scroll { flex: 1; overflow: auto; position: relative; }
.tl-inner { position: relative; min-height: 100%; }
.ruler { height: 24px; position: sticky; top: 0; z-index: 5; background: var(--bg-2); border-bottom: 1.5px solid var(--line); cursor: pointer; }
.ruler .tick { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line-2); font-size: 10px; color: var(--faint); padding-left: 3px; }
.tracks { position: relative; }
.track { position: relative; height: 26px; border-bottom: 1px solid rgba(58,55,58,.6); }
.track.video { height: 40px; }
.track.words { height: 20px; }
.track-label { position: sticky; left: 0; z-index: 4; display: inline-block; font-size: 10px; color: var(--faint); padding: 0 6px; line-height: 20px; background: var(--bg-2); font-weight: 600; }
.clip { position: absolute; top: 4px; bottom: 4px; background: #343134; border: 1.5px solid var(--line-2); border-radius: 7px; overflow: hidden; font-size: 10.5px; color: var(--muted); padding: 2px 6px; white-space: nowrap; cursor: pointer; }
.clip.sel-clip { border-color: var(--lime); background: #3a3d1e; color: var(--text); }
.word { position: absolute; top: 2px; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.bar { position: absolute; top: 3px; height: 20px; border-radius: 6px; font-size: 10.5px; padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; color: var(--ivory); background: var(--purple); border: 1.5px solid transparent; font-weight: 600; }
.bar.selected { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.bar .edge { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.bar .edge.l { left: 0; } .bar .edge.r { right: 0; }
.bar.t-bg { background: #454145; }
.bar.t-subtitle { background: var(--lime); color: var(--black); }
.bar.t-text { background: var(--purple); }
.bar.t-pill { background: var(--orange); }
.bar.t-icon, .bar.t-checklist, .bar.t-meter { background: #4f4592; }
.bar.t-video, .bar.t-image { background: #8a3f2c; }
.bar.t-wipe { background: #9fb800; color: var(--black); }
.bar.t-star, .bar.t-burst, .bar.t-squiggle, .bar.t-underline, .bar.t-scribble, .bar.t-highlight, .bar.t-arrow, .bar.t-cursor, .bar.t-stamp { background: #57525a; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); z-index: 6; pointer-events: none; }
.ph-head { position: absolute; top: 0; left: -6px; width: 14px; height: 12px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 50% 100%); }

.toast { position: fixed; bottom: 290px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1.5px solid var(--line-2); padding: 10px 16px; border-radius: 12px; z-index: 100; box-shadow: 6px 6px 0 var(--purple); display: flex; gap: 10px; align-items: center; }
.toast img { height: 46px; }

/* anexos do chat */
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.attach-list:empty { display: none; }
.attach { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 3px 4px 3px 3px; font-size: 11.5px; max-width: 100%; }
.attach img, .attach .spin-sm { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.attach.err { border-color: var(--orange); }
.attach .x { border: none; background: none; padding: 0 5px; font-size: 15px; line-height: 1; color: var(--muted); box-shadow: none; }
.attach .x:hover { color: var(--text); }
.spin-sm { border: 3px solid var(--line-2); border-top-color: var(--lime); border-radius: 50% !important; animation: spin .8s linear infinite; width: 22px !important; height: 22px !important; margin: 6px; }
.chat.drop-on { outline: 2px dashed var(--lime); outline-offset: -8px; background: #2c2f1c; }
.msg-attach { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.thumb-chip { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1.5px solid rgba(243,240,235,.35); }
.thumb-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-chip .badge { position: absolute; left: 3px; bottom: 3px; background: rgba(31,29,31,.85); color: var(--lime); font-size: 9.5px; padding: 1px 4px; border-radius: 4px; font-weight: 700; }

/* ================= BZL Studio ================= */
body.scroll { overflow: auto; }
.credits-badge { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1.5px solid var(--line-2); border-radius: 99px; padding: 5px 12px 5px 6px; font-weight: 700; white-space: nowrap; }
.credits-badge .coin { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--black); display: grid; place-items: center; font-family: var(--display); font-size: 13px; }
.credits-badge.low .coin { background: var(--orange); }
.credits-badge small { color: var(--muted); font-weight: 500; }
.user-menu { position: relative; }
.user-menu .menu { top: 42px; bottom: auto; right: 0; left: auto; }
.banner { margin: 18px 40px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--orange); color: var(--black); display: flex; gap: 14px; align-items: center; font-weight: 600; }
.banner img { height: 60px; }
.banner a { margin-left: auto; }
.banner .primary { box-shadow: 3px 3px 0 var(--black); }

/* login */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--lime); color: var(--black); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-art .shape1 { position: absolute; right: -160px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: var(--purple); }
.auth-art .shape2 { position: absolute; left: 60px; top: 90px; width: 180px; height: 180px; border-radius: 50%; background: var(--orange); }
.auth-art img.mascot { position: absolute; right: 70px; bottom: 120px; height: 360px; }
.auth-art h1 { position: relative; font-family: var(--display); font-size: 52px; line-height: .96; text-transform: uppercase; margin: 0 0 10px; max-width: 520px; }
.auth-art p { position: relative; font-size: 16px; max-width: 440px; margin: 0; font-weight: 500; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .logo { height: 44px; margin-bottom: 26px; }
.auth-card h2 { font-family: var(--display); text-transform: uppercase; font-size: 26px; margin: 0 0 6px; }
.auth-card p.muted { margin: 0 0 22px; }
.auth-card .field input { padding: 11px 12px; font-size: 15px; }
.auth-card button.primary { width: 100%; padding: 12px; font-size: 16px; margin-top: 6px; }
.form-error { color: #ffb39c; min-height: 20px; margin: 8px 0; font-weight: 600; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* painel */
.dash { padding: 26px 40px 60px; max-width: 1400px; margin: 0 auto; width: 100%; }
.dash-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.dash-head h1 { font-family: var(--display); text-transform: uppercase; font-size: 30px; margin: 0; }
.card .status { position: absolute; inset: auto 0 56px 0; padding: 9px 11px; background: rgba(31,29,31,.9); font-size: 12px; }
.card .status.err { color: #ffc3b4; }

/* assistente de novo vídeo */
.modal-bg { position: fixed; inset: 0; background: rgba(15,13,15,.72); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 22px; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 10px 10px 0 var(--purple); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1.5px solid var(--line); }
.modal-head h2 { font-family: var(--display); text-transform: uppercase; font-size: 20px; margin: 0; }
.steps-bar { display: flex; gap: 6px; margin-left: auto; }
.steps-bar i { width: 26px; height: 6px; border-radius: 3px; background: var(--line-2); }
.steps-bar i.on { background: var(--lime); }
.modal-body { padding: 22px; overflow: auto; flex: 1; }
.modal-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1.5px solid var(--line); }
.modal-foot .spacer { flex: 1; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice { text-align: left; border: 2px solid var(--line-2); background: var(--bg-2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--purple); }
.choice.on { border-color: var(--lime); box-shadow: 4px 4px 0 var(--purple); }
.choice b { font-family: var(--display); text-transform: uppercase; font-size: 15px; font-weight: 700; }
.choice span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.choice canvas, .choice .pv { width: 100%; aspect-ratio: 9/16; border-radius: 10px; background: #000; display: block; max-height: 230px; object-fit: cover; }
.choice .strip { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
.choice .strip i { flex: 1; }
.upload-drop { border: 2.5px dashed var(--line-2); border-radius: 18px; padding: 40px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-drop:hover, .upload-drop.over { border-color: var(--lime); background: var(--accent-soft); }
.upload-drop img { height: 120px; }
.upload-drop b { font-family: var(--display); text-transform: uppercase; font-size: 18px; }
.sel-file { display: flex; gap: 14px; align-items: center; background: var(--bg-2); border-radius: 14px; padding: 12px; margin-top: 14px; }
.sel-file video { width: 90px; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; background: #000; }
.summary-list { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime); transition: width .3s; }

/* admin */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.tag.ok { background: var(--lime); color: var(--black); }
.tag.exp { background: var(--orange); color: var(--black); }
.tag.blk { background: var(--line-2); }
.tag.adm { background: var(--purple); }
.panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.kpi { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-family: var(--display); font-size: 28px; }
.kpi span { color: var(--muted); font-size: 12px; }
.secret { font-family: ui-monospace, monospace; font-size: 18px; background: var(--bg-2); padding: 10px 14px; border-radius: 10px; border: 1.5px dashed var(--lime); user-select: all; }
.projects .empty-projects { grid-column: 1 / -1; }
