:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#201c32;background:#f8f8fc;font-size:14px;font-synthesis:none;--ink:#221c32;--muted:#6d6980;--border:#e9e6f0;--purple:#6039d5;--purple-dark:#4e2bb4;--lav:#f1ebff;--white:#fff;--green:#137459;--shadow:0 3px 8px #26174c06}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--purple);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #9277ec;outline-offset:3px}button svg,a svg,.nav-button svg,.metric-icon svg,.breadcrumb svg{width:18px;height:18px;flex:none}svg{stroke-width:1.7}
.app{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:26px 17px 15px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:#231b3a;margin:1px 8px 42px;font-size:25px;line-height:1;font-weight:800;letter-spacing:-1.4px}.brand-dot{color:#7347e0}.brand small{display:block;margin-top:7px;color:#736b89;font-size:8px;font-weight:750;letter-spacing:1.4px}.logo{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#8455f0,#5e36d0);color:#fff;font-size:26px;box-shadow:0 5px 12px #6541cf40;font-family:Georgia,serif;font-style:italic;letter-spacing:-1px}.nav-title{font-size:9px;color:#7a748b;font-weight:800;letter-spacing:1.6px;margin:0 10px 11px}.nav-button{display:flex;align-items:center;gap:10px;padding:10px 11px;min-height:42px;border:0;border-radius:9px;background:transparent;width:100%;text-align:left;color:#605a73;font-weight:600;font-size:13px;white-space:nowrap;margin-bottom:4px}.nav-button:hover{background:#f7f4fc;color:#4e2bb4}.nav-button.active{color:#5833be;background:#eee8fc;font-weight:750}.sidebar-bottom{margin-top:auto}.profile{display:flex;gap:9px;align-items:center;border-top:1px solid var(--border);margin-top:11px;padding:15px 4px 1px;min-width:0}.avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eae2fd;color:#5730b8;font-size:12px;font-weight:800}.profile div{min-width:0}.profile b,.profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile b{font-size:12px}.profile small{color:var(--muted);font-size:10px;margin-top:2px}
.topbar{height:66px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 31px}.breadcrumb,.top-actions{display:flex;align-items:center;gap:13px}.breadcrumb{font-size:13px;color:#777188}.breadcrumb b{color:#2e2640;font-weight:700}.slash{color:#bcb4ca}.private,.pill{display:inline-flex;align-items:center;gap:6px;border-radius:100px;background:#f5f2fb;padding:6px 10px;color:#63568a;font-size:11px;font-weight:700;white-space:nowrap}.private i,.status i,.lane-title i{width:7px;height:7px;border-radius:50%;display:inline-block;background:#8060cf;flex:none}.icon-button{display:inline-grid;place-items:center;padding:0;width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:#fff;color:#605477}.icon-button:hover{background:#f4efff;color:var(--purple)}
main{padding:30px 31px 45px;max-width:1640px;margin:auto}.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:23px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:1.9px;color:#704acb;margin:0 0 8px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3vw,40px);line-height:1.05;letter-spacing:-1.7px;margin-bottom:9px}h2{font-size:19px;letter-spacing:-.4px;margin-bottom:5px}h3{font-size:14px;margin-bottom:7px}.hero p:last-child,.section-note{color:var(--muted);margin-bottom:0;font-size:13px;line-height:1.55}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px;border:1px solid #e5dfed;background:white;color:#4b425f;border-radius:9px;padding:8px 12px;font-weight:700;font-size:12px;white-space:nowrap}.btn:hover{background:#f6f1ff}.btn.primary{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 3px 8px #5d3bce30}.btn.primary:hover{background:var(--purple-dark)}.btn.subtle{border-color:transparent;background:transparent;color:var(--purple)}.btn svg{width:16px;height:16px}.banner{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f2ebff;color:#5937a8;border:1px solid #e8dcff;padding:10px 13px;border-radius:10px;margin-bottom:16px;font-size:12px}.banner.error{background:#fff1f4;color:#882c4d;border-color:#f0cbd8}.banner button{color:inherit}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:21px}.metric{min-width:0;padding:15px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.metric-top{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:13px}.metric-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#633cc3;background:#efe8ff}.metric:nth-child(2) .metric-icon{color:#a35a22;background:#fff0df}.metric:nth-child(3) .metric-icon{color:#1a7661;background:#e6f7ef}.metric:nth-child(4) .metric-icon{color:#9d4085;background:#f9e8f5}.metric-tag{font-size:10px;color:#756986;background:#f6f3fb;padding:4px 7px;border-radius:20px;white-space:nowrap}.metric-value{font-size:28px;line-height:1;font-weight:800;letter-spacing:-1px;margin-bottom:6px}.metric-label{font-size:12px;color:#504762;font-weight:700}.metric-foot{font-size:11px;color:#756e83;margin-top:8px;line-height:1.35;min-height:15px}
.panel{background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);margin-bottom:15px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 17px 13px}.segmented{display:flex;background:#f5f2fa;padding:3px;border-radius:9px;gap:2px}.segmented button{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;border:0;border-radius:7px;padding:6px 9px;background:transparent;color:#655b79;white-space:nowrap}.segmented svg{width:14px;height:14px}.segmented .active{background:#fff;color:var(--purple-dark);box-shadow:0 1px 4px #321c5c15}.filters{display:flex;gap:8px;flex-wrap:wrap;padding:0 17px 14px;align-items:center}.search-field{position:relative;min-width:175px;flex:1}.search-field svg{position:absolute;top:10px;left:10px;width:16px;height:16px;color:#817691;pointer-events:none}.search-field input{padding-left:32px;width:100%}input,select,textarea{border:1px solid #e5deed;background:#fff;border-radius:8px;padding:8px 10px;color:var(--ink);min-height:36px;outline:none;max-width:100%}input:focus,select:focus,textarea:focus{border-color:#946ef0;box-shadow:0 0 0 3px #f0e7ff}input::placeholder,textarea::placeholder{color:#837b92}.filters select{font-size:12px;max-width:174px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{font-size:10px;font-weight:850;letter-spacing:.75px;color:#706782;background:#faf8fd;text-transform:uppercase}td,th{padding:11px 14px;border-top:1px solid #f0edf4}td:first-child,th:first-child{padding-left:17px}tbody tr:hover{background:#fcfaff}.row-button{display:flex;align-items:center;gap:8px;border:0;background:none;padding:0;text-align:left;color:#2c2440;font-weight:750}.row-button:hover{color:var(--purple)}.mini-avatar{display:inline-grid;place-items:center;width:29px;height:29px;background:#f1eafa;color:#694ab3;border-radius:8px;font-size:10px;font-weight:850;flex:none}.row-sub{display:block;font-size:10px;color:#776d87;font-weight:500;margin-top:2px}.table-end{padding:11px 17px;border-top:1px solid #f0edf4;color:#756e83;font-size:11px}.status{display:inline-flex;align-items:center;gap:5px;border-radius:16px;padding:4px 7px;font-size:10px;font-weight:750;background:#f1ecfc;color:#633cb4;white-space:nowrap}.status i{background:currentColor;width:6px;height:6px}.status.sent,.status.draft{background:#eaf0fe;color:#3c54a9}.status.viewed,.status.won{background:#e8f6ee;color:#1f7459}.status.followup{background:#fff1da;color:#93540d}.status.lost{background:#f1edf3;color:#6e6276}.status.replied,.status.received{background:#f9e9f5;color:#903d7c}.status.new{background:#efeaf8;color:#69528d}.empty{text-align:center;padding:27px 15px;color:var(--muted);white-space:normal}.empty .metric-icon{margin:0 auto 9px}.empty strong{display:block;color:var(--ink);margin-bottom:6px}.empty p{margin:0 0 12px;font-size:12px}.board{display:grid;grid-template-columns:repeat(8,minmax(185px,1fr));overflow:auto;gap:9px;padding:0 17px 15px;align-items:start}.lane{background:#f7f5fb;border:1px solid #eee9f5;border-radius:10px;min-height:180px;padding:8px}.lane.drop{background:#ede4ff;border:1px dashed #8962da}.lane-title{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;font-weight:750;margin:2px 2px 8px}.lane-title .pill{margin-left:auto;padding:3px 6px;font-size:10px}.card{background:#fff;border:1px solid #ece5f5;border-radius:9px;padding:9px;margin-bottom:7px;cursor:grab}.card:active{cursor:grabbing}.card p{margin:5px 0 8px;color:#716580;font-size:11px}.card select{min-height:26px;padding:3px 4px;width:100%;font-size:10px}.lane-empty{color:#7b7287;text-align:center;padding:18px 4px;font-size:11px}
.content-pad{padding:0 17px 17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.form-grid label,.field{display:grid;gap:5px;font-size:12px;font-weight:700;color:#514763;min-width:0}.wide{grid-column:1/-1}textarea{resize:vertical;min-height:84px}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:15px;flex-wrap:wrap}.form-error{color:#a03253;font-size:12px;margin:9px 0 0;min-height:0}.research-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:14px}.tile{padding:14px;background:#faf8ff;border:1px solid var(--border);border-radius:11px;margin-bottom:8px}.tile p{color:var(--muted);font-size:12px;margin-bottom:10px;line-height:1.5}.muted{color:var(--muted)}.mail-item{border:1px solid var(--border);padding:11px 13px;margin-top:7px;border-radius:10px}.mail-item summary{cursor:pointer;font-weight:700}.mail-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;color:#574b67;font-size:12px;line-height:1.55}
dialog{width:min(740px,calc(100vw - 24px));max-height:90dvh;border:1px solid var(--border);border-radius:16px;padding:0;color:var(--ink);box-shadow:0 22px 70px #1f123a44}dialog::backdrop{background:#21193275}.dialog-head{position:sticky;top:0;z-index:1;background:#fff;padding:15px 19px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:center}.dialog-head h2{margin:0}.dialog-body{padding:16px 19px}.link-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}#toast{display:none;position:fixed;z-index:10;bottom:20px;right:20px;max-width:min(400px,calc(100vw - 40px));background:#2e2248;color:#fff;border-radius:10px;padding:11px 15px;box-shadow:0 5px 25px #24173e44}#toast.show{display:block}
@media(max-width:1080px){.app{grid-template-columns:190px minmax(0,1fr)}main,.topbar{padding-left:19px;padding-right:19px}.sidebar{padding-left:12px;padding-right:12px}.metrics{gap:8px}.metric{padding:11px}.metric-top{gap:4px}.metric-tag{font-size:9px}}
@media(max-width:820px){.app{grid-template-columns:66px minmax(0,1fr)}.sidebar{padding:16px 9px}.brand{margin:0 auto 27px}.brand>span+span,.nav-title,.nav-button span,.profile div{display:none}.nav-button{justify-content:center;padding:9px}.profile{justify-content:center}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.app{display:block}.sidebar{height:auto;position:sticky;z-index:2;flex-direction:row;align-items:center;padding:6px 8px;border-bottom:1px solid var(--border);gap:5px}.brand{margin:0 4px 0 0}.logo{width:31px;height:31px;font-size:21px;border-radius:9px}.sidebar nav{display:flex;flex:1;overflow:auto;gap:2px}.nav-button{width:34px;min-width:34px;margin:0;min-height:34px}.sidebar-bottom{margin:0;display:flex}.profile{display:none}.topbar{height:43px;padding:0 10px}.top-actions{gap:5px}.topbar .icon-button{width:29px;height:29px}main{padding:16px 9px}.hero{flex-wrap:wrap;align-items:start;gap:9px;margin-bottom:14px}.hero h1{font-size:30px}.panel-head{align-items:flex-start;flex-wrap:wrap}.private{font-size:9px}.research-grid,.form-grid{grid-template-columns:1fr}.metrics{margin-bottom:12px}.metric-foot{font-size:10px}.filters select{max-width:48%;flex:1}.search-field{flex:1 0 100%}.dialog-head,.dialog-body{padding-left:12px;padding-right:12px}}

/* Dark workspace, with accent colors from the Comfika mark. */
:root{color-scheme:dark;color:#ebeff6;background:#10141b;--ink:#f0f4fa;--muted:#a6b1c1;--border:#303a49;--purple:#a9d6ea;--purple-dark:#bce4f4;--lav:#243647;--white:#1a222e;--green:#addb9e;--shadow:0 8px 24px #05080d35}
.sidebar,.topbar,.dialog-head{background:#171e28}.sidebar{border-right-color:#2a3442}.brand{color:#edf4fa}.brand-dot{color:#afcf67}.brand small,.nav-title{color:#9bafc2}.logo{width:46px;height:46px;object-fit:contain;border-radius:10px;background:#fafafa;box-shadow:none}.nav-button{color:#aebaca}.nav-button:hover,.nav-button.active{color:#d7f0ff;background:#25394b}.nav-button.active{box-shadow:inset 3px 0 #89bdd8}.profile b,.breadcrumb b{color:#eaf1fa}.avatar,.mini-avatar{background:#263b4e;color:#bde7fa}.breadcrumb,.slash{color:#a6b1c1}.private,.pill{background:#253447;color:#c1dced}.private i,.status i,.lane-title i{background:#a7cc65}
.eyebrow{color:#a7cfdf}.btn,.icon-button{background:#202a37;border-color:#364457;color:#d9e5f2}.btn:hover,.icon-button:hover{background:#2a3b4c;color:#f5f8fc}.btn.primary{background:#aacc68;border-color:#aacc68;color:#141d12;box-shadow:0 3px 12px #8cb75c24}.btn.primary:hover{background:#bfdc83}.btn.subtle{color:#b3dcef}.banner{background:#223649;color:#d1eaff;border-color:#35506a}.banner.error{background:#402632;color:#ffcedb;border-color:#694352}
.panel,.metric{background:#1a222e}.metric-icon{background:#294257;color:#b6deef}.metric:nth-child(2) .metric-icon{background:#3c3430;color:#ffce9a}.metric:nth-child(3) .metric-icon{background:#284039;color:#b4e5bf}.metric:nth-child(4) .metric-icon{background:#3e3046;color:#e9bee9}.metric-tag{background:#273443;color:#bdcad9}.metric-label{color:#e1e8f1}.metric-foot,.table-end,.row-sub{color:#a9b5c7}
.segmented,.lane,.tile{background:#202c3a;border-color:#334355}.segmented button{color:#b4c1d1}.segmented .active{background:#344a60;color:#e2f3ff}.search-field svg{color:#a2b4c7}input,select,textarea{background:#161e28;border-color:#364759;color:#ecf2f8}input:focus,select:focus,textarea:focus{border-color:#8dbed6;box-shadow:0 0 0 3px #8dbed625}input::placeholder,textarea::placeholder{color:#a1aec1}
th{background:#202b39;color:#aabbd0}td,th,.table-end{border-top-color:#303d4d}tbody tr:hover{background:#202d3c}.row-button{color:#f0f5fa}.row-button:hover{color:#aed9ee}.status{background:#31374c;color:#d1d3f3}.status.sent,.status.draft{background:#2b3e63;color:#b5ccff}.status.viewed,.status.won{background:#264b3c;color:#b8eacd}.status.followup{background:#493921;color:#ffe0a4}.status.lost{background:#3a3544;color:#d9d0e2}.status.replied,.status.received{background:#49334b;color:#f3c6ee}.status.new{background:#32394a;color:#ccd9ee}.status i{background:currentColor}
.lane.drop{background:#2d4759;border-color:#93c6df}.lane-empty,.card p{color:#aebcce}.card{background:#171f2a;border-color:#37495d}.form-grid label,.field{color:#d6e1ee}.form-error{color:#ffb5c9}.mail-item p{color:#c2cedd}dialog{background:#1a222e;border-color:#3a4b5e;box-shadow:0 22px 80px #000a}dialog::backdrop{background:#080c14b8}#toast{background:#263b4e;color:#f0f8ff}
.import-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border:1px dashed #4c647c;border-radius:11px;background:#1c2a38}.import-picker p{margin:0}.import-picker strong{display:block;margin-bottom:4px}.import-fields{padding:0 17px 14px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}.import-map{padding:11px 14px;margin-top:13px;border:1px solid var(--border);border-radius:9px}.import-map summary{cursor:pointer;font-weight:700}.import-map .form-grid{margin-top:12px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.import-preview td{white-space:normal;min-width:72px}.import-preview td:nth-child(2){min-width:155px}.import-preview td:nth-child(4){min-width:145px;overflow-wrap:anywhere}.import-preview input[type=checkbox]{min-height:auto;accent-color:#aacc68}.import-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.import-text{white-space:pre-wrap;line-height:1.5;min-width:0}.import-notice{margin:0 0 14px;display:block}.ocr-photo{display:block;max-width:min(420px,100%);max-height:210px;object-fit:contain;border:1px solid var(--border);border-radius:9px;margin:12px 0}.btn:disabled{cursor:not-allowed}
@media(max-width:540px){.logo{width:31px;height:31px;border-radius:7px}}
.auth-panel{max-width:470px}.auth-panel .content-pad{padding-top:17px}.auth-panel .form-grid{grid-template-columns:1fr}[hidden]{display:none!important}
