@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#222936;background:#f5f6f8;font-size:16px;--orange:#db5b22;--line:#e3e6eb;--muted:#697384;--green:#23765a}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #f6966e;outline-offset:3px}input:focus,textarea:focus{outline:2px solid #ed9d76;outline-offset:1px}button:disabled{opacity:.5;cursor:not-allowed}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:34px 20px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:.91rem;font-weight:700;letter-spacing:-.4px}.brand small{display:block;font-size:.67rem;font-weight:500;color:var(--muted);letter-spacing:1.8px;margin-top:6px}.workspace-label{margin:36px 0 30px;padding:12px 10px;border:1px solid var(--line);border-radius:7px;font-size:.88rem;display:flex;justify-content:space-between;align-items:center}.tag{font-size:.75rem;background:#f0f2f5;color:#667081;padding:3px 7px;border-radius:4px;font-weight:500}.tag.orange{background:#fce8df;color:#b1471b}.nav-caption{font-size:.68rem;letter-spacing:1.8px;color:#8b94a0;margin:12px 10px;font-weight:600}.nav{display:flex;align-items:center;gap:9px;text-decoration:none;width:100%;background:none;border:none;text-align:left;color:#626d7c;font-size:.875rem;padding:13px 10px;border-radius:6px;min-height:46px}.nav .tag,.nav .soon,.count{margin-left:auto}.nav.active{color:#af4216;background:#fff0e8;font-weight:600}.nav:hover{background:#f3f4f7}.nav-icon{font-size:1.12rem;width:20px}.soon{font-size:.65rem;color:#929aa7}.count{background:#eceff3;border-radius:20px;font-size:.7rem;padding:2px 6px}.sidebar-footer{margin-top:auto;padding-top:28px;display:flex;align-items:center;gap:10px;font-size:.8rem}.sidebar-footer small{display:block;color:var(--muted);font-size:.7rem;margin-top:4px}.avatar{background:#e9edf2;color:#546171;border-radius:50%;padding:12px;font-size:.75rem}.workspace{flex:1;min-width:0}.topbar{height:86px;display:flex;align-items:center;gap:18px;padding:0 32px;border-bottom:1px solid var(--line);background:#fff}.breadcrumb{font-size:.85rem;color:var(--muted);margin-right:auto}.breadcrumb span{margin:0 16px;color:#a6aeb8}.breadcrumb b{color:#3c4756;font-weight:500}.prototype{font-size:.75rem;color:#8b653f;background:#fff5e8;border:1px solid #f6e7d3;padding:5px 8px;border-radius:4px}.button{border:none;border-radius:6px;background:#d85b26;color:#fff;padding:11px 17px;font-size:.85rem;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{background:#bd4e1f}.button.secondary{background:white;color:#4d596b;border:1px solid #dce1e8}.button.secondary:hover{background:#f3f5f7}.button.success{background:#27775b}.button.danger{background:#fff;color:#ae3f3f;border:1px solid #e5bcbc}.content-shell{display:flex;min-height:calc(100vh - 132px)}.work-area{padding:36px 32px 40px;flex:1;min-width:0}.heading{display:flex;gap:20px;align-items:center;justify-content:space-between}.eyebrow{font-size:.66rem;font-weight:700;color:#9a6347;letter-spacing:2.4px;margin-bottom:12px}h1,h2,h3{font-family:'Manrope',system-ui,sans-serif}h1{font-size:1.85rem;letter-spacing:-1px;font-weight:700;margin:0 0 10px}h2{font-size:1.05rem;letter-spacing:-.35px;margin:0}h3{font-size:.91rem;margin:0 0 9px}.heading p{font-size:.87rem;color:var(--muted);margin:0;line-height:1.6}.case-badge{white-space:nowrap;font-size:.65rem;letter-spacing:1px;background:#fff;border:1px solid var(--line);padding:10px;border-radius:5px;color:#526070}.case-badge span{display:block;letter-spacing:0;font-size:.7rem;color:#8b94a1;margin-top:5px}.demo-note{display:flex;align-items:center;gap:7px;margin:22px 0;color:#747c89;font-size:.73rem}.mini-dot{width:5px;height:5px;background:#c0814e;border-radius:100%}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow-x:auto}.tabs button{flex-shrink:0;background:none;border:none;border-bottom:2px solid transparent;color:#76808e;font-size:.82rem;padding:4px 0 14px}.tabs button.selected{color:#bd4d1d;border-color:#db622a;font-weight:600}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px}.stat-label{font-size:.75rem;color:var(--muted)}.stat-value{font-family:'Manrope',system-ui;font-size:1.5rem;font-weight:700;letter-spacing:-.7px;margin:10px 0 7px}.stat small{font-size:.7rem;color:#85909d}.stat.highlight{border-top:2px solid #ee9166}.green{color:var(--green)}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px;margin:0 0 20px}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:20px}.panel p{color:var(--muted);font-size:.85rem;line-height:1.7}.panel-header p{margin:6px 0 0;font-size:.77rem}.label{font-size:.7rem;color:#83909e;letter-spacing:.8px}.flow-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.flow-step{padding:17px 14px;background:#f6f8fa;border-radius:6px;min-height:104px;position:relative}.flow-step b{display:block;font-size:.8rem;margin:12px 0 5px}.flow-step small{font-size:.69rem;color:var(--muted);line-height:1.4}.step-icon{font-size:.9rem;color:#d36836}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.field-grid label,.review-form label{font-size:.76rem;color:#626e7e;display:block;line-height:1.45}.field-grid input,.field-grid select,.review-form input,.review-form textarea{display:block;width:100%;padding:10px 11px;border:1px solid #dce1e8;border-radius:5px;margin-top:7px;color:#2d394a;background:#fff;font-size:.87rem;min-width:0}.field-grid .wide{grid-column:span 3}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.form-footer p{font-size:.73rem;margin:0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.8rem}th{text-align:left;font-weight:500;font-size:.7rem;color:#7a8593;padding:12px 10px;border-bottom:1px solid #dfe4ea;white-space:nowrap}td{padding:15px 10px;border-bottom:1px solid #edf0f3;line-height:1.5}tr:last-child td{border-bottom:0}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.pill{border-radius:4px;padding:4px 7px;background:#e9f4ee;color:#297152;font-size:.7rem;white-space:nowrap}.pill.warn{background:#fff1df;color:#9e6329}.pill.neutral{background:#eef0f4;color:#657184}.supplier-title{display:flex;align-items:center;gap:9px}.supplier-title input{accent-color:#d95e29}.supplier-dot{height:24px;width:4px;background:#ed916c;border-radius:2px}.muted{color:var(--muted)}.small-muted{font-size:.71rem;line-height:1.6;color:#929ba8}.cost-bar{height:7px;border-radius:2px;display:flex;overflow:hidden;min-width:90px;max-width:180px;margin-top:8px}.cost-bar span:nth-child(1){background:#5d748c}.cost-bar span:nth-child(2){background:#f19769}.cost-bar span:nth-child(3){background:#b4c4ce}.cost-bar span:nth-child(4){background:#7d9f91}.cost-bar span:nth-child(5){background:#d9dfe6}.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:.68rem;color:#788492}.legend i{display:inline-block;width:7px;height:7px;border-radius:1px;margin-right:5px}.details{margin-top:18px;font-size:.78rem;color:#586475;line-height:1.8}.details summary{cursor:pointer;font-weight:600}.notice{padding:13px 15px;background:#f5f7fa;border-left:3px solid #a0b2c4;border-radius:3px;font-size:.78rem;color:#67778b;line-height:1.65}.notice.warm{background:#fff5ee;border-color:#ed946b;color:#976347}.notice.error{background:#fff0ef;border-color:#d06a64;color:#a34e47}.empty{text-align:center;padding:36px 20px}.empty p{max-width:420px;margin:10px auto 20px}.empty-icon{font-size:1.6rem;color:#b1bac5;margin-bottom:14px}.progress{height:5px;background:#f1f2f5;border-radius:10px;overflow:hidden;margin:20px 0 12px}.progress span{height:100%;display:block;background:#e47b48;transition:width .5s}.run-status{font-size:.75rem;color:#8b705e}.review-form{display:grid;gap:15px}.review-actions{display:flex;gap:12px;flex-wrap:wrap}.activity-item{display:flex;gap:15px;border-bottom:1px solid #edf0f3;padding:18px 0}.activity-item:last-child{border:0}.activity-item small{font-size:.68rem;color:#8b95a3;white-space:nowrap;min-width:95px}.activity-item p{margin:0}.companion{width:306px;flex-shrink:0;border-left:1px solid var(--line);background:#fff;padding:30px 20px;display:flex;flex-direction:column}.companion-heading{display:flex;gap:10px;align-items:center}.companion-heading h2{font-size:.9rem}.companion-heading p{font-size:.67rem;color:#949ca8;margin:5px 0 0}.companion-mark{color:#d46b3b;background:#fff0e8;font-size:1.3rem;width:36px;height:36px;display:grid;place-items:center;border-radius:9px}.context-pill{font-size:.68rem;padding:10px 0 17px;color:#8a96a5;border-bottom:1px solid #edf0f3}.messages{min-height:250px;max-height:510px;overflow:auto;padding:20px 0;font-size:.8rem;line-height:1.8;display:flex;flex-direction:column;gap:12px}.message{background:#f6f7f9;padding:15px;border-radius:0 8px 8px}.message.user{background:#fff1e9;color:#965733;align-self:flex-end;border-radius:8px 0 8px 8px}.message b{color:#3b4a5d}.prompt-list{display:grid;gap:8px;margin:12px 0 25px}.prompt-list button{border:1px solid #e2e6eb;border-radius:5px;padding:10px;background:#fff;text-align:left;color:#6b7889;font-size:.73rem}.prompt-list button:hover{border-color:#e69c79;background:#fff8f4}#chat-form{margin-top:auto}#chat-form label{font-size:.72rem;color:#8290a0}.chat-input{display:flex;border:1px solid #dce2e8;border-radius:7px;margin-top:9px;overflow:hidden}.chat-input input{width:100%;border:none;font-size:.76rem;padding:13px 10px;min-width:0}.chat-input button{border:none;background:#fff;color:#c46c41;padding:0 12px}.footer{display:flex;justify-content:space-between;font-size:.65rem;color:#929baa;padding:15px 32px;border-top:1px solid var(--line)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#273546;color:white;border-radius:7px;padding:14px 20px;font-size:.85rem;z-index:50;max-width:90vw;box-shadow:0 6px 30px #13223733}.skip{position:fixed;left:10px;top:-80px;background:#fff;padding:12px;z-index:100}.skip:focus{top:10px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module-card{border:1px solid var(--line);border-radius:7px;padding:20px;background:#fff}.module-card p{font-size:.8rem;line-height:1.8;color:var(--muted)}.formula{font-family:monospace;font-size:.8rem;color:#526478;background:#f1f4f7;border-radius:5px;padding:13px;white-space:normal}.version-note{font-size:.72rem;color:var(--muted);margin-top:12px}
@media(min-width:1600px){.work-area{padding:42px 45px}.companion{width:330px}}@media(max-width:1250px){.sidebar{width:222px;padding:28px 14px}.brand{font-size:.78rem}.companion{width:260px;padding:28px 16px}.work-area{padding:30px 23px}.stats{gap:9px}.stat{padding:16px}.stat-value{font-size:1.25rem}.case-badge{display:none}.flow-list{grid-template-columns:1fr 1fr}.field-grid{grid-template-columns:1fr 1fr}.field-grid .wide{grid-column:span 2}}@media(max-width:1050px){.companion{display:none}.sidebar{width:220px}.work-area{padding:30px}.two-col{grid-template-columns:1fr}}@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:17px 18px;display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}.brand{font-size:.85rem;margin-right:auto}.brand small{font-size:.58rem}.workspace-label{margin:0;padding:8px;font-size:.7rem}.sidebar .nav-caption,.sidebar-footer,.sidebar .nav:not([data-page="overview"]):not([data-page="review"]){display:none}.sidebar .nav{width:auto;padding:7px;font-size:.75rem;min-height:auto}.sidebar .nav .tag{display:none}.topbar{height:65px;padding:0 20px;gap:10px}.prototype{display:none}.breadcrumb{font-size:.75rem}.breadcrumb span{margin:0 7px}.topbar .button{font-size:.73rem;padding:9px}.work-area{padding:24px 17px}.eyebrow{font-size:.62rem}h1{font-size:1.55rem}.heading p{font-size:.8rem}.demo-note{font-size:.65rem;line-height:1.5}.tabs{gap:20px}.tabs button{font-size:.75rem}.stats{grid-template-columns:1fr}.stat{padding:13px 17px;display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center}.stat-value{margin:0;grid-column:2;grid-row:1 / span 2;font-size:1.3rem}.stat small{grid-column:1}.panel{padding:18px}.field-grid{gap:13px}.form-footer{align-items:flex-start;flex-direction:column}.form-footer .button{width:100%}.footer{font-size:.6rem;padding:13px 17px}.footer span{display:none}.module-grid{grid-template-columns:1fr}table{font-size:.75rem}th{font-size:.66rem}.flow-step{min-height:90px}.two-col{gap:0}.panel-header{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep primary labels and decisions comfortably readable. */
.field-grid label,.review-form label,.tabs button,.button,.nav,th{font-size:.875rem}
.panel p,.notice,table,.message{font-size:.875rem}
@media(max-width:700px){.tabs button,.button,.field-grid label,.review-form label{font-size:.875rem}}
