/* ============================================================
 * Atalaia — design system v2
 * Neutro, leve e preciso: bordas finas, tipografia Inter, cor só onde há significado.
 * ============================================================ */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(vendor/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(vendor/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-3: #f0f0f2;
  --border: #ebebee;
  --border-strong: #dcdce1;
  --text: #0b0b0f;
  --text-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-text: #4338ca;
  --brand-amber: #f59e0b;
  --ok: #16803c;      --ok-soft: #edfbf2;
  --warn: #b45309;    --warn-soft: #fff8eb;
  --danger: #d92d20;  --danger-soft: #fef3f2;
  --nav-bg: #fafafa;
  --nav-text: #52525b;
  --nav-text-hi: #0b0b0f;
  --nav-active: #efeff1;
  --nav-label: #a1a1aa;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-xs: 0 1px 1px rgba(16, 16, 24, .03);
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .04), 0 1px 1px rgba(16, 16, 24, .02);
  --shadow-md: 0 16px 40px -12px rgba(16, 16, 24, .18), 0 2px 6px rgba(16, 16, 24, .05);
  --ring: 0 0 0 3px rgba(79, 70, 229, .16);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 248px;
  --topbar-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --surface: #111113; --surface-2: #161619; --surface-3: #1d1d21; --border: #232327; --border-strong: #303036;
    --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: rgba(129, 140, 248, .13); --accent-text: #a5b4fc;
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .1); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1); --danger: #f87171; --danger-soft: rgba(248, 113, 113, .1);
    --nav-bg: #09090b; --nav-text: #a1a1aa; --nav-text-hi: #fafafa; --nav-active: #1b1b1f; --nav-label: #5f5f68;
    --shadow-xs: none; --shadow-sm: none; --shadow-md: 0 20px 50px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
    --ring: 0 0 0 3px rgba(129, 140, 248, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --surface: #111113; --surface-2: #161619; --surface-3: #1d1d21; --border: #232327; --border-strong: #303036;
  --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a;
  --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: rgba(129, 140, 248, .13); --accent-text: #a5b4fc;
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .1); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1); --danger: #f87171; --danger-soft: rgba(248, 113, 113, .1);
  --nav-bg: #09090b; --nav-text: #a1a1aa; --nav-text-hi: #fafafa; --nav-active: #1b1b1f; --nav-label: #5f5f68;
  --shadow-xs: none; --shadow-sm: none; --shadow-md: 0 20px 50px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  --ring: 0 0 0 3px rgba(129, 140, 248, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 13.5px/1.55 var(--sans); letter-spacing: -.006em;
  font-feature-settings: "cv11", "ss01", "ss03"; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
h1 { font-size: 22px; font-weight: 650; margin: 0; letter-spacing: -.022em; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 620; margin: 0 0 12px; letter-spacing: -.012em; }
h3 { font-size: 12.5px; font-weight: 600; margin: 0 0 10px; color: var(--text-2); letter-spacing: -.003em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* ---------- estrutura ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--nav-text-hi); font-weight: 680; font-size: 15px; letter-spacing: -.02em; text-decoration: none !important; height: var(--topbar-h); padding: 0 18px; flex: none; }
.brand:hover { color: var(--nav-text-hi); }
.brand .ws { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .ws small { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: -.003em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3a6fe0, #2347a8); display: grid; place-items: center; color: #fff; }
.logo svg { width: 15px; height: 15px; }
.nav { padding: 4px 12px 16px; overflow-y: auto; flex: 1; }
.nav-section { font-size: 11px; font-weight: 550; color: var(--nav-label); padding: 18px 10px 6px; letter-spacing: .01em; }
.nav a {
  display: flex; align-items: center; gap: 10px; color: var(--nav-text); padding: 0 10px; height: 32px; border-radius: 7px;
  margin-bottom: 1px; text-decoration: none; font-size: 13.5px; font-weight: 500; position: relative; transition: background .12s, color .12s;
}
.nav a:hover { background: var(--nav-active); color: var(--nav-text-hi); text-decoration: none; }
.nav a.active { background: var(--surface); color: var(--nav-text-hi); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); font-weight: 560; }
:root[data-theme="dark"] .nav a.active { background: var(--nav-active); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a.active { background: var(--nav-active); box-shadow: none; } }
.nav a.active svg { color: var(--accent); opacity: 1; }
.nav svg { width: 16px; height: 16px; opacity: .75; stroke-width: 1.8; }
.nav-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.nav-badge.hot { background: var(--danger); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--nav-label); flex: none; }
.sidebar-foot .menu-wrap { display: flex; width: 100%; }
.sidebar-foot .menu { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; }

.shell { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.btn.nav-toggle { display: none; }
.crumbs-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs-top a { color: var(--muted); }
.crumbs-top a:hover { color: var(--text); text-decoration: none; }
.crumbs-top strong { color: var(--text); font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.crumbs-top .sep { color: var(--border-strong); }
.topsearch { position: relative; margin-left: auto; width: 320px; }
.topsearch input { width: 100%; padding-left: 34px; background: var(--surface); height: 34px; border-color: var(--border); box-shadow: var(--shadow-xs); }
.topsearch input::placeholder { color: var(--faint); }
.topsearch > svg { position: absolute; left: 11px; top: 10px; width: 14px; height: 14px; color: var(--faint); }
.topsearch .kbd { position: absolute; right: 8px; top: 8px; font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; line-height: 17px; font-family: var(--sans); pointer-events: none; background: var(--surface-2); }
.topsearch .results { position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; z-index: 30; padding: 4px; }
.topsearch .results a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 6px; }
.topsearch .results a:hover { background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topsearch + .top-actions { margin-left: 0; }
.usermenu-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--text); font: inherit; text-align: left; transition: background .12s; }
.usermenu-btn:hover { background: var(--nav-active); }
.usermenu-btn > svg { margin-left: auto; color: var(--faint); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11.5px; text-transform: uppercase; flex: none; letter-spacing: .02em; }
.usermenu-btn .who { line-height: 1.25; font-size: 13px; font-weight: 560; min-width: 0; overflow: hidden; }
.usermenu-btn .who small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { padding: 28px 32px 56px; min-width: 0; max-width: 1640px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; min-height: 36px; }
.page-head .spacer { flex: 1; }
.page-head .sub { color: var(--muted); font-size: 13.5px; font-weight: 450; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); min-height: 50px; flex-wrap: wrap; }
.card-header h3 { margin: 0; color: var(--text); font-size: 13.5px; }
.card-body { padding: 18px 20px; }
.card > h2:first-child { margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); padding: 0 12px; border-radius: var(--radius-sm); cursor: pointer; font: inherit;
  font-weight: 540; font-size: 13px; white-space: nowrap; text-decoration: none !important; box-shadow: var(--shadow-xs);
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); color: var(--text); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(49, 46, 129, .25);
}
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0b0b0f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0b0b0f; } }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; gap: 5px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); border-color: transparent; color: var(--text); }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn svg { width: 15px; height: 15px; stroke-width: 1.9; }
.btn-group { display: inline-flex; padding: 2px; background: var(--surface-3); border-radius: 8px; gap: 2px; }
.btn-group .btn { border: 0; background: transparent; box-shadow: none; height: 28px; color: var(--muted); }
.btn-group .btn:hover { color: var(--text); background: transparent; }
.btn-group .btn.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }

input, select, textarea {
  font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0 11px; height: 34px; outline: none; box-shadow: var(--shadow-xs);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
select.sm { padding: 0 26px 0 8px; font-size: 12.5px; height: 28px; background-position: right 7px center; }
textarea { padding: 9px 11px; height: auto; resize: vertical; min-height: 76px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
input[type=checkbox], input[type=radio] { height: auto; box-shadow: none; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
label.field, div.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 540; }
label.field > input, label.field > select, label.field > textarea { font-weight: 400; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row > * { flex: 1; min-width: 150px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 3px 0; color: var(--text-2); line-height: 1.45; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }

/* ---------- tabelas ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; font-weight: 520; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); letter-spacing: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr.click { cursor: pointer; }
.tbl .num { text-align: right; }
.tbl td strong { color: var(--text); font-weight: 560; }
.card.flush .tbl th:first-child, .card.flush .tbl td:first-child { padding-left: 20px; }
.card.flush .tbl th:last-child, .card.flush .tbl td:last-child { padding-right: 20px; }

/* ---------- badges, status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 540; padding: 0 8px; line-height: 20px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
}
.badge svg { width: 11px; height: 11px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 18%, transparent); }
.badge.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 20%, transparent); }
.badge.danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 18%, transparent); }
.badge.info { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge.ok::before, .badge.warn::before, .badge.danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok:has(svg)::before, .badge.warn:has(svg)::before, .badge.danger:has(svg)::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 18%, transparent); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 13.5px; }
.error { color: var(--danger); font-size: 12.5px; }
.error:empty { display: none; }
.card.error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.bar { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.bar.warn > i { background: var(--warn); }
.bar.danger > i { background: var(--danger); }
.metric { display: flex; flex-direction: column; gap: 5px; min-width: 90px; }
.metric .lbl { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; transition: border-color .12s, box-shadow .12s; }
.stat:has(> .ico) { flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 14px; }
.stat:not(:has(> .ico)) .k { order: -1; }
.stat:not(:has(> .ico)) .v { margin-top: 2px; }
.stat[style*="cursor"]:hover { border-color: var(--border-strong); }
.stat .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.stat .ico svg { width: 16px; height: 16px; }
.stat .ico.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.stat .ico.warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.stat .ico.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 640; line-height: 1.2; margin-top: 4px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }

dl.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 9px 20px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; word-break: break-word; color: var(--text); }

/* ---------- abas, toolbar ---------- */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--border); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 10px 12px 12px; color: var(--muted); font-weight: 520; white-space: nowrap; text-decoration: none; cursor: pointer; font-size: 13.5px; transition: color .12s; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; }
.tabs a.active { color: var(--text); }
.tabs a.active::after { background: var(--text); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input[type=search] { min-width: 260px; }

/* ---------- cabeçalho da máquina ---------- */
.agent-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.agent-head .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); display: grid; place-items: center; color: var(--text-2); position: relative; }
.agent-head .ico svg { width: 22px; height: 22px; }
.agent-head .ico .dot { position: absolute; right: -3px; bottom: -3px; border: 2px solid var(--bg); width: 12px; height: 12px; box-shadow: none; }
.agent-head h1 { font-size: 22px; }
.agent-head .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.agent-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.agent-head .meta svg { width: 13px; height: 13px; opacity: .8; }

/* ---------- menus ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); min-width: 240px; padding: 5px; z-index: 40; animation: pop .12s ease-out; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0 10px; height: 32px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover { background: var(--danger-soft); }
.menu button svg, .menu a svg { width: 15px; height: 15px; color: var(--muted); }
.menu button.danger svg { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px -5px; }

/* ---------- grade de máquinas com prévia ---------- */
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.mcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.mcard .thumb { aspect-ratio: 16 / 9; background: #0b0b0f; position: relative; display: grid; place-items: center; color: #5f5f68; font-size: 12px; overflow: hidden; border-bottom: 1px solid var(--border); }
.mcard .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mcard .thumb .tag { position: absolute; top: 8px; left: 8px; }
.mcard .thumb .live { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #e5e7eb; font-size: 10.5px; padding: 1px 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.mcard .thumb .live i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.mcard .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.mcard .info .name { display: flex; align-items: center; gap: 8px; font-weight: 580; color: var(--text); }
.mcard .info .sub { color: var(--muted); font-size: 12.5px; }
.mcard .bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ---------- configurações ---------- */
.settings-grid { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 28px); display: flex; flex-direction: column; gap: 1px; }
.settings-nav a { padding: 0 10px; height: 32px; display: flex; align-items: center; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13px; }
.settings-nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.section-desc { color: var(--muted); margin: 0 0 18px; font-size: 13px; max-width: 760px; line-height: 1.55; }
.copy-field { display: flex; gap: 6px; align-items: center; }
.copy-field code { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 11px; line-height: 32px; overflow-x: auto; white-space: nowrap; color: var(--text); }
.callout { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 24%, transparent); background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--text)); }
.callout.ok { border-color: color-mix(in srgb, var(--ok) 24%, transparent); background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 70%, var(--text)); }
.callout.danger { border-color: color-mix(in srgb, var(--danger) 24%, transparent); background: var(--danger-soft); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }
.callout.info { border-color: color-mix(in srgb, var(--accent) 22%, transparent); background: var(--accent-soft); color: var(--accent-text); }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; padding-top: 2px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong); color: var(--text); font-weight: 600; font-size: 12px; display: grid; place-items: center; }

.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; }
.crumbs a { padding: 2px 6px; border-radius: 5px; cursor: pointer; }
.crumbs a:hover { background: var(--accent-soft); text-decoration: none; }
.crumbs span { color: var(--faint); }

.term-wrap { background: #0c0c0e; border-radius: var(--radius); padding: 10px; height: calc(100vh - 310px); min-height: 360px; border: 1px solid var(--border); }
.term-wrap .xterm { height: 100%; }

/* ---------- login / cadastro ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr); background: var(--surface); }
.login .side {
  position: relative; overflow: hidden; color: #a1a1aa; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(245, 158, 11, .10), transparent 60%),
    #09090b;
}
.login .side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
}
.login .side > * { position: relative; }
.login .side h2 { color: #fafafa; font-size: 42px; line-height: 1.08; font-weight: 650; margin: 0 0 18px; letter-spacing: -.04em; }
.login .side h2 span { background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; color: #c7d2fe; margin-bottom: 18px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.login-kicker::before { content: "Novo"; font-size: 10.5px; font-weight: 650; color: #09090b; background: #c7d2fe; border-radius: 999px; padding: 0 7px; line-height: 17px; }
.login-mobile-brand { display: none; align-items: center; gap: 10px; font-weight: 680; font-size: 17px; letter-spacing: -.02em; }
.login .side p { color: #a1a1aa; max-width: 460px; line-height: 1.65; margin: 0; font-size: 14.5px; }
.login .side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; color: #d4d4d8; max-width: 520px; font-size: 13px; }
.login .side li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.login .side li svg { color: #a5b4fc; width: 16px; height: 16px; flex: none; margin-top: 1px; }
.login .side .small { color: #71717a !important; }
.login .form { display: grid; place-items: center; padding: 32px 24px; background: var(--surface); }
.login .form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.login .form h1 { font-size: 24px; letter-spacing: -.03em; }
.login .form input, .login .form .btn { height: 40px; }
.login .form input[type=checkbox], .login .form input[type=radio] { height: auto; }
.login .form .btn.primary { font-weight: 580; }
.brand-dark { display: flex; align-items: center; gap: 11px; color: #fafafa; font-weight: 680; font-size: 18px; letter-spacing: -.025em; }
.login-preview { border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.6); padding: 14px; max-width: 500px; backdrop-filter: blur(6px); }
.login-preview .lp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11.5px; color: #71717a; }
.login-preview .lp-head i { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; }
.login-preview .lp-row { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; color: #d4d4d8; }
.login-preview .lp-row + .lp-row { border-top: 1px solid rgba(255,255,255,.05); }
.login-preview .lp-row b { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.login-preview .lp-row b.w { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.login-preview .lp-row b.off { background: #52525b; box-shadow: none; }
.login-preview .lp-row small { color: #71717a; font-size: 11.5px; }
.login-preview .lp-row em { font-style: normal; font-size: 11px; padding: 0 7px; line-height: 18px; border-radius: 5px; background: rgba(255,255,255,.06); color: #a1a1aa; }
.login-preview .lp-row em.w { background: rgba(245,158,11,.12); color: #fbbf24; }
.login-preview .lp-row em.ok { background: rgba(34,197,94,.1); color: #4ade80; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(9, 9, 11, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .14s ease-out; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-md); animation: pop .16s cubic-bezier(.2, .9, .3, 1.2); }
.modal header { padding: 18px 22px 4px; font-weight: 620; font-size: 16px; letter-spacing: -.015em; }
.modal .body { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal footer { padding: 12px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); position: sticky; bottom: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(6px) scale(.985); opacity: 0; } }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-md); max-width: 420px; animation: slide .22s cubic-bezier(.2, .9, .3, 1.1); font-size: 13px; font-weight: 500; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a5b4fc; flex: none; }
.toast.err::before { background: #f87171; }
.toast.ok::before { background: #4ade80; }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }

.progress-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.progress-item { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.progress-item .bar { flex: 1; }
pre.code { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; }

/* ---------- tela remota ---------- */
.desk-stage { position: relative; background: #07070a; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 6px; border: 1px solid var(--border); }
.desk-canvas { display: block; max-width: 100%; max-height: calc(100vh - 300px); outline: none; cursor: default; }
.desk-canvas:focus { box-shadow: 0 0 0 2px var(--accent); }
.desk-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #d4d4d8; font-size: 14px; background: rgba(0,0,0,.6); border-radius: var(--radius); text-align: center; padding: 20px; }
.desk-stage:fullscreen { border-radius: 0; padding: 0; border: 0; }
.desk-stage:fullscreen .desk-canvas { max-height: 100vh; max-width: 100vw; }
.desk-stage:fullscreen .desk-canvas:focus { box-shadow: none; }
.desk-stage.drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.player-canvas { max-width: 100%; max-height: 62vh; display: block; margin: 0 auto; background: #000; border-radius: 8px; }
.player-term { height: 60vh; background: #0c0c0e; padding: 8px; border-radius: 8px; overflow: auto; }
.player-bar { height: 6px; background: var(--surface-3); border-radius: 999px; cursor: pointer; position: relative; flex: 1; }
.player-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }

.day-bars { display: flex; align-items: flex-end; gap: 5px; height: 140px; padding-top: 6px; }
.day-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 14px; }
.day-bar i { display: block; width: 100%; max-width: 32px; background: var(--accent); border-radius: 4px 4px 1px 1px; opacity: .8; }
.day-bar span { font-size: 10.5px; color: var(--muted); margin-top: 5px; }

.ticket-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.ticket-list { max-height: calc(100vh - 180px); overflow: auto; }
.ticket-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background .1s; }
.ticket-item:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.ticket-item.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.ticket-detail { min-height: 420px; display: flex; flex-direction: column; }
.ticket-shot { max-width: 100%; max-height: 260px; border: 1px solid var(--border); border-radius: 8px; margin: 4px 0 10px; display: block; }
.chat-thread { flex: 1; overflow: auto; max-height: 50vh; min-height: 200px; display: flex; flex-direction: column; gap: 10px; padding: 8px 2px; }
.chat-msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg.tech { align-self: flex-end; text-align: right; }
.chat-bubble { padding: 9px 13px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; text-align: left; }
.chat-msg.tech .chat-bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 12px 12px 4px 12px; }
.report-card { color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s; }
.report-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text); }

/* ---------- monitoramento, automação, sistema, painel ---------- */
.chart { min-width: 0; }
.chart-tip { position: absolute; top: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md); padding: 7px 10px; font-size: 12px; pointer-events: none; min-width: 150px; z-index: 5; }
.reg-item { display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: var(--text); font-size: 12.5px; font-family: var(--mono); border-bottom: 1px solid var(--surface-3); }
.reg-item:hover { background: var(--surface-2); text-decoration: none; color: var(--accent-text); }
.reg-item svg { width: 14px; height: 14px; color: var(--warn); flex: none; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check-item { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.check-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-weight: 520; }
.check-item summary::-webkit-details-marker { display: none; }
.check-item summary svg { width: 14px; height: 14px; margin-left: auto; color: var(--muted); transition: transform .15s; }
.check-item[open] summary svg { transform: rotate(180deg); }
.check-item .cnt { min-width: 28px; text-align: center; font-weight: 620; border-radius: 6px; padding: 0 8px; font-variant-numeric: tabular-nums; background: var(--surface-3); font-size: 12.5px; }
.check-item.danger .cnt { background: var(--danger-soft); color: var(--danger); }
.check-item.warn .cnt { background: var(--warn-soft); color: var(--warn); }
.check-item.info .cnt { background: var(--accent-soft); color: var(--accent-text); }
.check-item.clear { opacity: .65; }
.check-item.clear summary { cursor: default; }
.check-item.clear .cnt { background: var(--ok-soft); color: var(--ok); }
.check-list { padding: 4px 12px 10px 50px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; max-height: 260px; overflow: auto; }
.notes { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13px; }
.expanded { -webkit-line-clamp: unset !important; }
.sla-bar { padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
.chart-y { position: absolute; left: 0; width: 30px; text-align: right; font-size: 10px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.chart-x { position: absolute; bottom: 2px; font-size: 10px; color: var(--faint); white-space: nowrap; pointer-events: none; }

/* ---------- marca ---------- */
.brand-logo { display: block; flex: none; border-radius: 24%; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04); }
.sidebar-foot strong { color: var(--nav-text-hi); font-weight: 600; }

/* ---------- câmera remota (picture-in-picture) ---------- */
.cam-pip { position: absolute; right: 12px; bottom: 12px; width: 220px; max-width: 40%; border: 2px solid rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); background: #000; z-index: 4; }
.cam-pip canvas { display: block; width: 100%; height: auto; }
.cam-pip-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: none; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.cam-pip-x:hover { background: rgba(220,38,38,.85); }

/* ---------- SaaS: planos, assinatura, 2FA, LAPS ---------- */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-grid > .card + .card { margin-top: 0; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.plan-card.highlight { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.plan-card.current { border-color: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.plan-card.selectable { cursor: pointer; }
.plan-card.selectable:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.plan-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--ring); }
.plan-ribbon { position: absolute; top: -10px; left: 20px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 600; padding: 0 9px; line-height: 20px; border-radius: 999px; }
.plan-name { font-weight: 600; font-size: 14px; color: var(--text-2); }
.plan-price { font-size: 30px; font-weight: 660; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.plan-price span { font-size: 13px; font-weight: 450; color: var(--muted); letter-spacing: -.005em; }
.plan-desc { color: var(--muted); font-size: 13px; }
.plan-feats { list-style: none; padding: 12px 0 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; flex: 1; border-top: 1px solid var(--border); color: var(--text-2); }
.plan-feats li { display: flex; gap: 9px; align-items: center; }
.plan-feats svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.billing-banner { display: flex; align-items: center; gap: 10px; padding: 9px 32px; font-size: 13px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.billing-banner svg { width: 15px; height: 15px; flex: none; }
.billing-banner.info { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 15%, transparent); }
.billing-banner.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.billing-banner a { margin-left: auto; font-weight: 580; color: inherit; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.recovery-codes code { font-size: 15px; text-align: center; letter-spacing: 1px; color: var(--text); }
.mfa-setup ol { padding-left: 18px; line-height: 1.75; margin-top: 0; color: var(--text-2); }
.mfa-qr { display: flex; justify-content: center; margin: 10px 0; }
.mfa-qr img { background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); image-rendering: pixelated; }
.laps-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-top: 8px; }
.laps-pw { font-size: 14.5px; letter-spacing: .5px; padding: 0 11px; line-height: 32px; background: var(--surface); border-radius: 7px; border: 1px solid var(--border); min-width: 160px; user-select: all; color: var(--text); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 14px; max-height: 300px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.social-login { display: flex; flex-direction: column; gap: 8px; }
.social-login .btn { justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 2px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login.signup { grid-template-columns: minmax(340px, .8fr) 1.2fr; }
.login.signup .form { overflow: auto; align-items: start; padding: 48px 32px; }
.login.signup .form form { max-width: 760px; }
.login.signup .plan-card { padding: 16px 18px; }
.login.signup .plan-price { font-size: 22px; }
.big-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 6%, transparent); }

/* ---------- responsivo ---------- */
@media (max-height: 820px) { .login .side .login-preview { display: none; } .login .side { padding-top: 36px; padding-bottom: 32px; } }
@media (max-width: 1100px) {
  .login .side ul { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { display: none; }
  .login, .login.signup { grid-template-columns: 1fr; }
  .login .side { display: none; }
  .login-mobile-brand { display: flex; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-md); background: var(--surface); }
  .layout.nav-open .sidebar { transform: none; }
  .layout.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(9,9,11,.35); z-index: 25; }
  .btn.nav-toggle { display: inline-flex; margin-left: -6px; }
  .topbar { padding: 0 16px; }
  .topsearch { display: none; }
  .main { padding: 20px 16px 40px; }
  .billing-banner { padding: 9px 16px; }
  .ticket-layout { grid-template-columns: 1fr; }
  .toolbar input[type=search] { min-width: 0; flex: 1; }
  .recovery-codes { grid-template-columns: 1fr; }
  h1 { font-size: 20px; }
  .stat .v { font-size: 22px; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .topsearch + .top-actions { margin-left: auto; }
}
@media (max-width: 600px) { .login.signup .form-row > * { min-width: 100%; } }
@media print {
  .sidebar, .topbar, .no-print, #toasts, .toolbar button, .btn, .billing-banner { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; }
  .report-table .tbl td, .report-table .tbl th { font-size: 10.5px; padding: 4px 6px; }
}
