*{box-sizing:border-box}
 [hidden]{display:none!important}
 :root{--bg:#f6f7f9;--paper:#fff;--ink:#202e43;--muted:#64748b;--line:#e6eaf0;--blue:#3459d1;--blue-bg:#edf2ff;--green:#12765a;--red:#b34545;--amber:#a66c16}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:8px 13px;white-space:nowrap}
button:hover{background:#f1f4fa;border-color:#c5cfdf}
button:disabled{cursor:wait;opacity:.5}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.primary{background:var(--blue);border-color:var(--blue);color:white;font-weight:600}
.primary:hover{background:#284ac9;color:white}
.quiet{background:transparent}
.small{padding:7px 12px}
.danger{color:var(--red);border-color:#edcccc}
.app{display:flex;min-height:100vh}
.sidebar{width:236px;flex-shrink:0;position:fixed;inset:0 auto 0 0;padding:28px 17px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}
.brand{font-size:29px;letter-spacing:-1.3px;font-weight:750;color:var(--ink);padding:0 15px}
.brand span{display:block;font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:500;margin-top:0}
.nav-caption{font-size:10px;letter-spacing:1px;color:#97a0ae;margin:35px 15px 15px}
nav{display:grid;gap:5px}
nav button{border:0;text-align:left;background:transparent;padding:10px 15px;color:#647184;display:flex;align-items:center;gap:12px}
nav button.active{background:var(--blue-bg);color:var(--blue);font-weight:650}
nav .nav-icon{width:21px;font-size:16px;text-align:center}
.sidebar-bottom{margin-top:auto;font-size:11px;color:var(--muted);padding:25px 13px 0}
.sidebar-bottom p{margin:6px 0 14px}
.live-dot{display:inline-block;width:6px;height:6px;background:#2a9b77;border-radius:50%;margin-right:6px}
.main{margin-left:236px;width:calc(100% - 236px);min-width:0}
.topbar{height:68px;background:#ffffffc9;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;gap:15px}
.crumb{font-size:12px;color:var(--muted)}
.crumb span{margin:0 14px;color:#b2bac6}
.crumb b{font-weight:500;color:var(--ink)}
.top-actions{display:flex;align-items:center;gap:9px;font-size:12px}
.top-actions button{border:0;font-size:12px}
main{max-width:1680px;margin:auto;padding:36px 40px 24px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}
.eyebrow{color:var(--muted);font-size:10px;letter-spacing:1.8px;font-weight:600}
h1{font-size:28px;letter-spacing:-.7px;margin:5px 0 7px;font-weight:650}
h2{font-size:16px;font-weight:650;margin:0}
h3{font-size:14px;margin:0 0 10px}
p{margin:6px 0 14px}
.page-heading p{margin:0;font-size:12px;color:var(--muted)}
.rate{font-size:11px;border:1px solid var(--line);background:white;border-radius:30px;padding:6px 12px;white-space:nowrap;color:#5d6a7c}
.filter-bar,.toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.filter-bar{padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:white;margin-bottom:24px}
.filter-bar label{font-size:10px;color:var(--muted);gap:4px;min-width:130px}
.filter-bar input,.filter-bar select{padding:6px 9px;min-height:34px;font-size:12px;background:#fafbfd}
.filter-bar .subtle{margin:auto 0 auto auto;font-size:10px}
.date-to{margin-bottom:8px;color:var(--muted)}
label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#4c5c70}
input,select,textarea{border:1px solid #dce2eb;border-radius:6px;background:white;padding:9px 11px;min-width:0;width:100%;color:var(--ink)}
input:focus,textarea:focus,select:focus{border-color:#8ba2ef;outline:2px solid #e8eeff}
textarea{resize:vertical}
small,.subtle{font-size:11px;color:var(--muted)}
.toolbar{margin-bottom:18px;gap:10px}
.toolbar input{width:250px}
.toolbar select{width:auto;max-width:220px}
.toolbar .push{margin-left:auto}
.panel{border:1px solid var(--line);background:white;border-radius:10px;margin-bottom:22px;overflow:hidden}
.panel-head{padding:18px 20px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--line)}
.panel-head p{color:var(--muted);font-size:11px;margin:3px 0 0}
.panel-body{padding:20px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.metric{border:1px solid var(--line);border-radius:10px;background:white;padding:18px 20px;min-width:0}
.metric.emphasis{background:#192c4b;color:white;border-color:#192c4b}
.metric .label{font-size:11px;color:var(--muted)}
.metric.emphasis .label,.metric.emphasis .metric-note{color:#a4b4d0}
.metric-value{font-size:26px;letter-spacing:-.9px;font-weight:650;font-variant-numeric:tabular-nums;margin:8px 0 2px;overflow-wrap:anywhere}
.metric-value small{font-size:11px;font-weight:400;letter-spacing:0;margin-left:6px}
.metric-note{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.split{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}
.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.summary-grid .metric{padding:12px;border:0;background:#f8fafc}
.summary-grid .metric-value{font-size:20px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
th{font-weight:550;background:#f8fafc;color:#66768b;font-size:11px;letter-spacing:.3px;white-space:nowrap}
td,th{padding:13px 17px;border-bottom:1px solid #edf0f4;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fbfcff}
td{max-width:340px;overflow-wrap:anywhere}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cell-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;overflow-wrap:anywhere}
.actions{display:flex;gap:5px;align-items:center}
.actions button{font-size:11px;padding:5px 9px}
.badge{display:inline-block;padding:2px 7px;font-size:10px;border-radius:4px;background:#f0f2f5;color:#6e7a8d;white-space:nowrap;margin:2px 4px 2px 0}
.badge.green{background:#eaf6f0;color:var(--green)}
.badge.blue{background:var(--blue-bg);color:var(--blue)}
.badge.red{background:#fceeee;color:var(--red)}
.badge.amber{background:#fff5e2;color:var(--amber)}
.pager{padding:12px 17px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);gap:10px}
.pager div{display:flex;gap:7px;align-items:center}
.pager button{font-size:11px;padding:4px 10px}
.empty{padding:40px;text-align:center;color:var(--muted)}
.warning,.info{border-radius:7px;padding:12px 15px;font-size:11px;margin-bottom:18px;line-height:1.8}
.warning{background:#fff7e8;border:1px solid #f1e3c7;color:#8c692b}
.info{background:#f0f4ff;border:1px solid #dde5fb;color:#566b9b}
.error{color:var(--red)}
.error-box{border:1px solid #edcccc;background:#fff5f5;border-radius:9px;padding:22px}
.error-box button{margin-top:10px}
.trend{height:185px;display:flex;align-items:stretch;gap:13px;padding:10px 0 0}
.trend-column{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;gap:7px;font-size:10px;color:var(--muted)}
.trend-bar{width:100%;max-width:42px;background:#dce5ff;border-radius:4px 4px 0 0;min-height:2px}
.trend-column:last-child .trend-bar{background:var(--blue)}
.trend-value{color:#556680;font-size:10px;white-space:nowrap}
.trend-date{font-size:10px;white-space:nowrap}
.key-values{display:grid;grid-template-columns:160px minmax(0,1fr);margin:0}
.key-values dt,.key-values dd{padding:10px 0;border-bottom:1px solid #edf0f4;margin:0;font-size:12px;overflow-wrap:anywhere}
.key-values dt{color:var(--muted)}
pre{background:#f6f8fb;border:1px solid var(--line);border-radius:7px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:420px;overflow:auto}
dialog{border:1px solid var(--line);border-radius:12px;width:min(880px,calc(100% - 32px));max-height:90vh;padding:0;color:var(--ink);box-shadow:0 24px 100px #10264833}
dialog::backdrop{background:#16243c6b}
.dialog-header{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;z-index:2}
.dialog-header h2{margin-top:4px}
#dialog-body{padding:23px 24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.wide{grid-column:1/-1}
.form-section{grid-column:1/-1;border-top:1px solid var(--line);padding-top:19px;margin-top:7px;font-size:12px;font-weight:650}
.check{display:flex;flex-direction:row;align-items:center;gap:8px}
.check input{width:15px;height:15px;margin:0}
.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}
.tabs{display:flex;gap:5px;margin-bottom:18px}
.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);background:transparent}
.tabs button.active{border-color:var(--blue);color:var(--blue)}
.loading{padding:55px;text-align:center;color:var(--muted)}
footer{display:flex;justify-content:space-between;gap:20px;color:#9aa4b2;font-size:10px;margin:35px 0 0}
#toast{position:fixed;right:25px;bottom:25px;z-index:10;border:1px solid #dce2ed;box-shadow:0 6px 25px #18253714;background:#fff;border-radius:8px;padding:13px 20px;max-width:min(450px,90vw);font-size:12px}
.login{min-height:100vh;display:grid;place-content:center;padding:30px;background:radial-gradient(ellipse at 50% 0,#e8eefc,transparent 55%),#f5f6f8}
.login-brand{text-align:center;font-size:38px;letter-spacing:-2px;font-weight:750;margin-bottom:30px}
.login-brand span{display:block;font-size:9px;letter-spacing:3px;color:var(--muted);font-weight:500}
.login-card{width:min(410px,calc(100vw - 40px));border:1px solid var(--line);border-radius:12px;background:white;padding:32px;box-shadow:0 20px 55px #213a7110}
.login-card h1{font-size:23px}
.login-card p{font-size:11px;color:var(--muted)}
.login-card label{margin-top:17px}
.login-card .primary{width:100%;margin:23px 0 12px}
.login-card a{font-size:12px}
.login-card .error{color:var(--red);margin-bottom:0}
.login-foot{text-align:center;margin-top:25px;font-size:10px;color:#929dad}
.pricing-preview{font-size:11px;color:var(--blue);background:#f3f6ff;padding:10px;border-radius:5px}
.inline-title{display:flex;gap:10px;align-items:center}
.status-list{display:grid;gap:11px}
.status-row{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:10px}
.status-row:last-child{border:0}
.row-link{border:0;color:var(--blue);padding:0;background:transparent;font-size:12px}
.legend{display:flex;gap:12px;color:var(--muted);font-size:11px;margin-top:12px}
.skeleton{height:5px;background:linear-gradient(90deg,#dce5ff,#365de5,#dce5ff);border-radius:5px;margin-bottom:25px}

/* D046 · restrained business surfaces. No external fonts or runtime dependencies. */
:root {
  --ease-out:cubic-bezier(.22,1,.36,1);
  --ease-standard:cubic-bezier(.2,.7,.2,1);
  --fast:140ms;
  --normal:220ms;
  --shadow:0 1px 2px #172b4d04,0 3px 12px #172b4d03;
}
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button { min-height:34px; transition:background-color var(--fast),border-color var(--fast),color var(--fast),box-shadow var(--fast),transform var(--fast); }
button:active:not(:disabled) { transform:translateY(1px); }
button:disabled { cursor:not-allowed; }
button:focus-visible,a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
button.primary { box-shadow:0 1px 2px #233f9b18,inset 0 1px 0 #ffffff16; }
button.primary:hover { box-shadow:0 3px 9px #3459d126; }
input,select,textarea { transition:border-color var(--fast),box-shadow var(--fast),background-color var(--fast); }
input:focus,select:focus,textarea:focus { outline:none; border-color:#7d98e3; box-shadow:0 0 0 3px #3459d110; }
input[type=checkbox] { accent-color:var(--blue); }
.sidebar { padding:31px 15px 22px; }
.brand { display:flex; gap:11px; align-items:center; padding:0 10px; text-decoration:none!important; }
.brand .brand-mark { display:grid; place-items:center; flex:none; width:34px; height:36px; border-radius:9px; background:#203451; color:white; box-shadow:inset 0 0 0 1px #ffffff0d; }
.brand-mark svg { width:24px; height:24px; }
.brand .brand-copy { font-size:25px; font-weight:730; letter-spacing:-.9px; line-height:1.3; color:var(--ink); }
.brand-copy small { display:block; color:var(--muted); font-weight:500; font-size:8px; letter-spacing:1px; margin-top:4px; }
.nav-caption { display:flex; justify-content:space-between; font-size:9px; font-weight:600; letter-spacing:1.1px; margin:37px 13px 12px; color:#8290a3; }
.nav-caption span { font-size:10px; font-weight:400; letter-spacing:0; }
nav { position:relative; gap:5px; isolation:isolate; }
nav button { position:relative; min-height:44px; padding:11px 13px; gap:12px; font-size:12px; border:1px solid transparent; border-radius:7px; color:#56657a; }
nav button:hover { background:#f5f7fa; }
nav button.active { background:transparent; color:#3459d1; font-weight:650; }
.nav-icon { display:flex; align-items:center; justify-content:center; width:19px!important; height:20px; flex:none; }
.nav-icon svg { width:19px; height:19px; stroke-width:1.6; }
.nav-chevron { margin-left:auto; opacity:0; transform:translateX(-4px); color:#6e88d3; transition:opacity var(--normal),transform var(--normal); }
nav button.active .nav-chevron { opacity:1; transform:none; }
.nav-indicator { position:absolute; top:0; left:0; z-index:-1; background:#edf2ff; border:1px solid #e0e8fd; border-radius:7px; pointer-events:none; transition:transform 240ms var(--ease-standard),width 240ms var(--ease-standard),height 240ms var(--ease-standard); }
.nav-indicator::before { content:""; position:absolute; top:12px; bottom:12px; left:-1px; width:3px; border-radius:0 3px 3px 0; background:var(--blue); }
.sidebar-bottom { border-top:1px solid var(--line); margin:32px 10px 0; margin-top:auto; padding:20px 2px 0; }
.sidebar-note { color:#4f6077; font-size:11px; margin-bottom:7px; }
#release { display:block; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:9px; overflow-wrap:anywhere; line-height:1.7; }
.sidebar-bottom a { display:flex; justify-content:space-between; color:#61718a; margin-top:17px; font-size:11px; }
.topbar { position:sticky; top:0; z-index:5; height:68px; padding:0 40px; background:#fff; }
.crumb { display:flex; align-items:center; min-width:0; white-space:nowrap; }
.crumb .crumb-root { margin:0; color:#78869a; font-size:11px; }
.crumb .crumb-separator { color:#c5cdd9; margin:0 13px; }
.crumb b { font-size:12px; font-weight:550; }
.top-actions { gap:12px; min-width:0; }
.top-actions button { min-height:32px; padding:5px 9px; font-size:11px; }
.refresh-button { display:flex; align-items:center; justify-content:center; gap:6px; }
.refresh-icon { width:15px; height:15px; flex:none; }
.operator { display:flex; align-items:center; gap:8px; border-left:1px solid var(--line); padding-left:14px; }
#operator { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:#596a81; }
#operator-avatar { display:grid; place-items:center; width:28px; height:28px; flex:none; border:1px solid #dfe5ef; border-radius:50%; background:#f3f6fb; color:#49607f; font-size:10px; font-weight:650; }
.sync-state { display:flex; align-items:center; gap:6px; color:#68788e; font-size:10px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.sync-dot { width:5px; height:5px; flex:none; border-radius:50%; background:#9aa8b9; }
.sync-state[data-state=ready] .sync-dot { background:#2b8c73; }
.sync-state[data-state=loading] .sync-dot { background:#6f8bdd; }
.sync-state[data-state=error] { color:var(--red); }
.sync-state[data-state=error] .sync-dot { background:var(--red); }
.load-progress { position:absolute; bottom:-1px; left:0; width:100%; height:2px; overflow:hidden; opacity:0; transition:opacity var(--fast); pointer-events:none; }
.load-progress::after { content:""; display:block; height:100%; width:30%; background:#5a7bda; transform:translateX(-100%); }
.is-loading .load-progress { opacity:1; }
.is-loading .load-progress::after { animation:request-progress 1.5s ease-in-out infinite; }
.is-loading .refresh-icon { animation:refresh-turn 1s linear infinite; }
.page-heading { margin-bottom:26px; align-items:center; }
.eyebrow { color:#7a899d; font-size:9px; letter-spacing:1.8px; font-weight:600; }
h1 { font-size:29px; font-weight:650; letter-spacing:-.8px; margin:6px 0 8px; line-height:1.45; }
.page-heading p { font-size:12px; color:#697a91; line-height:1.8; max-width:750px; }
.rate { border-radius:6px; font-size:10px; padding:6px 10px; color:#6c7b90; background:transparent; border-style:dashed; }
.filter-bar { border-radius:8px; padding:14px 17px; box-shadow:var(--shadow); gap:11px; }
.filter-bar label { color:#69798e; font-size:10px; }
.filter-bar input,.filter-bar select { background:white; font-size:11px; }
.filter-bar button { min-height:34px; }
.filter-bar .subtle { color:#8290a2; }
.panel { border-radius:9px; box-shadow:var(--shadow); overflow:hidden; }
.panel-head { padding:20px 22px; gap:16px; align-items:center; }
.panel-head h2 { font-size:14px; font-weight:650; }
.panel-head p { font-size:11px; line-height:1.8; color:#7a889b; margin-top:5px; }
.panel-head > button { font-size:11px; min-height:32px; }
.panel-body { padding:22px; }
.metrics { gap:16px; }
.metric { border-radius:8px; padding:20px; position:relative; box-shadow:var(--shadow); }
.metric.emphasis { background:#203451; border-color:#203451; }
.metric.emphasis::after { content:""; position:absolute; top:20px; right:18px; width:5px; height:5px; border:1px solid #8fa4c5; border-radius:50%; }
.metric.emphasis .label,.metric.emphasis .metric-note { color:#b6c5dd; }
.metric .label { font-size:11px; letter-spacing:.1px; }
.metric-value { font-size:28px; line-height:1.35; font-weight:640; letter-spacing:-.7px; margin:13px 0 7px; font-feature-settings:"tnum"; }
.metric-note { font-size:10px; line-height:1.8; }
.summary-grid { gap:14px; }
.summary-grid .metric { background:#f8fafc; box-shadow:none; padding:15px 16px; }
.summary-grid .metric-value { font-size:21px; margin:9px 0 4px; }
.split { gap:20px; }
.table-scroll { scrollbar-color:#c6cfdd transparent; scrollbar-width:thin; overscroll-behavior-x:contain; }
td,th { padding:14px 19px; }
th { background:#f8fafc; color:#6e7d92; }
tbody tr { transition:background-color var(--fast); }
tbody tr:hover { background:#f6f9fd; }
td.num { color:#27394f; font-weight:550; }
.cell-sub { font-size:10px; font-weight:400; color:#8290a4; margin-top:4px; }
.actions { gap:4px; }
.actions button { font-size:10px; min-height:29px; padding:4px 8px; border-color:transparent; color:#4c6489; }
.actions button:hover { border-color:#dde5f2; background:#edf3fd; color:var(--blue); }
.badge { font-size:10px; border-radius:4px; font-weight:500; padding:2px 7px; }
.badge.green { background:#eff8f4; color:#21785e; }
.badge.amber { background:#fcf5e9; color:#986916; }
.pager { padding:13px 19px; background:#fcfdff; }
.pager button { min-height:30px; font-size:10px; }
.empty { padding:42px 20px!important; }
.empty-mark { width:37px; height:37px; display:grid; place-items:center; border:1px solid #e4e9f1; border-radius:10px; background:#f8fafc; color:#9aa9bc; margin:0 auto 13px; }
.empty-mark svg { width:20px; height:20px; }
.empty-title { color:#64758d; font-size:12px; display:block; }
.empty-note { display:block; color:#8b98a9; font-size:11px; margin-top:5px; }
.trend { height:190px; gap:18px; background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f0f3f7 39px,#f0f3f7 40px); }
.trend-bar { max-width:38px; background:#d9e3f9; border-radius:4px 4px 1px 1px; transform-origin:bottom; transition:background-color var(--normal); }
.trend-column:hover .trend-bar { background:#92ace8; }
.trend-column:last-child .trend-bar { background:#4d70cf; }
.trend-value { font-size:10px; color:#718198; }
.trend-date { font-size:10px; color:#8491a3; }
.status-row { align-items:center; padding:9px 0 15px; font-size:12px; border-color:#edf0f5; }
.status-row .row-link { font-size:15px; font-variant-numeric:tabular-nums; font-weight:550; padding:2px 0 2px 8px; }
.status-list { gap:5px; }
.tabs { width:fit-content; background:#edf0f5; border:1px solid #e8ecf2; border-radius:7px; padding:3px; gap:3px; }
.tabs button { min-height:31px; border:0; border-radius:5px; padding:5px 14px; font-size:11px; }
.tabs button.active { background:#fff; color:#314966; box-shadow:0 1px 4px #1d345016; }
.toolbar { gap:9px; }
.toolbar input,.toolbar select { font-size:12px; min-height:36px; }
.toolbar button { font-size:11px; min-height:36px; }
.warning,.info { font-size:11px; border-radius:7px; }
.warning { background:#fdf9f0; border-color:#eee3ca; color:#8c6c34; }
.error-box { background:#fff; border-color:#eddadd; padding:28px; box-shadow:var(--shadow); }
.error-box p { color:#8e6169; font-size:12px; }
dialog { border-radius:11px; border-color:#dfe5ee; box-shadow:0 30px 90px #162d5033,0 0 0 1px #ffffff60; }
dialog::backdrop { background:#182d4b4d; backdrop-filter:blur(2px); }
dialog[open] { animation:dialog-enter 240ms var(--ease-out) both; }
dialog[open]::backdrop { animation:backdrop-enter 180ms ease-out both; }
dialog.is-closing { pointer-events:none; }
.dialog-header { padding:20px 25px; gap:12px; }
.dialog-header > div { min-width:0; }
.dialog-header h2 { font-size:17px; line-height:1.6; overflow-wrap:anywhere; }
.dialog-header #close-dialog { color:#718198; min-height:32px; font-size:11px; }
#dialog-body { padding:24px 25px; overflow-wrap:anywhere; }
#dialog-body > button { max-width:100%; white-space:normal; }
.connection-test { display:block; width:100%; text-align:left; font-size:11px; line-height:1.8; border-color:#e9dfc9; color:#8b6c37; background:#fffdf8; margin-bottom:18px; }
.form-grid { gap:18px 21px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid > * { min-width:0; }
.form-grid label { font-size:11px; color:#596b82; }
.form-section { font-size:12px; border-color:#edf0f4; }
.form-actions { margin-top:26px; border-color:#edf0f4; }
#content { min-height:280px; transition:opacity 160ms; }
#content[data-refreshing=true] { opacity:.55; }
.view > * { animation:surface-enter 300ms var(--ease-out) both; }
.view > :nth-child(2) { animation-delay:35ms; }
.view > :nth-child(3) { animation-delay:65ms; }
.view > :nth-child(n+4) { animation-delay:90ms; }
.view .metrics > .metric { animation:surface-enter 330ms var(--ease-out) both; }
.view .metrics > .metric:nth-child(2) { animation-delay:40ms; }
.view .metrics > .metric:nth-child(3) { animation-delay:75ms; }
.view .metrics > .metric:nth-child(4) { animation-delay:110ms; }
.view .trend-bar { animation:bar-enter 500ms var(--ease-out) both; animation-delay:100ms; }
.view .trend-column:nth-child(2) .trend-bar { animation-delay:125ms; }
.view .trend-column:nth-child(3) .trend-bar { animation-delay:150ms; }
.view .trend-column:nth-child(4) .trend-bar { animation-delay:175ms; }
.view .trend-column:nth-child(5) .trend-bar { animation-delay:200ms; }
.view .trend-column:nth-child(6) .trend-bar { animation-delay:225ms; }
.view .trend-column:nth-child(7) .trend-bar { animation-delay:250ms; }
.loading-view { display:grid; gap:20px; }
.loading-caption { display:flex; gap:8px; align-items:center; font-size:11px; color:#77869b; padding:2px 0; }
.loading-caption .sync-dot { background:#839bd7; }
.skeleton-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.skeleton-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:21px; min-height:142px; }
.skeleton-line { display:block; height:9px; border-radius:4px; background:#edf1f6; position:relative; overflow:hidden; }
.skeleton-line::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,#ffffffb3,transparent); transform:translateX(-100%); animation:skeleton-sweep 1.5s ease-in-out infinite; }
.skeleton-card .skeleton-line:first-child { width:58%; }
.skeleton-card .skeleton-line:nth-child(2) { width:78%; height:23px; margin:20px 0 13px; }
.skeleton-card .skeleton-line:last-child { width:85%; height:7px; }
.skeleton-panel { border:1px solid var(--line); border-radius:9px; background:#fff; overflow:hidden; }
.skeleton-panel-head { padding:23px; border-bottom:1px solid var(--line); }
.skeleton-panel-head .skeleton-line { width:135px; }
.skeleton-row { display:grid; grid-template-columns:1.2fr 1fr .7fr .7fr; gap:40px; padding:21px 23px; border-bottom:1px solid #f0f3f7; }
.skeleton-row:last-child { border:0; }
#toast { display:flex; align-items:center; gap:10px; right:27px; bottom:27px; border-color:#dfe6ef; border-radius:9px; box-shadow:0 8px 32px #20345114; padding:13px 14px; animation:toast-enter 220ms var(--ease-out) both; }
.toast-mark { display:grid; place-items:center; border-radius:50%; width:21px; height:21px; flex:none; background:#eaf6f0; color:#287f62; font-size:11px; }
#toast.error .toast-mark { background:#fceef0; color:var(--red); }
.toast-message { overflow-wrap:anywhere; line-height:1.7; }
.toast-close { border:0; min-height:28px; color:#8a97a8; padding:1px 6px; background:transparent; }
footer { border-top:1px solid var(--line); margin-top:34px; padding-top:18px; color:#8290a3; font-size:10px; }
.footer-divider { color:#bdc6d2; padding:0 8px; }
.login { background:#f6f7f9; min-height:100svh; }
.login-brand { color:#233853; font-size:34px; }
.login-card { box-shadow:0 8px 30px #233c6210; border-radius:10px; padding:34px; animation:surface-enter 400ms var(--ease-out) both; }
.login-card h1 { margin-top:8px; }
.login-card .primary { min-height:40px; }
.skip-link { position:absolute; top:8px; left:250px; transform:translateY(-150%); z-index:20; background:#fff; box-shadow:0 2px 12px #20345120; }
.skip-link:focus { transform:none; }
@keyframes surface-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@keyframes dialog-enter { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes backdrop-enter { from { opacity:0; } to { opacity:1; } }
@keyframes toast-enter { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes bar-enter { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@keyframes skeleton-sweep { to { transform:translateX(100%); } }
@keyframes request-progress { to { transform:translateX(440%); } }
@keyframes refresh-turn { to { transform:rotate(360deg); } }
@media(min-width:1600px) {
  main { padding-top:42px; }
  .metrics { gap:20px; }
  .metric { padding:23px; }
  .metric-value { font-size:31px; }
}
@media(max-width:1200px) {
  .sync-state { display:none; }
  .topbar { padding:0 28px; }
  main { padding:29px 28px 22px; }
  .top-actions { gap:6px; }
}
@media(max-width:1100px) {
  .sidebar { width:190px; padding:27px 10px 20px; }
  .brand { gap:8px; padding:0 8px; }
  .brand .brand-copy { font-size:23px; }
  .brand-copy small { font-size:7px; letter-spacing:.5px; }
  .brand .brand-mark { width:30px; height:33px; }
  .nav-caption { margin:32px 10px 12px; font-size:8px; }
  .nav-caption span { font-size:9px; }
  nav button { padding:10px; gap:10px; }
  .main { margin-left:190px; width:calc(100% - 190px); }
  main { padding:27px 23px 20px; }
  .topbar { padding:0 23px; }
  .metrics,.skeleton-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .split { grid-template-columns:1fr; }
  .filter-bar .subtle { width:100%; margin:0; }
  .rate { display:none; }
  #operator { max-width:112px; }
  .operator { padding-left:9px; }
}
@media(max-width:850px) {
  #operator { display:none; }
  .top-actions { gap:4px; }
  .topbar .crumb-root,.topbar .crumb-separator { display:none; }
}
@media(max-width:700px) {
  .app { display:block; }
  .sidebar { position:static; width:auto; padding:17px 18px 0; display:block; border-right:0; border-bottom:1px solid var(--line); }
  .brand { padding:0; gap:9px; }
  .brand .brand-copy { font-size:23px; }
  .brand-copy small { font-size:7px; }
  .brand .brand-mark { width:29px; height:31px; border-radius:7px; }
  .nav-caption,.sidebar-bottom { display:none; }
  nav { display:flex; overflow-x:auto; scrollbar-width:none; margin:17px -18px 0; padding:0 10px 9px; gap:3px; }
  nav button { flex:none; font-size:11px; min-height:39px; padding:9px 12px; border-radius:6px; }
  nav .nav-icon,.nav-chevron { display:none; }
  .nav-indicator::before { top:auto; bottom:-1px; left:12px; right:12px; height:2px; width:auto; border-radius:2px; }
  .main { margin:0; width:100%; }
  .topbar { height:55px; padding:0 18px; }
  .crumb b { font-size:11px; }
  .top-actions { gap:4px; }
  .top-actions button { font-size:10px; padding:5px 7px; }
  .refresh-button span { display:none; }
  .refresh-icon { width:16px; height:16px; }
  .operator { border:0; padding-left:5px; }
  #operator-avatar { width:25px; height:25px; font-size:9px; }
  main { padding:25px 18px 18px; }
  h1 { font-size:25px; margin:6px 0 8px; }
  .page-heading { margin-bottom:21px; }
  .page-heading p { font-size:11px; }
  .eyebrow { font-size:8px; letter-spacing:1.4px; }
  .filter-bar { gap:9px; padding:12px; margin-bottom:19px; }
  .filter-bar label { flex:1; min-width:116px; }
  .date-to { display:none; }
  .filter-bar .subtle { font-size:9px; }
  .metrics,.skeleton-metrics { gap:11px; }
  .metric { padding:17px 14px; }
  .metric-value { font-size:23px; margin:12px 0 7px; }
  .metric.emphasis::after { top:17px; right:12px; width:4px; height:4px; }
  .metric .label { font-size:10px; }
  .metric-note { font-size:9px; }
  .panel-head { padding:17px; gap:10px; align-items:flex-start; }
  .panel-head h2 { font-size:13px; }
  .panel-head p { font-size:10px; }
  .panel-head > button { padding:4px 8px; font-size:10px; }
  .panel-body { padding:17px; }
  .summary-grid { grid-template-columns:1fr; gap:10px; }
  .summary-grid .metric { padding:13px 14px; }
  .toolbar input { width:100%; }
  .toolbar select { flex:1; max-width:100%; }
  .toolbar .push { margin-left:0; }
  td,th { padding:12px 15px; }
  .form-grid { grid-template-columns:minmax(0,1fr); }
  .wide,.form-section { grid-column:1; }
  .dialog-header { padding:17px; }
  .dialog-header h2 { font-size:15px; }
  #dialog-body { padding:18px; }
  .key-values { grid-template-columns:100px minmax(0,1fr); }
  footer { display:block; line-height:1.9; font-size:9px; margin-top:26px; padding-top:16px; }
  footer > span { display:block; margin-top:5px; }
  .trend { gap:8px; }
  .trend-value { font-size:9px; }
  .pager { font-size:10px; flex-wrap:wrap; padding:12px 15px; }
  .login-card { padding:27px; }
  .skeleton-card { min-height:130px; padding:17px; }
  .skeleton-row { gap:17px; padding:19px 17px; }
  #toast { right:14px; bottom:17px; padding:11px; max-width:calc(100vw - 28px); font-size:11px; }
  .skip-link { left:18px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .is-loading .load-progress::after { transform:none; width:100%; opacity:.45; }
}

/* D047: explicit channel topology and compact mapping editor. */
.channel-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:20px;padding:18px 0;box-shadow:var(--shadow)}
.channel-summary>div{padding:0 21px;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}
.channel-summary>div:last-child{border:0}.channel-summary strong{color:var(--ink);font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}.mapping-target{min-width:210px}.mapping-target input{font-size:12px}.mapping-note{display:block;font-size:10px;color:var(--muted);margin-top:6px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:850px){.channel-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0}.channel-summary>div:nth-child(2){border:0}.channel-summary>div{padding:0 14px}.channel-summary strong{font-size:19px}}
