@charset "UTF-8";
:root{--control-height:46px;--action-gap:12px;--brand:#7c2aab;--brand-deep:#542078;--brand-soft:#f3e9f8;--canvas:#f2f3f5;--surface:#fff;--ink:#22212a;--muted:#686671;--line:#e6e5ea;--green:#197a56;--danger:#b62c42;--warning:#936313;--radius:20px;--focus:#0676d5;color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink)}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,3vw,2.2rem);line-height:1.2;font-weight:650;letter-spacing:-.04em}h2{font-size:1.25rem;line-height:1.3;font-weight:650;letter-spacing:-.025em}h3{font-size:1rem}a{color:var(--brand);text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}svg{width:22px;height:22px;flex-shrink:0}img{max-width:100%;display:block}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid var(--focus);outline-offset:1px}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}.stack{display:grid;gap:20px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--control-height);border:1px solid transparent;padding:10px 20px;border-radius:12px;background:var(--brand);color:white;font-weight:600;font-size:.9375rem;transition:background .15s,transform .15s}@media (hover: hover) and (pointer: fine){.btn:hover:where(:root:not([data-touch-mode]) *){background:var(--brand-deep)}}.btn.secondary{color:var(--brand);background:var(--brand-soft)}@media (hover: hover) and (pointer: fine){.btn.secondary:hover:where(:root:not([data-touch-mode]) *){background:#eadaf4}}.btn.outline{color:var(--ink);background:transparent;border-color:var(--line)}@media (hover: hover) and (pointer: fine){.btn.outline:hover:where(:root:not([data-touch-mode]) *){background:var(--canvas)}}.btn.white{background:white;color:var(--brand-deep)}.btn.ghost-white{background:transparent;color:white;border-color:#ffffff55}.btn.danger{color:var(--danger);background:#fff0f2}.btn.compact{min-height:var(--control-height);padding:10px 12px;font-size:.875rem}.btn.full{width:100%}.icon-button{padding:10px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;min-width:var(--control-height);min-height:var(--control-height);border-radius:12px;color:var(--muted)}@media (hover: hover) and (pointer: fine){.icon-button:hover:where(:root:not([data-touch-mode]) *){background:var(--canvas)}}.card{background:var(--surface);border:1px solid #eae9ee;border-radius:var(--radius);padding:24px;min-width:0}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-title a{font-size:.875rem;font-weight:600}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:30px;font-size:.8125rem;font-weight:600;line-height:1.5;background:#eeedf1;color:var(--muted);white-space:nowrap}.pill.success{background:#e8f5ee;color:#196548}.pill.warning{background:#fff3db;color:#80560d}.pill.danger{background:#ffedf0;color:var(--danger)}.pill.purple{background:var(--brand-soft);color:var(--brand)}.pill svg{width:14px;height:14px}.alert{padding:14px 18px;border-radius:12px;background:#ffedf0;color:#8d2033;font-size:.9375rem;border:1px solid #f6c9d2}.alert.success{background:#e8f5ee;color:#196548;border-color:#c5e5d2}.alert.info{background:#ecf2fc;color:#365a8d;border-color:#d2e0f6}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:700;font-size:1.15rem;letter-spacing:-.035em}.brand img{width:32px;height:32px}.sidebar{position:fixed;top:0;bottom:0;left:0;width:236px;background:white;border-right:1px solid var(--line);padding:34px 20px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{padding:0 12px 38px}.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px;color:var(--muted);font-weight:550}@media (hover: hover) and (pointer: fine){.nav a:hover:where(:root:not([data-touch-mode]) *){background:#f7f5f9}}.nav a.active{background:var(--brand-soft);color:var(--brand)}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid var(--line)}.sidebar-bottom .small{margin-bottom:14px}.app-shell{margin-left:236px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;max-width:1240px;margin:0 auto;padding:0 44px}.topbar .brand{display:none}.topbar-right{display:flex;align-items:center;gap:14px;margin-left:auto}.identity{width:40px;height:40px;border-radius:50%;background:#eadcf2;color:var(--brand);display:grid;place-items:center;font-size:.9375rem;font-weight:700}.content{padding:20px 44px 56px;max-width:1240px;margin:0 auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:30px}.page-heading .eyebrow{margin-bottom:8px}.page-heading p{margin-top:8px;color:var(--muted);font-size:.9375rem}.bottomnav{display:none}.assist-bar{background:#fff2cc;border-bottom:1px solid #eedb99;padding:10px 24px;display:flex;justify-content:center;gap:20px;align-items:center;font-size:.875rem}.demo-label{font-size:.75rem;color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:4px 9px}.status-card{background:linear-gradient(115deg,#64228e,#862daf);border:0;color:white;overflow:hidden;padding:30px;position:relative}.status-card .pill{background:#ffffff22;color:white}.status-card h2{font-size:1.65rem;max-width:520px;margin:18px 0 8px;letter-spacing:-.035em}.status-card p{color:#f1e1f8;max-width:520px}.status-card .url{display:flex;align-items:center;gap:8px;color:#ebd6f3;font-size:.875rem;margin:20px 0 24px;overflow-wrap:anywhere}.status-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.status-emblem{width:48px;height:48px;border-radius:15px;background:#ffffff1c;display:grid;place-items:center}.status-emblem svg{width:27px;height:27px}.status-card.warning{background:linear-gradient(115deg,#775218,#9b741f)}.status-card.danger{background:linear-gradient(115deg,#8e263c,#ae3650)}.home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:22px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metric-icon{width:42px;height:42px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;border-radius:12px;margin-bottom:18px}.metric-value{font-size:2rem;font-weight:650;letter-spacing:-.05em;line-height:1.2;margin:8px 0}.metric-label{font-size:.875rem;color:var(--muted)}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick-link{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-height:114px;background:#f7f5fa;border-radius:14px;padding:17px;color:var(--ink);font-size:.875rem;font-weight:600;border:1px solid transparent}@media (hover: hover) and (pointer: fine){.quick-link:hover:where(:root:not([data-touch-mode]) *){border-color:#dbc3eb;background:var(--brand-soft)}}.quick-link svg{color:var(--brand);width:25px;height:25px}.info-list{display:grid;gap:0}.info-item{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.info-item:first-child{padding-top:0}.info-item:last-child{padding-bottom:0;border-bottom:0}.info-item .icon-box{width:40px;height:40px;border-radius:12px;background:var(--canvas);color:var(--muted);display:grid;place-items:center;flex-shrink:0}.info-item .grow{min-width:0}.info-item p{font-size:.875rem;color:var(--muted);margin-top:3px}.number{font-variant-numeric:tabular-nums}.chart{width:100%;height:auto;margin-top:8px;overflow:visible}.chart text{font-family:inherit;fill:var(--muted);font-size:12px}.chart rect.bar{fill:var(--brand)}.chart .gridline{stroke:var(--line);stroke-dasharray:3 4}.chart-empty{background:var(--canvas);padding:40px 18px;text-align:center;border-radius:12px;color:var(--muted)}
label.field{display:grid;gap:7px;font-size:.875rem;font-weight:550}.field input,.field textarea,.field select{width:100%;min-height:var(--control-height);padding:10px 14px;border:1px solid #dcd9e2;border-radius:10px;background:white;color:var(--ink);font-size:1rem;font-weight:400}.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.field select{height:var(--control-height)}.field textarea{resize:vertical;min-height:110px}.field small{color:var(--muted);font-size:.8125rem;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.span-2{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px;font-size:.875rem;font-weight:400}input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;max-height:18px;aspect-ratio:1;box-sizing:border-box;padding:0;flex:0 0 18px;align-self:center;margin:0;border:1px solid #dcd9e2;border-radius:5px;background:#fff;vertical-align:middle;cursor:pointer}input[type="checkbox"]:checked{border-color:var(--brand);background-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");background-position:center;background-size:14px;background-repeat:no-repeat}input[type="checkbox"]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}input[type="checkbox"]:disabled{cursor:default;opacity:.5}@media(forced-colors:active){input[type="checkbox"]{appearance:auto;-webkit-appearance:auto}}.form-actions{display:flex;align-items:center;gap:var(--action-gap);flex-wrap:wrap;padding-top:20px}.save-state{font-size:.875rem;color:var(--muted);display:flex;align-items:center;gap:8px}.save-state[data-state=error]{color:var(--danger)}.save-state[data-state=saved]{color:var(--green)}.theme-blue{--card-accent:#126ac1}.theme-purple{--card-accent:#7c2aab}.theme-emerald{--card-accent:#17755e}.theme-orange{--card-accent:#a9511a}.theme-graphite{--card-accent:#333744}.empty{padding:30px 14px;text-align:center;color:var(--muted)}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filters a{font-size:.875rem;padding:8px 14px;border-radius:9px;color:var(--muted);background:white;border:1px solid var(--line)}.filters a.active{background:var(--brand-soft);color:var(--brand);border-color:#dbc3eb}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th{font-weight:600;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 14px;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}.invoice-card{display:flex;align-items:center;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}.invoice-card:last-child{border-bottom:0}.invoice-card p{font-size:.875rem;color:var(--muted);margin:3px 0 8px}.invoice-amount{font-size:1.25rem;font-weight:650;white-space:nowrap}.invoice-actions{display:flex;gap:var(--action-gap);align-items:center;flex-wrap:wrap}.invoice-card .grow{min-width:0}.account-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.search{display:flex;gap:12px;align-items:end}.search .field{flex:1}.client-list{display:grid;gap:12px}.client-item{display:flex;gap:15px;align-items:center;border:1px solid var(--line);padding:18px;border-radius:14px;color:var(--ink);background:white}@media (hover: hover) and (pointer: fine){.client-item:hover:where(:root:not([data-touch-mode]) *){border-color:#c9a6df}}.client-item .identity{flex-shrink:0}.client-item p{font-size:.875rem;color:var(--muted);margin-top:2px}.client-item .grow{min-width:0}.client-item .pill{margin-left:auto}.admin-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.audit-item{padding:15px 0;border-bottom:1px solid var(--line);font-size:.875rem}.audit-item:last-child{border:0}.audit-item .muted{font-size:.8125rem;margin-top:4px}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-aside{padding:50px 60px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(140deg,#3c1557,#7827a4);color:white}.auth-aside .brand{color:white}.auth-aside .brand img{filter:brightness(0) invert(1)}.auth-proof{display:flex;align-items:center;gap:10px;color:#e8d8f2;font-size:.875rem}.auth-main{display:flex;align-items:center;justify-content:center;padding:48px 32px}.auth-box{width:100%;max-width:390px}.auth-box h1{font-size:1.9rem;margin-bottom:10px}.auth-box form{display:grid;gap:20px;margin-top:24px}.auth-links{text-align:center;margin-top:20px;font-size:.875rem}.qr-container{display:flex;justify-content:center;margin:20px 0}.qr-container canvas,.qr-container img{max-width:100%;padding:12px;background:white;border:1px solid var(--line);border-radius:12px}.secret{overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:.875rem;padding:15px;background:var(--canvas);border-radius:10px}.recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-family:ui-monospace,monospace}.recovery-codes span{padding:10px;background:var(--canvas);border-radius:8px;text-align:center}.receipt{max-width:680px;margin:40px auto}.receipt dl{display:grid;grid-template-columns:1fr 1fr;gap:15px}.receipt dt{color:var(--muted)}.receipt dd{margin:0;text-align:right}.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);padding:14px 20px;border-radius:12px;background:#26222d;color:white;z-index:80;max-width:calc(100% - 32px);font-size:.875rem;box-shadow:0 8px 30px #0002}
@media(max-width:1100px){.sidebar{width:210px}.app-shell{margin-left:210px}.content{padding:14px 26px 40px}.topbar{padding:0 26px}.home-grid{grid-template-columns:1fr}.home-grid>.stack{grid-template-columns:1fr 1fr}.home-grid>.stack>.card{height:100%}.quick-links{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:78px;padding:0 20px}.topbar .brand{display:flex;font-size:1.05rem}.topbar .brand img{width:28px;height:28px}.topbar-right .small{display:none}.demo-label{display:none}.content{padding:14px 20px 118px}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading .eyebrow{font-size:.7rem;margin-bottom:7px}.page-heading p{font-size:.875rem}.page-heading .btn{min-height:42px;padding:9px 12px;font-size:.875rem}.bottomnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:30;background:#fff;border:1px solid #e7e2ed;border-radius:20px;padding:8px 5px;box-shadow:0 8px 36px #39214b16}.bottomnav a{display:grid;justify-items:center;gap:5px;font-size:.6875rem;padding:7px 2px;color:var(--muted);border-radius:12px;font-weight:550}.bottomnav a.active{background:var(--brand-soft);color:var(--brand)}.bottomnav svg{width:23px;height:23px}.card{padding:20px;border-radius:18px}.status-card{padding:24px}.status-card h2{font-size:1.45rem;margin-top:16px}.status-card p{font-size:.9375rem}.status-card .url{font-size:.8125rem;margin:18px 0}.status-card .form-actions{padding-top:0}.status-card .btn{flex:1;min-width:130px;font-size:.875rem;padding:11px 14px}.home-grid{gap:18px}.home-grid>.stack{display:grid;grid-template-columns:1fr}.metrics{gap:12px}.metrics .card{padding:18px}.metric-value{font-size:1.65rem}.quick-links{grid-template-columns:repeat(2,1fr)}.quick-link{min-height:100px;padding:15px;gap:14px}.account-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.invoice-card{flex-wrap:wrap;gap:12px}.invoice-card>.invoice-actions{width:100%;padding-left:0}.invoice-card .metric-icon{display:none}.invoice-amount{font-size:1.1rem}.admin-metrics{grid-template-columns:1fr 1fr}.admin-metrics .card:last-child{grid-column:1/-1}.client-item{padding:15px;flex-wrap:wrap}.client-item .pill{margin-left:55px}.auth-page{display:block}.auth-aside{display:none}.auth-main{min-height:100dvh;padding:32px 24px}.auth-box h1{font-size:1.8rem}.public-card{margin:20px 16px;border-radius:22px}.public-profile{padding:0 24px 24px}.preview-bar{font-size:.8125rem;gap:12px}.preview-bar .btn{font-size:.8125rem;min-height:38px;padding:8px 10px}.assist-bar{padding:10px 14px;flex-wrap:wrap;gap:8px}.receipt{margin:20px 16px}.receipt dl{font-size:.875rem}.search{flex-wrap:wrap}.search .field{min-width:200px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.sidebar,.bottomnav,.preview-bar,.no-print{display:none!important}body{background:white}.receipt{margin:0;max-width:none}.card{border:0}}

/* QR codes are content, not navigation icons. Include their SVG renderer. */
.qr-container svg,[data-public-qr] svg{display:block;width:240px;height:240px;max-width:100%;aspect-ratio:1;flex-shrink:1;background:#fff;border:1px solid var(--line);border-radius:12px}
[data-public-qr]{margin:20px auto;width:240px;max-width:100%}
