:root{font-family:-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;font-synthesis:none;color:var(--ink);background:#fafafa;--text-caption:.6875rem;--text-secondary:.75rem;--text-table:.8125rem;--text-body:.875rem;--text-heading:1.25rem;--ink:#18181b;--ink-muted:#707070;--border:#e0e0e0;--surface:#fff;--focus:#287448;--sidebar-width:235px}
*{box-sizing:border-box}
body{margin:0;font-size:var(--text-body);line-height:1.5}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
a{color:inherit}
.icon{display:block;width:18px;height:18px;flex:0 0 18px}
.layout{min-height:100vh;display:flex}
.sidebar{width:var(--sidebar-width);background:var(--surface);border-right:1px solid #e8e8e8;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5;transition:width .2s ease}
.brand{height:60px;flex-shrink:0;padding:17px 18px;display:flex;align-items:center}
.brand-logo{display:block;width:150px;height:25px}
.brand-icon{display:none;width:30px;height:30px;object-fit:contain}
.collapse-nav{margin:0 12px 12px;height:33px;flex-shrink:0;background:#fff;color:var(--ink-muted);border:1px solid var(--border);border-radius:6px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:var(--text-secondary)}
.collapse-nav:hover{background:#f5f5f5;color:var(--ink)}
.collapse-nav .icon{width:14px;height:14px;flex-basis:14px}
.nav{padding:9px 12px 14px;display:flex;flex-direction:column;gap:3px;border-top:1px solid #ededed;overflow:auto;scrollbar-width:thin}
.nav a{display:flex;align-items:center;gap:12px;min-height:37px;padding:8px 12px;color:#3f4340;text-decoration:none;border-radius:8px;font-size:var(--text-body);font-weight:500;white-space:nowrap}
.nav a:hover{background:#f5f5f5;color:var(--ink)}
.nav a.active{background:#d2f7e0;color:#135f35}
.side-bottom{margin-top:auto;border-top:1px solid #ededed;padding:13px 12px;color:#626962}
.side-account{display:flex;align-items:center;gap:7px;margin-bottom:9px;min-width:0;font-size:var(--text-secondary)}
.side-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role-badge{flex:none;border:1px solid var(--border);background:#fff;border-radius:99px;padding:1px 8px;color:#444;font-size:var(--text-caption)}
.logout-button{width:100%;height:36px;display:flex;align-items:center;gap:9px;padding:0 11px;background:#fff;border:1px solid var(--border);border-radius:8px;color:#414741;text-align:left;font-size:var(--text-table)}
.logout-button:hover{background:#f5f5f5}
.logout-button .icon{width:16px;height:16px;flex-basis:16px}
.main{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));min-width:0;padding:32px 32px 56px;transition:margin-left .2s ease,width .2s ease}
.content{max-width:1400px;margin:0 auto}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
.topbar h1{margin:0 0 2px;font-size:var(--text-heading);font-weight:600;line-height:1.2;letter-spacing:0}
.subtitle{margin:0;color:var(--ink-muted);font-size:var(--text-body);line-height:1.5}
.top-brand{display:none}
.top-orb{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#e4f6ea;display:grid;place-items:center;color:#35764e}
.nav-collapsed{--sidebar-width:70px}
.nav-collapsed .brand{justify-content:center;padding:14px}
.nav-collapsed .brand-logo{display:none}
.nav-collapsed .brand-icon{display:block}
.nav-collapsed .collapse-nav{margin-left:10px;margin-right:10px}
.nav-collapsed .collapse-nav .icon{transform:rotate(180deg)}
.nav-collapsed .collapse-nav span,.nav-collapsed .nav-label,.nav-collapsed .side-account,.nav-collapsed .logout-button span{display:none}
.nav-collapsed .nav a,.nav-collapsed .logout-button{justify-content:center}
.nav-collapsed .nav{padding-left:9px;padding-right:9px}
.button{height:36px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--ink);padding:0 12px;font-size:var(--text-body);font-weight:500;line-height:1;text-decoration:none;white-space:nowrap}
.button:hover{background:#f5f5f5}
.button.primary{background:#171a18;border-color:#171a18;color:#fff}
.button.primary:hover{background:#343b36}
.button.danger,.link-action.danger{color:#aa3434}
.buttons,.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.input{width:100%;min-width:0;height:36px;border:1px solid #dcdcdc;border-radius:8px;background:#fff;color:var(--ink);padding:7px 10px;font-size:var(--text-body);line-height:1.4}
.input::placeholder{color:#737373;opacity:1}
.input:focus{border-color:#7caf8c}
.input:disabled{background:#f5f5f5;color:#707070}
textarea.input{height:auto;min-height:120px;resize:vertical;line-height:1.6}
select.input{appearance:none;-webkit-appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0 0 14px}
.field label{font-size:var(--text-table);font-weight:500;color:var(--ink);line-height:1.5}
.field .help{margin:2px 0 0}
.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:12px}
.muted,.help{font-size:var(--text-secondary);color:var(--ink-muted);line-height:1.6}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;overflow-wrap:anywhere}
.amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.panel,.metric{background:var(--surface);border:1px solid var(--border);border-radius:8px}
.panel{padding:20px;margin-top:24px}
#page>.panel:first-child{margin-top:0}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.panel h2,.panel h3,.list-section h2{font-size:var(--text-body);font-weight:600;margin:0}
.metric{padding:18px;min-height:108px}
.label{font-size:var(--text-secondary);color:var(--ink-muted)}
.value{font-size:27px;font-weight:600;letter-spacing:-.02em;margin:4px 0}
.stats-row{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:0 0 15px;font-size:var(--text-table)}
.bar{grid-column:1/-1;grid-row:2;width:100%;height:6px;appearance:none;border:0;background:#eee}
.bar::-webkit-progress-bar{background:#eee}
.bar::-webkit-progress-value{background:#272b28}
.bar::-moz-progress-bar{background:#272b28}
.notice{display:flex;justify-content:space-between;align-items:center;gap:16px}
.notice strong{display:block;margin:6px 0}
.notice-box,.issue-info,.card-alert{border:1px solid #d7e5db;border-radius:8px;padding:12px 14px;background:#f6faf7;color:#46604e;font-size:var(--text-table);line-height:1.6}
.notice-box a{color:#226a3c;font-weight:500}
.warning,.issue-info,.card-alert{background:#fffbf3;border-color:#ebd3ab;color:#79531f}
.issue-info{margin:0 0 16px}
.card-alert{display:grid;gap:2px;margin:0 0 16px}
.card-alert strong{font-weight:600}
.divider{height:1px;background:#e8e8e8;margin:24px 0}
.list-toolbar,.cdk-toolbar,.toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.list-filters,.cdk-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0}
.search-control{display:flex;align-items:center;gap:8px;flex:0 1 320px;width:320px;min-width:160px;height:36px;padding:0 10px;border:1px solid #dcdcdc;background:#fff;border-radius:8px;color:var(--ink-muted)}
.search-control:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.search-control .input{flex:1;border:0;background:transparent;padding:0;height:32px;outline:none;font-size:var(--text-table)}
.search-control .icon{width:16px;height:16px;flex-basis:16px}
.list-status,.cdk-filters select{width:150px;font-size:var(--text-table);flex:0 0 150px}
.card-toolbar .cdk-filters{flex:1 1 440px}
.card-toolbar .search-control{flex:1 1 180px}
.card-toolbar .cdk-filters select{width:132px;flex-basis:132px}
.card-toolbar .buttons{margin-left:auto}
.card-intro{font-size:var(--text-table);color:var(--ink-muted);margin:0 0 16px;max-width:78ch}
.list-surface,.cdk-list{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
.table-wrap{overflow:auto}
.table{width:100%;min-width:620px;border-collapse:collapse;text-align:left;font-size:var(--text-table);line-height:1.5}
.table th{padding:8px 12px;font-size:var(--text-secondary);font-weight:500;line-height:1.5;color:var(--ink-muted);border-bottom:1px solid #d8d8d8;vertical-align:middle;white-space:nowrap}
.table td{padding:10px 12px;font-weight:400;color:var(--ink);border-bottom:1px solid #ebebeb;vertical-align:middle}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:#fcfcfc}
.list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
.list-footer .help{margin:0}
.pagination{display:flex;gap:8px;flex-shrink:0}
.list-section{margin-top:28px}
.list-section h2{margin:0 0 14px;font-size:15px}
.empty{padding:40px 16px;text-align:center;color:var(--ink-muted);font-size:var(--text-table)}
.empty-icon{display:flex;justify-content:center;margin-bottom:8px}
.empty-icon .icon{width:24px;height:24px}
.empty strong{display:block;font-size:var(--text-body);font-weight:500;color:#4d554f;margin-bottom:6px}
.badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;white-space:nowrap;flex-shrink:0;font-size:var(--text-secondary);line-height:1.4;font-weight:500;background:var(--status-bg,#f3f4f3);color:var(--status-ink,#59635c);box-shadow:inset 0 0 0 1px var(--status-border,#dce0dc)}
.card-status-success{--status-bg:#edf8f0;--status-ink:#21653b;--status-border:#b9dec5}
.card-status-danger{--status-bg:#fff1f0;--status-ink:#aa3434;--status-border:#efc4c0}
.card-status-warning,.badge.warn{--status-bg:#fff6e7;--status-ink:#865619;--status-border:#ead1a6}
.card-status-neutral,.badge.gray{--status-bg:#f3f4f3;--status-ink:#59635c;--status-border:#dce0dc}
.row-actions,.order-actions{display:flex;align-items:center;gap:8px}
.link-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:4px 6px;border:0;border-radius:6px;background:none;color:var(--ink);font-size:var(--text-table);font-weight:500;line-height:1;white-space:nowrap;text-decoration:none}
.link-action:hover{background:#f3f4f3}
.row-actions .link-action{white-space:nowrap;flex-shrink:0}
.cdk-table{min-width:780px}
.cdk-code{display:block;max-width:280px;font-size:var(--text-table);overflow-wrap:anywhere}
.cdk-table td:nth-child(2),.cdk-table td:nth-child(3),.cdk-table td:nth-child(5){white-space:nowrap}
.card-toolbar+.cdk-list .table{min-width:1080px}
.card-balance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.card-balance-toolbar .help{margin:0}
.card-balance-toolbar .button{flex-shrink:0}
.card-balance-cell{min-width:112px;font-variant-numeric:tabular-nums}
.card-balance-value{display:block;white-space:nowrap;font-size:var(--text-table)}
.card-balance-note{display:block;font-size:var(--text-caption);color:var(--ink-muted)}
.card-balance-note.is-stale{color:#865619}
.card-identity-cell{min-width:160px}
.card-number{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:var(--text-table);font-weight:400;white-space:nowrap}
.card-expiry{font-size:var(--text-caption);color:var(--ink-muted);white-space:nowrap}
.card-pool-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#0b0b0b;color:#fff;font-size:var(--text-secondary);font-weight:500;line-height:1.3;white-space:nowrap}
.card-pool-tag.is-unassigned{background:#f5f5f5;color:var(--ink-muted)}
.card-holder-cell{min-width:110px;max-width:180px;overflow-wrap:anywhere}
.table .card-billing-cell{min-width:96px;max-width:220px;font-size:var(--text-secondary);color:var(--ink-muted);overflow-wrap:anywhere}
.card-actions-cell{min-width:260px;width:260px}
.card-row-actions{flex-wrap:nowrap;gap:8px}
.card-row-actions .link-action{font-size:var(--text-body)}
.card-usage-cell{min-width:110px}
.card-usage-group{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}
.card-usage-number{display:block;font-size:var(--text-table);font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
.card-usage-note{display:block;flex-basis:100%;font-size:var(--text-caption);color:var(--ink-muted)}
.order-table-wrap{position:relative;isolation:isolate}
.order-table{min-width:930px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.order-identity-column{width:160px}
.order-plan-column{width:112px}
.order-status-column{width:112px}
.order-renewal-column{width:84px}
.order-date-column{width:104px}
.order-actions-column{width:64px}
.order-id{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;font-size:var(--text-secondary)}
.order-note{display:block;font-size:var(--text-caption);line-height:1.6;color:#646b66;margin-top:3px;overflow-wrap:anywhere}
.order-status-cell{min-width:104px}
.order-failure-cell{overflow-wrap:anywhere}
.order-failure{font-size:var(--text-table);line-height:1.65;overflow-wrap:anywhere}
.order-failure.is-failed{color:#aa3434}
.table .order-date{font-size:var(--text-secondary);white-space:nowrap;color:#646b66}
.order-date time>span{display:block}
.order-plan-cell,.order-renewal-cell,.order-status-cell .order-note{white-space:nowrap}
.order-table .order-actions-cell{text-align:right}
.order-actions{justify-content:flex-end;gap:4px;white-space:nowrap}
.order-debug-button{display:inline-flex;justify-content:center;align-items:center;width:36px;height:36px;flex-shrink:0;padding:8px;border:0;border-radius:6px;background:transparent;color:#252b27}
.order-debug-button:hover{background:#f0f3f1}
.order-help{font-size:var(--text-secondary);line-height:1.7}
.issue-dialog{width:min(560px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:0;border:0;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 16px 40px #0003}
.issue-dialog::backdrop{background:#0007;backdrop-filter:blur(2px)}
.issue-dialog-content{padding:20px}
.issue-dialog h2{font-size:17px;line-height:1.5;font-weight:600;margin:0 0 12px}
.issue-dialog h3{font-size:var(--text-body);font-weight:500}
.issue-dialog .field{margin-bottom:12px}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid #e8e8e8}
.dialog-actions .button{min-width:72px}
.card-section-title{font-size:var(--text-secondary);font-weight:500;margin:16px 0 8px}
.card-section-title.separated{border-top:1px solid #e8e8e8;padding-top:16px}
.paste-hint,.address-hint{margin:8px 0 12px}
.bulk-card-text{min-height:180px!important}
.card-holder-control{display:flex;align-items:stretch;gap:8px}
.card-holder-control .input{flex:1}
.card-holder-control .generate-holder{width:36px;min-width:36px;flex-basis:36px;padding:0}
.generate-holder svg{width:18px;height:18px}
.provider-checks{margin:16px 0 12px;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.provider-check{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;font-size:var(--text-table)}
.provider-check+.provider-check{border-top:1px solid var(--border)}
.provider-check strong{font-weight:500;text-align:right}
.direct-panel{padding:0;overflow:hidden}
.direct-empty{padding:20px;font-size:var(--text-table);color:var(--ink-muted)}
.direct-empty p{margin:0 0 16px;line-height:1.7;max-width:65ch}
.direct-history-link a{color:#246740}
.direct-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px;border-bottom:1px solid var(--border)}
.direct-heading h2{font-size:15px}
.direct-heading p{margin:4px 0 0;font-size:var(--text-table);color:var(--ink-muted)}
.direct-product{padding:3px 8px;background:#edf5ef;border-radius:6px;font-size:var(--text-secondary);color:#356145;white-space:nowrap}
.direct-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.68fr)}
.direct-form,.direct-summary{padding:20px;min-width:0}
.direct-section{border:0;padding:0;margin:0;min-width:0}
.direct-section legend{font-size:var(--text-body);font-weight:600;margin:0;padding:0}
.direct-section-help{color:var(--ink-muted);font-size:var(--text-secondary);margin:5px 0 16px}
.direct-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.direct-form .field{margin-bottom:16px}
.direct-form textarea.input{height:120px;min-height:104px;font-size:var(--text-secondary)}
.direct-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.direct-label-row a{color:#246740;text-decoration:none;font-size:var(--text-secondary);white-space:nowrap}
.direct-label-row a:hover{text-decoration:underline}
.direct-label-row span{color:#657069;font-size:var(--text-caption)}
.direct-form .help,.direct-summary .help{color:#606a63;margin:0}
.direct-credential{border-top:1px solid #e8ece9;margin-top:6px;padding-top:20px}
.direct-credential legend{float:left;margin-bottom:16px;width:100%}
.direct-credential .field{clear:both}
.direct-form-footer{border-top:1px solid #e8ece9;padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.direct-form-footer p{font-size:var(--text-secondary);color:#364c3d;margin:0;line-height:1.8}
.direct-form-footer p span{color:#606a63}
.direct-summary{background:#f7faf8;border-left:1px solid #e6eae7}
.direct-summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.direct-stage{font-size:var(--text-caption);color:#5b675f;padding:3px 8px;border:1px solid #dce4de;border-radius:5px;white-space:nowrap}
.direct-stage.is-ready{background:#e3f2e8;color:#22643b;border-color:#c6dfcf}
.direct-selection,.direct-account{margin:18px 0;font-size:var(--text-secondary)}
.direct-selection>div,.direct-account>div{display:flex;justify-content:space-between;gap:12px;margin:12px 0}
.direct-selection dt,.direct-account dt{color:#647068;flex:none}
.direct-selection dd,.direct-account dd{margin:0;text-align:right;color:#273d30;overflow-wrap:anywhere}
.direct-quote-placeholder{padding:20px 0;border-top:1px solid #dfe7e1;border-bottom:1px solid #dfe7e1}
.direct-quote-placeholder span,.direct-quote-label{font-size:var(--text-secondary);color:#606a63;margin:0}
.direct-quote-placeholder strong{display:block;font-size:18px;font-weight:500;color:#4a5c50;margin:10px 0}
.direct-quote-placeholder p{font-size:var(--text-secondary);color:#606a63;line-height:1.8;margin:0}
.direct-rules{margin-top:20px;font-size:var(--text-secondary);color:#546259}
.direct-rules summary{cursor:pointer}
.direct-rules p{line-height:1.8;margin:10px 0 0}
.direct-quote{border-top:1px solid #dfe7e1;padding-top:20px}
.direct-quote-amount{display:block;margin:8px 0;font-size:25px;font-variant-numeric:tabular-nums;color:#1f3c2b;overflow-wrap:anywhere}
.direct-quote-amount small{font-size:var(--text-table);font-weight:500}
.direct-fee{display:flex;justify-content:space-between;gap:12px;font-size:var(--text-secondary);color:#546259;margin:12px 0 20px}
.direct-account{padding:12px 0;border-top:1px solid #dfe7e1;border-bottom:1px solid #dfe7e1}
.direct-summary textarea{min-height:96px;font-size:var(--text-secondary)}
.direct-summary .button{width:100%;margin-top:14px}
.direct-error{border:1px solid #e4c3b8;background:#fff5ef;color:#863322;border-radius:8px;font-size:var(--text-table);line-height:1.7;padding:12px;margin:0 0 16px}
.direct-submit-result{border-top:1px solid #dfe7e1;padding-top:20px}
.direct-submit-result p{font-size:var(--text-secondary)}
.diagnostic-dialog{width:min(760px,calc(100vw - 32px))}
.diagnostic-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;position:sticky;top:-20px;background:#fff;padding:12px 0;z-index:1}
.diagnostic-heading h2{margin:0}
.diagnostic-reason{padding:16px 0;border-bottom:1px solid var(--border)}
.diagnostic-reason p{font-size:var(--text-table);line-height:1.7;overflow-wrap:anywhere;margin:8px 0 0;color:#414a44}
.diagnostic-body h3{font-size:var(--text-table);font-weight:600;margin:0}
.diagnostic-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:20px 0}
.diagnostic-fields dt{font-size:var(--text-caption);color:#646b66;margin-bottom:3px}
.diagnostic-fields dd{font-size:var(--text-table);margin:0;overflow-wrap:anywhere}
.diagnostic-body>.order-note{margin-bottom:20px}
.diagnostic-events{padding:0;list-style:none;margin:8px 0 20px}
.diagnostic-events li{padding:10px 0;border-bottom:1px solid var(--border)}
.diagnostic-events p{margin:4px 0;font-size:var(--text-table);line-height:1.65;overflow-wrap:anywhere}
.diagnostic-json{border-top:1px solid var(--border);padding-top:16px;font-size:var(--text-secondary)}
.diagnostic-json summary{cursor:pointer;color:#344b3c}
pre.output{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8f7;border:1px solid #e8e8e8;padding:14px;border-radius:8px;color:#414a44;max-height:330px;overflow:auto;font-size:var(--text-secondary);line-height:1.6}
.toast{position:fixed;right:24px;bottom:24px;max-width:calc(100vw - 48px);border-radius:8px;background:#25382c;color:#fff;padding:12px 16px;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:15;overflow-wrap:anywhere}
.toast.show{opacity:1;transform:none}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login{width:min(100%,405px)}
.login-brand{padding:0 12px;margin-bottom:30px}
.login-brand .brand-logo{width:160px;height:28px}
.login-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:28px}
.login h1{font-size:var(--text-heading);font-weight:600;margin:0 0 3px}
.login .subtitle{margin-bottom:24px}
.login .button{width:100%;margin-top:4px}
.login .help{margin-bottom:0}
.initial{padding:4rem;color:var(--ink-muted)}
.loading{padding:30px;color:var(--ink-muted)}
.loading-label{margin:0 0 16px;color:var(--ink-muted);font-size:var(--text-table)}
.loading-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.skeleton-control,.skeleton-line{display:block;background:#ebedeb;border-radius:6px}
.skeleton-control{height:36px;width:min(320px,100%)}
.skeleton-control.short{width:150px}
.skeleton-control.action{width:110px;margin-left:auto}
.loading-table{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.skeleton-row{display:grid;grid-template-columns:1.2fr 1fr .7fr;gap:28px;padding:20px 12px;border-bottom:1px solid #ededed}
.skeleton-row:last-child{border-bottom:0}
.skeleton-line{height:12px;max-width:180px;width:100%}
.skeleton-row .skeleton-line:nth-child(2){max-width:125px}
.skeleton-row .skeleton-line:nth-child(3){max-width:80px}
.skeleton-block .skeleton-line+.skeleton-line,.skeleton-panel .skeleton-line+.skeleton-line{margin-top:18px}
.skeleton-block .skeleton-line:nth-child(2){height:24px;width:52%}
.skeleton-panel .skeleton-line:nth-child(2){width:70%}
.skeleton-panel .skeleton-line:nth-child(3){width:45%}
@media(max-width:1100px){
  .direct-workspace{grid-template-columns:1fr}
  .direct-summary{border-left:0;border-top:1px solid #e6eae7}
  .direct-selection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .direct-selection>div{display:block;margin:0}
  .direct-selection dd{text-align:left;margin-top:7px}
}
@media(max-width:760px){
  .layout{--sidebar-width:70px}
  .sidebar .brand{justify-content:center;padding:14px}
  .sidebar .brand-logo{display:none}
  .sidebar .brand-icon{display:block}
  .sidebar .collapse-nav,.sidebar .nav-label,.sidebar .side-account,.sidebar .logout-button span{display:none}
  .sidebar .nav{padding:10px 9px}
  .sidebar .nav a,.sidebar .logout-button{justify-content:center}
  .main{padding:24px 20px 48px}
  .side-bottom{padding:12px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .main{padding:22px 14px 40px}
  .grid{gap:10px;grid-template-columns:1fr}
  .metric{padding:14px;min-height:100px}
  .panel{padding:16px}
  .grid-form,.direct-fields{grid-template-columns:1fr;gap:0}
  .cdk-toolbar,.list-toolbar{align-items:stretch}
  .cdk-filters,.list-filters{flex-basis:100%}
  .search-control,.card-toolbar .search-control{width:100%;flex-basis:100%}
  .card-toolbar .cdk-filters{flex-basis:100%}
  .cdk-filters select{flex:1;min-width:100px}
  .card-toolbar .buttons{justify-content:flex-end}
  .button{font-size:var(--text-table)}
  .input,.search-control .input,.direct-form textarea.input,.direct-summary textarea{font-size:16px}
  .list-footer{align-items:flex-start;flex-direction:column;gap:10px}
  .pagination{align-self:flex-end}
  .list-surface:has(.table-wrap)::after,.cdk-list:has(.table-wrap)::after{content:"左右滑动查看完整表格";display:block;padding:8px 12px;border-top:1px solid var(--border);color:var(--ink-muted);font-size:var(--text-caption)}
  .direct-panel{padding:0}
  .direct-heading,.direct-form,.direct-summary{padding:16px}
  .direct-selection{grid-template-columns:1fr;gap:10px}
  .direct-selection>div{display:flex}
  .direct-selection dd{margin-top:0;text-align:right}
  .direct-form-footer{align-items:stretch}
  .direct-form-footer .button{width:100%}
  .diagnostic-fields{grid-template-columns:1fr;gap:12px}
  .notice{align-items:flex-start;flex-wrap:wrap}
  .provider-check{flex-wrap:wrap;gap:6px}
  .skeleton-control.action{margin-left:0}
  .skeleton-row{gap:12px}
}
@media(pointer:coarse){
  .button,.link-action,.order-debug-button{min-height:44px}
  .order-debug-button{min-width:44px}
  .order-actions-column{width:72px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.main,.toast{transition:none}}
