:root{color-scheme:dark;--bg:#1c1420;--panel:#2b2030;--card:#332639;--line:#ffffff16;--text:#f4e9d9;--muted:#b4a4b8;--gold:#dfbe89;--plum:#55395d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #f1cf96;outline-offset:3px}button{color:inherit;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px;text-align:left;transition:background .18s,transform .18s}button:hover{background:#48344e}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.4}button.primary{background:var(--gold);color:#291d2c;font-weight:750;border-color:var(--gold)}button.primary:hover{background:#efd0a0}.quiet{background:transparent}.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:10px;font-weight:750;color:var(--gold)}h1,h2,h3,p{margin-top:0}h1{font-size:22px;letter-spacing:.06em;margin:2px 0 0}h2{font-family:Georgia,serif;font-weight:400;font-size:36px;line-height:1.15;margin-bottom:16px}h3{font-size:16px;margin:0 0 10px}p{margin-bottom:14px}main{max-width:1060px;margin:auto;padding:24px 28px 32px}.top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center}.mark{height:44px;width:44px;border:1px solid #dfbe8966;border-radius:50%;display:grid;place-items:center;color:var(--gold);font:24px Georgia}.status{border:1px solid var(--line);border-radius:30px;padding:7px 13px;font-size:12px}.casehead{display:flex;justify-content:space-between;align-items:center;padding:26px 0 15px}.casehead h2{margin:3px 0;font-size:32px}.case-meta{display:flex;gap:15px;font-size:11px;color:var(--muted)}.apps{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:4px 0 24px}.app{border:none;background:transparent;padding:8px 4px;text-align:center;position:relative;font-size:12px}.app:hover{background:#ffffff06}.icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 8px;border-radius:17px;box-shadow:inset 0 1px 0 #ffffff30,0 6px 15px #0002;color:#fff3e5}.icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.badge{position:absolute;background:var(--gold);color:#281b2c;font-weight:800;font-size:10px;border:3px solid var(--bg);border-radius:20px;padding:0 5px;top:0;left:calc(50% + 10px)}.workspace{border:1px solid #ae8bb131;border-radius:22px;overflow:hidden;background:linear-gradient(120deg,#322438,#291e2e);box-shadow:0 20px 65px #0002}.workspace-top{display:flex;justify-content:space-between;align-items:center;background:#ffffff03;border-bottom:1px solid var(--line);padding:13px 23px}.live{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.dot{width:6px;height:6px;border-radius:50%;background:#dfbe89}.workspace-body{display:grid;grid-template-columns:1.2fr 1fr;gap:30px;padding:25px}.identity{display:flex;gap:10px;align-items:center;margin-bottom:19px}.avatar{width:41px;height:41px;flex-shrink:0;background:#a88272;color:#2d1b2b;border-radius:50%;display:grid;place-items:center;font:17px Georgia}.quote{font:24px/1.45 Georgia,serif;margin:0 0 24px}.rule{height:1px;background:var(--line);margin:18px 0}.tag{display:inline-block;border:1px solid #dfbe893b;background:#dfbe8909;color:#e6cfa9;border-radius:7px;font-size:11px;padding:4px 8px;margin:0 5px 5px 0}.stack{display:flex;flex-direction:column;gap:8px}.actions{display:flex;flex-wrap:wrap;gap:9px}.workspace-foot{padding:13px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}.offer{padding:18px;border:1px solid var(--line);border-radius:14px;background:#1e162180}.offer-top{display:flex;justify-content:space-between;margin-bottom:10px}.price{font:30px Georgia}.offer dl{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:10px}.offer dt{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.offer dd{margin:1px 0;font-size:13px}.offer .rule{margin:13px 0}.intro{max-width:600px;margin:0 auto}.intro h2{font-size:44px}.intro .actions{margin-top:24px}.notice{padding:12px 14px;background:#dfbe8910;border:1px solid #dfbe8930;border-radius:10px;font-size:13px;margin:14px 0}.warning{color:#f1c194}.below{display:flex;justify-content:space-between;gap:20px;margin:16px 4px;font-size:11px;color:var(--muted)}.modal{position:fixed;inset:0;background:#120e16c9;backdrop-filter:blur(10px);z-index:10;display:flex;justify-content:center;align-items:center;padding:24px}.sheet{width:min(790px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:var(--panel);border:1px solid #745d7c66;border-radius:20px;box-shadow:0 25px 100px #0006;overflow:hidden}.sheet-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line);background:var(--panel);flex-shrink:0}.sheet-header h2{font-size:26px;margin:0}.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:24px;min-height:0}.sheet-foot{padding:14px 24px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel);flex-shrink:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}label{font-size:12px;display:block;color:var(--muted)}select,input{width:100%;padding:12px;background:#1e1623;border:1px solid #73557b66;color:var(--text);border-radius:10px;margin-top:6px}input[type=range]{padding:0;accent-color:var(--gold)}.wide{grid-column:1/-1}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.metric{padding:12px;background:#201824;border:1px solid var(--line);border-radius:10px}.metric strong{display:block;font:23px Georgia;margin-top:4px}.metric span{font-size:10px;color:var(--muted)}.question{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center}.question small{color:var(--muted);font-size:10px;white-space:nowrap}.chat{padding:16px 0;border-bottom:1px solid var(--line)}.chat.you{padding-left:18px;border-left:2px solid #dfbe8940}.chat p{margin:5px 0 0}.chat .offer{margin-top:12px}.report-card{border:1px solid var(--line);background:#201823;padding:18px;border-radius:13px;margin:12px 0}.report-card h3{display:flex;justify-content:space-between;gap:10px}.report-card p{font-size:13px;margin:8px 0 0}.grade{font-size:11px;color:var(--gold);font-weight:400}table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:14px}td,th{padding:10px 5px;border-bottom:1px solid var(--line);text-align:left}th{font-weight:500;color:var(--muted)}.note{padding:14px;border-left:2px solid var(--gold);background:#ffffff03;margin:10px 0}.note p{margin-bottom:5px}.history-list{list-style:none;padding:0}.history-list li{padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}details{margin:15px 0}summary{cursor:pointer;color:var(--gold)}body.lock{overflow:hidden}.empty{padding:20px 0;color:var(--muted)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:640px){main{padding:16px 18px calc(20px + env(safe-area-inset-bottom))}.top{padding-bottom:15px}.brand{gap:8px}.mark{width:33px;height:33px;font-size:19px}h1{font-size:16px}.top .eyebrow{font-size:9px}.status{padding:6px 9px;font-size:10px}.casehead{padding:18px 0 10px}.casehead h2{font-size:28px}.case-meta{font-size:10px;gap:8px}.apps{grid-template-columns:repeat(3,1fr);gap:4px 10px;margin-bottom:15px}.app{padding:6px 3px;font-size:11px}.icon{width:43px;height:43px;border-radius:14px;margin-bottom:5px}.icon svg{width:21px;height:21px}.workspace{border-radius:16px}.workspace-top{padding:11px 15px}.workspace-body{grid-template-columns:1fr;gap:12px;padding:17px}.identity{margin-bottom:12px}.quote{font-size:21px;margin-bottom:17px}.workspace-foot{padding:12px 16px;align-items:flex-start}.workspace-foot button{font-size:11px;padding:5px 7px}.offer{padding:14px}.below{flex-direction:column;gap:5px;margin-top:12px}.modal{padding:0;background:var(--panel);backdrop-filter:none;height:100dvh;width:100%;overflow:hidden}.sheet{width:100%;height:100%;max-height:100%;border:0;border-radius:0}.sheet-header{padding:calc(15px + env(safe-area-inset-top)) 18px 15px}.sheet-header h2{font-size:25px}.sheet-body{padding:20px 18px calc(25px + env(safe-area-inset-bottom))}.sheet-foot{padding:12px 18px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px #2b2030}.field-grid{gap:12px}.metric-grid{grid-template-columns:1fr 1fr}.metric strong{font-size:22px}.intro h2{font-size:36px}.actions>*{flex-grow:1;text-align:center}.report-card h3{display:block}.grade{display:block;margin-top:4px}.quote.long{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Conversation workspace — shared presentation for legacy and revised runs. */
html,body,#app{height:100%;overflow:hidden}body{background:radial-gradient(ellipse at 5% 0%,#3a2442,transparent 55%),#1b141f}button{font-size:13px}button:hover{border-color:#b898c44d}.chat-app{height:100dvh;display:flex;flex-direction:column;max-width:1040px;padding:18px 28px max(10px,env(safe-area-inset-bottom));gap:0}.top{flex-shrink:0;padding-bottom:13px}.casehead{padding:14px 0 8px;flex-shrink:0}.casehead h2{font-size:28px;margin:0}.casehead .eyebrow{font-size:9px}.case-meta{font-size:11px}.mark{height:38px;width:38px}h1{font-size:19px}.apps{flex-shrink:0;margin:0 0 12px;gap:7px}.app{padding:5px 3px;font-size:11px}.icon{width:43px;height:43px;border-radius:14px;margin-bottom:5px}.icon svg{width:22px;height:22px}.workspace{display:flex;flex-direction:column;min-height:0;flex:1;background:#281d2e;border-radius:20px}.room-header{padding:13px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);background:#302336;flex-shrink:0}.room-header .identity{margin:0;gap:10px}.person-avatar{height:36px;width:36px;flex-shrink:0;display:grid;place-items:center;background:#59404f;border:1px solid #d8a88d36;border-radius:13px;font-size:23px;line-height:1}.room-header .person-avatar{height:39px;width:39px;border-radius:14px}.room-header strong{font-size:13px}.room-state{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.room-state .small{font-size:10px}.thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#765a80 #281d2e;padding:15px 24px 22px;overflow-anchor:none;background:radial-gradient(ellipse at top left,#36283a55,transparent 70%),#281d2e}.thread-divider{text-align:center;color:#ab95b0;font-size:8px;letter-spacing:.18em;padding:0 0 22px}.message{display:flex;align-items:flex-end;gap:9px;margin:0 0 19px;max-width:90%}.message-you{flex-direction:row-reverse;margin-left:auto}.message-content{min-width:0;max-width:100%}.speaker{font-size:10px;color:#d9c6de;margin:0 5px 6px;font-weight:650;display:flex;gap:14px;justify-content:space-between}.speaker span{font-size:9px;color:#a38da9;font-weight:400;white-space:nowrap}.message-you .speaker{flex-direction:row-reverse;color:#e2d2ef}.bubble{padding:13px 16px;background:#43314b;border:1px solid #bda6c31a;border-radius:17px 17px 17px 4px;color:#f6ecdf;min-width:70px;box-shadow:0 3px 10px #0000000d;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.bubble p{margin:0}.message-you .bubble{background:#d8c3e8;color:#2d1e36;border-color:#e3cdf4;border-radius:17px 17px 4px 17px}.message-you .person-avatar{background:#62546f;border-color:#bea0ce40}.system-message{font-size:11px;color:var(--muted);text-align:center;max-width:500px;margin:15px auto;padding:6px 10px}.bubble .offer{margin-top:12px;background:#221a28;border-color:#a886b340;color:var(--text);min-width:280px;padding:15px;border-radius:12px}.offer-status{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--gold)}.offer .price{font-size:28px;margin-bottom:12px}.offer dl{gap:10px 13px}.offer dd{font-size:12px}.offer dt{font-size:9px}.offer .tag{font-size:10px}.client-view{margin:13px 0 0;border-top:1px solid #a883b02e;padding-top:10px;font-size:11px}.client-view>summary{color:#cbb5d5}.client-view>summary span{color:#a58aac;font-size:10px}.client-detail{padding-top:10px}.client-detail p{font-size:11px;margin:8px 0 2px}.client-view .metric{padding:7px;background:#302437}.client-view .metric strong{font-size:18px}.client-view .metric-grid{grid-template-columns:repeat(3,1fr);gap:6px}.offer-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}.offer-actions button{padding:7px 9px;font-size:11px}.composer{flex-shrink:0;background:#302336;border-top:1px solid #c6a1cd22;padding:12px 18px 8px;min-height:0;max-height:52%;display:flex;flex-direction:column;position:relative}.compose-options{display:flex;gap:7px;flex-shrink:0;flex-wrap:wrap}.compose-options button{font-size:12px;padding:9px 12px;background:#44304c;border-color:#9672a349;border-radius:10px}.compose-options button.selected{border-color:var(--gold);background:#533f54}.compose-options button:first-child{color:#f4d7a9}.composer-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;color:#b19bb8;font-size:10px;flex-shrink:0}.composer-meta button{padding:4px 7px;font-size:10px}.compose-drawer{overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--line);margin-top:10px;padding:9px 0 7px;min-height:0}.drawer-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#d6bdde;margin-bottom:10px}.drawer-label button{padding:4px 8px;font-size:10px;letter-spacing:normal}.choice-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.question{padding:10px 12px;display:flex;align-items:flex-start;flex-direction:column;gap:5px;font-size:12px}.question small{font-size:9px}.compose-drawer details{margin:12px 0 4px}.compose-drawer .offer{margin-bottom:12px}.field-grid{gap:10px;margin-bottom:13px}label{font-size:11px}select{padding:9px;font-size:12px}#fee-val{float:right;font-size:14px;color:var(--text)}.draft-total{display:flex;justify-content:space-between;gap:10px;font-size:12px;flex-wrap:wrap}.draft-total span{color:var(--muted);font-size:11px}.send-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:13px}.send-line button{padding:11px 14px}.compose-drawer .notice{margin:10px 0;font-size:12px}.compose-drawer h3{font-size:12px;margin-top:12px}.remaining-warning,.action-caption{font-size:11px;color:var(--gold);margin-bottom:8px}.composer-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);padding:4px 0 6px}.below{flex-shrink:0;margin:8px 1px 0;font-size:9px;line-height:1.3}.sheet-body .message{max-width:100%}.sheet-body .message .bubble{font-size:13px}.sheet-body .client-detail{color:var(--text)}.sheet-foot .actions button{font-size:12px;padding:9px 12px}.sheet-foot .actions{gap:7px}.sheet-body>.offer{margin-bottom:14px}.thread .bubble>.primary{margin-top:10px}.sheet-header button{min-width:40px;min-height:40px;text-align:center}.metric-grid{color:var(--text)}
@media(min-width:1200px){.chat-app{padding-top:24px;padding-bottom:16px}.thread{padding-left:40px;padding-right:40px}.message{max-width:82%}.bubble{padding:15px 19px}.workspace{box-shadow:0 15px 80px #0003}}
@media(max-width:640px){.chat-app{padding:calc(8px + env(safe-area-inset-top)) 10px max(5px,env(safe-area-inset-bottom));max-width:100%;gap:0}.top{padding:0 4px 8px}.top .eyebrow{font-size:8px}.top h1{font-size:14px}.mark{height:28px;width:28px;font-size:17px}.status{font-size:9px;padding:5px 8px}.casehead{padding:8px 5px 6px}.casehead h2{font-size:24px}.casehead .eyebrow{font-size:8px}.case-meta{font-size:9px}.apps{grid-template-columns:repeat(3,1fr);gap:1px 6px;margin:0 0 7px}.app{padding:3px 2px;font-size:9px;line-height:1.25;display:flex;align-items:center;justify-content:center;flex-direction:column}.icon{width:32px;height:32px;border-radius:11px;margin-bottom:3px}.icon svg{width:17px;height:17px}.badge{left:calc(50% + 4px);font-size:8px;border-width:2px;top:-1px}.workspace{border-radius:15px;min-height:170px}.room-header{padding:9px 11px;gap:5px}.room-header .person-avatar{height:31px;width:31px;font-size:21px;border-radius:11px}.room-header strong{font-size:12px}.room-header .small{font-size:9px}.room-header .identity{gap:7px}.room-state{gap:3px;max-width:120px;text-align:right}.room-state .small{font-size:8px;line-height:1.2}.room-state .live{font-size:8px;letter-spacing:.05em}.thread{padding:12px 10px 17px}.thread-divider{font-size:7px;padding-bottom:17px}.message{max-width:100%;gap:5px;margin-bottom:16px}.message .person-avatar{height:25px;width:25px;font-size:18px;border-radius:9px}.message-content{max-width:calc(100% - 30px)}.speaker{font-size:9px;gap:8px;margin-left:3px;margin-right:3px}.speaker span{font-size:8px}.bubble{font-size:13px;padding:11px 12px;line-height:1.55;border-radius:14px 14px 14px 3px}.message-you .bubble{border-radius:14px 14px 3px 14px}.bubble .offer{min-width:0;width:100%;padding:11px;margin-top:10px}.offer dl{grid-template-columns:1fr 1fr;gap:9px}.offer dd{font-size:11px;line-height:1.35}.offer dt{font-size:8px}.offer .price{font-size:25px;margin-bottom:10px}.offer-top{gap:5px;align-items:flex-start}.offer-status{font-size:8px}.offer .tag{font-size:9px;padding:2px 5px;margin:0}.client-view .metric-grid{grid-template-columns:1fr}.client-view .metric{display:flex;justify-content:space-between;align-items:center;padding:6px}.client-view .metric strong{font-size:16px;margin:0}.client-detail p{font-size:10px}.offer-actions{gap:5px}.offer-actions button{font-size:10px;padding:8px;min-height:34px;flex-grow:1;text-align:center}.composer{padding:9px 10px 5px;max-height:55%;background:#302336;box-shadow:0 -5px 20px #281d2e55}.compose-options{display:grid;grid-template-columns:1fr 1fr;gap:5px}.compose-options button{font-size:11px;min-height:34px;padding:7px 8px;text-align:center}.composer-meta{font-size:8px;margin-top:3px;gap:3px}.composer-meta button{font-size:9px;white-space:nowrap}.composer-intro{flex-direction:column;align-items:stretch;gap:8px;font-size:10px}.composer-intro button{text-align:center;padding:10px}.below{margin:5px 2px 0;flex-direction:row;gap:10px;font-size:7px}.below span{max-width:50%}.choice-list{grid-template-columns:1fr}.question{font-size:12px;min-height:54px}.compose-drawer .field-grid{grid-template-columns:1fr 1fr;gap:9px}.compose-drawer select{font-size:11px;padding:9px 6px}.send-line{gap:8px}.send-line button{width:100%;text-align:center}.send-line .small{font-size:9px}.compose-drawer .metric-grid{grid-template-columns:1fr}.remaining-warning{font-size:10px;margin-bottom:7px}.sheet-foot .actions{display:grid;grid-template-columns:1fr 1fr}.sheet-foot .actions button{font-size:11px;min-height:38px;padding:8px}.sheet-body{padding:17px 15px calc(22px + env(safe-area-inset-bottom))}.sheet .message-content{max-width:calc(100% - 30px)}.sheet .message .bubble{font-size:12px}.sheet-body h2{font-size:30px}.sheet .bubble .offer{min-width:0}.sheet-foot{background:#2b2030}.metric-grid{grid-template-columns:1fr 1fr}}
@media(max-height:650px) and (max-width:640px){.casehead{display:none}.apps{grid-template-columns:repeat(6,1fr);margin-top:5px}.app{font-size:7px}.icon{height:27px;width:27px}.room-state .small{display:none}.composer{max-height:58%}.room-header{padding:7px 10px}.below{display:none}}
/* Report presentation only: readable proposal sections and optional detail. */
.evaluation h2{font-size:30px;margin-bottom:18px}.trade-proposal{padding:14px 0;border-bottom:1px solid var(--line)}.trade-proposal:first-child{padding-top:5px}.trade-proposal:last-child{border-bottom:0}.trade-proposal h4{color:var(--gold);font-size:13px;margin:0 0 10px}.trade-proposal dl{margin:0}.trade-proposal dt{font-size:10px;color:#c3adca;letter-spacing:.03em;margin-top:10px}.trade-proposal dd{margin:3px 0 0;font-size:13px;line-height:1.6}.trade-explanation{border-left:2px solid #dfbe8955;padding-left:12px;margin:14px 0!important}.report-detail{border:1px solid var(--line);border-radius:11px;padding:13px 15px;margin:10px 0}.report-detail>summary{font-size:12px;line-height:1.5}.report-detail[open]>summary{margin-bottom:14px}.evaluation{padding-bottom:24px}.sheet-body:has(.evaluation){scroll-padding-bottom:32px}.sheet-foot{position:relative}.sheet-body .evaluation .report-card{padding:16px}
@media(max-width:640px){.evaluation h2{font-size:26px}.trade-proposal dd{font-size:12px;line-height:1.65}.trade-proposal dt{font-size:10px}.report-detail{padding:12px}.evaluation{padding-bottom:calc(32px + env(safe-area-inset-bottom))}.sheet-body .evaluation .report-card{padding:14px}}
