*{box-sizing:border-box}html,body,#root{height:100%}body{font-family:var(--font-family);color:var(--color-text);background:var(--color-bg);margin:0;font-size:15px;line-height:1.5}h1,h2,h3{color:var(--color-text-heading);margin:0}a{color:inherit}button{font-family:inherit}.app-shell{min-height:100vh;display:flex}.app-topbar{display:none}.app-nav-toggle{border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);background:var(--color-surface);width:40px;min-width:44px;height:40px;min-height:44px;color:var(--color-text);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;display:none}.app-nav-backdrop{display:none}.app-sidebar{background:var(--color-surface);border-right:1px solid var(--color-border-subtle);width:240px;padding:var(--space-md);gap:var(--space-lg);z-index:10;flex-direction:column;flex-shrink:0;height:100vh;display:flex;position:sticky;top:0;overflow:hidden auto}.app-brand{align-items:center;gap:var(--space-sm);padding:var(--space-xs) var(--space-sm);display:flex}.app-brand-mark{border-radius:var(--radius-md);background:var(--gradient-accent);width:32px;height:32px;color:var(--color-on-accent);flex-shrink:0;justify-content:center;align-items:center;display:flex}.app-brand-text{color:var(--color-text-heading);font-size:14px;font-weight:600;line-height:1.3}.app-nav{flex-direction:column;flex:1;gap:2px;margin:0;padding:0;list-style:none;display:flex}.app-nav a{align-items:center;gap:var(--space-sm);border-radius:var(--radius-md);color:var(--color-text);min-height:40px;padding:10px 12px;font-size:14px;font-weight:500;text-decoration:none;transition:background .15s,color .15s,transform .15s;display:flex}.app-nav a:hover{background:var(--color-surface-elevated);transform:translate(2px)}.app-nav a.active{background:var(--gradient-accent);color:var(--color-on-accent);box-shadow:var(--shadow-sm);transform:none}.app-nav-icon{flex-shrink:0;display:flex}.app-sidebar-footer{border-top:1px solid var(--color-border-subtle);padding-top:var(--space-md);gap:var(--space-sm);flex-direction:column;display:flex}.theme-toggle{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);gap:2px;padding:3px;display:flex}.theme-toggle-btn{border-radius:calc(var(--radius-md) - 2px);color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;flex:1;justify-content:center;align-items:center;gap:5px;padding:6px 4px;font-size:12px;font-weight:600;transition:background .15s,color .15s;display:flex}.theme-toggle-btn:hover{color:var(--color-text-heading)}.theme-toggle-btn.active{background:var(--color-accent);color:var(--color-on-accent)}.app-admin-identity{padding:0 var(--space-sm);flex-direction:column;gap:2px;display:flex}.app-admin-email{color:var(--color-text-heading);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.app-content{padding:var(--space-xl) var(--space-xxl);flex:1;width:100%;min-width:0;max-width:1280px;margin:0 auto}.page-header{margin-bottom:var(--space-lg);justify-content:space-between;align-items:center;gap:var(--space-md);flex-wrap:wrap;display:flex}.page-header h1{font-size:24px;font-weight:700}.page-subtitle{color:var(--color-text-muted);margin-top:4px;font-size:14px}@media (width<=860px){.app-topbar{align-items:center;gap:var(--space-sm);height:56px;padding:0 var(--space-md);background:var(--color-surface);border-bottom:1px solid var(--color-border-subtle);z-index:30;display:flex;position:fixed;top:0;left:0;right:0}.app-nav-toggle{display:flex}.app-nav-backdrop{z-index:20;background:#00000073;display:block;position:fixed;inset:0}.app-brand-desktop-only,.app-topbar .app-brand,.sidebar-search-desktop-only{display:none}.app-sidebar{border-right:1px solid var(--color-border-subtle);z-index:25;width:min(280px,85vw);height:auto;transition:transform .2s;position:fixed;top:56px;bottom:0;left:0;overflow-y:auto;transform:translate(-100%)}.app-sidebar.open{box-shadow:var(--shadow-lg,0 8px 24px #0003);transform:translate(0)}.app-content{padding:var(--space-lg);padding-top:calc(56px + var(--space-lg));width:100%;max-width:100vw}.app-sidebar-footer{display:none}}.app-topbar-spacer{flex:1}.account-menu{position:relative}.account-menu-trigger{border-radius:var(--radius-full,999px);border:1px solid var(--color-border-subtle);background:var(--color-surface-elevated);cursor:pointer;justify-content:center;align-items:center;width:36px;min-width:44px;height:36px;min-height:44px;padding:0;display:flex;overflow:hidden}.account-avatar-img{object-fit:cover;border-radius:50%;width:36px;height:36px;display:block}.account-avatar-img-lg{width:44px;height:44px}.account-avatar-fallback{background:var(--gradient-accent);width:36px;height:36px;color:var(--color-on-accent);border-radius:50%;justify-content:center;align-items:center;font-size:13px;font-weight:700;display:flex}.account-avatar-fallback-lg{flex-shrink:0;width:44px;height:44px;font-size:15px}.account-menu-dropdown{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg);width:260px;box-shadow:var(--shadow-lg,0 8px 24px #0003);padding:var(--space-sm);gap:var(--space-xs);z-index:40;flex-direction:column;display:flex;position:absolute;top:calc(100% + 8px);right:0}.account-menu-identity{align-items:center;gap:var(--space-sm);padding:var(--space-xs) var(--space-sm) var(--space-sm);border-bottom:1px solid var(--color-border-subtle);margin-bottom:var(--space-xs);display:flex}.account-menu-name{color:var(--color-text-heading);font-size:14px;font-weight:600}.account-menu-email{color:var(--color-text-muted);text-overflow:ellipsis;white-space:nowrap;max-width:160px;margin-bottom:4px;font-size:12px;overflow:hidden}.account-menu-item{align-items:center;gap:var(--space-sm);border-radius:var(--radius-md);color:var(--color-text);cursor:pointer;text-align:left;background:0 0;border:none;min-height:40px;padding:10px 12px;font-size:14px;font-weight:500;text-decoration:none;display:flex}.account-menu-item:hover{background:var(--color-surface-elevated)}.account-menu-signout{color:var(--color-danger)}.account-menu-theme{padding:var(--space-xs) 0}.sidebar-search-desktop-only{margin-bottom:var(--space-xs)}.sidebar-search-desktop-only .global-search-panel{top:132px;left:var(--space-md);position:fixed;right:auto}.global-search-trigger-label{display:none}.sidebar-search-desktop-only .global-search-trigger{justify-content:flex-start;gap:var(--space-sm);border-radius:var(--radius-md);width:100%;height:40px;min-height:40px;padding:0 12px;font-size:14px;transition:border-color .15s,color .15s}.sidebar-search-desktop-only .global-search-trigger:hover{border-color:var(--color-border);color:var(--color-text-heading)}.sidebar-search-desktop-only .global-search-trigger-label{display:inline}.global-search{position:relative}.global-search-trigger{border-radius:var(--radius-full,999px);border:1px solid var(--color-border-subtle);background:var(--color-surface-elevated);width:36px;min-width:44px;height:36px;min-height:44px;color:var(--color-text-muted);cursor:pointer;justify-content:center;align-items:center;display:flex}.global-search-panel{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg);width:min(360px,85vw);max-height:70vh;box-shadow:var(--shadow-lg,0 8px 24px #0003);padding:var(--space-sm);z-index:40;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto}.global-search-input-row{align-items:center;gap:var(--space-sm);padding:0 var(--space-xs);display:flex}.global-search-input{color:var(--color-text-heading);padding:var(--space-sm) 0;background:0 0;border:none;outline:none;flex:1;font-size:14px}.global-search-close{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;min-width:32px;min-height:32px;display:flex}.global-search-hint{color:var(--color-text-muted);padding:var(--space-sm);margin:0;font-size:13px}.global-search-group{margin-top:var(--space-xs);border-top:1px solid var(--color-border-subtle);padding-top:var(--space-xs)}.global-search-group-label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.3px;padding:4px var(--space-sm);align-items:center;gap:6px;font-size:11px;font-weight:600;display:flex}.global-search-result{text-align:left;cursor:pointer;width:100%;padding:8px var(--space-sm);border-radius:var(--radius-md);background:0 0;border:none;flex-direction:column;display:flex}.global-search-result:hover{background:var(--color-surface-elevated)}.global-search-result-title{color:var(--color-text-heading);font-size:13px;font-weight:500}.global-search-result-sub{color:var(--color-text-muted);font-size:12px}.card{background:var(--color-surface-elevated);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg);padding:var(--space-md);box-shadow:var(--shadow-sm);overflow-x:auto}.card+.card{margin-top:var(--space-lg)}.dashboard-grid{gap:var(--space-lg);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}.dashboard-grid>.card{margin-top:0}@media (width>=1200px){.dashboard-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}.card-title{color:var(--color-text-heading);margin:0 0 var(--space-sm);font-size:15px;font-weight:600}.stat-grid{gap:var(--space-md);margin-bottom:var(--space-lg);grid-template-columns:repeat(auto-fit,minmax(190px,1fr));display:grid}.stat-tile{background:var(--color-surface-elevated);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg);padding:var(--space-md);box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s,border-color .18s;animation:.42s ease-out backwards fade-slide-in;position:relative;overflow:hidden}.stat-tile:nth-child(2){animation-delay:60ms}.stat-tile:nth-child(3){animation-delay:.12s}.stat-tile:nth-child(4){animation-delay:.18s}.stat-tile:hover{box-shadow:var(--shadow-md);border-color:var(--tone-accent,var(--color-accent));transform:translateY(-3px)}.stat-tile-icon{border-radius:var(--radius-md);width:40px;height:40px;margin-top:2px;margin-bottom:var(--space-sm);justify-content:center;align-items:center;display:flex}.stat-tile-label{color:var(--color-text-muted);margin:0;font-size:12px}.stat-tile-value{color:var(--color-text-heading);letter-spacing:-.02em;margin:2px 0 0;font-size:26px;font-weight:700}.tone-accent{color:var(--color-accent);background:var(--color-accent-muted)}.tone-success{color:var(--color-success);background:var(--color-success-muted)}.tone-warning{color:var(--color-warning);background:var(--color-warning-muted)}.tone-danger{color:var(--color-danger);background:var(--color-danger-muted)}.badge{border-radius:var(--radius-full);letter-spacing:.3px;text-transform:uppercase;align-items:center;padding:3px 10px;font-size:11px;font-weight:700;display:inline-flex}.btn{justify-content:center;align-items:center;gap:var(--space-xs);border-radius:var(--radius-md);cursor:pointer;border:1.5px solid #0000;min-height:44px;padding:11px 20px;font-size:14px;font-weight:600;transition:opacity .15s,transform .1s,background .15s,border-color .15s,filter .15s,box-shadow .15s;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:not(:disabled):hover{filter:brightness(1.05);box-shadow:var(--shadow-sm)}.btn-outline:not(:disabled):hover{background:var(--color-surface);border-color:var(--color-text-muted)}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.global-search-input:focus-visible,.inline-filter-input:focus-visible{outline:none}.btn:not(:disabled):active{transform:scale(.98)}.spin{animation:.8s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-primary{background:var(--gradient-accent);color:var(--color-on-accent);border-color:#0000}.btn-secondary{background:var(--color-accent-muted);color:var(--color-accent)}.btn-outline{color:var(--color-text);border-color:var(--color-border);background:0 0}.btn-danger{background:var(--color-danger-muted);color:var(--color-danger)}.btn-icon{border-radius:var(--radius-full);background:var(--color-surface-elevated);width:40px;height:40px;color:var(--color-text-muted);border:1px solid var(--color-border-subtle);padding:0}.btn-full{width:100%}.field{gap:var(--space-xs);flex-direction:column;display:flex}.field-label{color:var(--color-text-muted);font-size:13px;font-weight:500}.field-input{border:1.5px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text-heading);background:var(--color-surface-elevated);min-height:44px;padding:11px 12px;font-family:inherit;font-size:15px;transition:border-color .18s,box-shadow .18s}.field-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 4px var(--color-accent-muted);outline:none}.field-error{color:var(--color-danger);font-size:12px}.banner{align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);border-radius:var(--radius-md);margin-bottom:var(--space-md);font-size:14px;display:flex}.progress-track{border-radius:var(--radius-full);background:var(--color-border);height:8px;overflow:hidden}.progress-fill{border-radius:var(--radius-full);height:100%}.empty-state{background:var(--color-surface-elevated);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg);padding:var(--space-xxl) var(--space-lg);text-align:center;align-items:center;gap:var(--space-sm);flex-direction:column;display:flex}.empty-state-icon{border-radius:var(--radius-full);background:var(--color-accent-muted);width:56px;height:56px;color:var(--color-accent);justify-content:center;align-items:center;display:flex}.auth-page{min-height:100vh;display:flex}.auth-visual{padding:var(--space-xxl);background:var(--gradient-accent);color:var(--color-on-accent);background-size:180% 180%;flex-direction:column;flex:50%;justify-content:center;animation:9s ease-in-out infinite alternate gradient-shift;display:flex;position:relative;overflow:hidden}.auth-visual:before{content:"";background:#ffffff1a;border-radius:50%;width:420px;height:420px;animation:7s ease-in-out infinite alternate orb-drift;position:absolute;top:-140px;right:-140px}.auth-visual:after{content:"";background:#ffffff14;border-radius:50%;width:280px;height:280px;animation:9s ease-in-out infinite alternate-reverse orb-drift;position:absolute;bottom:-100px;left:-70px}.auth-visual-content{z-index:1;max-width:420px;animation:.56s ease-out both fade-slide-in;position:relative}.auth-visual-brand{align-items:center;gap:var(--space-sm);margin-bottom:var(--space-xl);font-size:18px;font-weight:700;display:flex}.auth-visual-icon{border-radius:var(--radius-md);background:#ffffff2e;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.auth-visual-title{color:inherit;margin-bottom:var(--space-md);font-size:32px;font-weight:700;line-height:1.25}.auth-visual-subtitle{opacity:.88;margin-bottom:var(--space-xl);font-size:15px;line-height:1.6}.auth-visual-features{gap:var(--space-sm);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.auth-visual-feature{align-items:center;gap:var(--space-sm);opacity:.95;font-size:14px;display:flex}.auth-form-side{padding:var(--space-xl);background:var(--color-bg);flex:50%;justify-content:center;align-items:center;display:flex}.auth-card{background:var(--color-surface-elevated);border:1px solid var(--color-border-subtle);border-radius:var(--radius-xl);width:100%;max-width:380px;padding:var(--space-xl);box-shadow:var(--shadow-lg);gap:var(--space-md);flex-direction:column;animation:.56s ease-out .12s both fade-slide-in;display:flex}.auth-visual-feature{animation:.48s ease-out both fade-slide-in}.auth-visual-feature:first-child{animation-delay:.26s}.auth-visual-feature:nth-child(2){animation-delay:.36s}.auth-visual-feature:nth-child(3){animation-delay:.46s}.auth-visual-feature:nth-child(4){animation-delay:.56s}.page-enter{animation:.34s ease-out backwards fade-slide-in}.skeleton{border-radius:var(--radius-lg);background:var(--color-border-subtle);animation:1.4s ease-in-out infinite alternate skeleton-pulse}@keyframes fade-slide-in{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes gradient-shift{0%{background-position:0 30%}to{background-position:100% 70%}}@keyframes orb-drift{0%{transform:translate(0)scale(1)}to{transform:translate(-44px,36px)scale(1.12)}}@keyframes skeleton-pulse{0%{opacity:1}to{opacity:.45}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.auth-brand-mark{border-radius:var(--radius-xl);background:var(--color-accent-muted);width:56px;height:56px;color:var(--color-accent);justify-content:center;align-items:center;margin:0 auto 4px;display:flex}.auth-title{text-align:center;color:var(--color-text-heading);font-size:22px;font-weight:700}.auth-subtitle{text-align:center;color:var(--color-text-muted);margin-top:-8px;font-size:13px}@media (width<=900px){.auth-page{flex-direction:column;min-height:auto}.auth-visual{min-height:220px;padding:var(--space-xl) var(--space-lg);flex:none}.auth-visual-features{display:none}.auth-form-side{padding:var(--space-lg);flex:none}}.data-table{border-collapse:collapse;width:100%;min-width:480px;font-size:14px}.data-table th{text-align:left;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.3px;padding:var(--space-sm) var(--space-sm);border-bottom:1px solid var(--color-border-subtle);font-size:12px;font-weight:500}.data-table td{padding:var(--space-sm);border-bottom:1px solid var(--color-border-subtle);color:var(--color-text)}.data-table tr:last-child td{border-bottom:none}.data-table td{transition:background .12s}.data-table tbody tr:hover td{background:var(--color-surface)}@media (width<=640px){.data-table,.data-table tbody{min-width:0;display:block}.data-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.data-table tr{align-items:center;gap:6px var(--space-sm);padding:var(--space-sm) 0;border-bottom:1px solid var(--color-border-subtle);flex-wrap:wrap;display:flex}.data-table tr:last-child{border-bottom:none}.data-table td{overflow-wrap:anywhere;border-bottom:none;min-width:0;padding:0}.data-table td:first-child{color:var(--color-text-heading);flex:1 0 100%;font-weight:600}.data-table td:last-child:not(:first-child){margin-left:auto}.data-table tbody tr:hover td{background:0 0}}.toolbar{justify-content:flex-end;align-items:center;gap:var(--space-sm);margin-bottom:var(--space-md);flex-wrap:wrap;display:flex}.inline-filter{border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);background:var(--color-surface-elevated);color:var(--color-text-muted);flex:1;align-items:center;gap:6px;min-width:160px;max-width:280px;padding:8px 10px;display:flex}.inline-filter-input{color:var(--color-text-heading);background:0 0;border:none;outline:none;width:100%;font-size:13px}.form-grid{gap:var(--space-md);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));display:grid}.form-grid-full{grid-column:1/-1}.form-actions{gap:var(--space-sm);margin-top:var(--space-sm);display:flex}.checkbox-row{align-items:center;gap:var(--space-xs);color:var(--color-text);cursor:pointer;min-height:44px;font-size:14px;display:flex}.checkbox-row input{width:18px;height:18px;accent-color:var(--color-accent)}.row-actions{gap:var(--space-xs);flex-wrap:wrap;display:flex}.btn-sm{min-height:32px;padding:6px 12px;font-size:13px}.dashboard-grid-spaced{margin-top:var(--space-lg)}.chart-note{color:var(--color-text-muted);font-size:13px}.chart-details{margin-top:var(--space-md);color:var(--color-text-muted);font-size:13px}.chart-details summary{cursor:pointer}.heatmap{gap:var(--space-sm);max-width:760px;display:flex}.heatmap-days{color:var(--color-text-muted);grid-template-rows:16px repeat(7,1fr);align-items:center;gap:3px;font-size:11px;display:grid}.heatmap-weeks{flex:1;gap:3px;min-width:0;display:grid}.heatmap-week{grid-template-rows:16px repeat(7,1fr);gap:3px;min-width:0;display:grid}.heatmap-month{color:var(--color-text-muted);white-space:nowrap;font-size:11px;line-height:16px}.heatmap-cell{aspect-ratio:1;border-radius:3px;display:block}.heatmap-cell-empty{visibility:hidden}.heatmap-week .heatmap-cell:hover{outline:2px solid var(--color-text-muted);outline-offset:1px}.heatmap-footer{justify-content:space-between;align-items:center;gap:var(--space-sm);margin-top:var(--space-sm);flex-wrap:wrap;max-width:760px;display:flex}.heatmap-legend{color:var(--color-text-muted);align-items:center;gap:3px;font-size:11px;display:flex}.heatmap-legend .heatmap-cell{width:12px}.funnel{gap:var(--space-md);display:grid}.funnel-row{gap:4px;display:grid}.funnel-labels{justify-content:space-between;gap:var(--space-sm);display:flex}.funnel-name{color:var(--color-text-heading);font-size:14px}.funnel-value{color:var(--color-text-heading);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.funnel-track{background:var(--color-border-subtle);border-radius:4px;height:12px}.funnel-bar{background:var(--chart-seq-3);border-radius:0 4px 4px 0;height:100%}.segmented-bar{gap:2px;height:8px;display:flex}.segmented-bar-part{flex-basis:0;min-width:2px}.segmented-bar-part:first-child{border-radius:4px 0 0 4px}.segmented-bar-part:last-child{border-radius:0 4px 4px 0}.segmented-bar-part:only-child{border-radius:4px}.segmented-legend{margin:var(--space-md) 0 0;gap:var(--space-sm);padding:0;list-style:none;display:grid}.segmented-legend li{align-items:center;gap:var(--space-sm);display:flex}.segmented-swatch{border-radius:3px;flex-shrink:0;width:10px;height:10px}.segmented-name{min-width:0;color:var(--color-text-heading);flex:1;font-size:14px}.segmented-value{color:var(--color-text-heading);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}
