@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

/* Paleta EvoFit (mesma da extensão), claro e escuro — sem sombras */
:root {
  --teal: #0A5C50;
  --teal-2: #0E7A63;
  --green: #25D366;
  --grad: linear-gradient(135deg, #0A5C50 0%, #0E8466 55%, #12A06F 100%);
  --on-accent: #ffffff;
  --accent-text: #0E7A63;
  --ink: #0B1F2A;
  --muted: #6B7C85;
  --tile: #D9F1E4;
  --mint: #E3F6EC;
  --bg-top: #D6F2E3;
  --bg-mid: #F7FAF9;
  --card: #ffffff;
  --surface: #F3F7F5;
  --border: #E1EAE6;
  --line-green: #B7E8CB;
  --danger: #C62828;
  --danger-bg: #FDECEC;
  --warn-fg: #6D5200;
  --warn-bg: #FFF8E1;
  --toast: #0A5C50;
  --toast-warn: #5B3A00;
  --overlay: rgba(11, 31, 42, .45);
  --show-light: block;
  --show-dark: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #3DDC97; --ink: #E9EDEF; --muted: #8DA0A8; --tile: #14463B; --mint: #12372E;
    --bg-top: #0F2D26; --bg-mid: #0B141A; --card: #17262D; --surface: #101B21; --border: #26373F; --line-green: #1E5A49;
    --danger: #FF8A80; --danger-bg: #3A1A1A; --warn-fg: #FFD54F; --warn-bg: #3A3000; --toast: #0E7A63; --toast-warn: #6D4A00;
    --overlay: rgba(0, 0, 0, .6); --show-light: none; --show-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-text: #3DDC97; --ink: #E9EDEF; --muted: #8DA0A8; --tile: #14463B; --mint: #12372E;
  --bg-top: #0F2D26; --bg-mid: #0B141A; --card: #17262D; --surface: #101B21; --border: #26373F; --line-green: #1E5A49;
  --danger: #FF8A80; --danger-bg: #3A1A1A; --warn-fg: #FFD54F; --warn-bg: #3A3000; --toast: #0E7A63; --toast-warn: #6D4A00;
  --overlay: rgba(0, 0, 0, .6); --show-light: none; --show-dark: block; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--bg-mid);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 380px);
  background-attachment: fixed;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
button { font: inherit; cursor: pointer; }
button:focus-visible, .input:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
code { font-family: ui-monospace, monospace; font-size: .92em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { text-wrap: balance; }

/* ---------- campos e botões ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400;
  outline: none; transition: border-color .15s, background .15s;
}
.input:focus { border-color: var(--green); background: var(--card); }
textarea.input { resize: vertical; min-height: 96px; }
select.input { cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 600; font-size: 14px; transition: filter .15s, background .15s; white-space: nowrap; }
.btn.primary { color: var(--on-accent); background: var(--grad); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { color: var(--ink); background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: var(--surface); }
.btn.soft { color: var(--accent-text); background: var(--tile); }
.btn.small { padding: 7px 12px; font-size: 12.5px; border-radius: 11px; }
.btn.danger { color: var(--danger); background: transparent; border-color: var(--border); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.danger-solid { color: var(--danger); background: var(--danger-bg); }
.error { margin: 0; padding: 10px 13px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 13px; font-weight: 500; }
.success { margin: 0; padding: 10px 13px; border-radius: 12px; background: var(--mint); color: var(--accent-text); font-size: 13px; font-weight: 500; }
.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-fg); font-size: 13px; text-align: left; }

/* ---------- autenticação ---------- */
.auth { position: fixed; inset: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr); background: var(--card); }
.auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px clamp(20px, 5vw, 64px); background: var(--card); }
.auth-card { width: 100%; max-width: 400px; background: none; border: 0; border-radius: 0; padding: 0; text-align: left; }
.auth-logo { width: 132px; height: auto; margin: 0 0 30px; display: block; }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.auth-card > p { margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.auth-side .foot { width: 100%; max-width: 400px; margin-top: 26px; }

.auth-hero { position: relative; overflow: hidden; display: flex; align-items: center; padding: 48px clamp(28px, 5vw, 72px); color: #fff; background: radial-gradient(circle at 85% 8%, rgba(37, 211, 102, .45), transparent 42%), radial-gradient(circle at 5% 95%, rgba(18, 160, 111, .55), transparent 45%), linear-gradient(145deg, #063F37 0%, #0A5C50 45%, #0E8466 100%); }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.auth-hero::before { width: 520px; height: 520px; right: -160px; top: -140px; }
.auth-hero::after { width: 360px; height: 360px; left: -120px; bottom: -120px; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 520px; }
.hero-kicker { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.auth-hero h2 { margin: 16px 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.8px; }
.auth-hero p { margin: 0 0 26px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 440px; }
.hero-mock { width: min(340px, 100%); padding: 14px; border-radius: 24px; background: rgba(255, 255, 255, .96); color: #0B1F2A; display: grid; gap: 8px; transform: rotate(-1.5deg); }
.hm-pill { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; }
.hm-logo { width: 34px; height: 34px; border-radius: 11px; background: #fff; border: 1px solid #E1EAE6; display: grid; place-items: center; }
.hm-logo img { width: 14px; height: auto; }
.hm-pill small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: #0E7A63; }
.hm-pill b { font-size: 14px; }
.hm-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #F3F7F5; position: relative; }
.hm-row b { display: block; font-size: 13px; }
.hm-row small { display: block; font-size: 10.5px; color: #6B7C85; }
.hm-tile { width: 34px; height: 34px; border-radius: 11px; background: #D9F1E4; flex-shrink: 0; position: relative; }
.hm-tile::after { content: ""; position: absolute; inset: 10px; border-radius: 4px; border: 2px solid #0E7A63; }
.hm-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #25D366; color: #fff; font: 700 11px/20px "Manrope", sans-serif; text-align: center; font-style: normal; }
.hm-actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 6px; margin-top: 2px; }
.hm-actions span { padding: 9px 4px; border-radius: 13px; background: #D9F1E4; color: #0A5C50; font-size: 11px; font-weight: 700; text-align: center; }
.hm-actions span.on { background: linear-gradient(135deg, #0A5C50, #12A06F); color: #fff; }
.hero-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.hero-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero-list i { width: 22px; height: 22px; border-radius: 50%; background: rgba(37, 211, 102, .25); flex-shrink: 0; position: relative; }
.hero-list i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #7CF5A8; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-side { min-height: 100%; }
}
.form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form .btn.primary { width: 100%; padding: 13px; margin-top: 2px; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.foot { margin-top: 18px; font-size: 12px; }

/* ---------- topo e abas ---------- */
.top { display: flex; align-items: center; gap: 16px; max-width: 1100px; margin: 0 auto; padding-block: 18px 6px; }
.top-logo { height: 34px; width: auto; }
.top-sep { width: 1px; height: 30px; background: var(--line-green); }
.top-ws { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.top-ws strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-ws small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 6px; max-width: 1100px; margin: 12px auto 0; overflow-x: auto; }
.tab { padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--tile); border-color: var(--line-green); color: var(--accent-text); font-weight: 600; }
.count { display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 4px; border-radius: 10px; background: var(--surface); font-size: 11.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.tab.active .count { background: var(--green); color: #0B1F2A; }

.content { max-width: 1100px; margin: 0 auto; padding-block: 18px 60px; }
.panel-head h2 { margin: 6px 0 2px; font-size: 22px; letter-spacing: -.3px; }
.panel-head p { margin: 0 0 16px; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.form-grid.two { grid-template-columns: 1fr auto; }
.form-grid .hint, .form-grid .error { grid-column: 1 / -1; margin: 0; }
.hint { font-size: 12px; color: var(--muted); }
.form-reply { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- listas ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.item.off { opacity: .6; }
.item .info { flex: 1; min-width: 0; }
.item .info strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .info small { display: block; color: var(--muted); font-size: 12.5px; }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent-text); background: var(--mint); border: 1px dashed var(--line-green); padding: 6px 12px; border-radius: 12px; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--tile); color: var(--accent-text); font-size: 11.5px; font-weight: 600; }
.tag.off { background: var(--surface); color: var(--muted); }
.reply-text { margin-top: 4px; color: var(--ink); opacity: .8; font-size: 13px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line-green); border-radius: 22px; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters .input { max-width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.chip.active { border-color: var(--green); background: var(--tile); color: var(--accent-text); }

/* ---------- confirmação (dentro da página) ---------- */
.confirm-bg { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: var(--overlay); }
.confirm-box { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px; }
.confirm-box p { margin: 0 0 16px; white-space: pre-line; font-size: 14.5px; }

/* ---------- carregando / aviso ---------- */
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg-mid); z-index: 50; }
.loading img { width: 54px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) { .loading img { animation: none; } }
@media (max-width: 720px) {
  .form-grid, .grid2 { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
  .item .actions { width: 100%; justify-content: flex-start; }
  .top-sep, .top-ws small { display: none; }
}

/* logo: versão com texto escuro no tema claro e texto branco no escuro */
.only-light { display: var(--show-light); }
.only-dark { display: var(--show-dark); }

/* ---------- integração ---------- */
.int-status { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; border-left: 4px solid var(--border); }
.int-status.ok { border-left-color: var(--green); }
.int-status.bad { border-left-color: var(--danger); }
.int-status .muted { font-size: 13px; }
.int-lgpd { margin: 0 0 18px; }
.sub-h { margin: 8px 0 10px; font-size: 16px; }
.item.log { padding: 10px 14px; }
.item.log strong { white-space: normal; font-weight: 500; }

.file-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--tile); color: var(--teal-2); border-radius: 14px; flex-shrink: 0; }
.file-ico svg { width: 28px; height: 28px; }
.progress { height: 6px; border-radius: 999px; background: var(--tile); overflow: hidden; margin: 4px 0 8px; }
.progress span { display: block; height: 100%; width: 0; background: var(--teal-2); transition: width .15s; }
input[type=file].input { padding: 9px 12px; }

.check-row { display: flex !important; align-items: center; gap: 8px; flex-direction: row !important; font-weight: 500; margin: 4px 0; }
.check-row input { width: auto; }

.banner { margin: 0 0 14px; padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.banner.info { background: var(--mint); color: var(--accent-text); }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner.bad { background: var(--danger-bg); color: var(--danger); }
.lic-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lic-row small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.lic-row strong { font-size: 17px; }
.st-active, .st-exempt { color: var(--accent-text); } .st-trial { color: var(--teal-2); } .st-grace { color: var(--warn-fg); } .st-expired { color: var(--danger); }
.tag.st-grace { background: var(--warn-bg); color: var(--warn-fg); } .tag.st-expired { background: var(--danger-bg); color: var(--danger); }
.tag.bad { background: var(--danger-bg); color: var(--danger); } .tag.all { background: var(--surface); color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan.current { border-color: var(--teal-2); background: var(--mint); }
.plan .price { font-size: 24px; font-weight: 800; color: var(--accent-text); }
.plan small { color: var(--muted); font-size: 12px; }
.plan-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.mini { width: 74px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: inherit; font: inherit; font-size: 13px; }
.devs { margin-top: 8px; display: grid; gap: 6px; }
.dev { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--surface); border-radius: 12px; padding: 6px 10px; }
.dev small { color: var(--muted); margin-left: auto; }
.dev .dot { width: 8px; height: 8px; border-radius: 50%; background: #B8C4BE; } .dev .dot.on { background: var(--green); }
.item.owner .actions, .item.unit .actions { align-items: center; }
.hint-card { font-size: 13.5px; line-height: 1.6; }
.hint-card code { word-break: break-all; }
@media (max-width: 640px) { .lic-row { grid-template-columns: 1fr; } }

/* ---------- Toast (aviso) com a logo ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; max-width: min(480px, calc(100vw - 32px)); padding: 10px 20px 12px 10px; border-radius: 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line-green); font-weight: 600; font-size: 13.5px; line-height: 1.4; overflow: hidden; animation: toast-in .3s cubic-bezier(.2, .9, .3, 1); }
.toast .t-logo { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--tile); object-fit: contain; flex-shrink: 0; }
.toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform-origin: left; animation: toast-bar 3.8s linear forwards; }
.toast.warn { border-color: #E9C46A; } .toast.warn .t-logo { background: var(--warn-bg); } .toast.warn::after { background: #B26A00; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.98); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Lista suspensa (dropdown) moderna ---------- */
@supports (appearance: base-select) {
  select.input { appearance: base-select; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  select.input::picker-icon { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; flex-shrink: 0; }
  select.input:open::picker-icon { transform: rotate(-135deg) translateY(-2px); }
  select.input::picker(select) { appearance: base-select; border: 1px solid var(--line-green); border-radius: 16px; background: var(--card); padding: 6px; margin-block: 6px; max-height: min(320px, 55vh); }
  select.input option, select.mini option { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
  select.input option:hover, select.input option:focus-visible, select.mini option:hover { background: var(--tile); }
  select.input option:checked, select.mini option:checked { background: var(--mint); color: var(--accent-text); font-weight: 700; }
  select.input option::checkmark, select.mini option::checkmark { order: 1; margin-left: auto; content: "✓"; color: var(--teal-2); font-weight: 800; }
  select.mini { appearance: base-select; }
  select.mini::picker(select) { appearance: base-select; border: 1px solid var(--line-green); border-radius: 16px; background: var(--card); padding: 6px; margin-block: 6px; }
}

/* ---------- códigos de acesso (cartão com destaque no atendente) ---------- */
.code-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px 16px; padding: 16px 18px; }
.cc-avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; letter-spacing: .5px; flex-shrink: 0; }
.cc-avatar.free { background: var(--tile); color: var(--accent-text); font-size: 26px; font-weight: 600; }
.cc-main { min-width: 0; }
.cc-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-avatar.free + .cc-main .cc-name { color: var(--muted); font-weight: 700; }
.cc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.cc-label { font-weight: 700; color: var(--ink); background: var(--surface); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); }
.cc-code { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 14px 6px; border-radius: 16px; background: var(--mint); border: 1.5px dashed var(--line-green); cursor: pointer; transition: background .15s, border-color .15s; }
.cc-code:hover { background: var(--tile); border-color: var(--teal-2); }
.cc-code .code { background: none; border: 0; padding: 0; font-size: 19px; }
.cc-code em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal-2); }
.code-card .actions { flex-wrap: nowrap; }
@media (max-width: 900px) {
  .code-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .code-card .cc-code { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .code-card .actions { grid-column: 1 / -1; width: 100%; }
}

/* ---------- suporte (proprietário) ---------- */
.ver { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--tile); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.small-p { margin: -4px 0 12px; font-size: 13px; }
.devs-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.dv { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.dv i { width: 7px; height: 7px; border-radius: 50%; background: #B8C4BE; } .dv.on i { background: var(--green); }
.flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 6px; border-top: 1px dashed var(--border); }
.flags > small { width: 100%; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; margin-top: 4px; }
.flag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.flag input { width: 17px; height: 17px; accent-color: var(--teal-2); }
.item.sup-unit, .item.report { align-items: flex-start; }
.rep-desc { margin: 8px 0 4px; padding: 10px 12px; background: var(--surface); border-radius: 12px; font-size: 13.5px; white-space: pre-wrap; }
.report details { margin-top: 6px; font-size: 12.5px; }
.report pre { max-height: 220px; overflow: auto; padding: 10px; background: var(--surface); border-radius: 10px; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; }
.rep-browser { display: block; margin-top: 6px; font-size: 11px !important; opacity: .7; word-break: break-all; }
.flags .flag { display: inline-flex; flex-direction: row !important; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); }
.flags .flag input { flex: none; width: 17px; padding: 0; }

/* =====================================================================
   Layout com menu lateral
   ===================================================================== */
body:has(.appshell:not([hidden])) { padding: 0; overflow: hidden; background-attachment: fixed; }
.appshell { position: fixed; inset: 0; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.side { display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 16px; background: var(--card); border-right: 1px solid var(--border); overflow-y: auto; z-index: 30; }
.side-brand { padding: 4px 8px 2px; display: flex; justify-content: center; }
.side-brand img { height: 46px; width: auto; }
.side-ws { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.ws-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; flex-shrink: 0; }
.side-ws div { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-ws strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ws small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-sec { margin: 14px 12px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.side-sec:first-child { margin-top: 2px; }
.side-nav .tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; text-align: left; transition: background .15s, color .15s; }
.side-nav .tab[hidden] { display: none; }
.side-nav .tab:hover { background: var(--surface); }
.side-nav .tab .ni { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: color .15s; }
.side-nav .tab .tl { flex: 1; }
.side-nav .tab.active { background: var(--grad); color: #fff; }
.side-nav .tab.active .ni { color: #fff; }
.side-nav .tab .count { margin: 0; background: var(--surface); color: var(--muted); }
.side-nav .tab.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
.side-nav .tab .count:empty { display: none; }
.side-lic { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 16px; background: var(--mint); border: 1px solid var(--line-green); text-align: left; color: var(--ink); }
.side-lic[hidden] { display: none; }
.sl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.sl-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sl-t b { font-size: 13px; } .sl-t small { color: var(--muted); font-size: 11.5px; }
.side-lic.st-grace { background: var(--warn-bg); border-color: #E9C46A; } .side-lic.st-grace .sl-dot { background: #E0A100; }
.side-lic.st-expired { background: var(--danger-bg); border-color: #F2B8B5; } .side-lic.st-expired .sl-dot { background: var(--danger); }
.side-lic.st-trial .sl-dot { background: #3B82E9; }
.side-out { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--muted); font-weight: 600; }
.side-out:hover { background: var(--danger-bg); color: var(--danger); }
.side-out .ni { width: 20px; height: 20px; }

.main { min-width: 0; overflow-y: auto; padding: 0 clamp(16px, 3.2vw, 44px) 60px; }
.mbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 22px 0 14px; background: linear-gradient(180deg, var(--bg-top) 70%, transparent); }
.mbar-t { flex: 1; min-width: 0; }
.mbar-t h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.mbar-t p { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 13px; background: var(--card); border: 1px solid var(--border); place-items: center; }
.menu-btn .ni { width: 22px; height: 22px; }
.lic-pill { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--tile); color: var(--accent-text); white-space: nowrap; }
.lic-pill.st-grace { background: var(--warn-bg); color: var(--warn-fg); } .lic-pill.st-expired { background: var(--danger-bg); color: var(--danger); } .lic-pill.st-trial { background: #E4EEFF; color: #2457B8; }
.main .content { max-width: 1080px; margin: 0; padding-block: 4px 20px; }
.main .panel-head h2, .main .panel-head > p { display: none; }
.side-bg { display: none; }

@media (max-width: 960px) {
  .appshell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: 292px; max-width: 86vw; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
  body.side-open .side { transform: none; }
  .side-bg { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(11, 20, 26, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.side-open .side-bg { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .mbar { padding-top: 16px; }
  .mbar-t h2 { font-size: 20px; }
  .mbar-t p { display: none; }
}

/* =====================================================================
   Página Licença
   ===================================================================== */
.lic-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; padding: 26px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(37, 211, 102, .4), transparent 45%), linear-gradient(145deg, #063F37 0%, #0A5C50 50%, #0E8466 100%); position: relative; overflow: hidden; margin-bottom: 26px; }
.lic-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -190px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); pointer-events: none; }
.lic-hero.st-grace { background: linear-gradient(145deg, #5B3A00 0%, #8A5A00 55%, #B47A0C 100%); }
.lic-hero.st-expired { background: linear-gradient(145deg, #5C1414 0%, #8E2323 55%, #B93A3A 100%); }
.lic-hero.st-trial { background: radial-gradient(circle at 92% 0%, rgba(120, 170, 255, .35), transparent 45%), linear-gradient(145deg, #0B3A5F 0%, #145A8F 55%, #2B7FC4 100%); }
.lh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 700; }
.lh-pill i { width: 8px; height: 8px; border-radius: 50%; background: #7CF5A8; }
.lh-big { margin: 16px 0 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.lh-bar { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.lh-bar span { display: block; height: 100%; border-radius: 999px; background: #fff; transition: width .5s; }
.lh-msg { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.lh-stats { display: grid; gap: 10px; align-content: center; position: relative; z-index: 1; }
.lh-stat { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 11px 14px; border-radius: 18px; background: rgba(255, 255, 255, .12); }
.lh-stat svg { grid-row: 1 / 3; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.lh-stat small { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; opacity: .75; font-weight: 700; }
.lh-stat b { font-size: 15px; }
.sub-h small { font-weight: 500; font-size: 12.5px; margin-left: 8px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 30px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--border); }
.plan.best { border-color: var(--teal-2); }
.plan.current { background: var(--mint); border-color: var(--teal-2); }
.pbadge { position: absolute; top: -11px; right: 16px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.pbadge.cur { background: var(--ink); }
.plan h4 { margin: 0; font-size: 15px; font-weight: 800; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.plan .price b { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--accent-text); }
.plan .price span { color: var(--muted); font-weight: 600; }
.plan .per { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.plan ul { list-style: none; margin: 8px 0 16px; padding: 14px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.35; }
.plan li svg { width: 17px; height: 17px; padding: 3px; border-radius: 50%; background: var(--tile); color: var(--teal-2); flex-shrink: 0; margin-top: 1px; }
.plan .btn { width: 100%; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; padding: 7px 7px 7px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stepper label { font-size: 13px; font-weight: 600; }
.stepper input { width: 74px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: inherit; font: inherit; font-weight: 700; text-align: center; }

.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ucard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.ucard.off { opacity: .6; }
.uc-top { display: flex; align-items: center; gap: 12px; }
.uc-ic { width: 46px; height: 46px; border-radius: 15px; background: var(--tile); color: var(--teal-2); display: grid; place-items: center; flex-shrink: 0; }
.uc-ic svg { width: 24px; height: 24px; }
.uc-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.uc-name strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uc-stats div { padding: 10px 8px; border-radius: 14px; background: var(--surface); text-align: center; }
.uc-stats b { display: block; font-size: 18px; font-weight: 800; }
.uc-stats small { color: var(--muted); font-size: 11px; }
.uc-empty { margin: 0; font-size: 12.5px; color: var(--muted); }
.ucard .devs { display: grid; gap: 6px; margin: 0; }
.ucard .dev { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 12.5px; }
.ucard .dev .dn { font-weight: 600; }
.ucard .dev small { color: var(--muted); margin-left: auto; }
.uc-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; margin-top: auto; }
.unit-add { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 16px 18px; border-radius: 22px; border: 2px dashed var(--line-green); background: transparent; }
.ua-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--tile); color: var(--teal-2); font-size: 26px; font-weight: 500; display: grid; place-items: center; }
.unit-add .error { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .lic-hero { grid-template-columns: 1fr; padding: 20px; }
  .unit-add { grid-template-columns: 1fr; }
  .ua-ic { display: none; }
  .unit-grid { grid-template-columns: 1fr; }
}
.side-out { border: 0; background: transparent; width: 100%; text-align: left; }

/* ---------- aceite dos termos e confirmação de e-mail ---------- */
.accept { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); line-height: 1.45; cursor: pointer; }
.accept input { width: 18px; height: 18px; margin-top: 2px; flex: none; padding: 0; accent-color: var(--teal-2); }
.accept a { color: var(--accent-text); font-weight: 700; text-decoration: underline; }
.verify-to { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.verify-to b { color: var(--ink); }
.code6 { font-size: 26px; font-weight: 800; letter-spacing: 8px; text-align: center; padding: 14px; font-variant-numeric: tabular-nums; }

/* ---------- editor das páginas legais ---------- */
.legal-ed { display: grid; gap: 14px; }
.le-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.le-body { min-height: 380px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; line-height: 1.6; }
.le-prev { min-height: 380px; max-height: 520px; overflow: auto; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.legal-ed .form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.legal-ed .le-meta { margin-right: auto; font-size: 12.5px; }
@media (max-width: 900px) { .le-cols { grid-template-columns: 1fr; } }

/* ---------- texto dos documentos ---------- */
.legal-doc h2 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -.3px; }
.legal-doc h3 { margin: 18px 0 6px; font-size: 16px; }
.legal-doc p { margin: 0 0 12px; line-height: 1.7; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
.legal-doc a { color: var(--accent-text); font-weight: 600; }
.legal-page { padding: 0 !important; background-attachment: fixed; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 24px 18px 60px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.legal-top img { height: 34px; width: auto; }
.legal-top nav { display: flex; gap: 6px; }
.legal-top nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: none; }
.legal-top nav a.on { background: var(--tile); border-color: var(--line-green); color: var(--accent-text); }
.legal-card { padding: 34px clamp(20px, 5vw, 48px); border-radius: 28px; background: var(--card); border: 1px solid var(--border); }
.legal-card h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.6px; }
.legal-meta { margin: 0 0 20px !important; color: var(--muted); font-size: 13px; }

.mail-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.mail-ok { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.mail-bad { color: var(--danger); font-weight: 600; font-size: 13px; }

/* =====================================================================
   Proprietário: subabas, contas e ficha
   ===================================================================== */
.stabs { display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto; }
.stab { padding: 9px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.stab:hover { color: var(--ink); }
.stab.active { background: var(--grad); color: #fff; }
.stab .count { margin-left: 6px; background: rgba(0,0,0,.08); color: inherit; }
.stab.active .count { background: rgba(255,255,255,.25); }
.stab .count:empty { display: none; }
.st-pane[hidden] { display: none; }

.acc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.acc-tools .field { flex: 1 1 260px; max-width: 360px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fchip b { margin-left: 4px; font-weight: 800; color: var(--ink); }
.fchip.on { background: var(--tile); border-color: var(--line-green); color: var(--accent-text); }

.acc-list { display: flex; flex-direction: column; gap: 8px; }
.arow { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.2fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); text-align: left; width: 100%; transition: border-color .15s; }
.arow:not(.head):hover { border-color: var(--teal-2); }
.arow.head { background: transparent; border: 0; padding: 0 16px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); cursor: default; }
.arow.blk { opacity: .7; }
.arow b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--tile); color: var(--accent-text); margin-left: 6px; }
.av { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.av.lg { width: 52px; height: 52px; font-size: 20px; border-radius: 16px; }
.ag { font-size: 12.5px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.tag.trial { background: #E4EEFF; color: #2457B8; } .tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
@media (max-width: 1100px) { .arow { grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr) auto; } .arow > .au { display: none; } .arow.head > :nth-child(5) { display: none; } }
@media (max-width: 760px) { .arow { grid-template-columns: 44px minmax(0, 1fr) auto; } .arow > .ap, .arow > .ad, .arow > .au, .arow > .ag, .arow.head { display: none; } .arow > .as { grid-column: 3; } }

.acc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 60; display: flex; flex-direction: column; background: var(--card); border-left: 1px solid var(--border); animation: drawer-in .25s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-bg { position: fixed; inset: 0; z-index: 55; background: rgba(11, 20, 26, .45); }
.acc-drawer[hidden], .drawer-bg[hidden] { display: none; }
.ad-load { padding: 40px; color: var(--muted); }
.ad-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 16px; border-bottom: 1px solid var(--border); }
.ad-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ad-t strong { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.ad-t small { color: var(--muted); word-break: break-all; }
.ad-x { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); font-size: 16px; color: var(--muted); }
.ad-body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.ad-body h4 { margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.ad-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-info div { padding: 11px 13px; border-radius: 14px; background: var(--surface); }
.ad-info small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.ad-info b { font-size: 13.5px; }
.ad-grant { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.ad-grant label { margin: 0; }
.ad-grant .btn { grid-column: 1 / -1; }
.ad-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pays { display: grid; gap: 8px; }
.pay { padding: 10px 13px; border-radius: 14px; background: var(--surface); }
.pay b { display: block; font-size: 13.5px; } .pay small { color: var(--muted); font-size: 12px; }

details.sup-unit { border-radius: 18px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
details.sup-unit > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
details.sup-unit > summary::-webkit-details-marker { display: none; }
details.sup-unit[open] > summary { border-bottom: 1px solid var(--border); }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { padding: 3px 11px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); }
.chip-s.warn { background: var(--warn-bg); color: var(--warn-fg); } .chip-s.bad { background: var(--danger-bg); color: var(--danger); }
.sup-body { padding: 4px 18px 16px; }
#confirm-type { margin: 6px 0 12px; }
.stab, .ad-x { border: 0; background: transparent; }
.stab.active { background: var(--grad); }
.ad-x { background: var(--surface); }

.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.banner a { color: inherit; font-weight: 700; margin-left: 4px; }
body:has(.panel[data-tab="license"]:not([hidden])) #lic-banner { display: none; }
