:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#263345;background:#f5f7fa;font-synthesis:none;font-size:14px;--accent:#087f79;--line:#e6ebf0;--muted:#7c8899}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{transition:background .16s,transform .16s,box-shadow .16s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}a{text-decoration:none;color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-.7px;margin-bottom:10px}h2{font-size:21px}h3{font-size:16px}button:focus-visible,a:focus-visible{outline:3px solid #73d4cb;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #dce3ea;border-radius:8px;background:#fff;color:#263345;padding:11px 12px;outline:none;transition:border .16s,box-shadow .16s}input:focus,select:focus,textarea:focus{border-color:#1caaa0;box-shadow:0 0 0 3px #0b9e9412}textarea{resize:vertical;min-height:82px}label{display:block;line-height:1.5;font-size:13px;font-weight:600}label>input,label>select,label>textarea,label>.password-wrap,label>.code-wrap{margin-top:7px}.muted{color:var(--muted);font-size:13px;line-height:1.8}.eyebrow{display:block;color:#8998a9;font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:21px;font-weight:700;letter-spacing:1px}.brand-mark{background:linear-gradient(140deg,#37cbb4,#148f90);box-shadow:0 6px 16px #0002;border-radius:11px;width:40px;height:40px;display:grid;place-items:center;font-size:26px;font-style:italic;font-weight:900;letter-spacing:-4px;padding-right:5px}.brand-sub{display:block;color:#95a5b8;font-size:10px;letter-spacing:2px;margin-top:4px;font-weight:400}.login-layout{display:grid;grid-template-columns:46% 54%;min-height:100vh}.login-story{padding:50px 12%;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 10% 75%,#12635e80,transparent 65%),#141f30;color:#fff;min-height:740px}.login-story h1{font-size:48px;line-height:1.5;letter-spacing:1px;font-weight:500}.login-story p{color:#aebcce;line-height:2;font-size:16px}.login-story .eyebrow{color:#5bd2bb}.login-story small{color:#768ba0}.story-tags{display:flex;gap:10px;margin-top:34px;flex-wrap:wrap}.story-tags span{font-size:12px;color:#b8ced5;border:1px solid #8ab8ac30;border-radius:5px;padding:8px 12px}.login-form-area{display:grid;place-items:center;padding:48px;background:#fbfcfe}.login-card{width:100%;max-width:390px}.login-card h2{font-size:30px;letter-spacing:-.6px;margin-bottom:10px}.login-card>.muted{margin-bottom:38px}.login-card label{margin-bottom:23px}.password-wrap,.code-wrap{display:flex;align-items:center;position:relative;gap:10px}.password-wrap input{padding-right:60px}.password-wrap .text-button{position:absolute;right:10px}.code-wrap input{min-width:0}.code-wrap button{flex-shrink:0}.login-submit{width:100%;margin-top:8px;justify-content:space-between!important;padding:14px 18px!important}.login-foot{font-size:11px;color:#99a3b2;text-align:center;margin-top:24px}.button{border:1px solid transparent;border-radius:8px;min-height:38px;padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--accent);color:#fff;box-shadow:0 4px 9px #087f7912}.primary:hover:not(:disabled){background:#096d68;box-shadow:0 5px 14px #087f7933}.secondary{background:white;border-color:#dde4ec;color:#536278}.secondary:hover:not(:disabled){background:#f0f5f7;border-color:#bccbd6}.danger{background:#fff0f0;color:#b74242;border-color:#f7d9d9}.text-button{border:0;background:transparent;color:var(--accent);font-size:12px;padding:6px}.text-button:hover{background:#eaf7f5;border-radius:5px}.app-layout{min-height:100vh;display:grid;grid-template-columns:224px 1fr}.sidebar{background:#142031;color:#a5b2c4;position:sticky;top:0;height:100vh;padding:29px 17px;display:flex;flex-direction:column}.sidebar .brand{padding:0 13px;margin-bottom:40px}.nav-label{font-size:10px;color:#6e8199;letter-spacing:2px;margin-left:17px;margin-bottom:14px}.nav-item{display:flex;gap:14px;align-items:center;width:100%;background:transparent;color:#a4b3c7;text-align:left;border:0;padding:14px 17px;margin-bottom:7px;border-radius:8px;font-size:13px}.nav-item>span{font-size:19px;line-height:1;width:22px;text-align:center;color:#8a9bb2}.nav-item:hover{background:#223044;color:#fff}.nav-item.active{background:#163e43;color:#74dcc9}.nav-item.active>span{color:#74dcc9}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff0c;padding:18px 10px 0}.service-status{font-size:10px;color:#729186;margin-bottom:24px;display:flex;align-items:center;gap:8px}.service-status>span{width:6px;height:6px;background:#3cbe9b;border-radius:50%}.admin-identity{display:flex;gap:11px;align-items:center;font-size:12px}.avatar{width:35px;height:35px;border-radius:11px;background:#2b394d;color:#c5d4e6;display:grid;place-items:center}.admin-identity strong{display:block;color:#dde6ef;max-width:130px;overflow:hidden;text-overflow:ellipsis}.admin-identity small{font-size:10px;color:#6f8198;display:block;margin-top:5px}.logout-button{display:flex;justify-content:space-between;width:100%;color:#7f93ac;border:0;background:transparent;font-size:12px;padding:15px 0 0}.logout-button:hover{color:white}.workspace{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);padding:0 35px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8693a5}.topbar b{margin:0 12px;font-weight:400;color:#bcc7d3}.topbar strong{font-weight:500;color:#4d5e74}.env-label{border:1px solid #e3e9ec;color:#7a899a;border-radius:20px;padding:6px 11px;font-size:10px}#main-content{max-width:1700px;margin:auto;padding:36px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:15px}.page-heading p{margin-bottom:0}.page-heading .eyebrow{margin-bottom:9px}.page-heading h1{font-size:27px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.stat{padding:24px;border:1px solid var(--line);background:#fff;border-radius:12px}.stat span{font-size:12px;color:#7c899a}.stat strong{display:block;font-size:34px;font-weight:600;color:#23384d;margin:19px 0 11px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.stat small{font-size:11px;color:#9aa5b1}.stat:first-child{border-top:3px solid #21a79b;padding-top:22px}.stat:first-child strong{color:var(--accent)}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-header{padding:22px 24px;border-bottom:1px solid #eff2f6;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-header h3{margin:0;font-weight:600}.panel-body{padding:24px}.panel-body p:last-child{margin-bottom:0}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.quick-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding:20px;border-radius:8px;border:1px solid #e5ebf0;background:#fcfdfe;text-align:left}.quick-action:hover{background:#f2faf8;border-color:#c1e3dc}.quick-action strong{font-size:14px;font-weight:600;color:#39526a;display:block}.quick-action small{font-size:11px;color:#8d9bae;display:block;margin-top:8px}.quick-action>span:last-child{color:#238e84;font-size:20px}.toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:20px 22px;border-bottom:1px solid var(--line)}.toolbar label{min-width:125px;font-size:11px;color:#8491a2}.toolbar .search-label{flex:1;min-width:190px}.toolbar input,.toolbar select{font-size:12px;min-height:38px;padding:9px 11px}.toolbar .button{margin-bottom:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{color:#8492a5;font-size:11px;font-weight:500;background:#f9fafc;padding:14px 20px}td{padding:18px 20px;border-top:1px solid #f0f3f6;vertical-align:middle}tr:hover td{background:#fbfdfd}td strong{font-size:12px;font-weight:600;color:#344b63}td small{display:block;color:#94a0ae;font-size:10px;margin-top:6px}.row-actions{display:flex;align-items:center;gap:4px}.badge{border-radius:5px;padding:4px 8px;background:#f0f3f7;color:#8090a4;display:inline-flex;align-items:center;font-size:10px}.badge.green{background:#e9f6f1;color:#328869}.badge.teal{background:#e7f4f4;color:#198980}.badge.orange{background:#fff5e6;color:#b98939}.badge.red{background:#fdeeee;color:#ba5e5e}.badge.purple{background:#f0edfc;color:#8669b9}.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-top:1px solid var(--line);color:#8c99a9;font-size:11px}.pagination>div{display:flex;align-items:center;gap:10px}.pagination .button{font-size:11px;min-height:30px;padding:5px 11px}.empty{padding:55px 24px;text-align:center;color:#92a0af;font-size:13px;line-height:1.8}.error{border:1px solid #f0d5d5;background:#fff4f4;color:#ae4e4e;border-radius:7px;padding:12px 15px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.notice{border:1px solid #cfe9e1;color:#458279;background:#f2faf7;padding:13px 16px;border-radius:8px;font-size:12px;line-height:1.8}.notice.warning{border-color:#ecdfbf;background:#fffbef;color:#997b37}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.form-grid>label{font-size:12px}.preview-values{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:12px;background:#f4f8fa;border-radius:8px;padding:20px;margin:20px 0;font-size:12px}.preview-values small{display:block;color:#8e9aa9;font-size:10px;margin-bottom:8px}.preview-values strong{font-size:14px;display:block;margin-bottom:6px}.preview-values div:last-child strong{color:var(--accent)}.preview-values p{margin:0;font-size:11px;color:#7c8da0}.preview-arrow{color:#9faeba;text-align:center;font-size:20px}.subject{margin-bottom:20px;display:flex;gap:10px;align-items:center}.subject strong{font-size:14px}.subject small{font-size:11px;color:#8998aa;margin-left:8px}dialog{width:min(650px,calc(100% - 32px));padding:0;border:1px solid #e4e9ef;border-radius:14px;box-shadow:0 25px 100px #0e203e33;color:#293d54;max-height:90vh}dialog::backdrop{background:#0c192b66;backdrop-filter:blur(4px)}#dialog-form{padding:26px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.dialog-heading h2{margin-bottom:0;font-size:20px}.dialog-heading .eyebrow{font-size:9px;margin-bottom:6px}.close-button{border:0;background:#f3f6f9;border-radius:50%;width:30px;height:30px;color:#8d9aab;font-size:22px;line-height:1}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;border-top:1px solid #ecf0f4;padding-top:20px}.code-list{width:100%;height:180px;font-family:Consolas,monospace;font-size:12px;line-height:1.8}.details-json{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;max-height:300px;overflow:auto;background:#f4f7fa;padding:16px;border-radius:8px}.device{padding:16px 0;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;gap:15px}.device strong{font-size:12px}.device p{font-size:11px;color:#8a99aa;margin-top:8px;margin-bottom:0}.device-id{overflow-wrap:anywhere;white-space:normal;max-width:370px}#toast{position:fixed;left:50%;top:22px;transform:translateX(-50%);background:#193d38;color:#fff;border:1px solid #ffffff25;border-radius:9px;padding:13px 22px;box-shadow:0 8px 25px #0002;z-index:1000;font-size:12px;max-width:calc(100vw - 30px)}footer{padding:12px 36px 26px;display:flex;justify-content:space-between;color:#a9b2bf;font-size:10px}.loading{padding:60px;text-align:center;color:#8191a2}.loading:before{content:"";display:inline-block;width:15px;height:15px;border:2px solid #dcebe9;border-top-color:#199286;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:10px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1000px){.app-layout{grid-template-columns:190px 1fr}.sidebar{padding:25px 12px}.topbar{padding:0 24px}#main-content{padding:26px 23px}.stats{grid-template-columns:repeat(2,1fr)}.login-story{padding:45px 10%}.login-story h1{font-size:35px}.login-form-area{padding:32px}.quick-grid{grid-template-columns:1fr}footer span{display:none}}@media(max-width:700px){.login-layout{display:block}.login-story{display:none}.login-form-area{min-height:100vh;padding:35px 25px}.app-layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:15px}.sidebar .brand{margin-bottom:18px}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-item{width:auto;white-space:nowrap;padding:10px;margin-bottom:0}.nav-item>span,.nav-label,.sidebar-bottom{display:none}.topbar{height:52px;padding:0 18px}#main-content{padding:24px 16px}.page-heading h1{font-size:23px}.page-heading{align-items:flex-start}.page-heading .eyebrow{font-size:8px}.page-heading p{font-size:11px}.stats{gap:11px}.stat{padding:18px}.stat strong{font-size:28px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}footer{padding:18px}.toolbar{padding:16px;gap:9px}.toolbar label{min-width:110px}.preview-values{padding:14px;gap:4px;font-size:11px}.sidebar .brand-sub{display:inline;margin-left:10px}.brand{font-size:18px}.brand-mark{width:32px;height:32px;font-size:23px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* v1.1 admin polish */
.overview-intro,.card-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-8px 0 22px;padding:16px 18px;background:linear-gradient(135deg,#f0faf8,#ffffff);border:1px solid #d8ece8;border-radius:12px}.overview-intro .eyebrow,.card-intro .eyebrow{margin-bottom:4px;color:#4a958d}.overview-intro p,.card-intro p{margin:0}.workspace{background:#f6f8fb}.topbar{box-shadow:0 1px 0 #dce4eb}.sidebar{box-shadow:8px 0 30px #0816290d}.nav-item{position:relative;min-height:43px}.nav-item.active:before{content:"";position:absolute;left:-17px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:#69d4c1}.nav-item>span{width:25px;height:25px;border-radius:8px;background:#1c2d42;color:#91a4bb;font-size:15px;display:grid;place-items:center}.nav-item.active>span{background:#1e6968;color:#a3f0df}.nav-item:hover>span{background:#2d4058;color:#fff}#main-content{max-width:1600px;padding:42px clamp(24px,4vw,64px) 56px}.page-heading{margin-bottom:30px}.page-heading h1{font-size:31px;color:var(--ink);letter-spacing:-.9px}.page-heading p{font-size:14px}.page-heading .button.secondary{background:#fff;box-shadow:0 5px 16px #21354b0c}.stats{gap:20px;margin-bottom:28px}.stat{padding:25px 26px;border-color:#dfe7ed;box-shadow:0 8px 24px #1523340a;transition:transform .18s,box-shadow .18s}.stat:hover{transform:translateY(-2px);box-shadow:0 12px 28px #15233414}.stat span{font-size:13px;color:#718196}.stat strong{font-size:36px;color:var(--ink);margin:16px 0 10px}.stat small{font-size:12px}.panel{border-color:#dfe7ed;box-shadow:0 8px 24px #15233408}.panel-header{padding:20px 24px}.panel-header h3{font-size:17px;color:var(--ink)}.panel-body{padding:25px}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick-action{padding:18px 20px;min-height:82px;background:#fbfdfe;border-color:#e3eaf0;transition:transform .18s,background .18s,border .18s,box-shadow .18s}.quick-action:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0a766b12}.quick-action strong{font-size:14px;color:#27445e}.toolbar{padding:18px 22px;background:#fbfcfd}.toolbar label{font-size:12px}.table-wrap{background:#fff}th{font-size:12px;padding:15px 20px}td{font-size:13px;padding:17px 20px}td strong{font-size:13px}.row-actions{gap:6px}.text-button{font-size:13px;padding:7px 8px}.badge{font-size:11px;padding:5px 9px}.dialog-inline-actions{display:flex;gap:10px;margin-top:12px}.code-list{min-height:200px}.notice{font-size:13px}.card-intro{margin:-8px 0 20px}.card-intro .muted{font-size:13px}@media(max-width:1200px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){#main-content{padding:25px 16px 36px}.overview-intro,.card-intro{align-items:flex-start;flex-direction:column;gap:8px}.quick-grid{grid-template-columns:1fr}.page-heading h1{font-size:25px}.nav-item.active:before{display:none}}

/* v1.2 dashboard reference layout */
.workspace{background:linear-gradient(145deg,#f8fbfd 0%,#f3f7fb 70%,#eef7f6 100%);min-height:100vh}
.topbar{height:64px;padding:0 clamp(22px,3vw,42px);background:rgba(255,255,255,.9);backdrop-filter:blur(12px);position:relative;z-index:2}
.topbar-search{display:flex;align-items:center;gap:10px;width:min(380px,42vw);height:38px;padding:0 12px;border:1px solid #e0e8ef;border-radius:10px;background:#fff;box-shadow:0 3px 12px #23415b0a;color:#71849a}
.topbar-search>span{font-size:23px;line-height:1;color:#6c8399;transform:rotate(-20deg)}
.topbar-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;padding:0;color:#344b63;font-size:12px}
.topbar-search input::placeholder{color:#9aaabd}
.topbar-search kbd{padding:3px 7px;border:1px solid #e4e9ee;border-radius:5px;background:#f8fafc;color:#9aa8b7;font-size:10px;font-family:inherit}
.topbar-right{display:flex;align-items:center;gap:13px;color:#6f8094}
.icon-button,.topbar-chevron{position:relative;border:0;background:transparent;color:#64788e;font-size:21px;line-height:1;cursor:pointer;padding:6px}
.icon-button:hover,.topbar-chevron:hover{color:#158e85;background:#eef8f6;border-radius:8px}
.icon-button i{position:absolute;right:2px;top:1px;width:7px;height:7px;border-radius:50%;background:#ef6c72;border:2px solid #fff;font-size:0}
.topbar-divider{height:24px;width:1px;background:#e5ebf0;margin:0 4px}
.topbar-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#162c47,#294d6c);color:#fff;font-weight:700;font-size:17px;box-shadow:0 4px 10px #1e385322}
.topbar-user{display:flex;flex-direction:column;gap:3px;min-width:64px}.topbar-user strong{color:#2d4259;font-size:12px}.topbar-user small{color:#94a2b2;font-size:10px}
.topbar-chevron{font-size:18px;color:#91a0b1}
.sidebar{background:linear-gradient(165deg,#142b42 0%,#102238 72%,#102b39 100%);padding-top:22px}
.sidebar .brand{margin-bottom:32px}.sidebar-promo{border:1px solid #ffffff20;border-radius:10px;padding:16px 12px;background:linear-gradient(145deg,#1d344a,#172a3f);margin-bottom:20px;text-align:center}.sidebar-promo strong{display:block;color:#e8f1f4;font-size:12px}.sidebar-promo small{display:block;color:#8fa4b7;margin-top:8px;font-size:10px;letter-spacing:1px}
.dashboard-heading{position:relative;margin:-42px -64px 28px;padding:40px clamp(24px,4vw,64px) 30px;background:radial-gradient(circle at 76% 16%,#fff5dc99 0 5%,transparent 22%),radial-gradient(circle at 68% 10%,#c9e5f78c 0 15%,transparent 42%),linear-gradient(135deg,#f9fcfe,#edf5fb 70%,#f0f8f6);overflow:hidden}
.dashboard-heading:after{content:"";position:absolute;right:-8%;top:-100px;width:52%;height:260px;border-radius:50%;border:1px solid #acd4df66;transform:rotate(-11deg);box-shadow:0 0 0 22px #ffffff36,0 0 0 44px #ffffff22;pointer-events:none}
.dashboard-heading>div,.dashboard-heading .page-heading-meta{position:relative;z-index:1}
.welcome-line{font-size:14px!important;color:#5f7287;margin:0 0 4px!important}.welcome-line strong{color:#2d4860}.dashboard-heading h1{font-size:35px;margin:7px 0 10px;letter-spacing:-1.2px}.dashboard-heading .page-description{font-size:13px}
.page-heading-meta{display:flex;align-items:center;gap:15px}.date-card{display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:11px;background:#ffffffa8;border:1px solid #dce8ef;box-shadow:0 6px 18px #36546b0b;min-width:190px}.date-card>span{display:grid;place-items:center;width:32px;height:32px;background:#edf4f9;border-radius:9px;color:#476d89;font-size:17px}.date-card strong{display:block;color:#40586f;font-size:12px}.date-card small{display:block;color:#99a7b5;font-size:10px;margin-top:4px}.page-heading-meta .button{background:#fff}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-stat{position:relative;display:flex;align-items:flex-start;gap:15px;min-height:127px;padding:20px 19px 14px;border:1px solid #dce6ed;border-radius:13px;background:#fff;box-shadow:0 8px 24px #25415a0c;overflow:hidden;transition:transform .18s,box-shadow .18s}.dashboard-stat:hover{transform:translateY(-2px);box-shadow:0 12px 27px #25415a18}.dashboard-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;font-size:21px;font-weight:700}.dashboard-icon.teal{background:#d8f4ef;color:#0d948a}.dashboard-icon.gold{background:#fff0d9;color:#be8123}.dashboard-icon.orange{background:#fff0db;color:#bd7c24}.dashboard-icon.blue{background:#deeffd;color:#3d89c8}.dashboard-icon.purple{background:#eee5fd;color:#8f62bd}.dashboard-icon.slate{background:#e8edf4;color:#58718e}.dashboard-stat-copy{min-width:0}.dashboard-stat-copy>span{display:block;color:#718196;font-size:12px}.dashboard-stat-copy strong{display:block;color:#182f48;font-size:30px;line-height:1.1;margin:12px 0 6px;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.dashboard-stat-copy small{display:block;color:#94a2b2;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-stat-foot{position:absolute;left:19px;right:17px;bottom:10px;display:flex;justify-content:space-between;color:#8aa0af;font-size:10px}.dashboard-stat-mark{color:#2cb59f;font-size:19px;line-height:8px}
.dashboard-grid{display:grid;grid-template-columns:1.24fr 1fr 1fr;gap:16px;align-items:stretch}.dashboard-grid .panel{min-width:0;margin-bottom:18px}.dashboard-grid .panel-header{padding:16px 18px}.dashboard-grid .panel-header h3{font-size:15px}.dashboard-grid .panel-header .text-button{font-size:11px;color:#8293a4}.dashboard-panel-body{padding:0 15px 7px}.dashboard-columns{display:grid;grid-template-columns:minmax(120px,1fr) 60px 78px 36px;gap:8px;padding:11px 4px 9px;color:#9aa8b8;font-size:10px;background:#f7f9fb;border-radius:7px;margin:0 -3px 2px}.dashboard-columns span:nth-child(n+2){text-align:center}.dashboard-row{display:grid;grid-template-columns:minmax(100px,1.35fr) minmax(52px,.7fr) minmax(60px,.8fr) 38px;align-items:center;gap:8px;min-height:53px;padding:6px 3px;border-bottom:1px solid #edf1f4;color:#536a80;font-size:11px}.dashboard-grid .panel:nth-child(2) .dashboard-row,.dashboard-grid .panel:nth-child(3) .dashboard-row{grid-template-columns:minmax(65px,.8fr) minmax(85px,1.3fr) minmax(54px,.8fr)}.dashboard-row:last-child{border-bottom:0}.dashboard-row .subject{min-width:0;margin:0;gap:7px}.dashboard-row .subject>div{min-width:0}.dashboard-row .subject strong,.dashboard-row-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#40576d}.dashboard-row .subject small,.dashboard-row-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;color:#9ba8b6;font-size:9px}.dashboard-row-plan{text-align:center;color:#74899a;font-size:10px}.dashboard-row-expiry{text-align:center}.dashboard-row-expiry strong{display:block;color:#e47c62;font-size:11px}.dashboard-row-expiry small{display:block;color:#9ca9b6;font-size:9px;margin-top:3px}.dashboard-row .text-button{font-size:10px;padding:4px;color:#168f84}.dashboard-time{font-size:9px;color:#9aa8b7;line-height:1.35}.dashboard-row-target{font-size:10px;color:#718397;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-mini-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(145deg,#bcd4ef,#7c9ed4);color:#fff;font-size:12px;font-weight:600}.dashboard-grid .panel:nth-child(3) .dashboard-row{grid-template-columns:30px minmax(80px,1fr) 58px}.dashboard-empty{padding:30px 8px;text-align:center;color:#a0adba;font-size:11px}
.dashboard-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dashboard-quick-grid .quick-action{min-width:0;min-height:92px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:14px 12px}.dashboard-quick-grid .quick-action .dashboard-icon{width:35px;height:35px;flex-basis:35px;font-size:16px;border-radius:10px}.dashboard-quick-grid .quick-action strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-quick-grid .quick-action small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.quick-arrow{color:#84a0b3;font-size:16px}.dashboard-notice{margin-top:2px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px}.settings-item{padding:17px;border-radius:10px;background:#f8fafc;border:1px solid #e6edf2}.settings-item span,.settings-item strong,.settings-item small{display:block}.settings-item span{font-size:11px;color:#8191a3}.settings-item strong{font-size:15px;color:#304a63;margin:8px 0 6px}.settings-item small{font-size:10px;color:#9aa7b4}
@media(max-width:1000px){.dashboard-heading{margin:-26px -23px 28px}}@media(max-width:1250px){.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid .panel:first-child{grid-column:1/-1}.dashboard-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-heading{padding-top:33px}.dashboard-heading:after{right:-30%;width:75%}.page-heading-meta{flex-direction:column;align-items:flex-end}.date-card{min-width:170px}}
@media(max-width:700px){.topbar-search{width:calc(100vw - 140px)}.topbar-right{gap:5px}.topbar-divider,.topbar-user,.topbar-chevron{display:none}.dashboard-heading{margin:-25px -16px 20px;padding:29px 16px 25px}.dashboard-heading h1{font-size:28px}.dashboard-heading .page-heading-meta{position:absolute;right:16px;top:23px}.dashboard-heading .date-card{display:none}.dashboard-stats{gap:10px}.dashboard-stat{min-height:115px;padding:16px 13px 12px;gap:9px}.dashboard-icon{width:36px;height:36px;flex-basis:36px;font-size:17px;border-radius:10px}.dashboard-stat-copy strong{font-size:25px;margin-top:10px}.dashboard-stat-foot{left:13px;right:13px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .panel:first-child{grid-column:auto}.dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-quick-grid .quick-action{grid-template-columns:auto 1fr;min-height:75px}.dashboard-quick-grid .quick-arrow{display:none}.settings-grid{grid-template-columns:1fr;padding:15px}}
/* v1.3 adaptive type, comfortable controls and responsive workspaces */
:root{
  font-size:clamp(16px,calc(14px + .2vw),18px);
  --text-main:1rem;--text-small:clamp(14px,calc(12.8px + .1vw),15.5px);
  --text-label:clamp(15px,calc(13.4px + .12vw),17px);
  --ink:#243b53;--muted:#667b90;--page-space:clamp(18px,2.4vw,40px);
  --radius:16px;
}
body{font-size:var(--text-main);line-height:1.6}
button,input,select,textarea{font-family:inherit;line-height:1.5}
h1,h2,h3{line-height:1.35;overflow-wrap:anywhere}
h1{font-size:clamp(28px,2.2vw,40px)}h2{font-size:clamp(23px,1.6vw,29px)}h3{font-size:clamp(18px,1.2vw,22px)}
small,.muted{font-size:var(--text-small);line-height:1.7;color:var(--muted)}
.eyebrow{font-size:13px;letter-spacing:1.6px;line-height:1.5}
label,.form-grid>label,.card-duration-field>label{font-size:var(--text-label);color:#385168;font-weight:600}
input,select,textarea,.toolbar input,.toolbar select,.topbar-search input{font-size:max(16px,1rem);min-height:46px;padding:11px 13px;border-radius:10px}
input,select,textarea{min-width:0;max-width:100%}
input::placeholder,textarea::placeholder{color:#8191a2;opacity:1}
input[readonly],.input-readonly{background:#eff6f6;color:#326e68;border-color:#cce0de;cursor:default}
input[aria-invalid=true]{border-color:#d97171;background:#fff8f8}
.button,.text-button,.nav-item,.logout-button{font-size:var(--text-label)}
.button{min-height:44px;padding:10px 17px;border-radius:10px;white-space:normal;line-height:1.5}
.text-button{min-height:38px;border-radius:8px;padding:7px 10px;white-space:nowrap}
.button:not(:disabled):hover,.quick-action:hover{box-shadow:0 8px 22px #175a531c}
.button:disabled,.text-button:disabled{opacity:.5;box-shadow:none;transform:none}
button:focus-visible,a:focus-visible,.table-wrap:focus-visible{outline:3px solid #1caaa0;outline-offset:3px}
.app-layout{grid-template-columns:clamp(220px,16vw,252px) minmax(0,1fr)}
.sidebar{padding:26px 16px 20px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#40586f transparent}
.sidebar .brand{padding:0 10px;margin-bottom:26px;font-size:25px}
.brand-mark{flex-shrink:0;width:44px;height:44px;font-size:28px}
.brand-sub{font-size:13px;letter-spacing:1px}
.nav-label{font-size:13px;color:#8b9daf;margin-bottom:12px}
.nav-item{padding:12px 15px;gap:12px;min-height:49px;margin-bottom:6px;font-weight:500;line-height:1.4}
.nav-item>span{flex-shrink:0;width:28px;height:28px;font-size:18px}
.nav-item.active:before{left:-16px}
.sidebar-bottom{padding:18px 6px 0;margin-top:auto}
.sidebar-promo{padding:15px 10px;margin:14px 0 20px}
.sidebar-promo strong{font-size:var(--text-small);line-height:1.6}
.sidebar-promo small,.service-status,.admin-identity small{font-size:13px;line-height:1.6}
.admin-identity strong{font-size:var(--text-label);max-width:160px;line-height:1.5}
.admin-identity .avatar{width:38px;height:38px;flex-shrink:0;font-size:16px}
.logout-button{min-height:44px;align-items:center;padding:12px 0 0;color:#acbed0}
.logout-button .logout-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;font-size:20px;line-height:1;transition:background .16s,color .16s,transform .16s}
.logout-button:hover:not(:disabled) .logout-icon{background:#263b50;color:#fff;transform:translateX(2px)}
.logout-button:focus-visible .logout-icon{background:#263b50;color:#fff}
.workspace{min-width:0;max-width:100%}
.topbar{height:auto;min-height:78px;padding:14px var(--page-space);gap:18px;z-index:8}
.topbar-search{width:min(480px,50%);height:46px;min-width:0;padding:0 12px;gap:10px;background:#f9fbfd;flex:1}
.topbar-search:focus-within{border-color:#69b9ae;background:#fff;box-shadow:0 0 0 3px #148e8412}
.topbar-search input{height:auto;min-height:42px;padding:0;box-shadow:none}
.topbar-search kbd{font-size:12px;white-space:nowrap}
.topbar-search>span{font-size:26px}
.topbar-right{position:relative;gap:12px;flex-shrink:0;min-width:0}
.icon-button,.topbar-chevron{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;padding:8px;border-radius:10px;font-size:23px}
.topbar-chevron{color:#647a8f;background:#f7fafc;border:1px solid #e1e9ef;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}
.topbar-chevron:hover:not(:disabled),.topbar-chevron[aria-expanded=true]{background:#eaf7f4;border-color:#a8d9d0;color:#087f79;box-shadow:0 4px 12px #087f7918}
.topbar-chevron>span{display:block;line-height:1;transform:translateY(-1px);transition:transform .16s ease}
.topbar-chevron[aria-expanded=true]>span{transform:translateY(1px)}
.topbar-avatar{width:40px;height:40px;flex-shrink:0;font-size:19px}
.topbar-user{min-width:0;max-width:180px;gap:1px}
.topbar-user strong{font-size:var(--text-label);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-user small{font-size:13px;color:#6f8296}
.admin-menu{position:absolute;right:0;top:calc(100% + 12px);width:245px;max-width:calc(100vw - 32px);padding:8px;background:white;border:1px solid #dce6ec;border-radius:14px;box-shadow:0 18px 50px #18344826;z-index:20;animation:panel-in .16s ease-out}
.admin-menu-heading{font-size:var(--text-small);color:#778a9b;padding:12px 13px;border-bottom:1px solid #edf1f5;margin-bottom:5px}
.admin-menu-action{display:block;width:100%;min-height:46px;text-align:left;border:0;background:transparent;border-radius:9px;color:#34536a;font-size:var(--text-label);padding:11px 13px}
.admin-menu-action:hover{background:#edf8f5;color:#087f79}.admin-menu-action.danger-text{color:#b34949}.admin-menu-action.danger-text:hover{background:#fff1f1}
#main-content{max-width:1920px;padding:var(--page-space);padding-bottom:44px}
.page-heading{gap:24px;align-items:center;margin-bottom:26px;min-width:0}
.page-heading>div{min-width:0}
.page-heading h1,.dashboard-heading h1{font-size:clamp(30px,2.25vw,40px);letter-spacing:-.6px;margin:9px 0 12px}
.page-heading p,#page-description{font-size:var(--text-label);line-height:1.75;overflow-wrap:anywhere}
.dashboard-heading{margin:calc(-1 * var(--page-space)) calc(-1 * var(--page-space)) 28px;padding:clamp(28px,3vw,44px) var(--page-space);min-height:215px}
.welcome-line{font-size:clamp(16px,1.12vw,19px)!important}
.page-heading-meta{flex-wrap:wrap;justify-content:flex-end;gap:12px;max-width:48%}
.date-card{min-width:0;padding:12px 15px;gap:11px;border-radius:12px}
.date-card strong{font-size:var(--text-small);line-height:1.5;white-space:normal}
.date-card small{font-size:13px;line-height:1.6;color:#72879b}
.date-card>span{width:36px;height:36px;flex-shrink:0;font-size:20px}
.dashboard-stats{gap:18px;margin-bottom:22px}
.dashboard-stat{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px 15px;min-height:174px;padding:22px 20px 16px;border-radius:var(--radius)}
.dashboard-stat-copy>span{font-size:var(--text-label);color:#597089;line-height:1.5}
.dashboard-stat-copy strong{font-size:clamp(32px,2.65vw,46px);margin:9px 0 8px;line-height:1.2}
.dashboard-stat-copy small{font-size:var(--text-small);color:#6d8296;white-space:normal;overflow:visible;line-height:1.6}
.dashboard-stat-foot{position:static;grid-column:1/-1;left:auto;right:auto;bottom:auto;font-size:var(--text-small);color:#71869a;align-items:center;border-top:1px solid #edf2f5;padding-top:10px;gap:8px}
.dashboard-stat-mark{font-size:22px;flex-shrink:0}
.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:20px}
.panel{border-radius:var(--radius);min-width:0;margin-bottom:22px}
.panel-header,.dashboard-grid .panel-header{padding:20px 22px;flex-wrap:wrap;gap:10px}
.panel-header h3,.dashboard-grid .panel-header h3{font-size:clamp(18px,1.2vw,21px);line-height:1.4;color:#304b62}
.dashboard-grid .panel-header .text-button{font-size:var(--text-small);color:#50788b}
.panel-body{padding:22px}
.dashboard-panel-body{padding:0 18px 12px;overflow-x:auto}
.dashboard-columns{font-size:var(--text-small);padding:12px 4px;grid-template-columns:minmax(110px,1.2fr) 64px 104px 42px;gap:8px}
.dashboard-row{grid-template-columns:minmax(110px,1.2fr) 64px 104px 42px;gap:8px;min-height:75px;padding:12px 3px;font-size:var(--text-small)}
.dashboard-row .subject{gap:9px}.dashboard-row .subject .avatar{width:32px;height:32px;flex-shrink:0;font-size:15px}
.dashboard-row .subject strong,.dashboard-row-main strong{font-size:var(--text-label);line-height:1.5}
.dashboard-row .subject small,.dashboard-row-main small{font-size:var(--text-small);line-height:1.6;color:#71869a}
.dashboard-row-plan,.dashboard-row-target,.dashboard-time{font-size:var(--text-small);line-height:1.6;color:#617b90}
.dashboard-row-expiry strong{font-size:var(--text-label);color:#bc633f;line-height:1.5}
.dashboard-row-expiry small{font-size:var(--text-small);color:#71869a;line-height:1.5}
.dashboard-row .text-button{font-size:var(--text-small);padding:5px 3px;min-height:38px}
.dashboard-grid .panel:nth-child(2) .dashboard-row{grid-template-columns:minmax(92px,.9fr) minmax(90px,1.1fr) minmax(64px,.7fr)}
.dashboard-grid .panel:nth-child(3) .dashboard-row{grid-template-columns:34px minmax(100px,1fr) 104px}
.dashboard-mini-avatar{width:34px;height:34px;font-size:16px}
.dashboard-empty{padding:45px 10px;font-size:var(--text-label);color:#6d8298}
.dashboard-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dashboard-quick-grid .quick-action{min-height:110px;padding:19px 18px;gap:14px;grid-template-columns:42px minmax(0,1fr) 20px;border-radius:12px}
.dashboard-quick-grid .quick-action .dashboard-icon{width:42px;height:42px;font-size:21px;border-radius:12px}
.dashboard-quick-grid .quick-action strong{font-size:var(--text-label);white-space:normal;overflow:visible;line-height:1.5}
.dashboard-quick-grid .quick-action small{font-size:var(--text-small);white-space:normal;overflow:visible;line-height:1.6;margin-top:5px;color:#6e8296}
.quick-arrow{font-size:20px}.quick-action>span{min-width:0}
.toolbar{gap:14px;padding:21px 22px;align-items:flex-end}
.toolbar label{font-size:var(--text-small);color:#5c748b;min-width:140px;flex:0 1 150px}
.toolbar .search-label{min-width:200px;flex:1 1 250px}
.toolbar .button{min-height:46px}
.table-wrap{max-width:100%;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#bccfd8 #f4f7fa;overscroll-behavior-x:contain}
table{font-size:var(--text-label);line-height:1.5}
th{font-size:var(--text-small);font-weight:600;color:#587189;padding:16px 20px;background:#f5f8fb}
td{font-size:var(--text-label);padding:19px 20px}td strong{font-size:var(--text-label);line-height:1.5}td small{font-size:var(--text-small);color:#6d8194;line-height:1.6;margin-top:7px}
tr:hover td{background:#f3faf8}.row-actions{gap:5px}.badge{font-size:var(--text-small);padding:5px 10px;border-radius:7px;line-height:1.5;white-space:nowrap}
.pagination{font-size:var(--text-small);gap:12px;flex-wrap:wrap;padding:18px 22px;line-height:1.6;color:#637d92}
.pagination>div{flex-wrap:wrap;gap:10px}.pagination .button{font-size:var(--text-small);min-height:40px;padding:8px 12px}
.empty{font-size:var(--text-label);color:#698197;padding:44px 20px}
.error,.notice,.card-intro .muted{font-size:var(--text-small);line-height:1.75;overflow-wrap:anywhere}
.notice{padding:15px 18px;border-radius:11px}.card-intro{padding:20px 22px;gap:15px}.card-intro .eyebrow{font-size:13px}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid>*{min-width:0}
.field-help{display:block;margin-top:8px;font-size:var(--text-small);font-weight:400;color:#647f8b;line-height:1.6}
.card-duration-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.duration-preset{font:inherit;font-size:var(--text-small);min-height:35px;padding:5px 10px;border:1px solid #dbe6ed;background:#f8fbfc;color:#5a7388;border-radius:8px}
.duration-preset:hover{border-color:#88c6bc;background:#edf8f5}.duration-preset[aria-pressed=true]{background:#e6f6f1;border-color:#69b9a6;color:#087f68;box-shadow:0 0 0 1px #69b9a630;font-weight:600}
.card-expiry-preview{padding:18px;margin:21px 0 16px;border:1px solid #cce7dd;background:linear-gradient(130deg,#f0faf5,#f2f8fc);border-radius:12px}
.card-expiry-preview>p{margin:0}
.card-generation-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}.card-generation-summary>div:last-child{grid-column:1/-1;padding-top:12px;border-top:1px solid #d7e8e3}
.card-generation-summary dt{font-size:var(--text-small);color:#60827a;line-height:1.6}.card-generation-summary dd{font-size:var(--text-label);font-weight:600;color:#23665d;margin:5px 0 0;line-height:1.5;overflow-wrap:anywhere}
.card-result-summary{padding:18px;background:#f0faf5;border:1px solid #d6eadf;border-radius:12px;margin-bottom:18px}.card-result-summary>strong{display:block;margin:12px 0 8px;font-size:1.1rem}.card-result-summary>p{font-size:var(--text-small);margin-bottom:0;color:#4f776d}
.preview-values{padding:19px;font-size:var(--text-label);gap:14px}.preview-values small{font-size:var(--text-small);color:#678095}.preview-values strong{font-size:var(--text-label)}.preview-values p{font-size:var(--text-small);color:#647d93;line-height:1.7}
.subject{align-items:center;gap:12px}.subject strong{font-size:var(--text-label)}.subject small{font-size:var(--text-small);overflow-wrap:anywhere}.subject>div{min-width:0}
dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:18px;overflow:hidden}
dialog[open]{animation:panel-in .18s ease-out}
#dialog-form{padding:0;display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 34px);max-height:calc(100dvh - 34px)}
.dialog-heading{flex-shrink:0;padding:24px 26px 19px;margin:0;border-bottom:1px solid #e7eef2;background:#fff;gap:15px}
.dialog-heading h2{font-size:clamp(22px,1.7vw,28px);line-height:1.4}.dialog-heading .eyebrow{font-size:12px;line-height:1.5;margin-bottom:6px}
.close-button{width:40px;height:40px;flex-shrink:0;font-size:28px;border-radius:11px}.close-button:hover{background:#e8f1f4;color:#345b70}
#dialog-body{padding:24px 26px 10px;overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b7cfd2 transparent}
#dialog-error{margin:8px 26px;flex-shrink:0;max-height:110px;overflow:auto}
.dialog-actions{flex-shrink:0;padding:18px 26px;margin:0;background:#fff;border-top:1px solid #e7eef2;gap:12px;box-shadow:0 -7px 18px #26485305}
.dialog-actions .button{min-width:105px;min-height:46px}.dialog-inline-actions{flex-wrap:wrap;gap:12px}
.code-list{font-size:16px;line-height:1.75;height:225px;min-height:160px;white-space:pre;tab-size:2}.details-json{font-size:var(--text-small);line-height:1.8}
.device{padding:18px 0;gap:15px}.device strong{font-size:var(--text-label)}.device p{font-size:var(--text-small);line-height:1.6}.device>div{min-width:0}
.settings-grid{padding:22px;gap:18px}.settings-item{padding:21px;border-radius:12px}.settings-item span,.settings-item small{font-size:var(--text-small);color:#627e94}.settings-item strong{font-size:clamp(18px,1.3vw,22px);line-height:1.5;margin:10px 0 8px}
#toast{font-size:var(--text-label);line-height:1.65;top:20px;padding:14px 22px;border-radius:12px;overflow-wrap:anywhere}
footer{font-size:13px;line-height:1.6;padding:14px var(--page-space) 26px;gap:16px;color:#74899d}
.loading{padding:55px 20px;font-size:var(--text-label)}.loading:before{width:18px;height:18px}
.login-story{min-height:100vh;padding:clamp(30px,4vw,65px) 11%}.login-story h1{font-size:clamp(36px,3.2vw,58px);line-height:1.5}.login-story p{font-size:clamp(17px,1.3vw,22px)}.login-story small,.story-tags span{font-size:var(--text-small)}
.login-form-area{padding:clamp(25px,4vw,64px)}.login-card{max-width:465px}.login-card h2{font-size:clamp(28px,2vw,36px)}.login-card label{font-size:var(--text-label);margin-bottom:24px}.login-card>.muted{font-size:var(--text-label);margin-bottom:30px}.login-foot{font-size:var(--text-small);line-height:1.6;color:#6b8196}
@keyframes panel-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1900px){.dashboard-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.dashboard-quick-grid .quick-action{grid-template-columns:40px minmax(0,1fr);padding:18px 15px}.dashboard-quick-grid .quick-arrow{display:none}}
 @media(max-width:1300px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid .panel:first-child{grid-column:1/-1}.dashboard-stats{gap:14px}.dashboard-stat{gap:12px;padding:19px 16px 14px;grid-template-columns:36px minmax(0,1fr)}.dashboard-stat>.dashboard-icon{width:36px;height:36px;flex-basis:36px;font-size:19px}.dashboard-heading .page-heading-meta{flex-direction:column;align-items:flex-end}}
@media(max-width:1150px){.app-layout{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.sidebar .brand{font-size:22px;gap:10px;padding:0 7px}.brand-sub{letter-spacing:0}.nav-item{gap:9px;padding:12px 11px}.sidebar-promo{padding:14px 8px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-grid .panel:first-child{grid-column:auto}.dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-user{max-width:130px}.topbar-right{gap:7px}.topbar-divider{display:none}.dashboard-heading{min-height:215px}.date-card small{display:none}.date-card{padding:10px}.page-heading-meta{max-width:43%}}
@media(max-width:820px){.app-layout{display:block}.sidebar{position:static;height:auto;overflow:visible;padding:18px 18px 14px;max-width:100%}.sidebar .brand{margin-bottom:15px}.sidebar nav{display:flex;overflow-x:auto;gap:6px;max-width:100%;padding-bottom:5px;overscroll-behavior-x:contain}.sidebar .nav-label,.sidebar-bottom{display:none}.nav-item{width:auto;flex:0 0 auto;margin:0;padding:10px 12px;min-height:45px;white-space:nowrap}.nav-item>span{display:none}.nav-item.active:before{display:none}.topbar{padding:12px 18px;min-height:72px;gap:12px}.topbar-search{width:auto;max-width:none}.topbar-user{max-width:115px}.dashboard-heading{min-height:0}.dashboard-heading .page-heading-meta{position:static;flex-direction:column;right:auto;top:auto}.date-card{display:none}.dashboard-stat{min-height:164px}.dashboard-grid .panel:first-child{grid-column:auto}.settings-grid{grid-template-columns:1fr}footer span{display:none}}
@media(max-width:560px){:root{--page-space:16px}.topbar-user,.topbar-divider,.topbar-search kbd{display:none}.topbar-right{gap:2px}.topbar-avatar{width:34px;height:34px;font-size:17px}.icon-button,.topbar-chevron{display:grid;width:36px;height:40px;font-size:21px}.topbar-search{gap:6px;padding:0 10px}.topbar-search>span{display:none}.topbar-search input{min-width:0;font-size:16px}.topbar{gap:8px;padding:12px 16px}.topbar-right{flex-shrink:0}.dashboard-heading{padding:27px 16px 24px;display:flex;flex-direction:column;align-items:stretch;gap:16px;margin:-16px -16px 22px}.dashboard-heading h1{font-size:30px}.page-heading .eyebrow{font-size:12px;letter-spacing:1px}.dashboard-heading .page-heading-meta{max-width:none;align-items:flex-start}.page-heading-meta .button{min-height:42px}.dashboard-stats{gap:11px}.dashboard-stat{padding:16px 13px 13px;grid-template-columns:minmax(0,1fr);gap:10px;min-height:0}.dashboard-stat>.dashboard-icon{width:34px;height:34px;font-size:18px}.dashboard-stat-copy strong{font-size:34px;margin:8px 0}.dashboard-stat-copy>span{font-size:16px}.dashboard-stat-copy small,.dashboard-stat-foot{font-size:14px}.dashboard-stat-foot{padding-top:9px}.dashboard-grid{gap:0}.panel-header,.dashboard-grid .panel-header{padding:17px 16px}.dashboard-panel-body{padding:0 13px 12px}.dashboard-row,.dashboard-columns{grid-template-columns:minmax(98px,1fr) 56px 91px 34px;gap:6px;min-width:304px}.dashboard-row .subject .avatar{display:none}.dashboard-row .subject strong,.dashboard-row-main strong{font-size:15px}.dashboard-row .subject small,.dashboard-row-main small,.dashboard-time,.dashboard-row-target,.dashboard-row-plan,.dashboard-row-expiry small,.dashboard-columns{font-size:14px}.dashboard-grid .panel:nth-child(2) .dashboard-row{grid-template-columns:88px minmax(100px,1fr) 70px;min-width:0}.dashboard-grid .panel:nth-child(3) .dashboard-row{grid-template-columns:32px minmax(110px,1fr) 92px;min-width:0}.dashboard-quick-grid{grid-template-columns:1fr;gap:11px;padding:16px}.dashboard-quick-grid .quick-action{grid-template-columns:40px minmax(0,1fr) 18px;min-height:90px;padding:16px;gap:13px}.dashboard-quick-grid .quick-arrow{display:block}.card-intro{flex-direction:column;align-items:flex-start;padding:17px}.toolbar{padding:17px 16px;gap:12px}.toolbar label{flex:1 1 135px;min-width:120px}.toolbar .search-label{flex-basis:100%;min-width:0}.toolbar .button{min-width:95px}.pagination{padding:16px;font-size:14px}.pagination>div{gap:8px}.form-grid{grid-template-columns:minmax(0,1fr);gap:17px}.form-grid .full{grid-column:auto}.subject{align-items:flex-start}.subject small{display:block;margin:4px 0 0}.preview-values{padding:15px;gap:10px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:15px}#dialog-form{max-height:calc(100dvh - 22px)}.dialog-heading{padding:19px 18px 16px}.dialog-heading h2{font-size:23px}.dialog-heading .eyebrow{font-size:12px}#dialog-body{padding:19px 18px 10px}#dialog-error{margin:7px 18px}.dialog-actions{padding:15px 18px;gap:10px}.dialog-actions .button{flex:1;min-width:0}.card-generation-summary{gap:12px}.card-expiry-preview{padding:15px;margin:18px 0 14px}.dialog-inline-actions .button{flex:1}.duration-preset{padding:5px 12px;min-height:38px}.settings-grid{padding:16px;gap:13px}.settings-item{padding:18px}.code-list{font-size:16px}.login-form-area{padding:32px 22px}.code-wrap{gap:8px}.code-wrap .button{padding:10px 12px}.login-story{display:none}.login-layout{display:block}.login-form-area{min-height:100vh}}
@media(max-height:820px) and (min-width:821px){.sidebar{padding-top:20px}.sidebar .brand{margin-bottom:18px}.nav-item{min-height:43px;padding-top:9px;padding-bottom:9px}.sidebar-promo{display:none}.service-status{margin-bottom:16px}.sidebar-bottom{padding-top:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* User details, batch operations and account security */
.panel-actions,.dialog-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;margin:22px 0}
.detail-facts>div{min-width:0;padding:12px 14px;background:#f4f8fa;border:1px solid #e5edf1;border-radius:10px}
.detail-facts dt{font-size:var(--text-small);color:#698197;line-height:1.6}
.detail-facts dd{margin:7px 0 0;font-size:var(--text-label);color:#2c4b60;line-height:1.65;overflow-wrap:anywhere}
.detail-section{margin-top:26px;padding-top:22px;border-top:1px solid #e5edf1;min-width:0}
.detail-section-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.detail-section-heading h3{margin:0}
.detail-section .table-wrap,.batch-detail .table-wrap{border:1px solid #e3ebf0;border-radius:10px;margin-top:16px}
.detail-section td,.batch-detail td{font-size:var(--text-small);padding:14px}
.record-id{font-family:ui-monospace,Consolas,monospace;max-width:250px;white-space:normal;overflow-wrap:anywhere}
.batch-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}
.batch-stats article{padding:15px 10px;text-align:center;border:1px solid #dcebe7;background:#f1faf7;border-radius:11px;min-width:0}
.batch-stats span{display:block;color:#5c7c74;font-size:var(--text-small)}
.batch-stats strong{display:block;font-size:clamp(24px,2vw,32px);margin-top:5px;color:#226d5e;font-variant-numeric:tabular-nums}
.batch-detail .dialog-inline-actions{margin:20px 0 12px}
.security-actions{padding:4px 22px 10px}
.security-actions article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0}
.security-actions article+article{border-top:1px solid #e5edf1}
.security-actions article>div{min-width:0}
.security-actions h3{margin-bottom:8px}
.security-actions p{margin-bottom:0}
.security-actions .button{flex-shrink:0}
.password-fields{grid-template-columns:minmax(0,1fr)}
.user-detail>.subject{padding:12px 0}
.device{gap:16px;min-width:0}
.device>div{min-width:0}
.device .device-id{overflow-wrap:anywhere;white-space:normal}
.device .text-button{flex-shrink:0}
@media(max-width:560px){
  .detail-facts{grid-template-columns:minmax(0,1fr);gap:10px}
  .batch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .batch-stats article:first-child{grid-column:1/-1}
  .panel-actions{width:100%}
  .panel-actions>.button{flex:1}
  .security-actions{padding:0 16px}
  .security-actions article{align-items:stretch;flex-direction:column;gap:14px;padding:20px 0}
  .device{flex-direction:column;align-items:flex-start}
  .detail-section .pagination,.batch-detail .pagination{padding:14px 0}
}

/* v1.4 calm operations workspace */
:root{
  --ink:#243b53;
  --muted:#6f8294;
  --line:#dfe7ed;
  --surface:#ffffff;
  --surface-alt:#f5f8fa;
  --canvas:#eef3f7;
  --accent:#087f79;
  --accent-strong:#066b66;
  --radius:12px;
}
html,body{background:var(--canvas);overflow-x:hidden}
body{color:var(--ink)}
.workspace{background:var(--canvas);min-height:100vh}
.sidebar{background:#12283c;box-shadow:none;border-right:1px solid #0d2031}
.brand-mark{background:#128d85;box-shadow:none;border-radius:10px}
.sidebar-promo{background:#18344a;border-color:#2c4b61;box-shadow:none}
.nav-item{border-radius:8px;color:#aebdcc}
.nav-item:hover{background:#1a344a;color:#f4fbfb}
.nav-item.active{background:#194253;color:#9ce3d4;box-shadow:inset 3px 0 #5fd1bc}
.nav-item.active:before{display:none}
.nav-item.active>span{background:#225e64;color:#b0f0e0}
.topbar{background:#fff;backdrop-filter:none;box-shadow:0 1px 0 #dfe7ed;position:sticky;top:0}
.topbar-search{background:#f7fafc;box-shadow:none;border-color:#dce6ec}
.topbar-search:focus-within{background:#fff}
.topbar-avatar{background:#264b65;box-shadow:none}
#main-content{background:var(--canvas)}
.dashboard-heading{background:#f5f9fb;border-bottom:1px solid #dce7ed;min-height:174px;padding-top:30px;padding-bottom:26px}
.dashboard-heading:after{content:none}
.dashboard-heading h1{color:#203c54}
.dashboard-heading .page-description{color:#71869a}
.date-card{background:#fff;box-shadow:none;border-color:#dce7ed}
.date-card>span{background:#edf7f5;color:#087f79}
.dashboard-stat,.panel,.quick-action{background:var(--surface);border-color:var(--line);box-shadow:none}
.dashboard-stat{border-radius:12px;min-height:148px}
.dashboard-stat:hover{transform:translateY(-1px);box-shadow:0 7px 18px #263d4b12}
.dashboard-stat-copy strong{color:#213d55}
.dashboard-stat-foot{border-top-color:#edf1f4}
.dashboard-icon{border-radius:10px}
.panel{border-radius:12px}
.panel-header,.dashboard-grid .panel-header{background:#fff;border-bottom-color:#e8eef2}
.dashboard-panel-body{background:#fff}
.dashboard-columns{background:#f5f8fa;color:#74899b}
.dashboard-row{border-bottom-color:#e8eef2}
.dashboard-row:hover{background:#f8fbfb}
.quick-action{border-radius:10px}
.quick-action:hover{background:#f5fbfa;border-color:#b9ddd7;box-shadow:0 7px 18px #1b6b6412}
.toolbar{background:#f8fafb;border-bottom-color:#e1e9ee}
.toolbar input,.toolbar select{background:#fff}
th{background:#f5f8fa;color:#60788d}
tr:hover td{background:#f6fbfa}
.badge{border-radius:6px}
.notice{background:#f1faf7;border-color:#cbe5dd}
.card-expiry-preview{background:#f1faf7;border-color:#cbe5dd}
dialog{border-radius:14px;box-shadow:0 18px 60px #1a31431f}
.dialog-heading,.dialog-actions{background:#fff}
.settings-item{background:#f6f9fa;border-color:#e0e8ed}
.loading{background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-bottom:20px}
#page-content[data-refreshing="true"]{position:relative;min-height:160px;pointer-events:none}
#page-content[data-refreshing="true"]::after{content:"正在刷新数据…";position:absolute;inset:0;display:grid;place-items:center;background:#ffffffc9;color:#567187;font-size:var(--text-small);backdrop-filter:blur(2px)}
footer{background:var(--canvas)}
.button.primary{background:var(--accent-strong);box-shadow:none}
.button.primary:hover:not(:disabled){background:#055a56;box-shadow:0 5px 14px #087f7929}
.button.secondary{background:#fff;border-color:#d6e1e7;color:#456175;box-shadow:none}
.button.secondary:hover:not(:disabled){background:#f1f7f7;border-color:#9bc8c1}
.text-button{color:#087f79}
.text-button:hover{background:#eaf7f5}
button:focus-visible,a:focus-visible{outline-color:#15988e}

@media(max-width:820px){
  .sidebar{background:#12283c;border-right:0}
  .topbar{position:static}
  .dashboard-heading{min-height:0;background:#f5f9fb}
}
@media(max-width:560px){
  .dashboard-heading{padding:24px 16px 20px}
  .dashboard-stat{min-height:0}
  .panel,.dashboard-stat,.quick-action{border-radius:10px}
  .loading{margin-bottom:12px}
}

/* v1.5 brand finish */
.topbar{display:flex;align-items:center;gap:24px}
.topbar-context{display:flex;flex-direction:column;gap:2px;min-width:142px;padding-left:2px}
.topbar-context span{font-size:10px;line-height:1.3;letter-spacing:2px;color:#78a09d;font-weight:700}
.topbar-context strong{font-size:14px;line-height:1.4;color:#284b5a;font-weight:700}
.topbar-search{flex:1;width:auto;max-width:520px}
.topbar-right{margin-left:auto}
.dashboard-heading{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#f7fbfc 0%,#f2f8fa 62%,#eaf7f4 100%)}
.dashboard-heading::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#0a9b91,#55cbb5);z-index:-1}
.dashboard-heading::after{content:"";position:absolute;right:4%;top:-90px;width:250px;height:250px;border:1px solid #8ccfc566;border-radius:50%;box-shadow:0 0 0 18px #ffffff35,0 0 0 36px #ffffff24;pointer-events:none;z-index:-1}
.dashboard-heading>div:first-child{padding-left:12px}
.dashboard-heading .eyebrow{color:#258f88;font-weight:800}
.dashboard-heading h1{letter-spacing:-1px}
.dashboard-heading .welcome-line strong{color:#1f5360}
.date-card{min-width:208px}
.date-card>span{box-shadow:inset 0 0 0 1px #c8e7e1}
.button.secondary#refresh{border-color:#b9d8d5;color:#176c69;background:#ffffffd9}
.dashboard-stats{gap:15px}
.dashboard-stat{border-top:3px solid #d9eeeb;min-height:151px;padding-top:19px;box-shadow:0 3px 12px #203c4d09}
.dashboard-stat:nth-child(2){border-top-color:#f4dfb8}
.dashboard-stat:nth-child(3){border-top-color:#f2d1b4}
.dashboard-stat:nth-child(4){border-top-color:#c7e7f3}
.dashboard-stat::after{content:"";position:absolute;right:-24px;bottom:-42px;width:112px;height:112px;border-radius:50%;background:#edf8f6;opacity:.7;pointer-events:none}
.dashboard-stat:nth-child(2)::after{background:#fff8e8}.dashboard-stat:nth-child(3)::after{background:#fff4e9}.dashboard-stat:nth-child(4)::after{background:#eef8fc}
.dashboard-stat-copy,.dashboard-stat-foot{position:relative;z-index:1}
.dashboard-stat-copy strong{letter-spacing:-1.3px}
.dashboard-stat-foot{font-size:13px}
.dashboard-grid{gap:16px}
.dashboard-grid .panel{box-shadow:0 3px 12px #203c4d08}
.dashboard-grid .panel-header,.dashboard-view>.panel:last-of-type .panel-header{position:relative}
.dashboard-grid .panel-header h3,.dashboard-view>.panel:last-of-type .panel-header h3{display:flex;align-items:center;gap:9px}
.dashboard-grid .panel-header h3::before,.dashboard-view>.panel:last-of-type .panel-header h3::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#12a095;box-shadow:0 0 0 4px #e4f5f2;flex:0 0 auto}
.dashboard-grid .panel:nth-child(2) .panel-header h3::before{background:#d79b3a;box-shadow:0 0 0 4px #fff5e2}
.dashboard-grid .panel:nth-child(3) .panel-header h3::before{background:#4e9fd0;box-shadow:0 0 0 4px #eaf5fc}
.dashboard-grid .panel-header .text-button,.dashboard-view>.panel:last-of-type .panel-header .text-button{border-radius:7px}
.dashboard-view>.panel:last-of-type{box-shadow:0 3px 12px #203c4d08;border-color:#d9e5e9}
.dashboard-view>.panel:last-of-type .panel-header{background:linear-gradient(90deg,#ffffff,#f8fcfb)}
.dashboard-quick-grid{gap:12px}
.dashboard-quick-grid .quick-action{min-height:104px;background:#fbfdfd;border-color:#dce8ea;box-shadow:0 2px 7px #203c4d08}
.dashboard-quick-grid .quick-action:hover{transform:translateY(-2px);background:#ffffff;box-shadow:0 8px 20px #0d6f6818}
.dashboard-quick-grid .dashboard-icon{box-shadow:inset 0 0 0 1px #ffffff80}
.dashboard-notice{border-left:4px solid #28a996;padding-left:16px;background:#effaf7}
footer{color:#7890a0}
@media(max-width:1150px){.topbar{gap:14px}.topbar-context{min-width:118px}.topbar-search{max-width:none}.dashboard-heading::after{right:-6%;opacity:.65}}
@media(max-width:700px){.topbar-context{display:none}.topbar{gap:10px}.dashboard-heading::after{display:none}.dashboard-heading>div:first-child{padding-left:7px}.dashboard-stat::after{display:none}.dashboard-view>.panel:last-of-type .panel-header{background:#fff}}

/* Keep panels tactile after the responsive overrides. */
.panel{box-shadow:0 8px 24px #1523340a}

/* Lightweight line icons for the account controls. */
.topbar-chevron{width:34px;height:34px;padding:6px;border:0;background:transparent;box-shadow:none;color:#7890a2}
.topbar-chevron:hover:not(:disabled),.topbar-chevron[aria-expanded=true]{background:#edf8f6;border:0;box-shadow:none;color:#087f79}
.chevron-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.topbar-chevron[aria-expanded=true] .chevron-icon{transform:rotate(180deg)}
.logout-button .logout-icon{display:block;width:22px;height:22px;border:0;border-radius:0;background:transparent;color:currentColor;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:color .16s ease,transform .16s ease}
.logout-button:hover:not(:disabled) .logout-icon,.logout-button:focus-visible .logout-icon{background:transparent;color:#9ce3d4;transform:translateX(2px)}
