:root{font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#202b3e;background:#f5f6fa;line-height:1.6;font-synthesis:none;--accent:#355ee8;--muted:#758098;--border:#e4e8f0;--surface:#fff;--soft:#f8f9fc;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #a9baff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.25;letter-spacing:-.04em;margin-bottom:12px}h2{font-size:18px;line-height:1.5;margin-bottom:12px}h3{font-size:15px;margin-bottom:5px}.site-width{width:min(1180px,calc(100% - 64px));margin:auto}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;color:inherit;font-size:16px;font-weight:750;letter-spacing:.02em}.brand:hover{text-decoration:none}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:.05em;color:var(--muted)}.brand-mark{width:38px;height:38px;display:block;flex:none;object-fit:contain;background:transparent;border-radius:0}.muted,.small{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:12px;letter-spacing:.09em;color:var(--accent);font-weight:650;margin-bottom:16px}.auth-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:90px;align-items:center;min-height:calc(100vh - 200px);max-width:1020px;margin:auto;padding:30px 0 70px}.auth-intro h1{font-size:46px;letter-spacing:-.04em;line-height:1.4}.auth-intro>p{max-width:330px;color:var(--muted);font-size:16px}.intro-detail{display:flex;gap:30px;margin-top:50px;color:#8993a6;font-size:12px;border-top:1px solid var(--border);padding-top:22px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;margin-bottom:22px;box-shadow:0 4px 14px #172b4d03;min-width:0}.login-card{padding:34px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);margin-bottom:24px;overflow-x:auto}.tabs button{position:relative;border:0;background:none;color:#7b8598;white-space:nowrap;padding:12px 0;font-size:14px;font-weight:550}.tabs button.active{color:var(--accent)}.tabs button.active:after{content:"";position:absolute;bottom:0;height:3px;left:0;right:0;background:var(--accent);border-radius:3px}.page-tabs{gap:30px}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:26px 0 14px;gap:24px}.page-heading .eyebrow{margin-bottom:8px}.page-heading p:last-child{margin-bottom:14px}label{display:block;font-size:13px;font-weight:550;margin:18px 0;color:#48536a}input,textarea,select{display:block;width:100%;margin-top:7px;padding:11px 13px;border:1px solid #dce1eb;border-radius:9px;outline:none;background:#fff;color:#222e45;min-width:0}textarea{resize:vertical;min-height:100px}input:focus,textarea:focus,select:focus{border-color:#7d98f5;box-shadow:0 0 0 3px #355ee811}.primary,.secondary,.danger,.icon-button{border-radius:9px;padding:10px 18px;border:1px solid transparent;font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.primary{background:var(--accent);color:#fff}.primary:hover{background:#274ed0}.secondary{color:#52617a;border-color:#dfe4ee;background:#fff}.secondary:hover{border-color:#9dadce;background:#f8faff}.danger{background:#fff3f3;border-color:#f7d0d0;color:#bd4141}.danger:hover{background:#ffe6e6}.full-width{width:100%}.message{font-size:13px;color:#bc4141;margin:12px 0;min-height:21px;overflow-wrap:anywhere}.success{color:#238161}.notice{background:#fff1ed;border:1px solid #f3d5c9;color:#af5036;border-radius:10px;padding:12px 18px;margin:12px 0;font-size:13px}.notice.success{background:#edf9f3;border-color:#c9e8d8;color:#287b52}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.metric span,.metric small{color:var(--muted);font-size:13px}.metric strong{display:block;font-size:34px;font-weight:650;margin:9px 0 3px;line-height:1.2}.metric small{font-size:11px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.panel-title h2,.panel-title p{margin-bottom:0}.panel-title p{font-size:13px;margin-top:5px}.list{display:grid;gap:12px}.empty{padding:50px 16px;text-align:center;color:#8e98a9;font-size:14px;margin:0;background:var(--soft);border-radius:10px}.record{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--soft);border:1px solid #edf0f6;padding:16px 18px;border-radius:11px;min-width:0}.record-content{min-width:0;flex:1}.record-content b{font-size:13px;overflow-wrap:anywhere}.record-content small{display:block;color:var(--muted);font-size:12px;margin-top:5px;overflow-wrap:anywhere}.record-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.badge{font-size:11px;border-radius:6px;padding:4px 9px;background:#edf1fb;color:#60739e;display:inline-block;white-space:nowrap}.state-paid,.state-active,.state-published,.state-resolved{background:#e5f4ec;color:#26805a}.state-pending{background:#fff4db;color:#a57a22}.state-frozen,.state-revoked{background:#ffeded;color:#bf5454}.state-canceled,.state-expired,.state-withdrawn{background:#eceff4;color:#858fa3}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:22px;font-size:12px;color:var(--muted)}.purchase-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px}.plan{background:linear-gradient(145deg,#f0f4ff,#fff)}.plan .price{display:block;font-size:44px;color:#263d7e;letter-spacing:-.05em;margin:24px 0 0}.plan>p:not(.eyebrow){font-size:13px;color:#7584a4}.benefits{list-style:none;padding:18px 0 0;border-top:1px solid #dfe6f6;color:#61718e;font-size:13px}.benefits li{margin:12px 0}.benefits li:before{content:"✓";margin-right:12px;color:var(--accent)}.narrow{max-width:660px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}footer{display:flex;justify-content:space-between;align-items:center;padding:34px 0;font-size:12px;color:#98a1b1}footer a{color:#8490a5}dialog{border:1px solid var(--border);border-radius:18px;padding:28px;width:min(580px,calc(100% - 32px));max-height:85vh;color:inherit;background:#fff;box-shadow:0 25px 100px #172a4f30}dialog::backdrop{background:#14233d55;backdrop-filter:blur(5px)}.icon-button{font-size:24px;line-height:1;padding:4px 9px;background:transparent;color:#8390a6}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.detail-row{display:flex;justify-content:space-between;gap:25px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.detail-row span:first-child{color:var(--muted)}.detail-row span:last-child{overflow-wrap:anywhere;text-align:right}.admin-layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:32px 20px;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 12px 32px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;background:none;border:0;border-radius:9px;color:#768298;font-size:13px}.sidebar nav button.active{background:#eef2ff;color:var(--accent);font-weight:650}.nav-symbol{font-size:16px;line-height:1;width:20px;text-align:center}.sidebar-bottom{margin-top:auto;padding:24px 12px 0;font-size:11px;color:#95a0b4}.sidebar-bottom a{display:block;margin-top:12px}.admin-main{padding:0 40px 30px;min-width:0}.admin-header{display:flex;align-items:center;justify-content:space-between;min-height:90px;gap:18px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}.admin-content{max-width:1400px;margin:auto}.filterbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:24px}.filterbar label{margin:0}.filterbar input,.filterbar select{margin:0;min-height:41px}.filterbar label.search-field{flex:1;min-width:160px}.filterbar select{width:auto;min-width:140px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.data-table th{font-size:11px;color:#929bad;background:#f8f9fc;font-weight:500;padding:13px 14px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{padding:17px 14px;border-bottom:1px solid #edf0f5;vertical-align:middle}.data-table tbody tr:hover{background:#fbfcff}.data-table td small{display:block;font-size:11px;color:#99a2b3;margin-top:5px}.order-number{font-size:11px;font-weight:600;white-space:nowrap}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.content-card{border:1px solid var(--border);padding:20px;border-radius:12px}.content-card .record-actions{margin-top:15px}.admin-login-shell{min-height:100vh;display:grid;place-items:center;padding:32px}.admin-login-shell .login-card{width:min(440px,100%)}.admin-login-shell .brand{margin-bottom:35px}.admin-login-shell h1{font-size:26px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.panel-title{flex-wrap:wrap}.panel-title>.tabs{margin-bottom:0}.sidebar nav{overflow-y:auto;min-height:0}
@media(max-width:700px){.sidebar nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important}.sidebar nav button{min-width:0}.panel-title>.record-actions{width:100%}.panel-title>.record-actions button{flex:1}}
@media(max-width:1000px){.auth-layout{gap:40px}.auth-intro h1{font-size:36px}.admin-layout{grid-template-columns:190px minmax(0,1fr)}.admin-main{padding:0 24px 24px}.record{align-items:flex-start}.record-actions{justify-content:flex-end}.panel{padding:22px}}
@media(max-width:700px){.site-width{width:calc(100% - 32px)}.topbar{height:76px}.auth-layout{grid-template-columns:1fr;gap:25px;padding:30px 0;min-height:0}.auth-intro h1{font-size:30px}.auth-intro>p{font-size:14px;max-width:100%}.intro-detail{display:none}.login-card{padding:24px}.metrics{gap:10px}.metric{padding:18px 12px}.metric strong{font-size:26px}.metric small{display:none}.metric span{font-size:11px}.purchase-layout,.two-columns,.field-grid{grid-template-columns:1fr}.record{flex-direction:column;gap:12px}.record-actions{justify-content:flex-start}.page-heading{padding-top:18px}h1{font-size:26px}.panel-title{gap:10px}.page-tabs{gap:22px}.admin-layout{display:block}.sidebar{position:static;height:auto;padding:18px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{padding:0 0 18px}.sidebar nav{display:flex;overflow:auto;gap:6px}.sidebar nav button{white-space:nowrap;padding:9px 12px}.sidebar-bottom{display:none}.admin-main{padding:0 16px 24px}.admin-header{min-height:65px}.filterbar{gap:8px}.filterbar select{min-width:120px}.filterbar .primary{margin-left:auto}.panel{padding:18px}.plan .price{font-size:36px}}

.payment-code{text-align:center;padding:20px 0}.payment-code img{max-width:100%;height:auto;border:1px solid var(--border);border-radius:12px}.factor-qr{display:block;margin:16px auto}.sidebar nav{scrollbar-width:thin}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.hint{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.field>label{margin-bottom:0}.metric{min-width:0}.table-scroll{max-width:100%}.data-table td{overflow-wrap:anywhere}
/* Auth modes share the same two field rows, so switching never changes the page height. */
.auth-field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.auth-field-grid:has(>[hidden]){grid-template-columns:minmax(0,1fr)}.auth-field-grid>label{margin:10px 0 14px}.auth-layout .login-card{min-height:530px;width:100%;align-self:center}.captcha-label{margin:14px 0 7px}.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 162px;gap:12px;align-items:center}.captcha-row input{margin:0;height:54px}.captcha-image{display:grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:var(--soft);height:54px;width:162px}.captcha-image img{display:block;width:162px;height:54px;object-fit:cover}.captcha-hint{font-size:11px;color:var(--muted);margin:6px 0 10px}.auth-layout #auth-message{min-height:42px;margin:8px 0}.auth-layout .login-card>.tabs{margin-bottom:14px}.auth-layout{padding-top:20px;padding-bottom:30px}@media(max-width:700px){.auth-layout{gap:20px;padding-top:12px}.auth-intro h1{font-size:26px;margin-bottom:10px}.auth-intro>p{margin-bottom:0}.auth-layout .login-card{min-height:510px}.auth-field-grid{gap:12px}.captcha-row{grid-template-columns:minmax(0,1fr) 135px;gap:10px}.captcha-image,.captcha-image img{width:135px;height:45px}.captcha-row input{height:45px}}

[data-view=distribution] .jobs-block{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}[data-view=distribution] .jobs-block .data-table{min-width:720px}[data-view=distribution] .content-card .panel-title{margin-bottom:8px}[data-view=distribution] .content-card h3{margin:0}

#order-workspace .data-table{min-width:860px}#order-workspace input[type=checkbox]{display:inline-block;width:16px;height:16px;min-height:16px;padding:0;margin:0;accent-color:var(--accent);flex:none}#order-workspace .order-batchbar{align-items:center;gap:12px}#order-workspace .order-batchbar label{display:flex;align-items:center;gap:8px;white-space:nowrap}#order-workspace .order-batchbar input[type=text]{flex:1;width:auto;min-width:180px;max-width:360px}#order-workspace .order-batchbar .badge{white-space:nowrap}
.transfer-progress{width:100%;min-width:140px;max-width:640px;padding:14px 16px;margin:12px 0;border:1px solid var(--border);border-radius:12px;background:var(--soft)}.transfer-progress[hidden]{display:none}.transfer-title{font-size:13px;font-weight:600;margin:0 0 8px;overflow-wrap:anywhere}.transfer-progress progress{display:block;width:100%;height:8px;border:0;border-radius:20px;overflow:hidden;accent-color:var(--accent);background:var(--border)}.transfer-progress progress::-webkit-progress-bar{background:var(--border);border-radius:20px}.transfer-progress progress::-webkit-progress-value{background:var(--accent);border-radius:20px}.transfer-progress .hint{margin:8px 0 0}.transfer-failed{border-color:var(--danger,#b42318)}.transfer-failed .transfer-title{color:var(--danger,#b42318)}.jobs-block td .transfer-progress{min-width:185px;padding:9px 10px;margin:0;background:transparent}.jobs-block td .transfer-title{font-size:12px}@media(prefers-reduced-motion:reduce){.transfer-progress progress{animation:none}}

.server-import{background:var(--soft);margin-bottom:22px}.server-import code{display:block;overflow-wrap:anywhere;margin-bottom:16px;font-size:12px}.server-import .filterbar{align-items:center;margin-bottom:16px}.server-import select{width:min(100%,360px);max-width:100%;min-width:0}.server-import progress{display:block;width:100%;height:8px;accent-color:var(--accent);margin-bottom:12px}.server-import [role=status]{margin-bottom:0}
[data-view=licenses] .data-table{min-width:660px}[data-view=licenses] .data-table td:first-child{min-width:190px}[data-view=licenses] .record-actions{gap:10px}#license-change-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}#license-change-form input[type=checkbox]{flex:none}
/* User management owns its search sizing and table overflow; other pages keep their layout. */
.users-panel .users-summary{display:flex;flex-wrap:wrap;gap:24px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.users-panel .users-summary .metric{flex:0 1 240px;padding:0}
.users-panel .users-summary .metric small{display:block}
.users-panel .users-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:12px;margin-bottom:8px}
.users-panel .users-search .field{min-width:0}
.users-panel .users-search label{margin:0 0 7px}
.users-panel .users-search button{min-height:41px}
.users-panel .users-search-hint{margin:0 0 24px}
.users-panel .data-table{min-width:940px;table-layout:fixed}
.users-panel .data-table th:first-child{width:15%}
.users-panel .data-table th:nth-child(2){width:20%}
.users-panel .data-table th:nth-child(3){width:9%}
.users-panel .data-table th:nth-child(4),.users-panel .data-table th:nth-child(5){width:6%}
.users-panel .data-table th:nth-child(6){width:18%}
.users-panel .data-table th:last-child{width:26%}
.users-panel .record-actions{gap:8px}
.users-panel .users-identity{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.users-panel .record-actions button{padding:8px 10px}
.users-panel .pagination{flex-wrap:wrap;gap:10px}
@media(max-width:700px){.users-panel .users-search{grid-template-columns:minmax(0,1fr) auto}.users-panel .users-search .field{grid-column:1/-1}.users-panel .users-search .primary{margin-left:0}.users-panel .users-summary{gap:16px}.users-panel .users-summary .metric{flex:1 1 100px}.users-panel .pagination{justify-content:flex-start}.users-panel .pagination .hint{flex:1;min-width:95px;text-align:center}}
/* Operations center: local checks, task links and copyable commands. */
#operations-view .ops-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin-bottom:20px}
#operations-view .ops-check{border:1px solid var(--border);border-radius:10px;padding:16px;min-width:0}
#operations-view .ops-check .panel-title{margin-bottom:12px;gap:10px}
#operations-view .ops-check p{overflow-wrap:anywhere}
#operations-view .ops-check h3{margin:0}
#operations-view .ops-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
#operations-view .ops-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
#operations-view .ops-fields label{margin:0;min-width:0}
#operations-view .ops-fields .ops-shortcuts{grid-column:1/-1;margin-top:12px}
#operations-view .ops-recipe{border-top:1px solid var(--border);padding:16px 0;min-width:0}
#operations-view .ops-recipe summary{cursor:pointer;font-weight:600;margin-bottom:12px}
#operations-view .ops-recipe pre{max-width:100%;overflow:auto;background:var(--soft);padding:16px;border-radius:8px;font-size:12px;line-height:1.7}
#operations-view .ops-recipe textarea{font-family:monospace}
@media(max-width:700px){#operations-view .ops-fields{grid-template-columns:minmax(0,1fr)}#operations-view .ops-check .panel-title{flex-wrap:wrap}}
#operations-view .ops-parameters{margin:16px 0 22px;border:1px solid var(--border);border-radius:10px;padding:16px}
#operations-view .ops-parameters summary,#operations-view .ops-guide summary{cursor:pointer;font-size:13px}
#operations-view .ops-parameters[open] summary{margin-bottom:20px}
#operations-view .ops-guide{margin-bottom:20px;color:var(--muted)}
#operations-view .ops-steps{font-size:13px;line-height:1.8;padding-left:24px}
