@import url('tokens.css');
@font-face{font-family:Manrope;src:url('fonts/manrope-400.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url('fonts/manrope-500.ttf') format('truetype');font-weight:500;font-display:swap}@font-face{font-family:Manrope;src:url('fonts/manrope-600.ttf') format('truetype');font-weight:600;font-display:swap}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--bg);font:400 16px/1.6 Manrope,Arial,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}a{color:var(--accent)}button,a,input,textarea,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}:is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.5;cursor:default}h1,h2,h3,p{margin:0}h1,h2,h3,strong,b{font-weight:600}h1{font-size:28px;line-height:1.3;letter-spacing:-.7px}h2{font-size:20px;line-height:1.4}h3{font-size:17px;line-height:1.4}svg{width:20px;height:20px;flex:none;vertical-align:middle}h1,h2,h3,p{overflow-wrap:anywhere}
.demo-bar{display:flex;align-items:center;justify-content:center;gap:24px;min-height:56px;padding:8px 20px;background:var(--selected);border-bottom:1px solid var(--selected-line);font-size:12px;color:var(--accent)}.role-switch{display:flex;gap:4px;background:#DBEAFE;border-radius:10px;padding:3px}.role-switch button{min-height:36px;min-width:86px;font-size:12px;padding:6px 16px;border-radius:8px}.role-switch button[aria-pressed=true]{background:white;box-shadow:0 1px 5px #1d4ed80b;color:var(--accent);font-weight:600}.demo-reset{min-height:36px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:12px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1120px;margin:auto;padding:20px 28px}.brand{display:flex;gap:9px;align-items:center;min-height:44px;text-decoration:none;color:var(--ink);font-size:23px;letter-spacing:-.9px;font-weight:600}.brand-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--accent);color:white}.brand-icon svg{width:25px;height:25px}.brand-dot{width:6px;height:6px;border-radius:50%;background:var(--orange)}.avatar{display:grid;place-items:center;min-height:44px;width:44px;border-radius:50%;background:#E8EDFA;color:var(--accent);font-size:14px;font-weight:600}
#app{max-width:1120px;margin:auto;padding:12px 28px 60px}.page-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 28px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:8px}.page-sub{font-size:14px;color:var(--muted);margin-top:8px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:500;line-height:1.5;background:#F2F4F7;color:#475467;max-width:100%}.pill.wait{background:var(--selected);color:var(--accent)}.pill.partial{background:var(--warning-bg);color:var(--warning)}.pill.done{background:var(--success-bg);color:var(--success)}.pill svg{width:16px;height:16px}.master-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:28px;min-width:0}.panel+.panel{margin-top:20px}.field{display:block;margin:0 0 16px;font-size:14px;color:var(--muted)}.field>span{display:block;margin-bottom:8px}.field input,.field textarea,.field select{font-size:16px;line-height:1.5;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:white;width:100%;color:var(--ink)}.field textarea{resize:vertical;min-height:88px}.field input::placeholder,.field textarea::placeholder{color:#98A2B3}.title-input{font-size:22px!important;font-weight:600;border:0!important;border-radius:0!important;padding:0!important;min-height:38px!important}.client-input{font-size:14px!important;border:0!important;padding:0!important;min-height:32px!important}.meta-field{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px}.meta-field .field{margin:0}.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-row h2{font-size:18px}.meta,.help{font-size:12px;color:var(--muted)}.help{line-height:1.6;margin-top:12px}.row-card{border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:24px}.row-title{display:flex;align-items:center;gap:8px;margin-bottom:16px}.row-title .field{margin:0;flex:1;min-width:0}.row-title input{font-size:16px;font-weight:500}.icon-button{width:44px;min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;color:var(--muted)}.icon-button:hover{background:var(--selected);color:var(--accent)}.icon-button.delete:hover{color:var(--negative);background:#FFF1F0}.row-numbers{display:grid;grid-template-columns:76px 90px minmax(86px,1fr) minmax(88px,1fr);gap:12px;align-items:end}.row-numbers .field{margin:0;font-size:12px}.row-numbers input,.row-numbers select{padding:10px 8px;font-size:16px}.row-sum{text-align:right;padding-bottom:10px;min-width:0}.row-sum .meta{display:block;margin-bottom:12px}.row-sum strong{font-size:16px;white-space:nowrap}.add-row{width:100%}.primary,.secondary,.text-button{min-height:44px;min-width:44px;padding:10px 16px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;line-height:1.5;text-decoration:none}.primary{background:var(--accent);color:white;font-weight:600;border:1px solid transparent}.primary:hover:not(:disabled){background:var(--hover)}.secondary{background:white;border:1px solid var(--line);font-weight:500;color:var(--ink)}.secondary:hover{background:var(--selected)}.text-button{padding:10px 8px;color:var(--accent)}.text-button:hover{background:var(--selected)}.button-group{display:flex;gap:12px;flex-wrap:wrap}.button-group>*{flex:1}.photos{display:flex;gap:12px;flex-wrap:wrap}.photo-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:112px;height:90px;background:var(--bg);border:1px dashed var(--selected-line);border-radius:12px;color:var(--accent);font-size:12px}.photo-wrap{position:relative;width:112px;height:90px}.photo-thumb{width:100%;height:100%;border:0;border-radius:12px;object-fit:cover;cursor:pointer}.photo-wrap .icon-button{position:absolute;right:0;top:0;background:#ffffffec;width:44px;height:44px;border-radius:0 12px 0 12px}.side{position:sticky;top:24px}.total-line{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.total-line span{font-size:14px;color:var(--muted)}.total-line strong{font-size:28px;letter-spacing:-.8px;white-space:nowrap}.side h2{font-size:18px}.side .primary{width:100%;min-height:48px}.saved{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;margin-top:16px}.saved svg{width:15px;height:15px}.sharing-note{border-top:1px solid var(--line);padding-top:20px;margin-top:20px;font-size:12px;color:var(--muted)}.sharing-note p+p{margin-top:8px}.chat-entry{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;gap:12px;padding:16px 0 0;margin-top:20px;border-top:1px solid var(--line)}.chat-entry>span{display:flex;gap:10px;align-items:center;font-size:14px}.chat-entry small{display:block;font-size:12px;color:var(--muted)}.unread-dot{width:8px;height:8px;background:var(--orange);border-radius:50%;display:inline-block}.master-bottom{display:none}.inline-error{padding:12px 16px;background:#FFF1F0;border-radius:10px;color:var(--negative);font-size:14px;margin-top:16px}.inline-error:empty{display:none}.desktop-hint{font-size:12px;color:var(--muted);margin-top:24px;text-align:center}
.client-layout{max-width:760px;margin:auto}.client-heading{margin:16px 0 24px}.client-heading h1{font-size:28px;margin:8px 0}.maker{display:flex;align-items:center;gap:12px;margin-bottom:24px}.maker .avatar{width:44px;flex:none}.maker strong{display:block;font-size:14px}.maker span{font-size:12px;color:var(--muted)}.client-intro{font-size:16px;color:var(--muted);margin-top:12px}.client-list{margin-top:4px}.client-row{padding:20px 0;border-bottom:1px solid var(--line)}.client-row:last-child{border-bottom:0}.client-row-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;font-size:16px;font-weight:500}.client-row-top>div{min-width:0;flex:1}.client-row-top strong{font-size:16px;white-space:nowrap}.client-row small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.choice{display:flex;align-items:flex-start;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;margin:-8px -4px -8px -8px;cursor:pointer}.choice input{accent-color:var(--accent);width:20px;height:20px;min-width:20px;flex:0 0 20px;margin:12px}.client-photos{display:flex;gap:12px;overflow-x:auto;margin:20px 0}.client-photos:empty{display:none}.client-photos img{width:180px;height:132px;object-fit:cover;border-radius:12px;cursor:pointer}.client-total{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}.client-actions{display:flex;flex-direction:column;gap:12px}.client-actions .primary{min-height:48px}.client-actions .secondary{min-height:48px}.positions-toggle{font-size:14px;color:var(--accent);min-height:44px;text-decoration:underline;text-underline-offset:4px;padding:8px 0}.decision-note{font-size:12px;color:var(--muted);margin-top:16px;text-align:center}.response{padding:16px;border-radius:12px;background:var(--success-bg);color:var(--success);margin:20px 0 0;font-size:14px}.response.partial{background:var(--warning-bg);color:var(--warning)}.response.deferred{background:var(--bg);color:var(--muted)}.response strong{display:block;margin-bottom:4px}.sample-info{font-size:12px;color:var(--muted);max-width:760px;margin:24px auto 0;text-align:center}.sample-info a{color:var(--muted)}
.chat-page{max-width:760px;margin:auto;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-height:560px;max-height:calc(100dvh - 210px)}.chat-heading{padding:16px 20px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);flex:none}.chat-heading>div{flex:1;min-width:0}.chat-heading h1{font-size:18px;line-height:1.4;letter-spacing:-.3px}.chat-heading p{font-size:12px;color:var(--muted)}.chat-context{padding:12px 20px;background:var(--selected);display:flex;gap:12px;align-items:center;justify-content:space-between;flex:none}.chat-context div{min-width:0}.chat-context strong{display:block;font-size:14px}.chat-context span{font-size:12px;color:var(--muted)}.chat-context .text-button{white-space:nowrap}.messages{flex:1;min-height:100px;overflow-y:auto;padding:24px 20px;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;background:#FBFCFE}.chat-empty{text-align:center;font-size:14px;color:var(--muted);padding:28px 16px;margin:auto}.chat-empty svg{display:block;width:32px;height:32px;color:var(--accent);margin:0 auto 16px}.chat-empty h2{font-size:17px;color:var(--ink);margin-bottom:8px}.message{max-width:86%;border:1px solid var(--line);border-radius:14px 14px 14px 4px;padding:12px 16px;background:white;align-self:flex-start}.message.own{background:var(--selected);border-color:var(--selected-line);border-radius:14px 14px 4px 14px;align-self:flex-end}.message p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.message-head{display:flex;gap:12px;justify-content:space-between;margin-bottom:6px;font-size:12px;color:var(--muted)}.message small{display:block;font-size:11px;color:var(--muted);margin-top:8px}.composer{flex:none;padding:16px 20px;border-top:1px solid var(--line);background:white}.composer-input{display:flex;gap:12px;align-items:flex-end}.composer textarea{width:100%;min-width:0;min-height:48px;max-height:120px;padding:12px;border:1px solid var(--line);border-radius:12px;resize:none;font-size:16px;line-height:1.5}.composer .send-message{height:48px;width:48px;min-width:48px;padding:0}.composer .help{margin-top:8px}.composer-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.chat-system{align-self:center;font-size:12px;color:var(--muted);text-align:center;padding:8px}
#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100vw - 32px));padding:14px 20px;border-radius:12px;color:white;background:var(--ink);font-size:14px;z-index:200;box-shadow:0 8px 30px #18223020}dialog{border:0;border-radius:18px;padding:0;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);color:var(--ink);background:white}dialog::backdrop{background:#18223066;backdrop-filter:blur(3px)}.dialog-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:20px;min-width:0}.dialog-head .icon-button{flex:none}#dialog-body{padding:24px;max-height:calc(100dvh - 120px);overflow:auto}.share-art{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;color:var(--accent);background:var(--selected);margin-bottom:20px}.share-art svg{width:28px;height:28px}.share-summary{background:var(--bg);padding:16px;border-radius:12px;margin:20px 0}.share-summary strong{display:block;font-size:18px}.share-summary p{font-size:14px;color:var(--muted);margin-top:4px}.share-actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}.dialog-text{font-size:14px;color:var(--muted)}.confirmation-list{margin:20px 0;font-size:14px}.confirmation-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.photo-full{display:block;max-width:100%;height:auto;border-radius:10px}body:has(dialog[open]){overflow:hidden}.check-summary{display:flex;gap:12px;align-items:center;margin-bottom:20px;color:var(--success)}.check-summary svg{width:24px;height:24px}.back-button{color:var(--accent)}
@media(max-width:1000px){.row-numbers{grid-template-columns:70px 90px minmax(80px,1fr)}.row-sum{grid-column:1/-1;display:flex;justify-content:space-between;padding-bottom:0;align-items:center}.row-sum .meta{margin:0}.row-sum strong{font-size:17px}}
@media(max-width:760px){h1{font-size:24px}.demo-bar{justify-content:space-between;gap:8px;padding:8px 16px;min-height:52px}.demo-label{font-size:11px;max-width:78px;line-height:1.4}.role-switch button{min-width:70px;min-height:36px;padding:6px 10px}.demo-reset{font-size:0;min-width:36px;position:relative}.demo-reset span{display:none}.app-header{padding:16px 20px}.brand{font-size:22px}.avatar{width:40px;min-height:40px}#app{padding:4px 20px 124px}.page-top{margin:8px 0 24px;gap:12px;align-items:flex-start}.page-sub{font-size:14px}.master-grid{grid-template-columns:1fr;gap:20px}.panel{padding:20px}.master-main .panel+.panel{margin-top:20px}.meta-field{padding-bottom:20px;margin-bottom:24px}.title-input{font-size:20px!important}.row-numbers{grid-template-columns:60px 90px minmax(0,1fr);gap:12px}.row-numbers .field{font-size:12px}.row-sum{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding-bottom:0}.row-sum .meta{margin:0}.row-title{gap:4px}.row-card{padding-bottom:20px;margin-bottom:20px}.side{position:static}.side .panel:first-child{display:none}.side .panel{margin-top:0}.master-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:12px 20px max(12px,env(safe-area-inset-bottom));gap:16px;align-items:center;justify-content:space-between;z-index:20}.master-bottom small{display:block;font-size:12px;color:var(--muted)}.master-bottom strong{font-size:22px;white-space:nowrap}.master-bottom .primary{min-height:48px;padding:10px 16px}.master-bottom .primary svg{width:18px;height:18px}.master-bottom>div{min-width:0}.desktop-hint{display:none}.client-layout{max-width:100%}.client-heading{margin:8px 0 24px}.client-heading h1{font-size:24px}.client-intro{font-size:16px}.client-row-top{flex-wrap:wrap;gap:8px 12px}.client-row-top strong{margin-left:auto;font-size:17px}.client-row-top .choice+div{flex-basis:calc(100% - 56px)}.client-row-top:has(.choice) strong{margin-left:44px}.client-actions .primary,.client-actions .secondary{width:100%}.client-photos img{width:160px;height:120px}.client-total .total-line strong{font-size:28px}.maker{margin-bottom:20px}.sample-info{margin:20px 0 0;font-size:12px}.chat-page{min-height:420px;height:calc(100dvh - 168px);max-height:calc(100dvh - 168px);border-radius:16px}.chat-heading{padding:12px}.chat-heading h1{font-size:17px}.chat-context{padding:12px 16px}.chat-context strong{font-size:14px}.chat-context .text-button{font-size:12px;padding:8px}.messages{padding:20px 16px;gap:16px}.message{max-width:92%;padding:12px}.composer{padding:12px 16px}.composer .help{display:none}.composer-label{display:none}.composer-input{gap:8px}.composer textarea{font-size:16px}.chat-empty{padding:20px 8px}.chat-empty p{font-size:14px}body:has(.chat-page) #app{padding-bottom:20px}.dialog-head{padding:12px 16px}#dialog-body{padding:20px}.dialog-head h2{font-size:20px}#toast{bottom:100px;width:calc(100vw - 32px)}.photo-add,.photo-wrap{width:calc((100% - 24px)/3);height:84px;min-width:80px}.photo-add{font-size:11px}.photo-wrap .icon-button{width:44px;height:44px}.total-line strong{font-size:26px}}
@media(max-width:380px){.master-bottom{gap:12px;padding-inline:16px}.master-bottom .primary{font-size:13px;padding-inline:12px}.master-bottom .primary svg{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Production-specific surfaces. */
.app-header{justify-content:flex-start}.app-header .avatar{margin-left:auto}.app-header .brand{margin-right:auto}.rows-fieldset{border:0;margin:0;padding:0;min-width:0}.rows-fieldset:disabled{opacity:.7}.estimate-list{display:grid;gap:16px}.estimate-card{width:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left}.estimate-card.panel{margin:0}.estimate-card>div{min-width:0}.estimate-card>div:last-child{display:flex;align-items:flex-end;gap:12px;flex-direction:column}.estimate-card h2{font-size:18px;overflow-wrap:anywhere}.estimate-card strong{white-space:nowrap;font-size:20px}.estimate-card:hover{border-color:var(--selected-line)}.new-message{font-size:12px;color:var(--accent);font-weight:600}.empty-state{text-align:center;padding:48px 28px}.empty-state p{margin-top:12px;color:var(--muted)}.more-estimates{display:flex;margin:20px auto}.save-quiet{display:flex;width:100%;margin-top:12px}.save-status{font-size:12px;color:var(--muted);text-align:center;margin-top:12px}.auth-panel{max-width:400px;margin:40px auto}.auth-panel h1{margin-bottom:28px}.auth-panel .primary{width:100%;margin-top:12px}.auth-panel>.text-button{display:flex;width:100%;margin-top:12px}.password-help{margin-top:-8px}.form-error{color:var(--negative);font-size:14px;margin-block:12px}.form-error:empty{display:none}.maker a{display:block;font-size:14px;color:var(--muted);text-decoration:none}.client-photos:empty{display:none}.client-photos{margin-top:20px}.client-photos .photo-wrap{height:112px;width:140px}.client-photos .photo-thumb{width:100%;height:100%;object-fit:cover}.response.done{background:var(--success-bg);color:var(--success)}.response.partial{background:var(--warning-bg);color:var(--warning)}.chat-page{height:calc(100dvh - 155px);max-height:calc(100dvh - 155px)}.chat-status{font-size:12px;color:var(--negative);margin-top:8px}.chat-status:empty{display:none}.messages{overscroll-behavior:contain}.composer textarea{max-height:120px}.send-message{align-self:flex-end}.error-state{max-width:500px;margin:40px auto}.error-state p{margin:20px 0}.confirm-items>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.confirm-items{margin-bottom:24px}.confirm-items strong{white-space:nowrap}dialog::backdrop{background:#10182866}dialog{border:1px solid var(--line);padding:0;border-radius:18px;max-width:480px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);color:var(--ink);background:white}dialog .dialog-head{position:sticky;top:0;background:white;z-index:1}.photo-full{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}#toast[hidden]{display:none}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;padding:12px 20px;max-width:500px;border-radius:12px;background:var(--ink);color:white;font-size:14px;z-index:20;box-shadow:0 4px 20px #10182822}.loading{text-align:center;padding:48px;color:var(--muted)}
@media(max-width:700px){.app-header{padding:16px 20px;gap:8px}.app-header .brand{font-size:21px;gap:8px}.app-header .brand-icon{width:30px;height:30px}.app-header .icon-button{margin-left:-12px}#app{padding-top:0}.page-top{margin-top:12px}.page-top h1{font-size:24px}.page-top>.primary{padding-inline:12px}.side .panel:first-child{display:block}.side .panel:first-child .total-line,.desktop-share{display:none}.save-quiet{margin:0;min-height:44px}.save-status{margin-top:4px}.estimate-card{padding:20px;gap:12px}.estimate-card h2{font-size:17px}.estimate-card strong{font-size:18px}.client-layout{padding-bottom:12px}.client-heading .maker{margin-bottom:20px}.chat-page{height:calc(100dvh - 100px);max-height:calc(100dvh - 100px);min-height:0}.chat-context{padding:8px 16px}.chat-heading{padding:8px 12px}.chat-context .meta{font-size:12px}.composer{padding:12px}.composer textarea{min-height:48px;max-height:100px}.chat-heading h1{font-size:16px}body:has(.chat-page) #app{padding-bottom:12px}.messages{min-height:0}.master-bottom{bottom:0;padding-bottom:max(16px,env(safe-area-inset-bottom))}.client-photos .photo-wrap{width:calc((100% - 12px)/2)}.auth-panel{margin:20px auto}.client-actions .primary,.client-actions .secondary{min-height:48px}#toast{bottom:104px}.button-group{gap:12px}.button-group>*{flex-basis:100%}dialog .button-group{flex-direction:column}}
