/* =========================================================
   MK Central 0.2.3 — layout
   Tipografia: Geist / Geist Mono (OFL, servidas localmente)
   ========================================================= */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #f4f4f1;
  --side: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f8f8f5;
  --hover: #f1f1ed;
  --line: #e5e4df;
  --line-2: #d7d6cf;
  --ink: #17191c;
  --ink-2: #464a52;
  --muted: #7b7f87;
  --faint: #a4a7ad;

  --accent: #0a8f6e;
  --accent-hover: #087a5e;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ec;
  --accent-text: #08765b;

  --warn: #a8690c;
  --warn-soft: #fbf0d9;
  --danger: #c0334a;
  --danger-hover: #a72a3f;
  --danger-soft: #fbe7ea;
  --info-soft: #eef1f6;

  --shadow-sm: 0 1px 2px rgb(20 22 26 / .05);
  --shadow-md: 0 1px 2px rgb(20 22 26 / .04), 0 8px 24px -8px rgb(20 22 26 / .12);
  --shadow-lg: 0 24px 64px -16px rgb(12 14 18 / .35);
  --ring: 0 0 0 3px rgb(10 143 110 / .22);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --side-w: 252px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0e10;
  --side: #101215;
  --surface: #15181b;
  --surface-2: #1a1d21;
  --hover: #1e2226;
  --line: #24282d;
  --line-2: #30353b;
  --ink: #e9ebee;
  --ink-2: #b9bec5;
  --muted: #868c95;
  --faint: #5d636b;

  --accent: #2cc79c;
  --accent-hover: #3fd6ab;
  --accent-ink: #04140f;
  --accent-soft: rgb(44 199 156 / .12);
  --accent-text: #46d8ae;

  --warn: #e5a83a;
  --warn-soft: rgb(229 168 58 / .12);
  --danger: #ef5d73;
  --danger-hover: #f47487;
  --danger-soft: rgb(239 93 115 / .12);
  --info-soft: #1a1e23;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-md: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 24px 64px -16px rgb(0 0 0 / .7);
  --ring: 0 0 0 3px rgb(44 199 156 / .28);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 15px; line-height: 1.3; }
p { margin: 0; color: var(--muted); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: -0.01em; }
.muted { color: var(--muted); font-size: 13px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo { width: 30px; height: 30px; flex: none; }
.logo .logo-bg { fill: var(--ink); }
.logo .logo-line { stroke: var(--accent); stroke-width: 1.6; fill: none; opacity: .55; }
.logo .logo-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.logo .logo-hub { fill: var(--accent); }
:root[data-theme="dark"] .logo .logo-bg { fill: #1f2428; }
:root[data-theme="dark"] .logo .logo-node { fill: #1f2428; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / .14); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-icon { width: 34px; padding: 0; }
.btn-block { width: 100%; }

/* ---------- Formulários ---------- */
label { display: block; font-size: 12.5px; font-weight: 550; color: var(--ink-2); margin-bottom: 16px; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; margin-top: 6px;
  height: 38px; padding: 0 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 14px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7f87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); border-radius: 8px; }
input.mono { font-family: var(--mono); font-size: 13.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.check.boxed { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 14px; }
.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.check b { font-weight: 600; color: var(--ink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Login ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-art {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 48px;
  background: #0d0f11; color: #e8eaed;
}
.auth-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
}
.auth-art::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: 8%;
  background: radial-gradient(circle, rgb(44 199 156 / .22), transparent 62%);
  filter: blur(10px);
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art .logo .logo-bg { fill: #1f2428; }
.auth-art .logo .logo-node { fill: #1f2428; stroke: #2cc79c; }
.auth-art .logo .logo-line { stroke: #2cc79c; }
.auth-art .logo .logo-hub { fill: #2cc79c; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.auth-quote .kicker { color: #2cc79c; margin-bottom: 18px; }
.auth-quote p { color: #f2f3f5; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 550; max-width: 17ch; text-wrap: balance; }
.auth-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .1); }
.auth-specs li { padding: 18px 16px 0 0; }
.auth-specs span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7d848c; }
.auth-specs b { display: block; margin-top: 6px; font-weight: 500; font-size: 13.5px; color: #d5d9de; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .kicker { margin-bottom: 14px; }
.auth-box h1 { font-size: 30px; margin-bottom: 10px; }
.auth-box .lead { font-size: 15px; margin-bottom: 30px; }
.auth-box .btn-primary { height: 42px; font-size: 14.5px; margin-top: 4px; }
.auth-box input { height: 42px; }
.auth-foot { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; font-family: var(--mono); }
.mobile-only { display: none; }

/* ---------- Sidebar ---------- */
aside {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--side-w);
  display: flex; flex-direction: column;
  padding: 18px 14px 14px;
  background: var(--side);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 20px; }
.side-brand b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.side-brand small { display: block; font-size: 12px; color: var(--muted); }
.ver { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: var(--surface); }
.side-label { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 0 8px; margin-bottom: 8px; }
.switcher { margin-bottom: 18px; }
.switch-box {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 10px 7px 7px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s;
}
.switch-box:hover { border-color: var(--faint); }
.switch-box:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.switch-box select {
  margin: 0; height: 30px; padding: 0 22px 0 0; border: 0; background: none; box-shadow: none !important;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-overflow: ellipsis;
}
.switch-box select:disabled { opacity: .7; cursor: wait; }
.switch-box .chev { position: absolute; right: 10px; color: var(--muted); pointer-events: none; width: 14px; height: 14px; }

.avatar {
  --h: 160;
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em;
  color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 45% 90%);
}
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 60% 72%); background: hsl(var(--h) 30% 18%); }
.avatar.lg { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.avatar.h0 { --h: 160; } .avatar.h1 { --h: 210; } .avatar.h2 { --h: 265; }
.avatar.h3 { --h: 330; } .avatar.h4 { --h: 25; }  .avatar.h5 { --h: 45; }

aside nav { display: flex; flex-direction: column; gap: 2px; }
aside nav .side-label { margin-top: 18px; }
aside nav button {
  display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-2); cursor: pointer;
  font-size: 13.5px; font-weight: 500; text-align: left;
  transition: background-color .12s, color .12s;
}
aside nav button .ic { color: var(--muted); transition: color .12s; }
aside nav button:hover { background: var(--hover); color: var(--ink); }
aside nav button.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
aside nav button.active .ic { color: var(--accent); }
.side-foot { margin-top: auto; padding-top: 18px; }
.side-status { position: relative; padding: 12px 12px 12px 30px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; font-weight: 550; background: var(--surface-2); }
.side-status small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pulse { position: absolute; left: 13px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-actions { display: flex; gap: 4px; margin-top: 8px; }
.side-actions .btn { flex: 1; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] svg.only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
.scrim { display: none; }

/* ---------- Main ---------- */
main { margin-left: var(--side-w); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--ink); font-weight: 550; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.admin { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.admin b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .03em; }

.content { max-width: none; margin: 0; padding: 32px 32px 64px; }
.page-head { margin-bottom: 28px; }
.page-head .kicker { margin-bottom: 8px; color: var(--accent-text); }
.page-head p { margin-top: 6px; font-size: 14.5px; }

/* ---------- Painéis ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > .panel-head { padding: 18px 20px 14px; margin: 0; }
.panel h2 + .muted { margin-top: 4px; }
.panel-head, .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head p, .section-head p { margin-top: 3px; font-size: 13px; }
.section-head { align-items: flex-end; margin: 4px 0 14px; }
.section-head h2 { font-size: 16px; }
.actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.two-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.two-cols > .panel { margin-bottom: 20px; }
.stack > .panel:last-child { margin-bottom: 0; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.foot-note { margin-top: 10px; font-size: 12px; font-family: var(--mono); }

.notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; padding: 12px 14px;
  background: var(--info-soft); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-2); font-size: 13px; line-height: 1.55;
}
.notice .ic { margin-top: 2px; color: var(--muted); }
.notice.compact { margin: 16px 0 0; }
.notice.good { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
#status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; margin-top: 7px; }

/* ---------- Toolbar / busca ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar label { margin: 0; }
.push { margin-left: auto; }
.search { position: relative; flex: 0 1 340px; margin: 0; }
.search.grow { flex: 1 1 auto; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { margin: 0; padding-left: 34px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.select-inline { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; color: var(--muted); }
.select-inline select { margin: 0; width: auto; min-width: 180px; height: 36px; }

/* ---------- Empresas ---------- */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.company-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.company-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0; }
.cc-title { min-width: 0; padding: 14px 18px 0; }
.cc-title h2 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-title p { font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.cc-meta div { background: var(--surface-2); padding: 10px 12px; min-width: 0; }
.cc-meta span { display: block; font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.cc-meta b { display: block; margin-top: 2px; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-foot { display: flex; align-items: center; gap: 4px; margin-top: auto; padding: 10px 10px 10px 18px; border-top: 1px solid var(--line); }
.cc-foot .open { margin-right: auto; padding: 0 12px 0 0; color: var(--accent-text); font-weight: 600; }
.cc-foot .open:hover { background: none; color: var(--accent); }
.cc-foot .open:hover .ic { transform: translateX(3px); }
.cc-foot .open .ic { transition: transform .15s; }
.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 210px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  background: none; color: var(--muted); cursor: pointer; font-weight: 550;
  transition: border-color .15s, color .15s, background-color .15s;
}
.add-card:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.add-card .ic { width: 22px; height: 22px; }
.empty-state { grid-column: 1 / -1; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 550; white-space: nowrap;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.good { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge.bad { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

/* ---------- Métricas ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.metric-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.metric-head .ic { color: var(--faint); }
.metric-value { display: block; margin: 14px 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value.small { font-size: 19px; letter-spacing: -0.02em; min-height: 33px; display: flex; align-items: flex-end; }
.metric-value.mono { font-size: 22px; letter-spacing: -0.02em; min-height: 33px; display: flex; align-items: flex-end; }
.metric small { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 4px; border-radius: 99px; background: var(--hover); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--danger); }
.chart-box { position: relative; height: 220px; }
canvas { display: block; width: 100%; height: 100%; }

.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shortcut {
  display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.shortcut:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.shortcut b { display: block; font-weight: 600; font-size: 14px; }
.shortcut small { display: block; color: var(--muted); font-size: 12.5px; }
.sc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.shortcut .go { margin-left: auto; color: var(--faint); transition: transform .15s, color .15s; }
.shortcut:hover .go { transform: translateX(3px); color: var(--ink); }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 24px; background: var(--hover); border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; border: 0; border-radius: 7px; background: none;
  color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer;
  transition: background-color .12s, color .12s;
}
.tabs button .ic { width: 15px; height: 15px; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tabs button.active .ic { color: var(--accent); }

/* ---------- Callout DNS ---------- */
.callout {
  display: flex; align-items: center; gap: 18px;
  padding: 22px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%);
}
.callout > div { flex: 1; min-width: 0; }
.callout h2 { font-size: 19px; margin: 6px 0 4px; letter-spacing: -0.025em; }
.callout p { font-size: 13.5px; max-width: 62ch; }
.callout-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.callout-icon .ic { width: 22px; height: 22px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap:empty { display: none; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th {
  position: sticky; top: 0;
  padding: 10px 14px; text-align: left;
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
td.wrap { white-space: normal; min-width: 220px; max-width: 480px; overflow-wrap: anywhere; }
tbody tr { transition: background-color .1s; }
tbody tr:hover td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
td .btn { height: 28px; font-size: 12px; padding: 0 10px; }
td.act { text-align: right; width: 1%; white-space: nowrap; }
.panel:not(.flush) > .table-wrap { margin: 0 -22px -22px; border-top: 1px solid var(--line); }
.panel:not(.flush) > .table-wrap th:first-child, .panel:not(.flush) > .table-wrap td:first-child { padding-left: 22px; }
.logs-table td:last-child { min-width: 320px; }
.empty, .table-wrap .empty { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 13.5px; }
.empty::before {
  content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 12px; border-radius: 10px;
  background: var(--hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a7ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Conexão ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form-panel { padding: 26px; }
.form-panel h2 { font-size: 18px; margin: 6px 0 4px; }
.form-panel > .muted { margin-bottom: 22px; }
.form-panel > .btn { margin-top: 6px; }
.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-text);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line); }
.steps b { display: block; font-weight: 600; font-size: 13.5px; padding-top: 3px; }
.steps p { font-size: 13px; margin-top: 2px; }
.details { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.details span { display: block; }
.details span em { font-style: normal; color: var(--muted); display: inline-block; min-width: 72px; font-family: var(--font); font-size: 12.5px; }

/* ---------- Relatório ---------- */
.report-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-header h2 { font-size: 24px; margin-top: 8px; letter-spacing: -0.03em; }
.report-header p { margin-top: 4px; }
.report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.report-stats div { background: var(--surface); padding: 16px; }
.report-stats strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.report-stats span { font-size: 12.5px; color: var(--muted); }
.report-section { margin-top: 26px; }
.report-section h3 { font-size: 14px; margin-bottom: 10px; }
.report-section .table-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.report-header + .report-stats + .foot-note { margin: 0 0 10px; }
.report-section .table-wrap:empty { display: none; }

/* ---------- Diálogos ---------- */
dialog {
  width: 540px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px);
  padding: 0; overflow: auto;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
dialog[open] { animation: pop .18s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
dialog::backdrop { background: rgb(10 12 14 / .45); backdrop-filter: blur(3px); }
dialog > p, dialog > form, dialog > #planSummary, dialog > details { margin-left: 24px; margin-right: 24px; }
dialog > p { margin-bottom: 18px; font-size: 13.5px; line-height: 1.55; }
dialog form { padding-bottom: 0; }
dialog form > .muted { margin: -4px 0 4px; font-size: 12.5px; line-height: 1.55; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px 24px; }
.dialog-head h2 { font-size: 18px; margin-top: 4px; }
.dialog-head .kicker { color: var(--accent-text); }
.dh-title { display: flex; align-items: center; gap: 12px; }
.dh-title h2 { margin: 0; }
.dh-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); }
.dh-icon.danger { background: var(--danger-soft); color: var(--danger); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 22px -24px 0; padding: 14px 24px; background: var(--surface-2); border-top: 1px solid var(--line); }
#preview .dialog-actions { margin: 20px 0 0; }
#deleteCompanyName { display: block; margin: 8px 0 2px; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 6px; padding: 6px 10px; user-select: all; }
#planSummary .notice { margin-bottom: 14px; }
#planSummary dl { display: grid; grid-template-columns: 140px 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 13px; }
#planSummary dt, #planSummary dd { padding: 9px 12px; border-bottom: 1px solid var(--line); }
#planSummary dt { color: var(--muted); background: var(--surface-2); }
#planSummary dd { margin: 0; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
#planSummary dt:nth-last-of-type(1), #planSummary dd:last-child { border-bottom: 0; }
details { margin-top: 14px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
summary:hover { color: var(--ink); }
pre { margin: 10px 0 0; padding: 14px; max-height: 260px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); font: 12px/1.55 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; line-height: 1.5; box-shadow: var(--shadow-lg);
  animation: slide .22s cubic-bezier(.2,.8,.2,1);
}
#toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-cols, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  aside { transform: translateX(-100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: none; }
  body.nav-open aside { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(10 12 14 / .4); }
  main { margin-left: 0; }
  .menu-btn { display: inline-flex; margin-left: -8px; }
  .topbar { padding: 0 20px; }
  .content { padding: 24px 20px 48px; }
  .shortcuts { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mobile-only { display: flex; margin-bottom: 36px; }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .content { padding: 20px 16px 40px; }
  .admin-label { display: none; }
  .crumbs > span:nth-child(-n+2) { display: none; }
  #refresh span { display: none; }
  #refresh { width: 32px; padding: 0; }
  .metrics { gap: 10px; }
  .metric { padding: 14px; }
  .metric-value { font-size: 24px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head .actions-row .btn { flex: 1; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar .push { margin-left: 0; }
  #newCompany { width: 100%; }
  .count { display: none; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { width: 100%; }
  .company-grid { grid-template-columns: 1fr; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .report-header { flex-direction: column; align-items: flex-start; }
  .select-inline select { min-width: 0; flex: 1; }
  .select-inline { flex: 1 1 100%; }
  #planSummary dl { grid-template-columns: 110px 1fr; }
  #toast { left: 16px; right: 16px; bottom: 16px; }
}

/* ---------- Impressão ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f6f6f4; }
  aside, .topbar, .page-head, .toolbar, #status, #toast, .tabs, .scrim { display: none !important; }
  main { margin: 0; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
  .page { display: none !important; }
  #reports { display: block !important; }
  .panel { border: 0; padding: 0; box-shadow: none; }
  table { white-space: normal; }
  td { max-width: none; }
  tr { break-inside: avoid; }
}

/* ---------- Editor de regras (0.3.0) ---------- */
table.rules td { padding-top: 9px; padding-bottom: 9px; }
.idx { color: var(--faint); font-size: 12px; }
tr.row-off td:not(.act) { opacity: .5; }
tr.row-off td:not(.act) .badge { opacity: 1; }
tr.row-locked td:not(.act) { color: var(--muted); }
.row-actions { display: inline-flex; align-items: center; gap: 2px; }
.row-actions .btn-icon { width: 30px; height: 30px; color: var(--muted); }
.row-actions .btn-icon:hover:not(:disabled) { color: var(--ink); }
.row-actions .btn-danger-ghost:hover:not(:disabled) { color: var(--danger); }
.row-actions .btn-icon:disabled { opacity: .3; cursor: default; }
.row-actions .is-off { color: var(--warn); }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); cursor: help; }
.locked .ic { width: 14px; height: 14px; }
.row-actions .locked.soft { padding: 0 4px; color: var(--warn, #b7791f); }
.tag.mini { height: 18px; font-size: 10.5px; margin-left: 6px; padding: 0 6px; font-family: var(--mono); vertical-align: 1px; }
.toggle-protected { margin: -4px 0 12px; font-size: 12.5px; color: var(--muted); }
dialog.wide { width: 720px; }
.dialog-head p.muted { margin-top: 2px; font-size: 12px; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.edit-grid .span2 { grid-column: 1 / -1; }
.edit-grid label { margin-bottom: 14px; }
.diff-wrap { border: 1px solid var(--line); border-radius: var(--r); }
table.diff td { white-space: normal; overflow-wrap: anywhere; }
table.diff td:first-child { color: var(--muted); white-space: nowrap; }
table.diff td.old { color: var(--danger); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 50%, transparent); }
table.diff td.new { color: var(--accent-text); font-weight: 550; }
#planSummary > .muted { margin-top: 12px; font-size: 12.5px; }
@media (max-width: 640px) { .edit-grid { grid-template-columns: 1fr; } }
table.rules th:last-child, table.rules td.act { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--line); }
table.rules th:last-child { background: var(--surface-2); z-index: 2; }
table.rules tbody tr:hover td.act { background: var(--surface-2); }
table.rules td.wrap { min-width: 200px; max-width: 520px; }
@media (max-width: 640px) { table.rules th:last-child, table.rules td.act { position: static; box-shadow: none; } }

/* ---------- Filtro central (0.4.0) ---------- */
.dialog-actions.inline { margin: 8px 0 0; padding: 0; background: none; border: 0; justify-content: flex-start; flex-wrap: wrap; }
.activate-form { display: flex; gap: 8px; flex: none; }
.activate-form input { margin: 0; width: 170px; }
.ph-info .notice { margin-bottom: 20px; }
.add-lists { padding: 16px 18px; }
.add-lists textarea { min-height: 60px; }
.add-lists label { margin-bottom: 10px; }
.add-row { display: flex; align-items: flex-end; gap: 10px; }
.add-row label { flex: 1; margin: 0; }
a.url { color: var(--accent-text); text-decoration: none; overflow-wrap: anywhere; }
a.url:hover { text-decoration: underline; }
.ph-details { padding: 16px 20px; }
.ph-details summary { font-weight: 600; color: var(--ink); }
.ph-details[open] summary { margin-bottom: 10px; }
.ph-details pre { margin: 10px 0; }
.ph-foot { font-size: 12.5px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; font: inherit; text-decoration: underline; }
.tag.warn-tag { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
#dns-queries .metrics { margin-top: 4px; }
@media (max-width: 640px) {
  .activate-form { width: 100%; } .activate-form input { flex: 1; width: auto; }
  .add-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Listas de IP (0.5.0) ---------- */
.ip-sources { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: var(--r); }
.ip-sources input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.ip-add { margin-bottom: 8px; }
.ip-h3 { font-size: 14px; margin: 22px 0 6px; }
.cell-error { font-family: var(--font); font-size: 11.5px; color: var(--warn); white-space: normal; margin-top: 3px; }
.ip-status .notice { margin: 14px; }
#ipConfigForm .dialog-actions.inline { align-items: center; flex-wrap: wrap; }
.panel.flush.empty { padding: 36px 20px; }
.ip-poll { margin: 10px 14px 14px; font-size: 12px; }
.ip-busy { margin: 14px 14px 0; }

/* ---------- Abas por interface (0.6.0) ---------- */
.iface-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.iface-tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 550; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.iface-tabs button:hover { border-color: var(--line-2); color: var(--ink); }
.iface-tabs button.active { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.count-pill { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--hover); color: var(--muted); }
.iface-tabs button.active .count-pill { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.tag.mini.inh { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
tr.row-inh td:not(.act) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ---- Padrão pfSense (0.7.0): formulário em seções, barra inferior, seleção, arrastar e separadores ---- */
:root { --pf-green: #3e9b47; --pf-red: #d9534f; --pf-blue: #4f8ccf; --pf-orange: #f0a030; --pf-head: #3a3e44; --pf-head-ink: #fff; }
:root[data-theme="dark"] { --pf-head: #23272c; --pf-head-ink: #e9ebee; }
dialog.pf-dialog { width: 900px; }
.pf-dialog .edit-grid { display: block; }
.pf-sec { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 16px; overflow: hidden; background: var(--surface); }
.pf-sec-head { margin: 0; padding: 9px 14px; background: var(--pf-head); color: var(--pf-head-ink); font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.pf-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: start; }
.pf-sec-head + .pf-row, .pf-adv-box > .pf-row:first-child { border-top: 0; }
.pf-label { text-align: right; font-weight: 650; font-size: 13px; color: var(--ink); padding-top: 8px; }
.pf-label .req { text-decoration: underline; text-underline-offset: 3px; }
.pf-ctrl { min-width: 0; }
.pf-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-line > select, .pf-line > input { flex: 1 1 220px; max-width: 460px; }
.pf-line > .pf-check { flex: none; }
.pf-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pf-check { margin: 0; align-items: center; padding-top: 6px; }
.pf-check input { margin: 0; }
.pf-port { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1 1 260px; max-width: 340px; }
.pf-port small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pf-port select, .pf-port input { width: 100%; }
.pf-adv { background: #5bc0de; color: #fff; border: 0; height: 30px; padding: 0 12px; font-size: 12.5px; }
.pf-adv:hover { filter: brightness(.95); }
.pf-adv-box { border-top: 1px solid var(--line); background: var(--surface-2); }
.pf-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pf-checks .pf-check { padding-top: 4px; }
.pf-colors { display: flex; gap: 8px; }
.pf-color { width: 34px; height: 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.pf-color.on { border-color: var(--ink); }
.pf-dialog .dialog-actions { justify-content: flex-start; }
@media (max-width: 700px) { .pf-row { grid-template-columns: 1fr; gap: 6px; } .pf-label { text-align: left; padding-top: 0; } }

.pf-btn { color: #fff; border: 0; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; gap: 6px; }
.pf-btn .ic { width: 15px; height: 15px; }
.pf-btn:disabled { opacity: .45; cursor: default; }
.pf-btn:not(:disabled):hover { filter: brightness(.93); }
.pf-green { background: var(--pf-green); } .pf-red { background: var(--pf-red); } .pf-blue { background: var(--pf-blue); } .pf-orange { background: var(--pf-orange); }
.pf-btn.pf-pending-save { box-shadow: 0 0 0 3px rgb(79 140 207 / .35); }
.pf-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; margin: 10px 0 18px; }
.pf-count { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.pf-pending { margin: 10px 12px; }

table.pf th.pf-sel, table.pf td.pf-sel { width: 30px; padding-right: 0; }
table.pf td.pf-sel input, table.pf th.pf-sel input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
table.pf td.pf-ic { width: 54px; white-space: nowrap; padding-right: 0; }
table.pf .grip { width: 14px; height: 14px; color: var(--faint); cursor: grab; vertical-align: middle; margin-right: 4px; }
table.pf tr[draggable="true"] { cursor: default; }
table.pf tr.dragging td { opacity: .35; }
table.pf tr.row-sel td { background: color-mix(in srgb, var(--pf-blue) 12%, var(--surface)); }
.pf-st { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; font: 700 9px var(--mono); }
.pf-st .ic { width: 14px; height: 14px; stroke-width: 3; }
.pf-st.pass { color: var(--pf-green); } .pf-st.block { color: var(--pf-red); } .pf-st.reject { color: var(--pf-orange); } .pf-st.other { color: var(--muted); }
.pf-extra { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
table.pf th.act-h { text-align: right; }
tr.pf-sep td { font-weight: 650; font-size: 13px; }
.sep-blue { --sep: #d9edf7; --sep-ink: #31708f; } .sep-green { --sep: #dff0d8; --sep-ink: #3c763d; }
.sep-red { --sep: #f2dede; --sep-ink: #a94442; } .sep-orange { --sep: #fcf8e3; --sep-ink: #8a6d3b; }
:root[data-theme="dark"] .sep-blue { --sep: rgb(79 140 207 / .18); --sep-ink: #8fbbe8; } :root[data-theme="dark"] .sep-green { --sep: rgb(62 155 71 / .18); --sep-ink: #86cf8d; }
:root[data-theme="dark"] .sep-red { --sep: rgb(217 83 79 / .18); --sep-ink: #ec8f8c; } :root[data-theme="dark"] .sep-orange { --sep: rgb(240 160 48 / .16); --sep-ink: #f0c070; }
tr.pf-sep td, tr.pf-sep td.act { background: var(--sep) !important; color: var(--sep-ink); }
.pf-color.sep-blue, .pf-color.sep-green, .pf-color.sep-red, .pf-color.sep-orange { background: var(--sep); outline: 1px solid var(--sep-ink); }
.pf-save { height: 36px; padding: 0 16px; }

/* ---- 0.8.0: dashboard no estilo pfSense ---- */
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 16px; flex-wrap: wrap; }
.warn-text { color: var(--warn); font-size: 13px; }
.dash-add-wrap { position: relative; }
.dash-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.dash-menu .btn { justify-content: flex-start; }
.dash-menu p { padding: 8px; margin: 0; font-size: 13px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-height: 80px; border-radius: var(--r); }
@media (max-width: 1280px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget.dragging { opacity: .4; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 12px; height: 38px; background: var(--pf-head); color: var(--pf-head-ink); cursor: grab; user-select: none; }
.widget-head h3 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.widget-tools { display: flex; gap: 2px; }
.wbtn { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--pf-head-ink); opacity: .75; border-radius: 50%; }
.wbtn:hover { opacity: 1; background: rgb(255 255 255 / .14); }
.wbtn .ic { width: 15px; height: 15px; }
.widget-body { padding: 0; }
.w-empty { padding: 16px; margin: 0; color: var(--muted); font-size: 13px; }
.w-note { padding: 4px 12px 10px; margin: 0; color: var(--faint); font-size: 11.5px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.wtable th, .wtable td { padding: 8px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.wtable thead th { border-top: 0; font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--surface-2); }
.wtable.kv th { width: 34%; font-weight: 650; color: var(--ink); white-space: nowrap; }
.wtable tr:first-child th, .wtable tr:first-child td { border-top: 0; }
.wtable small, .w-if small { color: var(--muted); font-size: 11.5px; }
.block { display: block; }
.wmeter { display: flex; align-items: center; gap: 10px; }
.wmeter .meter { flex: 1; margin: 0; }
.wmeter span { font-size: 12px; white-space: nowrap; }
.w-photo { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #1d2a3a; }
.w-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 180px; border: 0; background: var(--surface-2); color: var(--muted); cursor: pointer; padding: 20px; text-align: center; }
.w-photo-empty .ic { width: 32px; height: 32px; }
.w-photo-empty b { color: var(--ink); font-size: 16px; }
.w-photo-empty span { font-size: 12.5px; }
.w-if { display: flex; align-items: center; gap: 10px; }
.w-if > .ic { width: 18px; height: 18px; color: var(--pf-blue); flex: none; }
.w-if span { display: flex; flex-direction: column; }
.w-updown { width: 28px; }
.w-updown .ic { width: 18px; height: 18px; stroke-width: 2.5; }
.w-updown.up { color: var(--pf-green); } .w-updown.down { color: var(--pf-red); }
.w-rate { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.gw-st { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.gw-st.on { background: #c9f0c9; color: #1f6b23; } .gw-st.off { background: #f6cccc; color: #9b1c1c; } .gw-st.pend { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .gw-st.on { background: rgb(62 155 71 / .25); color: #8ee39a; } :root[data-theme="dark"] .gw-st.off { background: rgb(217 83 79 / .25); color: #ff9c98; }
.w-link { margin: 4px 6px 8px; font-size: 12.5px; height: 30px; }
.w-link .ic { order: 2; }
.w-traffic { padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.w-traffic:first-child { border-top: 0; }
.w-tr-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.w-tr-now { font-size: 11.5px; color: var(--muted); }
.w-tr-canvas { display: block; width: 100%; height: 120px; }
.w-tr-legend { display: flex; gap: 14px; justify-content: flex-end; font-size: 11.5px; color: var(--muted); padding: 2px 0 6px; }
.w-tr-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.lg-in::before { background: #3b8fd9; } .lg-out::before { background: #f08c1a; }
.fwlog td { font-size: 12px; white-space: nowrap; }
.fw-x { color: var(--pf-red); font-weight: 700; } .fw-ok { color: var(--pf-green); font-weight: 700; }
.widget .chart-box { padding: 10px 12px 0; }
.widget .foot-note { padding: 0 12px 10px; }
/* diálogos e páginas novas */
.pf-ro { padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.pf-secret { font-size: 16px; letter-spacing: .04em; color: var(--ink); background: var(--surface-2); padding: 8px 12px; border-radius: 6px; }
.fo-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.alias-vals { font-size: 12px; color: var(--ink-2); max-width: 640px; }
.alias-row .pf-line > input.a-val { flex: 2 1 220px; }
.alias-row .pf-line > input.a-descr { flex: 3 1 220px; }
.ovpn-srv .panel-head { margin-bottom: 0; }
#foSim .notice { margin-top: 14px; align-items: center; }
#foSim .notice .btn { margin-left: auto; }
.pf-dialog .notice.warn p { margin: 0 0 4px; }
.widget-body { overflow-x: auto; }
.fwlog th, .fwlog td { padding: 7px 8px; }

/* 0.8.2: sem textos de instrução nos cabeçalhos */
#subtitle { display: none; }
.pf-cmds { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; background: var(--surface-2); padding: 10px 12px; border-radius: 6px; margin: 0; flex: 1 1 100%; }

/* ---- 0.10.0: Ameaças ---- */
.th-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 16px; }
.th-live { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.th-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.th-dot.on { background: var(--pf-green); box-shadow: 0 0 0 0 rgb(62 155 71 / .5); animation: thpulse 1.6s infinite; }
.th-dot.idle { background: var(--pf-green); opacity: .55; }
@keyframes thpulse { 0% { box-shadow: 0 0 0 0 rgb(62 155 71 / .55); } 70% { box-shadow: 0 0 0 8px rgb(62 155 71 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 155 71 / 0); } }
@media (prefers-reduced-motion: reduce) { .th-dot.on { animation: none; } }
.th-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.th-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.th-tile span { font-size: 12.5px; color: var(--muted); }
.th-tile strong { font-size: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.th-panel { padding: 0; overflow: hidden; margin-bottom: 16px; }
.th-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px 6px; }
.th-ph h3 { margin: 0; font-size: 14px; font-weight: 650; }
.th-ph .muted { font-size: 12px; }
.th-ph.pad { padding-bottom: 10px; }
.th-timeline { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 6px 16px 14px; }
.th-col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; cursor: default; }
.th-col i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.th-col:hover i { filter: brightness(1.15); }
.th-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .th-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .th-grid3, .th-grid2 { grid-template-columns: 1fr; } .th-tiles { grid-template-columns: 1fr 1fr; } }
.th-bars { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.th-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.th-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-val { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.th-track { height: 6px; background: var(--hover); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.th-track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.th-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.th-flag { font-size: 16px; line-height: 1; margin-right: 4px; }
.th-block { width: 26px; height: 26px; color: var(--muted); }
.th-block:hover { color: var(--danger); }
.th-feedwrap { margin-top: 0; }
.th-feed td { font-size: 12.5px; white-space: nowrap; }
.th-feed tr.th-new td { animation: thnew 2.5s ease-out; }
@keyframes thnew { from { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); } to { background: transparent; } }
#thFeed { max-height: 560px; overflow: auto; }
#thFeed thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }

/* ---- 0.11.0: Central, Alertas, Geobloqueio ---- */
.th-tile.bad strong { color: var(--danger); }
.noc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1680px) { .noc-grid { grid-template-columns: 1fr; } }
table.noc tr.noc-row { cursor: pointer; }
table.noc tr.noc-row:hover td { background: var(--surface-2); }
.noc-name { display: flex; align-items: center; gap: 10px; }
.noc-name span { display: flex; flex-direction: column; }
.noc-name small { color: var(--muted); font-size: 11.5px; }
.noc-links { display: flex; flex-wrap: wrap; gap: 6px; }
.noc-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.noc-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.noc-link.on i { background: var(--pf-green); } .noc-link.off i { background: var(--pf-red); } .noc-link.off { border-color: color-mix(in srgb, var(--pf-red) 45%, var(--line)); }
.noc-link.use { font-weight: 650; color: var(--ink); }
table.noc .wmeter { min-width: 120px; }
.noc-alerts { margin: 0; }
.noc-alerts .th-ph .btn { height: 28px; }
#nocAlerts { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow: auto; }
.noc-alert { border-left: 3px solid var(--faint); padding: 4px 0 4px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.noc-alert small { color: var(--muted); font-size: 11.5px; }
.lv-critical { border-color: var(--pf-red); } .lv-warning { border-color: var(--pf-orange); } .lv-ok { border-color: var(--pf-green); } .lv-info { border-color: var(--pf-blue); }
.al-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--faint); vertical-align: 1px; }
.al-dot.lv-critical { background: var(--pf-red); } .al-dot.lv-warning { background: var(--pf-orange); } .al-dot.lv-ok { background: var(--pf-green); } .al-dot.lv-info { background: var(--pf-blue); }
.al-text { white-space: pre-line; }
.al-bar { justify-content: flex-start; margin-bottom: 26px; }
.al-events { flex-direction: column; gap: 6px; }
#alForm .pf-sec { margin-bottom: 14px; }
.btn.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; padding: 12px 16px; max-height: 340px; overflow: auto; border-top: 1px solid var(--line); }
.geo-grid .pf-check { padding: 4px 0; font-size: 13px; }
.geo-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-dialog textarea { width: 100%; max-width: 460px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font-size: 13px; }
img.th-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); vertical-align: -2px; margin-right: 6px; flex: none; }
.th-flag-txt { display: inline-block; width: 20px; text-align: center; }

/* ---- 0.12.0: Painel do filtro DNS (estilo Pi-hole) ---- */
.ph-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ph-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r); color: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.ph-tile.blue { background: #1f9ed4; } .ph-tile.red { background: #d04a3f; } .ph-tile.orange { background: #e8930f; } .ph-tile.green { background: #19985a; }
.ph-tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; }
.ph-tile-body span { font-size: 13px; font-weight: 600; opacity: .95; }
.ph-tile-body strong { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ph-tile > .ic { position: absolute; right: 14px; top: 12px; width: 62px; height: 62px; opacity: .22; stroke-width: 1.6; }
.ph-tile-foot { margin-top: auto; display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 6px 14px; min-height: 30px; background: rgb(0 0 0 / .12); border: 0; border-radius: 0; color: #fff; font: inherit; font-size: 12.5px; text-align: right; width: 100%; }
.ph-tile-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.ph-tile-foot { cursor: pointer; } button.ph-tile-foot:hover { background: rgb(0 0 0 / .22); }
.ph-tile-foot .ic { width: 14px; height: 14px; flex: none; }
.ph-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ph-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.ph-legend i.ok { background: var(--pf-blue); } .ph-legend i.bad { background: var(--pf-red); }
.ph-legend .muted { margin-left: 10px; }
.ph-stack { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: color-mix(in srgb, var(--pf-blue) 75%, var(--surface)); border-radius: 3px 3px 0 0; overflow: hidden; }
.ph-stack i { display: block; width: 100%; background: var(--pf-red); }
.th-col:hover .ph-stack { filter: brightness(1.12); }
#phTopBlocked .th-track i, #phWhy .th-track i { background: var(--pf-red); }
#phTopAllowed .th-track i { background: var(--pf-blue); }
.th-click { cursor: pointer; border-radius: 6px; } .th-click:hover .th-name { color: var(--accent-text); }
.ph-mini { font-size: 10.5px; padding: 0 6px; margin-left: 4px; }
.th-block.ph-allow:hover { color: var(--pf-green); }
.ph-logbar { align-items: center; flex-wrap: wrap; }
.ph-logbar .search { flex: 0 1 300px; }
#phQueries { max-height: 560px; overflow: auto; }
#phQueries thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
#phManualForm .add-row { align-items: end; }
@media (max-width: 1100px) { .ph-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ph-tile-body strong { font-size: 26px; } .ph-tile > .ic { width: 44px; height: 44px; } }
.ph-logbar .actions-row { flex-wrap: nowrap; gap: 14px; }
.ph-logbar .check { margin: 0; white-space: nowrap; }
#phLog { scroll-margin-top: 72px; }
@media (max-width: 620px) { .ph-logbar .actions-row { flex-wrap: wrap; width: 100%; } .ph-logbar .search { flex: 1 1 100%; } }
@media (max-width: 620px) { #dns-queries .th-ph { flex-wrap: wrap; } .ph-legend { flex-wrap: wrap; } .ph-legend i:first-child { margin-left: 0; } #phStep { flex-basis: 100%; margin-left: 0; } }

/* ---- 0.12.2: Suspeitos ---- */
#thSusWrap.sus-alert { border-color: color-mix(in srgb, var(--pf-orange) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pf-orange) 25%, transparent); }
#thSus { max-height: 420px; overflow: auto; }
#thSus thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.sus-table td { vertical-align: middle; }
.sus-table td.wrap { white-space: normal; min-width: 240px; }
.sus-table tr.sus-open td:first-child { box-shadow: inset 3px 0 0 var(--pf-orange); }
.sus-origin > div { display: flex; align-items: center; white-space: nowrap; }
.sus-origin small { display: block; color: var(--muted); font-size: 11.5px; padding-left: 26px; }
.sus-table td .badge { white-space: nowrap; }
.sus-table td:nth-child(5) { min-width: 150px; }
.sus-until { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.sus-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.sus-actions .btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.sus-actions .btn .ic { width: 14px; height: 14px; }
.sus-table td.act { width: 1%; white-space: nowrap; }
.sus-table .sus-actions { flex-wrap: nowrap; }
.sus-table th:last-child, .sus-table td.act { position: static; box-shadow: none; background: transparent; }
.sus-table td.wrap { min-width: 200px; }

/* ---- 0.13.0: Segurança e Equipamentos ---- */
.side-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--faint); }
.side-badge.bad { background: var(--pf-red); } .side-badge.warn { background: var(--pf-orange); }
.sec-score { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 16px; }
.sec-ring { --p: 0; --c: var(--pf-green); width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--hover) 0); }
.sec-ring.warn { --c: var(--pf-orange); } .sec-ring.bad { --c: var(--pf-red); }
.sec-ring b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sec-sum { display: flex; flex-direction: column; gap: 4px; } .sec-sum strong { font-size: 18px; }
.sec-list { display: flex; flex-direction: column; gap: 8px; }
.sec-item { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--faint); border-radius: var(--r); padding: 14px 16px; }
.sec-item.bad { border-left-color: var(--pf-red); } .sec-item.warn { border-left-color: var(--pf-orange); } .sec-item.ok { border-left-color: var(--pf-green); } .sec-item.info { border-left-color: var(--pf-blue); }
.sec-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--faint); margin-top: 1px; }
.sec-ic .ic { width: 15px; height: 15px; }
.sec-item.bad .sec-ic { background: var(--pf-red); } .sec-item.warn .sec-ic { background: var(--pf-orange); } .sec-item.ok .sec-ic { background: var(--pf-green); } .sec-item.info .sec-ic { background: var(--pf-blue); }
.sec-body { flex: 1; min-width: 0; } .sec-body h3 { margin: 0 0 3px; font-size: 14.5px; } .sec-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sec-item.ok .sec-body h3 { font-weight: 550; }
.sec-item > .btn { flex: none; align-self: center; }
@media (max-width: 640px) { .sec-item { flex-wrap: wrap; } .sec-item > .btn { margin-left: 40px; } }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dev-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--faint); border-radius: var(--r-lg); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.dev-card.on { border-top-color: var(--pf-green); } .dev-card.off { border-top-color: var(--pf-red); background: color-mix(in srgb, var(--pf-red) 6%, var(--surface)); }
.dev-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dev-mute { color: var(--muted); } .dev-mute .ic { width: 16px; height: 16px; }
.dev-card h3 { margin: 0; font-size: 16px; } .dev-card p { margin: 0; font-size: 12.5px; }
.dev-card code { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.dev-since { color: var(--muted); font-size: 11.5px; min-height: 16px; }
.dev-act { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.dev-empty { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; grid-column: 1 / -1; }

/* ---- 0.13.3: VPN endereços/teste e permissões ---- */
.ep-results { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.ep-res, .perm-row { display: flex; gap: 12px; align-items: flex-start; }
.ep-res p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ep-res.ok .sec-ic, .perm-row.ok .sec-ic { background: var(--pf-green); } .ep-res.bad .sec-ic, .perm-row.bad .sec-ic { background: var(--pf-red); } .perm-row.opt .sec-ic { background: var(--faint); }
.perm-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.perm-row > div { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; } .perm-row span:not(.sec-ic):not(.tag) { font-size: 13px; color: var(--muted); }
.perm-row .tag { align-self: center; }
.perm-cmd { margin-top: 14px; } .perm-cmd p { margin: 0 0 6px; font-size: 13px; }
.perm-cmd pre { white-space: pre-wrap; word-break: break-all; margin: 0 0 8px; }

/* ---- 0.15.0: Assistente ---- */
.wiz-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-cta h2 { margin: 0 0 4px; } .wiz-cta p { margin: 0; }
.wiz-steps { display: flex; flex-direction: column; gap: 10px; }
.wiz-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.wiz-step.open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.wiz-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.wiz-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .wiz-head b { font-size: 15px; } .wiz-head small { color: var(--muted); font-size: 12.5px; }
.wiz-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; background: var(--hover); color: var(--ink-2); }
.wiz-step.open .wiz-num { background: var(--accent); color: #fff; } .wiz-step.done .wiz-num { background: var(--pf-green); color: #fff; } .wiz-num .ic { width: 16px; height: 16px; }
.wiz-body { padding: 0 18px 16px 62px; }
.wiz-inner { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wiz-inner > * { max-width: 100%; } .wiz-inner p { margin: 0; }
.wiz-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wiz-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; } .wiz-bar select { width: auto; min-width: 220px; margin: 0; } .wiz-target { margin-left: auto; font-size: 12.5px; }
.wiz-bk { width: 100%; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.wiz-bk thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.wiz-detail { width: 100%; }
.wiz-modes { display: flex; flex-direction: column; gap: 8px; }
.wiz-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; margin: 0; }
.wiz-mode input { margin-top: 3px; } .wiz-mode div { display: flex; flex-direction: column; gap: 2px; } .wiz-mode small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.wiz-mode.off { opacity: .5; cursor: not-allowed; }
.wiz-mode:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.wiz-detail .pf-sec > div:not(.pf-row) { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.wiz-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
@media (max-width: 760px) { .wiz-secs { grid-template-columns: 1fr; } .wiz-body { padding-left: 18px; } }
.wiz-confirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; } .wiz-confirm input { width: 260px; margin: 0; }
.wiz-out { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wiz-list { margin: 0; padding-left: 18px; font-size: 13.5px; } .wiz-list li { margin: 2px 0; } .wiz-list li.bad b { color: var(--danger); } .wiz-list li.warn b { color: var(--warn); }
.wiz-devwrap { width: 100%; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.wiz-dev input, .wiz-dev select { margin: 0; height: 32px; min-width: 150px; }
.wiz-mode input[type=radio] { width: 16px; height: 16px; min-width: 0; flex: none; margin: 3px 0 0; accent-color: var(--accent); padding: 0; box-shadow: none; }
.wiz-mode > div { flex: 1; }
.wiz-bk input[type=radio], .wiz-dev input[type=checkbox] { width: 16px; height: 16px; min-width: 0; accent-color: var(--accent); }

/* ---- 0.16.0: Suspensão da internet ---- */
.susp-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--pf-red) 45%, var(--line)); background: color-mix(in srgb, var(--pf-red) 9%, var(--surface)); }
.susp-banner > div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .susp-banner b { color: var(--danger); } .susp-banner span { font-size: 13px; color: var(--ink-2); }
.susp-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pf-red); color: #fff; flex: none; }
@media (max-width: 760px) { .susp-banner { flex-wrap: wrap; } }
.susp-keep { margin: 0; padding-left: 18px; font-size: 13.5px; } .susp-keep li { margin: 2px 0; } .susp-keep li.bad { color: var(--danger); font-weight: 650; }
.month-cta { margin-bottom: 16px; } .month-cta select { width: auto; min-width: 180px; margin: 0; height: 32px; }
.susp-banner.plan { border-color: color-mix(in srgb, var(--pf-orange) 55%, var(--line)); background: color-mix(in srgb, var(--pf-orange) 10%, var(--surface)); }
.susp-banner.plan b { color: var(--warn); } .susp-banner.plan .susp-ic { background: var(--pf-orange); }
.susp-when { width: 100%; }

/* ---- 0.19.0: usuários e 2FA ---- */
.side-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.side-user:hover { background: var(--hover); } .side-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-user b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .side-user small { font-size: 11.5px; color: var(--muted); }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12px; flex: none; }
.tfa-qr { width: 190px; height: 190px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; background: #fff; }
.tfa-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .tfa-row input { width: 150px; margin: 0; letter-spacing: .2em; text-align: center; }
.tfa-steps { margin: 8px 0 4px; padding-left: 18px; font-size: 13.5px; }
#tfaPanel h2 { margin: 2px 0 6px; } #accNotice .notice { margin-bottom: 14px; }
#authUserRow.hidden, #authCodeRow.hidden { display: none; }
/* somente leitura: botões de ação apagados (o servidor recusa de qualquer forma) */
.role-leitura main .btn-primary:not(#pwForm .btn-primary):not(#tfaPanel .btn), .role-leitura main .pf-btn, .role-leitura main .btn-danger-ghost:not(#tfaPanel .btn) { opacity: .45; pointer-events: none; }
.dns-test { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dns-test > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .dns-test small { color: var(--muted); font-size: 12.5px; }
.dns-test.ok .sec-ic { background: var(--pf-green); } .dns-test.bad .sec-ic { background: var(--pf-red); } .dns-test.bad { border-color: color-mix(in srgb, var(--pf-red) 45%, var(--line)); }
.admin#topUser { cursor: pointer; }

/* ---- 0.20.0: seletor de empresa no topo ---- */
.co-switch { position: relative; }
.co-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; max-width: 300px; box-shadow: var(--shadow-sm); }
.co-btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); } .co-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.co-btn .avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; flex: none; }
.co-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.15; }
.co-txt small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .co-txt b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.co-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; } .co-dot.on { background: var(--pf-green); } .co-dot.off { background: var(--pf-red); }
.co-chev { width: 15px; height: 15px; color: var(--muted); flex: none; }
.co-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 340px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / .16); overflow: hidden; }
.co-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); } .co-search .ic { color: var(--muted); width: 16px; height: 16px; }
.co-search input { border: 0; outline: 0; margin: 0; padding: 4px 0; height: auto; background: transparent; box-shadow: none; width: 100%; font-size: 14px; }
.co-list { max-height: 360px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.co-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.co-item:hover, .co-item.focus { background: var(--hover); } .co-item.current { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.co-item .avatar { width: 30px; height: 30px; font-size: 11.5px; border-radius: 8px; flex: none; } .co-item .co-txt { flex: 1; } .co-item .co-txt small { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.co-item > .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.co-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.co-manage { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; font: inherit; font-size: 13px; }
.co-manage:hover { color: var(--accent-text); } .co-manage .ic { width: 15px; height: 15px; }
@media (max-width: 760px) { .co-btn .co-txt, .co-btn .co-chev { display: none; } .co-btn { padding: 0 6px; } .co-menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; max-width: none; } }

/* ---- 0.20.0: backup do painel ---- */
body:not(.role-admin) .admin-only { display: none !important; }
#pbNotice .notice { margin-bottom: 14px; } #pbNotice .notice .btn { margin-left: auto; }
.pb-dest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.pb-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pb-card > div { display: flex; flex-direction: column; min-width: 0; } .pb-card b { font-size: 14px; } .pb-card small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-card.off { background: transparent; border-style: dashed; } .pb-card.off b { color: var(--muted); }
.pb-h { font-size: 14px; font-weight: 650; margin: 22px 0 10px; color: var(--ink-2); }
.pb-key { font-size: 11.5px; word-break: break-all; white-space: normal; flex: 1; min-width: 0; }
.pb-port { width: 84px !important; flex: none; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; margin: 0 4px 2px 0; border-radius: 999px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--accent-text); } .chip.bad { color: var(--danger); }
@media (max-width: 760px) { .pb-dest { grid-template-columns: 1fr; } }

/* ---- 0.20.0: consumo ---- */
.us-tabs { margin-bottom: 0; }
#usNotice .notice { margin-bottom: 14px; } #usNotice .notice .btn { margin-left: auto; }
.us-chart { padding: 14px 16px 8px; margin-bottom: 16px; }
.us-svg { width: 100%; height: 150px; display: block; }
.us-host .us-svg { height: 180px; }
.us-d { fill: var(--accent); } .us-u { fill: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.us-svg g:hover rect { opacity: .75; }
.us-ax { font-size: 10px; fill: var(--muted); }
.us-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.us-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.us-legend .d::before { background: var(--accent); } .us-legend .u::before { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.us-who b { display: block; font-weight: 600; } .us-who small { color: var(--muted); font-size: 11.5px; }
.us-table td.num, .us-table th.num { text-align: right; white-space: nowrap; } .us-table td.strong { font-weight: 650; }
.us-share { width: 22%; min-width: 90px; }
.us-bar { display: block; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; } .us-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.us-limited { color: var(--warn); font-family: var(--mono, ui-monospace, monospace); font-size: 12px; white-space: nowrap; }
.us-foot { display: flex; justify-content: flex-end; padding: 8px 10px; border-top: 1px solid var(--line); }
.us-lim-head { margin-top: 26px; } .us-lim-head h3 { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .us-share { display: none; } .us-tabs { width: 100%; } }
.pf-line .pb-port { flex: 0 0 92px; max-width: 92px; }

/* ---- 0.20.2: IP bloqueado em Ameaças ---- */
.th-act { display: inline-flex; align-items: center; gap: 6px; }
.th-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--danger); background: var(--danger-soft); }
.th-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.th-tag.auto { color: var(--warn); background: var(--warn-soft); }
.th-row.is-blocked .th-track i { background: var(--faint); }
.vpn-watch { font-size: 12.5px; margin-top: 4px; } .vpn-watch.ok { color: var(--accent-text); } .vpn-watch.bad { color: var(--danger); }

/* ---- 0.20.9: filtro de IP em Ameaças ---- */
.th-filter { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
#threats .th-ph { align-items: center; flex-wrap: wrap; }
.th-filter .search { min-width: 200px; } .th-filter .search input { height: 34px; }
.th-filter select { height: 34px; width: auto; }
@media (max-width: 760px) { .th-filter { margin-left: 0; width: 100%; } .th-filter .search { flex: 1; min-width: 0; } }

/* ---- 0.20.10: sem textos explicativos ---- */
.pf-hint { display: none !important; }
#subtitle:empty, .pf-dialog .muted:empty, p:empty { display: none; }
.dns-default { margin-left: 8px; font-size: 11px; vertical-align: middle; }
.btn-icon.is-default { color: var(--accent-text); }
#phLists .notice { margin: 12px; } #phLists .notice .btn { margin-left: auto; }
#logs .section-head { margin-top: 28px; }
#phWhoToggle.is-on { color: var(--accent-text); border-color: var(--accent-soft); background: var(--accent-soft); }
.fp-steps { margin: 12px 24px 16px; padding-left: 18px; display: grid; gap: 6px; } #fw-profile .row-off { opacity: .55; }
.std-head { margin-top: 24px; } .std-head:first-of-type { margin-top: 0; }
.wm-head { margin-top: 28px; }
.wm-filter input[type=datetime-local] { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.wm-live { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.wm-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.wm-tile span { display: block; font-size: 12px; color: var(--muted); } .wm-tile b { font-size: 22px; }
.wm-strips { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; margin-bottom: 12px; }
.wm-row { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.wm-bar { position: relative; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 22%, transparent); overflow: hidden; }
.wm-bar i { position: absolute; top: 0; bottom: 0; min-width: 2px; background: var(--danger); }
.wm-bar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--warn); text-decoration: none; }
.wm-axis { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; font-size: 11px; color: var(--muted); }
.wm-axis div { display: flex; justify-content: space-between; }
@media (max-width: 760px) { .wm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wm-row, .wm-axis { grid-template-columns: 80px 1fr 48px; } }
.std-unifi { display: flex; gap: 8px; align-items: center; }
.std-unifi input { width: 160px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
@media (max-width: 760px) { .sec-item:has(.std-unifi) { flex-wrap: wrap; } .std-unifi { flex: 1 1 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding-left: 40px; } .std-unifi input { flex: 1; width: 0; min-width: 0; } }
.gs-look { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-bottom: 8px; }
.gs-color { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.gs-color input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.gs-logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gs-logo-k { font-size: 12.5px; font-weight: 550; color: var(--ink-2); margin-right: 6px; }
.gs-preview { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.gs-pv-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.gs-pv-tabs button { flex: 1; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gs-pv-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
#gsPreview { display: block; width: 100%; height: 640px; border: 0; background: var(--surface); }
@media (max-width: 900px) { .gs-look { grid-template-columns: 1fr; } #gsPreview { height: 520px; } }
#gsLogoFile { display: none; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
#gsSitesDialog > p.gss-meta { margin: 0 24px 12px; color: var(--muted); font-size: 13px; }
#gsSitesDialog > .search { margin: 0 24px; }
.gss-body { max-height: 60vh; overflow: auto; margin: 12px 24px 24px; border: 1px solid var(--line); border-radius: var(--r); }
.gss-body .empty { padding: 24px; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.gsb-mac { color: var(--muted); font-size: 13px; }

/* 0.20.47: popup central de progresso */
dialog.op-dialog { width: 340px; text-align: center; padding: 28px 24px 24px; }
dialog.op-dialog h3 { margin: 14px 0 6px; font-size: 16px; }
dialog.op-dialog p { margin: 0 0 4px !important; }
dialog.op-dialog .btn { margin-top: 14px; }
.op-spin { width: 38px; height: 38px; margin: 0 auto; border-radius: 50%; border: 3px solid rgb(128 128 128 / .25); border-top-color: var(--accent, #0a8f6e); animation: opspin .8s linear infinite; }
.op-ok, .op-x { display: none; width: 38px; height: 38px; margin: 0 auto; border-radius: 50%; line-height: 38px; font-size: 20px; font-weight: 700; color: #fff; }
.op-ok { background: #0a8f6e; } .op-x { background: #c0392b; }
.op-dialog[data-state="ok"] .op-spin, .op-dialog[data-state="err"] .op-spin { display: none; }
.op-dialog[data-state="ok"] .op-ok, .op-dialog[data-state="err"] .op-x { display: block; }
.op-dialog[data-state="ok"] .op-x, .op-dialog[data-state="err"] .op-ok { display: none; }
@keyframes opspin { to { transform: rotate(360deg); } }

td.hit-zero { color: var(--warn, #b7791f); }
.pf-sched-line { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.pf-sched-line input { width: 120px; }

/* 0.20.60: inventário */
.inv-strict { display: flex; margin: 0 0 12px; }
.inv-hw { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.inv-hw b { color: var(--text); font-weight: 600; }
tr.inv-block td:not(.act) { opacity: .6; }
#devInv .toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#devInv .toolbar select { width: auto; min-width: 170px; flex: none; }
#devInv .section-head .actions-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { #devInv .toolbar select { width: 100%; } }

/* 0.21.0: revendedores */
.owner-tag { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line, #d8dee4); color: var(--muted, #667); background: transparent; }
.owner-tag.is-res { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; }
.res-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgb(0 0 0 / .15); }
