@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--ink:#101d2b;--muted:#5d6b79;--blue:#1d4d8b;--line:#d5dde5;--paper:#f6f8fa;--white:#f4f5f6;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button,.action-link{background:var(--blue);color:white;border:1px solid var(--blue);border-radius:8px;min-height:44px;padding:9px 15px;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:disabled{opacity:.5;cursor:wait}a{color:var(--blue)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79addd;outline-offset:3px}.secondary{background:#f4f5f6;color:var(--blue);border-color:var(--line)}.quiet{background:transparent;border-color:transparent;color:var(--blue);font-size:14px;font-weight:600}.app-header{background:var(--ink);color:white;display:flex;justify-content:space-between;align-items:center;padding:17px max(5%,calc((100vw - 1280px)/2));gap:16px}.app-header .quiet{color:#c1dcf5}.app-brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;font-family:'Barlow Condensed',sans-serif;font-size:25px;font-weight:600;line-height:1.1}.app-brand img{object-fit:contain;background:#f4f5f6;border-radius:4px}.app-brand small{display:block;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:.15em;margin-top:5px;font-weight:400}.app-shell{max-width:1280px;margin:auto;padding:34px 5% 30px}.title-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--blue);font-weight:700;margin:0 0 6px}h1,h2,h3,p{margin-top:0}h1{font-family:'Barlow Condensed',sans-serif;font-size:48px;font-weight:600;line-height:1;margin-bottom:0}h2{font-size:23px;line-height:1.2;margin-bottom:6px}h3{font-size:16px;margin-bottom:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#f4f5f6;border-radius:0;margin-bottom:20px;overflow:hidden}.metrics>.metric{padding:18px 20px;border-right:1px solid var(--line)}.metrics>.metric:last-child{border:0}.metrics strong{display:block;font-family:'Barlow Condensed',sans-serif;font-weight:600;font-size:36px;line-height:1.1}.metrics span{font-size:12px;color:var(--muted)}.settings{background:#e9f0f7;border:1px solid #c9d8e8;border-radius:0;margin-bottom:24px}.settings summary{padding:13px 17px;cursor:pointer;font-size:14px;font-weight:600}.settings summary span{color:var(--muted);font-weight:400;margin-left:8px}.settings-body{padding:0 17px 14px;font-size:14px;max-width:900px}.actions{display:flex;gap:9px;flex-wrap:wrap}.hint,.footer-note{font-size:12px;color:var(--muted);line-height:1.6}.settings-body .hint{margin-top:15px}.inbox-layout{display:grid;grid-template-columns:minmax(260px,350px) minmax(0,1fr);gap:22px;align-items:start}.request-list-panel,.detail-panel{background:#f4f5f6;border:1px solid var(--line);border-radius:0;overflow:hidden}.filters{display:flex;gap:4px;padding:12px;border-bottom:1px solid var(--line);overflow-x:auto}.filters button{background:transparent;border:none;color:var(--muted);font-size:12px;padding:7px 9px;min-height:34px;white-space:nowrap}.filters button.active{background:var(--blue);color:white}.request-card{display:block;width:100%;text-align:left;color:var(--ink);background:#f4f5f6;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:19px 18px}.request-card:last-child{border-bottom:0}.request-card.selected{background:#edf3fa;outline:2px solid #95b4d2;outline-offset:-2px}.card-heading{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:5px}.request-card strong{font-size:16px}.request-card p{margin:0;font-weight:400;font-size:14px;color:var(--muted)}.request-card small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:9px}.badge{font-size:11px;font-weight:600;border-radius:20px;padding:4px 8px;background:#e9edf2;color:#42566d;text-transform:capitalize;white-space:nowrap}.badge.new{background:#dbe9fa;color:#174575}.badge.scheduled{background:#e4eaf3;color:#304675}.badge.closed{background:#f1f2f3;color:#6d747b}.detail-panel{padding:26px;min-height:480px}.detail-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.detail-top .quiet{min-height:30px;padding:0}.detail-meta{color:var(--muted);font-size:14px;margin:7px 0 18px}.detail-section{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.request-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.photos a{display:block}.photos img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:8px;background:#edf0f3}.photos span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}textarea,select,input{width:100%;border:1px solid #b8c5d2;border-radius:8px;padding:11px;background:#f4f5f6;color:var(--ink);font-size:16px}textarea{resize:vertical;min-height:90px}select{min-height:44px}.management{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:end;margin-top:14px}.management .notes{grid-column:1/-1}.messages{display:flex;flex-direction:column;gap:12px;margin:12px 0 18px}.message{background:#f0f3f6;border-radius:0;padding:12px 14px;max-width:94%;align-self:flex-start}.message.shop{background:#e6eff9;align-self:flex-end}.message strong{font-size:12px;color:var(--blue);display:block;margin-bottom:4px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:0}.message time{display:block;font-size:11px;color:var(--muted);margin-top:6px}.reply-form button{margin-top:10px}.empty,.empty-detail{color:var(--muted);padding:24px;font-size:14px}.empty-detail{text-align:center;max-width:360px;margin:75px auto 0}.empty-detail h2{color:var(--ink);font-size:22px}.empty-mark{font-family:'Barlow Condensed',sans-serif;display:inline-block;font-size:54px;font-weight:700;color:#9cb9d5;margin-bottom:12px}.error{color:#a02d2d;font-size:14px;white-space:pre-wrap}.notice{background:#e5eef7;color:#214c75;border-radius:8px;padding:10px 14px;font-size:14px}.error:empty,.notice:empty{display:none}.footer-note{margin-top:20px}.conversation-shell{max-width:720px;margin:30px auto;padding:0 20px}.conversation-shell .detail-panel{padding:25px}.conversation-intro{font-size:14px;color:var(--muted);margin:12px 0 24px}.delivery-row{font-size:12px;color:var(--muted);margin-top:6px}.mobile-back{display:none}.link-box{font-size:14px;overflow-wrap:anywhere}.link-box a{display:inline-block;margin-top:7px}.conversation-shell h1{font-size:38px}
@media(max-width:760px){.app-shell{padding:24px 16px}.app-header{padding:16px}.app-header .quiet{max-width:110px;text-align:right;font-size:12px}h1{font-size:40px}.metrics{grid-template-columns:1fr 1fr}.metrics>.metric{padding:14px 16px}.metrics>.metric:nth-child(2){border-right:0}.metrics>.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.inbox-layout{display:block}.detail-panel{padding:20px;min-height:0}.inbox-layout:not(.has-selection) .detail-panel{display:none}.inbox-layout.has-selection .request-list-panel{display:none}.mobile-back{display:inline-flex;margin-bottom:18px}.title-row{margin-bottom:19px}.photos{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-body .actions button{flex:1}.empty-detail{margin:20px auto}.management{grid-template-columns:1fr}.management .notes{grid-column:auto}.management button{justify-self:start}.message{max-width:100%}.conversation-shell{margin:20px auto;padding:0 14px}.conversation-shell .detail-panel{padding:20px}}

/* Author button display rules must not override semantic hidden controls. */
[hidden]{display:none!important}

.login-shell{max-width:600px;padding-top:64px}.login-shell h1{margin-bottom:20px}.login-shell .hint{margin-top:22px}.google-signin{font-family:Arial,sans-serif;background:#fff;color:#1f1f1f;border:1px solid #747775;border-radius:4px;padding:10px 18px}.app-header button.quiet{color:#c1dcf5}[hidden]{display:none!important}@media(max-width:480px){.login-shell{padding-top:38px}.app-header .actions{justify-content:flex-end}.login-shell h1{font-size:40px}}

.sms-consent-label{display:flex;align-items:flex-start;gap:12px;margin:20px 0;font-size:15px;line-height:1.6}.sms-consent-label input{width:20px;height:20px;flex-shrink:0;margin-top:3px}#sms-phone{max-width:100%;padding:10px;font:inherit}#sms-consent-form{margin-bottom:16px}

.metrics>.metric{display:block;text-align:left;color:var(--ink);background:#f4f5f6;border:0;border-right:1px solid var(--line);border-radius:0;min-width:0;justify-content:start}.metrics>.metric:hover{background:#e9f0f7}.metrics>.metric:focus-visible{outline-offset:-3px}.metrics small{display:block;font-size:11px;color:var(--blue);margin-top:8px;font-weight:500}#requests{scroll-margin-top:20px}#requests-heading{font-size:21px;margin:24px 0 12px}#requests-heading:focus{outline:none}.notification-settings{margin-top:26px;border-top:1px solid var(--line);padding-top:12px}.notification-settings>summary{cursor:pointer;font-size:14px;font-weight:600;padding:8px 0}.notification-settings>summary span{color:var(--muted);font-size:12px;font-weight:400}.notification-settings-body{padding-top:14px}.notification-settings-body .settings:last-child{margin-bottom:0}#analytics-detail{width:min(760px,calc(100% - 28px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:26px;background:#f4f5f6;color:var(--ink)}#analytics-detail::backdrop{background:rgba(16,29,43,.55)}#analytics-chart svg{width:100%;display:block;font-size:12px;fill:var(--muted)}.chart-grid{stroke:var(--line);stroke-width:1}.chart-line{fill:none;stroke:var(--blue);stroke-width:3;stroke-linejoin:round}.chart-point{fill:var(--blue)}.chart-data{margin-top:18px;font-size:14px}.chart-data summary{cursor:pointer}.chart-data table{width:100%;border-collapse:collapse;margin-top:12px;text-align:left}.chart-data caption{text-align:left;font-weight:600;margin-bottom:8px}.chart-data td,.chart-data th{padding:8px;border-bottom:1px solid var(--line)}.chart-data tbody th{font-weight:400}@media(max-width:760px){#analytics-detail{padding:18px}.metrics>.metric{padding:14px 16px}.metrics small{font-size:10px}}

.response-tools>summary{cursor:pointer;font-size:16px;font-weight:600}.response-body{padding-top:16px}.response-body .detail-section{border-top:0;margin-top:0;padding-top:18px}

.request-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:20px 0 18px}.request-fields dt{font-size:12px;color:var(--muted);margin-bottom:4px}.request-fields dd{margin:0;font-size:15px;overflow-wrap:anywhere}.request-fields dd a{font-weight:600}.customer-contact{margin-bottom:8px}.contact-permission{margin-bottom:0}@media(max-width:480px){.request-fields{grid-template-columns:1fr;gap:12px}.customer-contact .action-link{flex:1}}

@media(max-width:600px){#analytics-detail{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0;padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));}.chart-data>summary{min-height:44px;display:flex;align-items:center}}

/* Dedicated quote pages keep the entire screen focused on the list or request. */
#page-title:focus{outline:none}
.page-back{display:inline-block;margin-bottom:20px;text-decoration:none}
a.request-card{display:block;text-decoration:none;color:inherit}
body[data-view="quotes"] .metrics,body[data-view="quote"] .metrics,
body[data-view="quotes"] .notification-settings,body[data-view="quote"] .notification-settings{display:none}
body[data-view="quotes"] .inbox-layout,body[data-view="quote"] .inbox-layout{display:block}
body[data-view="quotes"] #request-detail,body[data-view="quote"] .request-list-panel,
body[data-view="quote"] #requests-heading{display:none}
body[data-view="quote"] #request-detail{display:block}
body[data-view="quotes"] #request-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-view="quotes"] .request-card{margin:0}
@media(max-width:760px){body[data-view="quotes"] #request-list{grid-template-columns:1fr}}

body[data-view="sms"] .metrics,body[data-view="sms"] #requests,body[data-view="sms"] .notification-settings{display:none}
.sms-settings-link{margin:18px 0 0}
body[data-view="sms"] #sms-settings{margin-top:24px}

.requests-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
body[data-view="quote"] .requests-title{display:none}
.unread-label{display:inline-block;margin-left:6px;color:#245182;font-size:12px;font-weight:700}
.customer-updates{margin-top:24px}.customer-updates>div{margin-top:16px}
.inbox-notifications{border:1px solid var(--line);background:var(--white);margin:0 0 20px}.inbox-notifications>summary{padding:14px 18px;font-weight:600;cursor:pointer}.inbox-notifications>summary span{font-size:13px;font-weight:400;color:var(--muted)}.inbox-notifications-body{padding:0 18px 14px}.inbox-notification{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 0}.inbox-notification>a{min-width:0;text-decoration:none;overflow-wrap:anywhere}.inbox-notification strong,.inbox-notification span,.inbox-notification small{display:block}.inbox-notification span{color:var(--muted);font-size:13px}.inbox-notification small{color:var(--muted);font-size:12px}.inbox-notification button{flex-shrink:0}body[data-view="quotes"] .inbox-notifications,body[data-view="quote"] .inbox-notifications,body[data-view="sms"] .inbox-notifications{display:none}@media(max-width:540px){.inbox-notification{align-items:flex-start;flex-direction:column}.inbox-notification button{padding-left:0}.inbox-notifications-body{padding:0 14px 14px}}
.review-followup{background:#e9f0f7;border:1px solid #c9d8e8;padding:20px;margin-top:24px}.review-followup textarea{margin-bottom:14px}.review-followup h3{margin-top:0}.badge.completed{background:#e2ece6;color:#244c37}

/* Individual action counts share the summary's inclusive UTC calendar range. */
#analytics-detail #close-analytics{min-width:44px;min-height:44px}
.contact-analytics{margin:26px 0}.analytics-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-bottom:12px}.analytics-heading h2{font-size:21px;margin:0}.analytics-heading .hint{font-size:13px;margin:0}.contact-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:10px}.contact-metrics span{font-size:14px}.analytics-meaning{margin:0;max-width:740px;font-size:13px}body[data-view="quotes"] .contact-analytics,body[data-view="quote"] .contact-analytics,body[data-view="sms"] .contact-analytics{display:none}
@media(max-width:760px){.contact-metrics>.metric:nth-child(n){border:0;border-right:1px solid var(--line);padding:16px 12px}.contact-metrics>.metric:last-child{border-right:0}.contact-metrics span{font-size:12px}.contact-metrics strong{font-size:32px}.analytics-heading{display:block}.analytics-heading .hint{margin-top:6px}}

/* Aggregate conversion tables stay readable without widening the phone page. */
.conversion-analytics{margin:30px 0;padding-top:22px;border-top:1px solid var(--line);min-width:0}.conversion-analytics>h2{font-size:21px}.conversion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.conversion-analytics h3{margin-top:20px}.analytics-table{width:100%;min-width:0}.analytics-table table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;text-align:left}.analytics-table td,.analytics-table th{padding:10px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}.analytics-table th:first-child{width:48%}.analytics-table tbody th{font-weight:400}.analytics-browser-settings{margin-top:24px}.analytics-browser-settings>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.analytics-browser-settings .actions button{min-height:44px}body[data-view="quotes"] .conversion-analytics,body[data-view="quote"] .conversion-analytics,body[data-view="sms"] .conversion-analytics{display:none}
@media(max-width:760px){.conversion-grid{grid-template-columns:minmax(0,1fr);gap:0}.analytics-table table{font-size:13px}.analytics-table th,.analytics-table td{padding:10px 5px}#page-totals th:first-child{width:36%}#placement-totals th:first-child{width:42%}.analytics-browser-settings .actions{display:grid;grid-template-columns:minmax(0,1fr)}}
