/* Inter, self-hosted (baixado uma vez do Google Fonts, servido local — sem chamada
   externa em runtime). Um arquivo só (fonte variável) cobre os 4 pesos abaixo; o
   navegador interpola pro peso certo, é comportamento padrão de variable font. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/Inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/Inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/Inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/Inter-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root  { color-scheme: dark;
  --font-brand: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;

  --accent: #0A84FF;
  --accent-dark: #0060DF;
  --accent-light: #409CFF;
  --accent-wash: rgba(10,132,255,.16);

  /* Escala Apple (iOS/macOS dark mode): base bem escura (não 100% preta — preto puro
     cansa a vista contra os cinzas ao redor), depois systemGray6→5→4 pra cada elevação. */
  --bg-0: #121214;
  --bg-1: #1c1c1e;
  --bg-2: #2c2c2e;
  --bg-3: #3a3a3c;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  /* labelColor / secondaryLabelColor / tertiaryLabelColor / quaternaryLabelColor —
     branco com opacidade decrescente, não cinza fixo (é assim que a Apple faz mesmo). */
  --text-0: rgba(255,255,255,1);
  --text-1: rgba(255,255,255,.82);
  --text-2: rgba(255,255,255,.55);
  --text-3: rgba(255,255,255,.3);

  /* Painéis "vidro" flutuantes (dropdowns, modal de confirmação, tela de login) e
     tintas de hover/destaque que precisam inverter no light mode — sem variável,
     ficariam cinza-escuro fixo mesmo com a página clara. */
  --panel-bg: rgba(44,44,46,.86);
  --bar-bg: rgba(28,28,30,.72);
  --hover-tint: rgba(255,255,255,.05);
  --edge-highlight: rgba(255,255,255,.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 980px;
  --ease: cubic-bezier(.4,0,.2,1);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 1px rgba(0,0,0,.22), 0 10px 26px rgba(0,0,0,.26);
  --shadow-pop: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 44px rgba(0,0,0,.44);
}

/* Light mode — cores reais do sistema Apple (light): página cinza claro
   (systemGroupedBackground), cards brancos, texto preto com opacidade decrescente
   em vez de branco, sombras em preto em vez de branco. */
:root[data-theme="light"] {
  color-scheme: light;
  --accent: #007AFF;
  --accent-dark: #0056B3;
  --accent-light: #0068D6;
  --accent-wash: rgba(0,122,255,.12);

  --bg-0: #F2F2F7;
  --bg-1: #FFFFFF;
  --bg-2: #EDEDF2;
  --bg-3: #E1E1E8;
  --border: rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.15);

  --text-0: rgba(0,0,0,.92);
  --text-1: rgba(0,0,0,.72);
  --text-2: rgba(0,0,0,.48);
  --text-3: rgba(0,0,0,.28);

  --panel-bg: rgba(255,255,255,.82);
  --bar-bg: rgba(255,255,255,.72);
  --hover-tint: rgba(0,0,0,.04);
  --edge-highlight: rgba(0,0,0,.05);

  --shadow-card: 0 1px 1px rgba(0,0,0,.03), 0 6px 16px rgba(0,0,0,.06);
  --shadow-pop: 0 12px 32px rgba(0,0,0,.14);
}
body  { margin: 0; background: var(--bg-0); font-family: var(--font-body); color: var(--text-1); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a  { color: var(--accent-light); text-decoration: none; transition: color .18s var(--ease); }
a:hover  { color: #6cb4ff; }
:focus-visible  { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection  { background: var(--accent); color: #fff; }
::-webkit-scrollbar  { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--bg-3); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,.22); background-clip: content-box; }
h1, h2, h3, .stat-value, .hostname, .cred-name, .card-title  { font-family: var(--font-brand); font-weight: 700; letter-spacing: -.01em; }

.layout { display: flex; flex-direction: column; width: 100%; min-height: 100vh; }

.topbar {
  display: flex; align-items: center; gap: 28px; height: 60px; flex: none;
  background: var(--bar-bg); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* Logo preenchida com currentColor via mask-image, não <img> — assim ela troca de
   cor sozinha com o tema (branca no escuro, quase preta no claro) sem precisar de
   dois arquivos. Só funciona porque o PNG tem fundo transparente de verdade. */
/* <img> normal (não mask-image) — o navegador usa o tamanho real do arquivo pra
   calcular a proporção sozinho, sem eu ter que travar largura/altura na mão. A troca
   de cor entre os temas vem do filter: invert() abaixo, não de recolorir a imagem. */
.brand-logo {
  display: block; height: 26px; width: auto; flex: none;
  filter: invert(1) brightness(1.3);
  transition: filter .2s var(--ease);
}
:root[data-theme="light"] .brand-logo { filter: none; }

.tabbar { flex: 1; display: flex; align-items: center; gap: 2px; height: 100%; overflow-x: auto; }
.tab-item { display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease); }
.tab-item svg { flex: none; opacity: .8; }
.tab-icon-wrap { position: relative; display: inline-flex; flex: none; }
.badge-dot {
  position: absolute; top: -7px; right: -9px; z-index: 1;
  min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box;
  background: #FF453A; color: #fff; font-size: 9.5px; font-weight: 700;
  border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg-0); font-variant-numeric: tabular-nums; line-height: 1;
}
.tab-item:hover { background: var(--bg-2); color: var(--text-1); }
.tab-item.active { color: var(--text-0); font-weight: 600; border-bottom-color: var(--accent); }
.tab-item.active svg { opacity: 1; }
button.tab-item { border: none; background: transparent; font-family: inherit; cursor: pointer; }

/* .tab-dropdown-menu: painel reaproveitado pelo .filter-dropdown (Rede & IPs) — não
   sobrou nenhum dropdown de navegação no momento, só esse de filtro de página. */
.tab-dropdown-menu {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--panel-bg); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 6px;
  display: none; flex-direction: column; gap: 1px; box-shadow: var(--shadow-pop); z-index: 30;
}
.tab-dropdown-menu a { font-size: 12.5px; color: var(--text-2); padding: 8px 9px; border-radius: 7px; transition: background .12s var(--ease), color .12s var(--ease); }
.tab-dropdown-menu a:hover { background: var(--bg-2); color: var(--accent-light); }
.tab-dropdown-menu a.active { color: var(--accent-light); font-weight: 600; }

/* Dropdown de filtro fora do topbar (Rede & IPs) — reaproveita o mesmo painel/menu
   (.tab-dropdown-menu) do dropdown de navegação, só sem o height:100% que só faz
   sentido dentro da barra de 60px do topo. */
.filter-dropdown { position: relative; display: inline-flex; }
.filter-dropdown.open .tab-dropdown-menu { display: flex; }
.filter-dropdown-btn { display: inline-flex; align-items: center; gap: 7px; }
.filter-dropdown-btn svg:last-child { opacity: .6; transition: transform .18s var(--ease); }
.filter-dropdown.open .filter-dropdown-btn svg:last-child { transform: rotate(180deg); }
.filter-dropdown-btn.filter-dropdown-active { border-color: var(--accent); color: var(--accent-light); }

.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.topbar-search { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 12px; color: var(--text-3); width: 220px; transition: border-color .18s var(--ease), background .18s var(--ease); }
.topbar-search:focus-within { border-color: var(--border-strong); background: rgba(0,0,0,.32); }
.topbar-search input { border: none; background: transparent; outline: none; color: var(--text-1); font-size: 12.5px; width: 100%; font-family: inherit; }
.topbar-search input::placeholder { color: var(--text-3); }

.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: 80vw;
  background: var(--panel-bg); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 6px;
  display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-pop); z-index: 20;
  max-height: 380px; overflow-y: auto;
}
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border-radius: 7px; text-decoration: none; transition: background .12s var(--ease); }
.search-result:hover, .search-result.active { background: var(--bg-3); }
.search-result-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.search-result-title { font-size: 12.5px; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-subtitle { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-category { font-size: 10px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .02em; flex: none; }
.search-result-all { justify-content: center; font-size: 12px; font-weight: 600; color: var(--accent-light); padding: 9px; border-top: 1px solid var(--border); margin-top: 3px; border-radius: 0 0 7px 7px; }

.user-menu { position: relative; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); border: none; padding: 0; font-family: inherit; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); flex: none; cursor: pointer; transition: background .18s var(--ease), transform .12s var(--ease); }
.user-menu:hover .user-avatar, .user-menu.open .user-avatar { background: var(--accent); color: #fff; }
.user-avatar:active { transform: scale(.94); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--panel-bg); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 8px;
  display: none; flex-direction: column; gap: 1px; min-width: 170px; box-shadow: var(--shadow-pop); z-index: 20;
}
.user-menu.open .user-dropdown { display: flex; }
.user-dropdown-name { font-size: 12px; font-weight: 600; color: var(--text-1); padding: 6px 8px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-dropdown a { font-size: 12.5px; color: var(--text-2); padding: 7px 9px; border-radius: 7px; transition: background .12s var(--ease), color .12s var(--ease); }
.user-dropdown a:hover { background: var(--bg-2); color: var(--accent-light); }
.user-dropdown-theme { padding: 7px 9px; margin-bottom: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; }
.user-dropdown-theme:hover { color: var(--text-2); }

.content { flex: 1; min-width: 0; padding: 40px 48px 64px; max-width: 1240px; margin: 0 auto; width: 100%; }
h1  { font-size: 27px; font-weight: 700; color: var(--text-0); margin: 0 0 6px; letter-spacing: -.015em; }
.muted  { color: var(--text-2); }
.mono  { font-family: var(--font-mono); }
.small  { font-size: 11.5px; }
.section-label  { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--text-3); margin: 30px 0 12px; }

.stat-grid  { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin: 26px 0 8px; }
.stat-card  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-card); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.stat-card:hover  { border-color: var(--border-strong); transform: translateY(-1px); }
.stat-label  { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: none; margin-bottom: 8px; letter-spacing: normal; }
.stat-value  { font-size: 28px; font-weight: 700; color: var(--text-0); font-variant-numeric: tabular-nums; }
.stat-green  { color: #30D158; } .stat-yellow  { color: #FFD60A; } .stat-red  { color: #FF453A; }

.env-grid  { display: flex; gap: 12px; }
.env-card  { flex: 1; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; transition: border-color .18s var(--ease); }
.env-card:hover  { border-color: var(--border-strong); }
.env-card-label  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.env-card-count  { font-size: 22px; font-weight: 700; color: var(--text-0); font-variant-numeric: tabular-nums; }

.dot  { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-prod  { background: var(--accent); } .dot-staging  { background: #FF9F0A; } .dot-dev  { background: #BF5AF2; }
.dot-status-online  { background: #30D158; } .dot-status-maintenance  { background: #FFD60A; } .dot-status-offline  { background: #FF453A; }

.card  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.card-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

.row-line  { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
a.row-line  { color: inherit; text-decoration: none; transition: background .15s var(--ease); }
a.row-line:hover  { background: var(--bg-2); color: inherit; }
.row-line:last-child  { border-bottom: none; }
.flex-1  { flex: 1; }
.tag { font-size: 11px; font-weight: 600; text-transform: capitalize; letter-spacing: normal; padding: 3px 10px; border-radius: 6px; }
.tag-infra  { color:#5AC8FA; background:#0A84FF26; } .tag-rede  { color:#BF5AF2; background:#BF5AF226; }
.tag-banco  { color:#30D158; background:#30D15826; } .tag-acesso  { color:#FF9F0A; background:#FF9F0A26; }
.tag-red  { color:#FF453A; background:#FF453A26; } .tag-yellow  { color:#FFD60A; background:#FFD60A26; }

.winrm-output  { margin-top: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-1);
  white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow-y: auto; }
.winrm-output-error  { color: #FF453A; }
.tag-env-prod  { color: var(--accent-light); background: var(--accent-wash); padding:3px 10px; border-radius: var(--radius-pill); font-size:11px; font-weight:600; }
.tag-env-staging  { color:#FF9F0A; background:rgba(255,159,10,.16); padding:3px 10px; border-radius: var(--radius-pill); font-size:11px; font-weight:600; }
.tag-env-dev  { color:#BF5AF2; background:rgba(191,90,242,.16); padding:3px 10px; border-radius: var(--radius-pill); font-size:11px; font-weight:600; }

.page-head  { display: flex; align-items: center; justify-content: space-between; }
.toolbar  { display: flex; gap: 10px; margin: 18px 0 20px; flex-wrap: wrap; align-items: center; }
.toolbar input  { flex: 1; min-width: 220px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; color: var(--text-1); font-size: 13px; transition: border-color .15s var(--ease); }
.toolbar input:focus  { outline: none; border-color: var(--accent); }
.toolbar-select  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 30px 10px 13px;
  color: var(--text-1); font-size: 13px; font-family: inherit; cursor: pointer; transition: border-color .15s var(--ease);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8A8A' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.toolbar-select:hover, .toolbar-select:focus  { border-color: var(--border-strong); outline: none; }
.toolbar-select option  { background: var(--bg-1); color: var(--text-1); }
.filter-group  { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn  { padding: 9px 15px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg-1); color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s var(--ease); text-decoration: none; display: inline-flex; }
.filter-btn:hover  { border-color: var(--border-strong); color: var(--text-1); }
.filter-btn.active { border-color: var(--border-strong); background: var(--bg-3); color: var(--text-0); box-shadow: 0 1px 0 var(--edge-highlight) inset; }
.filter-btn-warn:not(.active)  { border-color: rgba(255,69,58,.4); color: #FF453A; }

.server-table  {  }
.server-row  { display: grid; grid-template-columns: 20px .55fr 1.4fr 1fr 1.3fr 1fr 1.15fr 24px; gap: 12px; padding: 15px 20px; align-items: center; border-bottom: 1px solid var(--border); }
.server-row-head  { padding: 11px 20px; }
.server-row-head a  { color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; transition: color .15s var(--ease); }
.server-row-head a:hover  { color: var(--text-1); }
.server-row-head svg  { opacity: 0; transition: opacity .15s var(--ease); }
.server-row-head a:hover svg, .server-row-head a.sort-active svg  { opacity: 1; }
.server-row-head a.sort-active  { color: var(--accent-light); }
.server-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.server-summary  { cursor: pointer; color: inherit; text-decoration: none; transition: background .15s var(--ease); }
.server-summary:hover  { background: var(--bg-2); color: inherit; }
.server-summary:last-child  { border-bottom: none; }
.hostname  { font-size: 13.5px; font-weight: 600; color: var(--text-0); font-family: var(--font-mono); }
.span-all  { grid-column: 1 / -1; }

.instance-row  { display: grid; grid-template-columns: 1.3fr 1fr .8fr .6fr 1.1fr 24px; gap: 12px; padding: 15px 20px; align-items: center; border-bottom: 1px solid var(--border); }
.instance-row-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.instance-summary  { cursor: pointer; color: inherit; text-decoration: none; transition: background .15s var(--ease); }
.instance-summary:hover  { background: var(--bg-2); color: inherit; }
.instance-summary:last-child  { border-bottom: none; }

.back-link  { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; transition: color .15s var(--ease); }
.back-link:hover  { color: var(--accent-light); }

.breadcrumb  { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.breadcrumb a  { color: var(--text-2); }
.breadcrumb a:hover  { color: var(--accent-light); }
.breadcrumb .sep  { color: var(--text-3); opacity: .5; }
.breadcrumb .current  { color: var(--text-1); font-weight: 600; }

.status-badge  { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px 4px 9px; border-radius: var(--radius-pill); }
.status-badge-online  { color: #30D158; background: rgba(48,209,88,.14); }
.status-badge-maintenance  { color: #FFD60A; background: rgba(255,214,10,.14); }
.status-badge-offline  { color: #FF453A; background: rgba(255,69,58,.14); }
.status-badge .dot  { width: 7px; height: 7px; }

.info-tile-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px; }
.info-tile  { display: flex; flex-direction: column; gap: 4px; }
.info-tile-label  { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: normal; }
.info-tile-value  { font-size: 14px; color: var(--text-0); font-weight: 600; font-variant-numeric: tabular-nums; }
.info-tile-full  { grid-column: 1 / -1; }

.check-chip-list  { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip  { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 11px 6px 13px; font-size: 12.5px; color: var(--text-1); transition: border-color .15s var(--ease); }
.check-chip:hover  { border-color: var(--border-strong); }
.check-chip-date  { font-size: 10.5px; font-family: var(--font-mono); }
.check-chip form  { display: contents; }
.check-chip .check-toggle  { font-size: 13px; }
.check-chip .check-remove  { margin-left: 2px; }
.check-group-label  { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: normal; margin: 14px 0 8px; }

.visibility-toggle { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-2); cursor: pointer; user-select: none; }

/* Toggle switch estilo iOS/macOS — appearance:none + pseudo-elemento pro track/bolinha,
   em vez do checkbox quadrado padrão do navegador. */
.visibility-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 36px; height: 22px; flex: none; margin: 0; padding: 0;
  background: var(--bg-3); border-radius: var(--radius-pill); position: relative;
  cursor: pointer; transition: background .2s var(--ease);
  border: 1px solid var(--border);
}
.visibility-toggle input[type="checkbox"]::before {
  content: ""; position: absolute; top: 1px; left: 1px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform .2s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.visibility-toggle input[type="checkbox"]:checked {
  background: #30D158; border-color: transparent;
}
.visibility-toggle input[type="checkbox"]:checked::before { transform: translateX(14px); }
.visibility-toggle input[type="checkbox"]:active::before { width: 20px; }
.visibility-toggle input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.server-page-head  { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.server-page-title  { font-size: 24px; font-weight: 700; color: var(--text-0); font-family: var(--font-mono); letter-spacing: -.01em; }
.server-page-tags  { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }

.server-notes-line  { color: var(--text-1); font-size: 13px; line-height: 1.5; margin: 12px 0 0; padding: 10px 15px; border-left: 2px solid var(--accent); background: var(--accent-wash); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 720px; }
.server-notes-inline  { margin-top: 10px; max-width: 640px; }

.server-alert-banner  { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,69,58,.14); border: 1px solid rgba(255,69,58,.32); border-radius: var(--radius-md);
  padding: 13px 17px; margin: 16px 0 0; font-size: 13px; color: #FF6961; }
.server-alert-text strong  { color: var(--text-0); }
.server-alert-banner a  { color: #FF6961; text-decoration: underline; white-space: nowrap; flex: none; }
.server-alert-banner a:hover  { color: var(--text-0); }

.alert-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 22px 0 26px; }
.alert-stat { border-radius: var(--radius-lg); padding: 18px 20px; border: 1px solid var(--border); }
.alert-stat-label { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }
.alert-stat-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.alert-stat-critical { background: rgba(255,69,58,.1); border-color: rgba(255,69,58,.28); }
.alert-stat-critical .alert-stat-value { color: #FF453A; }
.alert-stat-warning { background: rgba(255,159,10,.1); border-color: rgba(255,159,10,.28); }
.alert-stat-warning .alert-stat-value { color: #FF9F0A; }
.alert-stat-total .alert-stat-value { color: var(--text-0); }

.alert-card-list { display: flex; flex-direction: column; gap: 10px; }
.alert-card { display: flex; align-items: flex-start; gap: 13px; padding: 14px 17px; border-radius: var(--radius-md); border: 1px solid; transition: border-color .15s var(--ease); }
.alert-card-icon { flex: none; margin-top: 1px; }
.alert-card-critical { background: rgba(255,69,58,.1); border-color: rgba(255,69,58,.28); }
.alert-card-critical:hover { border-color: rgba(255,69,58,.45); }
.alert-card-critical .alert-card-icon { color: #FF453A; }
.alert-card-warning { background: rgba(255,159,10,.1); border-color: rgba(255,159,10,.28); }
.alert-card-warning:hover { border-color: rgba(255,159,10,.45); }
.alert-card-warning .alert-card-icon { color: #FF9F0A; }
.alert-card-body { flex: 1; min-width: 0; }
.alert-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.alert-card-message { font-size: 13.5px; color: var(--text-1); }
.alert-card-actions { flex: none; }
.alert-card-resolved { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: flex-start; gap: 12px; }
.alert-card-resolved .alert-card-icon { color: var(--text-3); }

/* "Ficha do ativo": coluna principal larga + sidebar fixa de metadados */
.server-detail-grid  { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; margin: 24px 0; }
.server-main-col  { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.server-sidebar  { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.sidebar-field-list  { display: flex; flex-direction: column; gap: 12px; }
.sidebar-field  { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px)  { .server-detail-grid { grid-template-columns: 1fr; }
  .server-sidebar  { position: static; }
}

.tab-panels-card  { padding-top: 16px; }

.detail-tabbar  { display: flex; gap: 3px; margin-bottom: 20px; padding: 4px; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius-md); }
.detail-tab  { display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1; padding: 9px 12px; border-radius: 9px; border: none; background: transparent;
  color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap; text-decoration: none; }
.detail-tabbar-inline  { display: inline-flex; margin-bottom: 16px; }
.detail-tabbar-inline .detail-tab  { flex: none; }
.detail-tab svg  { flex: none; opacity: .8; transition: opacity .2s var(--ease); }
.detail-tab:hover  { color: var(--text-1); background: var(--hover-tint); }
.detail-tab.active  { color: var(--text-0); background: var(--bg-3); box-shadow: 0 1px 0 var(--edge-highlight) inset, 0 2px 10px rgba(0,0,0,.3); }
.detail-tab.active svg  { opacity: 1; color: var(--accent-light); }
.detail-tab .tab-count  { color: var(--text-3); font-weight: 500; }
.detail-tab.active .tab-count  { color: var(--accent-light); }

.tab-panel  { min-height: 40px; animation: tab-fade-in .22s var(--ease); }
@keyframes tab-fade-in  { from { opacity: 0; transform: translateY(4px); } to  { opacity: 1; transform: translateY(0); } }

.metric-tile-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-tile  { background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 15px; transition: border-color .15s var(--ease); }
.metric-tile:hover  { border-color: var(--border-strong); }
.metric-tile-label  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
.metric-tile-value  { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--text-0); font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-tile-sub  { font-size: 11px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.metric-bar  { height: 5px; border-radius: var(--radius-pill); background: var(--bg-3); margin-top: 9px; overflow: hidden; }
.metric-bar-fill  { height: 100%; border-radius: var(--radius-pill); background: var(--accent); transition: width .5s var(--ease); }
.metric-bar-fill.metric-bar-warn  { background: #FF9F0A; }
.metric-bar-fill.metric-bar-crit  { background: #FF453A; }

.metric-table  { margin-bottom: 4px; }
.metric-row  { display: grid; grid-template-columns: 1.1fr 1fr .9fr .9fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.metric-row:last-child  { border-bottom: none; }
.metric-row-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.add-toggle-btn  { margin-top: 4px; color: var(--text-3); border-style: dashed; }
.add-toggle-btn:hover  { color: var(--text-1); border-style: dashed; }

.card-accent-top  { border-top: 2px solid var(--accent); }

.audit-inline-note  { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.audit-inline-note .dot  { width: 5px; height: 5px; background: var(--text-3); }
.audit-inline-note a  { color: var(--text-3); text-decoration: underline; }
.audit-inline-note a:hover  { color: var(--accent-light); }

.audit-mini-row  { grid-template-columns: 1fr 2fr 1fr; }

.server-page-footer  { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-3); margin: 20px 2px 0; }

.btn-save  { color: var(--accent-light); border-color: var(--accent); }
.btn-save:hover  { background: var(--accent-wash); color: var(--accent-light); }
.server-title-input  { background: transparent; border: none; border-bottom: 1px dashed var(--border); font-size: 24px; font-weight: 700; color: var(--text-0); font-family: var(--font-mono); padding: 2px 4px; min-width: 220px; }
.server-title-input:focus  { outline: none; border-bottom-color: var(--accent); }
.server-vmid-input  { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; color: var(--text-2); font-family: var(--font-mono); width: 110px; }
.server-env-select  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 9px; color: var(--text-0); font-size: 12.5px; }
.server-role-input, .server-tags-input  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 11px; color: var(--text-0); font-size: 13px; width: 100%; max-width: 460px; display: block; margin-top: 8px; }
.server-notes-textarea  { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; color: var(--text-0); font-size: 13px; width: 100%; resize: vertical; font-family: inherit; }
.edit-field  { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 500; text-transform: none; letter-spacing: normal; margin-bottom: 10px; }
.edit-field:last-child  { margin-bottom: 0; }
.edit-field input, .edit-field select  { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text-0); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: normal; font-family: var(--font-body); }
.edit-field input:focus, .edit-field select:focus  { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.edit-field input::placeholder, .server-notes-textarea::placeholder,
.check-add-form input::placeholder, .app-add-form input::placeholder,
.server-cred-add-form input::placeholder, .form-card input::placeholder,
.form-card textarea::placeholder, .server-role-input::placeholder, .server-tags-input::placeholder {
  color: var(--text-3);
}
.info-card  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-card); }
.info-card-title  { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: normal; margin-bottom: 15px; }
.info-row  { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.detail-label  { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
.reveal-row  { display: flex; align-items: center; gap: 8px; }
.btn-icon  { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 11px; color: var(--text-2); font-size: 11px; font-family: inherit; line-height: 16px; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.btn-icon:hover  { background: var(--bg-3); color: var(--text-1); }
.btn-icon:active  { transform: scale(.96); }
.btn-icon-disabled  { opacity: .35; pointer-events: none; }
.btn-icon svg  { flex: none; }
.page-actions form  { display: flex; }

.pager  { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.btn-danger  { color: #FF6961; border-color: rgba(255,69,58,.32); }
.btn-danger:hover  { background: rgba(255,69,58,.16); color: #FF6961; }
.copied-flag  { font-size: 11px; color: #30D158; }
.check-row  { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.check-ok  { color: #30D158; } .check-fail  { color: #FF453A; }
.check-toggle  { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0; transition: transform .1s var(--ease); }
.check-toggle:active  { transform: scale(.85); }
.check-remove  { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; margin-left: auto; transition: color .15s var(--ease); }
.check-remove:hover  { color: #FF453A; }
.check-add-form  { display: flex; gap: 8px; margin-top: 10px; }
.check-add-form input  { flex: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 9px; color: var(--text-0); font-size: 12px; }

.app-table  { margin-bottom: 4px; }
.app-row  { display: grid; grid-template-columns: 2fr 1fr 1fr 64px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.app-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.ip-table  { margin-bottom: 4px; }
.ip-row  { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 24px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.ip-row:last-child  { border-bottom: none; }
.ip-row-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.app-row:last-child  { border-bottom: none; }
.app-row-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.app-add-form  { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.app-add-form input, .app-add-form select  { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text-0); font-size: 12px; }
.app-add-form input[name="name"]  { flex: 1; min-width: 160px; }
.app-add-form input[name="port"]  { width: 90px; }
.app-add-form input[name="url"]  { flex: 1.4; min-width: 200px; }
.app-add-form input[name="address"]  { width: 150px; flex: none; }
.app-add-form input[name="owner_label"], .app-add-form input[name="notes"]  { flex: 1; min-width: 140px; }

.server-cred-table  { margin-bottom: 4px; }
.server-cred-row  { display: grid; grid-template-columns: 1.2fr 1.4fr 2fr 24px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.server-cred-row:last-child  { border-bottom: none; }
.server-cred-row-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.server-cred-notes  { padding: 0 0 8px; margin-top: -4px; }
.server-cred-add-form  { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.server-cred-add-form input  { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text-0); font-size: 12px; }
.server-cred-add-form input[name="label"]  { flex: 1; min-width: 160px; }
.server-cred-add-form input[name="username"]  { flex: 1; min-width: 160px; }
.server-cred-add-form input[name="password"]  { flex: 1; min-width: 120px; }
.server-cred-add-form input[name="notes"]  { flex: 1.4; min-width: 160px; }

.tag-list, .pill  { display: inline-flex; }
.pill  { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font-size:11px; padding:3px 10px; border-radius: var(--radius-pill); margin-right:4px; }

.net-row  { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr 1.4fr; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.net-row.net-row-admin  { grid-template-columns: 1.2fr 1.3fr 1fr 1fr 1.2fr auto; }
.net-row.net-row-users  { grid-template-columns: 1.4fr 1fr 1fr auto; }
.net-row.net-row-audit  { grid-template-columns: 1fr 1.2fr 1.4fr 1fr; }
.net-head span  { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }
.row-actions { display: flex; gap: 8px; opacity: 0; transition: opacity .15s var(--ease); }
.company-card:hover .row-actions, .company-card:focus-within .row-actions,
.cred-card:hover .row-actions, .cred-card:focus-within .row-actions,
.net-row:hover .row-actions, .net-row:focus-within .row-actions,
.info-card:hover .row-actions, .info-card:focus-within .row-actions { opacity: 1; }
.net-row { transition: background .15s var(--ease); }
.net-row:hover { background: var(--hover-tint); }

.cred-card  { padding: 20px 22px; transition: border-color .18s var(--ease); }
.cred-card:hover  { border-color: var(--border-strong); }
.cred-head  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cred-name  { font-size: 14px; font-weight: 700; color: var(--text-0); }
.cred-row  { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 4px 0; }
.cred-notes  { font-size: 12px; margin-top: 6px; }

.timeline  { position: relative; padding-left: 26px; }
.timeline::before  { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--border); }
.timeline-item  { position: relative; padding-bottom: 26px; }
.timeline-dot  { position: absolute; left: -25px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--text-2); }
.tag-dot-infra  { border-color: var(--accent); } .tag-dot-rede  { border-color: #BF5AF2; } .tag-dot-banco  { border-color: #30D158; } .tag-dot-acesso  { border-color: #FF9F0A; }
.timeline-meta  { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.timeline-text  { font-size: 13.5px; color: var(--text-1); font-weight: 600; }
.timeline-detail  { font-size: 12px; }

/* Diálogo de confirmação — substitui o confirm() nativo do navegador, que quebrava
   completamente a linguagem visual (é a única caixa que o Chrome/Firefox desenham
   do jeito deles, sem CSS nenhum nosso). */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s var(--ease);
}
.confirm-overlay-show { opacity: 1; }
.confirm-dialog {
  background: var(--panel-bg); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 22px 24px;
  width: 340px; max-width: calc(100vw - 40px); box-shadow: var(--shadow-pop);
  transform: scale(.94); transition: transform .18s var(--ease);
}
.confirm-overlay-show .confirm-dialog { transform: scale(1); }
.confirm-message { font-size: 13.5px; color: var(--text-1); line-height: 1.5; margin: 0 0 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 20px; text-align: center; }
.empty-state svg { opacity: .4; }
.empty-state p { margin: 0; font-size: 13px; color: var(--text-2); }

/* Disclosure triangle estilo Finder/Notas — chevron que gira, não a seta quadrada
   padrão do navegador. */
details.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before {
  content: ""; width: 6px; height: 6px; flex: none;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(-45deg); transition: transform .18s var(--ease);
}
details.disclosure[open] > summary::before { transform: rotate(45deg); }

.flash { padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.flash-error  { background: rgba(255,69,58,.14); color: #FF6961; border: 1px solid rgba(255,69,58,.3); }
.flash-success  { background: var(--accent-wash); color: var(--accent-light); border: 1px solid rgba(10,132,255,.3); }

.login-wrap  { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse 900px 600px at 50% 30%, rgba(10,132,255,.08), transparent); }
.login-card  { background: var(--panel-bg); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px 36px; width: 320px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-pop); }
.login-card label  { font-size: 12px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.login-card input  { background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-1); font-size: 13px; transition: border-color .15s var(--ease); }
.login-card input:focus  { outline: none; border-color: var(--accent); }
.login-card button  { margin-top: 16px; background: var(--accent); border: none; border-radius: var(--radius-pill); padding: 11px; color: #fff; font-weight: 600; cursor: pointer; transition: background .15s var(--ease), transform .1s var(--ease); }
.login-card button:hover  { background: var(--accent-dark); }
.login-card button:active  { transform: scale(.98); }

.company-card  { display: block; padding: 20px 22px; transition: border-color .18s var(--ease), background .18s var(--ease); }
.company-card:hover  { border-color: var(--border-strong); background: var(--bg-2); }
.card-title  { font-size: 14px; font-weight: 700; color: var(--text-0); display: block; }
.card-title:hover  { color: var(--accent-light); }

.btn-primary  { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); border: none; border-radius: var(--radius-pill); padding: 10px 18px; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s var(--ease), transform .1s var(--ease); }
.btn-primary:hover  { background: var(--accent-dark); color: #fff; }
.btn-primary:active  { transform: scale(.97); }
.btn-small  { padding: 7px 13px; font-size: 12.5px; }
.page-actions  { display: flex; gap: 8px; margin-left: auto; }

.form-card  { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 18px; max-width: 720px; box-shadow: var(--shadow-card); }
.form-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 20px; margin-bottom: 16px; }
.form-full  { display: block; margin-bottom: 16px; }
.form-card label  { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.form-card input, .form-card select, .form-card textarea  { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
  color: var(--text-1); font-size: 13px; font-family: inherit; width: 100%; transition: border-color .15s var(--ease); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus  { outline: none; border-color: var(--accent); }
.form-card textarea  { resize: vertical; }
.form-actions  { display: flex; justify-content: flex-end; margin-top: 8px; }
