:root{font-family:"Segoe UI","Malgun Gothic",sans-serif;color:#30312c;background:#faf9f6;line-height:1.65;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,label{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a78b4b;outline-offset:4px}[hidden]{display:none!important}.chat-header{height:88px;background:#fff;border-bottom:1px solid #e8e5db;padding:0 max(32px,calc((100% - 1320px)/2));display:flex;align-items:center;gap:32px}.brand{text-decoration:none;font-size:38px;letter-spacing:-3px;display:flex;align-items:center;gap:12px}.brand small{font-size:9px;letter-spacing:2px;width:72px;line-height:1.5}.chat-header>span{font-size:13px;color:#797a70;margin-left:auto}.workflow-link{font-size:12px;color:#766748}.mode-strip{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 20px;background:#efeadc;color:#685a37;font-size:12px}.mode-strip>span:last-child{margin-left:20px;color:#80755b}.mode-dot{width:6px;height:6px;border-radius:50%;background:#9b8351}.chat-layout{max-width:1320px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:64px;padding:50px 32px 30px}.conversation{min-width:0}.intro{padding:0 4px}.eyebrow{letter-spacing:2px;font-size:10px;color:#8d7b51;margin:0 0 16px;font-weight:600}.intro h1{font-size:44px;line-height:1.35;font-weight:400;letter-spacing:-2px;margin:0 0 18px}.intro>p:last-child{font-size:15px;color:#818176;line-height:1.9}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0 34px}.suggestions button{background:transparent;border:1px solid #dcd6c6;border-radius:30px;padding:9px 16px;font-size:12px;color:#75674a;min-height:40px}.suggestions button:hover{background:#f0ebdf}.chat-log{display:flex;flex-direction:column;gap:18px;max-height:470px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 10px 10px 0}.chat-log>div{max-width:94%;padding:18px 22px;border-radius:3px 18px 18px 18px}.mock-message{background:#fff;border:1px solid #e9e5da;align-self:flex-start}.user-message{background:#ece5d6;border:1px solid #e5dbc6;align-self:flex-end;border-radius:18px 3px 18px 18px!important}.chat-log b{font-size:10px;letter-spacing:.5px;color:#8c7750;font-weight:600}.chat-log p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:7px 0 0;line-height:1.9}.chat-status{font-size:11px;color:#8c8067;min-height:30px;padding:7px 3px}.composer{background:#fff;border:1px solid #cabea3;border-radius:12px;box-shadow:0 8px 24px #6a572508;overflow:hidden}.composer textarea{display:block;width:100%;border:0;resize:vertical;min-height:90px;max-height:220px;padding:18px 20px;font-size:15px;line-height:1.7;background:transparent;color:#30312c}.composer textarea:focus{outline:none}.composer:focus-within{outline:2px solid #a78b4b;outline-offset:3px}.composer textarea::placeholder{color:#a1a096}.composer-actions{display:flex;align-items:center;gap:12px;padding:8px 14px 12px}.photo-button{font-size:12px;cursor:pointer;padding:10px 4px;color:#786c50;white-space:nowrap}.composer-actions>span{font-size:10px;color:#aaa79e;margin-left:auto}.composer-actions button{border:0;border-radius:6px;color:#fff;background:#806e47;padding:11px 17px;white-space:nowrap;font-size:13px;min-height:44px}.privacy-note{font-size:10px;color:#929084;line-height:1.7;margin:12px 3px}.consultation-panel{align-self:start;position:sticky;top:22px;padding:0;background:none;text-align:left}.summary-card,.estimate-card,.visit-card{padding:24px;background:#fff;border:1px solid #e3dfd3;margin-bottom:16px;border-radius:6px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-heading .eyebrow{font-size:9px;margin-bottom:5px}.consultation-panel h2{font-size:18px;font-weight:500;margin:0;letter-spacing:-.6px}.text-button{padding:8px 0;border:0;background:transparent;color:#8e794d;font-size:11px;min-height:40px}.intent-label{display:inline-block;border-radius:20px;padding:3px 10px;background:#f5f0e4;color:#8a7750;font-size:10px;margin:20px 0 8px}dl{margin:0}dl>div{display:grid;grid-template-columns:84px 1fr;gap:10px;border-bottom:1px solid #f0eee7;padding:12px 0;font-size:12px}dt{color:#929184}dd{margin:0;overflow-wrap:anywhere;color:#55564c}.small-note{color:#999585;font-size:10px;line-height:1.8;display:block;margin-top:15px}details{font-size:11px;margin-top:12px;color:#8b8066}summary{cursor:pointer;padding:6px 0}#history-list{max-height:180px;overflow:auto;overflow-wrap:anywhere}.estimate-card{background:#f2eee3;border-color:#e7dfcc}.estimate-card .eyebrow{margin-bottom:8px}.estimate-value{font-size:26px!important;color:#857047!important;margin:14px 0 10px!important;letter-spacing:-1px}.estimate-card>p:not(.eyebrow),.visit-card>p{font-size:12px;color:#8c8370;line-height:1.9}.visit-card{background:transparent}.visit-button,#visit-submit{width:100%;border:1px solid #b6a47a;background:transparent;color:#806b3d;font-size:12px;padding:13px;border-radius:4px;min-height:46px}.confirm-label{font-size:12px;display:flex;gap:8px;align-items:flex-start;margin:15px 0}.confirm-label input{width:18px;height:18px;flex-shrink:0;accent-color:#806b3d}#visit-confirm p,#visit-status{font-size:12px}#summary-editor label{display:block;font-size:11px;color:#847961;margin:10px 0}#summary-editor input{width:100%;padding:10px;border:1px solid #ded7c6;background:#fff;border-radius:4px;font-size:14px;color:#30312c}#summary-editor button[type=submit]{background:#806e47;color:#fff;border:0;padding:11px 14px;border-radius:4px;font-size:12px;margin-right:15px}.photo-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.photo-list figure{position:relative;margin:0;width:92px}.photo-list canvas{width:92px;height:76px;object-fit:cover;border-radius:6px}.photo-list figcaption{font-size:9px;color:#80765f;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.photo-list button{position:absolute;right:0;top:0;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#55492d}.chat-footer{max-width:1256px;margin:auto;padding:22px 0;border-top:1px solid #e8e4d9;font-size:9px;letter-spacing:1.5px;color:#aaa18b}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:1000px){.chat-layout{gap:28px;grid-template-columns:minmax(0,1fr) 310px;padding:32px 24px}.intro h1{font-size:36px}}@media(max-width:760px){.chat-header{height:70px;padding:0 20px;gap:12px}.brand{font-size:30px}.brand small{font-size:7px;width:64px}.chat-header>span{display:none}.workflow-link{margin-left:auto}.mode-strip{justify-content:flex-start;font-size:10px;padding:9px 20px}.mode-strip>span:last-child{display:none}.chat-layout{display:flex;flex-direction:column;padding:28px 18px;gap:28px}.intro h1{font-size:34px}.intro>p:last-child{font-size:13px}.suggestions{margin:20px 0 24px}.suggestions button{font-size:11px;padding:8px 12px}.chat-log{max-height:48dvh;min-height:100px}.chat-log>div{max-width:96%;padding:15px}.chat-log p{font-size:13px}.composer textarea{font-size:16px;min-height:90px}.composer-actions{gap:8px}.composer-actions>span{font-size:9px}.composer-actions button{padding:11px 12px}.consultation-panel{position:static;width:100%;display:grid;grid-template-columns:1fr}.summary-card,.estimate-card,.visit-card{padding:22px}.chat-footer{margin:0 18px;font-size:8px}.photo-button{min-height:44px}.conversation{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.mobile-hint{display:none}@media(max-width:760px),(pointer:coarse){.desktop-hint{display:none}.mobile-hint{display:inline}}
#login{display:grid;gap:14px;padding:22px;background:white;border:1px solid #ded7c6;margin-bottom:22px}input{font:inherit;max-width:100%;padding:8px}button{min-height:42px;padding:8px 14px}#edit label{display:block;margin:10px 0;font-size:12px}#edit input{display:block;width:100%;box-sizing:border-box}#status{margin:14px 0;font-size:13px;color:#806b3d}#budget{overflow-wrap:anywhere}#log{min-height:80px}

#login[hidden]{display:none}

/* Conversation-first local revision; not deployed until reviewed. */
.chat-header{height:64px}.chat-layout{max-width:1180px;grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding:24px 24px 40px}.intro .eyebrow{display:none}.intro h1{font-size:26px;margin-bottom:8px}.intro>p:last-child{font-size:12px}.chat-log{max-height:56dvh;min-height:28dvh;padding:16px 4px}.chat-log>div{border-radius:18px;max-width:92%}.mock-message{background:transparent;border:0}.composer{border-radius:24px;display:flex;flex-direction:column;padding:8px}.composer textarea{min-height:80px}.composer-actions{order:10;gap:8px}.composer-actions>span{display:none}.composer-actions #send{margin-left:auto}.composer-actions button{border-radius:50px;min-width:48px;min-height:48px}.composer .speech-controls,.composer .photo-analysis-controls{font-size:12px;line-height:1.5;border:1px solid #e5dfd0;border-radius:12px;margin:6px;padding:10px}.speech-controls p{margin:5px 0}.speech-controls textarea{min-height:50px;padding:8px;font-size:14px}.photo-analysis-controls button{width:100%;margin-top:8px}#attachment-notice{font-size:12px;padding:0 12px}#status{border-left:3px solid #aa8c4e;padding:8px 12px;background:#f5f0e5}.space-role-guide{font-size:12px;margin:8px 0}.consultation-panel{font-size:12px}.summary-card,.estimate-card{padding:16px}
@media(max-width:760px){.chat-layout{display:block;padding:14px 12px 28px}.chat-header{height:58px;padding:0 16px}.intro h1{font-size:22px}.chat-log{min-height:30dvh;max-height:52dvh}.consultation-panel{margin-top:24px}.composer-actions button{font-size:12px;padding:10px}.mode-strip{font-size:10px;flex-wrap:wrap}.composer{border-radius:20px}.composer textarea{font-size:16px}}

/* Keep file selection beside its trigger, above the bottom action row. */
#attachment-menu{order:9;margin:6px;display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid #e5dfd0;border-radius:12px}#attachment-menu button{min-height:44px}

/* Consent cards: explicit, compact, no horizontal overflow. */
.composer .speech-controls,.composer .photo-analysis-controls{display:flex;flex-direction:column;gap:16px;min-width:0;margin:8px;padding:16px;background:#faf8f2;border:1px solid #e4dcc9;border-radius:16px;overflow-wrap:anywhere}
.composer .consent-row{display:flex;align-items:flex-start;gap:12px;line-height:1.65;min-height:44px;margin:0;padding:8px 0;white-space:normal}
.composer .consent-row input[type=checkbox]{appearance:auto;flex:0 0 20px;width:20px;height:20px;min-width:20px;margin:3px 0 0;padding:0;accent-color:#806e47}
.composer .tool-actions{display:flex;flex-wrap:wrap;gap:8px}.composer .tool-actions button{min-height:44px;max-width:100%;white-space:normal;border:1px solid #cabea3;border-radius:10px;background:#fff;color:#51452e;padding:10px 16px}
.composer .tool-core{font-size:12px;color:#6b5a36;margin:0}.composer .speech-controls h3{font-size:16px;margin:0}.composer .speech-controls details{margin:0;font-size:12px}.composer .speech-controls summary{min-height:44px;padding:12px 0}
.composer .speech-controls textarea{border:1px solid #dcd4c2;border-radius:10px;background:#fff;min-height:88px}.composer-actions{flex-wrap:wrap}.composer-actions button{white-space:normal}.composer .photo-analysis-controls>button{margin:0;min-height:44px}
@media(max-width:480px){.composer .speech-controls,.composer .photo-analysis-controls{margin:8px 0;padding:12px;gap:12px}.composer .tool-actions{display:grid;grid-template-columns:1fr;width:100%}.composer .tool-actions button{width:100%}.composer-actions{gap:8px;padding:8px}.composer-actions button{font-size:12px}}

/* Unified composer: one draft with attachment left and voice/send right. */
.composer{display:flex;flex-direction:column;border-radius:26px;padding:8px;overflow:visible}.composer-shell{display:flex;align-items:flex-end;gap:8px;order:0;min-width:0}.composer-leading{flex:0 0 44px;display:flex;padding-bottom:2px}.composer-shell #message{flex:1;min-width:0;width:auto;min-height:52px;max-height:180px;resize:vertical;padding:14px 2px;line-height:1.5}.composer-shell .composer-actions{order:0;flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;padding:2px 0;gap:4px}.composer-shell button{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;border:0}.composer-shell #attach-plus,.composer-shell #speech-launch{background:transparent;color:#695a3b}.composer-shell #attach-plus:hover,.composer-shell #speech-launch:hover{background:#f3eee2}.composer-shell #send{font-size:26px;background:#806e47;color:#fff;margin:0}.composer-help{order:1;margin:2px 12px 6px;font-size:10px;color:#80775f}.composer #pending-attachments{order:2}.composer #attachment-menu{order:3}.composer #attachment-notice{order:4;margin:4px 12px;padding:0}.composer .photo-analysis-controls{order:5}.composer .speech-controls{order:6}.composer .transcript-backup{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:10px;border-radius:8px}.expert-card p{font-size:12px}.expert-phone-link{display:none}.expert-desktop{display:flex;flex-direction:column;gap:10px;margin-top:12px}.expert-desktop strong{font-size:20px;letter-spacing:.5px}.expert-desktop button,.expert-phone-link{border:1px solid #b6a47a;border-radius:10px;background:#fff;color:#69582f;min-height:44px;padding:10px;text-align:center;text-decoration:none}.main-nav{display:flex;flex-wrap:wrap;gap:16px;margin-left:auto;align-items:center}.main-nav a{font-size:12px;text-decoration:none}.chat-header{height:auto;min-height:72px;padding:12px 24px;flex-wrap:wrap}.chat-header>span{display:none}
@media(max-width:760px),(pointer:coarse){.expert-phone-link{display:block;margin-top:12px}.expert-desktop{display:none}.main-nav{width:100%;gap:8px 16px}.main-nav a{min-height:36px;display:flex;align-items:center}}
@media(max-width:480px){.composer{padding:6px;border-radius:24px}.composer-shell{gap:3px}.composer-shell #message{font-size:16px;padding-left:0;padding-right:0}.composer-shell .composer-actions{gap:0}.composer-help{font-size:10px;margin-left:8px}}

/* Inline voice capture: levels reflect local PCM only, never transcription proof. */
.speech-inline-help{order:6;padding:4px 10px 8px;min-width:0;background:none;border:0}
.speech-inline-help .tool-core{font-size:11px;line-height:1.6;margin:0}
.speech-inline-help #speech-status{font-size:12px;margin:6px 0;overflow-wrap:anywhere}
.speech-inline-help details{margin:0;font-size:11px}
.speech-inline-help #speech-retry{min-height:44px;margin:6px 0}
#speech-capture{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:52px}
#speech-capture #speech-cancel{flex:0 0 44px;color:#695a3b;background:transparent;font-size:24px}
.speech-wave{display:flex;align-items:center;justify-content:center;gap:3px;flex:1;min-width:0;height:32px;overflow:hidden}
.speech-wave span{display:block;flex:0 0 3px;height:2px;max-height:28px;border-radius:4px;background:#806e47}
#speech-progress{font-size:12px;overflow-wrap:anywhere}
#speech-capture[data-phase=recording] #speech-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#speech-capture[data-phase=retry],#speech-capture[data-phase=uncertain]{flex:0 1 96px}
.composer-shell #speech-launch[data-phase=recording]{background:#806e47;color:#fff}
@media(max-width:480px){#speech-capture{gap:3px}.speech-wave{gap:2px}.speech-wave span{flex-basis:2px}.speech-inline-help{padding:4px 8px 6px}}