/* FlowGuard v4 · visual da família NetOps (trueiSP): claro com roxo, escuro com roxo e preto */

:root, [data-theme="light"] {
  --bg: #f6f5fb;
  --bg-glow: #ece6ff;
  --surface: #ffffff;
  --surface-2: #f8f7fc;
  --surface-3: #f0eef7;
  --line: #e9e6f2;
  --line-strong: #d7d2e6;
  --text: #17142b;
  --muted: #625e78;
  --faint: #6d6981;
  --accent: #6c47ff;
  --accent-hover: #5a35f0;
  --accent-text: #5b36f2;
  --accent-soft: #efebff;
  --accent-line: #d4c9ff;
  --on-accent: #ffffff;
  --ok: #007d51;
  --ok-soft: #ddf5ea;
  --warn: #a95600;
  --warn-soft: #fdf0e0;
  --bad: #cc2446;
  --bad-soft: #fde6eb;
  --info: #1f5ce6;
  --info-soft: #e5eeff;
  --side-bg: #ffffff;
  --side-text: #3b3852;
  --side-muted: #6d6983;
  --side-active: #efebff;
  --side-line: #ebe8f4;
  --code-bg: #f5f3fa;
  --shadow: 0 1px 2px rgba(23, 20, 43, .04), 0 2px 10px rgba(23, 20, 43, .04);
  --shadow-lg: 0 18px 50px rgba(23, 20, 43, .18);
  --focus: 0 0 0 3px rgba(108, 71, 255, .28);
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --q-clean: #1baf7a; --q-suspect: #f59e0b; --q-attack: #e11d48;
  --side-w: 248px;
  --gutter: 28px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0b14;
  --bg-glow: #1b1433;
  --surface: #15121e;
  --surface-2: #1a1725;
  --surface-3: #221d30;
  --line: #2a243b;
  --line-strong: #3b3451;
  --text: #eeebf7;
  --muted: #a7a1bd;
  --faint: #8983a3;
  --accent: #7354f5;
  --accent-hover: #8f74ff;
  --accent-text: #b4a2ff;
  --accent-soft: rgba(124, 92, 255, .16);
  --accent-line: rgba(124, 92, 255, .42);
  --ok: #3ccf96;
  --ok-soft: rgba(60, 207, 150, .13);
  --warn: #f5b84a;
  --warn-soft: rgba(245, 184, 74, .13);
  --bad: #fb7190;
  --bad-soft: rgba(251, 113, 144, .14);
  --info: #74a6ff;
  --info-soft: rgba(116, 166, 255, .13);
  --side-bg: #110f19;
  --side-text: #d9d4ea;
  --side-muted: #908aa9;
  --side-active: rgba(124, 92, 255, .18);
  --side-line: #221d30;
  --code-bg: #100d17;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
  --focus: 0 0 0 3px rgba(124, 92, 255, .45);
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --q-clean: #22b07d; --q-suspect: #e5a03a; --q-attack: #f2557a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
small { font-size: max(12px, .84em); }   /* piso de legibilidade (texto ≥ 12px) */
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
.mono, code, pre, kbd { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .92em; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.hidden { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.muted { color: var(--muted); } .dim { color: var(--faint); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ logo (Flow sobre Guard, centralizados) */
.app-logo { width: 40px; height: 40px; flex: none; display: inline-block; border-radius: 11px; box-shadow: 0 4px 14px rgba(108, 71, 255, .25); }
.app-logo svg { width: 100%; height: 100%; display: block; }
.app-logo.sm { width: 30px; height: 30px; border-radius: 8px; }
.app-logo.lg { width: 84px; height: 84px; border-radius: 22px; }

/* ------------------------------------------------------------ login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #0e0b17;
  background-image: radial-gradient(circle at 0% 0%, rgba(108, 71, 255, .35), transparent 38%), radial-gradient(circle at 100% 100%, rgba(170, 70, 200, .22), transparent 40%); }
.login-card { width: min(1000px, 100%); min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .06); }
.login-art { color: #d9d4ea; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, #221b44 0%, #1a1533 55%, #2a1740 100%); }
.login-art h2 { font-size: 34px; line-height: 1.12; color: #fff; letter-spacing: -.02em; font-weight: 800; }
.login-art h2 span { background: linear-gradient(90deg, #b6a4ff, #f0a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art > p { color: #b9b2d3; font-size: 15px; }
.login-feats { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 18px; }
.login-feats li { display: flex; gap: 14px; align-items: center; }
.lf-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); flex: none; }
.lf-ic svg { width: 17px; height: 17px; color: #c9bdff; }
.login-feats b { color: #fff; display: block; font-size: 14.5px; } .login-feats span { color: #a59fbf; font-size: 13px; }
.login-form { background: #fff; color: #17142b; padding: 44px 64px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login-logo { display: flex; justify-content: center; }
.powered { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #67637c; }
.powered b { color: #17142b; } .powered em { color: #6c47ff; font-style: normal; }

.login-hi { text-align: center; color: #67637c; margin-top: 8px; }
.login-form h1 { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; color: #17142b; }
.login-form .field { color: #17142b; }
.login-form input { background: #fff; color: #17142b; border-color: #e3dff0; height: 48px; border-radius: 12px; }
.pw-wrap { position: relative; display: block; } .pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #8d89a3; cursor: pointer;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; }
.pw-eye svg { width: 18px; height: 18px; }
.btn.lg { height: 50px; font-size: 15px; border-radius: 12px; margin-top: 10px; }
.login-foot { border-top: 1px solid #ebe8f4; margin-top: 12px; padding-top: 16px; display: flex; justify-content: center; align-items: center; gap: 6px; color: #67637c; font-size: 13px; }
.login-foot span { display: inline-grid; } .login-foot span svg { width: 14px; height: 14px; } .login-foot span:last-of-type { margin-left: 14px; }
.form-error { color: #d22a4c; min-height: 18px; font-size: 13px; }
@media (max-width: 820px) {
  .login-card { grid-template-columns: 1fr; min-height: 0; }
  .login-art { display: none; }
  .login-form { padding: 36px 24px; }
}

/* ------------------------------------------------------------ estrutura */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
  overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--side-line); padding: 18px 12px 12px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-txt { display: grid; line-height: 1.2; min-width: 0; } .brand-txt b { font-size: 16px; font-weight: 700; }
.brand-txt span { font-size: 12px; color: var(--side-muted); }
#nav { display: grid; gap: 2px; }
.nav-group { display: grid; }
.nav-item { white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--side-text);
  font-weight: 500; font-size: 14.5px; position: relative; }
.nav-item:hover { background: var(--surface-3); text-decoration: none; }
.nav-item > svg { width: 18px; height: 18px; flex: none; }
.nav-item .chev { width: 15px; height: 15px; margin-left: auto; color: var(--side-muted); transition: transform .15s; }
.nav-group.open > .nav-item .chev { transform: rotate(90deg); }
.nav-group.active > .nav-item { color: var(--accent-text); font-weight: 600; }
.nav-group.active:not(.has-sub) > .nav-item, .nav-group.active.has-sub:not(.open) > .nav-item { background: var(--side-active); }
.nav-sub { display: none; gap: 1px; padding: 2px 0 6px 30px; position: relative; }
.nav-sub::before { content: ""; position: absolute; left: 21px; top: 4px; bottom: 8px; width: 1px; background: var(--side-line); }
.nav-group.open > .nav-sub { display: grid; }
.nav-subitem { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--side-muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav-subitem:hover { background: var(--surface-3); color: var(--side-text); text-decoration: none; }
.nav-subitem.active { background: var(--side-active); color: var(--accent-text); font-weight: 600; }
.nav-count { margin-left: auto; background: #e11d48; color: #fff; border-radius: 10px; font-size: 12px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.nav-count.soft { background: var(--surface-3); color: var(--muted); }
.nav-item .nav-count:not(.hidden) + .chev { margin-left: 6px; }
.side-bottom { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-top: 1px solid var(--side-line); background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.side-user:hover { background: var(--surface-3); border-radius: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #0f0c1d; color: #fff; display: grid; place-items: center; font-size: 12px;
  font-weight: 700; flex: none; box-shadow: inset 0 0 0 2px #3b2f78; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.who { display: grid; line-height: 1.25; min-width: 0; } .who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 12px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-actions { display: flex; justify-content: space-between; padding: 0 2px; }
/* indicador do modo (rodapé do menu) */
.mode-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--side-text); text-decoration: none !important; overflow: hidden;
  transition: border-color .15s, transform .15s; }
.mode-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.mc-emoji { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; line-height: 1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mc-txt { display: grid; line-height: 1.25; min-width: 0; }
.mc-txt b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-txt span { font-size: 12px; color: var(--side-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-bar { grid-column: 1 / -1; height: 4px; margin-top: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mc-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #b07cff); }
.mode-card.on { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
.mode-card.on .mc-emoji { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); box-shadow: none; }
.mode-card.on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); animation: mc-pulse 2.4s infinite; }
.mode-card.learn { border-color: var(--accent-line); background: var(--accent-soft); }
.mode-card.learn .mc-emoji { background: var(--surface); box-shadow: none; }
.mode-card.learn .mc-txt b { color: var(--accent-text); }
.mode-card.sim { border-style: dashed; }
@keyframes mc-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .mode-card.on::after { animation: none; } .mode-card:hover { transform: none; } }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; } .icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--bad); background: var(--bad-soft); }

/* menu recolhido: só ícones; submenu abre ao lado (flyout) */
.app.side-collapsed, .pre-collapsed .app { --side-w: 76px; }
.side-collapsed .brand-txt, .side-collapsed .nav-item span, .side-collapsed .nav-item .chev,
.side-collapsed .who, .side-collapsed .mc-txt, .side-collapsed .mc-bar, .side-collapsed .nav-sub { display: none !important; }
.side-collapsed .mode-card { grid-template-columns: 1fr; justify-items: center; padding: 6px; }
.side-collapsed .mode-card.on::after { top: 4px; right: 4px; }
.side-collapsed .nav-item { justify-content: center; padding: 10px; }
.side-collapsed .nav-group.active > .nav-item { background: var(--side-active); }
.side-collapsed .nav-count { position: absolute; top: 2px; right: 2px; margin: 0; }
.side-collapsed .brand { justify-content: center; padding: 2px 0 20px; }
.side-collapsed .side-user { justify-content: center; }
.side-collapsed .side-actions { flex-direction: column; align-items: center; gap: 2px; }
.flyout { position: fixed; z-index: 95; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 210px; display: grid; gap: 1px; }
.flyout .fo-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 6px 10px 4px; }
.flyout a { padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 13.5px; }
.flyout a:hover, .flyout a.active { background: var(--side-active); color: var(--accent-text); text-decoration: none; }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.mobilebar, .menu-btn, .scrim { display: none; }
.view { padding: 0 var(--gutter) 110px; width: 100%; flex: 1; outline: none; }

@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .app, .app.side-collapsed { grid-template-columns: 1fr; --side-w: 0px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; height: 100dvh; }
  .app.menu-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 8, 22, .45); z-index: 55; }
  .side-collapsed .brand-txt, .side-collapsed .nav-item span, .side-collapsed .who, .side-collapsed .mc-txt, .side-collapsed .mc-bar { display: revert !important; }
  .side-collapsed .mode-card { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; padding: 10px 12px; }
  .side-collapsed .nav-item .chev { display: block !important; }
  .side-collapsed .nav-group.open > .nav-sub { display: grid !important; }
  .side-collapsed .nav-item { justify-content: flex-start; padding: 9px 12px; }
  .side-collapsed .side-actions { flex-direction: row; }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .menu-btn { display: grid; }
  #collapse-btn { display: none; }
}

/* ------------------------------------------------------------ cabeçalho da página */
.page-head { display: flex; align-items: center; gap: 14px; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line); min-height: 78px; flex-wrap: wrap; }
.page-head .titles { flex: 1; display: grid; gap: 1px; }
.page-head .crumb { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.page-head h1 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; align-items: center; gap: 10px; }
.page-head .lead { color: var(--muted); font-size: 13.5px; max-width: 90ch; }
.h-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 16px rgba(23, 20, 43, .14); }
.h-icon svg { width: 20px; height: 20px; }
.tone-violet { background: linear-gradient(135deg, #6c47ff, #9b7bff); }
.tone-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.tone-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.tone-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.tone-slate { background: linear-gradient(135deg, #475569, #94a3b8); }
.tone-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.back-btn { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 8px; margin-left: -6px; }
.back-btn:hover { background: var(--surface-3); color: var(--text); }
.back-btn svg { width: 18px; height: 18px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* botão de ação do cabeçalho: só ícone, nome no balão */
.hbtn { position: relative; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; text-decoration: none !important; }
.hbtn svg { width: 19px; height: 19px; }
.hbtn:hover { background: var(--surface-3); }
.hbtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(15, 12, 34, .14); }
.hbtn.primary:hover { background: var(--accent-hover); }
.hbtn.danger { color: var(--bad); }
.hbtn.danger:hover { background: var(--bad-soft); }
.hbtn:disabled { opacity: .5; cursor: not-allowed; }
[data-tip]:not(.tip)::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; background: #1c1530; color: #f1edff; font-size: 12.5px;
  font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-3px);
  transition: opacity .12s, transform .12s; z-index: 50; box-shadow: var(--shadow-lg); display: none; }
[data-tip]:not(.tip):hover::after, [data-tip]:not(.tip):focus-visible::after { display: block; opacity: 1; transform: none; }

@media (max-width: 960px) { .page-head { min-height: 0; }  .h-icon { width: 34px; height: 34px; } }

/* ------------------------------------------------------------ painéis */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 56px; }
.panel-h h2 { font-size: 15px; font-weight: 700; }
.panel-h .sub { color: var(--muted); font-size: 13px; }
.panel-h .link { font-size: 13px; font-weight: 600; }
.panel-b { padding: 20px; }
.panel-b.flush { padding: 0; }
.panel-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-f > svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.panel-f > span { flex: 1; min-width: 0; }
svg.h-ic { width: 18px; height: 18px; color: var(--accent-text); flex: none; vertical-align: -3px; }

/* ------------------------------------------------------------ pipeline (painel) */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.stage { position: relative; padding: 18px 20px 16px 22px; color: var(--text); display: grid; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.stage:last-child { border-right: 0; }
.stage:hover { background: var(--surface-2); text-decoration: none; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
  background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 1; }
.stage:hover:not(:last-child)::after { background: var(--surface-2); }
.stage .s-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stage .s-value { font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .s-detail { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .s-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.stage.ok .s-bar { background: var(--ok); } .stage.warn .s-bar { background: var(--warn); } .stage.bad .s-bar { background: var(--bad); } .stage.idle .s-bar { background: var(--line-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.ok > .s-label .dot, .dot.ok { background: var(--ok); }
.warn > .s-label .dot, .dot.warn { background: var(--warn); }
.bad > .s-label .dot, .dot.bad { background: var(--bad); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--bad-soft); } }
@media (max-width: 1100px) {
  .pipeline { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: center; }
  .stage:last-child { border-bottom: 0; }
  .stage .s-detail { grid-column: 1 / -1; }
  .stage::after { display: none; }
  .stage .s-bar { right: auto; bottom: 0; width: 3px; height: auto; }
}

/* ------------------------------------------------------------ cartões de indicador */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 44px 1fr;
  gap: 14px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; color: var(--text); }
.icard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.icard.k-ok::before { background: var(--ok); } .icard.k-warn::before { background: var(--warn); } .icard.k-bad::before { background: var(--bad); } .icard.k-info::before { background: var(--info); }
.icard .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.icard .ic svg { width: 20px; height: 20px; }
.icard .ic.ok { background: var(--ok-soft); color: var(--ok); } .icard .ic.warn { background: var(--warn-soft); color: var(--warn); }
.icard .ic.bad { background: var(--bad-soft); color: var(--bad); } .icard .ic.info { background: var(--info-soft); color: var(--info); }
.icard .ib { display: grid; line-height: 1.25; }
.icard .l { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 700; color: var(--muted); }
.icard .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard .s { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.icard:hover { text-decoration: none; border-color: var(--accent-line); }

/* ------------------------------------------------------------ tabelas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 600; color: var(--faint); padding: 12px 16px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
td.mono, .mono { font-size: 13px; }
td b { font-weight: 600; }
tr.clickable { cursor: pointer; }
td.actions { white-space: nowrap; text-align: right; width: 1%; }
td.actions .icon-btn { display: inline-grid; }
.m-only, td .m-only { display: none; }

/* ------------------------------------------------------------ selos */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--surface-3); color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); } .badge.outline { background: transparent; border-color: var(--line-strong); }
.chip { font-family: "JetBrains Mono", monospace; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text); display: inline-block; }
.chip.rt { background: var(--info-soft); color: var(--info); } .chip.lg { background: var(--ok-soft); color: var(--ok); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------ botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(15, 12, 34, .14); }   /* 1.4.8v (w): sem a sombra roxa em volta do botão */
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; height: 44px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ------------------------------------------------------------ formulários */
.field { display: grid; gap: 6px; font-weight: 500; font-size: 13.5px; min-width: 0; align-content: start; }
.field > span:first-child { display: flex; align-items: center; gap: 2px; }
.field .help, .help { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 11px; width: 100%; min-height: 40px; }
textarea { min-height: 96px; resize: vertical; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-radius: 10px 0 0 10px; }
.input-unit span { display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.input-btn { display: flex; gap: 8px; } .input-btn input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.form-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.fs-title h2 { font-size: 15px; }
.fs-title p { color: var(--muted); margin-top: 6px; font-size: 13px; }
@media (max-width: 960px) { .form-section { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 36px; min-height: 0; height: 20px; padding: 0; border-radius: 99px; border: 0;
  background: var(--line-strong); position: relative; flex: none; margin-top: 1px; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch .s-text { display: grid; gap: 2px; }

.limit-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.limit-row:last-child { border-bottom: 0; }
.limit-row.off .input-unit { opacity: .45; }
@media (max-width: 640px) { .limit-row { grid-template-columns: 1fr; } }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--surface); display: grid; gap: 6px; text-align: left; font: inherit; color: inherit; align-content: start; }
.choice:hover { border-color: var(--line-strong); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.choice p { color: var(--muted); font-size: 13px; }

.savebar { position: fixed; left: var(--side-w); right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter);
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(110%); visibility: hidden;
  transition: transform .18s ease, visibility .18s; }
.savebar.show { transform: none; visibility: visible; }
.savebar .msg { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.savebar .msg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.readonly-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.readonly-note svg { width: 16px; height: 16px; }

.errors { border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); color: var(--text); border-radius: 10px; padding: 12px 16px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------ avisos */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.callout .c-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.callout .c-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.callout .c-body p { color: var(--muted); }
.callout .c-actions { display: flex; gap: 8px; flex-wrap: wrap; align-self: center; }
.callout.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); } .callout.bad .c-icon { color: var(--bad); }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); } .callout.warn .c-icon { color: var(--warn); }
.callout.info { border-color: var(--accent-line); background: var(--accent-soft); } .callout.info .c-icon { color: var(--accent-text); }
.callout.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); } .callout.ok .c-icon { color: var(--ok); }
.alerts { display: grid; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.alert svg.a-ic { width: 18px; height: 18px; flex: none; }
.alert .a-t { flex: 1; min-width: 0; }
.alert .a-t b { font-weight: 600; }
.alert .a-t span { color: var(--muted); margin-left: 6px; }
.alert.bad { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-soft); } .alert.bad .a-ic { color: var(--bad); }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); } .alert.warn .a-ic { color: var(--warn); }
.alert.info { border-color: var(--accent-line); background: var(--accent-soft); } .alert.info .a-ic { color: var(--accent-text); }
@media (max-width: 700px) { .alert { flex-wrap: wrap; } .alert .a-t span { display: block; margin: 2px 0 0; } }
details.warn-list { display: block; } .warn-list summary { cursor: pointer; list-style: none; }
.warn-list summary::-webkit-details-marker { display: none; }
.warn-list summary::after { content: "ver"; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.warn-list[open] summary::after { content: "ocultar"; }
.warn-list ul { margin: 10px 0 2px 30px; display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ dica (ícone ?) */
.tip { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--faint); cursor: help; vertical-align: -6px; margin-left: 1px; }
.tip svg { width: 15px; height: 15px; }
.tip:hover, .tip:focus { color: var(--accent-text); outline: none; } .tip:focus-visible { box-shadow: var(--focus); }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 300px;
  padding: 8px 10px; border-radius: 8px; background: #1c1530; color: #ede9fe; font-size: 12.5px; font-weight: 400; line-height: 1.45; white-space: normal;
  box-shadow: var(--shadow-lg); pointer-events: none; z-index: 50; text-align: left; display: none; }
.tip:hover::after, .tip:focus::after { display: block; }
.tip.right::after { left: auto; right: -6px; transform: none; }
@media (max-width: 640px) { .tip::after { position: fixed; left: 16px; right: 16px; bottom: auto; top: 72px; transform: none; width: auto; max-width: none; } }

/* ------------------------------------------------------------ abas internas (modais) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }   /* 1.4.8v (u): sempre uma linha; rola para o lado */
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; white-space: nowrap; flex: none; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ código */
.code { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--code-bg); }
.code pre { margin: 0; padding: 14px 16px; overflow: auto; font-size: 12.8px; line-height: 1.55; max-height: 52vh; }
.code .copy { position: absolute; top: 8px; right: 8px; }
pre.plain { margin: 0; padding: 12px 14px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; overflow: auto; font-size: 12.5px; max-height: 360px; white-space: pre; }
.notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; font-size: 13px; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kv-compact > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kv-compact span { display: block; color: var(--muted); font-size: 12px; }
.kv-compact b { font-weight: 600; overflow-wrap: anywhere; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty .e-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; color: var(--faint); margin-bottom: 4px; }
.empty .e-ic svg { width: 22px; height: 22px; }
.empty b { color: var(--text); font-size: 15px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spin { width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: sp .8s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ modal */
.modal-back { position: fixed; inset: 0; background: rgba(12, 8, 22, .55); display: grid; place-items: center; padding: 16px; z-index: 80; animation: fade .12s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(540px, 100%);
  max-height: calc(100dvh - 32px); display: flex; flex-direction: column; min-width: 0; }
.modal.wide { width: min(980px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 17px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v1.4.8g: ações no cabeçalho, ao lado do X */
.modal-ha { display: flex; align-items: center; gap: 8px; min-width: 0; }
.modal-ha .btn { white-space: nowrap; } .modal-ha .muted { white-space: nowrap; }
/* v1.4.8: o X fica fixo no canto e as ações descem para a segunda linha só quando não cabem ao lado do título (antes passavam por cima) */
.modal-h { position: relative; flex-wrap: wrap; row-gap: 8px; padding-right: 62px; } .modal-h h2 { flex: 1 1 140px; }
.modal-ha { flex: 0 1 auto; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; } .modal-h > [data-close] { position: absolute; top: 12px; right: 16px; }
@media (max-width: 640px) { .modal-h h2 { flex: 1 1 calc(100% - 52px); line-height: 34px; } .modal-ha { order: 3; flex: 1 1 100%; margin-right: -46px; } .modal-ha #wz-count { margin-right: auto; } }
.modal-b { padding: 20px; overflow-y: auto; min-height: 0; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; align-items: center; }
.modal-section { padding: 18px 0; border-top: 1px solid var(--line); }
.modal-section:first-child { padding-top: 0; border-top: 0; }
.modal-section h3 { font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.modal-section > p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
@media (max-width: 640px) { .modal-back { padding: 0; align-items: end; } .modal, .modal.wide { width: 100%; max-height: 92dvh; border-radius: 16px 16px 0 0; } }

/* ------------------------------------------------------------ assistente (wizard) */
.wizard { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.wz-steps { list-style: none; margin: 0; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface-2); display: grid; align-content: start; gap: 4px; overflow-y: auto; }
.wz-steps li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.wz-steps li.clickable { cursor: pointer; } .wz-steps li.clickable:hover { background: var(--surface-3); }
.wz-steps .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; background: var(--surface); }
.wz-steps .n svg { width: 14px; height: 14px; }
.wz-steps li.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.wz-steps li.now { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.wz-steps li.now .n { border-color: var(--accent); background: var(--accent); color: #fff; }
.wz-body { padding: 22px 24px; overflow-y: auto; min-height: 0; display: grid; gap: 16px; align-content: start; }
.wz-body > h3 { font-size: 17px; }
.wz-body > .wz-lead { color: var(--muted); margin-top: -10px; }
.wz-progress { display: none; height: 4px; background: var(--surface-3); } .wz-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.modal.wz { width: min(1000px, 100%); height: min(720px, calc(100dvh - 32px)); }
.wz-review { display: grid; gap: 10px; }
.wz-review .rv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.wz-review .rv:last-child { border-bottom: 0; }
.wz-review .rv span { color: var(--muted); }
@media (max-width: 760px) {
  .wizard { grid-template-columns: 1fr; }
  .wz-steps { display: none; }
  .wz-progress { display: block; }
  .modal.wz { height: 92dvh; }
  .wz-body { padding: 18px 16px; }
  .wz-review .rv { grid-template-columns: 1fr; gap: 2px; }
}

/* ------------------------------------------------------------ painel de tarefas e avisos flutuantes */
.job-panel { position: fixed; right: 20px; bottom: 20px; width: 360px; max-width: calc(100% - 40px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 70; overflow: hidden; }
.jp-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.jp-h span { flex: 1; }
.job-panel ul { list-style: none; margin: 0; padding: 8px 14px 12px; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.job-panel li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px; }
.job-panel li .m { display: block; color: var(--muted); font-size: 12px; }
.toasts { position: fixed; top: 20px; right: 20px; display: grid; gap: 8px; z-index: 90; max-width: calc(100% - 40px); }
.toast { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 260px; max-width: 400px; padding: 12px 16px 14px 12px; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: 0 18px 40px -16px rgba(60, 40, 160, .45), 0 2px 6px rgba(20, 16, 50, .08); font-size: 13.5px; font-weight: 600; animation: tsin .28s cubic-bezier(.2, .8, .2, 1); }
.toast .tsi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7354f5, #a855f7); } .toast .tsi svg { width: 18px; height: 18px; }
.toast .tst { overflow-wrap: anywhere; } .toast .tsb { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #7354f5, #a855f7); transform-origin: left; animation: tsbar 4.5s linear forwards; }
.toast.ok .tsi, .toast.ok .tsb { background: linear-gradient(135deg, #059669, #10b981); } .toast.bad .tsi, .toast.bad .tsb { background: linear-gradient(135deg, #e11d48, #f97316); } .toast.bad .tsb { animation-duration: 8s; }
@keyframes tsin { from { opacity: 0; transform: translateY(-10px) scale(.97); } } @keyframes tsbar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast .tsb { display: none; } }

.logbox { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; height: 56vh; overflow: auto; font: 12.5px/1.5 "JetBrains Mono", monospace; white-space: pre-wrap; word-break: break-all; }
.logbox .err { color: var(--bad); } .logbox .wrn { color: var(--warn); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.over > span { background: var(--bad); }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #a78bfa); }

/* ------------------------------------------------------------ menus suspensos */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 240px; z-index: 40; display: grid; }
.dropdown-menu button { text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dropdown-menu button:hover { background: var(--surface-3); }

/* ------------------------------------------------------------ painel: faixas e etapas */
.strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--text); flex-wrap: wrap; box-shadow: var(--shadow); }
a.strip:hover { border-color: var(--accent-line); text-decoration: none; }
.strip > svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.flow { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.flow-step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--muted); min-width: 0; }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-step .fs-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.flow-step .fs-ic svg { width: 16px; height: 16px; }
.flow-step b { display: block; color: var(--text); font-weight: 600; font-size: 13.5px; }
.flow-step span { font-size: 12.5px; }
@media (max-width: 860px) { .flow { flex-direction: column; } .flow-step + .flow-step { border-left: 0; border-top: 1px solid var(--line); } }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hero > div { padding: 20px; }
.hero > div + div { border-left: 1px solid var(--line); }
.hero .big { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.dist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dist div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.dist b { display: block; font-size: 15px; } .dist span { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .dist { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ mitigação */
.mode-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; flex-wrap: wrap; }
.mode-text { display: flex; gap: 12px; align-items: center; } .mode-text b { display: block; }
table.rules select { min-width: 240px; }
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.engine { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; background: var(--surface);
  cursor: pointer; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow); }
.engine:hover { border-color: var(--line-strong); }
.engine.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.engine .eh { display: flex; gap: 10px; align-items: center; }
.engine .eh .e-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.engine .eh .e-ic svg { width: 19px; height: 19px; }
.engine .eh b { display: block; font-size: 15px; } .engine .eh > div { min-width: 0; }
.engine .e-desc { color: var(--muted); font-size: 13px; }
@media (max-width: 980px) { .engines { grid-template-columns: 1fr; } }
.sig-table td:first-child { width: 48px; } .sig-table .sub svg { width: 13px; height: 13px; vertical-align: -2px; }
.sig-table input[type=checkbox] { width: 17px; height: 17px; }
.sig { display: grid; gap: 2px; } .sig .row { gap: 8px; }
.sig-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sig-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 6px 6px 10px; font-size: 13px; background: var(--surface-2); }
.sig-chip > span { flex: 1; min-width: 0; } .sig-chip .mono { color: var(--muted); font-size: 12px; }
.sig-chip input { width: 16px; height: 16px; flex: none; }
.sub-h { font-size: 14px; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; } .sub-h svg { width: 16px; height: 16px; color: var(--accent-text); }
details.more > summary { cursor: pointer; color: var(--accent-text); font-weight: 600; list-style: none; padding: 15px 20px; display: flex; gap: 8px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more[open] > summary { border-bottom: 1px solid var(--line); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li svg { width: 17px; height: 17px; color: var(--accent-text); flex: none; margin-top: 2px; }
.downloads { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dl { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); }
.dl:hover { border-color: var(--accent-line); text-decoration: none; }
.dl svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
.dl b { display: block; font-size: 13.5px; } .dl span { color: var(--muted); font-size: 12px; }
.ic-cell { width: 52px; } .ic-cell .h-ic-box { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.ic-cell .h-ic-box svg { width: 18px; height: 18px; }
.ic-cell .h-ic-box.cloud { background: var(--info-soft); color: var(--info); }
.ic-cell .h-ic-box.bad { background: var(--bad-soft); color: var(--bad); }

/* ------------------------------------------------------------ rede */
.group-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; background: var(--surface); }
.group-card .gh { display: flex; align-items: center; gap: 10px; }
.group-card h3 { font-size: 15px; flex: 1; min-width: 0; }
.group-card .prefixes { display: flex; gap: 6px; flex-wrap: wrap; }
.up-row, .cs-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .up-row, .cs-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ relatórios e tráfego */
.report-frame { width: 100%; height: calc(100dvh - 160px); min-height: 600px; display: block; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.split i { display: block; height: 100%; } .split i + i { box-shadow: -2px 0 0 var(--surface); }
.legend-inline { display: inline-flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend-inline i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.todo { display: grid; gap: 12px; } .todo-row { display: flex; gap: 12px; align-items: flex-start; }
.todo-row > svg { width: 18px; height: 18px; flex: none; color: var(--accent-text); margin-top: 2px; }
.todo-row .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.svc-list { display: grid; gap: 2px; padding: 8px 10px; }
.svc-row { display: grid; grid-template-columns: 40px minmax(160px, 250px) 1fr 100px 120px; gap: 14px; align-items: center; background: none; border: 0;
  padding: 10px; border-radius: 10px; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.svc-row:hover { background: var(--surface-2); }
.svc-ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.svc-ico img { width: 22px; height: 22px; display: block; }
.svc-ico.mono-ic { background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 14px; border-color: transparent; }
.svc-name { min-width: 0; } .svc-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-name .asns { color: var(--faint); font-size: 12px; font-family: "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.svc-bar > span { display: block; min-width: 6px; } .svc-bar .split { height: 10px; }
.svc-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-val small { display: block; font-weight: 500; color: var(--faint); font-size: 12px; }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 36px 1fr auto; gap: 6px 12px; }
  .svc-bar { grid-column: 1 / -1; order: 3; } .svc-tag { display: none; }
  table.rules select { min-width: 0; width: 100%; }
}

/* ------------------------------------------------------------ usuários */
.role-badge.admin { background: var(--accent-soft); color: var(--accent-text); }
.role-badge.operador { background: var(--info-soft); color: var(--info); }
.role-badge.leitura { background: var(--surface-3); color: var(--muted); }
.pw-meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .15s, background .15s; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head b { font-size: 17px; display: block; }
.channel { display: grid; gap: 14px; }
.channel .ch-h { display: flex; align-items: center; gap: 12px; }

.channel .ch-h b { display: block; } .channel .ch-h .muted { font-size: 13px; }

/* ------------------------------------------------------------ celular: tabelas viram cartões */
@media (max-width: 640px) {
  table.cardify thead { display: none; }
  table.cardify tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.cardify tr:last-child { border-bottom: 0; }
  table.cardify td { display: block; border: 0; padding: 2px 0; grid-column: 1; }
  table.cardify td.actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; }
  table.cardify td.ic-cell { display: none; }
  table.cardify td.hide-m { display: none; }
  table.cardify .m-only { display: block; }
  table.cardify tbody tr:hover td { background: none; }
  .lr-table th:nth-child(4), .lr-table td:nth-child(4) { display: none; }
  .lr-table th, .lr-table td { padding-left: 8px; padding-right: 8px; white-space: normal; font-size: 13px; }
  .sig-table td:nth-child(3) { display: none; }
}
#sz-out { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .icard { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .icard .ic { width: 34px; height: 34px; border-radius: 10px; } .icard .ic svg { width: 17px; height: 17px; }
  .icard .v { font-size: 19px; }
  .icard .l { font-size: 12px; }
}
@media (max-width: 640px) {
  /* canais de notificação: o botão Testar desce para não espremer a descrição */
  .ch-h { flex-wrap: wrap; }
  .ch-h > div { flex: 1 1 calc(100% - 52px); min-width: 0; }
  .ch-h .spacer { display: none; }
  .ch-h > .btn { margin-left: 46px; }
}

/* v4: linha do tempo do ataque */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 7px 0; }
.timeline .tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.timeline .tl-dot svg { width: 14px; height: 14px; }
.timeline .tl-body b { display: block; font-weight: 600; font-size: 14px; }
.timeline .tl-body span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; overflow-wrap: anywhere; }
.timeline time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 5px; }
.timeline .tl-detect .tl-dot { border-color: var(--bad); color: var(--bad); }
.timeline .tl-decision .tl-dot, .timeline .tl-user .tl-dot { border-color: var(--accent); color: var(--accent-text); }
.timeline .tl-wait .tl-dot { border-color: var(--warn); color: var(--warn); }
.timeline .tl-apply .tl-dot { border-color: var(--ok); color: #fff; background: var(--ok); }
.timeline .tl-error .tl-dot { border-color: var(--bad); color: #fff; background: var(--bad); }
.timeline .tl-end .tl-dot { border-color: var(--ok); color: var(--ok); }

/* v4: busca rápida (Ctrl+K; no celular, lupa na barra do topo) */
.m-search { margin-left: auto; }
kbd { font: 600 12px/1 "Inter", system-ui, sans-serif; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
.palette-back { align-items: start; justify-items: center; padding-top: 12vh; }
.toast.warn .tsi, .toast.warn .tsb { background: linear-gradient(135deg, #d97706, #f59e0b); }
.palette { width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(20, 12, 50, .35);
  overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; padding: 4px 0; box-shadow: none; min-width: 0; }
.pal-list { overflow-y: auto; padding: 6px; }
.pal-g { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.pal-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit;
  color: var(--text); cursor: pointer; text-align: left; }
.pal-item > svg:first-child { width: 17px; height: 17px; color: var(--muted); flex: none; }
.pal-item.sel { background: var(--accent-soft); } .pal-item.sel > svg:first-child { color: var(--accent-text); }
.pal-l { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-h { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.pal-enter { width: 15px; height: 15px; color: var(--accent-text); flex: none; }
.pal-empty { padding: 24px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: var(--surface-2); }
.pal-foot kbd { margin-right: 3px; }
@media (max-width: 640px) { .pal-h { display: none; } .pal-foot span:last-child { display: none; } .palette-back { padding-top: 8vh; } }

/* v4.1: mitigação em nuvem personalizada (regras por sessão) */
.flex-head, .flex-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, 1.5fr) 34px; gap: 8px; align-items: center; }
.flex-head { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.flex-row { margin-bottom: 8px; }
.flex-row[data-mode="announce"] [data-f="communities"], .flex-row[data-mode="reject"] [data-f="communities"] { visibility: hidden; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 760px) {
  .flex-head { display: none; }
  .flex-row { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .flex-row [data-f="provider"] { grid-column: 1 / 3; } .flex-row [data-f="communities"] { grid-column: 1 / 3; }
  .flex-row[data-mode="announce"] [data-f="communities"], .flex-row[data-mode="reject"] [data-f="communities"] { display: none; }
}

/* v4.1: tráfego por país */
.ctry-list { padding: 6px 10px 10px; }
.ctry-row { display: grid; grid-template-columns: 40px minmax(160px, 250px) 1fr 100px; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.ctry-row:hover { background: var(--surface-2); }
.ctry-flag { font-size: 24px; line-height: 1; text-align: center; } .ctry-flag svg { width: 20px; height: 20px; color: var(--muted); }
.ctry-name b { display: block; font-weight: 600; } .ctry-name .mono { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .ctry-row { grid-template-columns: 32px 1fr auto; gap: 6px 12px; }
  .ctry-row .svc-bar { grid-column: 1 / -1; order: 3; }
}
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.sample-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.sbar { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 2px 8px; font-size: 13px; margin-bottom: 7px; }
.sbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbar i { grid-column: 1; grid-row: 2; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #9b7bff, #6c47ff); min-width: 3px; }
.sbar b { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .sample-grid { grid-template-columns: 1fr; } }

/* v4.1: inteligência artificial */
.ai-card { border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border-radius: 14px; padding: 14px 16px; }
.ai-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ai-card .row { gap: 8px; flex-wrap: wrap; }
.ai-sum { margin: 10px 0 6px; line-height: 1.55; }
.ai-ev { margin: 4px 0 8px 18px; color: var(--muted); font-size: 13px; } .ai-ev li { margin: 2px 0; }
.ai-filter { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--accent-line); display: grid; gap: 8px; justify-items: start; }
.empty-ai { background: var(--surface-2); border-style: dashed; }
.ai-answer { line-height: 1.6; } .ai-answer h4 { margin: 12px 0 4px; font-size: 14px; } .ai-answer ul { margin: 4px 0 8px 18px; } .ai-answer p { margin: 6px 0; }
@media (min-width: 900px) { .choice-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-section > *, .stack > * { min-width: 0; }
.form-section .mono, .muted .mono { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .flex-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 34px; grid-template-areas: "p p x" "k m m" "c c c"; }
  .flex-row [data-f="provider"] { grid-area: p; } .flex-row [data-f="kind"] { grid-area: k; } .flex-row [data-f="mode"] { grid-area: m; }
  .flex-row [data-f="communities"] { grid-area: c; } .flex-row [data-rm] { grid-area: x; }
}

/* v4.2: seletor no cabeçalho (período dos relatórios) */
.hmenu { position: relative; }
.hbtn.wide { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 11px; font: 600 13.5px/1 inherit; font-family: inherit; white-space: nowrap; }
.hbtn.wide svg { width: 17px; height: 17px; }

.hmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 168px; padding: 6px; display: grid; gap: 1px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.hmenu-pop button { text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.hmenu-pop button:hover, .hmenu-pop button:focus-visible { background: var(--surface-3); outline: none; }
.hmenu-pop button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* v4.2: paginação de listas longas */
.pg-hide { display: none !important; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pager span { font-variant-numeric: tabular-nums; min-width: 9ch; text-align: center; }
.pager .icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.pager button[data-p] svg { width: 15px; height: 15px; }

/* v4.3: IPs, portas e protocolos */

.fx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fx-chip { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; padding: 4px 4px 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.fx-chip .muted { color: var(--muted); font-weight: 500; }
.chip-x { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.chip-x:hover { background: var(--surface); }
.chip-x svg { width: 13px; height: 13px; }
.fx-grid { align-items: start; }
.fx-panel .panel-h { flex-wrap: wrap; }
.fx-search { width: 170px; max-width: 100%; height: 32px; padding: 4px 10px; font-size: 13px; }
.fx-list { display: grid; padding: 6px 8px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 10px; }
.fx-row.clickable { cursor: pointer; }
.fx-row.clickable:hover, .fx-row.clickable:focus-visible { background: var(--surface-3); outline: none; }
.fx-name { display: grid; min-width: 0; line-height: 1.3; }
.fx-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.fx-name .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.fx-bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--series-1); }
.fx-val { text-align: right; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; display: grid; line-height: 1.25; }
.fx-val small { color: var(--muted); font-weight: 500; font-size: 12px; }
.fx-empty { padding: 18px 20px; }
.fx-modal .modal-f, .fx-modal .modal-ha { display: flex; align-items: center; }
@media (max-width: 760px) { .fx-search { width: 100%; } .fx-row { grid-template-columns: minmax(0, 1fr) auto; } .fx-bar { grid-column: 1 / -1; order: 3; } }

/* ------------------------------------------------------------ v4.4: abas internas, selos e menus do cabeçalho */
.view-tabs { display: flex; gap: 4px; margin: -12px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.view-tabs::-webkit-scrollbar { display: none; }
.view-tabs .vt { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 13.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.view-tabs .vt svg { width: 16px; height: 16px; }
.view-tabs .vt:hover { color: var(--text); }
.view-tabs .vt.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.hbtn[data-badge]::before { content: attr(data-badge); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.hbtn.primary[data-badge]::before { background: var(--text); color: var(--surface); }
.hbtn.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.hm-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 6px 12px 4px; }

/* ------------------------------------------------------------ estratégias, peerings e equipamentos */
.strat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.strat-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; text-align: left; font: inherit; color: inherit;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.strat-card:hover:not(:disabled) { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
.strat-card:disabled { cursor: default; opacity: .85; }
.strat-card .sc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); grid-row: span 2; }
.strat-card .sc-ic svg { width: 19px; height: 19px; }
.strat-card .sc-t { display: grid; gap: 3px; min-width: 0; } .strat-card .sc-t b { font-size: 14.5px; } .strat-card .sc-t span { color: var(--muted); font-size: 12.8px; line-height: 1.4; }
.strat-card .sc-n { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.strat-choices { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.peer-pick { display: grid; gap: 6px; }
.pp-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: grid; gap: 8px; }
.pp-row + .pp-row { margin-top: 0; }
.pp-comm { padding-left: 48px; }
.pp-comm select, .pp-comm input { width: 100%; }
.comm-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) minmax(120px, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 760px) { .comm-row { grid-template-columns: 1fr auto; } .comm-row [data-c="value"], .comm-row [data-c="label"] { grid-column: 1; } .pp-comm { padding-left: 0; } }
.st-result { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.st-result pre { margin-top: 8px; }
.chip.off { background: var(--surface-3); color: var(--faint); text-decoration: line-through; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.info { background: var(--info-soft); color: var(--info); }

/* ------------------------------------------------------------ tráfego limpo × suspeito (gráfico empilhado) */
.schart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 220px auto; gap: 4px 10px; }
.sc-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; padding: 0 0 2px; }
.sc-plot { position: relative; min-width: 0; border-bottom: 1px solid var(--line-strong); }
.sc-plot svg { width: 100%; height: 100%; display: block; }
.sc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.sc-cursor { stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.sc-x { grid-column: 2; position: relative; height: 18px; font-size: 12px; color: var(--faint); }
.sc-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sc-x span:first-child { transform: none; } .sc-x span:last-child { transform: translateX(-100%); }
.sc-tip { position: absolute; top: 8px; z-index: 5; display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #1c1530; color: #f1edff;
  font-size: 12.5px; box-shadow: var(--shadow-lg); pointer-events: none; min-width: 210px; }
.sc-tip span { display: flex; align-items: center; gap: 6px; } .sc-tip b { margin-left: auto; } .sc-tip > b { margin: 0 0 2px; }
.sc-tip i { width: 9px; height: 9px; border-radius: 3px; flex: none; } .sc-tip .muted { color: #b9b2d6; }
.share-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 14px; background: var(--surface-3); }
.share-bar i { display: block; height: 100%; }
.q-chart:fullscreen, .q-chart.pseudo-fs { background: var(--surface); padding: 20px; overflow: auto; }
.q-chart:fullscreen .schart, .q-chart.pseudo-fs .schart { grid-template-rows: calc(100dvh - 230px) auto; }
.q-chart.pseudo-fs { position: fixed; inset: 0; z-index: 90; border-radius: 0; }
.fs-toggle { margin-left: 4px; }
.q-list { display: grid; padding: 6px 8px; }
.q-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(60px, .9fr) auto; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 10px; color: inherit; }
a.q-row:hover { background: var(--surface-3); text-decoration: none; }
.q-bar { display: flex; } .q-bar i { min-width: 0 !important; border-radius: 0 !important; }
.asn-seg { margin: 4px 16px 0; }
.asn-seg button { padding: 4px 10px; font-size: 12.5px; }
@media (max-width: 640px) { .schart { grid-template-rows: 170px auto; } .q-row, .fx-row { grid-template-columns: minmax(0, 1fr) auto; } .q-row .fx-bar, .fx-row .fx-bar { display: none; } }

/* ------------------------------------------------------------ celular: barra superior some ao rolar para baixo */
@media (max-width: 960px) {
  .mobilebar { transition: transform .22s ease, box-shadow .22s ease; will-change: transform; }
  .app.mb-hide .mobilebar { transform: translateY(-100%); }
  .app.mb-shadow .mobilebar { box-shadow: 0 6px 18px rgba(12, 8, 22, .08); }
}
@media (prefers-reduced-motion: reduce) { .mobilebar { transition: none; } }

/* ------------------------------------------------------------ trueiSP (powered by) */
.trueisp { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 700; }
.trueisp img { width: 22px; height: 22px; border-radius: 50%; display: block; flex: none; }
.trueisp b { font-weight: 750; letter-spacing: -.01em; } .trueisp b span { color: #7c4dff; }
.powered .trueisp img { width: 30px; height: 30px; box-shadow: 0 0 0 2px #ece6ff; } .powered .trueisp b { color: #17142b; font-size: 15px; }
[data-theme="dark"] .brand-pw .trueisp b span { color: #a78bfa; }
.brand-txt .brand-pw { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.brand-pw .trueisp { gap: 4px; } .brand-pw .trueisp img { width: 16px; height: 16px; } .brand-pw .trueisp b { color: var(--side-text); font-size: 12px; }

/* ------------------------------------------------------------ meu perfil */
.modal-section > p.pf-warn { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; padding: 8px 12px; border-radius: 10px; font-size: 13px;
  background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.pf-warn svg { width: 16px; height: 16px; color: var(--warn); flex: none; margin-top: 1px; }
.modal-section h3 svg { width: 16px; height: 16px; color: var(--accent-text); }
#pf-pw .pw-meter { margin-top: 2px; }

/* ------------------------------------------------------------ assistente de IA: provedores em dois grupos */
.ai-groups { display: grid; gap: 18px; }
.ai-groups .sub-h { margin-bottom: 10px; flex-wrap: wrap; } .ai-groups .sub-h .muted { font-weight: 500; }
.ai-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .ai-cards { grid-template-columns: 1fr; } }
.ai-choice { padding: 13px 14px; gap: 4px; }
.ai-choice h3 { font-size: 14px; }
.ai-choice h3 .svc-ico { width: 26px; height: 26px; border-radius: 7px; }
.ai-choice h3 .svc-ico svg { width: 15px; height: 15px; }
.ai-choice p { font-size: 12.5px; line-height: 1.4; }
.ai-choice h3 .svc-ico img { width: 18px; height: 18px; }

/* ------------------------------------------------------------ estratégias em dois grupos: descarte e mitigação em nuvem */
.strat-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .strat-groups { grid-template-columns: 1fr; } }
.strat-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); display: grid; align-content: start; }
.sg-h { display: flex; gap: 12px; align-items: flex-start; }
.sg-h h2 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.sg-h p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sg-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.sg-ic svg { width: 18px; height: 18px; }
.sg-ic.discard { background: linear-gradient(135deg, #d22a4c, #f2557a); }
.sg-ic.cloud { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.strat-group .strat-grid { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 640px) { .strat-group .strat-grid { grid-template-columns: 1fr; } }
.strat-pick { display: grid; gap: 18px; }
.strat-pick .strat-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .strat-pick .strat-choices { grid-template-columns: 1fr; } }
.mcp-info { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); font-size: 13px; }
.mcp-info > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.mcp-info .lbl { color: var(--muted); font-weight: 600; }
.mcp-info .mono { word-break: break-all; }
@media (max-width: 640px) { .mcp-info > div { grid-template-columns: 1fr; gap: 2px; } }
a.fx-row { color: inherit; text-decoration: none !important; }

 

.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 1100px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .int-card { padding: 10px; gap: 6px 8px; } .int-t span { display: none; } .int-t b { font-size: 13px; } .int-logo { width: 32px; height: 32px; } }
.int-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.int-card:hover { border-color: var(--accent-line); }
.int-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.int-card .badge { grid-column: 2; justify-self: start; }
.int-t { display: grid; gap: 2px; min-width: 0; } .int-t b { font-size: 14.5px; } .int-t span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.int-logo { width: 40px; height: 40px; border-radius: 11px; grid-row: span 2; }
.int-logo img { width: 24px; height: 24px; border-radius: 6px; }
.int-logo.mono-ic svg { width: 20px; height: 20px; }
.ch-h .int-logo { grid-row: auto; }
.ev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } }
.channel .sub-h { margin-top: 18px; }
.int-pick { display: grid; gap: 8px; margin-top: 8px; }
.int-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.int-opt input { width: 18px; height: 18px; min-height: 0; flex: none; }
.int-opt .int-logo { width: 32px; height: 32px; }

/* ------------------------------------------------------------ celular: cabeçalho compacto (mais espaço para o conteúdo da página) */
@media (max-width: 960px) {
  .mobilebar { height: 50px; }
  .page-head { gap: 10px; padding: 10px var(--gutter); margin-bottom: 14px; }
  .page-head .crumb, .page-head .lead { display: none; }
  
  .page-head h1 { font-size: 18px; }
  
  
  .page-actions { gap: 6px; }
  .hbtn { width: 38px; height: 38px; }
  .view-tabs { margin-top: -6px; }
}

/* pacote de integração de IA */
.pkg-box { display: grid; gap: 12px; justify-items: start; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; padding: 14px; }
.pkg-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
@media (max-width: 1100px) { .pkg-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pkg-items { grid-template-columns: 1fr; } }
.pkg-item { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px; min-width: 0; }
.pkg-item b { display: block; font-size: 13px; } .pkg-item small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-item > span:last-child { min-width: 0; }
.pkg-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.pkg-ic svg { width: 16px; height: 16px; }
.q-item + .q-item { border-top: 1px solid transparent; }
.q-row.clickable { cursor: pointer; }
.q-row.clickable:hover, .q-row.clickable:focus-visible { background: var(--surface-3); outline: none; }
.q-chev { width: 14px !important; height: 14px !important; margin-right: 4px; vertical-align: -2px; transition: transform .15s; color: var(--faint); }
.q-row.open .q-chev { transform: rotate(90deg); }
.q-src { margin: 2px 6px 10px 28px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.q-src-h { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.q-src .fx-row { padding: 7px 8px; }
.talk-table td { vertical-align: middle; }
.talk-table .link-btn.mono { font-size: 12.5px; }
.talk-arrow { width: 18px; color: var(--faint); padding-left: 0 !important; padding-right: 0 !important; }
.talk-arrow svg { width: 14px; height: 14px; }
#fx-live.on { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { #fx-live.on { animation: none; } }
.strat-group.wide { grid-column: 1 / -1; }
.strat-group .strat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .strat-group .strat-grid.three { grid-template-columns: 1fr; } }
.sg-ic.filter { background: linear-gradient(135deg, #0b8d61, #34d399); }
a.strat-card { text-decoration: none !important; color: inherit; }

/* Catálogo de serviços */
.cat-how { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 13.5px; }
.cat-how svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-card { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.cat-h { display: flex; gap: 10px; align-items: center; min-width: 0; } .cat-n { display: grid; gap: 4px; justify-items: start; min-width: 0; } .cat-n b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-asns { display: flex; flex-wrap: wrap; gap: 4px; } .cat-asns .chip { font-size: 12px; }
.cat-reqs { display: grid; gap: 6px; }
.cat-req { display: grid; grid-template-columns: 16px auto minmax(0, 1fr); gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.cat-req svg { width: 14px; height: 14px; color: var(--accent); } .cat-req b { color: var(--text); font-weight: 600; }
.cat-req span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-card.pg-hide { display: none; }

/* Armazenamento (Saúde da plataforma) */
.disk-meter .dm-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .disk-meter .dm-h b { font-size: 22px; }
.dm-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.dm-bar span { display: block; height: 100%; border-radius: 6px; background: var(--ok, #1baf7a); }
.disk-meter.warn .dm-bar span { background: var(--warn, #eda100); } .disk-meter.bad .dm-bar span { background: var(--bad, #d64545); }
.st-list { display: grid; gap: 6px; margin-top: 12px; }
.st-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
/* 1.4.8p: peso no ClickHouse (Saúde da plataforma › armazenamento) */
.chl { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .chl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .chl-h b { font-size: 13px; white-space: nowrap; } .chl .st-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chl-e { margin: 12px 0 0; }
.st-bar { height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; } .st-bar span { display: block; height: 100%; background: var(--series-1, #2a78d6); }

/* Assistente: aplicar com política gerada ou plano próprio */
.apply-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.apply-seg label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.apply-seg label svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.apply-seg label span { display: grid; } .apply-seg small { color: var(--muted); font-size: 12px; }
.apply-seg label.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .apply-seg label.on svg { color: var(--accent); }
@media (max-width: 560px) { .apply-seg { grid-template-columns: 1fr; } }

.int-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.int-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong, #b8b4c8); }
.int-st.on { color: var(--ok-text, #138a5e); } .int-st.on::before { background: var(--ok, #1baf7a); }

 

/* Equipamentos: linha clicável e detalhe */
tr.row-link { cursor: pointer; } tr.row-link:hover td { background: var(--accent-soft); }
tr.row-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd-head { display: flex; gap: 12px; align-items: center; } .rd-head > div { display: grid; }

/* v4.4: três grupos na mesma linha, cartões compactos empilhados */
.strat-group { padding: 14px; gap: 10px; }
.strat-group .strat-card { padding: 11px 12px; gap: 2px 10px; align-items: center; }
.strat-group .strat-card .sc-ic { width: 32px; height: 32px; border-radius: 9px; }
.strat-group .strat-card .sc-ic svg { width: 16px; height: 16px; }
.strat-group .strat-card .sc-t b { font-size: 13.5px; }
.strat-group .strat-card .sc-t span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strat-group .sg-h p { font-size: 12.5px; }

/* ===== Centro de operações: painel personalizável ===== */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row; align-items: start; }   /* v1.4.2: cada bloco do tamanho do conteúdo (sem bloco esticado com espaço vazio) */
@media (max-width: 1099px) { .dash { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 699px) { .dash { grid-template-columns: 1fr; } .dash .w { grid-column: 1 / -1 !important; } }
.w { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; display: flex; flex-direction: column; box-shadow: var(--shadow-sm, none); }
.w-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 48px; }
.w-h h2 { font-size: 14px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w-h .h-ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.w-b { padding: 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; } .w-b.w-center { justify-content: center; }
.w-b .flush, .w-b .table-wrap { margin: -14px; }
.w-bare { background: transparent; border: 0; box-shadow: none; }
.w-bare > .w-h { display: none; } .w-bare > .w-b { padding: 0; }
.w-wait { display: grid; place-items: center; min-height: 120px; }
.dash.editing .w { border-style: dashed; border-color: var(--accent-line); cursor: grab; }
.dash.editing .w-bare { background: var(--surface); } .dash.editing .w-bare > .w-h { display: flex; } .dash.editing .w-bare > .w-b { padding: 14px; }
.w-off { opacity: .45; }
.w-drag { cursor: grab; color: var(--muted); display: inline-flex; } .w-drag svg { width: 16px; height: 16px; }
.w-h [contenteditable="true"] { outline: 1px dashed var(--accent-line); border-radius: 6px; padding: 1px 6px; cursor: text; }
.w-sz { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-tip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dash-tip svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--accent); }
.dash-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dp-i { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.dp-i:hover { border-color: var(--accent); } .dp-i svg { width: 18px; height: 18px; color: var(--accent); } .dp-i span { font-size: 12px; color: var(--muted); }
.w-bars { display: grid; gap: 8px; }
.w-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 13px; }
a.w-bar:hover .wb-l { color: var(--accent-text); }
.wb-l { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wb-l small { color: var(--muted); font-size: 12px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.wb-l .svc-ico { width: 20px; height: 20px; }
.wb-t { height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; } .wb-t span { display: block; height: 100%; border-radius: 5px; }
.w-bar b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.w-donut, .w-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; display: block; color: inherit; text-decoration: none; }
.donut { width: 100%; height: 100%; transform: rotate(0deg); }
.wd-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .wd-c b { font-size: 22px; } .wd-c span { font-size: 12px; color: var(--muted); }
.w-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; }
.w-leg span { display: inline-flex; align-items: center; gap: 6px; } .w-leg i { width: 9px; height: 9px; border-radius: 3px; } .w-leg b { margin-left: 2px; }
.w-hist { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; }
.wh-c { display: flex; flex-direction: column-reverse; height: 100%; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.wh-m { background: var(--q-attack); } .wh-o { background: var(--q-suspect); }
.w-hx { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

.w-li { align-items: center; text-decoration: none; font-size: 13px; }
 .w-li .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.w-li .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--bad, #d64545); } .w-li .dot.ok { background: var(--ok, #1baf7a); }
.w-big { display: grid; justify-items: center; } .w-big b { font-size: 28px; } .w-big span { font-size: 12px; color: var(--muted); }
.w-meter { display: grid; grid-template-columns: 70px minmax(0, 1fr) 44px; gap: 4px 10px; align-items: center; font-size: 13px; }
.w-meter small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; margin-top: -2px; }
.wm-t { height: 9px; background: var(--line); border-radius: 5px; overflow: hidden; } .wm-t span { display: block; height: 100%; background: var(--ok, #1baf7a); }
.wm-t span.warn { background: var(--warn, #eda100); } .wm-t span.bad { background: var(--bad, #d64545); }
.w-note { width: 100%; min-height: 110px; font: inherit; }
p.center { text-align: center; }
.w-b .cards { margin: 0; }

/* Saúde da plataforma */
.cards.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1300px) { .cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mem-cell { display: grid; grid-template-columns: minmax(60px, 1fr) auto; gap: 8px; align-items: center; min-width: 140px; }
.kv-compact .wide { grid-column: 1 / -1; }
.logs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .logs-layout { grid-template-columns: 1fr; } .logs-nav { display: flex; overflow-x: auto; } }
.logs-nav { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.logs-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: inherit; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.logs-nav a:hover { background: var(--surface-2); } .logs-nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.logs-nav .dot, .w-li .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--bad, #d64545); } .logs-nav .dot.ok { background: var(--ok, #1baf7a); }
.lg-bar { margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
#lg-wrap .logbox { min-height: 55vh; }

/* Políticas: regras em cartões */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.rule-card .sub { display: block; color: var(--muted); font-size: 12px; }
.rule-card { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rc-h { display: flex; gap: 12px; align-items: center; } .rc-h b { font-size: 15px; margin-right: 6px; }
.rc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; }
.rc-k { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; } .rc-k svg { width: 14px; height: 14px; }
.blk-bar.over .wb-l .mono { color: var(--bad-text, #c0263d); font-weight: 700; }
.subnav { display: flex; gap: 6px; flex-wrap: nowrap; scrollbar-width: none; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subnav button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.subnav button svg { width: 15px; height: 15px; } .subnav button.on { background: var(--surface); color: var(--accent-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-grid .int-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 12px; gap: 10px; }
.ch-grid .int-t { overflow: hidden; } .ch-grid .int-t b { white-space: nowrap; }
.ch-grid .int-st { white-space: nowrap; }
@media (max-width: 560px) { .ch-grid .int-t span.int-st { display: inline-flex; } }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav a svg { width: 15px; height: 15px; } .subnav a.on { background: var(--surface); color: var(--accent-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.h-ic-box.sm { width: 28px; height: 28px; border-radius: 8px; } .h-ic-box.sm svg { width: 14px; height: 14px; }
.act-d { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1650px) { .cards.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-hist { flex: 1; min-height: 150px; }
/* ---------------------------------------------------------------- NetOps Core */
.nav-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8b87a8); padding: 14px 14px 4px; opacity: .8; }
.nav-label:first-child { padding-top: 4px; }
.app.side-collapsed .nav-label { visibility: hidden; height: 8px; padding: 0; }
.view.is-module { padding: 0; }
.core-frame-wrap { height: 100vh; height: 100dvh; }
.core-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
@media (max-width: 960px) { .core-frame-wrap { height: calc(100dvh - 58px); } }

.src-badge { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, #6c47ff 16%, transparent); color: #6c47ff; font-weight: 600; margin-left: 6px; }
:root[data-theme="dark"] .src-badge { color: #b9a6ff; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; font-size: 13px; }
.kv-grid > div { display: grid; gap: 2px; min-width: 0; }
.kv-grid .lbl { color: var(--muted); font-weight: 600; font-size: 12px; }
.kv-grid .mono { word-break: break-all; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 4px 2px 10px; }
.sec-h svg { color: var(--accent); }
.prov-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 6px 1px 0; vertical-align: middle; flex: none; }
.q-if { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.q-if .mono { font-size: 12px; }
/* v4.5: gráfico expandido (tela cheia) com fundo do tema: antes ficava transparente/preto fora do Composição do tráfego */
:fullscreen:not(iframe), .pseudo-fs { background: var(--surface) !important; color: var(--text); }
:-webkit-full-screen:not(iframe) { background: var(--surface) !important; color: var(--text); }
iframe:fullscreen { background: #fff; }
::backdrop { background: var(--bg); }
.panel:fullscreen, .panel-b:fullscreen, .panel.pseudo-fs, .panel-b.pseudo-fs { padding: 20px; overflow: auto; }
.pseudo-fs { position: fixed !important; inset: 0; z-index: 90; border-radius: 0 !important; overflow: auto; }
/* ---- Assistente IA (@noc e @soc) ---- */
.panel.agt { display: flex; flex-direction: column; min-height: 520px; }
.agt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.agt-top .seg button { display: inline-flex; align-items: center; gap: 6px; } .agt-top .seg svg { width: 15px; height: 15px; }
.agt-list { flex: 1; overflow: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 330px); min-height: 320px; }
.agt-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 460px; text-align: center; color: var(--muted); }
.agt-empty svg { width: 30px; height: 30px; color: var(--accent); } .agt-empty b { color: var(--text); }
.agt-m { display: flex; gap: 9px; max-width: 86%; } .agt-m.me { align-self: flex-end; } .agt-m p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.agt-m.me p { background: var(--accent); color: var(--on-accent); padding: 9px 12px; border-radius: 14px 14px 4px 14px; }
.agt-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.agt-av svg { width: 16px; height: 16px; }
.agt-b { background: var(--surface-2); border: 1px solid var(--line); padding: 9px 12px; border-radius: 14px 14px 14px 4px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.agt-b > small { color: var(--muted); font-weight: 600; font-size: 12px; }
.agt-acts { display: flex; flex-wrap: wrap; gap: 6px; } .agt-acts .btn.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.agt-done { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); font-size: 13px; } .agt-done svg { width: 14px; height: 14px; }
.agt-dots { display: flex; gap: 4px; padding: 4px 0; } .agt-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: agtdot 1.2s infinite; }
.agt-dots i:nth-child(2) { animation-delay: .2s; } .agt-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes agtdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.agt-f { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.agt-f textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; }
.agt-ch { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 640px; }
.agt-ch figcaption { display: flex; flex-direction: column; margin-bottom: 4px; } .agt-ch figcaption small { color: var(--muted); font-size: 12px; }
.agt-ch svg { display: block; width: 100%; height: auto; } .agt-ch img { display: block; width: 100%; border-radius: 8px; }
.agt-ch .g { stroke: var(--line); } .agt-ch .t { fill: var(--muted); font-size: 11.5px; } .agt-ch .l { fill: none; stroke-width: 2; }
.agt-ch .l.s0 { stroke: var(--accent); }  .agt-ch .l.s2 { stroke: var(--warn); } .agt-ch .p { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.agt-leg { display: flex; gap: 12px; font-size: 12px; color: var(--muted); } .agt-leg i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.agt-leg i.s0 { background: var(--accent); }  .agt-leg i.s2 { background: var(--warn); }
.agt-mem { display: flex; flex-direction: column; margin-top: 10px; } .agt-memr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .agt-memr span:nth-child(2) { flex: 1; }
@media (max-width: 640px) { .agt-m { max-width: 100%; } .agt-list { max-height: none; } }
.agt-f textarea { font: inherit; font-size: 14px; padding: 10px 12px; }
.agt-topo { width: 100%; height: 320px; display: block; } .agt-topo line { stroke: var(--line-strong); stroke-width: 2.5; } .agt-topo line.bad { stroke: var(--bad); stroke-width: 4; } .agt-topo line.focus { stroke: var(--accent); stroke-width: 4; }
.agt-topo circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2.5; } .agt-topo .up circle { stroke: var(--ok); } .agt-topo .warn circle { stroke: var(--warn); fill: var(--warn-soft); } .agt-topo .bad circle { stroke: var(--bad); fill: var(--bad-soft); } .agt-topo .focus circle { stroke: var(--accent); stroke-width: 4; }
.agt-topo text { fill: var(--text); font-size: 12px; font-weight: 600; }

/* ===== v4.8 (NetOps Core 1.3): módulos no menu, integração, bloqueio e chat de suporte ===== */
.nav-mod { display: grid; border-radius: 12px; }
.nav-mod-item .nav-mod-ic { flex: none; }
 

.nav-mod.open > .nav-mod-item .chev { transform: rotate(90deg); }
.nav-mod.active > .nav-mod-item { color: var(--accent-text); font-weight: 600; }

.gate { max-width: 860px; margin: 8px auto; display: grid; gap: 16px; }
.gate-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--accent-line); }
.gate-hero h2 { margin: 0 0 6px; font-size: 20px; } .gate-hero p { margin: 0 0 12px; line-height: 1.55; max-width: 620px; }
.gate-logo { width: 54px; height: 54px; border-radius: 14px; flex: none; } .gate-logo.ic { display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); } .gate-logo.ic svg { width: 26px; height: 26px; }
.gate.lock .gate-hero { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-color: var(--line); }
.gate-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); } .gate-steps b { color: var(--text); }
.sup-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border: 0; cursor: pointer; display: grid; place-items: center; }
.sup-fab:hover { transform: translateY(-2px); } .sup-fab svg { width: 24px; height: 24px; } 
.sup-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.sup-panel { position: fixed; z-index: 61; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; }
.sup-h { display: flex; align-items: center; }
.sup-ht { display: grid; } .sup-ht small { font-size: 12px; } .sup-ai { color: var(--ok); font-weight: 600; }
.sup-banner { padding: 8px 12px; font-size: 12.5px; background: var(--warn-soft); color: var(--text); display: flex; gap: 6px; align-items: flex-start; } .sup-banner svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.sup-list { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.sup-m { display: flex; } .sup-m.me { justify-content: flex-end; }
.sup-b { padding: 8px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.sup-m.me .sup-b { background: var(--accent); color: var(--on-accent); border-color: transparent; border-bottom-right-radius: 4px; }
.sup-m.bot .sup-b, .sup-m.team .sup-b { border-bottom-left-radius: 4px; } .sup-m.team .sup-b { border-color: var(--accent-line); }
.sup-b p { margin: 2px 0; word-break: break-word; } .sup-au { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.sup-ag { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); } .sup-ag.soc { background: var(--bad-soft); color: var(--bad); } .sup-ag.noc { background: var(--info-soft); color: var(--info); } .sup-ag.team { background: var(--ok-soft); color: var(--ok); }
.sup-at { display: block; text-align: right; font-size: 11.5px; opacity: .6; } .sup-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; } .sup-acts small { width: 100%; }
.sup-topo { margin-top: 6px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.sup-empty { margin: auto; text-align: center; display: grid; gap: 6px; justify-items: center; color: var(--muted); padding: 20px; } .sup-empty svg { width: 30px; height: 30px; color: var(--accent); } .sup-empty b { color: var(--text); }
.sup-f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); } .sup-f textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 11px; border-radius: 12px; }
.sup-send { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.sup-ment { position: absolute; left: 10px; right: 10px; bottom: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; max-height: 220px; overflow: auto; }
.sup-ment button { display: flex; gap: 10px; text-align: left; padding: 8px 12px; border: 0; background: none; color: var(--text); cursor: pointer; } .sup-ment button:hover { background: var(--surface-3); } .sup-ment span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .sup-fab { right: 14px; bottom: 14px; } .sup-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: calc(100dvh - 100px); } }
/* v4.8: widget expandido com fundo opaco e cortina atrás (antes o fundo ficava transparente e misturava as telas) */
/* ===== v4.8: Central de Operações (todos os módulos) ===== */
.w { container-type: inline-size; }
@container (max-width: 980px) { .cards.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container (max-width: 560px) { .cards.k6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@container (max-width: 1000px) {
  .pipeline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); } .stage::after { display: none; }
}
@container (max-width: 560px) { .pipeline { grid-template-columns: 1fr !important; } }
.icard .l { white-space: normal; line-height: 1.2; }
.modts { display: grid; gap: 12px; }
@container (max-width: 900px) { .modts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) { .modts { grid-template-columns: 1fr; } }
.modt { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); min-width: 0; overflow: hidden; }
.modt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ok); } .modt.warn::before { background: var(--warn); } .modt.bad::before { background: var(--bad); } .modt.info::before { background: var(--info); } .modt.off::before { background: var(--line-strong); }
.modt:hover { text-decoration: none; border-color: var(--accent-line); background: var(--surface-3); }
.modt img { width: 40px; height: 40px; border-radius: 11px; flex: none; } 
.modt-b { display: grid; min-width: 0; line-height: 1.25; } .modt-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.modt-b b { font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .modt-b b small { font-size: 12px; font-weight: 600; color: var(--muted); }
.modt-b > small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 
.mini-k { display: flex; gap: 8px; flex-wrap: wrap; } .mini-k span { flex: 1; min-width: 90px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--muted); display: grid; } .mini-k b { font-size: 18px; color: var(--text); }
.w-list { display: grid; gap: 6px; } .w-li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text); min-width: 0; }
.w-li:hover { text-decoration: none; background: var(--surface-3); } .w-li .dot { margin-top: 6px; } .w-li-b { display: grid; min-width: 0; } .w-li-b b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .w-li-b small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.w-okline { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 13px; } .w-okline svg { width: 16px; height: 16px; }
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .tf-col h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@container (max-width: 760px) { .tf-grid { grid-template-columns: 1fr; } }

/* v4.8: plano de communities, inteligência de ameaças, regras de CDN/peering/PNI */
.cp-list { display: grid; gap: 6px; }
.cp-row { display: grid; grid-template-columns: minmax(130px, 170px) 1fr 96px auto; gap: 8px; align-items: center; }
.cp-row input { width: 100%; min-height: 34px; }
.cp-v { font-size: 13px; }
.cp-d { min-width: 0; overflow-wrap: anywhere; }
.cp-g .panel-b + .panel-b { padding-top: 0; }
.linkbtn { background: none; border: 0; padding: 0 2px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; opacity: .85; }
.linkbtn:hover { opacity: 1; }
.rg-rec { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rg-rec p { margin: 0; line-height: 1.45; }
.rg-rec .badge { justify-self: start; }
@media (max-width: 640px) {
  .cp-row { grid-template-columns: 1fr auto auto; }
  .cp-row .cp-d { grid-column: 1 / -1; order: 3; }
  .rg-rec { grid-template-columns: 1fr; }
}
.cp-p { display: flex; justify-content: flex-end; }
.cp-new input { width: 120px; flex: 0 0 auto; } .cp-new select { width: auto; flex: 0 0 auto; }
details.cp-g > summary { flex-wrap: wrap; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .form-grid.four { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cp-row .cp-p { justify-content: flex-start; } .cp-row .cp-p:empty { display: none; } }
.seg a { font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.stack > .seg { justify-self: start; width: max-content; max-width: 100%; }
@media (max-width: 640px) { .callout { flex-wrap: wrap; } .callout .c-body { flex-basis: calc(100% - 40px); } .callout .c-actions { flex-basis: 100%; padding-left: 32px; } }

/* v4.8: IAs liberadas no botão do chat */
.sup-fab.hidden { display: none; }

 .icon-btn.xs { width: 24px; height: 24px; } .icon-btn.xs svg { width: 13px; height: 13px; }
.ov-sec { display: grid; gap: 4px; } .ov-v { display: flex; align-items: center; gap: 6px; }
.ov-v code { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.ov-notes { margin: 0; white-space: pre-wrap; }
.k-accent { outline: 2px solid var(--accent-line); }
/* v4.8: menus dos módulos (mesmo padrão do FlowGuard) */

/* v4.8: ação em regras */
.rr-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 110px minmax(150px, 1fr) minmax(220px, 1.6fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.rr-row + .rr-row { margin-top: 8px; } .rr-row .field { margin: 0; } .rr-x { margin-top: 24px; }
.rr-cw { display: flex; gap: 6px; } .rr-cw input { flex: 1; min-width: 0; } .rr-c.dim { opacity: .5; } .rr-d { min-height: 0; }
.rr-sum { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cpk-l { display: grid; gap: 4px; max-height: 52vh; overflow: auto; }
.cpk-i { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cpk-i:hover { border-color: var(--accent-line); } .cpk-i small { display: block; color: var(--muted); font-size: 12px; } .cpk-i b { font-weight: 500; }
@media (max-width: 860px) { .rr-row { grid-template-columns: 1fr 1fr; } .rr-row .field:first-child, .rr-c { grid-column: 1 / -1; } .rr-x { margin-top: 0; justify-self: end; grid-column: 1 / -1; } .cpk-i { grid-template-columns: 1fr; } }

/* v1.3: backup completo */
.fbk { margin-bottom: 16px; }
.fbk-b { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 14px 18px 16px; flex-wrap: wrap; }
.fbk-in { flex: 1 1 100%; min-width: 0; }
.fbk-in > b { display: block; margin-bottom: 8px; font-size: 13px; }
.fbk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fbk-chips .chip { font-family: inherit; font-size: 12.5px; }
.fbk-in p { margin: 4px 0; }
.fbk-in .i-inline { width: 13px; height: 13px; vertical-align: -2px; }
.fbk-wait { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 8, 20, .55); display: grid; place-items: center; }
.fbk-wait-b { background: var(--surface); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.fbk-wait-b svg { width: 28px; height: 28px; color: var(--ok); }
.fbk-wait-b .spin { width: 26px; height: 26px; }

/* v1.3: primeira subida: integração com o NetOps antes do login */
.login-form.fr .fr-steps { margin: 0 0 14px; padding-left: 18px; color: var(--text-2, var(--muted)); font-size: 13.5px; line-height: 1.5; }
.login-form.fr .fr-steps li { margin-bottom: 4px; }
.login-form.fr .btn.ghost { margin-top: 8px; }
.login-form .form-error .fr-ok { color: var(--ok); display: block; line-height: 1.45; }

/* ===================================================================== v1.4 (versão final) */
/* Chat de Suporte no mesmo padrão do chat do NetOps: cabeçalho em gradiente, avatares, balões e campo enxuto */
.sup-fab { background: linear-gradient(135deg, #6c47f5, #c04ae6); color: #fff; box-shadow: 0 12px 30px rgba(108, 71, 245, .45); border-radius: 18px; }
.sup-panel { border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px rgba(20, 12, 60, .32); }

.sup-h { gap: 8px; padding: 10px 10px 10px 14px; color: #fff; background: linear-gradient(135deg, #5a3ef0, #a845e6); border-bottom: 0; }
.sup-h .icon-btn { color: #fff; background: transparent; border-color: transparent; } .sup-h .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.sup-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; } .sup-logo svg { width: 18px; height: 18px; }
.sup-ht { flex: 1; min-width: 0; } .sup-ht b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-ht small { color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sup-h .sup-ai { color: #bbf7d0; }
.sup-m { gap: 7px; align-items: flex-end; } .sup-m.me { justify-content: flex-end; }
.sup-b { max-width: 82%; min-width: 0; }
.sup-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6c47f5, #c04ae6); margin-bottom: 16px; }
.sup-av svg { width: 15px; height: 15px; } .sup-av.team { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.sup-av.ag { background: linear-gradient(135deg, #7c3aed, #2563eb); } .sup-av.ag.soc { background: linear-gradient(135deg, #ef4444, #f97316); } .sup-av.ag.noc { background: linear-gradient(135deg, #0ea5e9, #6366f1); } .sup-av.ag.helpdesk { background: linear-gradient(135deg, #10b981, #059669); }
.sup-av.sm { width: 24px; height: 24px; margin: 0; font-size: 11.5px; position: relative; } .sup-av.sm.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.sup-mt { font-weight: 600; color: var(--accent-text, var(--accent)); } .sup-m.me .sup-mt { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sup-ment button { align-items: center; } .sup-ment b { white-space: nowrap; } .sup-ment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sup-f { align-items: flex-end; }
/* o texto de ajuda do campo não quebra a tela no celular: uma linha só, com reticências */
.sup-f textarea { min-width: 0; font-size: 14px; line-height: 1.4; }
.sup-f textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-f textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .sup-panel, .sup-panel.big { right: 0; left: 0; bottom: 0; height: 100dvh; } .sup-b { max-width: 86%; } .sup-f textarea { font-size: 16px; } }

/* Equipamentos e BGP: as abas viraram as etapas do processo (1 → 4, depois a Estratégia) */
.view-tabs.proc-tabs { gap: 8px; border-bottom: 0; padding-bottom: 2px; counter-reset: none; }
.proc-tabs .vt.pt { flex: 1 1 0; min-width: 170px; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0; white-space: normal; color: var(--text); position: relative; }
.proc-tabs .vt.pt:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 9px; height: 2px; background: var(--line); }
.proc-tabs .vt.pt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.pt-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-3, var(--bg)); color: var(--muted); border: 1px solid var(--line); }
.pt-n svg { width: 15px; height: 15px; } .pt.done .pt-n { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .pt.on .pt-n { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pt.next { border-style: dashed; } .pt.next .pt-n { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.pt-t { display: grid; min-width: 0; line-height: 1.25; } .pt-t b { font-size: 13.5px; } .pt-t small { color: var(--muted); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt.todo .pt-t small { color: var(--warn); }
@media (max-width: 900px) { .proc-tabs .vt.pt { min-width: 150px; flex: none; } .proc-tabs .vt.pt::after { display: none; } }
/* onde cada estratégia vale (por equipamento) e plano por peering */
.sbr-a { margin-bottom: 6px; } .sbr-a:last-child { margin-bottom: 0; } .sbr-a .chips { margin-top: 3px; }
.sbr-t td { vertical-align: top; } .rd-st .sbr-t { margin: 0; }
.bp-t select { min-width: 190px; } .bp-t input { min-width: 180px; } .bp-t td { vertical-align: middle; }
.cp-link { max-width: 220px; font-size: 13px; padding: 5px 8px; }
.own-use .switch { margin: 0; }

/* menu: submenus nunca cortam (reticências + título completo ao passar o mouse); ícones dos módulos maiores;
   módulo desativado só apagado em tons de cinza, sem cadeado */
.nav-subitem { min-width: 0; } .nav-subitem .ns-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.nav-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-mod-item .nav-mod-ic { width: 26px; height: 26px; border-radius: 8px; }
.nav-mod-item { padding-top: 8px; padding-bottom: 8px; }
.nav-mod-item.locked { opacity: .5; filter: grayscale(1); }
.nav-mod-item.locked:hover { opacity: .75; }
.side-collapsed .nav-mod-item .nav-mod-ic { width: 30px; height: 30px; border-radius: 9px; }
.side-collapsed .nav-mod-item { padding: 8px; }

/* Centro de Operações: "Atenção agora" (todos os módulos) e avisos que fecham */
.att-l { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.att-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; border-left: 4px solid var(--info); min-width: 0; }
.att-i:hover { text-decoration: none; border-color: var(--accent-line); } .att-i.bad { border-left-color: var(--bad); } .att-i.warn { border-left-color: var(--warn); }
.att-i img { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.att-b { display: grid; min-width: 0; flex: 1; } .att-b b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .att-b small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-ok { display: flex; gap: 12px; align-items: center; padding: 6px 4px; } .att-ok svg { width: 30px; height: 30px; color: var(--ok); flex: none; padding: 6px; border-radius: 50%; background: var(--ok-soft); }
.att-ok div { display: grid; } .att-ok span { color: var(--muted); font-size: 13px; }
.dismissable .callout { position: relative; } .dz-x { flex: none; }
.warn-list summary { display: flex; align-items: center; gap: 8px; } .warn-list summary .dz-x { margin-left: auto; }
.modts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) !important; }
.modt.off { filter: grayscale(1); opacity: .55; }
/* submenus dentro do módulo (FlowGuard › Mitigação…): menos recuo, cabem inteiros na largura do menu */
 

   
  

/* v1.4: OmniPass simples: atalhos (ícone + nome) agrupados, como um lançador de aplicativos */
.ovw { display: grid; }
.ovs { display: flex; justify-content: flex-end; } .ovs input { max-width: 260px; }
.ovg h3 { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ovtg { display: grid; }
.ovt { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ovt:hover { border-color: var(--accent-line); box-shadow: 0 8px 22px -14px rgba(60, 40, 140, .45); }
.ovt-a { display: flex; align-items: center; width: 100%; border: 0; background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.ovt-a b { font-weight: 600; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; }
.ovt-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ovt-demo { top: 7px; left: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 1px 5px; }
.ov-ico { display: grid; place-items: center; overflow: hidden; flex: none; }
.ov-ico.big { width: 64px; height: 64px; border-radius: 16px; }
.ov-ico img { width: 100%; height: 100%; object-fit: contain; }
.ov-ico.ov-ini { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }

.ovt-act { position: absolute; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.ovt:hover .ovt-act, .ovt:focus-within .ovt-act { opacity: 1; }

.ovt-b { display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.ovt-b:hover { color: var(--accent-text); border-color: var(--accent-line); } 
.ovic-row { display: flex; gap: 14px; align-items: center; } .ov-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {    .ovs input { max-width: none; width: 100%; } }
.app-logo img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }

/* v1.4: celular (navegador e app): módulos na barra de baixo; some a barra de cima com "NetOps Core" e o botão de menu */
.bnav { display: none; }
@media (max-width: 960px) {
  .app .mobilebar { display: none !important; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -16px rgba(30, 20, 80, .5); }
  .bnav::-webkit-scrollbar { display: none; }
  .bn-i { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 600 11.5px/1.1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; min-width: 0; }
  .bn-i img, .bn-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
  .bn-ic svg { width: 22px; height: 22px; }
  .bn-i span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-i.on { color: var(--accent-text); background: var(--accent-soft); }
  .bn-i:not(.on) img { filter: saturate(.75); opacity: .9; }
  .app .view { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .sup-fab { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  .sup-panel { bottom: calc(140px + env(safe-area-inset-bottom)) !important; }
}
/* v1.4: rodapé do painel numa linha só (observação à esquerda, páginas à direita) */
.pf-row { display: flex; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pf-row .panel-f, .pf-row .pager { border-top: 0; } .pf-row .panel-f { flex: 1 1 280px; } .pf-row .pager { margin-left: auto; }
/* v1.4: OmniPass compacto: ícone pequeno + nome numa linha, cabe tudo na tela (categorias mantidas) */
.ovw { gap: 16px; }
.ovg h3 { margin: 0 0 8px; font-size: 12px; }
.ovtg { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.ovt { border-radius: 11px; } .ovt:hover { transform: none; }
.ovt-a { flex-direction: row; justify-content: flex-start; gap: 9px; padding: 8px 10px; border-radius: 11px; }
.ovt-a b { font-size: 13px; text-align: left; -webkit-line-clamp: 1; white-space: nowrap; display: block; flex: 1; min-width: 0; }
.ov-ico { width: 26px; height: 26px; border-radius: 7px; }
.ov-ico.ov-ini { font-size: 13px; } .ov-ico.ov-ini svg { width: 15px; height: 15px; }
.ovt-demo { position: static; margin-left: auto; flex: none; }
.ovt-act { top: 50%; right: 6px; transform: translateY(-50%); border-radius: 9px; padding-left: 4px; }
.ovt-b { width: 26px; height: 26px; border-radius: 8px; } .ovt-b svg { width: 14px; height: 14px; }
@media (hover: none) {  .ovt-a { padding-right: 66px; } }
@media (max-width: 560px) { .ovtg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .ovt-a { padding: 8px; } .ov-ico { width: 24px; height: 24px; } }
/* v1.4: atalhos transparentes (sem caixa), destaque só ao passar o mouse; as ações não cobrem o nome (ele encurta com …) */
.ovt { border: 0; background: transparent; box-shadow: none !important; }
.ovt:hover, .ovt:focus-within { background: var(--surface-3); }
.ovt-act { background: transparent; }
.ovt:hover .ovt-a, .ovt:focus-within .ovt-a { padding-right: 70px; }
.ovt-b { background: var(--surface); }
/* passo a passo do atalho */
.ovwz-st { display: flex; gap: 6px; list-style: none; margin: 0 0 4px; padding: 0; flex-wrap: wrap; }
.ovwz-st li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ovwz-st li span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); font-size: 12px; }
.ovwz-st li.on { background: var(--accent-soft); color: var(--accent-text); } .ovwz-st li.on span { background: var(--accent); color: var(--on-accent); }
.ovk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } @media (max-width: 480px) { .ovk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ovk-b { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ovk-b svg { width: 20px; height: 20px; color: var(--muted); } .ovk-b.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); } .ovk-b.on svg { color: var(--accent-text); }
#ov-sug .ov-ico { width: 18px; height: 18px; display: inline-grid; vertical-align: -4px; margin-right: 4px; }
/* v1.4 Core: widgets de rede da Central de Operações */
.w-sub { text-transform: uppercase; letter-spacing: .04em; }
.mini-k span.bad b { color: var(--bad, #d64545); } .mini-k span.warn b { color: var(--warn, #d08a12); }
.w-li.warn .dot, .dot.warn { background: var(--warn, #d08a12); }
.login-block { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad, #d64545) 10%, transparent); color: var(--text); font-weight: 400; }
.login-block > svg { color: var(--bad, #d64545); width: 20px; height: 20px; } .login-block span { font-size: 13px; color: var(--muted); }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); color: var(--text); }
.pf-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent-text, var(--accent)); }
/* v1.4: login igual ao do NetOps (logo maior, "Powered by" discreto, saudação e rodapé) */
.login-logo img { width: 84px; height: 84px; border-radius: 20px; }
.powered.pw-sm { gap: 8px; font-size: 13px; color: #67637c; margin-top: -4px; } .powered.pw-sm img { width: 20px; height: 20px; border-radius: 50%; }
.powered.pw-sm .pw-l { color: inherit; text-decoration: none; } .powered.pw-sm b { color: #17142b; } .powered.pw-sm em { color: #6c47ff; font-style: normal; }
.login-form .login-hi { margin: 4px 0 -8px; font-size: 14px; }
/* v4.9.1: o menu nunca passa da largura da lateral (antes "Vendas e assinantes" em nowrap alargava o #nav 24px e a lateral
   ganhava rolagem horizontal escondida, que deslocava o menu ao focar um item) */
#nav, .nav-group, .nav-mod, .nav-sub { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.sidebar > * { min-width: 0; }
.nav-item { min-width: 0; }

   /* v1.4.1: seta na mesma coluna dos módulos */
/* v4.9.1: Composição do tráfego ao vivo */
.q-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 6px; font-variant-numeric: tabular-nums; }
.q-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.q-live.on { color: var(--ok, #10b981); font-weight: 600; } .q-live.on i { background: var(--ok, #10b981); animation: qlive 1.6s ease-out infinite; }
@keyframes qlive { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 100% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .q-live.on i { animation: none; } }
/* v4.9.1: selo "ao vivo" no título dos widgets do Centro de Operações */
.w-h .w-lv { margin-left: 8px; font-size: 12px; white-space: nowrap; }
/* v4.9.1: OmniPass: chave e editar só ao passar o mouse (computador) ou pelo botão "…" (celular), sem cobrir o nome */
.ovt-more { display: none; }
@media (hover: none) {
  .ovt-act { opacity: 0 !important; pointer-events: none; } .ovt.open .ovt-act { opacity: 1 !important; pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
  .ovt-more { display: grid; place-items: center; position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
  .ovt-more svg { width: 18px; height: 18px; } .ovt.open .ovt-more { visibility: hidden; } .ovt .ovt-a { padding-right: 40px; }
}
/* v4.9.1: menu inferior só com ícones; o nome aparece num balão ao passar o mouse ou segurar */
@media (max-width: 960px) {
  .bn-i { flex: 1 0 44px; position: relative; padding: 7px 2px; }
  .bn-i .bn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bn-i::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 8px; background: var(--text, #1c1a33); color: var(--surface, #fff); font: 600 12px/1.2 inherit; font-family: inherit; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
  .bn-i:hover::after, .bn-i.tip::after, .bn-i:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
  .bn-i:first-child::after { left: 8px; transform: translate(0, 4px); } .bn-i:first-child:hover::after, .bn-i:first-child.tip::after { transform: translate(0, 0); }
  .bn-i:last-child::after { left: auto; right: 8px; transform: translate(0, 4px); } .bn-i:last-child:hover::after, .bn-i:last-child.tip::after { transform: translate(0, 0); }
  .bnav { overflow: visible; }
}
@media (hover: none) { .bn-i:hover::after { opacity: 0; } .bn-i.tip::after { opacity: 1; } }
/* v1.0.1: título e subtítulo da página em uma linha (sem quebra) */
.page-head h1 { flex-wrap: nowrap; white-space: nowrap; min-width: 0; } .page-head .titles { min-width: 0; }
.page-head h1, .page-head .lead { overflow: hidden; text-overflow: ellipsis; } .page-head .lead { white-space: nowrap; }
.panel-h .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; } .panel-h h2 { white-space: nowrap; }
.panel-h > .btn, .panel-h .spacer ~ * { flex: none; }
.page-head h1 { display: block; } .chips .chip, span.chip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard .ib { min-width: 0; } .icard .ib .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .panel-h:has(.spacer) .sub { display: none; } }
/* v1.4.1: chat de Suporte · sem cobrir os botões do topo, etiqueta só "IA", marcações nas respostas e /new */
.sup-panel { height: min(640px, calc(100vh - 170px)); } 
.sup-ag.ai { background: color-mix(in srgb, var(--accent, #7c3aed) 14%, transparent); color: var(--accent, #7c3aed); }
.sup-tx p { margin: 0 0 6px; } .sup-tx p:last-child { margin-bottom: 0; } .sup-tx ul { margin: 2px 0 6px; padding-left: 18px; } .sup-tx li { margin: 2px 0; } .sup-tx h4 { margin: 6px 0 4px; font-size: 13.5px; } .sup-tx .mono { font-size: 12px; padding: 0 4px; border-radius: 4px; background: rgba(127, 127, 127, .14); }
.sup-new { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; font-size: 12px; color: var(--muted, #6b7280); } .sup-new::before, .sup-new::after { content: ""; flex: 1; height: 1px; background: var(--border, rgba(127,127,127,.25)); } .sup-new svg { width: 14px; height: 14px; }
.sup-qk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .sup-qk .chip { cursor: pointer; border: 1px solid var(--accent, #7c3aed); color: var(--accent, #7c3aed); background: transparent; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; }
.sup-chart { margin-top: 8px; max-width: 100%; overflow: hidden; } .sup-chart svg { max-width: 100%; height: auto; }
@media (max-width: 640px) { .sup-panel, .sup-panel.big { height: 100dvh; } }

/* ===== v4.9.2 · tempo real (1 s) ===== */
.rt-chart { position: relative; width: 100%; min-height: 160px; }
.rt-chart canvas { display: block; width: 100%; cursor: crosshair; }
.rt-tip { position: absolute; top: 6px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 3px; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow-lg); font-size: 12px; font-variant-numeric: tabular-nums; }
.rt-tip span { display: flex; align-items: center; gap: 6px; } .rt-tip span b { margin-left: auto; }
.rt-tip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.rt-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.rt-k { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rt-k::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.rt-k.ok::before { background: var(--q-clean); } .rt-k.warn::before { background: var(--q-suspect); } .rt-k.bad::before { background: var(--q-attack); }
.rt-k small { color: var(--muted); font-size: 12px; } .rt-k b { font-size: clamp(17px, 1.7vw, 24px); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rt-k em { font-style: normal; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.rt-col { grid-column: 1 / -1; justify-self: end; margin-top: -4px; align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rt-col i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: qlive 1.6s ease-out infinite; }
.rt-col.warn i { background: var(--warn); } .rt-col.bad i { background: var(--bad); animation: none; }
.rt-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-start; } .rt-foot .rt-host { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.rt-collect { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 1 auto; justify-content: flex-start; }
.rt-ex { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.rt-ex > svg:first-child { width: 14px; height: 14px; color: var(--accent); } .rt-ex .rt-spark { color: var(--accent); } .rt-ex em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-ex.idle { opacity: .55; } .rt-ex.idle > svg:first-child { color: var(--faint); }
.rt-svc { display: flex; flex-direction: column; gap: 4px; }
a.rt-link { color: inherit; text-decoration: none; }
.rt-sr { display: grid; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 8px; }
.rt-sr:hover { background: var(--surface-2); }
.rt-sn { display: flex; flex-direction: column; min-width: 0; } .rt-sn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; } .rt-sn small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.rt-sb { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rt-sb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--series-1), var(--accent)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.rt-sp { color: var(--series-1); display: flex; } .rt-sv { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.q-lists-note { margin: 0; display: flex; align-items: center; gap: 6px; } .q-lists-note svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .rt-now { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rt-col { justify-self: start; }
  .rt-sr { grid-template-columns: 26px minmax(80px, 1fr) 70px; } .rt-sr .rt-sb, .rt-sr .rt-sp { display: none; } }

/* ===== v4.9.2 · chat de suporte: o botão vira a janela e volta a ser o botão; ampliado = painel lateral inteiro ===== */
.sup-fab { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.sup-fab.on { transform: scale(.4) !important; opacity: 0; pointer-events: none; }
.sup-panel { bottom: 22px !important; right: 22px; transform-origin: bottom right; transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1), top .32s, bottom .32s, border-radius .32s, visibility 0s linear .32s;
  opacity: 0; transform: translateY(18px) scale(.12); visibility: hidden; pointer-events: none; height: min(640px, calc(100dvh - 44px)); }
.sup-panel.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sup-panel.big { top: 16px; bottom: 16px !important; height: auto !important; width: min(760px, calc(100vw - 32px)); }
.sup-panel.hidden { display: flex !important; }
@media (prefers-reduced-motion: reduce) { .sup-fab, .sup-panel { transition: none; } }
@media (max-width: 640px) { .sup-panel, .sup-panel.big { inset: 0 !important; width: 100% !important; height: 100dvh !important; border-radius: 0; } }
.sup-av.pic { padding: 0; overflow: hidden; background: var(--surface-3); } .sup-av.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-tip .rt-tdir { display: block; margin-top: 6px; font-weight: 600; } .rt-tip .rt-tdir:first-of-type { margin-top: 2px; }

/* ===== v4.9.2 · Centro de Operações: resumos compactos que abrem o detalhe ===== */
button.w-li { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.nms-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.nms-c { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font: inherit; color: inherit; text-align: left; transition: transform .12s, border-color .12s; }
.nms-c:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.nms-c b { font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; } .nms-c span { font-size: 12px; color: var(--muted); }
.nms-c.bad b { color: var(--bad); } .nms-c.warn b { color: var(--warn); } 
.nms-c.bad { border-left: 3px solid var(--bad); } .nms-c.warn { border-left: 3px solid var(--warn); } .nms-c.info { border-left: 3px solid var(--info); }
.nms-src { flex: none; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.w-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--accent-text, var(--accent)); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.w-more:hover { background: var(--accent-soft); border-color: var(--accent-line, var(--accent)); } .w-more svg { width: 15px; height: 15px; }
.olt-li { align-items: center; } .olt-li .w-li-b { flex: 1; } .olt-bar { flex: none; width: 70px; height: 6px; border-radius: 9px; background: var(--surface-3); overflow: hidden; } .olt-bar i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.olt-li.warn .olt-bar i { background: var(--warn); } .olt-li.bad .olt-bar i { background: var(--bad); }
.rt-compact .rt-sr { padding: 4px; } .rt-compact .rt-sp { display: none; } 
/* lista e detalhe dos alertas */
.nms-tb { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .nms-tb .fx-search { flex: 1; min-width: 200px; }
.nms-rows { display: flex; flex-direction: column; gap: 6px; }
.nms-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; }
.nms-r:hover { background: var(--surface-2); border-color: var(--line-strong); text-decoration: none; } .nms-r > svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.nms-sv { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); } .nms-sv svg { width: 16px; height: 16px; }
.nms-sv.bad { background: var(--bad-soft); color: var(--bad); } .nms-sv.warn { background: var(--warn-soft); color: var(--warn); }
.nms-b { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nms-b b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nms-b small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nms-m { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .nms-m small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nms-r .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ok); } .nms-r .dot.bad { background: var(--bad); } .nms-r .dot.warn { background: var(--warn); }
.nms-dh { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; } .nms-dh > div { display: flex; flex-direction: column; } .nms-dh b { font-size: 15px; } .nms-dh small { color: var(--muted); }
.nms-d { display: flex; flex-direction: column; } .nms-dr { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; } .nms-dr:last-child { border: 0; } .nms-dr span { color: var(--muted); } .nms-dr b { font-weight: 600; overflow-wrap: anywhere; }
.w .modts { display: grid; gap: 10px; } .w .modts > .modt { margin: 0; }

/* ===== v4.9.2 · módulos no mesmo padrão (CoreVision/NeutraPON): abas e botões no topo; lateral só com os módulos ===== */
.mtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.mtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.mtabs a svg { width: 16px; height: 16px; } .mtabs a:hover { color: var(--text); text-decoration: none; } .mtabs a.on { color: var(--accent-text, var(--accent)); border-bottom-color: var(--accent); }
.mpills { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px 0 18px; } .mpills::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; } .mpills a, .subnav a, .subnav button { flex: none; white-space: nowrap; }
.view-sub { margin: -6px 0 18px; }
/* 1.4.8v (u): abas de nível 2 dentro de uma aba do topo: botões redondos separados (o mesmo desenho do .mpills) */
.tabs.tabs-l2 { border-bottom: 0; gap: 6px; flex-wrap: nowrap; }
.tabs.tabs-l2 .tab { flex: none; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 500; margin-bottom: 0; }
.tabs.tabs-l2 .tab:hover { border-color: var(--line-strong); }
.tabs.tabs-l2 .tab.active { background: var(--accent-soft); border-color: transparent; color: var(--accent-text, var(--accent)); font-weight: 600; }
.mpills a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.mpills a:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); } .mpills a.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text, var(--accent)); font-weight: 600; }

.flagi { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -3px; }
.ctry-flag .flagi { width: 28px; height: 21px; }
/* v1.4.2: roteador escolhido no FlowGuard (tocar no roteador da coleta filtra a tela) */
.rt-ex.pick { cursor: pointer; } .rt-ex.pick:hover { border-color: var(--accent); }
.rt-ex.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px var(--accent); } .rt-ex.on > svg:first-child, .rt-ex.on .rt-spark, .rt-ex.on em { color: #fff; }
/* v1.4.2: desvio = operadora + community (sem tipo, "o que recebe" e demais sessões) */
.rr-row.simple { grid-template-columns: minmax(170px, 1fr) 120px minmax(260px, 2fr) auto; }   /* v1.4.2: com o tipo da conexão */
@media (max-width: 860px) { .rr-row.simple { grid-template-columns: 1fr; } }
/* v1.4.2 · Looking Glass BGP */
.lg-path { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.lg-path.alt { opacity: .78; border-style: dashed; }
.lg-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .lg-ph b { font-size: 15px; }
.lg-asp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.lg-asp > .lgm { flex: 1 1 100%; }

 

.lg-kvs { display: flex; flex-wrap: wrap; gap: 6px 16px; } .lg-kv { display: flex; flex-direction: column; } .lg-kv small { font-size: 12px; color: var(--muted); } .lg-kv b { font-size: 12.5px; }
.lg-cm .chip { font-size: 12px; }
.lg-pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; background: var(--surface-2); border-radius: 10px; padding: 10px; margin: 6px 0 0; }
/* v1.4.2: Centro de Operações com 6 módulos (AirFi incluído): 3 por linha, sem cortar os números */
.w .modts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@container (max-width: 720px) { .w .modts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@container (max-width: 420px) { .w .modts { grid-template-columns: 1fr !important; } }

/* v1.4.2: Centro de Operações: informativo em cor neutra (não vermelho) e lista de quem mais cai */
.nms-c.info b { color: var(--muted); } .nms-c.info { border-left-color: var(--line-strong, var(--line)) !important; }
.w-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; } .w-sub svg { width: 14px; height: 14px; color: var(--bad); }
.w-li-n { margin-left: auto; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
/* v1.4.2: Looking Glass em mapa: caminho AS em nós ligados e testes (ping/traceroute) em visual */
.lgm { display: flex; align-items: stretch; gap: 0; overflow-x: auto; }
.lgn { min-width: 108px; display: grid; justify-items: center; text-align: center; gap: 3px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lgn .lgn-i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); } .lgn .lgn-i svg { width: 17px; height: 17px; }
.lgn b { font-size: 13px; font-family: var(--mono); } .lgn b em { font-style: normal; color: var(--warn); font-family: inherit; } .lgn small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lgn.me .lgn-i { background: var(--accent); color: var(--on-accent); } .lgn.up { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .lgn.org .lgn-i { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.lgn.pfx { background: none; border-style: dashed; } .lgn.pfx b { font-size: 12px; }
.lgc { flex: 1 0 22px; min-width: 22px; display: grid; align-items: center; } .lgc i { display: block; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); position: relative; }
.lgc i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.lgt-h:hover { background: var(--surface-2); } .lgt-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; } .lgt-d { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.lgt-h.warn .lgt-d { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); } .lgt-h.lost .lgt-d { background: var(--faint); box-shadow: none; } .lgt-h.lost .lgt-ip { color: var(--muted); font-style: italic; }
.lgt-b { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .lgt-b i { display: block; height: 100%; border-radius: 99px; background: var(--accent); } .lgt-h.warn .lgt-b i { background: var(--warn); }
.lgp-k.ok b { color: var(--ok); } .lgp-k.warn b { color: var(--warn); } .lgp-k.bad b { color: var(--bad); } .lg-raw { margin-top: 6px; } .lg-raw summary { cursor: pointer; font-size: 12px; color: var(--muted); }

/* v1.4.2: chat do canto: atalho escolhido pelo teclado e "mensagens anteriores ao /clear" */
.sup-ment button.on { background: var(--surface-3); }
.sup-old { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px auto 10px; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.sup-old:hover { color: var(--text); background: var(--surface-3); } .sup-old svg { width: 14px; height: 14px; }

/* v1.4.3: celular. Ações do cabeçalho e sub-abas numa linha só (rolam de lado, sem segunda linha); toque sem realce nem seleção
   de texto/ícone; sem o balão escuro do menu inferior (aparecia como uma marca preta no fundo ao tocar). */
* { -webkit-tap-highlight-color: transparent; }
button, .hbtn, .bn-i, .nav-item, .mtabs a, .mpills a, .view-tabs a, .vt, [role=tab], [role=button], .chip, .seg button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), [role=tab]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
@media (max-width: 960px) {
  .page-head { flex-wrap: nowrap; }
  .page-head .titles { flex: 1 1 auto; min-width: 72px; }
  .page-head .h-icon { display: grid; width: 30px; height: 30px; border-radius: 9px; box-shadow: none; } .page-head .h-icon svg { width: 16px; height: 16px; }   /* v1.4.7: o ícone do FlowGuard/OmniPass ao lado do voltar */
  .page-actions { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; min-width: 0; flex: 0 1 auto; padding: 8px 2px; margin: -8px -2px; }
  .page-actions::-webkit-scrollbar { display: none; }
  .page-actions > * { flex: none; }
  .mpills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .mpills::-webkit-scrollbar { display: none; }
  .mpills a { flex: none; white-space: nowrap; }
  .bn-i::after { display: none !important; }
  .bn-i:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}

/* v1.4.4b: Looking Glass na horizontal e operadoras sem texto cortado */
.lg-pb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 440px); gap: 14px; align-items: center; }
.lg-side { display: grid; gap: 8px; align-content: center; padding-left: 14px; border-left: 1px dashed var(--line); min-width: 0; }
.lg-side .lg-kvs { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 6px 14px; } .lg-side .lg-kv b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgm { padding: 2px 2px 4px; scrollbar-width: none; } .lgm::-webkit-scrollbar { display: none; }
.lgn { max-width: 200px; padding: 8px 10px; flex: 0 1 auto; } .lgn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
/* v1.4.8k: caminho AS longo quebra em linhas em vez de sair do quadro; com muitos saltos os nós ficam compactos */
.lgm { flex-wrap: wrap; row-gap: 8px; overflow: visible; min-width: 0; }
.lgm.many .lgn { min-width: 84px; max-width: 150px; padding: 6px 8px; gap: 2px; } .lgm.many .lgn .lgn-i { width: 26px; height: 26px; border-radius: 9px; } .lgm.many .lgn .lgn-i svg { width: 14px; height: 14px; }
.lgm.many .lgn b { font-size: 12px; } .lgm.many .lgn small { font-size: 11px; } .lgm.many .lgc { flex-basis: 16px; min-width: 16px; max-width: 72px; }
/* o quadro da rota mede a própria largura: estreito (coluna de testes aberta) ou caminho longo → dados da rota descem para baixo do caminho */
.lg-path { container-type: inline-size; }
.lg-pb[data-long] { grid-template-columns: minmax(0, 1fr); } .lg-pb[data-long] .lg-side { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
@container (max-width: 860px) { .lg-pb { grid-template-columns: minmax(0, 1fr); } .lg-side { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px dashed var(--line); } }
.lg-form select { min-width: 0; }
@media (max-width: 900px) { .lg-pb { grid-template-columns: 1fr; } .lg-side { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px dashed var(--line); } }
.q-row .q-if { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: -4px; font-size: 12px; color: var(--muted); min-width: 0; }
.q-row .q-if span { padding: 1px 8px; border-radius: 99px; background: var(--surface-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-row .q-as { flex-wrap: nowrap; overflow: hidden; }
.q-row .q-as span { flex: 0 1 auto; min-width: 0; }

@media (max-width: 640px) {
  .seg, .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
}

/* v1.4.4b: Centro de Operações editável como o painel do NetOps (arrastar para qualquer lado, largura e altura pelas bordas) */
.dash .w { position: relative; } .dash .w[style*="height"] { display: flex; flex-direction: column; } .dash .w[style*="height"] > .w-b { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.dash.editing .w { touch-action: none; user-select: none; }
.dash.editing .w [contenteditable] { user-select: text; }
.w-rs, .w-rv, .w-rc { position: absolute; z-index: 3; } .w-rs { top: 12px; bottom: 12px; right: -5px; width: 10px; cursor: ew-resize; } .w-rv { left: 12px; right: 12px; bottom: -5px; height: 10px; cursor: ns-resize; }
.w-rc { right: -6px; bottom: -6px; width: 16px; height: 16px; cursor: nwse-resize; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.w-rs::after { content: ""; position: absolute; top: 50%; left: 3px; width: 4px; height: 34px; margin-top: -17px; border-radius: 4px; background: var(--accent-line); }
.w-rv::after { content: ""; position: absolute; left: 50%; top: 3px; height: 4px; width: 34px; margin-left: -17px; border-radius: 4px; background: var(--accent-line); }
.w-ph { opacity: .35; outline: 2px dashed var(--accent); outline-offset: 2px; } .w-rz { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-ghost { position: fixed; z-index: 90; pointer-events: none; opacity: .92; box-shadow: 0 18px 50px rgba(0,0,0,.25); border-radius: 16px; transform: rotate(.6deg); overflow: hidden; }
@media (max-width: 699px) { .w-rs, .w-rc { display: none; } }

/* v1.4.6: menu inferior sem animação ao tocar (o botão marca inteiro na hora) */
@media (max-width: 960px) { .bn-i, .bn-i::after { transition: none !important; } .bn-i:active { background: var(--accent-soft); } }
/* v1.4.7: sem o brilho colorido atrás do topo (mudava de tom conforme a largura e a rolagem, perto do nome dos menus) */
.main { background: none !important; }

/* ===== v4.9.8 · Entrada/Saída por serviço: o ícone cabe na coluna (36px vazava sobre o nome e a porcentagem no celular) ===== */
.rt-sr { column-gap: 12px; }
.rt-sr .svc-ico { width: 28px; height: 28px; border-radius: 8px; } .rt-sr .svc-ico img { width: 17px; height: 17px; } .rt-sr .svc-ico.mono-ic { font-size: 12.5px; }
.rt-sr { grid-template-columns: 28px minmax(90px, 1.2fr) minmax(60px, 2fr) 64px 82px; }
.rt-compact .rt-sr { grid-template-columns: 28px minmax(70px, 1fr) minmax(40px, 1fr) 76px; }
@media (max-width: 860px) { .rt-sr, .rt-compact .rt-sr { grid-template-columns: 28px minmax(0, 1fr) auto; } .rt-sv { white-space: nowrap; } }

/* ===== v4.9.8 · Looking Glass: testes saindo do NetOps Core (ping, traceroute, DNS, portas) e histórico do acompanhamento ===== */
.lg-tb .btn.on { border-color: var(--accent); color: var(--accent-text, var(--accent)); background: var(--accent-soft); }
.lg-tp .panel-b.hidden { display: none; }
.lgx { display: flex; flex-direction: column; gap: 6px; }
.lgx-r { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.lgx-r > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lgx-r small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.lgx-r.warn { box-shadow: inset 3px 0 0 var(--warn); } .lgx-r.warn small { color: var(--warn); }
.lgh { gap: 16px; } .lgh-h { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lgh-now { display: flex; flex-direction: column; gap: 6px; }
.lgh-r { display: grid; grid-template-columns: 10px minmax(120px, auto) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.lgh-r > span.mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgh-d { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .lgh-d.bad { background: var(--bad); }
.lgh-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
.lgh-tl li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 13px; }
.lgh-tl li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.lgh-t { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; } .lgh-t small { color: var(--faint); font-size: 12px; }
.lgh-b { display: flex; flex-direction: column; min-width: 0; } .lgh-b .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; } .lgh-b s { color: var(--muted); }
@media (max-width: 640px) { .lgx-r { grid-template-columns: 80px minmax(0, 1fr); } .lgx-r small { grid-column: 1 / -1; max-width: none; } .lgh-tl li { grid-template-columns: 1fr; gap: 2px; } .lgh-r { grid-template-columns: 10px minmax(0, 1fr); } .lgh-r > span.mono { grid-column: 2; } }

/* v1.4.8f · Looking Glass: rotas na maior parte da largura, testes numa coluna ao lado com detalhes */
.lg-res { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 33%, 500px); gap: 16px; align-items: start; }
.lg-res.solo { grid-template-columns: minmax(0, 1fr); }
.lg-rts { display: grid; gap: 16px; min-width: 0; }
.lg-tp { position: sticky; top: 12px; min-width: 0; }
.lg-tb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lg-tb .btn { justify-content: center; min-width: 0; padding-inline: 6px; } .lg-tb .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-tp .panel-h .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lgi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; margin: 0 0 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; min-width: 0; }
.lgi > * { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lgi-p, .lgi-k { color: var(--muted); }
.lgi-as { font-weight: 600; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; } .lgi-as span { font-family: "Inter", system-ui, sans-serif; font-weight: 500; color: var(--muted); }
.lgp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0; } .lgp.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lgp-k { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; min-width: 0; } .lgp-k b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; } .lgp-k small { color: var(--muted); font-size: 12px; }
.lgp-r { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin: 10px 0 4px; }
.lgp-r > span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.lgp-r i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: var(--accent); } .lgp-r small { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgp-r .lost i { height: 8px; background: var(--bad); } .lgp-r .lost small { color: var(--bad); }
.lgt { display: grid; gap: 2px; margin: 6px 0; }
.lgt-h { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) 92px; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 12.5px; }
.lgt-m { display: flex; flex-direction: column; min-width: 0; } .lgt-m > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgt-m small { display: flex; gap: 8px; color: var(--muted); font-size: 12px; min-width: 0; } .lgt-m small > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lgt-m small .lgi-as { color: var(--text); }
.lgt-v { display: grid; justify-items: end; gap: 3px; } .lgt-v .lgt-b { width: 100%; }
.lgt-ms { font-variant-numeric: tabular-nums; white-space: nowrap; } .lgt-l { color: var(--warn); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.lgt-as { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px; font-size: 12px; }
.lgt-as span { padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text, var(--text)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lgt-as i { color: var(--muted); font-style: normal; }
.lgt-end { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; } .lgt-end svg { width: 15px; height: 15px; flex: none; }
.lgt-end.ok { color: var(--ok); } .lgt-end.warn { color: var(--warn); }
.lgd { display: grid; gap: 6px; } .lgd-r { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.lgd-r small { color: var(--muted); font-size: 12px; } .lgd-r > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .lgd-s { color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgo { display: grid; gap: 6px; margin: 10px 0 0; } .lgo-r { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.lgo-r.warn { box-shadow: inset 3px 0 0 var(--warn); } .lgo-s { display: flex; flex-direction: column; min-width: 0; } .lgo-s > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgo-s small { color: var(--muted); font-size: 12px; } .lgo-s .lgo-w { color: var(--warn); } .lgo-ms { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; white-space: nowrap; }
.lgo-c { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; } .lgo-ch { min-width: 44px; padding: 3px 6px; border-radius: 7px; text-align: center; font: 600 12px/1.3 var(--mono, ui-monospace, monospace); background: var(--surface-2); color: var(--muted); }
.lgo-ch.filtered { background: transparent; border: 1px dashed var(--line); }
.lgo-lg { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--muted); } .lgo-lg i { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); margin-left: 6px; } .lgo-lg i:first-child { margin-left: 0; } .lgo-lg i.filtered { background: transparent; border: 1px dashed var(--line); }
.lgo-n { margin: 6px 0 0; }
@media (max-width: 1180px) { .lg-res { grid-template-columns: minmax(0, 1fr); } .lg-tp { position: static; } .lgp.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg-tb { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lgp.four, .lg-tb { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lgd-r { grid-template-columns: minmax(0, 1fr) auto; } .lgd-r small { grid-column: 1 / -1; } .lg-tb { padding: 10px 12px; } }
.lg-tp:has(.lg-test.hidden) .lg-tb { border-bottom: 0; }
/* v1.4.8f · tela de bloqueio no lugar do login (fatura em aberto no NetOps): mesmo cartão do login, cadeado e um botão */
.login-form.lb { text-align: center; align-items: center; }
.login-form.lb .lb-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 8px auto 0; background: #fde6eb; color: #b0213f; }
.login-form.lb .lb-ic svg { width: 26px; height: 26px; }
.login-form.lb h1 { margin-bottom: 0; }
.login-form.lb .lb-t { margin: 0; max-width: 380px; color: #4f4b66; font-size: 14.5px; line-height: 1.55; }
.login-form.lb .lb-t b { color: #17142b; }
.login-form.lb .btn { width: 100%; max-width: 380px; margin-top: 6px; gap: 8px; }
.lgt-m small .lgi-as { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lgt-m small .mono { flex: 1 1 0; min-width: 40px; }

/* v1.0.8g · Saúde da plataforma › Logs › Eventos dos módulos */
.me-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.me-chip b { font-weight: 600; } .me-chip.bad b { color: var(--bad); } .me-chip.warn b { color: var(--warn); }
.me-list { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.me-r { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.me-r > summary { display: grid; grid-template-columns: 118px 52px 112px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
.me-r > summary .badge { justify-self: start; }
.me-r > summary::-webkit-details-marker { display: none; }
.me-t { font-size: 12px; color: var(--muted); white-space: nowrap; } .me-m { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-x { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-r[open] .me-x { white-space: normal; }
.me-d { padding: 0 12px 10px; } .me-src { font-size: 12px; color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.me-d pre { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 12px/1.45 "JetBrains Mono", monospace; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
@media (max-width: 600px) { .me-r > summary { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 8px; } .me-r > summary .me-x { grid-column: 1 / -1; } }
/* v1.4.8 · detalhe do alerta do monitoramento: portas/itens que a regra pegou */
.nms-it { display: grid; gap: 4px; margin-top: 12px; } .nms-ith { margin: 12px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.nms-ir { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.nms-ir b, .nms-ir span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nms-ir span { color: var(--muted); } .nms-ir em { font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nms-ir.bad em { color: var(--bad); font-weight: 600; }
/* 1.4.8h: atalho para o campo CGNAT nas regras */
.rule-card.rc-add { border-style: dashed; color: inherit; text-decoration: none; cursor: pointer; } .rule-card.rc-add:hover { border-color: var(--accent); }

/* 1.4.8h: aviso de módulo ligando/desligando (fica embaixo, fora do caminho dos botões, até terminar; a barra é o progresso) */
#pwbox { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 110px); pointer-events: none; }
#pwbox .toast { cursor: default; min-width: 0; max-width: 100%; padding: 8px 14px 10px 8px; animation: none; }
#pwbox .tsi { width: 28px; height: 28px; border-radius: 9px; } #pwbox .tst { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
#pwbox .tsb { animation: none; transform-origin: left; transition: transform .6s ease; }
@media (max-width: 960px) { #pwbox { bottom: calc(74px + env(safe-area-inset-bottom)); left: 12px; transform: none; max-width: calc(100vw - 96px); } #pwbox .toast { gap: 8px; padding-right: 10px; } #pwbox .tst { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { #pwbox .tsb { transition: none; display: block; } }

/* 1.4.8h (11/11): Administração: telas internas em botões (pílulas); no celular a fila rola para o lado, sem quebrar linha */
.adm-pills a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .adm-pills a svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 960px) { .mtabs, .mpills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .mtabs::-webkit-scrollbar, .mpills::-webkit-scrollbar { display: none; } .mtabs a, .mpills a { flex: none; } }

/* 1.4.8h (11/11): versão pequena e discreta embaixo da logo; Administração no rodapé do menu, acima do perfil */
.brand-txt .brand-ver { font-size: 11px; line-height: 14px; color: var(--side-muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.brand-txt .brand-ver:empty { display: none; }
#nav-adm { display: grid; } #nav-adm:empty { display: none; }
.side-collapsed .brand-ver { display: none; }
/* 1.4.8i: aviso de liga/desliga do módulo com botão de fechar (o resto da faixa continua sem pegar o clique) */
#pwbox .toast { pointer-events: auto; grid-template-columns: 28px minmax(0, 1fr) 26px; } #pwbox .tsx { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .7; cursor: pointer; padding: 0; }
#pwbox .tsx:hover, #pwbox .tsx:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); } #pwbox .tsx svg { width: 15px; height: 15px; }

/* 1.4.8j (12/11) · Administração › Conexões SSH/Telnet (prefixo .ssh-) */
.ssh { display: grid; gap: 16px; }
.ssh > .tabs { margin-bottom: 0; } .ssh [data-sshc] { display: grid; gap: 16px; min-width: 0; } .ssh [data-sshc].hidden { display: none; }
/* 1.4.8v (u): perfis prontos dentro do cartão, em segmentado (nível 3), sem encostar no cartão */
.ssh-prow { display: flex; align-items: center; gap: 12px; padding: 14px 20px 0; min-width: 0; }
.ssh-pl { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; flex: none; }
.ssh-seg { min-width: 0; max-width: 100%; }
.ssh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.ssh-f { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.ssh-l { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.ssh-ln { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssh-in { display: flex; align-items: center; gap: 8px; }
.ssh-in input { width: 100%; min-width: 0; height: 40px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ssh-in em { font-style: normal; color: var(--muted); font-size: 13px; flex: none; }
.ssh-f small { font-size: 12px; }
.ssh-open { list-style: none; margin: 0; padding: 8px 20px 14px; display: grid; }
.ssh-open li { display: grid; grid-template-columns: minmax(140px, 280px) minmax(60px, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ssh-eq { display: grid; min-width: 0; line-height: 1.3; } .ssh-sub { font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssh-st { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ssh-kill { width: 34px; height: 34px; padding: 0; color: var(--bad, #dc2626); }
.ssh-open li:last-child { border-bottom: 0; }
.ssh-dev { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ssh-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ssh-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ssh-bar.busy i { background: var(--ok, #16a34a); }
.ssh-st { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ssh-age { font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .ssh-prow { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px 0; } .ssh-seg { width: 100%; }
  .ssh-grid { grid-template-columns: 1fr; padding: 10px 12px 12px; gap: 8px; }
  .ssh-f { grid-template-columns: minmax(0, 1fr) 118px; align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 12px; }
  .ssh-f .ssh-l { grid-column: 1; grid-row: 1; } .ssh-f small { grid-column: 1; grid-row: 2; }
  .ssh-f .ssh-in { grid-column: 2; grid-row: 1 / span 2; } .ssh-in input { height: 38px; font-size: 16px; }
  .ssh-open { padding: 4px 12px 10px; }
  .ssh-open li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 6px; }
  .ssh-open .ssh-bar { grid-column: 1 / -1; grid-row: 2; } .ssh-st { max-width: 120px; }
  .ssh-age { display: none; }
}

/* 1.4.8k · sinais do perfil de ataque no detalhe do evento */
.ev-sig { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
/* 1.4.8l: a IA "pensando" no chat de Suporte (como no chat do NetOps): três pontos no balão do agente */
.sup-dots { display: inline-flex; gap: 4px; align-items: center; padding: 6px 2px 2px; }
.sup-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: supdot 1.1s infinite ease-in-out; }
.sup-dots i:nth-child(2) { animation-delay: .16s; } .sup-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes supdot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sup-dots i:nth-child(2) { opacity: .65; } .sup-dots i:nth-child(3) { opacity: .4; } }

/* 1.4.8v (g): no celular o chat de suporte já ocupa a tela: sem o Ampliar (fica Minimizar) */
@media (max-width: 640px), (hover: none) and (pointer: coarse) { #sup-max { display: none; } }

/* 1.4.8 (ai): áudio no chat do canto: microfone ao lado do enviar; gravando, a barra (tempo e lixeira) ocupa o lugar do texto */
.sup-mic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; }
.sup-rec { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); white-space: nowrap; }
.sup-rec > i { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; animation: supRec 1s ease-in-out infinite; }
.sup-rec span { font-variant-numeric: tabular-nums; font-weight: 600; } .sup-rec small { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sup-rec.hidden, .sup-f textarea.hidden, .sup-mic.hidden { display: none; }
@keyframes supRec { 50% { opacity: .35; } } @media (prefers-reduced-motion: reduce) { .sup-rec > i { animation: none; } }
