:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233b34;background:#f6f8f5;font-synthesis:none;--brand:#246e55;--brand-dark:#195540;--ink:#233b34;--muted:#687b73;--line:#e1e9e3;--surface:#fff;--radius:20px;--shadow:0 6px 24px #213d2c05}
*{box-sizing:border-box}body{margin:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;min-height:46px;border:0;border-radius:12px;font-weight:650;line-height:1.25;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--brand);text-underline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #e7b95c;outline-offset:3px}input,textarea{width:100%;min-width:0;border:1px solid #ccd9d0;border-radius:12px;padding:13px 14px;background:#fff;font-size:16px;color:var(--ink);line-height:1.5}input:focus,textarea:focus{outline:3px solid #d5eadf;border-color:var(--brand)}input::placeholder,textarea::placeholder{color:#8a9991}label{display:block;font-size:13px;font-weight:650;margin:20px 0 8px}.primary{background:var(--brand);color:white;box-shadow:0 3px 6px #246e5512}.primary:hover:not(:disabled){background:var(--brand-dark)}.secondary{background:#edf2ed;color:#415b4d;border:1px solid #e0e8e1}.secondary:hover:not(:disabled){background:#e1ebe2}.text-button{background:transparent;color:var(--brand);padding:7px 8px;font-size:13px}.hero-secondary{background:#fff9;color:var(--brand);border:1px solid #bcd2c3}.icon-button{height:44px;width:44px;min-width:44px;padding:10px;color:#60736a;background:#f0f4f0}.icon{width:20px;height:20px;flex:none;vertical-align:middle}.icon-tile{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;flex:none}.icon-tile .icon{width:23px;height:23px}.soft-blue{background:#e9f0fb;color:#507db2}.soft-green{background:#e8f2eb;color:#478268}.soft-peach{background:#fff0df;color:#b17b3f}.logo{font-weight:800;font-size:30px;letter-spacing:-1.3px;color:#233b34;text-decoration:none;display:block;line-height:1.2}.logo span{color:#3d8a69}.logo small{display:block;font-size:10px;font-weight:500;letter-spacing:1px;color:#75867a;margin-top:5px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;line-height:1.6;margin:0;color:#74877a}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pill{display:inline-block;white-space:nowrap;border-radius:30px;font-size:11px;padding:7px 12px;font-weight:650;color:#62836b;background:#f0f5ed}.field-help{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}.notice{background:#fff4dc;border:1px solid #f1e1ba;color:#8b6428;border-radius:12px;padding:14px 16px;line-height:1.6;margin:0 0 20px}
/* Sign in */
.login-shell{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(35px,7vw,110px);max-width:1150px;margin:auto;padding:55px 35px}.login-story>.logo{margin-bottom:30px}.login-story>.shop-art{width:240px;display:block;margin:0 0 22px}.login-story h1{font-size:clamp(34px,4.5vw,54px);line-height:1.12;letter-spacing:-2px;margin:14px 0 20px}.login-story>p:not(.eyebrow){font-size:16px;line-height:1.8;color:var(--muted)}.trust-note{display:flex;align-items:center;gap:10px;font-size:12px;color:#63836b;margin-top:25px}.trust-note .icon{width:16px;height:16px}.login-card{padding:38px;border:1px solid var(--line);border-radius:26px;box-shadow:0 12px 50px #25403408;background:white;min-width:0}.login-card h2{font-size:27px;letter-spacing:-.8px;margin:10px 0}.login-card>.muted{font-size:14px;line-height:1.7;margin:0 0 25px}.login-submit{width:100%;margin-top:25px;justify-content:space-between}.password-field{position:relative}.password-field input{padding-right:75px}.password-field button{position:absolute;right:4px;top:4px;min-height:42px;background:transparent;padding:8px 12px;font-size:12px;color:var(--brand)}.account-help{display:flex;gap:10px;margin-top:25px;padding:15px 0;border-top:1px solid var(--line)}.account-help .icon{width:16px;height:16px;margin-top:3px;color:#93a18e}.account-help p{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}.account-help strong{color:#4a6154}.login-links{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.login-links .text-button{font-size:12px;padding-left:0}.login-links .icon{width:15px;height:15px}
/* Workspace */
#app{display:flex;min-height:100dvh}.sidebar{width:236px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:30px 19px 18px;position:sticky;top:0;height:100dvh;overflow-y:auto;display:flex;flex-direction:column}.sidebar>.logo{margin:0 13px 38px}.nav-caption{font-size:9px;font-weight:700;letter-spacing:1.5px;margin:0 13px 13px;color:#98a493}.sidebar nav{display:grid;gap:6px}.nav{background:transparent;text-align:left;justify-content:flex-start;color:#6a7c71;padding:14px 16px;font-size:14px}.nav .icon{width:20px;height:20px}.nav.active{background:#eaf2e8;color:#246e55}.nav:hover{background:#f0f5ee}.sidebar-tip{margin:35px 6px 24px;padding:17px;background:#f6f8f2;border:1px solid #edf0e7;border-radius:16px}.sidebar-tip .icon-tile{width:35px;height:35px;border-radius:10px;margin-bottom:12px}.sidebar-tip .icon{width:18px;height:18px}.sidebar-tip strong{display:block;font-size:12px}.sidebar-tip p{font-size:11px;line-height:1.7;color:var(--muted);margin:7px 0}.sidebar-tip .text-button{padding:6px 0;font-size:11px;min-height:36px}.sidebar-tip .text-button .icon{width:14px;height:14px}.sidebar-bottom{margin-top:auto;padding:16px 9px 0;border-top:1px solid var(--line);display:grid;gap:13px}.sidebar-bottom>span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.sidebar-bottom button{font-size:12px;justify-content:flex-start;background:transparent;border:0;padding:8px 0;min-height:36px}.sidebar-bottom .icon{width:17px;height:17px}.content{width:100%;max-width:1380px;min-width:0;margin:0 auto;padding:36px clamp(22px,4vw,62px) 45px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.page-header>div{min-width:0}.page-header .eyebrow{overflow-wrap:anywhere}.page-header h1{font-size:28px;letter-spacing:-.9px;line-height:1.25;margin:6px 0 0}.page-header>.secondary{font-size:12px;padding:10px 14px;min-height:42px;flex:none}.page-header>.secondary .icon{width:16px;height:16px}.sync-status{font-size:11px;color:#879489;margin:10px 0 25px;line-height:1.6;min-height:18px}.panel{padding:27px;border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:var(--shadow);margin:22px 0}.panel h2{font-size:19px;letter-spacing:-.4px;margin:0 0 13px}.panel p{line-height:1.8;color:var(--muted);font-size:14px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading h2{margin:6px 0}.section-heading>.secondary{font-size:12px;flex:none}.section-heading .eyebrow{font-size:9px}
/* Home */
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 235px;align-items:center;gap:15px;border:1px solid #dbe8d9;border-radius:24px;background:#edf4e9;padding:30px 32px;overflow:hidden}.hero-tag{font-size:11px;color:#5a7a60;display:inline-flex;gap:7px;align-items:center;background:#fff9;padding:6px 10px;border-radius:25px;max-width:100%;overflow-wrap:anywhere}.hero-tag .icon{width:15px;height:15px}.hero h2{font-size:clamp(26px,3vw,37px);line-height:1.17;letter-spacing:-1.2px;margin:17px 0 12px}.hero-copy>p{font-size:13px;color:#71816d;line-height:1.7;margin:0 0 22px}.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hero-actions button{font-size:12px;min-height:44px}.hero-actions .icon{width:16px;height:16px}.hero>.shop-art{width:100%;max-width:235px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.stats article{display:flex;align-items:center;gap:15px;background:white;border:1px solid var(--line);border-radius:17px;padding:21px;min-width:0}.stats article p{font-size:11px;color:var(--muted);margin:0 0 5px}.stats article strong{font-size:27px;font-weight:750;letter-spacing:-1px}.stats .icon-tile{width:44px;height:44px;border-radius:13px}.steps{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.steps li{display:flex;align-items:flex-start;gap:12px}.step-number{background:#f4f6ef;color:#748563;border:1px solid #e6ebdd;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:10px;flex:none;font-size:11px;font-weight:750}.steps h3{font-size:12px;margin:4px 0 8px;line-height:1.5}.steps p{font-size:11px;line-height:1.9;margin:0}
/* Customers */
.customer-searchbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border:1px solid var(--line);border-radius:16px;padding:10px 12px}.search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.search-field>.icon{margin-left:4px;color:#8b9b8e;width:19px;height:19px}.search-field input{border:0;background:transparent;padding:9px 4px;border-radius:6px;font-size:13px}.search-field input:focus{outline:2px solid #d5eadf}.customer-filters{display:flex;align-items:center;gap:5px;flex:none;background:#f5f7f2;border-radius:10px;padding:4px}.filter-button{min-height:36px;padding:8px 11px;font-size:11px;font-weight:550;background:transparent;color:#84917d;border-radius:8px}.filter-button.active{background:#fff;color:#2d694c;box-shadow:0 2px 5px #213d2c09}.customer-tools{display:grid;gap:8px;margin:13px 0 17px}.customer-tools .small{font-size:11px}.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.customer-card{min-width:0;padding:22px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:var(--shadow);position:relative}.customer-card-top{display:flex;gap:12px;align-items:flex-start;min-width:0}.customer-avatar{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;font-size:13px;font-weight:700;letter-spacing:.3px;color:#507863;background:#edf3e8;flex:none}.customer-card:nth-child(3n+2) .customer-avatar{background:#eaf0f9;color:#6385ad}.customer-card:nth-child(3n) .customer-avatar{background:#fbefdf;color:#ad8555}.customer-heading{flex:1;min-width:0;padding-top:2px}.customer-heading h2{font-size:14px;line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere;letter-spacing:-.2px}.customer-phone{color:#7e8f81;font-size:11px;overflow-wrap:anywhere}.customer-menu{position:relative;flex:none}.customer-menu summary{list-style:none;cursor:pointer;color:#96a08f;border-radius:7px;padding:0 5px;min-height:36px;min-width:32px;font-size:22px;text-align:center;line-height:28px}.customer-menu summary::-webkit-details-marker{display:none}.customer-menu[open] summary{background:#f1f5ed}.customer-menu-content{position:absolute;z-index:3;right:0;top:38px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 7px 25px #1c352219;padding:5px;min-width:155px}.customer-menu-content button{width:100%;font-size:12px;justify-content:flex-start;min-height:42px;background:transparent;color:#4d6857;padding:10px;border-radius:8px}.customer-menu-content button:hover{background:#f5f7f2}.customer-menu-content button.danger{color:#b35f54}.customer-address{font-size:11px;color:#91a08e;margin:13px 0 0;line-height:1.6;min-height:18px;overflow-wrap:anywhere}.customer-message-cell{margin:15px 0 18px;padding-top:14px;border-top:1px solid #edf1e9;min-height:70px}.customer-message-preview{color:#697d6b;font-size:12px;line-height:1.7;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:6px}.customer-message-time{font-size:10px;color:#a1ac9b}.customer-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.reply-badge{font-size:9px;font-weight:600;display:inline-flex;gap:5px;align-items:center;color:#87a080;line-height:1.5}.reply-badge.ready{color:#458b68}.reply-badge.ready::before{content:'';width:5px;height:5px;background:#65a983;border-radius:50%;flex:none}.chat-action{background:#edf4e9;color:#397553;font-size:11px;min-height:40px;border-radius:10px;padding:9px 12px;flex:none}.chat-action .icon{width:14px;height:14px}.chat-action:hover{background:#deecd9}.customer-empty{grid-column:1/-1;text-align:center;padding:45px 24px;background:white;border:1px dashed #cbdac7;border-radius:20px}.customer-empty>.icon-tile{margin-bottom:15px}.customer-empty h2{font-size:20px;letter-spacing:-.4px;margin:0 0 10px}.customer-empty p{font-size:13px;color:var(--muted);line-height:1.8;max-width:360px;margin:0 auto 20px}.customer-empty .primary{font-size:12px}
/* WhatsApp, help */
.account-intro{display:flex;align-items:center;gap:16px;margin-bottom:20px}.account-intro h2{font-size:19px;letter-spacing:-.3px;margin:0 0 7px}.account-intro p{margin:0;font-size:13px;line-height:1.7}#whatsapp-account-status{font-size:12px;color:#778d79;line-height:1.7;margin:18px 0}.whatsapp-account-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.whatsapp-account-details>div{min-width:0;background:#f7f9f4;border:1px solid #ebf0e4;padding:17px;border-radius:13px}.whatsapp-account-details dt{font-size:10px;color:#8a9a82;margin-bottom:8px}.whatsapp-account-details dd{font-size:15px;font-weight:650;margin:0;overflow-wrap:anywhere}.whatsapp-account-details .technical-detail dd{font-size:12px;font-weight:500;color:#8a9a82}.gentle-note{display:flex;gap:11px;padding:15px;background:#f7f8f2;border-radius:12px;align-items:flex-start}.gentle-note>.icon{color:#9aa582;width:17px;height:17px;margin-top:3px}.gentle-note p{margin:0;font-size:11px;line-height:1.9}.install-panel>.icon-tile{margin-bottom:20px}.install-panel>h2{font-size:25px;letter-spacing:-.8px}.install-panel>.primary{margin:5px 0 15px;font-size:12px}.install-platforms{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);margin-top:16px;padding-top:20px}.install-platforms h3{font-size:13px;margin:0 0 8px}.install-platforms p{font-size:12px;margin:0}.help-faq details{border-top:1px solid var(--line);padding:17px 0}.help-faq details:last-child{padding-bottom:0}.help-faq summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.7}.help-faq details p{font-size:12px;line-height:1.9;margin:12px 0 0}.support-card{display:flex;gap:16px;align-items:flex-start;border-radius:20px;padding:24px;border:1px solid #efe7d7;background:#fbf7ec}.support-card h2{font-size:17px;letter-spacing:-.3px;margin:0 0 7px}.support-card p{font-size:12px;color:#8f8d75;line-height:1.8;margin:0 0 10px}.support-card a{font-size:12px;font-weight:650;text-decoration:none}.support-card .icon{width:15px;height:15px}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:25px;font-size:10px;color:#8f9b88}
/* Dialogs and chat */
dialog{color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:30px;width:min(480px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto;box-shadow:0 30px 100px #18351f24}dialog::backdrop{background:#233b3466;backdrop-filter:blur(3px)}dialog h2{font-size:24px;letter-spacing:-.7px;margin:18px 0 10px}dialog p{font-size:13px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:24px}.dialog-actions button{font-size:13px}.dialog-actions .primary{min-width:145px}#customer-form>p.muted{margin:0 0 23px}#customer-form label{font-size:12px}#customer-form label .muted{font-weight:400}.customer-card label{margin:0}#reply-dialog{padding:0;width:min(680px,calc(100vw - 40px));height:min(800px,90dvh);max-height:90dvh;overflow:hidden}#reply-dialog[open]{display:flex;flex-direction:column}.reply-dialog-header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);flex-shrink:0;background:#fff}.reply-dialog-header>div{flex:1;min-width:0}.reply-dialog-header h2{font-size:16px;margin:0 0 4px;letter-spacing:-.25px;overflow-wrap:anywhere}.reply-dialog-header p{font-size:11px;margin:0;color:#8c9b86}.reply-dialog-header .icon-tile{width:39px;height:39px;border-radius:12px}.reply-dialog-header .icon-tile .icon{width:19px;height:19px}.reply-thread{padding:24px;flex:1;min-height:40px;overflow-y:auto;overscroll-behavior:contain;background:#f3f6ef;display:flex;flex-direction:column;gap:13px}.chat-bubble{max-width:83%;width:fit-content;border-radius:16px;padding:12px 15px;line-height:1.7;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap;flex-shrink:0}.chat-bubble.incoming{align-self:flex-start;background:#fff;border:1px solid #e2e9dd;border-bottom-left-radius:5px}.chat-bubble.outgoing{align-self:flex-end;background:#dfeedd;border:1px solid #d1e4cc;border-bottom-right-radius:5px}.chat-meta{font-size:9px;margin-top:7px;color:#8a9c80;line-height:1.7}.reply-empty{margin:auto;color:#95a28c;font-size:13px;text-align:center;max-width:300px}.reply-empty .icon-tile{margin:0 auto 15px}.reply-empty p{margin:0;font-size:12px}#reply-form{padding:13px 22px 20px;flex-shrink:0;border-top:1px solid var(--line);background:#fff}.reply-window-note{font-size:10px;color:#649068;margin:0 0 9px;line-height:1.7;display:flex;align-items:center;gap:7px}.reply-window-note::before{content:'';width:5px;height:5px;background:#65a983;border-radius:50%;flex:none}.reply-window-note.warning{color:#a78045}.reply-window-note.warning::before{background:#d6ad66}.quick-replies{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px;margin-bottom:5px}.quick-reply{white-space:nowrap;border:1px solid #e2e9dc;background:#fff;color:#87947d;min-height:34px;padding:7px 11px;border-radius:20px;font-size:10px;font-weight:500}.quick-reply:hover{background:#f3f7ef}#reply-message{resize:vertical;min-height:85px;max-height:150px;font-size:14px;background:#fafbf8;border-color:#e0e7d9}#reply-form .dialog-actions{margin-top:10px}#reply-form .dialog-actions .primary{font-size:12px}.reply-dialog-header .icon-button{width:38px;min-width:38px;height:38px;min-height:38px;background:transparent;padding:8px}.reply-dialog-header .icon-button:hover{background:#f3f6ef}.reply-dialog-header .icon-button .icon{width:17px;height:17px}#install-dialog .icon-tile{margin-bottom:0}#install-dialog h2{margin-top:17px}#install-dialog p{color:var(--muted)}#install-dialog>.primary{margin-top:8px;font-size:13px}
#toast{position:fixed;bottom:25px;right:25px;max-width:min(430px,calc(100vw - 28px));z-index:50;display:none;background:#294d3c;color:#fff;padding:14px 19px;line-height:1.7;font-size:13px;border-radius:15px;box-shadow:0 7px 30px #1e3b2922}#offline-banner{position:sticky;top:0;z-index:30;padding:11px 16px;background:#fff0cd;color:#80652e;font-size:12px;text-align:center;line-height:1.6}[hidden]{display:none!important}
@media(min-width:1500px){.content{padding-top:45px}.hero{grid-template-columns:minmax(0,1fr) 270px}.hero>.shop-art{max-width:270px}}
@media(max-width:1150px){.sidebar{width:205px;padding:27px 14px}.content{padding:30px 25px}.hero{grid-template-columns:minmax(0,1fr) 170px;padding:26px}.hero h2{font-size:29px}.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats article{padding:17px;gap:10px}.stats .icon-tile{width:37px;height:37px;border-radius:11px}.stats article p{font-size:10px}.steps{grid-template-columns:1fr;gap:18px}.steps li{gap:14px}.steps h3{margin:0 0 4px}.steps p{max-width:420px}}
@media(max-width:800px){.sidebar{width:180px;padding-left:10px;padding-right:10px}.sidebar>.logo{margin-left:12px}.nav{padding:14px 12px;font-size:12px}.nav-caption{font-size:8px}.sidebar-tip{padding:13px}.content{padding:25px 20px}.page-header h1{font-size:24px}.hero{grid-template-columns:minmax(0,1fr) 110px;padding:23px}.hero h2{font-size:27px}.hero-actions{gap:8px}.hero-actions button{font-size:11px;padding:11px}.hero-actions .icon{width:14px;height:14px}.stats{gap:9px}.stats article{display:block;padding:15px}.stats .icon-tile{width:32px;height:32px;border-radius:10px;margin-bottom:12px}.stats .icon-tile .icon{width:17px;height:17px}.stats article strong{font-size:24px}.customer-searchbar{flex-wrap:wrap}.search-field{flex-basis:100%}.customer-filters{width:100%;display:grid;grid-template-columns:1fr 1fr}.customer-grid{gap:12px}.customer-card{padding:17px}.customer-heading h2{font-size:13px}.customer-avatar{width:35px;height:35px;border-radius:12px;font-size:11px}.customer-card-top{gap:9px}.customer-menu summary{min-width:24px;padding:0}.customer-card-bottom{align-items:flex-start;flex-direction:column;gap:12px}.customer-card-bottom .chat-action{width:100%}.whatsapp-account-details{grid-template-columns:1fr}.panel{padding:22px}.install-platforms{grid-template-columns:1fr}.login-shell{gap:30px;padding:40px 25px}.login-card{padding:28px}.login-story h1{font-size:37px}.login-story>.shop-art{width:190px}}
@media(max-width:620px){
.login-shell{display:block;padding:26px 20px 35px;min-height:100dvh;max-width:470px}.login-story>.logo{margin-bottom:0;font-size:27px}.login-story>.shop-art{position:absolute;top:22px;right:12px;width:105px;margin:0}.login-story{position:relative;padding-top:0}.login-story>.eyebrow,.login-story>.trust-note{display:none}.login-story h1{font-size:31px;letter-spacing:-1.2px;margin:25px 0 12px;max-width:75%}.login-story>p:not(.eyebrow){font-size:12px;line-height:1.7;margin-bottom:20px}.login-card{padding:26px 22px;border-radius:21px}.login-card h2{font-size:23px}.login-card>.muted{font-size:12px;margin-bottom:22px}.login-card label{font-size:12px}.login-card .eyebrow{font-size:9px}.login-submit{margin-top:22px}.account-help{margin-top:22px}.account-help p{font-size:11px}.login-links{font-size:10px}.login-links .text-button{font-size:11px}
#app{display:block}.sidebar{position:static;width:100%;height:auto;overflow:visible;background:#fff;padding:15px 18px 12px;border-right:0;border-bottom:1px solid var(--line);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px}.sidebar>.logo{font-size:25px;margin:0}.sidebar>.logo small{font-size:8px;margin-top:3px}.nav-caption,.sidebar-tip{display:none}.sidebar-bottom{border:0;padding:0;margin:0;gap:3px;align-items:flex-end}.sidebar-bottom>span{font-size:9px;max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-bottom button{padding:2px 0;min-height:30px;font-size:10px;gap:5px}.sidebar-bottom .icon{width:13px;height:13px}.sidebar nav{position:fixed;z-index:20;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;box-shadow:0 -5px 25px #213d2c05}.nav{flex-direction:column;gap:5px;font-size:9px;padding:8px 4px;border-radius:13px;min-height:56px}.nav .icon{width:20px;height:20px}.content{padding:24px 17px calc(110px + env(safe-area-inset-bottom))}.page-header h1{font-size:24px;letter-spacing:-.8px}.page-header .eyebrow{font-size:9px}.page-header>.secondary{min-height:40px;padding:10px;font-size:11px;gap:6px}.page-header>.secondary .icon{width:14px;height:14px}.sync-status{font-size:9px;line-height:1.7;margin:9px 0 20px}.hero{padding:24px;display:block;border-radius:20px}.hero-copy{position:relative;z-index:1}.hero>.shop-art{position:absolute;right:-25px;top:17px;width:150px;opacity:.16;max-width:none}.hero h2{font-size:29px;letter-spacing:-1px;margin-top:17px}.hero-copy>p{font-size:11px;max-width:240px;margin-bottom:20px}.hero-tag{font-size:9px;max-width:240px}.hero-actions{gap:8px}.hero-actions button{font-size:10px;min-height:42px;padding:11px 12px}.stats{gap:9px;margin:15px 0}.stats article{border-radius:14px;padding:14px}.stats .icon-tile{margin-bottom:12px}.stats article p{font-size:9px}.stats article strong{font-size:24px}.panel{border-radius:18px;padding:22px;margin:18px 0}.section-heading{align-items:flex-start;gap:10px}.section-heading h2{font-size:17px;line-height:1.5}.section-heading>.pill{font-size:9px;padding:6px 9px;margin-top:3px}.section-heading .eyebrow{font-size:8px}.steps{gap:20px;margin-top:22px}.steps h3{font-size:12px}.steps p{font-size:11px}.step-number{width:27px;height:27px;border-radius:9px}.getting-started .section-heading>.pill{display:none}.customer-searchbar{padding:9px;border-radius:14px;gap:9px}.search-field input{font-size:16px;padding:9px 3px;letter-spacing:-.3px}.search-field input::placeholder{font-size:12px;letter-spacing:0}.search-field>.icon{width:17px;height:17px}.customer-filters{padding:3px;gap:4px}.filter-button{font-size:10px;min-height:37px}.customer-tools{margin:10px 0 14px}.customer-tools .small{font-size:10px}.customer-grid{grid-template-columns:1fr;gap:13px}.customer-card{padding:20px;border-radius:17px}.customer-avatar{width:44px;height:44px;border-radius:14px;font-size:13px}.customer-heading h2{font-size:15px}.customer-phone{font-size:12px}.customer-card-top{gap:12px}.customer-menu summary{min-width:36px;min-height:40px}.customer-address{font-size:11px;margin-top:13px}.customer-message-cell{min-height:0;margin:13px 0 16px}.customer-message-preview{font-size:12px}.customer-card-bottom{align-items:center;flex-direction:row;gap:10px}.customer-card-bottom .chat-action{width:auto;font-size:11px;min-height:43px;padding:11px 14px}.reply-badge{font-size:9px}.customer-empty{padding:35px 20px}.customer-empty p{font-size:12px}.account-intro{gap:12px}.account-intro h2{font-size:17px}.account-intro p{font-size:12px}.account-intro .icon-tile{width:42px;height:42px}.whatsapp-account-panel .section-heading{align-items:center}.whatsapp-account-panel .section-heading h2{font-size:16px}.section-heading>.secondary{font-size:10px;padding:10px;min-height:42px;gap:6px}.section-heading>.secondary .icon{width:14px;height:14px}.whatsapp-account-details{grid-template-columns:1fr;gap:10px}.gentle-note{padding:13px}.panel p{font-size:12px;line-height:1.9}.install-panel>h2{font-size:23px}.install-platforms{gap:22px}.help-faq summary{font-size:12px}.help-faq details{padding:17px 0}.support-card{padding:22px;gap:12px}.support-card>.icon-tile{width:38px;height:38px;border-radius:12px}.support-card h2{font-size:16px}.support-card p{font-size:11px}.app-footer{font-size:9px;align-items:flex-start;flex-wrap:wrap}dialog{padding:25px 22px;border-radius:21px;max-height:calc(var(--visible-height,100dvh) - 30px)}dialog h2{font-size:23px}.dialog-actions{gap:8px}.dialog-actions button{font-size:12px}.dialog-actions .primary{min-width:135px}#reply-dialog{width:100vw;max-width:100vw;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);margin:0;border:0;border-radius:0;padding-top:env(safe-area-inset-top)}.reply-dialog-header{padding:13px 14px;gap:9px}.reply-dialog-header h2{font-size:15px}.reply-dialog-header p{font-size:10px}.reply-dialog-header .icon-tile{width:35px;height:35px;border-radius:11px}.reply-dialog-header .icon-button{width:36px;min-width:36px;height:42px;min-height:42px}.reply-thread{padding:20px 15px;gap:13px}.chat-bubble{max-width:87%;font-size:13px;padding:11px 14px}.chat-meta{font-size:9px}#reply-form{padding:11px 14px calc(12px + env(safe-area-inset-bottom))}.reply-window-note{font-size:9px;margin-bottom:8px}.quick-replies{gap:6px;padding-bottom:4px;margin-bottom:6px}.quick-reply{min-height:37px;font-size:10px;padding:9px 12px}#reply-message{font-size:16px;min-height:74px;max-height:120px;resize:none}.dialog-actions{margin-top:20px}#reply-form .dialog-actions{margin-top:9px}#reply-form .dialog-actions .primary{font-size:12px}#toast{bottom:calc(95px + env(safe-area-inset-bottom));right:14px;font-size:12px;padding:13px 16px}.notice{font-size:12px}#offline-banner{font-size:11px}
}
@media(max-width:350px){.content{padding-left:12px;padding-right:12px}.hero{padding:20px}.hero h2{font-size:26px}.stats{gap:6px}.stats article{padding:11px}.stats article p{font-size:8px}.hero-actions{flex-direction:column;align-items:stretch}.page-header h1{font-size:21px}.sidebar-bottom>span{max-width:135px}.login-shell{padding:22px 14px}.login-card{padding:23px 18px}.login-links{gap:8px}.reply-dialog-header .chat-header-icon{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the iCRM blue brand and comfortable reading sizes. */
:root{--brand:#1766dc;--brand-dark:#1055bd}.logo span{color:#3e85f6}.nav.active{color:#1766dc;background:#eaf1fb}.login-card>.muted{font-size:15px}.nav-caption{font-size:10px}.sidebar-tip strong{font-size:13px}.sidebar-tip p{font-size:12px}.sidebar-bottom>span{font-size:12px}.sync-status{font-size:12px}.hero-copy>p{font-size:14px}.hero-actions button{font-size:13px}.stats article p{font-size:13px}.steps h3{font-size:14px}.steps p{font-size:13px}.search-field input{font-size:16px}.filter-button{font-size:12px;min-height:42px}.customer-tools .small{font-size:12px}.customer-heading h2{font-size:16px}.customer-phone{font-size:13px}.customer-address{font-size:12px}.customer-message-preview{font-size:14px}.customer-message-time{font-size:11px}.reply-badge{font-size:11px}.chat-action{font-size:13px;min-height:44px}.customer-empty p{font-size:14px}.customer-empty .primary{font-size:13px}.account-intro p{font-size:14px}#whatsapp-account-status{font-size:13px}.whatsapp-account-details dt{font-size:12px}.gentle-note p{font-size:13px}.help-faq summary{font-size:14px}.help-faq details p{font-size:14px}.install-platforms p{font-size:14px}.support-card p{font-size:13px}.app-footer{font-size:11px}.quick-reply{font-size:12px;min-height:44px}.reply-window-note{font-size:12px}.reply-dialog-header .icon-button{width:44px;height:44px;min-height:44px;min-width:44px}.chat-bubble{font-size:15px}.chat-meta{font-size:11px}#reply-message{font-size:16px}.field-help{font-size:13px}.login-links{font-size:12px}.account-help p{font-size:13px}.sidebar-tip .text-button{font-size:12px}
@media(max-width:1150px){.customer-card-bottom{align-items:flex-start;flex-direction:column;gap:12px}.customer-card-bottom .chat-action{width:100%}}
@media(max-width:800px){.stats article p{font-size:12px}.hero-actions button{font-size:12px}.customer-searchbar{gap:10px}}
@media(max-width:620px){.sidebar-bottom>span{font-size:10px}.nav{font-size:11px;min-height:60px}.sidebar-bottom button{font-size:11px}.sync-status{font-size:11px}.hero-copy>p{font-size:13px}.hero-actions button{font-size:12px}.hero-tag{font-size:11px}.stats article p{font-size:11px}.steps h3{font-size:14px}.steps p{font-size:13px}.filter-button{font-size:12px;min-height:44px}.customer-tools .small{font-size:12px}.customer-heading h2{font-size:16px}.customer-phone{font-size:13px}.customer-address{font-size:12px}.customer-message-preview{font-size:14px}.customer-message-time{font-size:11px}.customer-card-bottom{align-items:center;flex-direction:row}.customer-card-bottom .chat-action{width:auto;font-size:13px;min-height:46px;padding:11px 14px}.reply-badge{font-size:11px}.panel p{font-size:14px}.help-faq summary{font-size:14px}.support-card p{font-size:13px}.app-footer{font-size:11px}.login-card label{font-size:13px}.login-story>p:not(.eyebrow){font-size:14px}.login-card>.muted{font-size:14px}.account-help p{font-size:12px}.login-links{font-size:11px}.login-links .text-button{font-size:12px}.quick-reply{min-height:42px;font-size:12px}.reply-window-note{font-size:11px}.reply-dialog-header .icon-button{width:44px;min-width:44px;height:44px;min-height:44px}.chat-bubble{font-size:15px}.chat-meta{font-size:11px}.reply-dialog-header h2{font-size:16px}.reply-dialog-header p{font-size:12px}#reply-form .dialog-actions .primary{font-size:14px}.reply-dialog-header .chat-header-icon{display:none}.section-heading>.secondary{font-size:12px}}
@media(max-width:350px){.stats article p{font-size:10px}.customer-card-bottom{align-items:stretch;flex-direction:column}.customer-card-bottom .chat-action{width:100%}.page-header>.secondary>span{display:none}.page-header>.secondary{width:44px;height:44px}}
/* Readable secondary text, including on smaller screens. */
:root{--muted:#5f7267}.eyebrow,.nav-caption,.sync-status,.customer-phone,.customer-address,.customer-message-time,.reply-dialog-header p,.whatsapp-account-details dt,.whatsapp-account-details .technical-detail dd,.reply-empty,.app-footer,.customer-menu summary{color:#657568}.customer-message-preview{color:#526b59}.reply-badge{color:#627760}.reply-badge.ready{color:#34704e}.filter-button{color:#62735e}.quick-reply{color:#52694b}.chat-meta{color:#526d49}.hero-copy>p{color:#5e7257}.hero-tag{color:#466448}.support-card p{color:#736e55}.customer-empty p{color:var(--muted)}#whatsapp-account-status{color:#59725b}.logo small{color:#61705f}.customer-heading h2{font-weight:700}.whatsapp-account-details dt{line-height:1.6}.customer-menu-content button:focus-visible{outline-offset:-2px}
/* Pilot owner and team workspace */
.workspace-bar{display:flex;align-items:center;gap:13px;padding:13px 16px;background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:18px;flex-wrap:wrap}.workspace-bar label{margin:0;font-size:12px}.workspace-bar select{font:inherit;font-size:14px;max-width:100%;min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.pilot-notice{font-size:12px;line-height:1.7;background:#fff8e8;color:#7b6435;padding:12px 15px;border-radius:12px;margin:0 0 20px}.shop-directory-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.shop-directory-card h3{margin:0 0 8px;font-size:16px}.shop-directory-card p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.shop-directory-card button{font-size:12px}#create-shop-form,#connect-shop-form,#invite-worker-form{max-width:500px}#create-shop-form>.primary,#connect-shop-form>.primary,#invite-worker-form>.primary,#password-setup-form>.primary{margin-top:20px}#password-setup-dialog{max-height:calc(var(--visible-height,100dvh) - 30px)}
@media(max-width:620px){.sidebar nav{grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:3px;padding-left:7px;padding-right:7px}.sidebar nav .nav{font-size:9px;padding-left:1px;padding-right:1px;gap:6px}.workspace-bar{gap:9px;padding:12px}.workspace-bar label{font-size:11px}.workspace-bar .pill{font-size:10px}.workspace-bar select{flex-basis:65%;font-size:14px}.pilot-notice{font-size:11px}.shop-directory-card button{font-size:11px}}

/* Explicit, accessible template preview; shared by all shop roles. */
.template-panel{padding:16px 22px;overflow-y:auto;max-height:55vh;min-height:0}.template-panel h3{margin:0 0 8px}.template-panel label{display:block;margin:12px 0 6px}.template-panel input:not([type=checkbox]){width:100%;font:inherit;font-size:16px}.template-preview{padding:14px;border:1px solid #cce9d4;background:#e3f5e9;border-radius:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.template-panel .template-check{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5}.template-check input{width:20px;height:20px;min-width:20px;margin-top:2px}.template-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.template-open{margin-bottom:12px}.template-panel~#reply-form[hidden]{display:none!important}@media(max-width:750px){.template-panel{padding:14px 16px;max-height:55dvh}.template-actions button{flex:1;min-height:44px}#reply-dialog:has(.template-panel:not([hidden])) .reply-thread{max-height:18dvh;min-height:50px;flex-shrink:1}}

/* Purchase and manually scheduled service workspace. */
.business-grid{display:grid;gap:16px;margin-top:18px}.business-card{padding:20px;border:1px solid var(--line);border-radius:16px;min-width:0;background:#fff}.business-card h3{margin:0 0 8px;font-size:18px}.business-card p{line-height:1.5;overflow-wrap:anywhere}.business-balance,.business-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.business-balance strong{background:#e3f5e9;padding:9px 12px;border-radius:9px;font-size:14px}.business-alert{color:#87531b;background:#fff4dc;padding:10px;border-radius:8px}.business-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.business-stats article{display:flex;flex-direction:column;background:#f4f8f5;padding:16px;border-radius:12px;gap:5px}.business-stats strong{font-size:27px}.business-stats span{font-size:12px}.business-visit{padding:14px 0;border-top:1px solid var(--line)}.business-filter-row{display:flex;align-items:center;gap:12px}.business-card summary{cursor:pointer;padding:12px 0;font-weight:600}.business-actions button{min-height:44px}#business-dialog{max-height:90dvh;overflow-y:auto;width:min(590px,calc(100vw - 24px))}#business-fields{border:0;padding:0;margin:0;min-width:0}#business-fields input,#business-fields select,#business-fields textarea,#business-time-zone,#business-service-filter{font:inherit;font-size:16px;max-width:100%;border:1px solid #d7e0ec;border-radius:9px;padding:11px;background:#fff}#business-fields input,#business-fields select,#business-fields textarea{width:100%}#business-fields label{display:block;margin:14px 0 6px}.customer-card-bottom{flex-wrap:wrap}#business-error{white-space:pre-wrap}@media(max-width:620px){.business-stats{grid-template-columns:repeat(2,1fr)}.business-card{padding:15px}.business-card .section-heading{flex-wrap:wrap}.business-actions button{flex:1}.sidebar nav{display:flex;overflow-x:auto;justify-content:flex-start;gap:5px}.sidebar nav .nav{flex:0 0 65px;min-width:65px}.business-filter-row{flex-wrap:wrap}#business-dialog .dialog-actions{position:sticky;bottom:0;background:white;padding:12px 0}}

/* v8: customer-first product care, clear payment cards, and focused mobile navigation. */
.mobile-footer{display:none}.customer-name-button{font:inherit;font-weight:inherit;color:inherit;background:transparent;text-align:left;padding:0;border-radius:5px;min-height:32px}.customer-name-button:hover{text-decoration:underline}.customer-card[data-customer-detail]{cursor:pointer}.customer-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:18px}.service-wallet{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 6px}.service-wallet>div{padding:17px;border-radius:15px;display:flex;flex-direction:column;gap:9px;min-width:0}.wallet-free{background:#e6f4e9;color:#24513c}.wallet-paid{background:#e9f0fd;color:#294e80}.service-wallet span{font-weight:650;font-size:13px;line-height:1.5}.service-wallet strong{font-size:33px;line-height:1.1}.service-wallet small{font-size:11px;line-height:1.5}.dashboard-tile{background:#f0f6f2;border:1px solid #dce9df;text-align:left;display:flex;flex-direction:column;gap:8px;padding:19px;border-radius:17px;min-height:150px;color:#254536}.dashboard-tile:hover{background:#e5f0e8;border-color:#8fb49d;transform:translateY(-1px)}.dashboard-tile strong{font-size:31px}.dashboard-tile span{font-size:14px;font-weight:650}.dashboard-tile small{font-size:11px;line-height:1.5;color:#597363}.business-stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.status-chip{display:inline-block;background:#eef2f5;border-radius:99px;padding:7px 11px;font-size:12px;white-space:nowrap}.status-chip.paid{background:#e2f3e7;color:#28603e}.status-chip.unpaid{background:#fff0d8;color:#82551c}.payment-card{background:#f8fafc;border:1px solid #dde5ed;border-radius:15px;padding:17px;margin:14px 0}.payment-card h4{font-size:17px;margin:0 0 7px}.payment-card p{margin:7px 0;line-height:1.5}.customer-profile h2{font-size:28px;margin-bottom:10px}.more-menu-link{display:flex;width:100%;text-align:left;justify-content:space-between;background:#f3f7f4;border-radius:12px;margin:9px 0;min-height:48px;padding:14px;color:#254536}#dashboard-view .hero{display:none}.business-visit .text-button{font-size:inherit;text-align:left;padding:0;white-space:normal}.business-card .section-heading{flex-wrap:wrap}.product-purchase>.primary{width:100%;margin-top:8px}.service-payments .section-heading{gap:16px}#order-detail-content>.panel,#customer-detail-content>.panel{margin-top:16px}button:focus-visible{outline:3px solid #558bdb;outline-offset:3px}@media(max-width:620px){.sidebar nav{display:none!important}.mobile-footer{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);z-index:30;background:#fff;border-top:1px solid #dfe8e1;padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #203c2a0b}.mobile-footer button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:57px;font-size:10px;color:#687d70;background:transparent;border-radius:12px;padding:6px 3px}.mobile-footer button.active{background:#e9f0fd;color:#2464c7;font-weight:700}.mobile-footer svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.business-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-tile{min-height:145px;padding:15px}.dashboard-tile strong{font-size:30px}.dashboard-tile span{font-size:12px}.service-wallet{gap:9px}.service-wallet>div{padding:13px}.service-wallet span{font-size:12px}.service-wallet strong{font-size:30px}.service-wallet small{font-size:10px}.customer-product-grid{grid-template-columns:1fr}.customer-profile h2{font-size:24px}#order-detail-content>.panel,#customer-detail-content>.panel{padding:17px}}

/* v9: explicit phone card layout; ID specificity prevents tablet rules winning. */
@media(max-width:767px){
 #customer-rows.customer-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
 #customer-rows .customer-card{width:100%;max-width:100%;height:auto;align-self:start;padding:18px}
 #customer-rows .customer-card-top{align-items:flex-start;gap:12px}
 #customer-rows .customer-avatar{width:44px;height:44px;flex:0 0 44px}
 #customer-rows .customer-heading{min-width:0;flex:1}
 #customer-rows .customer-heading h2,#customer-rows .customer-name-button{word-break:normal;overflow-wrap:break-word;white-space:normal;line-height:1.45}
 #customer-rows .customer-name-button{display:block;max-width:100%;text-align:left;font-size:17px}
 #customer-rows .customer-phone{white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:13px;line-height:1.5}
 #customer-rows .customer-card-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
 #customer-rows .customer-card-bottom>.text-button{grid-column:1/-1;justify-self:start;min-height:44px;padding-left:0}
 #customer-rows .customer-card-bottom .chat-action{width:auto;min-height:46px;margin:0}
 #customer-rows .customer-address{min-height:0}
}

@media(max-width:767px){#customer-rows .customer-phone.worker-phone-hint{white-space:normal;overflow-wrap:break-word}}

/* v10: everyday tasks first, compact service balances and explicit payments. */
.wallet-quantity{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px}.service-wallet .wallet-quantity>span{font-size:12px;font-weight:500}.service-wallet>div{gap:7px}.payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.payment-summary>div{min-width:0;padding:12px;background:#f2f6f3;border-radius:11px}.payment-summary dt{font-size:12px;color:var(--muted);margin-bottom:6px}.payment-summary dd{margin:0;font-size:16px;font-weight:700;overflow-wrap:break-word}.payment-summary .outstanding{background:#fff3df;color:#80551d}.action-menu{border:1px solid var(--line);border-radius:12px;align-self:flex-start;padding:0 12px;max-width:100%;background:#fff}.action-menu summary,.history-section>summary{min-height:46px;cursor:pointer;font-size:13px;font-weight:650;line-height:1.5;padding:12px 2px}.action-menu[open]{background:#f7faf7}.action-menu button{display:flex;width:100%;justify-content:flex-start}.history-section>summary{font-size:16px}.dashboard-agenda{border-top:1px solid var(--line);margin-top:22px;padding-top:12px}.dashboard-agenda h3{font-size:16px}.agenda-row{width:100%;justify-content:space-between;text-align:left;background:#fff;border-top:1px solid var(--line);border-radius:0;padding:14px 0;gap:16px;color:var(--ink)}.agenda-row span:first-child{min-width:0}.agenda-row strong,.agenda-row small{display:block;overflow-wrap:break-word}.agenda-row small{font-weight:400;font-size:12px;color:var(--muted);margin-top:5px}.agenda-row>span:last-child{font-size:12px;flex-shrink:0}.dashboard-tile[data-filter="overdue"]{background:#fff5e6;border-color:#efdfc7}.dashboard-tile[data-filter="today"]{background:#e6f3eb;border-color:#a7cbb6}#dashboard-view .getting-started{display:none}.business-stats .dashboard-tile{align-items:flex-start;min-height:125px}.customer-profile .business-actions{margin-bottom:0}#order-detail-content .service-wallet{margin-top:12px}
@media(max-width:767px){.payment-summary{gap:7px}.payment-summary>div{padding:10px 8px}.payment-summary dd{font-size:14px}.payment-summary dt{font-size:11px}.business-actions{align-items:flex-start}.business-actions>.action-menu{flex:1}.service-payments>.section-heading{align-items:flex-start;flex-direction:column}.service-payments>.section-heading>button{width:100%}.dashboard-agenda h3{font-size:16px}.agenda-row{gap:10px}.agenda-row>span:last-child{max-width:42%;text-align:right;white-space:normal}.customer-card .customer-message-cell{min-height:0;margin:12px 0}.customer-card .customer-address{margin-top:10px}.business-stats .dashboard-tile{min-height:120px}.service-wallet{grid-template-columns:minmax(0,1fr)}.service-wallet>div{padding:14px}.service-wallet .wallet-quantity>span{font-size:13px}.service-wallet small{font-size:12px}}
.planning-section>summary{cursor:pointer;min-height:48px;padding:16px 0;font-size:14px;font-weight:650}.planning-section[open]{margin-top:10px}.planning-section .dashboard-tile{min-height:110px;background:#f8faf8}.planning-section .business-stats{margin-bottom:12px}

/* v11: upcoming work and past visits stay in distinct customer lists. */
.service-count{display:inline-block;vertical-align:middle;margin-left:5px;border-radius:99px;padding:3px 9px;background:#edf3ef;color:#46604f;font-size:12px;font-weight:600}.customer-service-section .section-heading{align-items:flex-start;flex-wrap:wrap}.customer-service-section .section-heading>h2{flex:1;min-width:160px}.customer-service-section[data-customer-services="overdue"]{border-color:#ebd7b8}.customer-service-section[data-customer-services="history"]{background:#fcfdfc}@media(max-width:767px){.customer-service-section .section-heading{display:block}.customer-service-section .section-heading>button{padding-left:0;text-align:left;justify-content:flex-start;white-space:normal}}

#dashboard-view .stats[hidden]{display:none}
.business-stats.dashboard-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
.business-stats.dashboard-overview .dashboard-tile{min-height:90px;padding:12px;justify-content:flex-start}
.dashboard-overview .dashboard-sales strong{font-size:clamp(14px,3vw,23px);overflow-wrap:anywhere;max-width:100%}
.dashboard-overdue{margin-top:12px;padding:0 12px;background:#fff5e6;border-radius:12px}
.dashboard-overdue .agenda-row{background:transparent;border:0}
@media(max-width:380px){.business-stats.dashboard-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-overview .dashboard-sales{grid-column:1/-1}}
.business-stats.dashboard-overview.dashboard-team{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-sales-line{display:flex;flex-direction:column;gap:2px}
.dashboard-sales-line:last-of-type{border-top:1px solid var(--line);padding-top:6px}
#business-summary .dashboard-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
#business-summary .dashboard-sales{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;background:white;padding:16px;text-align:left}
#business-summary .dashboard-sales-line{min-width:0;align-items:flex-start}
#business-summary .dashboard-sales-line strong{font-size:15px;line-height:1.35;font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:normal}
#business-summary .dashboard-sales-line:last-of-type{grid-column:1/-1;grid-row:1;border:0;border-bottom:1px solid var(--line);padding:0 0 10px}
#business-summary .dashboard-sales-line:last-of-type strong{font-size:26px}
#business-summary .dashboard-sales small{grid-column:1/-1;font-weight:400}
@media(max-width:480px){#business-summary .dashboard-sales{grid-template-columns:1fr;gap:6px}#business-summary .dashboard-sales-line{flex-direction:row;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 12px}}

#open-bulk,#open-groups,#open-templates{font-size:12px;min-height:44px}
#bulk-dialog{width:min(560px,calc(100vw - 24px))}
#bulk-fields{padding:0;border:0;margin:0;min-width:0}
#bulk-template{width:100%;padding:10px;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink)}
#bulk-search{font-size:16px}
.bulk-recipient-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:16px}
#bulk-count{font-size:12px;color:var(--muted)}
#bulk-matches{max-height:180px;overflow:auto;margin-bottom:12px}
.bulk-option{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:7px 0;font-size:14px;overflow-wrap:anywhere}
.bulk-option input{width:20px;height:20px;flex:none}
.bulk-option small{display:block;color:var(--muted);font-weight:400}
#bulk-selected:not(:empty){background:#edf4e9;border-radius:10px;margin-top:8px;padding:0 10px}
#bulk-send{margin-top:12px;min-height:44px}
#bulk-result{list-style:none;padding:0}
#bulk-result li{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding:8px 0}
#bulk-dialog .dialog-actions{flex-wrap:wrap}

#customer-country{width:100%;font:inherit;font-size:16px;padding:11px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink)}
#signin-history-dialog{width:min(560px,calc(100vw - 24px))}
#signin-history-rows{list-style:none;padding:0}
#signin-history-rows li{display:grid;gap:5px;border-top:1px solid var(--line);padding:11px 0;font-size:14px;overflow-wrap:anywhere}
#signin-history-rows time{color:var(--muted)}
#signin-history-dialog .dialog-actions{flex-wrap:wrap}

#groups-dialog{width:min(560px,calc(100vw - 24px))}
#group-editor{padding:0;border:0;margin:0;min-width:0}
#group-edit-select,#bulk-group{width:100%;padding:10px;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink)}
#group-name,#group-search{font-size:16px}
#group-member-count{font-size:12px;color:var(--muted)}
#group-members{max-height:230px;overflow:auto;margin-bottom:12px}

.product-purchase {
 padding: clamp(16px, 3vw, 24px);
}
.product-purchase .section-heading {
 align-items: flex-start;
 gap: 12px;
 margin-bottom: 10px;
}
.product-purchase .section-heading > div { min-width: 0; }
.product-purchase .status-chip {
 flex-shrink: 0;
 text-transform: capitalize;
}
.product-purchase .purchase-customer {
 color: var(--ink);
 font-size: clamp(1.15rem, 2.5vw, 1.35rem);
 font-weight: 750;
 letter-spacing: -.025em;
 line-height: 1.25;
 margin: 0;
}
.product-purchase .purchase-product {
 color: var(--muted);
 font-size: .95rem;
 margin: 0;
}
.product-purchase .purchase-link {
 display: inline-flex;
 align-items: center;
 gap: .55em;
 max-width: 100%;
 min-height: 36px;
 padding: 2px 0;
 color: inherit;
 font: inherit;
 text-align: left;
 white-space: normal;
 overflow-wrap: anywhere;
}
.product-purchase .purchase-link::after {
 content: "";
 flex: 0 0 .36em;
 height: .36em;
 border: solid currentColor;
 border-width: 1px 1px 0 0;
 transform: rotate(45deg);
 opacity: .65;
}
.product-purchase .purchase-link:hover,
.product-purchase .purchase-link:focus-visible { color: var(--brand); }
.product-purchase .purchase-link:focus-visible {
 outline: 2px solid currentColor;
 outline-offset: 3px;
}
.product-purchase .purchase-meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 column-gap: 16px;
 color: var(--muted);
 font-size: .825rem;
}
.product-purchase .purchase-meta button {
 color: var(--ink);
 font-weight: 650;
}
.product-purchase .service-wallet { margin-top: 12px; }
.product-purchase .service-wallet .purchase-link { min-height: 32px; }
.product-purchase .purchase-next {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 4px 12px;
 margin: 12px 0 0;
 padding-top: 8px;
 border-top: 1px solid var(--line);
 color: var(--muted);
 font-size: .875rem;
}

#reply-notice {
 margin: 10px 16px;
 padding: 10px 12px;
 border-radius: 8px;
 color: #862a24;
 background: #fff1ef;
 font-size: .875rem;
}
#templates-dialog { width: min(560px, calc(100vw - 24px)); }
#templates-dialog select, #templates-dialog textarea { width: 100%; font: inherit; }
#template-manage-details, #template-manage-status { color: var(--muted); }

#bill-dialog { width: min(620px, calc(100vw - 24px)); }
.bill-heading { border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.bill-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bill-dialog-header h2 { margin: 0; }
#bill-dialog .dialog-actions { flex-wrap: wrap; }
#bill-dialog .dialog-actions button { white-space: normal; }
.bill-details { display: grid; gap: 10px; margin: 18px 0; }
.bill-details dt { font-weight: 650; }
.bill-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.bill-items { width: 100%; border-collapse: collapse; }
.bill-items th, .bill-items td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.bill-items th:last-child, .bill-items td:last-child { text-align: right; }
@media print {
 body:has(> #bill-dialog[open]) > :not(#bill-dialog) { display: none !important; }
 body:has(> #bill-dialog[open]) { margin: 0; background: white; }
 body:has(> #bill-dialog[open]) #bill-dialog { position: static; display: block; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: visible; border: 0; box-shadow: none; }
 body:has(> #bill-dialog[open]) #bill-dialog::backdrop { background: none; }
 #bill-dialog .dialog-actions, #bill-close, .bill-instructions { display: none; }
}

.product-purchase > .purchase-summary {
 display: flex;
 align-items: baseline;
 flex-wrap: wrap;
 gap: 6px 14px;
 cursor: pointer;
}
.purchase-summary span { color: var(--muted); font-size: .825rem; }
.purchase-summary::after {
 content: "";
 width: 7px;
 height: 7px;
 border-right: 1px solid currentColor;
 border-bottom: 1px solid currentColor;
 transform: rotate(45deg);
 margin: 0 4px 2px auto;
}
.product-purchase[open] > .purchase-summary::after { transform: rotate(225deg); }
.purchase-expanded { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }

.reminder-appointment { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reminder-appointment > div, .reminder-appointment input { min-width: 0; }

.customer-tools>#add-customer{justify-self:start;min-width:min(100%,160px);min-height:44px}
#customer-orders-content{display:grid;gap:12px}

.customer-product-grid { align-items: start; }
.checkout-items { display: grid; gap: 8px; margin-bottom: 12px; }
.checkout-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.checkout-item p { margin: 0 0 6px; }

.purchase-summary .status-chip-cancelled { background: #fde8e7; color: #a62121; }

.invoice-title { text-align: center; margin: 16px 0; }
.invoice-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 16px 0; }
.invoice-pair h4 { margin: 0 0 6px; }
.invoice-pair p, .bill-heading p { margin: 4px 0; overflow-wrap: anywhere; }
.invoice-pair dl, .bill-heading dl { margin: 0; }
.bill-content dl div, #bill-content dl div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
#bill-content dd { margin: 0; overflow-wrap: anywhere; }
.bill-table-wrap { overflow-x: auto; }
.invoice-footer { border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 480px) { .invoice-pair { grid-template-columns: 1fr; } }
@media print { .invoice-pair { grid-template-columns: repeat(2,minmax(0,1fr)); } .bill-table-wrap { overflow: visible; } }

.invoice-aqua { --invoice-accent: #9990e5; color: #171717; }
.invoice-aqua .bill-heading { display: flow-root; border-color: var(--invoice-accent); }
.invoice-logo { float: right; width: 56px; height: auto; margin-left: 16px; }
.invoice-aqua .invoice-title { color: #6555b8; }
.invoice-aqua .invoice-pair > section:nth-child(2) { text-align: right; }
.invoice-aqua .invoice-footer > section:nth-child(2) { text-align: center; }
.invoice-aqua .bill-details div { justify-content: space-between; }
.invoice-aqua .bill-items thead, .invoice-aqua .invoice-totals dl div:nth-child(2) { background: var(--invoice-accent); color: #171717; }
.invoice-aqua .bill-items tfoot { font-weight: 700; }
.invoice-aqua .bill-items th, .invoice-aqua .bill-items td { padding: 6px; }
@media print { .invoice-aqua { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

.bill-dialog-header { justify-content: flex-end; }
.invoice-aqua .bill-heading dl div { justify-content: flex-start; gap: 4px; }
