@charset "UTF-8";
:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#27374a;background:#f6f8fb;font-synthesis:none;--blue:#3e79ac;--blue-ink:#2e628f;--blue-light:#eaf3fc;--border:#e4e9ef;--muted:#86909e;--warm:#fffefb;--shadow:0 12px 40px #33486a0c}*{box-sizing:border-box}body{margin:0;font-size:13px}button,input,textarea{font:inherit}button,a,input,textarea,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--blue-ink);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a6d0f2;outline-offset:2px}button{border-radius:10px}button,summary,a{touch-action:manipulation}button,input,textarea{transition:border-color .15s,background .15s,box-shadow .15s}button:hover:enabled{border-color:#aacbea}button:active:enabled{transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:650;letter-spacing:-.8px}h2{font-size:22px;font-weight:650;letter-spacing:-.5px}h3{font-size:15px;font-weight:650}small{font-size:11px;line-height:1.7}.muted{color:var(--muted);font-size:12px;line-height:1.75}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#8a98a8;font-weight:650;margin-bottom:10px}.test-banner{height:32px;background:#f8f2e6;color:#8a744f;display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px;border-bottom:1px solid #eee7db}.test-label{font-size:9px;letter-spacing:.8px;font-weight:600;border:1px solid #dfd2b7;padding:1px 7px;border-radius:5px}.app-header{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 31px;background:var(--warm);border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center;color:#27374a}.brand:hover{text-decoration:none}.brand-mark{width:39px;height:39px;display:grid;place-items:center;color:#fff;background:#345f80;border-radius:12px;font-size:22px;font-weight:750;font-family:Georgia,serif}.brand strong{font-size:13px;font-weight:700;letter-spacing:2px;display:block}.brand small{display:block;color:#98a1ac;font-size:10px;margin-top:2px;letter-spacing:1px}.header-check{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:11px}.status-light,.local-status span{display:inline-block;width:6px;height:6px;background:#84a896;border-radius:50%}.status-light.error{background:#cf8e66}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border:1px solid var(--border);padding:10px 16px;font-weight:550;background:var(--warm);color:#54697c;white-space:nowrap}.button:hover:enabled{background:#f1f7fc}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 3px 7px #33669715}.button.primary:hover:enabled{background:#346d9d;border-color:#346d9d}.button.quiet{border-color:transparent;background:transparent}.button.small{min-height:31px;padding:6px 10px;font-size:11px}.button.danger{color:#a95552;background:#fff7f5}.icon-button{width:32px;height:32px;padding:0;display:grid;place-items:center;font-size:23px;border:1px solid var(--border);background:var(--warm);color:#6d859b}.app-grid{height:calc(100dvh - 112px);display:grid;grid-template-columns:183px 314px minmax(0,1fr)}.sidebar{padding:29px 18px 16px;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid var(--border);background:#f4f6f9}.sidebar .eyebrow{padding-left:13px;margin-bottom:14px}.nav-item{display:flex;width:100%;align-items:center;gap:9px;min-height:44px;padding:10px 12px;border:1px solid #dbe8f4;color:var(--blue-ink);background:#e8f0f8;text-align:left}.nav-icon{font-size:18px}.badge{margin-left:auto;background:#ca706d;color:white;padding:2px 5px;font-size:10px;border-radius:6px;min-width:18px;text-align:center}.new-mail-button{width:100%;margin-top:15px;font-size:12px;padding:10px 8px}.sidebar-note{margin:35px 13px;color:#8090a2;line-height:1.8}.sidebar-note .small-symbol{color:#8da9bf;display:block;font-size:22px;margin-bottom:8px}.sidebar-note p{font-size:11px;margin-bottom:5px}.sidebar-note small{font-size:10px;color:#9aa5b1}.user-chip{display:flex;gap:9px;align-items:center;margin-bottom:17px;padding:0 4px}.avatar{width:32px;height:32px;border-radius:11px;background:#e5ebe9;display:grid;place-items:center;color:#667e72;font-size:12px}.user-chip strong{display:block;font-size:12px;font-weight:550}.user-chip small{display:block;font-size:9px;color:#99a2ad}.demo-tools{border:1px solid #e1e6ed;border-radius:10px;background:#f9fafb;font-size:10px;padding:10px;margin-bottom:12px}.demo-tools summary{color:#8793a1;cursor:pointer;border-radius:7px}.demo-tools[open]{max-height:50vh;overflow:auto}.demo-tools label{font-size:10px}.demo-tools .button{white-space:normal;width:100%;font-size:10px;padding:7px;min-height:30px}.demo-tools textarea{min-height:76px;font-size:11px}.demo-tools .choice-buttons{gap:4px}.demo-tools .choice-button{font-size:10px;padding:7px}.demo-tools .field{margin-top:12px}.demo-tools .muted{font-size:10px}.local-status{display:flex;gap:6px;align-items:center;color:#99a3af;justify-content:center;font-size:9px}.local-status span{width:4px;height:4px}.mail-list-panel{background:var(--warm);border-right:1px solid var(--border);display:flex;min-height:0;flex-direction:column}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:29px 23px 23px}.list-heading .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:8px}.count-label{font-size:13px;color:#91a0ae;font-weight:400;vertical-align:middle;margin-left:5px}.search-box{display:flex;margin:0 20px 18px;align-items:center;gap:8px;border:1px solid var(--border);background:#f8fafc;border-radius:10px;padding:0 11px;color:#8e9dac}.search-box>span{font-size:23px;line-height:1}.search-box input{width:100%;min-width:0;border:0;outline:none!important;background:transparent;padding:11px 0;font-size:11px;color:#3d5367}.search-box:focus-within{box-shadow:0 0 0 3px #dfedfa;border-color:#aacbec}.filter-bar{display:flex;gap:5px;margin:0 20px 19px;padding:4px;border-radius:10px;background:#f2f5f8}.filter{flex:1;border:1px solid transparent;background:transparent;font-size:11px;min-height:30px;color:#8795a4;padding:6px 2px;border-radius:7px}.filter.active{color:var(--blue-ink);background:white;border-color:#e3eaf1;box-shadow:0 2px 4px #34476406}.thread-list{overflow:auto;flex:1;padding:0 10px 16px}.thread-card{display:block;width:100%;border:1px solid transparent;border-radius:12px;text-align:left;background:transparent;padding:17px 12px;margin-bottom:5px;color:#33485c}.thread-card:hover:enabled{background:#f5f8fb}.thread-card.selected{background:#edf4fb;border-color:#d9e8f5}.thread-card-top,.thread-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px}.thread-card-brand{font-size:13px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.thread-card time{color:#93a0ad;font-size:9px;flex-shrink:0}.thread-card .contract-number{margin:5px 0 9px;font-size:10px;color:#8597a7;letter-spacing:.2px}.thread-card-preview{font-size:11px;color:#8998a7;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;min-height:38px}.thread-card-bottom{margin-top:11px;color:#9ca7b2;font-size:9px;justify-content:flex-start;flex-wrap:wrap}.tiny-chip{display:inline-flex;align-items:center;border-radius:5px;background:#f0f3f6;color:#8393a2;padding:2px 5px;font-size:9px;white-space:nowrap}.tiny-chip.blue{background:#dfedf9;color:#6790b2}.tiny-chip.amber{background:#f7efdf;color:#a48b57}.thread-card .badge{font-size:9px;padding:1px 5px}.unread-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#cf7770;margin-right:5px;vertical-align:middle}.list-footnote{color:#a7afb9;font-size:9px;text-align:center;padding:14px 7px;border-top:1px solid #edf0f3;background:var(--warm)}.loading-copy,.empty-list{padding:45px 15px;text-align:center;font-size:12px;color:#97a1ad;line-height:1.8}.empty-list .button{margin-top:13px}.workspace{overflow:auto;background:#f7f9fb;padding:28px 29px 55px;scroll-behavior:smooth;position:relative;outline:none}.welcome{min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding-bottom:40px}.welcome-art{height:130px;width:180px;position:relative;display:grid;place-items:center;margin-bottom:17px;background:radial-gradient(ellipse,#e5eef7 0%,transparent 68%)}.envelope{display:grid;place-items:center;width:86px;height:69px;font-size:57px;border-radius:18px;transform:rotate(-8deg);background:#fffefb;color:#8facc4;box-shadow:0 12px 35px #59759010;border:1px solid #e3eaf0;line-height:1}.art-dot{position:absolute;width:8px;height:8px;background:#d0dfeb;border-radius:3px;transform:rotate(20deg)}.art-dot.one{top:29px;right:31px}.art-dot.two{bottom:19px;left:39px;width:6px;height:6px;background:#e7dccc}.welcome .eyebrow{font-size:10px;margin-bottom:14px}.welcome h2{font-size:25px;margin-bottom:16px}.welcome>p:not(.eyebrow){color:#95a1ad;font-size:12px;line-height:2}.welcome>.button{margin-top:26px;font-size:12px}.welcome>small{color:#abb3bc;font-size:10px;margin-top:17px}.detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:22px}.detail-top .eyebrow{font-size:9px;margin-bottom:9px}.detail-title{font-size:24px;margin-bottom:8px}.detail-subtitle{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#8d9aa8;font-size:11px}.detail-subtitle .contract-number{color:#698096;font-size:11px;letter-spacing:.2px}.detail-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.back-button{display:none}.card{border:1px solid var(--border);border-radius:15px;background:var(--warm);box-shadow:var(--shadow)}.last-send{display:flex;gap:10px;align-items:center;padding:12px 16px;margin-bottom:16px;background:#f0f5f9;border:1px solid #e2eaf1;border-radius:11px;color:#8294a6;font-size:11px;line-height:1.8;flex-wrap:wrap}.last-send strong{color:#5c7993;font-weight:550}.last-send.error{background:#fff4ed;border-color:#f2ddd0;color:#a57c63}.source-panel{border:1px solid var(--border);background:#fffefb;border-radius:12px;margin-bottom:18px}.source-panel>summary{cursor:pointer;padding:13px 16px;border-radius:11px;color:#7b8e9f;font-size:11px}.source-grid{padding:0 16px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 20px}.source-field{min-width:0}.source-field small{color:#9aa5b0;font-size:10px;display:block;margin-bottom:2px}.source-field span{font-size:11px;line-height:1.7;word-break:break-word}.source-talents{grid-column:1/-1;display:flex;flex-direction:column;gap:7px}.source-talent{padding:10px 12px;background:#f6f9fc;border-radius:9px;border:1px solid #eaf0f6;line-height:1.8;font-size:11px}.source-talent span{display:block;color:#8a99a6;font-size:10px}.source-footnote{font-size:10px;color:#9ba8b4;grid-column:1/-1;line-height:1.8}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 13px}.section-title h3{font-size:13px}.section-title span{color:#99a5b1;font-size:10px}.message-list{display:flex;flex-direction:column;gap:10px}.message{border:1px solid var(--border);border-radius:13px;background:var(--warm);overflow:hidden}.message summary{display:flex;list-style:none;cursor:pointer;gap:11px;align-items:center;padding:15px 17px;border-radius:12px}.message summary::-webkit-details-marker{display:none}.message-avatar{width:32px;height:32px;border-radius:10px;background:#f2eee7;color:#a7947e;display:grid;place-items:center;font-size:11px;flex-shrink:0}.message.outbound .message-avatar{background:#e6eff7;color:#6c8da9}.message-summary-main{min-width:0;flex:1}.message-summary-main strong{font-size:12px;font-weight:550;word-break:break-all}.message-summary-main small{display:block;color:#9aa5af;font-size:10px;margin-top:3px}.message summary time{font-size:10px;color:#98a5b2;flex-shrink:0}.message-caret{color:#9daab6;font-size:13px}.message[open] .message-caret{transform:rotate(180deg)}.message-content{padding:0 18px 18px}.message-meta{padding:12px 0;border-top:1px solid #edf0f3;line-height:1.9;color:#91a0ae;font-size:10px;word-break:break-all}.mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.95 Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#5b6c7d;margin:0}.message .mail-body{padding:6px 0 13px}.message-footer{display:flex;justify-content:flex-end;margin-top:10px}.attachment-list{display:flex;gap:7px;flex-direction:column}.attachment-item{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e5eaf0;border-radius:9px;background:#f9fafc;min-width:0}.file-icon{width:28px;height:32px;border-radius:6px;background:#e9f0f7;color:#718faa;display:grid;place-items:center;font-size:8px;font-weight:650;flex-shrink:0}.file-name{flex:1;min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.file-name small{display:block;color:#99a5b0;font-size:9px}.file-download{font-size:10px;white-space:nowrap}.file-remove{border:1px solid transparent;padding:2px 5px;background:transparent;color:#9c9c9c;font-size:18px;border-radius:6px}.compose-card{margin-top:18px;overflow:hidden}.compose-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 20px;border-bottom:1px solid #e9edf2;gap:10px}.compose-heading h3{font-size:14px}.save-status{font-size:10px;color:#92a79a;line-height:1.6;text-align:right}.save-status.pending{color:#9a956e}.save-status.error{color:#be756d}.compose-grid{display:grid;grid-template-columns:minmax(240px,.95fr) minmax(280px,1.05fr)}.compose-form{padding:20px;border-right:1px solid #e9edf2;min-width:0}.field+.field{margin-top:18px}.field-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.field label,.field-label>span{font-size:11px;color:#647b90;font-weight:550}.required{color:#c18478;margin-left:3px}.optional{color:#a6b0ba;font-weight:400;font-size:9px;margin-left:5px}input[type=text],input[type=email],textarea{display:block;width:100%;border:1px solid #dfe6ed;background:#fffefc;border-radius:9px;padding:10px 11px;color:#415b71;font-size:11px;line-height:1.6;min-width:0}input::placeholder,textarea::placeholder{color:#b1bac4}textarea{min-height:99px;resize:vertical}input.invalid{border-color:#d5a09a;background:#fff8f6}.field-error{font-size:10px;color:#b96f67;margin-top:5px;line-height:1.7}.field-help{font-size:9px;color:#a4aeb9;line-height:1.8;margin-top:7px}.text-button{padding:0;border:1px solid transparent;background:transparent;color:#7b9bb7;font-size:10px;border-radius:4px}.text-button:hover{color:#376f9d}.recipients{display:flex;flex-direction:column;gap:4px;background:#fffefb;border:1px solid #dce7f0;padding:7px;border-radius:10px;margin-top:6px;box-shadow:0 6px 16px #465d7210;max-height:180px;overflow:auto}.recipient-option{display:block;border:1px solid transparent;background:#fffefb;padding:9px 8px;font-size:10px;color:#627e95;text-align:left;overflow-wrap:anywhere;border-radius:7px}.recipient-option:hover,.recipient-option:focus-visible{background:#edf5fd;border-color:#a4cae9}.choice-buttons{display:flex;gap:6px;flex-wrap:wrap}.choice-button{border:1px solid #e1e8ee;background:#fffefb;color:#8798a7;font-size:11px;padding:9px 12px;text-align:left;border-radius:9px;line-height:1.5}.choice-button.active{border-color:#9ebfdd;background:#edf5fc;color:#4f7d9f}.choice-button:hover:enabled{border-color:#b1cfe9;background:#f1f7fd}.template-list{display:flex;flex-direction:column;gap:6px}.template-option{display:flex;align-items:flex-start;gap:8px;border:1px solid #e4e9ef;border-radius:9px;background:#fffefb;padding:10px;cursor:pointer;line-height:1.6;text-align:left;min-width:0;width:100%;color:#708497}.template-option.active{border-color:#98bddc;background:#eff6fc}.template-option:hover:enabled{border-color:#b2cfe8;background:#f0f7fd}.template-dot{width:13px;height:13px;border-radius:50%;border:1px solid #c9d5e0;margin-top:2px;display:block;flex-shrink:0;background:#fff}.template-option.active .template-dot{border:4px solid #78a5c9}.template-copy{min-width:0;font-size:10px;overflow-wrap:anywhere}.template-copy small{display:block;font-size:9px;color:#9da9b3;margin-top:2px}.upload-button{width:100%;min-height:42px;border:1px dashed #bfd0df;background:#f8fbfd;border-radius:9px;color:#7f98ac;font-size:11px;margin-top:9px}.upload-button:hover:enabled{background:#eef6fd;border-color:#9dc2e1}.preview-panel{padding:20px;background:#fcfcfa;min-width:0;display:flex;flex-direction:column}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.preview-header span{font-size:11px;color:#71889b;font-weight:550}.preview-paper{background:#fffefb;padding:18px;border:1px solid #e8ebef;border-radius:10px;flex:1;min-height:290px;box-shadow:0 2px 5px #385f7803}.preview-subject{font-size:12px;font-weight:600;color:#466076;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid #edf0f2;overflow-wrap:anywhere;line-height:1.7}.preview-paper .mail-body{font-size:11px;line-height:1.95}.preview-pending{font-size:10px;line-height:1.7;background:#f6f2e9;border:1px solid #eae0c8;color:#9a875d;padding:7px 9px;border-radius:8px;margin-bottom:10px}.preview-attachments{margin-top:15px}.preview-attachment-title{font-size:10px;color:#8fa0ae;margin-bottom:8px}.preview-empty{font-size:10px;color:#a3afb8;border:1px dashed #e1e7ec;border-radius:8px;padding:10px}.compose-footer{border-top:1px solid #e8edf1;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--warm)}.compose-footer p{font-size:9px;color:#a0acb6;line-height:1.8;max-width:65%}.send-button{min-width:116px}.inline-alert{margin:15px 20px 0;border:1px solid #ebd2c9;border-radius:10px;background:#fff6f1;padding:13px;color:#a47560;font-size:11px;line-height:1.8}.inline-alert .alert-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.thread-empty{padding:28px;text-align:center;color:#94a2af;font-size:11px;border:1px dashed #dfe6ec;border-radius:12px;line-height:1.9}.thread-empty .button{margin-top:12px}.order-dialog{padding:26px;border:1px solid #dfe7ef;border-radius:20px;background:#fffefb;box-shadow:0 24px 100px #253e6133;width:min(750px,calc(100vw - 28px));max-height:90dvh;color:#374f64}.order-dialog::backdrop{background:#20385345;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:13px}.dialog-heading .eyebrow{font-size:9px;margin-bottom:8px}.dialog-heading h2{font-size:23px}.order-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:21px 0}.order-option{background:#f9fafb;text-align:left;border:1px solid #e2e8ee;padding:15px;border-radius:11px;color:#668199;min-width:0;line-height:1.8}.order-option strong{font-size:12px;font-weight:600;display:block}.order-option span{font-size:10px;display:block;color:#91a1ae;overflow-wrap:anywhere}.order-option.active{background:#edf5fc;border-color:#9abddd}.scope-panel{padding:18px;border:1px solid #e3e9ef;border-radius:12px;background:#f9fbfd}.scope-panel h3{font-size:12px;margin-bottom:5px}.scope-panel .muted{font-size:10px}.talent-options{display:flex;flex-direction:column;gap:8px;margin-top:14px}.talent-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e2eaf1;border-radius:9px;background:#fffefb;cursor:pointer}.talent-option:has(input:checked){border-color:#9fbfda;background:#eef6fc}.talent-option:hover{border-color:#b1d1e9}.talent-option input{accent-color:#568ab4;margin:4px 0 0}.talent-option strong{font-size:11px;font-weight:550}.talent-option small{display:block;font-size:10px;color:#8c9eac;line-height:1.8}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.dialog-footer p{font-size:10px;color:#9caab7;line-height:1.8}.toast-region{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;align-items:center;z-index:100;width:min(560px,calc(100vw - 28px));pointer-events:none}.toast{display:flex;gap:15px;align-items:center;justify-content:space-between;border-radius:12px;padding:13px 17px;box-shadow:0 8px 40px #334d7226;background:#fffefb;border:1px solid #dce6ee;color:#627c91;font-size:12px;line-height:1.7;pointer-events:auto;width:100%}.toast.error{background:#fff7f2;border-color:#e9cabe;color:#a67360}.toast>button{border:0;border-radius:6px;background:transparent;color:inherit;font-size:19px}.boot-error{padding:30px;color:#a57d6c;line-height:1.8}.boot-error .button{margin-top:15px}.error-note{color:#b98273!important}.demo-result{margin-top:8px;color:#7b9486;font-size:10px;line-height:1.8}.check-error{color:#b7816b}body.modal-open{overflow:hidden}
@media(min-width:1650px){.app-grid{grid-template-columns:204px 342px minmax(0,1fr)}.workspace{padding:35px 42px 65px}.compose-form,.preview-panel{padding:25px}.mail-body{font-size:13px}.preview-paper .mail-body{font-size:12px}}
@media(max-width:1190px){.app-grid{grid-template-columns:159px 282px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.workspace{padding:23px 21px 45px}.compose-grid{grid-template-columns:1fr}.compose-form{border-right:0;border-bottom:1px solid #e9edf2}.detail-title{font-size:22px}.detail-top{flex-wrap:wrap}.detail-actions{justify-content:flex-start}.preview-paper{min-height:220px}.sidebar-note{margin-left:9px;margin-right:9px}.list-heading{padding-left:20px;padding-right:20px}.preview-panel{padding-top:18px}}
@media(max-width:900px){.app-grid{grid-template-columns:255px minmax(0,1fr)}.sidebar{display:none}.app-header{padding:0 20px;height:72px}.app-grid{height:calc(100dvh - 104px)}.header-check{gap:5px;font-size:9px}.workspace{padding:22px 19px 45px}.list-heading{padding:25px 18px 21px}h1{font-size:21px}.search-box,.filter-bar{margin-left:15px;margin-right:15px}.message summary{padding:13px}.message summary time{font-size:8px}.compose-form,.preview-panel{padding:17px}.compose-footer{padding:15px}.source-grid{grid-template-columns:1fr}.app-header .brand small{font-size:9px}}
@media(max-width:650px){body{font-size:13px}.test-banner{height:auto;min-height:34px;gap:7px;padding:7px 10px;text-align:center;font-size:9px}.test-label{font-size:8px;white-space:nowrap}.app-header{height:67px;padding:0 16px}.brand-mark{width:33px;height:33px;font-size:20px;border-radius:10px}.brand{gap:8px}.brand strong{font-size:10px;letter-spacing:1.4px}.brand small{font-size:8px}.header-check .status-light{display:none}.header-check{max-width:51%;flex-wrap:wrap;justify-content:flex-end;gap:0 5px}.header-check #check-status{font-size:8px;max-width:100%;text-align:right}.header-check .button{font-size:10px;min-height:26px;padding:3px 4px}.app-grid{display:block;height:calc(100dvh - 101px)}.mail-list-panel{height:100%;border-right:0}.workspace{display:none;height:100%;padding:20px 16px 45px}.app-grid.detail-open .mail-list-panel{display:none}.app-grid.detail-open .workspace{display:block}.back-button{display:inline-flex;margin-bottom:15px}.list-heading{padding:26px 22px 22px}.list-heading h1{font-size:24px}.search-box{margin:0 20px 16px}.search-box input{font-size:12px;padding:12px 0}.filter-bar{margin:0 20px 17px}.filter{font-size:12px;min-height:32px}.thread-list{padding-left:12px;padding-right:12px}.thread-card{padding:19px 14px;margin-bottom:6px}.thread-card-brand{font-size:14px}.thread-card-preview{font-size:12px}.thread-card time{font-size:10px}.thread-card .contract-number{font-size:11px}.list-footnote{font-size:10px;padding:15px}.detail-title{font-size:23px}.detail-top{gap:14px}.detail-actions{width:100%}.compose-heading{padding:17px}.compose-grid{grid-template-columns:1fr}.compose-footer{align-items:flex-start;gap:10px}.compose-footer p{max-width:58%;font-size:9px}.send-button{min-width:110px;font-size:12px;padding:10px 12px}.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.message summary time{font-size:9px}.message-avatar{width:28px;height:28px}.message-summary-main strong{font-size:11px}.message summary{gap:8px}.order-dialog{padding:22px 18px;max-height:91dvh}.order-options{grid-template-columns:1fr;gap:7px;margin-top:17px}.order-option{padding:12px 14px}.dialog-footer{flex-wrap:wrap}.dialog-footer .button{width:100%}.dialog-footer p{font-size:9px}.scope-panel{padding:14px}.welcome{padding-bottom:0}.toast-region{bottom:16px}.toast{font-size:11px;padding:12px 14px}.mobile-tools{margin-top:24px;padding:14px;border:1px solid var(--border);border-radius:10px}.mobile-tools summary{color:#8c9caa;font-size:10px;cursor:pointer}.mobile-tools #demo-panel{margin-top:12px}.mobile-tools .choice-buttons{margin:8px 0}.mobile-tools .field{margin:12px 0}.mobile-tools .demo-result{font-size:11px}}
.field label,.field-label>span{font-size:12px}.field .optional{font-size:10px}input[type=text],input[type=email],textarea{font-size:12px}.preview-paper .mail-body{font-size:12px}.template-copy{font-size:11px}.template-copy small{font-size:10px}.field-help{font-size:10px}.thread-card-preview{font-size:12px}.source-field span,.source-talent{font-size:12px}.mobile-tools{margin:10px 15px;flex-shrink:0}.mobile-tools[open]{max-height:35vh}.mobile-tools .choice-buttons{display:flex;flex-wrap:wrap}.mobile-tools .field{margin-top:12px}.mobile-tools .muted{font-size:10px}.demo-tools .field label{font-size:10px}
.shared-mailbox-heading{display:flex;flex-direction:column;gap:3px;min-width:0;color:#6f879b;font-size:11px}.shared-mailbox-heading small{font-size:9px;color:#a0adba}.shared-mailbox-heading span{overflow-wrap:anywhere}.mailbox-context{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:#eef4f8;border:1px solid #dfe9f1;border-radius:11px;padding:11px 15px;margin-bottom:15px;color:#8596a6;font-size:10px}.mailbox-context strong{font-size:11px;color:#617f98;font-weight:550;overflow-wrap:anywhere}.mailbox-context small{font-size:9px;width:100%;color:#91a1af}.readonly-draft{padding:22px;margin-top:18px}.readonly-draft h3{margin-bottom:9px}.readonly-draft>.muted{margin-bottom:17px}.readonly-draft>.attachment-list{margin-top:14px}.permission-note{padding:14px 20px;background:#f5f2eb;border-bottom:1px solid #e9e2d5;color:#9b8764;font-size:11px;line-height:1.9}.permission-readonly .compose-grid{grid-template-columns:1fr}.thread-review-panel strong{font-size:12px;font-weight:600;display:block;margin-bottom:4px}.thread-review-panel p{font-size:11px}.thread-review-panel .button{border-color:#ddc9ad;background:#fffdfa;color:#8b7555}
@media(max-width:900px){.shared-mailbox-heading{max-width:240px;margin:0 14px;font-size:10px}}
@media(max-width:650px){.shared-mailbox-heading{display:none}.mailbox-context{font-size:10px;padding:11px 13px}.mailbox-context strong{font-size:11px}.readonly-draft{padding:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.source-review-panel{margin:12px 0 0;background:#fffdfa;color:#796f62;border-color:#ded7cc}.source-change-list{display:grid;gap:10px;margin:12px 0}.source-change{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.source-change strong{font-size:11px}.source-change span{white-space:pre-wrap}
.file-name small.attachment-source,.template-copy small.attachment-source{color:#71695e;white-space:normal;overflow-wrap:anywhere}

/* C02: local copy of host Phase 1 visual tokens, checked 2026-09-23.
   No host CSS import, asset dependency, navigation or business behavior. */
:root {
  font-family:"SF Pro Display","SF Pro Text","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:#3f3b36;background:#f7f4ef;
  --background:#f7f4ef;--surface-subtle:#f6f2ec;--surface-raised:#fffdfa;
  --foreground:#211f1c;--text-body:#3f3b36;--muted:#69635d;
  --border:rgba(85,73,61,.16);--border-strong:rgba(85,73,61,.28);
  --brand:#806953;--brand-hover:#6d5744;--brand-soft:#ebe5dc;--brand-border:#ddd1c3;
  --action:#4b688c;--action-soft:#eef3f8;--action-border:#d4dfea;
  --blue:var(--brand);--blue-ink:var(--action);--blue-light:var(--action-soft);--warm:var(--surface-raised);
  --shadow:0 7px 24px rgba(64,51,39,.05),0 1px 0 rgba(255,255,255,.82) inset;
}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;letter-spacing:-.006em}
h1,h2,h3,.brand,.thread-card-brand{color:var(--foreground)}
button{border-radius:11px}
button:hover:enabled{border-color:var(--border-strong)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:var(--action);outline-width:2px}
.app-header{background:rgba(255,253,250,.96)}
.brand-mark{background:linear-gradient(180deg,#8b745d,#6f5945);border-radius:11px}
.brand small,.eyebrow,.user-chip small,.local-status,.sidebar-note small,.count-label{color:var(--muted)}
.sidebar{background:var(--surface-subtle)}
.nav-item{background:var(--brand-soft);border-color:var(--brand-border);color:#564231}
.sidebar-note,.sidebar-note .small-symbol{color:var(--muted)}
.button,.icon-button{color:var(--text-body)}
.button:hover:enabled{background:var(--surface-subtle)}
.button.primary{background:linear-gradient(180deg,#8b745d,#6f5945);border-color:var(--brand);box-shadow:0 2px 5px #46372814;color:white}
.button.primary:hover:enabled{background:linear-gradient(180deg,#7d6651,#624d3b);border-color:var(--brand-hover)}
.button.quiet{background:transparent}
.button.danger{color:#b94b4b;background:#fcf3f2}
.avatar{background:var(--brand-soft);color:#564231}
.demo-tools{background:var(--surface-raised);border-color:var(--border)}
.demo-tools summary{color:var(--muted)}
.search-box,.filter-bar{background:#f2eee8;border-color:var(--border)}
.search-box input{color:var(--text-body)}
.search-box:focus-within{border-color:var(--action);box-shadow:0 0 0 3px rgba(75,104,140,.14)}
.filter{color:var(--muted)}
.filter.active{background:var(--surface-raised);border-color:var(--border);color:var(--foreground)}
.thread-card{color:var(--text-body)}
.thread-card:hover:enabled{background:var(--surface-subtle)}
.thread-card.selected{background:var(--action-soft);border-color:var(--action-border)}
.thread-card time,.thread-card .contract-number,.thread-card-preview,.thread-card-bottom,.list-footnote,.loading-copy,.empty-list{color:var(--muted)}
.tiny-chip{background:#f0ebe4;color:var(--muted)}
.tiny-chip.blue{background:var(--action-soft);color:var(--action)}
.tiny-chip.amber{background:#fbf6eb;color:#9b6b2e}
.list-footnote{border-color:var(--border)}
.workspace{background:radial-gradient(circle at 72% 0%,rgba(255,255,255,.72),transparent 28%),var(--background)}
.card{border-radius:16px}
.welcome-art{background:radial-gradient(ellipse,#ebe5dc 0%,transparent 68%)}
.envelope{color:var(--brand);border-color:var(--brand-border);box-shadow:var(--shadow)}
.art-dot{background:var(--brand-border)}
.welcome>p:not(.eyebrow),.welcome>small,.detail-subtitle,.detail-subtitle .contract-number,.section-title span{color:var(--muted)}
.last-send{background:var(--action-soft);border-color:var(--action-border);color:var(--muted)}
.last-send strong{color:var(--action)}
.source-panel,.message{border-radius:14px;background:var(--surface-raised)}
.source-panel>summary,.source-field small,.source-talent span,.source-footnote{color:var(--muted)}
.source-talent{background:var(--surface-subtle);border-color:var(--border)}
.message.outbound .message-avatar{background:var(--action-soft);color:var(--action)}
.message-summary-main small,.message summary time,.message-meta,.message-caret{color:var(--muted)}
.message-meta{border-color:var(--border)}
.mail-body{font-family:inherit;color:var(--text-body)}
.attachment-item{background:var(--surface-subtle);border-color:var(--border)}
.file-icon{background:var(--brand-soft);color:var(--brand)}
.order-dialog{border-radius:16px;box-shadow:0 20px 55px rgba(70,55,40,.11)}
.field label,.field-label>span,.preview-header span,.preview-subject{color:var(--text-body)}
.field-help,.template-copy small,.preview-attachment-title,.preview-empty,.compose-footer p,.shared-mailbox-heading small{color:var(--muted)}
.template-option{color:var(--text-body);border-color:var(--border);border-radius:11px}
.template-option.active,.template-option:hover:enabled{background:var(--action-soft);border-color:var(--action-border)}
.template-option.active .template-dot{border-color:var(--action)}
.upload-button{color:var(--action);border-color:var(--action-border);background:var(--action-soft)}
.save-status{color:#4e7c62}.save-status.pending{color:#9b6b2e}.save-status.error{color:#b94b4b}
.compose-heading,.compose-form,.compose-footer,.preview-paper,.preview-subject{border-color:var(--border)}
.preview-panel{background:var(--surface-subtle)}
