:root{
  --bg:#050b13;
  --panel:#0a1521;
  --panel2:#0d1b29;
  --panel3:#102235;
  --border:#1b334b;
  --border-strong:#28547d;
  --text:#f5f9fd;
  --muted:#8fa3b8;
  --muted-2:#6f849a;
  --blue:#56a8ff;
  --accent-blue:#1787f8;
  --premium-blue:#1485f6;
  --green:#56d4a6;
  --yellow:#e5c56d;
  --red:#ff7c8e;
  --orange:#f1a357;
  --radius:20px;
  --radius-sm:14px;
  --shadow:0 18px 46px rgba(0,0,0,.22);
  --shadow-soft:0 10px 28px rgba(0,0,0,.15);
  --focus:0 0 0 3px rgba(66,157,255,.20);
}
html{background:var(--bg)}
html,body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body{background:radial-gradient(circle at 50% -8%,rgba(23,120,224,.12),transparent 31rem),linear-gradient(180deg,#06101a 0%,#050b13 44%,#040910 100%);color:var(--text)}
body.auth-ready{background:radial-gradient(circle at 50% -12%,rgba(21,111,204,.10),transparent 34rem),#050b13}
button,input,select,textarea{font-family:inherit}
button{transition:transform .16s ease,border-color .2s ease,background-color .2s ease,box-shadow .2s ease,color .2s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7bc0ff;outline-offset:2px}
.app{max-width:1120px;padding:22px clamp(16px,3vw,28px) calc(108px + env(safe-area-inset-bottom))}
.topbar{position:sticky;z-index:25;top:0;margin:0 -8px 22px;padding:10px 8px 14px;background:linear-gradient(180deg,rgba(5,11,19,.96),rgba(5,11,19,.82) 72%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.brand{gap:12px}.owner-brand-icon{width:43px;height:43px;border:1px solid #245b89!important;border-radius:14px!important;background:#0a1a2a!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 22px rgba(0,0,0,.18)!important;overflow:hidden}.owner-brand-icon img{width:39px;height:39px;object-fit:contain;filter:none!important}.brand-text h1{font-size:17px;letter-spacing:-.35px}.brand-text p{margin-top:3px;color:#71879b;font-size:10px}.owner-tools{display:flex;align-items:center;gap:8px}.owner-avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid #203d59;border-radius:50%;background:#091726;color:#77baff;font-size:9px;font-weight:850}.status-dot{width:8px;height:8px;box-shadow:none}.logout-btn{min-height:36px;border-color:#20384e;background:#091521;color:#a9bac9;border-radius:11px}.logout-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.view.active{animation:premiumViewIn .2s ease both}
@keyframes premiumViewIn{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.screen-title,.page-title{margin:4px 0 20px}.screen-title .page-kicker,.page-kicker,.settings-card-kicker,.marketing-eyebrow{color:#61adfa!important;font-size:9px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase}.screen-title h2,.page-title h2{margin:4px 0 0;font-size:clamp(27px,4vw,34px);letter-spacing:-1.15px;line-height:1.05}.screen-title p,.page-title p{max-width:720px;margin-top:7px;color:#8298ad;font-size:13px;line-height:1.5}
.card,.stat,.lead-card,.work-item,.settings-hub-card,.marketing-overview-card{border:1px solid var(--border)!important;background:linear-gradient(145deg,rgba(12,28,43,.96),rgba(7,20,32,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),var(--shadow-soft)!important}.card{border-radius:21px;padding:19px}.card-head{margin-bottom:14px}.card-head h3{font-size:15px;letter-spacing:-.25px}.card-head span{color:#72889d}.card-head-action,.text-action{color:#6eb4fb!important;text-decoration:none!important;font-weight:750}.work-meta{color:#8297ac;line-height:1.5}.empty{border-color:#173149;background:rgba(7,20,32,.58);color:#71869b;border-radius:17px}.error{border-color:rgba(255,124,142,.24);background:rgba(255,124,142,.06);color:#ff9aaa}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.stat{padding:15px;border-radius:18px}.stat-top{gap:11px}.metric-icon{width:39px;height:39px;border-radius:12px}.stat-label{font-size:10px;letter-spacing:.02em}.stat-value{font-size:24px;letter-spacing:-.7px}.stat-sub{color:#71889f;font-size:9px}
.dashboard-hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:150px;margin:0 0 18px;padding:20px 22px;border:1px solid #1b456b;border-radius:26px;overflow:hidden;background:radial-gradient(circle at 82% 8%,rgba(34,137,244,.16),transparent 16rem),linear-gradient(145deg,#0b2136,#071624);box-shadow:var(--shadow)}.dashboard-hero:after{content:"";position:absolute;width:280px;height:280px;right:-125px;top:-155px;border:1px solid rgba(81,163,244,.08);border-radius:50%}.dashboard-welcome{position:relative;z-index:2;margin:0;padding:0}.dashboard-welcome h2{font-size:31px}.dashboard-welcome p{color:#8aa0b5}.dashboard-mascot{position:relative;z-index:2;width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(0,0,0,.22))}.dashboard-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-launch{display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:11px;min-height:88px;border-radius:18px;padding:14px 15px}.dashboard-launch i{display:grid;place-items:center;width:34px;height:34px;border:1px solid #234664;border-radius:11px;background:#0b1e30;color:#61adfa;font-style:normal}.dashboard-launch strong{font-size:13px}.dashboard-launch em{display:block;margin-top:3px;color:#7d92a7;font-size:10px;font-style:normal;line-height:1.35}.dashboard-launch b{color:#5ea7ef;font-size:20px;font-weight:400}.dashboard-launch.primary{border-color:#2869a5!important;background:linear-gradient(145deg,#0f3760,#0b2540)!important;color:#f6faff!important}.dashboard-launch.primary span{color:inherit}.ai-feature-card{border-color:#245c8b!important;background:radial-gradient(circle at 100% 0,rgba(31,141,255,.19),transparent 15rem),linear-gradient(145deg,#0d2b49,#081b30)!important;color:#f8fbff}.ai-feature-card:after{border-color:rgba(96,169,244,.10)}.ai-feature-card .ai-status{color:#91c7fa}.ai-feature-card p{color:#9ab0c6}.ai-feature-card .btn.primary{background:linear-gradient(135deg,#1988f8,#1677e7);border-color:#2794ff;color:#fff}
.btn,.small-btn,.save-btn,.new-work-button,.billing-action{min-height:42px;border:1px solid #25435f;border-radius:13px;background:#0b1a28;color:#dce9f5;font-weight:760;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.btn.primary,.small-btn.primary-action,.save-btn,.new-work-button,.billing-action.primary{border-color:#258ef6;background:linear-gradient(135deg,#1a8af8,#1677e7);color:#fff;box-shadow:0 9px 22px rgba(14,105,216,.18)}.btn:hover,.small-btn:hover,.billing-action:hover{border-color:#315d82}.btn.primary:hover,.small-btn.primary-action:hover,.save-btn:hover,.new-work-button:hover{border-color:#68b8ff;box-shadow:0 10px 26px rgba(14,105,216,.22)}.small-btn.danger,.billing-action.danger-soft{border-color:rgba(255,113,132,.24);background:rgba(112,27,39,.14);color:#ff9eab}.new-work-button{width:100%;height:52px;margin-bottom:14px;border-radius:16px;font-size:13px}.save-btn{width:100%;padding:12px 15px}
.field{gap:7px}.field label,.auth-field label{color:#91a7bc!important;font-size:10px!important;font-weight:750!important;letter-spacing:.015em}.field input,.field select,.field textarea,.auth-field input,.search,.sortbar select{border:1px solid #213d57!important;border-radius:14px!important;background:#081725!important;color:#f4f8fc!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}.field input,.field select{min-height:46px}.field textarea{min-height:96px}.field input::placeholder,.field textarea::placeholder,.auth-field input::placeholder,.search::placeholder{color:#597087}.field input:focus,.field select:focus,.field textarea:focus,.auth-field input:focus,.search:focus{border-color:#338ff0!important;box-shadow:var(--focus)!important;outline:none}.switch{accent-color:#1987f7}
.toolbar{gap:10px}.search{height:50px;padding:0 15px}.refresh{width:50px;height:50px;border:1px solid #203d58;border-radius:15px;background:#081725;color:#74b9fb}.filters{gap:8px;overflow:auto;padding-bottom:2px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filter{min-height:39px;padding:0 15px;border:1px solid #1e3a54;border-radius:999px;background:#091725;color:#8399ae;font-size:11px;font-weight:750;white-space:nowrap}.filter.active{border-color:#318ff1;background:#113b63;color:#eaf5ff;box-shadow:none}.sortbar{margin:14px 0 15px}.sortbar span{color:#758ca2;font-size:10px}.sortbar select{min-height:40px;padding:0 12px}.lead-card{border-radius:19px!important;padding:16px 16px 15px!important}.lead-card:before{left:0;top:17px;bottom:17px;width:2px;background:#318cf3}.lead-card.high:before,.lead-card.overdue-card:before{background:#f16d80}.lead-card h3{font-size:16px}.description{color:#a8bbcd;font-size:12px}.lead-actions .small-btn{min-height:38px}
.work-list{gap:11px}.work-item{border-radius:18px!important;padding:15px!important}.work-item h4{font-size:14px}.work-item-top{align-items:flex-start}.pill,.tag,.settings-status-badge,.addon-badge,.marketing-step-pill{border:1px solid #284965!important;border-radius:999px!important;background:#0c1f31!important;color:#93b9dc!important;font-size:9px!important;font-weight:800!important}.tag.high,.pill.urgent{border-color:rgba(255,116,135,.28)!important;background:rgba(92,28,40,.18)!important;color:#ff9dab!important}.work-actions{gap:8px;margin-top:13px}.work-actions .small-btn{min-height:38px}
.chat.receptionist-test-chat,.receptionist-test-banner,.receptionist-test-scenarios,.receptionist-test-inspector{border-color:#1d4263!important}.receptionist-test-banner{background:radial-gradient(circle at 95% 0,rgba(33,139,255,.12),transparent 14rem),linear-gradient(145deg,#0b2238,#081827)!important}.messages .msg.ai{border:1px solid #1d405f;background:#0b2033;color:#dfeaf4}.messages .msg.user{background:linear-gradient(135deg,#1988f8,#1671d8);color:#fff}.chat-form{border-color:#1e405e!important;background:#071522!important}.chat-form input{background:transparent!important}.chat-form button{background:linear-gradient(135deg,#1b8bf7,#176fd4)!important}
.settings-hub{gap:10px}.settings-hub-card{min-height:76px;border-radius:18px;padding:14px}.settings-hub-card i{display:grid;place-items:center;width:36px;height:36px;border:1px solid #234762;border-radius:11px;background:#0a1c2c;color:#65aff6;font-style:normal}.settings-hub-card strong{font-size:12px}.settings-hub-card small{color:#758ca3;font-size:9px}.settings-section-label{margin:26px 3px 10px;color:#5ea9f5;font-size:9px;letter-spacing:.12em}.settings-card{scroll-margin-top:86px}.checkbox-row,.automatic-follow-up-toggle,.review-request-toggle,.marketing-toggle-row{border:1px solid #193750!important;border-radius:15px!important;background:#081725!important;padding:13px!important}.legal-settings-grid a,.smart-link-panel,.smart-qr-panel{border-color:#1c3c57!important;background:#081826!important}.billing-plan{border-color:#1f3e59;border-radius:15px;background:#091928}.billing-plan.pro{border-color:#2c74b5}.billing-plan h4{font-size:12px}.billing-plan strong{color:#f4f9fd}
.bottom-nav{position:fixed;left:50%;bottom:max(12px,calc(env(safe-area-inset-bottom) + 8px));width:min(calc(100% - 24px),520px);min-height:70px;transform:translateX(-50%);grid-template-columns:repeat(4,1fr);padding:7px;border:1px solid #1c3c57;border-radius:23px;background:rgba(6,17,28,.92);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 18px 48px rgba(0,0,0,.36);overflow:hidden}.bottom-nav::before{top:7px!important;bottom:7px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(26,126,232,.27),rgba(11,62,111,.38))!important;border-color:rgba(74,160,246,.16)!important;box-shadow:none!important;transition:transform .22s cubic-bezier(.22,.75,.25,1),width .2s ease!important}.nav-btn{min-height:55px!important;border-radius:16px!important;color:#7890a5!important;font-size:10px!important;line-height:1.35!important;font-weight:750!important}.nav-btn.active{color:#69b3fa!important}.nav-btn:focus-visible{outline-offset:-2px}
.marketing-workspace .card{box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 14px 34px rgba(0,0,0,.17)!important}.marketing-tabs{border-color:#1c3d59!important;background:#081725!important}.marketing-overview-grid,.marketing-performance-grid{gap:10px}.marketing-overview-card{border-radius:17px!important}.marketing-week-plan,.marketing-calendar-week{gap:9px}.marketing-goal-grid button,.marketing-pillars label,.marketing-toggle-row{border-color:#1c3d58!important;background:#081827!important}.marketing-primary-cta{min-height:44px}.marketing-hero{border-color:#21517d!important;background:radial-gradient(circle at 92% 0,rgba(36,145,255,.13),transparent 15rem),linear-gradient(145deg,#0d263d,#081725)!important}
/* Shared premium auth shell. */
.auth-screen{min-height:100dvh;justify-content:flex-start;align-items:center;padding:max(34px,calc(env(safe-area-inset-top) + 28px)) 18px max(28px,calc(env(safe-area-inset-bottom) + 22px));background:radial-gradient(circle at 50% -6%,rgba(24,107,194,.15),transparent 29rem),linear-gradient(180deg,#06111c,#040b12);overflow:auto}
.auth-shared-shell{width:min(100%,420px)!important;max-width:420px!important;padding:0 4px 24px!important;border:0!important;background:transparent!important;box-shadow:none!important}
.auth-shared-shell.auth-form-hidden{display:none!important}.auth-shared-brand{text-align:center}.auth-shared-mascot{width:100px;height:100px;margin:0 auto 5px;display:grid;place-items:center}.auth-shared-mascot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 16px rgba(0,0,0,.22))}.auth-shared-brand h1{margin:0;color:#f7fbff;font-size:31px;line-height:1;letter-spacing:-1px}.auth-shared-brand h1 span:last-child{color:#2694ff}.auth-shared-brand>p{margin:8px 0 22px;color:#91a6bb;font-size:13px;line-height:1.45}
.auth-role-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:58px;margin:0 0 15px;padding:4px;border:1px solid #24435e;border-radius:18px;background:#081522;overflow:hidden}.auth-role-slider{position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border:1px solid #318ff2;border-radius:14px;background:linear-gradient(135deg,#117fe9,#166fd5);box-shadow:0 8px 20px rgba(16,104,208,.18);transition:transform .22s cubic-bezier(.2,.8,.2,1)}.auth-role-switch.customer-active .auth-role-slider{transform:translateX(100%)}.auth-role-option{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:14px;color:#8197aa;text-decoration:none;font-size:12px;font-weight:800;transition:color .18s ease}.auth-role-option.active{color:#fff}.auth-role-option-icon{display:grid;place-items:center;width:23px;height:23px;color:currentColor;font-size:17px}.auth-role-switch.switching .auth-role-option{pointer-events:none}
.auth-role-description{height:48px;display:grid;align-items:start;margin-bottom:12px}.auth-role-description p{grid-area:1/1;margin:0;padding:3px 8px;color:#8499ad;text-align:center;font-size:11px;line-height:1.45;transition:opacity .16s ease,transform .16s ease}.auth-shared-shell[data-auth-role="business"] .auth-customer-copy,.auth-shared-shell[data-auth-role="customer"] .auth-business-copy{opacity:0;transform:translateY(2px);pointer-events:none}.auth-shared-shell[data-auth-role="business"] .auth-business-copy,.auth-shared-shell[data-auth-role="customer"] .auth-customer-copy{opacity:1;transform:none}
.auth-role-stage{position:relative;min-height:278px}.auth-role-form{margin:0;display:grid;gap:12px}.auth-shared-shell[data-auth-role="business"] .auth-role-form-customer,.auth-shared-shell[data-auth-role="customer"] .auth-role-form-business{display:none!important}.auth-input{position:relative;display:block}.auth-input>span{position:absolute;z-index:2;left:47px;top:10px;color:#9eb0c1;font-size:10px;font-weight:760;pointer-events:none}.auth-input>i{position:absolute;z-index:2;left:15px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:23px;height:23px;color:#7f9bb7;font-size:16px;font-style:normal;pointer-events:none}.auth-input input{width:100%;height:61px;padding:25px 45px 8px 47px;border:1px solid #213f5a;border-radius:15px;background:#081725;color:#f4f8fc;font-size:14px;outline:none}.auth-input input::placeholder{color:#61778d}.auth-input input:focus{border-color:#338ff0;box-shadow:var(--focus)}.auth-password-toggle{position:absolute;z-index:3;right:10px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:#83a4c2;font-size:18px}.auth-utility-row{height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#879aad;font-size:10px}.auth-remember{display:flex;align-items:center;gap:8px;color:#a5b5c4}.auth-remember input{width:17px;height:17px;margin:0;accent-color:#1786f5}.auth-utility-row button{border:0;background:transparent;color:#65b4ff;font-size:10px;font-weight:760;padding:5px 0}.auth-main-action{width:100%;min-height:52px;border:1px solid #2f98ff;border-radius:14px;background:linear-gradient(135deg,#168af8,#156fd7);color:#fff;font-size:14px;font-weight:830;box-shadow:0 10px 25px rgba(16,104,208,.18)}.auth-divider{height:27px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;color:#5f7488;font-size:9px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#1b354c}.auth-secondary-action{min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #24425d;border-radius:14px;background:#081725;color:#b9cad8;text-decoration:none;font-size:11px;font-weight:770}.auth-secondary-action:hover{border-color:#315a7c}.auth-secondary-action strong{color:#d9e6f2;font-weight:800}.auth-inline-link{border:0;background:transparent;color:#66b4ff;font-size:inherit;font-weight:800;padding:0}.auth-role-message{min-height:18px;margin:0!important;color:#ff91a2!important;text-align:center;font-size:10px!important}.auth-role-message.info{color:#6ed7af!important}.auth-role-footer{min-height:28px;display:flex;align-items:center;justify-content:center;margin-top:12px;color:#7f93a6;font-size:10px;text-align:center}.auth-role-footer button,.auth-role-footer a{border:0;background:transparent;color:#63b0f8;text-decoration:none;font-size:inherit;font-weight:800;padding:0 3px}.auth-role-form[hidden]{display:none!important}
#signUpForm,#passwordResetRequestForm,#passwordRecoveryForm,.legal-gate-card,.setup-auth-card,.onboarding-card{width:min(100%,500px);max-width:500px!important;padding:24px!important;border:1px solid #1d405d!important;border-radius:24px!important;background:linear-gradient(145deg,#0b1d2e,#071521)!important;box-shadow:var(--shadow)!important}.auth-mark.auth-mark-brand{min-height:82px}.auth-mark.auth-mark-brand img{width:82px!important;height:82px!important;filter:none!important}.auth-card h2{font-size:27px}.auth-card>p{color:#8ca0b4}.legal-consent-row{border:1px solid #1c3953;border-radius:14px;background:#081725;padding:12px}
body.customer-account.customer-auth-active #authScreen{display:flex!important}body.customer-account.customer-auth-active #sharedAuthShell{display:block!important}body.customer-account.customer-auth-active #customerAuthScreen{display:none!important}body.customer-account.customer-portal-ready #authScreen{display:none!important}.customer-auth-shell,.customer-auth-card{display:none!important}
body.auth-role-transitioning #authScreen{opacity:1!important;transform:none!important}.auth-role-switch.switching{pointer-events:none}
/* Customer portal refinement. */
body.customer-account.customer-portal-ready{background:radial-gradient(circle at 50% -8%,rgba(24,107,194,.12),transparent 28rem),#050c14}.customer-portal-shell{width:min(100%,620px);padding:max(20px,env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom))}.customer-portal-top{padding-bottom:15px}.customer-portal-mark{border-color:#255b87;background:#0a1a2a;box-shadow:none}.customer-portal-hero,.customer-card,.customer-search-result{border-color:#1c3b56!important;background:linear-gradient(145deg,#0a1d2d,#071521)!important;box-shadow:var(--shadow-soft)!important}.customer-portal-hero{border-radius:22px}.customer-card{border-radius:18px}.customer-portal-nav{border-color:#1b3953!important;background:rgba(7,19,31,.94)!important;box-shadow:0 15px 36px rgba(0,0,0,.32)!important}.customer-portal-nav button.active{color:#68b4fc!important}.customer-search-box input,.customer-profile-form input{border-color:#203d58!important;background:#081725!important}.customer-search-box button,.customer-profile-form button{background:linear-gradient(135deg,#1888f7,#1674df)!important}.customer-status{box-shadow:none!important}
@media(max-width:760px){input,select,textarea{font-size:16px!important}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-actions{grid-template-columns:1fr}.dashboard-launch{min-height:75px}.dashboard-hero{min-height:136px;padding:18px}.dashboard-mascot{width:92px;height:92px}.app{padding-top:14px}.topbar{margin-bottom:16px}.screen-title h2,.page-title h2{font-size:29px}}
@media(max-width:430px){.auth-screen{padding-left:14px;padding-right:14px;padding-top:max(24px,calc(env(safe-area-inset-top) + 18px))}.auth-shared-mascot{width:88px;height:88px}.auth-shared-brand h1{font-size:29px}.auth-shared-brand>p{margin-bottom:18px}.auth-role-switch{height:56px}.auth-role-description{height:50px}.auth-input input{height:59px}.auth-role-stage{min-height:274px}.dashboard-hero{min-height:126px;border-radius:22px}.dashboard-welcome h2{font-size:27px}.dashboard-mascot{width:78px;height:78px}.stats{gap:8px}.stat{padding:13px}.stat-value{font-size:22px}.card{padding:16px}.bottom-nav{width:calc(100% - 20px)}.nav-btn{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.view.active,.auth-role-slider,.auth-role-description p,.bottom-nav::before,button{transition:none!important;animation:none!important}}
