:root {
  --bg:#f5f6f4; --ink:#242c26; --muted:#626e64; --line:#dfe4de;
  --orange:#bf551e; --dark:#202b25; --green:#456f55;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none; color:var(--ink); background:var(--bg);
}
* { box-sizing:border-box }
body { margin:0; font-size:13px; line-height:1.5 }
button,input,select,textarea { font:inherit }
button,a,select { touch-action:manipulation }
button { cursor:pointer; border:0 }
button:disabled { cursor:default; opacity:.5 }
a { color:inherit; text-decoration:none }
button:focus-visible,a:focus-visible { outline:2px solid var(--orange); outline-offset:3px }
.brand { display:flex; align-items:baseline; gap:8px; font-size:25px; font-weight:850; letter-spacing:-1.3px; line-height:1 }
.brand span { color:#aebcb1; font-size:8px; letter-spacing:1.6px; font-weight:500 }
.shell { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:100vh }
aside { position:fixed; inset:0 auto 0 0; width:220px; padding:22px 14px 14px; background:var(--dark); color:#f4f6ef; display:flex; flex-direction:column; overflow:auto }
.sidebar-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 8px; margin-bottom:24px }
.menu-toggle { display:none }
.sidebar-menu { display:flex; flex:1; flex-direction:column; min-height:0 }
.workspace { margin-bottom:16px }
.workspace label { color:#b8c3b9; font-size:11px; margin:0 8px 6px; gap:0 }
.workspace select { width:100%; background:#2b3830; color:#f0f3ed; border-color:#4d5c50; padding:8px; font-size:12px }
.sidebar-menu nav { display:flex; flex-direction:column; gap:3px }
.nav-item { display:flex; position:relative; align-items:center; gap:10px; width:100%; min-height:36px; padding:7px 10px; border-radius:5px; text-align:left; background:transparent; color:#c1ccc3; font-size:12px; font-weight:500 }
.nav-item span,.nav-item b { flex:0 0 18px; font-size:17px; line-height:1; font-weight:400; text-align:center }
.nav-item small { margin-left:auto; padding:0 5px; border-radius:3px; color:#e0e8df; background:#435347 }
.nav-item:hover { background:#2d3b32; color:#fff }
.nav-item.active { background:#3b4c3e; color:#fff }
.nav-item.active::before { content:""; position:absolute; left:-14px; height:18px; width:3px; border-radius:0 3px 3px 0; background:var(--orange) }
.operator-block { margin-top:14px; padding-top:12px; border-top:1px solid #3d4b41 }
.sidebar-bottom { margin-top:auto; padding:20px 6px 0 }
.account-row { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:8px; min-width:0 }
.account-row strong { min-width:0; font-size:11px; font-weight:600; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.sidebar-bottom .text-button { color:#d2dcd2; font-size:11px }
.logout-button { flex-shrink:0; margin-left:auto; white-space:nowrap }
.role-row { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:8px; min-height:28px }
.role-row small { font-size:11px; color:#b0beb2 }
.settings-button { display:inline-flex; align-items:center; justify-content:center; padding:4px; border-radius:4px }
.sidebar-bottom .icon-action { display:grid; place-items:center; width:28px; height:28px; padding:0; border-radius:4px }.icon-action svg { display:block; width:18px; height:18px }.icon-action:hover { background:#3b4c3e; text-decoration:none }
.settings-button:hover { background:#3b4c3e }
.main { grid-column:2; min-width:0 }
.content { width:100%; padding:22px 24px 32px }
.workspace-context { display:block; margin-bottom:10px; color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.workspace-context span { color:#7c887e; margin:0 8px }
.global-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px }
.page-heading>div:first-child { min-width:0 }
.page-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; gap:8px }
h1 { margin:0; font-size:23px; line-height:1.3; font-weight:650; letter-spacing:-.6px; overflow-wrap:anywhere }
h1:focus { outline:none }
h2 { font-size:15px; font-weight:600; line-height:1.4; letter-spacing:-.2px; margin:0 0 10px }
h3 { margin:0 0 8px; font-size:14px; font-weight:600 }
p { margin:6px 0; color:var(--muted); line-height:1.6 }
.page-heading p { margin:5px 0 0; max-width:80ch; font-size:12px }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; min-height:34px; gap:6px; border-radius:5px; padding:7px 12px; font-size:12px; font-weight:600; line-height:1.5 }
.primary { background:var(--orange); color:#fff }
.primary:hover { background:#a64518 }
.secondary { border:1px solid #cfd8ce; background:#fff; color:#3e5040 }
.secondary:hover { background:#f0f4ed }
.text-button { background:transparent; padding:4px 6px; color:#426247; font-size:12px; font-weight:500 }
.text-button:hover { text-decoration:underline }
.danger { color:#9f4936 }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px }
.stat { border:1px solid var(--line); border-radius:7px; padding:14px 16px; background:#fff; min-width:0 }
.stat>span { font-size:12px; color:var(--muted) }
.stat>strong { display:block; margin:8px 0 0; font-size:27px; line-height:1.2; font-weight:550; letter-spacing:-.6px }
.stat strong small { font-size:11px; margin-left:7px; color:var(--muted); font-weight:400; letter-spacing:0 }
.stat p { margin:6px 0 0; font-size:11px }
.stat .date-stat { font-size:21px; margin-top:12px }
.card { min-width:0; margin-bottom:16px; border:1px solid var(--line); border-radius:7px; padding:16px; background:#fff }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px }
.card-heading h2 { margin:0 }
.small-label { display:block; margin-bottom:4px; color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.7px }
.pill { display:inline-flex; align-items:center; gap:6px; padding:4px 7px; border-radius:4px; background:#edf4e9; color:#3b653f; font-size:11px; white-space:nowrap }
.pill i { width:5px; height:5px; border-radius:50%; background:currentColor }
.pill.warn { color:#896025; background:#fbf0df }
.table-wrap { overflow:auto; max-width:100%; overscroll-behavior-x:contain }
table { width:100%; border-collapse:collapse; text-align:left; font-size:12px }
th { padding:9px 10px; border-bottom:1px solid var(--line); font-size:11px; color:var(--muted); font-weight:500; white-space:nowrap }
td { padding:10px; border-bottom:1px solid #e9ede7; color:#556456; vertical-align:middle }
tr:last-child td { border-bottom:0 }
td strong { font-weight:550; color:#344638; overflow-wrap:anywhere }
td small { display:block; margin-top:3px; font-size:11px; color:var(--muted) }
td:first-child,th:first-child { padding-left:0 }
td:last-child,th:last-child { padding-right:0 }
td select { font-size:12px; max-width:165px; padding:6px }
td button { margin:2px 0 }
.info { padding:10px 12px; margin-bottom:14px; border:1px solid #e6dfcd; border-radius:5px; color:#78633d; background:#fbf8ef; font-size:12px; line-height:1.6 }
.access-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.access-grid .card { margin-bottom:16px }
.big-date { margin:16px 0 12px; font-size:25px; letter-spacing:-.5px }
.empty { padding:28px 12px; text-align:center }
.empty>span { display:block; color:#8a9b81; font-size:25px; margin-bottom:8px }
.empty h2,.empty h3 { margin:0 0 6px }
.empty p { margin:0 auto; max-width:60ch; font-size:12px }
.empty-start { padding:16px; border:1px dashed #ccd6c9; border-radius:6px; text-align:left; background:#fafbf8 }
.empty-start p { margin:0; max-width:none }
input,select,textarea { min-width:0; max-width:100%; padding:9px 10px; border:1px solid #ccd6c8; border-radius:5px; color:#344638; background:#fff; font-size:13px }
input:focus,select:focus,textarea:focus { outline:2px solid #efae83; outline-offset:2px }
label { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; color:#4e604f; font-size:12px }
textarea { display:block; width:100%; height:110px; margin:12px 0; overflow-wrap:anywhere; resize:vertical; font-size:12px }
pre { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px }
dialog { width:480px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); overflow:auto; padding:22px; border:1px solid var(--line); border-radius:10px; color:var(--ink); box-shadow:0 18px 70px #16281c30 }
dialog::backdrop { background:#15251b75 }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px }
.dialog-head h2 { font-size:18px; margin:0 }
.icon { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex-shrink:0; padding:0; border-radius:4px; color:#61725a; background:transparent; font-size:24px }
.icon:hover { background:#edf2e9 }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:18px }
.form-error { color:#a13d29; font-size:12px; min-height:18px }
.form-error:empty { display:none }
.view-loading { display:flex; align-items:center; justify-content:flex-start; gap:10px; min-height:78px; padding:20px 14px; color:var(--muted); font-size:12px }
.view-loading>span { width:14px; height:14px; flex:none; border:2px solid #d9e0d6; border-top-color:#6a7c64; border-radius:50%; animation:wizard-spin .9s linear infinite }
.read-warning { padding:8px 10px; margin:8px 0 12px; border-left:3px solid #c89751; background:#fbf8ef; color:#78633d; font-size:12px; line-height:1.5 }
.help-details { margin:10px 0; color:var(--muted); font-size:11px; line-height:1.6 }
.help-details>summary { width:fit-content; cursor:pointer; padding:4px 0; color:#5f705e; font-weight:500 }
.help-details[open]>summary { margin-bottom:4px }
.system-table .help-details { margin:3px 0 0 }
.system-table .help-details>summary { padding:2px 0 }
.system-table td>.system-facts:first-child { margin-top:0 }
.help-details>p { max-width:100ch; font-size:11px }
.row-details { margin-top:3px; font-size:11px; color:var(--muted) }
.row-details summary { cursor:pointer; width:fit-content }
.row-details code { display:block; max-width:30ch; overflow-wrap:anywhere; font-size:10px; margin-top:4px }
.audit-filters { display:grid; grid-template-columns:repeat(4,minmax(110px,1fr)) auto auto; align-items:end; gap:10px }
.audit-filters label { margin:0; min-width:0 }
.audit-filters input,.audit-filters select { width:100% }
.server-row-actions { max-width:320px }
.card-heading>div:first-child { min-width:0 }
.card-heading h2,.card-heading h3 { overflow-wrap:anywhere }
.table-wrap td code:not(.fingerprint) { overflow-wrap:anywhere }
@media(max-width:1100px) { .audit-filters { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:760px) {
 .card-heading { align-items:flex-start; flex-wrap:wrap }
 .card-heading>.server-row-actions { width:100%; max-width:none }
 .card-heading>.server-row-actions button { flex:1 }
 .help-details>summary { min-height:36px; display:flex; align-items:center }
 .view-loading { min-height:72px; padding:16px 10px }
 .table-wrap .server-row-actions { min-width:150px; gap:4px }
 .audit-filters { grid-template-columns:minmax(0,1fr) }
 .audit-filters>button { width:100% }
}
@media(prefers-reduced-motion:reduce) { .view-loading>span { animation:none } }
.muted { font-size:12px; color:var(--muted) }
#toast { position:fixed; bottom:20px; left:50%; transform:translate(-50%,100px); z-index:30; max-width:calc(100vw - 24px); padding:12px 18px; border-radius:6px; background:#2d3a2d; color:#fff; font-size:12px; opacity:0; pointer-events:none; transition:transform .2s,opacity .2s; box-shadow:0 5px 25px #0002 }
#toast.visible { transform:translate(-50%,0); opacity:1 }
.loading { padding:15vh 8vw; font-size:28px; font-weight:750 }
.loading>span { font-size:11px; letter-spacing:2px }
.loading p { font-size:13px; font-weight:400 }
.auth { min-height:100vh; min-height:100dvh; display:grid; place-items:center; background:#f7f8f7; padding:32px 20px }
.auth-panel { width:100%; max-width:420px; padding:36px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 32px #1a2b2210 }
.auth-form { width:100% }
.auth-form .brand { margin-bottom:30px }
.auth-form .brand span { color:#68756b }
.auth-form h2 { margin:0 0 24px; font-size:24px; letter-spacing:-.6px }
.auth-form label { font-size:13px }
.auth-form input { padding:12px; font-size:15px }
.auth-description { margin:-10px 0 22px }
.auth-form .text-button { display:block; padding:10px 0 }
.wide { width:100%; padding:12px; font-size:13px }
.auth-form .form-error { margin:0 0 14px }
.account-email { margin:0 0 16px; color:var(--ink); overflow-wrap:anywhere }
.installation-license { margin-top:16px; padding-top:14px; border-top:1px solid var(--line) }
.settings-list { border-top:1px solid var(--line) }
.settings-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:15px 0; border-bottom:1px solid var(--line) }
.settings-row:last-child { padding-bottom:0; border-bottom:0 }
.settings-row h3 { margin:0; font-size:13px }
.settings-row p { margin:5px 0 0 }
.settings-row .secondary { margin:0 }
.pill.neutral { background:#edf0eb; color:#5d695e }
.fleet-ssh-access { container-type:inline-size; min-width:0; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--line) }
.fleet-ssh-row { display:flex; align-items:center; gap:12px; min-width:0 }
.fleet-ssh-title { flex:0 1 auto; min-width:0; margin:0; font-size:16px; line-height:1.3; max-width:240px; overflow-wrap:anywhere }
.fleet-key-value { display:flex; align-items:center; gap:6px; flex:1; min-width:0 }
.fleet-key-value code { display:block; flex:1; min-width:0; padding:8px 10px; border:1px solid var(--line); background:var(--bg); border-radius:4px; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.fleet-key-copy { flex:none; width:34px; height:34px; padding:7px }
.fleet-ssh-help { flex:none; display:inline-grid; place-items:center; width:30px; height:30px; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); font-weight:600 }
.fleet-ssh-help:hover { background:var(--bg); color:var(--ink) }
.fleet-key-copy svg { display:block; width:18px; height:18px }
.fleet-ssh-actions { display:flex; align-items:center; flex:none; gap:8px }
.fleet-ssh-actions button { white-space:nowrap }
@container (max-width:640px) {
  .fleet-ssh-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 10px }
  .fleet-ssh-title { grid-column:1/-1; max-width:none }
  .fleet-key-value { grid-column:1/-1 }
  .fleet-ssh-help { width:36px; height:36px; margin:4px }
  .fleet-key-copy { width:44px; height:44px; min-height:44px; padding:10px }
  .fleet-ssh-actions { grid-column:1/-1; justify-content:flex-end }
  .fleet-ssh-actions button { min-height:44px }
}
.setup-command-block { margin:12px 0; background:var(--bg); border:1px solid var(--line); border-radius:5px; overflow:hidden }
.setup-command-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 10px; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px }
.setup-command { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; padding:12px; font-size:11px }
.ssh-dialog { width:760px; padding:0; border-radius:12px }
.ssh-dialog .wizard-dialog-head { margin:0; padding:20px 24px 16px; gap:16px }
.ssh-dialog .wizard-dialog-head h2 { font-size:17px; line-height:1.3; letter-spacing:-.3px }
.ssh-dialog .wizard-dialog-head p { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin:5px 0 0; color:var(--muted); font-size:11px }
.ssh-dialog .wizard-dialog-head p strong { font-weight:500; color:var(--ink) }
.ssh-dialog .wizard-dialog-head p code { font-size:11px; overflow-wrap:anywhere }
.ssh-dialog .wizard-dialog-head .icon { align-self:flex-start; margin:-3px -6px 0 0 }
.ssh-wizard-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:0 24px; margin:0; background:#f7f8f6; border-top:1px solid #edf0eb; border-bottom:1px solid #e4e8e1 }
.ssh-wizard-steps button { display:flex; align-items:center; gap:7px; position:relative; min-width:0; min-height:42px; padding:9px 6px; border-radius:0; background:none; color:#8b958c; text-align:left; font-size:11px; line-height:1.3; opacity:1 }
.ssh-wizard-steps button+button { padding-left:14px }
.ssh-wizard-steps button span { display:grid; place-items:center; flex:none; width:19px; height:19px; border:1px solid #dce2d9; border-radius:50%; color:#8b958c; background:#fff; font-size:10px }
.ssh-wizard-steps button b { font-weight:500 }
.ssh-wizard-steps button.current { color:var(--ink) }
.ssh-wizard-steps button.current::after { content:""; position:absolute; left:0; right:12px; bottom:-1px; height:2px; background:var(--orange) }
.ssh-wizard-steps button.current span { background:var(--orange); color:white; border-color:var(--orange) }
.ssh-wizard-steps button.complete:not(.current) { color:#4c6851 }
.ssh-wizard-steps button.complete:not(.current) span { border-color:#cad9c7; background:#edf4eb; color:#426d48 }
.ssh-dialog .ssh-wizard-page { padding:22px 24px 0; min-height:0 }
.ssh-dialog .ssh-wizard-page textarea { height:70px; margin:10px 0; font-size:11px }
.ssh-dialog .ssh-wizard-page form { margin:0 }
.ssh-dialog #wizard-task-title { font-size:16px; line-height:1.4; letter-spacing:-.2px; margin:0; color:var(--ink) }
.ssh-dialog #wizard-task-title:focus { outline:none }
.ssh-dialog #wizard-task-title:focus-visible { outline:1px dotted #8b9b86; outline-offset:3px; border-radius:2px }
.wizard-task-heading { display:flex; align-items:flex-start; gap:11px; margin-bottom:16px }
.wizard-task-heading>div { min-width:0 }
.wizard-task-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.6 }
.wizard-task-icon { display:grid; place-items:center; flex:none; width:30px; height:30px; margin-top:1px; border-radius:8px; background:#f0f3ed; color:#64745e; font-size:15px; font-weight:500 }
.wizard-task.is-success .wizard-task-icon { background:#edf5eb; color:#3f7647 }
.wizard-task.is-confirm .wizard-task-icon { background:#fff2e4; color:#a75b20 }
.wizard-task.is-failure .wizard-task-icon { background:#fff0e8; color:#ad472c }
.wizard-task.is-running .wizard-task-icon::after,.wizard-pending>span { content:""; display:block; width:13px; height:13px; border:2px solid #d2dcd0; border-top-color:#60765b; border-radius:50%; animation:wizard-spin .8s linear infinite }
@keyframes wizard-spin { to { transform:rotate(360deg) } }
@media(prefers-reduced-motion:reduce){.wizard-task.is-running .wizard-task-icon::after,.wizard-pending>span { animation:none; border-top-color:#60765b; border-right-color:#60765b }}
.wizard-inline-actions { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 }
.server-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px }
.route-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:8px 0 }
.vpn-routes-dialog { width:760px }
.route-editor { min-width:0; width:100% }
.route-editor .field-hint { margin:12px 0 }
.route-entries { margin:14px 0; display:grid; gap:10px }
.route-entry { display:grid; grid-template-columns:minmax(0,1fr) 95px minmax(0,1fr) auto; align-items:end; gap:8px; border:1px solid var(--line); border-radius:6px; padding:10px }
.route-entry label { margin:0; min-width:0 }
.route-preview { padding:12px; background:#f7f9f5; border:1px solid var(--line); border-radius:6px; margin-top:14px }
.route-preview h3 { margin-top:0 }
@media(max-width:600px) { .route-entry { grid-template-columns:100px minmax(0,1fr) }.route-entry label:first-child { grid-column:1/-1 }.route-entry .text-button { grid-column:1/-1; justify-self:end }.route-editor .dialog-actions { flex-wrap:wrap }.route-editor .dialog-actions button { flex:1 } }
@media(max-width:760px) {
 .table-wrap .record-table { min-width:0 }
 .record-table thead { display:none }
 .record-table tbody { display:grid; gap:10px }
 .record-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; border-bottom:1px solid var(--line); padding:12px 0 }
 .record-table tr:last-child { border-bottom:0 }
 .record-table td,.record-table td:first-child { min-width:0; padding:0; border:0; overflow-wrap:anywhere }
 .record-table td:first-child,.record-table td:last-child { grid-column:1/-1 }
 .record-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:4px; font-size:10px; color:var(--muted) }
 .record-table td:first-child::before { display:none }
 .record-table td select { max-width:100%; width:100%; min-height:44px }
 .record-table .pill { white-space:normal }
 .table-wrap .server-inventory { min-width:0 }
 .server-inventory thead { display:none }
 .server-inventory tbody { display:grid; gap:12px }
 .server-inventory tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; padding:14px 0; border-bottom:1px solid var(--line) }
 .server-inventory tr:last-child { border-bottom:0; padding-bottom:0 }
 .server-inventory td,.server-inventory td:first-child { min-width:0; padding:0; border:0; vertical-align:top; overflow-wrap:anywhere }
 .server-inventory td::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--muted); font-size:10px }
 .server-inventory td:first-child,.server-inventory td:last-child { grid-column:1/-1 }
 .server-inventory td:first-child::before,.server-inventory td:last-child::before { display:none }
 .server-inventory td:nth-child(2) { grid-column:1/-1; font-size:11px }
 .server-inventory td:nth-child(2)::before { display:none }
 .server-inventory .server-row-actions { max-width:none; min-width:0 }
 .server-inventory .server-row-actions button { flex:1 1 auto }
 .server-inventory .pill { max-width:100%; white-space:normal }
}
.ssh-dialog .wizard-help { padding:0; margin:0; border:0 }
.ssh-dialog .wizard-help+ .wizard-help { margin-top:4px }
.ssh-dialog .wizard-help summary { display:list-item; width:fit-content; padding:7px 0; color:#5b6d56; font-size:11px; line-height:1.5; font-weight:500 }
.ssh-dialog .wizard-help[open] summary { margin-bottom:3px }
.wizard-help-body { padding:10px 12px; border:1px solid #e3e8df; border-radius:7px; background:#fafbf9 }
.wizard-help-body>p { margin:0; font-size:12px }
.wizard-help-body>button { margin-top:10px }
.wizard-help-body .setup-command-block { margin-bottom:0 }
.wizard-host-keys { display:grid; gap:5px; margin:0 0 16px; padding:11px 12px; border:1px solid #e2e7de; border-radius:7px; background:#f7f9f5 }
.wizard-host-keys code { overflow-wrap:anywhere; font-size:11px; line-height:1.7; color:#42513e }
.ssh-dialog #pin-host-form label { margin-bottom:0; font-size:11px }
.ssh-dialog #pin-host-form input { width:100%; font-family:ui-monospace,SFMono-Regular,monospace; font-size:12px }
.wizard-confirm-note { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 12px; margin-top:8px; color:var(--muted); font-size:11px }
.ssh-dialog .wizard-confirm-note .text-button,.ssh-dialog .wizard-minor-action { padding:4px 0; font-size:11px }
.wizard-connection-facts { margin:0; padding:0 0 5px; font-size:11px }
.wizard-connection-facts>div { display:grid; grid-template-columns:88px minmax(0,1fr); gap:12px; padding:4px 0 }
.wizard-connection-facts dt { color:var(--muted) }
.wizard-connection-facts dd { margin:0; overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,monospace; color:#465640 }
.wizard-error { margin:0 0 14px; padding:10px 12px; border:1px solid #efd5c7; border-radius:7px; background:#fff7f0; color:#984628; font-size:12px; line-height:1.6 }
.wizard-error strong { font-weight:600 }.wizard-error p { margin:4px 0 0; color:inherit; font-size:11px }
.wizard-console { margin:16px 24px 0; border:1px solid #34453c; border-radius:7px; background:#202a24; color:#e0eae2; overflow:hidden }
.wizard-console>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 11px; border-bottom:1px solid #34453c; font-size:10px; color:#b6c9bc }
.wizard-console>div small { color:#8eaa95; font-size:10px }
.wizard-console pre { min-height:60px; max-height:180px; overflow:auto; overscroll-behavior:contain; padding:10px 11px; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:10px/1.7 ui-monospace,SFMono-Regular,monospace; scrollbar-color:#526457 #202a24 }
.wizard-console pre:focus-visible { outline:2px solid #afc49f; outline-offset:-3px }
.ssh-dialog .wizard-navigation { display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:12px; margin:0; padding:18px 24px 20px; border:0 }
.wizard-navigation-back,.wizard-navigation-primary { display:flex; align-items:center; gap:6px; min-height:36px }
.ssh-dialog .wizard-navigation .primary,.ssh-dialog .wizard-navigation .secondary { min-height:36px; padding:8px 14px; font-size:12px }
.ssh-dialog .wizard-navigation .text-button { padding:8px 6px; color:#71806b; font-size:12px }
.wizard-pending { display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; min-height:36px; padding:0 3px; color:var(--muted); font-size:12px }
.ssh-check-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; gap:0 18px; margin:0 0 12px; padding:0 }
.ssh-check-results li { display:flex; align-items:flex-start; gap:7px; padding:9px 0; border-bottom:1px solid #edf0eb; min-width:0; color:var(--muted); font-size:11px }
.wizard-check-mark { flex:none; display:grid; place-items:center; width:15px; height:15px; margin-top:1px; border-radius:50%; background:#f0f3ed; font-size:10px; line-height:1 }
.ssh-check-results li>div { min-width:0; flex:1 }
.ssh-check-results strong { color:#44523f; font-size:11px; font-weight:500 }
.ssh-check-results .wizard-check-state { flex:none; margin-left:auto; color:#879180; font-size:10px }
.ssh-check-results li.passed .wizard-check-mark { background:#edf5e9; color:#4b7844 }
.ssh-check-results li.failed .wizard-check-mark { background:#fff0e5; color:#ac4b25 }
.ssh-check-results li.failed .wizard-check-state { color:#a13d29 }
.ssh-check-results p { overflow-wrap:anywhere; margin:3px 0 0; font-size:10px; line-height:1.6 }
.ssh-dialog .inspection-summary h4 { display:flex; align-items:center; gap:7px; margin:16px 0 7px; font-size:12px; font-weight:600 }
.ssh-dialog .inspection-summary h4>span { font-size:10px; font-weight:400; color:#7a8873 }
.ssh-dialog .inspection-summary .table-wrap { margin:0; border:1px solid #e5e9e1; border-radius:7px }
.ssh-dialog .inspection-summary table { margin:0; font-size:11px }
.ssh-dialog .inspection-summary th { background:#f7f9f5; font-size:10px; font-weight:500; padding:8px 10px }
.ssh-dialog .inspection-summary td { padding:8px 10px }
.ssh-dialog .inspection-summary td strong { font-weight:500 }
.ssh-dialog .inspection-summary td small { display:block; margin-top:2px; color:#7e8b77; font-size:10px }
.ssh-dialog .inspection-summary td code { font-size:10px }
.ssh-dialog .inspection-summary tbody tr:last-child td { border-bottom:0 }
.wizard-service-state { color:#7b8676; white-space:nowrap }.wizard-service-state.is-active { color:#477540 }
.wizard-findings { margin:12px 0 0; padding:10px 12px; border-left:2px solid #dfb88e; background:#fcf9f2; border-radius:0 5px 5px 0 }
.wizard-findings h4 { margin:0 0 5px!important; color:#866338; font-size:11px!important }
.wizard-findings ul { margin:0; padding-left:15px; font-size:11px; color:#786c57; line-height:1.7 }
.wizard-empty-services { margin:12px 0; padding:10px 12px; background:#f7f9f5; border-radius:6px; color:#5f6e58; font-size:11px }
.wizard-empty-services strong { font-weight:500 }.wizard-empty-services p { margin:4px 0 0; font-size:11px }
.ssh-dialog #provision-plan-form label { font-size:11px; margin-bottom:6px }.ssh-dialog #provision-plan-form select { width:100%; font-size:12px }
.wizard-note { margin:0; font-size:12px; color:#746c54 }
.wizard-plan-result { margin-top:12px; padding:11px 12px; border:1px solid #e6e7db; border-radius:7px; background:#fafaf5; color:#5e6654; font-size:12px }
.wizard-plan-result ul { padding-left:17px; margin:7px 0 }.wizard-plan-result p { margin:7px 0 0; font-size:11px }
.ssh-wizard-steps.is-update { grid-template-columns:1fr }
.wizard-task-heading>div { flex:1; min-width:0 }
.ssh-dialog .wizard-heading-action { flex:none; margin-left:auto; font-size:12px; padding:9px 12px }
.wizard-key-row { display:flex; align-items:flex-start; gap:8px; margin:12px 0 }
.wizard-key-row textarea { flex:1; min-width:0; margin:0!important }
.ssh-dialog .wizard-key-row button { flex:none; font-size:11px; padding:10px; min-height:40px }
.wizard-update-choice { margin:12px 0; font-size:12px }.wizard-update-choice select { width:100% }
.wizard-update-versions { margin:14px 0; font-size:12px }.wizard-update-versions>div { display:grid; grid-template-columns:135px minmax(0,1fr); gap:12px; padding:7px 0 }
.wizard-update-versions dt { color:var(--muted) }.wizard-update-versions dd { margin:0; overflow-wrap:anywhere }.wizard-update-versions code { display:inline-block; margin-left:6px }
.wizard-plan-review { margin:16px 24px 0; padding:16px; border:1px solid var(--line); border-radius:8px; font-size:12px }
.wizard-plan-review.is-ready { display:flex; align-items:flex-end; gap:20px; border-color:#d5dfcf; background:#f7f9f5 }
.wizard-plan-review-content { flex:1; min-width:0 }
.wizard-plan-review h3 { margin:0 0 8px; font-size:14px }
.wizard-plan-review p { margin:8px 0 0; font-size:12px }
.wizard-plan-build { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; overflow-wrap:anywhere }
.wizard-plan-build code { color:var(--muted); font-size:11px }
.wizard-plan-review ol,.wizard-plan-review ul { margin:10px 0 0; padding-left:18px; line-height:1.65 }
.wizard-plan-review li+li { margin-top:4px }
.wizard-plan-review .wizard-plan-warning { color:#9d4a26 }
.wizard-plan-apply { flex:none }
.ssh-dialog .wizard-plan-apply .primary { min-height:40px; padding:9px 14px; font-size:12px; white-space:nowrap }
@media(max-width:600px){
  .ssh-dialog { max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:10px }
  .ssh-dialog .wizard-heading-action { white-space:normal; max-width:130px; min-height:44px; font-size:11px }
  .ssh-dialog .wizard-key-row button { max-width:92px; min-height:44px; white-space:normal }
  .wizard-update-versions>div { grid-template-columns:1fr; gap:3px }
  .ssh-dialog .wizard-dialog-head { padding:17px 16px 13px }.ssh-dialog .wizard-dialog-head h2 { font-size:16px }
  .ssh-wizard-steps { padding:0 12px }.ssh-wizard-steps button { gap:5px; padding:10px 3px; min-height:44px; font-size:10px }.ssh-wizard-steps button+button { padding-left:5px }.ssh-wizard-steps button span { width:17px; height:17px; font-size:9px }.ssh-wizard-steps button.current::after { right:5px }
  .ssh-dialog .ssh-wizard-page { padding:18px 16px 0 }.ssh-dialog #wizard-task-title { font-size:15px }
  .wizard-task-heading { gap:9px; margin-bottom:14px }.wizard-task-heading p { font-size:12px }.wizard-task-icon { width:27px; height:27px; border-radius:7px }
  .wizard-connection-facts>div { grid-template-columns:1fr; gap:3px; margin-bottom:5px }
  .wizard-confirm-note { display:block }.wizard-confirm-note>span { display:block; margin-bottom:5px }.ssh-dialog .wizard-confirm-note .text-button { min-height:44px; text-align:left }
  .wizard-console { margin:14px 16px 0 }.wizard-console pre { max-height:160px; font-size:10px }.wizard-console>div { font-size:10px }
  .wizard-plan-review { margin:14px 16px 0; padding:13px }.wizard-plan-review.is-ready { flex-direction:column; align-items:stretch; gap:14px }
  .ssh-dialog .wizard-plan-apply .primary { width:100%; min-height:44px }
  .ssh-dialog .wizard-navigation { align-items:stretch; flex-direction:column-reverse; padding:16px; gap:8px }
  .wizard-navigation-primary { width:100%; justify-content:stretch }.wizard-navigation-primary>.primary { width:100% }
  .ssh-dialog .wizard-navigation .primary,.ssh-dialog .wizard-navigation .secondary,.ssh-dialog .wizard-navigation .text-button { min-height:44px }
  .wizard-navigation-back { justify-content:space-between }.wizard-pending { width:100%; justify-content:center; min-height:44px }
  .ssh-check-results { grid-template-columns:1fr }.ssh-check-results li { padding:9px 0 }.ssh-check-results p { font-size:11px }
  .ssh-dialog .wizard-help summary { min-height:44px; padding:12px 0 }.ssh-dialog .wizard-minor-action { min-height:44px; text-align:left }
  .ssh-dialog .inspection-summary th,.ssh-dialog .inspection-summary td { padding:8px }
}
.manual-setup-steps { padding-left:22px; margin:10px 0 16px; color:var(--muted) }
.manual-setup-steps li { padding-left:4px; margin:0 0 12px; line-height:1.6 }
.manual-setup-steps strong { color:var(--ink) }
.server-public-key { margin:14px 0 10px; border:1px solid var(--line); border-radius:5px; overflow:hidden }
.server-public-key code { display:block; padding:10px 12px; overflow-wrap:anywhere; font-size:11px }
.server-access-details { padding:10px 0; border-top:1px solid var(--line) }
.server-access-details summary { cursor:pointer; font-weight:600; line-height:24px; padding:4px 0 }
.server-access-details[open] summary { margin-bottom:8px }
@media(max-width:760px){.server-access-details summary { min-height:44px; padding:10px 0 }}
.fingerprint { overflow-wrap:anywhere; word-break:break-all; color:#46523f; font-family:ui-monospace,SFMono-Regular,monospace; font-size:11px }
.mfa-dialog { width:420px }
.dialog-intro { margin:0 0 18px; font-size:13px }
.mfa-dialog label { margin-bottom:7px }
.secret-control { display:flex; align-items:stretch; gap:6px; margin-bottom:18px }
.secret-control input { width:100%; min-width:0; font-family:ui-monospace,SFMono-Regular,monospace; font-size:12px; color:var(--ink); background:#f6f8f4 }
.mfa-qr { display:grid; justify-items:center; margin:0 0 16px }
.mfa-qr img { display:block; width:196px; height:196px; max-width:100%; background:#fff }
.mfa-qr img:not([src]) { display:none }
.mfa-qr p:empty { display:none }
.copy-button { flex:0 0 36px; padding:7px; min-width:36px }
.copy-button svg { width:18px; height:18px }
.otp-input { width:100%; margin-top:2px; font-family:ui-monospace,SFMono-Regular,monospace; font-size:19px; font-variant-numeric:tabular-nums; letter-spacing:.3em; text-align:center }
.otp-input::placeholder { color:#879486 }
.mfa-dialog .dialog-actions { padding-top:14px; border-top:1px solid var(--line); margin-top:18px }
.recovery-codes { min-height:190px; height:190px; font:12px/1.8 ui-monospace,SFMono-Regular,monospace; resize:none }
@media (max-width:1000px) {
  .shell { grid-template-columns:208px minmax(0,1fr) }
  aside { width:208px; padding-inline:12px }
  .content { padding:20px }
  .nav-item { font-size:12px; gap:8px }
}
@media (max-width:760px) {
  .shell { display:block; min-height:100dvh }
  aside { position:sticky; inset:auto; top:0; z-index:20; width:100%; overflow:visible; padding:0; display:block }
  .sidebar-top { min-height:56px; padding:6px 16px; margin:0 }
  .brand { font-size:23px }
  .menu-toggle { display:flex; align-items:center; min-height:44px; padding:8px 10px; color:#edf3e9; background:transparent; font-size:13px; border-radius:4px }
  .sidebar-menu { display:none; position:absolute; top:100%; left:0; width:100%; max-height:calc(100dvh - 56px); overflow:auto; padding:12px 16px 16px; background:var(--dark); border-top:1px solid #3d4b41; box-shadow:0 12px 18px #14251b20 }
  .sidebar-menu[data-open="true"] { display:flex }
  .workspace { margin-bottom:12px }
  .workspace select { min-height:44px; font-size:14px }
  .nav-item { min-height:44px; font-size:14px; padding:10px 12px }
  .nav-item.active::before { display:none }
  .sidebar-bottom { padding-top:16px; margin-top:12px; border-top:1px solid #3d4b41 }
  .account-row strong,.sidebar-bottom .text-button,.role-row small { font-size:12px }
  .account-row,.role-row { grid-template-columns:minmax(0,1fr) 44px }
  .sidebar-bottom .icon-action { width:44px; height:44px; min-height:44px; min-width:44px }
  .role-row { min-height:44px }
  .icon-action svg { width:20px; height:20px }
  .main { width:100% }
  .content { padding:16px }
  .page-heading { gap:12px; flex-wrap:wrap; margin-bottom:14px }
  h1 { font-size:22px }
  .page-actions { justify-content:flex-start; max-width:100%; flex-shrink:1 }
  .primary,.secondary { min-height:44px; padding:10px 12px; white-space:normal }
  .text-button { min-height:36px }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:12px }
  .stat { padding:12px }
  .stat:last-child { grid-column:1/-1 }
  .stat>strong { font-size:25px; margin-top:6px }
  .stat .date-stat { font-size:21px; margin-top:6px }
  .card { padding:12px; margin-bottom:12px }
  .card-heading { align-items:flex-start; flex-wrap:wrap; gap:8px }
  .access-grid { grid-template-columns:minmax(0,1fr); gap:0 }
  .empty { padding:22px 8px }
  .empty-start { padding:14px }
  .table-wrap table { min-width:620px }
  th,td { padding:9px 8px }
  td { min-width:100px }
  td:first-child,th:first-child { min-width:210px }
  input,select,textarea { font-size:16px }
  label { font-size:13px }
  dialog { padding:16px; max-height:calc(100dvh - 24px) }
  .dialog-head { margin-bottom:14px }
  .icon { min-width:44px; min-height:44px }
  .dialog-head h2 { font-size:18px }
  .dialog-actions { margin-top:14px }
  .copy-button { flex-basis:44px; min-width:44px }
  .secret-control input { font-size:13px }
  .auth { padding:24px 16px }
  .auth-panel { padding:28px 24px }
  .auth-form input { font-size:16px }
}
@media (prefers-reduced-motion:reduce) {
  #toast { transition:none }
}

.user-actions { white-space:nowrap }
.user-actions button+button { margin-left:5px }
.grant-summary { max-height:160px; overflow:auto; border-bottom:1px solid var(--line); margin-bottom:12px }
.grant-summary p { margin:0 0 10px; font-size:12px }

.password-warning { display:block; color:#8b5b20; font-size:12px; margin-top:6px; line-height:1.45 }
.password-warning[hidden] { display:none }

.workspace-toggle { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:10px 12px; color:#edf2ed; background:#2b3a32; border:1px solid #536354; border-radius:6px; text-align:left }
.workspace-toggle span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.workspace-toggle svg { width:18px; height:18px; flex:none }
.workspace-dialog { width:460px }
#workspace-search { width:100%; margin-bottom:12px }
.workspace-options { max-height:55vh; overflow:auto }
.workspace-option { display:flex; justify-content:space-between; gap:12px; width:100%; margin:2px 0; padding:10px 12px; background:transparent; color:var(--ink); text-align:left; border-radius:5px }
.workspace-option:hover,.workspace-option[aria-current="true"] { background:#edf2ea }
.workspace-option.department-option { padding-left:28px; color:var(--muted) }
.workspace-option[hidden] { display:none }
.admin-entry { margin-top:10px; width:100%; padding:8px 0 0; border-top:1px solid #405046; border-radius:0; text-align:left; background:transparent; color:#c6d3c7; font-size:12px }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0 }
.metric-grid span { display:block; color:var(--muted); font-size:11px }
.metric-grid strong { display:block; font-size:22px; font-weight:550; margin-top:5px }
.keys-card-header,.keys-filter-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px }
.keys-card-header { padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--line) }
.keys-card-header > .primary { margin-left:auto; white-space:nowrap }
.keys-toolbar-summary { display:flex; align-items:center; gap:4px 18px; flex-wrap:wrap; color:var(--muted); font-size:12px; min-width:0 }
.keys-toolbar-summary strong { margin-left:4px; color:var(--ink); font-weight:600 }
.keys-toolbar-limit { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px }
.keys-filter-bar { margin-bottom:10px }
.keys-search { display:flex; align-items:center; flex-wrap:wrap; gap:6px; flex:1 1 250px; min-width:0 }
.keys-search input { flex:1 1 185px; max-width:360px; min-height:32px; padding:6px 9px }
.keys-search > .secondary,.keys-file-actions > .secondary,.keys-export > summary.secondary { min-height:32px; padding:5px 10px; white-space:nowrap }
.keys-selection,.keys-file-actions { display:flex; align-items:center; gap:6px }
.keys-selection { flex-wrap:wrap; color:var(--muted); font-size:12px }
.keys-file-actions { margin-left:auto }
.vpn-keys-table input[type="checkbox"] { width:auto; accent-color:#426951 }
.vpn-keys-table .server-row-actions { flex-wrap:wrap; min-width:160px }
@media(max-width:600px) { .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } }

.section-heading { margin:20px 0 12px }
.section-heading h2 { margin:0; font-size:17px }
.service-tabs { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:4px; border-bottom:1px solid var(--line); margin-bottom:16px; overflow:auto }
.service-tabs button { flex:0 0 auto; width:auto; min-height:40px; background:transparent; color:var(--muted); border-radius:0; padding:10px 14px; white-space:nowrap; border-bottom:2px solid transparent }
.service-tabs button.selected,.service-tabs button[aria-current="page"] { color:var(--ink); border-bottom-color:var(--orange) }
.settings-details { display:grid; grid-template-columns:150px minmax(0,1fr); gap:9px; font-size:12px; margin:14px 0 }
.settings-details dt { color:var(--muted) }
.settings-details dd { margin:0; overflow-wrap:anywhere }

.admin-entry { min-height:40px }

.field-hint { margin:-7px 0 14px; font-size:12px; color:var(--muted) }

@media(max-width:600px){
  .ssh-dialog .ssh-wizard-page .primary { width:100%; min-height:44px }
  .ssh-dialog .text-button { min-height:44px }
  .ssh-dialog .ssh-check-results li { grid-template-columns:minmax(0,1fr) auto }
  .ssh-dialog .ssh-check-results p { overflow-wrap:anywhere }
}

.release-fleet-list { display:grid; gap:4px; max-height:300px; overflow:auto; padding:8px 0 }
.release-fleet-list label { display:flex; align-items:center; gap:10px; margin:0; padding:7px 0 }
.release-fleet-list input { flex:0 0 18px; width:18px; height:18px; margin:0 }
#release-upload-progress { width:100%; height:8px; accent-color:var(--orange) }
.release-manifest{max-height:20rem;overflow:auto;font-size:.75rem;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-subtle,#f5f7f4);padding:1rem;border-radius:6px}
.fleet-secret-card .card-heading{gap:1rem;align-items:center}.fleet-secret-card .card-heading p{margin:.25rem 0 0}.fleet-secret-card code{display:block;overflow-wrap:anywhere;font-size:.8rem}
.fleet-secret-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.vpn-endpoint{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;overflow-wrap:anywhere}.vpn-endpoint-edit{font-size:10px;padding:0;margin-top:4px}
.catalog-facts{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0;font-size:12px;color:var(--muted)}.catalog-facts b{color:var(--ink);font-weight:500;margin-left:4px}.catalog-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0}
.fleet-secret-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px }
.fleet-secret-heading p { margin:0 }
.secret-update-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; border-top:1px solid var(--line); padding-top:12px; margin-top:12px }
.secret-update-caption { display:block; margin-bottom:3px; color:var(--muted); font-size:11px }
.secret-update-summary-state,.secret-update-status-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.secret-update-dot { flex:none; width:7px; height:7px; border-radius:50%; background:#778779 }
.secret-update-dot.success { background:var(--green) }
.secret-update-dot.error { background:#a64432 }
.fleet-secret-facts { display:flex; flex-wrap:wrap; gap:10px 24px; margin:10px 0 0 }
.fleet-secret-facts div,.fleet-secret-facts dd { min-width:0; margin:0; overflow-wrap:anywhere }
.fleet-secret-facts dt { color:var(--muted); font-size:11px }
#modal:has(.secret-operation-head) { width:620px }
.secret-operation-head { margin-bottom:16px }
.secret-operation-head p { margin:2px 0 0 }
.secret-update-status { border:1px solid var(--line); border-radius:8px; padding:13px 15px; background:#f6f8f5; font-size:13px }
.secret-update-status.success { border-color:#dbe6d7; background:#f0f5ed }
.secret-update-status.error { border-color:#efddd7; background:#fdf5f2 }
.secret-update-status-title > strong { font-size:14px }
.secret-update-status-title .secret-update-spinner { margin:0 }
.secret-update-status p { margin:5px 0 0; font-size:12px }
.secret-update-delivery { margin-top:12px }
.secret-update-delivery > div:first-child,.secret-update-counts { display:flex; justify-content:space-between; align-items:baseline; gap:6px 12px; flex-wrap:wrap; font-size:12px }
.secret-update-delivery progress { display:block; width:100%; height:6px; margin:7px 0; overflow:hidden; border:0; border-radius:6px; background:#dfe7dc; color:var(--green); accent-color:var(--green) }
.secret-update-delivery progress::-webkit-progress-bar { background:#dfe7dc }
.secret-update-delivery progress::-webkit-progress-value { background:var(--green) }
.secret-update-delivery progress::-moz-progress-bar { background:var(--green) }
.secret-update-details { min-width:0; border-top:1px solid var(--line); margin-top:12px; padding-top:8px }
.secret-update-details summary { cursor:pointer; color:#405545; padding:4px 0; font-weight:600 }
.secret-update-details summary:focus-visible { outline:2px solid var(--orange); outline-offset:3px }
.secret-disclosure-count { margin-left:8px; padding:1px 6px; border-radius:4px; background:#eef2ed; color:var(--muted); font-size:11px }
.secret-update-technical summary { font-size:12px }
.secret-update-comparison { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:8px; margin:8px 0 0 }
.secret-update-comparison > div { min-width:0; padding:9px 10px; border-radius:5px; background:#f5f7f4 }
.secret-update-comparison span { display:block; color:var(--muted); font-size:11px; margin-bottom:4px }
.secret-update-comparison code { font-size:11px; overflow-wrap:anywhere }
.secret-update-confirm { padding:10px 0 }
.secret-update-confirm label { font-size:12px }
.secret-recipient-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(115px,.52fr); gap:10px; margin:8px 0 }
.secret-recipient-tools label { margin:0; font-size:11px }
.secret-recipient-tools input,.secret-recipient-tools select { min-width:0; width:100% }
.secret-update-recipients { table-layout:fixed; margin-top:4px }
.secret-update-recipients th,.secret-update-recipients td { padding:7px 5px }
.secret-update-recipients th:last-child { width:36% }
.secret-update-recipients td { overflow-wrap:anywhere }
.secret-update-recipients td small { display:block; font-size:11px; color:var(--muted) }
.secret-recipient-state { display:inline-flex; gap:6px; align-items:center; color:var(--muted) }
.secret-recipient-state.success { color:#3d6549 }
.secret-recipient-state.error { color:#9d4534 }
.secret-recipient-pages { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; color:var(--muted); font-size:12px }
.secret-recipient-pages > div { display:flex; gap:6px }
.secret-recipient-empty { padding:10px 0 }
.secret-update-key-status { border-left:2px solid var(--line); margin-top:14px; padding-left:10px; font-size:12px }
.secret-update-key-status > span { display:block; color:var(--muted) }
.secret-update-key-status p { margin:3px 0 0 }
@media(max-width:420px) {
 .fleet-secret-card .card-heading { flex-wrap:wrap }
 .secret-recipient-tools { grid-template-columns:minmax(0,1fr) }
 .secret-update-recipients th:last-child { width:44% }
}
@media(max-width:640px){.fleet-secret-actions{width:100%}.fleet-secret-actions button{flex:1}}
@media(max-width:640px){.fleet-secret-card .card-heading{align-items:flex-start;flex-direction:column}.fleet-secret-card .card-heading button{width:100%}}
.release-kind-tabs{display:inline-flex;gap:4px;padding:4px;margin:0 0 18px;background:#e9eee8;border-radius:9px}.release-kind-tabs button{border:0;background:transparent;padding:9px 18px;color:#657166;border-radius:6px;font-size:.875rem}.release-kind-tabs button[aria-current=page]{background:#fff;color:#243329;box-shadow:0 1px 4px #20302812}
.client-builds{margin-bottom:22px}.client-build-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px}.client-build-card{margin:0}.client-build-card h3{margin:4px 0;font-size:1.05rem}.client-build-card .card-heading{gap:14px;align-items:center}.client-build-card .card-heading p{margin:0}.client-build-card a.secondary{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap;padding:10px 14px;border:1px solid #ced8cc;border-radius:7px;color:#425443;font-weight:600;font-size:.85rem}
.client-package-list{display:grid;gap:8px;margin-top:16px}.client-package{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;padding:11px 12px;border:1px solid #e0e6de;border-radius:7px;background:#fafbf8}.client-package:hover{border-color:#83957d;background:#f2f5ee}.client-package>span:nth-child(2){flex:1;min-width:0}.client-package strong,.client-package small{display:block}.client-package small{font-size:.78rem;color:#758172;margin-top:3px}.platform-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#eaf0e5;color:#53694c;font-weight:700;font-size:.8rem}.client-upload-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.checkbox-label{display:flex;flex-direction:row;align-items:flex-start;gap:10px}.checkbox-label>span{min-width:0}.checkbox-label small{display:block;margin-top:3px;color:var(--muted)}.checkbox-label input[type=checkbox]{width:17px;height:17px;margin:0.1em 0 0;flex:0 0 auto}.integration-scopes{display:grid;gap:10px;margin:18px 0}
@media(max-width:640px){.client-build-card .card-heading{align-items:stretch;flex-direction:column}.client-build-card .download-pack{justify-content:center}.client-upload-options{grid-template-columns:1fr}.release-kind-tabs{display:flex}.release-kind-tabs button{flex:1;padding:9px 10px}}

.creation-builds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.creation-build-group{min-width:0;border:1px solid #dce3da;border-radius:8px;padding:10px 12px}.creation-build-group legend{font-size:.86rem;font-weight:600;padding:0 5px;color:#52614f}.creation-build-group>.muted{font-size:.83rem;margin:8px 0}.creation-build-option{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;padding:10px 0;border-bottom:1px solid #edf0eb;cursor:pointer}.creation-build-option:last-child{border-bottom:0}.creation-build-option input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin:2px 0 0;accent-color:#bc5018}.creation-build-option span{min-width:0;overflow-wrap:anywhere}.creation-build-option strong,.creation-build-option small{display:block}.creation-build-option strong{font-size:.87rem}.creation-build-option small{font-size:.77rem;color:#73806e;margin-top:3px}@media(max-width:600px){.creation-builds{grid-template-columns:1fr;gap:10px}}

.transfer-log { max-height:220px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:var(--dark); color:#dbe6dd; padding:14px 16px; border-radius:6px; font-size:12px; line-height:1.7; }
#transfer-form { display:grid; gap:14px; }
#transfer-form .dialog-actions { margin-top:4px; }
#transfer-status { font-weight:600; }
@media(max-width:600px){#transfer-form .dialog-actions{display:flex;justify-content:space-between;gap:8px}.server-row-actions{flex-wrap:wrap}}

/* Dense fleet monitoring; tables scroll within their panel on narrow screens. */
.network-tabs{margin:16px 0 10px}
.monitor-panel{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;margin-bottom:16px}
.monitor-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);background:#fafbf9;font-variant-numeric:tabular-nums}
.monitor-summary strong{color:var(--ink);font-weight:650}
.monitor-table{margin:0;width:100%;font-size:12px}
.monitor-table th,.monitor-table td{padding:9px 12px;vertical-align:middle;white-space:nowrap}
.monitor-table th{font-size:11px;font-weight:550;color:var(--muted);background:#fafbf9}
.monitor-table td{border-bottom:1px solid #edf0eb}
.monitor-table tbody tr:last-child td{border-bottom:0}
.monitor-table .monitor-name{padding:0;font-size:12px;font-weight:650;max-width:220px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;text-align:left}
.monitor-table td small{font-size:10px}
.monitor-number{font-variant-numeric:tabular-nums}
.monitor-age{color:var(--muted);font-size:11px}
.monitor-state{display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap}
.monitor-state i{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.monitor-state.good,.topology-legend .good{color:#387047}
.monitor-state.warn,.topology-legend .warn{color:#a64d20}
.monitor-state.unknown,.topology-legend .unknown{color:#7b857c}
.monitor-note{margin:0;padding:9px 14px;font-size:11px;color:var(--muted);border-top:1px solid #edf0eb;line-height:1.5}
.monitor-dialog{width:min(720px,calc(100% - 24px));padding:20px}
.monitor-dialog .dialog-head{margin-bottom:12px}.monitor-dialog .dialog-head p{margin:2px 0 0}
.monitor-detail-status{margin:4px 0 12px}.monitor-detail-status p{margin:5px 0;font-size:12px;color:var(--muted)}
.monitor-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.monitor-facts>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid #edf0eb;min-width:0}
.monitor-facts dt{font-size:12px;color:var(--muted)}.monitor-facts dd{font-size:12px;font-weight:550;margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.monitor-diagnostics{margin-top:16px;font-size:12px}.monitor-diagnostics summary{cursor:pointer;font-weight:600;padding:8px 0}.monitor-diagnostics .monitor-facts{display:block}
.topology-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:12px}
.topology-scope{display:flex;align-items:center;gap:10px;margin:0;font-size:12px}.topology-scope select{width:auto;min-width:150px;padding:5px 24px 5px 8px;font-size:12px}
.topology-zoom{display:flex;gap:4px;margin-left:auto}.topology-zoom button{padding:3px 9px;min-height:28px;font-size:12px}
.topology-canvas{overflow:hidden;background:radial-gradient(#dde3db .7px,transparent .7px);background-size:18px 18px}
.topology-canvas svg{display:block;width:100%;height:auto;min-height:230px;max-height:420px}
.topology-edge{fill:none;stroke-width:1.5}.topology-edge.good{stroke:#568466}.topology-edge.warn{stroke:#b76d43}.topology-edge.unknown{stroke:#a0aaa1;stroke-dasharray:4 4}
.topology-canvas marker .good{fill:#568466}.topology-canvas marker .warn{fill:#b76d43}.topology-canvas marker .unknown{fill:#a0aaa1}
.topology-node>circle,.topology-node>rect{fill:#fff;stroke:#b5beb4;stroke-width:1.5}.topology-node.good>circle,.topology-node.good>rect{fill:#eff6ed;stroke:#568466}.topology-node.warn>circle,.topology-node.warn>rect{fill:#fff5eb;stroke:#b76d43}
.topology-node[role=button]{cursor:pointer}.topology-node[role=button]:hover>circle,.topology-node[role=button]:focus>circle{stroke:var(--orange);stroke-width:2.5}.topology-node text{text-anchor:middle;fill:var(--ink);font-family:inherit}.topology-glyph{font-size:17px;font-weight:650}.topology-label{font-size:12px;font-weight:600}.topology-id{font-size:9px;fill:#7b857c!important;font-family:ui-monospace,monospace!important}
.topology-legend{display:flex;flex-wrap:wrap;gap:8px 20px;padding:8px 14px;font-size:11px;border-top:1px solid #edf0eb}
@media(max-width:640px){.monitor-facts{grid-template-columns:minmax(0,1fr)}.monitor-dialog{padding:16px}.monitor-summary{gap:6px 16px;padding:8px 10px}.monitor-table th,.monitor-table td{padding:8px 10px}.topology-toolbar{gap:8px}.topology-canvas svg{min-height:240px}.topology-zoom{margin-left:0}.topology-scope{flex:1}.topology-scope select{min-width:0;max-width:190px}}
.system-table td{white-space:normal;min-width:140px;vertical-align:top}.system-table td small{display:block;margin:5px 0;color:var(--muted)}.system-facts{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.system-facts b{font-weight:500}.wizard-diagnosis{background:#f8f9f6;border:1px solid var(--line);border-radius:6px;padding:14px 16px;margin-top:16px;font-size:12px}.wizard-diagnosis h4{font-size:12px;margin:12px 0 4px}.wizard-diagnosis h4:first-child{margin-top:0}.wizard-diagnosis p{margin:5px 0}.wizard-diagnosis code{white-space:normal;overflow-wrap:anywhere}.wizard-diagnosis ul{padding-left:18px;margin:4px 0}
@media(max-width:640px){
 .table-wrap .system-table{min-width:0;display:block}
 .system-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .system-table tbody{display:block}
 .system-table tbody tr{display:grid;gap:6px 12px;padding:12px;border-bottom:1px solid #edf0eb}
 .system-table tbody tr:last-child{border-bottom:0}
 .system-table td{display:block;min-width:0;padding:0;border-bottom:0;overflow-wrap:anywhere}
 .system-components tbody tr{grid-template-columns:minmax(0,1fr) auto}
 .system-components td:nth-child(2){text-align:right}
 .system-components td:nth-child(3){grid-column:1/-1}
 .system-contexts td+td{padding-top:8px;border-top:1px solid #edf0eb}
 .system-contexts td[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:550}
}

.operations-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px }
.operations-filter { display:flex; align-items:center; gap:8px; margin:0; font-size:13px; white-space:nowrap }
.operations-filter select { width:auto; min-height:36px; margin:0; padding:6px 30px 6px 10px }
.operations-toolbar > .muted { margin-left:auto }
.operations-pagination { display:flex; justify-content:flex-end; margin-top:12px }
.provisioning-requests .operations-toolbar h2 { margin:0; font-size:17px }
.provisioning-requests .operations-filter { margin-left:auto }
.provisioning-request-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:12px }
.provisioning-request { min-width:0; border:1px solid var(--line); border-radius:8px; padding:14px }
.provisioning-request-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px }
.provisioning-request-head > div { min-width:0; overflow-wrap:anywhere }
.provisioning-request small { display:block }
.provisioning-request .pill { flex-shrink:0; font-size:11px; white-space:normal }
.provisioning-identity { display:flex; flex-wrap:wrap; gap:8px 16px; margin:12px 0 8px }
.provisioning-identity summary,.provisioning-dialog-key summary { cursor:pointer; font-size:12px; color:var(--muted) }
.provisioning-identity details { min-width:0; flex:1 1 160px }
.provisioning-identity .fingerprint,.provisioning-dialog-key .fingerprint { display:block; margin-top:6px }
.provisioning-request-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px }
.provisioning-request-actions button { min-height:40px }
.provisioning-pagination { gap:8px }
@media(max-width:600px) { .provisioning-requests .operations-toolbar h2 { flex-basis:100% } .provisioning-requests .operations-filter { margin-left:0 } .provisioning-request-head { flex-wrap:wrap } .provisioning-request-actions button { flex:1 } }
.operation-details { min-width:180px; max-width:420px }
.operation-details summary { cursor:pointer; color:#426348; font-weight:600 }
.operation-details p { margin:8px 0; font-size:13px; overflow-wrap:anywhere }
.operations-table td { vertical-align:top }
@media(max-width:600px) { .operations-toolbar { gap:8px } .operations-toolbar .muted { font-size:12px; flex-basis:100%; order:3; margin-left:0 } .operations-filter { flex:1; min-width:0 } .operations-filter select { min-width:0; max-width:100% } }
.corporate-login{display:grid;gap:.5rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #dfe4dc}
.pill.is-loading i { width:9px; height:9px; box-sizing:border-box; background:transparent; border:1.5px solid currentColor; border-right-color:transparent; animation:wizard-spin .9s linear infinite }
@media(prefers-reduced-motion:reduce) { .pill.is-loading i { animation:none } }

.table-wrap .auth-delivery-table{min-width:0;table-layout:fixed}.auth-delivery-table td,.auth-delivery-table th{overflow-wrap:anywhere;white-space:normal}

.external-applications{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;max-width:1200px}.external-application{margin:0;display:flex;flex-direction:column;min-width:0;gap:10px}.external-application-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.external-application h2{font-size:17px;margin:0;overflow-wrap:anywhere}.external-application p{margin:0;color:var(--muted);overflow-wrap:anywhere}.external-application-host{display:block;color:var(--muted);overflow-wrap:anywhere}.external-application-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:8px}.external-application-open{display:inline-flex;align-items:center;gap:12px;text-decoration:none}@media(max-width:640px){.external-applications{grid-template-columns:1fr}.external-application{padding:16px}.external-application-actions{gap:10px}}

.adoption-secret-card{padding:18px 20px;margin-top:16px}.adoption-secret-card .card-heading{margin-bottom:12px}.adoption-secret-card h3{margin:0;font-size:16px}.secret-decision{padding:12px 14px;border-radius:6px;border-left:3px solid var(--green);background:#f0f6ef}.secret-decision strong{display:block;font-size:14px}.secret-decision p{margin:5px 0 0;font-size:13px;line-height:1.5}.secret-decision.is-mismatch{border-color:#be5829;background:#fff3e9;color:#8e3b1b}.secret-decision.is-mismatch strong::before{content:'!';display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;margin-right:8px;font-size:12px}.secret-backup{margin-top:12px}.secret-backup summary,.secret-comparison-details summary{font-size:12px;cursor:pointer;color:var(--muted)}.secret-choice .checkbox-label{margin:0;font-size:13px;align-items:center;flex:1;min-width:0}.secret-backup pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.secret-choice{border-top:1px solid var(--line);margin-top:14px;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.secret-choice>button,.secret-choice>a{flex-shrink:0;font-size:12px;white-space:nowrap}.secret-choice>a{display:inline-flex;align-items:center;min-height:34px;padding:6px 0;color:var(--green);text-decoration:underline;text-underline-offset:3px}.secret-comparison-details{margin-top:14px}.secret-comparison-details dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0 0}.secret-comparison-details dl>div{min-width:0}.secret-comparison-details dt{font-size:11px;color:var(--muted);margin-bottom:4px}.secret-comparison-details dd{margin:0}.secret-comparison-details code{font-size:11px}
@media(max-width:640px){.adoption-secret-card{padding:14px}.adoption-secret-card .card-heading{flex-direction:row;align-items:center}.adoption-secret-card .card-heading button{width:auto;flex-shrink:0}.secret-choice{align-items:stretch;flex-direction:column;gap:6px}.secret-choice>button,.secret-choice>a{align-self:flex-start}.secret-comparison-details dl{grid-template-columns:1fr;gap:10px}}

.secret-import-dialog{width:460px;padding:22px}.secret-import-dialog .dialog-head h2{font-size:18px}.secret-import-scope{margin:0 0 18px;color:var(--muted);font-size:12px}.secret-import-dialog label{margin:0}.secret-import-dialog input[type=file]{width:100%;min-width:0;font-size:13px}.secret-import-dialog .dialog-actions{margin-top:20px;flex-wrap:nowrap}.secret-import-dialog .dialog-actions button{white-space:nowrap}
@media(max-width:480px){.secret-import-dialog{padding:18px}.secret-import-dialog .dialog-actions button{flex:1}}

.server-row-actions,.server-add-split { display:flex; align-items:center; gap:8px; flex-wrap:nowrap }
.server-action-menu { position:relative; flex:none; margin:0 }
.server-action-menu > summary { display:flex; align-items:center; justify-content:center; width:40px; height:40px; cursor:pointer; list-style:none; border:1px solid var(--line,#d5ded2); border-radius:7px; font-size:22px; background:var(--white,#fff) }
.server-action-menu > summary::-webkit-details-marker { display:none }
.server-action-menu[open] { z-index:8 }
.server-action-items { position:absolute; right:0; top:calc(100% + 6px); min-width:190px; padding:5px; background:#fff; border:1px solid #d5ded2; border-radius:8px; box-shadow:0 8px 24px #17271c24 }
.server-action-items button { display:block; width:100%; background:none; text-align:left; padding:10px 12px; color:var(--text,#263329); border-radius:5px; white-space:nowrap }
.server-action-items button:hover { background:#eef2eb }
.server-action-items button.danger { color:#ae3d24 }
.keys-export > summary.secondary { width:auto; height:auto; border-color:#cfd8ce; border-radius:5px; font-size:12px; background:#fff }
.keys-export > summary:hover,.keys-export[open] > summary { background:#f0f4ed }
.keys-export-chevron { width:6px; height:6px; margin:-3px 1px 0 3px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg) }
.keys-export .server-action-items ul { list-style:none; padding:0; margin:0 }
.keys-export-scope { padding:4px 10px 6px; margin:0 0 3px; border-bottom:1px solid var(--line); font-size:11px }
.keys-export .server-action-items button { padding:6px 10px; min-height:32px; font-size:12px }
.server-inventory.table-wrap,.table-wrap:has(.server-action-menu) { overflow:visible }
.wizard-server-edit { margin:0 0 20px }
.wizard-server-edit form { padding:12px 0 }
.bulk-preview { max-height:280px; overflow:auto; margin:16px 0 }
.bulk-preview td,.bulk-preview th { padding:8px 12px }
.bulk-list-input { min-height:150px; font-family:monospace; resize:vertical }
@media(max-width:640px){.server-action-items{min-width:170px}.server-add-split{width:100%}.server-add-split>button{flex:1}.server-row-actions{justify-content:flex-start}}

.server-import-excluded-list { max-height:260px; overflow:auto; padding:8px 0; list-style:none; border-block:1px solid var(--line,#dce2da) }
.server-import-excluded-list li { padding:6px 0; overflow-wrap:anywhere }

.secret-update-spinner{display:inline-block;vertical-align:middle;width:16px;height:16px;margin-right:10px;border:2px solid #d2dcd0;border-top-color:#60765b;border-radius:50%;animation:wizard-spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.secret-update-spinner{animation:none;border-right-color:#60765b}}

.fleet-catalog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px }
.fleet-catalog-header h2 { margin:0; font-size:16px }
.fleet-catalog-subtitle { margin:4px 0 0 }
.fleet-catalog-gear { width:36px; height:36px; padding:8px; flex-shrink:0 }
.fleet-catalog-gear svg,.fleet-catalog-copy svg { width:18px; height:18px }
.fleet-catalog-delivery { margin:12px 0; color:var(--ink) }
.fleet-catalog-sources { margin-top:16px; border-top:1px solid var(--line); padding-top:12px }
.fleet-catalog-sources h3 { color:var(--muted); font-size:12px; font-weight:500 }
.fleet-catalog-copy { width:36px; height:36px; display:grid; place-items:center; padding:8px }
.fleet-catalog-help { margin-top:12px }
.fleet-catalog-draft { color:var(--orange) }
.fleet-catalog-settings h3 { margin-top:20px }
.fleet-catalog-settings .table-wrap { margin-bottom:16px }
@media(max-width:640px) {
 .fleet-catalog-gear,.fleet-catalog-copy { width:44px; height:44px }

}

.fleet-catalog-dialog { width:880px }
.fleet-catalog-settings code { overflow-wrap:anywhere; white-space:normal }

/* Shared fleet fact tables keep metadata aligned and long fingerprints bounded. */
.fleet-facts-table { table-layout:fixed; margin-top:16px }
.fleet-facts-table th { width:180px; font-weight:500; color:var(--muted) }
.fleet-facts-table td { color:var(--ink) }
.fleet-facts-table td,.fleet-catalog-table td { overflow-wrap:anywhere }
.fleet-facts-table .fingerprint { font-size:12px; white-space:normal }
.fleet-table-action { width:1%; white-space:nowrap; text-align:right }
.fleet-catalog-table th:last-child { width:44px }
.fleet-catalog-sources h3 { margin:0 0 8px }
@media(max-width:640px) {
 .table-wrap .fleet-facts-table { min-width:0 }
 .fleet-facts-table th { width:110px }
 .fleet-catalog-table td:last-child { display:flex; justify-content:flex-end }
}

#modal:has(.vpn-key-form) { width:510px; max-width:calc(100vw - 32px); padding:22px }
#modal:has(.vpn-policy-form) { width:440px }
.vpn-key-form .dialog-head { margin-bottom:14px }
.vpn-key-form .dialog-head h2 { font-size:19px }
.vpn-key-form .dialog-head .icon { width:32px; height:32px; padding:0; border-radius:6px; font-size:25px }
.vpn-key-form-fields { display:grid; gap:14px }
.vpn-key-form-fields > p { margin:0 }
.vpn-key-form label { margin:0; min-width:0; font-size:12px; gap:5px }
.vpn-key-form input:not([type=checkbox]),.vpn-key-form textarea { min-width:0; width:100%; min-height:36px; font-size:13px }
.vpn-key-form textarea { height:64px; min-height:56px; margin:0; resize:vertical }
.vpn-key-optional { color:var(--muted); font-size:11px; font-weight:400 }
.vpn-key-form label:has(.vpn-key-optional) { display:grid; grid-template-columns:1fr auto; align-items:baseline }
.vpn-key-form label:has(.vpn-key-optional) > textarea { grid-column:1 / -1 }
.vpn-validity-fields { display:grid; grid-template-columns:minmax(85px,1fr) minmax(0,2.5fr); gap:10px }
.vpn-rate-fields { min-width:0; border:0; padding:0; margin:0 }
.vpn-rate-fields legend { padding:0; margin-bottom:5px; color:var(--muted); font-size:12px }
.vpn-rate-row,.vpn-rate-value { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.vpn-rate-row { justify-content:space-between }
.vpn-key-form .vpn-unlimited { display:flex; flex-direction:row; align-items:center; gap:8px; min-height:32px }
.vpn-unlimited input { flex:none; width:16px; height:16px; margin:0; accent-color:#426951 }
.vpn-rate-input { position:relative; width:108px }
.vpn-key-form .vpn-rate-input input { padding-right:42px }
.vpn-rate-input span { position:absolute; right:8px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:11px; pointer-events:none }
.vpn-rate-value input:disabled { background:#f4f6f3; color:var(--muted) }
.vpn-policy-toggle:has(input:checked) + .vpn-policy-limit { display:none }
.vpn-policy-limit { max-width:280px }
.vpn-key-form .form-error:empty { display:none }
.vpn-key-form .dialog-actions { margin-top:16px; padding-top:12px; border-top:1px solid var(--line) }
.vpn-keys-table .vpn-key-comment { min-width:110px; max-width:240px; overflow-wrap:anywhere; white-space:pre-line }
@media(max-width:420px) {
 #modal:has(.vpn-key-form) { padding:16px }
 .vpn-validity-fields { grid-template-columns:1fr }
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
