*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; --bg:#090a0e; --sidebar:#0d0f14; --surface:#11141b; --surface-2:#181c25; --line:#252a35; --text:#eef0f7; --muted:#a0a8b8; --accent:#8c6dff; --accent-bright:#b5a0ff; --accent-soft:#211c37; --green:#63e0a0; --amber:#f3c46a; --danger:#ff9299; --sidebar-width:234px; font-family:'Segoe UI',system-ui,-apple-system,sans-serif; font-synthesis:none; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font-size:13px; line-height:1.5; -webkit-font-smoothing:antialiased; }
::selection { background:#5e46ac; color:white; } ::-webkit-scrollbar { width:9px; height:9px; } ::-webkit-scrollbar-track { background:transparent; } ::-webkit-scrollbar-thumb { background:#353947; border:2px solid var(--bg); border-radius:20px; }
button,input,textarea,select { font:inherit; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:8px 13px; border:1px solid #3b4251; border-radius:7px; background:var(--surface-2); color:var(--text); font-size:12px; font-weight:600; text-decoration:none; cursor:pointer; transition:border-color .15s,background .15s; }
button:hover:not(:disabled),.button:hover { background:#242937; border-color:#636e85; } button:disabled { color:#adb4c2; background:#181b24; border-color:#303644; cursor:not-allowed; }
button svg,.button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.primary { background:#7956ef; border-color:#997dff; color:white; box-shadow:0 4px 15px -8px #8c6dff99; } .primary:hover:not(:disabled) { background:#8a69f6; border-color:#b5a0ff; }
.ghost { background:transparent; color:#c1c7d4; } .danger { color:var(--danger); background:#291a23; border-color:#75434f; } .danger:hover:not(:disabled) { background:#412530; border-color:#c67184; }
.compact { min-height:28px; padding:5px 9px; font-size:11px; } .full-width { width:100%; } a { color:var(--accent-bright); }
button:focus-visible,a:focus-visible { outline:2px solid var(--accent-bright); outline-offset:3px; }
input,textarea,select { width:100%; min-width:0; padding:10px 12px; color:var(--text); background:#0d1016; border:1px solid #3b4251; border-radius:7px; outline:none; font-size:13px; }
input::placeholder,textarea::placeholder { color:#929bad; } input:hover,textarea:hover,select:hover { border-color:#626a80; } input:focus,textarea:focus,select:focus { border-color:var(--accent-bright); box-shadow:0 0 0 3px #8c6dff24; }
label { display:block; margin:18px 0 7px; color:#d2d7e2; font-size:12px; font-weight:600; } h1,h2,p { margin-top:0; } h2 { margin-bottom:3px; font-size:14px; letter-spacing:-.15px; font-weight:650; }
.muted { margin:0; color:var(--muted); font-size:11px; line-height:1.7; } .eyebrow { color:var(--accent-bright); font-size:10px; text-transform:uppercase; letter-spacing:1.3px; font-weight:650; }
.text-link { font-size:11px; white-space:nowrap; text-decoration:none; font-weight:600; } .text-link:hover { color:#d4c8ff; text-decoration:underline; } .field-hint { margin:8px 0 0; color:var(--muted); font-size:11px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; } .skip-link { position:fixed; top:-60px; left:16px; z-index:100; padding:10px 15px; border-radius:7px; background:var(--accent); color:white; text-decoration:none; } .skip-link:focus { top:16px; }
main { max-width:1500px; min-height:100vh; margin:auto; padding:0 42px; display:flex; flex-direction:column; outline:none; }
.topbar { min-height:87px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.login-brand { display:inline-flex; align-items:center; gap:11px; color:var(--text); font-size:26px; letter-spacing:-.9px; font-weight:700; text-decoration:none; }
.brand-logo { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:1px solid #a08afa; border-radius:9px; background:linear-gradient(140deg,#9473fc,#5534b7); box-shadow:0 5px 15px -8px #a290ff; color:white; font-size:23px; } .brand-logo svg { width:22px; height:22px; }
.topbar-actions { display:flex; align-items:center; gap:8px; } .page-breadcrumb { margin:0 0 4px; font-size:10px; color:var(--muted); } .page-breadcrumb span { margin-inline:6px; color:#6e7485; } .page-breadcrumb strong { color:#c5c9d4; font-weight:400; }
.topbar h1 { margin:0; font-size:19px; letter-spacing:-.45px; font-weight:650; } .topbar .muted { font-size:11px; }
.connection-badge { border:1px solid #554482; color:#c5b6ff; background:#241c3b; font-variant-numeric:tabular-nums; }
.sidebar { position:fixed; inset:0 auto 0 0; width:var(--sidebar-width); z-index:30; display:flex; flex-direction:column; background:var(--sidebar); border-right:1px solid var(--line); }
.sidebar-brand { display:flex; align-items:center; gap:11px; min-height:87px; padding:18px 22px; color:var(--text); font-size:24px; font-weight:700; letter-spacing:-.7px; text-decoration:none; border-bottom:1px solid var(--line); }
.sidebar-brand small { display:block; color:#a4aab9; font-size:8px; letter-spacing:1.25px; font-weight:600; }
.sidebar nav { padding:10px 11px; overflow-y:auto; } .nav-label { margin:20px 11px 8px; color:#969eaf; font-size:9px; font-weight:650; letter-spacing:1.1px; text-transform:uppercase; }
.nav-item { display:flex; align-items:center; gap:10px; padding:11px 12px; margin:3px 0; border:1px solid transparent; border-radius:7px; color:#b1b8c8; text-decoration:none; font-size:12px; font-weight:500; position:relative; }
.nav-item svg,.stat-icon svg,.login-icon svg { width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.nav-item:hover { color:var(--text); background:#181c26; } .nav-item.active { color:#c1afff; background:#231d39; border-color:#352850; } .nav-item.active::before { content:''; position:absolute; left:-12px; top:12px; bottom:12px; width:3px; border-radius:0 3px 3px 0; background:var(--accent); }
.nav-badge { margin-left:auto; padding:1px 6px; border-radius:4px; border:1px solid #333949; background:#191d28; font:600 10px ui-monospace,Consolas,monospace; color:#d3d6e1; }
.sidebar-bottom { margin-top:auto; padding:15px 15px 18px; } .system-pill { display:flex; gap:8px; align-items:center; padding:9px 11px; border:1px solid var(--line); border-radius:6px; font-size:10px; color:#b5bdcc; background:var(--surface); }
.status-dot { width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0; } .status-dot.offline { background:var(--danger); }
.workspace { margin-top:18px; display:flex; gap:9px; align-items:center; font-size:11px; } .workspace small { display:block; font-size:9px; color:var(--muted); } .workspace button { margin-left:auto; }
.avatar { width:30px; height:30px; display:grid; place-items:center; border:1px solid #554280; border-radius:8px; background:var(--accent-soft); color:var(--accent-bright); }
.authenticated main { max-width:none; margin-left:var(--sidebar-width); padding:0; } .authenticated .topbar { padding:14px 27px; } .authenticated .login-brand { display:none; } .content { flex:1; padding:25px 27px 15px; } .category-view { min-width:0; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; } .section-heading .eyebrow { font-size:9px; margin-bottom:5px; } .section-heading h2 { font-size:23px; margin:0 0 3px; letter-spacing:-.55px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; } .stat { border:1px solid var(--line); background:var(--surface); padding:17px 18px; border-radius:9px; }
.stat-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; } .stat-top p { margin:0; color:#b2b9c9; font-size:11px; }
.stat-icon { width:29px; height:29px; display:grid; place-items:center; color:var(--accent-bright); background:var(--accent-soft); border-radius:8px; } .stat-icon.green { color:var(--green); background:#153126; } .stat-icon.amber { color:var(--amber); background:#342b1e; } .stat-icon svg { width:15px; height:15px; }
.stat strong { display:block; font-size:30px; line-height:1.2; letter-spacing:-.8px; font-weight:650; font-variant-numeric:tabular-nums; } .stat-note { font-size:10px; color:var(--muted); margin:5px 0 0; }
.panel { padding:20px; border:1px solid var(--line); border-radius:9px; background:var(--surface); min-width:0; } .panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:17px; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; margin-bottom:20px; } .lower-grid { align-items:start; }
.badge { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:3px 8px; border-radius:5px; color:#c9cfdb; font-size:10px; font-weight:600; white-space:nowrap; } .badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.badge.ok { background:#153026; color:#7ceab0; } .badge.warn { background:#342b1f; color:var(--amber); } .badge.bad { background:#34212a; color:var(--danger); } .badge.used { background:var(--accent-soft); color:var(--accent-bright); } .badge.neutral { background:#1c222d; border:1px solid #303746; color:#bdc6d6; } .badge.neutral::before { display:none; }
.bar-chart { display:flex; align-items:stretch; gap:12px; height:185px; padding:8px 4px 0; } .chart-column { display:flex; flex:1; flex-direction:column; align-items:center; min-width:0; } .chart-bar-track { display:flex; align-items:flex-end; justify-content:center; flex:1; width:100%; border-bottom:1px solid #353042; position:relative; padding-top:24px; }
.chart-bar { position:relative; width:min(38px,65%); min-height:2px; background:linear-gradient(#9a7df9,#6748c1); border:1px solid #ae93ff; border-bottom:0; border-radius:5px 5px 0 0; } .chart-bar.zero { background:#403750; border-color:#514260; } .chart-count { position:absolute; top:-23px; left:50%; transform:translateX(-50%); font:10px ui-monospace,Consolas,monospace; color:#cac2df; } .chart-label { padding-top:11px; font-size:10px; color:var(--muted); }
.access-summary { display:flex; align-items:center; justify-content:center; gap:25px; min-height:185px; } .access-ring { --percentage:0%; display:grid; place-items:center; width:138px; height:138px; flex-shrink:0; border-radius:50%; background:conic-gradient(#8c6dff var(--percentage),#292335 0); } .access-ring>div { display:flex; align-items:center; justify-content:center; flex-direction:column; background:var(--surface); border-radius:50%; width:112px; height:112px; }
.access-ring strong { font-size:26px; font-weight:600; letter-spacing:-.8px; } .access-ring span { color:var(--muted); font-size:10px; } .access-legend { min-width:140px; } .access-legend p { display:flex; align-items:center; gap:7px; font-size:11px; color:#b9bfce; margin-bottom:12px; } .access-legend strong { margin-left:auto; padding-left:10px; color:var(--text); font-weight:600; } .access-legend .text-link { display:block; margin-top:20px; }
.legend-dot { width:7px; height:7px; border-radius:2px; background:#5c496e; } .legend-dot.active { background:var(--accent); }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:7px; } table { width:100%; border-collapse:collapse; text-align:left; font-size:11px; } th { padding:11px 12px; background:#0c1016; border-bottom:1px solid var(--line); color:#a4adbf; white-space:nowrap; text-transform:uppercase; font-size:9px; letter-spacing:.6px; font-weight:650; }
td { padding:13px 12px; border-bottom:1px solid #242934; color:#ccd1df; white-space:nowrap; } tbody tr:last-child td { border-bottom:0; } tbody tr:hover { background:#181b26; } td:first-child { color:#edf0f9; font-weight:600; } .user-cell { display:flex; align-items:center; gap:8px; } .user-avatar { width:25px; height:25px; display:inline-grid; place-items:center; flex-shrink:0; border:1px solid #413158; border-radius:6px; background:var(--accent-soft); color:#c3b1fa; font-size:9px; }
.table-sort { min-height:24px; max-width:100%; gap:6px; padding:0; border:0; border-radius:2px; background:transparent; color:inherit; font:inherit; line-height:1.35; letter-spacing:inherit; text-transform:inherit; text-align:left; white-space:normal; box-shadow:none; }
.table-sort:hover:not(:disabled) { background:transparent; color:var(--text); }
.table-sort .sort-arrow { width:12px; height:12px; flex:none; opacity:.45; }
th[aria-sort="ascending"] .table-sort,th[aria-sort="descending"] .table-sort { color:var(--accent-bright); }
th[aria-sort="ascending"] .sort-arrow { transform:rotate(180deg); opacity:1; }
th[aria-sort="descending"] .sort-arrow { opacity:1; }
.actions { display:flex; gap:5px; align-items:center; min-height:58px; } .actions button { min-height:27px; padding:5px 8px; font-size:10px; } .reference-cell { font-family:ui-monospace,Consolas,monospace; font-size:11px; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:17px; font-size:10px; color:var(--muted); } .pager>div { display:flex; gap:6px; } .pager button { min-height:30px; padding:5px 10px; font-size:11px; } .empty-state { padding:36px 18px; text-align:center; white-space:normal; color:#abb4c7!important; font-weight:400!important; line-height:1.8; }
.activity-list { margin:0; padding:0; list-style:none; } .activity-list li { display:flex; gap:11px; padding:11px 0; border-bottom:1px solid var(--line); } .activity-list li:last-child { border:0; padding-bottom:0; } .activity-mark { width:25px; height:25px; display:grid; place-items:center; border-radius:7px; flex-shrink:0; background:#27213d; color:var(--accent-bright); font-size:12px; } .activity-list strong { display:block; font-size:11px; color:#dee1ed; font-weight:600; } .activity-list p { color:var(--muted); font-size:10px; margin:3px 0 0; overflow-wrap:anywhere; } .activity-list time { display:block; color:#a6afc0; font-size:9px; margin-top:3px; }
.toolbar { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; } .search-field { position:relative; flex:1; min-width:180px; max-width:420px; } .search-field input { padding-left:35px; font-size:12px; } .search-field svg { position:absolute; width:15px; height:15px; left:12px; top:12px; fill:none; stroke:#a2adbf; stroke-width:1.8; } .toolbar select { width:auto; min-width:155px; font-size:12px; }
.data-note { font-size:11px; color:var(--muted); margin:13px 0 0; line-height:1.7; } .generation-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(250px,.8fr); gap:20px; max-width:1000px; } .generation-panel { padding:25px; } .generation-panel .panel-head { margin-bottom:25px; } .generation-panel .field { margin-bottom:20px; } .generation-panel label { margin-top:0; }
.generation-preview { padding:17px; border:1px dashed #494057; border-radius:7px; background:#100f18; margin:23px 0; } .preview-label { color:#b6a5da; letter-spacing:1px; font-size:9px; font-weight:600; } .generation-preview>div { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:11px; font-size:12px; } .generation-preview>div>span { color:var(--muted); } .generation-preview strong { font-weight:500; }
.generation-help { padding:28px; } .generation-help h2 { font-size:22px; letter-spacing:-.5px; margin:20px 0 12px; } .help-icon { display:grid; place-items:center; height:38px; width:38px; background:var(--accent-soft); color:var(--accent-bright); border:1px solid #44315c; border-radius:10px; font-size:22px; } .help-step { display:flex; gap:13px; margin-top:24px; } .help-step>span { color:var(--accent-bright); font:11px ui-monospace,Consolas,monospace; padding-top:1px; } .help-step strong { font-size:12px; font-weight:600; } .help-step p { font-size:11px; color:var(--muted); margin:5px 0 0; line-height:1.7; }
.note { margin:25px 0; padding:13px; border-left:2px solid var(--accent); border-radius:0 6px 6px 0; background:var(--accent-soft); color:#c8bcdf; font-size:11px; line-height:1.7; } .generated { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); } .generated-head { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-bottom:12px; } #new-key { display:block; min-height:96px; margin-bottom:12px; padding:12px 14px; font:13px/1.8 ui-monospace,Consolas,monospace; color:#cfbfff; background:#1b1629; resize:none; overflow:auto; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:var(--accent-border) var(--accent-soft); }
.system-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; } dl { display:grid; grid-template-columns:180px minmax(0,1fr); margin:10px 0 24px; } dt,dd { padding:10px 0; border-bottom:1px solid var(--line); font-size:11px; } dt { color:#aeb7c9; } dd { margin:0; overflow-wrap:anywhere; color:#e0e3ee; } .system-fields { margin:0; grid-template-columns:145px minmax(0,1fr); }
.connection-address { display:grid; grid-template-columns:83px minmax(0,1fr) auto; gap:10px; align-items:center; margin:16px 0; } .connection-address>span { margin:0; font-size:11px; color:var(--muted); } .connection-address strong { font:11px ui-monospace,Consolas,monospace; overflow-wrap:anywhere; } .ip-meta { display:flex; gap:13px; flex-wrap:wrap; margin-top:18px; font-size:10px; color:var(--muted); }
.api-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:25px; padding-top:4px; } .api-flow>div { display:grid; grid-template-columns:26px 1fr; gap:5px 10px; } .api-flow span { grid-row:span 2; color:var(--accent-bright); font:11px ui-monospace,Consolas,monospace; padding-top:3px; } .api-flow strong { font-size:12px; font-weight:600; } .api-flow p { font-size:11px; color:var(--muted); line-height:1.7; margin:0; }
.settings-panel { max-width:580px; padding:25px; } #password-form .primary { margin-top:25px; }
footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:20px 0; margin-top:auto; color:#9aa4b7; font-size:10px; border-top:1px solid var(--line); } .authenticated footer { border-top:0; padding:17px 27px; } .footer-separator { margin:0 7px; color:#646c7d; }
.login-layout { display:grid; grid-template-columns:1.1fr 1fr; gap:80px; align-items:center; width:min(1050px,100%); margin:auto; padding:60px 0; } .login-intro h1 { font-size:clamp(40px,4vw,61px); font-weight:650; line-height:1.12; letter-spacing:-2.4px; margin:20px 0 24px; } .login-intro h1 span { color:#ad92ff; } .login-intro>p:not(.eyebrow) { max-width:370px; color:#abb3c4; font-size:15px; line-height:1.8; margin-bottom:33px; }
.login-feature { display:flex; align-items:center; gap:13px; margin-top:20px; } .feature-number { display:grid; place-items:center; height:32px; width:32px; border:1px solid #473561; border-radius:8px; background:#211c32; color:#baa6ed; font:10px ui-monospace,Consolas,monospace; } .login-feature strong { display:block; font-size:12px; font-weight:600; } .login-feature div>span { display:block; color:var(--muted); font-size:11px; margin-top:3px; } .login-decoration { display:flex; align-items:center; justify-content:space-between; max-width:370px; margin-top:45px; padding-top:20px; border-top:1px solid var(--line); font-size:9px; letter-spacing:1.5px; color:#9a91ad; }
.login-card { padding:37px; border:1px solid #363043; border-radius:13px; background:linear-gradient(160deg,#15141e,#11141b 65%); box-shadow:0 20px 80px -35px #291b54; } .login-icon { display:grid; place-items:center; height:39px; width:39px; margin-bottom:25px; border:1px solid #59407c; border-radius:10px; background:var(--accent-soft); color:var(--accent-bright); } .login-icon svg { width:20px; height:20px; } .login-card .eyebrow { margin-bottom:8px; font-size:9px; } .login-card h2 { font-size:25px; letter-spacing:-.7px; margin-bottom:6px; }
.login-card form { margin-top:24px; } .login-card input { padding:12px; } .login-card .primary { width:100%; justify-content:space-between; margin-top:27px; padding:12px 15px; } .login-note { margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line); font-size:11px; line-height:1.8; color:var(--muted); }
#status { position:fixed; bottom:25px; left:50%; z-index:60; transform:translateX(-50%); max-width:min(580px,calc(100vw - 32px)); margin:0; padding:13px 18px; color:#f7f4ff; background:#312149; border:1px solid #997cc8; border-radius:8px; box-shadow:0 10px 35px #0009; font-size:12px; pointer-events:none; } #status:empty { display:none; }
dialog { width:min(740px,calc(100vw - 32px)); max-height:90vh; padding:26px; overflow-y:auto; border:1px solid #554568; border-radius:11px; color:var(--text); background:var(--surface); box-shadow:0 25px 90px #000a; } dialog::backdrop { background:#03030ac7; } .dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:16px; border-bottom:1px solid var(--line); } .dialog-head .eyebrow { margin-bottom:6px; } .dialog-head h2 { font-size:21px; }
.password-reset { padding:17px; border:1px solid #353041; border-radius:7px; background:#17141f; margin-bottom:18px; } .password-reset label { margin-top:0; } .password-reset-row { display:flex; align-items:center; gap:10px; } .password-reset-row button { flex-shrink:0; } .password-reset .muted { margin-top:10px; } .dialog-actions { display:flex; align-items:center; gap:16px; } .dialog-actions button { flex-shrink:0; }
.mobile-only { display:none; } [hidden] { display:none!important; }
@media (min-width:1700px) { .content { max-width:1550px; width:100%; margin-inline:auto; } }
@media (max-width:1250px) { :root { --sidebar-width:211px; } .sidebar-brand { padding-inline:18px; } .authenticated .topbar { padding-inline:21px; } .content { padding-inline:21px; } .overview-grid { grid-template-columns:1fr 1fr; gap:15px; } .access-summary { gap:15px; } .access-ring { width:116px; height:116px; } .access-ring>div { width:94px; height:94px; } .stat { padding:15px 13px; } .stat-top p { font-size:10px; } .stat-note { font-size:9px; } .system-grid { grid-template-columns:1fr; } }
@media (max-width:1030px) { .stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .overview-grid { grid-template-columns:1fr; } .bar-chart { height:165px; } .access-summary { justify-content:flex-start; min-height:150px; gap:30px; } .access-ring { width:130px; height:130px; } .access-ring>div { width:105px; height:105px; } .access-legend { width:min(260px,60%); } .generation-layout { grid-template-columns:1fr; max-width:700px; } .api-flow { grid-template-columns:1fr; gap:21px; } .login-layout { gap:40px; } .login-card { padding:28px; } .section-heading { align-items:flex-start; } #last-updated { font-size:9px; white-space:nowrap; padding-top:4px; } }
@media (max-width:760px) { main { padding-inline:20px; } .topbar { min-height:73px; } .login-layout { grid-template-columns:1fr; gap:35px; padding:40px 0; max-width:500px; } .login-intro h1 { font-size:42px; letter-spacing:-1.7px; margin:14px 0 18px; } .login-intro>p:not(.eyebrow) { max-width:none; font-size:13px; margin-bottom:0; } .login-feature,.login-decoration { display:none; } .login-card { padding:27px; } .sidebar { position:relative; width:100%; border-right:0; border-bottom:1px solid var(--line); } .sidebar-brand { min-height:68px; padding:14px 18px; border-bottom:0; font-size:21px; } .sidebar nav { display:flex; gap:5px; padding:0 14px 13px; overflow-x:auto; } .nav-label,.sidebar-bottom { display:none; } .nav-item { padding:9px 11px; font-size:11px; gap:7px; white-space:nowrap; margin:0; } .nav-item.active::before { display:none; } .nav-item svg { width:14px; height:14px; } .nav-badge { display:none; } .authenticated main { margin-left:0; min-height:calc(100vh - 110px); } .authenticated .topbar { padding:15px 17px; min-height:90px; gap:12px; } .topbar h1 { font-size:17px; } .page-breadcrumb { display:none; } .topbar .muted { font-size:10px; max-width:200px; } .topbar-actions { gap:6px; } .topbar-actions button,.topbar-actions .button { padding:8px 10px; min-height:33px; font-size:11px; } #refresh>span { display:none; } .mobile-only { display:inline-flex; } .content { padding:21px 16px 12px; } .section-heading { flex-direction:column; gap:7px; margin-bottom:18px; } .section-heading h2 { font-size:21px; } .stats { gap:10px; } .stat { padding:14px 12px; } .stat-top { gap:6px; } .stat-top p { font-size:10px; } .stat-icon { width:24px; height:24px; } .stat-icon svg { width:13px; height:13px; } .stat strong { font-size:26px; } .stat-note { font-size:9px; } .panel { padding:17px; } .overview-grid { gap:15px; margin-bottom:15px; } .panel-head { gap:9px; } .panel-head h2 { font-size:13px; } .panel-head .muted { font-size:10px; } .text-link { font-size:10px; } .bar-chart { gap:6px; height:160px; } .access-summary { gap:22px; } .access-legend { min-width:0; } .access-legend p { font-size:10px; } .search-field { max-width:none; width:100%; flex-basis:100%; } .toolbar select { flex:1; min-width:120px; font-size:11px; } .pager { flex-wrap:wrap; } .pager>div { margin-left:auto; } .generation-panel,.generation-help,.settings-panel { padding:21px; } .connection-address { grid-template-columns:67px minmax(0,1fr) auto; gap:8px; } .connection-address strong { font-size:10px; } .system-fields { grid-template-columns:110px minmax(0,1fr); } .system-grid { gap:15px; margin-bottom:15px; } .authenticated footer { padding:16px; font-size:9px; } footer { flex-wrap:wrap; gap:8px; font-size:9px; } dialog { padding:20px; } #detail-fields { grid-template-columns:1fr; } #detail-fields dt { border-bottom:0; padding-bottom:2px; } #detail-fields dd { padding-top:2px; } .password-reset-row,.dialog-actions { flex-direction:column; align-items:stretch; } .password-reset-row button { width:100%; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }


::selection { background:#7454d8; color:#fff; text-shadow:none; }
input::selection, textarea::selection { background:#7454d8; color:#fff; }
select { appearance:none; -webkit-appearance:none; background-image:none; padding-right:12px; cursor:pointer; }
select option { background:#15131e; color:#eef0f7; }
select option:checked { background:#493279; color:#fff; }
:root { --sidebar-width:214px; }
.authenticated .topbar { min-height:64px; padding:8px 18px; }
.topbar h1 { font-size:18px; line-height:1.25; }
.page-breadcrumb { display:none; }
.sidebar-brand { min-height:64px; padding:12px 17px; }
.sidebar nav { padding:7px 10px; min-height:0; }
.nav-label { margin:12px 10px 5px; }
.nav-item { padding:8px 10px; margin:2px 0; }
.sidebar-bottom { padding:10px 13px 12px; }
.workspace { margin-top:12px; }
.content { padding:12px 18px 8px; }
.section-heading { margin-bottom:10px; }
.section-heading .eyebrow { display:none; }
.section-heading h2 { font-size:20px; line-height:1.25; }
.stats { gap:10px; margin-bottom:10px; }
.stat { padding:10px 12px; }
.stat-top { margin-bottom:4px; }
.stat-icon { width:23px; height:23px; }
.stat strong { font-size:26px; line-height:1.15; }
.stat-note { margin-top:3px; }
.panel { padding:12px; }
.panel-head { margin-bottom:8px; gap:10px; }
.panel-head h2 { line-height:1.35; }
.overview-grid { gap:12px; margin-bottom:10px; }
.lower-grid { margin-bottom:0; }
.bar-chart { height:102px; gap:8px; padding-top:5px; }
.chart-label { padding-top:6px; }
.chart-count { top:-18px; font-size:9px; }
.chart-bar-track { padding-top:20px; }
.access-summary { min-height:102px; gap:18px; }
.access-ring { width:94px; height:94px; }
.access-ring>div { width:76px; height:76px; }
.access-ring strong { font-size:21px; }
.access-legend p { margin-bottom:8px; }
.access-legend .text-link { margin-top:10px; }
th { padding:7px 8px; }
td { padding:7px 8px; }
.user-avatar { width:22px; height:22px; }
.actions { display:table-cell; min-height:0; white-space:normal; }
.actions button { margin:2px; min-height:25px; padding:3px 6px; }
.toolbar { gap:8px; margin-bottom:10px; }
.pager { margin-top:10px; }
.pager button { min-height:28px; }
.activity-list li { gap:8px; padding:6px 0; }
.activity-list p { display:inline; font-size:10px; line-height:1.45; }
.activity-list time { display:inline; margin-left:7px; line-height:1.45; }
.activity-mark { width:22px; height:22px; }
.generation-layout { gap:12px; }
.generation-panel,.generation-help,.settings-panel { padding:18px; }
.generation-panel .panel-head { margin-bottom:16px; }
.generation-panel .field { margin-bottom:14px; }
.generation-preview { padding:12px; margin:14px 0; }
.generation-preview>div { margin-top:8px; }
.generation-help h2 { margin:14px 0 9px; }
.help-step { margin-top:16px; }
.note { margin:16px 0; }
.generated { margin-top:14px; padding-top:14px; }
.system-grid { gap:12px; margin-bottom:12px; }
dt,dd { padding:6px 0; }
.connection-address { margin:12px 0; }
.ip-meta { margin-top:12px; }
.api-flow { gap:16px; }
footer,.authenticated footer { padding:7px 18px; font-size:13px; font-weight:500; color:#c7cedd; }
.login-layout { gap:55px; padding:28px 0; }
.login-card { padding:27px; }
.login-icon { margin-bottom:17px; }
.login-card form { margin-top:18px; }
.login-card .primary { margin-top:20px; }
.login-card label { margin-top:15px; }
.login-note { margin-top:18px; padding-top:16px; }
.login-decoration { margin-top:25px; padding-top:14px; }
dialog { padding:20px; max-height:calc(100svh - 24px); }
.dialog-head { padding-bottom:10px; }
.password-reset { padding:13px; margin-bottom:12px; }

@media (min-width:900px) {
  .stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .overview-grid { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
  .system-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .api-flow { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .records-panel table { table-layout:fixed; }
  .records-panel td { white-space:normal; overflow-wrap:anywhere; }
  #users-view th:nth-child(1) { width:16%; }
  #users-view th:nth-child(2) { width:11%; }
  #users-view th:nth-child(3),#users-view th:nth-child(4),#users-view th:nth-child(6) { width:12%; }
  #users-view th:nth-child(5) { width:12%; }
  #users-view th:last-child { width:25%; }
  #keys-view th:nth-child(2) { width:28%; }
  #logs-view th:nth-child(2) { width:34%; }
}
@media (max-width:899px) and (min-width:761px) {
  :root { --sidebar-width:184px; }
  .content { padding-inline:12px; }
  .stats { gap:8px; }
  .overview-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  body.authenticated { display:flex; flex-direction:column; min-height:100svh; }
  .authenticated main { flex:1; width:100%; min-height:0; }
  .sidebar-brand { min-height:55px; padding:10px 14px; }
  .sidebar nav { flex-wrap:wrap; overflow:visible; gap:4px; padding:0 12px 10px; }
  .nav-item { padding:6px 8px; font-size:10px; gap:5px; }
  .nav-item svg { width:12px; height:12px; }
  .authenticated .topbar { min-height:75px; padding:10px 14px; }
  .content { padding:14px 12px 8px; }
  .section-heading { gap:4px; }
  .section-heading h2 { font-size:19px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat { padding:11px; }
  .overview-grid { grid-template-columns:1fr; }
  .bar-chart { height:105px; }
  .access-summary { min-height:105px; }
  .access-legend { width:min(240px,60%); }
  .records-panel .table-wrap table { min-width:620px; }
  .records-panel .actions { min-width:190px; width:190px; }
  .lower-grid table { font-size:10px; }
  .system-grid { grid-template-columns:1fr; }
  .login-layout { padding:22px 0; gap:24px; }
  .login-card { padding:23px; }
  .login-intro h1 { font-size:36px; }
  footer,.authenticated footer { font-size:12px; padding:10px 14px; }
}

.authenticated main { min-width:0; }
.authenticated .content { max-width:none; }
.date-cell span,.date-cell small { display:block; white-space:nowrap; }
.date-cell small { color:var(--muted); font-size:11px; font-weight:400; }
.user-cell > span:last-child { min-width:0; overflow-wrap:anywhere; }
.row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.row-actions button { margin:0; width:100%; }

@media (min-width:761px) {
  .authenticated .topbar { min-height:72px; padding:10px 22px; }
  .topbar h1 { font-size:20px; }
  .content { padding:16px 22px 10px; }
  .sidebar-brand { min-height:72px; font-size:25px; }
  .nav-item { min-height:40px; font-size:13px; padding:9px 11px; }
  .panel { padding:16px; }
  .panel-head h2 { font-size:16px; }
  .panel-head .muted,.stat-note { font-size:11px; }
  .stats { gap:12px; margin-bottom:12px; }
  .stat { padding:14px 15px; }
  .stat-top p { font-size:12px; }
  .stat strong { font-size:32px; }
  .overview-grid { gap:14px; margin-bottom:12px; }
  .lower-grid { margin-bottom:0; }
  .bar-chart { height:clamp(124px,17vh,180px); }
  .access-summary { min-height:clamp(124px,17vh,180px); }
  .access-ring { width:110px; height:110px; }
  .access-ring>div { width:88px; height:88px; }
  .activity-list li { padding:9px 0; }
  .activity-list strong { font-size:12px; }
  .toolbar { margin-bottom:12px; }
  .search-field { max-width:500px; }
  .search-field input { min-height:42px; font-size:13px; }
  .search-field svg { top:14px; }
  .badge { font-size:11px; padding:4px 8px; }
  .records-panel table { table-layout:fixed; font-size:12px; }
  .records-panel th { padding:10px 8px; font-size:10px; letter-spacing:.35px; }
  .records-panel td { padding:8px; white-space:normal; overflow-wrap:anywhere; }
  .actions button { min-height:29px; font-size:11px; padding:4px 6px; }
  .pager { font-size:12px; margin-top:12px; }
  .pager button { min-height:34px; font-size:12px; padding:6px 12px; }
  #users-view th:nth-child(1) { width:13%; }
  #users-view th:nth-child(2) { width:12%; }
  #users-view th:nth-child(3) { width:7.5%; }
  #users-view th:nth-child(4),#users-view th:nth-child(5),#users-view th:nth-child(7) { width:10.5%; }
  #users-view th:nth-child(6) { width:13%; }
  #users-view th:last-child { width:23%; }
  .generation-layout { max-width:none; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
  .generation-panel,.generation-help,.settings-panel { padding:22px; }
  .generation-panel .field { margin-bottom:16px; }
  .generation-preview { padding:15px; }
  .generation-help h2 { font-size:25px; }
  .settings-panel { max-width:720px; }
}

@media (max-width:1099px) {
  #users-view .table-wrap table { min-width:0; }
  #users-view table,#users-view tbody { display:block; }
  #users-view thead { display:block; position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
  #users-view thead tr { display:flex; flex-wrap:wrap; gap:8px; padding:10px; border-bottom:1px solid var(--line); }
  #users-view thead th { width:auto; padding:0; border:0; background:transparent; }
  #users-view thead th:not([aria-sort]) { display:none; }
  #users-view .table-sort { min-height:32px; padding:5px 8px; border:1px solid var(--line); border-radius:5px; font-size:10px; }
  #users-view tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 12px; padding:12px; border-bottom:1px solid var(--line); }
  #users-view tbody tr:last-child { border-bottom:0; }
  #users-view td { display:block; width:auto; min-width:0; padding:6px 0; border:0; white-space:normal; overflow-wrap:anywhere; }
  #users-view td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:10px; font-weight:500; }
  #users-view .actions { grid-column:2 / -1; min-width:0; width:auto; align-self:end; }
  #users-view .row-actions { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #users-view .empty-state { grid-column:1 / -1; }
}

@media (max-width:760px) {
  .records-panel .table-wrap table { min-width:0; }
  .records-panel table,.records-panel tbody { display:block; }
  .records-panel thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #users-view thead { position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
  .records-panel tbody tr,#users-view tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; padding:10px; border-bottom:1px solid var(--line); }
  .records-panel tbody tr:last-child { border-bottom:0; }
  .records-panel td { display:block; min-width:0; padding:5px 0; border:0; white-space:normal; overflow-wrap:anywhere; }
  .records-panel td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:10px; font-weight:500; }
  .records-panel .actions,#users-view .actions { grid-column:1 / -1; min-width:0; width:auto; }
  #users-view .row-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .records-panel .empty-state { grid-column:1 / -1; }
  .generation-layout { grid-template-columns:1fr; }
  .topbar-title { min-width:0; }
  .topbar .muted { overflow-wrap:anywhere; }
}

@media (min-width:761px) and (max-height:800px) {
  #overview-view .stat { padding:12px 15px; }
  #overview-view .bar-chart { height:110px; }
  #overview-view .access-summary { min-height:110px; }
  #overview-view .overview-grid { margin-bottom:10px; }
  #overview-view .lower-grid { margin-bottom:0; }
}

#days,#key-quantity { appearance:textfield; -moz-appearance:textfield; }
#days::-webkit-inner-spin-button,
#days::-webkit-outer-spin-button,
#key-quantity::-webkit-inner-spin-button,
#key-quantity::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }

.validity-dialog { width:min(560px,calc(100vw - 32px)); padding:24px; }
.validity-dialog .dialog-head { align-items:center; gap:16px; padding-bottom:16px; }
.validity-dialog .dialog-head h2 { font-size:23px; }
.validity-account { display:flex; align-items:center; gap:12px; margin:20px 0 8px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.validity-account .preview-label { margin:0; flex-shrink:0; font-size:10px; }
.validity-account strong { min-width:0; overflow-wrap:anywhere; font-size:15px; }
.validity-dialog #validity-description { margin:0; font-size:12px; line-height:1.6; }
.validity-field { margin:18px 0; }
.validity-field label { margin:0 0 8px; font-size:13px; }
#validity-days { min-height:44px; font-size:16px; appearance:textfield; -moz-appearance:textfield; }
#validity-days::-webkit-inner-spin-button,#validity-days::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
#validity-days[aria-invalid="true"] { border-color:#c8808f; }
#validity-days[readonly] { opacity:.7; }
.validity-field .field-hint { margin:7px 0 0; font-size:11px; }
.validity-dates { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0; padding:14px; border:1px solid #473561; border-radius:8px; background:var(--accent-soft); }
.validity-dates div { min-width:0; }
.validity-dates dt { padding:0; border:0; font-size:11px; color:var(--muted); }
.validity-dates dd { margin:7px 0 0; padding:0; border:0; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.validity-dates div:last-child dd { color:var(--accent-bright); font-weight:600; }
.validity-note { margin:14px 0 0; color:var(--muted); font-size:11px; line-height:1.7; }
.validity-error { margin:12px 0 0; padding:10px 12px; border:1px solid #704554; border-radius:7px; color:#f0b7c4; background:#291920; font-size:12px; line-height:1.5; }
.validity-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.validity-actions button { min-height:40px; font-size:12px; }
@media (max-width:480px) {
  .validity-dialog { padding:18px; }
  .validity-dialog .dialog-head h2 { font-size:21px; }
  .validity-account { margin-top:16px; }
  .validity-dates { grid-template-columns:1fr; gap:10px; }
  .validity-dates dd { margin-top:3px; }
  .validity-actions { margin-top:16px; }
  .validity-actions button { flex:1; }
}

@media (min-width:761px) {
  #keys-view th:first-child,#keys-view td:first-child,
  #logs-view th:first-child,#logs-view td:first-child { padding-left:18px; }
}
@media (min-width:1100px) {
  #users-view th:first-child,#users-view td:first-child { padding-left:18px; }
}

@media (min-width:761px) and (max-height:720px) {
  .authenticated .topbar { min-height:64px; }
  .sidebar-brand { min-height:64px; }
  .content { padding-top:12px; }
  .stat { padding:10px 12px; }
  #overview-view .stat { padding:10px 12px; }
  .stat strong { font-size:28px; }
  .bar-chart { height:110px; }
  .access-summary { min-height:110px; }
  #overview-view .bar-chart { height:100px; }
  #overview-view .access-summary { min-height:100px; }
  #overview-view .overview-grid .panel { padding:14px; }
  .activity-list li { padding:6px 0; }
}

.topbar-controls { display:grid; grid-template-columns:repeat(4,148px); align-items:center; gap:8px; }
.topbar-controls .topbar-control { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; min-width:0; height:36px; min-height:36px; padding:8px 10px; border-radius:7px; font-size:12px; font-weight:600; line-height:1; white-space:nowrap; }
@media (max-width:1030px) {
  .authenticated .topbar { flex-wrap:wrap; }
  .authenticated .topbar-actions { width:100%; }
  .topbar-controls { flex:1; grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .topbar-actions { flex-wrap:wrap; justify-content:flex-end; }
  .topbar-controls { flex-basis:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .topbar-controls .topbar-control { padding-inline:6px; gap:5px; font-size:11px; }
  #refresh>span { display:inline; }
}
@media (max-width:360px) {
  .topbar-controls .topbar-control { font-size:10px; }
}


#dashboard:not([hidden]) { display:flex; flex-direction:column; }
#generator-view:not([hidden]),#keys-view:not([hidden]),#users-view:not([hidden]) { display:flex; flex-direction:column; flex:1; min-height:0; }
#generator-view>.generation-layout { flex:1; align-items:stretch; }
.generation-panel { display:flex; flex-direction:column; }
.generation-panel>.panel-head,.generation-panel>form,.generated-head,#copy { flex-shrink:0; }
.generated:not([hidden]) { display:flex; flex-direction:column; flex:1; }
.generated>#new-key { flex:1; }
.generated>#copy { align-self:flex-start; }
#keys-view>.records-panel,#users-view>.records-panel { display:flex; flex-direction:column; flex:1; min-height:0; }
#keys-view .panel-head,#users-view .panel-head,#keys-view .toolbar,#users-view .toolbar,#keys-view .data-note,#users-view .data-note { flex-shrink:0; }
#overview-view:not([hidden]) { display:flex; flex-direction:column; flex:1; min-height:0; }
#overview-view>.section-heading,#overview-view>.stats,
#overview-view>.overview-grid:not(.lower-grid) { flex-shrink:0; }
#overview-view>.lower-grid { flex:1; align-items:stretch; min-height:180px; margin-bottom:0; }
@media (min-width:900px) {
  .authenticated main:has(#overview-view:not([hidden])) { height:100dvh; min-height:700px; }
  .authenticated main:has(#overview-view:not([hidden]))>.topbar,
  .authenticated main:has(#overview-view:not([hidden]))>footer { flex-shrink:0; }
  #dashboard:has(#overview-view:not([hidden])) { min-height:0; }
  #overview-view>.lower-grid>.panel { display:flex; flex-direction:column; min-height:0; }
  #overview-view>.lower-grid .panel-head { flex-shrink:0; }
  #overview-view>.lower-grid .table-wrap,
  #overview-view>.lower-grid .activity-list { flex:1; min-height:0; overflow:auto; }
  #overview-view>.lower-grid th { position:sticky; top:0; z-index:1; }
  #overview-view>.lower-grid .activity-list { padding-right:6px; }
}
@media (max-width:899px) {
  #overview-view>.lower-grid { flex:none; min-height:0; }
}

.toolbar { align-items:stretch; gap:10px; }
.toolbar .search-field { flex:1 1 220px; min-width:0; max-width:none; }
.toolbar .search-field input { height:42px; min-height:42px; padding:10px 14px 10px 40px; font-size:13px; line-height:20px; }
.toolbar .search-field svg { top:50%; left:14px; transform:translateY(-50%); }
#key-form input,#password-form input,.password-reset-row input { height:42px; min-height:42px; padding-block:10px; line-height:20px; }
#key-form .primary,#password-form .primary,.password-reset-row button { min-height:42px; }
.pager button { min-width:92px; }
.connection-address { grid-template-columns:83px minmax(0,1fr) 104px; }
.connection-address button { width:100%; min-height:32px; }
@media (max-width:1030px) {
  .toolbar .search-field { flex-basis:100%; }
}
@media (max-width:760px) {
  .toolbar .search-field input { font-size:12px; }
  .connection-address { grid-template-columns:67px minmax(0,1fr) 94px; }
}

#users-view .row-actions [data-action="panel"],
#users-view .row-actions [data-action="remove"] { grid-column:1 / -1; min-height:28px; padding:3px 8px; font-size:11px; line-height:1.4; }
#users-view .row-actions [data-action="panel"] { background:var(--accent-soft); color:var(--accent-bright); border-color:var(--accent-border); }
.records-scroll { max-height:clamp(260px,calc(100dvh - 300px),900px); overflow:auto; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:var(--accent) var(--surface); overscroll-behavior:contain; }
.records-scroll::-webkit-scrollbar { width:9px; height:9px; }
.records-scroll::-webkit-scrollbar-thumb { background:var(--accent-border); border:2px solid var(--surface); border-radius:8px; }
.records-scroll::-webkit-scrollbar-track { background:var(--surface); }
.records-scroll th { position:sticky; top:0; z-index:1; }
#user-details .account-access-actions { flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
#user-details .account-access-actions button { min-height:36px; margin:0; }
#user-details .account-access-actions #toggle-login-mode { margin-left:auto; }
#user-details .access-mode-note { margin-top:12px; }
@media (max-width:760px) { .records-scroll { max-height:62dvh; } }
@media (min-width:900px) and (min-height:600px) {
  .authenticated main:has(#keys-view:not([hidden]),#users-view:not([hidden])) { height:100dvh; min-height:600px; }
  .authenticated main:has(#keys-view:not([hidden]),#users-view:not([hidden]))>.topbar,
  .authenticated main:has(#keys-view:not([hidden]),#users-view:not([hidden]))>footer { flex-shrink:0; }
  #dashboard:has(#keys-view:not([hidden]),#users-view:not([hidden])) { min-height:0; }
  #keys-view .records-scroll,#users-view .records-scroll { flex:1; min-height:160px; max-height:none; }
}
.remote-panel-dialog { width:min(960px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; overflow:auto; overscroll-behavior:contain; }
.remote-panel-dialog[open] { display:flex; flex-direction:column; }
.remote-panel-dialog .dialog-head { flex:none; align-items:center; padding:22px 24px 12px; margin:0; gap:18px; }
.remote-panel-dialog .dialog-head h2 { font-size:23px; overflow-wrap:anywhere; }
.remote-panel-dialog .dialog-head .eyebrow { margin-bottom:6px; }
#remote-panel-description { flex:none; padding:0 24px; margin:0; font-size:12px; line-height:1.6; }
.remote-panel-summary { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; flex:none; padding:16px 24px; }
.remote-panel-summary .muted { font-size:11px; }
.remote-panel-summary time { margin-left:auto; }
.remote-panel-notice { flex:none; margin:0 24px 14px; padding:11px 13px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.remote-panel-dialog .validity-error { flex:none; margin:0 24px 14px; }
.remote-panel-groups { flex:1; min-height:80px; overflow:auto; overscroll-behavior:contain; padding:0 24px 8px; scrollbar-gutter:stable; }
.remote-panel-group { border:1px solid var(--line); border-radius:10px; margin:0 0 14px; background:var(--surface); overflow:hidden; }
.remote-panel-group h3 { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0; padding:13px 16px; border-bottom:1px solid var(--line); font-size:14px; }
.remote-panel-group h3 .badge { font-size:10px; font-weight:500; }
.remote-panel-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.remote-panel-option { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:12px 16px; border-bottom:1px solid var(--line); }
.remote-panel-option:nth-child(odd) { border-right:1px solid var(--line); }
.remote-option-text { min-width:0; }
.remote-option-text strong,.remote-option-text small { display:block; overflow-wrap:anywhere; }
.remote-option-text strong { font-size:12px; line-height:1.5; font-weight:600; }
.remote-option-text small { color:var(--muted); font-size:10px; line-height:1.6; margin-top:3px; }
.remote-panel-option.has-draft { background:var(--accent-soft); }
.remote-value-editor { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex:0 1 170px; min-width:0; }
.remote-value-editor input,.remote-value-editor select { min-width:0; width:100%; min-height:36px; padding:6px 8px; font-size:12px; }
.remote-value-editor input[type=color] { flex:0 0 40px; height:36px; padding:3px; cursor:pointer; }
.remote-value-editor input[type=number] { max-width:100px; }
.remote-value-editor select { max-width:170px; }
.remote-value-editor :focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.remote-panel-option .remote-toggle { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:7px; min-width:104px; min-height:34px; padding:7px 10px; border-radius:7px; background:var(--bg); border:1px solid var(--line); color:var(--muted); font-size:11px; }
.remote-panel-option .remote-toggle[role="switch"]::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.7; }
.remote-panel-option .remote-toggle.is-on { color:var(--accent-bright); border-color:var(--accent); background:var(--accent-soft); }
.remote-panel-option .remote-toggle:disabled { cursor:default; opacity:.65; }
.remote-panel-option .remote-toggle:focus-visible { outline:2px solid var(--accent-bright); outline-offset:3px; }
.remote-panel-bottom { display:flex; flex:none; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; border-top:1px solid var(--line); padding:15px 24px 9px; }
.remote-panel-bottom>.muted { margin:0; font-size:11px; }
.remote-panel-actions { display:flex; flex-wrap:wrap; gap:9px; }
.remote-panel-actions button { min-height:38px; font-size:12px; }
.remote-panel-footnote { flex:none; color:var(--muted); font-size:10px; line-height:1.6; margin:0; padding:0 24px 18px; }
.component-versions { flex:none; margin:0 24px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.component-versions summary { padding:10px 14px; cursor:pointer; font-size:12px; font-weight:600; }
.component-versions>.muted { margin:0 14px 8px; font-size:10px; line-height:1.5; }
.component-versions-scroll { max-height:248px; overflow:auto; border-top:1px solid var(--line); }
.component-versions table { width:100%; min-width:470px; }
.component-versions th,.component-versions td { padding:7px 12px; font-size:11px; white-space:normal; }
.component-versions small { display:block; font-size:9px; line-height:1.5; color:var(--muted); }
.component-versions .badge { font-size:9px; }
@media (max-width:640px) {
  .remote-panel-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .remote-panel-dialog .dialog-head { padding:17px 16px 10px; }
  .remote-panel-dialog .dialog-head h2 { font-size:19px; }
  #remote-panel-description { padding-inline:16px; }
  .remote-panel-summary { padding:12px 16px; gap:8px 12px; }
  .remote-panel-summary time { width:100%; margin-left:0; }
  .remote-panel-notice,.remote-panel-dialog .validity-error { margin-inline:16px; }
  .component-versions { margin-inline:16px; }
  .component-versions-scroll { max-height:174px; }
  .remote-panel-groups { padding-inline:16px; }
  .remote-panel-options { grid-template-columns:1fr; }
  .remote-panel-option:nth-child(odd) { border-right:0; }
  .remote-panel-option { padding:11px 12px; }
  .remote-panel-bottom { padding:12px 16px 8px; }
  .remote-panel-actions { width:100%; }
  .remote-panel-actions button { flex:1; }
  .remote-panel-footnote { padding:0 16px 15px; }
}

.history-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.history-scroll{overflow:auto;max-height:55dvh;margin:20px 0}.history-scroll table{min-width:850px}.history-scroll td{overflow-wrap:anywhere;max-width:260px}.history-dialog .dialog-actions{justify-content:flex-end;gap:12px}#login-history-status{min-height:1.5em}

.ui-icon { width:16px; height:16px; display:inline-block; vertical-align:-3px; flex-shrink:0; }
.text-link .ui-icon { width:13px; height:13px; vertical-align:-2px; margin-left:3px; }
.help-icon .ui-icon { width:23px; height:23px; }
.nav-item .nav-chevron { margin-left:auto; width:13px; transition:transform .18s ease; }
#site-logs-tab[aria-expanded="true"] .nav-chevron { transform:rotate(90deg); }
.nav-subnav { margin:2px 0 8px 21px; padding-left:8px; border-left:1px solid var(--line); }
.nav-subnav .nav-item { min-height:36px; font-size:12px; }
.nav-subnav .nav-item.active::before { display:none; }
.site-toolbar { align-items:flex-end; gap:10px; }
.site-toolbar .search-field { min-width:220px; max-width:none; }
.site-toolbar .search-field input { min-height:42px; }
.site-date-filter { display:grid; gap:4px; color:var(--muted); font-size:10px; font-weight:500; }
.site-date-filter input { width:145px; min-height:42px; font-size:12px; padding:9px; color-scheme:dark; }
html[data-theme="light"] .site-date-filter input { color-scheme:light; }
.site-records-scroll { max-height:62dvh; overflow:auto; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.site-log-table { width:100%; min-width:890px; }
.site-log-table th { position:sticky; top:0; background:var(--surface); z-index:1; }
.site-log-table td { vertical-align:top; max-width:270px; overflow-wrap:anywhere; white-space:normal; }
.site-secondary { display:block; color:var(--muted); font-size:10px; line-height:1.6; margin-top:5px; }
.site-session>small,.site-mono { font-family:ui-monospace,Consolas,monospace; font-size:11px; }
.site-actions { display:flex; gap:7px; flex-wrap:wrap; align-items:flex-start; }
.site-log-table .site-actions { display:table-cell; min-width:110px; }
.site-log-table .site-actions a { display:flex; margin-top:7px; justify-content:center; }
.site-error { color:var(--danger); font-size:12px; line-height:1.6; margin:0 0 12px; }
.site-error:empty { display:none; }
.site-coverage { line-height:1.8; max-width:1100px; }
.site-detail-dialog { width:min(1180px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); overflow:auto; }
.site-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
.site-detail-heading h2 { overflow-wrap:anywhere; }
.site-detail-heading button { min-width:36px; min-height:36px; }
.site-detail-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin-bottom:20px; }
.site-detail-fields>div { min-width:0; }
.site-detail-fields dt { color:var(--muted); font-size:10px; margin-bottom:5px; }
.site-detail-fields dd { margin:0; font-size:12px; overflow-wrap:anywhere; line-height:1.6; }
.site-detail-tools { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-bottom:12px; }
.site-detail-dialog .site-records-scroll { max-height:42dvh; }
@media (max-width:1100px) {
  .site-toolbar .search-field { flex-basis:100%; }
}
@media (max-width:760px) {
  .sidebar nav .nav-subnav { display:contents; }
  .sidebar nav .nav-subnav[hidden] { display:none; }
  .nav-subnav .nav-item { border-left:2px solid var(--accent); min-height:36px; }
  .site-log-view .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-toolbar .search-field { min-width:0; }
  .site-toolbar select { flex-basis:100%; }
  .site-date-filter { flex:1; min-width:0; }
  .site-date-filter input { width:100%; min-width:0; }
  .site-log-table { min-width:0; }
  .site-log-table thead { display:none; }
  .site-log-table,.site-log-table tbody,.site-log-table tr,.site-log-table td,.site-log-table .site-actions { display:block; width:100%; max-width:none; }
  .site-log-table tr { padding:8px 0; border-bottom:1px solid var(--line); }
  .site-log-table td { border:0; padding:7px 4px; }
  .site-log-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:4px; font-size:10px; color:var(--muted); }
  .site-log-table .site-actions { display:flex; gap:8px; flex-wrap:wrap; }
  .site-log-table .site-actions::before { flex-basis:100%; }
  .site-log-table .site-actions a { display:inline-flex; margin-top:0; }
  .site-detail-fields { grid-template-columns:1fr; gap:12px; }
  .site-detail-dialog { padding:20px 16px; width:calc(100vw - 20px); }
  .site-records-scroll { max-height:65dvh; }
}
@media (prefers-reduced-motion:reduce) { .nav-chevron { transition:none; } }
@media (max-width:600px) {
  .component-versions table { min-width:0; table-layout:fixed; width:100%; }
  .component-versions th,.component-versions td { white-space:normal; overflow-wrap:anywhere; padding:8px 6px; font-size:10px; }
  .component-versions-scroll { max-height:260px; }
}
