:root {
    --ground: #f6f4ef;
    --surface: #ffffff;
    --surface-sunk: #f1eee7;
    --ink: #24221f;
    --ink-soft: #6d6862;
    --ink-faint: #98928a;
    --line: #e4e0d7;
    --line-strong: #d3cec2;
    --red: #d91d2b;
    --red-deep: #a9101c;
    --red-wash: #fbeaea;
    --yellow: #f3d40b;
    --bar: #242220;
    --bar-line: #3d3934;
    --bar-ink: #efece5;
    --bar-ink-soft: #a8a29a;
    --wait: #9a6a05;
    --wait-wash: #fdf3d8;
    --block: #6b4ba8;
    --block-wash: #efe9fb;
    --work: #14618f;
    --work-wash: #e2f0f9;
    --color: #0e6f68;
    --color-wash: #ddf1ef;
    --sent: #3f56a3;
    --sent-wash: #e7eafa;
    --done: #17652c;
    --done-wash: #e0f2e4;
    --focus: #d91d2b;
    --shadow: 0 10px 34px rgba(54, 45, 30, .07);
    --shadow-soft: 0 4px 14px rgba(54, 45, 30, .05);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #161513;
      --surface: #201f1c;
      --surface-sunk: #1a1917;
      --ink: #f2efe8;
      --ink-soft: #a9a39a;
      --ink-faint: #7d776f;
      --line: #322f2a;
      --line-strong: #423e37;
      --red: #f2555f;
      --red-deep: #ff7d85;
      --red-wash: #3a1f21;
      --yellow: #f3d40b;
      --bar: #100f0e;
      --bar-line: #2b2926;
      --bar-ink: #f2efe8;
      --bar-ink-soft: #97918a;
      --wait: #e8bb4a;
      --wait-wash: #3a3016;
      --block: #bda2ef;
      --block-wash: #2b2342;
      --work: #6fbde8;
      --work-wash: #16303d;
      --color: #5cc7bd;
      --color-wash: #103330;
      --sent: #9aabf0;
      --sent-wash: #1e2447;
      --done: #74cc8a;
      --done-wash: #16301d;
      --focus: #f2555f;
      --shadow: 0 10px 34px rgba(0, 0, 0, .4);
      --shadow-soft: 0 4px 14px rgba(0, 0, 0, .3);
    }
  }
  :root[data-theme="dark"] {
    --ground: #161513;
    --surface: #201f1c;
    --surface-sunk: #1a1917;
    --ink: #f2efe8;
    --ink-soft: #a9a39a;
    --ink-faint: #7d776f;
    --line: #322f2a;
    --line-strong: #423e37;
    --red: #f2555f;
    --red-deep: #ff7d85;
    --red-wash: #3a1f21;
    --yellow: #f3d40b;
    --bar: #100f0e;
    --bar-line: #2b2926;
    --bar-ink: #f2efe8;
    --bar-ink-soft: #97918a;
    --wait: #e8bb4a;
    --wait-wash: #3a3016;
    --block: #bda2ef;
    --block-wash: #2b2342;
    --work: #6fbde8;
    --work-wash: #16303d;
    --color: #5cc7bd;
    --color-wash: #103330;
    --sent: #9aabf0;
    --sent-wash: #1e2447;
    --done: #74cc8a;
    --done-wash: #16301d;
    --focus: #f2555f;
    --shadow: 0 10px 34px rgba(0, 0, 0, .4);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, .3);
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body {
    background: var(--ground);
    color: var(--ink);
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { margin: 0; text-wrap: balance; }
  p { margin: 0; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .tnum { font-variant-numeric: tabular-nums; }

  /* ============ gate (acesso) ============ */
  .gate {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 24px;
    position: relative;
  }
  .gate-blot {
    background: var(--red);
    border-radius: 50%;
    height: 780px;
    left: -300px;
    position: absolute;
    top: -250px;
    width: 780px;
    z-index: 0;
  }
  .gate-card {
    background: #242220;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(83, 19, 28, .3);
    color: #fff;
    max-width: 452px;
    padding: 32px;
    position: relative;
    width: 100%;
    z-index: 1;
  }
  .gate-brand { align-items: center; display: flex; margin-bottom: 44px; }
  .gate-tag {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: var(--yellow);
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    padding: 5px 10px;
    text-transform: uppercase;
  }
  .gate-card h1 { font-size: 40px; letter-spacing: -.05em; line-height: 1.02; margin: 15px 0 12px; }
  .gate-card h1 em { color: var(--yellow); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; }
  .gate-card > p { color: #b9b5ad; font-size: 13.5px; line-height: 1.65; max-width: 330px; }
  .gate-form { display: grid; gap: 15px; margin-top: 28px; }
  .gate-form label > span {
    color: #8d8982;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 7px;
    text-transform: uppercase;
  }
  .gate-form input {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    height: 46px;
    padding: 0 13px;
    width: 100%;
  }
  .gate-form input::placeholder { color: #6f6a64; }
  .gate-form input:hover { border-color: rgba(255, 255, 255, .28); }
  .gate-btn {
    background: var(--red);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    height: 48px;
    margin-top: 4px;
    width: 100%;
  }
  .gate-btn:hover { background: #b31320; }
  .gate-btn:disabled { cursor: wait; opacity: .6; }
  .gate-msg { color: #ffb4b4; font-size: 12.5px; font-weight: 600; min-height: 18px; }
  .gate-note { border-top: 1px solid rgba(255, 255, 255, .1); color: #78736b; font-size: 11.5px; margin-top: 30px; padding-top: 17px; }
  .gate-note strong { color: var(--yellow); }

  /* ============ top bar ============ */
  .bar {
    background: var(--bar);
    border-bottom: 1px solid var(--bar-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px clamp(16px, 3vw, 34px);
  }
  .logo { border-radius: 7px; display: block; height: auto; }
  .logo-bar { width: 152px; }
  .logo-gate { border-radius: 11px; width: 244px; }
  @media (max-width: 560px) {
    .logo-bar { width: 124px; }
    .logo-gate { width: 200px; }
  }
  .brand { align-items: center; display: flex; gap: 13px; }
  .brand-name { border-left: 1px solid var(--bar-line); display: flex; flex-direction: column; line-height: 1.05; padding-left: 13px; }
  .brand-name span {
    color: var(--bar-ink-soft);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
  }
  .bar-right { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
  .who { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
  .who b { color: var(--bar-ink); font-size: 13px; font-weight: 600; }
  .who span { color: var(--bar-ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
  .who span.adm { color: var(--yellow); }
  .bar-btn {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    color: var(--bar-ink);
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 11px;
  }
  .bar-btn:hover { background: rgba(255, 255, 255, .17); color: var(--yellow); }
  .bar-btn.out { border-color: rgba(255, 255, 255, .3); }
  .bar-btn.out:hover { background: #9c1b26; border-color: #d66a72; color: #fff; }

  /* ============ shell ============ */
  .wrap { margin: 0 auto; max-width: 1240px; padding: 32px clamp(16px, 3vw, 30px) 72px; }
  .eyebrow { color: var(--red); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
  .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; line-height: 1; margin: 9px 0 8px; }
  .head h1 em { color: var(--red); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; }
  .head p { color: var(--ink-soft); font-size: 13.5px; }
  .datechip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 16px;
  }
  .datechip span { color: var(--ink-faint); font-size: 9.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
  .datechip strong { font-size: 14px; }

  /* ============ tiles ============ */
  .tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); margin-top: 26px; }
  .tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--stripe, var(--line-strong));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 17px;
  }
  .tile span { color: var(--ink-soft); font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .tile strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
  .tile small { color: var(--ink-faint); font-size: 11.5px; }
  .tile.wait { --stripe: var(--wait); } .tile.wait strong { color: var(--wait); }
  .tile.block { --stripe: var(--block); } .tile.block strong { color: var(--block); }
  .tile.work { --stripe: var(--work); } .tile.work strong { color: var(--work); }
  .tile.sent { --stripe: var(--sent); } .tile.sent strong { color: var(--sent); }
  .tile.done { --stripe: var(--done); } .tile.done strong { color: var(--done); }
  .tile.all { --stripe: var(--red); }

  /* ============ tabs ============ */
  .tabs { border-bottom: 1px solid var(--line); display: flex; gap: 24px; margin-top: 32px; overflow-x: auto; }
  .tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--ink-faint);
    font-size: 13px;
    font-weight: 600;
    padding: 0 2px 12px;
    white-space: nowrap;
  }
  .tabs button:hover { color: var(--ink-soft); }
  .tabs button[aria-selected="true"] { border-color: var(--red); color: var(--red); font-weight: 700; }

  /* ============ panels ============ */
  .panel { display: none; }
  .panel.on { display: block; }
  .cols { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(290px, .82fr) minmax(380px, 1.3fr); margin-top: 24px; }
  .cols.solo { grid-template-columns: 1fr; }
  @media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); padding: 20px; }
  .card-top { align-items: center; display: flex; gap: 12px; margin-bottom: 18px; }
  .card-icon {
    align-items: center;
    background: var(--red-wash);
    border-radius: 9px;
    color: var(--red);
    display: flex;
    flex: none;
    height: 38px;
    justify-content: center;
    width: 38px;
  }
  .card-top h3 { font-size: 16px; letter-spacing: -.02em; }
  .card-top p { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
  .card-top .count { color: var(--ink-faint); font-size: 11.5px; font-weight: 600; margin-left: auto; white-space: nowrap; }

  form.form { display: grid; gap: 15px; }
  .pair { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
  @media (max-width: 460px) { .pair { grid-template-columns: 1fr; } }
  label.fld { display: block; }
  label.fld > span {
    color: var(--ink-soft);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 6px;
    text-transform: uppercase;
  }
  label.fld > span i { color: var(--ink-faint); font-size: 9.5px; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .ctl {
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    height: 44px;
    padding: 0 12px;
    width: 100%;
  }
  textarea.ctl { height: auto; min-height: 78px; padding: 11px 12px; resize: vertical; }
  .ctl:hover { border-color: var(--line-strong); }
  select.ctl { cursor: pointer; padding-right: 8px; }
  .ctl:disabled { color: var(--ink-soft); cursor: not-allowed; opacity: 1; }
  .ctl::placeholder { color: var(--ink-faint); }
  .locked { color: var(--ink-faint); display: block; font-size: 10.5px; margin-top: 5px; }
  .go {
    background: var(--red);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    height: 46px;
    width: 100%;
  }
  .go:hover { background: var(--red-deep); }
  .go:disabled { cursor: not-allowed; opacity: .55; }
  .form-note { color: var(--ink-faint); font-size: 11px; }

  /* ============ rows ============ */
  .rows { display: flex; flex-direction: column; gap: 9px; }
  .row {
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    border-left: 3px solid var(--stripe, var(--line-strong));
    border-radius: 9px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
  }
  .row.wait { --stripe: var(--wait); }
  .row.block { --stripe: var(--block); }
  .row.work { --stripe: var(--work); }
  .row.color { --stripe: var(--color); }
  .row.sent { --stripe: var(--sent); }
  .row.done { --stripe: var(--done); }
  .row-os { display: flex; flex-direction: column; gap: 2px; min-width: 132px; }
  .row-os b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  .row-os span { color: var(--ink-soft); font-size: 11.5px; }
  .row-meta { display: flex; flex-direction: column; gap: 2px; min-width: 118px; }
  .row-meta b { font-size: 12.5px; font-weight: 600; }
  .row-meta span { color: var(--ink-faint); font-size: 11px; }
  .row-obs { color: var(--ink-soft); flex: 1 1 170px; font-size: 12px; min-width: 0; }
  .row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-left: auto; }

  .chip {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 4px 9px;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .chip.wait { background: var(--wait-wash); color: var(--wait); }
  .chip.block { background: var(--block-wash); color: var(--block); }
  .chip.work { background: var(--work-wash); color: var(--work); }
  .chip.color { background: var(--color-wash); color: var(--color); }
  .chip.sent { background: var(--sent-wash); color: var(--sent); }
  .chip.done { background: var(--done-wash); color: var(--done); }
  .chip.off { background: var(--red-wash); color: var(--red); }
  .chip.on { background: var(--done-wash); color: var(--done); }
  .stamp { color: var(--ink-faint); font-size: 10px; white-space: nowrap; }
  .histlink {
    background: none;
    border: 0;
    color: var(--ink-faint);
    font-size: 10px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .histlink:hover { color: var(--red); }
  .pick {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    height: 30px;
    max-width: 172px;
    padding: 0 6px;
  }
  .pick:hover { border-color: var(--red); }
  .trail { display: grid; gap: 9px; max-height: 300px; overflow-y: auto; }
  .trail-item { border-left: 3px solid var(--stripe, var(--line-strong)); display: grid; gap: 2px; padding-left: 11px; }
  .trail-item.wait { --stripe: var(--wait); }
  .trail-item.block { --stripe: var(--block); }
  .trail-item.work { --stripe: var(--work); }
  .trail-item.color { --stripe: var(--color); }
  .trail-item.sent { --stripe: var(--sent); }
  .trail-item.done { --stripe: var(--done); }
  .trail-item b { font-size: 12.5px; font-weight: 700; }
  .trail-item span { color: var(--ink-soft); font-size: 11.5px; }

  .act {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
    height: 30px;
    padding: 0 9px;
  }
  .act:hover { background: var(--red-wash); border-color: var(--red); color: var(--red); }
  .act.strong { background: var(--red); border-color: var(--red); color: #fff; }
  .act.strong:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
  .act:disabled { cursor: not-allowed; opacity: .5; }

  .empty {
    align-items: center;
    color: var(--ink-faint);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 40px 16px;
    text-align: center;
  }
  .empty svg { color: var(--line-strong); }
  .empty p { font-size: 13px; }

  /* ============ filters ============ */
  .filters { display: flex; flex-direction: column; gap: 12px; }
  .fline { align-items: end; display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .fline .go { height: 44px; width: auto; padding: 0 22px; }
  .fbtns { display: flex; gap: 8px; }
  .fbtns .act { height: 44px; padding: 0 16px; }
  .tools { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-top: 15px; }

  /* ============ report ============ */
  .report-head { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin: 30px 0 16px; }
  .report-head h2 { font-size: 22px; letter-spacing: -.03em; }
  .report-head p { color: var(--ink-soft); font-size: 12.5px; margin-top: 4px; }
  .grand { border-left: 3px solid var(--yellow); padding-left: 14px; text-align: right; }
  .grand span { color: var(--ink-soft); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .grand strong { color: var(--red); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
  .grand small { color: var(--ink-faint); display: block; font-size: 11.5px; }

  .totals { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin-bottom: 18px; }
  .total { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; }
  .total span { color: var(--ink-soft); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .total strong { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }

  .tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); overflow-x: auto; }
  table { border-collapse: collapse; min-width: 940px; width: 100%; }
  th {
    background: var(--surface-sunk);
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }
  td { border-bottom: 1px solid var(--line); padding: 13px 14px; vertical-align: top; }
  tbody tr:last-child td { border-bottom: 0; }
  tbody tr:hover { background: var(--surface-sunk); }
  td.stripe { border-left: 3px solid var(--stripe, transparent); }
  tr.wait td.stripe { --stripe: var(--wait); }
  tr.block td.stripe { --stripe: var(--block); }
  tr.work td.stripe { --stripe: var(--work); }
  tr.color td.stripe { --stripe: var(--color); }
  tr.sent td.stripe { --stripe: var(--sent); }
  tr.done td.stripe { --stripe: var(--done); }
  td b { font-weight: 600; }
  td .obs { color: var(--ink-soft); display: block; font-size: 12px; max-width: 260px; }
  td .acts { display: flex; flex-wrap: wrap; gap: 6px; }
  table.users { min-width: 720px; }

  /* ============ stores / chips ============ */
  .storelist { display: flex; flex-wrap: wrap; gap: 8px; }
  .store {
    align-items: center;
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    padding: 7px 8px 7px 14px;
  }
  .store button {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--ink-faint);
    display: flex;
    height: 22px;
    justify-content: center;
    padding: 0;
    width: 22px;
  }
  .store button:hover { background: var(--red-wash); color: var(--red); }

  /* ============ misc ============ */
  .banner {
    background: var(--wait-wash);
    border: 1px solid var(--wait);
    border-radius: 10px;
    color: var(--wait);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 18px;
    padding: 13px 15px;
  }
  .banner.info { background: var(--sent-wash); border-color: var(--sent); color: var(--sent); }
  .toast {
    background: var(--bar);
    border-radius: 9px;
    bottom: 22px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
    color: var(--bar-ink);
    font-size: 13px;
    font-weight: 600;
    left: 50%;
    max-width: min(430px, 90vw);
    opacity: 0;
    padding: 12px 17px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 70;
  }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }
  .toast.bad { background: var(--red-deep); color: #fff; }
  .foot { color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; margin-top: 40px; }

  .edit { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 9px; display: grid; gap: 10px; margin-top: 10px; padding: 13px; width: 100%; }
  .edit .pair { gap: 10px; }
  .edit .ctl { height: 38px; }
  .edit-row { display: flex; gap: 8px; justify-content: flex-end; }

  /* ============ modal ============ */
  .modal {
    align-items: center;
    background: rgba(22, 21, 19, .55);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 80;
  }
  .modal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    display: grid;
    gap: 13px;
    max-width: 440px;
    padding: 22px;
    width: 100%;
  }
  .modal-card h3 { font-size: 17px; letter-spacing: -.02em; }
  .modal-card p { color: var(--ink-soft); font-size: 13px; white-space: pre-line; }
  .modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
  .modal-actions .act { height: 38px; padding: 0 14px; }
  .modal-code {
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 12px;
    text-align: center;
  }

  @media print {
    .bar, .tabs, .tiles, .datechip, .filters, .tools, .foot, .toast, .modal, .gate, td:last-child, th:last-child { display: none !important; }
    body { background: #fff; }
    .wrap { max-width: none; padding: 0; }
    #panel-relatorios { display: block !important; }
    #panel-lancar, #panel-lojas, #panel-acessos { display: none !important; }
    .tablewrap { border: 0; box-shadow: none; }
    table { min-width: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
