:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #e3e7ee;
  --line-soft: #eef1f5;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5f6878;
  --wine: #861d1d;
  --wine-2: #6e1515;
  --wine-3: #a32424;
  --wine-deep: #4a0b0b;
  --green: #15803d;
  --green-bg: #effaf2;
  --green-line: #cdeed7;
  --amber: #b45309;
  --amber-bg: #fff7e8;
  --amber-line: #f6deb0;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 14px rgba(17, 24, 39, .05);
  --cols: 34px minmax(150px, 1.35fr) minmax(98px, .9fr) minmax(64px, .6fr) minmax(108px, 1fr) minmax(108px, 1fr) minmax(64px, .62fr) minmax(118px, 1.1fr) minmax(70px, .66fr) minmax(98px, .95fr) minmax(140px, 1.35fr) minmax(70px, .62fr) minmax(60px, .55fr) 40px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--wine-3); outline-offset: 2px; }

.fec {
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Indicadores ---------- */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.13fr);
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 16px;
  background: none;
  border: 0;
  text-align: left;
  min-width: 0;
}
button.stat:hover .stat-value { color: var(--wine); }
.stat-split { display: flex; align-items: stretch; }
.stat-split .stat { flex: 1; }
.stat-divider { width: 1px; background: var(--line); margin: 16px 0; }
.stat-recent { border: 1px solid var(--line); background: var(--card); }
.stat-recent.is-on, .stat.is-on { box-shadow: inset 0 0 0 2px var(--wine-3); border-radius: var(--radius); }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
}
.stat-value {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .15s;
}
.stat-sub { font-size: 12.5px; color: var(--muted); }

.stat-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 16px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(160deg, transparent 58%, rgba(255, 255, 255, .14) 58.3%, transparent 62%),
    linear-gradient(120deg, #3f0808 0%, #6c1010 45%, #a01b1b 100%);
}
.promo-count {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .28);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.promo-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.promo-text strong { font-size: 18px; font-weight: 700; line-height: 1.15; }
.promo-text span { font-size: 12.5px; color: #fbe9e9; }
.promo-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}
.promo-btn svg { width: 18px; height: 18px; color: #d11f1f; }
.promo-btn:hover { background: #fdf1f1; }
.stat-promo.is-on .promo-btn { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, .35); }

/* ---------- Aviso ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: #7c2d12;
}
.banner[hidden] { display: none; }
.banner svg { width: 20px; height: 20px; }
.banner p { margin: 0; flex: 1; }
.banner button {
  border: 1px solid currentColor;
  background: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
}

/* ---------- Barra de filtros ---------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--wine);
  color: #fff;
}
.fb-left, .fb-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fb-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.fb-title svg { width: 20px; height: 20px; }
.fb-sep { width: 1px; align-self: stretch; min-height: 40px; background: rgba(255, 255, 255, .28); }

.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 6px;
  background: #fff;
}
.seg button {
  border: 0;
  border-radius: 4px;
  background: none;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.seg button:hover { background: #f6eded; }
.seg button.is-on { background: var(--wine); color: #fff; font-weight: 600; }

.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  height: 54px;
  min-width: 188px;
  max-width: 240px;
  padding: 0 40px 0 13px;
  border: 1px solid #e05555;
  border-radius: 6px;
  background: var(--wine-3);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.select select option { color: var(--ink); background: #fff; }
.select svg { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: #f3c4c4; }

.search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: #f3c4c4; pointer-events: none; }
.search input {
  height: 44px;
  width: 196px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  background: rgba(0, 0, 0, .14);
  color: #fff;
  font-size: 13px;
}
.search input::placeholder { color: #f0caca; }
.search input:focus { outline: none; border-color: #fff; background: rgba(0, 0, 0, .22); }

.btn-export {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 14px 0 0;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.btn-export .ex-ic {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 14px;
  margin-right: 0;
  border-right: 1px solid rgba(255, 255, 255, .85);
}
.btn-export svg { width: 19px; height: 19px; }
.btn-export:hover { background: rgba(255, 255, 255, .1); }

.commission { display: flex; align-items: center; gap: 8px; }
.com-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-right: 8px; }
.com-label svg { width: 24px; height: 24px; color: #fff; }
.com-step, .com-edit {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: #b35454;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.com-step:hover, .com-edit:hover { background: #8a3434; }
.com-step:disabled { opacity: .5; cursor: default; }
.com-edit { background: #9a3d3d; }
.com-edit svg { width: 20px; height: 20px; }
.com-edit.is-on { background: #fff; color: var(--wine); }
.com-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  width: 224px;
  padding: 0 14px;
  border-radius: 6px;
  background: #9a4848;
  font-size: 13px;
}
.com-value { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.com-value.has { color: #fff; font-weight: 700; }
.com-pct { display: inline-flex; align-items: center; font-weight: 600; color: #fff; white-space: nowrap; }
.com-pct input {
  width: 1.2ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.com-pct input:not([readonly]) {
  width: 5ch !important;
  border-radius: 4px;
  background: #fff;
  color: var(--wine);
  text-align: center;
  margin: 0 2px;
}
.com-pct input:focus { outline: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.chips[hidden] { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wine);
}
.chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #f6eded;
  color: var(--wine);
  font-size: 14px;
  line-height: 1;
}

/* ---------- Seleção ---------- */
.selbar {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #1c2230;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .18);
}
.selbar[hidden] { display: none; }
.sel-items { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sel-item { display: flex; flex-direction: column; gap: 2px; }
.sel-item em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #b4bccb; }
.sel-item strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.sel-actions { display: flex; align-items: center; gap: 12px; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.btn-wa svg { width: 17px; height: 17px; }
.btn-wa:hover { background: #18914a; }
.btn-link { border: 0; background: none; color: #d6dbe4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lista ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.list-head {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 0 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.list-head > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.list-head > button:hover { color: var(--ink); }
.list-head > button[aria-sort="ascending"], .list-head > button[aria-sort="descending"] { color: var(--ink); }
.list-head .sort-ic { width: 16px; height: 16px; }
.list-head .tip-ic { width: 14px; height: 14px; color: #9aa2b1; }
.h-cb { display: grid; place-items: center; }

.list-body { display: flex; flex-direction: column; gap: 10px; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 0 10px;
  padding: 22px 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.row:hover { border-color: #cfd5df; box-shadow: var(--shadow); }
.row.is-free { background: var(--green-bg); border-color: var(--green-line); }
.row.is-res { background: #f7f8fa; }
.row.is-res .cell strong { color: var(--ink-2); }
.row.is-sel { border-color: var(--wine-3); box-shadow: inset 0 0 0 1px var(--wine-3); }

.ribbons { position: absolute; top: -9px; left: 12px; display: flex; gap: 6px; }
.ribbon {
  position: relative;
  display: inline-block;
  padding: 3px 14px 3px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
}
.ribbon.res { background: var(--amber); }
.ribbon.new { background: #1d4ed8; }
.ribbon.disc { background: var(--wine); }

.cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cell > em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.cell > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.cell .neg { color: var(--green); }
.cell .pos { color: var(--ink); }
.cell-cb { display: grid; place-items: center; }

.logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 22px;
}
.logo img { max-width: 26px; max-height: 22px; object-fit: contain; }
.logo.ini {
  width: 22px;
  border-radius: 50%;
  background: var(--av, var(--wine));
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.admin-name { overflow: hidden; text-overflow: ellipsis; }
.cat-ic { width: 20px; height: 20px; color: var(--ink); }

.bx {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #6b7280;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.bx:checked, .bx:indeterminate { background: var(--wine); border-color: var(--wine); }
.bx:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.bx:indeterminate::after { content: ""; width: 9px; height: 2px; background: #fff; }

.eye {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #d0141e;
}
.eye svg { width: 24px; height: 24px; }
.eye:hover { background: #fde8e8; }

/* skeleton */
.sk {
  height: 84px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff 0%, #f4f6f9 50%, #fff 100%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: sk 1.2s linear infinite;
}
@keyframes sk { to { background-position: -200% 0; } }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 16px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.empty[hidden] { display: none; }
.empty svg { width: 34px; height: 34px; }
.empty h3 { margin: 6px 0 0; color: var(--ink); font-size: 16px; }
.empty p { margin: 0; }
.empty button {
  margin-top: 10px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-weight: 600;
}

.list-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.counter strong { color: var(--ink); }
.foot-right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--green); }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.is-loading { color: var(--amber); }
.conn.is-offline { color: #b91c1c; }
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-2);
}
.btn-refresh svg { width: 15px; height: 15px; }
.btn-refresh.is-loading svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .28);
}
.modal::backdrop { background: rgba(17, 24, 39, .45); }
.modal-inner { padding: 22px; }
.m-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.m-head .logo, .m-head .logo img { width: 40px; height: 34px; max-width: 40px; max-height: 34px; }
.m-head .logo.ini { width: 36px; height: 36px; font-size: 13px; }
.m-title { flex: 1; min-width: 0; }
.m-title h2 { margin: 0; font-size: 18px; }
.m-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.m-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  font-size: 20px;
}
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.ok { background: var(--green-bg); color: var(--green); }
.tag.res { background: var(--amber-bg); color: var(--amber); }
.tag.free { background: var(--green); color: #fff; }
.m-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.m-grid div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: #fff; }
.m-grid em { font-style: normal; font-size: 12px; color: var(--muted); }
.m-grid strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.m-actions { display: flex; gap: 10px; margin-top: 18px; }
.m-actions a, .m-actions span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.m-actions svg { width: 18px; height: 18px; }
.m-neg { background: var(--wa); color: #fff; }
.m-neg:hover { background: #18914a; }
.m-res { background: var(--wine); color: #fff; }
.m-res:hover { background: var(--wine-2); }
.m-done { background: #f1f3f6; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 10px;
  background: #1c2230;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1400px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-promo { grid-column: 1 / -1; }
}

@media (max-width: 1220px) {
  .list-head { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .list-head > span:last-child { display: none; }
  .list-head .h-cb { margin-right: 4px; }
  .row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 24px 56px 18px 48px;
  }
  .cell-cb { position: absolute; left: 16px; top: 26px; }
  .row .eye { position: absolute; right: 8px; top: 16px; }
}

@media (max-width: 760px) {
  .fec { padding: 12px; gap: 12px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat-split { flex-direction: column; }
  .stat-split .stat { padding: 16px 14px; }
  .stat-divider { width: auto; height: 1px; margin: 0 14px; }
  .stat { padding: 16px 14px; }
  .list-head { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .list-head::-webkit-scrollbar { display: none; }
  .list-head > button { flex-shrink: 0; }
  .stat-promo { flex-wrap: wrap; padding: 18px 14px; }
  .promo-btn { width: 100%; justify-content: center; }
  .filterbar { padding: 14px; }
  .fb-left, .fb-right { width: 100%; }
  .fb-title { width: 100%; }
  .fb-sep { display: none; }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1; padding: 10px 6px; }
  .select, .select select, .search, .search input { width: 100%; max-width: none; }
  .select select { height: 46px; }
  .btn-export { height: 46px; }
  .commission { flex-wrap: wrap; flex: 1 1 100%; }
  .com-label { width: 100%; }
  .com-field { flex: 1; width: auto; min-width: 0; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px 52px 16px 44px; gap: 14px 12px; }
  .cell-cb { left: 14px; }
  .modal-inner { padding: 18px; }
  .m-actions { flex-direction: column; }
}

/* ---------- Modos: público x admin ---------- */
html:not([data-mode="admin"]) .admin-only { display: none !important; }

.adminbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1c2230;
  color: #fff;
  font-size: 13px;
}
.ab-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ab-title svg { width: 18px; height: 18px; color: #86efac; }
.ab-note { flex: 1; min-width: 200px; color: #c9d0dc; }
.ab-note.is-saving { color: #fcd34d; }
.ab-note.is-saved { color: #86efac; }
.ab-note.is-error { color: #fca5a5; }
.ab-actions { display: inline-flex; align-items: center; gap: 14px; }
.ab-actions a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.ab-actions button {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 600;
}
.ab-actions button:hover { background: rgba(255, 255, 255, .1); }

/* Página pública: sem a coluna Comissão */
html:not([data-mode="admin"]) {
  --cols: 34px minmax(150px, 1.35fr) minmax(98px, .9fr) minmax(64px, .6fr) minmax(108px, 1fr) minmax(108px, 1fr) minmax(64px, .62fr) minmax(118px, 1.1fr) minmax(70px, .66fr) minmax(140px, 1.35fr) minmax(70px, .62fr) minmax(60px, .55fr) 40px;
}

/* ---------- Marca ---------- */
.brandbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-owl { width: 42px; height: 52px; display: block; }
.brand-word { width: 207px; height: 18px; display: block; }
.brand-sep { width: 1px; height: 32px; background: var(--line); }
.brand-sub {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .brandbar { padding: 12px 14px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-owl { width: 32px; height: 40px; }
  .brand-word { width: 150px; height: 13px; }
  .brand-sep, .brand-sub { display: none; }
}
