
:root{--ink:#172033;--muted:#748096;--line:#e6e9ef;--paper:#fff;--bg:#f7f8fb;--blue:#315fd5;--blue-2:#eaf0ff;--mint:#e7f8f1;--mint-ink:#147a59;--amber:#fff4dd;--amber-ink:#9a6715;--shadow:0 18px 50px rgba(23,32,51,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,"PingFang SC","Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}.shell{min-height:100vh;max-width:1460px;margin:auto;padding:24px 32px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.brand{display:flex;align-items:center;gap:12px}.mark{width:42px;height:42px;border-radius:14px;background:#172033;color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-.05em}.brand b{display:block;font-size:17px}.brand small{color:var(--muted);font-size:11px}.top-right{display:flex;align-items:center;gap:12px}.sync{color:var(--muted);font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dbe6ff;color:#264ca8;font-weight:700}.layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:24px;align-items:start}.hero{padding:34px 4px 24px}.eyebrow{display:inline-flex;gap:8px;align-items:center;color:var(--blue);font-weight:700;font-size:12px;margin-bottom:18px}.eyebrow i{display:block;width:7px;height:7px;border-radius:50%;background:#35ba8b}.hero h1{font-size:clamp(32px,4.2vw,58px);letter-spacing:-.05em;line-height:1.08;margin:0 0 16px;max-width:720px}.hero h1 span{color:var(--blue)}.hero p{font-size:16px;color:var(--muted);max-width:610px;margin:0}.composer{margin-top:28px;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow)}.composer-head{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;margin-bottom:10px}.ai-dot{width:25px;height:25px;border-radius:9px;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;font-weight:800}.composer textarea{width:100%;border:0;resize:none;min-height:102px;outline:none;font-size:16px;line-height:1.55;color:var(--ink)}.composer textarea::placeholder{color:#a2abbb}.composer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px}.tools{display:flex;gap:8px;flex-wrap:wrap}.tool{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 10px;color:var(--muted);font-size:12px}.tool:hover{border-color:#b8c7ec;color:var(--blue)}.send{border:0;background:var(--blue);color:#fff;border-radius:11px;padding:10px 16px;font-weight:700;box-shadow:0 8px 16px rgba(49,95,213,.2)}.send:disabled{opacity:.6}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.chip{border:1px solid #dde4f2;background:#fbfcff;color:#54637d;border-radius:999px;padding:8px 12px;font-size:12px}.chip:hover{background:var(--blue-2);color:var(--blue)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:30px 0 12px}.section-title h2{font-size:15px;margin:0}.section-title a{font-size:12px;color:var(--blue);text-decoration:none}.recent{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.recent-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;transition:.2s}.recent-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(23,32,51,.07)}.recent-card strong{display:block;font-size:13px;margin-bottom:5px}.recent-card p{margin:0;color:var(--muted);font-size:12px}.recent-meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:var(--muted);font-size:11px}.pill{padding:4px 8px;border-radius:999px;background:var(--mint);color:var(--mint-ink)}.pill.draft{background:#f1f3f7;color:#6e788b}.preview{position:sticky;top:24px}.preview-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.preview-top{padding:20px 20px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.preview-top h2{font-size:17px;margin:0 0 4px}.preview-top p{font-size:12px;color:var(--muted);margin:0}.close{border:0;background:#f4f6f9;border-radius:8px;width:30px;height:30px;color:var(--muted)}.preview-body{padding:20px}.quote-intro{display:flex;align-items:center;gap:12px;margin-bottom:18px}.customer{width:38px;height:38px;border-radius:12px;background:#eef3ff;color:var(--blue);display:grid;place-items:center;font-weight:800}.quote-intro b{display:block}.quote-intro span{font-size:11px;color:var(--muted)}.line-item{padding:13px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}.line-item:first-of-type{border-top:0}.line-item b{font-size:13px}.line-item small{display:block;color:var(--muted);margin-top:3px}.price{font-weight:800;white-space:nowrap}.total{display:flex;justify-content:space-between;align-items:end;border-top:1px solid var(--line);margin-top:8px;padding-top:17px}.total span{color:var(--muted);font-size:12px}.total strong{font-size:28px;letter-spacing:-.04em}.insight{margin-top:18px;background:var(--blue-2);border-radius:14px;padding:13px;color:#3d568f;font-size:12px}.insight b{display:block;color:#284aaf;margin-bottom:4px}.preview-actions{display:flex;gap:8px;margin-top:18px}.outline{flex:1;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--ink)}.primary{flex:1;background:var(--ink);border:1px solid var(--ink);color:#fff;border-radius:10px;padding:10px;font-weight:700}.status{display:none;margin-top:12px;color:var(--blue);font-size:12px}.status.show{display:block}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#172033;color:#fff;border-radius:10px;padding:10px 15px;transition:.25s;z-index:4}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:980px){.shell{padding:20px}.layout{grid-template-columns:1fr}.preview{position:static}.hero{padding-top:12px}.recent{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.shell{padding:16px}.top{margin-bottom:18px}.sync{display:none}.hero h1{font-size:38px}.hero p{font-size:14px}.composer{border-radius:17px;padding:13px}.composer-foot{align-items:flex-end;flex-direction:column}.send{width:100%}.recent{grid-template-columns:1fr}.preview-card{border-radius:17px}.top-right>span{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important}}


.result-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:24px}.result-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.result-head h2{font-size:24px;margin:0;letter-spacing:-.03em}.accept{background:#fff;border:1px solid #dbe1eb;border-radius:16px;padding:9px 15px;color:var(--ink);font-size:13px}.result-field{margin-bottom:16px}.result-label{display:flex;justify-content:space-between;align-items:center;color:#6f7d95;font-size:14px;margin-bottom:8px}.confidence-high{color:#159468;font-weight:700}.confidence-mid{color:#c47a12;font-weight:700}.result-input{width:100%;height:52px;border:1px solid #dce2ec;border-radius:15px;background:#fff;padding:0 20px;font-size:17px;color:#141b29;outline:0}.result-input:focus{border-color:#9cb3ea;box-shadow:0 0 0 3px rgba(49,95,213,.1)}.result-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.result-select{appearance:auto}.result-notice{background:#fff7e8;border:1px solid #f2d8a7;border-radius:15px;color:#965c0e;padding:14px 17px;font-size:14px;margin:4px 0 18px}.extra-item{display:flex;align-items:center;gap:14px;border:1px solid #dce2ec;border-radius:15px;padding:15px 17px;margin-top:12px}.extra-tag{background:#eaf0ff;color:#315fd5;border-radius:999px;padding:7px 12px;white-space:nowrap}.extra-item b{display:block;font-size:17px}.extra-item span:last-child{display:block;color:#6f7d95;margin-top:3px}.match-btn{width:100%;background:#171c29;color:#fff;border:1px solid #171c29;border-radius:13px;padding:13px;font-size:16px;font-weight:700;margin-top:22px}.match-btn:hover{background:#283144}.parsed-products{margin:2px 0 18px}.parsed-products-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#6f7d95}.parsed-products-head b{color:var(--ink);font-size:15px}.parsed-product{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 78px 38px;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.parsed-product .result-input{height:44px;padding:0 12px;font-size:14px;border-radius:10px}.parsed-delete{border:1px solid #efcccc;background:#fff;color:#bd4343;border-radius:10px;height:44px}.add-parsed-product{width:100%;border:1px dashed #bcc8dc;background:#f8faff;color:var(--blue);border-radius:11px;padding:10px;margin-top:8px}.product-count{background:var(--blue-2);color:var(--blue);border-radius:999px;padding:4px 9px;font-size:12px}@media(max-width:620px){.parsed-product{grid-template-columns:1fr 1fr 68px 38px}.parsed-product .result-input:first-child{grid-column:span 4}}
@media(max-width:620px){.result-card{padding:17px;border-radius:17px}.result-head h2{font-size:21px}.result-row{gap:10px}.result-input{padding:0 14px;font-size:15px}.extra-item b{font-size:15px}}


.match-page{padding:10px 0 20px}.match-page .match-top{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.match-page h1{font-size:36px;letter-spacing:-.04em;margin:0 0 6px}.match-page .sub{color:var(--muted);font-size:16px}.req-tag{background:var(--mint);color:var(--mint-ink);padding:9px 13px;border-radius:999px;font-size:13px}.match-grid{display:grid;grid-template-columns:280px 1fr;gap:24px}.match-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:24px}.match-card h2{font-size:22px;margin:0 0 18px}.req-count{float:right;background:#f1f3f7;color:var(--muted);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:400}.req-item{padding:17px 16px;border:1px solid #dce2ec;border-radius:16px;margin-top:12px}.req-item.active{background:#eaf0ff;border-color:#afc6ff}.req-item b{font-size:16px}.req-item p{color:var(--muted);margin:10px 0 0;line-height:1.55}.match-main{display:grid;gap:24px}.match-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.match-section-head h2{margin:0}.match-section-head span{color:var(--muted)}.candidate-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.candidate-card{border:1px solid #dce2ec;border-radius:18px;padding:18px;position:relative;min-height:310px}.candidate-card.selected{border:3px solid var(--blue);background:#f9fbff;padding:16px}.score{position:absolute;right:16px;top:16px;background:var(--mint);color:var(--mint-ink);border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-weight:800}.candidate-card h3{font-size:17px;line-height:1.45;margin:0 62px 20px 0}.candidate-card p{color:var(--muted);margin:5px 0;font-size:13px}.candidate-price{font-size:25px;font-weight:800;margin:20px 0}.evidence{background:#f6f7fa;border-radius:12px;padding:11px;font-size:12px;line-height:1.55;min-height:54px}.pick{margin-top:14px;border:1px solid #dce2ec;background:#fff;border-radius:11px;padding:9px 12px}.candidate-card.selected .pick{background:var(--blue);border-color:var(--blue);color:#fff}.customer-strip{display:flex;align-items:center;gap:16px;background:#f7f9fc;border-radius:16px;padding:16px 20px}.customer-avatar{width:46px;height:46px;border-radius:50%;background:#dce7ff;color:var(--blue);display:grid;place-items:center;font-size:18px;font-weight:800}.customer-main{flex:1}.customer-main b{font-size:17px}.customer-main p{margin:3px 0;color:var(--muted)}.customer-col{min-width:150px}.customer-col b{display:block;font-size:14px}.customer-col span{color:var(--muted);display:block;margin-top:3px}.proof{border:1px solid #cfe0ff;background:#edf3ff;color:var(--blue);border-radius:10px;padding:9px 12px}.confirm-match{display:flex;justify-content:flex-end}.confirm-match button{background:#171c29;color:#fff;border:1px solid #171c29;border-radius:12px;padding:13px 20px;font-size:16px;font-weight:700}.confirm-match button:hover{background:#2a3448}@media(max-width:900px){.match-grid{grid-template-columns:1fr}.candidate-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.match-page .match-top{align-items:flex-start;flex-direction:column;gap:14px}.match-page h1{font-size:30px}.match-card{padding:17px;border-radius:17px}.candidate-grid{grid-template-columns:1fr}.customer-strip{align-items:flex-start;flex-wrap:wrap}.customer-col{min-width:130px}}


.quote-page{padding:10px 0 24px}.quote-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.quote-head h1{font-size:36px;letter-spacing:-.04em;margin:0 0 6px}.quote-sub{color:var(--muted);font-size:16px}.quote-status{background:var(--mint);color:var(--mint-ink);padding:9px 13px;border-radius:999px;font-size:13px}.quote-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.quote-panel{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:24px}.quote-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.quote-badge{background:var(--mint);color:var(--mint-ink);border-radius:999px;padding:7px 11px;font-size:12px}.quote-badge.blue{background:var(--blue-2);color:var(--blue)}.quote-badge.gray{background:#f1f3f7;color:var(--muted)}.quote-table-wrap{border:1px solid #dce2ec;border-radius:16px;overflow:auto}.quote-table{width:100%;border-collapse:collapse;min-width:760px}.quote-table th,.quote-table td{padding:15px 14px;text-align:left;border-bottom:1px solid #e4e8ef}.quote-table th{background:#f7f9fc;color:#5b6880;font-weight:700}.quote-table td input{width:100%;border:1px solid transparent;border-radius:8px;padding:8px;background:transparent}.quote-table td input:focus{border-color:#adc0eb;background:#fff;outline:0}.remove{border:1px solid #e1e6ef;background:#fff;color:#d05252;border-radius:10px;width:38px;height:38px}.add-line{margin-top:12px;border:1px solid #dce2ec;background:#fff;border-radius:11px;padding:9px 13px}.quote-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.sum-box{background:#f7f9fc;border-radius:14px;padding:15px}.sum-box span{display:block;color:var(--muted);font-size:12px}.sum-box b{display:block;font-size:22px;margin-top:8px}.quote-actions{display:flex;justify-content:flex-end;gap:10px;border:1px solid #e0e5ed;background:#fff;border-radius:16px;padding:14px;margin-top:18px}.action{border:1px solid #dce2ec;background:#fff;border-radius:11px;padding:10px 16px}.action.primary{background:#171c29;border-color:#171c29;color:#fff;font-weight:700}.action.disabled{background:#a9bceb;border-color:#a9bceb;color:#fff}.rules h2{font-size:22px;margin:0 0 18px}.rule{border:1px solid #dce2ec;border-radius:15px;padding:15px;margin-bottom:12px}.rule b{font-size:15px}.rule p{color:var(--muted);font-size:13px;line-height:1.6;margin:7px 0 0}.rule-note{background:#fff7e8;color:#965c0e;border:1px solid #f2d8a7;border-radius:15px;padding:14px 15px;font-size:13px;line-height:1.6}.quote-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;background:#171c29;color:#fff;border-radius:10px;padding:10px 16px;transition:.25s}.quote-toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1000px){.quote-layout{grid-template-columns:1fr}.quote-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.quote-page{padding-top:0}.quote-head{align-items:flex-start;flex-direction:column;gap:14px}.quote-head h1{font-size:30px}.quote-panel{padding:17px;border-radius:17px}.quote-summary{grid-template-columns:1fr 1fr}.quote-actions{overflow:auto;justify-content:flex-start}.action{white-space:nowrap}}


/* PDF 预览弹层工具栏副标题 */
.muted{color:var(--muted);font-size:12px}

/* 报价结果页 · 基本信息填写窗口（对齐参考版式） */
.basic-info{margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.basic-info h2{font-size:18px;font-weight:650;color:var(--ink);margin:0 0 16px}
.basic-form{display:grid;gap:13px}
.basic-field label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.basic-field input{width:100%;border:1px solid #dce2ec;border-radius:11px;padding:9px 11px;outline:0;font-size:13px;background:#fff;color:var(--ink)}
.basic-field input:hover{border-color:#c2d0e3}
.basic-field input:focus{border-color:#8eaee6;box-shadow:0 0 0 3px rgba(49,95,199,.09)}
.basic-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.basic-hint{margin-top:14px;background:#f7f9fc;border-radius:12px;padding:11px;color:var(--muted);font-size:12px;line-height:1.55}
@media(max-width:620px){.basic-pair{grid-template-columns:1fr}}


.pdf-overlay{position:fixed;inset:0;background:rgba(23,32,51,.42);z-index:20;display:none;place-items:center;padding:20px}.pdf-overlay.open{display:grid}.pdf-window{width:min(850px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(23,32,51,.25)}.pdf-toolbar{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}.pdf-toolbar b{font-size:15px}.pdf-toolbar .pdf-actions{display:flex;gap:8px}.pdf-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px}.pdf-btn.dark{background:#171c29;border-color:#171c29;color:#fff}.pdf-sheet{padding:42px 48px 52px;color:#111;background:#fff;font-family:"SimSun",serif}.pdf-sheet h2{text-align:center;font-size:25px;letter-spacing:.25em;margin:0 0 26px}.pdf-meta{width:100%;border-collapse:collapse;margin-bottom:22px}.pdf-meta td{border:1px solid #777;padding:8px;font-size:12px}.pdf-sheet>p{font-size:13px;line-height:1.8}.pdf-sheet h3{font-size:15px;margin:18px 0 10px}.pdf-items{width:100%;table-layout:fixed;border-collapse:collapse;margin:12px 0 18px}.pdf-items th,.pdf-items td{border:1px solid #555;padding:9px 7px;font-size:12px;text-align:left;overflow-wrap:anywhere;vertical-align:top}.pdf-items th{background:#f4f4f4;white-space:nowrap;text-align:center}.pdf-items th:nth-child(3),.pdf-items th:nth-child(4){white-space:nowrap}.pdf-sign{text-align:right;line-height:2;margin-top:28px;font-size:13px}@media print{body>*:not(.pdf-overlay){display:none!important}.pdf-overlay.open{position:static;display:block;background:#fff;padding:0}.pdf-window{max-height:none;box-shadow:none;width:100%}.pdf-toolbar{display:none}.pdf-sheet{padding:0}}


.basic-info h2{font-size:22px;margin:0 0 18px}.basic-form{display:grid;gap:13px}.basic-field label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.basic-field input{width:100%;border:1px solid #dce2ec;border-radius:11px;padding:10px 11px;outline:0}.basic-field input:focus{border-color:#9cb3ea;box-shadow:0 0 0 3px rgba(49,95,213,.09)}.basic-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.basic-hint{margin-top:14px;background:#f7f9fc;border-radius:12px;padding:11px;color:var(--muted);font-size:12px;line-height:1.55}@media(max-width:620px){.basic-pair{grid-template-columns:1fr}}

.feature-card{cursor:pointer}.feature-card:focus-visible{outline:3px solid rgba(49,95,213,.2);outline-offset:2px}.recent{grid-template-columns:repeat(6,1fr)}.recent-card{grid-column:span 2}.recent-card:nth-last-child(-n+2){grid-column:span 3}.dashboard-page{padding:6px 0 30px}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.dashboard-head h1{font-size:34px;letter-spacing:-.04em;margin:0 0 5px}.dashboard-head p{margin:0;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.dashboard-kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.dashboard-kpi span{color:var(--muted);font-size:12px}.dashboard-kpi strong{display:block;font-size:28px;margin-top:8px}.dashboard-kpi em{font-style:normal;color:var(--mint-ink);font-size:12px}.dashboard-panels{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.dashboard-panel h2{font-size:17px;margin:0 0 16px}.trend-chart{height:190px;display:flex;align-items:flex-end;gap:12px;border-bottom:1px solid var(--line);padding:12px 8px 0}.trend-bar{flex:1;min-width:22px;background:linear-gradient(180deg,#315fd5,#9bb6ff);border-radius:7px 7px 0 0;position:relative}.trend-bar span{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted)}.trend-bar b{position:absolute;top:-21px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:600;white-space:nowrap}.rank-list{display:grid;gap:13px}.rank-row{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:9px}.rank-no{width:24px;height:24px;border-radius:7px;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;font-size:12px;font-weight:700}.rank-name{font-size:13px}.rank-value{font-weight:700}.rank-track{height:6px;background:#eef1f6;border-radius:99px;margin-top:5px;overflow:hidden}.rank-track i{display:block;height:100%;background:#72c9a8;border-radius:inherit}.dashboard-products{margin-top:18px}.product-share{display:grid;gap:12px}.share-row{display:grid;grid-template-columns:150px 1fr 48px;align-items:center;gap:10px;font-size:13px}.share-track{height:9px;background:#eef1f6;border-radius:99px;overflow:hidden}.share-track i{display:block;height:100%;background:#f0b45a;border-radius:inherit}@media(max-width:800px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}.dashboard-panels{grid-template-columns:1fr}}@media(max-width:620px){.recent{grid-template-columns:1fr}.recent-card,.recent-card:nth-last-child(-n+2){grid-column:auto}.dashboard-head{align-items:flex-start;flex-direction:column;gap:12px}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-panel{padding:16px}.share-row{grid-template-columns:110px 1fr 42px}}


.history-page{padding:6px 0 30px}.back-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 13px;color:var(--ink);margin-bottom:20px}.history-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.history-head h1{font-size:34px;letter-spacing:-.04em;margin:0 0 5px}.history-head p{margin:0;color:var(--muted)}.history-count{color:var(--muted);font-size:13px}.history-filter{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;display:grid;grid-template-columns:repeat(3,1fr) auto;gap:12px;box-shadow:var(--shadow);margin-bottom:18px}.filter-field label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.filter-field input{width:100%;border:1px solid #dce2ec;border-radius:11px;padding:10px 12px;outline:0}.filter-field input:focus{border-color:#9cb3ea;box-shadow:0 0 0 3px rgba(49,95,213,.08)}.reset-filter{align-self:end;border:1px solid #dce2ec;background:#fff;border-radius:11px;padding:10px 14px}.history-list{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:auto}.history-table{width:100%;border-collapse:collapse;min-width:880px}.history-table th,.history-table td{padding:16px 18px;text-align:left;border-bottom:1px solid #e4e8ef}.history-table th{background:#f7f9fc;color:#5e6a80;font-size:13px}.history-table td{font-size:14px}.history-status{display:inline-flex;border-radius:999px;padding:6px 10px;background:var(--mint);color:var(--mint-ink);white-space:nowrap}.history-status.gray{background:#f1f3f7;color:var(--muted)}.history-status.blue{background:var(--blue-2);color:var(--blue)}.view-history{border:1px solid #dce2ec;background:#fff;border-radius:10px;padding:8px 12px}.history-empty{padding:48px;text-align:center;color:var(--muted)}@media(max-width:760px){.history-filter{grid-template-columns:1fr 1fr}.reset-filter{width:100%}.history-head{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:520px){.history-filter{grid-template-columns:1fr}}


.history-ops{display:flex;gap:8px}.delete-history{border:1px solid #f0caca;background:#fff;color:#bd4343;border-radius:10px;padding:8px 12px}.delete-history:hover{background:#fff3f3}.history-dialog{width:min(720px,100%)}.history-detail{padding:24px}.history-detail-head{display:flex;justify-content:space-between;gap:20px;padding:18px;background:#f7f9fc;border-radius:14px;margin-bottom:18px}.history-detail-head span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.history-detail-head b{font-size:18px}.history-detail-head strong{font-size:24px}.history-detail-note{border:1px solid var(--line);border-radius:14px;padding:15px}.history-detail-note p{color:var(--muted);line-height:1.65;margin:7px 0 0}.timeline-drawer{width:min(520px,100vw);padding:34px 36px}.timeline-head{display:block;position:relative;padding-right:42px;margin-bottom:38px}.timeline-head h2{font-size:30px;letter-spacing:-.04em}.timeline-head p{font-size:18px;color:var(--ink);margin:10px 0 0}.timeline-head .timeline-close{position:absolute;right:0;top:0;width:48px;height:48px;background:#fff;border:1px solid #dce2ec;font-size:24px}.timeline-item{grid-template-columns:115px 1fr;gap:18px;padding:22px 0}.timeline-item time{font-size:16px;color:#1d2a44;line-height:1.4}.timeline-item strong{font-size:18px}.timeline-item p{font-size:15px;margin-top:7px}


.product-page{padding:6px 0 30px}.product-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.product-head h1{font-size:34px;letter-spacing:-.04em;margin:0 0 5px}.product-head p{margin:0;color:var(--muted)}.dark-command{border:1px solid #171c29;background:#171c29;color:#fff;border-radius:11px;padding:10px 15px;font-weight:700}.product-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px}.library-panel,.product-panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:17px}.library-panel h2,.product-panel h2{font-size:18px;margin:0}.library-item{border:1px solid var(--line);border-radius:13px;padding:13px;margin-top:10px;cursor:pointer}.library-item.active{border-color:#9db8f6;background:#eef3ff}.library-item b{display:block}.library-item span{color:var(--muted);font-size:12px}.library-add{width:100%;border:1px dashed #bfc9da;background:#fff;border-radius:12px;padding:10px;margin-top:12px}.product-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0}.product-search{flex:1;min-width:180px;border:1px solid #dce2ec;border-radius:11px;padding:10px 12px}.soft-command{border:1px solid #dce2ec;background:#fff;border-radius:11px;padding:10px 12px}.product-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.product-table{width:100%;border-collapse:collapse;min-width:760px}.product-table th,.product-table td{padding:13px 12px;text-align:left;border-bottom:1px solid #e5e9ef}.product-table th{background:#f7f9fc;color:#5d6980;font-size:12px}.product-table td[contenteditable="true"]{background:#fffceb;outline:2px solid #ead492;outline-offset:-3px}.product-actions{display:flex;gap:6px}.product-actions button{border:1px solid #dce2ec;background:#fff;border-radius:8px;padding:6px 9px}.product-actions .danger{color:#bd4343}.product-empty{text-align:center;color:var(--muted);padding:40px}.source-hidden .source-col{display:none}@media(max-width:820px){.product-layout{grid-template-columns:1fr}.library-list{display:flex;gap:8px;overflow:auto}.library-item{min-width:180px}.library-add{width:auto}}@media(max-width:560px){.product-head{align-items:flex-start;flex-direction:column;gap:12px}.product-head h1{font-size:30px}}


.customer-page{padding:6px 0 30px}.customer-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.customer-head h1{font-size:34px;letter-spacing:-.04em;margin:0 0 5px}.customer-head p{margin:0;color:var(--muted)}.customer-toolbar{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:15px;display:flex;gap:10px;align-items:center;margin-bottom:18px}.customer-search{flex:1;border:1px solid #dce2ec;border-radius:11px;padding:10px 12px;min-width:180px}.customer-list{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:auto}.customer-table{width:100%;border-collapse:collapse;min-width:1050px}.customer-table th,.customer-table td{padding:14px 13px;text-align:left;border-bottom:1px solid #e5e9ef}.customer-table th{background:#f7f9fc;color:#5d6980;font-size:12px}.customer-table td[contenteditable="true"]{background:#fffceb;outline:2px solid #ead492;outline-offset:-3px}.level-tag{display:inline-flex;background:var(--mint);color:var(--mint-ink);border-radius:999px;padding:5px 9px}.customer-ops{display:flex;gap:6px}.customer-ops button{border:1px solid #dce2ec;background:#fff;border-radius:8px;padding:6px 9px}.customer-ops .danger{color:#bd4343;border-color:#efcccc}.customer-empty{text-align:center;color:var(--muted);padding:44px}.customer-detail{padding:24px}.customer-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.customer-detail-item{background:#f7f9fc;border-radius:13px;padding:13px}.customer-detail-item span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.customer-detail-item b{font-size:15px}@media(max-width:650px){.customer-head{align-items:flex-start;flex-direction:column;gap:12px}.customer-toolbar{align-items:stretch;flex-direction:column}.customer-detail-grid{grid-template-columns:1fr}}


.stats-page,.permission-page{padding:6px 0 30px}.stats-head,.permission-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.stats-head h1,.permission-head h1{font-size:34px;letter-spacing:-.04em;margin:0 0 5px}.stats-head p,.permission-head p{margin:0;color:var(--muted)}.stats-table-wrap,.admin-list{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:auto}.stats-table{width:100%;border-collapse:collapse;min-width:980px}.stats-table th,.stats-table td{padding:15px 16px;text-align:left;border-bottom:1px solid #e5e9ef}.stats-table th{background:#f7f9fc;color:#5d6980;font-size:12px}.stat-person{display:inline-flex;background:var(--blue-2);color:var(--blue);border-radius:999px;padding:5px 9px}.stats-filter{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;display:grid;grid-template-columns:repeat(4,1fr) auto;gap:10px;box-shadow:var(--shadow);margin-bottom:18px}.stats-filter input{width:100%;border:1px solid #dce2ec;border-radius:11px;padding:10px 12px}.admin-table{width:100%;border-collapse:collapse;min-width:820px}.admin-table th,.admin-table td{padding:15px;text-align:left;border-bottom:1px solid #e5e9ef}.admin-table th{background:#f7f9fc;color:#5d6980;font-size:12px}.permission-tag{display:inline-flex;border-radius:999px;padding:5px 9px;background:var(--mint);color:var(--mint-ink)}.permission-tag.none{background:#f1f3f7;color:var(--muted)}.admin-ops{display:flex;gap:7px}.admin-ops button{border:1px solid #dce2ec;background:#fff;border-radius:8px;padding:7px 10px}.admin-ops .danger{color:#bd4343;border-color:#efcccc}.admin-table td[contenteditable="true"]{background:#fffceb;outline:2px solid #ead492;outline-offset:-3px}@media(max-width:700px){.stats-head,.permission-head{align-items:flex-start;flex-direction:column;gap:12px}.stats-filter{grid-template-columns:1fr 1fr}}


.stats-filter input[type="date"]{min-width:0}.stats-pdf-detail{padding:0}.timeline-overlay{position:fixed;inset:0;background:rgba(23,32,51,.28);z-index:21;display:none}.timeline-overlay.open{display:block}.timeline-drawer{position:absolute;right:0;top:0;height:100%;width:min(430px,92vw);background:#fff;padding:22px;box-shadow:-18px 0 48px rgba(23,32,51,.18);overflow:auto}.timeline-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.timeline-head h2{margin:0;font-size:20px}.timeline-close{border:0;background:#f1f3f7;border-radius:8px;width:32px;height:32px}.timeline-item{display:grid;grid-template-columns:86px 1fr;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.timeline-item time{color:var(--muted);font-size:12px}.timeline-item strong{color:var(--blue);font-size:15px}.timeline-item p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.stats-ops{display:flex;gap:7px}.stats-ops .timeline-btn{border:1px solid #dce2ec;background:#fff;border-radius:8px;padding:7px 9px;color:var(--blue)}

.product-summary{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:210px}.product-summary span{display:inline-flex;background:#f1f4f9;color:#3f4e68;border-radius:6px;padding:4px 7px;font-size:12px;white-space:nowrap}.product-summary small{display:block;width:100%;color:var(--muted);margin-top:2px}.history-table,.stats-table{min-width:1040px}.version-row{grid-template-columns:130px minmax(0,1fr) auto!important}.version-detail-btn{align-self:center;border:1px solid #dce2ec;background:#fff;color:var(--blue);border-radius:9px;padding:8px 12px}.version-detail-btn:hover{background:var(--blue-2)}#versionPdfModal{z-index:30}@media(max-width:600px){.version-row{grid-template-columns:88px minmax(0,1fr)!important}.version-detail-btn{grid-column:2;justify-self:start}}

/* Final polish: restrained product workspace, with black command buttons and quiet data surfaces. */
*{letter-spacing:0!important}
body{background:#f4f5f7;color:#151922}
button{transition:border-color .18s,background .18s,color .18s,box-shadow .18s}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable="true"]:focus-visible{outline:3px solid rgba(37,99,235,.2)!important;outline-offset:2px}
.hero h1{font-size:52px;line-height:1.12}.hero h1 span{color:#2457c5}
.composer,.preview-card,.result-card,.match-card,.quote-panel,.history-filter,.history-list,.product-library-card,.customer-list,.stats-table-wrap,.admin-list{border-radius:8px;box-shadow:0 8px 24px rgba(21,25,34,.055)}
.recent-card,.candidate-card,.quote-table-wrap,.quote-actions,.sum-box,.rule,.rule-note,.latest-price,.pdf-window{border-radius:8px}
.send,.match-btn,.confirm-match button,.action.primary,.dark-command,.pdf-btn.dark{background:#151922!important;border-color:#151922!important;color:#fff!important;box-shadow:none}
.send:hover,.match-btn:hover,.confirm-match button:hover,.action.primary:hover,.dark-command:hover,.pdf-btn.dark:hover{background:#303640!important}
.action.disabled{background:#fff;border-color:#d7dce5;color:#151922}.action:disabled{cursor:default;opacity:.7}
.tool,.back-btn,.outline,.add-line,.reset-filter,.pdf-btn,.view-history,.timeline-btn,.version-detail-btn{border-radius:7px}
.req-item{border-radius:8px}.req-item.active{background:#eef4ff;border-color:#8eafea}.candidate-card.selected{border-width:2px;padding:17px;background:#f8faff}
.candidate-card.selected .pick{background:#151922;border-color:#151922}.product-summary span{background:#eef0f4;color:#354052}
.quote-table th,.quote-table td,.history-table th,.history-table td,.stats-table th,.stats-table td{padding-top:12px;padding-bottom:12px}
.quote-toast,.toast{z-index:80;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.pdf-overlay{z-index:40}.timeline-overlay{z-index:45}#versionPdfModal{z-index:50}
.system-protected{color:var(--muted);font-size:12px;white-space:nowrap}
.invalid{border-color:#d33!important;background:#fff7f7!important}
.parsed-product{display:block;padding:14px 0;border-top:1px solid var(--line)}
.parsed-product-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 78px 38px;gap:8px;align-items:end}
.parsed-product-params{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px;padding-left:0}
.parsed-param-field{display:grid;gap:5px}.parsed-param-field span{color:#6f7d95;font-size:12px}
.parsed-param-select{width:100%;height:40px;border:1px solid #dce2ec;border-radius:8px;background:#fff;padding:0 10px;color:#151922;outline:0}
.parsed-param-select:focus{border-color:#8eafea;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
@media(max-width:620px){.hero h1{font-size:36px}.shell{padding:14px}.result-card,.match-card,.quote-panel{border-radius:8px}.pdf-window{max-height:96vh}.pdf-sheet{padding:26px 20px 34px}.pdf-toolbar{align-items:flex-start;gap:10px}.pdf-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:620px){.parsed-product-main{grid-template-columns:minmax(0,1fr) 72px 38px}.parsed-product-name{grid-column:1/-1}.parsed-product-params{grid-template-columns:1fr}}

.quote-summary .payment-summary{font-size:16px;line-height:1.55;letter-spacing:0;max-width:100%;font-weight:600}.quote-summary .sum-box:nth-child(3) b{font-size:22px}
.page-head-actions,.product-head-actions{display:flex;align-items:center;gap:12px}.table-title{font-size:18px;padding:18px 16px 4px;margin:0;background:#fff}.year-picker{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}.year-picker select{border:1px solid #dce2ec;border-radius:9px;padding:9px 10px;background:#fff;color:var(--ink)}.library-panel h2 small{font-size:12px;color:var(--muted);font-weight:500;margin-left:6px}.modal{position:fixed;inset:0;background:rgba(13,20,35,.35);display:none;align-items:center;justify-content:center;z-index:50}.modal.open{display:flex}.modal-card{width:min(420px,calc(100vw - 32px));background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(13,20,35,.2)}.modal-card h2{margin:0 0 18px}.modal-card label{display:grid;gap:7px;color:var(--muted);font-size:13px}.modal-card input{border:1px solid #dce2ec;border-radius:10px;padding:11px 12px;font-size:15px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}@media(max-width:620px){.page-head-actions,.product-head-actions{align-items:flex-start;flex-direction:column;gap:8px}}
.table-summary{font-size:13px;color:var(--muted);font-weight:500;margin-left:8px}.table-title{display:flex;align-items:center;gap:4px}.stats-head>.history-count{display:none}
.recent{grid-template-columns:repeat(3,1fr)}.recent-card,.recent-card:nth-last-child(-n+2){grid-column:auto}

/* Visual refinement: unified workspace tokens, hierarchy and responsive states. */
:root{
  --ink:#18243a;
  --muted:#69758a;
  --line:#e2e8f0;
  --paper:#ffffff;
  --bg:#f5f7fa;
  --blue:#315fc7;
  --blue-2:#edf3ff;
  --mint:#e9f7f1;
  --mint-ink:#187758;
  --amber:#fff6e5;
  --amber-ink:#956116;
  --shadow:0 12px 34px rgba(24,36,58,.065);
  --shadow-hover:0 18px 42px rgba(36,65,115,.11);
  --radius-lg:18px;
  --radius-md:13px;
  --radius-sm:9px;
}
html{color-scheme:light;scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 88% 0%,rgba(49,95,199,.055),transparent 30%),
    linear-gradient(180deg,#f8fafc 0%,var(--bg) 42%,#f4f6f9 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:#dbe7ff;color:#183d8c}
button,input,textarea,select{font-family:inherit}
button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
button:not(:disabled):active{transform:translateY(1px)}
button:disabled{cursor:not-allowed}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable="true"]:focus-visible,[tabindex]:focus-visible{
  outline:3px solid rgba(49,95,199,.2)!important;
  outline-offset:2px;
}
input,textarea,select,button{-webkit-tap-highlight-color:transparent}
.shell{max-width:1480px;padding:28px 40px 48px}
/* 页头与内容区同宽同内边距：两侧都对齐 shell 的内容边界，不贴窗口边缘 */
.top{min-height:48px;max-width:1460px;margin:0 auto 34px;padding:24px 32px 0}
@media(max-width:980px){.top{padding:20px 20px 0}}
@media(max-width:620px){.top{padding:16px 16px 0}}
.brand{gap:13px}
.mark{
  width:44px;height:44px;border-radius:13px;
  background:linear-gradient(145deg,#244caa,#3f73db);
  box-shadow:0 8px 20px rgba(49,95,199,.2);
  font-size:15px;letter-spacing:-.02em!important;
}
.brand b{font-size:18px;line-height:1.35;letter-spacing:-.02em!important}
.brand small{margin-top:3px;color:#7a8496;font-size:11px}
.top-right{gap:10px;color:#3d4960;font-size:13px;font-weight:500}
.avatar{
  width:36px;height:36px;
  background:#e7eeff;color:#3157a8;
  border:2px solid #fff;
  box-shadow:0 0 0 1px #dfe6f2;
}
.layout{grid-template-columns:minmax(0,1fr) minmax(420px,500px);gap:32px}
.layout>section,.layout>.preview,.top,.brand,.top-right{min-width:0}
.hero{padding:42px 0 28px}
.eyebrow{
  margin-bottom:20px;padding:5px 10px;
  border:1px solid #dce6f8;border-radius:999px;
  background:rgba(255,255,255,.7);
  color:#41639f;font-size:11px;font-weight:600;
}
.eyebrow i{width:6px;height:6px;background:#2caf83;box-shadow:0 0 0 3px rgba(44,175,131,.12)}
.hero h1{
  max-width:760px;margin-bottom:18px;
  color:#152239;
  font-size:clamp(40px,4vw,54px);
  font-weight:750;
  line-height:1.16;
  letter-spacing:-.035em!important;
}
.hero h1 span{color:var(--blue)}
.hero p{max-width:640px;color:#657188;font-size:15px;line-height:1.85}
.composer{
  max-width:800px;margin-top:32px;padding:20px;
  border:1px solid #dfe6f0;border-radius:var(--radius-lg);
  background:rgba(255,255,255,.96);
  box-shadow:0 16px 42px rgba(29,48,79,.075);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.composer:focus-within{border-color:#a9bfeb;box-shadow:0 0 0 4px rgba(49,95,199,.07),0 18px 44px rgba(29,48,79,.09)}
.composer-head{gap:10px;margin-bottom:12px;color:#59667c;font-size:12px;font-weight:500}
.ai-dot{width:28px;height:28px;border-radius:9px;background:#edf3ff;color:#315fc7;font-size:13px}
.composer textarea{min-height:116px;padding:2px 2px 12px;color:var(--ink);font-size:15px;line-height:1.75}
.composer textarea::placeholder{color:#99a3b4}
.composer-foot{gap:12px;padding-top:15px;border-top-color:#edf0f5}
.tool{
  min-height:36px;padding:7px 12px;
  border:1px solid #e0e6ef;border-radius:var(--radius-sm);
  background:#f9fafc;color:#5e6b80;
}
.tool:hover{border-color:#b8c9e8;background:#f3f7ff;color:#315fc7}
.send{
  min-height:40px;padding:9px 18px;border:1px solid #315fc7;border-radius:10px;
  background:linear-gradient(180deg,#3b6bd1,#315fc7)!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(49,95,199,.2)!important;
}
.send:hover{background:linear-gradient(180deg,#315fc7,#2853b3)!important;box-shadow:0 9px 20px rgba(49,95,199,.25)!important;transform:translateY(-1px)}
.section-title{margin:34px 0 14px}
.section-title h2{color:#303d52;font-size:16px;font-weight:650}
.recent{gap:14px}
.recent-card{
  min-height:142px;padding:18px;
  border:1px solid #e2e8f0;border-radius:var(--radius-md);
  background:rgba(255,255,255,.88);
  box-shadow:0 3px 12px rgba(24,36,58,.025);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.recent-card:hover{transform:translateY(-3px);border-color:#c5d4ee;background:#fff;box-shadow:var(--shadow-hover)}
.recent-card strong{margin-bottom:7px;color:#26344b;font-size:14px;font-weight:650}
.recent-card p{color:#748095;font-size:12px;line-height:1.65}
.recent-meta{margin-top:16px;padding-top:12px;border-top:1px solid #edf1f5;color:#7b8698;font-size:11px}
.pill{padding:4px 8px;background:#edf3ff;color:#315fc7;font-weight:600}
.preview{top:24px}
.result-card{
  padding:24px;border:1px solid #dfe6ef;border-radius:var(--radius-lg);
  background:rgba(255,255,255,.97);
  box-shadow:0 16px 42px rgba(24,36,58,.075);
}
.result-head{gap:16px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #edf1f5}
.result-head h2{color:#1d2a40;font-size:21px;font-weight:700;letter-spacing:-.02em!important}
.accept{
  flex:none;padding:7px 11px;border:1px solid #dce4ef;border-radius:8px;
  background:#f8fafc;color:#53627a;font-size:12px;font-weight:500;
}
.accept:hover{border-color:#b5c8eb;background:#edf3ff;color:#315fc7}
.result-field{margin-bottom:16px}
.result-label{margin-bottom:7px;color:#6c788d;font-size:12px}
.confidence-high,.confidence-mid{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:650}
.confidence-high{color:#187758;background:#eaf7f1}
.confidence-mid{color:#a26813;background:#fff5e3}
.result-input{
  height:46px;padding:0 13px;border:1px solid #dfe5ee;border-radius:10px;
  background:#fbfcfe;color:#263248;font-size:14px;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.result-input:hover{border-color:#c6d2e3;background:#fff}
.result-input:focus{border-color:#8eaee6;background:#fff;box-shadow:0 0 0 3px rgba(49,95,199,.09)}
.result-row{gap:12px}
.parsed-products{margin:4px 0 18px}
.parsed-products-head{margin-bottom:10px;color:#748095;font-size:12px}
.parsed-products-head b{color:#2c394e;font-size:14px}
.product-count{padding:3px 9px;border-radius:999px;background:#edf3ff;color:#315fc7}
.parsed-product{
  margin-top:10px;padding:13px;
  border:1px solid #e4eaf2;border-radius:12px;
  background:#fafbfd;
}
.parsed-product:first-child{border-top:1px solid #e4eaf2}
.parsed-product-main{gap:8px}
.parsed-product-params{gap:8px;margin-top:10px}
.parsed-param-field{gap:5px}
.parsed-param-field span{color:#7a8598;font-size:11px}
.parsed-param-select{height:40px;border-color:#dfe5ee;border-radius:9px;background:#fff;font-size:12px}
.parsed-delete{border-radius:9px;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.parsed-delete:hover{border-color:#efc5c5!important;background:#fff1f1!important;color:#c44242!important}
.result-notice{
  margin:6px 0 18px;padding:13px 15px;
  border:1px solid #efdcb9;border-radius:11px;
  background:#fff8eb;color:#8d5d18;font-size:12px;line-height:1.7;
}
.match-btn{
  min-height:48px;margin-top:20px;border:1px solid #315fc7;border-radius:11px;
  background:linear-gradient(180deg,#3b6bd1,#315fc7)!important;
  color:#fff!important;font-size:15px;font-weight:650;
  box-shadow:0 8px 18px rgba(49,95,199,.18);
}
.match-btn:hover{background:linear-gradient(180deg,#315fc7,#2853b3)!important;box-shadow:0 10px 22px rgba(49,95,199,.24);transform:translateY(-1px)}

/* Shared secondary pages */
.dashboard-page,.history-page,.product-page,.customer-page,.stats-page,.permission-page,.match-page,.quote-page{padding-top:8px;padding-bottom:42px}
.dashboard-head,.history-head,.product-head,.customer-head,.stats-head,.permission-head,.match-page .match-top,.quote-head{margin-bottom:24px}
.dashboard-head h1,.history-head h1,.product-head h1,.customer-head h1,.stats-head h1,.permission-head h1,.match-page h1,.quote-head h1{
  color:#18243a;font-size:32px;font-weight:720;line-height:1.25;letter-spacing:-.025em!important;
}
.dashboard-head p,.history-head p,.product-head p,.customer-head p,.stats-head p,.permission-head p,.match-page .sub,.quote-sub{color:#718096;font-size:14px;line-height:1.7}
.dashboard-kpi,.dashboard-panel,.history-filter,.history-list,.library-panel,.product-panel,.customer-toolbar,.customer-list,.stats-table-wrap,.stats-filter,.admin-list,.match-card,.quote-panel,.product-library-card{
  border:1px solid #e1e7ef;border-radius:15px;background:rgba(255,255,255,.96);
  box-shadow:0 8px 26px rgba(24,36,58,.05);
}
.dashboard-kpi{padding:20px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.dashboard-kpi:hover{transform:translateY(-2px);border-color:#ccd9ee;box-shadow:var(--shadow-hover)}
.dashboard-kpi strong{color:#20304a;font-size:30px;font-weight:720;line-height:1.3}
.dashboard-kpi em{color:#187758}
.dashboard-panel{padding:22px}
.dashboard-panel h2,.match-card h2,.basic-info h2{color:#27364d;font-size:18px;font-weight:650}
.trend-bar{background:linear-gradient(180deg,#3969cf,#a9c0ed)}
.history-filter,.stats-filter,.customer-toolbar{border-radius:14px}
.filter-field input,.basic-field input,.product-search,.customer-search,.stats-filter input,.modal-card input,.year-picker select{
  border-color:#dce4ee;border-radius:9px;background:#fbfcfe;color:#2a374c;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.filter-field input:hover,.basic-field input:hover,.product-search:hover,.customer-search:hover,.stats-filter input:hover{border-color:#c2d0e3;background:#fff}
.filter-field input:focus,.basic-field input:focus,.product-search:focus,.customer-search:focus,.stats-filter input:focus,.modal-card input:focus{border-color:#8eaee6;background:#fff;box-shadow:0 0 0 3px rgba(49,95,199,.09)}
.quote-table-wrap,.product-table-wrap,.quote-actions{border-color:#e1e7ef;border-radius:12px}
.quote-table th,.history-table th,.product-table th,.customer-table th,.stats-table th,.admin-table th{
  background:#f7f9fc;color:#647187;font-size:12px;font-weight:650;white-space:nowrap;
}
.quote-table td,.history-table td,.product-table td,.customer-table td,.stats-table td,.admin-table td{border-bottom-color:#edf0f4;color:#344258}
.quote-table tbody tr,.history-table tbody tr,.product-table tbody tr,.customer-table tbody tr,.stats-table tbody tr,.admin-table tbody tr{transition:background-color .16s ease}
.quote-table tbody tr:hover,.history-table tbody tr:hover,.product-table tbody tr:hover,.customer-table tbody tr:hover,.stats-table tbody tr:hover,.admin-table tbody tr:hover{background:#fafcff}
.quote-table tbody tr:last-child td,.history-table tbody tr:last-child td,.product-table tbody tr:last-child td,.customer-table tbody tr:last-child td,.stats-table tbody tr:last-child td,.admin-table tbody tr:last-child td{border-bottom:0}
.sum-box{border:1px solid #e7ecf2;border-radius:11px;background:#f8fafc}
.sum-box b{color:#21324c;font-weight:700}
.req-item,.candidate-card,.extra-item,.modal-card,.pdf-window,.version-dialog{border-radius:13px}
.req-item{border-color:#e0e6ee;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}
.req-item.active{border-color:#a9bfe9;background:#f0f5ff;box-shadow:inset 3px 0 0 #315fc7}
.candidate-card{border-color:#e0e6ee;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.candidate-card:hover{transform:translateY(-2px);border-color:#bfd0ec;box-shadow:0 12px 26px rgba(36,65,115,.08)}
.candidate-card.selected{border-color:#315fc7;background:#f7faff;box-shadow:0 0 0 3px rgba(49,95,199,.07)}
.library-item{transition:border-color .18s ease,background-color .18s ease,transform .18s ease}
.library-item:hover{border-color:#bfd0ec;background:#f8faff;transform:translateX(2px)}
.library-item.active{border-color:#a9bfe9;background:#eff4ff}
.tool,.back-btn,.outline,.add-line,.reset-filter,.pdf-btn,.view-history,.timeline-btn,.version-detail-btn,.soft-command,.accept,.remove,.product-actions button,.customer-ops button,.admin-ops button,.stats-ops button,.history-ops button,.pick,.action{
  border-color:#dce4ee;border-radius:9px;background:#fff;color:#46556d;
}
.back-btn:hover,.outline:hover,.add-line:hover,.reset-filter:hover,.pdf-btn:hover,.view-history:hover,.timeline-btn:hover,.version-detail-btn:hover,.soft-command:hover,.pick:hover,.action:hover,.product-actions button:hover,.customer-ops button:hover,.admin-ops button:hover,.stats-ops button:hover,.history-ops button:hover{
  border-color:#b5c8e8;background:#f3f7ff;color:#315fc7;
}
.send,.match-btn,.confirm-match button,.action.primary,.dark-command,.pdf-btn.dark{
  border-color:#315fc7!important;background:linear-gradient(180deg,#3b6bd1,#315fc7)!important;color:#fff!important;
  box-shadow:0 6px 15px rgba(49,95,199,.16)!important;
}
.send:hover,.match-btn:hover,.confirm-match button:hover,.action.primary:hover,.dark-command:hover,.pdf-btn.dark:hover{
  background:linear-gradient(180deg,#315fc7,#2853b3)!important;color:#fff!important;box-shadow:0 8px 20px rgba(49,95,199,.22)!important;
}
.action.disabled,.action:disabled{background:#f5f7fa;border-color:#dfe5ed;color:#8a95a6;box-shadow:none}
.quote-badge,.history-status,.level-tag,.permission-tag,.stat-person,.req-tag,.quote-status{font-weight:500}
.toast,.quote-toast{border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#1b2940;box-shadow:0 14px 36px rgba(20,31,50,.24)}
.modal-card{border:1px solid #e1e7ef;box-shadow:0 24px 70px rgba(18,32,54,.2)}
.pdf-window,.version-dialog{border:1px solid #e1e7ef;box-shadow:0 24px 80px rgba(18,32,54,.24)}
.pdf-toolbar{background:#fbfcfe}
.quote-table-wrap,.history-list,.product-table-wrap,.customer-list,.stats-table-wrap,.admin-list{scrollbar-color:#c8d2e1 transparent;scrollbar-width:thin}

@media(max-width:1180px){
  .shell{padding:24px 28px 42px}
  .layout{grid-template-columns:minmax(0,1fr) minmax(400px,460px);gap:24px}
  .hero{padding-top:32px}
  .result-card{padding:20px}
}
@media(max-width:1024px){
  .layout{grid-template-columns:1fr;gap:26px}
  .hero{max-width:820px;padding-top:20px}
  .composer{max-width:none}
  .preview{position:static}
  .result-card{padding:24px}
}
@media(max-width:760px){
  .shell{padding:20px 20px 36px}
  .top{margin-bottom:26px}
  .hero h1{font-size:42px}
  .recent{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-panels,.quote-layout,.match-grid,.product-layout{grid-template-columns:1fr}
  .dashboard-head,.history-head,.product-head,.customer-head,.stats-head,.permission-head,.match-page .match-top,.quote-head{align-items:flex-start;flex-direction:column;gap:12px}
  .quote-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head-actions,.product-head-actions{width:100%;flex-wrap:wrap}
}
@media(max-width:560px){
  .shell{padding:16px 16px 30px}
  .top{margin-bottom:22px}
  .brand{gap:10px}
  .mark{width:40px;height:40px;border-radius:12px}
  .brand b{font-size:17px}
  .brand small{font-size:10px}
  .hero{padding:20px 0 22px}
  .eyebrow{margin-bottom:16px}
  .hero h1{margin-bottom:14px;font-size:34px;line-height:1.2;letter-spacing:-.025em!important}
  .hero p{font-size:14px;line-height:1.75}
  .composer{margin-top:24px;padding:16px;border-radius:16px}
  .composer textarea{min-height:126px;font-size:14px}
  .composer-foot{align-items:stretch;flex-direction:column}
  .tools,.tool,.send{width:100%}
  .section-title{margin-top:28px}
  .recent{grid-template-columns:1fr;gap:12px}
  .recent-card{min-height:0;padding:16px}
  .result-card{padding:17px;border-radius:16px}
  .result-head{align-items:flex-start;gap:12px;margin-bottom:18px;padding-bottom:15px}
  .result-head h2{font-size:19px}
  .accept{padding:6px 9px}
  .result-row{grid-template-columns:1fr;gap:0}
  .parsed-product{padding:11px}
  .dashboard-head h1,.history-head h1,.product-head h1,.customer-head h1,.stats-head h1,.permission-head h1,.match-page h1,.quote-head h1{font-size:27px}
  .dashboard-grid{gap:10px}
  .dashboard-kpi{padding:16px}
  .dashboard-kpi strong{font-size:25px}
  .dashboard-panel,.match-card,.quote-panel{padding:17px}
  .history-filter,.stats-filter{grid-template-columns:1fr}
  .quote-actions{align-items:stretch;flex-direction:column}
  .quote-actions .action{width:100%}
  .candidate-grid{grid-template-columns:1fr}
  .pdf-toolbar{flex-wrap:wrap}
  .toast,.quote-toast{max-width:calc(100vw - 32px);width:max-content;text-align:center}
}
@media(max-width:380px){
  .hero h1{font-size:31px}
  .top-right>span{display:none}
  .result-head{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
  .recent-card:hover,.candidate-card:hover,.dashboard-kpi:hover,.send:hover,.match-btn:hover{transform:none}
}


/* Drawing-to-quote workflow */
.home-hero{padding-top:32px}
.home-hero h1{max-width:730px;font-size:clamp(38px,3.8vw,50px);line-height:1.18}
.home-hero p{max-width:620px}
.upload-panel{
  max-width:800px;margin-top:28px;padding:18px;
  border:1px solid #dfe6f0;border-radius:18px;background:rgba(255,255,255,.96);
  box-shadow:0 16px 42px rgba(29,48,79,.075);
}
.upload-panel-head{display:flex;align-items:center;gap:9px;margin-bottom:13px;color:#5d6a80;font-size:12px;font-weight:550}
.upload-panel-tag{margin-left:auto;color:#8a97aa;font-size:9px;font-weight:700;letter-spacing:.12em!important}
.dropzone{
  display:flex;align-items:center;gap:15px;min-height:112px;padding:20px;
  border:1.5px dashed #b8c8e1;border-radius:13px;background:#fafcff;
  cursor:pointer;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.dropzone:hover,.dropzone.is-dragging{border-color:#6f93d8;background:#f5f9ff;box-shadow:inset 0 0 0 3px rgba(49,95,199,.04)}
.dropzone-icon{flex:none;width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#eaf1ff;color:#315fc7}
.dropzone-icon svg{width:23px;height:23px}
.dropzone-copy{min-width:0}
.dropzone-copy b{display:block;color:#25344c;font-size:15px;font-weight:650;line-height:1.5}
.dropzone-copy span{display:block;margin-top:3px;color:#7d889b;font-size:12px;line-height:1.55}
.dropzone-size{margin-left:auto;white-space:nowrap;color:#96a1b2;font-size:10px}
.upload-actions{display:flex;align-items:center;gap:9px;margin-top:13px}
.upload-primary,.upload-secondary{min-height:38px;border-radius:9px;padding:8px 15px;font-size:13px;font-weight:600}
.upload-primary{border:1px solid #315fc7;background:linear-gradient(180deg,#3b6bd1,#315fc7);color:#fff;box-shadow:0 6px 14px rgba(49,95,199,.17)}
.upload-primary:hover{background:linear-gradient(180deg,#315fc7,#2853b3);transform:translateY(-1px)}
.upload-secondary{border:1px solid #dce4ee;background:#fff;color:#4e5d74}
.upload-secondary:hover{border-color:#b7c9e7;background:#f4f8ff;color:#315fc7}
.upload-formats{margin-left:auto;color:#8c98aa;font-size:11px}
.example-card{padding:22px;overflow:hidden}
.example-head{align-items:flex-start;margin-bottom:15px;padding-bottom:14px}
.panel-kicker{display:block;margin-bottom:4px;color:#8996aa;font-size:9px;font-weight:700;letter-spacing:.13em!important}
.example-head h2{font-size:20px}
.example-badge{padding:4px 9px;border-radius:999px;background:#eef4ff;color:#315fc7;font-size:10px;font-weight:600}
.mini-blueprint{position:relative;height:238px;overflow:hidden;border:1px solid #dde6f2;border-radius:12px;background:#f8fafe}
.mini-blueprint>svg{display:block;width:100%;height:100%}
.mini-frame{position:absolute;left:29%;top:15%;width:46%;height:68%;border:1.5px solid #315fc7;border-radius:4px;background:rgba(49,95,199,.035);box-shadow:0 0 0 9999px rgba(23,42,74,.035)}
.mini-frame span{position:absolute;left:-1px;top:-22px;padding:3px 7px;border-radius:5px 5px 5px 0;background:#315fc7;color:#fff;font-size:9px;font-weight:600;white-space:nowrap}
.scan-line{position:absolute;left:0;right:0;top:20%;height:1px;background:linear-gradient(90deg,transparent,#4c7cdf 25%,#4c7cdf 75%,transparent);box-shadow:0 0 8px rgba(49,95,199,.4);opacity:.7;animation:scanBlueprint 4s ease-in-out infinite}
@keyframes scanBlueprint{0%,100%{top:18%;opacity:.25}50%{top:82%;opacity:.8}}
.example-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0 16px}
.example-meta div{padding:9px 10px;border-radius:9px;background:#f7f9fc}
.example-meta span{display:block;color:#8894a7;font-size:10px}
.example-meta b{display:block;margin-top:2px;color:#344258;font-size:12px;font-weight:650}
.example-start{margin-top:0;min-height:44px;font-size:14px}
.example-start span{margin-left:3px}
.example-note{margin:10px 0 0;text-align:center;color:#8a96a8;font-size:10px;line-height:1.6}
.workflow-home{margin-top:34px;padding:24px;border:1px solid #e1e7ef;border-radius:18px;background:rgba(255,255,255,.72);box-shadow:0 8px 26px rgba(24,36,58,.035)}
.workflow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:17px;padding:0 2px}
.section-kicker{display:block;margin-bottom:4px;color:#7a8aa2;font-size:9px;font-weight:700;letter-spacing:.14em!important}
.workflow-head h2{margin:0;color:#223149;font-size:20px;font-weight:700;letter-spacing:-.02em!important}
.workflow-head p{margin:0 0 2px;color:#8591a3;font-size:11px}
.flow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.flow-card{
  --accent:#315fc7;--soft:#edf3ff;
  position:relative;display:flex;flex-direction:column;min-height:164px;padding:16px 16px 13px;
  border:1px solid #e3e9f1;border-top:3px solid var(--accent);border-radius:12px;
  background:#fff;box-shadow:0 4px 13px rgba(24,36,58,.035);
  cursor:default;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.flow-card:hover{transform:translateY(-3px);border-color:#c9d6e8;border-top-color:var(--accent);box-shadow:0 15px 30px rgba(36,65,115,.09)}
.flow-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:13px}
.flow-index{color:#d4dbe7;font-size:27px;font-weight:750;line-height:1;letter-spacing:-.04em!important}
.flow-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:var(--soft);color:var(--accent)}
.flow-icon svg{width:20px;height:20px}
.flow-card h3{margin:0 0 6px;color:#29384e;font-size:14px;font-weight:650}
.flow-card p{min-height:0;margin:0 0 14px;color:#728096;font-size:11px;line-height:1.65}
.flow-foot{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:10px;border-top:1px solid #edf1f6;color:#919caf;font-size:10px}
.flow-foot i{width:14px;height:2px;border-radius:2px;background:var(--accent);opacity:.65}
.flow-card:not(:last-child)::after{
  content:"›";position:absolute;right:-17px;top:50%;z-index:2;
  width:16px;height:16px;margin-top:-8px;border:1px solid #e1e7f0;border-radius:50%;
  display:grid;place-items:center;background:#fff;color:#a8b4c6;font-size:11px;line-height:1;box-shadow:0 2px 7px rgba(24,36,58,.05)
}
.accent-orange{--accent:#d58a2d;--soft:#fff5e7}
.accent-green{--accent:#2a9a70;--soft:#eaf8f2}
.accent-indigo{--accent:#5268c9;--soft:#eef1ff}
.home-other-title{margin-top:32px}
.home-other-title>span{color:#8a96a8;font-size:11px}
.home-other-title+.recent{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Step pages */
.wizard-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.wizard-topbar .back-btn{margin:0;flex:none;background:rgba(255,255,255,.8)}
.wizard-progress{display:flex;align-items:center;min-width:0}
.wizard-step{display:flex;align-items:center;gap:7px;color:#8b96a8;font-size:11px;white-space:nowrap}
.wizard-step-dot{width:24px;height:24px;border:1px solid #dce3ed;border-radius:50%;display:grid;place-items:center;background:#fff;color:#8b96a8;font-size:10px;font-weight:650;transition:.2s}
.wizard-step.done{color:#42618d}
.wizard-step.done .wizard-step-dot{border-color:#bcd3c7;background:#eaf7f1;color:#187758}
.wizard-step.active{color:#273850;font-weight:600}
.wizard-step.active .wizard-step-dot{border-color:#315fc7;background:#315fc7;color:#fff;box-shadow:0 0 0 3px rgba(49,95,199,.1)}
.wizard-sep{width:26px;height:1px;margin:0 7px;background:#dde4ee}
.wizard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.wizard-heading h1{margin:0 0 5px;color:#18243a;font-size:30px;font-weight:720;line-height:1.3;letter-spacing:-.025em!important}
.wizard-heading p{margin:0;color:#768296;font-size:13px;line-height:1.7}
.wizard-page{padding-bottom:42px}
.drawing-layout,.recognition-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.drawing-panel,.wizard-side-card,.recognition-panel{background:#fff;border:1px solid #dfe6ef;border-radius:15px;box-shadow:0 8px 26px rgba(24,36,58,.05)}
.drawing-panel{overflow:hidden}
.drawing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:11px 16px;border-bottom:1px solid #edf1f5;background:#fbfcfe}
.drawing-file{display:flex;align-items:center;gap:9px;min-width:0}
.drawing-file-icon{flex:none;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#edf3ff;color:#315fc7}
.drawing-file-icon svg{width:16px;height:16px}
.drawing-file b{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2c394e;font-size:12px;font-weight:600}
.drawing-file span{display:block;color:#8d98aa;font-size:10px}
.drawing-tools{display:flex;align-items:center;gap:6px;flex:none}
.drawing-tool{padding:5px 8px;border:1px solid #e1e7ef;border-radius:6px;background:#fff;color:#758297;font-size:10px}
.drawing-tool.is-active{border-color:#c6d6ef;background:#f1f6ff;color:#315fc7}
.drawing-stage{padding:16px;background:#f7f9fc;overflow:hidden}
.drawing-sheet{
  position:relative;width:100%;aspect-ratio:900/520;
  overflow:hidden;border:1px solid #d5deea;border-radius:8px;background:#fff;
  cursor:crosshair;touch-action:none;user-select:none;
  box-shadow:0 6px 20px rgba(26,44,72,.07);
}
.drawing-svg{display:block;width:100%;height:100%;pointer-events:none}
/* CAD 预览（MLightCAD）：画布容器 + 框选覆盖层 */
.drawing-sheet.cad-sheet{aspect-ratio:auto;width:100%;height:654px;min-height:654px;background:#12161c}
@media(max-width:900px){.drawing-sheet.cad-sheet{height:480px;min-height:480px}}
.cad-host{position:absolute;inset:0;touch-action:none;user-select:none;cursor:crosshair}
.cad-host canvas{display:block;width:100%!important;height:100%!important}
.area-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.area-layer .selection-box{pointer-events:auto}
.selection-box.is-ghost{background:rgba(49,95,199,.08);border-style:dashed}
.cad-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;color:#7a879c;font-size:12px;z-index:2}
.cad-spin{width:16px;height:16px;border:2px solid #e3ebf6;border-top-color:#315fc7;border-radius:50%;animation:spin .9s linear infinite}
/* 只做预览：隐藏内核自带的命令行、快捷工具条与通知中心 */
.cad-host .ml-cli-container,
.cad-host .ml-mobile-cmd,
.cad-host .ml-desktop-session-accessory,
.cad-host .ml-ui-shortcut-toolbar-shell,
.cad-host .ml-ui-notification-center{display:none!important}
.selection-box{
  position:absolute;left:29%;top:16%;width:45%;height:64%;
  border:1.5px solid #315fc7;background:rgba(49,95,199,.055);
  box-shadow:0 0 0 9999px rgba(20,38,66,.055);
  pointer-events:none;
}
.selection-box::before,.selection-box::after{content:"";position:absolute;width:7px;height:7px;border:1.5px solid #315fc7;background:#fff}
.selection-box::before{left:-4px;top:-4px;border-right:0;border-bottom:0}
.selection-box::after{right:-4px;bottom:-4px;border-left:0;border-top:0}
.selection-tag{position:absolute;left:-1px;top:-23px;padding:4px 8px;border-radius:5px 5px 5px 0;background:#315fc7;color:#fff;font-size:9px;font-weight:600;white-space:nowrap}
.selection-size{position:absolute;right:4px;bottom:4px;padding:2px 5px;border-radius:4px;background:rgba(31,54,92,.75);color:#fff;font-size:8px;font-family:ui-monospace,Monaco,monospace}
.canvas-hint{display:flex;align-items:center;gap:7px;padding:10px 16px 0;color:#8793a6;font-size:10px}
.canvas-hint i{width:5px;height:5px;border-radius:50%;background:#315fc7}
.drawing-side{display:grid;gap:14px}
.wizard-side-card{padding:17px}
.wizard-side-card h3{margin:0 0 12px;color:#2b3a50;font-size:14px;font-weight:650}
.area-thumb{position:relative;height:105px;margin-bottom:12px;overflow:hidden;border:1px solid #e0e7f0;border-radius:9px;background:#f8fafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M18 0H0v18' fill='none' stroke='%23e3eaf4' stroke-width='.7'/%3E%3C/svg%3E")}
.area-thumb span{position:absolute;left:23%;top:20%;width:52%;height:58%;border:1.5px solid #315fc7;background:rgba(49,95,199,.06)}
.area-thumb b{position:absolute;left:23%;top:14px;padding:2px 5px;border-radius:3px 3px 3px 0;background:#315fc7;color:#fff;font-size:8px;font-weight:600}
.area-summary{display:grid;gap:8px}
.area-summary div{display:flex;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid #f0f3f7;font-size:11px}
.area-summary div:last-child{padding-bottom:0;border-bottom:0}
.area-summary span{color:#8a95a7}
.area-summary b{color:#344258;font-weight:600;text-align:right}
.scope-list{display:grid;gap:8px}
.scope-list div{display:flex;align-items:center;gap:8px;color:#5f6d82;font-size:11px}
.scope-list i{flex:none;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#eaf7f1;color:#187758;font-size:9px;font-style:normal}
.wizard-next{width:100%;min-height:42px;border:1px solid #315fc7;border-radius:9px;background:linear-gradient(180deg,#3b6bd1,#315fc7);color:#fff;font-size:13px;font-weight:650;box-shadow:0 7px 16px rgba(49,95,199,.18)}
.wizard-next:hover{background:linear-gradient(180deg,#315fc7,#2853b3);transform:translateY(-1px)}
.wizard-next:disabled{opacity:.72;transform:none}
.wizard-secondary{width:100%;min-height:38px;margin-top:8px;border:1px solid #dce4ee;border-radius:9px;background:#fff;color:#5d6b80;font-size:12px}
.wizard-secondary:hover{border-color:#b7c9e7;background:#f4f8ff;color:#315fc7}
.side-note{margin:10px 0 0;color:#929daf;font-size:9px;line-height:1.6;text-align:center}

/* Recognition */
.recognition-panel{overflow:hidden}
.recognition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:19px 20px 15px;border-bottom:1px solid #edf1f5}
.recognition-head h2{margin:0 0 4px;color:#26354c;font-size:17px;font-weight:650}
.recognition-head p{margin:0;color:#8994a6;font-size:10px}
.recognition-chips{display:flex;gap:6px;flex-wrap:wrap}
.recognition-chip{padding:4px 8px;border-radius:999px;background:#edf3ff;color:#315fc7;font-size:9px;white-space:nowrap}
.recognition-chip.green{background:#eaf7f1;color:#187758}
.recognition-chip.amber{background:#fff5e4;color:#a26813}
.recognition-table-wrap{overflow:auto}
.recognition-table{width:100%;min-width:760px;border-collapse:collapse}
.recognition-table th{padding:11px 12px;background:#f8fafc;color:#79869a;font-size:10px;font-weight:650;text-align:left;white-space:nowrap}
.recognition-table td{padding:11px 12px;border-bottom:1px solid #edf1f5;color:#3d4b60;font-size:11px;vertical-align:middle}
.recognition-table tbody tr{transition:background-color .16s ease}
.recognition-table tbody tr:hover{background:#fafcff}
.recognition-table tbody tr.is-selected{background:#fbfdff}
.recognition-table input[type="checkbox"],.check-all{width:14px;height:14px;accent-color:#315fc7;cursor:pointer}
.component-cell{display:flex;align-items:center;gap:9px;min-width:150px}
.component-icon{flex:none;width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#f0f4fa;color:#60748f;font-size:9px;font-weight:700}
.component-cell b{display:block;color:#304057;font-size:11px;font-weight:600}
.component-cell span{display:block;margin-top:1px;color:#9aa5b5;font-size:9px}
.spec-cell{color:#69778b;font-family:ui-monospace,Monaco,"SFMono-Regular",monospace;font-size:10px;white-space:nowrap}
.qty-cell{white-space:nowrap;color:#344258;font-weight:600}
.price-cell{white-space:nowrap;color:#22324a;font-weight:650}
.price-input{display:inline-flex;align-items:center;gap:2px}
.price-unit{color:#8d98aa;font-size:11px;flex:none}
.price-input input.price{width:100%;min-width:0}
.confidence-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:#eaf7f1;color:#187758;font-size:9px;font-weight:600;white-space:nowrap}
.confidence-tag.review{background:#fff5e4;color:#a26813}
.recognition-table th:first-child,.recognition-table td:first-child{width:38px;padding-right:2px}
.recognition-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid #edf1f5;background:#fbfcfe;color:#8793a5;font-size:10px}
.recognition-footer b{color:#3e4d63;font-size:11px}
.recognition-side{display:grid;gap:14px}
.match-overview{padding:18px}
.match-ring{width:112px;height:112px;margin:4px auto 15px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#315fc7 0 92%,#e9eef6 92% 100%);position:relative}
.match-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff}
.match-ring div{position:relative;text-align:center}
.match-ring strong{display:block;color:#1d2e48;font-size:26px;font-weight:750;line-height:1.1}
.match-ring span{color:#8894a6;font-size:9px}
.overview-list{display:grid;gap:9px}
.overview-list div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #f0f3f7;font-size:10px}
.overview-list div:last-child{border-bottom:0;padding-bottom:0}
.overview-list span{color:#8793a5}.overview-list b{color:#37465c;font-size:11px;font-weight:600}
.quote-estimate{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:13px 0 12px;border-top:1px solid #edf1f5;margin-top:10px}
.quote-estimate span{color:#8490a3;font-size:10px}.quote-estimate strong{color:#20334e;font-size:20px;font-weight:750}
.review-note{margin-top:12px;padding:10px 11px;border:1px solid #efdcb9;border-radius:9px;background:#fff8eb;color:#8c5d1a;font-size:9px;line-height:1.65}

/* Quote result stage */
.quote-page .wizard-topbar{margin-bottom:18px}
.quote-page .quote-head h1{font-size:31px}
.quote-page .quote-layout{grid-template-columns:minmax(0,1fr) 330px;min-width:0}
.quote-page .quote-layout>*{min-width:0}
.quote-page .quote-table-wrap{max-width:100%;overflow-x:auto}
.quote-page .quote-badges .quote-badge:first-child{background:#eaf7f1;color:#187758}
.quote-page .quote-badges .quote-badge:nth-child(2){background:#edf3ff;color:#315fc7}

@media(max-width:1180px){
  .home-layout{grid-template-columns:minmax(0,1fr) 410px}
  .flow-card{padding:14px 13px 12px;min-height:184px}
  .flow-steps{gap:14px}
  .flow-card:not(:last-child)::after{right:-13px;width:14px;height:14px;margin-top:-7px;font-size:10px}
}
@media(max-width:1024px){
  .home-layout{grid-template-columns:1fr}
  .example-card{max-width:760px}
  .mini-blueprint{height:260px}
  .flow-steps{gap:12px}
  .flow-card{min-height:168px}
  .drawing-layout,.recognition-layout{grid-template-columns:minmax(0,1fr) 270px}
}
@media(max-width:860px){
  .flow-steps{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
  .flow-card{grid-column:span 3;min-height:0}
  .flow-card:last-child{grid-column:span 6}
  .flow-card:not(:last-child)::after{display:none}
}
@media(max-width:820px){
  .workflow-home{padding:20px}
  .wizard-topbar{align-items:flex-start;flex-direction:column;gap:12px}
  .wizard-progress{overflow-x:auto;max-width:100%;padding-bottom:3px}
  .wizard-step{font-size:10px}
  .wizard-sep{width:18px;margin:0 4px}
  .drawing-layout,.recognition-layout{grid-template-columns:1fr}
  .drawing-side{grid-template-columns:1fr 1fr}
  .recognition-side{grid-template-columns:1fr 1fr}
  .wizard-heading{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:620px){
  .home-hero{padding-top:18px}
  .home-hero h1{font-size:32px;line-height:1.22}
  .upload-panel{padding:14px;border-radius:15px}
  .upload-panel-tag{display:none}
  .dropzone{padding:16px;align-items:flex-start;flex-wrap:wrap}
  .dropzone-size{display:none}
  .dropzone-icon{width:42px;height:42px}
  .dropzone-copy b{font-size:14px}
  .upload-actions{flex-wrap:wrap}
  .upload-primary,.upload-secondary{flex:1;min-width:120px}
  .upload-formats{display:none}
  .example-card{padding:17px}
  .mini-blueprint{height:220px}
  .workflow-home{margin-top:26px;padding:17px}
  .workflow-head p{display:none}
  .flow-steps{grid-template-columns:1fr;gap:12px}
  .flow-card,.flow-card:last-child{grid-column:auto;min-height:0;padding:15px}
  .flow-card p{min-height:0}
  .flow-foot{margin-top:11px}
  .home-other-title+.recent{grid-template-columns:1fr}
  .wizard-heading h1{font-size:25px}
  .wizard-progress{gap:0}
  .wizard-step span:last-child{display:none}
  .wizard-step-dot{width:26px;height:26px}
  .wizard-sep{width:28px;margin:0 5px}
  .drawing-panel,.wizard-side-card,.recognition-panel{border-radius:13px}
  .drawing-stage{padding:9px}
  .drawing-toolbar{align-items:flex-start;flex-direction:column;gap:8px}
  .drawing-tools{width:100%;justify-content:flex-start}
  .drawing-file b{max-width:210px}
  .drawing-side,.recognition-side{grid-template-columns:1fr}
  .recognition-head{align-items:flex-start;flex-direction:column;gap:9px;padding:15px}
  .recognition-footer{align-items:flex-start;flex-direction:column}
  .recognition-table{min-width:720px}
  .quote-page .quote-layout{grid-template-columns:1fr}
  .quote-page .quote-head h1{font-size:25px}
}
.quote-result-strip{display:flex;align-items:center;gap:22px;margin:2px 0 15px;padding:13px 16px;border:1px solid #dfe7f2;border-radius:12px;background:linear-gradient(105deg,#f7faff,#fff)}
.qrs-primary span{display:block;color:#7d899c;font-size:10px}
.qrs-primary strong{display:block;margin-top:1px;color:#1f3554;font-size:25px;font-weight:750;line-height:1.2;letter-spacing:-.025em!important}
.qrs-divider{width:1px;height:31px;background:#e3eaf3}
.qrs-stat span{display:block;color:#8b97a9;font-size:9px}
.qrs-stat b{display:block;margin-top:2px;color:#3a4a60;font-size:12px;font-weight:650}
.qrs-hint{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:5px 8px;border-radius:6px;background:#edf3ff;color:#43639c;font-size:9px;white-space:nowrap}
.qrs-hint svg{width:13px;height:13px}
.quote-page .quote-table{min-width:900px;table-layout:fixed}
.quote-page .quote-table th,.quote-page .quote-table td{padding:10px 8px;font-size:11px}
.quote-page .quote-table th{font-size:10px}
.quote-page .quote-table td input{padding:7px 6px;font-size:12px}
.quote-page .quote-table th:nth-child(1){width:17%}
.quote-page .quote-table th:nth-child(2){width:20%}
.quote-page .quote-table th:nth-child(3){width:7%}
.quote-page .quote-table th:nth-child(4){width:8%}
.quote-page .quote-table th:nth-child(5){width:7%}
.quote-page .quote-table th:nth-child(6){width:9%}
.quote-page .quote-table th:nth-child(7){width:27%}
.quote-page .quote-table th:nth-child(8){width:5%}
.quote-page .quote-table th:last-child,.quote-page .quote-table td:last-child{padding-left:2px;padding-right:2px}
.quote-page .quote-table .remove{width:30px;height:30px;border-radius:7px}
@media(max-width:720px){.quote-result-strip{flex-wrap:wrap;gap:12px 18px}.qrs-hint{margin-left:0}.qrs-divider{display:none}.quote-page .quote-table{min-width:860px}}
.table-scroll-hint{display:none}
@media(max-width:620px){.table-scroll-hint{display:block;margin:0 0 8px;text-align:center;color:#8c98aa;font-size:9px}}
/* Editable recognition list */
.recognition-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-bottom:1px solid #edf1f5;background:#fff}
.tools-hint{color:#98a2b3;font-size:10px;line-height:1.5}
.rec-tool-btn{flex:none;display:inline-flex;align-items:center;min-height:30px;padding:5px 12px;border:1px solid #c9d8ee;border-radius:8px;background:#f4f8ff;color:#315fc7;font-size:11px;font-weight:600;white-space:nowrap;transition:background-color .18s ease,border-color .18s ease,transform .18s ease}
.rec-tool-btn:hover{background:#e9f1ff;border-color:#a9c2ea;transform:translateY(-1px)}
.rec-tool-btn:active{transform:translateY(0)}
.recognition-table{min-width:920px;table-layout:fixed}
.recognition-table th:nth-child(1),.recognition-table td:nth-child(1){width:38px}
.recognition-table th:nth-child(3),.recognition-table td:nth-child(3){width:18%}
.recognition-table th:nth-child(4),.recognition-table td:nth-child(4){width:12%}
.recognition-table th:nth-child(5),.recognition-table td:nth-child(5){width:10%}
.recognition-table th:nth-child(6),.recognition-table td:nth-child(6){width:11%}
.recognition-table th:nth-child(7),.recognition-table td:nth-child(7){width:16%}
.recognition-table th.col-actions,.recognition-table td.col-actions{width:112px;white-space:nowrap}
.recognition-table td{overflow:hidden;text-overflow:ellipsis}
.recognition-table td.col-actions{overflow:visible}
.recognition-table tbody tr.is-editing{background:#f7faff;box-shadow:inset 3px 0 0 #315fc7}
.recognition-table tbody tr.is-editing:hover{background:#f7faff}
.recognition-table tbody tr.is-editing td{padding-top:8px;padding-bottom:8px;vertical-align:top}
.row-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}
.row-btn{min-height:26px;padding:3px 7px;border:1px solid #e2e8f1;border-radius:6px;background:#fff;color:#5d6b80;font-size:10px;line-height:1.45;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.row-btn:hover{border-color:#b7c9e7;background:#f4f8ff;color:#315fc7}
.row-btn.danger{color:#a2503f}
.row-btn.danger:hover{border-color:#ecc7bd;background:#fff5f2;color:#b23c23}
.row-btn.primary{border-color:#315fc7;background:#315fc7;color:#fff}
.row-btn.primary:hover{background:#2853b3;border-color:#2853b3;color:#fff}
.cell-input{width:100%;min-width:0;padding:6px 7px;border:1px solid #dbe3ee;border-radius:6px;background:#fff;color:#2f3e54;font-size:11px;font-family:inherit;transition:border-color .16s ease,box-shadow .16s ease}
.cell-input:focus{outline:none;border-color:#6f93d8;box-shadow:0 0 0 3px rgba(49,95,199,.1)}
.cell-input.sub{margin-top:3px;padding-top:4px;padding-bottom:4px;border-style:dashed;font-size:10px;color:#7d889b}
.cell-input.mono{font-family:ui-monospace,Monaco,"SFMono-Regular",monospace;font-size:10px}
.cell-input.num{text-align:right}
.edit-stack{min-width:0}
.qty-edit{display:flex;gap:5px}
.qty-edit .num{flex:1 1 auto;min-width:0}
.cell-input.num{appearance:textfield;-moz-appearance:textfield}
.cell-input.num::-webkit-outer-spin-button,.cell-input.num::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-edit .unit{flex:none;width:48px;padding-left:4px;padding-right:0}
.empty-row td{padding:28px 12px;text-align:center;color:#98a2b3;font-size:11px}
.recognition-footer-tools{display:flex;align-items:center;gap:10px;min-width:0}
.footer-note{white-space:nowrap;color:#9aa5b5}
.link-btn{padding:3px 8px;border:1px dashed #cbd8ea;border-radius:6px;background:#fff;color:#315fc7;font-size:10px}
.link-btn:hover{background:#f1f6ff;border-style:solid}
.recognition-chip[hidden],.link-btn[hidden],.review-note[hidden]{display:none!important}
@media(max-width:820px){.recognition-tools{flex-wrap:wrap}.tools-hint{order:2;width:100%;font-size:9px}}
@media(max-width:620px){.tools-hint{display:none}}
@media(max-width:620px){.recognition-table{min-width:880px}.recognition-tools{padding:9px 12px}.rec-tool-btn{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.scan-line{animation:none;top:50%}}


/* Multi-region selection on drawing */
.area-layer{position:absolute;inset:0}
.selection-box{pointer-events:auto;cursor:crosshair;border:1px solid rgba(49,95,199,.5);box-shadow:none;background:rgba(49,95,199,.045);transition:background-color .16s ease,border-color .16s ease}
.selection-box::before,.selection-box::after{display:none}
.selection-box:hover{border-color:#315fc7;background:rgba(49,95,199,.08)}
.selection-box .selection-tag{background:#fff;border:1px solid rgba(49,95,199,.4);color:#315fc7}
.selection-box.is-active{border:2px solid #315fc7;background:rgba(49,95,199,.09);box-shadow:0 0 0 3px rgba(49,95,199,.08)}
.selection-box.is-active .selection-tag{background:#315fc7;border-color:#315fc7;color:#fff}
.selection-box .selection-size{background:rgba(255,255,255,.88);border:1px solid rgba(49,95,199,.25);color:#315fc7;box-shadow:none}
.selection-box.is-active .selection-size{background:rgba(31,54,92,.78);border-color:transparent;color:#fff}
.selection-box.is-active::before,.selection-box.is-active::after{display:block}
.selection-box .selection-tag{pointer-events:auto;cursor:grab;user-select:none}
.selection-box .selection-tag:active{cursor:grabbing}
.selection-remove{position:absolute;right:-9px;top:-9px;width:18px;height:18px;padding:0;border:1px solid #fff;border-radius:50%;background:#315fc7;color:#fff;font-size:12px;line-height:1;display:grid;place-items:center;box-shadow:0 2px 6px rgba(23,42,74,.28);opacity:0;transform:scale(.8);transition:opacity .16s ease,transform .16s ease}
.selection-box:hover .selection-remove,.selection-box.is-active .selection-remove{opacity:1;transform:scale(1)}
.selection-remove:hover{background:#b23c23}
.selection-draft{position:absolute;border:1.5px dashed #315fc7;border-radius:2px;background:rgba(49,95,199,.07);pointer-events:none}
.selection-draft[hidden]{display:none}
.drawing-sheet .area-layer{pointer-events:none}
.drawing-sheet .selection-box{pointer-events:auto}

/* Region list in sidebar */
.area-count{margin-left:7px;padding:2px 7px;border-radius:999px;background:#edf3ff;color:#315fc7;font-size:9px;font-weight:600;vertical-align:1px}
.area-list{display:grid;gap:6px;margin:0 0 12px;max-height:172px;overflow:auto}
.area-item{display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid #e6ecf4;border-radius:8px;background:#fbfcfe;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.area-item:hover{border-color:#c7d8ee;background:#f6faff}
.area-item.is-active{border-color:#b9cff0;background:#f1f6ff}
.area-item-index{flex:none;width:18px;height:18px;border-radius:5px;display:grid;place-items:center;background:#e9eff9;color:#5c7395;font-size:9px;font-weight:650}
.area-item.is-active .area-item-index{background:#315fc7;color:#fff}
.area-item-copy{flex:1;min-width:0}
.area-item-copy b{display:block;color:#2f3e54;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.area-item-copy span{display:block;margin-top:1px;color:#98a3b4;font-size:9px}
.area-item-remove{flex:none;width:20px;height:20px;padding:0;border:0;border-radius:5px;background:transparent;color:#a8b3c3;font-size:13px;line-height:1;display:grid;place-items:center}
.area-item-remove:hover{background:#fff0ec;color:#b23c23}
.area-empty{margin:0 0 12px;color:#98a3b4;font-size:10px;line-height:1.6}
.area-thumb span{position:absolute;border:1px solid rgba(49,95,199,.5);border-radius:2px;background:rgba(49,95,199,.08)}
.area-thumb span.is-active{border:1.5px solid #315fc7;background:rgba(49,95,199,.22)}

/* Region groups inside recognition table */
.region-row td{padding:7px 12px;background:#f4f8fd;border-bottom:1px solid #e7edf6;overflow:visible}
.region-row-inner{display:flex;align-items:center;gap:8px;min-width:0}
.region-tag{padding:2px 8px;border:1px solid #cfdcf0;border-radius:999px;background:#fff;color:#3a5580;font-size:9px;font-weight:600;white-space:nowrap}
.region-meta{color:#8996a9;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.region-empty td{padding:13px 12px;background:#fff;color:#a3adbd;font-size:10px;border-bottom:1px solid #edf1f5}
@media(max-width:620px){.selection-remove{width:22px;height:22px;right:-11px;top:-11px;opacity:1;transform:none}.area-list{max-height:none}}

.timeline-drawer{width:min(520px,100vw);padding:34px 36px}.timeline-head{display:block;position:relative;padding-right:42px;margin-bottom:38px}.timeline-head h2{font-size:30px;letter-spacing:-.04em}.timeline-head p{font-size:18px;color:var(--ink);margin:10px 0 0}.timeline-head .timeline-close{position:absolute;right:0;top:0;width:48px;height:48px;background:#fff;border:1px solid #dce2ec;font-size:24px}.timeline-item{grid-template-columns:115px 1fr;gap:18px;padding:22px 0}.timeline-item time{font-size:16px;color:#1d2a44;line-height:1.4}.timeline-item strong{font-size:18px}.timeline-item p{font-size:15px;margin-top:7px}.version-dialog{width:min(760px,100%);max-height:92vh;overflow:auto}.version-dialog .pdf-toolbar{border-bottom:0;padding:18px 24px 0;justify-content:flex-end}.version-dialog .pdf-toolbar b,.version-dialog .pdf-toolbar .muted{display:none}.version-detail{padding:24px}.version-detail h1{font-size:34px;margin:0 0 8px;letter-spacing:-.04em}.version-sub{color:var(--muted);font-size:18px;margin-bottom:30px}.latest-price{border:1px solid #dce2ec;border-radius:22px;padding:26px 28px;margin-bottom:28px}.latest-price span{display:block;color:var(--muted);font-size:18px}.latest-price strong{display:block;font-size:48px;letter-spacing:-.04em;margin:10px 0;color:var(--ink)}.latest-price em{font-style:normal;color:#d84b4b;font-size:20px}.version-row{display:grid;grid-template-columns:130px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid #dce2ec}.version-date{font-size:18px;color:#1d2a44;line-height:1.4}.version-row strong{display:block;color:#2348a5;font-size:21px}.version-row p{margin:8px 0 0;color:var(--muted);font-size:17px;line-height:1.5}.version-row small{display:block;margin-top:12px;color:var(--muted);font-size:16px}@media(max-width:600px){.version-detail{padding:18px}.version-detail h1{font-size:28px}.version-sub{font-size:16px}.latest-price{padding:20px}.latest-price strong{font-size:40px}.version-row{grid-template-columns:88px 1fr;gap:16px}.version-row strong{font-size:18px}.version-row p,.version-row small{font-size:14px}}

/* 最近任务：固定高度滑动窗口，任务超出时在窗口内滚动 */
.job-list{max-height:340px;overflow-y:auto;overflow-x:hidden;padding-right:5px;
  scrollbar-color:#c8d2e1 transparent;scrollbar-width:thin}
.job-list::-webkit-scrollbar{width:6px}
.job-list::-webkit-scrollbar-thumb{background:#c8d2e1;border-radius:99px}
.job-list::-webkit-scrollbar-thumb:hover{background:#aab9d0}
.job-list::-webkit-scrollbar-track{background:transparent}
.job-list .job-item{flex:none}
@media(max-width:620px){.job-list{max-height:300px}}