/* Shared rainbow foundation, Mandy's Work, and Customer workspace. */
:root{
 --ink:#17294c;--muted:#586b89;--paper:#f8f9fc;--white:#fff;--navy:#17294c;
 --copper:#d45431;--green:#168348;--red:#c62450;--gold:#a45b00;--line:#e0e5ef;
 --violet:#7224d7;--blue:#0874dc;--teal:#078da9;--orange:#e46b12;
 --shadow:0 5px 19px #1c31510b;
 font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);
}
body{background:var(--paper)}a{color:#076eaf}
.floor-lock-screen{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:28px 18px calc(28px + env(safe-area-inset-bottom));background:radial-gradient(circle at 9% 15%,#fff0df 0,transparent 31%),radial-gradient(circle at 92% 15%,#f5e8ff 0,transparent 32%),radial-gradient(circle at 75% 90%,#e7f9f2 0,transparent 34%),#f7f9ff}
.floor-lock-card{position:relative;overflow:hidden;width:min(100%,470px);padding:42px 42px 38px;border:1px solid #dce3f3;border-radius:22px;background:#fff;box-shadow:0 22px 70px #223c6520}
.floor-lock-card:before{content:"";position:absolute;inset:0 0 auto;height:7px;background:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975)}
.floor-brand{display:flex;align-items:center;justify-content:center;gap:15px;margin:4px 0 32px;color:var(--ink)}
.floor-brand-mark{display:grid;place-items:center;width:62px;height:62px;flex:none;border-radius:18px;background:linear-gradient(145deg,#f58026,#e92389 34%,#7224d7 66%,#078da9);color:#fff;box-shadow:0 6px 18px #7224d735}
.floor-brand-mark svg{width:37px;height:45px}.floor-brand-words{display:grid;gap:1px;text-align:left;line-height:1}.floor-brand-words small{font-size:.67rem;letter-spacing:.22em;font-weight:800;color:#586b89}.floor-brand-words strong{font-size:1.8rem;letter-spacing:.075em;font-weight:850}.floor-brand-words>span{font-size:.79rem;letter-spacing:.34em;font-weight:800;color:#7224d7}
.floor-lock-copy{text-align:center}.floor-lock-copy h1{margin:0 0 9px;font-size:1.9rem}.floor-lock-copy p{margin:0 0 22px;color:var(--muted);line-height:1.5}.floor-lock-copy .floor-lock-user{display:inline-block;margin:0 0 12px;padding:7px 13px;border-radius:99px;background:#f4efff;color:#5520ae;font-weight:700}
#floor-form{display:grid;gap:10px}#floor-form label{font-weight:750;color:var(--ink)}#floor-pin{box-sizing:border-box;width:100%;min-height:54px;padding:12px 16px;border:1px solid #9ba9c1;border-radius:11px;background:#fff;color:var(--ink);font-size:1.15rem;letter-spacing:.18em;text-align:center}#floor-pin:focus{border-color:#7224d7}
#floor-form .form-error{margin:0;padding:0;color:#b51f46;font-size:.88rem}#floor-form .form-error:empty{display:none}
.floor-lock-card .btn{width:100%;min-height:52px;font-weight:700}.floor-lock-card #floor-form .btn.primary{margin-top:7px;background:linear-gradient(105deg,#7224d7,#0874dc);border-color:transparent;color:#fff}.floor-lock-card #floor-form .btn.primary:hover{background:linear-gradient(105deg,#6420c1,#0665be);border-color:transparent;color:#fff}
.floor-lock-card .floor-switch{margin-top:12px;border-color:#cdd8e9;background:#fff;color:var(--ink)}.floor-lock-card .floor-switch:hover{background:#f5f7ff}.floor-lock-wait{text-align:center;color:var(--muted);font-weight:700}
@media(max-width:600px){.floor-lock-screen{padding:18px 12px calc(18px + env(safe-area-inset-bottom))}.floor-lock-card{padding:34px 22px 26px;border-radius:17px}.floor-brand{gap:11px;margin-bottom:25px}.floor-brand-mark{width:52px;height:52px;border-radius:15px}.floor-brand-mark svg{width:31px;height:38px}.floor-brand-words strong{font-size:1.47rem}.floor-brand-words small{font-size:.57rem}.floor-brand-words>span{font-size:.68rem}.floor-lock-copy h1{font-size:1.65rem}}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0874dc;outline-offset:3px}
h1,h2,h3{color:var(--ink)}h1{font-size:clamp(2rem,3vw,2.7rem)}
.btn{background:white;border:1px solid #d4ddeb;border-radius:11px;color:var(--ink);box-shadow:0 2px 7px #1a33500b;min-height:44px}
.btn.primary{background:var(--blue);border-color:var(--blue);color:white}.btn.dark{background:var(--navy);border-color:var(--navy)}
.btn.danger{color:var(--red);border-color:#ecc6d1}
.btn:hover{filter:none;border-color:#9eb4d1;background:#f6f9ff}.btn.primary:hover,.btn.dark:hover{filter:brightness(.93);background:var(--blue)}
.card,.metric{border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);background:#fff}
.card-head{border-bottom-color:var(--line)}.pill{border-radius:8px}.pill.good{color:#0b7440;background:#e9f8ef}.pill.warn{color:#995a05;background:#fff3d9}.pill.bad{color:#b51f46;background:#fff0f4}
.field input,.field select,.field textarea,.line-input input,.line-input select,.search{border-color:#cbd5e5;border-radius:9px;color:var(--ink)}
.notice.info{background:#ebf5fc;color:#28516e}.notice{border-radius:10px}th{background:#fafbfe;color:#526583}td{border-top-color:#edf0f6}tr:hover td{background:#f8faff}
.layout{grid-template-columns:236px minmax(0,1fr)}
.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);padding:24px 16px;gap:24px}
.brand{padding:0 12px 13px}.brand strong{font-size:1.55rem;letter-spacing:.04em;color:var(--ink)}.sidebar .brand small{color:#586b89;font-size:.65rem;letter-spacing:.12em}
.nav{gap:5px}.nav button{color:var(--ink);border-radius:11px;min-height:49px;font-weight:600;padding:9px 13px;position:relative}
.nav button:hover{background:#f4f7ff;color:var(--ink)}
.nav button.active{color:var(--ink);background:linear-gradient(110deg,#fff0df,#fff0f5 42%,#edf1ff);box-shadow:none}
.nav button.active:before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:5px;background:linear-gradient(#ff9b19,#ed2b68,#6725df,#00afd5,#1cbf6a)}
.nav .navigation-icon{width:22px;height:22px;flex:none}.nav button:nth-child(5n+1) .navigation-icon{color:#ed2b68}.nav button:nth-child(5n+2) .navigation-icon{color:#8123df}.nav button:nth-child(5n+3) .navigation-icon{color:var(--blue)}.nav button:nth-child(5n+4) .navigation-icon{color:#1aaa56}.nav button:nth-child(5n) .navigation-icon{color:#e36b10}
.sidebar-foot{color:var(--muted);border-color:var(--line)}.sidebar-foot strong{color:var(--ink)}.sidebar-foot button{color:var(--ink);border-color:#d4ddeb;border-radius:9px}
.topbar{min-height:66px;height:auto;background:#fff;border-bottom:1px solid var(--line);padding:9px 26px;gap:12px}
.topbar-label{font-size:.84rem;color:var(--ink)}.breadcrumb-divider{color:#8a99b4}
.topbar .signed-in{margin-left:auto;color:var(--muted)}.demo-label{background:#fff3e9;color:#aa491b;border-radius:20px;padding:7px 10px;font-size:.67rem;white-space:nowrap;order:1}
.topbar-utilities{display:flex;align-items:center;gap:9px;order:2}.topbar-utilities .btn{min-height:40px}
.utility-menu{position:relative}.utility-menu summary{list-style:none;cursor:pointer;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600}.utility-menu summary::-webkit-details-marker{display:none}
.utility-menu .reading-toggle{position:absolute;right:0;top:calc(100% + 6px);z-index:12;white-space:nowrap;background:#fff}
.charlotte-control{display:inline-flex;align-items:center;gap:10px;justify-content:center;min-width:91px;min-height:44px;padding:5px 12px;border:1px solid #fff;border-radius:30px;background:linear-gradient(105deg,#ed168a,#852df4 39%,#197cf4 68%,#04c6ac);color:#fff;box-shadow:0 5px 17px #982ddd42;font-size:1.15rem}
.charlotte-control:hover{box-shadow:0 6px 22px #982ddd61}.charlotte-symbol{display:inline-flex;align-items:center;gap:3px}.charlotte-symbol svg{height:24px;width:24px;stroke:#fff;stroke-width:.15px}.charlotte-sparkles{font-size:13px;white-space:nowrap}.charlotte-chevron{font-size:17px}
.section-nav{background:#fff;border-color:var(--line);padding:0;margin:0 26px;min-height:52px;gap:10px}
.section-nav button{color:var(--ink);padding:9px 12px;border-radius:0;border-bottom:3px solid transparent;min-height:50px}
.section-nav button:hover{background:#f6f8fe}.section-nav button[aria-current=page]{color:var(--ink);background:transparent;border-bottom-color:#ed3a87;position:relative}
.section-nav button[aria-current=page]:after{content:"";position:absolute;bottom:-3px;left:15%;right:15%;height:3px;background:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975)}
.content{max-width:1680px;padding:24px 26px 42px}.page-head{margin-bottom:20px}.page-head p{color:var(--muted)}
/* Mandy's Work */
#page:has(.work-summary-grid) .page-head{align-items:center;gap:20px}
#page:has(.work-summary-grid) .page-head h1{margin-bottom:5px}
#page:has(.work-summary-grid) .page-head .actions{justify-content:flex-end}
#page:has(.work-summary-grid) .page-head .actions .btn{min-height:48px;white-space:nowrap}
#page:has(.work-summary-grid) .page-head .actions svg{width:18px;height:18px;color:var(--blue)}
.permit-action{border-color:#8cd6ed;color:var(--ink)}.permit-action svg{color:var(--teal)!important}
.new-estimate-action{background:linear-gradient(105deg,#e92389,#7224d7 43%,#0874dc 78%,#078da9);border-color:transparent;color:#fff;box-shadow:0 5px 16px #7224d733;font-weight:700}.new-estimate-action:hover{background:linear-gradient(105deg,#d51976,#6420c1 43%,#0665be 78%,#077e98);border-color:transparent;color:#fff}
.modal:has(.estimate-flow-form){border:1px solid #dce3f5;background:#f8f9fc}
.modal:has(.estimate-flow-form) .modal-header{background:linear-gradient(110deg,#fff3e8,#fff0f8 38%,#f2efff 70%,#eaf8ff);border-top:5px solid transparent;border-image:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975) 1}
.modal:has(.estimate-flow-form) .modal-header h2{color:var(--ink)}
.modal:has(.estimate-flow-form) .print-action{display:none}
.modal:has(.estimate-flow-form) .estimate-flow-progress button.current{border-color:#7224d7;color:#5520ae;background:#f7f1ff}
.modal:has(.estimate-flow-form) .estimate-flow-progress button.done{border-color:#168348;color:#116d3b}
.modal:has(.estimate-flow-form) .estimate-review{border-color:#e0d8f8;background:linear-gradient(135deg,#fff9f3,#fff5fc 42%,#f5f7ff)}
.modal:has(.estimate-flow-form) .estimate-review-row.total{border-top-color:#7224d7}
.modal:has(.estimate-flow-form) .estimate-next,.modal:has(.estimate-flow-form) button[type=submit]{background:linear-gradient(105deg,#7224d7,#0874dc);border-color:transparent;color:#fff;font-weight:700}
.modal:has(.estimate-flow-form) .estimate-next:hover,.modal:has(.estimate-flow-form) button[type=submit]:hover{background:linear-gradient(105deg,#6420c1,#0665be);border-color:transparent;color:#fff}
.estimate-permit-panel{margin:0 0 18px;padding:16px 18px;border:1px solid #d7e1f5;border-radius:14px;background:#f4f8ff}
.estimate-permit-panel h3{margin:0 0 12px;font-size:1rem}.estimate-permit-panel .permit-help{display:block;margin:9px 0 0;color:var(--muted)}.estimate-permit-panel .permit-inline{margin:0}
@media(max-width:1023px){.dialog-open .mobile-bottom-nav{z-index:32;box-shadow:0 -8px 24px #15202c18}.dialog-open .modal-overlay{bottom:calc(67px + env(safe-area-inset-bottom))}.dialog-open .modal{max-height:calc(100dvh - 83px - env(safe-area-inset-bottom))}.mobile-bottom-nav .mobile-charlotte{color:#6b25c4}.mobile-bottom-nav .mobile-charlotte svg{width:23px;height:23px;color:#842bea}.mobile-bottom-nav .mobile-charlotte span{font-size:inherit;line-height:inherit}}
.work-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px;padding:12px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}
.work-summary{display:flex;align-items:center;text-align:left;gap:12px;min-width:0;padding:13px;border:0;border-radius:13px;background:#fff4f7;color:#aa183f;min-height:78px}
.work-summary>span:nth-child(2){display:grid;gap:2px;min-width:0}.work-summary strong{font-size:1.4rem;line-height:1}.work-summary>span:nth-child(2)>span{font-weight:600;line-height:1.25}.work-summary>span:last-child{margin-left:auto;font-size:1.55rem}.summary-symbol{width:40px;height:40px;border-radius:50%;background:#ee2d6c;color:#fff;display:grid;place-items:center;flex:none;font-weight:700;font-size:1.15rem}
.work-summary-draft{background:#f5f0ff;color:#641ac4}.work-summary-draft .summary-symbol{background:#782de5}.work-summary-ticket{background:#eef7ff;color:#146ac5}.work-summary-ticket .summary-symbol{background:#1678e9}.work-summary-calendar{background:#edfbf1;color:#0a7138}.work-summary-calendar .summary-symbol{background:#1eaa54}
.work-summary:hover{filter:brightness(.98)}
.work-dashboard{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,.8fr);gap:16px}
.work-main-column,.work-side-column{display:grid;align-content:start;gap:16px;min-width:0}
.work-home-panel{min-width:0}.work-home-panel .card-head{padding:14px 18px}.work-home-panel .card-head h2{font-size:1.18rem}
.work-home-panel .count{background:#f4f6fa;padding:4px 10px;border-radius:20px;white-space:nowrap}
.work-action-card{padding:10px 18px;min-height:58px}.work-action-card small{color:var(--muted)}.work-action-card .link{color:var(--ink)}.work-empty{padding:14px 18px;color:var(--muted);margin:0}.work-panel-link{margin:6px 18px 12px}
.work-all-details>summary{color:var(--ink);font-weight:650;cursor:pointer;padding:12px}
/* Customer search and full-page workspace */
.customer-search-page,.customer-workspace-page{max-width:1180px;margin:auto}
.customer-search-heading h1{margin:0 0 4px}.customer-search-heading p{color:var(--muted);margin:0 0 22px}
.customer-search-heading h1{display:flex;align-items:center;gap:10px}.customer-search-heading h1 svg{width:30px;height:30px;color:var(--blue)}
.customer-search-panel{padding:22px;margin-bottom:24px;border-top:4px solid transparent;border-image:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975) 1}
.customer-search-panel label{display:block;font-weight:700;margin-bottom:11px}
.customer-search-controls{display:flex;align-items:center;gap:12px}.customer-search-controls .search{max-width:none;min-height:50px;font-size:1rem;flex:1}
.customer-search-controls .btn{white-space:nowrap}
.customer-results-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.customer-results-heading h2{margin:0;font-size:1.3rem}
.customer-cards{display:none}.customer-table table{font-size:.88rem}
.customer-table .table-wrap{width:100%}.customer-table th,.customer-table td{padding:16px}.customer-table td:nth-child(2){white-space:nowrap}
.customer-pagination{padding-left:0;padding-right:0}.customer-empty{padding:30px;text-align:center}.customer-empty p{color:var(--muted)}
.customer-back{display:inline-flex;margin-bottom:18px;color:var(--blue);font-size:.95rem}
.customer-workspace-page .page-head{align-items:flex-start}.customer-workspace-page .page-head .actions{justify-content:flex-end}
.customer-workspace-page .customer-summary,.customer-workspace-page .customer-at-glance{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}
.customer-workspace-page .customer-summary{padding:18px 22px;gap:30px;overflow-wrap:anywhere}
.customer-workspace-page .customer-at-glance{padding:20px 22px;margin:18px 0}
.customer-workspace-page .customer-recent{margin-bottom:18px}
.customer-workspace-page .customer-history,.customer-workspace-page .customer-more-actions{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:14px;padding:14px 18px}
.customer-workspace-page .customer-history summary,.customer-workspace-page .customer-more-actions summary{cursor:pointer;font-weight:650}
.customer-workspace-page .customer-history .customer-records{margin-top:18px}
.customer-form-card{max-width:680px}.customer-form-card .field{margin-bottom:16px}
.customer-form-card details{margin-bottom:20px}.customer-form-card details summary{cursor:pointer;font-weight:650;margin-bottom:12px}
.customer-form-card label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:12px;line-height:1.5}.customer-form-card input[type=checkbox]{width:20px;height:20px;min-width:20px;min-height:20px;margin:2px 0 0;padding:0}
.customer-form-actions{margin-top:22px}
@media(max-width:1350px){.work-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#page:has(.work-summary-grid) .page-head{flex-wrap:wrap}#page:has(.work-summary-grid) .page-head .actions{justify-content:flex-start}}
@media(max-width:1023px){.touch-header,.touch-menu-panel{background:#fff;color:var(--ink);border-color:var(--line)}.touch-header{box-shadow:0 3px 12px #1c315116}.touch-brand,.touch-current,.touch-current strong,.touch-brand span{color:var(--ink)}.touch-menu summary{color:var(--ink);border-color:var(--line)}.touch-menu-panel nav button{color:var(--ink);border-color:var(--line);background:#f7f9fd}.touch-menu-panel nav button[aria-current=page]{background:#eef3ff;color:var(--ink)}.topbar,.section-nav{display:none}.content{padding:20px}.work-dashboard{grid-template-columns:minmax(0,1fr) minmax(270px,.8fr)}}
@media(max-width:720px){.work-dashboard{grid-template-columns:minmax(0,1fr)}.work-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:8px}.work-summary{padding:10px;min-height:72px}.summary-symbol{width:34px;height:34px}.work-summary strong{font-size:1.2rem}#page:has(.work-summary-grid) .page-head .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}#page:has(.work-summary-grid) .page-head .actions .btn{white-space:normal;min-width:0}.work-action-card{flex-wrap:wrap}}
@media(max-width:720px){.customer-search-panel{padding:16px}.customer-search-controls{align-items:stretch;flex-direction:column}.customer-search-controls .search{width:100%}.customer-search-controls .btn{align-self:flex-start}.customer-table{display:none}.customer-cards{display:grid;gap:12px}.customer-result-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;box-shadow:var(--shadow);overflow-wrap:anywhere}.customer-result-title .link{font-size:1.1rem;color:var(--ink)}.customer-result-card p{margin:9px 0;line-height:1.5}.customer-result-location{color:var(--muted)}.customer-result-card small{color:var(--muted)}.customer-workspace-page .page-head{display:block}.customer-workspace-page .page-head .actions{justify-content:flex-start;margin-top:16px}.customer-workspace-page .customer-summary{display:grid;gap:12px}.customer-recent{grid-template-columns:1fr}.customer-form-card{padding:17px}.customer-form-actions{display:grid}.customer-form-actions .btn{width:100%}}
@media(max-width:720px){.customer-workspace-page .workspace-tabs{flex-wrap:nowrap;overflow-x:auto;gap:4px}.customer-workspace-page .workspace-tabs button{white-space:nowrap;font-size:.85rem;padding:10px 8px}}
@media(max-width:720px){.mobile-bottom-nav button,.mobile-bottom-nav a{font-size:.68rem;letter-spacing:-.02em}.mobile-bottom-nav svg{width:18px;height:18px;flex:none}.mobile-bottom-nav button,.mobile-bottom-nav a{white-space:nowrap;overflow:hidden}}
@media(max-width:370px){.work-summary{font-size:.86rem;gap:6px}.summary-symbol{width:30px;height:30px}.work-summary>span:last-child{display:none}}
@media print{.charlotte-control,.utility-menu,.work-summary{box-shadow:none!important}.topbar-utilities,.work-summary-grid{display:none!important}}
@media print{body.estimate-preview-print .modal-header,body.estimate-preview-print .modal-body>.notice,body.estimate-preview-print .estimate-flow-progress,body.estimate-preview-print .estimate-step-label,body.estimate-preview-print .estimate-flow-form>.actions,body.estimate-preview-print .estimate-step[data-estimate-step="3"]>*:not(.estimate-review){display:none!important}body.estimate-preview-print .estimate-step[data-estimate-step="3"],body.estimate-preview-print .estimate-review{display:block!important}}

.mobile-bottom-nav .mobile-more-icon{width:23px;height:23px;flex:none}

/* Charlotte: the same rainbow palette, with motion tied to her activity state. */
.voice-modal{border:1px solid #dce3f5;background:radial-gradient(circle at 15% 28%,#fff0e5,transparent 34%),radial-gradient(circle at 85% 40%,#e8f7ff,transparent 38%),#f8f9ff;box-shadow:0 24px 90px #17294c40}
.voice-modal .modal-header{border-top:5px solid transparent;border-image:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975) 1;background:linear-gradient(110deg,#fff7f0,#fff3fa 42%,#f0f5ff);border-bottom:1px solid #e3e6f2}
.voice-modal .modal-header .print-action,.voice-modal .modal-header .modal-permit-shortcut{display:none}
.voice-modal .modal-body{padding-top:10px}.voice-modal .charlotte-voice{min-height:0;padding:6px 20px 26px}.voice-modal .voice-eyebrow{font-weight:750;color:#6b31bb;letter-spacing:.19em}
.voice-modal .flame-stage{height:clamp(190px,32dvh,280px);flex:0 0 auto;margin:8px 0 0;isolation:isolate}
.voice-modal .flame-stage:before{content:"";position:absolute;width:min(270px,75%);height:min(270px,75%);border-radius:50%;background:radial-gradient(circle,#fff 0,#f7e8ff 29%,#dbeeff66 56%,transparent 74%);filter:blur(14px)}
.voice-modal .flame-halo{width:225px;height:225px;background:conic-gradient(from 35deg,#ffe4b2aa,#ffd2e9aa,#e1c7ffaa,#baefffaa,#c9f5dbaa,#ffe4b2aa);filter:blur(26px);opacity:.72;animation:charlotte-halo 7s ease-in-out infinite alternate}
.voice-modal .charlotte-flame{position:relative;z-index:1;height:clamp(180px,28dvh,260px);filter:drop-shadow(0 0 12px #e63d9890) drop-shadow(0 0 25px #16b4e977)}
.voice-modal .flame-shell,.voice-modal .flame-core,.voice-modal .flame-heart{transform-origin:50% 94%}
.voice-modal .flame-shell{animation:charlotte-breathe 4.7s ease-in-out infinite}.voice-modal .flame-core{animation:charlotte-breathe 3.5s ease-in-out -1s infinite}.voice-modal .flame-heart{animation:charlotte-heart 2.6s ease-in-out infinite}
.voice-modal .flame-ember{position:absolute;z-index:2;width:5px;height:9px;border-radius:50%;background:#e92389;filter:blur(.5px) drop-shadow(0 0 5px currentColor);opacity:.65;animation:charlotte-ember 3.4s ease-out infinite}
.voice-modal .ember-one{left:39%;top:39%;color:#f58026}.voice-modal .ember-two{left:59%;top:28%;background:#7137ed;color:#7137ed;animation-delay:-1.2s}.voice-modal .ember-three{left:64%;top:45%;background:#16b4e9;color:#16b4e9;animation-delay:-2.1s}
.voice-modal .charlotte-voice h2{margin:3px 0 9px;font-size:1.5rem}.voice-modal .voice-caption{max-width:430px;margin:0 0 14px;color:var(--muted)}.voice-modal .voice-privacy{margin:0 0 19px;color:#586b89}
.voice-modal .voice-controls{width:100%;gap:10px}.voice-modal .voice-controls .btn{min-height:48px}.voice-modal .voice-controls .btn.primary{background:linear-gradient(105deg,#7224d7,#0874dc);border-color:transparent;color:#fff}.voice-modal .voice-controls .btn.dark{background:#17294c;border-color:#17294c;color:#fff}
.voice-modal .voice-preview-options{width:100%;margin-top:14px}.voice-modal .voice-preview-options[open]{border-top:1px solid #e0e5ef}.voice-modal .voice-preview-options [aria-pressed=true]{border-color:#7224d7;background:#f3edff;color:#5520ae}
.voice-modal .charlotte-voice>section.card{border-color:#e0d8f8;background:#fff;box-shadow:0 5px 22px #233b660d}.voice-modal .charlotte-voice>section.card .actions{gap:8px}
.voice-modal [data-voice-state=thinking] .flame-shell,.voice-modal [data-voice-state=typing] .flame-shell{animation:charlotte-active 1.35s ease-in-out infinite alternate}
.voice-modal [data-voice-state=thinking] .flame-core,.voice-modal [data-voice-state=typing] .flame-core{animation:charlotte-active .95s ease-in-out infinite alternate-reverse}
.voice-modal [data-voice-state=speaking] .flame-shell{animation:charlotte-speaking .62s ease-in-out infinite alternate}.voice-modal [data-voice-state=speaking] .flame-core{animation:charlotte-speaking .43s ease-in-out infinite alternate-reverse}
.voice-modal [data-voice-state=speaking] .flame-halo,.voice-modal [data-voice-state=typing] .flame-halo{animation-duration:1.2s;opacity:1}.voice-modal [data-voice-state=speaking] .flame-ember,.voice-modal [data-voice-state=typing] .flame-ember{animation-duration:1.2s}
@keyframes charlotte-breathe{0%,100%{transform:translateY(0) scale(1) rotate(-.5deg)}48%{transform:translateY(-4px) scale(.98,1.05) rotate(1deg)}75%{transform:translateY(-2px) scale(1.02,.98) rotate(-1deg)}}
@keyframes charlotte-heart{50%{transform:scale(.9,1.08);opacity:.95}}
@keyframes charlotte-active{to{transform:translateY(-8px) scale(.94,1.12) skewX(2deg)}}
@keyframes charlotte-speaking{to{transform:translateY(-12px) scale(1.05,1.17) rotate(2deg)}}
@keyframes charlotte-halo{to{transform:scale(1.18) rotate(15deg);opacity:.93}}
@keyframes charlotte-ember{0%{transform:translate(0,7px) scale(.6);opacity:0}25%{opacity:.7}100%{transform:translate(13px,-85px) scale(0);opacity:0}}
@media(max-width:599px){.voice-modal .modal-body{padding:5px 16px 18px}.voice-modal .charlotte-voice{min-height:0;padding:0 0 28px}.voice-modal .flame-stage{height:clamp(170px,28dvh,230px);margin:0}.voice-modal .charlotte-flame{height:clamp(165px,27dvh,220px)}.voice-modal .voice-controls{display:grid;grid-template-columns:1fr 1fr}.voice-modal .voice-controls .btn{min-width:0}.voice-modal .voice-controls .btn:first-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.voice-modal .flame-shell,.voice-modal .flame-core,.voice-modal .flame-heart,.voice-modal .flame-halo,.voice-modal .flame-ember{animation:none!important}}

.voice-modal .voice-controls-preview{display:grid;grid-template-columns:1fr 1fr;align-items:center;max-width:410px}.voice-modal .voice-unavailable{display:grid;place-items:center;min-height:48px;padding:10px 16px;border:1px solid #dce3f0;border-radius:11px;background:#f7f9ff;color:#586b89;font-weight:650}.voice-modal .voice-controls-preview .btn{width:100%}
@media(max-width:599px){.voice-modal .modal-header{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:8px;padding:14px 16px}.voice-modal .modal-header h2{grid-column:1;grid-row:1;min-width:0}.voice-modal .modal-header .close{grid-column:2;grid-row:1;order:unset;width:42px;height:42px}.voice-modal .voice-controls-preview{grid-template-columns:1fr 1fr}.voice-modal .voice-controls-preview .btn:first-child{grid-column:auto}}

.voice-modal .charlotte-flame-image{position:absolute;inset:50% auto auto 50%;z-index:2;display:block;width:auto;height:min(300px,34dvh);max-width:90%;object-fit:contain;pointer-events:none;transform-origin:50% 77%;will-change:transform,opacity}
.voice-modal .flame-image-back{z-index:1;opacity:.46;filter:blur(9px) hue-rotate(12deg);animation:charlotte-image-back 4.2s ease-in-out infinite alternate}
.voice-modal .flame-image-front{filter:drop-shadow(0 5px 15px #a52ec83d);animation:charlotte-image-idle 4.8s ease-in-out infinite alternate}
.voice-modal [data-voice-state=thinking] .flame-image-front,.voice-modal [data-voice-state=typing] .flame-image-front{animation:charlotte-image-active 1.2s ease-in-out infinite alternate}
.voice-modal [data-voice-state=speaking] .flame-image-front{animation:charlotte-image-speak .62s ease-in-out infinite alternate}
.voice-modal [data-voice-state=thinking] .flame-image-back,.voice-modal [data-voice-state=typing] .flame-image-back,.voice-modal [data-voice-state=speaking] .flame-image-back{animation-duration:1s;opacity:.69}
@keyframes charlotte-image-idle{from{transform:translate(-50%,-50%) scale(.98) rotate(-1deg)}to{transform:translate(-50%,-52%) scale(1.02,1.04) rotate(1deg)}}
@keyframes charlotte-image-back{from{transform:translate(-51%,-50%) scale(1.04,1.02) rotate(2deg)}to{transform:translate(-49%,-53%) scale(1.12,1.08) rotate(-2deg)}}
@keyframes charlotte-image-active{from{transform:translate(-50%,-50%) scale(.97,1.02) rotate(-2deg)}to{transform:translate(-50%,-54%) scale(1.06,1.1) rotate(2deg)}}
@keyframes charlotte-image-speak{from{transform:translate(-50%,-50%) scale(.95,1.01) rotate(-2deg)}to{transform:translate(-50%,-57%) scale(1.08,1.15) rotate(2deg)}}
@media(max-width:599px){.voice-modal .charlotte-flame-image{height:min(245px,32dvh)}}
@media(prefers-reduced-motion:reduce){.voice-modal .charlotte-flame-image{animation:none!important;transform:translate(-50%,-50%)!important}.voice-modal .flame-image-back{opacity:.38}}

.voice-modal .flame-stage{height:clamp(265px,43dvh,325px)}.voice-modal .charlotte-flame-image{height:clamp(340px,49dvh,390px)}
@media(max-width:599px){.voice-modal .flame-stage{height:clamp(225px,35dvh,285px)}.voice-modal .charlotte-flame-image{height:clamp(285px,40dvh,345px)}}

/* Sign-in uses the same rainbow accents as the shop workspace. */
.login-story{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 88% 18%,#e52b8640 0,transparent 34%),radial-gradient(circle at 15% 87%,#0ca6c840 0,transparent 36%),linear-gradient(135deg,#102957 0%,#29205f 53%,#492071 100%)}
.login-story::before{content:"";position:absolute;inset:0 0 auto;height:8px;background:linear-gradient(90deg,#f16a25 0%,#ed287b 24%,#882de8 50%,#1476e5 75%,#16b86a 100%);z-index:2}
.login-story::after{content:"";position:absolute;width:380px;height:380px;border:2px solid #ffffff28;border-radius:50%;right:-170px;bottom:-130px;box-shadow:0 0 0 60px #ffffff0b,0 0 0 125px #ffffff08;pointer-events:none}
.login-story>*{position:relative;z-index:1}
.login-story .brand strong,.login-story .brand small,.login-story h1{color:#fff}
.login-story .brand-mark{background:linear-gradient(135deg,#ef2b86,#7a31e8 55%,#078fdd);color:#fff;border:0;box-shadow:0 5px 20px #110f3d55}
.login-story h1::after{content:"";display:block;width:180px;height:5px;margin-top:20px;border-radius:999px;background:linear-gradient(90deg,#f6a430,#ed2c87,#8435e8,#2aa7e8,#17bc72)}
.login-story p,.login-story small{color:#e9e9ff}
.login-panel{background:linear-gradient(145deg,#fff 0%,#f8f5ff 55%,#edf8ff 100%)}
.login-panel h2{color:#17294c}
.login-panel .btn.primary{border:0;background:linear-gradient(100deg,#e72380 0%,#8730e8 35%,#197ae8 72%,#05a88d 100%);color:#fff;box-shadow:0 8px 22px #27358b33}
.login-panel .btn.primary:hover{filter:brightness(1.06)}
.login-panel .field input:focus-visible,.login-panel .field select:focus-visible{outline:3px solid #9345e8;outline-offset:2px}
@media(max-width:760px){.login-story::after{display:none}.login-story h1::after{margin-top:12px}}

.estimate-list-tools{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin:0 0 16px}.estimate-list-tools p{margin:0 0 8px}.estimate-list-tools .field{min-width:220px;margin:0}.estimate-list-tools select{background:#fff}

/* Floor screens at tablet and phone sizes. */
#estimate-address-check{margin-top:16px;display:grid;gap:10px}
#estimate-address-check[hidden]{display:none}
#estimate-address-check>.btn{justify-self:start;min-height:48px}
#estimate-address-matches{display:grid;gap:8px}
#estimate-address-matches .btn{text-align:left;white-space:normal;min-height:48px;overflow-wrap:anywhere}
#estimate-address-check small{color:var(--muted)}
@media(min-width:601px) and (max-width:900px){.work-dashboard{grid-template-columns:minmax(0,1fr)}}
@media(min-width:601px) and (max-width:1150px){
 .estimates-page .table-wrap{overflow:visible}
 .estimates-page .table-wrap table,.estimates-page .table-wrap tbody{display:block;width:100%}
 .estimates-page .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .estimates-page .table-wrap tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding:18px;border-top:1px solid var(--line)}
 .estimates-page .table-wrap td{display:grid;gap:4px;min-width:0;padding:0;border:0;text-align:left;overflow-wrap:anywhere}
 .estimates-page .table-wrap td::before{content:attr(data-label);font-size:.78rem;font-weight:700;color:var(--muted)}
 .estimates-page .table-wrap td:first-child{grid-column:1/-1;padding-bottom:10px;border-bottom:1px solid var(--line)}
 .estimates-page .table-wrap td:first-child .link{font-size:1.05rem;font-weight:700}
 .estimates-page .table-wrap td[colspan]{grid-column:1/-1}
 .estimates-page .table-wrap td[colspan]::before{display:none}
}
@media(max-width:430px){
 .work-summary>span:last-child{display:none}
 .work-summary{gap:8px}
 .estimate-list-tools .field,.estimate-list-tools select{width:100%;min-width:0}
 #estimate-address-check>.btn{width:100%}
}

/* Consistent rainbow accents for every dialog and informational note. */
.modal .modal-header{background:linear-gradient(110deg,#fff3e8,#fff0f8 38%,#f2efff 70%,#eaf8ff);border-top:5px solid transparent;border-image:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975) 1}
.modal .btn.primary{background:linear-gradient(105deg,#7224d7,#0874dc);border-color:transparent;color:#fff}
.notice:not(.error):not(.danger){background:linear-gradient(115deg,#fff8ed,#fff4fa 38%,#f3f0ff 70%,#edfaff);border-color:#ddd5ed;color:#253450;border-left:4px solid #8b43cf}
.modal-footer{background:#faf8ff}.people-picker{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0;padding:14px;border:1px solid #ddd5ed;border-radius:10px}.people-picker label{display:flex;align-items:center;gap:7px}.people-picker input{width:auto;min-height:20px}.related-work{border-top:4px solid transparent;border-image:linear-gradient(90deg,#fa9020,#e92389,#6a3df5,#14afe2,#22b975) 1}.related-work .actions{margin:14px 0}.related-work details{padding:10px 0}#linked-record-fields{border:1px solid #ddd5ed;border-radius:10px;padding:16px;margin:12px 0}

.modal:has(.estimate-flow-form) .estimate-review{background:white}

.modal:has(.estimate-flow-form) .estimate-review{padding:0;border:0}.estimate-document-title>div{overflow-wrap:normal}@media(max-width:600px){.estimate-document-title{min-width:130px}.estimate-document-title>div{font-size:10px}.estimate-document-title strong{overflow-wrap:break-word}}
/* Estimate details remain legible when narrow tables hide rate columns. */
.estimate-line-calculation { display: none; }
.estimate-customer-note { display: block; font-size: .85em; margin-top: .25rem; }
.estimate-surround-dimensions { margin: .4rem 0; }
@media screen and (max-width: 600px) {
  .estimate-line-calculation { display: block; font-size: .85em; margin-top: .25rem; }
  .estimate-document-lines, .estimate-document-lines thead, .estimate-document-lines tbody { display: block; }
  .estimate-document-lines tr { display: grid; grid-template-columns: minmax(0,1fr) 88px; }
  .estimate-document-lines th:first-child { width: auto; }
  .estimate-document-lines .num { white-space: nowrap; }
  .estimate-document-lines .estimate-section-row, .estimate-document-lines .estimate-included-row { display: block; }
  .estimate-document-lines .estimate-section-row th { display: block; }
  .estimate-document-lines .estimate-included-row td { display: block; width: 100%; }
}

/* Shared estimate footer: applies to embedded forms as well as dialogs. */
.estimate-flow-form>.actions .btn{min-height:44px;border-radius:12px;font-weight:700;border:1px solid #d7cbed;background:linear-gradient(115deg,#fff1df,#fce8f4 35%,#eee8ff 68%,#e3f7ff);color:#382850;box-shadow:0 2px 5px #59388218}
.estimate-flow-form>.actions .estimate-next,.estimate-flow-form>.actions button[type=submit]{background:linear-gradient(110deg,#a32377,#7028bb 50%,#1266ad);color:#fff;border-color:transparent}
.estimate-flow-form>.actions .btn:focus-visible{outline:3px solid #7446c5;outline-offset:2px}
.estimate-flow-form>.actions .btn:disabled{opacity:.45;box-shadow:none}

/* Compact estimate descriptions without reducing their type size. */
.estimate-document.estimate-approved-template .estimate-document-lines th:first-child{width:66%!important}
.estimate-document.estimate-approved-template .estimate-document-lines th:nth-child(2){width:8%!important}
.estimate-document.estimate-approved-template .estimate-document-lines th:nth-child(3),.estimate-document.estimate-approved-template .estimate-document-lines th:nth-child(4){width:13%!important}
.estimate-document.estimate-approved-template .estimate-document-lines td small{margin:2px 0 0!important;line-height:1.25!important}
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-priced-line td{padding-top:4px!important;padding-bottom:4px!important}

/* Designer review: preserve the original document style with clearer type hierarchy. */


.estimate-document.estimate-approved-template .estimate-document-lines td strong{font-weight:700}
.estimate-document.estimate-approved-template .estimate-document-lines td small{font-size:12px!important;line-height:1.3!important}
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-product-heading td{border-bottom:0!important;padding-bottom:0!important}
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-product-details td{padding:0 5px 6px!important;width:auto!important}
.estimate-document.estimate-approved-template .estimate-document-bottom p{line-height:1.4;margin:5px 0}
.estimate-document.estimate-approved-template .estimate-document-totals>div{line-height:1.35;padding-top:4px;padding-bottom:4px}
@media print{.estimate-document.estimate-approved-template .estimate-product-heading{break-after:avoid-page}.estimate-document.estimate-approved-template .estimate-product-details{break-before:avoid-page}}
/* Product details span the table; do not inherit the application's 250px small-text cap. */
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-product-details td small{max-width:none!important;width:auto;white-space:normal}
.estimate-document .estimate-document-lines .estimate-included-row td{padding-top:3px;padding-bottom:3px;vertical-align:top}
.estimate-document .estimate-document-lines .estimate-included-row td small{max-width:none;white-space:normal;overflow-wrap:anywhere}
.estimate-document .estimate-included-amount{font-size:12px;color:#5f5969;white-space:nowrap}
.estimate-document .estimate-product-room td{padding-top:3px;padding-bottom:6px}
@media screen and (max-width:600px){
 .estimate-document .estimate-document-lines .estimate-included-row{display:grid;grid-template-columns:minmax(0,1fr) 88px}
 .estimate-document .estimate-document-lines .estimate-included-row td{width:auto;min-width:0}
 .estimate-document .estimate-document-lines .estimate-included-row td:nth-child(2),.estimate-document .estimate-document-lines .estimate-included-row td:nth-child(3){display:none}
 .estimate-document .estimate-document-lines .estimate-included-row .estimate-included-amount{display:block;text-align:right}
 .estimate-document .estimate-document-lines .estimate-product-room{display:block}
}
@media print{.estimate-document .estimate-included-row{break-inside:avoid-page}.estimate-document .estimate-product-details{break-after:avoid-page}}
/* Refined ink and muted plum palette; retain approved estimate geometry. */
.estimate-document.estimate-approved-template{--estimate-ink:#292735;--estimate-muted:#5f5969;--estimate-line:#dedbe3;color:var(--estimate-ink);border-color:var(--estimate-line)}
.estimate-document.estimate-approved-template .estimate-letterhead{border-bottom:1px solid #776582}
.estimate-document.estimate-approved-template .estimate-document-title h2,.estimate-document.estimate-approved-template .estimate-document-bottom h3{color:#51415f}
.estimate-document.estimate-approved-template .estimate-addresses>div,.estimate-document.estimate-approved-template .estimate-contact-strip,.estimate-document.estimate-approved-template .estimate-contact-strip>div{border-color:var(--estimate-line)}
.estimate-document.estimate-approved-template .estimate-addresses small,.estimate-document.estimate-approved-template .estimate-contact-strip small,.estimate-document.estimate-approved-template .estimate-document-lines td small{color:var(--estimate-muted)}
.estimate-document.estimate-approved-template .estimate-document-lines th,.estimate-document.estimate-approved-template .estimate-document-lines td,.estimate-document.estimate-approved-template .estimate-document-totals>div{border-color:var(--estimate-line)}
.estimate-document.estimate-approved-template .estimate-document-lines thead th{background:white;color:#665972}
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-section-row th{background:#f6f3f8;color:#51415f;text-transform:none;letter-spacing:0}
.estimate-document.estimate-approved-template .estimate-document-totals .grand{background:transparent;color:#43324f;border-top:1px solid #776582}
.estimate-document.estimate-approved-template .estimate-approval{color:#665972}
@media print{.estimate-document.estimate-approved-template .estimate-section-row th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Keep the quantity header intact in the compact numeric column. */
.estimate-document.estimate-approved-template .estimate-document-lines thead th:nth-child(2){white-space:nowrap!important;overflow-wrap:normal;letter-spacing:0;font-size:12px!important}
/* Repeat the original customer/estimate header on printed continuation pages. */
.estimate-document.estimate-approved-template .estimate-page-frame{width:100%;border-collapse:collapse;table-layout:fixed}
.estimate-document.estimate-approved-template .estimate-page-frame>thead>tr>td,.estimate-document.estimate-approved-template .estimate-page-frame>tbody>tr>td{padding:0!important;border:0!important;background:transparent;vertical-align:top}
.estimate-document.estimate-approved-template .estimate-page-frame>thead>tr>td{text-align:left;font-weight:normal}
.estimate-document.estimate-approved-template .estimate-payment-terms{margin-top:16px;break-inside:avoid}

.estimate-document.estimate-approved-template .estimate-payment-terms p{font:12px/1.4 Arial,sans-serif;margin:0}
.estimate-document.estimate-approved-template .estimate-shop span{overflow-wrap:anywhere}
@media print{
 .estimate-document.estimate-approved-template .estimate-page-frame>thead{display:table-header-group!important}
 .estimate-document.estimate-approved-template .estimate-page-frame>tbody,.estimate-document.estimate-approved-template .estimate-page-frame>tbody>.estimate-page-content,.estimate-document.estimate-approved-template .estimate-page-frame>tbody>.estimate-page-content>td{break-inside:auto!important;page-break-inside:auto!important}
 .estimate-document.estimate-approved-template .estimate-page-frame>thead>tr{break-inside:avoid!important}
}
/* Keep business contact details in a quiet footer and separate standard conditions. */
.estimate-document.estimate-approved-template .estimate-shop-contact{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 14px;margin-top:18px;padding-top:8px;border-top:1px solid var(--estimate-line);font:11px/1.4 Arial,sans-serif;color:var(--estimate-muted);break-inside:avoid}
.estimate-document.estimate-approved-template .estimate-shop-contact a{color:inherit;text-decoration:none}
.estimate-document.estimate-approved-template .estimate-standard-conditions{margin-top:16px;break-inside:avoid}

.estimate-document.estimate-approved-template .estimate-standard-conditions p{font:12px/1.4 Arial,sans-serif;white-space:pre-line;margin:0}
.estimate-document.estimate-approved-template .estimate-addresses{margin-top:12px;margin-bottom:8px}
.estimate-document.estimate-approved-template .estimate-contact-strip{margin-bottom:12px}
/* Compact customer details, with installation surname easy to spot. */
.estimate-document.estimate-approved-template .estimate-addresses{gap:12px;margin:8px 0 5px}
.estimate-document.estimate-approved-template .estimate-addresses>div{min-height:0;padding:5px 8px}
.estimate-document.estimate-approved-template .estimate-addresses small{font-size:10px;line-height:1.2}
.estimate-document.estimate-approved-template .estimate-addresses p{font:12px/1.25 Arial,sans-serif;margin:3px 0 0}
.estimate-document.estimate-approved-template .estimate-addresses .estimate-install-surname{font-size:15px;font-weight:700;line-height:1.2;color:var(--estimate-ink)}
.estimate-document.estimate-approved-template .estimate-contact-strip{margin-bottom:8px;grid-template-columns:1fr 1.5fr}
.estimate-document.estimate-approved-template .estimate-contact-strip>div{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;padding:4px 8px;min-width:0}
.estimate-document.estimate-approved-template .estimate-contact-strip small{font:10px/1.2 Arial,sans-serif}
.estimate-document.estimate-approved-template .estimate-contact-strip strong{font:12px/1.25 Arial,sans-serif;overflow-wrap:anywhere}

/* One heading system across table bands, notes, terms and conditions. */
.preview .estimate-document.estimate-approved-template .estimate-document-title h2,
.estimate-document.estimate-approved-template .estimate-document-title h2{font:400 20px/1.15 Arial,sans-serif!important;letter-spacing:0;text-transform:none;color:var(--estimate-ink);margin:0 0 6px}
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-section-row th,
.estimate-document.estimate-approved-template .estimate-document-bottom h3,
.estimate-document.estimate-approved-template .estimate-payment-terms h3,
.estimate-document.estimate-approved-template .estimate-standard-conditions h3,
.estimate-document.estimate-approved-template .estimate-internal-calculations h3{font:700 13px/1.3 Arial,sans-serif!important;letter-spacing:0;text-transform:none;color:#51415f;margin:0 0 5px}
.estimate-document.estimate-approved-template .estimate-document-lines thead th{font:700 12px/1.3 Arial,sans-serif!important;letter-spacing:0;text-transform:none}
.estimate-document.estimate-approved-template .estimate-addresses small{font:700 10px/1.2 Arial,sans-serif;letter-spacing:0;text-transform:none}
.estimate-document.estimate-approved-template .estimate-contact-strip small{font:700 10px/1.2 Arial,sans-serif}
/* Uppercase headings; reserve bold for hierarchy rather than every item. */
.estimate-document.estimate-approved-template .estimate-document-title h2,
.preview .estimate-document.estimate-approved-template .estimate-document-title h2,
.estimate-document.estimate-approved-template .estimate-document-lines .estimate-section-row th,
.estimate-document.estimate-approved-template .estimate-document-lines thead th,
.estimate-document.estimate-approved-template .estimate-document-bottom h3,
.estimate-document.estimate-approved-template .estimate-payment-terms h3,
.estimate-document.estimate-approved-template .estimate-standard-conditions h3,
.estimate-document.estimate-approved-template .estimate-internal-calculations h3,
.estimate-document.estimate-approved-template .estimate-addresses small,
.estimate-document.estimate-approved-template .estimate-contact-strip small{text-transform:uppercase;letter-spacing:.035em}
.estimate-document.estimate-approved-template .estimate-document-lines td strong,
.estimate-document.estimate-approved-template .estimate-document-title div strong,
.estimate-document.estimate-approved-template .estimate-installation-responsibility strong,
.estimate-document.estimate-approved-template .estimate-document-totals>div:not(.grand) strong{font-weight:400}
.estimate-document.estimate-approved-template .estimate-document-totals .grand strong{font-weight:700}
/* The surname leads the document; the estimate label and address stay secondary. */
.estimate-document.estimate-approved-template .estimate-addresses .estimate-install-surname{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}
.preview .estimate-document.estimate-approved-template .estimate-document-title .estimate-header-surname,
.estimate-document.estimate-approved-template .estimate-document-title .estimate-header-surname{font:700 28px/1.15 Arial,sans-serif!important;color:var(--estimate-ink);text-transform:none;letter-spacing:0;text-align:right;margin:0 0 4px;overflow-wrap:anywhere}
.estimate-document.estimate-approved-template .estimate-document-title .estimate-header-kind{font:400 20px/1.15 Arial,sans-serif!important;color:var(--estimate-ink);text-transform:uppercase;letter-spacing:.035em;margin:0 0 6px}

/* Insert library admin uses the existing shared phone shell. */
.insert-library-screen{font-size:18px;line-height:1.45}.insert-library-item h2{font-size:20px;line-height:1.3;margin:5px 0 14px}.insert-library-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.insert-library-controls .btn{min-height:44px;font-size:16px}.insert-library-filters{display:grid;gap:12px}.insert-library-filters label{display:grid;gap:5px}.insert-library-filters select,.insert-library-filters input{width:100%;min-height:44px;font-size:18px;box-sizing:border-box}.insert-library-item summary{min-height:44px;display:flex;align-items:center}.insert-library-item{overflow-wrap:anywhere}
.insert-library-toggle{display:inline-flex;align-items:center;gap:8px}.insert-toggle-track{display:inline-block;width:36px;height:22px;border-radius:20px;background:#a3a0ac;padding:3px;box-sizing:border-box}.insert-toggle-track:after{content:'';display:block;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003}.insert-library-toggle[aria-checked=true] .insert-toggle-track{background:#7163b7}.insert-library-toggle[aria-checked=true] .insert-toggle-track:after{transform:translateX(14px)}
.insert-vendor-group{border:1px solid #dedbe6;border-radius:14px;background:white;margin:10px 0;overflow:hidden}.insert-vendor-group>summary,.insert-family-group>summary{cursor:pointer;min-height:52px;padding:10px 12px;font-size:19px;line-height:1.4}.insert-vendor-group>summary>span,.insert-family-group>summary>span{display:block;font-size:16px;color:#696274;margin-left:18px}.insert-family-group{margin:0 8px 8px;border-top:1px solid #ebe8ef}.insert-library-item{padding:12px 8px;border-top:1px solid #ebe8ef}.insert-library-item h3{font-size:20px;line-height:1.3;margin:0 0 10px}.insert-model-review li{margin-bottom:6px}.insert-vendor-group>p{margin:12px}.insert-library-toggle:disabled{opacity:.65}
#page .insert-library-item h3{font-size:20px;line-height:1.3}
/* Distinguish vendor-wide factors, one-product settings and state work rates. */
.pricing-settings-layout{display:grid;gap:20px;margin:16px 0}
.pricing-setting-group{min-width:0;border:1px solid #cfc8df;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 5px #51415f0c}
.pricing-group-heading{padding:14px 16px;background:linear-gradient(110deg,#f4eaf3,#eeeafb 60%,#e7f3f4);border-bottom:1px solid #dcd4e6}
#page .pricing-group-heading h3{font-size:21px;line-height:1.25;margin:0 0 6px;color:#51415f}
.pricing-group-heading p{font-size:16px;line-height:1.4;margin:0;color:#615769}
.pricing-group-body{display:grid;gap:12px;padding:16px;font-size:18px;line-height:1.4}
.pricing-group-body .field{margin:0;min-width:0}
.pricing-group-body input,.pricing-group-body select,.pricing-group-body textarea{width:100%;max-width:100%;box-sizing:border-box;font-size:18px;min-height:46px}
.pricing-group-body select{white-space:normal}
.pricing-group-body p{margin:0}
.pricing-group-body .list-item{gap:12px;flex-wrap:wrap;margin:0;padding:8px 0}
.pricing-group-body .list-item strong{white-space:nowrap}
.pricing-group-body .btn{min-height:44px}
.insert-pricing-review-table,.insert-pricing-review-table tbody,.insert-pricing-review-table tr,.insert-pricing-review-table td{display:block;width:auto}
.insert-pricing-review-table thead{display:none}
.insert-pricing-review-table{border-collapse:separate;background:transparent}
.insert-pricing-review-table tr{border:1px solid #cfc8df;border-radius:14px;overflow:hidden;margin:0 0 20px;background:#fff}
.insert-pricing-review-table td{border:0;padding:14px 16px;white-space:normal;overflow-wrap:anywhere;font-size:18px;line-height:1.45}
.insert-pricing-review-table td:first-child{background:linear-gradient(110deg,#f4eaf3,#eeeafb 60%,#e7f3f4);border-bottom:1px solid #dcd4e6}
.insert-review-model-name{display:block;font-size:21px;line-height:1.3;color:#51415f}
.insert-pricing-review-table td:last-child:empty{display:none}
.insert-review-detail summary{min-height:44px;display:flex;align-items:center;font-size:16px}
.insert-review-detail p,.insert-review-detail li{font-size:16px}
.insert-review-blockers{margin:10px 0 0;padding-left:22px}
.insert-library-item{margin:12px 0;padding:16px;border:1px solid #d5cee1;border-radius:12px;background:#fff;box-shadow:0 2px 4px #51415f08}

/* Compact customer estimate, preserving readable text and existing controls. */
.estimate-document.estimate-approved-template .estimate-addresses>div,
.estimate-document.estimate-approved-template .estimate-contact-strip,
.estimate-document.estimate-approved-template .estimate-contact-strip>div,
.estimate-document.estimate-approved-template .estimate-document-lines th,
.estimate-document.estimate-approved-template .estimate-document-lines td{border-width:.5px}
.estimate-document.estimate-approved-template .estimate-addresses>div{padding:5px 8px}
.estimate-document.estimate-approved-template .estimate-site-conditions p{white-space:pre-line;overflow-wrap:anywhere}

.selection-surround-section{min-width:0;margin:8px 0;padding:8px;border:.5px solid #cfc8df;border-radius:8px}.selection-surround-section legend{font-weight:700}.selection-surround-section p{margin:0 0 6px;overflow-wrap:anywhere}
/* Approved two-layer flame in the current voice surface. */
.voice-modal .charlotte-restored .charlotte-flame-image{position:absolute;left:50%;top:50%;width:auto;height:clamp(285px,40dvh,345px);object-fit:contain;transform-origin:50% 77%}
.voice-modal .charlotte-restored .flame-image-front{z-index:2;opacity:1;filter:drop-shadow(0 5px 15px #a52ec83d);animation:charlotte-image-idle 4.8s ease-in-out infinite alternate}
.voice-modal .charlotte-restored .flame-image-back{z-index:1;opacity:.46;filter:blur(9px) hue-rotate(12deg);animation:charlotte-image-back 4.2s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.voice-modal .charlotte-restored .charlotte-flame-image{animation:none!important;transform:translate(-50%,-50%)!important}}
