:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:16px;color:#1d1d1f;background:#f5f5f7;--blue:#007aff;--line:#e7e8ec;--muted:#737780}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden],input[type=hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-.5px;line-height:1.45;font-weight:650}h2{font-size:21px;line-height:1.5;font-weight:650}h3{font-size:17px;line-height:1.6;font-weight:600}p{line-height:1.8}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #74b8ff;outline-offset:3px}#shell{display:flex;min-height:100vh}aside{width:238px;flex-shrink:0;position:sticky;top:0;height:100vh;background:#fafafc;border-right:1px solid #dddfe5;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;margin:0 10px 40px}.brand strong{font-size:19px;letter-spacing:1px;display:block}.brand small{font-size:12px;color:var(--muted);display:block;margin-top:6px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;color:white;background:#007aff;font-size:25px;font-weight:650;border-radius:12px}.sidebar-label{font-size:12px;color:#868993;padding:0 14px 12px}nav{display:grid;gap:8px}.nav{border:0;background:none;text-align:left;border-radius:10px;padding:13px 18px;color:#555a65;font-size:15px}.nav:hover{background:#edeef2}.nav.active{background:#e3efff;color:#0067d6;font-weight:600}.account{display:flex;align-items:center;gap:10px;margin-top:auto;padding:20px 8px 0;border-top:1px solid var(--line)}.avatar{width:34px;height:34px;border-radius:50%;background:#e9eaf0;display:grid;place-items:center;font-size:14px}.account strong{display:block;font-size:14px}.account small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.account .text-button{margin-left:auto;font-size:12px}main{flex:1;min-width:0;padding:26px 40px 70px;max-width:1620px;margin:0 auto}.topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:26px;font-size:13px;color:var(--muted)}.mode-note{font-size:12px;color:#858a94;line-height:1.8;margin-bottom:20px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0 30px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:6px}.header-actions,.actions{display:flex;gap:10px;flex-wrap:wrap}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:43px;border-radius:9px;padding:11px 18px;font-size:14px;font-weight:550;text-decoration:none;border:0;white-space:nowrap}.primary{background:#007aff;color:white}.primary:hover{background:#006ade}.secondary{background:#eef0f5;color:#4d5563}.secondary:hover{background:#e1e5ed}.text-button{background:none;border:0;padding:0;color:#0071e3;font-size:14px;text-decoration:none}.pill{font-size:13px;padding:5px 10px;display:inline-flex;white-space:nowrap;border-radius:6px;background:#eaf2ff;color:#246bc4}.pill.green{background:#e8f6ed;color:#35734a}.pill.gray{background:#eff0f3;color:#727781}.pill.amber{background:#fff2dd;color:#896721}.pill.red{background:#fde9e9;color:#a43e3e}.muted{color:var(--muted);font-size:13px;line-height:1.8}.order-search{display:flex;gap:12px;align-items:center;background:white;border-radius:15px;padding:10px 12px 10px 23px;box-shadow:0 3px 16px #1d1d1f06;border:1px solid #e3e6ed;margin-bottom:28px}.order-search input{background:none!important;border:0!important;flex:1;min-width:0;font-size:21px!important;margin:0!important;padding:14px 0!important}.order-search .primary{min-height:54px;padding:13px 30px;font-size:17px}.surface{background:white;border:1px solid #eaebef;border-radius:16px;box-shadow:0 3px 16px #1d1d1f03;padding:26px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-head h2,.section-head h3{margin:0}.directory-head,.order-row{display:grid;grid-template-columns:1.25fr 1.9fr 1fr 60px;gap:22px;align-items:center}.directory-head{font-size:13px;color:var(--muted);padding:0 14px 17px;border-bottom:1px solid var(--line)}.order-row{border:0;border-bottom:1px solid var(--line);background:white;width:100%;text-align:left;padding:22px 14px}.order-row:last-child{border-bottom:0}.order-row:hover{background:#f8faff;border-radius:8px}.order-row strong{font-size:15px;display:block}.order-row small{display:block;font-size:12px;color:var(--muted);margin-top:8px;line-height:1.7}.order-row .view-label{font-size:14px;color:#007aff}.order-row>div{min-width:0;overflow-wrap:anywhere}.empty{padding:45px 20px;color:var(--muted);font-size:14px;text-align:center;line-height:1.9}.pending-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 25px;background:#eaf2ff;border:1px solid #d5e7ff;border-radius:14px;margin-bottom:25px}.pending-banner strong{font-size:22px;color:#076fd9}.pending-banner p{font-size:14px;margin-top:5px;color:#5b7ba0}.pending-list{margin:-10px 0 25px}.back-link{border:0;background:none;font-size:14px;color:#0071e3;padding:0;margin:5px 0 24px}.device-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:25px}.device-header h1{margin:7px 0 14px}.device-meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:14px;color:var(--muted)}.device-order{font-size:13px;color:var(--muted)}.device-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:30px;align-items:start;margin-bottom:28px}.original-panel{min-width:0;padding:22px;background:white;border:1px solid #e4e7ed;border-radius:14px}.original-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:15px;font-size:14px;font-weight:550}.original-image{width:100%;max-height:490px;object-fit:contain;display:block;background:#f8f9fb;border-radius:6px}.original-panel canvas{width:100%;height:auto;max-height:490px;object-fit:contain;background:#f8f9fb}.device-support{background:#fff;border:1px solid #e4e7ed;border-radius:14px;padding:25px}.device-support .primary{width:100%;margin:18px 0}.device-support .secondary{width:100%;margin-top:12px}.device-support p{font-size:14px;color:var(--muted)}.tabs{display:flex;gap:6px;background:#e9ebf0;border-radius:11px;padding:5px;margin:0 0 26px;max-width:590px}.tab{flex:1;border:0;background:none;border-radius:8px;white-space:nowrap;font-size:14px;padding:11px 19px;color:#6b707b}.tab.active{background:#fff;color:#1d1d1f;font-weight:600;box-shadow:0 2px 6px #0000000d}.record-list{list-style:none;padding:0;margin:0}.record-list>li{padding:22px 0;border-bottom:1px solid var(--line)}.record-list>li:first-child{padding-top:0}.record-list>li:last-child{border-bottom:0}.record-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.record-top h3{flex:1;min-width:130px}.record-meta{font-size:12px;line-height:1.8;color:var(--muted);margin-top:8px}.record-data{display:grid;gap:12px;margin-top:18px;font-size:14px;line-height:1.8}.data-row{display:grid;grid-template-columns:145px 1fr;gap:20px;white-space:pre-wrap;overflow-wrap:anywhere}.data-row>span{color:var(--muted)}details summary{font-size:14px;color:#666f7d;cursor:pointer;line-height:1.9}.record-list details{margin-top:14px}.file-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.file-button{max-width:100%;padding:11px 13px;background:#f1f5fb;border:1px solid #e7edf5;border-radius:9px;color:#33618e;font-size:14px;text-align:left;overflow-wrap:anywhere}.file-button small{font-size:12px;color:#8c96a5;display:block;margin-top:5px}.service-card{border:1px solid #e4e8f0;border-radius:13px;padding:24px;margin-bottom:20px;background:white}.service-card .symptom{font-size:16px;line-height:1.8;margin:18px 0;color:#4e5561}.service-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:0;list-style:none;margin:20px 0}.service-progress li{border-top:3px solid #e4e7ed;font-size:13px;padding-top:9px;color:#8d929a}.service-progress li.done{border-color:#83b5ee;color:#5482b8}.service-progress li.current{border-color:#007aff;color:#006edf;font-weight:550}.service-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px}.service-note{background:#f7f8fa;border-radius:8px;padding:14px;font-size:14px;color:#606775;line-height:1.8}.service-note strong{color:#464c56}.queue-filters{display:flex;gap:5px;background:#e9ebf0;padding:5px;border-radius:11px;width:fit-content;max-width:100%;margin:25px 0;flex-wrap:wrap}.queue-filters button{border:0;background:none;padding:11px 20px;border-radius:8px;font-size:14px;color:#6b727e}.queue-filters button.active{background:white;box-shadow:0 2px 6px #0001;color:#1d1d1f}.queue-filters small{font-size:12px;margin-left:10px;color:#949aa4}.queue-row{display:grid;grid-template-columns:2.4fr 1fr 1fr 60px;gap:24px;align-items:center;padding:22px 12px;border-bottom:1px solid var(--line)}.queue-row strong{font-size:16px}.queue-row small{display:block;font-size:12px;color:var(--muted);margin-top:8px;line-height:1.8}.queue-row>div{min-width:0;overflow-wrap:anywhere}.notice{background:#f1f5fb;border-radius:9px;color:#65778e;padding:15px 18px;font-size:14px;line-height:1.8;margin:18px 0}.analysis-text{font-size:16px;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.analysis-card{padding:25px 0;border-top:1px solid var(--line);margin-top:22px}.source-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.source-links button{background:#f0f5fc;border:0;border-radius:7px;color:#3471b3;padding:8px 11px;font-size:12px}.highlight{outline:2px solid #75b7ff;outline-offset:8px;border-radius:7px}.raw-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 30px;margin-top:22px}.raw-grid div{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.raw-grid span{color:var(--muted);display:block;font-size:12px;margin-bottom:5px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.connection-card p{font-size:14px;color:var(--muted);margin-top:14px}.audit-table{width:100%;border-collapse:collapse;font-size:14px}.audit-table th,.audit-table td{border-bottom:1px solid var(--line);padding:15px 10px;text-align:left;vertical-align:top}.audit-table th{color:var(--muted);font-weight:500}.table-scroll{overflow:auto}.login-screen{min-height:100vh;display:grid;place-items:center;padding:35px 20px;background:radial-gradient(ellipse at top,#eaf3ff,#f5f5f7 65%)}.login-card{max-width:440px;width:100%;background:#ffffffed;border:1px solid #fff;border-radius:24px;box-shadow:0 18px 70px #26486b12;padding:40px}.login-card h1{font-size:27px;margin:24px 0 12px}.login-card>p{margin-bottom:25px}.login-card label{margin:20px 0}.login-button{width:100%;margin-top:10px}.login-card details{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.login-card details p,.login-card small{font-size:12px;color:var(--muted);margin:12px 0;line-height:1.9}dialog{border:0;border-radius:20px;width:min(690px,calc(100vw - 32px));max-height:90vh;padding:30px;box-shadow:0 20px 100px #14284433}dialog::backdrop{background:#15243666;backdrop-filter:blur(4px)}.wide-dialog{width:min(1000px,calc(100vw - 28px))}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}.dialog-head h2{overflow-wrap:anywhere;min-width:0}.icon-button{border:0;background:#f0f1f5;border-radius:50%;width:32px;height:32px;flex-shrink:0;font-size:24px;color:#717780}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.full,.form-more{grid-column:1/-1}label{display:block;font-size:14px;line-height:1.8}input:not([type=checkbox]):not([type=file]):not([type=hidden]),select,textarea{display:block;width:100%;border:1px solid #e1e4eb;border-radius:9px;background:#f9fafc;padding:12px 14px;margin-top:8px;font-size:16px}textarea{resize:vertical;min-height:96px}.form-more .form-grid{padding-top:20px}.form-section{grid-column:1/-1;padding-top:16px;border-top:1px solid var(--line);color:#858b96;font-size:13px}.upload-box{background:#f5f8fc;border:1px dashed #dce5f0;border-radius:12px;padding:17px 20px;margin-top:25px;font-size:14px}.upload-box span,.upload-box small{font-size:12px;color:var(--muted)}.upload-box input{width:100%;display:block;font-size:14px;margin:10px 0}.check{display:flex;gap:12px;align-items:flex-start;margin:18px 0;font-size:14px}.check input{width:18px;height:18px;flex-shrink:0;margin:3px 0;accent-color:#007aff}footer{display:flex;justify-content:flex-end;gap:12px;margin-top:27px;padding-top:21px;border-top:1px solid var(--line);flex-wrap:wrap}.error{font-size:14px;color:#c64343;white-space:pre-wrap;line-height:1.8;margin-top:18px}.request-image{background:#f2f4f8;border-radius:12px;margin-top:20px;padding:20px;max-height:58vh;overflow:auto}.request-image img{display:block;width:100%;max-width:860px;margin:auto}.request-image img:not([src]){display:none}#preview-content{background:#f2f4f8;border-radius:10px;overflow:auto;min-height:200px;text-align:center}#preview-content>img,#preview-content>video{max-width:100%;max-height:62vh;object-fit:contain}.pdf-toolbar{display:flex;justify-content:center;align-items:center;gap:15px;padding:12px;font-size:14px}.pdf-scroller{max-height:58vh;overflow:auto;padding:16px}.pdf-scroller canvas{display:block;background:white;margin:auto;box-shadow:0 3px 14px #0002}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:15px 23px;border-radius:12px;background:#1f2939;color:white;font-size:14px;z-index:50;max-width:92vw;box-shadow:0 6px 30px #0002}.user-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:25px}.user-row{padding:20px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px}.user-row strong{font-size:16px}.user-row small{display:block;font-size:12px;color:var(--muted);margin-top:8px}
@media(max-width:1100px){aside{width:210px;padding:25px 13px}main{padding:24px 28px 60px}.brand{margin:0 7px 35px;gap:8px}.brand strong{font-size:18px}.brand small{font-size:12px}.device-hero{grid-template-columns:minmax(0,1fr) 220px;gap:22px}.directory-head,.order-row{gap:15px}.user-layout{grid-template-columns:1fr}}
@media(max-width:800px){#shell{display:block}aside{position:relative;width:100%;height:auto;padding:17px 20px;display:block}.brand{margin:0 0 18px}.brand-mark{width:35px;height:35px;font-size:21px;border-radius:10px}.sidebar-label{display:none}nav{display:flex;overflow:auto;gap:6px}.nav{padding:10px 13px;white-space:nowrap;font-size:14px}.account{position:absolute;right:20px;top:18px;margin:0;padding:0;border:0}.account .avatar{display:none}.account strong,.account small{font-size:12px}.account .text-button{font-size:12px}main{padding:22px 20px 50px}.topbar{margin-bottom:16px}.page-header{margin:20px 0}.page-header h1{font-size:29px}.header-actions .secondary{font-size:12px;min-height:35px;padding:8px 10px}.order-search{padding:7px 9px 7px 15px;gap:8px}.order-search input{font-size:18px!important}.order-search .primary{font-size:15px;padding:12px 20px;min-height:48px}.surface{padding:22px;border-radius:14px}.directory-head{display:none}.order-row{grid-template-columns:1fr auto;padding:22px 0}.order-row>div:nth-child(2){grid-column:1;grid-row:2}.order-row>div:nth-child(3){grid-column:2;grid-row:2;text-align:right;font-size:14px}.order-row .view-label{grid-column:2;grid-row:1}.order-row strong{font-size:14px}.order-row small{font-size:12px}.directory .section-head h2{font-size:20px}.pending-banner{padding:18px 20px;gap:15px}.pending-banner strong{font-size:20px}.pending-banner .secondary{font-size:12px;min-height:35px}.device-hero{display:block}.device-support{margin-top:20px}.device-support .primary{margin:15px 0}.device-header h1{font-size:26px}.device-header{flex-wrap:wrap;gap:15px}.original-panel{padding:17px}.device-meta{font-size:13px;gap:10px 18px}.tabs{max-width:none;gap:2px}.tab{padding:11px 7px;font-size:13px}.record-top h3{font-size:16px}.data-row{grid-template-columns:106px 1fr;gap:13px;font-size:14px}.service-card{padding:21px 18px}.service-progress li{font-size:12px}.queue-row{grid-template-columns:1fr auto;padding:23px 0;gap:15px}.queue-row>div:first-child{grid-column:1/-1}.queue-row strong{font-size:15px}.queue-row>.secondary{font-size:13px;min-height:35px;padding:8px 11px}.queue-filters{width:100%;margin:20px 0}.queue-filters button{flex:1;padding:11px 10px;font-size:13px}.queue-filters small{margin-left:5px}.connection-grid,.raw-grid,.form-grid{grid-template-columns:1fr}.full,.form-more,.form-section{grid-column:1}.connection-grid{gap:18px}.raw-grid{gap:16px}dialog{padding:24px;border-radius:16px}.dialog-head{gap:15px}.dialog-head h2{font-size:20px}.login-card{padding:32px}.login-card h1{font-size:25px}footer{gap:8px}footer .primary,footer .secondary{font-size:13px;padding:10px 13px}.request-image{padding:10px}.audit-table{font-size:12px}.pdf-toolbar{gap:10px}.pdf-toolbar .secondary{font-size:12px;padding:8px 11px}.mode-note{font-size:12px}}
@media(max-width:390px){.brand strong{font-size:16px}.brand small{font-size:12px}.brand{gap:8px}.account strong{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{display:none}.device-header h1{font-size:24px}.surface{padding:18px}.pending-banner{flex-wrap:wrap}.tabs .tab{font-size:12px}.directory .section-head{gap:10px}.order-row small{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.error:empty{display:none}.wide-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.wide-dialog>.dialog-head,.wide-dialog>footer,.wide-dialog>p{flex-shrink:0}.wide-dialog>.request-image{flex:1;min-height:0}.wide-dialog>#preview-content{flex:1;min-height:0}

/* Service-only workbench. No shared sales layout rules are overridden. */
.workbench-ticker{display:flex;align-items:center;gap:22px;padding:15px 20px;background:#fff8e8;border:1px solid #f0dfb5;border-radius:12px;margin-bottom:24px;min-width:0}
.ticker-label{display:flex;align-items:center;gap:9px;white-space:nowrap;color:#805713;font-size:14px;font-weight:600;flex-shrink:0}
.waiting-dot{width:8px;height:8px;border-radius:50%;background:#d49b22}
.ticker-window{overflow:hidden;flex:1;min-width:0}
.ticker-track{display:flex;width:max-content;animation:workbench-roll 45s linear infinite}
.ticker-items{display:flex;align-items:center;gap:30px;padding-right:30px}
.ticker-items button,.ticker-copy{display:flex;align-items:center;gap:12px;border:0;background:none;padding:5px 0;color:#715b32;font-size:14px;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis}
.ticker-items button>span,.ticker-copy>b{font-weight:650;color:#155da6}
.ticker-items button:hover{color:#006ade;text-decoration:underline}
.workbench-ticker:hover .ticker-track,.workbench-ticker:focus-within .ticker-track{animation-play-state:paused}
@keyframes workbench-roll{to{transform:translateX(-50%)}}
.workbench-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:22px}
.workbench-metric{--accent:#a86c05;--tint:#fff4d8;position:relative;display:grid;grid-template-columns:1fr auto;gap:13px;text-align:left;min-width:0;padding:24px 27px;background:#fff;border:1px solid #e3e7ee;border-radius:17px;box-shadow:0 4px 15px #14263a04;transition:border-color .15s,box-shadow .15s}
.workbench-metric.processing{--accent:#b33333;--tint:#fff0f0}
.workbench-metric.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.workbench-metric:hover{box-shadow:0 6px 25px #12203310}
.metric-label{font-size:17px;font-weight:600;color:#404957;grid-column:1;grid-row:1;align-self:center}
.metric-symbol{grid-column:2;grid-row:1 / 3;align-self:center;background:var(--tint);color:var(--accent);width:61px;height:61px;display:grid;place-items:center;border-radius:17px;font-size:34px}
.workbench-metric strong{font-size:55px;line-height:1.1;letter-spacing:-2px;font-weight:650;color:var(--accent);grid-column:1}
.metric-link{font-size:13px;color:var(--accent);grid-column:1 / -1;margin-top:3px}
.workbench-sound{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:27px;padding:15px 19px;background:#edf3fc;border:1px solid #dce7f7;border-radius:12px}
.workbench-sound strong{font-size:14px;color:#33537b}
.workbench-sound p{font-size:12px;color:#637590;margin-top:5px;line-height:1.6}
.sound-actions{display:flex;gap:16px;align-items:center;flex-shrink:0}
.sound-actions .secondary{background:#fff;color:#1765ae;border:1px solid #d3e2f5}
.workbench-list .queue-row{grid-template-columns:2.4fr 1fr .7fr 98px}
.workbench-list .queue-row:last-child{border-bottom:0}
.workbench-empty{text-align:center;padding:24px 15px 30px}
.workbench-empty>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 15px;background:#edf7f1;color:#478262;border-radius:50%;font-size:25px}
.workbench-empty h3{color:#526070;font-size:17px}
.workbench-empty p{font-size:13px;color:#8b95a1;margin-top:10px}
.workbench-sync{margin:14px 4px;font-size:12px}
@media(max-width:800px){.workbench-metrics{gap:14px}.workbench-metric{padding:20px 17px;gap:11px}.workbench-metric strong{font-size:43px}.metric-label{font-size:15px}.metric-symbol{width:43px;height:43px;border-radius:12px;font-size:27px}.workbench-ticker{gap:15px;padding:13px 15px}.ticker-label{font-size:12px}.workbench-sound{align-items:flex-start;flex-direction:column}.sound-actions{width:100%;justify-content:space-between}.workbench-list .queue-row{grid-template-columns:1fr auto}.workbench-list .queue-row>div:nth-child(3){grid-column:1;grid-row:3}.workbench-list .queue-row>button{grid-column:2;grid-row:3}.workbench-list .section-head h2{font-size:20px}}
@media(max-width:440px){.workbench-metric{grid-template-columns:1fr;padding:18px 16px}.metric-symbol{display:none}.metric-label{font-size:14px}.workbench-metric strong{font-size:40px}.metric-link{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}.ticker-window{overflow:auto}}

/* Continuous device-history numbering starts with the order itself. */
.numbered-records>.timeline-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:16px;position:relative;padding:22px 0}
.numbered-records>.timeline-item:first-child{padding-top:0}
.numbered-records>.timeline-item:not(:last-child)::after{content:"";position:absolute;left:17px;top:62px;bottom:-14px;width:2px;background:#e7eef9}
.numbered-records>.timeline-item:first-child:not(:last-child)::after{top:40px}
.record-number{display:grid;place-items:center;align-self:start;width:36px;height:36px;border-radius:50%;background:#eaf2ff;border:1px solid #d9e8fb;color:#1265bf;font-size:16px;font-weight:650;position:relative;z-index:1}
.record-content{min-width:0;padding:2px 0 8px}
.record-content .record-top{margin-bottom:4px}
.record-content .record-meta{margin-top:5px}
.record-summary{display:grid;grid-template-columns:125px minmax(0,1fr);gap:8px 14px;margin-top:14px;padding:13px 15px;background:#f8f9fc;border-radius:9px;font-size:14px;line-height:1.8}
.record-summary>span{color:#737780}
.record-summary>p{white-space:pre-wrap;overflow-wrap:anywhere;color:#404957}
.attachment-heading{font-size:13px;color:#637288;font-weight:550;margin-top:16px}
.record-content .file-list{margin-top:8px}
.record-content .actions{margin-top:15px}
@media(max-width:800px){.numbered-records>.timeline-item{grid-template-columns:32px minmax(0,1fr);gap:11px}.record-number{width:32px;height:32px;font-size:14px}.numbered-records>.timeline-item:not(:last-child)::after{left:15px;top:58px}.numbered-records>.timeline-item:first-child:not(:last-child)::after{top:36px}.record-summary{grid-template-columns:1fr;gap:4px;padding:12px}.record-summary>p:not(:last-child){margin-bottom:7px}.record-content .record-top{gap:8px}.record-content .record-top h3{min-width:100px;overflow-wrap:anywhere}}

/* Labels and values are separate semantic fields, not one grey sentence. */
.device-summary{flex:1;min-width:0}
.device-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 0;padding:0;max-width:920px}
.device-meta-item{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 14px;background:#fff;border:1px solid #e1e7f0;border-radius:11px}
.device-meta dt{flex-shrink:0;padding:4px 9px;border-radius:6px;background:#eaf2ff;color:#1765ae;font-size:14px;font-weight:550;line-height:1.5}
.device-meta dd{min-width:0;margin:0;color:#242a33;font-size:16px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}

/* Clear navigation and centered device identity; stage colors do not imply completion. */
.directory-back{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 17px;margin:2px 0 20px;border:1px solid #c9defb;border-radius:10px;background:#eaf2ff;color:#1765ae;font-weight:600;box-shadow:0 2px 8px #245a9210}
.directory-back>span:first-child{font-size:25px;line-height:20px}
.directory-back:hover{background:#dcecff;border-color:#a9cdfb}
.centered-header{display:block;position:relative;background:#fff;border:1px solid #e4e7ed;border-radius:16px;padding:43px 24px 25px;text-align:center}
.centered-header>.pill{position:absolute;top:12px;right:16px}
.centered-header .device-order{font-size:14px}
.centered-header h1{margin:8px 0 0;overflow-wrap:anywhere}
.centered-header .device-meta{margin:20px auto 0}
.centered-header .device-meta-item{justify-content:center;background:#f9fbff}
.service-progress li{--stage-color:#737780;--stage-line:#e4e7ed;--stage-bg:#f5f5f7;border-top:4px solid var(--stage-line);padding:11px 10px 10px;border-radius:3px 3px 8px 8px;color:var(--stage-color)}
.service-progress li.stage-submitted{--stage-color:#8a5900;--stage-line:#e4b030;--stage-bg:#fff6dd}
.service-progress li.stage-processing{--stage-color:#b52c2c;--stage-line:#e76464;--stage-bg:#fff0f0}
.service-progress li.stage-completed{--stage-color:#237440;--stage-line:#46a76f;--stage-bg:#edf8f1}
.service-progress li.done,.service-progress li.current{border-color:var(--stage-line);color:var(--stage-color)}
.service-progress li.current{background:var(--stage-bg);font-weight:650}
.service-progress li.upcoming{border-top-style:dashed}
@media(max-width:800px){.centered-header{padding:43px 17px 20px}.centered-header .device-meta-item{justify-content:flex-start}.service-progress li{padding:10px 5px 8px;font-size:12px}.directory-back{padding:10px 15px}}

/* User-provided brand asset is kept intact: no crop, stretch or external URL. */
.company-logo{display:block;object-fit:contain;background:#fff;flex-shrink:0}
.login-brand{display:flex;justify-content:center}
.login-logo{width:156px;height:156px;border-radius:12px}
.login-card h1{text-align:center;margin:16px 0 8px;font-size:24px}
.login-card>p.muted{text-align:center;margin-bottom:20px}
.company-brand{flex-direction:column;gap:9px;margin:0 0 26px}
.sidebar-logo{width:136px;height:136px;border-radius:12px}
.company-brand small{margin-top:0;color:#53627a;font-size:12px;letter-spacing:.5px}
.integration-guide{margin-bottom:24px;border-color:#dbe7f7}
.integration-important{padding:13px 16px;border-radius:10px;background:#fff6dd;color:#805909;font-size:14px}
.integration-steps{counter-reset:integration;list-style:none;padding:0;margin:22px 0;display:grid;gap:17px}
.integration-steps li{position:relative;padding-left:45px;min-height:33px}
.integration-steps li::before{counter-increment:integration;content:counter(integration);position:absolute;left:0;top:0;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eaf2ff;color:#0765c5;font-weight:650}
.integration-steps strong{font-size:15px;line-height:1.8}.integration-steps p{font-size:14px;color:#697485;margin-top:4px}
.integration-sources{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px}
.wecom-setup{margin-bottom:24px;border-color:#cbdcf1}.wecom-setup>p{margin:14px 0}.wecom-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.wecom-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#53627a;margin:16px 0}.wecom-fields input{width:100%;min-width:0}.wecom-wide{grid-column:1/-1}.wecom-consent{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:13px;line-height:1.8}.wecom-consent input{width:16px;height:16px;flex-shrink:0;margin-top:4px}.wecom-mapping{border:1px solid #e0e7ef;padding:14px 16px;border-radius:12px;margin-top:16px}.wecom-mapping summary,.wecom-help>summary{cursor:pointer;color:#0765c5;font-weight:600}.wecom-help{margin-top:25px}.wecom-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.wecom-actions button{min-height:45px}.wecom-preview-head{display:flex;gap:15px;justify-content:space-between;align-items:center;border-top:1px solid #dce5ef;padding-top:22px;margin-top:22px}.wecom-orders{width:100%;min-width:850px;border-collapse:collapse;font-size:13px;margin-top:16px}.wecom-orders th{background:#edf4ff;color:#366696;text-align:left;font-weight:600}.wecom-orders th,.wecom-orders td{padding:14px 12px;border-bottom:1px solid #e4eaf2;vertical-align:top}.wecom-orders small,.wecom-schema small{display:block;color:#758295;margin-top:5px;overflow-wrap:anywhere}.wecom-schema{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}.wecom-schema>div{padding:12px;background:#f5f7fa;border-radius:9px}.wecom-setup .error{white-space:pre-wrap;overflow-wrap:anywhere}.wecom-setup #wecom-progress{font-size:13px;color:#53627a}
@media(max-width:800px){.wecom-fields,.wecom-schema{grid-template-columns:1fr}.wecom-preview-head{align-items:flex-start;flex-wrap:wrap}.wecom-actions{flex-direction:column}.wecom-setup{padding:20px}}
@media(max-width:800px){.company-brand{align-items:flex-start;gap:5px;margin:0 0 16px}.sidebar-logo{width:92px;height:92px;border-radius:8px}.company-brand small{font-size:11px;letter-spacing:0}.login-logo{width:136px;height:136px}.login-card h1{font-size:23px}}
@media(max-height:760px) and (min-width:801px){.login-screen{padding:20px}.login-card{padding:28px 36px}.login-logo{width:120px;height:120px}.login-card h1{font-size:22px;margin-top:12px}.login-card label{margin:16px 0}.login-card>p.muted{margin-bottom:14px}}

/* Fit the whole composite inside the window; the downloaded PNG is unchanged. */
/* Service-only fast capture comes before the order preview; the sales layout is untouched. */
.order-devices{margin-bottom:26px}.device-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:20px 0}.device-unit{border:1px solid #dce5f0;border-radius:13px;background:#f8faff;padding:18px;min-width:0}.device-unit strong{color:#125db4;overflow-wrap:anywhere}.device-unit p{font-size:13px;color:#68768a;margin:10px 0;overflow-wrap:anywhere}.device-unit .text-button{display:block;margin-top:12px}.device-record-filter{max-width:550px;margin:20px 0}.record-scope{font-size:13px;color:#2869b5;background:#eef5ff;border-radius:8px;padding:9px 12px;margin:12px 0}.version-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.scope-fields{border:1px solid #dce5ef;border-radius:12px;padding:16px}.scope-fields legend{color:#38699d;padding:0 8px;font-size:14px}.scope-device-choices{margin-top:12px}.scope-device-choices[hidden]{display:none}#order-image-dialog{height:min(94dvh,1100px);max-height:94dvh}#order-image-dialog .request-image{overflow:hidden;display:flex;justify-content:center;align-items:center;padding:10px}#order-image-preview{width:auto;max-width:100%;height:100%;max-height:100%;object-fit:contain}#order-image-dialog .dialog-head{margin-bottom:12px}#order-image-dialog footer{margin-top:12px;padding-top:12px}
.service-dossier .centered-header{padding:32px 20px 18px;margin-bottom:20px}
.service-dossier .centered-header h1{font-size:27px}
.service-dossier .centered-header .device-meta{margin-top:14px}
.service-dossier .device-meta-item{padding:10px 12px}
.service-entry-panel{padding:20px 22px;margin-bottom:24px;border:1px solid #dbe7f7;border-radius:14px;background:#fff;box-shadow:0 3px 14px #245a9208}
.service-entry-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.service-entry-head h2{font-size:20px}
.service-entry-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.service-entry-actions button{min-height:48px;white-space:normal}
.queue-row .queue-title{display:inline-block;border:0;background:none;padding:0;text-align:left;color:#0765c5;font-size:16px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.queue-row .queue-title:hover{text-decoration:underline;color:#004c9b}
.service-dossier .service-card{scroll-margin-top:20px}
.task-return{margin:2px 0 20px 12px}
@media(max-width:800px){.service-entry-panel{padding:18px}.service-entry-head{align-items:flex-start;flex-wrap:wrap;gap:5px}.service-entry-actions{grid-template-columns:1fr;gap:9px}.queue-row .queue-title{font-size:15px}.service-dossier .centered-header{padding:36px 17px 18px}.service-dossier .centered-header h1{font-size:25px}.task-return{margin-left:8px}}

html:has(.screenshot-dialog[open]),body:has(.screenshot-dialog[open]){overflow:hidden}
.screenshot-dialog[open]{width:min(1180px,calc(100vw - 28px));height:calc(100vh - 28px);height:calc(100dvh - 28px);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);padding:20px 24px;overflow:hidden}
.screenshot-dialog>.dialog-head{margin-bottom:8px;gap:14px}
.screenshot-dialog .eyebrow{margin-bottom:2px}
.screenshot-dialog>.muted{font-size:13px;line-height:1.5}
.screenshot-dialog>.request-image{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;max-height:none;margin-top:12px;padding:10px;overflow:hidden}
.screenshot-dialog .request-image img{width:100%;height:100%;max-width:none;margin:0;object-fit:contain;object-position:center}
.screenshot-dialog>footer{margin-top:12px;padding-top:12px}
.screenshot-dialog>.error{max-height:4.5em;overflow:auto;margin-top:8px}
@media(max-width:800px){.device-meta{grid-template-columns:1fr;gap:9px}.device-meta-item{padding:11px 13px}.screenshot-dialog[open]{padding:16px;width:calc(100vw - 20px);height:calc(100vh - 20px);height:calc(100dvh - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.screenshot-dialog .dialog-head h2{font-size:18px}.screenshot-dialog>.request-image{padding:6px}.screenshot-dialog>footer{justify-content:center;gap:7px}.screenshot-dialog>footer .primary,.screenshot-dialog>footer .secondary{padding:9px 11px}}
