:root{--ink:#182a43;--muted:#718198;--line:#e2e8f0;--blue:#245eea;--pale:#edf3ff;--canvas:#f4f7fb;--white:#fff;--green:#18785c}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif;min-width:1080px}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 13px;color:var(--ink);transition:background .15s}button:hover{background:#f0f4fb}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.primary:hover{background:#1a4dca}button:disabled{opacity:.5;cursor:wait}button.small{padding:4px 9px;font-size:12px}button.link{border:0;background:none;color:var(--blue);padding:3px}a{color:var(--blue);text-decoration:none}input,textarea,select{border:1px solid #cfd9e6;border-radius:6px;padding:9px 11px;background:#fff;color:var(--ink);width:100%}textarea{resize:vertical;min-height:85px}label{display:block;font-size:12px;color:var(--muted);margin:13px 0 5px}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.7px;line-height:1.35}h2{font-size:18px}h3{font-size:14px}.muted{color:var(--muted)}.tiny{font-size:12px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tag{display:inline-flex;align-items:center;padding:3px 9px;background:var(--pale);color:var(--blue);font-size:11px;border-radius:5px;white-space:nowrap}.tag.pending,.tag.draft{background:#fff1d9;color:#916217}.tag.active,.tag.completed{background:#e6f5ef;color:var(--green)}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#12243e;color:#d9e3f2;padding:30px 20px;display:flex;flex-direction:column}.brand{font-size:27px;letter-spacing:5px;font-weight:800;color:#fff;line-height:1}.brand em{color:#73a2ff;font-style:normal}.brand-sub{font-size:9px;letter-spacing:2.1px;color:#94a9c5;margin:12px 0 42px}.nav{display:grid;gap:7px}.nav button{text-align:left;border:0;background:none;color:#a9bad2;padding:12px}.nav button.active{background:#263f61;color:#fff}.nav button span{display:inline-block;width:28px}.sidebar-bottom{margin-top:auto;border-top:1px solid #30435f;padding-top:20px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#365579;color:white;font-size:13px}.sidebar .logout{color:#a9bad2;font-size:12px;margin-top:16px}.workspace{min-width:0}.topbar{height:70px;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between}.topbar .crumb{font-size:12px;color:var(--muted)}.online{display:flex;align-items:center;gap:7px;font-size:11px;color:#6e8198}.online:before{content:'';width:6px;height:6px;border-radius:50%;background:#43ad8d}.main{max-width:1560px;margin:auto;padding:33px 38px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.9px;color:var(--blue);font-weight:700;margin-bottom:9px}.page-head p{margin-top:7px;color:var(--muted);font-size:13px}.filters{display:flex;gap:12px;margin-bottom:19px}.filters input{max-width:360px}.filters select{max-width:180px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:20px}.project-card{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden;text-align:left;padding:0;display:block}.project-card:hover{border-color:#a5bce8;background:#fff;box-shadow:0 8px 20px #1c335d08}.project-visual{height:158px;background:#eaf0f7;position:relative;display:grid;place-items:center;overflow:hidden}.project-visual img{width:100%;height:100%;object-fit:cover}.project-visual .object{font-size:64px;color:#6585b4;transform:rotate(-12deg);letter-spacing:-12px;font-weight:900;text-shadow:7px 8px #c5d6ea}.project-visual .code{position:absolute;top:13px;left:15px;color:#7e90a7;font:10px monospace;letter-spacing:1px}.card-body{padding:19px}.card-body h2{font-size:17px;margin:10px 0 4px}.card-foot{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;display:flex;justify-content:space-between;color:var(--muted)}.unread{display:inline-grid;place-items:center;background:var(--blue);color:#fff;min-width:18px;height:18px;border-radius:9px;font-size:10px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:22px}.panel-title{margin-bottom:17px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs button{border:0;border-radius:0;background:none;padding:13px 2px;color:var(--muted)}.tabs button.active{color:var(--blue);box-shadow:0 2px var(--blue);font-weight:600}.phase-strip{display:grid;grid-template-columns:repeat(6,1fr);margin-bottom:24px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.phase{padding:13px 10px;border-right:1px solid var(--line);font-size:11px;color:var(--muted)}.phase:last-child{border:0}.phase b{display:block;font:11px monospace;margin-bottom:4px}.phase.current{background:var(--blue);color:#fff}.phase.past{color:var(--green);background:#f1faf6}.detail-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.facts dt{font-size:11px;color:var(--muted)}.facts dd{margin:5px 0 0;font-weight:500}.history{padding:12px 0;border-bottom:1px solid var(--line)}.history:last-child{border-bottom:0}.history time{display:block;font-size:11px;color:var(--muted)}.table{width:100%;border-collapse:collapse;background:white}.table th{font-size:11px;color:var(--muted);font-weight:500;text-align:left;padding:13px;background:#f7f9fc}.table td{padding:14px 13px;border-bottom:1px solid var(--line);vertical-align:middle}.table select{font-size:12px;padding:5px;min-width:110px}.table tr:last-child td{border-bottom:0}.chat-layout{display:grid;grid-template-columns:minmax(400px,1fr) 330px;gap:20px}.chat{padding:0;display:flex;flex-direction:column;height:620px}.chat-head{padding:16px 20px;border-bottom:1px solid var(--line)}.messages{padding:20px;overflow:auto;flex:1;scroll-behavior:smooth}.message{margin:0 0 19px;padding:0 10px 0 0;scroll-margin:20px}.message:target,.message.highlight{background:#fff1ce;border-radius:6px}.message .meta{display:flex;gap:10px;font-size:11px;color:var(--muted);margin-bottom:5px}.message .meta b{color:var(--ink);font-weight:600}.message .bubble{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;background:#f3f6fa;padding:10px 13px;border-radius:0 8px 8px}.message.mine .bubble{background:#eef3ff}.reply-preview{border-left:2px solid #91a9d1;padding-left:8px;font-size:11px;color:var(--muted);margin-bottom:5px;white-space:pre-wrap;max-height:50px;overflow:hidden}.composer{border-top:1px solid var(--line);padding:15px}.composer textarea{border:0;padding:0;min-height:62px;max-height:140px;resize:vertical;box-shadow:none}.composer-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.file{display:inline-block;padding:6px 9px;background:#fff;border:1px solid var(--line);border-radius:5px;font-size:12px;margin:5px 4px 2px 0;max-width:100%;overflow-wrap:anywhere}.file img{display:block;max-width:240px;max-height:160px;margin-bottom:5px}.summary-box{padding:20px}.summary-box .state{padding:12px;background:#f3f6fb;border-radius:6px;color:var(--muted);font-size:12px;margin:17px 0}.summary-item{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}.summary-item .kind{font-size:10px;color:var(--blue);margin-bottom:5px}.summary-item p{font-size:12px;white-space:pre-wrap}.notice{display:flex;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);gap:20px}.empty{padding:60px 20px;text-align:center;color:var(--muted)}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#152c4b;color:#fff;padding:70px;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font-size:48px;line-height:1.18;max-width:400px}.login-art p{color:#9bb1ce;margin-top:24px;max-width:340px}.login-art .diagram{border-top:1px solid #3d5471;padding-top:22px;font:12px monospace;color:#96b5e5;letter-spacing:1px}.login-form{display:grid;align-content:center;padding:70px;max-width:540px;width:100%;margin:auto}.login-form h1{margin-bottom:10px}.login-form button{width:100%;margin-top:22px}.account-hint{margin-top:28px;padding:17px;background:#f2f6fc;border-radius:7px;font-size:12px;color:var(--muted)}.error{color:#b53636;font-size:12px;margin:12px 0}.back{font-size:12px;margin-bottom:18px}dialog{width:600px;max-height:85vh;border:1px solid var(--line);border-radius:12px;padding:28px;color:var(--ink);box-shadow:0 24px 100px #152c4b40}dialog::backdrop{background:#13243b66;backdrop-filter:blur(3px)}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.attachment-list{margin-top:10px}#toast{position:fixed;right:28px;bottom:25px;padding:12px 20px;background:#173653;color:white;border-radius:8px;max-width:500px;box-shadow:0 6px 30px #152c4b30;display:none;z-index:20}.note{padding:12px 14px;border-left:3px solid #a5bce8;background:#f5f8ff;color:var(--muted);font-size:12px;margin:15px 0}.retry{border-color:#d59c9c;color:#a23636}.account-hint code{color:#314e73}.top-actions{display:flex;gap:9px}.checkbox-row{display:flex;align-items:center;gap:8px}.checkbox-row input{width:auto}@media(min-width:1600px){.project-grid{grid-template-columns:repeat(4,minmax(230px,1fr))}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.connection-dock{position:fixed;bottom:17px;right:23px;z-index:12;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:8px 11px;box-shadow:0 3px 18px #182a4312;font-size:11px;max-width:420px}.connection-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#b19145}.connection-dock.online .connection-dot{background:#32a27b}.connection-dock.offline .connection-dot{background:#d45e54}.connection-dock.offline{border-color:#e7b9b4}.connection-address{max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted);font:10px/1.6 monospace}.connection-settings{font-size:11px;padding:5px 8px;background:#f6f8fc}.online.offline:before{background:#d45e54}.online.connecting:before{background:#b19145}#toast{bottom:84px}.chat{height:min(620px,calc(100vh - 350px));min-height:420px}

.tag.imported{background:#f1edf9;color:#7350a7}.source-mark{color:#7a6b92;font-size:11px}.migration-panel{margin-top:22px}.migration-fields{margin:20px 0 0;border-top:1px solid var(--line)}.migration-field{display:grid;grid-template-columns:180px minmax(0,1fr);border-bottom:1px solid var(--line);padding:13px 0;gap:18px}.migration-field dt{color:var(--muted);font-size:12px}.migration-field dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.migration-issues{background:#fff8eb;border:1px solid #f0dfbd;border-radius:7px;padding:14px 17px;margin:16px 0;color:#836126}.migration-issues ul{padding-left:20px;margin-bottom:0}.migration-gallery{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;align-items:flex-start}.migration-gallery .file{margin:0;max-width:270px}.migration-gallery .file img{max-height:190px;max-width:250px;object-fit:contain}.project-card .tiny.muted{overflow-wrap:anywhere}

.project-visual.imported-image{background:#f7f9fc}.project-visual.imported-image img{object-fit:contain;padding:8px}
/* A definite flex image box prevents intrinsic grid rows cropping tall WPS images. */
.project-visual.imported-image{display:flex;align-items:center;justify-content:center}
.project-visual.imported-image img{display:block;width:100%;height:100%;max-height:158px;min-height:0;min-width:0;object-fit:contain;padding:8px}
/* Project overview follows the source WPS sheet: compact rows and fixed identity columns. */
.project-list-head{margin-bottom:18px}.project-list-head h1{font-size:24px}.project-list-head p{margin-top:5px}.sheet-count{margin-left:auto;align-self:center;color:var(--muted);font-size:12px;white-space:nowrap}.project-sheet{height:calc(100vh - 280px);min-height:380px;overflow:auto;border:1px solid #dce3ed;background:#fff;border-radius:6px;scrollbar-gutter:stable}.project-table{width:1884px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.5}.project-table th{height:42px;padding:10px 12px;text-align:left;font-weight:500;color:#65758b;background:#f6f8fb;position:sticky;top:0;z-index:4;white-space:nowrap;border-bottom:1px solid #dce3ed;border-right:1px solid #e4e9f0}.project-table td{height:76px;padding:9px 12px;vertical-align:middle;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3;background:#fff;overflow-wrap:anywhere}.project-table tbody tr{cursor:pointer}.project-table tbody tr:hover td,.project-table tbody tr:focus td{background:#edf4ff}.project-table tbody tr:focus{outline:2px solid var(--blue);outline-offset:-2px}.project-table .sheet-index{width:44px;text-align:center;color:#8b98aa;position:sticky;left:0;z-index:2}.project-table .sheet-code{position:sticky;left:44px;z-index:2}.project-table .sheet-name{position:sticky;left:162px;z-index:2;border-right:1px solid #d2dce9;box-shadow:4px 0 6px -5px #102a4f40}.project-table thead .sheet-index,.project-table thead .sheet-code,.project-table thead .sheet-name{z-index:6;background:#f6f8fb}.project-name-button{display:block;width:100%;border:0;border-radius:0;background:transparent!important;text-align:left;padding:0;line-height:1.5;font-size:12px;color:#203854;font-weight:600}.sheet-thumbnail{display:block;width:78px;height:54px;object-fit:contain;background:#fafbfd}.sheet-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.sheet-empty{color:#9ca8b8;font-size:11px}.sheet-number{text-align:right;font-variant-numeric:tabular-nums}.sheet-subtle{display:block;font-size:10px;color:#91a0b2;margin-top:3px}.sheet-review{display:block;color:#9b8daf;font-size:10px;margin-top:4px}.sheet-code .unread{margin-left:6px;min-width:16px;height:16px;font-size:9px}.sheet-no-results{text-align:center;height:150px!important;color:var(--muted)}
.sheet-filters{align-items:center}.sheet-filters input{max-width:300px}.sheet-filters #filter{width:180px}.sheet-filters #sort-by{width:175px}.sheet-filters #sort-direction{width:100px}.project-table .inline-order-status{width:100%;padding:6px 7px;font-size:11px;border-color:#dbe3ef;background:#f8fbff;cursor:pointer}.project-table .inline-order-status:hover{border-color:#8eafea;background:#fff}.project-table .inline-order-status:disabled{cursor:wait}
.project-table .sheet-editor{font:12px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif;border:1px solid transparent;border-radius:3px;padding:4px 5px;background:transparent;width:100%;min-width:0;color:var(--ink);min-height:28px}.project-table textarea.sheet-editor{height:36px;min-height:36px;resize:none;display:block}.project-table .sheet-editor:hover{border-color:#d7e2f1;background:#fbfdff}.project-table .sheet-editor:focus{outline:0;border-color:var(--blue);background:#fff;box-shadow:0 0 0 1px var(--blue)}.project-table .sheet-editor.saving{background:#eef5ff}.project-table .sheet-number input{text-align:right;font-variant-numeric:tabular-nums}.project-table .sheet-detail-button{font-size:10px;line-height:1.2;padding:3px 7px;margin:2px 0 0 4px;border:1px solid #d6e3f4;background:#f6f9fe;color:#3566a8;border-radius:4px}.project-table .sheet-image-edit{display:block;width:80px;height:56px;padding:0;border:1px solid transparent;background:#fafbfd;border-radius:3px}.project-table .sheet-image-edit:hover{border-color:#80a5e5}.project-table tbody tr{cursor:default}.project-table td{padding:7px 9px}.project-table .sheet-code .sheet-editor{font-weight:600}.project-table .sheet-review{padding-left:5px}

/* Xunmeng: colour carries order progress, with text retained for accessibility. */
.inline-order-status,.order-status-block{font-weight:600;border:1px solid transparent!important;border-left:5px solid var(--progress-ink,#788390)!important;background:var(--progress-bg,#f0f2f5)!important;color:var(--progress-ink,#536273)!important;border-radius:5px;padding:8px 10px;display:block;width:100%}
.progress-empty{--progress-bg:#f0f2f5;--progress-ink:#687583}.progress-0{--progress-bg:#e6efff;--progress-ink:#2456ad}.progress-1{--progress-bg:#fff0d9;--progress-ink:#9a5c08}.progress-2{--progress-bg:#dff5f5;--progress-ink:#166a72}.progress-3{--progress-bg:#efe8ff;--progress-ink:#7050ac}.progress-4{--progress-bg:#ffe6ef;--progress-ink:#a53862}.progress-5{--progress-bg:#e8edff;--progress-ink:#4e5da6}.progress-6{--progress-bg:#fff6cc;--progress-ink:#836c00}.progress-7{--progress-bg:#e3f2df;--progress-ink:#49772e}.progress-8{--progress-bg:#d6f1e3;--progress-ink:#186b44}
.xunmeng-brand{font-size:28px;letter-spacing:3px}.workspace-list{padding:0}.workspace-item{display:flex;gap:24px;align-items:center;padding:28px;border-bottom:1px solid var(--line,#e1e6ee)}.workspace-item:last-child{border-bottom:0}.workspace-info{flex:1}.workspace-info p{margin:8px 0}.workspace-monogram{width:64px;height:64px;background:#e6efff;color:#2456ad;display:grid;place-items:center;font-size:22px;font-weight:700;border-radius:12px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.permission-check{display:flex;align-items:center;gap:9px;font-weight:500}.permission-check input{width:18px;height:18px;margin:0}#modal{max-height:85vh;overflow:auto}

.table-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:15px}.table-tabs{display:flex;gap:5px;flex:1;overflow:auto}.table-tabs .selected{background:#e6efff;border-color:#7da5ec;color:#2456ad}.project-sheet{height:calc(100vh - 335px)}.choice-tag{display:inline-block;padding:4px 8px;margin:2px;border-radius:4px;background:var(--progress-bg,#eef2f6);color:var(--progress-ink,#526477);font-weight:600}.choice-select{background:var(--progress-bg,#f1f4f8)!important;color:var(--progress-ink,#526477)!important}.sheet-editor[type=checkbox]{width:18px;height:18px;margin:16px}.column-setting{display:grid;grid-template-columns:minmax(120px,1fr) 70px 75px 75px 32px 32px;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #e2e7ee}.column-options{grid-column:1/-1;min-height:65px;max-height:110px}#modal:has(#column-settings){width:780px;max-width:90vw}.record-image{max-width:240px;max-height:180px;object-fit:contain}

.multi-cell{display:block;position:relative;width:100%;min-height:40px;border:1px solid transparent;background:transparent;text-align:left;white-space:normal;padding:5px 22px 5px 4px}.multi-cell:hover,.multi-cell:focus{border-color:#8aadea;background:#f5f9ff}.multi-cell:disabled{opacity:1;cursor:default}.multi-cell .choice-tag{font-size:12px;line-height:1.45;max-width:100%;white-space:normal;overflow-wrap:anywhere}.multi-caret{position:absolute;right:6px;top:12px;color:#6c7b90}.multi-options{max-height:50vh;overflow:auto;margin-top:14px}.multi-option{padding:6px 0;margin:0}.multi-option[hidden]{display:none}.editable-facts dd{min-width:0}.editable-facts .sheet-editor{border:1px solid #dce4ef;min-height:38px;background:white;padding:8px}.editable-facts textarea{min-height:62px}.editable-facts .multi-cell{border:1px solid #dce4ef}.source-original{margin-top:26px;border-top:1px solid #e1e7ef;padding-top:18px}.source-original summary{cursor:pointer;font-weight:600;color:#62758e}

.profile-entry{width:100%;text-align:left;position:relative;background:transparent;border:1px solid transparent;padding:8px 5px;color:inherit}.profile-entry:hover,.profile-entry:focus{background:#263d5c;border-color:#577294}.profile-entry b{display:block;max-width:125px;white-space:normal;overflow-wrap:anywhere}.profile-gear{margin-left:auto;opacity:.65}.profile-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.request-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #e2e7ef}.request-row:last-child{border-bottom:0}.request-row p{margin:6px 0}

.danger-button{color:#a83b39;border-color:#e6c4c2}.danger-button:hover{background:#fff1ef}
