:root{color:#554f5f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--surface:#fff;--surface-subtle:#f0eeea;--heading:#1f1b24;--muted:#756f7c;--border:#e4e0db;--border-strong:#cbc5be;--brand:#397056;--brand-soft:#39705629;--success:#4c8c67;--success-soft:#4c8c6724;--danger:#a13d43;--danger-soft:#fceced;--shadow:0 24px 70px #2d27221a;background:#f6f5f2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100svh;margin:0}button,input,select{font:inherit}code{background:var(--surface-subtle);color:var(--heading);border-radius:6px;padding:2px 6px;font-family:Cascadia Code,Consolas,monospace;font-size:.9em}.setup-shell,.login-shell,.loading-screen{place-items:center;min-height:100svh;padding:24px;display:grid}.setup-card,.login-card{border:1px solid var(--border);background:var(--surface);width:min(100%,480px);box-shadow:var(--shadow);border-radius:24px;padding:36px}.eyebrow{color:var(--brand);letter-spacing:.11em;text-transform:uppercase;margin-bottom:10px;font-size:13px;font-weight:750;display:block}.auth-brand{color:var(--heading);align-items:center;gap:10px;margin-bottom:32px;font-weight:800;display:flex}.auth-brand .language-switcher{margin-left:auto}.language-switcher{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:650;display:flex}.language-switcher select{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--heading);cursor:pointer;border-radius:10px;padding:6px 30px 6px 10px}.language-switcher.compact>span{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.language-switcher.compact select{width:72px;padding:6px 22px 6px 9px;font-size:12px}.auth-tabs{background:var(--surface-subtle);border-radius:13px;grid-template-columns:1fr 1fr;gap:4px;margin-top:28px;padding:4px;display:grid}.auth-tabs button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:9px 12px;font-size:14px;font-weight:750}.auth-tabs button.active{background:var(--surface);color:var(--heading);box-shadow:0 2px 8px #2d272214}.setup-card h1,.login-card h1,.app-header h1{color:var(--heading);letter-spacing:-.04em;margin:0;font-size:clamp(30px,6vw,44px);line-height:1.05}.setup-card>p,.login-card>p{margin:18px 0 0}.setup-card ol{margin:24px 0;padding-left:22px}.setup-card li+li{margin-top:9px}.muted{color:var(--muted);font-size:14px}.login-form{gap:16px;margin-top:28px;display:grid}.forgot-button,.auth-back-button{color:var(--brand);font:inherit;cursor:pointer;background:0 0;border:0;justify-self:end;padding:0;font-size:13px;font-weight:750}.forgot-button{margin-top:-7px}.auth-back-button{justify-self:center;margin-top:2px}.auth-complete{text-align:center}.auth-complete h1{margin-top:24px}.auth-complete p{margin:14px 0 24px}.auth-complete .primary-button{width:100%}.field{color:var(--heading);gap:7px;font-size:14px;font-weight:650;display:grid}.field input{box-sizing:border-box;border:1px solid var(--border-strong);background:var(--surface);width:100%;color:var(--heading);font:inherit;border-radius:12px;outline:none;padding:12px 14px}.field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.primary-button,.secondary-button{font:inherit;cursor:pointer;border:0;border-radius:12px;padding:12px 16px;font-weight:750}.primary-button{background:var(--brand);color:#fff;margin-top:4px}.primary-button:disabled{cursor:wait;opacity:.65}.secondary-button{background:var(--surface-subtle);color:var(--heading);padding:9px 13px}.form-error{background:var(--danger-soft);color:var(--danger);border-radius:10px;margin:0;padding:10px 12px;font-size:14px}.auth-success-card{text-align:center}.auth-success-card .eyebrow{margin-top:22px}.auth-success-card .primary-button{width:100%;margin-top:24px}.auth-success-icon{background:var(--success-soft);width:54px;height:54px;color:var(--success);border-radius:50%;place-items:center;margin:0 auto;font-size:26px;font-weight:850;display:grid}.auth-help{color:var(--muted);font-size:14px}.app-shell{min-height:100svh;padding:24px}.app-header{justify-content:space-between;align-items:center;gap:20px;max-width:1200px;margin:0 auto;padding:20px 0;display:flex}.app-header h1{font-size:30px}.account-block{color:var(--muted);align-items:center;gap:12px;font-size:14px;display:flex}.empty-state{text-align:center;max-width:560px;margin:15vh auto 0}.empty-state h2{color:var(--heading);margin:16px 0 8px;font-size:28px}.status-dot{background:var(--success);width:18px;height:18px;box-shadow:0 0 0 8px var(--success-soft);border-radius:50%;margin:auto}@media (width<=640px){.setup-card,.login-card{border-radius:18px;padding:28px 22px}.app-header,.account-block{flex-direction:column;align-items:flex-start}}.workspace-layout{background:#f7f6f3;min-height:100svh}.sidebar{z-index:20;border-right:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fffffff0;flex-direction:column;width:224px;padding:22px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand-block{align-items:center;gap:11px;padding:4px 8px 24px;display:flex}.brand-block>div{gap:2px;min-width:0;display:grid}.brand-block strong{color:var(--heading);font-size:16px}.brand-block div span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.brand-mark{background:var(--brand);color:#fff;letter-spacing:.05em;border-radius:12px;flex:none;place-items:center;width:38px;height:38px;font-size:12px;font-weight:850;display:grid}.main-nav{gap:6px;display:grid}.nav-button{width:100%;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:11px;padding:11px 12px;font-weight:700;display:flex}.nav-button span{width:22px;color:var(--brand);text-align:center}.nav-button:hover,.nav-button.active{background:var(--brand-soft);color:var(--heading)}.sidebar-account{border-top:1px solid var(--border);gap:8px;min-width:0;margin-top:auto;padding:18px 8px 0;display:grid}.sidebar-account .language-switcher{width:100%}.sidebar-account .language-switcher select{flex:none}.sidebar-account>span{color:var(--muted);text-overflow:ellipsis;font-size:12px;overflow:hidden}.sidebar-account .text-button{justify-self:start}.workspace-main{min-width:0;margin-left:224px;padding:34px clamp(20px,3vw,48px) 48px}.content-section,.month-section{max-width:1500px;margin:0 auto}.section-header,.month-toolbar{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px;display:flex}.section-header h2,.month-toolbar h2{color:var(--heading);letter-spacing:-.035em;margin:0;font-size:clamp(28px,4vw,38px);line-height:1.05}.section-header p:not(.section-kicker){max-width:640px;color:var(--muted);margin:9px 0 0}.section-kicker{color:var(--brand);letter-spacing:.09em;text-transform:uppercase;margin:0 0 7px;font-size:12px;font-weight:800}.entity-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;display:grid}.entity-card,.rate-row,.panel-empty,.onboarding-card{border:1px solid var(--border);background:var(--surface);border-radius:18px;box-shadow:0 8px 28px #2d27220b}.entity-card{padding:20px}.entity-card-heading{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.entity-card h3,.panel-empty h3,.onboarding-card h3{color:var(--heading);margin:0;font-size:19px}.entity-card-heading p,.panel-empty p,.onboarding-card p{color:var(--muted);margin:5px 0 0;font-size:14px}.color-badge{border-radius:999px;padding:5px 8px;font-size:11px;font-weight:850}.entity-details{gap:10px;margin:22px 0;display:grid}.entity-details div{justify-content:space-between;gap:12px;display:flex}.entity-details dt{color:var(--muted);font-size:13px}.entity-details dd{color:var(--heading);text-align:right;margin:0;font-size:13px;font-weight:700}.card-actions,.form-actions,.form-actions-group,.toolbar-actions{align-items:center;gap:10px;display:flex}.card-actions{justify-content:flex-end}.text-button{color:var(--brand);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;padding:2px;font-size:13px;font-weight:750;display:inline-flex}.danger-text{color:var(--danger)}.panel-empty{text-align:center;padding:48px 28px}.rates-list{gap:10px;display:grid}.rate-row{grid-template-columns:auto minmax(160px,1fr) minmax(140px,auto) auto;align-items:center;gap:16px;padding:16px 18px;display:grid}.rate-swatch{border:1px solid #00000014;border-radius:6px;flex:none;width:18px;height:18px;display:inline-block}.rate-name,.rate-value{gap:3px;display:grid}.rate-name strong,.rate-value strong{color:var(--heading)}.rate-name span,.rate-value span{color:var(--muted);font-size:12px}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1f1b247a;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow-y:auto}.modal-card{background:var(--surface);border-radius:22px;width:min(100%,610px);max-height:calc(100svh - 48px);padding:24px;overflow-y:auto;box-shadow:0 30px 100px #14111642}.modal-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.modal-header h2{color:var(--heading);margin:0;font-size:24px}.icon-button{border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--heading);cursor:pointer;border-radius:12px;flex:none;place-items:center;font-size:22px;display:inline-grid}.entity-form{grid-template-columns:1fr 1fr;gap:16px;display:grid}.wide-field{grid-column:1/-1}.field input,.field select{box-sizing:border-box;border:1px solid var(--border-strong);background:var(--surface);width:100%;min-height:44px;color:var(--heading);border-radius:11px;outline:0;padding:10px 12px}.field input:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.color-field{border:0;margin:0;padding:0}.color-field legend{color:var(--heading);margin-bottom:8px;font-size:14px;font-weight:650}.palette-row{align-items:center;gap:10px;display:flex}.palette-dot{width:32px;height:32px;box-shadow:0 0 0 1px var(--border-strong);cursor:pointer;border:3px solid #fff;border-radius:50%}.palette-dot.selected{box-shadow:0 0 0 2px var(--heading)}.palette-row input[type=color]{background:0 0;border:0;width:36px;height:36px;padding:0}.rate-preview,.visit-calculation{border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:13px 15px;display:flex}.visit-calculation{background:var(--surface-subtle);color:var(--heading)}.form-actions{border-top:1px solid var(--border);justify-content:flex-end;margin-top:4px;padding-top:18px}.split-actions{justify-content:space-between}.visit-context{background:var(--surface-subtle);border-radius:12px;justify-content:space-between;gap:16px;margin:-10px 0 20px;padding:12px 14px;display:flex}.visit-context strong{color:var(--heading)}.visit-context span{color:var(--muted);font-size:14px}.month-toolbar{align-items:center}.month-switcher{align-items:center;gap:14px;display:flex}.summary-strip{gap:10px;margin-bottom:16px;padding-bottom:4px;display:flex;overflow-x:auto}.summary-card{border:1px solid var(--border);background:var(--surface);border-radius:14px;align-items:center;gap:10px;min-width:210px;padding:12px 14px;display:flex}.summary-card div{gap:3px;display:grid}.summary-card strong{color:var(--heading);font-size:13px}.summary-card div span{color:var(--muted);white-space:nowrap;font-size:12px}.total-card{background:var(--heading);margin-left:auto}.total-card strong,.total-card div span{color:#fff}.calendar-scroll{border:1px solid var(--border-strong);background:var(--surface);border-radius:16px;max-height:calc(100svh - 230px);overflow:auto;box-shadow:0 12px 36px #2d27220f}.calendar-grid{grid-auto-rows:auto;width:max-content;min-width:100%;display:grid}.calendar-row{display:contents}.calendar-corner,.day-heading{z-index:8;border-right:1px solid var(--border);border-bottom:1px solid var(--border-strong);background:#fff;min-height:58px;padding:10px;position:sticky;top:0}.calendar-corner{z-index:12;color:var(--muted);text-transform:uppercase;align-items:center;font-size:12px;font-weight:750;display:flex;left:0}.day-heading{color:var(--heading);place-items:center;gap:1px;display:grid}.day-heading span{color:var(--muted);text-transform:uppercase;font-size:10px}.day-heading strong{font-size:17px}.weekend{background-color:#f7edf1}.day-heading.today{box-shadow:inset 0 3px 0 var(--brand)}.client-heading-cell{z-index:6;border-right:1px solid var(--border-strong);border-bottom:1px solid var(--border);background:#fff;flex-direction:column;justify-content:center;min-height:82px;padding:11px 14px;display:flex;position:sticky;left:0}.client-heading-cell strong{color:var(--heading);text-overflow:ellipsis;font-size:13px;overflow:hidden}.client-heading-cell>span{color:var(--muted);margin-top:3px;font-size:11px}.progress-track{background:var(--surface-subtle);border-radius:999px;height:4px;margin-top:8px;overflow:hidden}.progress-track span{border-radius:inherit;background:var(--brand);height:100%;display:block}.calendar-cell{border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);min-height:82px;color:var(--heading);cursor:pointer;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:4px;padding:5px;display:flex;overflow:hidden}.calendar-cell:hover{box-shadow:inset 0 0 0 2px var(--brand-soft)}.calendar-cell.today{box-shadow:inset 0 0 0 2px var(--brand)}.visit-chip{width:100%;font:inherit;text-align:center;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border:0;border-radius:6px;padding:5px 4px;font-size:10px;font-weight:750;line-height:1.15;display:block;overflow:hidden}.add-cell{color:#0000;margin:auto;font-size:20px;transition:color .12s}.calendar-cell:hover .add-cell{color:var(--brand)}.compact-calendar .calendar-cell,.compact-calendar .client-heading-cell{min-height:62px}.calendar-hint{color:var(--muted);margin:9px 3px 0;font-size:12px}.onboarding-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.onboarding-card{padding:28px}.onboarding-card>span{background:var(--brand-soft);width:34px;height:34px;color:var(--brand);border-radius:50%;place-items:center;margin-bottom:28px;font-weight:850;display:grid}.onboarding-card p{min-height:42px;margin-bottom:22px}.onboarding-card.complete>span{background:var(--success);color:#fff}.global-error{background:var(--danger-soft);max-width:1500px;color:var(--danger);border-radius:12px;justify-content:space-between;gap:20px;margin:0 auto 18px;padding:12px 14px;font-size:14px;display:flex}.global-error button{color:inherit;cursor:pointer;background:0 0;border:0}.workspace-loading{min-height:70svh;color:var(--muted);justify-content:center;align-items:center;gap:12px;display:flex}.spinner{border:2px solid var(--brand-soft);border-top-color:var(--brand);border-radius:50%;width:20px;height:20px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.mobile-nav,.mobile-toolbar{display:none}.error-screen section{text-align:center;max-width:520px}.error-screen h1{color:var(--heading)}@media (width<=820px){.sidebar{display:none}.workspace-main{margin-left:0;padding:24px 14px 92px}.mobile-toolbar{color:var(--heading);justify-content:space-between;align-items:center;margin:-8px 0 22px;display:flex}.mobile-nav{z-index:40;border:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff0;border-radius:18px;grid-template-columns:repeat(3,1fr);padding:7px;display:grid;position:fixed;inset:auto 10px 10px;box-shadow:0 14px 44px #1f1b2429}.mobile-nav button{color:var(--muted);background:0 0;border:0;border-radius:11px;place-items:center;gap:2px;padding:7px 4px;font-size:11px;font-weight:750;display:grid}.mobile-nav button span{color:var(--brand);font-size:16px}.mobile-nav button.active{background:var(--brand-soft);color:var(--heading)}.section-header,.month-toolbar{flex-direction:column;align-items:flex-start}.month-toolbar{gap:14px}.toolbar-actions{width:100%}.toolbar-actions button{flex:1}.summary-strip{margin-right:-14px}.total-card{margin-left:0}.calendar-scroll{border-radius:12px;max-height:calc(100svh - 300px)}.rate-row{grid-template-columns:auto 1fr auto}.rate-row .card-actions{grid-column:2/-1;justify-content:flex-start}.onboarding-grid{grid-template-columns:1fr}}@media (width<=560px){.entity-form{grid-template-columns:1fr}.wide-field{grid-column:1}.modal-backdrop{align-items:end;padding:0}.modal-card{border-radius:22px 22px 0 0;max-height:92svh;padding:22px 18px}.visit-context{flex-direction:column;align-items:flex-start;gap:4px}.section-header>.primary-button{width:100%}}
