:root{
  --bg:#f5f7f8;
  --card:#fff;
  --ink:#111827;
  --text:#1f2937;
  --muted:#667085;
  --line:#e5e7eb;
  --brand:#08735f;
  --brand2:#10b981;
  --soft:#e8fbf5;
  --shadow:0 12px 28px rgba(16,24,40,.08);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body,#app{margin:0;min-height:100%;background:var(--bg);overflow-x:hidden}
body{font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);touch-action:auto}
button,input,select,textarea{font:inherit}
button{border:0;background:none;color:inherit;cursor:pointer}
input,select,textarea{
  width:100%;min-height:44px;border:1px solid var(--line);border-radius:14px;background:#fff;
  color:var(--ink);padding:10px 12px;outline:none;pointer-events:auto!important;
  -webkit-user-select:text!important;user-select:text!important;touch-action:manipulation;caret-color:var(--ink);
}
textarea{min-height:88px;resize:vertical;line-height:1.5}
.paste-box{min-height:72px;background:#f8fafc;border-style:dashed}
input:focus,select:focus,textarea:focus{border-color:var(--brand2);box-shadow:0 0 0 4px rgba(16,185,129,.14)}
.app{width:min(460px,100vw);min-height:100vh;margin:0 auto;background:linear-gradient(180deg,#fbfcfd,#f3f6f8);padding-bottom:92px}
.topbar{position:sticky;top:0;z-index:20;background:rgba(245,247,248,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(229,231,235,.8);padding:16px 16px 10px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.eyebrow{margin:0 0 5px;color:var(--brand);font-size:12px;font-weight:900}
.topbar h1{margin:0;font-size:25px;line-height:1.1}
.header-actions{display:flex;gap:8px}
.icon-btn{width:42px;height:42px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);font-weight:900}
.view{padding:14px}
.card,.item,.mini-card,.stat-card,.modal-card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.card{padding:14px;margin:11px 0}
.search{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:8px}
.primary,.ghost,.danger{min-height:42px;border-radius:14px;padding:9px 12px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
.ghost{background:#f2f6f7;border:1px solid var(--line);color:var(--text)}
.danger{background:#fff1f0;border:1px solid #ffd1cc;color:#d92d20}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.stat-card{padding:12px;display:grid;grid-template-columns:38px 1fr;gap:8px;align-items:center;text-align:left}
.badge-icon,.brand-logo{width:36px;height:36px;border-radius:13px;background:var(--soft);color:var(--brand);display:grid;place-items:center;font-weight:900;font-style:normal}
.stat-card strong{display:block;color:var(--brand);font-size:20px}
.stat-card span{display:block;font-weight:900;font-size:12px}
.stat-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.banner-row,.row-scroll,.tabs{display:flex;gap:9px;overflow-x:auto;margin:0 -14px;padding:0 14px 5px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.home-carousel-only{margin:14px 0 0;padding:0;scroll-snap-type:x mandatory}
.home-carousel-only .banner{flex:0 0 100%;min-width:100%;scroll-snap-align:center}
.banner-row::-webkit-scrollbar,.row-scroll::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
.banner{flex:0 0 78%;min-height:86px;border-radius:18px;padding:14px;color:#fff;text-align:left;background:linear-gradient(135deg,#0f766e,#14b8a6);display:grid;align-content:center}
.banner:nth-child(2){background:linear-gradient(135deg,#155e75,#06b6d4)}
.banner:nth-child(3){background:linear-gradient(135deg,#7c2d12,#f97316)}
.banner:nth-child(4){background:linear-gradient(135deg,#1d4ed8,#38bdf8)}
.banner:nth-child(5){background:linear-gradient(135deg,#7c3aed,#a78bfa)}
.banner:nth-child(6){background:linear-gradient(135deg,#047857,#22c55e)}
.banner:nth-child(7){background:linear-gradient(135deg,#be123c,#fb7185)}
.banner:nth-child(8){background:linear-gradient(135deg,#334155,#64748b)}
.banner:nth-child(9){background:linear-gradient(135deg,#854d0e,#eab308)}
.banner strong{display:block;margin-bottom:6px;font-size:16px}.banner span{font-size:12px;color:rgba(255,255,255,.86);line-height:1.5}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:16px 0 9px}.section-head h3{margin:0;font-size:16px}.section-head span,.muted{color:var(--muted);font-size:12px}
.search-summary{display:flex;align-items:center;justify-content:space-between;margin:8px 2px 12px;color:var(--muted);font-size:12px}
.search-summary strong{color:var(--text);font-size:15px}
.search-group{margin:6px 0 16px}
.search-result-card{display:block;width:100%;text-align:left;position:relative;padding-right:38px}
.search-result-card:after{content:"›";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:24px;color:#98a2b3}
.search-type{display:inline-flex;margin-bottom:7px;border-radius:999px;background:var(--soft);color:var(--brand);font-size:11px;font-weight:900;padding:4px 8px}
.search-empty{text-align:left}
.mini-card{flex:0 0 150px;padding:11px;text-align:left}.mini-card strong{display:block;margin:7px 0 4px;font-size:13px}.mini-card span{display:block;color:var(--muted);font-size:11px;line-height:1.35}
.home-brand-pager{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.home-brand-pager .mini-card{min-width:0;flex:auto;padding:10px;display:grid;align-content:start}
.home-brand-pager .mini-card .brand-logo{width:34px;height:34px;border-radius:13px}
.home-brand-pager .mini-card strong{font-size:12px;line-height:1.25;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-brand-pager .mini-card span{font-size:10px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-brand-pager .brand-card{min-width:0;background:transparent;border:0;box-shadow:none}
.home-brand-pager .brand-tile button{gap:5px}
.home-brand-pager .brand-tile-face{border-radius:14px;padding:11px 7px}
.home-brand-pager .brand-tile-face strong{font-size:18px}
.home-brand-pager .brand-tile span{font-size:10px;min-height:25px}
.brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.brand-card{padding:0;text-align:center;overflow:hidden}.brand-card .primary{width:100%;margin-top:8px}
.market-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.market-category-card{position:relative;overflow:hidden;border:0;border-radius:12px;box-shadow:0 10px 24px rgba(16,24,40,.16);padding:12px;display:grid;align-content:end;text-align:left;min-height:126px;background-size:cover;background-position:center;color:#fff}
.market-category-card:after{content:"";position:absolute;inset:auto 0 0;height:58%;background:linear-gradient(180deg,rgba(4,8,18,0),rgba(4,8,18,.76))}
.market-category-card strong,.market-category-card em,.market-category-card span{position:relative;z-index:1;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.market-category-card strong{font-size:17px;line-height:1.12;font-weight:900;color:#fff}
.market-category-card em{font-size:9px;line-height:1.1;font-style:normal;font-family:Arial,"Microsoft YaHei",sans-serif;font-weight:900;letter-spacing:0;text-transform:uppercase;color:rgba(255,255,255,.88);margin-top:2px}
.market-category-card span{font-size:11px;color:rgba(255,255,255,.9);margin-top:5px}
.brand-tile{background:transparent;border:0;box-shadow:none}
.brand-tile button{width:100%;display:grid;gap:6px;text-align:center}
.brand-tile-face{position:relative;aspect-ratio:1/1;border-radius:16px;color:#fff;display:grid;place-items:center;align-content:center;gap:6px;padding:12px 8px;box-shadow:var(--shadow);overflow:hidden}
.brand-tile-face:after{content:"";position:absolute;inset:auto -22px -28px auto;width:78px;height:78px;border-radius:999px;background:rgba(255,255,255,.16)}
.brand-cert{position:absolute;top:8px;left:8px;z-index:2;display:inline-flex;align-items:center;border-radius:3px;background:#111827;color:#f6d76b;border:1px solid rgba(246,215,107,.75);box-shadow:0 4px 10px rgba(16,24,40,.16);font-style:normal;font-size:10px;line-height:1;padding:4px 5px;font-weight:900}
.brand-tile-face strong{position:relative;z-index:1;font-size:20px;line-height:1;color:#fff;letter-spacing:0;font-family:Arial,"Microsoft YaHei",sans-serif;font-weight:900}
.brand-tile-face small{position:relative;z-index:1;font-size:10px;line-height:1.25;color:rgba(255,255,255,.88);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-tile span{font-size:10px;color:var(--muted);line-height:1.25;min-height:26px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brand-sign-card button{display:grid;gap:9px;align-content:start}
.brand-card-sign{width:100%;height:62px;border-radius:13px;overflow:hidden;background:#f8fafc;border:1px solid var(--line);display:grid;place-items:center}
.brand-card-sign img{width:100%;height:100%;object-fit:cover;display:block}
.brand-card-sign.generated-sign{padding:4px 7px;border-radius:10px}
.brand-card-sign.generated-sign strong{font-size:13px;line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-card-sign.generated-sign span{display:none}
.brand-sign-card strong{font-size:13px;line-height:1.25;min-height:28px;display:grid;place-items:center}
.brand-sign-card .muted{font-size:11px;line-height:1.35;min-height:28px;margin:0}
.upload-rules{display:grid;gap:6px;border:1px dashed #b7d7d0;background:#f0fdf9;color:#08735f;border-radius:14px;padding:10px;font-size:12px;line-height:1.4}
.brand-category-picker{display:grid;gap:9px;border:1px solid var(--line);background:#f8fafc;border-radius:14px;padding:10px}
.picker-title{display:flex;justify-content:space-between;gap:10px;align-items:center}
.picker-title strong{font-size:13px;color:var(--ink)}
.picker-title span{font-size:10px;color:var(--muted);line-height:1.3;text-align:right}
.category-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.category-check{position:relative;min-height:36px;border-radius:12px;border:1px solid #d0d5dd;background:#fff;color:var(--text);font-size:12px;font-weight:900;display:grid;place-items:center;text-align:center;padding:7px;overflow:hidden}
.category-check input{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0}
.category-check.active{background:#08735f;border-color:#08735f;color:#fff;box-shadow:0 8px 18px rgba(8,115,95,.18)}
.brand-store-preview{display:grid;gap:11px}
.brand-shop-sign{overflow:hidden;border-radius:16px;border:1px solid var(--line);background:#fff;aspect-ratio:1200/220;box-shadow:var(--shadow)}
.brand-shop-sign img{width:100%;height:100%;object-fit:contain;display:block}
.brand-store-preview .brand-shop-sign{position:relative;cursor:pointer}
.brand-store-preview .brand-shop-sign:after{content:"点击编辑店招";position:absolute;right:8px;top:8px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:10px;font-weight:900;padding:4px 7px}
.generated-sign{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;display:grid;align-content:center;padding:14px 18px}
.generated-sign strong{font-size:20px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.generated-sign span{font-size:10px;letter-spacing:0;color:rgba(255,255,255,.82);margin-top:4px}
.brand-public{display:grid;gap:11px}
.brand-shop-info{margin:0}.brand-shop-info p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.brand-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.brand-product-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 18px rgba(16,24,40,.07);padding:7px;display:grid;gap:5px;min-width:0}
.brand-product-img{aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#f8fafc}
.brand-product-img img{width:100%;height:100%;object-fit:cover;display:block}
.generated-product{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:8px;background:linear-gradient(135deg,#ecfdf5,#dbeafe);color:#08735f;text-align:center;padding:12px}
.generated-product b{width:48px;height:48px;border-radius:18px;background:#fff;display:grid;place-items:center;font-size:24px;box-shadow:0 8px 18px rgba(16,24,40,.08)}
.generated-product small{font-size:12px;line-height:1.35;color:#1f2937;font-weight:900}
.brand-product-card strong{font-size:11px;line-height:1.25;color:var(--ink);min-height:28px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brand-product-card span{font-size:10px;line-height:1.25;color:#b45309;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.home-new-head{align-items:center}
.tiny-more{min-height:28px;border-radius:999px;padding:5px 10px;font-size:11px;box-shadow:none}
.home-product-scroller{display:flex;gap:10px;overflow-x:auto;margin:0 -14px;padding:0 14px 7px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.home-product-scroller::-webkit-scrollbar{display:none}
.home-product-card{position:relative;flex:0 0 43%;max-width:43%;min-width:150px;text-align:left;padding:7px;scroll-snap-align:start}
.home-product-card .brand-product-img{position:relative;border-radius:11px;aspect-ratio:1.08/1}
.brand-product-logo{position:absolute;left:7px;top:7px;z-index:2;min-width:34px;max-width:58px;height:22px;border-radius:999px;background:rgba(17,24,39,.82);color:#f7d26a;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;font-size:10px;font-weight:900;font-style:normal;line-height:1;box-shadow:0 5px 12px rgba(0,0,0,.18)}
.home-product-card strong{font-size:12px;line-height:1.28;min-height:32px;margin-top:1px}
.home-product-card span{font-size:10px;color:#7c2d12}
.home-product-grid-12{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-product-grid-12 .home-product-card{display:grid;flex:none;max-width:none;min-width:0;width:100%;padding:5px;text-align:left;scroll-snap-align:unset;border-radius:12px;gap:4px}
.home-product-grid-12 .home-product-card .brand-product-img{aspect-ratio:1/1;border-radius:9px}
.home-product-grid-12 .brand-product-logo{left:4px;top:4px;min-width:24px;max-width:42px;height:16px;padding:0 5px;font-size:8px}
.home-product-grid-12 .home-product-card strong{font-size:10px;line-height:1.18;min-height:24px;margin-top:0;-webkit-line-clamp:2}
.home-product-grid-12 .home-product-card span{font-size:8px;line-height:1.2;color:#8a3a12;-webkit-line-clamp:1}
.editable-product{position:relative;touch-action:manipulation}
.editable-product em{position:absolute;right:7px;top:7px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;padding:3px 6px;font-size:9px;font-style:normal;opacity:.86;transition:.16s}
.editable-product:active em{opacity:1}
.product-editor{display:grid;gap:10px}
.product-editor .brand-product-img.preview{width:116px;margin:0 auto}
.product-delete-confirm{border:1px solid #fecaca;background:#fff7f7;border-radius:12px;padding:10px;display:grid;gap:8px}
.product-delete-confirm[hidden]{display:none}
.product-delete-confirm strong{color:#991b1b;font-size:14px}
.product-delete-confirm p{margin:0;color:#7f1d1d;font-size:12px;line-height:1.45}
.product-delete-confirm div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tabs button{flex:0 0 auto;border-radius:999px;background:#fff;border:1px solid var(--line);padding:8px 13px;font-weight:900;color:var(--muted)}.tabs button.active{background:#111827;color:#fff}
.form{display:grid;gap:10px}.grid{display:grid;gap:9px}.grid.two{grid-template-columns:1fr 1fr}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.file-btn{position:relative;overflow:hidden}.file-btn input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0}
.file-list{display:grid;gap:6px;border-radius:14px;background:#f8fafc;border:1px dashed #d0d5dd;padding:10px;color:var(--muted);font-size:12px}
.file-list span{display:block;color:var(--text);line-height:1.35}
.file-list em{font-style:normal;line-height:1.45}
.order-file-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.order-file-chip{min-width:0;border-radius:12px;background:#fff;border:1px solid var(--line);padding:5px;text-align:left;display:grid;gap:4px}
.order-file-chip img,.order-file-chip b{width:100%;aspect-ratio:1/1;border-radius:9px;object-fit:cover;background:linear-gradient(135deg,#e8fbf5,#dbeafe);display:grid;place-items:center;color:var(--brand);font-size:16px}
.order-file-chip span{font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-file-chip small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sample-track-search{display:grid;grid-template-columns:58px minmax(0,1fr) 86px;gap:8px;align-items:center}
.sample-photo-panel{display:grid;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.sample-photo-capture{display:flex;align-items:center;justify-content:center;min-height:42px}
.sample-photo-list,.sample-photo-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 0}
.sample-photo-thumb{position:relative;flex:0 0 74px;width:74px;min-height:84px;padding:0;border:1px solid var(--line);border-radius:8px;background:#f8fafc;overflow:hidden;text-align:left}
.sample-photo-thumb img{display:block;width:74px;height:60px;object-fit:cover}
.sample-photo-thumb span{display:block;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:10px}
.sample-photo-more{flex:0 0 auto;min-width:64px;border:1px dashed var(--line);border-radius:8px;background:#fff;color:var(--brand);font-weight:700}
.sample-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sample-photo-gallery figure{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f8fafc}
.sample-photo-gallery img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.sample-photo-gallery figcaption{padding:6px;color:var(--muted);font-size:11px;line-height:1.35}
.sample-cloud-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.track-notice{margin:0;padding:7px 9px;border-radius:8px;background:#fff4e5;color:#9a5b00;font-size:12px;line-height:1.4}
.track-state{margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:12px;line-height:1.5}
.track-state.is-loading{border-color:#b7ddd6;background:#edf9f6;color:var(--brand)}
.track-state.is-empty,.track-state.is-action{border-color:#f1d19a;background:#fff8e8;color:#8a5400}
.track-state.is-error{border-color:#f0b8b8;background:#fff1f1;color:#a52a2a}
.track-state.is-local{border-style:dashed;background:#f3f5f7;color:#596273}
.track-badge{font-size:11px;font-weight:800;color:var(--muted)}
.track-kind-realtime .track-badge{color:var(--brand)}
.track-kind-error .track-badge{color:#a52a2a}
.track-kind-empty .track-badge,.track-kind-carrier .track-badge{color:#8a5400}
.track-events{display:grid;gap:8px}
.track-event{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}
.track-event b{color:var(--text)}.track-event span{color:var(--text);line-height:1.4}.track-event small{grid-column:2;color:var(--muted);font-size:11px}
.sample-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.sample-shortcuts button{min-height:66px;border-radius:15px;background:#f8fafc;border:1px solid var(--line);padding:10px;text-align:left}
.sample-shortcuts strong{display:block;color:var(--ink);font-size:14px;margin-bottom:4px}.sample-shortcuts span{color:var(--muted);font-size:11px;line-height:1.35}
.scan-btn{position:relative;min-height:44px;border-radius:13px;border:1px solid var(--line);background:#fff;color:var(--muted);font-weight:900;display:grid;place-items:center;overflow:hidden}
.scan-btn input{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0}
.auto-field,input.auto-field[readonly],select.auto-field{background:#f8fafc;color:#667085;border-style:dashed}
.auto-field::placeholder{color:#98a2b3}
.track-result{display:grid;gap:8px}
.track-card{border:1px solid var(--line);border-radius:15px;background:#f8fafc;padding:11px;display:grid;gap:8px}
.sample-item{display:grid;gap:8px}
.track-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.track-steps span{border-radius:12px;border:1px solid var(--line);background:#fff;padding:7px 5px;text-align:center;color:var(--muted);font-size:10px;line-height:1.25}
.track-steps span.done{background:var(--soft);border-color:#baf4df;color:var(--brand)}
.track-steps b{display:block;font-size:11px;margin-bottom:3px}.track-steps small{display:block;font-size:9px;color:inherit}
.order-manager{display:grid;gap:10px}
.order-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.order-shortcuts button{min-height:62px;border-radius:15px;background:#f8fafc;border:1px solid var(--line);padding:8px 4px;display:grid;place-items:center;text-align:center}
.order-shortcuts strong{font-size:12px;color:var(--ink)}
.order-shortcuts span{font-size:10px;color:var(--muted);line-height:1.2}
.order-tabs{margin:0 -14px -4px}
.order-list{display:grid;gap:11px}
.order-card{display:grid;gap:10px}
.order-next{margin:0;color:#344054;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:9px 10px;font-size:12px;line-height:1.45}
.order-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}
.order-status{border-radius:999px;background:#fff4e5;color:#f97316;border:1px solid #fed7aa;padding:5px 8px;font-size:11px;font-weight:900;white-space:nowrap}
.order-customer{margin:0;font-size:17px;font-weight:900;color:var(--ink)}
.order-body{display:grid;grid-template-columns:78px minmax(0,1fr);gap:11px;align-items:start;border-top:1px solid var(--line);padding-top:10px}
.order-thumb{height:78px;border-radius:12px;background:linear-gradient(135deg,#e8fbf5,#dbeafe);display:grid;place-items:center;color:var(--brand);font-size:24px;font-weight:900}
.order-thumb-photo{position:relative;overflow:hidden;padding:0;border:0}
.order-thumb-photo img{width:100%;height:100%;object-fit:cover;display:block}
.order-thumb-photo span{position:absolute;right:5px;bottom:5px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:10px;padding:3px 6px}
.order-body p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.order-info{display:flex;justify-content:space-between;align-items:center;border-radius:14px;background:#f8fafc;padding:10px 12px;color:var(--muted)}
.order-info strong{font-size:18px;color:var(--ink)}
.order-progress{min-height:42px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;text-align:left;padding:9px 12px;font-weight:900}
.order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.delete-confirm{border:1px solid #fecaca;background:#fff7f7;border-radius:15px;padding:12px;display:grid;gap:7px}
.delete-confirm strong{color:#b42318;font-size:15px}
.delete-confirm p{margin:0;color:#667085;font-size:12px;line-height:1.45}
.delete-confirm .actions{margin-top:3px}
.node-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:9px}
.node-summary span{border-radius:999px;background:#fff;border:1px solid var(--line);padding:6px 4px;text-align:center;color:var(--muted);font-size:11px;font-weight:900}
.node-summary span.done{background:var(--soft);color:var(--brand);border-color:#baf4df}
.node-summary span.pending{background:#fff7ed;color:#b54708;border-color:#fed7aa}
.node-summary small{grid-column:1/-1;color:var(--muted);font-size:11px;text-align:center}
.extra-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:13px;padding:9px 10px;font-size:12px}
.extra-summary strong{font-size:13px}.extra-summary span{color:#344054;text-align:right}.extra-summary.warn{border-color:#fed7aa;background:#fffbeb;color:#b54708}
.node-card{display:grid;gap:9px;border:1px solid var(--line);border-radius:15px;padding:12px;margin:10px 0;background:#fff}
.order-page-intro{display:grid;gap:5px;padding:4px 2px 10px}
.order-page-kicker{color:var(--brand);font-size:11px;font-weight:900;letter-spacing:.02em}
.order-page-intro h2{margin:0;font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.order-page-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.order-node-summary-card{margin-top:0}
.order-node-summary-card .section-head{margin:0 0 9px}
.order-node-list{display:grid;gap:10px}
.order-node-list .node-card{margin:0}
.acceptance-sheet{display:grid;gap:12px;border:1px solid #b9b3a5;background:#fffdf5;padding:12px;color:#30302d}
.acceptance-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #b9b3a5}
.acceptance-sheet-grid>span,.acceptance-sheet-grid>label{min-width:0;padding:8px;border-right:1px solid #d7d1c2;border-bottom:1px solid #d7d1c2;font-size:11px;color:#756f64}
.acceptance-sheet-grid>span:nth-child(2n),.acceptance-sheet-grid>label:nth-child(2n){border-right:0}
.acceptance-sheet-grid>span:nth-last-child(-n+2),.acceptance-sheet-grid>label:nth-last-child(-n+2){border-bottom:0}
.acceptance-sheet-grid strong{display:block;margin-top:4px;color:#24231f;font-size:13px;overflow-wrap:anywhere}
.acceptance-form .acceptance-sheet-grid{gap:0}
.acceptance-form .acceptance-sheet-grid label{display:grid;gap:5px}
.acceptance-form .acceptance-sheet-grid input,.acceptance-form .acceptance-sheet-grid select{width:100%;min-height:34px;margin:0;background:#fff}
.acceptance-check-list{display:grid;gap:7px;border:1px dashed #c9c0ad;padding:9px;font-size:12px}
.acceptance-check-list label{display:flex;align-items:flex-start;gap:7px;line-height:1.4}
.acceptance-check-list input{width:18px;min-height:18px;margin:0}
.acceptance-form textarea{min-height:70px}
.acceptance-signature{display:grid;gap:7px}
.acceptance-signature canvas{display:block;width:100%;height:150px;border:1px solid #aaa397;background:#fff;touch-action:none}
.acceptance-signature-result{display:grid;grid-template-columns:82px minmax(0,1fr);gap:6px 10px;align-items:center;border-top:1px solid #d7d1c2;padding-top:10px;font-size:12px}
.acceptance-signature-result img{width:100%;height:78px;object-fit:contain;object-position:left center;background:#fff;border:1px solid #ded9ce}
.acceptance-signature-result strong{font-size:15px}
.acceptance-signature-result small{grid-column:1/-1;color:#756f64}
.acceptance-remarks,.acceptance-checks{margin:0;padding:8px;background:#fff;border:1px solid #e5dfd2;font-size:12px;line-height:1.45}
.acceptance-export-pdf{width:100%;margin-top:10px}
@media (max-width:520px){.acceptance-sheet-grid{grid-template-columns:1fr}.acceptance-sheet-grid>span,.acceptance-sheet-grid>label,.acceptance-sheet-grid>span:nth-child(2n),.acceptance-sheet-grid>label:nth-child(2n){border-right:0}.acceptance-sheet-grid>span:nth-last-child(-n+2),.acceptance-sheet-grid>label:nth-last-child(-n+2){border-bottom:1px solid #d7d1c2}.acceptance-sheet-grid>span:last-child,.acceptance-sheet-grid>label:last-child{border-bottom:0}}
.node-ok{color:#16a34a!important}.node-warn{color:#f97316!important}
.file-list small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.order-confirm{display:grid;gap:12px}
.order-address{display:grid;grid-template-columns:42px minmax(0,1fr) 64px;gap:10px;align-items:center}
.check-line{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;color:var(--text);line-height:1.45}
.check-line input{width:20px;min-height:20px;margin:2px 0 0}
.payment-detail,.pay-rule{display:grid;gap:8px}
.pay-rule{border:1px solid var(--line);background:#f8fafc;border-radius:14px;padding:11px}
.pay-rule p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.escrow-note{margin:9px 0 0;border-radius:13px;background:#ecfdf3;border:1px solid #bbf7d0;color:#08735f;padding:10px;font-size:12px;line-height:1.45}
.order-bottom{position:sticky;bottom:80px;z-index:15;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:10px;display:grid;grid-template-columns:1fr 132px;gap:10px;align-items:center}
.order-bottom span{font-weight:900}.order-bottom b{color:#f97316;font-size:20px}
.pay-success{text-align:center;display:grid;gap:12px;padding:28px 16px}.pay-success .badge-icon{margin:0 auto;width:56px;height:56px;border-radius:20px;background:#dcfce7;color:#16a34a;font-size:28px}.pay-success h2,.pay-success h3{margin:0}.pay-success h3{color:#ef4444}
.rate-panel{border:1px solid var(--line);border-radius:14px;background:#fff;margin:10px 0;padding:12px;display:grid;gap:12px}
.rate-tags{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rate-tags button{min-height:42px;border-radius:13px;border:1px solid var(--line);background:#f8fafc;color:var(--muted);font-weight:900}
.rate-tags button.active{background:#fff7ed;border-color:#fb923c;color:#f97316}
.star-row{display:grid;grid-template-columns:82px 1fr;align-items:center;gap:8px;color:var(--text)}
.stars{display:grid;grid-template-columns:repeat(5,34px);gap:4px}
.stars button{font-size:29px;line-height:1;color:#d0d5dd}
.stars button.active{color:#f97316}
.rate-panel + .primary{background:linear-gradient(135deg,#ff8a2a,#f97316)}
.list{display:grid;gap:10px}.item{padding:12px}.item strong{display:block;font-size:14px}.item p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.quote-import-status{border:1px solid var(--line);background:#f8fafc;border-radius:14px;padding:10px;display:grid;gap:7px}
.quote-import-status p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.quote-import-status.warn{border-color:#fed7aa;background:#fffbeb}
.quote-import-preview{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid var(--line)}
.quote-preview-lines{display:grid;gap:5px;border-top:1px solid var(--line);padding-top:7px}
.quote-preview-lines span{display:block;font-size:11px;line-height:1.35;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wechat-import-actions .ghost{background:#eef6f4;border-color:#d4ebe5;color:#0f5f51}
.wechat-import-actions .file-btn{width:100%}
.subhead{display:flex;gap:10px;align-items:center;margin:3px 0 10px}.back{width:42px;height:42px;border-radius:15px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);font-size:25px}.subhead h2{margin:0;font-size:22px}
.bottom-nav{position:fixed;left:50%;bottom:0;z-index:30;transform:translateX(-50%);width:min(460px,100vw);display:grid;grid-template-columns:repeat(5,1fr);gap:2px;background:#fff;border-top:1px solid var(--line);padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -12px 32px rgba(16,24,40,.08)}
.nav{height:58px;border-radius:15px;display:grid;grid-template-rows:28px 16px;place-items:center;color:#667085;font-size:11px;font-weight:900}.nav.active{background:var(--soft);color:var(--brand)}.nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.toast{position:fixed;left:50%;bottom:94px;transform:translateX(-50%) translateY(16px);opacity:0;z-index:80;background:#111827;color:#fff;padding:11px 14px;border-radius:14px;box-shadow:var(--shadow);transition:.2s;max-width:86vw;text-align:center;pointer-events:none}.toast.show{opacity:1;transform:translateX(-50%)}
.modal{position:fixed;inset:0;background:rgba(17,24,39,.42);z-index:70;display:grid;place-items:end center;padding:14px}.modal-card{width:min(430px,100%);max-height:86vh;overflow:auto;padding:14px}
.modal-full{place-items:stretch center;padding:0;background:#f5f7f8}
.modal-full .full-card{width:min(460px,100vw);max-height:100vh;min-height:100vh;border-radius:0;border:0;box-shadow:none;padding:14px 14px 86px;overflow:auto}
.modal-close-bottom{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(432px,calc(100vw - 28px));z-index:75}
.order-gallery{display:grid;gap:12px}
.order-gallery h2{margin:2px 0 0}
.gallery-grid{display:grid;grid-template-columns:1fr;gap:12px}
.gallery-item{display:grid;gap:7px;border-radius:16px;background:#fff;border:1px solid var(--line);padding:8px;box-shadow:var(--shadow)}
.gallery-item.active{border-color:#34d399;box-shadow:0 10px 26px rgba(8,115,95,.16)}
.gallery-item img,.gallery-file{width:100%;max-height:68vh;object-fit:contain;border-radius:12px;background:#0f172a}
.gallery-file{height:190px;display:grid;place-items:center;color:#fff;font-weight:900}
.gallery-item strong{font-size:13px;color:var(--ink)}
.gallery-item span{font-size:11px;color:var(--muted)}
canvas{display:block;width:100%;background:#111827;border-radius:14px}
@media(max-width:380px){.view{padding:11px}.grid.two,.actions,.search{grid-template-columns:1fr}.stats{gap:7px}.banner{flex-basis:86%}.home-product-grid-12{gap:6px}.home-product-grid-12 .home-product-card{padding:4px}.home-product-grid-12 .home-product-card strong{font-size:9px}.home-product-grid-12 .home-product-card span{font-size:7px}}


.quote-sheet-card .muted{line-height:1.55}
.quote-preface{min-height:74px;margin:10px 0;background:#f8fafc}
.quote-sheet-scroll{overflow:auto;border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin:10px 0}
.quote-sheet-table{width:max-content;min-width:100%;border-collapse:collapse;font-size:12px}
.quote-sheet-table th,.quote-sheet-table td{border-bottom:1px solid #eef2f7;border-right:1px solid #eef2f7;padding:6px;vertical-align:top;min-width:132px;white-space:nowrap}
.quote-sheet-table th{background:#f1f5f9;position:sticky;top:0;z-index:1}
.quote-sheet-input{width:100%;min-width:108px;border:0;background:transparent;padding:7px 6px;font-size:12px;line-height:1.35;outline:none;box-sizing:border-box}.quote-sheet-input-wide{width:auto}
.quote-sheet-input:focus{background:#fff7ed;box-shadow:inset 0 0 0 1px #f59e0b;border-radius:6px}
.quote-sheet-value{min-width:108px;padding:7px 6px;font-size:12px;line-height:1.35;color:#111827;box-sizing:border-box;user-select:text;-webkit-user-select:text}.quote-sheet-value-wide{width:auto}
.quote-sheet-preview-scroll{min-height:220px;max-height:min(68dvh,680px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.quote-sheet-preview-scroll .quote-sheet-table{transform-origin:top left}
.quote-sheet-table.quote-sheet-source-layout th,.quote-sheet-table.quote-sheet-source-layout td{min-width:116px;white-space:normal;overflow-wrap:break-word;word-break:normal}
.quote-sheet-source-layout .quote-sheet-input,.quote-sheet-source-layout .quote-sheet-value{min-width:0;width:100%;font:inherit;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal}
.quote-sheet-input-multiline{display:block;min-height:52px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.quote-sheet-document-row td{min-width:0!important;white-space:normal;background:#fbfdff}
.quote-sheet-document-row .quote-sheet-input,.quote-sheet-document-row .quote-sheet-value{min-width:0!important;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.quote-sheet-value-multiline{white-space:pre-wrap;overflow-wrap:anywhere}
.quote-sheet-total-row td{background:#f0fdf4;font-weight:800}
button.small{padding:7px 9px;font-size:12px}


.quote-sheet-full tr:first-child .quote-sheet-input{font-weight:700}
.quote-sheet-full .quote-original-head th{background:#dbeafe}
.quote-sheet-full .quote-row-op{min-width:64px;background:#fff}
.quote-sheet-full tr:nth-child(1) td .quote-sheet-input,
.quote-sheet-full tr:nth-child(2) td .quote-sheet-input,
.quote-sheet-full tr:nth-child(3) td .quote-sheet-input{font-size:12px;color:#334155}


.quote-sheet-fullscreen{height:calc(100vh - 90px);display:flex;flex-direction:column}
.quote-sheet-fullscreen .quote-sheet-scroll{flex:1;max-height:none;margin-bottom:12px}
.quote-sheet-fullscreen .quote-sheet-table{font-size:13px}
.quote-sheet-fullscreen .quote-sheet-table th,
.quote-sheet-fullscreen .quote-sheet-table td{min-width:148px;padding:7px}
.quote-sheet-fullscreen .quote-sheet-input{font-size:13px;min-width:128px}
.modal-full .full-card{width:100vw;max-width:none;height:100vh;border-radius:0;padding:14px}

/* CAD uses the whole viewport. Controls stay compact so the drawing remains the focus. */
.cad-tool{display:grid;gap:12px}.cad-import-panel{display:grid;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.cad-import-panel strong{font-size:18px}.cad-import-panel p{margin:5px 0 0}.cad-import-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cad-import-actions .file-btn,.cad-import-actions button{min-height:43px;display:flex;align-items:center;justify-content:center}.cad-format-note{font-size:12px;color:var(--muted);line-height:1.45}.cad-current-file{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:11px 2px;text-align:left;border-bottom:1px solid var(--line)}.cad-current-file strong,.cad-current-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cad-current-file strong{font-size:14px}.cad-current-file small{margin-top:4px;color:var(--muted);font-size:12px}.cad-current-file b{font-size:12px;color:var(--brand);font-weight:800}.cad-file-icon{width:42px;height:50px;display:grid;place-items:center;border:1px solid #b7d9d1;border-radius:6px;background:#edf8f5;color:#08735f;font-size:11px;font-weight:900}.cad-empty-state{display:grid;gap:6px;padding:20px 4px;color:var(--muted);line-height:1.55}.cad-empty-state strong{color:var(--ink);font-size:15px}
.cad-module-launch{width:100%;min-height:43px}
.modal-full.cad-viewer-modal{padding:0;background:#101820;align-items:stretch}.modal-full.cad-viewer-modal .full-card{width:100vw;max-width:none;min-height:100dvh;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;background:#101820}.cad-viewer{position:relative;display:flex;flex-direction:column;width:100%;height:100dvh;min-height:0;background:#101820;color:#f8fafc}.cad-viewer-bar{height:52px;flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:calc(6px + env(safe-area-inset-top)) 10px 6px;background:rgba(15,23,32,.94);border-bottom:1px solid rgba(226,232,240,.16);z-index:3}.cad-viewer-title{min-width:0;flex:1}.cad-viewer-title strong,.cad-viewer-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cad-viewer-title strong{font-size:14px}.cad-viewer-title small{margin-top:2px;color:#b7c4cc;font-size:11px}.cad-viewer-actions{display:flex;align-items:center;gap:6px}.cad-icon-control,.cad-text-control{height:34px;min-width:34px;padding:0 8px;border:1px solid rgba(226,232,240,.25);border-radius:7px;background:rgba(255,255,255,.1);color:#fff;font-size:19px;line-height:1}.cad-text-control{min-width:42px;font-size:12px;font-weight:800}.cad-canvas-wrap{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}.cad-canvas-wrap canvas{width:100%;height:100%;border-radius:0;background:#101820;touch-action:none}.cad-viewer-loading{position:absolute;inset:0;display:grid;place-content:center;gap:8px;padding:28px;text-align:center;background:rgba(16,24,32,.82);pointer-events:none}.cad-viewer-loading[hidden]{display:none}.cad-viewer-loading strong{font-size:16px}.cad-viewer-loading span{font-size:12px;color:#cbd5e1}.cad-viewer-status{min-height:48px;flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid rgba(226,232,240,.15);background:rgba(15,23,32,.96);color:#dce9ee;font-size:12px;line-height:1.35}.cad-viewer-status span{flex:1;min-width:0}.cad-viewer-status button{flex:0 0 auto;padding:6px 7px;border:1px solid rgba(226,232,240,.2);border-radius:6px;color:#f8fafc;font-size:11px}.cad-status-error{color:#fecaca}.cad-page-switch{position:absolute;left:50%;bottom:58px;z-index:4;display:flex;align-items:center;gap:8px;padding:5px 7px;border:1px solid rgba(226,232,240,.24);border-radius:8px;background:rgba(15,23,32,.86);transform:translateX(-50%);box-shadow:0 8px 20px rgba(0,0,0,.24)}.cad-page-switch span{font-size:11px;color:#f8fafc;white-space:nowrap}.cad-page-switch .small{min-height:30px;padding:5px 8px;background:rgba(255,255,255,.08);color:#fff;border-color:rgba(226,232,240,.22)}.cad-calibration-dialog{position:absolute;z-index:10;left:50%;top:50%;width:min(360px,calc(100% - 28px));padding:16px;border:1px solid rgba(226,232,240,.2);border-radius:10px;background:#fff;color:#1f2937;box-shadow:0 20px 48px rgba(0,0,0,.35);transform:translate(-50%,-50%)}.cad-calibration-dialog strong{display:block;font-size:16px}.cad-calibration-dialog p{margin:6px 0 12px;color:#667085;font-size:12px;line-height:1.45}.cad-calibration-dialog>div{display:flex;align-items:center;gap:8px}.cad-calibration-dialog input{min-width:0;flex:1;border-radius:7px}.cad-calibration-dialog footer{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:12px}.cad-calibration-dialog footer button{min-height:40px;border-radius:7px}

/* The staged CAD module keeps its own page runtime isolated from the host app. */
.modal-full.cad-module-modal{padding:0;background:#101820;align-items:stretch}.modal-full.cad-module-modal .full-card{width:100vw;max-width:none;min-height:100dvh;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;background:#101820}.cad-module-shell{width:100%;height:100%;min-height:100dvh}.cad-module-shell iframe{display:block;width:100%;height:100%;min-height:100dvh;border:0;background:#101820}

/* Fullscreen quote editor keeps the sheet visible while the mobile keyboard is open. */
.modal-full.quote-editor-modal{height:var(--quote-editor-visible-height,100dvh);align-items:flex-start}
.modal-full.quote-editor-modal .full-card{width:100vw;max-width:none;min-height:var(--quote-editor-visible-height,100dvh);height:var(--quote-editor-visible-height,100dvh);max-height:var(--quote-editor-visible-height,100dvh);padding:0;overflow:hidden;background:#fff}
.quote-sheet-fullscreen{position:relative;height:var(--quote-editor-visible-height,100dvh);min-height:0;box-sizing:border-box;display:flex;flex-direction:column;gap:0;padding:max(6px,env(safe-area-inset-top)) 8px max(6px,env(safe-area-inset-bottom));background:#fff}
.quote-editor-bar{position:absolute;z-index:10;top:0;left:0;right:0;height:50px;min-height:50px;max-height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-bottom:1px solid #dbe3e8;background:rgba(255,255,255,.97);box-shadow:0 5px 12px rgba(15,23,42,.1);transform:translateY(-110%);transition:transform .18s ease;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.quote-editor-bar::-webkit-scrollbar{display:none}
.quote-sheet-fullscreen.tools-open .quote-editor-bar{transform:translateY(0)}
.quote-editor-add-shortcut{position:absolute;z-index:12;right:10px;top:6px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:1px solid rgba(8,115,95,.24);border-radius:9px;background:rgba(255,255,255,.88);box-shadow:0 2px 8px rgba(15,23,42,.12);color:#08735f;font-size:20px;line-height:1;font-weight:600;transition:opacity .16s ease}
.quote-sheet-fullscreen.tools-open .quote-editor-add-shortcut{opacity:0;pointer-events:none}
.quote-editor-reveal{position:absolute;z-index:12;left:50%;top:0;width:58px;height:12px;min-height:0;padding:0;border:1px solid rgba(255,255,255,.66);border-radius:0 0 8px 8px;background:rgba(215,180,106,.64);box-shadow:0 3px 10px rgba(15,23,42,.12);transform:translateX(-50%);transition:opacity .18s ease,transform .18s ease}.quote-editor-reveal::after{content:"";display:block;width:20px;height:2px;margin:auto;border-radius:3px;background:rgba(255,255,255,.78)}.quote-sheet-fullscreen.tools-open .quote-editor-reveal{opacity:0;transform:translate(-50%,-14px);pointer-events:none}
.quote-editor-title{min-width:0;flex:0 1 auto;display:flex;align-items:baseline;gap:7px;white-space:nowrap}.quote-editor-title strong{font-size:15px;line-height:1.15;white-space:nowrap}.quote-editor-title small{color:#64748b;font-size:10px;line-height:1.2;white-space:nowrap}
.quote-editor-version{display:inline-block;margin-left:6px;color:#08735f;font-size:10px;font-style:normal;font-weight:800;vertical-align:middle}
.quote-editor-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto;flex-wrap:nowrap}.quote-editor-tools .small{min-width:32px;min-height:32px;height:32px;padding:4px 7px;border-radius:8px;font-size:11px}.quote-editor-tools .quote-editor-close{min-width:32px;font-size:20px;line-height:1;font-weight:500}
.quote-sheet-fullscreen.tools-open{padding-top:50px}
.quote-editor-zoom-control{min-width:34px!important}
.quote-sheet-fullscreen .quote-sheet-scroll{flex:1 1 auto;min-height:0;max-height:none;margin:0;border-radius:8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.quote-sheet-fullscreen .quote-sheet-table{transform-origin:top left}
.quote-editor-zoom{min-width:38px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#475569;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.quote-sheet-fullscreen .quote-sheet-table{width:var(--quote-sheet-display-width);min-width:0;table-layout:fixed;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px;line-height:1.4}.quote-sheet-fullscreen .quote-sheet-table th,.quote-sheet-fullscreen .quote-sheet-table td{min-width:0;padding:5px;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif!important;font-size:14px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.quote-sheet-fullscreen .quote-sheet-input,.quote-sheet-fullscreen .quote-sheet-value{width:100%;min-width:0;min-height:38px;padding:6px;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif!important;font-size:14px!important;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.quote-sheet-fullscreen .quote-sheet-input-multiline{height:auto;min-height:44px;resize:none;overflow:hidden}
.quote-sheet-fullscreen .quote-row-op{width:54px;min-width:54px}.quote-sheet-fullscreen .quote-row-op .small{min-height:30px;padding:5px 7px;font-size:11px}.quote-sheet-fullscreen .quote-row-op-empty{background:#f8fafc}
.quote-editor-export-menu{position:relative;flex:0 0 auto}.quote-editor-export-menu summary{height:34px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:5px 8px;border:1px solid #d1d5db;border-radius:9px;background:#f2f6f7;color:#08735f;font-weight:800;font-size:12px;cursor:pointer;list-style:none}.quote-editor-export-menu summary::-webkit-details-marker{display:none}.quote-editor-export-menu .quote-export-panel{position:absolute;top:40px;right:0;z-index:8;width:254px;margin:0;border:1px solid #b7e4d6;border-radius:10px;padding:8px;gap:8px;box-shadow:0 12px 28px rgba(15,23,42,.18)}.quote-editor-export-menu .quote-export-title{display:none}.quote-editor-export-menu .quote-check{min-height:36px;border-radius:8px;font-size:12px}.quote-editor-export-menu .quote-export-panel .primary{min-height:38px;padding:7px 10px;font-size:13px}

/* Phone editing uses a bottom form instead of a keyboard-covered table cell. */
.quote-cell-editor-modal{height:var(--quote-editor-visible-height,100dvh);padding:0;align-items:flex-end;background:rgba(15,23,42,.54)}
.quote-cell-editor{width:min(560px,100%);max-height:calc(var(--quote-editor-visible-height,100dvh) - 8px);height:min(690px,calc(var(--quote-editor-visible-height,100dvh) - 8px));margin:0;border-radius:18px 18px 0 0;display:flex;flex-direction:column;overflow:hidden;padding:0;background:#fff}
.quote-cell-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px 11px;border-bottom:1px solid #e5e7eb;flex:0 0 auto}.quote-cell-editor-head strong{display:block;font-size:19px;line-height:1.25}.quote-cell-editor-head small{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.4}.quote-cell-editor-head .small{min-width:36px;min-height:36px;padding:0;border-radius:10px;font-size:22px;line-height:1}
.quote-cell-editor-fields{display:grid;gap:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto;padding:0 16px}.quote-cell-editor-field{display:grid;grid-template-columns:minmax(96px,.72fr) minmax(0,1.35fr);align-items:center;gap:12px;min-height:62px;border-bottom:1px solid #edf0f2}.quote-cell-editor-field span{font-size:15px;font-weight:800;color:#1f2937;line-height:1.35}.quote-cell-editor-field input,.quote-cell-editor-field textarea{width:100%;min-width:0;height:42px;border:0;border-radius:0;background:transparent;padding:5px 0;font-size:17px;line-height:1.3;color:#111827;outline:none}.quote-cell-editor-field textarea{height:auto;min-height:160px;resize:vertical;white-space:pre-wrap}.quote-cell-editor-field input:focus,.quote-cell-editor-field textarea:focus{border-bottom:2px solid var(--brand)}.quote-cell-editor-field-multiline{grid-template-columns:1fr;align-items:start;padding:14px 0}.quote-cell-editor-field-multiline textarea{margin-top:2px;border:1px solid #d8e0e6;border-radius:8px;padding:10px}
.quote-cell-editor-actions{display:grid;grid-template-columns:minmax(76px,.8fr) minmax(76px,.8fr) minmax(0,1.25fr);gap:10px;flex:0 0 auto;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;background:#fff}.quote-cell-editor-actions .ghost,.quote-cell-editor-actions .primary,.quote-cell-editor-actions .danger{min-height:46px;border-radius:10px}
@media (min-width:761px){.quote-cell-editor-modal{align-items:center;padding:16px}.quote-cell-editor{border-radius:16px;max-height:min(690px,calc(100vh - 32px))}}
@media (max-width:520px){.quote-editor-bar{justify-content:flex-start}.quote-editor-title{max-width:82px}.quote-editor-title strong{font-size:13px}.quote-editor-title small{display:none}.quote-editor-tools{gap:3px}.quote-editor-tools .small{min-width:29px;padding:3px 5px;font-size:10px}.quote-editor-zoom{min-width:32px}.quote-cell-editor-actions{grid-template-columns:minmax(68px,.8fr) minmax(68px,.8fr) minmax(0,1.3fr);gap:7px;padding-left:10px;padding-right:10px}.quote-cell-editor-actions .ghost,.quote-cell-editor-actions .primary,.quote-cell-editor-actions .danger{padding-left:6px;padding-right:6px;font-size:13px}}
@media (orientation:landscape){.quote-sheet-fullscreen.tools-open{padding-top:38px}.quote-editor-bar{height:38px;min-height:38px;max-height:38px;padding:3px 8px}.quote-editor-title small{display:none}.quote-editor-tools .small{height:30px;min-height:30px;min-width:30px;padding:3px 6px}.quote-editor-export-menu summary{height:30px}.quote-sheet-fullscreen .quote-sheet-scroll{border:1px solid #dbe3e8}}

/* Complete source-file preview is separate from the editable table reconstruction. */
.modal-full.quote-source-modal{height:100dvh;align-items:stretch;padding:0;background:#dfe4e8}
.modal-full.quote-source-modal .full-card{width:100vw;max-width:none;min-height:100dvh;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;background:#dfe4e8}
.quote-source-fullscreen{height:100dvh;min-height:0;display:flex;flex-direction:column;background:#dfe4e8;overflow:hidden}
.quote-source-bar{height:42px;min-height:42px;max-height:42px;flex:0 0 42px;display:flex;align-items:center;gap:8px;padding:4px 8px;border-bottom:1px solid #cbd3d9;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.09);z-index:5}
.quote-source-title{min-width:0;flex:1;display:flex;align-items:baseline;gap:7px}.quote-source-title strong{font-size:14px;white-space:nowrap}.quote-source-title small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}
.quote-source-tools{display:flex;align-items:center;gap:4px;flex:0 0 auto}.quote-source-tools .small{height:32px;min-height:32px;min-width:32px;padding:3px 7px;border-radius:6px;font-size:11px}.quote-source-tools .quote-source-close{font-size:19px;line-height:1}.quote-source-zoom{height:28px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#475569;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.quote-source-page-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;padding:6px}
.quote-source-workspace{display:flex;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}.quote-source-workspace>.quote-source-page-scroll{min-width:0}.quote-source-page-stage section.quote-office-original-page{position:relative}.quote-source-page-edit-layer{position:absolute;inset:0;z-index:2;pointer-events:none}.quote-source-direct-input{position:absolute;box-sizing:border-box;min-width:34px;min-height:24px;padding:1px 2px;border:1.5px solid transparent;border-radius:2px;background:rgba(255,255,255,.96);color:#0f172a;line-height:1.15;letter-spacing:0;outline:0;box-shadow:none;appearance:none;pointer-events:auto}.quote-source-direct-input:hover{border-color:rgba(8,115,95,.5);background:#fff}.quote-source-direct-input:focus{z-index:4;border-color:#08735f;background:#fff;box-shadow:0 0 0 2px rgba(8,115,95,.18)}.quote-source-direct-input.needs-review:not(:focus){box-shadow:inset 0 -2px 0 #d97706}.quote-source-fullscreen.is-editing .quote-source-page-scroll{background:#cfd8d6}
.quote-source-browser-editor{position:relative;min-width:22px;outline:0;cursor:text;caret-color:#08735f;transition:background-color .12s ease,box-shadow .12s ease}.quote-source-browser-editor:hover{background:rgba(8,115,95,.06);box-shadow:inset 0 0 0 1px rgba(8,115,95,.38)}.quote-source-browser-editor:focus{z-index:2;background:rgba(236,253,248,.8);box-shadow:inset 0 0 0 2px #08735f}.quote-source-browser-editor.needs-review:not(:focus){box-shadow:inset 0 -2px 0 #d97706}.quote-source-browser-editor:focus-visible{outline:0}
.quote-excel-browser-pages{display:flex!important;flex-direction:column!important;align-items:center!important;width:max-content!important;min-width:100%!important;padding:0!important;background:transparent!important}.quote-source-page-stage section.quote-excel-browser-page{box-sizing:border-box;min-height:794px!important;margin:0 auto 8px!important;padding:32px!important;background:#fff!important}.quote-excel-browser-page article{display:block}.quote-excel-browser-page .quote-sheet-scroll{overflow:visible;border:0;border-radius:0;margin:0}.quote-excel-browser-page .quote-sheet-table{width:var(--quote-sheet-display-width);min-width:0;table-layout:fixed}.quote-excel-browser-page .quote-sheet-table th,.quote-excel-browser-page .quote-sheet-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.quote-excel-browser-page .quote-sheet-value{width:100%;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.quote-source-page-stage{width:max-content;min-width:100%;transform-origin:top left}.quote-source-page-stage>.docx-wrapper{padding:0!important;background:transparent!important}.quote-source-page-stage section.docx{margin:0 auto 8px!important;box-shadow:0 1px 5px rgba(15,23,42,.22)!important}.quote-source-page-stage section.docx:last-child{margin-bottom:0!important}
.quote-office-original-pages{display:flex!important;flex-direction:column!important;align-items:center!important;width:max-content!important;min-width:100%!important}.quote-source-page-stage section.quote-office-original-page{display:block!important;width:1123px!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}.quote-office-original-image{display:block;width:100%;height:auto}
.quote-source-loading,.quote-source-error{width:min(420px,calc(100vw - 24px));min-height:160px;display:grid;place-content:center;gap:7px;margin:24px auto;padding:20px;background:#fff;border:1px solid #cbd5e1;text-align:center}.quote-source-loading strong,.quote-source-error strong{font-size:15px}.quote-source-loading span,.quote-source-error span{color:#64748b;font-size:11px;line-height:1.5}
.quote-source-full-image{display:block;max-width:none;height:auto;margin:0 auto;background:#fff}.quote-source-full-pdf{display:block;width:calc(100vw - 12px);height:calc(100dvh - 54px);border:0;background:#fff}
@media (orientation:landscape){.quote-source-bar{height:36px;min-height:36px;max-height:36px;flex-basis:36px;padding:2px 6px}.quote-source-title strong{font-size:12px}.quote-source-title small{display:none}.quote-source-tools .small{height:30px;min-height:30px;min-width:30px;padding:2px 6px}.quote-source-zoom{height:26px}.quote-source-page-scroll{padding:4px}.quote-source-page-stage section.docx{margin-bottom:5px!important}}
@media (max-width:520px) and (orientation:portrait){.quote-source-title small{display:none}.quote-source-tools{gap:3px}.quote-source-tools .small{padding:3px 6px}.quote-source-bar{gap:4px}.quote-source-zoom{display:none}}

/* WPS-like command strip for the read-only original-page preview. */
.quote-source-wps-bar{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));border-top:1px solid #cbd3d9;background:rgba(255,255,255,.97);box-shadow:0 -3px 12px rgba(15,23,42,.10);z-index:5}.quote-source-wps-bar button{min-width:0;min-height:42px;padding:7px 8px;border-radius:9px;font-size:13px;font-weight:800;white-space:nowrap}.quote-source-wps-bar .primary{background:#08735f;color:#fff;border-color:#08735f}
@media (min-width:700px){.quote-source-wps-bar{grid-template-columns:repeat(3,minmax(140px,190px));justify-content:center}}
@media (min-width:700px){.quote-source-fullscreen.is-editing .quote-source-wps-bar{grid-template-columns:repeat(3,minmax(140px,190px))}}

/* Focused Word/Excel quote workflow. */
.quote-simple,.quote-simple-current{display:grid;gap:12px;padding:16px;border:1px solid #dbe5e1;border-radius:8px;background:#fff}
.quote-simple header{display:flex;align-items:center;justify-content:space-between;gap:12px}.quote-simple header strong{font-size:18px}.quote-simple header span{padding:4px 8px;border-radius:6px;background:#edf7f4;color:#08735f;font-size:11px;font-weight:800}.quote-simple>p{margin:0;color:#64748b;font-size:12px;line-height:1.5}
.quote-simple-import{display:flex;align-items:center;justify-content:center;min-height:52px;border:1px solid #08735f;border-radius:7px;background:#08735f;color:#fff;font-size:15px;font-weight:800;cursor:pointer}.quote-simple-import input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.quote-simple-current{margin-top:10px}.quote-simple-file{display:flex;align-items:center;gap:11px;min-width:0}.quote-simple-file .quote-format-icon{flex:0 0 auto;width:42px;height:42px;border-radius:7px}.quote-simple-file span{min-width:0}.quote-simple-file strong,.quote-simple-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-simple-file strong{font-size:14px}.quote-simple-file small{margin-top:4px;color:#64748b;font-size:11px}
.quote-simple-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:64px;padding:11px 13px;border:1px solid #b7d8cf;border-radius:7px;background:#f3fbf8;color:#0f4f43;text-align:left}.quote-simple-preview span{min-width:0}.quote-simple-preview strong,.quote-simple-preview small{display:block}.quote-simple-preview strong{font-size:14px}.quote-simple-preview small{margin-top:4px;color:#52726b;font-size:11px}.quote-simple-preview>b{font-size:22px}
.quote-simple-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quote-simple-actions button{min-width:0;min-height:42px;padding:7px 8px;border-radius:7px;font-size:13px}.quote-wechat-action{background:#07c160!important;border-color:#07c160!important;color:#fff!important}
.quote-simple #quoteImportMeta:empty{display:none}.quote-simple #quoteImportMeta:not(:empty){display:block}.quote-simple .quote-confirm-panel{display:none}
.quote-simple-reimport{justify-self:start;min-height:36px;padding:6px 12px;border-radius:7px;font-size:12px}
@media(max-width:380px){.quote-simple,.quote-simple-current{padding:13px}.quote-simple-actions button{font-size:12px}}

/* Original-document comparison editor: the rendered source stays visible while
   the bound quote fields are edited in the same fullscreen workspace. */
.quote-source-edit-fullscreen{background:#eef2f3}.quote-source-edit-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px;padding:10px 16px;background:#fff;border-bottom:1px solid #cbd8d5;box-shadow:0 2px 10px rgba(15,23,42,.06);z-index:3}.quote-source-edit-bar strong{display:block;font-size:17px;line-height:1.3}.quote-source-edit-bar small{display:block;margin-top:3px;color:#64748b;font-size:11px}.quote-source-edit-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr);flex:1;min-height:0}.quote-source-edit-preview{display:flex;flex-direction:column;min-width:0;min-height:0;background:#dfe5e8;border-right:1px solid #cbd8d5}.quote-source-edit-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:7px 12px;background:#f8fafb;border-bottom:1px solid #cbd8d5}.quote-source-edit-preview-head strong{font-size:13px}.quote-source-edit-preview-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.quote-source-edit-preview .quote-source-page-scroll{padding:8px}.quote-source-edit-preview .quote-source-page-stage section.docx{margin-bottom:8px!important}.quote-source-edit-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f7faf9}.quote-source-edit-panel .quote-precise-note{flex:0 0 auto}.quote-source-edit-panel .quote-precise-scroll{padding:12px;overflow:auto}.quote-source-edit-panel .quote-precise-row{margin:0 auto 10px}.quote-source-edit-modal .full-card{padding:0;overflow:hidden;background:#eef2f3}
@media(max-width:900px){.quote-source-edit-layout{grid-template-columns:1fr;grid-template-rows:minmax(40dvh,1fr) minmax(46dvh,1fr)}.quote-source-edit-preview{border-right:0;border-bottom:1px solid #cbd8d5}.quote-source-edit-bar{min-height:54px;padding:8px 10px}.quote-source-edit-bar strong{font-size:15px}.quote-source-edit-bar small{font-size:10px}.quote-source-edit-panel .quote-precise-scroll{padding:9px}}


/* Quote tool simplification */
.quote-learn-card{gap:12px}
.quote-flow-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.quote-flow-title strong,.quote-sheet-head strong{font-size:16px}
.quote-flow-title p,.quote-sheet-head p{margin:6px 0 0}
.quote-flow-title span{flex:0 0 auto;background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}
.quote-template-actions .ghost{background:#f8fafc}
.quote-import-box{min-height:86px;resize:vertical}
.quote-learn-main{min-height:46px;font-weight:800}
.quote-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.quote-count{flex:0 0 auto;border:1px solid #d1fae5;background:#ecfdf5;color:#047857;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}
.quote-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.quote-main-actions .primary,.quote-main-actions .ghost{min-height:44px}
@media (min-width:560px){.quote-main-actions{grid-template-columns:1fr 1fr 1fr}}


/* Quote import now uses only the WeChat file picker. */
.quote-import-cache{display:none!important}
.quote-import-single{display:block}
.quote-wechat-import{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;font-weight:800}


/* Quote export options */
.quote-export-panel{margin-top:12px;border:1px solid #dbe8e3;background:#f8fffc;border-radius:14px;padding:12px;display:grid;gap:10px}
.quote-export-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.quote-export-title strong{font-size:14px}
.quote-export-title span{font-size:12px;color:#047857;background:#dcfce7;border-radius:999px;padding:4px 8px;font-weight:700}
.quote-export-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quote-check{min-height:42px;border:1px solid #d1d5db;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800;color:#334155}
.quote-check input{width:16px;height:16px;accent-color:#0f9f7a}
.quote-check.active{border-color:#99f6e4;background:#ecfdf5;color:#047857}
.quote-export-links{display:grid;gap:10px}
.quote-export-links a{text-align:center;text-decoration:none}
.quote-export-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.quote-export-link-row .ghost{white-space:nowrap}
@media(max-width:420px){.quote-export-link-row{grid-template-columns:1fr}.quote-export-link-row .ghost{width:100%}}


/* Quote template cleanup */
.quote-template-tip{margin:-4px 2px 2px;color:#64748b;font-size:12px;line-height:1.35}


/* Quote manager */
.quote-manager-entry{padding:0;overflow:hidden}
.quote-manager-entry-btn{width:100%;border:0;background:linear-gradient(135deg,#101820,#20302c);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.quote-manager-entry-btn strong{display:block;font-size:16px}
.quote-manager-entry-btn small{display:block;margin-top:4px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.35}
.quote-manager-entry-btn b{min-width:54px;text-align:center;background:#d7b46a;color:#111827;border-radius:999px;padding:7px 10px;font-size:13px}
.account-card{display:grid;gap:12px}.account-card strong{font-size:16px}.account-card p{margin:5px 0 0;line-height:1.5}.account-phone{color:var(--brand);font-size:12px;font-weight:800}.account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cloud-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.account-actions button,.cloud-actions button{min-height:40px;font-size:12px}.cloud-summary{display:grid;gap:12px}.cloud-summary strong{font-size:16px}.cloud-summary p{margin:5px 0 0;line-height:1.5}.cloud-summary b{color:var(--brand);font-size:23px}.cloud-empty{display:grid;gap:10px}.cloud-empty p{margin:0;line-height:1.5}.sms-code-row{display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:8px;align-items:stretch}.sms-code-row button{min-height:44px;white-space:nowrap;font-size:12px}.sms-code-row button:disabled{opacity:.58;cursor:default}
.quote-manager-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}
.quote-manager-summary strong{font-size:17px}
.quote-manager-summary b{font-size:24px;color:#0f9f7a}
.quote-manager-toolbar{display:grid;gap:10px}
.quote-manager-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.quote-manager-tabs button{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;color:#475569;font-weight:800}
.quote-manager-tabs button.active{background:#0f9f7a;color:#fff;border-color:#0f9f7a}
.quote-manager-list{display:grid;gap:10px}
.quote-manager-card{padding:12px;display:grid;gap:10px}
.quote-manager-main{border:0;background:transparent;padding:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;text-align:left;align-items:center;color:inherit}
.quote-manager-main strong{display:block;font-size:15px;line-height:1.3}
.quote-manager-main small,.quote-manager-main span span{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quote-format-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:0;color:#fff}
.quote-format-icon.word{background:linear-gradient(135deg,#1d4ed8,#60a5fa)}
.quote-format-icon.excel{background:linear-gradient(135deg,#047857,#34d399)}
.quote-format-icon.image{background:linear-gradient(135deg,#7c3aed,#f97316)}
.quote-format-icon.pdf{background:linear-gradient(135deg,#b91c1c,#fb7185)}
.quote-format-icon.system{background:linear-gradient(135deg,#111827,#64748b)}
.quote-format-icon.text{background:linear-gradient(135deg,#475569,#94a3b8)}
.quote-manager-products{display:flex;gap:6px;overflow-x:auto}
.quote-manager-products em{flex:0 0 auto;max-width:76%;font-style:normal;background:#f8fafc;border:1px solid #eef2f7;border-radius:999px;padding:6px 9px;font-size:11px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-manager-actions{display:grid;grid-template-columns:1fr 1fr 82px;gap:8px}
.quote-manager-actions button{min-height:38px}
@media(max-width:380px){.quote-manager-actions{grid-template-columns:1fr 1fr}.quote-manager-actions .danger{grid-column:1/-1}}


/* Quote manager file grid */
.quote-file-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 10px;padding:2px 0 14px}
.quote-file-tile-wrap{position:relative;min-width:0;text-align:center}
.quote-file-tile{width:100%;min-height:118px;border:0;background:transparent;padding:5px 2px 8px;display:grid;justify-items:center;align-content:start;gap:5px;color:var(--text)}
.quote-file-tile:active{background:#eefaf6;border-radius:12px}
.quote-file-tile strong{font-size:11px;line-height:1.2;font-weight:800;max-width:100%;height:40px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-all}
.quote-file-tile small{display:block;max-width:100%;font-size:8px;color:#64748b;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-file-more{position:absolute;right:2px;top:0;width:24px;height:24px;border:1px solid #e2e8f0;background:rgba(255,255,255,.92);border-radius:999px;color:#64748b;font-weight:900;line-height:1;box-shadow:0 4px 10px rgba(15,23,42,.08)}
.quote-file-icon{position:relative;width:66px;height:72px;display:block}
.file-paper{position:absolute;left:10px;top:0;width:46px;height:58px;background:#fff;border:2px solid #cbd5e1;border-radius:5px;box-shadow:0 6px 12px rgba(15,23,42,.12)}
.file-fold{position:absolute;right:-2px;top:-2px;width:19px;height:19px;background:linear-gradient(135deg,#f8fafc 0 48%,#cbd5e1 50% 54%,#fff 56%);border-left:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1}
.file-lines{position:absolute;left:9px;right:8px;top:19px;height:26px;background:repeating-linear-gradient(to bottom,#94a3b8 0 3px,transparent 3px 7px);opacity:.8}
.quote-file-icon b{position:absolute;left:1px;right:1px;bottom:4px;margin:auto;width:60px;height:29px;border-radius:6px;display:grid;place-items:center;color:#fff;font-size:18px;font-weight:900;letter-spacing:0;box-shadow:0 8px 14px rgba(15,23,42,.18)}
.quote-file-icon.word b{background:#1f5fbf}
.quote-file-icon.excel b{background:#17834a}
.quote-file-icon.pdf b{background:#ef4444}
.quote-file-icon.image b{background:#39aef3}
.quote-file-icon.system b{background:#111827}
.quote-file-icon.text b{background:#64748b}
.quote-file-icon.image .file-paper{border-color:#39aef3;background:#effaff}
.quote-file-icon.image .file-lines{background:radial-gradient(circle at 35% 36%,#bae6fd 0 6px,transparent 7px),radial-gradient(circle at 63% 58%,#7dd3fc 0 8px,transparent 9px);opacity:1}
.quote-file-icon.excel .file-lines{background:linear-gradient(90deg,#94a3b8 0 2px,transparent 2px 8px),linear-gradient(#94a3b8 0 2px,transparent 2px 8px);background-size:10px 10px;opacity:.75}
.quote-file-empty{grid-column:1/-1}
.quote-file-menu-head{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:12px}
.quote-file-menu-head h3{margin:0;font-size:16px;line-height:1.25;word-break:break-all}
.quote-file-menu-actions{display:grid;gap:9px}
@media(max-width:380px){.quote-file-grid{gap:15px 7px}.quote-file-icon{transform:scale(.92)}.quote-file-tile strong{font-size:10px}}

/* Quote month archive */
.quote-month-results{display:grid;gap:14px}
.quote-current-month{min-width:0}
.quote-month-heading{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 2px 8px;border-bottom:2px solid #10a37f}
.quote-month-heading div{min-width:0;display:flex;align-items:baseline;gap:8px}
.quote-month-heading strong{font-size:15px;line-height:1.25}
.quote-month-heading small{font-size:11px;color:#64748b}
.quote-month-heading>b,.quote-month-folder summary>b{flex:0 0 auto;font-size:11px;color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;padding:4px 8px}
.quote-current-month>.quote-file-grid{padding-top:12px}
.quote-archive-list{display:grid;gap:8px;min-width:0}
.quote-month-folder{min-width:0;border-top:1px solid #e2e8f0}
.quote-month-folder:last-child{border-bottom:1px solid #e2e8f0}
.quote-month-folder summary{list-style:none;min-height:54px;display:grid;grid-template-columns:30px minmax(0,1fr) auto 18px;align-items:center;gap:9px;padding:7px 4px;cursor:pointer;color:var(--text)}
.quote-month-folder summary::-webkit-details-marker{display:none}
.quote-month-folder summary:active{background:#f1f5f9}
.quote-month-folder-icon{position:relative;width:27px;height:20px;border-radius:3px;background:#f8c44f;box-shadow:inset 0 0 0 1px rgba(146,94,10,.16)}
.quote-month-folder-icon:before{content:"";position:absolute;left:2px;top:-5px;width:12px;height:7px;border-radius:3px 3px 0 0;background:#e6aa2e}
.quote-month-folder-name{min-width:0}
.quote-month-folder-name strong,.quote-month-folder-name small{display:block}
.quote-month-folder-name strong{font-size:14px;line-height:1.25}
.quote-month-folder-name small{margin-top:2px;font-size:10px;color:#64748b}
.quote-month-folder-arrow{width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:rotate(45deg);transition:transform .16s ease}
.quote-month-folder[open] .quote-month-folder-arrow{transform:rotate(225deg)}
  .quote-month-folder>.quote-file-grid{padding:10px 0 16px}
 .quote-import-file-tip{display:block;margin-top:2px;color:#64748b;font-size:11px;line-height:1.4}
@media(max-width:380px){.quote-month-results{gap:10px}.quote-month-folder summary{grid-template-columns:27px minmax(0,1fr) auto 16px;gap:7px}.quote-month-heading{padding-left:1px;padding-right:1px}}

@media(max-width:380px){.account-actions,.cloud-actions{grid-template-columns:1fr 1fr}.sms-code-row{grid-template-columns:minmax(0,1fr) 112px}.sms-code-row button{font-size:11px}}

.quote-clear-records-btn{width:100%;min-height:42px}


/* Quote four-format test panel */
.quote-test-panel{border-color:#dbeafe;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.quote-test-panel .section-head span{font-size:11px;color:#2563eb;background:#dbeafe;border-radius:999px;padding:4px 8px;font-weight:800}
.quote-test-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.quote-test-grid button{min-height:58px;display:grid;place-items:center;gap:2px;padding:8px 4px}
.quote-test-grid strong{font-size:14px}
.quote-test-grid small{font-size:9px;color:#64748b;line-height:1.2;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:380px){.quote-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* WeChat quote entry and long-press template picker. */
.quote-template-picker{width:100%;min-height:46px;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:8px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;font-weight:800;text-align:left}
.quote-template-picker b{font-size:22px;color:var(--brand);line-height:1}
.quote-template-picker-list{display:grid;gap:8px;max-height:58vh;overflow:auto;padding:2px}
.quote-template-picker-tip{margin:0 0 10px;color:#64748b;font-size:12px;line-height:1.5}
.quote-template-choice{border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:var(--text)}
.quote-template-choice:active{background:#eefaf6;border-color:#8bd8c5}
.quote-template-choice strong,.quote-template-choice small{display:block}
.quote-template-choice strong{font-size:14px;line-height:1.35}
.quote-template-choice small{margin-top:4px;color:#64748b;font-size:11px;line-height:1.35}
.quote-template-choice b{flex:0 0 auto;color:#0f9f7a;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:4px 7px;font-size:10px}
.wechat-share-sheet{display:grid;gap:8px;border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:12px;margin:10px 0}
.wechat-share-sheet p{margin:0;color:#64748b;font-size:12px;line-height:1.5}

/* Imported quote source images stay attached to their own quote record. */
.quote-source-media{min-height:100%;padding:18px;background:#f8fafc}
.quote-source-media header{margin-bottom:14px}.quote-source-media h2{margin:0;font-size:18px}.quote-source-media p{margin:6px 0 0;line-height:1.5}
.quote-source-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quote-source-media-grid article{overflow:hidden;border:1px solid #e2e8f0;background:#fff;border-radius:8px}
.quote-source-media-grid img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#f1f5f9}
.quote-source-media-grid strong{display:block;padding:8px;font-size:12px;line-height:1.35;word-break:break-all}
@media(min-width:720px){.quote-source-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-source-media{padding:24px}}

/* OCR coordinate review and source-page export. */
.quote-ocr-issue{background:#fff1f2!important;box-shadow:inset 0 0 0 1.5px #dc2626!important;color:#991b1b!important}
.quote-ocr-review-actions{display:flex;align-items:center;gap:8px;margin:10px 0}.quote-ocr-review-bar{min-width:0;flex:1;border:1px solid #86efac;background:#ecfdf5;color:#047857;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:800;text-align:left}.quote-ocr-review-bar.has-issues{border-color:#fca5a5;background:#fff1f2;color:#b91c1c}
.quote-ocr-proof{min-height:100%;padding:14px;background:#f8fafc}.quote-ocr-proof header{margin-bottom:12px}.quote-ocr-proof h2{margin:0;font-size:18px}.quote-ocr-proof p{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.5}.quote-ocr-proof-list{display:grid;gap:14px}.quote-ocr-proof-page{position:relative;overflow:hidden;border:1px solid #cbd5e1;background:#fff;border-radius:6px}.quote-ocr-proof-page img{display:block;width:100%;height:auto}.quote-ocr-proof-marks{position:absolute;inset:0;pointer-events:none}.quote-ocr-proof-mark{position:absolute;box-sizing:border-box;border:1px solid rgba(5,150,105,.72);background:rgba(16,185,129,.07)}.quote-ocr-proof-mark.is-issue{border:2px solid #dc2626;background:rgba(220,38,38,.12)}
@media(min-width:720px){.quote-ocr-proof{padding:22px}.quote-ocr-proof-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.quote-ocr-review-bar{display:flex;flex-direction:column;gap:3px}.quote-ocr-review-bar small{font-size:11px;font-weight:600;opacity:.82}.quote-ocr-checklist{display:grid;gap:7px;margin:0 0 14px}.quote-ocr-check-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #fecaca;border-radius:6px;background:#fff7f7;color:#991b1b;padding:10px 11px;text-align:left}.quote-ocr-check-row span{min-width:0;display:grid;gap:3px}.quote-ocr-check-row b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-ocr-check-row small{font-size:11px;line-height:1.4;color:#b45309}.quote-ocr-check-row em{font-style:normal;white-space:nowrap;font-size:11px;font-weight:800}.quote-ocr-check-row.is-confirmed{border-color:#86efac;background:#f0fdf4;color:#047857}.quote-ocr-check-row.is-confirmed small{color:#047857}.quote-ocr-proof-marks{pointer-events:none}.quote-ocr-proof-mark[type="button"]{appearance:none;padding:0;cursor:pointer;pointer-events:auto}.quote-ocr-confirm-dialog strong{display:block;border:1px solid #e2e8f0;background:#f8fafc;border-radius:6px;padding:10px;word-break:break-word}.quote-ocr-confirm-reason{border-left:3px solid #dc2626;padding-left:9px!important;color:#991b1b!important}.quote-ocr-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}

/* PDF and image quotes are retained as source files instead of rebuilt tables. */
.quote-source-only-preview{display:grid;place-items:center;min-height:300px;max-height:62vh;overflow:auto;background:#edf1f4;border:1px solid #d7dee5;border-radius:6px}
.quote-source-only-preview img{display:block;max-width:100%;max-height:60vh;object-fit:contain}
.quote-source-only-file{min-height:250px;display:flex;align-items:center;justify-content:center;gap:18px;background:#f4f6f8;border:1px solid #d7dee5;border-radius:6px;padding:24px}
.quote-source-only-file span{min-width:0;display:grid;gap:6px}.quote-source-only-file strong{max-width:360px;overflow-wrap:anywhere}.quote-source-only-file small{color:#64748b}
.quote-source-document{height:100%;min-height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:12px;background:#f4f6f8}
.quote-source-document header h2{margin:0;font-size:16px;overflow-wrap:anywhere}.quote-source-document header p{margin:4px 0 0;font-size:11px}
.quote-source-pdf iframe{width:100%;height:100%;min-height:76vh;border:1px solid #cbd5e1;background:#fff}
.quote-source-image-stage{display:grid;place-items:center;overflow:auto;min-height:76vh;background:#e5e7eb}
.quote-source-image-stage img{display:block;max-width:100%;height:auto;object-fit:contain}
@media(max-width:480px){.quote-source-only-file{min-height:210px;padding:18px;flex-direction:column;text-align:center}.quote-source-document{padding:8px}.quote-source-pdf iframe,.quote-source-image-stage{min-height:78vh}}


/* Compact quote import panel for dense mobile workflows. */
.quote-learn-card{padding:12px;gap:8px;margin:8px 0}
.quote-learn-card .quote-flow-title{gap:8px}
.quote-learn-card .quote-flow-title strong{font-size:15px}
.quote-learn-card .quote-flow-title p{margin:4px 0 0;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.quote-learn-card .quote-flow-title span{padding:4px 8px;font-size:11px}
.quote-learn-card #quoteCompany{min-height:40px;padding:8px 11px;border-radius:10px}
.quote-learn-card .quote-template-picker{min-height:40px;padding:0 11px}
.quote-learn-card .quote-template-picker b{font-size:18px}
.quote-learn-card .quote-template-tip{margin:-2px 2px 0;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-import-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quote-import-actions button{min-width:0;min-height:40px;padding:7px 6px;border-radius:10px;font-size:13px;line-height:1.15;white-space:nowrap}
@media(max-width:360px){.quote-import-actions button{font-size:12px}}


/* v1277: normalized quote confirmation before a record is saved. */
.quote-confirm-panel{margin-top:12px;border-top:1px solid #dbe4e8;padding-top:12px;text-align:left}
.quote-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.quote-confirm-head strong{display:block;font-size:15px}.quote-confirm-head small{display:block;margin-top:3px;color:#64748b;font-size:11px}.quote-confirm-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.quote-confirm-head-actions>span{color:#047857;font-size:12px;font-weight:800;white-space:nowrap}.quote-confirm-fullscreen-button{min-height:38px;padding:7px 11px;white-space:nowrap}
.quote-confirm-summary-list{display:grid;border-top:1px solid #e5e7eb}
.quote-confirm-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 2px;border-bottom:1px solid #e5e7eb}.quote-confirm-summary.needs-review{box-shadow:inset 3px 0 #f59e0b;padding-left:9px;background:#fffbeb}.quote-confirm-summary-main{min-width:0}.quote-confirm-summary-main header{display:flex;align-items:center;gap:7px}.quote-confirm-summary-main b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.quote-confirm-summary-main p,.quote-confirm-summary-main small{display:block;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:11px}.quote-confirm-summary-main small{color:#7c5b19}.quote-confirm-summary-meta{display:flex;max-width:176px;flex-wrap:wrap;justify-content:flex-end;gap:4px}.quote-confirm-summary-meta span{padding:3px 5px;border-radius:5px;background:#edf7f4;color:#0f5f50;font-size:10px;font-weight:800;white-space:nowrap}.quote-confirm-summary-meta .is-empty{background:#fff1cf;color:#9a5a06}
.quote-confirm-summary-main .quote-price-options{color:#64748b;font-size:10px}.quote-confirm-summary-meta .quote-price-range{background:#fff1cf;color:#9a5a06}
.quote-confirm-scroll{max-height:min(58vh,620px);overflow:auto;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.quote-confirm-row{padding:12px 2px;border-bottom:1px solid #e5e7eb}.quote-confirm-row:last-child{border-bottom:0}.quote-confirm-row.is-invalid{background:#fff1f0;box-shadow:inset 3px 0 #d92d20}
.quote-confirm-row>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.quote-confirm-row>header b{font-size:13px}.quote-confidence{font-size:11px;font-weight:800}.quote-confidence.high{color:#047857}.quote-confidence.low{color:#b45309}
.quote-confirm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quote-confirm-field{display:grid;gap:4px;min-width:0}.quote-confirm-field>span{display:flex;align-items:center;justify-content:space-between;gap:4px;color:#475569;font-size:11px;font-weight:800}.quote-confirm-field>span small{color:#b45309;font-size:10px}.quote-confirm-field input{min-width:0;min-height:39px;height:39px;border-radius:7px;padding:7px 9px;font-size:13px}
.quote-confirm-field.is-low input{border-color:#f59e0b;background:#fffbeb}.quote-confirm-name,.quote-confirm-spec,.quote-confirm-remarks{grid-column:1/-1}
.quote-import-draft-fullscreen{padding:0 0 env(safe-area-inset-bottom)}.quote-import-draft-fullscreen .quote-editor-bar{position:relative;top:auto;left:0;right:auto;width:min(33.333vw,620px);min-width:360px;box-sizing:border-box;height:38px;min-height:38px;max-height:38px;flex:0 0 38px;align-items:center;gap:8px;padding:2px 8px;transform:none;box-shadow:none;overflow:hidden}.quote-import-draft-fullscreen .quote-editor-title{min-width:0;flex:1 1 auto;overflow:hidden}.quote-import-draft-fullscreen .quote-editor-title strong,.quote-import-draft-fullscreen .quote-editor-title small{overflow:hidden;text-overflow:ellipsis}.quote-import-draft-fullscreen .quote-editor-tools{flex:0 0 auto;gap:4px}.quote-import-draft-fullscreen .quote-editor-tools .small{height:30px;min-height:30px;min-width:30px;padding:3px 6px}.quote-import-draft-fullscreen .quote-editor-tools .primary{min-width:72px}.quote-import-draft-fullscreen .quote-sheet-scroll{border-radius:0;border-left:0;border-right:0}.quote-import-draft-fullscreen .quote-sheet-table th,.quote-import-draft-fullscreen .quote-sheet-table td{min-width:108px}.quote-import-draft-fullscreen .quote-sheet-table th:first-child,.quote-import-draft-fullscreen .quote-sheet-table td:first-child{min-width:138px}.quote-import-draft-fullscreen .quote-row-op{display:none}
@media(max-width:760px){.quote-import-draft-fullscreen .quote-editor-bar{width:100%;min-width:0}}
.quote-copy-wechat{width:100%;min-height:42px;color:#08735f;background:#fff;border-color:#a7d9cf}
.quote-source-import-file{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 0;border-top:1px solid #e5e7eb}.quote-source-import-file .quote-file-icon{flex:0 0 auto;transform:scale(.72);transform-origin:left center;margin-right:-12px}.quote-source-import-file span{min-width:0}.quote-source-import-file strong,.quote-source-import-file small{display:block}.quote-source-import-file small{margin-top:4px;color:#64748b;font-size:11px}
.quote-export-options{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-check{padding:7px 5px;font-size:12px;white-space:nowrap}
@media(max-width:420px){.quote-confirm-head{align-items:flex-start}.quote-confirm-head-actions>span{display:none}.quote-confirm-fullscreen-button{font-size:12px}.quote-confirm-summary{grid-template-columns:minmax(0,1fr) minmax(90px,128px)}.quote-confirm-summary-meta{max-width:128px}.quote-confirm-summary-meta span{font-size:9px}}
@media(max-width:360px){.quote-export-options{grid-template-columns:1fr}.quote-confirm-grid{grid-template-columns:1fr}.quote-confirm-name,.quote-confirm-spec,.quote-confirm-remarks{grid-column:auto}.quote-confirm-summary{grid-template-columns:1fr}.quote-confirm-summary-meta{max-width:none;justify-content:flex-start}}
.quote-export-conversion-note{margin-top:4px;color:#b45309;font-weight:700}

/* Industry library: compact mobile information architecture. */
.library-hero{padding:4px 2px 12px}.library-hero p{margin:0 0 8px;color:var(--brand);font-size:12px;font-weight:900}.library-hero h2{margin:0;color:var(--ink);font-size:26px;line-height:1.18}.library-hero span{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.4}
.library-search-shell{margin:0 0 11px}.library-search-input{display:grid;grid-template-columns:22px minmax(0,1fr) 28px;align-items:center;gap:7px;min-height:48px;padding:0 12px;border:1px solid #d3e0dc;border-radius:15px;background:#fff;box-shadow:0 8px 18px rgba(16,24,40,.06)}.library-search-input>svg{width:18px;height:18px;color:var(--brand)}.library-search-input input{min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none}.library-search-input input:focus{box-shadow:none}.library-search-clear{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#667085}.library-search-clear[hidden]{display:none}.library-search-clear svg{width:17px;height:17px}
.library-kind-tabs,.library-topic-scroll{display:flex;gap:7px;overflow-x:auto;margin:0 -14px;padding:0 14px 5px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.library-kind-tabs::-webkit-scrollbar,.library-topic-scroll::-webkit-scrollbar{display:none}.library-kind-tabs button,.library-topic-scroll button{flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#667085;font-size:12px;font-weight:900;white-space:nowrap}.library-kind-tabs button[aria-selected="true"],.library-topic-scroll button.active{border-color:#08735f;background:#e8fbf5;color:#08735f}
.library-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0 2px}.library-overview-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0;padding:11px 10px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 7px 16px rgba(16,24,40,.05);text-align:left}.library-overview-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#e8fbf5;color:#08735f}.library-overview-icon svg{width:18px;height:18px}.library-overview-icon.construction{background:#fff7e8;color:#b45309}.library-overview-icon.certification{background:#eff6ff;color:#2563eb}.library-overview-icon.contract{background:#f5f3ff;color:#7c3aed}.library-overview-card span:nth-child(2){min-width:0}.library-overview-card strong,.library-overview-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-overview-card strong{font-size:12px;color:var(--ink)}.library-overview-card small{margin-top:3px;color:var(--muted);font-size:10px}.library-overview-card>b{color:var(--brand);font-size:17px}
.library-topic-section{margin-top:15px}.library-topic-section .section-head{margin:0 0 8px}.library-result-section{margin-top:8px}.library-result-section .section-head{margin:14px 0 8px}.library-document-list{display:grid;gap:8px}.library-document-card{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;align-items:center;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 7px 16px rgba(16,24,40,.045);text-align:left}.library-document-card:active{background:#f2faf7;border-color:#9ed8c9}.library-document-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8fbf5;color:#08735f}.library-document-icon svg{width:19px;height:19px}.library-document-icon.construction{background:#fff7e8;color:#b45309}.library-document-icon.certification{background:#eff6ff;color:#2563eb}.library-document-icon.contract{background:#f5f3ff;color:#7c3aed}.library-document-copy{display:block;min-width:0}.library-document-copy em{display:inline-flex;margin-bottom:4px;padding:2px 6px;border-radius:5px;background:#f2f6f7;color:#667085;font-size:10px;font-style:normal;font-weight:900}.library-document-copy strong,.library-document-copy small{display:block;overflow:hidden;text-overflow:ellipsis}.library-document-copy strong{color:var(--ink);font-size:13px;line-height:1.35;white-space:nowrap}.library-document-copy small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35;white-space:nowrap}.library-document-card>i{display:grid;place-items:center;color:#98a2b3;font-style:normal}.library-document-card>i svg{width:18px;height:18px}.library-empty{display:grid;place-items:center;gap:7px;padding:32px 14px;border:1px dashed #c8d7d2;border-radius:15px;background:#fbfefd;text-align:center}.library-empty strong{font-size:14px}.library-empty span{color:var(--muted);font-size:11px}.library-empty button{min-height:34px;margin-top:4px;padding:7px 12px;border-radius:999px;background:#e8fbf5;color:#08735f;font-size:12px;font-weight:900}
.library-preview-modal{place-items:stretch center;padding:0;background:#f5f7f8}.library-preview-modal .full-card{width:min(460px,100vw);max-height:100vh;min-height:100vh;border-radius:0;padding:0 14px 14px;overflow:auto}.library-detail{display:grid;gap:10px;min-height:100%}.library-detail-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:center;padding:10px 0;background:#f5f7f8;border-bottom:1px solid var(--line)}.library-detail-head>div{min-width:0}.library-detail-head>div>span{display:block;color:var(--brand);font-size:10px;font-weight:900}.library-detail-head h2{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.library-detail-close,.library-detail-share{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text)}.library-detail-close svg,.library-detail-share svg{width:17px;height:17px}.library-detail>p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.library-detail-frame{min-height:58vh;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.library-detail-frame iframe{display:block;width:100%;height:58vh;border:0}.library-detail-download{width:100%;text-decoration:none}
@media(max-width:360px){.library-overview-card{grid-template-columns:30px minmax(0,1fr) auto;padding:10px 8px}.library-overview-icon{width:30px;height:30px}.library-overview-card small{font-size:9px}.library-document-card{padding:10px}.library-document-copy strong{font-size:12px}}
.quote-worksheet-picker{display:grid;gap:6px;margin:0 0 10px;padding:10px 0;border-top:1px solid #dbe4e8;border-bottom:1px solid #dbe4e8;text-align:left}
.quote-worksheet-picker strong{font-size:14px;color:#0f172a}
.quote-worksheet-picker small{color:#64748b;font-size:11px;line-height:1.4}
.quote-worksheet-picker select{width:100%;min-width:0;min-height:42px;padding:8px 36px 8px 10px;border:1px solid #b8c6cc;border-radius:7px;background:#fff;color:#0f172a;font-size:14px}
.quote-worksheet-picker .quote-worksheet-open{width:100%;min-height:42px}

/* Precise quote editing stays bound to source row/column coordinates. */
.quote-precise-modal .full-card{padding:0;overflow:hidden;background:#f7faf9}
.quote-precise-fullscreen{height:100dvh;min-height:0;display:flex;flex-direction:column;color:#0f172a}
.quote-precise-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px;padding:10px 16px;background:#fff;border-bottom:1px solid #dbe5e1;box-shadow:0 2px 10px rgba(15,23,42,.05);z-index:2}
.quote-precise-bar strong{display:block;font-size:17px;line-height:1.3}.quote-precise-bar small{display:block;margin-top:3px;color:#64748b;font-size:11px}
.quote-precise-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}.quote-precise-actions button{white-space:nowrap}
.quote-precise-note{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:8px 16px;color:#475569;background:#f1f7f4;border-bottom:1px solid #dbe5e1;font-size:12px}.quote-precise-note span+span{padding-left:14px;border-left:1px solid #cbd9d4}.quote-precise-note span:last-child{color:#9a5a06}
.quote-precise-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:14px max(12px,calc((100vw - 1120px)/2));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.quote-precise-row{max-width:1120px;margin:0 auto 12px;padding:13px 14px;border:1px solid #dbe5e1;border-radius:8px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.04)}
.quote-precise-row.needs-review{border-color:#f4c36c;background:#fffcf3;box-shadow:inset 3px 0 #f59e0b,0 1px 4px rgba(15,23,42,.04)}
.quote-precise-row>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.quote-precise-row>header b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.quote-precise-row>header span{color:#047857;font-size:11px;font-weight:700;white-space:nowrap}.quote-precise-row.needs-review>header span{color:#b45309}
.quote-precise-grid{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 1fr 1fr;gap:9px}.quote-precise-field{display:grid;min-width:0;gap:4px}.quote-precise-field:first-child,.quote-precise-field:nth-child(2),.quote-precise-field:last-child{grid-column:span 2}.quote-precise-field>span{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#475569;font-size:11px;font-weight:800}.quote-precise-field>span small{color:#b45309;font-size:10px}.quote-precise-field input{width:100%;min-width:0;height:38px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;padding:7px 8px;background:#fff;color:#0f172a;font-size:13px;outline:none}.quote-precise-field input:focus{border-color:#08735f;box-shadow:0 0 0 2px rgba(8,115,95,.13)}.quote-precise-field.is-low input{border-color:#f59e0b;background:#fffaf0}.quote-precise-origin{min-height:14px;color:#94a3b8;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-precise-empty{max-width:680px;margin:48px auto;padding:28px;text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:8px}
.quote-precise-field.is-unbound input{border-color:#e2e8f0;background:#f8fafc;color:#94a3b8}
@media(max-width:760px){.quote-precise-bar{align-items:flex-start;gap:8px;padding:9px 10px}.quote-precise-bar strong{font-size:15px}.quote-precise-bar small{font-size:10px}.quote-precise-actions{gap:4px}.quote-precise-actions button{min-width:34px;min-height:34px;padding:5px 7px;font-size:11px}.quote-precise-actions button[data-action="openQuoteSourceFull"],.quote-precise-actions button[data-action="openQuoteSheetEditor"]{display:none}.quote-precise-note{gap:7px;padding:7px 10px;font-size:11px}.quote-precise-note span+span{padding-left:7px}.quote-precise-scroll{padding:10px}.quote-precise-row{padding:11px 10px;border-radius:7px}.quote-precise-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quote-precise-field:first-child,.quote-precise-field:nth-child(2),.quote-precise-field:last-child{grid-column:1/-1}.quote-precise-field input{height:40px;font-size:13px}}
@media(orientation:landscape) and (max-height:520px){.quote-precise-bar{min-height:48px;padding:6px 10px}.quote-precise-bar small{display:none}.quote-precise-note{padding:5px 10px}.quote-precise-scroll{padding-top:8px}}
.library-card-labels{display:flex;gap:5px;align-items:center;min-width:0}
.library-status-chip{background:#e8fbf5!important;color:#08735f!important}
.library-status-chip.future{background:#fff7e8!important;color:#b45309!important}
.library-status-chip.withdrawn{background:#fef0f0!important;color:#b42318!important}
.library-card-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.2}
.library-detail-status{display:inline-flex!important;width:max-content;padding:2px 6px;border-radius:5px;background:#e8fbf5;color:#08735f;font-weight:900}
.library-focus-line{padding:4px 6px;border-radius:6px;background:#fff7d6;box-shadow:inset 3px 0 #f0b429}
.library-detail-status.future{background:#fff7e8;color:#b45309}
.library-detail-status.withdrawn{background:#fef0f0;color:#b42318}
.library-detail-meta{display:grid;gap:7px;padding:10px 11px;border:1px solid #dce8e5;border-radius:12px;background:#fff}
.library-detail-meta>div{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:11px}
.library-detail-meta>div strong{color:var(--ink);font-size:11px}
.library-detail-meta>a{color:#08735f;font-size:11px;font-weight:900;text-decoration:none}
.library-update-ledger{display:grid;gap:8px;padding:11px;border:1px solid #dce8e5;border-radius:10px;background:#fbfefd}
.library-update-ledger-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.library-update-ledger-head h3{margin:0;color:var(--ink);font-size:12px}
.library-update-ledger-head span{color:#08735f;font-size:10px;font-weight:800}
.library-update-ledger dl{display:grid;gap:6px;margin:0}
.library-update-ledger dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}
.library-update-ledger dt{flex:0 0 auto;color:var(--ink);font-weight:800}
.library-update-ledger dd{min-width:0;margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-update-ledger a{color:#08735f;font-weight:800;text-decoration:none}
.library-ledger-source-note,.library-ledger-update-note{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.library-ledger-update-note{padding:7px 8px;border-left:3px solid #77c6b2;background:#f1fbf8;color:#47635c}
.library-ledger-references{display:grid;gap:4px;padding-top:2px;color:var(--muted);font-size:11px;line-height:1.45}
.library-ledger-references strong{color:var(--ink);font-size:11px}
.library-standard-guidance{display:grid;gap:11px;padding:4px 0 1px;border-top:1px solid var(--line)}
.library-standard-guidance h3{margin:0 0 4px;color:var(--ink);font-size:12px}
.library-standard-guidance p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.library-related-list{display:grid;gap:6px}
.library-related-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #dce8e5;border-radius:8px;background:#fff;color:var(--ink);font-size:11px;text-decoration:none}
.library-related-link strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-related-link span{flex:0 0 auto;color:#08735f;font-size:10px;font-weight:900}
.library-related-link .future{color:#b45309}
.library-related-link .withdrawn{color:#b42318}
.library-search-hit{display:grid;gap:3px;margin-top:7px;padding-top:6px;border-top:1px solid #edf2f1}
.library-search-hit>span{color:#08735f;font-size:10px;font-weight:900}
.library-search-hit small{display:block;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}
.library-search-hit mark{padding:0 1px;border-radius:2px;background:#fff0b8;color:var(--ink)}
.library-personal-strip{display:flex;align-items:center;gap:7px;margin-top:8px;overflow:auto}
.library-personal-strip button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:6px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap}
.library-personal-strip button[aria-pressed="true"]{border-color:#9ed8c9;background:#e8fbf5;color:#08735f}
.library-personal-strip button:disabled{opacity:.45}
.library-personal-strip svg{width:15px;height:15px}
.library-personal-strip b{color:var(--ink);font-size:10px}
.library-detail-favorite{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#98a2b3}
.library-detail-favorite.active{border-color:#9ed8c9;background:#e8fbf5;color:#08735f}
.library-detail-favorite svg{width:17px;height:17px}
.library-detail-head{grid-template-columns:36px minmax(0,1fr) 36px 36px}
.library-status-tabs{display:flex;gap:5px;margin-top:8px;overflow:auto}
.library-status-tabs button{min-height:29px;padding:5px 8px;border:1px solid transparent;border-radius:8px;background:#f2f6f7;color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.library-status-tabs button[aria-selected="true"]{border-color:#9ed8c9;background:#e8fbf5;color:#08735f}
.library-detail-unavailable{display:grid;gap:5px;padding:16px 12px;border:1px dashed #c8d7d2;border-radius:10px;background:#fbfefd;color:var(--muted);font-size:11px;line-height:1.5}
.library-detail-unavailable strong{color:var(--ink);font-size:12px}
.library-update-note{display:flex;align-items:center;gap:7px;margin-top:8px;padding:8px 10px;border:1px solid #dce8e5;border-radius:9px;background:#fbfefd;color:var(--muted);font-size:10px;line-height:1.35}
.library-update-note strong{flex:0 0 auto;color:var(--ink);font-size:10px}
.library-update-note>span{min-width:0;flex:1}
.library-update-open{flex:0 0 auto;min-height:28px;padding:5px 8px;border:1px solid #9ed8c9;border-radius:7px;background:#e8fbf5;color:#08735f;font-size:10px;font-weight:900;white-space:nowrap}
.library-update-note.has-alert{border-color:#f0d39a;background:#fffaf0}
.library-update-note.has-alert strong{color:#9a5a06}
.library-activity-modal{place-items:stretch center;padding:0;background:#f5f7f8}
.library-activity-modal .full-card{width:min(460px,100vw);max-height:100vh;min-height:100vh;border-radius:0;padding:0 14px 18px;overflow:auto}
.library-activity{display:grid;gap:13px;min-height:100%}
.library-activity-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;padding:10px 0;background:#f5f7f8;border-bottom:1px solid var(--line)}
.library-activity-head>div{min-width:0}.library-activity-head span{display:block;color:var(--brand);font-size:10px;font-weight:900}.library-activity-head h2{margin:3px 0 0;font-size:16px}
.library-activity-summary{margin:-3px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.library-activity-section{display:grid;gap:7px}.library-activity-section .section-head{margin:0}.library-activity-section .section-head h3{font-size:13px}.library-activity-section .section-head span{color:var(--muted);font-size:10px}
.library-activity-list{display:grid;gap:7px}
.library-activity-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 18px;gap:8px;align-items:center;width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left}
.library-activity-row:active{background:#f2faf7;border-color:#9ed8c9}
.library-activity-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e8fbf5;color:#08735f}.library-activity-icon svg{width:17px;height:17px}
.library-activity-row.review .library-activity-icon{background:#fff7e8;color:#b45309}.library-activity-row.status .library-activity-icon{background:#fef0f0;color:#b42318}.library-activity-row.update .library-activity-icon{background:#eff6ff;color:#2563eb}
.library-activity-copy{display:block;min-width:0}.library-activity-copy em,.library-activity-copy strong,.library-activity-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-activity-copy em{color:#08735f;font-size:10px;font-style:normal;font-weight:900}.library-activity-copy strong{margin-top:2px;color:var(--ink);font-size:12px}.library-activity-copy small{margin-top:3px;color:var(--muted);font-size:10px}
.library-activity-row time{align-self:start;color:var(--muted);font-size:10px;white-space:nowrap}.library-activity-row>i{display:grid;place-items:center;color:#98a2b3;font-style:normal}.library-activity-row>i svg{width:16px;height:16px}
.library-activity-empty{display:grid;place-items:center;gap:7px;min-height:180px;padding:18px;border:1px dashed #c8d7d2;border-radius:10px;background:#fbfefd;text-align:center}.library-activity-empty strong{color:var(--ink);font-size:14px}.library-activity-empty span{color:var(--muted);font-size:11px;line-height:1.5}

/* Industry library: professional archive visual refinement. */
.library-source-chip{background:#f1f4f3!important;color:#667085!important}.library-source-chip.readable{background:#e8f6f2!important;color:#08735f!important}.library-source-chip.online{background:#eff6ff!important;color:#245ea8!important}.library-source-chip.private{background:#fff2d9!important;color:#9a5a06!important}.library-source-chip.directory{background:#f2f4f7!important;color:#667085!important}.library-detail-source-status{padding:7px 9px;border:1px solid #dfe7e4;border-radius:7px;background:#f8fbfa;color:#667085;font-size:10px;font-weight:800}
.library-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.library-detail-action{display:grid;place-items:center;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:12px;font-weight:800;text-align:center;text-decoration:none}.library-detail-action.primary{border-color:#08735f;background:#08735f;color:#fff}@media(max-width:360px){.library-detail-actions{grid-template-columns:1fr}}@media print{body>*:not(#modalHost){display:none!important}#modalHost,.modal,.library-preview-modal,.library-preview-modal .full-card{position:static!important;display:block!important;max-height:none!important;min-height:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important}.library-detail-head{position:static!important}.library-detail-head button,.library-detail-actions,.library-detail-download{display:none!important}.library-detail{display:block!important}.library-detail>*{margin-bottom:12px!important}}
.library-primary{display:grid;gap:10px;margin:0 0 9px}.library-hero{padding:0 2px}.library-hero p{margin:0 0 4px;font-size:11px;font-weight:800}.library-hero h2{font-size:22px;line-height:1.25}.library-hero span{margin-top:4px;font-size:11px}
.library-search-shell{margin:0}.library-search-input{grid-template-columns:22px minmax(0,1fr) 28px;min-height:50px;padding:0 12px;border-color:#b9cdc7;border-radius:8px;box-shadow:0 3px 10px rgba(16,24,40,.07)}.library-search-input:focus-within{border-color:#16816d;box-shadow:0 0 0 3px rgba(8,115,95,.11)}.library-search-input>svg{width:19px;height:19px}.library-search-clear{border-radius:7px}
.library-update-note{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;min-height:46px;margin:0 0 10px;padding:7px 9px;border-color:#d7e3df;border-radius:8px;background:#f8fbfa;line-height:1.3}.library-update-note>.library-update-icon{display:grid;place-items:center;width:30px;height:30px;min-width:30px;flex:0 0 30px;border-radius:7px;background:#e6f5f0;color:#08735f}.library-update-icon svg{width:16px;height:16px}.library-update-copy{display:grid;align-content:center;gap:2px;min-width:0!important;flex:none!important}.library-update-copy strong,.library-update-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-update-copy strong{color:var(--ink);font-size:11px}.library-update-copy small{color:var(--muted);font-size:10px}.library-update-open{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 7px;border:0;border-radius:7px;background:#e6f5f0}.library-update-open b{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:5px;background:#08735f;color:#fff;font-size:9px}.library-update-note.has-alert{border-color:#ebc783;background:#fffaf0}.library-update-note.has-alert>.library-update-icon{background:#fff0ce;color:#9a5a06}
.library-kind-tabs{gap:6px;margin:0 -14px;padding:0 14px 4px}.library-kind-tabs button{min-height:33px;padding:6px 10px;border-color:transparent;border-radius:8px;background:transparent;color:#667085;font-size:11px;font-weight:800}.library-kind-tabs button[aria-selected="true"]{border-color:#a9d4ca;background:#e8f6f2;color:#086c59}
.library-filter-panel{margin-top:4px;border:1px solid #dfe7e4;border-radius:8px;background:#fff}.library-filter-panel summary{display:grid;grid-template-columns:18px minmax(0,1fr) auto 16px;gap:7px;align-items:center;min-height:38px;padding:7px 10px;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer;list-style:none}.library-filter-panel summary::-webkit-details-marker{display:none}.library-filter-panel summary>svg{width:16px;height:16px}.library-filter-panel summary>svg:first-child{color:#08735f}.library-filter-panel summary>svg:last-child{color:#98a2b3;transition:transform .16s ease}.library-filter-panel[open] summary>svg:last-child{transform:rotate(90deg)}.library-filter-panel summary b{padding:3px 6px;border-radius:5px;background:#e8f6f2;color:#08735f;font-size:9px}.library-filter-panel-body{display:grid;gap:8px;padding:8px 9px 9px;border-top:1px solid #edf1f0}.library-filter-panel .library-status-tabs,.library-filter-panel .library-personal-strip{margin:0}.library-status-tabs{gap:5px}.library-status-tabs button{min-height:28px;padding:5px 7px;border-radius:6px;background:#f3f6f6}.library-status-tabs button[aria-selected="true"]{border-color:#a9d4ca;background:#e8f6f2;color:#086c59}.library-personal-strip{gap:6px}.library-personal-strip button{min-height:30px;padding:5px 7px;border-radius:6px;background:#fff;font-size:10px}.library-personal-strip button[aria-pressed="true"]{border-color:#a9d4ca;background:#e8f6f2;color:#086c59}
.library-result-section{margin-top:10px}.library-result-section .section-head{margin:11px 1px 7px}.library-result-section .section-head h3{font-size:15px}.library-document-list{gap:7px}.library-document-card{grid-template-columns:34px minmax(0,1fr) 16px;gap:9px;min-height:74px;padding:10px;border-color:#dfe5e3;border-radius:8px;box-shadow:0 1px 3px rgba(16,24,40,.045)}.library-document-card:active{background:#f4faf8;border-color:#9bcfc2}.library-document-icon{width:34px;height:34px;border-radius:7px}.library-document-icon svg{width:17px;height:17px}.library-document-copy em{margin-bottom:3px;padding:2px 5px;border-radius:4px;font-size:9px;font-weight:800}.library-document-copy strong{display:-webkit-box;font-size:12px;line-height:1.38;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.library-document-copy>small{margin-top:3px;font-size:10px;white-space:nowrap}.library-document-card>i svg{width:15px;height:15px}.library-card-meta{gap:6px;margin-top:4px;font-size:9px}.library-status-chip{background:#e8f6f2!important;color:#08735f!important}.library-status-chip.future{background:#fff2d9!important;color:#9a5a06!important}.library-status-chip.withdrawn{background:#fdeceb!important;color:#aa2e25!important}
.library-document-card.has-search-hit{align-items:start;min-height:98px}.library-document-card.has-search-hit .library-document-icon{margin-top:16px}.library-document-card.has-search-hit .library-document-copy>strong{-webkit-line-clamp:1}.library-document-card.has-search-hit .library-document-copy>small{display:none}.library-search-hit{gap:2px;margin-top:5px;padding-top:5px}.library-search-hit>span{font-size:9px}.library-search-hit small{display:-webkit-box;font-size:9px;line-height:1.4;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.library-search-hit mark{background:#ffebad}
.library-document-icon.reference{background:#fff2d9;color:#9a5a06}.library-document-icon.topic{background:#edf7ff;color:#175cd3}
.library-reference-detail{display:grid;gap:13px}.library-reference-meta{display:grid;gap:0;border:1px solid #dfe7e4;border-radius:8px;background:#fff}.library-reference-meta>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:8px 10px;border-bottom:1px solid #edf1f0;font-size:11px;line-height:1.5}.library-reference-meta>div:last-child{border-bottom:0}.library-reference-meta strong{color:#344054}.library-reference-meta span,.library-reference-meta a{min-width:0;color:#667085;overflow-wrap:anywhere}.library-reference-meta a{color:#08735f;font-weight:800;text-decoration:none}
.library-reference-section{display:grid;gap:7px;padding-top:11px;border-top:1px solid #e4e9e7}.library-reference-section h3{margin:0;color:#1d2939;font-size:12px}.library-reference-section p{margin:0;color:#667085;font-size:11px;line-height:1.65}.library-reference-section ul,.library-reference-section ol{display:grid;gap:6px;margin:0;padding-left:19px;color:#475467;font-size:11px;line-height:1.55}.library-reference-source-link{justify-self:start;color:#08735f;font-size:10px;font-weight:800;text-decoration:none}.library-reference-tags{display:flex;gap:6px;flex-wrap:wrap}.library-reference-tags span{padding:4px 7px;border-radius:6px;background:#f1f6f5;color:#3b655c;font-size:10px;font-weight:800}.library-policy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-policy-grid>div{min-width:0;padding-left:9px;border-left:3px solid #a9d4ca}.library-policy-grid h3{margin-bottom:5px}.library-reference-warning{padding:10px;border:1px solid #efd59e;border-radius:8px;background:#fffaf0}.library-reference-warning h3{color:#92540a}
.library-institution-list,.library-contact-list{display:grid}.library-institution-row,.library-contact-row{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid #edf1f0}.library-institution-row:last-child,.library-contact-row:last-child{border-bottom:0}.library-institution-row>div{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.library-institution-row strong,.library-contact-row strong{color:#344054;font-size:11px;line-height:1.45}.library-institution-row a,.library-contact-row a{color:#08735f;font-size:10px;font-weight:800;text-decoration:none}.library-institution-row p{color:#475467}.library-institution-row small,.library-contact-row span{color:#667085;font-size:10px;line-height:1.5}.library-institution-row em{color:#08735f;font-size:10px;font-style:normal}.library-contact-row{grid-template-columns:minmax(0,1fr) auto}.library-contact-row span{grid-column:1/-1}.library-contact-row a{grid-column:2;grid-row:1}
.library-detail-head,.library-activity-head{border-bottom-color:#dfe5e3}.library-detail-close,.library-detail-share,.library-detail-favorite{border-radius:8px;box-shadow:0 1px 3px rgba(16,24,40,.04)}.library-detail-frame,.library-detail-meta,.library-update-ledger,.library-related-link,.library-detail-unavailable{border-radius:8px}.library-activity-row{border-color:#dfe5e3;border-radius:8px;box-shadow:0 1px 3px rgba(16,24,40,.035)}.library-activity-icon{border-radius:7px}.library-activity-copy em{color:#08735f}.library-activity-row.status .library-activity-copy em{color:#aa2e25}.library-activity-row.review .library-activity-copy em{color:#9a5a06}
@media(max-width:360px){.library-primary{gap:8px}.library-hero h2{font-size:20px}.library-update-note{grid-template-columns:28px minmax(0,1fr) auto;padding:7px}.library-update-open span{display:none}.library-filter-panel summary{padding-inline:8px}.library-document-card{grid-template-columns:32px minmax(0,1fr) 14px;padding:9px}.library-document-icon{width:32px;height:32px}.library-policy-grid{grid-template-columns:1fr}}


/* Customer workbench */
.stats .stat-card:last-child:nth-child(odd){grid-column:1/-1}
.customer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.customer-summary>div{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 10px;box-shadow:0 8px 20px rgba(16,24,40,.06)}
.customer-summary span{display:block;color:var(--muted);font-size:10px;white-space:nowrap}
.customer-summary strong{display:block;margin-top:5px;font-size:23px;line-height:1;color:var(--ink)}
.customer-toolbar{display:grid;gap:9px;margin-bottom:10px}
.customer-add{min-height:42px;border:1px dashed #76b8aa;border-radius:14px;background:#f0fdf9;color:#08735f;font-weight:900}
.customer-cloud-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding:11px 12px;border:1px solid #a7e1ca;border-radius:12px;background:#f0fdf9}.customer-cloud-bar>div:first-child{min-width:0;display:grid;gap:3px}.customer-cloud-bar strong{font-size:12px;color:#0f5f51}.customer-cloud-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#39766c;font-size:10px}.customer-cloud-bar>div:last-child{flex:0 0 auto;display:flex;gap:6px}.customer-cloud-bar button{min-height:32px;padding:5px 9px;font-size:10px}
.customer-toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.customer-toolbar-actions>.ghost{min-width:82px;border-radius:14px}
.customer-tabs{margin-top:2px}
.customer-list,.customer-activity-list{display:grid;gap:10px}
.customer-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 22px rgba(16,24,40,.07)}
.customer-card-main{width:100%;min-width:0;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px;text-align:left}
.customer-card-main i,.customer-profile-head i{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#e9f8f3;color:#08735f;font-size:19px;font-weight:900;font-style:normal}
.customer-card-main span{min-width:0;display:block}
.customer-card-main strong,.customer-card-main small,.customer-card-main em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-card-main strong{font-size:15px}.customer-card-main small{margin-top:4px;color:var(--muted);font-size:11px}.customer-card-main em{margin-top:4px;color:#475467;font-size:11px;font-style:normal}
.customer-stage{flex:0 0 auto;border-radius:999px;padding:5px 7px;font-size:10px;line-height:1;font-style:normal;white-space:nowrap}
.customer-stage.lead{background:#f2f4f7;color:#475467}.customer-stage.active{background:#fff3dd;color:#b54708}.customer-stage.quoted{background:#eaf2ff;color:#175cd3}.customer-stage.won{background:#e8fbf5;color:#08735f}.customer-stage.lost{background:#fff1f0;color:#b42318}
.customer-card-foot{min-height:46px;border-top:1px solid #eef2f4;background:#fbfcfd;padding:7px 10px 7px 13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.customer-card-foot>span{color:var(--muted);font-size:10px}.customer-card-foot>div{display:flex;gap:6px}
.customer-icon-action{min-width:46px;min-height:30px;border-radius:10px;background:#fff;border:1px solid var(--line);color:#344054;font-size:11px;font-weight:900}.customer-icon-action.wechat{border-color:#a7e1ca;background:#f0fdf9;color:#08735f}
.customer-empty{display:grid;place-items:center;text-align:center;gap:8px;padding:38px 18px;border:1px dashed #cfd8dc;border-radius:16px;background:#fff}.customer-empty strong{font-size:16px}.customer-empty span{max-width:270px;color:var(--muted);font-size:12px;line-height:1.6}.customer-empty .primary{margin-top:5px;min-width:128px}
.customer-profile{display:grid;gap:14px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.customer-profile-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center}.customer-profile-head h2{margin:0;font-size:19px}.customer-profile-head p{margin:5px 0 0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-profile dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#edf1f3;border:1px solid #edf1f3;border-radius:12px;overflow:hidden}.customer-profile dl div{min-width:0;background:#fbfcfd;padding:10px}.customer-profile dt{color:var(--muted);font-size:10px}.customer-profile dd{margin:4px 0 0;color:var(--text);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.customer-contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.customer-note{margin:0;border-left:3px solid #f59e0b;background:#fffbeb;border-radius:0 10px 10px 0;padding:9px 10px;color:#6b4f1d;font-size:12px;line-height:1.55}
.customer-delete-action{width:100%;min-height:38px}.customer-trash-note{margin-bottom:10px;padding:18px}.customer-trash-card .customer-card-main{border:0;background:#fff}.customer-trash-card .customer-card-foot>div{margin-left:auto}
.customer-work-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.customer-work-actions button{min-width:0;min-height:76px;border-radius:14px;border:1px solid var(--line);background:#fff;box-shadow:0 7px 18px rgba(16,24,40,.06);padding:9px 5px;display:grid;align-content:center;gap:5px}.customer-work-actions button:nth-child(1){border-top:3px solid #16a34a}.customer-work-actions button:nth-child(2){border-top:3px solid #2563eb}.customer-work-actions button:nth-child(3){border-top:3px solid #f59e0b}.customer-work-actions button:nth-child(4){border-top:3px solid #e11d48}.customer-work-actions b{font-size:13px}.customer-work-actions span{color:var(--muted);font-size:9px;line-height:1.25}
.customer-activity{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.customer-activity header{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #eef2f4}.customer-activity header strong{font-size:14px}.customer-activity header span{color:var(--muted);font-size:10px}.customer-activity>p{margin:0;padding:14px 12px;color:var(--muted);font-size:11px}.customer-record{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #f0f2f4;text-align:left}.customer-record:last-child{border-bottom:0}.customer-record strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.customer-record span{color:var(--muted);font-size:10px}
.customer-context-bar{min-height:42px;border:1px solid #a7e1ca;background:#f0fdf9;border-radius:12px;padding:7px 8px 7px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#0f5f51;font-size:11px}.customer-context-bar strong{font-size:12px}.customer-context-bar button{min-height:28px;border-radius:9px;background:#08735f;color:#fff;padding:4px 9px;font-size:10px;font-weight:900}
.customer-form{display:grid;gap:10px}.customer-form>strong{font-size:15px}
.customer-backup-list{display:grid;gap:8px;max-height:45vh;overflow:auto}.customer-backup-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;padding:9px}.customer-backup-row span{min-width:0;display:grid;gap:3px}.customer-backup-row strong{font-size:11px}.customer-backup-row small{color:var(--muted);font-size:9px}.customer-backup-row button{flex:0 0 auto;min-height:30px}
@media(max-width:380px){.customer-card-main{grid-template-columns:42px minmax(0,1fr) auto;padding:11px 9px}.customer-card-main i{width:42px;height:42px}.customer-work-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-work-actions button{min-height:66px}.customer-contact-actions{grid-template-columns:1fr 1fr}.customer-contact-actions button:last-child{grid-column:1/-1}.customer-summary>div{padding:10px 7px}.customer-summary strong{font-size:20px}}
