@font-face { font-family: "Inter"; src: url("../fonts/Inter-Italic-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: block; }
/* Portal Gerador de Ofertas — interface. As peças usam tokens.css + bundle.css do design system. */
:root {
  --app-bg: #F5F2ED;
  --surface: #FFFFFF;
  --surface-2: #FBF9F5;
  --surface-3: #F2EEE8;
  --line: #E6E0D7;
  --line-strong: #D3CBBF;
  --ink: #26221F;
  --ink-2: #5A534E;
  --ink-3: #857D76;
  --red: var(--sp-red);
  --red-hover: #C2161A;
  --red-soft: #FDECEC;
  --yellow: var(--sp-yellow);
  --yellow-soft: #FFF4D6;
  --green: #1C7F36;
  --green-soft: #E2F3E6;
  --amber: #9A5B00;
  --amber-soft: #FFF0D4;
  --danger: #B91C1C;
  --danger-soft: #FDE8E7;
  --focus: 0 0 0 3px rgba(255, 178, 0, 0.6);
  --leaf-sm: 8px 8px 16px 8px;
  --leaf: 12px 12px 26px 12px;
  --leaf-lg: 18px 18px 40px 18px;
  --shadow-1: 0 1px 2px rgba(38, 34, 31, 0.06), 0 0 0 1px rgba(38, 34, 31, 0.02);
  --shadow-2: 0 10px 30px rgba(38, 34, 31, 0.12), 0 2px 6px rgba(38, 34, 31, 0.06);
  --topbar: 64px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--app-bg);
  color: var(--ink);
  font: 400 14.5px/1.45 var(--font-inter);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.ic { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ topo */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: 20px; padding: 0 28px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 30px; display: block; }
.brand-name { font-weight: 700; font-size: 15px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: var(--leaf-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.topbar-spacer { flex: 1; }
.user-btn {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); cursor: pointer;
}
.user-btn:hover { border-color: var(--line-strong); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-meta strong { font-size: 13px; }
.user-meta small { font-size: 11.5px; color: var(--ink-3); }
.rel { position: relative; }

/* ------------------------------------------------------------------ layout */
.page { max-width: 1400px; margin: 0 auto; padding: 28px 32px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.h3 { font-size: 15.5px; font-weight: 700; }
.lead { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; margin-top: 6px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  border-radius: 10px 10px 18px 10px; font-weight: 650; white-space: nowrap; transition: background .12s, border-color .12s, color .12s;
}
.btn-md { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px 8px 14px 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px 12px 22px 12px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F0A500; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #F1C4C1; }
.btn-danger:hover { background: var(--danger-soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: transparent;
  border-radius: 8px; color: var(--ink-2); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ------------------------------------------------------------------ switch, segmented, checkbox, badge */
.switch {
  position: relative; width: 38px; height: 22px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #D8D1C7; transition: background .15s; flex: none;
}
.switch .knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
.switch.on .knob { transform: translateX(16px); }
.switch-green.on { background: var(--green); }
.switch-red.on { background: var(--red); }
.switch-yellow.on { background: #E39A00; }
.switch-dark.on { background: var(--ink); }
.switch:disabled { opacity: .35; cursor: not-allowed; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: 10px; }
.seg button {
  border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  font-weight: 650; font-size: 13.5px; color: var(--ink-2);
}
.seg button:hover:not(:disabled) { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-sm button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px 6px 10px 6px; border: 1.5px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px;
}
.check input:checked + .box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input:focus-visible + .box { box-shadow: var(--focus); }
.check-text { display: flex; flex-direction: column; gap: 2px; }
.check-text span { font-weight: 600; }
.check-text small { color: var(--ink-3); font-size: 13px; }
.check.disabled { opacity: .45; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2);
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--line-strong); }

/* ------------------------------------------------------------------ campos */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field-hint { font-size: 12.5px; color: var(--ink-3); }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  height: 40px; border: 1px solid var(--line-strong); background: #fff; border-radius: 9px; padding: 0 12px; width: 100%;
}
.textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ------------------------------------------------------------------ home */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px 30px; border-radius: var(--leaf-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.hero .lead { color: #D9D3CC; }
.hero .eyebrow { color: var(--yellow); }
.hero-mark { position: absolute; right: -40px; bottom: -70px; width: 260px; opacity: .08; pointer-events: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); padding: 12px; min-height: 128px; display: flex; flex-direction: column; gap: 8px; }
.day.today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; }
.day-head strong { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.day-head span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day-chip {
  display: flex; align-items: center; gap: 7px; border: 0; text-align: left; width: 100%; cursor: pointer;
  padding: 6px 8px; border-radius: 8px 8px 14px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.2;
  background: var(--surface-3); color: var(--ink);
}
.day-chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.day-chip:hover { background: var(--line); }
.day-chip.off { color: var(--ink-3); font-weight: 600; }

.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.camp-card { display: flex; flex-direction: column; overflow: hidden; }
.camp-stage { height: 148px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--stage); }
.camp-stage::after { content: ''; position: absolute; width: 130%; aspect-ratio: 1; left: -15%; top: 62%; border-radius: 50%; background: var(--stage-alt); }
.camp-stage img { position: relative; z-index: 1; max-height: 118px; max-width: 82%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.22)); }
.camp-stage.plain::after { display: none; }
.camp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.camp-body h3 { font-size: 16px; font-weight: 800; line-height: 1.2; }
.camp-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.camp-next { font-size: 13px; color: var(--ink-2); }
.camp-next strong { color: var(--ink); }
.camp-body .btn { margin-top: auto; align-self: flex-start; }

.draft-list { display: flex; flex-direction: column; }
.draft-row { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.draft-row:first-child { border-top: 0; }
.mini-seal { width: 52px; height: 40px; border-radius: 8px 8px 14px 8px; background: var(--stage); display: grid; place-items: center; overflow: hidden; }
.mini-seal img { max-width: 46px; max-height: 34px; object-fit: contain; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; width: 120px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* ------------------------------------------------------------------ wizard */
.wiz-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.wiz-head-inner { max-width: 1400px; margin: 0 auto; padding: 18px 32px 0; }
.wiz-title { display: flex; align-items: center; gap: 14px; }
.wiz-title .mini-seal { width: 60px; height: 46px; }
.wiz-title h1 { font-size: 21px; font-weight: 800; }
.wiz-sub { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 13.5px; flex-wrap: wrap; }
.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px; }
.stepper { display: flex; gap: 0; margin-top: 16px; overflow-x: auto; }
.step {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px 0; margin-right: 18px; border: 0; background: none;
  cursor: pointer; color: var(--ink-3); font-weight: 650; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.step:disabled { cursor: not-allowed; }
.step .num {
  width: 26px; height: 26px; border-radius: 8px 8px 14px 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  border: 1.5px solid var(--line-strong); color: var(--ink-3); background: var(--surface);
}
.step.done { color: var(--ink-2); }
.step.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.step.current { color: var(--ink); border-bottom-color: var(--red); }
.step.current .num { background: var(--red); border-color: var(--red); color: #fff; }
.step:not(:disabled):hover { color: var(--ink); }

.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 16px; }
.footer-status { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; min-width: 0; flex-wrap: wrap; }

/* opções em cartão (campanha, layout) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.opt {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--leaf);
}
.opt:hover:not(:disabled) { border-color: var(--line-strong); }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:disabled { cursor: not-allowed; opacity: .62; }
.opt-check { position: absolute; z-index: 5; box-shadow: 0 0 0 3px var(--surface); top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 5; box-shadow: 0 0 0 3px var(--surface); }
.opt-title { font-weight: 750; font-size: 14.5px; line-height: 1.25; }
.opt-desc { font-size: 12.5px; color: var(--ink-3); }

/* wireframe do layout */
.wf { border-radius: 10px 10px 18px 10px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--stage); position: relative; overflow: hidden; height: 150px; }
.wf::before { content: ''; position: absolute; width: 120%; aspect-ratio: 1; left: -10%; top: 18px; border-radius: 50%; background: var(--stage-alt); }
.wf-seal { position: relative; align-self: center; width: 44px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.85); z-index: 1; }
.wf-panel { position: relative; z-index: 1; flex: 1; background: #fff; border-radius: 10px 10px 10px 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; justify-content: space-between; }
.wf-row { display: flex; gap: 5px; justify-content: space-around; }
.wf-row.band { background: var(--band); box-shadow: 3px -3px 0 var(--band-shadow); border-radius: 6px; padding: 4px; margin: 0 -4px; }
.wf-cell { flex: 1; height: 18px; border-radius: 3px 3px 6px 3px; background: var(--tile); }
.wf-row.feature .wf-cell { height: 22px; }
.wf-row.feature .wf-cell::after { content: ''; display: block; width: 46%; height: 100%; margin-left: 54%; background: var(--name-pill); border-radius: 3px 3px 7px 3px; }

/* ------------------------------------------------------------------ planilha de ofertas */
.ofertas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.sheet-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); box-shadow: var(--shadow-1); }
.sheet-cols, .sheet-row {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 22px 26px 44px minmax(170px, 1fr) 78px 112px 86px 86px 74px 32px;
}
.sheet-cols {
  padding: 10px 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
  border-bottom: 1px solid var(--line); position: sticky; top: var(--topbar); background: var(--surface); z-index: 5; border-radius: 12px 12px 0 0;
}
.sheet-cols .c { text-align: center; line-height: 1.15; letter-spacing: 0; font-size: 10.5px; white-space: nowrap; }
.sec { border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec-head {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: var(--surface-2); cursor: pointer; text-align: left;
}
.sec-head:hover { background: var(--surface-3); }
.sec-num {
  width: 28px; height: 28px; border-radius: 8px 8px 15px 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--tile); color: #fff;
}
.sec-num.int { background: var(--ink-3); }
.sec-title { display: flex; flex-direction: column; line-height: 1.2; }
.sec-title strong { font-size: 14px; }
.sec-title small { color: var(--ink-3); font-size: 12.5px; }
.sec-count { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sec-chev { color: var(--ink-3); transition: transform .15s; }
.sec.collapsed .sec-chev { transform: rotate(-90deg); }
.sec-body { padding: 4px 0 10px; }
.sheet-row { padding: 6px 14px; position: relative; }
.sheet-row:hover { background: #FCFAF7; }
.sheet-row.has-error { background: #FFF8F7; }
.sheet-row.drag-over { box-shadow: inset 0 2px 0 var(--red); }
.sheet-row.dragging { opacity: .4; }
.grip { color: #B9B0A5; cursor: grab; display: grid; place-items: center; height: 32px; }
.grip:active { cursor: grabbing; }
.row-n { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; }
.thumb {
  width: 44px; height: 44px; border-radius: 8px 8px 16px 8px; background: var(--surface-3); display: grid; place-items: center;
  overflow: hidden; border: 0; padding: 0; cursor: pointer; color: var(--ink-3);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-missing { background: repeating-linear-gradient(-45deg, #FFF4D6 0 6px, #FFEBB8 6px 12px); color: var(--amber); }
.thumb.is-empty { background: var(--surface-3); border: 1.5px dashed var(--line-strong); }
.cell-input {
  width: 100%; height: 36px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 0 10px;
}
.cell-input:hover { border-color: var(--line); background: #fff; }
.cell-input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: var(--focus); }
.cell-input::placeholder { color: #B3AAA0; }
.cell-input.price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 30px; }
.price-wrap { position: relative; }
.price-wrap::before { content: 'R$'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--ink-3); font-weight: 600; pointer-events: none; }
.cell-input.invalid { border-color: #E9A39E; background: #FFF6F5; }
.unit-select { height: 36px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 0 6px; width: 100%; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.unit-select:hover { border-color: var(--line); background: #fff; }
.unit-select:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.c { display: flex; justify-content: center; align-items: center; gap: 6px; }
.tv-order { min-width: 20px; height: 20px; border-radius: 6px 6px 10px 6px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.sec-foot { padding: 4px 14px 2px 62px; }
.add-row { border: 0; background: none; color: var(--ink-2); font-weight: 650; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.add-row:hover { background: var(--surface-3); color: var(--ink); }
.row-note { grid-column: 4 / -1; font-size: 12px; color: var(--amber); font-weight: 600; margin-top: -4px; display: flex; gap: 6px; align-items: center; }

/* seletor de produto */
.picker { position: relative; }
.picker-pop {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 50; width: max(100%, 380px); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; max-height: 360px; overflow: auto;
}
.pick {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 6px 8px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left;
}
.pick img { width: 40px; height: 40px; object-fit: contain; background: var(--surface-3); border-radius: 6px 6px 12px 6px; }
.pick.active, .pick:hover { background: var(--surface-3); }
.pick strong { font-weight: 600; font-size: 13.5px; display: block; }
.pick small { color: var(--ink-3); font-size: 12px; }
.pick-free { grid-template-columns: 40px 1fr; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
.pick-free .ph { width: 40px; height: 40px; border-radius: 6px 6px 12px 6px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; color: var(--ink-3); }
.pick-head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 6px 8px 4px; }

/* prévia ao vivo */
.preview-panel { position: sticky; top: calc(var(--topbar) + 16px); }
.preview-frame { display: flex; justify-content: center; padding: 16px; background: var(--surface-3); border-radius: 0 0 12px 26px; }
.scaled { position: relative; overflow: hidden; flex: none; }
.scaled-inner { transform-origin: top left; position: absolute; left: 0; top: 0; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.counter { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.counter:first-child { border-left: 0; }
.counter small { color: var(--ink-3); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.counter strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.counter.ok strong { color: var(--green); }
.counter.bad strong { color: var(--danger); }

/* problemas */
.issues { display: flex; flex-direction: column; gap: 6px; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 9px 9px 16px 9px; font-size: 13.5px; line-height: 1.35; }
.issue .ic { margin-top: 1px; }
.issue-erro { background: var(--danger-soft); color: #8A1C17; }
.issue-aviso { background: var(--amber-soft); color: #6E4300; }
.issue-info { background: var(--surface-3); color: var(--ink-2); }
.issue button { margin-left: auto; }

/* ------------------------------------------------------------------ revisão */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.rv-table { width: 100%; border-collapse: collapse; }
.rv-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rv-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rv-table tr.sec-row td { background: var(--surface-2); font-weight: 700; font-size: 12.5px; color: var(--ink-2); padding: 8px 12px; }
.rv-table tr.alert td { background: #FFFAF0; }
.rv-thumb { width: 48px; height: 48px; border-radius: 8px 8px 16px 8px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; }
.rv-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rv-name { font-weight: 650; }
.rv-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-price small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.delta { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.delta.down { color: var(--green); }
.delta.up { color: var(--danger); }
.delta.flat { color: var(--ink-3); }
.chan { display: inline-flex; gap: 4px; }
.chan span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px 6px 10px 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-3); }
.chan span.on { background: var(--ink); color: #fff; }
.chan span.clube.on { background: var(--yellow); color: var(--ink); }
.checklist { display: flex; flex-direction: column; }
.check-item { display: flex; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: flex-start; }
.check-item:first-child { border-top: 0; }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ck.ok { background: var(--green-soft); color: var(--green); }
.ck.bad { background: var(--danger-soft); color: var(--danger); }
.ck.warn { background: var(--amber-soft); color: var(--amber); }
.vt-list { display: flex; flex-direction: column; }
.vt-item { display: grid; grid-template-columns: 28px 36px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.vt-item img { width: 36px; height: 36px; object-fit: contain; }
.approve-box { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ajustes-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.ajustes-banner p { margin: 0; }
.approval-queue { border: 2px solid var(--yellow); }

/* ------------------------------------------------------------------ gerar */
.gen-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; }
.gen-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 16px; }
.gen-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px 10px 18px 10px; cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--ink-2);
}
.gen-tab .badge { height: 20px; }
.gen-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.gen-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gen-tab[aria-selected="true"] .badge { background: rgba(255,255,255,.18); color: #fff; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery.tv { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.piece { display: flex; flex-direction: column; gap: 8px; }
.piece-frame {
  border: 0; padding: 0; background: var(--surface-3); border-radius: 10px 10px 20px 10px; overflow: hidden; cursor: zoom-in;
  display: flex; justify-content: center; align-items: center; position: relative;
}
.piece-frame.white { background: #fff; border: 1px solid var(--line); padding: 12px; }
.piece-frame:hover { box-shadow: 0 0 0 2px var(--ink); }
.piece-frame.excluded { opacity: .35; }
.piece-meta { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.piece-meta strong { font-size: 13px; font-weight: 650; line-height: 1.25; word-break: break-word; }
.piece-meta small { color: var(--ink-3); font-size: 12px; display: block; }
.piece-file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.vt-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.locucao-box { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.dur { display: flex; flex-direction: column; gap: 8px; }
.dur-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.dur-bar span { display: block; height: 100%; background: var(--green); }
.dur-bar span.over { background: var(--danger); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,18,16,.86); display: flex; flex-direction: column; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #fff; }
.lightbox-bar .icon-btn { color: #fff; }
.lightbox-bar .icon-btn:hover { background: rgba(255,255,255,.14); }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 24px 24px; min-height: 0; }

.progress-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(245,242,237,.86); backdrop-filter: blur(3px); display: grid; place-items: center; }
.progress-card { width: min(440px, calc(100vw - 32px)); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.big-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.big-bar span { display: block; height: 100%; background: var(--red); transition: width .2s; }

/* ------------------------------------------------------------------ admin, histórico */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px 12px; text-decoration: none; font-weight: 650; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.admin-camp { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.camp-pick { display: flex; flex-direction: column; }
.camp-pick button { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.camp-pick button:first-child { border-top: 0; }
.camp-pick button:hover { background: var(--surface-2); }
.camp-pick button[aria-current="true"] { background: var(--surface-3); }
.camp-pick .mini-seal { width: 44px; height: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: 1.2fr 1.2fr 1fr; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day-toggle { width: 46px; height: 36px; border-radius: 8px 8px 14px 8px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.day-toggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pend { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pend li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pend li .ic { color: var(--ink-3); margin-top: 2px; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bank-item { background: #fff; border: 1px solid var(--line); border-radius: var(--leaf); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bank-item .img { aspect-ratio: 1; background: var(--surface-2); border-radius: 8px 8px 16px 8px; display: grid; place-items: center; overflow: hidden; }
.bank-item img { width: 88%; height: 88%; object-fit: contain; }
.bank-item strong { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.hist-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; padding: 4px 20px 16px 88px; font-size: 13px; }
.hist-items div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }

/* ------------------------------------------------------------------ menus, modais, toasts */
.popover { position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 220px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; }
.popover-right { right: 0; }
.popover-left { left: 0; }
.menu-label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 550; }
.menu-item:hover:not(:disabled) { background: var(--surface-3); }
.menu-item.danger { color: var(--danger); }
.menu-item:disabled { opacity: .4; cursor: not-allowed; }
.menu-item .ic-pad { width: 16px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* menu de escolha (componente Select): mesma família visual dos campos e dos menus */
.select-wrap { display: block; width: 100%; }
.select-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); background: #fff; border-radius: 9px; font-size: 14px; font-weight: 550; color: var(--ink); cursor: pointer; text-align: left; }
.select-btn:hover:not(:disabled) { border-color: var(--ink-3); }
.select-btn:focus-visible, .select-btn.open { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.select-btn:disabled { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
.select-btn svg { flex: none; color: var(--ink-2); transition: transform .15s ease; }
.select-btn.open svg { transform: rotate(180deg); }
.select-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-pop { left: 0; right: 0; min-width: 100%; margin: 0; list-style: none; max-height: 300px; overflow: auto; }
.select-pop-wide { min-width: 270px; }
.select-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.select-opt.hi { background: var(--surface-3); }
.select-opt .ic-pad { width: 16px; flex: none; padding-top: 1px; }
.select-opt-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.select-opt-t strong { font-weight: 600; }
.select-opt.sel .select-opt-t strong { font-weight: 700; }
.select-opt-t small { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.modal-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28,24,21,.5); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--leaf-lg); box-shadow: var(--shadow-2); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-body { padding: 4px 22px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.paste-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; min-height: 220px; white-space: pre; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-opt { border: 1.5px solid var(--line); background: #fff; border-radius: var(--leaf); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.photo-opt:hover { border-color: var(--ink); }
.photo-opt .img { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px 8px 14px 8px; }
.photo-opt img { width: 86%; height: 86%; object-fit: contain; }
.photo-opt span { font-size: 12px; font-weight: 600; line-height: 1.25; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--leaf); padding: 18px; display: flex; align-items: center; gap: 14px; background: var(--surface-2); }

.toasts { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px 12px 22px 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-2); }
.toast-green .ic { color: #7EE29A; }
.toast-red .ic { color: #FF9C94; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; color: var(--ink-2); }
.empty-ic { width: 46px; height: 46px; border-radius: 12px 12px 22px 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-3); }
.empty p { max-width: 46ch; font-size: 13.5px; }

.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: #fff; }

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 1180px) {
  .ofertas-layout, .review-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .admin-camp { grid-template-columns: 1fr; }
  .vt-columns, .locucao-box { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .page { padding: 20px 16px 120px; }
  .wiz-head-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .brand-name, .user-meta { display: none; }
  .nav a span { display: none; }
  .week { grid-template-columns: repeat(7, minmax(92px, 1fr)); overflow-x: auto; }
  .hero { grid-template-columns: 1fr; }
  .sheet-cols { display: none; }
  .hint-enter { display: none; }
  .sheet-row {
    grid-template-columns: 16px 48px repeat(3, minmax(0, 1fr)) 32px;
    grid-template-areas: "grip thumb name name name menu" "grip thumb price price unit unit" "grip thumb clube redes tv tv" ". . note note note note";
    row-gap: 8px; padding: 12px 10px; border-top: 1px solid var(--line);
  }
  .sheet-row > .grip { grid-area: grip; align-self: start; }
  .sheet-row > .row-n { display: none; }
  .sheet-row > .thumb { grid-area: thumb; align-self: start; }
  .sheet-row > .cell-name { grid-area: name; }
  .sheet-row > .cell-menu { grid-area: menu; }
  .sheet-row > .cell-price { grid-area: price; }
  .sheet-row > .cell-unit { grid-area: unit; }
  .sheet-row > .cell-clube { grid-area: clube; }
  .sheet-row > .cell-redes { grid-area: redes; }
  .sheet-row > .cell-tv { grid-area: tv; }
  .sheet-row > .row-note { grid-area: note; margin-top: 0; }
  .cell-flag { justify-content: flex-start; gap: 8px; }
  .footer-status > span:not(.badge) { display: none; }
  .cell-flag::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .draft-row { grid-template-columns: 52px 1fr; }
  .gen-head { grid-template-columns: 1fr; }
}
.wf-pages { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 10.5px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 7px; }
.product-drop { display: flex; gap: 18px; align-items: flex-start; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--leaf); background: var(--surface-2); }
.product-preview, .checker { background-color: #fff; background-image: linear-gradient(45deg, #EEE9E2 25%, transparent 25%), linear-gradient(-45deg, #EEE9E2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #EEE9E2 75%), linear-gradient(-45deg, transparent 75%, #EEE9E2 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.product-preview { width: 150px; height: 150px; flex: none; border-radius: 10px 10px 22px 10px; display: grid; place-items: center; overflow: hidden; color: var(--ink-3); }
.product-preview img { max-width: 92%; max-height: 92%; object-fit: contain; }
.product-preview.empty { background: var(--surface-3); }
.wf-row.bandfeature { background: var(--band); box-shadow: 3px -3px 0 var(--band-shadow); border-radius: 6px; padding: 4px; margin: 0 -4px; }
.wf-row.bandfeature .wf-cell { height: 22px; background: var(--tile-band); }
.wf-row.bandfeature .wf-cell::after { content: ''; display: block; width: 46%; height: 100%; margin-left: 54%; background: var(--name-pill); border-radius: 3px 3px 7px 3px; }
/* Board: alinha as etiquetas quando algum nome da linha tem 3 linhas (ver nameLines em pieces/board.js) */
.sp-row-align[style*="--sp-name-min"] .sp-card-grid .sp-name { min-height: var(--sp-name-min) !important; }
.ofertas-layout .ajustes-banner { margin-bottom: 16px; }

/* Vídeos (motion) */
.motion-player { display: flex; flex-direction: column; background: #111; }
.motion-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.55); font-weight: 600; }
.motion-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #1b1b1b; color: #fff; }
.motion-bar input[type=range] { flex: 1; accent-color: var(--yellow); }
.video-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }

/* Economia: o rodapé da peça é vinho; a linha legal sobre o fundo precisa ser branca */
.sp-piece[data-theme="economia"], .sp-board[data-theme="economia"] { --on-stage: #FFFFFF; }

/* Log de fases e retirada da aprovação */
.retract-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.retract-box p { margin: 0; }
.log-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.log-head .muted { margin-left: auto; }
.log-box.flat { border-top: 1px solid var(--line); padding-top: 14px !important; }
.log-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.log-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.log-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); margin-top: 5px; position: relative; z-index: 1; }
.log-item:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.log-item.green i { background: var(--green); }
.log-item.amber i { background: var(--amber); }
.log-item.red i { background: var(--danger); }
.ajustes-banner.agencia { background: var(--danger-soft); }

/* Correções pedidas (Home) */
.corrections { margin: 24px 0 8px; border: 2px solid var(--danger); background: var(--danger-soft); border-radius: var(--leaf); padding: 16px 20px 6px; }
.corrections-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.corrections-head .h2 { margin: 0; }
.correction { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); }
.correction-note { margin: 2px 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; }

/* ------------------------------------------------------------------ VT Studio (v2: mesma linguagem do resto do portal) */
.vt2 { display: flex; flex-direction: column; gap: 16px; }
.vt2-head { background: var(--surface); }
.vt2-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.vt2-stage .card-head { padding: 14px 18px; }
.vt2-screen-wrap { display: grid; place-items: center; padding: 20px; background: var(--surface-3); border-bottom: 1px solid var(--line); }
.vt-screen { position: relative; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); }
.vt2-controls { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.vt2-scrub, .vt2-sliders input[type=range], .vt2-zoom input { accent-color: var(--red); }
.vt2-scrub { flex: 1; }
.vt2-step { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.vt2-step-head { display: flex; align-items: flex-start; gap: 12px; }
.vt2-step-head .sec-num { background: var(--ink); flex: none; }
.vt2-tracks { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.vt2-tracks .opt { padding: 10px 12px; gap: 2px; }
.vt2-sliders { display: flex; flex-direction: column; gap: 10px; }
.vt2-sliders label { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.vt2-sliders input[type=range] { grid-column: 1 / -1; width: 100%; }
.vt2-sliders strong { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 650; cursor: pointer; text-decoration: underline; font-size: inherit; }
.vt2-zoom { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vt2-timeline { overflow: hidden; }
.vt2-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.vt2-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.vt2-file-ic { width: 38px; height: 38px; border-radius: 10px 10px 16px 10px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }

/* linha do tempo */
.vt-tl-wrap { display: flex; padding: 6px 18px 16px 12px; }
.vt-tl-labels { flex: none; width: 74px; display: flex; flex-direction: column; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.vt-tl-labels span { display: flex; align-items: center; }
.vt-tl-labels .r0 { height: 26px; margin-bottom: 8px; } .vt-tl-labels .r1 { height: 54px; margin-bottom: 8px; } .vt-tl-labels .r2, .vt-tl-labels .r3 { height: 58px; margin-bottom: 8px; }
.vt-tl-scroll { flex: 1; min-width: 0; overflow-x: auto; padding-bottom: 6px; }
.vt-tl { position: relative; user-select: none; }
.vt-ruler { position: relative; height: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); cursor: pointer; }
.vt-tick { position: absolute; top: 14px; width: 1px; height: 10px; background: var(--line-strong); font-size: 10.5px; color: var(--ink-3); }
.vt-tick.big { top: 8px; height: 16px; background: var(--ink-3); padding-left: 4px; line-height: 12px; }
.vt-limit { position: absolute; top: 0; height: 26px; border-left: 2px solid var(--danger); color: var(--danger); font-size: 10.5px; font-weight: 800; padding-left: 4px; }
.vt-track { position: relative; margin-bottom: 8px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.vt-track.scenes { height: 54px; } .vt-track.audio { height: 58px; }
.vt-scene { position: absolute; top: 4px; bottom: 4px; border-radius: 8px 8px 14px 8px; padding: 5px 9px; font-size: 12px; line-height: 1.25; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: pointer; color: #fff; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.vt-scene.alt { filter: brightness(.86); }
.vt-scene.abertura, .vt-scene.encerramento { background: var(--ink-2); }
.vt-scene.frase { background: var(--yellow); color: var(--ink); }
.vt-scene.transicao { background: var(--ink); }
.vt-scene b { font-weight: 800; opacity: .8; margin-right: 2px; }
.vt-scene span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.vt-scene small { opacity: .75; font-size: 10.5px; }
.vt-handle { position: absolute; top: 0; bottom: 0; width: 16px; z-index: 8; cursor: ew-resize; display: grid; place-items: center; touch-action: none; }
.vt-handle i { width: 6px; height: 36px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--ink), 0 2px 6px rgba(0,0,0,.3); }
.vt-handle:hover i { background: var(--yellow); }
.vt-clip { position: absolute; top: 4px; bottom: 4px; background: var(--surface-3); border-radius: 8px; overflow: hidden; cursor: grab; box-shadow: inset 0 0 0 1px var(--line-strong); }
.vt-clip.music { background: #E8F0FA; cursor: default; box-shadow: inset 0 0 0 1px #C3D6EE; }
.vt-clip:active { cursor: grabbing; } .vt-clip.music:active { cursor: default; }
.vt-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--red); pointer-events: none; }
.vt-line b { position: absolute; top: 0; left: 2px; background: var(--red); color: #fff; font-size: 10px; border-radius: 4px; padding: 0 4px; }
.vt-empty { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.vt-playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--red); z-index: 9; pointer-events: none; }
.vt-playhead i { position: absolute; top: -1px; left: -7px; width: 12px; height: 12px; background: var(--red); border-radius: 3px 3px 7px 3px; }
@media (max-width: 1100px) { .vt2-grid, .vt2-bottom { grid-template-columns: 1fr; } }

/* VT Studio · fillers */
.vt-scene.filler { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 -3px 0 var(--yellow); }
.vt-scene.transicao.fim { background: var(--ink); }
.vt2-fillat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.vt2-fillat select { flex: 1; }
.vt2-fillers { display: flex; flex-wrap: wrap; gap: 6px; }
.vt2-filler { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line, #E2DDD6); background: #fff; font: 600 13px/1.2 var(--font-inter, Inter, sans-serif); cursor: pointer; color: var(--ink); }
.vt2-filler:hover { border-color: var(--ink); }
.vt2-ins { display: flex; align-items: center; gap: 8px; }
.vt2-ins select { width: 190px; flex: none; }

/* ------------------------------------------------------------------ guia do usuário (#/ajuda) */
.aj-corpo.com-shot.wide { grid-template-columns: 1fr; }
.aj-corpo.wide .aj-shot { order: -1; }
.aj-corpo.wide .aj-marcas { grid-template-columns: 1fr 1fr; }
.aj-shot-load { padding: 40px; text-align: center; color: var(--ink-3); background: var(--surface-3); border-radius: 12px; }
.aj-tools { align-items: center; }
.aj-busca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-width: 300px; color: var(--ink-3); }
.aj-busca input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.aj-busca:focus-within { box-shadow: var(--focus); }
.aj-quem { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.aj-quem-l { font-weight: 700; margin-right: 4px; }
.aj-quem-r { flex-basis: 100%; font-size: 13px; }
.aj-chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: 600 13.5px/1 var(--font-inter); cursor: pointer; color: var(--ink); }
.aj-chip:hover { border-color: var(--ink); }
.aj-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.aj-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.aj-nav { position: sticky; top: calc(var(--topbar) + 16px); display: flex; flex-direction: column; gap: 4px; }
.aj-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; line-height: 1.2; }
.aj-nav a small { display: block; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }
.aj-nav a:hover { background: var(--surface-3); }
.aj-nav a.on { background: var(--ink); color: #fff; }
.aj-nav a.on small { color: var(--yellow); }
.aj-nav a.outro { opacity: .72; }
.aj-nav hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 8px 0; }
.aj-ring { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 2px 7px; }
.aj-nav a.on .aj-ring { background: rgba(255,255,255,.2); color: #fff; }
.aj-guia-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.aj-guia-head .muted { max-width: 620px; margin: 6px 0 0; }
.aj-prog { display: grid; gap: 4px; min-width: 190px; font-size: 13px; color: var(--ink-2); justify-items: start; }
.aj-prog > span { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.aj-bar { width: 100%; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.aj-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
.aj-antes { padding: 16px 20px; margin-bottom: 18px; }
.aj-antes h3 { margin: 0 0 8px; font-size: 15px; }
.aj-antes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aj-antes label, .aj-feito { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.aj-passos { display: grid; gap: 18px; }
.aj-passo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); box-shadow: var(--shadow-1); padding: 20px 22px 18px; scroll-margin-top: 90px; }
.aj-passo.done { border-color: #B9DEC2; background: #FCFEFC; }
.aj-passo header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aj-passo h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.aj-n { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.aj-passo.done .aj-n { background: var(--green); }
.aj-corpo { display: grid; gap: 22px; }
.aj-corpo.com-shot { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr); align-items: start; }
.aj-texto > p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.aj-btn { display: inline-block; font: 700 13px/1 var(--font-inter); background: var(--red); color: #fff; padding: 5px 10px; border-radius: 7px 7px 12px 7px; white-space: nowrap; margin: 0 1px; }
.aj-marcas { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.aj-marcas li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; font-size: 14px; line-height: 1.4; }
.aj-marcas li.on { background: var(--yellow-soft); border-color: var(--yellow); }
.aj-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font: 800 13px/24px var(--font-inter); text-align: center; box-shadow: 0 0 0 2px #fff; }
.aj-call { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; margin: 0 0 10px; }
.aj-call svg { flex: none; margin-top: 1px; }
.aj-call.ve { background: var(--green-soft); color: #14502A; }
.aj-call.dica { background: var(--yellow-soft); color: #5B4300; }
.aj-call.atencao { background: var(--danger-soft); color: #7A1414; }
.aj-nota { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 14px; margin: 12px 0 0; }
.aj-falha button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.aj-falha button:hover { color: var(--ink); }
.aj-falha p { margin: 4px 0 10px; padding: 10px 12px; background: var(--surface-3); border-radius: 10px; font-size: 14px; }
.aj-feito { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.aj-feito input, .aj-antes input { width: 18px; height: 18px; accent-color: var(--green); }
.aj-shot { margin: 0; position: relative; }
.aj-frame { position: relative; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-3); box-shadow: var(--shadow-1); }
.aj-frame img { position: absolute; max-width: none; user-select: none; }
.aj-mark { position: absolute; border: 3px solid var(--red); border-radius: 10px; background: rgba(226, 30, 38, .07); padding: 0; cursor: help; transition: background .15s, box-shadow .15s; }
.aj-mark .aj-num { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; font-size: 14px; line-height: 26px; }
.aj-mark.on { background: rgba(255, 178, 0, .28); border-color: #E59A00; box-shadow: 0 0 0 4px rgba(255, 178, 0, .45); }
.aj-mark:focus-visible { outline: 3px solid var(--yellow); }
.aj-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; border: 0; background: rgba(38, 34, 31, .86); color: #fff; padding: 6px 10px; border-radius: 8px; font: 600 12.5px/1 var(--font-inter); cursor: pointer; }
.aj-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 15, .78); display: grid; place-items: center; padding: 24px; overflow: auto; }
.aj-lb-body { width: min(1500px, 100%); display: grid; gap: 12px; justify-items: end; }
.aj-lb-body .aj-frame { width: 100%; }
.aj-fluxo { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.aj-fluxo li { display: grid; grid-template-columns: 190px 90px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 14px; }
.aj-fluxo li strong { color: var(--ink-2); }
.aj-leg-botoes { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 4px; align-items: flex-start; }
.aj-leg-item { display: grid; gap: 6px; max-width: 250px; }
.aj-leg-txt { margin: 0; font-size: 13.5px; background: var(--yellow-soft); padding: 8px 10px; border-radius: 8px; }
.aj-h4 { margin: 16px 0 8px; font-size: 14px; }
.aj-leg-status { display: grid; gap: 8px; }
.aj-leg-status div { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.aj-faq { overflow: hidden; }
.aj-q { border-bottom: 1px solid var(--line); }
.aj-q:last-child { border-bottom: 0; }
.aj-q button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; font-weight: 700; font-size: 15.5px; }
.aj-q button:hover { background: var(--surface-2); }
.aj-q p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.aj-gloss { display: grid; grid-template-columns: 200px 1fr; margin: 0; padding: 8px 20px; }
.aj-gloss dt { font-weight: 800; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aj-gloss dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.aj-res a { display: grid; gap: 2px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.aj-res a:hover { background: var(--surface-2); }
.aj-pager { display: flex; justify-content: space-between; margin-top: 24px; }
@media (max-width: 980px) {
  .aj-layout { grid-template-columns: 1fr; }
  .aj-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .aj-nav a { white-space: nowrap; }
  .aj-nav a small, .aj-nav hr { display: none; }
  .aj-corpo.com-shot { grid-template-columns: 1fr; }
  .aj-fluxo li { grid-template-columns: 1fr; }
  .aj-leg-status div { grid-template-columns: 1fr; }
  .aj-busca { min-width: 0; width: 100%; }
}
@media print {
  .topbar, .aj-nav, .aj-tools, .aj-quem, .aj-pager, .aj-zoom, .aj-feito, .aj-falha button { display: none !important; }
  .aj-layout { display: block; }
  .aj-passo { break-inside: avoid; box-shadow: none; }
  .aj-corpo.com-shot { grid-template-columns: 1fr 1.4fr; }
  body { background: #fff; }
}

/* ------------------------------------------------------------------ entrada (modo nuvem) */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--app-bg); }
.login-card { width: min(440px, 100%); padding: 32px 30px 24px; display: grid; gap: 14px; }
.login-logo { height: 46px; justify-self: start; }
.login-h { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.login-senha { display: flex; gap: 10px; align-items: center; }
.login-senha .input { flex: 1; }
.login-troca { justify-self: start; }
.login-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.login-msg.erro { background: var(--danger-soft); color: #7A1414; }
.login-msg.ok { background: var(--green-soft); color: #14502A; }
.login-rodape { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.sync-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); max-width: 340px; }
.sync-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sync-badge.salvando .dot { background: var(--yellow); animation: sync-pulse 1s infinite; }
.sync-badge.offline { color: #7A1414; }
.sync-badge.offline .dot { background: var(--danger); }
@keyframes sync-pulse { 50% { opacity: .35; } }
@media (max-width: 760px) { .sync-badge .sync-txt { display: none; } }
