:root{font-family:'DM Sans',Inter,system-ui,sans-serif;font-synthesis:none;color:#203044;background:#f5f7fa;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{color:#27374a;outline:none}select,textarea,input:not([type=checkbox]):not([type=radio]):not([type=file]){background:white;border:1px solid #d9e2ed;border-radius:9px;padding:11px 12px;width:100%}input:focus,select:focus,textarea:focus{border-color:#4591ea!important;box-shadow:0 0 0 3px #368ced1b}textarea{resize:vertical;line-height:1.55}a{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.035em}h1{font-size:28px;font-weight:800;margin:6px 0 7px}h2{font-size:17px;font-weight:800;margin:0 0 9px}h3{font-size:13px;font-weight:800;margin:20px 0 12px}.shell{min-height:100vh;display:flex}.sidebar{width:248px;background:#111d2c;color:#d9e4ef;display:flex;flex-direction:column;flex-shrink:0;padding:27px 14px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;margin:0 12px 38px}.brandmark{background:#3c92e9;color:white;font:800 23px Manrope,sans-serif;letter-spacing:-.14em;display:flex;align-items:center;justify-content:center;border-radius:10px;width:37px;height:37px;transform:rotate(-5deg)}.brandmark span{font-size:13px;align-self:flex-start;transform:translate(2px,4px);letter-spacing:0}.brand strong{font-size:14px;color:white;letter-spacing:-.02em}.brand small{font-size:8.5px;letter-spacing:.20em;color:#8ca4c0;display:block;margin-top:3px}nav{display:grid;gap:6px}.nav-btn{border:0;background:transparent;color:#9dafc2;padding:12px 13px;display:flex;align-items:center;text-align:left;gap:12px;border-radius:9px;font-size:13px;font-weight:600}.nav-icon{width:22px;font-size:20px;text-align:center;font-weight:400}.nav-btn:hover{background:#1b2d42;color:white}.nav-btn.active{background:#263b55;color:white;box-shadow:inset 3px 0 0 #58a6ff}.nav-btn b{margin-left:auto;border-radius:7px;background:#344e6b;padding:2px 8px;color:#dcecff;font-size:11px}.sidebar-foot{margin-top:auto;border-top:1px solid #2a3950;padding:24px 12px 0;display:flex;gap:10px;align-items:center}.sidebar-foot strong{font-size:12px;color:#f4f7fc}.sidebar-foot small{display:block;font-size:11px;margin-top:4px;color:#90a8c1}.live-dot{width:9px;height:9px;border-radius:50%;background:#6dd5b0;box-shadow:0 0 0 4px #6dd5b021}.main{min-width:0;flex:1}.topbar{height:69px;background:white;border-bottom:1px solid #e8edf4;padding:0 37px;display:flex;align-items:center;justify-content:space-between}.crumb{font-size:10px;color:#98a5b7;letter-spacing:.13em;font-weight:800}.crumb span{color:#d0d8e3;padding:0 8px}.top-actions{display:flex;gap:20px;align-items:center}.secure{font-size:12px;color:#738197}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#2b668f;background:#dfedf8;font-weight:800;font-size:11px}.main-content{max-width:1580px;margin:auto;padding:26px 37px 54px}.test-notice{display:flex;align-items:center;gap:13px;background:#fff8e5;border:1px solid #f6dfaa;border-radius:9px;padding:11px 15px;color:#8b681c;font-size:12px;margin-bottom:26px}.test-notice strong{font-size:10px;letter-spacing:.09em;background:#f4d995;padding:5px 8px;border-radius:5px;white-space:nowrap}.test-notice span{flex:1}.test-notice a{font-weight:700;text-decoration:none}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:23px}.eyebrow{color:#5a91b6;letter-spacing:.12em;font-size:9px;font-weight:800}.page-heading p{margin:0;color:#7b8a9d;font-size:12.5px}.heading-actions,.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:800;padding:11px 15px;white-space:nowrap;transition:background .15s,transform .1s}.btn:active{transform:scale(.98)}.btn.primary{background:#2679d6;color:white;box-shadow:0 3px 8px #1e69b120}.btn.primary:hover:not(:disabled){background:#1668c2}.btn.light{background:white;border-color:#dce4ed;color:#35516e}.btn.light:hover{background:#f3f8ff}.btn.danger{background:#fff3f2;border-color:#ffd0cb;color:#c04743}.btn.wide{width:100%}.btn.mini{padding:7px 12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric{border:1px solid #e4ebf2;border-radius:11px;background:white;padding:17px 19px}.metric small{display:block;color:#8a99ad;font-weight:650;font-size:11px}.metric strong{display:block;font:800 27px Manrope,sans-serif;color:#192b40;margin:11px 0 2px;letter-spacing:-.04em}.metric span{font-size:10px;color:#9caaba}.metric .metric-good{color:#2e9e7f}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);align-items:start;gap:17px}.inbox-list,.detail,.card{background:#fff;border:1px solid #e4eaf1;border-radius:11px;overflow:hidden}.inbox-list{min-height:590px}.list-top{display:flex;justify-content:space-between;align-items:center;padding:20px 19px 13px}.list-top strong{font-size:13px}.list-top span{font-size:11px;color:#91a0b2}.filters{display:flex;overflow:auto;gap:4px;padding:0 12px 11px;border-bottom:1px solid #eef2f6;scrollbar-width:none}.filter{border:0;background:transparent;border-radius:6px;padding:8px 9px;color:#8c9bae;font-weight:700;font-size:10px;white-space:nowrap}.filter.selected{background:#e8f2ff;color:#2679d6}.email-items{max-height:830px;overflow-y:auto}.email-item{display:flex;text-align:left;gap:11px;padding:15px 16px;width:100%;border:0;border-bottom:1px solid #f0f3f7;background:white}.email-item:hover{background:#f8fbff}.email-item.selected{background:#f0f6ff;box-shadow:inset 3px 0 0 #2679d6}.email-avatar,.history-avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:800;background:#e9eef8;color:#526b98;flex-shrink:0}.email-item:nth-child(3n+2) .email-avatar{background:#fff0df;color:#b27b40}.email-item:nth-child(3n+3) .email-avatar{background:#e3f6ef;color:#509a7a}.email-summary{min-width:0;display:block;flex:1}.email-first{display:flex;gap:3px;align-items:center;justify-content:space-between}.email-first strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11.5px;color:#24364a}.email-first small{font-size:10px;color:#a8b3c1;flex-shrink:0}.email-subject{font-size:11px;font-weight:700;color:#4c6077;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.email-snippet{display:block;color:#98a4b4;font-size:10px;margin:4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;border-radius:6px;padding:4px 8px;font-size:10px;font-weight:800;white-space:nowrap}.pill.green{background:#e1f5ee;color:#279d77}.pill.amber{background:#fff2df;color:#b47c27}.pill.gray{background:#eff2f5;color:#8590a1}.pill.slate{background:#ecf2fb;color:#58749b}.pill.blue{background:#e6f1ff;color:#2777c7}.project-tag{font-size:9px;background:#ebeff6;color:#677d9b;border-radius:5px;padding:4px 6px;font-weight:700;max-width:125px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.detail-header{display:flex;justify-content:space-between;align-items:center;padding:19px 23px;border-bottom:1px solid #edf1f5}.detail-from{font-size:13px;font-weight:800;margin-bottom:4px}.detail-header small{font-size:11px;color:#91a0b1}.detail-body{padding:22px 24px 24px}.detail-body>h2{font-size:17px;margin-bottom:17px}.section-label,.field-label{display:block;font-size:10px;letter-spacing:.065em;font-weight:800;color:#8394aa;margin-bottom:9px}.message-card{background:#f7f9fc;border:1px solid #eaf0f7;border-radius:8px;padding:16px;margin-bottom:18px}.message-card pre{font:12px/1.65 'DM Sans',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:185px;overflow:auto;color:#485e75;margin:0}.match-panel,.attachment-panel,.draft-panel{margin-bottom:17px}.panel-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;margin-bottom:11px;gap:10px}.match-panel select,.attachment-panel select{width:100%}.match-evidence{background:#f6fbf8;border:1px solid #e4f2e8;border-radius:7px;display:flex;flex-wrap:wrap;gap:7px 13px;padding:10px 12px;margin-top:11px}.match-evidence small{font-size:9px;color:#6c9988;font-weight:800;width:100%;letter-spacing:.08em}.match-evidence span{font-size:10px;color:#3c9774}.mx-tag{background:#f3f5f8;color:#8493a7;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:700}.attachment-picker{display:flex;align-items:center;gap:14px;margin:6px 0 12px}.attachment-picker label{display:flex;align-items:center;gap:5px;color:#53677e;font-size:11px;font-weight:650}.attachment-picker input{accent-color:#2679d6}.text-action,.link-btn{border:0;background:none;color:#2d7dcf;padding:3px;font-weight:800;font-size:11px;cursor:pointer}.attachment-picker .text-action{margin-left:auto}.selected-file{border:1px solid #e7edf4;border-radius:8px;display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:49px}.selected-file>div{min-width:0;flex:1}.selected-file strong,.selected-file small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-file strong{font-size:11px}.selected-file small{font-size:9px;color:#9aa7b7;margin-top:3px}.file-icon{background:#e9f4ff;color:#2580cf;font-size:17px;padding:8px;border-radius:5px}.warning{font-size:11px;color:#bb8030}.footnote{display:block;font-size:10px;color:#919eaf;line-height:1.6;margin-top:10px}.muted-text{font-size:10px;color:#98a5b5;font-weight:500}.draft-panel textarea{min-height:204px;max-height:420px;background:#fff;border-color:#dfe8f2;font-size:12px;width:100%}.draft-panel>small{display:block;font-size:10px;color:#a0afc0;margin-top:6px}.review-footer{border-top:1px solid #edf1f5;padding-top:17px;display:flex;justify-content:space-between;gap:10px}.review-footer .btn.primary{min-width:170px}.review-footer .btn span{margin-left:15px}.card{padding:24px}.empty-state{background:#fff;border:1px dashed #d3e0ec;border-radius:12px;min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.empty-icon{width:58px;height:58px;border-radius:20px;background:#eaf4ff;color:#3283d3;font-size:28px;display:grid;place-items:center;margin-bottom:15px}.empty-state h2{font-size:19px}.empty-state p{color:#8493a5;max-width:415px;line-height:1.6}.import-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);gap:19px}.card-title{display:flex;align-items:center;gap:13px;margin-bottom:21px}.card-title h2{margin-bottom:2px}.card-title p{color:#90a0b1;font-size:11px;margin:0}.card-icon{background:#e9f3ff;color:#3080d1;font-size:21px;display:grid;place-items:center;width:42px;height:42px;border-radius:11px}.dropzone{border:2px dashed #bbd4ec;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;background:#f9fcff;transition:background .15s,border .15s}.dropzone.dragging{background:#ebf6ff;border-color:#3188d6}.drop-icon{display:grid;place-items:center;background:#e5f1ff;color:#2784d9;border-radius:14px;width:55px;height:55px;font-size:28px;margin-bottom:17px}.dropzone strong{font-size:14px}.dropzone p{color:#9ca9b9;font-size:12px;margin:6px 0 15px}.dropzone small{max-width:430px;margin-top:20px;color:#9dabba;font-size:10px;line-height:1.7}.tip{margin-top:20px;background:#f5f8fc;border-radius:8px;padding:16px;color:#647892}.tip strong{font-size:11px}.tip p{font-size:11px;line-height:1.6;margin:7px 0 0}.tip code{background:#e8edf6;padding:1px 4px;border-radius:3px}.step{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid #eff2f6}.step:first-of-type{padding-top:6px}.step b{color:#4699d8;background:#e9f5ff;border-radius:8px;min-width:35px;height:35px;display:grid;place-items:center;font-size:11px}.step strong{font-size:12px}.step p{font-size:11px;color:#93a0b0;line-height:1.6;margin:4px 0 0}.getting-started>.btn{margin-top:22px}.stage{margin-top:18px}.stage-title{display:flex;justify-content:space-between;gap:15px;align-items:center}.stage-title p{font-size:11px;color:#97a5b6;margin:0}.stage-list{border:1px solid #eaf0f6;border-radius:8px;overflow:hidden}.stage-row{display:flex;align-items:center;gap:13px;padding:12px 14px;border-bottom:1px solid #edf1f6}.stage-row:last-child{border-bottom:0}.stage-icon{font-size:21px;color:#7b9bbc}.stage-row>div:first-of-type{flex:1;min-width:120px}.stage-row strong{font-size:11px;display:block;overflow-wrap:anywhere}.stage-row small{font-size:10px;color:#90a1b2;display:block;margin-top:4px}.stage-row label{font-size:10px;color:#8b9bae;display:flex;align-items:center;gap:9px}.stage-row label input{width:135px!important;padding:7px!important;font-size:11px}.stage-controls{display:flex;gap:8px}.stage-controls select{max-width:205px;width:auto;font-size:11px;padding:8px}.warning-box{background:#fff7e9;border-radius:8px;color:#a16e25;font-size:11px;padding:13px;margin-top:15px;line-height:1.9}.warning-box strong{display:block}.project-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.45fr);align-items:start;gap:18px}.project-directory{padding:0}.project-row{display:flex;align-items:center;gap:12px;border:0;border-top:1px solid #edf1f5;background:white;padding:17px;width:100%;text-align:left}.project-row.selected{background:#f0f6ff;box-shadow:inset 3px 0 0 #2679d6}.project-row:hover{background:#f5f9fe}.project-row>span:nth-child(2){flex:1;min-width:0}.project-row strong,.project-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-row strong{font-size:12px}.project-row small{font-size:10px;color:#91a1b2;margin-top:4px}.project-icon{border-radius:9px;background:#e9f3fd;color:#4187c8;padding:10px;font-size:18px}.paircount{font-size:10px;color:#8897a8;white-space:nowrap}.help-card{text-align:center;min-height:330px;display:flex;align-items:center;justify-content:center;flex-direction:column}.help-illustration{font-size:35px;color:#6a9ac9;margin-bottom:18px}.help-card p{font-size:12px;max-width:290px;line-height:1.7;color:#8fa0b0}.project-form{display:flex;flex-direction:column;gap:17px}.project-form .stage-title{margin-bottom:5px}.project-form label,.settings-card label{display:block;font-size:11px;font-weight:800;color:#5b6b7f}.project-form label input,.project-form label textarea,.settings-card label textarea{margin-top:7px;font-weight:400}.project-form label small,.settings-card label small{font-size:10px;color:#a5b0be}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-uploaders label{background:#f8fafd;border:1px dashed #dae3ec;border-radius:8px;padding:12px}.file-uploaders label small{display:block;margin:7px 0}.file-uploaders input{display:block;max-width:100%;font-size:10px}.check-label{display:flex!important;gap:8px;align-items:center;font-size:11px!important}.check-label input{accent-color:#2679d6}.form-footer{display:flex;justify-content:space-between}.history-card{padding:0}.history-row{padding:17px 22px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #edf1f4}.history-row:last-child{border-bottom:0}.history-row>div:nth-child(2){flex:1;min-width:0}.history-row strong,.history-row small{display:block}.history-row strong{font-size:12px}.history-row small{color:#99a7b5;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.history-row>div:nth-child(3){text-align:right}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.88fr);gap:18px}.settings-card{display:flex;flex-direction:column;gap:17px}.settings-card>p{line-height:1.65;margin:0}.settings-stack{display:flex;flex-direction:column;gap:18px}.settings-stack p{font-size:12px;color:#8a99a9;line-height:1.75}.settings-stack .inline-actions{margin-top:20px}.list-empty,.small-empty,.no-selection{padding:40px 20px;text-align:center;color:#9ba8b6;font-size:12px}.info-card{border-radius:7px;background:#f8f9fb;padding:15px;font-size:12px;color:#7a899a;line-height:1.8}.toast{position:fixed;bottom:23px;right:24px;z-index:100;background:#192c3e;color:white;padding:13px 19px;border-radius:10px;box-shadow:0 10px 30px #15203332;font-size:12px;max-width:430px}.fatal,.loading{margin:70px auto;text-align:center;max-width:500px;color:#526274;padding:20px}
@media(max-width:1200px){.sidebar{width:205px}.main-content{padding:25px 23px}.topbar{padding:0 23px}.workspace{grid-template-columns:310px minmax(0,1fr)}.metrics{gap:10px}.metric{padding:15px}.stage-row{flex-wrap:wrap}}
@media(max-width:900px){.sidebar{width:76px;padding:23px 9px}.brand{margin:0 auto 35px}.brand>div:nth-child(2),.nav-btn>span:nth-child(2),.nav-btn>b,.sidebar-foot>div{display:none}.nav-btn{justify-content:center;padding:12px}.sidebar-foot{justify-content:center}.workspace{grid-template-columns:minmax(0,1fr)}.inbox-list{min-height:unset}.email-items{max-height:360px}.detail-body{padding:20px}.import-grid,.settings-grid,.project-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.shell{display:block}.sidebar{position:sticky;z-index:15;top:0;width:100%;height:auto;padding:9px 12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.brand{margin:0}.brandmark{width:33px;height:33px}.sidebar nav{display:flex;gap:0;overflow-x:auto}.nav-btn{padding:8px 10px}.sidebar-foot{display:none}.main-content{padding:16px 12px 45px}.topbar{height:46px;padding:0 14px}.secure{display:none}.test-notice{font-size:11px;align-items:start;flex-wrap:wrap}.test-notice span{min-width:180px}.test-notice a{display:none}.page-heading{display:block}.page-heading .heading-actions{margin-top:16px}.page-heading h1{font-size:24px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:12px}.metric strong{font-size:23px}.workspace{gap:12px}.detail-body{padding:17px}.detail-header{padding:15px}.card{padding:17px}.two-col{grid-template-columns:minmax(0,1fr)}.stage-title{display:block}.stage-title .inline-actions{margin-top:15px}.stage-controls{width:100%}.stage-controls select{flex:1;width:50%;min-width:0}.stage-row label{width:100%}.stage-row label input{flex:1!important}.toast{left:12px;right:12px;bottom:12px}.top-actions{gap:5px}}
.paste-card{margin-top:18px}.paste-form{display:flex;flex-direction:column;gap:13px;margin-top:17px}.paste-form label{display:block;font-size:11px;font-weight:800;color:#637487}.paste-form input,.paste-form textarea{margin-top:7px;font-weight:400}.paste-form .btn{align-self:flex-start}
/* v0.2 rich signature editor and clearer per-message review */
.signature-settings{display:flex;flex-direction:column;gap:10px}
.signature-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:9px;background:#f6f9fc;border:1px solid #dce5ef;border-radius:9px 9px 0 0;margin-bottom:-10px}
.signature-toolbar select{width:auto;max-width:158px;padding:7px 8px;border-radius:5px;font-size:12px}
.signature-toolbar button{border:1px solid #d7e1ec;background:white;color:#38546c;border-radius:6px;min-height:32px;padding:5px 9px;font-size:11px;font-weight:700}
.signature-toolbar button:hover{background:#ebf3ff}
.signature-toolbar .color-control{display:flex;align-items:center;gap:5px;padding:0 7px;background:white;border:1px solid #d7e1ec;border-radius:6px;min-height:32px;font-weight:600}
.signature-toolbar input[type=color]{width:23px;height:23px;padding:0;border:0;background:transparent;cursor:pointer}
.signature-editor{border:1px solid #dce5ef;border-radius:0 0 9px 9px;padding:15px;min-height:160px;background:#fff;outline:none;font:14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
.signature-editor:focus{border-color:#4591ea;box-shadow:0 0 0 3px #368ced1b}
.signature-editor a,.signature-preview a{color:#1267bb;text-decoration:underline}
.signature-editor img,.signature-preview img{max-width:100%;height:auto;display:inline-block}
.signature-preview{padding:15px;border-radius:8px;background:#fbfdff;border:1px solid #dce5ef;margin-top:12px;font:14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
.signature-preview .section-label{margin-bottom:12px}
.draft-panel textarea{min-height:220px}
.project-form .inline-actions small{color:#8191a5;line-height:1.5}
@media(max-width:640px){.signature-toolbar select{max-width:130px}.signature-toolbar button{padding:5px 7px}}
