:root {
  --bg: #1b1c1f; --panel: #24262a; --panel-2: #2d3035; --line: #3a3d43;
  --text: #ffffff; --muted: #a6abb4; --orange: #ff6b00; --orange-2: #ff8a33;
  --ok: #2fbf71; --bad: #ff5a52; --warn: #ffc23d; --radius: 12px;
  font-family: Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
h1 { font-size: 26px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.3px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); margin: 0 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.logo { font-weight: 800; font-size: 24px; color: var(--orange); letter-spacing: 1px; }
.product { font-weight: 600; font-size: 13px; letter-spacing: 3px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 13px; margin: 0 8px; }
main { padding: 24px 16px 80px; }
.view { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 680px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card.danger { border-color: var(--bad); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, textarea, select { width: 100%; margin-top: 6px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); border-color: transparent; }
textarea { resize: vertical; }
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); padding: 10px 16px; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--orange); border-color: var(--orange); color: #111; font-weight: 700; }
button.primary:hover { background: var(--orange-2); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { color: var(--text); }
button.big { width: 100%; padding: 15px; font-size: 16px; }
button:disabled { opacity: .5; cursor: wait; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: #111; font-size: 13px; font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.choice { text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 2px; border-width: 2px; }
.choice small { color: var(--muted); }
.choice.selected { border-color: var(--orange); background: rgba(255,107,0,.08); }
.choice { position: relative; }
.choice .order { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.choice.selected .order { background: var(--orange); border-color: var(--orange); color: #111; }
#videos { display: block; }
.dest-group { margin-bottom: 20px; }
.dest-group h3 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.video.square video { aspect-ratio: 1/1; }
.video img.still { width: 100%; display: block; background: #000; object-fit: contain; }
.video img.a4x5 { aspect-ratio: 4/5; } .video img.a9x16 { aspect-ratio: 9/16; } .video img.a1x1 { aspect-ratio: 1/1; }
.choices.kind .choice b { font-size: 17px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center;
  color: var(--muted); cursor: pointer; margin: 0; }
.drop.has-file { border-color: var(--orange); color: var(--text); }
.drop input { display: none; }
.bank-box { margin: 4px 0 16px; }
.small { font-size: 13px; margin: 4px 0 10px; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.bk { background: #fff; border: 3px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer;
  text-align: left; color: #111; display: flex; flex-direction: column; gap: 4px; position: relative; }
.bk img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.bk small { font-size: 11px; line-height: 1.3; color: #333; }
.bk b { font-size: 12px; }
.bk.selected { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.bk .tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #ccc; background: #fff; }
.bk.selected .tick { background: var(--orange); border-color: var(--orange); }
.lib p { margin: 6px 0; }
.lib small { display: block; color: var(--muted); }
.item .actions { display: flex; gap: 8px; align-items: center; }
.row.small { margin-bottom: 8px; }
.row.small .muted { margin: 0; font-size: 13px; }
.drive-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.dv { display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--panel-2); cursor: pointer; text-align: left; width: 100%; }
.dv.selected { border-color: var(--orange); background: rgba(255,107,0,.08); }
.dv img, .dv .ph { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.dv .info { flex: 1; min-width: 0; }
.dv .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv .info small { color: var(--muted); display: block; }
.dv .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.dv.selected .check { background: var(--orange); border-color: var(--orange); }
#upload-box summary { cursor: pointer; color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.progress { height: 8px; background: var(--panel-2); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.progress div { height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.error { color: var(--bad); font-size: 14px; min-height: 0; margin: 4px 0 10px; }
.error:empty { display: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list { display: grid; gap: 10px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 16px; flex-wrap: wrap; }
.item b { display: block; }
.item small { color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: rgba(47,191,113,.15); color: var(--ok); }
.chip.bad { background: rgba(255,90,82,.15); color: var(--bad); }
.chip.wait { background: rgba(255,194,61,.15); color: var(--warn); }
.chip-fila { background: rgba(88,166,255,.14); color: #58a6ff; }
.chip.work { background: rgba(255,107,0,.15); color: var(--orange-2); }
.back { padding-left: 0; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 16px 0; flex-wrap: wrap; }
.stepper li { font-size: 12px; padding: 6px 10px; border-radius: 99px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.stepper li.done { color: var(--ok); border-color: rgba(47,191,113,.4); }
.stepper li.now { color: #111; background: var(--orange); border-color: var(--orange); font-weight: 700; }
.status { display: flex; align-items: center; gap: 14px; }
.status p { margin: 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange);
  animation: spin 1s linear infinite; flex: none; }
.spinner.off { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.heard { background: var(--panel-2); border-left: 3px solid var(--orange); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.heard p { margin: 0 0 6px; }
.conflict { background: rgba(255,194,61,.1); border: 1px solid var(--warn); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.conflict .choices { margin-top: 10px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.video { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video video { width: 100%; aspect-ratio: 9/16; background: #000; display: block; }
.video .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.video .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.video .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.video .actions a { text-decoration: none; }
details { font-size: 13px; color: var(--muted); }
details ul { padding-left: 18px; margin: 6px 0 0; }
.qc-ok { color: var(--ok); } .qc-bad { color: var(--bad); }
table.script { width: 100%; border-collapse: collapse; font-size: 13px; }
table.script td, table.script th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.script th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .top { padding: 12px 16px; } h1 { font-size: 22px; } }

.item[role=button] { cursor: pointer; }
.item[role=button]:focus-visible { outline: 2px solid var(--accent, #f5c400); outline-offset: 2px; }
button.icon-del { background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 16px;
  padding: 6px 9px; border-radius: 8px; line-height: 1; cursor: pointer; }
button.icon-del:hover { border-color: var(--bad); background: rgba(255,90,82,.12); }

/* roteiro do pedido */
.guide { margin: 10px 0 14px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.guide summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--orange-2); }
.guide ol { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.guide li b { display: block; font-size: 14px; color: var(--text); }
.guide li > span { display: block; color: var(--muted); font-size: 13px; }
.guide .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.guide .pills button { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); width: auto; }
.guide .pills button:hover { border-color: var(--orange-2); }
.guide .pills button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
#use-template { width: auto; }

/* escolha visual de produtos */
.choices.kind.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.picker-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.picker-top input[type=search] { flex: 1 1 220px; margin: 0; }
.pills.brands { display: flex; flex-wrap: wrap; gap: 6px; }
.pills.brands button { width: auto; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 6px 12px;
  border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.pills.brands button.on { background: var(--orange); border-color: var(--orange); color: #111; }
.pk-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pk-crumb button { width: auto; padding: 4px 8px; }
.pk-grid { display: grid; gap: 10px; }
.pk-grid.cats { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.pk-grid.products { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.pk-img { display: grid; place-items: center; background: #fff; border-radius: 8px; aspect-ratio: 1; overflow: hidden; position: relative; }
.pk-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pk-cat { display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; background: var(--panel-2); }
.pk-cat:hover { border-color: var(--orange-2); }
.pk-cat b { font-size: 13px; line-height: 1.25; }
.pk-cat small { color: var(--muted); font-size: 12px; }
.pk-prod { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; gap: 8px; }
.pk-prod.has-sel { border-color: var(--orange); }
.pk-body { display: flex; flex-direction: column; gap: 6px; }
.pk-body b { font-size: 13px; line-height: 1.25; }
.pk-frag { color: var(--orange-2); font-weight: 600; font-size: 12px; min-height: 16px; }
.pk-warn { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 600;
  background: rgba(0,0,0,.65); color: #fff; padding: 2px 6px; border-radius: 99px; }
.pk-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-dots .dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.25);
  position: relative; flex: none; }
.pk-dots .dot.cur { outline: 2px solid var(--text); outline-offset: 2px; }
.pk-dots .dot.sel::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px;
  font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.pk-body button.small { padding: 7px 10px; font-size: 13px; }
.pk-body button.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.pk-tray { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pk-tray-head { display: flex; justify-content: space-between; align-items: center; }
.pk-tray-head button { width: auto; }
.pk-tray ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pk-tray li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 8px; padding: 6px 8px; }
.pk-tray li img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.pk-tray li > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pk-tray li small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-tray-act { display: flex; gap: 2px; }
.pk-tray-act button { width: 32px; height: 32px; padding: 0; font-size: 16px; }
@media (max-width: 520px) {
  .pk-grid.cats { grid-template-columns: repeat(2, 1fr); }
  .pk-grid.products { grid-template-columns: repeat(2, 1fr); }
}

/* visual (tema) e selo: escolhas compactas */
.mini-label { margin: 14px 0 0; font-weight: 600; }
.mini-label small { color: var(--muted); font-weight: 400; }
.choices.mini { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.choices.mini .choice { padding: 9px 10px; }
.choices.mini .choice b { font-size: 14px; }
.choices.mini .choice small { font-size: 12px; }

/* tipo de preço na confirmação da oferta */
.span2 { grid-column: 1 / -1; }
.choices.three-price { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* legendas da fala */
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
