@import url('/local-fonts.css');

:root{--ink:#262930;
--muted:#787e8b;
--line:#e5e6e9;
--canvas:#f5f6f7;
--dark:#202328;
--accent:#373c45;
--accent-soft:#d2d5dc;
--red:#af4b4b;
--amber:#a56e22;
--radius:14px;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC",sans-serif;
color:var(--ink);
font-size:14px;
font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;
background:var(--canvas)}
button,input,select,textarea{font:inherit}
button,a,select{touch-action:manipulation}
button{border:1px solid var(--line);
background:white;
color:var(--ink);
padding:10px 15px;
border-radius:8px;
font-weight:600;
cursor:pointer;
transition:.15s}
button:hover{border-color:#a8aeba;
background:#f5f5f6}
button:disabled{opacity:.5;
cursor:wait}
button.primary{background:var(--accent);
color:white;
border-color:var(--accent)}
button.primary:hover{background:#292d35}
button.danger{color:var(--red);
border-color:#edcece}
button.ghost{background:transparent;
border:0;
color:var(--muted)}
input,select,textarea{border:1px solid #d9dbdf;
padding:12px;
border-radius:8px;
background:white;
color:var(--ink);
width:100%;
outline:none}
input:focus,textarea:focus,select:focus{border-color:#464c58;
box-shadow:0 0 0 3px #464c5814}
label{display:block;
font-weight:600;
margin-bottom:8px}
textarea{resize:vertical;
min-height:100px}
a{color:var(--accent)}
svg{width:20px;
height:20px;
fill:none;
stroke:currentColor;
stroke-width:1.6;
stroke-linecap:round;
stroke-linejoin:round;
flex-shrink:0}
h1,h2,h3,p{margin:0}
h1{font-size:29px;
letter-spacing:-.8px;
font-weight:650}
h2{font-size:17px;
font-weight:650}
h3{font-size:14px}
.muted{color:var(--muted)}
.small{font-size:12px}
.mono{font-family:ui-monospace,SFMono-Regular,monospace;
font-size:12px}
.shell{display:grid;
grid-template-columns:238px minmax(0,1fr);
min-height:100vh}
.sidebar{background:var(--dark);
color:#9ea5b2;
padding:31px 20px 22px;
position:fixed;
inset:0 auto 0 0;
width:238px;
display:flex;
flex-direction:column}
.brand{display:flex;
align-items:center;
gap:12px;
color:#fbfbfc;
font-size:19px;
font-weight:650;
letter-spacing:-.5px}
.brand img{width:36px}
.brand small{display:block;
font-size:9px;
font-weight:500;
letter-spacing:2.1px;
color:#9da4b2;
margin-top:5px}
.workspace{margin-top:37px;
border:1px solid #3e4450;
border-radius:9px;
padding:12px 10px}
.workspace .label{font-size:10px;
letter-spacing:1px;
color:#9199a9;
margin-bottom:6px}
.workspace select{color:#eeeff1;
background:#282b32;
border:0;
padding:3px 0;
cursor:pointer;
font-weight:550;
font-size:13px}
.nav-label{font-size:10px;
letter-spacing:1.8px;
color:#7b8598;
margin:30px 12px 12px}
.nav{display:grid;
gap:5px}
.nav button{display:flex;
gap:12px;
align-items:center;
width:100%;
background:transparent;
color:#aab1bd;
text-align:left;
border:0;
padding:12px 14px;
font-size:13px;
font-weight:500}
.nav button:hover{background:#2c3038;
color:#eeeff0}
.nav button.active{color:#e2e4e7;
background:#333841}
.nav button.active:after{content:"";
margin-left:auto;
width:5px;
height:5px;
border-radius:50%;
background:#cbcfd6}
.sidebar-bottom{margin-top:auto;
padding-top:40px}
.network{font-size:11px;
padding:13px;
background:#282b32;
border-radius:8px;
line-height:1.7}
.dot{width:6px;
height:6px;
background:#9ca3b1;
border-radius:50%;
display:inline-block;
margin-right:6px}
.sidebar-footer{display:flex;
gap:9px;
align-items:center;
margin-top:22px;
padding:0 6px}
.avatar{display:grid;
place-items:center;
background:#ced2d9;
color:#3a3f4a;
border-radius:50%;
width:33px;
height:33px;
font-weight:650}
.sidebar-footer strong{font-size:12px;
color:#e6e7ea;
display:block}
.sidebar-footer small{font-size:10px;
color:#959cab}
.logout{margin-left:auto;
color:#a1a8b6!important;
padding:7px}
.main{grid-column:2;
min-width:0}
.topbar{height:75px;
background:#fff;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
justify-content:space-between;
padding:0 38px;
gap:15px}
.breadcrumb{font-size:12px;
color:#848891;
display:flex;
gap:12px}
.breadcrumb b{color:#393e48;
font-weight:500}
.top-right{display:flex;
align-items:center;
gap:16px;
font-size:11px;
color:#7b808a}
.pill{border-radius:20px;
display:inline-flex;
align-items:center;
gap:5px;
font-size:11px;
line-height:1.3;
padding:6px 10px;
background:#eeeff0;
color:#494f5c;
white-space:nowrap}
.pill.amber{background:#fbf1df;
color:#986d28}
.pill.gray{background:#edeef0;
color:#848891}
.pill.red{background:#faeeee;
color:#a84e4e}
.pill.blue{background:#e8f0f7;
color:#4d6e89}
.content{max-width:1540px;
margin:auto;
padding:34px 38px 40px}
.page-heading{display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
margin-bottom:27px}
.page-heading p{color:var(--muted);
margin-top:9px;
font-size:13px}
.eyebrow{font-size:10px;
letter-spacing:2px;
color:#636c7e;
font-weight:600;
margin-bottom:9px}
.metrics{display:grid;
grid-template-columns:repeat(4,1fr);
gap:17px;
margin-bottom:25px}
.metric{background:#fff;
border:1px solid var(--line);
border-radius:var(--radius);
padding:22px 23px}
.metric .top{display:flex;
justify-content:space-between;
align-items:center;
font-size:12px;
color:#666e7d}
.metric .top svg{color:#8b93a3;
width:19px}
.metric .value{font-size:33px;
letter-spacing:-1.4px;
font-weight:580;
line-height:1.2;
margin-top:14px}
.metric .bottom{font-size:11px;
color:#8a8e96;
margin-top:11px}
.metric.emphasis{background:#2d323a;
border-color:#2d323a;
color:#edeeef}
.metric.emphasis .top{color:#c3c7d0}
.metric.emphasis .value{color:#dbdde1}
.metric.emphasis .bottom{color:#adb3bf}
.columns{display:grid;
grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);
gap:24px}
.panel{border:1px solid var(--line);
border-radius:var(--radius);
background:#fff;
overflow:hidden}
.panel-head{padding:23px 24px 20px;
display:flex;
justify-content:space-between;
align-items:center;
gap:15px}
.panel-head p{font-size:11px;
color:#888d96;
margin-top:7px}
.panel-head button{font-size:11px}
.panel-body{padding:0 24px 23px}
.stack{display:grid;
gap:23px;
align-content:start}
.empty{text-align:center;
padding:40px 20px;
color:#8b8f97;
font-size:12px;
line-height:1.9}
.empty svg{width:32px;
height:32px;
color:#b0b5c0;
display:block;
margin:0 auto 12px}
.empty strong{display:block;
color:#626a7b;
font-weight:550;
margin-bottom:3px}
.request-item{padding:20px 24px;
border-top:1px solid #eeeff0;
display:flex;
gap:15px;
align-items:flex-start}
.asset-icon{background:#f1f2f4;
border:1px solid #e8e9eb;
width:40px;
height:42px;
display:grid;
place-items:center;
border-radius:9px;
color:#586070;
flex-shrink:0}
.request-main{min-width:0;
flex:1}
.request-main strong{font-size:13px;
font-weight:600}
.request-main p{font-size:11px;
color:#8c9098;
margin-top:7px;
line-height:1.7}
.request-main .reason{font-size:12px;
color:#686f7e}
.row-actions{display:flex;
gap:8px;
margin-top:13px;
flex-wrap:wrap}
.row-actions button{font-size:11px;
padding:7px 11px}
.request-aside{display:flex;
align-items:flex-end;
flex-direction:column;
gap:9px}
.request-aside small{color:#999da6;
font-size:10px}
.policy-item{display:flex;
align-items:center;
justify-content:space-between;
padding:12px 0;
border-bottom:1px solid #eeeff0;
font-size:12px;
color:#697180}
.policy-item:last-child{border:0}
.policy-value{font-size:11px;
color:#4a515e;
display:flex;
gap:6px;
align-items:center}
.policy-value svg{width:14px;
height:14px}
.connector{display:flex;
gap:12px;
align-items:center;
padding:15px 0;
border-bottom:1px solid #eeeff0}
.connector:last-child{border:0}
.connector strong{font-size:12px;
display:block}
.connector small{font-size:10px;
color:#838a97;
display:block;
margin-top:5px}
.connector .pill{margin-left:auto}
.notice{padding:16px 20px;
border:1px solid #e0e1e4;
border-radius:10px;
background:#f0f1f3;
color:#5a6272;
line-height:1.7;
font-size:12px;
display:flex;
align-items:center;
gap:14px;
margin-bottom:23px}
.notice p{flex:1}
.notice button{font-size:11px}
.notice.amber{background:#fbf6e9;
border-color:#eee2c7;
color:#8c7343}
.table-wrap{overflow:auto}
table{width:100%;
border-collapse:collapse;
text-align:left;
white-space:nowrap}
th{background:#fbfbfb;
font-size:10px;
letter-spacing:.7px;
color:#888e9a;
font-weight:500;
padding:14px 24px;
border-bottom:1px solid var(--line)}
td{padding:19px 24px;
border-bottom:1px solid #eeeff0;
font-size:12px;
color:#606774}
tr:last-child td{border:0}
td strong{color:#31363f;
font-size:12px;
font-weight:550}
td small{display:block;
margin-top:5px;
font-size:10px;
color:#9aa0ab}
.asset-cell{display:flex;
align-items:center;
gap:12px}
td button{font-size:11px;
padding:8px 12px}
.filters{display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
padding:20px 24px;
border-bottom:1px solid var(--line)}
.filters input{max-width:280px;
padding:9px 12px;
font-size:12px}
.filters span{font-size:11px;
color:#8d93a0}
.tabs{display:flex;
gap:6px;
flex-wrap:wrap}
.tabs button{font-size:11px;
border:0;
color:#7c828e;
background:transparent}
.tabs button.active{background:#edeef0;
color:#484e5b}
.grid3{display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px}
.stat-detail{padding:25px}
.stat-detail p{margin:15px 0;
color:#7a818e;
font-size:12px;
line-height:1.8}
.stat-detail .value{font-size:32px;
letter-spacing:-1px}
.progress{height:5px;
background:#eeeff1;
border-radius:3px;
overflow:hidden;
margin-top:18px}
.progress i{display:block;
height:100%;
background:#7c8698}
.page-footer{font-size:10px;
color:#979ca6;
display:flex;
justify-content:space-between;
margin-top:30px;
padding-top:19px;
border-top:1px solid #e7e8eb}
.login{min-height:100vh;
display:grid;
grid-template-columns:1.1fr 1fr}
.login-story{background:#262930;
color:#e0e1e4;
display:flex;
flex-direction:column;
padding:65px 70px;
position:relative;
overflow:hidden}
.login-story:after{content:"";
width:550px;
height:550px;
border-radius:50%;
border:1px solid #484e5b;
position:absolute;
right:-240px;
bottom:-210px;
box-shadow:0 0 0 80px #2f333c60,0 0 0 160px #33384120}
.login-story .story{margin:auto 0;
z-index:1}
.login-story h1{font-size:44px;
line-height:1.45;
letter-spacing:-1px;
color:#f2f3f4}
.login-story .accent{color:#c3c7d0}
.login-story p{font-size:14px;
color:#aab0bc;
line-height:2;
max-width:390px;
margin-top:24px}
.login-features{margin-top:42px;
display:flex;
flex-wrap:wrap;
gap:22px;
color:#cbcfd7;
font-size:12px}
.login-features span{display:flex;
align-items:center;
gap:8px}
.login-features svg{width:16px}
.login-story footer{font-size:10px;
color:#929aaa}
.login-form{display:flex;
flex-direction:column;
justify-content:center;
max-width:390px;
width:100%;
margin:auto;
padding:30px}
.login-form h2{font-size:27px;
margin-bottom:12px}
.login-form p{font-size:12px;
color:#838893;
line-height:1.8;
margin-bottom:30px}
.field{margin-bottom:20px}
.field label{font-size:12px;
color:#596171}
.login-form button.primary{width:100%;
padding:13px;
margin-top:3px}
.login-note{margin-top:26px;
font-size:11px!important}
.loading{padding:50px;
color:var(--muted)}
#toast{position:fixed;
bottom:24px;
left:50%;
transform:translate(-50%,20px);
opacity:0;
z-index:1000;
padding:13px 22px;
border-radius:10px;
background:#272a31;
color:white;
box-shadow:0 8px 28px #24272d2b;
font-size:13px;
max-width:min(90vw,620px);
pointer-events:none;
transition:.2s}
#toast.show{opacity:1;
transform:translate(-50%,0)}
#toast.error{background:#953c3c}
dialog{border:1px solid var(--line);
border-radius:18px;
padding:28px;
width:min(95vw,530px);
color:var(--ink);
box-shadow:0 24px 100px #2023293b}
dialog::backdrop{background:#2023295c;
backdrop-filter:blur(3px)}
dialog h2{font-size:22px;
margin-bottom:10px}
dialog p{font-size:12px;
color:#808693;
line-height:1.8;
margin-bottom:20px}
.dialog-actions{display:flex;
justify-content:flex-end;
gap:9px;
margin-top:23px}
.summary{background:#f6f6f7;
padding:16px;
border-radius:9px;
margin:20px 0;
line-height:2;
font-size:12px;
color:#5c6475;
overflow-wrap:anywhere}
.summary strong{color:#2e323b}
.error-message{color:var(--red);
font-size:12px;
line-height:1.7;
min-height:19px;
margin-bottom:9px}
#remote{width:95vw;
height:90vh;
padding:0;
background:#1a1c21;
color:#edeeef;
border-color:#373c45}
#remote-display{height:calc(100% - 100px);
overflow:auto;
outline:0;
display:flex;
align-items:flex-start;
justify-content:center;
background:#000}
#remote-display canvas{max-width:100%}
.replay-controls{display:flex;align-items:center;gap:14px;padding:10px 20px;background:#f5f6fa;color:#262930}
.replay-controls[hidden]{display:none}
.replay-controls input{flex:1;min-width:50px;padding:0;accent-color:#4277dd}
.replay-controls output{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px}
#remote.replaying #remote-display{height:calc(100% - 160px)}
.remote-top{height:58px;
padding:12px 20px;
display:flex;
align-items:center;
gap:20px;
font-size:12px}
.remote-top span{color:#9ba3b1;
flex:1}
.remote-top button{background:#323740;
color:#d7d9dc;
border-color:#4b5260;
font-size:11px;
padding:8px 12px}
.remote-foot{padding:12px 20px;
font-size:10px;
color:#929aaa}
.mobile-menu{display:none}
.audit-hash{max-width:170px;
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap}
.connection-chain{display:flex;
align-items:center;
justify-content:space-around;
padding:22px 0 7px;
color:#747c8d}
.connection-chain div{text-align:center;
font-size:10px}
.connection-chain svg{display:block;
width:24px;
height:24px;
margin:0 auto 10px;
color:#5f6879}
.connection-chain .arrow{color:#b8bdc7;
font-size:20px}
pre{white-space:pre-wrap;
overflow-wrap:anywhere;
font-size:11px;
color:#636b7b;
background:#f3f4f5;
padding:18px;
border-radius:8px}
#audit-result{margin-top:15px}

@media(min-width:1600px){.content{padding-top:45px}
.metrics{gap:24px}
.metric{padding:26px}
}

@media(max-width:1180px){.shell{grid-template-columns:208px minmax(0,1fr)}
.sidebar{width:208px;
padding-left:15px;
padding-right:15px}
.content{padding:27px}
.topbar{padding:0 27px}
.columns{grid-template-columns:1fr}
.stack{grid-template-columns:1fr 1fr}
.metric{padding:18px}
.grid3{gap:12px}
.metric .value{font-size:29px}
}

@media(max-width:800px){.shell{display:block}
.sidebar{transform:translateX(-100%);
z-index:100;
width:238px;
transition:.2s}
.shell.menu-open .sidebar{transform:none;
box-shadow:8px 0 30px #23262c55}
.topbar{height:63px;
padding:0 20px}
.mobile-menu{display:block;
border:0;
background:transparent;
padding:4px}
.breadcrumb{margin-right:auto}
.top-right>span:not(.pill){display:none}
.content{padding:25px 20px}
.page-heading{align-items:flex-start;
margin-bottom:22px}
h1{font-size:25px}
.page-heading p{font-size:12px;
line-height:1.8}
.page-heading button{font-size:11px;
white-space:nowrap}
.metrics{grid-template-columns:1fr 1fr;
gap:11px}
.metric{padding:18px}
.metric .top{font-size:11px}
.metric .value{font-size:28px}
.columns{gap:18px}
.stack{grid-template-columns:1fr;
gap:18px}
.grid3{grid-template-columns:1fr}
.panel-head{padding:20px}
.request-item{padding:18px}
.request-aside{max-width:95px}
.panel-body{padding:0 20px 20px}
.page-footer{line-height:1.8;
gap:20px}
.login{grid-template-columns:1fr}
.login-story{padding:30px;
min-height:300px}
.login-story h1{font-size:29px;
margin-top:30px}
.login-story p{font-size:12px;
margin-top:10px}
.login-story footer,.login-features{display:none}
.login-form{padding:35px 30px}
.notice{align-items:flex-start;
flex-wrap:wrap;
padding:14px}
.notice button{margin-left:32px}
.filters{padding:15px;
flex-wrap:wrap}
.remote-top{gap:10px;
padding:12px}
.remote-top strong{display:none}
#remote{width:100vw;
height:100dvh;
max-width:100vw;
max-height:100dvh;
border-radius:0}
.remote-foot{line-height:1.6;
padding:8px 12px}
.table-wrap{max-width:calc(100vw - 42px)}
th,td{padding-left:18px;
padding-right:18px}
}


.check-line{display:flex;
gap:10px;
align-items:center;
margin:12px 0}
.check-line input,input[type=checkbox]{width:auto;
min-height:18px}
fieldset{border:1px solid var(--line,#dfe0e3);
border-radius:12px;
padding:14px;
margin:18px 0}


#remote[open]{display:flex;
flex-direction:column}

#remote-display{height:auto;
flex:1;
min-height:0}

.remote-top,.remote-foot,.remote-controls{flex-shrink:0}

.remote-surface{outline:none;
touch-action:none;
flex-shrink:0}

.remote-controls{padding:8px 12px;
background:#252930;
border-bottom:1px solid #3e444f}

.remote-controls[hidden],#remote-text[hidden]{display:none}

.remote-keys{display:flex;
gap:5px;
flex-wrap:wrap}

.remote-keys button{padding:8px 11px;
min-height:40px;
background:#323740;
color:#e7e8eb;
border-color:#4b5260;
font-size:12px}

.remote-keys button[aria-pressed=true]{background:#cdd0d7;
color:#252930;
border-color:#cdd0d7}

#remote-text{margin-top:8px;
min-height:42px;
height:42px;
resize:none;
font-size:16px;
background:#1b1d22;
color:#e7e8eb;
border-color:#4b5260}

@media(max-width:800px){#remote{margin:0;
top:var(--remote-vtop,0);
height:var(--remote-vheight,100dvh);
max-height:var(--remote-vheight,100dvh)}
}


/* Pearl / graphite / blue. Translucency is reserved for the navigation layer. */
:root{--ink:#20242d;--muted:#606b7d;--line:#e1e5ed;--canvas:#f5f6fa;--dark:#171c28;--accent:#2955d9;--accent-soft:#e7edff;--radius:20px;color-scheme:light}
body{background:radial-gradient(ellipse at 85% 0%,#eaf0ff70,transparent 48%),var(--canvas);-webkit-font-smoothing:antialiased}
button,input,select,textarea{border-radius:12px}
button{min-height:40px;transition:background .16s,color .16s,box-shadow .16s}
button.primary{box-shadow:0 3px 8px #2955d91a}
button.primary:hover{background:#2147ba;border-color:#2147ba}
button:focus-visible,a:focus-visible{outline:3px solid #7299ff;outline-offset:3px}
input:focus,textarea:focus,select:focus{border-color:#2955d9;box-shadow:0 0 0 3px #2955d918}
.sidebar{background:linear-gradient(160deg,#20283a,#151a25 70%);padding:30px 18px 20px}
.brand small{color:#a1b0ce}
.workspace{background:#ffffff07;border-color:#ffffff20;border-radius:15px}
.workspace select{background:transparent}
.workspace select option{background:#20283a;color:#f7f9ff}
.nav button{border-radius:12px;min-height:44px;color:#b3bdd1}
.nav button.active{background:#dce7ff17;color:#eef3ff;box-shadow:inset 0 1px 0 #ffffff15}
.nav button.active:after{background:#9fbaff;box-shadow:0 0 8px #9fbaff44}
.nav button:hover{background:#ffffff0c;color:#fff}
.avatar{background:#dbe6ff;color:#2b488d}
.network{background:#ffffff06;border:1px solid #ffffff0a;border-radius:13px}
.dot{background:#8cacff}
.topbar{position:sticky;top:0;z-index:10;background:#ffffffb8;backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);border-bottom-color:#e1e5edb0}
.content{padding-top:36px}
h1{font-size:30px;letter-spacing:-.8px;font-weight:650;line-height:1.3}
.eyebrow{color:#6e7c97;letter-spacing:2px}
.panel,.metric{box-shadow:0 2px 8px #152a5003,0 12px 30px #152a5003;border-color:#e1e5ed}
.metric{padding:24px}
.metric .value{font-weight:450;font-size:38px;color:#262e3d}
.metric.emphasis{background:linear-gradient(130deg,#253351,#172338);border-color:#253351}
.metric.emphasis .value{color:#e1eaff}
.metric.emphasis .top,.metric.emphasis .bottom{color:#c1cde3}
.pill{background:#ebf0ff;color:#385aad;font-weight:550}
.pill.gray{background:#edf0f5;color:#5c6678}
.pill.amber{background:#fff3dc;color:#885705}
.pill.red{background:#feeeee;color:#ad3b47}
.asset-icon{background:#edf2ff;color:#3d62be;border-radius:13px}
.tabs{background:#f2f4f8;border-radius:13px;padding:4px}
.tabs button.active{background:#fff;color:#2955d9;box-shadow:0 1px 5px #1e2b4a12}
.tabs button{min-height:34px}
.notice{background:#f0f4fc;border-color:#e0e7f4;color:#51617f;border-radius:16px}
th{background:#f8f9fc;color:#67748d;font-size:11px;font-weight:550;letter-spacing:0}
td{font-size:13px;color:#546077;border-bottom-color:#edf0f5}
td strong{color:#273348;font-size:13px}
td small{font-size:11px;color:#727d90}
.filters span,.metric .bottom,.page-footer{color:#69758b}
.login-story{background:radial-gradient(ellipse at 15% 5%,#364d77,transparent 65%),linear-gradient(145deg,#1b273f,#141d2e)}
.login-story:after{border-color:#a5beef26;box-shadow:0 0 0 80px #9ab8ff06,0 0 0 160px #b4caff03}
.login-story .accent{color:#bccfff}
.login-story h1{font-size:clamp(34px,3.3vw,51px);letter-spacing:-1.5px;line-height:1.4}
.login-story p{color:#c2cde0}
.login-features{color:#d6e2ff}
.login-form{max-width:430px;padding:38px}
.login-form h2{font-size:30px}
.login-form input{padding:15px;background:#fff}
.login-form button.primary{min-height:48px}
.login-note{color:#6e798d!important}
dialog{border-radius:24px;box-shadow:0 20px 100px #172d5530}
#remote{background:#f6f7fa;color:#202b3e}
.remote-top span,.remote-foot{color:#4c5a70}
[data-web-navigation][hidden]{display:none}
@media(prefers-reduced-transparency:reduce){.topbar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){:root{--muted:#3f4a5c;--line:#8996ad}.panel,.metric{border-color:#8996ad}.pill{outline:1px solid currentColor}.topbar{background:#fff;backdrop-filter:none}.nav button{color:#e0e7f5}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){button{min-height:44px}.tabs button{min-height:40px}.content{padding-top:25px}.topbar{position:static}.login-form{padding:28px}.panel{border-radius:18px}}

/* Membership rules keep short parallel choices together; small screens stack dates. */
.member-role-grid,.member-policy-dates{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.member-role-grid .check-line{margin:7px 0}
.member-policy-dates .field{min-width:0}
.member-policy-dates input{min-width:0;width:100%}
@media(max-width:480px){.member-policy-dates{grid-template-columns:1fr}}

/* First-run setup: one bounded form per step, same controls on phone and desktop. */
.setup-page{max-width:680px;margin:0 auto;padding:32px 20px 56px}.setup-page .brand{margin-bottom:28px}.setup-page h1{font-size:clamp(24px,4vw,32px);line-height:1.35;margin:0 0 14px}.setup-description{color:var(--muted);line-height:1.7;margin-bottom:24px}.setup-steps{display:flex;gap:8px;list-style:none;padding:0;margin:24px 0}.setup-steps li{flex:1;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.setup-steps span{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:#e6eaf1}.setup-steps .active{color:#2955d9;font-weight:600}.setup-steps .active span{background:#e4ebff}.setup-footer{font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere;margin-top:18px}.setup-success{display:flex;gap:14px;align-items:flex-start;background:#eef3ff;padding:20px;border-radius:16px}.setup-success code{overflow-wrap:anywhere}.setup-next{padding-left:24px;line-height:2;margin:24px 0}.setup-checklist{margin-bottom:24px}.setup-entry-button{width:100%;margin-top:14px}.setup-page input{min-width:0}.setup-page .panel-body{padding:28px}.setup-page .dialog-actions{flex-wrap:wrap}@media(max-width:480px){.setup-page{padding:20px 14px}.setup-page .panel-body{padding:22px 18px}.setup-steps li{font-size:12px;gap:5px}.setup-page .dialog-actions>*{flex:1}}
.setup-page .brand{color:#243658}.setup-page .brand small{color:#64748b}

.transfer-options{border:1px solid var(--line,#dce1eb);border-radius:16px;padding:16px;margin:16px 0}.transfer-options label{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-right:16px}.transfer-options input{width:20px;height:20px}#remote-transfer{padding:12px 18px;background:var(--panel,#fff);max-height:40vh;overflow:auto}#remote-transfer summary{cursor:pointer;min-height:36px;font-weight:600}#remote-transfer textarea{width:100%;box-sizing:border-box}#remote-transfer [data-files]{display:flex;flex-wrap:wrap;gap:8px}
