.btn{height:36px;border-radius:9px;border:1px solid #dce3ec;background:#fff;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:9px;font-weight:760;cursor:pointer;box-shadow:var(--shadow-xs);transition:.14s}.btn:hover{background:#f8fafc;border-color:#cbd7e5}.btn.primary{background:linear-gradient(180deg,#3478f5,#2563eb);border-color:#2563eb;color:#fff;box-shadow:0 7px 18px rgba(37,99,235,.20)}.btn.primary:hover{background:#1f5ee3}.btn.danger{color:#c62d3d;background:#fff5f6;border-color:#ffd7dc}.btn.sm{height:29px;padding:0 9px;font-size:8px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r14);box-shadow:var(--shadow-xs)}.panel-head{min-height:47px;padding:0 14px;border-bottom:1px solid var(--line-2);display:flex;align-items:center;gap:9px}.panel-head h3{font-size:10px;margin:0}.panel-head small{color:var(--muted);font-size:7.5px}.panel-head .grow{margin-left:auto}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px 13px;min-height:88px;position:relative;overflow:hidden;box-shadow:var(--shadow-xs);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center}.metric .metric-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);grid-row:1/3}.metric .metric-copy{min-width:0}.metric label{display:block;font-size:8px;color:#7d8999;font-weight:730}.metric strong{font-size:21px;letter-spacing:-.04em;display:inline-block;margin-top:2px}.metric small{font-size:7px;color:#9aa5b4;margin-left:6px}.metric.red .metric-icon{background:var(--red-soft);color:var(--red)}.metric.green .metric-icon{background:var(--green-soft);color:var(--green)}.metric.orange .metric-icon{background:var(--orange-soft);color:var(--orange)}.metric.purple .metric-icon{background:var(--purple-soft);color:var(--purple)}.badge{display:inline-flex;align-items:center;gap:5px;min-height:21px;padding:0 7px;border-radius:999px;background:#eef2f6;color:#536174;font-size:7.5px;font-weight:820;white-space:nowrap}.badge.blue{background:var(--accent-soft);color:#285fc9}.badge.green{background:var(--green-soft);color:#117b58}.badge.red{background:var(--red-soft);color:#c12638}.badge.orange{background:var(--orange-soft);color:#ad6614}.badge.purple{background:var(--purple-soft);color:#6947c6}.badge.cyan{background:var(--cyan-soft);color:#11768e}.badge.dark{background:#e9edf3;color:#263244}.badge.yellow{background:var(--yellow-soft);color:#8c6500}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.toolbar{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;box-shadow:var(--shadow-xs)}.input,.select{height:34px;border:1px solid #dce3ec;border-radius:8px;background:#fff;padding:0 10px;font-size:9px;outline:none;color:#425067}.input:focus,.select:focus{border-color:#92b4fa;box-shadow:0 0 0 3px rgba(37,99,235,.07)}.input.search{min-width:260px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:8.5px;min-width:1100px}.data-table th{position:sticky;top:0;background:#f8fafc;color:#758196;text-transform:uppercase;letter-spacing:.045em;font-size:7px;font-weight:850;text-align:left;padding:8px 9px;border-bottom:1px solid var(--line);z-index:2;white-space:nowrap}.data-table td{padding:8px 9px;border-bottom:1px solid #edf1f5;vertical-align:middle;color:#37465b}.data-table tbody tr{cursor:pointer;background:#fff}.data-table tbody tr:hover{background:#f6f9ff}.data-table tbody tr:last-child td{border-bottom:0}.data-table td strong{font-size:8.7px;color:#19263a}.cell-sub{display:block;color:#96a1b1;font-size:7px;margin-top:2px}.table-empty{padding:52px 20px;text-align:center;color:#8f9bac}.table-empty b{display:block;color:#536174;font-size:10px;margin-bottom:4px}.split-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:11px}.stack{display:grid;gap:11px}.list{padding:4px 11px}.list-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 3px;border-bottom:1px solid #edf1f5}.list-row:last-child{border-bottom:0}.list-icon{width:29px;height:29px;border-radius:8px;background:#f0f4f8;color:#667489;display:grid;place-items:center}.list-main b{display:block;font-size:8.7px}.list-main small{display:block;font-size:7.2px;color:#929eae;margin-top:2px}.list-side{text-align:right;font-size:7.5px;color:#7f8a9b}.progress{height:5px;background:#edf1f5;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;border-radius:999px;background:var(--accent)}.segmented{display:inline-flex;padding:3px;background:#eff3f7;border-radius:8px}.segmented button{height:26px;padding:0 9px;border:0;background:transparent;border-radius:6px;font-size:7.5px;cursor:pointer;color:#768293}.segmented button.active{background:#fff;color:#263348;box-shadow:var(--shadow-xs)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field label{display:block;font-size:7px;font-weight:820;color:#7f8b9c;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;border:1px solid #dce3ec;border-radius:8px;background:#fff;padding:8px 9px;font-size:9px;outline:none}.field textarea{min-height:86px;resize:vertical}.field.full{grid-column:1/-1}.modal-backdrop{position:fixed;inset:0;z-index:130;background:rgba(10,17,30,.45);backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px}.modal{width:min(640px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:17px;box-shadow:var(--shadow-lg)}.modal-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center}.modal-head h3{margin:0;font-size:12px}.modal-head button{margin-left:auto}.modal-body{padding:16px 17px}.modal-foot{padding:11px 17px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:7px}.search-result{padding:9px;border-radius:9px;display:grid;grid-template-columns:32px 1fr auto;gap:9px;align-items:center;cursor:pointer}.search-result:hover{background:#f5f8fc}.search-result b{font-size:9px}.search-result small{font-size:7px;color:#8e9aab}.search-result-type{font-size:7px;text-transform:uppercase;color:#9aa5b4;font-weight:800}.empty-state{padding:55px 20px;text-align:center}.empty-state .empty-icon{width:48px;height:48px;border-radius:13px;background:#eef3f8;color:#7c8999;display:grid;place-items:center;margin:0 auto 11px}.empty-state h3{font-size:12px;margin:0}.empty-state p{font-size:8.5px;color:#8c98a8;max-width:420px;margin:6px auto 0;line-height:1.6}.chip-row{display:flex;gap:5px;flex-wrap:wrap}.mini-stat{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.mini-stat label{display:block;color:#8a96a6;font-size:7px}.mini-stat b{display:block;font-size:14px;margin-top:3px}.status-select{border:1px solid transparent;border-radius:8px;padding:5px 7px;font-size:7.5px;font-weight:820;max-width:220px;outline:none;background:#eef2f6;color:#344258}.status-select:hover{border-color:#cdd8e7}.drawer-head{padding:19px 21px 16px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.drawer-head-row{display:flex;gap:11px;align-items:flex-start}.drawer-title{min-width:0;flex:1}.drawer-title .eyebrow2{font-size:7px;letter-spacing:.09em;color:#96a1b1;font-weight:820}.drawer-title h2{margin:5px 0 3px;font-size:21px;letter-spacing:-.04em}.drawer-title p{margin:0;color:#8390a1;font-size:8px}.drawer-close{margin-left:auto}.drawer-body{padding:16px 18px 34px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.detail-cell{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}.detail-cell label{display:block;text-transform:uppercase;font-size:6.6px;letter-spacing:.05em;color:#9aa5b4;font-weight:850}.detail-cell b{display:block;font-size:8.5px;margin-top:4px;line-height:1.35}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:14px 0 12px;overflow:auto}.tabs button{border:0;background:transparent;padding:9px 10px;font-size:8px;font-weight:760;color:#7c8999;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}.tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.quick-link{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px;display:flex;align-items:center;gap:8px;cursor:pointer}.quick-link:hover{border-color:#bdd0f6;background:#fbfdff}.quick-link-icon{width:29px;height:29px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.quick-link b{display:block;font-size:8.5px}.quick-link small{display:block;font-size:7px;color:#94a0b0;margin-top:2px}
@media(max-width:1200px){.metric-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1000px){.metric-grid{grid-template-columns:repeat(2,1fr)}.split-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.metric-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.detail-grid{grid-template-columns:1fr 1fr}.input.search{min-width:150px;flex:1}.metric strong{font-size:18px}}

.user-picker{display:grid;gap:8px}.user-pick{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;text-align:left;cursor:pointer}.user-pick:hover{border-color:#9bbaf7;background:#f8fbff}.user-pick .avatar{width:38px;height:38px;border-radius:10px;background:#172033;color:#fff;display:grid;place-items:center;font-weight:900}.user-pick b,.user-pick small{display:block}.user-pick small{color:#8290a3;margin-top:2px}.user-pick em{font-style:normal;background:#fff0f3;color:#c12638;padding:4px 7px;border-radius:999px;font-size:10px}

.choice-menu{position:fixed;z-index:3000;background:#fff;border:1px solid #d7e0ec;border-radius:12px;box-shadow:0 18px 42px rgba(13,28,52,.18);padding:7px;max-height:420px;overflow:auto}
.choice-menu-title{padding:6px 9px 8px;font-size:11px!important;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#78869a}
.choice-menu-list{display:grid;gap:3px}.choice-menu button{border:0;background:#fff;border-radius:8px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;font-weight:750;color:#243247}.choice-menu button:hover{background:#f2f6fb}.choice-menu button.active{background:#eaf2ff;color:#1f5fc5}
.choice-button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:6px 9px;min-width:120px;font-weight:800}.choice-button .chev{font-size:11px!important;opacity:.6}.choice-button.status-choice{min-width:180px}.choice-button.priority-choice{min-width:92px;border-radius:999px}
.choice-button.priority-choice.high{background:#fff0f2;color:#c8243a;border-color:#ffd2da}.choice-button.priority-choice.medium{background:#fff7e8;color:#ad6809;border-color:#ffe0ad}.choice-button.priority-choice.low{background:#edf9f3;color:#14784d;border-color:#d5efdf}

/* 0.9.1 – Reliable anchored dropdown: scrolling stays inside the list. */
.choice-menu{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:8px;min-height:0;max-height:calc(100dvh - 24px);border-radius:14px;box-shadow:0 18px 48px rgba(17,35,59,.22)}
.choice-menu-title{flex:none;display:flex;flex-direction:column;gap:4px;line-height:1.25;padding:9px 10px 11px;font-size:12px!important;letter-spacing:.015em}
.choice-menu-help{font-size:11px;color:#8291a7;font-weight:550;letter-spacing:0;text-transform:none}
.choice-menu-list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b9c7d8 transparent;overscroll-behavior:contain;scroll-behavior:auto;padding:2px 3px 3px;gap:5px}
.choice-menu-bottom{flex:none;font-size:10px;color:#8190a5;padding:9px 7px 4px;border-top:1px solid #e8edf4;margin-top:7px}
.choice-menu .choice-menu-option{font-size:12px;line-height:1.3;min-height:40px;padding:9px 10px;cursor:pointer;display:flex;align-items:center;gap:9px;white-space:normal}
.choice-menu .choice-menu-option:focus-visible{outline:2px solid #4383e2;outline-offset:-2px;background:#f3f7ff}
.choice-menu-option .choice-option-label{min-width:0;flex:1}
.choice-menu .choice-selected{flex:none;font-size:14px}
.choice-menu-status .choice-menu-option{border:1px solid transparent;border-radius:10px;font-weight:700}
.choice-menu-status .choice-menu-option:hover{border-color:#c7d6e9}
.choice-menu-status .choice-menu-option.active{border-color:currentColor}
.choice-tone-dot{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-radius:999px;background:currentColor;box-shadow:0 0 0 3px rgba(0,0,0,.035)}
.choice-menu-status .choice-menu-option.tone-blue{background:#eaf3ff;color:#1d56a3}
.choice-menu-status .choice-menu-option.tone-purple{background:#f3edff;color:#6641b4}
.choice-menu-status .choice-menu-option.tone-orange{background:#fff3e4;color:#995309}
.choice-menu-status .choice-menu-option.tone-amber{background:#fff8d9;color:#825900}
.choice-menu-status .choice-menu-option.tone-teal{background:#e5f7f5;color:#0b7069}
.choice-menu-status .choice-menu-option.tone-green{background:#eaf8ee;color:#156c39}
.choice-menu-status .choice-menu-option.tone-red{background:#fff0f1;color:#b32842}
.choice-menu-status .choice-menu-option.tone-dark{background:#eef2f7;color:#364b65}
.choice-menu-status .choice-menu-option.tone-blue:hover{background:#dcecff}
.choice-menu-status .choice-menu-option.tone-purple:hover{background:#e8dcff}
.choice-menu-status .choice-menu-option.tone-orange:hover{background:#ffe9cc}
.choice-menu-status .choice-menu-option.tone-teal:hover{background:#d0eeea}
.choice-menu-status .choice-menu-option.tone-green:hover{background:#d6f0df}

/* CRM 0.9.2: robust, scrollable workflow / readiness menus */
.choice-menu{z-index:9000!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:9px!important;min-height:0!important}
.choice-menu .choice-menu-list{flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:100%!important;scrollbar-width:auto;overscroll-behavior:contain;touch-action:pan-y;}
.choice-menu .choice-menu-option{flex:none!important;min-height:44px!important;font-size:13px!important;font-weight:750!important;line-height:1.3!important;padding:10px 12px!important;}
.choice-menu .choice-menu-option .choice-option-label{flex:1;min-width:0;white-space:normal}
.choice-menu .choice-menu-title{flex:none;font-size:12px!important}
.choice-menu .choice-menu-bottom{flex:none;font-size:11px!important}
.choice-menu-status .choice-menu-option.tone-orange,.choice-menu-status .choice-menu-option.tone-amber{border-color:#f7dfbc}
