@font-face{font-family:TTChinese;src:url("/assets/fonts/SourceHanSansCN.woff2") format("woff2");font-display:swap;font-weight:250 900}
@font-face{font-family:TTMono;src:url("/assets/fonts/JetBrainsMono.woff2") format("woff2");font-display:swap;font-weight:100 800;unicode-range:U+0020-024F}
:root{color-scheme:dark;--bg:#141815;--surface:#1b201c;--surface2:#222a24;--border:#323d34;--text:#f2f5f2;--muted:#aeb7b0;--faint:#718376;--green:#72d28d;--green-bg:#203f2b;--amber:#e7bd71;--red:#fa8796;--font-ui:Consolas,TTMono,TTChinese,"Microsoft YaHei UI",monospace;--font-input:14px;--font-list:13px;--font-caption:12px;font-family:var(--font-ui);font-size:14px}
*{box-sizing:border-box;font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}body{margin:0;background:var(--bg);color:var(--text);line-height:1.6}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--border);border-radius:7px;background:var(--surface2);padding:9px 16px;color:var(--text);font-weight:500;transition:background .15s,border-color .15s}button:hover{background:#2e3c31;border-color:#5d7864}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:var(--green);color:#102318;border-color:var(--green)}button.primary:hover{background:#91e0a7}button.quiet{background:transparent}.danger{color:var(--red)}.compact{padding:5px 10px;font-size:12px}.icon-button{width:36px;height:36px;font-size:22px;line-height:1;padding:0}.link-button{padding:0;border:0;background:none;color:var(--green);text-align:left}.link-button:hover{background:none;text-decoration:underline}a{color:var(--green);text-decoration:none}input,textarea,select{font-size:var(--font-input);font-weight:400;letter-spacing:normal;word-spacing:normal;color:var(--text);background:#151a16;border:1px solid var(--border);border-radius:6px;padding:10px 12px;width:100%;min-height:43px}input:focus,textarea:focus,select:focus,.select-control:focus{outline:none;box-shadow:none;border-color:var(--green)}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--green)}textarea{resize:vertical;min-height:86px}label{font-size:12px;color:#c5d0c8}.field{display:flex;flex-direction:column;gap:7px}.field .hint{margin:0}.check-field{display:flex;gap:9px;align-items:center}.check-field label{font-size:13px}h1,h2,h3,p{margin-top:0}h1{font-size:26px;font-weight:600;line-height:1.4;margin-bottom:6px;letter-spacing:.3px}h2{font-size:18px;font-weight:550;margin-bottom:16px}h3{font-size:14px;font-weight:550;margin-bottom:12px}.muted,.hint{color:var(--muted)}.hint{font-size:12px}.mono,code,.number{font-family:var(--font-ui);font-variant-numeric:tabular-nums}.mono{font-size:inherit;overflow-wrap:anywhere}.number{font-size:inherit}.eyebrow{color:var(--green);font:10px TTMono,monospace;letter-spacing:1.8px;margin-bottom:9px}.brand-mark{width:48px;height:48px;display:grid;place-items:center;background:var(--green);color:#102819;font:700 32px TTMono,monospace;border-radius:12px;box-shadow:0 0 0 5px #72d28d0b}.brand-mark.small{width:36px;height:36px;font-size:24px;border-radius:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;padding:29px 16px 21px;border-right:1px solid var(--border);background:#191f1a;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;padding:0 11px;color:var(--text);font-size:21px;line-height:1.2;font-weight:600;margin-bottom:45px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:7px;font-weight:400;letter-spacing:2px}.nav-label{padding:0 14px;font-size:10px;letter-spacing:1.8px;color:var(--faint);margin-bottom:12px}.nav-item{display:flex;gap:13px;align-items:center;width:100%;text-align:left;border:1px solid transparent;background:none;color:var(--muted);margin-bottom:5px;padding:12px 14px}.nav-item.active{color:#b4edc5;background:#243a2b;border-color:#3a5541}.nav-group-label{display:flex;align-items:center;gap:10px}.nav-group-toggle .nav-icon{width:18px;height:18px;flex:none;color:var(--green)}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding:18px 12px 0;color:var(--muted);font-size:12px}.sidebar-footer small{display:block;color:var(--faint);font-size:10px}.main-wrap{margin-left:226px}.topbar{min-height:73px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:12px 34px;border-bottom:1px solid var(--border);font-size:12px}.topbar-location{display:flex;align-items:center;min-width:0;white-space:nowrap}.topbar-location #current-location{min-width:0;overflow:hidden;text-overflow:ellipsis}.breadcrumb{color:var(--muted)}.slash{color:var(--faint);margin:0 14px}.account{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}.account #current-user{min-width:0;max-width:min(18vw,240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account #logout{flex:none;white-space:nowrap}.runtime-banner{padding:10px 34px;background:#242b27;border-bottom:1px solid #46514b;color:#c8d2cc;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.runtime-banner.warning{background:#2b2c1e;border-color:#574c2c;color:#dac38b}.runtime-banner.error{background:#342127;border-color:#60333e;color:var(--red)}.runtime-mode{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 8px;border:1px solid #46514b;border-radius:5px;background:#242b27;color:#c8d2cc;font-size:11px;line-height:1.5;white-space:nowrap}.runtime-mode::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}.runtime-mode.success,.runtime-mode.enabled{background:#203729;border-color:#355a42;color:#a4dfb6}.runtime-banner:empty{display:none}main{padding:32px 34px 50px;max-width:1600px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-head>div{min-width:0}.page-head h1{overflow-wrap:anywhere}.page-head p{font-size:12px;margin:7px 0 0;color:var(--muted)}.page-actions,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.panel{background:var(--surface);border:1px solid var(--border);border-radius:9px;margin-bottom:20px;overflow:hidden}.panel-pad{padding:22px}.filter-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--border)}.filter-bar .field{min-width:145px;flex:1}.filter-bar .field.wide{flex:2;min-width:240px}.filter-bar input,.filter-bar select{min-height:38px;padding:8px 10px;font-size:var(--font-input)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:var(--font-list)}th{background:#1e261f;color:var(--muted);font-size:inherit;letter-spacing:normal;font-weight:500;padding:13px 16px;text-align:left;border-bottom:1px solid var(--border)}td{padding:14px 16px;border-bottom:1px solid #2b342d;font-size:inherit;font-weight:400;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#202a22}td .secondary{display:block;color:var(--muted);font-size:var(--font-caption);margin-top:4px}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border:1px solid #3c4740;border-radius:5px;background:#28312a;color:#b9c9bd;font-size:var(--font-caption);white-space:nowrap}.badge:before{content:"";height:5px;width:5px;border-radius:50%;background:currentColor}.badge.good{background:#213b29;border-color:#365a40;color:#85d59b}.badge.warn{background:#3b3320;border-color:#655332;color:var(--amber)}.badge.bad{background:#3b2329;border-color:#633b44;color:var(--red)}.badge.neutral{color:#9caca1}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;border-top:1px solid var(--border);font-size:var(--font-caption);color:var(--muted)}.pagination .actions{gap:12px}.empty{padding:66px 24px;text-align:center;color:var(--muted)}.empty .empty-symbol{margin:auto auto 14px;display:grid;place-items:center;font:24px TTMono;color:#6c8975;border:1px solid var(--border);width:55px;height:55px;border-radius:14px;background:#202a23}.empty h3{font-size:15px;margin:0 0 7px;color:#cad5cd}.empty p{font-size:12px;margin:0}.loading{color:var(--muted);padding:20px 0}.notice{font-size:12px;padding:12px 15px;background:#242b27;border:1px solid #46514b;border-radius:7px;color:#c8d2cc;margin-bottom:18px;white-space:pre-wrap;overflow-wrap:anywhere}.notice.warning{background:#2b2c1e;border-color:#574c2c;color:#dac38b}.notice.error{background:#342127;border-color:#60333e;color:var(--red)}.notice.success{background:#203729;border-color:#355a42;color:#a4dfb6}.form-stack{display:flex;flex-direction:column;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px;padding-top:16px;border-top:1px solid var(--border)}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-head h2{margin:0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.metric{padding:18px 20px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.metric span{font-size:11px;color:var(--muted);display:block}.metric strong{display:block;font:25px TTMono,monospace;margin-top:9px;font-weight:500;color:#dce8df}.metric small{display:block;color:var(--faint);font-size:10px;margin-top:6px}.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 28px;margin:0}.details div{min-width:0}.details dt{font-size:var(--font-caption);color:var(--muted);margin-bottom:4px}.details dd{margin:0;font-size:var(--font-list);overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}.detail-grid .panel{margin-bottom:0}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--border);margin:24px 0 20px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;color:var(--muted);font-size:12px}.tabs button.active{border-color:var(--green);color:var(--green)}.back{margin-bottom:20px}.auth-screen{min-height:100dvh;display:grid;place-content:center;padding:38px 20px;background:radial-gradient(ellipse at 50% 15%,#27392a55,transparent 55%)}.auth-card{background:#1b221d;border:1px solid #3a493d;border-radius:14px;padding:38px;width:min(420px,calc(100vw - 40px));box-shadow:0 24px 80px #0003}.auth-card .brand-mark{margin-bottom:26px}.auth-card h1{font-size:24px}.auth-card>.muted{font-size:12px;margin-bottom:26px}.auth-card .primary{width:100%}.auth-foot{display:flex;justify-content:center;gap:10px;font-size:10px;color:var(--faint);margin-top:26px}.auth-card .auth-tools{display:flex;justify-content:space-between;gap:15px;font-size:12px}.code-input{text-align:center;font-family:TTMono;font-size:22px;letter-spacing:7px}.seed{background:#131b16;border:1px solid var(--border);padding:13px;border-radius:6px;font-size:12px;word-break:break-all;user-select:all}.recovery-codes{display:grid;gap:7px;background:#151c17;padding:15px;border-radius:8px;font:11px TTMono;user-select:all}.auth-card.recovery{width:min(500px,calc(100vw - 40px))}.preview{padding:16px;background:#17241b;border:1px solid #3b5944;border-radius:7px}.preview h3{color:var(--green)}dialog{background:var(--surface);color:var(--text);border:1px solid #4a5b4f;border-radius:12px;padding:0;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-shadow:0 30px 120px #0008}dialog::backdrop{background:#07110bd4;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-head h2{margin:0}#modal-content{padding:23px 25px}#toasts{position:fixed;right:25px;bottom:24px;z-index:10000;display:flex;flex-direction:column;gap:10px;max-width:min(460px,calc(100vw - 40px))}.toast{padding:13px 17px;background:#242b27;border:1px solid #46514b;border-radius:8px;box-shadow:0 10px 30px #0005;color:#c8d2cc;font-size:12px;white-space:pre-wrap}.toast.success{background:#203729;border-color:#355a42;color:#a4dfb6}.toast.warning{background:#2b2c1e;border-color:#574c2c;color:#dac38b}.toast.error{background:#3b252c;border-color:#73424e;color:#ffbbc6}.noscript{padding:20px}.raw-details{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--font-list)/1.7 var(--font-ui);margin:0;color:var(--muted)}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:1100px){.sidebar{width:190px}.main-wrap{margin-left:190px}main{padding:26px 22px}.topbar,.runtime-banner{padding-left:22px;padding-right:22px}.metrics{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}}
@media(max-width:720px){.sidebar{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--border)}.brand{margin-bottom:16px;font-size:18px}.brand small,.nav-label,.sidebar-footer{display:none}#navigation{display:flex;gap:5px;overflow:auto}.nav-item{white-space:nowrap;margin:0;padding:9px 12px;width:auto;font-size:12px}.main-wrap{margin:0}.topbar{min-height:58px;grid-template-columns:44px minmax(0,1fr) auto;gap:4px 8px;padding:8px 16px}.topbar-location{grid-column:2;grid-row:1}.topbar .account{grid-column:3;grid-row:1;gap:8px}.topbar .account #current-user{max-width:min(24vw,110px)}.topbar #logout{min-height:44px}.topbar .runtime-mode{grid-column:2/-1;grid-row:2;justify-self:start}.breadcrumb,.slash{display:none}.runtime-banner{padding:10px 16px}.runtime-banner button{min-height:44px}main{padding:24px 16px}.page-head{align-items:stretch;flex-direction:column}.page-actions{justify-content:flex-start}.page-actions button{flex-shrink:0}.page-head h1{font-size:22px}.form-grid{grid-template-columns:1fr}.filter-bar .field.wide{min-width:100%}.metrics{gap:10px}.metric{padding:16px}.metric strong{font-size:21px}.details{grid-template-columns:1fr}.auth-card{padding:28px}.account{gap:10px}.pagination{flex-wrap:wrap}.detail-grid{gap:15px}}
.choice-set{margin:0;padding:14px;border:1px solid var(--border);border-radius:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.choice-set legend{padding:0 7px;color:var(--muted);font-size:12px}.choice{display:flex;align-items:start;gap:9px;cursor:pointer;overflow-wrap:anywhere}.choice input{flex:none;margin:2px 0 0}.choice small{display:block;font:var(--font-caption)/1.6 var(--font-ui);color:var(--muted);margin-top:3px}.account-form{max-width:460px}.sidebar{overflow-y:auto}.sidebar-footer{margin-top:18px}@media(max-width:720px){.choice-set{grid-template-columns:1fr}}.code-block{white-space:pre-wrap;overflow-wrap:anywhere;background:#0b1210;border:1px solid var(--border);border-radius:8px;padding:14px;max-height:420px;overflow:auto;font:var(--font-list)/1.7 var(--font-ui)}.metric strong{display:block;font:600 26px/1.5 TTMono,monospace}.metric-label{color:var(--muted)}textarea#config-fields{min-height:360px;font-family:var(--font-ui);font-size:var(--font-input)}#config-fields,#recovery-material{overflow-wrap:anywhere}

/* Inline validation and dismissible notices share the admin theme. */
.field-error{margin:0;color:#f0a4a0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{border-color:#cf7772}
input[aria-invalid="true"]:focus,textarea[aria-invalid="true"]:focus,select[aria-invalid="true"]:focus,.select-control[aria-invalid="true"]:focus{outline:none;box-shadow:none;border-color:#cf7772}
.form-messages:empty{display:none}
.form-messages:focus-visible{outline:2px solid #cf7772;outline-offset:4px;border-radius:8px}
.toast{display:flex;align-items:flex-start;gap:12px;overflow-wrap:anywhere}
.toast>span{min-width:0;flex:1}
.toast-dismiss{flex:none;padding:0 3px;border:0;background:transparent;color:inherit;font-size:20px;line-height:20px;min-height:24px;min-width:24px}
.toast-dismiss:hover{background:#ffffff15}
@media(max-width:720px){#toasts{right:16px;bottom:16px;max-width:calc(100vw - 32px)}}

/* Details retain their list beneath a separate dialog; actions use the small dialog. */
body.detail-open{overflow:hidden}
#detail-dialog{width:min(800px,calc(100vw - 48px));height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);overflow:hidden}
#detail-dialog[open]{display:flex;flex-direction:column}
#detail-dialog.wide-detail{width:min(1100px,calc(100vw - 48px))}
.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px 16px;border-bottom:1px solid var(--border);flex:none}
.detail-heading{min-width:0}.detail-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.detail-title-line h2{margin:0;font-size:20px}
#detail-id{font-size:var(--font-list);color:var(--muted);overflow-wrap:anywhere;margin:8px 0 0}
#detail-back{margin-bottom:12px}
.detail-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex:none;max-width:300px}
.detail-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 24px;border-bottom:1px solid var(--border);flex:none}
.detail-actions:empty{display:none}.detail-actions .danger{margin-left:auto}
#detail-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:22px 24px}
#detail-content{min-width:0}#detail-content .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#detail-content .detail-grid{grid-template-columns:1fr}#detail-content .details dd{overflow-wrap:anywhere;min-width:0}
#detail-content .table-wrap{max-width:100%}.detail-target{margin:0 0 16px;font-size:16px;overflow-wrap:anywhere}
.detail-fold{margin-top:14px;border:1px solid var(--border);border-radius:8px;padding:14px}.detail-fold summary{cursor:pointer;color:var(--text)}.detail-fold[open] summary{margin-bottom:12px}
#modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:1}
@media(max-width:720px){#detail-dialog,#detail-dialog.wide-detail{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.detail-header{padding:14px;gap:12px;flex-direction:column}.detail-tools{max-width:none;justify-content:flex-start;width:100%}#detail-close{margin-left:auto}.detail-actions{padding:10px 14px}#detail-scroll{padding:16px 14px}.detail-title-line h2{font-size:18px}#detail-content .metric{padding:12px}#detail-content .metric strong{font-size:20px}}

@media(min-width:1000px){#detail-dialog.wide-detail .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){#detail-dialog,#detail-dialog.wide-detail{max-width:calc(100vw - 16px)}}

/* Shared controls retain semantic inputs but draw their own visible interface. */
:root{scrollbar-color:#516558 #172019;scrollbar-width:thin}
*::-webkit-scrollbar{width:9px;height:9px}*::-webkit-scrollbar-track{background:#172019}*::-webkit-scrollbar-thumb{background:#516558;border:2px solid #172019;border-radius:8px}*::-webkit-scrollbar-thumb:hover{background:#718c79}
input,textarea,button{accent-color:var(--green)}input::selection,textarea::selection{background:#3a6146;color:#edf8ef}
input:disabled,textarea:disabled,.select-control:disabled{opacity:.5;cursor:not-allowed}input:read-only,textarea:read-only{color:var(--muted)}
input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;padding:0;width:18px;height:18px;min-height:18px;flex:none;border-radius:4px;background:#151a16;border:1px solid #647469;cursor:pointer}
input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}input[type=checkbox]:checked::after{content:'';width:5px;height:9px;border:solid #102318;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}input[type=checkbox]:indeterminate::after{content:'';width:9px;height:2px;background:var(--green)}
input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.control-wrap{position:relative;display:flex;align-items:stretch;width:100%;min-width:0;gap:0}.control-wrap>input{min-width:0;flex:1;width:0}
.control-wrap>input[aria-invalid=true]{z-index:1}.control-wrap button:focus-visible{z-index:2}
.select-control{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;min-height:43px;padding:10px 12px;background:#151a16;font-size:var(--font-input);font-weight:400;letter-spacing:normal}.select-caption{min-width:0;overflow-wrap:anywhere}.select-arrow{flex:none;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}.select-control[aria-expanded=true] .select-arrow{transform:translateY(2px) rotate(225deg)}
.select-control[aria-invalid=true]{border-color:#cf7772;outline-color:#cf7772}.filter-bar .select-control{min-height:38px;padding:8px 10px;font-size:var(--font-input)}
.control-popup{position:fixed;z-index:11000;background:#1c251f;color:var(--text);border:1px solid #536b5b;border-radius:9px;box-shadow:0 14px 40px #0008;padding:7px;overflow:auto;overscroll-behavior:contain;max-height:360px}
.select-popup{display:flex;flex-direction:column}.select-search{flex:none;margin-bottom:6px;font-size:var(--font-input);min-height:36px;padding:7px 10px}.select-options{overflow:auto;min-height:0;max-height:290px;overscroll-behavior:contain}.select-option{padding:9px 32px 9px 10px;border-radius:5px;position:relative;cursor:pointer;font-size:var(--font-list);overflow-wrap:anywhere}.select-option.highlighted{background:#2d4334}.select-option[aria-selected=true]{color:var(--green);background:#263b2d}.select-option[aria-selected=true]::after{content:'✓';position:absolute;right:10px;top:9px}.option-empty{font-size:var(--font-list);color:var(--muted);padding:12px;margin:0}
.number-wrap input{border-radius:0;text-align:left}.number-step{padding:0;width:34px;flex:none;background:#202c24;font-size:18px;line-height:1}.number-step:first-child{border-radius:6px 0 0 6px;border-right:0}.number-step:last-child{border-radius:0 6px 6px 0;border-left:0}
.password-wrap input,.datetime-wrap input{border-radius:6px 0 0 6px}.password-toggle,.calendar-toggle{border-radius:0 6px 6px 0;border-left:0;padding:0 11px;flex:none;font-size:12px;background:#202c24}
textarea.auto-grow{resize:none;max-height:360px;overflow:auto}textarea#config-fields.auto-grow{max-height:520px}
.calendar-popup{padding:12px}.calendar-zone{font-size:var(--font-caption);color:var(--muted);margin:0 0 9px}.calendar-heading{display:flex;align-items:center;gap:6px;margin-bottom:10px}.calendar-period{flex:1;background:transparent;border-color:transparent;padding:6px;font-size:13px}.calendar-nav{padding:0;width:30px;height:30px;font-size:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-grid.month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.weekday{text-align:center;color:var(--muted);font-size:var(--font-caption);padding:4px}.calendar-day{padding:5px 0;border-color:transparent;background:transparent;font-size:var(--font-list);min-height:30px}.calendar-day.selected{background:#34503d;border-color:var(--green);color:var(--green)}.calendar-time{display:flex;gap:5px;align-items:center;margin:12px 0;font-size:12px;color:var(--muted)}.calendar-time input{min-width:0;width:42px;min-height:34px;padding:5px;text-align:center}.calendar-time>span:first-child{margin-right:auto}.calendar-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);padding-top:10px}.calendar-footer button:first-child{margin-right:auto}
.custom-tooltip{position:fixed;z-index:12000;pointer-events:none;max-width:min(360px,calc(100vw - 16px));padding:7px 10px;background:#293b30;border:1px solid #587362;border-radius:6px;box-shadow:0 8px 20px #0005;font-size:var(--font-caption);overflow-wrap:anywhere}
.fold-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;background:transparent;padding:0;font-size:13px}.fold-toggle::after{content:'';width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);margin:0 4px 0 12px}.fold-toggle[aria-expanded=true]::after{transform:rotate(45deg)}.fold-toggle[aria-expanded=true]{margin-bottom:12px}
@media(prefers-reduced-motion:reduce){.select-arrow{transition:none}}

.calendar-row{display:contents}

/* The Chinese text font gives password bullets full-width advances. Keep the
   same compact system font when masked or revealed, without changing the value. */
input[type=password],input[data-password=true]{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:14px;font-weight:400;letter-spacing:normal;word-spacing:normal}

/* A password input and its reveal button share one border; focus changes its color. */
.password-wrap{border:1px solid var(--border);border-radius:6px;background:#151a16}
.password-wrap:focus-within{border-color:var(--green)}
.password-wrap>input,.password-wrap>input:focus,.password-wrap>input:focus-visible{border:0;border-radius:5px 0 0 5px;outline:none;box-shadow:none;background:transparent}
.password-wrap>.password-toggle{border:0;border-left:1px solid var(--border);border-radius:0 5px 5px 0;min-width:52px;white-space:nowrap}
.password-wrap>.password-toggle:focus-visible{outline:2px solid var(--green);outline-offset:-4px}
.password-wrap:has(input[aria-invalid=true]){border-color:#cf7772}
.password-wrap:has(input[aria-invalid=true]):focus-within{border-color:#cf7772}
.password-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:9px}
.password-generate{flex:none;font-size:12px}.password-status{font-size:var(--font-caption);color:var(--muted);line-height:1.6}

/* Functional navigation groups and the mobile navigation drawer. */
.nav-group{margin:4px 0 12px}.nav-group-toggle,.nav-children .nav-item{font-size:14px;min-height:36px;line-height:20px}.nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 10px;border:0;background:transparent;color:var(--muted);font-weight:600}.nav-group-toggle[aria-expanded="false"] .nav-chevron{transform:rotate(-90deg)}.nav-children .nav-item{padding:7px 20px 7px 38px;margin-bottom:2px}.nav-children[hidden]{display:none!important}.sidebar{overflow-y:auto}.config-value,.code-block{overflow-wrap:anywhere;white-space:pre-wrap}.nav-backdrop,#nav-toggle{display:none}#auth-description:empty{display:none}
@media(max-width:720px){#nav-toggle{display:inline-flex;grid-column:1;grid-row:1;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;flex-shrink:0}#current-location{font-size:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:min(290px,85vw);height:100dvh;z-index:91;transform:translateX(-100%);transition:transform .15s ease;background:var(--bg,#171d17);padding:24px 16px;visibility:hidden}#navigation{display:block;overflow:visible}.nav-item{width:100%;text-align:left;padding:10px 20px;margin-bottom:3px}.navigation-open .sidebar{transform:none;visibility:visible}.navigation-open .nav-backdrop{display:block;position:fixed;inset:0;z-index:90;border:0;border-radius:0;background:#0008}.navigation-open{overflow:hidden}.sidebar-footer{display:none}}

/* Task filters: stable field rows, a full-width time range, and aligned actions. */
.filter-bar.task-filters{display:block;container:task-filters / inline-size;padding:20px;}
.task-filter-fields{display:grid;grid-template-columns:minmax(260px,2fr) repeat(2,minmax(160px,1fr));gap:16px;align-items:start;}
.task-filter-fields.has-query-status{grid-template-columns:minmax(260px,2fr) repeat(3,minmax(140px,1fr));}
.task-filters .field,.task-filters .field.wide{min-width:0;}
.task-filter-time-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16px;margin-top:18px;}
.task-filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;flex:1 1 560px;min-width:0;}
.task-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto;padding-top:27px;}
.task-filters input,.task-filters .select-control,.task-filter-actions button{height:40px;min-height:40px;}
.task-filters input,.task-filters .select-control{font-size:var(--font-input)}
.task-filter-actions button{font-size:var(--font-caption)}
.task-filter-actions button{padding:8px 14px;white-space:nowrap;}
.task-filters .datetime-wrap{height:40px;}
.task-filters .datetime-control{min-width:0;}
.task-filter-note{margin:12px 0 0;line-height:1.6;}
@container task-filters (max-width:960px){.task-filter-fields,.task-filter-fields.has-query-status{grid-template-columns:repeat(2,minmax(0,1fr));}.task-filter-fields:not(.has-query-status) .field.wide{grid-column:1 / -1;}.task-filter-actions{padding-top:0;margin-left:0;width:100%;}}
@container task-filters (max-width:560px){.task-filter-fields,.task-filter-fields.has-query-status,.task-filter-dates{grid-template-columns:minmax(0,1fr);}.task-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}.task-filter-time-row{margin-top:16px;}.task-filter-fields,.task-filter-dates{gap:14px;}}

/* Tunnel templates, regional weights and explicit preview testing. */
.proxy-policy{display:flex;align-items:center;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.proxy-body{min-width:0}.proxy-config-panel{display:grid;gap:20px}.proxy-list-filter{display:grid;grid-template-columns:minmax(200px,2fr) minmax(140px,1fr) auto;align-items:end;gap:16px;padding:20px}.proxy-list-filter>.hint{margin-bottom:12px}
.proxy-preview-fields{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(140px,1fr) minmax(180px,1.3fr);gap:16px}.proxy-preview-form>.actions{margin-top:18px}.proxy-preview-result:not(:empty),.proxy-test-result:not(:empty){border-top:1px solid var(--border);margin-top:22px;padding-top:18px}
.proxy-copy-value{display:flex;align-items:flex-start;gap:10px;min-width:0}.proxy-copy-value>span{flex:1;min-width:0;overflow-wrap:anywhere}.proxy-copy-value>button{flex:none}.proxy-preview .details>div,.proxy-preview .details dd{min-width:0;overflow-wrap:anywhere}.proxy-success{color:var(--green)}.proxy-failure{color:#e7958d}
.proxy-weight-tools{display:flex;align-items:end;gap:24px;flex-wrap:wrap}.proxy-weight-tools>.field{width:160px}.proxy-weights td .field{min-width:150px;max-width:200px}.proxy-weights td .field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.proxy-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.proxy-editor-grid>.field:last-child:nth-child(odd){grid-column:1/-1}.proxy-mapping{display:grid;gap:12px}.proxy-mapping-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(120px,1.5fr) auto;gap:12px;align-items:end}.proxy-mapping-row>button{margin-bottom:1px;min-height:43px}.proxy-mapping-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
@media(max-width:900px){.proxy-preview-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.proxy-preview-fields>.field:last-child{grid-column:1/-1}}
@media(max-width:560px){.proxy-list-filter,.proxy-preview-fields,.proxy-editor-grid{grid-template-columns:minmax(0,1fr)}.proxy-list-filter>.hint{margin:0}.proxy-mapping-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.proxy-mapping-row>button{grid-column:1/-1;justify-self:end;min-height:32px}.proxy-copy-value{flex-wrap:wrap}.proxy-copy-value>span{flex-basis:100%}}

.proxy-config-panel table td:last-child{min-width:230px}.proxy-config-panel table td:last-child .actions{flex-wrap:nowrap}

/* Shared typography exceptions: date strings and compact row actions. */
input::placeholder,textarea::placeholder{font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:normal;color:#97a59a;opacity:1}
td strong{font-weight:600}td .compact,td .badge{font-size:var(--font-caption)}
input.datetime-control,.filter-bar input.datetime-control,.task-filters input.datetime-control{font-size:var(--font-list);font-variant-numeric:tabular-nums}
.calendar-time input{font-size:var(--font-input);font-variant-numeric:tabular-nums}

/* Focus uses the existing border, never a halo around an input or its wrapper. */
input:focus,input:focus-visible,textarea:focus,textarea:focus-visible,select:focus,select:focus-visible,.select-control:focus,.select-control:focus-visible,.control-wrap:focus-within{outline:none;box-shadow:none}
.control-wrap>.number-step:focus-visible,.control-wrap>.calendar-toggle:focus-visible,.control-wrap>.password-toggle:focus-visible{outline:2px solid var(--green);outline-offset:-4px;box-shadow:none}

/* Audit filters keep common, time and advanced fields on separate rows. */
.audit-filters{display:grid;gap:16px;padding:24px;border-bottom:1px solid var(--border)}
.audit-filter-common{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(200px,1.25fr) repeat(2,minmax(140px,1fr));gap:16px}
.audit-filter-time{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr)) auto;align-items:end;gap:16px}
.audit-filter-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-bottom:2px}
.audit-filter-advanced{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.audit-filter-advanced[hidden]{display:none}
.audit-filters .field{min-width:0;margin:0}
.audit-reason{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audit-raw-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
.select-group{padding:12px 12px 6px;font-size:var(--font-caption);color:var(--muted);font-weight:500;pointer-events:none}
@media(max-width:1200px){.audit-filter-time{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filter-actions{grid-column:1/-1}}
@media(max-width:800px){.audit-filter-common,.audit-filter-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.audit-filters{padding:16px}.audit-filter-common,.audit-filter-time,.audit-filter-advanced{grid-template-columns:minmax(0,1fr)}}

.key-content{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;align-items:center;gap:6px;width:310px;max-width:310px}
.key-content-value{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-all;letter-spacing:0;font-size:var(--font-list);line-height:1.65}
.key-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:6px}
.key-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Both rows share the same columns, including the space reserved for actions. */
.key-filters{grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:16px 20px}
.key-filters>.form-messages{grid-column:1/-1}
.key-filters>.form-messages:empty{display:none}
.key-filter-common,.key-filter-time{display:contents}
.key-filter-common>.field:first-child,.key-filter-time>.field:first-child{grid-column:1}
.key-filter-common>.field:nth-child(2),.key-filter-time>.field:nth-child(2){grid-column:2}
.key-filter-actions{grid-column:3;display:flex;align-items:center;gap:10px}
@media(max-width:1000px){.key-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.key-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:560px){.key-filters{grid-template-columns:minmax(0,1fr)}.key-filter-common>.field:nth-child(2),.key-filter-time>.field:nth-child(2){grid-column:1}.key-filter-actions{justify-content:flex-start}}


/* Shared pagination: compact controls, independent responsive groups. */
.pagination{flex-wrap:wrap;font-size:13px;gap:12px 20px;padding:16px 20px}
.pagination-summary,.pagination-navigation,.page-navigation,.page-jump{display:flex;align-items:center;gap:8px}
.pagination-summary{gap:10px}.pagination-navigation{margin-left:auto;gap:16px;flex-wrap:wrap}
.pagination button,.pagination input{height:32px;min-height:32px;font-size:13px;padding:4px 10px;line-height:22px}
.pagination .select-wrap{width:86px}.pagination .select-control{width:100%;min-width:0}
.pagination .page-jump-input{width:60px;text-align:center;box-shadow:none;outline:none}
.page-position{min-width:84px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.page-jump{position:relative;flex-wrap:wrap}.page-jump .field-error{order:5;width:100%;margin:0}
.pagination-feedback{width:100%;font-size:12px}.pagination-feedback.error{color:var(--red)}
@media(max-width:1000px){.pagination-navigation{width:100%;margin-left:0;justify-content:space-between}}
@media(max-width:480px){.pagination{padding:14px 12px}.pagination-navigation{gap:12px}.page-navigation{width:100%;justify-content:space-between}.page-jump{margin-left:auto}}

.configuration-status-head{justify-content:space-between;align-items:center}.configuration-status-head h2{margin:0}

/* Configuration reports: keep identifiers and historical instances out of a wide table. */
#modal[open]:has(.configuration-report){display:flex;flex-direction:column;width:min(680px,calc(100vw - 32px));max-height:min(640px,calc(100dvh - 32px));overflow:hidden}
#modal:has(.configuration-report) .modal-head{flex:none}
#modal:has(.configuration-report) #modal-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#495b4d transparent}
.configuration-report{display:grid;gap:22px;min-width:0}
.configuration-report-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--border)}
.configuration-report-summary strong{display:block;margin-top:4px;font-size:22px;font-weight:550;line-height:1.3}
.configuration-current h3{margin-bottom:10px}.configuration-current>p{margin:0}
.configuration-node-list{display:grid;gap:10px;min-width:0}
.configuration-node{min-width:0;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}
.configuration-node-head,.configuration-node-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.configuration-node-id{min-width:0;overflow-wrap:anywhere;font-size:13px}
.configuration-report .badge{flex:none;white-space:nowrap}
.configuration-node-versions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.configuration-node-versions dt{font-size:12px;color:var(--muted)}.configuration-node-versions dd{margin:2px 0 0;font-size:14px;font-variant-numeric:tabular-nums}
.configuration-node-foot{padding-top:10px;border-top:1px solid var(--border);flex-wrap:wrap;color:var(--muted);font-size:12px}
.configuration-node-foot button{padding:2px 6px;min-height:28px}
.configuration-history{border-top:1px solid var(--border);padding-top:12px}
.configuration-history-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:6px 0;border:0;color:var(--muted);font-size:13px}
.configuration-history-toggle:hover{background:transparent;color:var(--text)}
.configuration-chevron{font-size:20px;line-height:1;transition:transform .15s}.configuration-history-toggle[aria-expanded=true] .configuration-chevron{transform:rotate(90deg)}
.configuration-history .configuration-node-list{margin-top:12px}
@media(max-width:480px){#modal:has(.configuration-report) #modal-content{padding:16px}.configuration-report{gap:18px}.configuration-node{padding:12px}}

.credit-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:16px;align-items:end}.credit-filter-grid>button{justify-self:start}@media(max-width:600px){.credit-filter-grid{grid-template-columns:minmax(0,1fr)}}

#modal:has(.credit-history){width:min(1100px,calc(100vw - 32px))}

/* Configuration help is opened deliberately; input focus has no glow. */
.setting-label{display:flex;align-items:center;gap:6px;min-width:0}.setting-label>label{min-width:0;overflow-wrap:anywhere}.setting-help-wrap{display:inline-flex;width:auto;flex:none;vertical-align:middle}.setting-help-button{position:relative;display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:12px;line-height:1;flex:none}.setting-help-button::before{content:'';position:absolute;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;pointer-events:none}.setting-help-button:hover,.setting-help-button[aria-expanded=true]{background:var(--surface2);color:var(--green)}.setting-help-popup{position:fixed;z-index:12000;background:var(--surface2);border:1px solid #4a5b4f;border-radius:8px;box-shadow:0 12px 32px #0005;padding:16px;overflow:auto;font-size:var(--font-caption);line-height:1.8;white-space:normal;overflow-wrap:anywhere}.setting-help-popup:focus{outline:none}.setting-help-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}.setting-help-head h3{flex:1;margin:0;font-size:13px;line-height:1.6}.setting-help-close{width:24px;height:24px;min-height:24px;flex:none;padding:0;font-size:18px;line-height:1}.setting-help-popup p{margin:0;white-space:pre-line}.setting-help-popup .setting-help-effect{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);color:var(--muted)}.configuration-values{display:grid;gap:0;margin:0}.configuration-value{padding:14px 0;border-bottom:1px solid var(--border);min-width:0}.configuration-value:first-child{padding-top:0}.configuration-value:last-child{border-bottom:0}.configuration-value dt{font-size:var(--font-caption);color:var(--muted);margin-bottom:6px}.configuration-value dd{margin:0;font-size:var(--font-list);overflow-wrap:anywhere;white-space:pre-wrap}.configuration-value .code-block{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

.setting-group{min-inline-size:0;margin:0;padding:0;border:0}


/* Execution settings keep navigation and saving visible while each tab scrolls. */
html:has(#modal[open] .execution-editor),body:has(#modal[open] .execution-editor){overflow:hidden;overscroll-behavior:none}
#modal[open]:has(.execution-editor){display:flex;flex-direction:column;width:min(920px,calc(100vw - 48px));height:min(880px,calc(var(--execution-viewport-height,100dvh) - 48px));max-width:calc(100vw - 48px);max-height:calc(var(--execution-viewport-height,100dvh) - 48px);overflow:hidden;container:execution-dialog / size}
#modal:has(.execution-editor) .modal-head{flex:none;min-width:0;padding:18px 24px;gap:16px}
#modal:has(.execution-editor) .modal-head h2{min-width:0;overflow-wrap:anywhere}
#modal:has(.execution-editor) #modal-close{flex:none}
#modal:has(.execution-editor) #modal-content{display:flex;flex:1;min-width:0;min-height:0;padding:0;overflow:hidden}
#modal:has(.execution-editor) .execution-editor{display:flex;flex:1;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;gap:0;margin:0;overflow:hidden}
.execution-editor .execution-overview{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;min-width:0;padding:14px 24px;background:#1e2821;border-bottom:1px solid var(--border)}
.execution-editor .execution-overview>div{min-width:0}
.execution-editor .execution-overview>.field{flex:0 1 240px}
.execution-editor .execution-state{display:flex;flex:1;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px}
.execution-editor>.form-messages{flex:none;min-height:0;max-height:88px;margin:0;padding:10px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.execution-editor>.form-messages:empty{display:none}
.execution-editor>.form-messages .notice{margin:0;padding:8px 12px}
.execution-editor .execution-panel-intro{margin:0 0 20px;line-height:1.7}
.execution-editor .execution-overview .hint{font-size:12px}
.execution-editor .execution-tabs[role=tablist]{display:flex;flex:none;flex-wrap:nowrap;gap:4px;min-width:0;margin:0;padding:0 20px;border-bottom:1px solid var(--border);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:20px;scrollbar-width:thin;scrollbar-color:#495b4d transparent}
.execution-editor .execution-tabs button[role=tab]{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:10px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:13px;white-space:nowrap;transition:background .15s}
.execution-editor .execution-tabs button[role=tab]:hover{background:#26342a;color:var(--text)}
.execution-editor .execution-tabs button[role=tab].active,.execution-editor .execution-tabs button[role=tab][aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}
.execution-editor .execution-dirty-dot{display:block;flex:none;width:5px;height:5px;border-radius:50%;background:var(--amber)}
.execution-editor .execution-tabs button[role=tab]:focus-visible{outline-offset:-5px}
.execution-editor .execution-panels{display:flex;flex:1;min-width:0;min-height:0;overflow:hidden}
.execution-editor .execution-panel[role=tabpanel]{flex:1;min-width:0;min-height:0;width:100%;padding:22px 24px 28px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#495b4d transparent;scroll-padding-block:18px}
.execution-editor .execution-panel[role=tabpanel]:focus-visible{outline-offset:-3px}
.execution-editor .execution-section{min-width:0;margin:0 0 24px;padding:0 0 24px;border:0;border-bottom:1px solid var(--border)}
.execution-editor .execution-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.execution-editor .execution-section>h3{margin:0 0 5px;font-size:14px;font-weight:550}
.execution-editor .execution-section>p,.execution-editor .execution-section>.hint{margin:0 0 16px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.execution-editor .execution-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;min-width:0;align-items:start}
.execution-editor .execution-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;align-items:start}
.execution-editor .execution-fields>.execution-pair,.execution-editor .execution-fields>.execution-rows,.execution-editor .execution-fields>.wide{grid-column:1/-1;min-width:0}
.execution-editor fieldset.execution-fields{min-inline-size:0;margin:0;padding:0;border:0}
.execution-editor .execution-defaults{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:#171e19}
.execution-editor .execution-defaults dt{font-size:12px;line-height:1.6}
.execution-editor .execution-defaults dd{font-size:14px;color:var(--text);font-variant-numeric:tabular-nums}
.execution-editor .field,.execution-editor .control-wrap,.execution-editor .select-wrap{min-width:0;max-width:100%}
.execution-editor .field>label,.execution-editor .hint{overflow-wrap:anywhere}
.execution-editor input,.execution-editor textarea,.execution-editor select,.execution-editor .select-control{max-width:100%;min-width:0}
.execution-editor .notice{margin:0 0 16px}
.execution-editor .execution-rows{display:flex;flex-direction:column;gap:12px;min-width:0}
.execution-editor .execution-row{display:flex;align-items:flex-end;gap:12px;min-width:0;padding:14px;border:1px solid var(--border);border-radius:8px;background:#171e19}
.execution-editor .execution-row-label{flex:0 1 130px;min-width:0;align-self:center;font-size:13px;overflow-wrap:anywhere}
.execution-editor .execution-row-fields{display:grid;flex:1;grid-template-columns:repeat(var(--execution-row-columns,3),minmax(0,1fr));align-items:start;gap:12px;min-width:0}
.execution-editor .execution-row>button{flex:none;min-height:43px}
.execution-editor .execution-limit-row .execution-row-fields{grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr))}
.execution-editor .execution-footer{display:grid;flex:none;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 10px;min-width:0;padding:12px 24px 16px;border-top:1px solid var(--border);background:var(--surface);box-shadow:0 -8px 20px #0001}
.execution-editor .execution-footer>.execution-footer-actions{display:contents}
.execution-editor .execution-footer-note{grid-column:1/-1;grid-row:1;min-width:0;margin:0;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.execution-editor .execution-footer>.execution-footer-actions>button{grid-row:2;min-height:43px;white-space:nowrap}
.execution-editor .execution-footer>.execution-footer-actions>button:first-of-type{grid-column:2}
.execution-editor .execution-footer>.execution-footer-actions>button:last-of-type{grid-column:3}
.execution-editor .execution-reason{grid-column:1;grid-row:2;min-width:0;margin:0;color:var(--muted);font-size:12px}
.execution-editor .execution-reason>summary{width:fit-content;max-width:100%;padding:8px 0;cursor:pointer;overflow-wrap:anywhere}
.execution-editor .execution-reason[open]{grid-column:1/-1;grid-row:3}
.execution-editor .execution-reason[open]>summary{float:left;width:160px;margin:0 12px 0 0}
.execution-editor .execution-reason[open]>.field{min-height:44px;margin-left:172px;justify-content:center}
.execution-editor .execution-reason[open]::after{content:'';display:table;clear:both}
.execution-editor .execution-reason .field>label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.execution-editor .execution-reason .field{gap:5px}
.execution-editor .execution-discard{display:grid;grid-column:1/-1;gap:12px;min-width:0}
.execution-editor .execution-discard>p{margin:0;font-size:13px;color:var(--amber);overflow-wrap:anywhere}
.execution-editor .execution-discard>.execution-footer-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.execution-editor .execution-discard button{min-height:44px}
.execution-editor .execution-footer:has(>.execution-discard:not([hidden]))>:not(.execution-discard){display:none}
@media(max-width:720px){
  #modal[open]:has(.execution-editor){position:fixed;inset:var(--execution-viewport-top,0px) 0 auto;margin:0;width:100%;max-width:100%;height:var(--execution-viewport-height,100dvh);max-height:var(--execution-viewport-height,100dvh);border:0;border-radius:0}
  #modal:has(.execution-editor) .modal-head{min-height:64px;padding:calc(8px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));gap:12px}
  #modal:has(.execution-editor) .modal-head h2{font-size:18px;line-height:1.35}
  #modal:has(.execution-editor) #modal-close{width:44px;height:44px;min-height:44px}
  #modal:has(.execution-editor) .setting-help-close{width:44px;height:44px;min-height:44px}
  #modal:has(.execution-editor) .select-search{font-size:16px;min-height:44px}
  #modal:has(.execution-editor) .select-option{display:flex;align-items:center;min-height:44px;font-size:16px}
  .execution-editor button{min-height:44px}
  .execution-editor .execution-overview{gap:6px 12px;padding:8px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px))}
  .execution-editor .execution-overview>.field{flex:0 1 152px}
  .execution-editor .execution-state{flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
  .execution-editor .execution-state .hint{font-size:11px;line-height:1.5}
  .execution-editor>.form-messages{max-height:76px;padding:8px 16px}
  .execution-editor .execution-panel-intro{margin-bottom:16px}
  .execution-editor .execution-tabs[role=tablist]{gap:0;padding:0 max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));scroll-padding-inline:8px}
  .execution-editor .execution-tabs button[role=tab]{min-height:46px;padding:10px 12px}
  .execution-editor .execution-panel[role=tabpanel]{padding:18px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px));scrollbar-gutter:auto}
  .execution-editor .execution-section{margin-bottom:20px;padding-bottom:20px}
  .execution-editor .execution-fields{grid-template-columns:minmax(0,1fr);gap:16px}
  .execution-editor .execution-pair{grid-template-columns:minmax(0,1fr);gap:14px}
  .execution-editor .execution-fields>.execution-pair,.execution-editor .execution-fields>.execution-rows,.execution-editor .execution-fields>.wide{grid-column:auto}
  .execution-editor input,.execution-editor textarea,.execution-editor select,.execution-editor .select-control{font-size:16px;min-height:44px}
  .execution-editor .field{gap:6px}
  .execution-editor .setting-label{min-height:32px;gap:4px}
  .execution-editor .setting-help-button{width:44px;height:44px;min-height:44px;margin-block:-6px}
  .execution-editor .number-step{width:44px;min-height:44px}
  .execution-editor .execution-row{flex-direction:column;align-items:stretch;gap:12px;padding:12px}
  .execution-editor .execution-row-label{flex:none;align-self:stretch}
  .execution-editor .execution-row-fields,.execution-editor .execution-limit-row .execution-row-fields{flex:none;grid-template-columns:minmax(0,1fr);width:100%;gap:14px}
  .execution-editor .execution-row>button{align-self:flex-end;min-width:44px;min-height:44px}
  .execution-editor .execution-defaults{gap:12px;padding:12px}
  .execution-editor .execution-footer{gap:6px 8px;padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
  .execution-editor .execution-footer>.execution-footer-actions>button{min-height:44px;padding-inline:12px}
  .execution-editor .execution-reason>summary{display:list-item;min-height:44px;padding:8px 0;line-height:20px}
  .execution-editor .execution-reason[open]>summary{width:120px;margin-bottom:0}
  .execution-editor .execution-reason[open]>.field{margin-left:132px}
  .execution-editor .execution-discard{gap:8px}

}
/* This follows the actual dialog height, including a mobile keyboard resize. */
@container execution-dialog (max-height:560px){
  #modal:has(.execution-editor) .modal-head{min-height:52px;padding-top:max(4px,env(safe-area-inset-top,0px));padding-bottom:4px}
  .execution-editor .execution-overview{padding-top:4px;padding-bottom:4px;gap:4px 10px;flex-wrap:nowrap}
  .execution-editor .execution-overview>.field{flex:1;flex-direction:row;align-items:center;gap:6px;max-width:360px}
  .execution-editor .execution-overview .setting-label{order:2;flex:none}
  .execution-editor .execution-overview .setting-label>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .execution-editor .execution-overview .select-wrap{flex:1;min-width:0}
  .execution-editor .execution-state{flex:none}
  .execution-editor .execution-state>.hint{display:none}
  .execution-editor .execution-state .badge{padding-inline:6px;font-size:11px}
  .execution-editor .execution-tabs button[role=tab]{min-height:44px;padding-top:8px;padding-bottom:8px}
  .execution-editor .execution-panel[role=tabpanel]{padding-top:10px;padding-bottom:10px}
  .execution-editor .execution-section{margin-bottom:16px;padding-bottom:16px}
  .execution-editor>.form-messages{max-height:40px;padding-top:4px;padding-bottom:4px}
  .execution-editor .execution-panel-intro{margin-bottom:12px}
  .execution-editor .execution-footer{gap:4px 8px;padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom,0px))}
  .execution-editor .execution-footer-note{font-size:11px;line-height:1.4}
  .execution-editor .execution-reason>summary{min-height:44px;padding:8px 0;line-height:20px}

}

/* Follow observations use the same layout on overview and Session details. */
.follow-statistics{min-width:0}
.follow-stat-tabs{display:flex;gap:6px;flex-wrap:wrap}
.follow-stat-tabs [aria-selected="true"]{background:var(--green);color:#102318}
.follow-stat-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0}
.follow-stat-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-top:24px}
.follow-stat-chart{min-width:0;border:1px solid var(--border);border-radius:12px;padding:18px 12px 12px;background:linear-gradient(180deg,#ffffff02,transparent)}
.follow-stat-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 6px}
.follow-stat-heading h3{font-size:14px;font-weight:500;margin:0}
.follow-stat-unit{flex:none;font-size:11px;color:var(--muted)}
.follow-stat-plot{width:100%;height:236px;margin-top:12px;border-radius:6px}
.follow-stat-plot:focus-visible{outline:2px solid #88b8f8;outline-offset:2px}
.follow-stat-readout{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.follow-stat-caption{font-size:11px;color:var(--muted);margin:8px 6px 0;min-height:18px}
.follow-stat-empty{height:274px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:12px}
.follow-stat-empty strong{font-size:14px;font-weight:400;color:var(--text)}
.follow-stat-explanation{margin-top:16px}.follow-stat-explanation summary{cursor:pointer}
.follow-stat-content[aria-busy="true"]{opacity:.65;min-height:80px}
.follow-statistics .page-actions{flex-wrap:wrap}.follow-statistics .metric strong{overflow-wrap:anywhere}
@media(max-width:600px){.follow-stat-metrics{grid-template-columns:1fr}.follow-stat-tabs{width:100%}.follow-stat-tabs button{flex:1;min-height:44px}.follow-statistics .metric{padding:14px}.follow-stat-charts{gap:12px;margin-top:18px}.follow-stat-chart{padding:16px 8px 10px}.follow-stat-plot{height:220px}.follow-stat-empty{height:258px}}

.account-maintenance-editor{min-width:0}.account-maintenance-editor .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:4px}.account-maintenance-editor .tabs button{flex:none;white-space:nowrap;min-height:44px;padding:10px 14px;font-size:14px}.maintenance-panels{min-width:0;padding-block:16px}.maintenance-panels [hidden]{display:none}.maintenance-panels .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.maintenance-panels .field{min-width:0}@media(max-width:720px){.maintenance-panels .form-grid{grid-template-columns:minmax(0,1fr)}.account-maintenance-editor .page-actions button{width:100%}}

/* TOTP enrollment: local SVG with a four-module white quiet zone. */
.totp-enrollment>.hint{margin:0}.totp-qr{display:block;width:244px;max-width:100%;height:auto;aspect-ratio:1;margin-inline:auto;background:#fff}.totp-manual{font-size:12px;min-width:0}.totp-manual summary{cursor:pointer;color:var(--muted);padding:5px 0}.totp-manual summary:hover{color:var(--text)}.totp-manual summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.totp-manual>.form-stack{margin-top:12px;gap:12px}.totp-manual .hint{margin:0}
