/* DealLogic Workspace / v0.4 preview. Shared visual tokens, based on the Nusa Bay reference. */
:root{--ink:#293a35;--muted:#64706b;--paper:#f0f1ee;--line:#e2e7e2;--moss:#344c42;--lime:#dce9dd;--surface:#fff;--soft:#f6f8f5;--radius:24px;--shadow:0 3px 5px #263a3004,0 12px 32px #263a3003;--ease:cubic-bezier(.23,1,.32,1)}
html{scroll-behavior:auto}body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}body>header{display:none}button,input,select,textarea{font-family:inherit!important}button{touch-action:manipulation;transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 120ms var(--ease)}button:active{transform:scale(.98)}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #8aa9a0;outline-offset:3px}svg{width:20px;height:20px;flex-shrink:0}h1,h2,h3,h4{font-family:inherit!important;letter-spacing:-.025em}p{overflow-wrap:anywhere}main:has(.project-rail){display:grid;grid-template-columns:224px minmax(0,1fr);gap:0 20px;max-width:1600px;min-height:100vh;padding:24px 32px 48px;align-items:start;margin:auto}main>section,.workspace-context{grid-column:2;min-width:0}.project-rail{grid-column:1;grid-row:1 / span 20;position:sticky;top:24px;border:1px solid #ffffffb3;border-radius:28px;background:var(--surface);padding:20px 12px;min-height:calc(100vh - 48px);width:100%;box-shadow:var(--shadow);align-self:start}.workspace-brand{display:flex;gap:10px;align-items:center;padding:2px 8px 28px;text-decoration:none;color:var(--ink);font-size:19px;font-weight:650;letter-spacing:-.7px}.workspace-brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.1px;font-weight:400;margin-top:1px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ink);color:#e6efe4}.brand-mark svg{width:23px;height:23px}.nav-caption{font-size:11px;font-weight:500;line-height:1.1;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:0 12px 10px}.workspace-navigation nav{display:grid;gap:5px;margin-bottom:32px}.workspace-navigation nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;padding:11px 12px;border-radius:12px;text-align:left;color:#52605a;font-weight:500;font-size:13px;cursor:pointer;min-height:42px}.workspace-navigation nav button.active{background:var(--ink);color:#fff;box-shadow:0 4px 8px #293a3520}.workspace-navigation nav svg{width:18px;height:18px}.project-rail-head{align-items:center;padding:0 10px;margin-bottom:12px}.project-rail-head .eyebrow{display:none}.project-rail h3{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.project-new{border-radius:50%;width:28px;height:28px;border-color:var(--line);color:var(--ink);font-size:20px;font-weight:400}.project-rail-item{padding:12px;border-radius:12px;gap:10px}.project-rail-item.active{background:#edf2ed;box-shadow:none}.project-rail-item strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.project-rail-item small{font-size:10px;margin-top:3px}.project-dot{margin-top:5px;background:#bdc9bf}.project-rail-item.active .project-dot{background:#456756;box-shadow:0 0 0 3px #d6e2d6}.project-rail-note{margin:28px 8px 0;padding:16px 0 0;font-size:10px}.project-rail-empty{padding:0 8px;font-size:11px}.project-rail-create{padding:12px;background:var(--soft);border-radius:14px}.workspace-context{display:flex;align-items:center;gap:10px;min-height:28px;margin-bottom:24px;font-size:11px;color:var(--muted)}.context-project{font-weight:600;color:var(--ink);overflow-wrap:anywhere}.context-divider{color:#a1ada5}.context-status{margin-left:auto;display:flex;align-items:center;gap:6px;white-space:nowrap}.context-status i{width:6px;height:6px;border-radius:50%;background:#7b9e83}.intro h2,.hub-header h2{font-size:34px;line-height:1.12;font-weight:500;letter-spacing:-1.3px;margin:0}.intro p{max-width:720px;font-size:13px;line-height:1.65;margin:12px 0 0}.intro{padding-bottom:0;margin-bottom:22px;padding-right:125px}.transaction-side{bottom:auto;top:0;right:0}.transaction-side-options{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:255px}.transaction-side-options button,.transaction-side-toggle{border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--ink);padding:10px 17px;font:500 12px Inter,sans-serif;cursor:pointer;min-height:38px}.transaction-side-options button.active{background:var(--ink);border-color:var(--ink);color:#fff}.workspace{grid-template-columns:190px minmax(0,1fr);gap:20px;margin-top:12px}.map{border:0;border-radius:20px;padding:18px 12px;background:#e8ece5;min-height:420px;position:sticky;top:24px;box-shadow:none}.map h3{font-size:14px;font-weight:600;padding:0 8px}.map-branches{margin-top:22px}.branch{margin-left:0;border:0;padding:0 0 8px}.area{font-size:12px;font-weight:500;padding:11px 8px;gap:8px;border-radius:9px;line-height:1.4;min-height:42px}.area:before{display:none}.area.open{background:#d9e3d7;color:#283e31}.chevron{font-size:17px}.issue-nodes{padding:7px 0 0 8px}.issue-node{padding:10px 12px;font-size:11px;line-height:1.45;border-radius:9px}.issue-node.active{font-weight:600;box-shadow:none}.map-guidance{font-size:12px;letter-spacing:0;font-weight:400}.issue-header,.card,.hub-summary-tile,.hub-projects,.settings-card,.action-library,.project-start{border:1px solid #e8ece6;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}.issue-header{padding:26px;margin-bottom:20px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.13em;color:#52695b;margin-bottom:10px}.issue-headline h3{font-size:28px;font-weight:500;line-height:1.2;letter-spacing:-.9px}.summary{font-size:13px;line-height:1.7;color:#5b6860;margin:14px 0 22px;max-width:85ch}.risk-wrap{padding-top:18px;border-color:var(--line)}.risk-heading{font-size:11px;align-items:center}.risk-label span{font-size:10px;font-weight:400}.risk-score{font-size:10px;border-radius:18px;padding:5px 9px;background:#f3f5f1;color:var(--ink)}.risk-track{gap:5px}.risk-step{height:7px;border-radius:6px}.risk-step.active{box-shadow:none}.risk-pointer{border-left-width:5px;border-right-width:5px;border-top-width:6px}.risk-outcome{font-size:11px}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.card{padding:22px}.card h3{font-size:17px;font-weight:550;letter-spacing:-.4px;margin-bottom:18px}.facts-heading{align-items:baseline}.reset-answers{padding:7px 9px;border-radius:20px;border-color:var(--line);font-size:10px;font-weight:500;white-space:nowrap}.question{padding:19px 0;border-color:var(--line)}.question label{font-size:12px;font-weight:550;line-height:1.6}.question-top{gap:12px}.info{border:0;background:#eef2ed;color:#66766b;width:20px;height:20px;flex-basis:20px}.tooltip{border-radius:12px;font-size:12px;font-weight:400;max-width:calc(100vw - 40px)}select,.other-input{border:1px solid #cbd5cd;border-radius:10px;padding:11px 34px 11px 12px;font-size:12px;background-color:#fbfcfa;min-height:40px;margin-top:12px}.response-note{font-size:11px;line-height:1.6}.choice-grid{gap:10px}.choice-grid input{accent-color:var(--moss);width:15px;height:15px}.importance-scale{font-size:10px;gap:4px}.importance input{height:18px;cursor:pointer}.logic,.logic.coc-deal-logic{background:#fff;color:var(--ink);border:1px solid #d9e4d8;padding:22px;box-shadow:var(--shadow)}.logic p,.logic-residual,.logic-section li{color:#526159}.logic-section{border-top-color:var(--line);margin-top:20px;padding-top:18px}.logic-section h4{font-size:10px;font-weight:650;letter-spacing:.08em;color:#566c5c}.logic-conclusion{font-size:13px;line-height:1.75}.logic-section li{font-size:12px;line-height:1.65;padding-left:13px}.logic-section li:before{background:#85a48a;top:8px}.logic-action{grid-template-columns:28px 1fr;gap:10px;margin:0;padding:14px 26px 14px 0;border-bottom:1px solid #eef1eb}.logic-action:last-child{border-bottom:0}.logic-action .logic-icon{width:28px;height:28px;margin-top:7px;background:#edf3ea;color:#49644f;border-radius:9px}.logic-icon svg{width:17px;height:17px}.logic-action strong{font-size:12px;line-height:1.5;color:var(--ink);font-weight:600;margin-top:5px}.logic-action span:last-child{font-size:11px;line-height:1.65;color:#5c6a60}.logic-priority{display:inline-block;letter-spacing:.02em;font-size:9px;font-weight:600;text-transform:none;padding:3px 7px;border-radius:5px;background:#e7eff8;color:#345c82}.logic-priority[data-level=required]{background:#20476e;color:white}.logic-priority[data-level=recommended]{background:#4277a5;color:white}.logic-priority[data-level=consider]{background:#dcebf7;color:#315c80}.logic-residual{font-size:11px;line-height:1.7}.logic-residual strong{color:var(--ink)}.logic-section-heading{flex-wrap:wrap;gap:8px}.logic-section-heading h4{margin-right:auto}.logic-side-picker button,.hub-pin{border:1px solid #d1ddd0;background:#f3f7ef;color:#3f5945;border-radius:18px;padding:6px 8px;font-size:9px;font-weight:600;min-height:28px}.logic-side-picker button.active,.hub-pin.active{background:#dce9d6;border-color:#dce9d6;color:#314935}.logic-action input.hub-pick{accent-color:var(--moss)}.hub-pickbar{color:var(--muted);flex-wrap:wrap;margin-top:14px;gap:10px}.hub-pickbar .hub-pick-actions button{border:1px solid var(--line);color:var(--ink);background:white;border-radius:20px;padding:8px 10px}.hub-pickbar .hub-pick-actions [data-hub-add]{background:var(--ink);color:#fff;border-color:var(--ink)}.export{background:var(--ink);color:#fff;border-radius:24px;padding:14px;font-size:12px;font-weight:500;margin-top:14px}.recommendation{border-color:var(--line)}.recommendation strong{font-size:13px}.recommendation p{font-size:12px}.pill{font-size:10px}.empty-state{border:1px solid #e4e9e1;border-radius:var(--radius);padding:32px;text-align:left;font-size:13px}.empty-state h3{font-size:24px;color:var(--ink);font-weight:500;margin:0 0 8px}.explore-categories{display:grid;gap:10px;margin-top:24px}.explore-categories button{display:flex;align-items:center;text-align:left;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);cursor:pointer}.explore-categories small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.explore-categories strong{font-size:13px;font-weight:550}.explore-categories button>span:not(.category-symbol){min-width:0;overflow-wrap:anywhere}.explore-categories button>svg{flex:0 0 16px;margin-left:auto;color:#7e9184;width:16px}.category-symbol{flex:0 0 36px;display:grid;place-items:center;background:#e9f0e4;width:36px;height:36px;border-radius:12px;color:#4f6a50}.project-start{padding:40px;background:linear-gradient(115deg,#f4f7ee,#edf3f7 60%,#f7eef2);position:relative;overflow:hidden}.project-start-card{max-width:730px;padding:28px;background:#ffffffdc;border:1px solid #fff;border-radius:20px}.project-start h2{font-size:30px;font-weight:500;line-height:1.2;max-width:430px}.project-start p{font-size:13px;line-height:1.7}.project-start input,.project-start select{min-height:43px;font-size:13px;border-radius:10px}.project-start label{font-size:11px;font-weight:500}.project-start form>div{margin-top:10px}.deal-hub-view,.library-view,.settings-view{padding:0;margin:0;max-width:none;width:100%;min-width:0}.hub-header{gap:20px;margin-bottom:26px}.hub-header p{font-size:13px;line-height:1.7;margin-top:10px;max-width:600px}.hub-toolbar{justify-content:flex-end}.hub-toolbar button,.hub-button,.hub-export button,.hub-editor button{font-size:11px;font-weight:500;min-height:36px;padding:9px 14px;border-radius:22px;border-color:var(--line);color:var(--ink)}.hub-button.primary,.hub-toolbar button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.hub-tabs{display:flex;gap:4px;border-bottom:1px solid #dce2da;margin-bottom:22px;padding-bottom:12px}.hub-tabs button{background:transparent;border:0;border-radius:20px;font-weight:500;font-size:12px;color:var(--muted);padding:10px 16px}.hub-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 4px #293a350b}.hub-filter-row{gap:12px;margin-bottom:22px}.hub-filter-row label{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.hub-filter-row select,.hub-filter-row input{padding:10px 12px;min-height:38px;font-size:12px;border:1px solid var(--line);background:#fff;border-radius:22px}.hub-filter-row select{padding-right:32px}.hub-filter-row .hub-meta{margin-left:auto;font-size:10px}.workspace-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:16px;margin-bottom:22px;border:1px solid #fff9;border-radius:26px;background:linear-gradient(110deg,#e7eddd,#e5eef6 55%,#f2e7ed)}.metric{position:relative;min-width:0;background:#ffffffd9;border:1px solid #fff;border-radius:18px;padding:18px}.metric-label{color:#58675e;font-size:11px}.metric strong{display:block;margin-top:14px;font-size:32px;font-weight:500;letter-spacing:-1px;line-height:1}.metric-icon{position:absolute;right:14px;bottom:18px;display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:#eef3ea;color:#657b64}.metric-icon svg{width:17px;height:17px}.hub-summary-grid{gap:20px}.hub-summary-tile{padding:24px}.hub-tile-heading{border-color:var(--line);padding-bottom:18px;margin-bottom:18px}.hub-tile-heading h3{font-size:19px;font-weight:500}.hub-tile-heading p{font-size:11px;line-height:1.6}.hub-count{font-size:11px;background:#edf2e8;color:#52654e;min-width:26px}.hub-summary-list{gap:12px}.hub-issue,.hub-item{border-color:var(--line);border-radius:15px;padding:18px;box-shadow:none}.hub-summary-tile .hub-issue{padding:18px;background:#f7f9f4}.hub-issue h3{font-size:19px;font-weight:500;line-height:1.3}.hub-issue-head{gap:10px}.hub-issue-compact .hub-summary{font-size:12px;line-height:1.8}.hub-item h4{font-size:13px;font-weight:600;line-height:1.5;letter-spacing:-.2px}.hub-item p{font-size:12px;line-height:1.7}.hub-meta{font-size:10px;line-height:1.6;margin-top:6px}.hub-risk{font-weight:600}.hub-risk-1{color:#4d9d64}.hub-risk-2{color:#c3c34c}.hub-risk-3{color:#ee773b}.hub-risk-4{color:#b73138}.hub-risk-5{color:#54203f}.hub-text-button{font-size:10px;font-weight:550;min-height:28px;white-space:nowrap;color:#4a6351}.hub-tags .hub-tag{font-size:9px;font-weight:600;border-radius:5px;padding:4px 7px}.hub-tags{gap:5px;margin:10px 0}.hub-tags .hub-stage{background:#f0f3ee;color:#5a685b}.hub-columns{gap:14px;grid-template-columns:repeat(4,minmax(210px,1fr));padding-bottom:14px}.hub-column{border:0;background:#e9ede6;padding:14px;border-radius:20px;min-height:400px}.hub-column h3{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;padding:4px 3px 10px}.hub-column h3 small{font-size:10px;font-weight:400}.hub-column:nth-child(2){background:#e9eef3}.hub-column:nth-child(3){background:#f0ece5}.hub-column:nth-child(4){background:#e5eee4}.hub-column .hub-item{padding:15px;margin-bottom:12px}.hub-table-wrap{border-radius:20px;max-width:100%;border-color:var(--line)}.hub-table{min-width:1080px;font-size:12px}.hub-table th{font-size:10px;color:#6a776c;font-weight:600;letter-spacing:.03em;background:#f6f8f4;padding:16px}.hub-table td{padding:18px 16px;font-size:11px;border-color:#edf0e9;line-height:1.65}.hub-table tbody tr:hover{background:#fafbf8}.hub-table select{border-radius:18px;padding:8px 30px 8px 10px;font-size:10px}.hub-new-action,.hub-editor{border-radius:16px;background:#f7f9f5;padding:18px}.hub-editor input,.hub-editor textarea,.hub-editor select,.hub-new-action input,.hub-new-action textarea,.hub-new-action select{border-radius:9px;min-height:38px;border-color:#cbd5cd;background:#fff;font-size:12px}.hub-projects{padding:28px}.hub-projects h3{font-size:23px;font-weight:500}.hub-projects p{font-size:13px;line-height:1.7;max-width:740px}.hub-project-settings{max-width:720px;gap:16px;margin-top:24px}.hub-project-settings input,.hub-project-settings select{border-radius:10px;min-height:42px}.hub-project-actions{gap:10px}.hub-empty{border-radius:22px;padding:48px 24px;border-color:var(--line)}.hub-empty h3{font-size:23px;font-weight:500}.hub-empty p{max-width:480px;margin:12px auto 22px;font-size:13px;line-height:1.7}.hub-toast{border-radius:15px;background:var(--ink);padding:14px 20px;font-size:13px}.library-view .action-library{padding:30px}.action-library h3{font-size:28px;font-weight:500}.library-view .action-library>p{font-size:13px;margin:10px 0 28px}.library-view .action-items{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.library-view .action-item{padding:18px;border:1px solid var(--line);border-radius:16px;grid-template-columns:36px 1fr;gap:13px}.library-view .action-item strong{font-size:13px;font-weight:600;line-height:1.4}.library-view .action-item span:last-child{font-size:12px;line-height:1.65;margin-top:7px}.library-view .action-symbol{height:34px;width:34px;background:#edf3e8;color:#55704d;border-radius:11px}.action-symbol svg{width:19px;height:19px}.custom-action{margin-top:12px;background:#f5f7f2;border:1px dashed #c4d2c0;border-radius:18px;padding:20px}.custom-action h4{font-size:16px}.custom-action input{min-width:0;min-height:40px;border-radius:10px}.custom-action button{border-radius:20px}.action-controls{opacity:1}.settings-card{padding:32px}.settings-card h2{font-size:30px;font-weight:500}.settings-card p{font-size:13px;margin-top:12px}footer{max-width:1600px;padding:0 32px 28px 284px;font-size:10px;color:#738075}.skip-content{position:fixed;top:8px;left:8px;z-index:100;background:var(--ink);color:white;padding:12px;border-radius:10px;transform:translateY(-150%)}.skip-content:focus{transform:translateY(0)}
@media(hover:hover){.workspace-navigation nav button:not(.active):hover,.project-rail-item:hover{background:#f0f4ed}.explore-categories button:hover{background:#f7f9f4;border-color:#b9cbb5}.hub-tabs button:not(.active):hover{background:#ffffff80}.hub-text-button:hover{text-decoration:underline}.hub-item:hover{border-color:#c4d2c0}.export:hover{background:#41604d}}
@media(min-width:981px) and (max-width:1250px){main:has(.project-rail){grid-template-columns:196px minmax(0,1fr);column-gap:20px;padding:20px}.workspace{grid-template-columns:1fr}.map{position:static;min-height:0}.map-branches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:14px}.area{font-size:11px}.hub-header{flex-wrap:wrap}.workspace-metrics{gap:10px}.metric{padding:14px}.metric-label{font-size:10px}footer{padding-left:236px}}
@media(max-width:980px){main:has(.project-rail){display:flex;flex-direction:column;padding:18px;gap:0;min-height:0}main>section,.workspace-context{width:100%}.project-rail{order:-2;position:static;min-height:0;padding:16px;margin:0 0 20px;border-radius:22px}.workspace-navigation{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.workspace-brand{padding:0;font-size:17px}.workspace-navigation .nav-caption{display:none}.workspace-navigation nav{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px}.workspace-navigation nav button{width:auto;font-size:11px;padding:9px 12px;min-height:38px}.workspace-navigation nav svg{width:16px;height:16px}.project-rail-head{margin:14px 0 8px;padding:0}.project-rail-list{display:flex;flex-wrap:wrap;gap:6px}.project-rail-item{width:auto;display:inline-flex;min-width:150px}.project-rail-note{margin:12px 0 0;padding-top:10px}.project-rail-empty{margin:0}.workspace-context{order:-1;margin-bottom:20px}.intro{padding-right:120px}.intro h2,.hub-header h2{font-size:30px}.workspace{grid-template-columns:1fr}.map{position:static;min-height:0}.map-branches{grid-template-columns:repeat(3,minmax(0,1fr))}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-header{flex-wrap:wrap}.hub-toolbar{justify-content:flex-start}.hub-filter-row .hub-meta{margin-left:0}.project-start{padding:24px}.workspace-metrics{gap:10px}.metric{padding:14px}.metric-label{font-size:10px}.metric-icon{width:26px;height:26px;right:10px}.library-view,.settings-view,.deal-hub-view{padding:0}footer{padding:12px 18px 26px}.hub-summary-grid{gap:14px}.hub-summary-tile{padding:18px}}
@media(max-width:600px){main:has(.project-rail){padding:12px}.workspace-navigation{gap:15px}.workspace-navigation nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;gap:4px}.workspace-navigation nav button{flex-direction:column;gap:5px;padding:8px 4px;font-size:10px;min-height:56px;justify-content:center}.workspace-brand small{font-size:10px}.project-rail-head{margin-top:18px}.project-rail-item{min-width:0;max-width:100%}.project-rail-note{font-size:10px}.workspace-context{font-size:10px;gap:7px;margin-bottom:18px}.context-status{display:none}.intro{padding-right:0;margin-bottom:10px}.intro h2,.hub-header h2{font-size:29px}.intro p{font-size:12px}.transaction-side{position:static;margin:16px 0 0;justify-content:flex-start}.transaction-side-options{justify-content:flex-start}.transaction-side-options button{min-height:40px}.workspace{gap:16px}.map{padding:18px 12px}.map-branches{grid-template-columns:1fr 1fr;gap:6px}.content-grid{grid-template-columns:1fr;gap:16px}.issue-header,.card,.logic.coc-deal-logic{padding:22px}.issue-headline h3{font-size:25px}.risk-heading{flex-wrap:wrap;gap:6px}.risk-label span{display:block;margin:4px 0 0}.summary{font-size:13px}.question label{font-size:13px}select,.other-input,input[type=text],input[type=search],textarea{font-size:16px!important}.importance-scale{font-size:10px}.logic-action strong{font-size:13px}.logic-action span:last-child{font-size:12px}.project-start{padding:14px;border-radius:22px}.project-start-card{padding:22px}.project-start h2{font-size:26px}.project-start form{grid-template-columns:1fr}.project-start form>div{grid-column:auto;display:grid}.project-start .hub-button{min-height:44px}.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px;border-radius:22px}.metric{min-height:104px;padding:16px}.metric-label{font-size:11px}.metric strong{font-size:29px}.hub-summary-grid{grid-template-columns:1fr}.hub-header{gap:18px;margin-bottom:18px}.hub-toolbar{gap:8px}.hub-tabs{gap:0;justify-content:space-between}.hub-tabs button{font-size:10px;padding:10px 11px;min-height:40px}.hub-filter-row{gap:10px}.hub-filter-row label,.hub-filter-row input{width:100%}.hub-filter-row select{flex:1;min-width:0}.hub-editor-grid,.hub-issue-fields,.hub-project-settings{grid-template-columns:1fr}.hub-project-settings .hub-project-actions{grid-column:auto;flex-wrap:wrap}.hub-columns{grid-template-columns:repeat(4,260px)}.hub-issue-head{flex-wrap:wrap}.hub-text-button{min-height:36px}.hub-pickbar .hub-pick-actions button{min-height:38px}.hub-toast{left:16px;right:16px;bottom:16px;text-align:center}.library-view .action-library{padding:22px}.library-view .action-items{grid-template-columns:1fr}.library-view .action-item{padding:16px}.custom-action form{grid-template-columns:1fr}.empty-state{padding:24px}.explore-categories button{padding:14px;gap:10px}.explore-categories .category-symbol{flex-basis:32px;width:32px;height:32px;border-radius:10px}.explore-categories strong{font-size:12px}.settings-card,.hub-projects{padding:24px}.emoji-picker{max-width:calc(100vw - 76px)}}
.hub-item h4[data-vector]{display:flex;align-items:center;gap:8px}.hub-item h4[data-vector] svg{width:16px;height:16px;flex-shrink:0;color:var(--ink)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}button:active{transform:none}}
/* Action Library icons: 22px glyphs centred in 36px squares. */
.library-view .action-symbol { width: 36px; height: 36px; display: grid; place-items: center; }
.library-view .action-symbol svg { width: 22px; height: 22px; }

/* Keep long Company Radar findings inside Deal Hub task cards and editors. */
.hub-column,.hub-column .hub-item,.hub-item-top>div,.hub-column .hub-editor,.hub-column .hub-editor label{min-width:0}
.hub-column .hub-item{max-width:100%;overflow-wrap:anywhere}
.hub-column .hub-editor{grid-template-columns:minmax(0,1fr);max-width:100%;overflow-wrap:anywhere}
.hub-column .hub-editor-grid{grid-template-columns:minmax(0,1fr)}
.hub-column .hub-editor input,.hub-column .hub-editor textarea,.hub-column .hub-editor select{width:100%;max-width:100%;min-width:0}
.hub-column .hub-item .hub-meta,.hub-column .hub-item p,.hub-column .hub-item h4{overflow-wrap:anywhere}

/* Keep narrow navigation icons on one baseline, with centered labels below. */
@media (max-width: 980px) {
  .workspace-navigation nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .workspace-navigation nav button {
    display: grid;
    grid-template-rows: 20px auto;
    align-content: start;
    justify-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 70px;
    padding: 9px 2px;
    line-height: 1.2;
    text-align: center;
  }
  .workspace-navigation nav button svg {
    align-self: center;
  }
  .workspace-navigation nav button span {
    width: 100%;
    text-align: center;
  }

  .project-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }
  .workspace-navigation,
  .project-rail-head,
  .project-rail-create,
  .project-rail-note,
  .project-rail-empty {
    grid-column: 1 / -1;
  }
  .project-rail-list {
    display: contents;
  }
  .project-rail-item {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 600px) {
  /* Match answer and search text to the question labels. */
  select,
  .other-input,
  input[type="text"],
  input[type="search"],
  textarea {
    font-size: 13px !important;
  }
  .question select,
  .question .other-input,
  .radar-search input {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Legal authorities retain the Notes typography while remaining identifiable links. */
.logic-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
