:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f1eb;--surface:#fffdfa;--surface-raised:#fff;--selected:#f3e6dc;--border:#e4d9d0;--border-strong:#8a7680;--text:#1e1219;--text-2:#4d3b45;--muted:#6b5963;--accent:#8e1f3a;--accent-pressed:#741630;--accent-contrast:#fff;--accent-text:#8e1f3a;--gold:#8f6418;--success:#2e7350;--warning:#8f5208;--danger:#b3263a;--focus:#1f5fb0;--overlay:#1e121999;--chart:#8f6418;--radius:10px;--font:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-display:"Fraunces", Georgia, "Times New Roman", serif;--font-mono:"DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#140c12;--surface:#1e141b;--surface-raised:#2a1d26;--selected:#3a2732;--border:#3a2a34;--border-strong:#806a77;--text:#f7efe7;--text-2:#d3c5cc;--muted:#ae9ea7;--accent:#c23a55;--accent-pressed:#a52e47;--accent-contrast:#fff8f3;--accent-text:#f28da0;--gold:#ddb46c;--success:#8fd0a8;--warning:#ebb868;--danger:#f49092;--focus:#8cc8ff;--overlay:#0a0609cc;--chart:#ddb46c}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#140c12;--surface:#1e141b;--surface-raised:#2a1d26;--selected:#3a2732;--border:#3a2a34;--border-strong:#806a77;--text:#f7efe7;--text-2:#d3c5cc;--muted:#ae9ea7;--accent:#c23a55;--accent-pressed:#a52e47;--accent-contrast:#fff8f3;--accent-text:#f28da0;--gold:#ddb46c;--success:#8fd0a8;--warning:#ebb868;--danger:#f49092;--focus:#8cc8ff;--overlay:#0a0609cc;--chart:#ddb46c}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);margin:0;font-size:1rem;line-height:1.5}h1,h2,h3{font-family:var(--font-display);margin:0 0 .5rem;font-weight:600;line-height:1.25}h1{font-size:1.75rem}h2{font-size:1.2rem}h3{font-size:1.05rem}p{margin:0 0 .75rem}a{color:var(--accent-text);text-underline-offset:2px}a:hover{text-decoration-thickness:2px}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.skip-link{z-index:100;background:var(--surface-raised);color:var(--text);border:2px solid var(--focus);border-radius:var(--radius);padding:.75rem 1rem;position:absolute;top:-100px;left:1rem}.skip-link:focus{top:.5rem}.muted,.hint{color:var(--muted)}.hint{margin:.25rem 0 0;font-size:.875rem}.lead{color:var(--text-2);max-width:70ch}.mono,.code{font-family:var(--font-mono);font-size:.85rem}.topbar{z-index:20;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:1rem;min-height:60px;padding:.5rem 1rem;display:flex;position:sticky;top:0}.brand{font-family:var(--font-display);color:var(--text);align-items:center;gap:.5rem;font-size:1.1rem;font-weight:600;text-decoration:none;display:inline-flex}.brand-large{font-size:1.4rem}.brand-mark{background:var(--accent);width:14px;height:22px;box-shadow:inset 0 -8px 0 var(--accent-pressed);border-radius:0 0 7px 7px}.topbar-end{flex-wrap:wrap;align-items:center;gap:1rem;margin-left:auto;display:flex}.identity{flex-direction:column;line-height:1.2;display:flex}.identity-name{font-weight:600}.identity-role{color:var(--muted);font-size:.85rem}.preferences{flex-wrap:wrap;gap:.75rem;display:flex}.inline-select{color:var(--text-2);align-items:center;gap:.4rem;font-size:.875rem;display:inline-flex}.inline-select select{min-height:36px;padding:.25rem .5rem}.topbar .menu-toggle{display:none}.layout{grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 60px);display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);height:calc(100vh - 60px);padding:1rem .5rem 2rem;position:sticky;top:60px;overflow-y:auto}.nav-section+.nav-section{margin-top:1rem}.nav-heading{font-family:var(--font);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 .75rem .25rem;font-size:.75rem}.sidebar ul{margin:0;padding:0;list-style:none}.nav-link{color:var(--text-2);border-radius:8px;min-height:36px;padding:.45rem .75rem;text-decoration:none;display:block}.nav-link:hover{background:var(--selected);color:var(--text)}.nav-link[aria-current=page]{background:var(--selected);color:var(--text);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}.main{min-width:0;padding:1.5rem clamp(1rem,3vw,2.5rem) 4rem}.main:focus{outline:none}@media (max-width:900px){.topbar .menu-toggle{display:inline-flex}.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--border);height:auto;display:none;position:static}.sidebar.open{display:block}.topbar-end{justify-content:space-between;width:100%}}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;display:flex}.page-actions,.card-actions,.toolbar,.form-actions{flex-wrap:wrap;align-items:flex-end;gap:.5rem;display:flex}.toolbar{margin-bottom:1rem}.form-actions{margin-top:1rem}.stack{flex-direction:column;gap:1rem;display:flex}.stack-sm{flex-direction:column;gap:.5rem;display:flex}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.grid{gap:1rem;display:grid}.form-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));align-items:start;gap:1rem;display:grid}.span-all{grid-column:1/-1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;margin-bottom:1.25rem;padding:1.25rem}.card .card{background:var(--surface-raised)}.card-header{flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-bottom:1rem;display:flex}.card-header .muted{margin:0}.key-values{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:.75rem 1.5rem;margin:0;display:grid}.key-values dt{color:var(--muted);font-size:.85rem}.key-values dd{overflow-wrap:anywhere;margin:0}.stat{background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem}.stat-label{color:var(--text-2);margin:0;font-size:.875rem}.stat-value{font-variant-numeric:tabular-nums;margin:.15rem 0 0;font-size:1.6rem;font-weight:600}.stat-hint{color:var(--muted);margin:.15rem 0 0;font-size:.85rem}.stat-warning{border-left:4px solid var(--warning)}.stat-critical{border-left:4px solid var(--danger)}.stat-ok{border-left:4px solid var(--success)}.meter-row{grid-template-columns:minmax(8rem,14rem) minmax(4rem,1fr) auto;align-items:center;gap:.75rem;padding:.25rem 0;display:grid}.meter-label{overflow-wrap:anywhere}.meter-track{background:var(--selected);border-radius:5px;height:10px;overflow:hidden}.meter-fill{background:var(--chart);border-radius:5px;height:100%;display:block}.meter-value{font-variant-numeric:tabular-nums;color:var(--text-2)}.badge{border:1px solid var(--border-strong);white-space:nowrap;color:var(--text);background:var(--surface-raised);border-radius:999px;align-items:center;gap:.35rem;padding:.1rem .55rem;font-size:.8rem;display:inline-flex}.badge-dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.badge-success .badge-dot{background:var(--success)}.badge-warning .badge-dot{background:var(--warning);border-radius:1px;transform:rotate(45deg)}.badge-danger .badge-dot{background:var(--danger);border-radius:1px}.badge-info .badge-dot{background:var(--focus)}.badge-accent{border-color:var(--accent);color:var(--accent-text)}.badge-success{border-color:var(--success)}.badge-warning{border-color:var(--warning)}.badge-danger{border-color:var(--danger)}.notice{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--surface-raised);border-left-width:4px;gap:.75rem;margin-bottom:1rem;padding:.75rem 1rem;display:flex}.notice p:last-child,.notice ul:last-child{margin-bottom:0}.notice-icon{border:2px solid;border-radius:50%;flex:none;place-items:center;width:1.4rem;height:1.4rem;font-size:.85rem;font-weight:700;display:inline-grid}.notice-title{margin-bottom:.25rem;font-weight:600}.notice-info{border-left-color:var(--focus)}.notice-warning{border-left-color:var(--warning)}.notice-warning .notice-icon{color:var(--warning)}.notice-error{border-left-color:var(--danger)}.notice-error .notice-icon{color:var(--danger)}.notice-success{border-left-color:var(--success)}.notice-success .notice-icon{color:var(--success)}.error-details{margin:.25rem 0 .5rem;padding-left:1.25rem}.button{border:1px solid var(--border-strong);background:var(--surface-raised);min-height:40px;color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:.4rem;padding:.45rem 1rem;font-weight:500;text-decoration:none;display:inline-flex}.button:hover:not(:disabled){background:var(--selected)}.button-small{min-height:32px;padding:.2rem .7rem;font-size:.875rem}.button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.button-primary:hover:not(:disabled){background:var(--accent-pressed)}.button-danger{border-color:var(--danger);color:var(--danger);background:0 0}.button-danger:hover:not(:disabled){background:var(--selected)}.button-ghost{background:0 0;border-color:#0000}.button:disabled{opacity:.55;cursor:not-allowed}.icon-button{min-width:32px;min-height:32px;color:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;font-size:1.25rem;line-height:1}.icon-button:hover{border-color:var(--border-strong)}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:1em;height:1em;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.loading{color:var(--text-2);align-items:center;gap:.5rem;display:flex}.field{flex-direction:column;gap:.3rem;min-width:0;display:flex}.field label{font-weight:500}.required{color:var(--muted);font-size:.85rem;font-weight:400}input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=datetime-local],input[type=month],input[type=search],input[type=url],input:not([type]),select,textarea{font:inherit;color:var(--text);background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:8px;width:100%;min-height:40px;padding:.5rem .65rem}textarea{resize:vertical}input:disabled,select:disabled,textarea:disabled{opacity:.7;cursor:not-allowed}.field-invalid input,.field-invalid select,.field-invalid textarea{border-color:var(--danger);border-width:2px}.field-error{color:var(--danger);margin:0;font-size:.875rem}.field-error:before{content:"⚠ "}.input-affix{align-items:stretch;display:flex}.input-affix input{border-top-right-radius:0;border-bottom-right-radius:0}.affix{border:1px solid var(--border-strong);background:var(--selected);color:var(--text-2);border-left:0;border-radius:0 8px 8px 0;align-items:center;padding:0 .6rem;font-size:.875rem;display:inline-flex}.checkbox,.switch{grid-template-columns:auto 1fr;align-items:center;gap:.25rem .5rem;min-height:32px;display:grid}.checkbox .hint{grid-column:2;margin:0}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);margin:0}.switch input[type=checkbox]{appearance:none;border:2px solid var(--border-strong);background:var(--selected);cursor:pointer;border-radius:12px;width:44px;height:24px;position:relative}.switch input[type=checkbox]:after{content:"";background:var(--text-2);border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:2px;left:2px}.switch input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}.switch input[type=checkbox]:checked:after{background:var(--accent-contrast);transform:translate(20px)}fieldset{border:1px solid var(--border);border-radius:var(--radius);min-width:0;margin:0;padding:1rem}legend{padding:0 .4rem;font-weight:600}.table-wrap{border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.92rem}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.55rem .75rem}thead th{background:var(--selected);white-space:nowrap;font-weight:600;position:sticky;top:0}tbody th{font-weight:600}tbody tr:last-child th,tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:color-mix(in srgb, var(--selected) 45%, transparent)}.num{text-align:right;font-variant-numeric:tabular-nums}.empty{color:var(--muted);font-style:italic}td input[type=text],td input:not([type]){min-width:10rem}td input[type=number]{min-width:5.5rem}td select{min-width:8.5rem}.cell-actions{flex-wrap:wrap;gap:.35rem;display:flex}.truncate{text-overflow:ellipsis;white-space:nowrap;max-width:32ch;display:block;overflow:hidden}.code{background:var(--selected);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;max-height:24rem;margin:0;padding:.75rem;overflow:auto}.details summary{cursor:pointer;min-height:28px;color:var(--accent-text)}.details-body{padding:.5rem 0}.dialog{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:14px;width:min(560px,100vw - 2rem);max-height:calc(100vh - 2rem);padding:0}.dialog::backdrop{background:var(--overlay)}.dialog-header,.dialog-footer{justify-content:space-between;align-items:center;gap:.5rem;padding:1rem 1.25rem;display:flex}.dialog-header{border-bottom:1px solid var(--border)}.dialog-header h2{margin:0}.dialog-footer{border-top:1px solid var(--border);justify-content:flex-end}.dialog-body{padding:1rem 1.25rem;overflow:auto}.toasts{z-index:50;flex-direction:column;gap:.5rem;width:min(420px,100vw - 2rem);display:flex;position:fixed;bottom:1rem;right:1rem}.toasts-errors{top:70px;bottom:auto}.toast{background:var(--surface-raised);border:1px solid var(--border-strong);border-left:4px solid var(--success);border-radius:var(--radius);justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.65rem .75rem;display:flex;box-shadow:0 6px 24px #0000002e}.toast-error{border-left-color:var(--danger)}.toast-info{border-left-color:var(--focus)}.login-page,.standalone{place-items:center;min-height:100vh;padding:1rem;display:grid}.login-page{align-content:center;gap:1rem}.login-card{width:min(440px,100%)}.login-preferences{justify-content:flex-end;width:min(440px,100%);display:flex}.tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.25rem;margin-bottom:1rem;display:flex}.tabs a,.tabs button{min-height:40px;color:var(--text-2);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;padding:.5rem .85rem;text-decoration:none}.tabs [aria-current=page],.tabs [aria-pressed=true]{color:var(--text);border-bottom-color:var(--accent);font-weight:600}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (forced-colors:active){.badge-dot,.meter-fill{background:canvastext}.button-primary{border:2px solid buttontext}}.plain-fieldset{border:0;margin:0;padding:0}.localized-fields .tabs button{padding-inline:.65rem}.localized-fields .notice{margin-top:.75rem}.section-subtitle{margin-top:1.25rem}
