.layout{display:flex;min-height:100vh;background-color:hsl(var(--background))}:root{--sidebar-width: 220px;--sidebar-collapsed-width: 76px;--topbar-height: 60px}.sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);background-color:hsl(var(--card));border-right:1px solid hsl(var(--border));display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:100;transition:transform .2s ease,width .2s ease}.sidebar-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid hsl(var(--border))}.logo{display:flex;align-items:center;justify-content:center;width:32px;height:32px}.sidebar-nav{flex:1;padding:16px 12px;display:flex;flex-direction:column;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:calc(var(--radius) - 2px);color:hsl(var(--muted-foreground));text-decoration:none;font-size:14px;font-weight:500;border-left:2px solid transparent;margin-left:-2px;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.nav-link:hover{background-color:hsl(var(--accent));color:hsl(var(--accent-foreground))}.nav-link-active{background-color:hsl(var(--secondary));color:hsl(var(--secondary-foreground));border-left-color:hsl(var(--primary))}.nav-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}.nav-label{white-space:nowrap;transition:opacity .15s ease}.sidebar-footer{padding:16px 20px;border-top:1px solid hsl(var(--border));display:flex;align-items:center;justify-content:center}.sidebar-toggle{width:40px;height:40px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.sidebar-toggle-icon{font-size:18px}.sidebar-toggle:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.layout.collapsed .sidebar{width:var(--sidebar-collapsed-width);min-width:var(--sidebar-collapsed-width)}.layout.collapsed .nav-label{display:none}.layout.collapsed .nav-link{justify-content:center;padding:10px;border-left:none;margin-left:0}.layout.collapsed .main-wrapper{margin-left:var(--sidebar-collapsed-width)}.main-wrapper{flex:1;margin-left:var(--sidebar-width);display:flex;flex-direction:column;min-height:100vh;min-width:0;transition:margin-left .2s ease}.topbar{height:var(--topbar-height);min-height:var(--topbar-height);background-color:hsl(var(--card));border-bottom:1px solid hsl(var(--border));display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:150}.topbar-title{font-size:18px;font-weight:600;color:hsl(var(--foreground));margin:0;letter-spacing:-.01em}.topbar-actions{display:flex;align-items:center;gap:12px}.main-content{flex:1;background-color:hsl(var(--background));padding:24px;color:hsl(var(--foreground))}@media(max-width:768px){.sidebar{transform:translate(-100%)}.sidebar.open{transform:translate(0)}.main-wrapper{margin-left:0}.topbar{padding:0 16px}.main-content{padding:16px}}.main-content>*{animation:fadeIn .2s ease}.envelope-form-custom{display:flex;flex-direction:column;gap:12px;padding-top:4px}.envelope-form-custom-header{display:flex;flex-direction:column;gap:4px}.envelope-form-custom-header h3{margin:0;font-size:1rem}.envelope-form-multiselect-list{display:grid;gap:10px;padding:10px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--muted))}.envelope-form-multiselect-list.is-error{border-color:hsl(var(--destructive))}.envelope-form-option,.envelope-form-checkbox{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:hsl(var(--foreground));cursor:pointer}.profile-menu-container{position:relative}.profile-menu-trigger{display:flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;cursor:pointer;border-radius:999px;transition:transform .15s ease;outline-offset:2px}.profile-menu-trigger:hover{transform:scale(1.03)}.profile-menu-trigger:focus{outline:2px solid hsl(var(--ring))}.profile-menu-dropdown{min-width:300px;max-width:340px;padding:0;overflow:hidden}.profile-menu-section{padding:12px;border-bottom:1px solid hsl(var(--border))}.profile-menu-section:last-child{border-bottom:none}.profile-menu-user-info{display:flex;align-items:center;gap:12px}.profile-menu-user-text{display:flex;flex-direction:column;gap:2px;min-width:0}.profile-menu-user-name{font-weight:600;color:hsl(var(--foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu-user-email{font-size:.85rem;color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu-user-title{font-size:.78rem;color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu-section-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:hsl(var(--muted-foreground));margin-bottom:6px}.profile-menu-current-org{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-menu-org-name{font-weight:600;color:hsl(var(--foreground))}.role-badge{padding:.15rem .5rem;border-radius:999px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.role-badge-admin{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.role-badge-member{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.profile-menu-org-list{display:flex;flex-direction:column;gap:6px}.profile-menu-org-item{display:flex;align-items:center;justify-content:space-between}.profile-menu-org-item:hover:not(:disabled){background:hsl(var(--accent));border-color:hsl(var(--border))}.profile-menu-org-item.active{background:hsl(var(--secondary));border-color:hsl(var(--border))}.profile-menu-org-item:disabled{opacity:.6;cursor:not-allowed}.profile-menu-org-item-name{font-weight:600}.profile-menu-actions{display:flex;flex-direction:column;gap:6px}.profile-menu-action{font-weight:600;min-height:40px}.profile-menu-action-danger{color:hsl(var(--destructive))}.profile-menu-action-danger:hover{background:hsl(var(--destructive) / .12)}.profile-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow-y:auto}.profile-dialog-form{display:flex;flex-direction:column;gap:18px}.profile-dialog-avatar-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted) / .45)}.profile-dialog-avatar{box-shadow:0 0 0 1px hsl(var(--border))}.profile-dialog-avatar-copy{min-width:0;text-align:left}.profile-dialog-avatar-title{font-size:.95rem;font-weight:700;color:hsl(var(--foreground))}.profile-dialog-avatar-subtitle{margin-top:2px;font-size:.8rem;color:hsl(var(--muted-foreground))}.profile-avatar-upload{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));color:hsl(var(--foreground));font-size:.875rem;font-weight:700;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.profile-avatar-upload:hover{border-color:hsl(var(--ring));background:hsl(var(--accent))}.profile-avatar-upload.is-disabled{opacity:.65;cursor:not-allowed}.profile-avatar-upload input{display:none}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-form-span-2{grid-column:1 / -1}.profile-dialog-error{align-items:flex-start}@media(max-width:560px){.profile-menu-dropdown{width:min(340px,calc(100vw - 24px));max-width:calc(100vw - 24px)}.profile-dialog-avatar-row{grid-template-columns:1fr;justify-items:start}.profile-dialog-avatar-row{display:flex;flex-wrap:wrap}.profile-form-grid{grid-template-columns:1fr}.profile-form-span-2{grid-column:auto}}.cenerio-logo{display:block;flex-shrink:0}.cenerio-logo__blue{fill:hsl(var(--cenerio-mark-blue))}.cenerio-logo__purple{fill:hsl(var(--cenerio-mark-purple))}.cenerio-logo__mint{fill:hsl(var(--cenerio-mark-mint))}.cenerio-logo__core{fill:hsl(var(--cenerio-mark-core))}.no-org-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:hsl(var(--background));padding:24px}.no-org-card{max-width:480px;width:100%;background:hsl(var(--card));border-radius:var(--radius);border:1px solid hsl(var(--border));box-shadow:var(--shadow-3xl);padding:48px 32px;text-align:center}.no-org-icon{width:80px;height:80px;margin:0 auto 24px;background:hsl(var(--muted));border-radius:50%;display:flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground))}.no-org-icon-svg{display:block}.no-org-title{font-size:1.5rem;font-weight:700;color:hsl(var(--foreground));margin:0 0 12px}.no-org-email{font-size:.9rem;color:hsl(var(--muted-foreground));margin:0 0 24px;padding:8px 16px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 4px);border:1px solid hsl(var(--border));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.no-org-message{font-size:1rem;color:hsl(var(--muted-foreground));line-height:1.6;margin:0 0 32px}.no-org-info{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);padding:20px;margin-bottom:32px;text-align:left;color:hsl(var(--muted-foreground))}.no-org-info-row{display:flex;align-items:flex-start;gap:12px}.no-org-info-icon{flex-shrink:0;margin-top:2px}.no-org-info-title{font-size:.9rem;font-weight:600;color:hsl(var(--foreground));margin:0 0 6px}.no-org-info-text{font-size:.9rem;color:hsl(var(--muted-foreground));line-height:1.6;margin:0}.no-org-error{background:hsl(var(--destructive) / .12);border:1px solid hsl(var(--destructive) / .3);border-radius:calc(var(--radius) - 4px);padding:12px;margin-bottom:16px;color:hsl(var(--destructive));font-size:.9rem}.no-org-actions{display:flex;flex-direction:column;gap:12px}.no-org-action{width:100%;justify-content:center}.no-org-footer{margin-top:32px;font-size:.85rem;color:hsl(var(--muted-foreground));line-height:1.5}.error-boundary{display:flex;align-items:center;justify-content:center;min-height:100vh;background-color:hsl(var(--background));padding:24px}.error-boundary-card{max-width:560px;width:100%;background-color:hsl(var(--card));border-radius:16px;border:1px solid hsl(var(--border));box-shadow:var(--shadow-lg);padding:48px 32px;text-align:center}.error-boundary-icon{width:80px;height:80px;margin:0 auto 24px;background-color:hsl(var(--destructive) / .15);border-radius:50%;display:flex;align-items:center;justify-content:center;color:hsl(var(--destructive))}.error-boundary-title{font-size:24px;font-weight:700;color:hsl(var(--foreground));margin-bottom:12px}.error-boundary-message{font-size:16px;color:hsl(var(--muted-foreground));line-height:1.6;margin-bottom:24px}.error-boundary-details{text-align:left;background-color:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:8px;padding:16px;margin-bottom:24px;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:hsl(var(--muted-foreground));cursor:pointer}.error-boundary-summary{font-weight:600;margin-bottom:8px;-webkit-user-select:none;user-select:none}.error-boundary-details-body{margin-top:12px;white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto}.error-boundary-actions{display:flex;flex-direction:column;gap:12px}.error-boundary-help{margin-top:32px;font-size:13px;color:hsl(var(--muted-foreground));line-height:1.5}.executive-dashboard{max-width:1400px;margin:0 auto;padding:0}.dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;margin-bottom:2.5rem;padding-bottom:2rem;border-bottom:1px solid hsl(var(--border))}@media(max-width:768px){.dashboard-header{flex-direction:column;gap:1.5rem}}.dashboard-header-content{flex:1}.dashboard-header-actions{display:flex;align-items:center;gap:.75rem}.dashboard-budget-trigger{display:inline-flex;align-items:center;gap:.5rem;justify-content:space-between;min-width:220px;max-width:320px}.dashboard-budget-trigger span{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-budget-menu{min-width:240px}.dashboard-fy-label{cursor:pointer}.dashboard-fy-label:hover,.dashboard-fy-label.is-active{color:hsl(var(--foreground))}.eyebrow{font-size:.75rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.1em;margin:0 0 .5rem;font-weight:600}.dashboard-title{font-size:2.25rem;font-weight:700;margin:0 0 .5rem;letter-spacing:-.02em;color:hsl(var(--foreground))}.dashboard-description{font-size:1rem;color:hsl(var(--muted-foreground));margin:0;line-height:1.6}.hero-kpis-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;margin-bottom:3rem}@media(max-width:768px){.hero-kpis-section{grid-template-columns:1fr}}.hero-kpi-card{background:hsl(var(--card));border-radius:16px;border:1px solid hsl(var(--border));padding:1.75rem;transition:transform .2s ease,box-shadow .2s ease}.hero-kpi-card.highlighted{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));border-color:hsl(var(--border))}.hero-kpi-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-header)}.hero-kpi-label{font-size:.875rem;font-weight:500;color:hsl(var(--muted-foreground));margin:0 0 .75rem;text-transform:uppercase;letter-spacing:.05em}.hero-kpi-card.highlighted .hero-kpi-label,.hero-kpi-card.highlighted .hero-kpi-subtitle{color:hsl(var(--secondary-foreground));opacity:.85}.hero-kpi-value{font-size:2rem;font-weight:700;margin:0 0 .5rem;letter-spacing:-.02em}.hero-kpi-value.trend-positive{color:var(--metric-actual-strong)}.hero-kpi-value.trend-negative{color:hsl(var(--destructive))}.hero-kpi-subtitle{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.budget-cards-section{margin-bottom:3rem}.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}@media(max-width:640px){.section-header{flex-direction:column;align-items:stretch}}.section-title{font-size:1.5rem;font-weight:700;margin:0 0 .25rem;letter-spacing:-.01em}.section-subtitle{font-size:.95rem;color:hsl(var(--muted-foreground));margin:0}.budget-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.5rem}@media(max-width:768px){.budget-cards-grid{grid-template-columns:1fr}}.budget-card{background:hsl(var(--card));border-radius:16px;border:1px solid hsl(var(--border));padding:1.75rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative}.budget-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-header-strong);border-color:hsl(var(--ring))}.budget-card:focus{outline:none;box-shadow:0 0 0 3px hsl(var(--ring) / .3)}.budget-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.budget-card-title{font-size:1.125rem;font-weight:600;margin:0 0 .25rem}.budget-card-subtitle{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.budget-health-indicator{width:12px;height:12px;border-radius:50%;flex-shrink:0;margin-top:4px}.budget-health-indicator.healthy{background-color:var(--metric-actual-strong);box-shadow:0 0 0 3px var(--metric-actual-bg)}.budget-health-indicator.warning{background-color:var(--metric-forecast-strong);box-shadow:0 0 0 3px var(--metric-forecast-bg)}.budget-health-indicator.over-budget{background-color:hsl(var(--destructive));box-shadow:0 0 0 3px hsl(var(--destructive) / .2)}.spark-bar-container{margin-bottom:1.25rem}.spark-bar-labels{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:.75rem}.spark-bar-label-item{display:flex;align-items:center;gap:.5rem}.spark-bar-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.spark-bar-dot.plan{background-color:hsl(var(--muted-foreground))}.spark-bar-dot.forecast{background-color:var(--metric-forecast-strong)}.spark-bar-dot.actual{background-color:var(--metric-actual-strong)}.spark-bar-text{font-size:.75rem;color:hsl(var(--muted-foreground));white-space:nowrap}.spark-bar-track{position:relative;height:32px;background-color:hsl(var(--muted));border-radius:8px;overflow:hidden}.spark-bar-segment{position:absolute;left:0;top:0;height:100%;transition:width .5s ease}.spark-bar-segment.plan{background-color:hsl(var(--muted-foreground)) / .25);z-index:1}.spark-bar-segment.forecast{background-color:var(--metric-forecast-border);z-index:2}.spark-bar-segment.actual{background-color:var(--metric-actual-border);z-index:3}.budget-card-footer{display:flex;justify-content:space-between;gap:1rem;padding-top:1rem;border-top:1px solid hsl(var(--border))}.budget-card-metric{display:flex;flex-direction:column;gap:.25rem}.budget-card-metric-label{font-size:.75rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.05em}.budget-card-metric-value{font-size:1.125rem;font-weight:700}.budget-card-metric-value.positive{color:var(--metric-actual-text)}.budget-card-metric-value.negative{color:hsl(var(--destructive))}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center}.empty-icon{color:hsl(var(--muted-foreground));margin-bottom:1rem}.empty-title{font-size:1.25rem;font-weight:600;margin:0 0 .5rem}.empty-text{font-size:1rem;color:hsl(var(--muted-foreground));margin:0}.state-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center}.state-text{color:hsl(var(--muted-foreground));margin:1rem 0;font-size:1rem}.loading-spinner{width:40px;height:40px;border:3px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .8s linear infinite}.budgets-page{max-width:var(--container-max);margin:0 auto;padding:12px 18px 32px}.budgets-page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.budgets-page-header-content{flex:1}.budgets-page-title{font-size:2rem;font-weight:800;color:hsl(var(--foreground));margin:0 0 8px;letter-spacing:-.01em}.budgets-page-description{font-size:.95rem;color:hsl(var(--muted-foreground));margin:0;max-width:640px}.budgets-page-actions{display:flex;gap:12px;align-items:center;flex-wrap:nowrap}.budgets-search-box{position:relative;min-width:260px;flex-shrink:0}.budgets-search-input-wrapper{width:100%;height:2.5rem;padding:0 .6rem}.budgets-search-input-wrapper .ui-search-input{height:100%}.search-icon{color:hsl(var(--muted-foreground));font-size:16px}.clear-search{height:28px;width:28px}.clear-search svg{font-size:14px}.budgets-fy-filter{width:160px;flex-shrink:0}.budgets-fy-trigger{width:100%}.budgets-view-toggle{flex-shrink:0}.budgets-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:hsl(var(--popover));border:1px solid hsl(var(--border));border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:8px;z-index:10;display:flex;flex-direction:column;gap:4px}.budgets-search-result-row:hover{background:hsl(var(--muted))}.budgets-search-result-text{flex:1;display:flex;flex-direction:column;gap:4px}.budgets-search-title{font-weight:600;color:hsl(var(--foreground));font-size:.95rem}.budgets-search-subtitle{color:hsl(var(--muted-foreground));font-size:.85rem}.budgets-search-meta{color:hsl(var(--muted-foreground));font-size:.82rem;font-weight:600}.budgets-search-empty{padding:16px;text-align:center;color:hsl(var(--muted-foreground));font-size:.9rem}.budgets-state-card{max-width:560px;margin:40px auto;text-align:center}.budgets-state-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px 16px}.budgets-state-text{color:hsl(var(--muted-foreground));margin:0;font-size:.95rem}.budgets-error-icon,.budgets-empty-icon{font-size:48px;color:hsl(var(--muted-foreground))}.budgets-error-icon{color:hsl(var(--destructive))}.budgets-error-text{color:hsl(var(--destructive));margin:0;font-weight:600}.budgets-empty-title{font-size:1.25rem;font-weight:700;margin:0;color:hsl(var(--foreground))}.loading-spinner{width:40px;height:40px;border:3px solid hsl(var(--muted));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin .8s linear infinite}.budgets-grid{display:grid;gap:20px}.budgets-grid--grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}.budgets-grid--row{grid-template-columns:1fr}.budget-card{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.budget-card:hover{transform:translateY(-2px);border-color:hsl(var(--ring))}.budget-card:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.budget-card-header-content{flex:1;display:flex;flex-direction:column;gap:10px}.budget-card-meta{display:flex;gap:8px;flex-wrap:wrap}.budget-card-date{display:flex;align-items:center;gap:8px;color:hsl(var(--muted-foreground));font-size:.9rem;margin:0}.budget-card-date svg{color:hsl(var(--muted-foreground));font-size:14px}.budget-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.budget-card-stat{display:flex;gap:10px;align-items:flex-start}.budget-card-stat-icon{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.budget-card-stat-icon.plan{background:hsl(var(--muted));color:hsl(var(--foreground))}.budget-card-stat-icon.forecast{background:var(--metric-forecast-bg);color:var(--metric-forecast-text)}.budget-card-stat-icon.actual{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.budget-card-stat-icon.headroom{background:hsl(var(--accent));color:hsl(var(--foreground))}.budget-card-stat-content{flex:1;min-width:0}.budget-card-stat-label{color:hsl(var(--muted-foreground));font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em;margin-bottom:4px}.budget-card-stat-value{color:hsl(var(--foreground));font-size:1rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.budgets-form-error-banner{display:flex;align-items:center;gap:10px;padding:12px 16px;background:hsl(var(--destructive) / .12);border:1px solid hsl(var(--destructive) / .3);border-radius:var(--radius-md);color:hsl(var(--destructive));font-size:.9rem;font-weight:600;margin-bottom:16px}.budgets-form-error-banner svg{font-size:16px;flex-shrink:0}.budgets-view-toggle{display:flex;gap:4px;padding:4px;background:hsl(var(--muted));border-radius:var(--radius)}.budget-row-card{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.budget-row-card:hover{transform:translateY(-1px);border-color:hsl(var(--ring))}.budget-row-card:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.budget-row-card-content{display:flex;align-items:center;gap:24px;padding:20px 24px;position:relative}.budget-row-card-left{flex:0 0 240px;display:flex;flex-direction:column;gap:6px}.budget-row-card-left h3{margin:0;font-size:1.1rem;font-weight:700;color:hsl(var(--foreground))}.budget-row-card-date{display:flex;align-items:center;gap:8px;color:hsl(var(--muted-foreground));font-size:.85rem;margin:0}.budget-row-card-date svg{color:hsl(var(--muted-foreground));font-size:12px}.budget-row-card-middle{flex:0 0 auto;display:flex;align-items:center;gap:16px}.budget-row-card-meta{display:flex;gap:8px;flex-wrap:wrap}.budget-row-card-right{flex:1;display:flex;align-items:center;justify-content:flex-end;min-width:0}.budget-row-card-stats{display:flex;gap:24px;align-items:center}.budget-row-card-stat{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:100px}.budget-row-card-stat-icon{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.budget-row-card-stat-icon.plan{background:hsl(var(--muted));color:hsl(var(--foreground))}.budget-row-card-stat-icon.forecast{background:var(--metric-forecast-bg);color:var(--metric-forecast-text)}.budget-row-card-stat-icon.actual{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.budget-row-card-stat-icon.headroom{background:hsl(var(--accent));color:hsl(var(--foreground))}.budget-row-card-stat-content{display:flex;flex-direction:column;align-items:center;gap:4px}.budget-row-card-stat-label{color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.budget-row-card-stat-value{color:hsl(var(--foreground));font-size:.95rem;font-weight:700;white-space:nowrap}.budget-row-card-progress{position:absolute;bottom:0;left:0;right:0;height:4px;overflow:hidden}.budget-row-card-progress>div{height:100%;border-radius:0}.budget-progress{position:relative;height:4px;width:100%;border-radius:0;background:hsl(var(--secondary));overflow:hidden;display:flex}.budget-progress-segment{height:100%}.budget-progress-segment.actual{background:var(--metric-actual-primary, hsl(var(--foreground)))}.budget-progress-segment.commit{background:var(--metric-commit-primary, hsl(var(--foreground)))}.budget-progress-segment.uncommitted{background:var(--metric-uncommitted-primary, hsl(var(--foreground)))}@media(max-width:960px){.budgets-page-header{flex-direction:column;align-items:stretch}.budgets-page-actions{width:100%}.budgets-search-box{flex:1;min-width:0}.budgets-grid{grid-template-columns:1fr}.budget-row-card-content{flex-wrap:wrap;gap:16px}.budget-row-card-left{flex:0 0 100%}.budget-row-card-middle{flex:0 0 100%;justify-content:space-between}.budget-row-card-right{flex:0 0 100%;justify-content:center}.budget-row-card-stats{gap:16px}}@media(max-width:640px){.budgets-page{padding:12px}.budgets-page-title{font-size:1.5rem}.budgets-card-stats{grid-template-columns:1fr;gap:10px}.budget-row-card-content{padding:16px}.budget-row-card-stats{flex-direction:column;gap:12px;width:100%}.budget-row-card-stat{width:100%;flex-direction:row;justify-content:space-between}.budget-row-card-stat-content{align-items:flex-end}}.budget-v2-shell{max-width:var(--container-max);margin:0 auto;padding:12px 18px 32px;overflow-x:hidden;width:100%;min-width:0}.budget-v2-shell.grid-expanded{max-width:100%;padding:8px 12px 24px}.budget-v2-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-bottom:16px}.budget-v2-shell.grid-expanded .budget-v2-header{align-items:start}.budget-v2-header-meta{display:inline-flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;align-items:center}.budget-v2-shell.grid-expanded .budget-v2-header-meta{gap:8px;width:100%}.budget-v2-actions{display:inline-flex;gap:10px;justify-content:flex-end}.budget-v2-hero{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:stretch;margin-bottom:20px}.budget-v2-hero-redesign{margin-bottom:24px}.hero-header,.hero-title-group{display:flex;flex-direction:column;gap:12px}.budget-v2-title-redesign{font-size:2rem;font-weight:800;color:hsl(var(--foreground));margin:0;letter-spacing:-.01em;line-height:1.2}.hero-metadata{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hero-date-range{display:inline-flex;align-items:center;gap:8px;color:hsl(var(--muted-foreground));font-size:1rem;font-weight:500}.hero-date-range svg{color:hsl(var(--primary));font-size:.95rem}.envelope-title{font-weight:700;font-size:.95rem;color:hsl(var(--foreground));margin:0 0 4px}.budget-v2-title{font-size:2rem;margin:0;color:hsl(var(--foreground));display:flex;gap:10px;align-items:center;flex-wrap:wrap}.budget-v2-subtitle{font-size:1rem;color:hsl(var(--muted-foreground));font-weight:500}.budget-v2-copy{color:hsl(var(--muted-foreground));margin-top:8px;max-width:720px}.budget-v2-health{min-width:280px}.health-score{display:flex;flex-direction:column;gap:6px}.health-score-value{font-size:1.8rem;font-weight:800;color:hsl(var(--foreground))}.health-score-label{color:hsl(var(--muted-foreground))}.budget-v2-stats{margin-bottom:18px}.budget-v2-stats-redesign{margin-bottom:24px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.budget-v2-tabs{display:flex;flex-direction:column;gap:14px}.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;align-items:center}.filter-chip-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--radius-full);background:hsl(var(--muted));color:hsl(var(--foreground));font-size:.75rem;font-weight:700}.ui-pill.is-active .filter-chip-count{background:hsl(var(--background) / .2);color:hsl(var(--background))}.campaign-map-form-compact{margin-bottom:24px;padding:16px 18px;border:1px solid hsl(var(--border));border-radius:var(--radius-lg);background:hsl(var(--card))}.form-compact-grid{display:grid;grid-template-columns:2fr 2fr 110px 120px auto;gap:12px;align-items:end}.form-field-small{min-width:100px}.form-field-button{display:flex;align-items:flex-end}.pill-toggle-compact{display:inline-flex;gap:4px}@media(max-width:1200px){.form-compact-grid{grid-template-columns:1fr 1fr;gap:12px}.form-field-button{grid-column:1 / -1}}.campaign-map-table-wrapper{margin-top:24px}.map-table-empty{padding:32px;text-align:center;color:hsl(var(--muted-foreground));font-style:italic}.campaign-map-table{border:none;border-radius:0;overflow:visible;background:transparent}.campaign-map-table .ui-table-head{text-transform:uppercase;letter-spacing:.025em;font-size:.875rem;background:hsl(var(--muted))}.map-table-row{transition:background .15s ease}.map-table-row:hover .ui-table-cell{background:hsl(var(--muted))}.envelope-cell{display:flex;align-items:center}.envelope-name{font-weight:600;color:hsl(var(--foreground));font-size:.95rem}.coverage-cell{display:flex;align-items:center;gap:12px}.coverage-bar-wrapper{flex:1;height:8px;background:hsl(var(--muted));border-radius:999px;overflow:hidden;border:1px solid hsl(var(--border))}.coverage-bar{height:100%;transition:width .3s ease,background .2s ease;border-radius:999px}.coverage-bar.empty{width:0%;background:transparent}.coverage-bar.partial{background:linear-gradient(90deg,var(--metric-forecast-text),var(--metric-forecast-strong))}.coverage-bar.complete{background:linear-gradient(90deg,var(--metric-actual-text),var(--metric-actual-strong))}.no-campaigns{color:hsl(var(--muted-foreground));font-style:italic;font-size:.9rem}.campaign-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.campaign-chip{transition:all .2s ease}.campaign-chip:hover{border-color:hsl(var(--ring));box-shadow:var(--shadow-md)}.muted{color:hsl(var(--muted-foreground))}.ghost-icon{border:none;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;font-size:1rem}.flag-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}.flag{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;font-weight:600;font-size:.9rem}.flag.success{background:var(--metric-actual-bg);color:var(--metric-actual-text);border:1px solid var(--metric-actual-border)}.flag.warning{background:var(--metric-forecast-bg);color:var(--metric-forecast-text);border:1px solid var(--metric-forecast-border)}.flag.danger{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive));border:1px solid hsl(var(--destructive) / .35)}.tab-placeholder{text-align:left}.grid-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-start;width:100%}.chip-group{display:inline-flex;gap:8px}.shadcn-grid{width:100%;max-width:none;overflow-x:auto;display:block;padding-bottom:4px;position:relative}.budget-v2-shell.grid-expanded .shadcn-grid{width:100%}.grid-inner{display:inline-block;width:max-content;min-width:100%}.grid-head{display:grid;gap:8px;font-weight:700;color:hsl(var(--muted-foreground));width:max-content}.grid-header-block{display:grid;gap:8px;width:100%}.control-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.control-actions{justify-content:flex-start}.grid-head-cell{padding:8px;border-radius:var(--radius-sm);background:hsl(var(--muted));border:1px solid hsl(var(--border));text-align:center;min-width:180px}.grid-body{display:flex;flex-direction:column;gap:10px;width:max-content}.grid-row{display:grid;gap:8px;width:max-content;position:relative}.grid-cell{border:1px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--card));padding:10px;min-width:180px}.grid-cell.sticky,.grid-head-cell.sticky{position:sticky;left:0;z-index:3;background:hsl(var(--card));box-shadow:4px 0 12px hsl(var(--foreground) / .04);min-width:240px}.grid-stack{display:flex;flex-direction:column;gap:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.grid-saving{display:inline-flex;align-items:center;gap:8px;color:hsl(var(--muted-foreground));font-weight:600;margin-top:8px}.envelope-table{display:flex;flex-direction:column;gap:8px}.envelope-table-head{display:grid;grid-template-columns:2fr repeat(3,1fr) 1.4fr;color:hsl(var(--muted-foreground));font-size:.9rem;font-weight:700;letter-spacing:.01em}.envelope-row{display:grid;grid-template-columns:2fr repeat(3,1fr) 1.4fr;align-items:center;gap:10px;padding:12px;border-radius:var(--radius-md);border:1px solid hsl(var(--border));background:hsl(var(--card));transition:border-color .12s ease,transform .12s ease}.envelope-row:hover{border-color:hsl(var(--ring));transform:translateY(-1px)}.envelope-name{display:flex;gap:12px;align-items:flex-start}.envelope-icon{color:hsl(var(--primary));margin-top:2px}.envelope-title{font-weight:700;color:hsl(var(--foreground))}.envelope-meta{color:hsl(var(--muted-foreground));font-size:.8rem;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}.meta-item{display:inline-flex;align-items:center;gap:4px}.meta-label{font-weight:600;color:hsl(var(--muted-foreground));font-size:.75rem;text-transform:uppercase;letter-spacing:.02em}.meta-value{font-weight:600;color:hsl(var(--foreground));font-size:.8rem}.meta-separator{color:hsl(var(--muted-foreground));font-weight:400}.meta-campaigns,.meta-campaigns .meta-value{color:hsl(var(--primary))}.meta-icon{display:inline-flex;align-items:center;font-size:.75rem;color:hsl(var(--primary))}.envelope-money{font-weight:700;color:hsl(var(--foreground))}.skeleton{height:18px;background:linear-gradient(90deg,hsl(var(--muted)),hsl(var(--card)),hsl(var(--muted)));background-size:200% 100%;border-radius:var(--radius-sm);animation:shimmer 1.2s infinite}.budget-v2-title.skeleton{height:32px;width:320px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@media(max-width:960px){.budget-v2-hero{grid-template-columns:1fr}.budget-v2-stats-redesign{grid-template-columns:1fr 1fr;gap:12px}.budget-v2-title-redesign{font-size:1.75rem}.hero-metadata{gap:10px}.envelope-table-head,.envelope-row{grid-template-columns:1fr 1fr;grid-template-areas:"name name" "committed uncommitted" "forecast actual"}.envelope-name{grid-area:name}.envelope-money:nth-of-type(2){grid-area:committed}.envelope-money:nth-of-type(3){grid-area:uncommitted}.envelope-money:nth-of-type(4){grid-area:forecast}.envelope-money:nth-of-type(5){grid-area:actual}.budget-v2-header{grid-template-columns:1fr;grid-template-areas:"back" "meta" "actions";align-items:start}.budget-v2-actions{justify-content:flex-start}}@media(max-width:640px){.budget-v2-stats-redesign{grid-template-columns:1fr}.budget-v2-title-redesign{font-size:1.5rem}}.period-spend{display:flex;flex-direction:column;gap:16px;color:hsl(var(--foreground))}.period-meta{display:flex;align-items:center;gap:10px;color:hsl(var(--muted-foreground));font-weight:600}.period-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:var(--radius-full, 999px);background:hsl(var(--muted));border:1px solid hsl(var(--border));color:hsl(var(--muted-foreground))}.spend-summary-card{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--card))}.summary-left{display:flex;flex-direction:column;gap:4px}.summary-label{text-transform:uppercase;letter-spacing:.04em;font-weight:700;font-size:.8rem;color:hsl(var(--muted-foreground))}.summary-total{font-size:1.4rem;font-weight:800;color:hsl(var(--foreground))}.summary-right{display:inline-flex;gap:8px}.spend-list{display:flex;flex-direction:column;gap:12px}.spend-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--card));transition:transform .12s ease,border-color .12s ease}.spend-item:hover{transform:translateY(-1px);border-color:hsl(var(--ring))}.spend-item-left{display:flex;flex-direction:column;gap:4px}.spend-date{font-size:.85rem;color:hsl(var(--muted-foreground));font-weight:600}.spend-vendor{font-weight:700;color:hsl(var(--foreground))}.spend-description{color:hsl(var(--muted-foreground));font-size:.92rem}.spend-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:120px}.spend-amount{font-weight:800;color:hsl(var(--foreground))}.spend-currency-note{font-size:.85rem;color:hsl(var(--muted-foreground))}.empty-state{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:32px 12px;border:1px dashed hsl(var(--border));border-radius:var(--radius);color:hsl(var(--muted-foreground))}.empty-icon{color:hsl(var(--muted-foreground))}.meta-header{display:flex;flex-direction:column;width:100%;padding:var(--meta-panel-padding-y, 1.25rem) var(--meta-panel-padding-x, 1.5rem) .5rem;box-sizing:border-box;position:relative}.meta-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:nowrap}.meta-title-stack{display:flex;flex-direction:column;gap:6px;min-width:0}.meta-title{font-size:1.125rem;font-weight:700;color:hsl(var(--foreground));margin:0;display:flex;align-items:center;gap:10px}.meta-subtitle{font-size:.85rem;font-style:italic;color:hsl(var(--muted-foreground));margin:0}.meta-title-icon{color:hsl(var(--muted-foreground));font-size:1rem;display:inline-flex;align-items:center}.meta-title-icon .sfdc-icon{color:var(--sfdc-blue)}.meta-eyebrow{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--muted-foreground));margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.meta-close{position:absolute;top:1rem;right:var(--meta-panel-padding-x, 1.5rem)}.budget-metrics-wrapper{display:flex;flex-direction:column;gap:.35rem}.budget-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin-bottom:.2rem}.budget-metrics-new{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.6rem;margin-bottom:.2rem}.budget-metrics-new.is-row{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card{padding:.55rem .7rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card))}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:.3rem;margin-bottom:.25rem}.metric-label-row{display:flex;align-items:center;gap:.4rem}.metric-icon{color:currentColor;font-size:.85rem;display:inline-flex;align-items:center}.metric-label{font-size:.7rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.02em}.metric-link-icon{color:hsl(var(--muted-foreground));font-size:.8rem;display:inline-flex;align-items:center;cursor:help;position:relative}.metric-link-icon:after{content:attr(data-tooltip);position:absolute;top:120%;right:0;white-space:nowrap;background:hsl(var(--popover));color:hsl(var(--popover-foreground));padding:6px 8px;border-radius:6px;font-size:.75rem;opacity:0;pointer-events:none;transition:opacity .12s ease;box-shadow:var(--shadow-md);z-index:10}.metric-link-icon:hover:after,.metric-link-icon:focus-visible:after{opacity:1}.metric-value{font-weight:700;color:hsl(var(--foreground));font-size:.95rem}.metric-card.committed{background:var(--metric-commit-bg);border-color:var(--metric-commit-border);color:var(--metric-commit-text)}.metric-card.committed .metric-icon,.metric-card.committed .metric-value{color:inherit}.metric-card.uncommitted{background:var(--metric-uncommitted-bg);border-color:var(--metric-uncommitted-border);color:var(--metric-uncommitted-text)}.metric-card.uncommitted .metric-icon,.metric-card.uncommitted .metric-value{color:inherit}.metric-card.forecast{background:var(--metric-forecast-bg);border-color:var(--metric-forecast-border);color:var(--metric-forecast-text)}.metric-card.forecast .metric-icon,.metric-card.forecast .metric-value{color:inherit}.metric-card.actual{background:var(--metric-actual-bg);border-color:var(--metric-actual-border);color:var(--metric-actual-text)}.metric-card.actual .metric-icon,.metric-card.actual .metric-value{color:inherit}.metric-hint-inline{font-size:.82rem;color:hsl(var(--muted-foreground));margin:0}@media(max-width:960px){.budget-metrics-new.is-row{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}.pagination-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0;color:hsl(var(--muted-foreground))}.pagination-actions{display:flex;align-items:center;gap:.5rem}.pagination-meta{font-size:.9rem}.pagination-size{display:inline-flex;align-items:center;gap:.5rem}.pagination-size-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground))}.pagination-select{min-width:90px}.activity-log-page{display:flex;flex-direction:column;height:100vh;overflow:hidden;margin:-24px}.activity-log-page.is-compact{height:auto;max-height:var(--activity-log-max-height, none);min-height:0;margin:0;overflow:visible}.activity-log-container{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;overflow:hidden;padding:16px 0}.activity-log-page.is-compact .activity-log-container{padding:8px 0;overflow:visible;min-height:0}@media(max-width:768px){.activity-log-page{margin:-16px}.activity-log-container{padding:12px 0}}.activity-filters-horizontal{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;padding:14px 18px;box-shadow:var(--shadow-xs);margin:0 16px}.filter-row-horizontal{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}.filter-search{min-width:0}.activity-table-card{border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));box-shadow:var(--shadow-xs);overflow:hidden;flex:1;min-height:0;display:flex;flex-direction:column;margin:0 16px}.activity-log-page.is-compact .activity-table-card{margin:0;flex:initial;max-height:var(--activity-log-max-height, none)}.activity-summary-bar{padding:1rem 1.5rem;border-bottom:1px solid hsl(var(--border));display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:hsl(var(--muted-foreground))}.activity-count{font-weight:700;color:hsl(var(--foreground));font-size:1rem}.activity-table-scroll{overflow:auto;flex:1}.activity-log-page.is-compact .activity-table-scroll{max-height:var(--activity-log-max-height, none)}.activity-card-list{display:flex;flex-direction:column;gap:12px;padding:12px}.activity-card{border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));padding:12px 14px;display:flex;flex-direction:column;gap:10px}.activity-card.is-expandable{cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.activity-card.is-expandable:hover{background:hsl(var(--muted) / .5);border-color:hsl(var(--border))}.activity-card-header{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,1fr) auto;gap:12px;align-items:center}.activity-card-user{font-size:.84rem;color:hsl(var(--muted-foreground));font-weight:500}.activity-card-action{justify-self:end}.activity-card-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:start}.activity-card-change{display:flex;flex-direction:column;gap:8px}.activity-card .value-change{flex-wrap:wrap;align-items:flex-start;gap:.5rem}.activity-card .old-value,.activity-card .new-value{word-break:break-word}.activity-card-detail{border-top:1px solid hsl(var(--border));padding-top:8px}@media(max-width:900px){.activity-card-header{grid-template-columns:1fr;gap:6px}.activity-card-action{justify-self:start}.activity-card-grid{grid-template-columns:1fr}}.activity-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;font-size:.875rem;table-layout:fixed}.activity-table thead{position:sticky;top:0;z-index:20;background:hsl(var(--muted))}.activity-table thead th{padding:.875rem 1rem;text-align:left;font-weight:600;font-size:.8125rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid hsl(var(--border));white-space:nowrap}.activity-table.is-compact thead th{padding:.625rem .75rem;font-size:.72rem;letter-spacing:.04em}.activity-table tbody tr{border-bottom:1px solid hsl(var(--border))}.activity-table.is-compact tbody td{padding:.65rem .75rem;font-size:.8125rem}.activity-table.is-compact .col-name{width:22%}.activity-table.is-compact .col-tags{width:13%}.activity-table.is-compact .col-values{width:24%}.activity-table tbody tr:hover{background:hsl(var(--muted) / .6)}.activity-table tbody td{padding:1rem;vertical-align:middle}.activity-row.row-expandable{cursor:pointer;transition:background-color .15s ease}.activity-row.row-expandable:hover{background:hsl(var(--status-info) / .08)!important}.activity-detail-row td{background:hsl(var(--muted) / .6);padding:.75rem 1rem}.col-date{width:190px;min-width:190px}.col-user{width:180px;min-width:180px}.col-action{width:132px}.col-tags{width:180px}.col-name{width:auto;min-width:220px}.col-values{width:auto;min-width:280px}.date-cell{display:flex;flex-direction:column;gap:.25rem;min-width:0}.date-relative{font-weight:600;color:hsl(var(--foreground));font-size:.875rem;white-space:nowrap}.date-full{font-size:.75rem;color:hsl(var(--muted-foreground));line-height:1.35;white-space:normal}.user-name{font-weight:500;color:hsl(var(--muted-foreground));display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-chip,.type-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem .8rem;font-size:.78rem;font-weight:700;white-space:nowrap}.action-chip.with-text{gap:.5rem;padding-right:.9rem}.chip-icon{display:inline-flex;align-items:center;font-size:.875rem}.chip-label{line-height:1;color:inherit;display:inline-block}.type-chip{background:hsl(var(--muted));color:hsl(var(--muted-foreground));border:1px solid hsl(var(--border))}.tags-container{display:flex;flex-wrap:wrap;gap:.375rem}.impacted-item{display:flex;align-items:center;gap:.75rem}.item-name-block{display:flex;flex-direction:column;gap:.2rem}.item-name{font-weight:500;color:hsl(var(--foreground))}.inline-envelope-icon{display:inline-flex;align-items:center;justify-content:center;margin-right:.5rem;color:hsl(var(--muted-foreground));opacity:.8}.item-subtitle{font-size:.75rem;color:hsl(var(--muted-foreground))}.item-id-subtitle{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.72rem}.change-pill{display:inline-flex;align-items:center;padding:.35rem .65rem;border-radius:999px;font-size:.8125rem;font-weight:600;background:hsl(var(--muted));color:hsl(var(--foreground));white-space:nowrap}.value-change{display:flex;align-items:center;gap:.75rem;flex-wrap:nowrap;font-size:.8125rem}.expand-icon{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground));transition:transform .2s ease}.expand-icon-inline{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground));margin-right:.375rem;transition:transform .2s ease;vertical-align:middle}.activity-row.expanded .expand-icon svg,.activity-row.expanded .expand-icon-inline svg{transform:rotate(180deg)}.date-content{display:flex;flex-direction:column;gap:.25rem;min-width:0}.date-relative{display:flex;align-items:center;font-weight:500;min-width:0}.old-value{color:hsl(var(--destructive));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-weight:500;padding:.25rem .5rem;background:hsl(var(--destructive) / .12);border-radius:6px;white-space:pre-wrap;line-height:1.3;display:inline-block}.new-value{color:var(--metric-actual-text);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-weight:500;padding:.25rem .5rem;background:var(--metric-actual-bg);border-radius:6px;white-space:pre-wrap;line-height:1.3;display:inline-block}.detail-block{padding:.75rem 0;display:flex;flex-direction:column;gap:.5rem}.detail-title{font-weight:700;color:hsl(var(--foreground))}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.detail-context{padding-top:4px}.detail-label{font-size:.78rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.04em}.detail-value{font-size:.9rem;color:hsl(var(--foreground));white-space:pre-wrap}.detail-subtle{color:hsl(var(--muted-foreground));font-size:.82rem}.detail-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.detail-delta{color:hsl(var(--muted-foreground));font-size:.9rem;margin-left:4px}.detail-list{display:grid;gap:.5rem}.detail-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center}.detail-list-main{display:grid;gap:.15rem}.detail-list-period{font-size:.75rem}.detail-list-amount{font-weight:600;font-size:.85rem;color:hsl(var(--foreground));white-space:nowrap}.reallocation-detail{background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);padding:.75rem}.reallocation-detail .detail-grid.two-col{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.reallocation-detail .detail-stack{max-width:420px}.reallocation-detail .detail-list-item{grid-template-columns:minmax(0,1fr) max-content}.reallocation-detail .detail-list-amount{justify-self:end}.reallocation-detail .detail-grid.two-col{gap:1.5rem}.reallocation-detail .detail-label{font-size:.7rem;letter-spacing:.08em}.reallocation-detail .detail-list-item{padding:.4rem 0;border-bottom:1px solid hsl(var(--border))}.reallocation-detail .detail-list-item:last-child{border-bottom:none}.reallocation-detail .detail-list-amount{font-size:.9rem}.reallocation-detail .detail-context{border-top:1px solid hsl(var(--border));padding-top:.5rem}.arrow{color:hsl(var(--muted-foreground));font-weight:600}.description-text{color:hsl(var(--muted-foreground));font-size:.8125rem}.activity-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;gap:1.5rem}.activity-loader{width:40px;height:40px;border:4px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin 1s linear infinite}.state-text{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.state-text.error{color:hsl(var(--destructive))}.error-icon,.empty-icon{color:hsl(var(--muted-foreground))}.activity-tag{padding:.15rem .5rem;border-radius:999px;background:hsl(var(--muted));color:hsl(var(--foreground));font-size:.75rem;font-weight:600;letter-spacing:-.01em;display:inline-flex;align-items:center;gap:.3rem}.tag-icon{display:inline-flex;align-items:center;margin-top:-1px}.activity-tag.tone-plan{background:hsl(var(--muted));color:hsl(var(--foreground))}.activity-tag.tone-commit{background:var(--metric-commit-bg);color:var(--metric-commit-text)}.activity-tag.tone-uncommitted{background:var(--metric-uncommitted-bg);color:var(--metric-uncommitted-text)}.activity-tag.tone-forecast{background:var(--metric-forecast-bg);color:var(--metric-forecast-text)}.activity-tag.tone-actual{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.activity-tag.tone-reallocation{background:hsl(var(--accent));color:hsl(var(--foreground))}.activity-tag.tone-budget,.activity-tag.tone-envelope,.activity-tag.tone-role,.activity-tag.tone-access,.activity-tag.tone-campaign,.activity-tag.tone-org{background:hsl(var(--muted));color:hsl(var(--foreground))}.activity-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.activity-time{font-size:.875rem;color:hsl(var(--muted-foreground));white-space:nowrap}.activity-log.compact .activity-time{font-size:.8125rem}.user-name{font-size:.875rem;color:hsl(var(--muted-foreground));white-space:nowrap}.activity-log.compact .user-name{font-size:.8125rem}.meta-divider{color:hsl(var(--muted-foreground))}.expand-icon{color:hsl(var(--muted-foreground));display:flex;transition:transform .2s ease}.expand-icon.expanded{transform:rotate(180deg)}.activity-details{padding:0 1rem .875rem 3.5rem;border-top:1px solid hsl(var(--border))}.activity-log.compact .activity-details{padding:0 .875rem .75rem 3rem}.activity-detail-row{padding:.5rem .75rem;margin-top:.5rem;background:hsl(var(--muted));border-radius:6px;font-size:.875rem;color:hsl(var(--foreground))}.activity-log.compact .activity-detail-row{padding:.4rem .625rem;font-size:.8125rem}.activity-detail-time{margin-top:.75rem;font-size:.75rem;color:hsl(var(--muted-foreground));text-align:right}.activity-log.compact .activity-detail-time{font-size:.6875rem}@media(max-width:640px){.filter-row-horizontal{grid-template-columns:1fr}.filter-search{width:100%;min-width:0}.activity-meta{width:100%;justify-content:space-between;flex-wrap:wrap}}.note-tooltip{display:grid;gap:.5rem;min-width:220px}.note-tooltip-header{display:flex;align-items:center;gap:.5rem}.note-tooltip-meta{display:grid;gap:.15rem}.note-tooltip-author{font-weight:600;font-size:.8rem;color:hsl(var(--foreground))}.note-tooltip-time{font-size:.7rem;color:hsl(var(--muted-foreground))}.note-tooltip-body{font-size:.78rem;color:hsl(var(--foreground));white-space:pre-line}.envelope-sheet-loading{text-align:center;padding:40px}.envelope-sheet-loading-text{color:hsl(var(--muted-foreground))}.envelope-sheet-error{padding:16px;background:hsl(var(--destructive) / .12);border:1px solid hsl(var(--destructive) / .3);border-radius:calc(var(--radius) - 2px);color:hsl(var(--destructive))}.envelope-sheet-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:8px}.envelope-sheet-custom-fields{margin:14px 0 10px;padding:16px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.envelope-sheet-custom-fields-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.envelope-sheet-custom-fields-eyebrow{font-size:.75rem;font-weight:600;letter-spacing:.08em;color:hsl(var(--muted-foreground));margin:0}.envelope-sheet-custom-fields-title{margin:2px 0 0;font-size:1rem;font-weight:700}.envelope-sheet-custom-fields-actions{display:flex;align-items:center;gap:8px}.envelope-sheet-custom-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:12px}.envelope-sheet-custom-field{display:flex;flex-direction:column;gap:6px}.envelope-sheet-custom-field-label{font-size:.78rem;font-weight:600;color:hsl(var(--muted-foreground))}.envelope-sheet-custom-field-value{font-size:.95rem;font-weight:600;color:hsl(var(--foreground))}.envelope-sheet-custom-field-list{display:grid;gap:8px;padding:10px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--muted))}.envelope-sheet-custom-field-list.is-error{border-color:hsl(var(--destructive))}.envelope-sheet-custom-field-option{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:hsl(var(--foreground))}.envelope-files{display:flex;flex-direction:column;gap:16px}.envelope-files-dropzone{border:1px dashed hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--muted));padding:16px;display:flex;flex-direction:column;gap:12px;transition:border-color .2s ease,background .2s ease}.envelope-files-dropzone.is-dragging{border-color:hsl(var(--ring));background:hsl(var(--card))}.envelope-files-dropzone-content{display:flex;align-items:center;gap:12px}.envelope-files-dropzone-icon{font-size:1.1rem;color:hsl(var(--primary));width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:hsl(var(--primary) / .12)}.envelope-files-dropzone-title{margin:0;font-weight:600}.envelope-files-dropzone-subtitle{margin:2px 0 0;font-size:.85rem;color:hsl(var(--muted-foreground))}.envelope-files-dropzone-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.envelope-files-input{display:none}.envelope-files-dropzone-note{margin:0;font-size:.85rem;color:hsl(var(--muted-foreground))}.envelope-files-list{display:flex;flex-direction:column;gap:10px}.envelope-file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.envelope-file-meta{display:flex;align-items:center;gap:12px;min-width:0}.envelope-file-icon{color:hsl(var(--muted-foreground))}.envelope-file-name{font-weight:600;color:hsl(var(--foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.envelope-file-subtitle{font-size:.82rem;color:hsl(var(--muted-foreground))}.envelope-file-actions{display:flex;align-items:center;gap:6px}.envelope-file-delete{color:hsl(var(--destructive))}.envelope-files-preview-body{min-height:240px}.envelope-files-preview-header{position:relative;padding-right:2.75rem}.envelope-files-preview-title{margin:0}.envelope-files-preview-close{position:absolute;top:.1rem;right:.1rem}.envelope-files-preview-frame{width:100%;height:82vh;border:none;border-radius:10px;background:hsl(var(--muted))}.ui-dialog-content.envelope-files-preview-modal{width:min(1400px,calc(100vw - 4rem));max-width:1400px;padding:1rem}@media(max-width:640px){.envelope-file-row{flex-direction:column;align-items:flex-start}.envelope-file-actions{width:100%;justify-content:flex-end}.envelope-file-name{max-width:100%}}.envelope-sheet-allocation{padding:16px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));cursor:pointer;transition:transform .2s ease,border-color .2s ease}.envelope-sheet-allocation:hover{border-color:hsl(var(--ring));transform:translateY(-1px)}.envelope-sheet-allocation-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.envelope-sheet-allocation-title{display:flex;align-items:center;gap:8px}.envelope-sheet-allocation-label{font-size:.85rem;font-weight:600;color:hsl(var(--muted-foreground))}.envelope-sheet-allocation-meta{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:6px;display:flex;align-items:center;justify-content:space-between}.envelope-sheet-allocation-cta{color:hsl(var(--primary));font-size:.75rem;font-weight:600}.envelope-sheet-accent-icon{color:hsl(var(--primary))}.envelope-sheet-key-banner{display:inline-flex;align-items:center;gap:10px;padding:6px 12px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--card));margin-bottom:16px}.envelope-sheet-key-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground))}.envelope-sheet-key-value{font-weight:600;color:hsl(var(--foreground))}.envelope-sheet-meta{font-size:.85rem;color:hsl(var(--muted-foreground));display:flex;flex-direction:column;gap:6px}.envelope-sheet-meta-actuals-key{display:inline-flex;align-items:center;gap:8px}.envelope-sheet-meta-key{font-weight:600;color:hsl(var(--foreground))}.envelope-sheet-meta-key-count{border-radius:999px;padding:0 8px;height:20px;display:inline-flex;align-items:center;font-size:.75rem}.envelope-sheet-meta-tooltip{min-width:420px;max-width:520px}.envelope-sheet-meta-tooltip-title{font-weight:600;margin-bottom:4px}.envelope-sheet-meta-tooltip-table{display:grid;gap:6px}.envelope-sheet-meta-tooltip-row{display:grid;grid-template-columns:64px minmax(120px,1fr) minmax(140px,1.4fr);gap:12px;align-items:center;font-size:.8rem;color:hsl(var(--foreground))}.envelope-sheet-meta-tooltip-row.header{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));border-bottom:1px solid hsl(var(--border));padding-bottom:4px}.envelope-sheet-allocation-progress{padding:16px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border))}.envelope-sheet-allocation-progress-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.envelope-sheet-allocation-progress-label{font-size:.85rem;font-weight:600;color:hsl(var(--muted-foreground))}.envelope-sheet-allocation-progress-meta{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:6px}.envelope-sheet-starting-amount{padding:16px;background:hsl(var(--card));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));margin-bottom:20px}.envelope-sheet-starting-label{font-size:.8rem;font-weight:600;color:hsl(var(--muted-foreground));margin-bottom:4px;text-transform:uppercase;letter-spacing:.02em}.envelope-sheet-starting-icon{margin-right:6px}.envelope-sheet-starting-value{font-size:1.75rem;font-weight:700;color:hsl(var(--foreground))}.envelope-sheet-campaigns-title{font-size:.95rem;font-weight:700;color:hsl(var(--foreground));margin:0 0 12px;text-transform:uppercase;letter-spacing:.02em}.envelope-sheet-campaigns-list{display:flex;flex-direction:column;gap:8px}.envelope-sheet-campaigns-empty{padding:32px;text-align:center;color:hsl(var(--muted-foreground));font-size:.9rem;background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);border:1px dashed hsl(var(--border))}.allocation-card{padding:14px;background:hsl(var(--card));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));transition:border-color .2s ease,background .2s ease}.allocation-card.editing{padding:16px;background:hsl(var(--muted));border-color:hsl(var(--ring))}.allocation-card:not(.editing):hover{border-color:hsl(var(--ring))}.allocation-edit-form{display:flex;flex-direction:column;gap:12px}.allocation-edit-title{font-weight:600;color:hsl(var(--foreground));font-size:.95rem}.allocation-edit-grid{display:grid;grid-template-columns:110px 1fr;gap:12px}.allocation-toggle{display:inline-flex;gap:4px}.allocation-edit-actions{display:flex;gap:8px;margin-top:4px}.allocation-action-button{flex:1}.allocation-row{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer}.allocation-name-block{flex:1;min-width:0}.allocation-link{background:none;border:none;padding:0;font-weight:600;font-size:.95rem;color:hsl(var(--primary));cursor:pointer;text-align:left;text-decoration:none;transition:color .2s ease;display:block}.allocation-subtitle{font-size:.85rem;color:hsl(var(--muted-foreground));margin-top:2px}.allocation-row-actions{display:flex;align-items:center;gap:12px}.allocation-delete{color:hsl(var(--muted-foreground))}.allocation-delete:hover{color:hsl(var(--destructive))}.allocation-add-card{padding:24px;background:hsl(var(--card));border-radius:calc(var(--radius) - 2px);border:2px dashed hsl(var(--border));cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;color:hsl(var(--muted-foreground));font-size:.95rem;font-weight:600;transition:all .2s ease}.allocation-add-card:hover{background:hsl(var(--muted));border-color:hsl(var(--ring));color:hsl(var(--primary))}.allocation-add-form{padding:16px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--ring))}.allocation-add-title{font-size:.9rem;font-weight:600;color:hsl(var(--foreground));margin:0 0 12px}.allocation-add-body{display:flex;flex-direction:column;gap:12px}.allocation-remaining{padding:16px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border))}.allocation-remaining.over{background:hsl(var(--destructive) / .08);border-color:hsl(var(--destructive) / .3)}.allocation-remaining.exact{background:hsl(var(--status-success) / .08);border-color:hsl(var(--status-success) / .3)}.allocation-remaining-label{font-size:.8rem;font-weight:600;color:hsl(var(--muted-foreground));margin-bottom:4px;text-transform:uppercase;letter-spacing:.02em}.allocation-remaining-value{font-size:1.5rem;font-weight:700;color:hsl(var(--foreground))}.allocation-remaining.over .allocation-remaining-value{color:hsl(var(--destructive))}.allocation-remaining.exact .allocation-remaining-value{color:var(--metric-actual-text)}.allocation-remaining-percent{font-size:.9rem;margin-left:8px;font-weight:600;color:hsl(var(--muted-foreground))}.allocation-remaining-warning{font-size:.8rem;color:hsl(var(--destructive));margin-top:6px}.envelope-sheet-audit{margin-top:-12px}.envelope-sheet-audit-filters{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.envelope-sheet-audit-button.is-active{background:hsl(var(--foreground));color:hsl(var(--background));border-color:transparent}.envelope-sheet-spend-title{font-size:.95rem;font-weight:700;color:hsl(var(--foreground));margin:0 0 16px;text-transform:uppercase;letter-spacing:.02em}.envelope-sheet-spend-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.envelope-sheet-spend-panel{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:var(--radius);padding:12px;margin-bottom:16px}.envelope-sheet-spend-tabs{margin-bottom:12px}.envelope-sheet-spend-tab{padding-top:0}.envelope-sheet-unmapped-list{display:flex;flex-direction:column;gap:12px}.envelope-sheet-unmapped-search{margin-bottom:12px}.envelope-sheet-unmapped-entry{border:1px solid hsl(var(--border));border-radius:var(--radius);padding:12px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:hsl(var(--muted))}.envelope-sheet-unmapped-body{display:flex;flex-direction:column;gap:4px}.envelope-sheet-unmapped-actions{display:flex;flex-direction:column;align-items:flex-end;justify-self:end;text-align:right;gap:6px;grid-column:2;align-self:start}.envelope-sheet-unmapped-note{font-size:.75rem;color:hsl(var(--muted-foreground))}.envelope-sheet-spend-title-icon{margin-right:8px}.envelope-sheet-spend-list{display:flex;flex-direction:column;gap:8px}.envelope-sheet-spend-entry{padding:12px;background:hsl(var(--muted));border-radius:calc(var(--radius) - 4px);border:1px solid hsl(var(--border));display:flex;justify-content:space-between;align-items:flex-start;gap:12px;position:relative}.envelope-sheet-spend-entry-body{flex:1;min-width:0}.envelope-sheet-spend-vendor{font-weight:600;color:hsl(var(--foreground));margin-bottom:2px}.envelope-sheet-spend-desc{font-size:.85rem;color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.envelope-sheet-spend-date{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:4px}.envelope-sheet-spend-amount{font-weight:700;font-size:1rem;color:hsl(var(--foreground));white-space:nowrap;justify-self:end}.envelope-sheet-unmapped-entry .envelope-sheet-spend-amount{grid-column:2;text-align:right;align-self:start}.envelope-sheet-spend-empty{padding:32px;text-align:center;color:hsl(var(--muted-foreground));font-size:.95rem;border-radius:calc(var(--radius) - 2px);border:1px dashed hsl(var(--border));background:hsl(var(--muted))}.envelope-sheet-modal-backdrop{position:fixed;inset:0;background:var(--overlay-strong);display:flex;align-items:center;justify-content:center;z-index:10000}.envelope-sheet-modal{background:hsl(var(--card));border-radius:var(--radius);padding:24px;max-width:400px;width:90%;border:1px solid hsl(var(--border));box-shadow:var(--shadow-3xl)}.envelope-sheet-modal-wide{max-width:500px}.envelope-sheet-modal-title{margin:0 0 12px;font-size:1.1rem;font-weight:700}.envelope-sheet-modal-text{margin:0 0 24px;color:hsl(var(--muted-foreground));font-size:.95rem}.envelope-sheet-modal-text-tight{margin-bottom:16px}.envelope-sheet-modal-body{margin-bottom:24px}.envelope-sheet-modal-actions{display:flex;gap:12px;justify-content:flex-end}.envelope-notes{display:grid;gap:1rem}.envelope-notes-period{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));padding:1rem}.envelope-notes-period-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem}.envelope-notes-period-label{font-weight:600;color:hsl(var(--foreground))}.envelope-notes-period-range{font-size:.85rem;color:hsl(var(--muted-foreground));margin-top:2px}.envelope-notes-list{display:grid;gap:.75rem}.envelope-note-row{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:center;padding:.65rem 2.5rem .65rem .75rem;border-radius:calc(var(--radius) - 4px);background:hsl(var(--muted));position:relative}.envelope-note-content{display:grid;gap:.3rem}.envelope-note-badge{text-transform:uppercase;letter-spacing:.08em;font-size:.6rem;font-weight:700;cursor:help}.envelope-note-badge.metric-commit{background:var(--metric-commit-bg);border:1px solid var(--metric-commit-border);color:var(--metric-commit-text)}.envelope-note-badge.metric-uncommitted{background:var(--metric-uncommitted-bg);border:1px solid var(--metric-uncommitted-border);color:var(--metric-uncommitted-text)}.envelope-note-badge.metric-forecast{background:var(--metric-forecast-bg);border:1px solid var(--metric-forecast-border);color:var(--metric-forecast-text)}.envelope-note-badge.metric-actual{background:var(--metric-actual-bg);border:1px solid var(--metric-actual-border);color:var(--metric-actual-text)}.envelope-note-meta{display:flex;flex-wrap:wrap;gap:.35rem .6rem;font-size:.72rem;color:hsl(var(--muted-foreground))}.envelope-note-author{font-weight:600;color:hsl(var(--foreground))}.envelope-note-clear{position:absolute;top:.4rem;right:.45rem;height:26px;width:26px;color:hsl(var(--muted-foreground));opacity:.65}.envelope-note-clear svg{font-size:.8rem}.envelope-note-row:hover .envelope-note-clear{opacity:1}.envelope-note-clear:hover{color:hsl(var(--foreground))}.envelope-note-text{margin:0;font-size:.95rem;color:hsl(var(--foreground));white-space:pre-wrap}.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:var(--meta-panel-padding-y) var(--meta-panel-padding-x);border-bottom:1px solid hsl(var(--border));flex-shrink:0}.sidebar-title{font-size:1.125rem;font-weight:600;color:hsl(var(--foreground));margin:0}.sidebar-row{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.timestamps{margin-top:auto;padding-top:1.25rem;border-top:1px solid hsl(var(--border));display:flex;flex-direction:column;gap:.5rem}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem var(--meta-panel-padding-x);border-top:1px solid hsl(var(--border));background-color:hsl(var(--card));flex-shrink:0}.footer-right{display:flex;align-items:center;gap:.75rem}.keyboard-hint{font-size:.75rem;color:hsl(var(--muted-foreground));padding:.25rem .5rem;background:hsl(var(--muted));border-radius:4px;border:1px solid hsl(var(--border));font-family:monospace}.spend-page{max-width:1200px;margin:0 auto}@media(max-width:640px){.page-header{flex-direction:column;align-items:stretch}}.summary-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:hsl(var(--muted));border-radius:12px;border:1px solid hsl(var(--border));color:hsl(var(--foreground))}.filters-card{margin-bottom:1rem;border-radius:14px;background:hsl(var(--card));border:1px solid hsl(var(--border))}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.section-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.section-title{margin-bottom:.15rem}.section-actions{display:flex;align-items:center;gap:.5rem}.import-summary{border:1px solid hsl(var(--border));border-radius:10px;padding:.75rem 1rem;background-color:hsl(var(--muted));margin-bottom:1rem}.import-summary-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.import-summary-text{color:hsl(var(--foreground));margin:.1rem 0 .35rem}.import-failures{margin:0;padding-left:1.1rem;color:hsl(var(--destructive))}.spend-table{min-width:900px}.spend-table .ui-table-cell{vertical-align:middle;line-height:1.25rem}.spend-table .ui-table-row,.spend-table .ui-table-cell,.spend-table .ui-table-head{border-bottom:0}.spend-table .ui-table-row{position:relative}.spend-table .ui-table-row:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:hsl(var(--border));pointer-events:none}.spend-table tbody tr.clickable-row{cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}.spend-table tbody tr.clickable-row:hover{background-color:hsl(var(--accent));box-shadow:inset 0 0 0 1px hsl(var(--border))}.spend-table tbody tr.clickable-row:focus{outline:none;background-color:hsl(var(--accent))}.spend-table tbody tr.clickable-row:focus-visible{box-shadow:inset 0 0 0 2px hsl(var(--ring))}.spend-table tbody tr.clickable-row:active{box-shadow:none}.inline-link{color:hsl(var(--foreground));text-decoration:none;font-weight:500;transition:color .15s ease}.inline-link:hover{color:hsl(var(--muted-foreground));text-decoration:underline}.inline-link:focus{outline:2px solid hsl(var(--ring));outline-offset:2px;border-radius:2px}.date-cell-content{display:inline-flex;align-items:center;gap:8px}.unmapped-dot{width:8px;height:8px;border-radius:999px;background:hsl(var(--destructive));box-shadow:0 0 0 3px hsl(var(--destructive) / .18)}.description-cell{max-width:320px;color:hsl(var(--muted-foreground));font-weight:500}.badge.currency{display:inline-flex;align-items:center;padding:.25rem .55rem;background-color:hsl(var(--secondary));color:hsl(var(--secondary-foreground));border-radius:6px;font-weight:700;letter-spacing:.02em}.source-badge{display:inline-flex;align-items:center;padding:.25rem .6rem;border-radius:6px;background-color:var(--metric-actual-bg);color:var(--metric-actual-strong);font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.loading-spinner.small{width:22px;height:22px;border-width:2px}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-weight:500}.checkbox-label .ui-checkbox{cursor:pointer}.helper-text{font-size:.875rem;color:hsl(var(--muted-foreground));margin:.5rem 0 0}.dialog-description{margin:0 0 1.5rem;color:hsl(var(--muted-foreground))}.unmapped-filter{grid-column:span 2}.unmapped-toggle{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:999px;background:hsl(var(--muted));border:1px solid hsl(var(--border));width:fit-content}.unmapped-toggle-label{margin:0;gap:.5rem}.unmapped-toggle .ui-toggle-count{margin-left:.25rem}.helper-text-small{font-size:.8rem;color:hsl(var(--muted-foreground));margin:.35rem 0 0 .6rem}.previous-envelope-text{color:hsl(var(--muted-foreground));font-size:.9rem;font-style:italic}.sidebar-header{display:flex;align-items:flex-start;justify-content:space-between;padding:var(--meta-panel-padding-y) var(--meta-panel-padding-x);border-bottom:1px solid hsl(var(--border));flex-shrink:0;background:hsl(var(--card))}.title-stack{display:flex;flex-direction:column;gap:6px}.title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sidebar-title{font-size:1.125rem;font-weight:700;color:hsl(var(--foreground));margin:0}.eyebrow{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--muted-foreground));margin:0 0 4px}.stats-wrapper{display:flex;flex-direction:column;gap:.35rem;padding:0}.info-card{padding:.9rem;border:1px solid hsl(var(--border));border-radius:14px;background:hsl(var(--card));box-shadow:var(--shadow-xl);display:flex;flex-direction:column;gap:.75rem}.info-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.campaign-edit-card,.campaign-delete-card{gap:.85rem}.campaign-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.campaign-name-editor{display:flex;flex-direction:column;gap:.35rem}.campaign-name-input{width:100%;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.95rem;font-weight:600;padding:.65rem .75rem}.campaign-name-input:focus{outline:2px solid hsl(var(--ring) / .35);outline-offset:2px;border-color:hsl(var(--ring))}.campaign-edit-actions{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;flex-wrap:wrap}.campaign-delete-card{border-color:hsl(var(--destructive) / .3)}.campaign-delete-card.is-blocked{border-color:hsl(var(--status-warning) / .45)}.campaign-delete-warning{border:1px solid hsl(var(--status-warning) / .45);border-radius:8px;background:hsl(var(--status-warning) / .1);color:hsl(var(--foreground));padding:.75rem}.campaign-delete-warning strong{display:block;font-size:.9rem;margin-bottom:.25rem}.campaign-delete-warning p{margin:0;color:hsl(var(--muted-foreground));font-size:.85rem;line-height:1.45}.custom-actions{display:inline-flex;gap:.5rem}.info-label{font-size:.85rem;color:hsl(var(--muted-foreground));font-weight:500}.info-value{font-size:.95rem;color:hsl(var(--foreground));font-weight:600;text-align:right}.info-value.mono{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;letter-spacing:.01em;font-weight:500}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.info-col{display:flex;flex-direction:column;gap:.15rem;padding:.7rem .8rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--muted))}.info-block{display:flex;flex-direction:column;gap:.35rem}.custom-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.custom-field{display:flex;flex-direction:column;gap:.2rem}.custom-field input{width:100%;padding:.6rem .75rem;border-radius:10px;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.field-hint{font-size:.8rem;color:hsl(var(--muted-foreground))}.field-hint.subtle{margin-top:-2px}.allocation-section{margin-top:.5rem;display:flex;flex-direction:column;gap:1rem;padding:0}.allocation-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.allocation-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:.75rem}.allocation-item{padding:.85rem .9rem;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));box-shadow:var(--shadow-lg);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.allocation-main{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.75rem;flex-wrap:wrap}.allocation-title{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;width:100%}.allocation-text{display:flex;flex-direction:column;gap:2px;min-width:0}.allocation-name{font-weight:600;color:hsl(var(--foreground));line-height:1.2;word-break:break-word}.allocation-meta{color:hsl(var(--muted-foreground));font-size:.85rem;line-height:1.2;word-break:break-word}.allocation-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-left:auto}.section-title{font-size:.95rem;font-weight:700;margin:0;color:hsl(var(--foreground))}.section-subtitle{margin:4px 0 0;color:hsl(var(--muted-foreground));font-size:.85rem}.allocation-clickable{cursor:pointer}.allocation-clickable:hover{border-color:hsl(var(--muted-foreground) / .5);box-shadow:var(--shadow-xl)}.chevron{font-weight:700;color:hsl(var(--muted-foreground))}.allocation-extra{margin-top:.6rem;padding-top:.6rem;border-top:1px solid hsl(var(--border));display:flex;flex-direction:column;gap:.5rem}.allocation-hint{margin:0;font-size:.85rem;color:hsl(var(--muted-foreground));line-height:1.4}.allocation-links{display:flex;gap:.6rem;flex-wrap:wrap}.allocation-link{font-size:.85rem;color:hsl(var(--foreground));text-decoration:none;font-weight:600}.allocation-link:hover{text-decoration:underline}.split-list{list-style:none;padding:0;margin:0;display:grid;gap:.35rem}.split-item{display:flex;justify-content:space-between;align-items:center;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:8px;padding:.45rem .6rem;gap:.5rem}.split-name{font-weight:600;color:hsl(var(--foreground));min-width:0;word-break:break-word}.split-value{font-weight:700;color:hsl(var(--muted-foreground));white-space:nowrap}.spend-section{margin-top:.5rem;padding:1.25rem 0 0;border-top:1px solid hsl(var(--border))}.spend-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.spend-section-title{font-size:.95rem;font-weight:600;color:hsl(var(--foreground));margin:0}.spend-loading{display:flex;align-items:center;gap:.5rem;padding:1rem;color:hsl(var(--muted-foreground));font-size:.875rem}.loading-spinner-small{width:16px;height:16px;border:2px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin .8s linear infinite}.spend-empty{display:flex;flex-direction:column;align-items:center;padding:1.5rem 1rem;text-align:center}.spend-empty-icon{color:hsl(var(--muted-foreground));margin-bottom:.5rem}.spend-empty p{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.details-card{padding:12px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));box-shadow:var(--shadow-md)}.details-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}.details-title{display:flex;flex-direction:column;gap:2px}.spend-vendor{font-size:.9rem;font-weight:600;color:hsl(var(--foreground))}.breakdown-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.timestamps{margin-top:auto;padding-top:1.1rem;border-top:1px solid hsl(var(--border));display:flex;flex-direction:column;gap:.4rem}.timestamp-item{display:flex;justify-content:space-between;align-items:center}.timestamp-label{font-size:.8rem;color:hsl(var(--muted-foreground))}.timestamp-value{font-size:.8rem;color:hsl(var(--foreground))}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:hsl(var(--muted));color:hsl(var(--foreground));font-weight:600;font-size:.85rem;border:1px solid hsl(var(--border))}.campaigns-page{max-width:100%;margin:0 auto;padding:0 20px 32px;width:100%}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.page-header-content{flex:1}.page-actions{display:flex;align-items:center;gap:.5rem}.page-title{font-size:1.75rem;font-weight:600;margin:0 0 .25rem;color:hsl(var(--foreground))}.create-card{margin-bottom:1rem;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;padding:1.25rem 1.5rem}.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.section-title{margin:0 0 .15rem}.section-subtitle{color:hsl(var(--muted-foreground));margin:0}.campaign-form{display:flex;flex-direction:column;gap:1rem}.campaigns-card{margin-top:1rem;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;padding:1.25rem 1.5rem 1.5rem}.filters-container{padding:0 0 1.25rem;border-bottom:1px solid hsl(var(--border));margin-bottom:1.25rem}.filter-row{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:flex-end}.ui-form-group.search-filter{flex:1;min-width:240px}.filter-pills{display:flex;gap:.5rem;flex-wrap:wrap}.filter-summary{margin-top:.75rem;font-size:.875rem;color:hsl(var(--muted-foreground));font-weight:500}.campaigns-table{min-width:720px;width:100%;border-collapse:collapse;font-size:.9rem;table-layout:fixed}.campaigns-table thead,.campaigns-table tbody{display:table-row-group}.campaigns-table tr{display:table-row}.campaigns-table th,.campaigns-table td{display:table-cell}.campaigns-table thead{background:hsl(var(--muted));position:sticky;top:0;z-index:1}.campaigns-table th{padding:.9rem 1rem;text-align:left;font-size:.75rem;font-weight:600;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid hsl(var(--border));white-space:nowrap}.campaigns-table th:first-child,.campaigns-table td:first-child{width:50%}.campaigns-table th:last-child,.campaigns-table td:last-child{text-align:right}.campaigns-table td{vertical-align:middle}.campaigns-table td{padding:.95rem 1rem;border-bottom:1px solid hsl(var(--border));color:hsl(var(--foreground))}.campaigns-table tbody tr:last-child td{border-bottom:none}.name-cell{display:flex;align-items:center;gap:12px;min-width:0}.name-cell span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sfdc-flag{display:inline-flex;align-items:center;justify-content:center;color:var(--sfdc-blue);margin-right:8px}.cenerio-flag{display:inline-flex;align-items:center;justify-content:center;margin-right:8px}.campaign-name{display:inline-block}.campaigns-table tbody tr{transition:background-color .15s ease}.campaigns-table tbody tr:hover{background-color:hsl(var(--accent))}.campaigns-table tbody tr.clickable-row{cursor:pointer}.date-cell{white-space:nowrap}.pagination{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0;color:hsl(var(--muted-foreground))}.pagination .page-meta{font-size:.9rem}.state-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1.5rem;text-align:center}.state-text{color:hsl(var(--muted-foreground));margin:.5rem 0 1rem}.error-text{color:hsl(var(--destructive))}.empty-icon{color:hsl(var(--muted-foreground));margin-bottom:.5rem}.empty-title{font-size:1.125rem;font-weight:600;margin:0}.loading-spinner{width:32px;height:32px;border:3px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .8s linear infinite}.form-error-banner{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background-color:hsl(var(--destructive) / .08);border:1px solid hsl(var(--destructive) / .2);border-radius:8px;color:hsl(var(--destructive));font-size:.875rem;margin-bottom:1rem}.audit-page{width:100%;max-width:none;margin:0;padding:0 0 2rem}.audit-page .page-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid hsl(var(--border))}.audit-page .page-title{font-size:1.5rem;font-weight:700;margin:0 0 .25rem;letter-spacing:-.025em;color:hsl(var(--foreground))}.audit-page .page-subtitle{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.audit-page .error-message{padding:1.5rem;background:hsl(var(--destructive) / .08);border:1px solid hsl(var(--destructive) / .2);border-radius:12px;color:hsl(var(--destructive))}.audit-page .error-message p{margin:0}.reallocation-hub-page{max-width:1200px;margin:0 auto;padding-bottom:2rem}.page-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:1.75rem}.page-hero-content{flex:1}.eyebrow{font-size:.75rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.08em;margin:0 0 .25rem}.page-title{font-size:1.9rem;font-weight:600;margin:0 0 .35rem}.page-description{font-size:.95rem;color:hsl(var(--muted-foreground));margin:0}.header-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{border:1px solid hsl(var(--border))}.stat-value{font-size:1.6rem;font-weight:700}.stat-sub{font-size:.9rem;color:hsl(var(--muted-foreground));margin:.35rem 0 0}.reallocation-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,240px);gap:1rem;align-items:end;margin-bottom:1.5rem;padding:1rem;border-radius:calc(var(--radius) + 2px);border:1px solid hsl(var(--border));background:hsl(var(--muted))}.filter-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground))}.reallocation-table-card{border:1px solid hsl(var(--border))}.reallocation-table-wrapper{overflow:auto}.reallocation-cell{display:flex;flex-direction:column;gap:.2rem}.reallocation-title{font-weight:600}.reallocation-meta{font-size:.8rem;color:hsl(var(--muted-foreground))}.reallocation-amount{font-weight:600;color:var(--metric-uncommitted-text)}.notes-cell{max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:900px){.page-hero{flex-direction:column;align-items:stretch}.reallocation-filter-bar{grid-template-columns:1fr}}.budget-grid-container{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);display:flex;flex-direction:column;flex:1;min-height:0}.budget-grid-scroll-wrapper{overflow:auto;flex:1;min-height:0;width:100%;max-height:100%;position:relative}.budget-planning-grid{width:max-content;border-collapse:separate;border-spacing:0;font-size:.875rem;display:table}.ui-table.budget-planning-grid{overflow:visible!important;border-radius:0!important;border:none!important}.budget-planning-grid thead{display:table-header-group}.budget-planning-grid tbody{display:table-row-group}.budget-planning-grid tr{display:table-row}.budget-planning-grid th,.budget-planning-grid td{display:table-cell}.budget-grid-header-row th{position:sticky;top:0;z-index:20;padding:.79rem .9rem;text-align:left;font-weight:600;font-size:.73rem;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid hsl(var(--border));border-top:1px solid hsl(var(--border));background:hsl(var(--muted));background-clip:padding-box;white-space:nowrap}.ui-table.budget-planning-grid .budget-grid-header-row th{position:sticky;top:0;z-index:20}.budget-sticky-col{position:sticky;left:0;z-index:25;background:hsl(var(--card));box-shadow:var(--shadow-sticky-col)}.ui-table.budget-planning-grid .budget-sticky-col{position:sticky;left:0;z-index:25}.budget-grid-header-row .budget-sticky-col{z-index:30;background:hsl(var(--muted))}.ui-table.budget-planning-grid .budget-grid-header-row .budget-sticky-col{z-index:30}.budget-group-row .budget-group-cell{position:sticky;top:var(--budget-grid-header-height, 0px);left:0;z-index:26;background:hsl(var(--muted));font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:0;box-shadow:var(--shadow-sticky-col);contain:paint}.ui-table.budget-planning-grid .budget-group-row .budget-group-cell{z-index:26}.budget-group-sticky{transform:translateZ(0);backface-visibility:hidden;display:flex;align-items:center;gap:.2rem;width:100%;min-width:100%;background:hsl(var(--muted));box-shadow:var(--shadow-sticky-col)}.budget-group-chevron-button{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;min-width:2.5rem;align-self:stretch;padding:0;background:transparent;border:none;cursor:pointer;color:hsl(var(--foreground));transition:background .15s ease,color .15s ease}.budget-group-name-button{flex:1;min-width:0;padding:.675rem .9rem .675rem .25rem;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;gap:.45rem;color:hsl(var(--foreground));font-weight:600;text-transform:uppercase;letter-spacing:.04em;text-align:left;transition:background .15s ease}.budget-group-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.budget-group-details-icon{flex-shrink:0;margin-left:auto;color:hsl(var(--muted-foreground));font-size:.78rem;opacity:.75;transition:color .15s ease,opacity .15s ease}.budget-group-chevron-button:hover,.budget-group-name-button:hover{background:hsl(var(--accent))}.budget-group-name-button:hover .budget-group-details-icon,.budget-group-name-button:focus-visible .budget-group-details-icon{color:hsl(var(--foreground));opacity:1}.budget-group-chevron-button:focus-visible,.budget-group-name-button:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:-2px}.budget-group-name-button.is-static{cursor:default}.budget-group-chevron{transition:transform .2s ease;font-size:.75rem;opacity:.7}.budget-group-row .budget-group-spacer{position:sticky;top:var(--budget-grid-header-height, 0px);background:hsl(var(--muted));border-bottom:1px solid hsl(var(--border));z-index:21}.ui-table.budget-planning-grid .budget-group-row .budget-group-spacer{z-index:21}.envelope-col{min-width:225px;max-width:225px}.period-col{min-width:153px;text-align:center;vertical-align:top}.period-header{display:flex;flex-direction:column;align-items:center}.period-label{font-weight:600;color:hsl(var(--foreground))}.budget-grid-row{transition:background-color .1s ease}.budget-grid-row.even,.budget-grid-row.odd{background:hsl(var(--card))}.budget-grid-row:hover{background:hsl(var(--accent))}.envelope-name-cell{padding:.9rem;border-bottom:1px solid hsl(var(--border));background:inherit}.envelope-name-cell .envelope-cell-content{align-items:center;min-height:100%}.envelope-name-cell .envelope-link,.envelope-name-cell .envelope-link-btn{justify-content:center;min-height:100%}.budget-grid-row.even .budget-sticky-col,.budget-grid-row.odd .budget-sticky-col{background:hsl(var(--card))}.budget-grid-row:hover .budget-sticky-col{background:hsl(var(--accent))}.envelope-link{text-decoration:none;color:inherit;display:block;background:transparent;-webkit-user-select:none;user-select:none;outline:none}.envelope-link-btn{display:flex;width:100%;text-align:left;flex-direction:column;align-items:flex-start;gap:4px;padding:0}.envelope-link:hover .envelope-name,.envelope-link-btn:hover .envelope-name{color:inherit;text-decoration:none}.envelope-link-btn:hover,.envelope-link-btn:focus,.envelope-link-btn:active{background:transparent}.envelope-name{font-weight:600;color:hsl(var(--foreground));margin-bottom:.225rem;font-size:.9rem;transition:color .15s ease}.envelope-meta{font-size:.675rem;color:hsl(var(--muted-foreground))}.period-cell{padding:.45rem;border-bottom:1px solid hsl(var(--border));border-left:1px solid hsl(var(--border));vertical-align:top;min-width:153px}.cell-stack{display:flex;flex-direction:column;gap:.36rem;min-height:65px;width:100%}.cell-value{padding:.45rem .5625rem;border-radius:calc(var(--radius) - 4px);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.73rem;transition:all .15s ease;min-height:32px;display:flex;align-items:center;position:relative}.cell-value:focus{outline:none}.cell-value[role=button]{cursor:pointer}.cell-value[role=button]:hover{box-shadow:0 0 0 2px hsl(var(--ring) / .35)}.cell-value[role=button]:focus-within{box-shadow:0 0 0 2px hsl(var(--ring) / .6)}.cell-note-indicator{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:0;border:0;background:transparent;cursor:pointer;color:hsl(var(--muted-foreground));opacity:.8}.cell-note-indicator.inline svg{width:.65rem;height:.65rem}.cell-note-indicator:hover{color:var(--metric-uncommitted-border);opacity:1}.budget-grid-row.is-search-match .envelope-name-cell{background:hsl(var(--ring) / .12);box-shadow:inset 3px 0 hsl(var(--ring))}.budget-grid-row.is-search-match .envelope-name{font-weight:700}.commit-value{background:var(--metric-commit-bg);color:var(--metric-commit-text)}.commit-value[role=button]:hover{background:var(--metric-commit-bg);box-shadow:0 0 0 2px var(--metric-commit-border)}.uncommitted-value{background:var(--metric-uncommitted-bg);color:var(--metric-uncommitted-text)}.uncommitted-value[role=button]:hover{background:var(--metric-uncommitted-bg);box-shadow:0 0 0 2px var(--metric-uncommitted-border)}.uncommitted-value.reallocation-selected{box-shadow:0 0 0 2px var(--metric-uncommitted-border);background:linear-gradient(120deg,var(--metric-uncommitted-bg) 0%,hsl(var(--card)) 100%)}.uncommitted-value.reallocation-selected.reallocation-full{box-shadow:0 0 0 2px var(--metric-uncommitted-border),inset 0 0 0 1px hsl(var(--foreground) / .12)}.uncommitted-value.reallocation-selected.reallocation-partial{background:repeating-linear-gradient(135deg,var(--metric-uncommitted-bg),var(--metric-uncommitted-bg) 10px,hsl(var(--card)) 10px,hsl(var(--card)) 20px)}.forecast-value{background:var(--metric-forecast-bg);color:var(--metric-forecast-text)}.forecast-value[role=button]:hover{background:var(--metric-forecast-bg);box-shadow:0 0 0 2px var(--metric-forecast-border)}.actual-value{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.actual-value.clickable{cursor:pointer}.actual-value.clickable:hover{background:var(--metric-actual-bg);box-shadow:0 0 0 2px var(--metric-actual-border)}.value-label{font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:right}.cell-label-left{display:inline-flex;align-items:center;gap:6px;min-width:0}.cell-label-amount{margin-left:auto}.cell-icon{opacity:.8;flex-shrink:0}.cell-value.read-only{cursor:not-allowed;opacity:.6;background-color:hsl(var(--muted))!important}.cell-input{width:100%;padding:.405rem .585rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.765rem;color:inherit;outline:none!important;outline-color:transparent!important;box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;-moz-appearance:textfield;-webkit-appearance:none;appearance:textfield;-webkit-tap-highlight-color:transparent}.cell-input::-webkit-outer-spin-button,.cell-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cell-input:focus-visible{outline:none!important;outline-color:transparent!important;box-shadow:none!important}.cell-input::-moz-focus-inner{border:0!important}.cell-value input:focus,.cell-value input:focus-visible{outline:none!important;box-shadow:none!important}.budget-grid-container input:focus,.budget-grid-container input:focus-visible{outline:none!important;box-shadow:none!important}.budget-grid-container input[type=number],.budget-grid-container input[type=number]:focus,.budget-grid-container input[type=number]:focus-visible{outline:none!important;outline-offset:0!important;box-shadow:none!important;border-color:inherit!important;-webkit-appearance:none;appearance:textfield}.budget-grid-container input::-moz-focus-inner,.budget-grid-container input[type=number]::-moz-focus-inner{border:0!important}.cell-input:disabled{opacity:.6;cursor:not-allowed}.cell-input:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring) / .35);outline:none!important;outline-color:transparent!important}.cell-value.editing{position:relative;box-shadow:none!important}.cell-value.remote-editing{position:relative;outline:2px solid hsl(var(--warning, 43 96% 56%));outline-offset:2px;box-shadow:0 0 0 4px hsl(var(--warning, 43 96% 56%) / .18),inset 0 0 0 1px hsl(var(--warning, 43 96% 56%) / .28)}.cell-value.remote-editing:after{content:attr(data-remote-editor);position:absolute;top:.2rem;right:.35rem;z-index:2;max-width:calc(100% - .7rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid hsl(var(--warning, 43 96% 56%) / .38);border-radius:999px;background:hsl(var(--background));color:hsl(var(--foreground));padding:.05rem .35rem;font-size:.58rem;font-weight:800;line-height:1.2;pointer-events:none}.cell-value.remote-editing .cell-label-amount{padding-top:.55rem}.cell-value.remote-editing.editing:after{display:none}.cell-value:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px;box-shadow:none}.cell-value.editing:focus-visible{outline:none}.budget-grid-container input:-webkit-autofill,.budget-grid-container input:-webkit-autofill:focus,.budget-grid-container input:-webkit-autofill:hover{box-shadow:0 0 0 1000px transparent inset!important;-webkit-box-shadow:0 0 0px 1000px transparent inset!important;-webkit-text-fill-color:inherit!important;transition:background-color 9999s ease-out,color 9999s ease-out}@keyframes caret-blink{0%,60%{opacity:.85}70%,to{opacity:.2}}.grid-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 1.5rem;text-align:center}.grid-empty-state svg{color:hsl(var(--muted-foreground));margin-bottom:1rem}.empty-title{font-size:1.125rem;font-weight:600;margin:0 0 .5rem;color:hsl(var(--foreground))}.empty-text{color:hsl(var(--muted-foreground));margin:0;font-size:.95rem}.budget-planning-grid.transposed{width:max-content}.budget-planning-grid.transposed .period-header-row th{position:sticky;top:0;z-index:20;background:hsl(var(--muted));height:48px}.budget-planning-grid.transposed .period-col-header{text-align:center;border-left:2px solid hsl(var(--border));background:hsl(var(--muted))}.budget-planning-grid.transposed .period-col-header:first-of-type{border-left:1px solid hsl(var(--border))}.budget-planning-grid.transposed .metric-header-row th{position:sticky;top:48px;z-index:20;background:hsl(var(--muted));height:42px}.budget-planning-grid.transposed .metric-col-header{min-width:125px;text-align:center;font-size:.7rem;padding:.65rem .75rem;border-left:1px solid hsl(var(--border));background:hsl(var(--muted))}.budget-planning-grid.transposed .metric-cell{padding:.45rem;border-bottom:1px solid hsl(var(--border));border-left:1px solid hsl(var(--border));vertical-align:middle;min-width:125px}.budget-planning-grid.transposed .metric-cell .cell-value{width:100%;min-height:32px}.budget-planning-grid.transposed .metric-cell:has(+.commit-cell),.budget-planning-grid.transposed .commit-cell{border-left:2px solid hsl(var(--border))}.budget-planning-grid.transposed .budget-sticky-col{position:sticky;left:0;z-index:25;background:inherit;box-shadow:var(--shadow-sticky-col)}.budget-planning-grid.transposed .period-header-row .budget-sticky-col{position:sticky;left:0;top:0;z-index:30;background:hsl(var(--muted))}.budget-planning-grid.transposed .budget-group-row .budget-group-cell{position:sticky;left:0;top:90px;z-index:26;background:hsl(var(--muted));box-shadow:var(--shadow-sticky-col)}.budget-planning-grid.transposed .budget-group-row .budget-group-cell .budget-group-sticky{background:hsl(var(--muted))}.budget-planning-grid.transposed .budget-group-row .budget-group-spacer{position:sticky;top:90px;background:hsl(var(--muted));border-bottom:1px solid hsl(var(--border));z-index:21}.budget-grid-scroll-wrapper::-webkit-scrollbar{height:10px;width:10px}.budget-grid-scroll-wrapper::-webkit-scrollbar-track{background:hsl(var(--muted));border-radius:5px}.budget-grid-scroll-wrapper::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:5px;transition:background .2s ease}.budget-grid-scroll-wrapper::-webkit-scrollbar-thumb:hover{background:hsl(var(--ring))}.budget-grid-scroll-wrapper{scroll-behavior:smooth}@media(max-width:768px){.envelope-col{min-width:162px;max-width:162px}.period-col{min-width:90px}.cell-stack{min-height:45px}.cell-value{font-size:.675rem;padding:.34rem .45rem;min-height:25px}}.envelope-cell-content{display:flex;align-items:center;gap:8px}.drag-handle{display:flex;align-items:center;justify-content:center;width:20px;height:100%;color:hsl(var(--muted-foreground));cursor:grab;opacity:.4;transition:opacity .15s ease,color .15s ease;flex-shrink:0;touch-action:none;-webkit-user-select:none;user-select:none}.drag-handle:active,html.is-dragging .drag-handle,body.is-dragging .drag-handle{cursor:grabbing}.drag-handle:hover{opacity:1;color:hsl(var(--foreground))}.envelope-cell-content .envelope-link,.envelope-cell-content .envelope-link-btn{flex:1;min-width:0}.grid20-page{display:flex;flex-direction:column;height:calc(100vh - 108px);overflow:hidden}.grid20-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;align-items:stretch;height:100%;min-height:0;overflow:hidden}.grid20-shell.focus-mode{grid-template-columns:1fr;gap:0}.grid20-secondary-nav{position:sticky;top:4px;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius-md);padding:14px;box-shadow:var(--shadow-soft);max-height:calc(100vh - 120px);overflow:auto}.grid20-nav-header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.95rem;margin-bottom:8px;color:hsl(var(--foreground));gap:8px}.grid20-nav-toggle{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:var(--radius-sm);width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:hsl(var(--foreground))}.grid20-fy-filter{margin-bottom:10px}.grid20-tree{display:flex;flex-direction:column;gap:8px}.grid20-all-btn{width:100%;display:inline-flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:8px;border-radius:var(--radius-sm);border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;font-weight:700}.grid20-all-btn.active{background:hsl(var(--accent));border-color:hsl(var(--foreground))}.grid20-tree-node{border:1px solid hsl(var(--border));border-radius:var(--radius-sm);background:hsl(var(--card));overflow:hidden}.tree-budget{width:100%;border:none;background:transparent;color:hsl(var(--foreground));display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;text-align:left}.tree-budget:hover{background:hsl(var(--card))}.tree-budget.active{background:hsl(var(--accent));border-left:3px solid hsl(var(--ring))}.tree-toggle{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--foreground))}.tree-budget-copy{display:flex;flex-direction:column;gap:2px}.tree-budget-name{font-weight:700}.tree-budget-meta{font-size:.82rem;color:hsl(var(--foreground))}.tree-envelopes{display:flex;flex-direction:column;padding:0 10px 10px 38px;gap:6px}.tree-envelope{border:none;background:transparent;color:hsl(var(--foreground));display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius-sm);cursor:pointer}.tree-envelope:hover{background:hsl(var(--card));color:hsl(var(--foreground))}.tree-envelope.active{background:hsl(var(--accent));color:hsl(var(--foreground));border:1px solid hsl(var(--border));box-shadow:0 0 0 1px hsl(var(--ring) / .3)}.grid20-main{display:flex;flex-direction:column;gap:14px;min-width:0;flex:1;min-height:0;overflow:hidden}.grid20-header-card{position:sticky;top:0;z-index:100;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius-md);padding:14px 16px;box-shadow:var(--shadow-soft);flex:0 0 auto;overflow:visible}.grid20-header-card.focus-mode{padding:8px 12px}.grid20-header-card.focus-mode .grid20-header-row{margin-bottom:0}.grid20-header-row{display:grid;grid-template-columns:1fr;gap:12px;align-items:center;margin-bottom:12px}.grid20-header-content{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.grid20-header-actions{display:flex;align-items:center;gap:.5rem}.grid20-budget-picker{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.grid20-budget-details-menu-wrap{position:relative}.grid20-budget-details-button{white-space:nowrap}.grid20-budget-details-menu{min-width:220px}.grid20-budget-details-item{justify-content:space-between;gap:1rem}.grid20-budget-details-item span:last-child{color:hsl(var(--muted-foreground));font-size:.78rem;font-weight:700}.grid20-inline-stats{display:flex;align-items:center;gap:20px;flex-wrap:nowrap;overflow-x:auto}.inline-stat{display:flex;flex-direction:column;gap:2px;min-width:100px}.inline-stat-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--foreground))}.inline-stat-value{font-size:1.1rem;font-weight:800;font-variant-numeric:tabular-nums}.inline-stat-value.plan{color:hsl(var(--foreground))}.inline-stat-value.commit{color:var(--metric-commit-text)}.inline-stat-value.uncommitted{color:var(--metric-uncommitted-text)}.inline-stat-value.forecast{color:var(--metric-forecast-text)}.inline-stat-value.actual{color:var(--metric-actual-text)}.grid20-label{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--foreground));margin:0 0 4px}.grid20-selection{position:relative;z-index:200}.grid20-selection-btn{height:auto;padding:.4rem .65rem;font-weight:700}.grid20-selection-title{font-size:1.05rem;font-weight:800;letter-spacing:.01em;line-height:1.1}.grid20-fy-label{font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));background:transparent;cursor:pointer;padding:6px 12px;border-radius:0;display:block}.grid20-fy-label:hover,.grid20-fy-label:focus-visible{background:transparent;color:hsl(var(--foreground));box-shadow:none}.grid20-fy-label.is-active{color:hsl(var(--muted-foreground))}.grid20-fy-item.is-active{color:hsl(var(--foreground))}.grid20-granularity,.grid20-columns{display:flex;flex-direction:column;gap:4px}.grid20-toggle{display:inline-flex;gap:.35rem;flex-wrap:wrap}.grid20-chip-row{display:flex;gap:8px;flex-wrap:wrap}.grid20-reallocation-toggle{border:1px solid hsl(var(--border));font-weight:700}.grid20-reallocation-toggle.is-active{background:var(--metric-uncommitted-bg);color:var(--metric-uncommitted-text);border-color:var(--metric-uncommitted-border)}.grid20-chip-btn{border:1px solid transparent;font-weight:700;box-shadow:inset 0 1px hsl(var(--foreground) / .04);opacity:.95}.grid20-chip-btn svg{margin-right:6px}.grid20-export{display:flex;flex-direction:column;gap:4px;align-items:flex-end}.grid20-stats{margin-top:6px}.stat-value{font-size:1.4rem;font-weight:800}.stat-value.plan{color:hsl(var(--foreground))}.stat-value.forecast{color:var(--metric-forecast-text)}.stat-value.actual{color:var(--metric-actual-text)}.grid20-grid-card{border:1px solid hsl(var(--border));border-radius:var(--radius-md);background:linear-gradient(180deg,hsl(var(--card)),hsl(var(--muted)));padding:10px;box-shadow:inset 0 1px hsl(var(--foreground) / .05),var(--shadow-soft);flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative}.grid20-grid-card .budget-grid-container{width:100%}.grid20-grid-card .budget-grid-scroll-wrapper{overflow:auto}.grid20-grid-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-height:0;flex:1;transition:grid-template-columns .22s ease}.grid20-grid-layout.is-reallocation{grid-template-columns:minmax(0,1fr) 200px}.grid20-grid-layout.is-reallocation.is-reallocation-step2{grid-template-columns:minmax(0,1fr) 500px}.grid20-grid-main{min-width:0;min-height:0;display:flex;flex-direction:column}.grid20-reallocation-sheet{width:min(540px,100%);max-width:720px;min-width:420px;resize:horizontal;overflow:auto;box-shadow:-12px 0 32px hsl(var(--foreground) / .15)}.grid20-reallocation-overlay{background:transparent;pointer-events:none}.grid20-reallocation-overlay .ui-sheet{pointer-events:auto}.grid20-reallocation-rail{border-left:1px solid hsl(var(--border));background:hsl(var(--card));padding:.75rem .75rem 1rem;display:flex;flex-direction:column;gap:.75rem;min-height:0}.grid20-rail-sticky{position:sticky;top:0;z-index:2;display:grid;gap:.5rem;background:hsl(var(--card));padding-bottom:.5rem;border-bottom:1px solid hsl(var(--border))}.grid20-rail-header{display:flex;flex-direction:column;gap:.25rem;font-weight:700}.grid20-rail-total{color:var(--metric-uncommitted-text);font-size:1rem}.grid20-rail-summary{display:grid;gap:.35rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--muted-foreground))}.grid20-rail-summary-row{display:flex;justify-content:space-between;gap:.5rem}.grid20-rail-summary-amount{font-weight:600;color:hsl(var(--muted-foreground))}.grid20-rail-summary-amount.is-selected{color:var(--metric-uncommitted-text)}.grid20-rail-summary-amount.is-muted{color:hsl(var(--muted-foreground))}.grid20-rail-summary-amount.is-remaining-positive{color:var(--metric-uncommitted-text)}.grid20-rail-summary-amount.is-remaining-negative{color:hsl(var(--destructive))}.grid20-rail-tooltip-wrap{display:flex;flex:1}.grid20-rail-tooltip-wrap .grid20-rail-action,.grid20-rail-action{width:100%}.grid20-rail-sticky-destination{display:grid;gap:.4rem}.grid20-rail-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground))}.grid20-rail-list{display:flex;flex-direction:column;gap:.65rem;overflow:auto;padding-right:2px}.grid20-rail-step-scroll{display:grid;gap:.75rem;overflow:auto;padding-right:2px;min-height:0;flex:1}.grid20-rail-section{display:grid;gap:.5rem}.grid20-rail-section-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.grid20-rail-section-header h4{margin:0;font-size:.85rem;font-weight:600}.grid20-fx-panel{padding:.65rem;border:1px solid var(--metric-plan-border);border-radius:calc(var(--radius) - 2px);background:var(--metric-plan-light)}.grid20-fx-copy{color:hsl(var(--muted-foreground));font-size:.78rem}.grid20-fx-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:.4rem;align-items:center;font-size:.78rem}.grid20-fx-row strong{grid-column:1 / -1;justify-self:end;font-size:.82rem}.grid20-fx-input{text-align:right;min-width:0}.grid20-rail-remaining{font-size:.7rem;color:hsl(var(--muted-foreground))}.grid20-rail-remaining.is-negative{color:hsl(var(--destructive))}.grid20-rail-empty{font-size:.8rem;color:hsl(var(--muted-foreground));border:1px dashed hsl(var(--border));border-radius:calc(var(--radius) - 2px);padding:.5rem;background:hsl(var(--muted))}.grid20-rail-item{position:relative;display:grid;gap:.35rem;padding:.5rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.grid20-rail-item-title{font-weight:600;font-size:.85rem}.grid20-rail-item-meta{font-size:.75rem;color:hsl(var(--muted-foreground))}.grid20-rail-select{width:100%}.grid20-rail-destination-meta{display:grid;gap:.35rem;padding:.5rem;border-radius:calc(var(--radius) - 2px);background:hsl(var(--muted))}.grid20-rail-destination-table{display:grid;gap:.5rem}.grid20-rail-destination-header{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:.5rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground))}.grid20-rail-destination-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:.5rem;align-items:center}.grid20-rail-destination-period{display:grid;gap:.2rem}.grid20-rail-destination-label{font-size:.8rem;font-weight:600}.grid20-rail-destination-range{font-size:.7rem;color:hsl(var(--muted-foreground))}.grid20-rail-notes{min-height:80px}.grid20-rail-error{font-size:.75rem;color:hsl(var(--destructive))}.grid20-rail-input{width:100%;text-align:right}.grid20-rail-item-footer{display:grid;grid-template-columns:auto 1fr;gap:.5rem;align-items:center}.grid20-rail-percent{font-size:.7rem;font-weight:600;color:var(--metric-uncommitted-text);background:repeating-linear-gradient(135deg,var(--metric-uncommitted-bg),var(--metric-uncommitted-bg) 6px,hsl(var(--card)) 6px,hsl(var(--card)) 12px);border:1px solid var(--metric-uncommitted-border);padding:.1rem .35rem;border-radius:999px}.grid20-rail-percent.is-full{background:var(--metric-uncommitted-bg);box-shadow:0 0 0 1px hsl(var(--foreground) / .1)}.grid20-rail-remove-icon{position:absolute;top:.3rem;right:.35rem;width:1.25rem;height:1.25rem;padding:0;font-size:.9rem;line-height:1}.grid20-rail-action{margin-top:auto}.grid20-rail-actions{display:flex;gap:.5rem;align-items:stretch}.grid20-rail-actions .ui-tooltip-wrapper{flex:1;width:100%;display:flex}.grid20-rail-actions .ui-tooltip-wrapper>.grid20-rail-tooltip-wrap{flex:1;width:100%}.grid20-rail-back{flex:0 0 84px}.grid20-rail-actions .grid20-rail-action{margin-top:0;flex:1}.grid20-reallocation-header{align-items:flex-start}.grid20-reallocation-subtitle{margin:.25rem 0 0;color:hsl(var(--muted-foreground));font-size:.85rem}.grid20-reallocation-total{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--muted))}.grid20-reallocation-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground));font-weight:700}.grid20-reallocation-total-value{justify-content:space-between}.grid20-reallocation-section{display:flex;flex-direction:column;gap:.75rem}.grid20-section-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.grid20-section-header h3{margin:0;font-size:.95rem;font-weight:700}.grid20-section-meta{font-size:.8rem;color:hsl(var(--muted-foreground))}.grid20-section-meta.is-negative{color:hsl(var(--destructive))}.grid20-reallocation-list{display:grid;gap:.75rem}.grid20-reallocation-card{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.75rem;padding:.75rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.grid20-reallocation-card-title{font-weight:700}.grid20-reallocation-card-meta{font-size:.8rem;color:hsl(var(--muted-foreground))}.grid20-reallocation-card-amount{min-width:160px}.reallocation-amount-input{width:100%}.grid20-reallocation-remove{color:hsl(var(--muted-foreground))}.grid20-reallocation-empty{padding:.75rem;border-radius:calc(var(--radius) - 2px);border:1px dashed hsl(var(--border));background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:.85rem}.grid20-reallocation-select{width:100%}.grid20-reallocation-destination-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.6rem .75rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.grid20-meta-label{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));font-weight:600}.grid20-meta-value{font-weight:600}.grid20-destination-table{display:grid;gap:.5rem}.grid20-destination-header,.grid20-destination-row{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:.5rem;align-items:center}.grid20-destination-header{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground))}.grid20-destination-row{padding:.5rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));background:hsl(var(--card))}.grid20-destination-period{display:flex;flex-direction:column;gap:.15rem}.grid20-destination-label{font-weight:600}.grid20-destination-range{font-size:.75rem;color:hsl(var(--muted-foreground))}.reallocation-destination-input{width:100%;text-align:right}.grid20-reallocation-notes{width:100%}.grid20-reallocation-error{padding:.6rem .75rem;border-radius:calc(var(--radius) - 2px);background:hsl(var(--destructive) / .12);border:1px solid hsl(var(--destructive) / .35);color:hsl(var(--destructive));font-size:.85rem}@media(max-width:768px){.grid20-reallocation-sheet{width:100%}.grid20-reallocation-card{grid-template-columns:1fr;align-items:flex-start}.grid20-destination-header,.grid20-destination-row{grid-template-columns:1fr}.grid20-destination-row{gap:.75rem}}.grid20-controls-bar{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:8px 10px;border-bottom:1px solid hsl(var(--border));margin-bottom:8px}.grid20-controls-bar.compact{grid-template-columns:1fr auto;gap:8px;padding:6px 8px}.grid20-controls-bar .grid20-columns{align-items:flex-start}.grid20-all-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.grid20-all-controls .grid20-chip-btn{white-space:nowrap}.grid20-controls-search{display:flex;align-items:center}.grid20-controls-search-input{width:260px;font-size:.85rem}.grid20-controls-search-clear{margin-left:-4px;height:24px;width:24px;color:hsl(var(--muted-foreground))}.grid20-controls-search-clear:hover{color:hsl(var(--foreground))}.grid20-loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:hsl(var(--background) / .6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:hsl(var(--foreground));font-weight:700;z-index:5}.grid20-loading{display:grid;gap:8px;padding:10px}.loading-bar{height:10px;border-radius:999px;background:linear-gradient(90deg,hsl(var(--muted)),hsl(var(--card)));animation:pulse 1.4s ease-in-out infinite}.loading-bar.short{width:60%}@keyframes pulse{0%{opacity:.8}50%{opacity:.4}to{opacity:.8}}.grid20-empty{flex:1;min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:32px;text-align:center;color:hsl(var(--foreground))}.grid20-empty-icon{width:32px;height:32px;color:hsl(var(--muted-foreground));margin-bottom:4px}.grid20-empty h3{margin:0;font-size:1.05rem;font-weight:700}.grid20-empty p{max-width:420px;margin:0;color:hsl(var(--muted-foreground));line-height:1.5}.grid20-error-state{max-width:720px;margin:0 auto}.error-copy{color:hsl(var(--destructive));font-weight:600}@media(max-width:1180px){.grid20-shell{grid-template-columns:1fr}.grid20-secondary-nav{position:relative;top:0;max-height:none}}@media(max-width:768px){.grid20-header-row{grid-template-columns:1fr}.grid20-budget-picker,.grid20-header-actions{width:100%}.grid20-budget-details-button{flex:1 1 auto;justify-content:center}}.budget-grid-row.is-dragging{opacity:.5;background:hsl(var(--accent))!important}.budget-grid-row{transition:transform .2s ease,opacity .2s ease}.budget-grid-row.drag-preview>td{background:hsl(var(--card));box-shadow:inset 0 0 0 1px hsl(var(--ring) / .35),0 10px 28px -24px hsl(var(--foreground) / .6)}.budget-group-row.drop-target-active{background:hsl(var(--accent) / .3);border:2px dashed hsl(var(--ring))}.budget-group-row.drop-target-active .budget-group-toggle{font-weight:800}.budget-grid-row.is-dragging{pointer-events:none}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.move-details-section{background:linear-gradient(135deg,hsl(var(--card)),hsl(var(--muted) / .45));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);padding:1rem;margin:1rem 0;display:grid;gap:.85rem}.move-detail-label{font-size:.875rem;font-weight:500;color:hsl(var(--muted-foreground))}.move-detail-value{font-size:.875rem;font-weight:600;color:hsl(var(--foreground))}.move-detail-entity{display:grid;gap:.25rem}.move-detail-flow{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem}.move-detail-card{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 4px);background:hsl(var(--card));padding:.75rem .85rem;display:grid;gap:.35rem;box-shadow:0 10px 20px -18px hsl(var(--foreground) / .45);min-width:0}.move-detail-tag{align-self:start;justify-self:start;padding:.15rem .5rem;border-radius:999px;font-size:.675rem;letter-spacing:.06em;font-weight:700;text-transform:uppercase;background:hsl(var(--accent) / .3);color:hsl(var(--foreground))}.move-detail-divider{width:26px;height:2px;border-radius:999px;background:hsl(var(--border));position:relative}.move-detail-divider:after{content:"";position:absolute;right:-2px;top:50%;width:6px;height:6px;border-radius:999px;background:hsl(var(--ring));transform:translateY(-50%)}.grid20-note-textarea{min-height:140px}.grid20-note-helper{margin-top:.35rem;font-size:.75rem;color:hsl(var(--muted-foreground))}.grid20-note-actions{margin-top:1rem;border-top:0;padding-top:0}@media(max-width:720px){.move-detail-flow{grid-template-columns:1fr}.move-detail-divider{width:100%;height:1px}.move-detail-divider:after{right:50%;transform:translate(50%,-50%)}}.budget-access-tab{display:flex;flex-direction:column;gap:1rem}.budget-access-header,.budget-access-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}.budget-access-title{margin:0;font-size:1.05rem;font-weight:700}.budget-access-subtitle{margin:.2rem 0 0;color:hsl(var(--muted-foreground));font-size:.875rem}.budget-access-grant{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--muted) / .35)}.budget-access-grant-title{font-weight:700;color:hsl(var(--foreground))}.budget-access-grant-subtitle{margin-top:.2rem;color:hsl(var(--muted-foreground));font-size:.84rem}.budget-access-grant-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px) auto;align-items:center;gap:.75rem}.budget-access-user-picker,.budget-access-role-trigger,.budget-access-table-role-trigger{min-width:0}.budget-access-grant-button{white-space:nowrap}.budget-access-search .ui-search-input{width:min(260px,44vw)}.budget-access-count{color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:600;white-space:nowrap}.budget-access-table-wrapper{border-radius:8px;overflow-x:hidden}.budget-access-table{min-width:0;table-layout:fixed}.budget-access-table .ui-table-head:nth-child(1),.budget-access-table .ui-table-cell:nth-child(1){width:39%}.budget-access-table .ui-table-head:nth-child(2),.budget-access-table .ui-table-cell:nth-child(2){width:17%}.budget-access-table .ui-table-head:nth-child(3),.budget-access-table .ui-table-cell:nth-child(3){width:28%}.budget-access-table .ui-table-head:nth-child(4),.budget-access-table .ui-table-cell:nth-child(4){width:16%}.budget-access-table:not(.has-actions) .ui-table-head:nth-child(1),.budget-access-table:not(.has-actions) .ui-table-cell:nth-child(1){width:46%}.budget-access-table:not(.has-actions) .ui-table-head:nth-child(2),.budget-access-table:not(.has-actions) .ui-table-cell:nth-child(2){width:20%}.budget-access-table:not(.has-actions) .ui-table-head:nth-child(3),.budget-access-table:not(.has-actions) .ui-table-cell:nth-child(3){width:34%}.budget-access-table .ui-table-header{background:hsl(var(--muted))}.budget-access-table .ui-table-head{height:2.75rem;color:hsl(var(--muted-foreground));font-size:.75rem;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}.budget-access-table .ui-table-cell{vertical-align:middle}.budget-access-table .ui-table-cell,.budget-access-table .ui-table-head{padding-inline:.85rem}.budget-access-table .ui-table-cell:nth-child(4),.budget-access-table .ui-table-head:nth-child(4){padding-inline:.5rem}.budget-access-row{transition:background-color .15s ease}.budget-access-row:hover{background:hsl(var(--muted) / .35)}.budget-access-row:last-child .ui-table-cell{border-bottom:0}.budget-access-user{display:flex;align-items:center;gap:.75rem;min-width:0}.budget-access-user-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0}.budget-access-user-name{color:hsl(var(--foreground));font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.budget-access-user-email,.budget-access-muted{color:hsl(var(--muted-foreground));font-size:.8125rem}.budget-access-inherited-role,.budget-access-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.budget-access-actions{justify-content:flex-end}.budget-access-actions-head{text-align:right}.budget-access-empty,.budget-access-state{padding:2rem 1rem;text-align:center;color:hsl(var(--muted-foreground))}.budget-access-state{border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--card))}@media(max-width:760px){.budget-access-header,.budget-access-toolbar{align-items:flex-start;flex-direction:column}.budget-access-search,.budget-access-search .ui-search-input{width:100%}.budget-access-grant-controls{grid-template-columns:1fr}.budget-access-grant-button{width:100%}}.budget-sheet{min-height:100%;display:flex;flex-direction:column}.budget-sheet-content{gap:1.25rem}.budget-sheet-state,.budget-sheet-error,.budget-sheet-empty{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--card));padding:1.25rem}.budget-sheet-state{display:flex;align-items:center;gap:.85rem}.budget-sheet-state-copy{margin:0;color:hsl(var(--muted-foreground))}.budget-sheet-error{display:grid;gap:.85rem;background:hsl(var(--destructive) / .08);border-color:hsl(var(--destructive) / .25)}.budget-sheet-error p{margin:0;color:hsl(var(--destructive))}.budget-sheet-overview{display:grid;gap:1rem}.budget-sheet-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:.9rem}.budget-sheet-hero-card,.budget-sheet-mini-card,.budget-sheet-panel,.budget-sheet-details-readonly{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--card))}.budget-sheet-hero-card{padding:1.25rem;background:radial-gradient(circle at top left,hsl(var(--accent) / .45),transparent 45%),linear-gradient(135deg,hsl(var(--muted)),hsl(var(--card)))}.budget-sheet-mini-card{padding:1.05rem 1rem}.budget-sheet-card-eyebrow{margin:0 0 .45rem;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.budget-sheet-hero-value{font-size:clamp(1.7rem,2vw,2.3rem);font-weight:700;line-height:1.05;color:hsl(var(--foreground))}.budget-sheet-mini-value{font-size:1.2rem;font-weight:700;color:hsl(var(--foreground))}.budget-sheet-card-copy,.budget-sheet-panel-copy{margin:.35rem 0 0;font-size:.88rem;color:hsl(var(--muted-foreground));line-height:1.45}.budget-sheet-metrics{display:grid}.budget-sheet-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.budget-sheet-panel{padding:1rem}.budget-sheet-panel-header,.budget-sheet-details-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.9rem}.budget-sheet-panel-title{margin:0;font-size:1rem;font-weight:700;color:hsl(var(--foreground))}.budget-sheet-progress-meta{margin-top:.9rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.84rem;color:hsl(var(--muted-foreground))}.budget-sheet-progress-meta.is-secondary{margin-top:.7rem}.budget-sheet-progress{margin-top:.45rem}.budget-sheet-progress.is-muted .ui-progress-indicator{opacity:.55}.budget-sheet-envelope-list{display:grid;gap:.7rem}.budget-sheet-envelope-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.95rem 1rem;border-radius:calc(var(--radius) - 4px);border:1px solid hsl(var(--border));background:hsl(var(--muted))}.budget-sheet-envelope-main{min-width:0;display:grid;gap:.25rem}.budget-sheet-envelope-link,.budget-sheet-envelope-name{font-size:.98rem;font-weight:700;color:hsl(var(--foreground))}.budget-sheet-envelope-link{padding:0;border:none;background:none;cursor:pointer;text-align:left;transition:color .15s ease}.budget-sheet-envelope-link:hover{color:hsl(var(--primary))}.budget-sheet-envelope-meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.84rem;color:hsl(var(--muted-foreground))}.budget-sheet-envelope-stats{display:flex;gap:1rem;flex-shrink:0}.budget-sheet-envelope-stats>div{display:grid;gap:.15rem;text-align:right}.budget-sheet-envelope-stat-label,.budget-sheet-readonly-label{font-size:.73rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground))}.budget-sheet-envelope-stat-value,.budget-sheet-readonly-value{font-size:.92rem;font-weight:600;color:hsl(var(--foreground))}.budget-sheet-details{display:grid;gap:1rem}.budget-sheet-meta-badges{display:flex;flex-wrap:wrap;gap:.5rem}.budget-sheet-form{padding:1rem;border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--card))}.budget-sheet-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}.budget-sheet-form-span-2{grid-column:1 / -1}.budget-sheet-activity{margin-top:-12px}.budget-sheet-activity-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.budget-sheet-activity-button.is-active{background:hsl(var(--foreground));color:hsl(var(--background));border-color:transparent}.budget-sheet-details-readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin-top:1rem;padding:.95rem 1rem}.budget-sheet-readonly-item{display:grid;gap:.25rem;min-width:0}.budget-sheet-mono{font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-size:.8rem;overflow-wrap:anywhere}@media(max-width:900px){.budget-sheet-hero-grid,.budget-sheet-health-grid,.budget-sheet-form-grid,.budget-sheet-details-readonly{grid-template-columns:1fr}.budget-sheet-envelope-row{flex-direction:column;align-items:flex-start}.budget-sheet-envelope-stats{width:100%;justify-content:space-between}.budget-sheet-envelope-stats>div{text-align:left}}@media(max-width:640px){.budget-sheet-panel-header,.budget-sheet-details-header{flex-direction:column}.budget-sheet-content{padding-left:1rem;padding-right:1rem}}.docs-nav{position:sticky;top:20px;background:hsl(var(--card));border:1px solid hsl(var(--ring));border-radius:calc(var(--radius) - 2px);padding:14px;box-shadow:var(--shadow-soft);max-height:calc(100vh - 120px);overflow:auto;min-width:240px}.docs-nav-header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.95rem;margin-bottom:10px;color:hsl(var(--foreground))}.docs-nav-count{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:999px;padding:2px 8px;font-size:.8rem;color:hsl(var(--muted-foreground))}.docs-nav-tree{display:flex;flex-direction:column;gap:8px}.docs-nav-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}.docs-nav-item.is-active{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.docs-nav-badge{background:hsl(var(--muted));color:hsl(var(--muted-foreground));padding:2px 8px;border-radius:999px;font-size:.75rem}.docs-page{display:flex;flex-direction:column;gap:16px}.docs-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;align-items:start}.docs-main{min-width:0}.docs-card{background:hsl(var(--card));border:1px solid hsl(var(--ring));border-radius:calc(var(--radius) - 2px)}.glossary-grid{display:flex;flex-direction:column;gap:16px}.glossary-item h3{margin:0 0 4px;font-size:1rem;font-weight:700}.glossary-item p{margin:0 0 8px;color:hsl(var(--muted-foreground));line-height:1.5}.glossary-item+.glossary-item{padding-top:8px;border-top:1px solid hsl(var(--border))}.docs-intro{margin:0 0 20px;color:hsl(var(--muted-foreground));line-height:1.5;font-size:.95rem}.shortcuts-grid{display:flex;flex-direction:column;gap:16px}.shortcut-item{display:flex;flex-direction:column;gap:8px}.shortcut-header{display:flex;align-items:center;gap:12px}.shortcut-key{display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:6px 12px;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 4px);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.9rem;font-weight:700;color:hsl(var(--foreground));box-shadow:0 2px hsl(var(--ring)),inset 0 1px hsl(var(--foreground) / .05)}.shortcut-context{font-size:.8rem;font-weight:600;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.05em}.shortcut-description{margin:0 0 8px;color:hsl(var(--muted-foreground));line-height:1.5;padding-left:52px}.shortcut-category{margin-bottom:32px}.shortcut-category:last-child{margin-bottom:0}.shortcut-category-title{margin:0 0 16px;font-size:1.1rem;font-weight:700;color:hsl(var(--foreground));padding-bottom:8px;border-bottom:2px solid hsl(var(--border))}.shortcut-item+.shortcut-item{margin-top:12px;padding-top:12px;border-top:1px solid hsl(var(--border))}.global-search-doc h3{margin:20px 0 10px;font-size:1rem;font-weight:700;color:hsl(var(--foreground))}.global-search-doc ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;color:hsl(var(--muted-foreground))}.search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:12px}.kbd-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 14px;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 4px)}.kbd-label{font-weight:700;color:hsl(var(--foreground))}.kbd-combo{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.kbd-inline{display:inline-flex;align-items:center;justify-content:center;min-width:32px;padding:6px 10px;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 4px);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.9rem;font-weight:700;color:hsl(var(--foreground));box-shadow:0 2px hsl(var(--ring)),inset 0 1px hsl(var(--foreground) / .05)}.kbd-plus,.kbd-or{color:hsl(var(--muted-foreground));font-weight:600}.kbd-hint{color:hsl(var(--muted-foreground));font-size:.9rem}.super-admin-page{max-width:960px;margin:0 auto;padding-bottom:2rem;width:100%}.page-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem 0;border-bottom:1px solid hsl(var(--border))}.page-title{margin:0;font-size:1.75rem;color:hsl(var(--foreground))}.page-subtitle{margin:.2rem 0 0;color:hsl(var(--muted-foreground))}.panel{border:1px solid hsl(var(--border));border-radius:14px;padding:1.25rem;margin-bottom:1rem;background:hsl(var(--card));color:hsl(var(--card-foreground))}.panel-header h2{margin:.2rem 0;line-height:1.2}.panel-header .muted{margin:0}.create-org-form{margin-top:1rem}.create-org-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.create-org-span-2{grid-column:span 2}.create-org-actions{display:flex;justify-content:flex-end;margin-top:1rem}.create-org-result{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:.85rem .9rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--muted) / .22)}.cleanup-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.cleanup-tabs{flex-shrink:0}.super-admin-table-wrap{margin-top:1rem;overflow-x:auto;border:1px solid hsl(var(--border));border-radius:8px}.super-admin-table{min-width:760px}.super-admin-table .ui-table-header{background:hsl(var(--muted))}.super-admin-table .ui-table-head{color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.super-admin-table .ui-table-cell{vertical-align:middle}.cleanup-id-cell{max-width:210px;color:hsl(var(--muted-foreground));font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cleanup-actions-head,.cleanup-actions-cell{text-align:right}.cleanup-actions-cell .ui-button+.ui-button{margin-left:.5rem}.cleanup-empty-cell{height:5rem;color:hsl(var(--muted-foreground));text-align:center}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;color:hsl(var(--muted-foreground));margin:0}.muted{color:hsl(var(--muted-foreground));margin:0}.org-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.org-row select{max-width:260px}.org-meta{color:hsl(var(--muted-foreground));font-size:.9rem}.list{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.list-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem .9rem;border:1px solid hsl(var(--border));border-radius:12px}.row-title{font-weight:700}.row-sub{color:hsl(var(--muted-foreground));font-size:.9rem}.row-sub-meta{font-size:.75rem;margin-top:.25rem}.row-sub-error{color:hsl(var(--destructive))}.row-actions{display:flex;gap:.5rem}.header-actions{display:flex;align-items:center;gap:.75rem}.switch{position:relative;display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.switch input{width:0;height:0;opacity:0}.switch-label{font-size:.9rem;color:hsl(var(--muted-foreground))}.slider{position:relative;width:42px;height:24px;background:hsl(var(--muted-foreground));border-radius:999px;transition:background .15s}.slider:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:hsl(var(--background));border-radius:50%;transition:transform .15s}.switch input:checked+.slider{background:hsl(var(--destructive))}.switch input:checked+.slider:after{transform:translate(18px)}.import-panel{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}.import-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.file-input-hidden{display:none}.import-error-download{margin-top:.5rem}.import-error-list{margin-top:.75rem;max-height:300px;overflow-y:auto}.import-error-more{margin-top:.5rem}@media(max-width:720px){.super-admin-page{padding-bottom:1rem}.page-header{align-items:stretch;flex-direction:column;margin-bottom:1rem;padding:.25rem 0 1rem}.page-title{font-size:1.45rem}.page-subtitle{font-size:.92rem}.panel{padding:1rem;border-radius:10px}.header-actions,.ui-toggle-label{width:100%}.create-org-grid{grid-template-columns:1fr}.create-org-span-2{grid-column:auto}.create-org-result{align-items:stretch;flex-direction:column}.cleanup-panel-header{flex-direction:column}.cleanup-tabs,.cleanup-tabs .ui-tabs-list{width:100%}.cleanup-tabs .ui-tabs-trigger{flex:1}.create-org-actions{justify-content:stretch}.create-org-actions .ui-button,.create-org-result .ui-button{width:100%}.org-row{align-items:stretch;flex-direction:column}.org-row select,.org-row .ui-select-trigger{max-width:none;width:100%}.list-row,.row-actions{align-items:stretch;flex-direction:column}.row-actions .ui-button{width:100%}}@media(max-width:640px){.super-admin-table-wrap{overflow:visible;border:0;border-radius:0}.super-admin-table{min-width:0;border-spacing:0}.super-admin-table .ui-table-header{display:none}.super-admin-table,.super-admin-table .ui-table-body,.super-admin-table .ui-table-row,.super-admin-table .ui-table-cell{display:block;width:100%}.super-admin-table .ui-table-row{margin-bottom:.75rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));overflow:hidden}.super-admin-table .ui-table-cell{display:grid;grid-template-columns:minmax(92px,.4fr) minmax(0,1fr);align-items:start;gap:.75rem;padding:.7rem .85rem;border-bottom:1px solid hsl(var(--border));text-align:left}.super-admin-table .ui-table-cell:before{content:attr(data-label);color:hsl(var(--muted-foreground));font-size:.72rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.super-admin-table .ui-table-cell:last-child{border-bottom:0}.cleanup-id-cell{max-width:none;white-space:normal;overflow-wrap:anywhere}.cleanup-actions-cell{grid-template-columns:1fr}.cleanup-actions-cell:before{margin-bottom:-.25rem}.cleanup-actions-cell .ui-button{width:100%}.cleanup-actions-cell .ui-button+.ui-button{margin-left:0;margin-top:.5rem}.super-admin-table .cleanup-empty-cell{display:block;padding:1rem;text-align:center}.super-admin-table .cleanup-empty-cell:before{content:none}}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:hsl(var(--background))}.login-container{max-width:460px;width:100%;background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 6px);box-shadow:var(--shadow-float);padding:48px 40px;text-align:center}@media(max-width:640px){.login-container{padding:32px 24px}}.login-logo{width:72px;height:72px;margin:0 auto 24px;background:hsl(var(--secondary));border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:700;color:hsl(var(--secondary-foreground))}.login-icon{width:80px;height:80px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.login-icon-success{background:var(--metric-actual-bg);color:var(--metric-actual-strong)}.login-spinner{width:18px;height:18px;border:2px solid hsl(var(--foreground) / .3);border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .6s linear infinite}.login-title{font-size:28px;font-weight:700;color:hsl(var(--foreground));margin-bottom:12px;line-height:1.2}@media(max-width:640px){.login-title{font-size:24px}}.login-description{font-size:16px;color:hsl(var(--muted-foreground));margin-bottom:32px;line-height:1.5}.login-description strong{color:hsl(var(--foreground));font-weight:600}.login-divider{position:relative;text-align:center;margin:32px 0}.login-divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:hsl(var(--border))}.login-divider span{position:relative;display:inline-block;padding:0 16px;background:hsl(var(--card));font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.08em}.login-form{margin-bottom:24px}.login-code-form{margin:0 0 24px;text-align:left}.login-code-input{text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.15rem;font-weight:700;letter-spacing:.32em}.login-code-input::placeholder{color:hsl(var(--muted-foreground));opacity:.45}.login-info-box svg{flex-shrink:0;margin-top:2px}.login-info-box{margin-bottom:24px;text-align:left}.login-info-title{font-size:14px;font-weight:600;color:hsl(var(--foreground));margin-bottom:8px}.login-info-text{font-size:14px;color:hsl(var(--muted-foreground));line-height:1.5;margin:0}.login-next-step-list{display:grid;gap:8px;margin:0}.login-next-step{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:10px;font-size:14px;color:hsl(var(--muted-foreground));line-height:1.4}.login-next-step-index{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:hsl(var(--background));color:hsl(var(--foreground));border:1px solid hsl(var(--border));font-size:12px;font-weight:700}@media(max-width:420px){.login-info-box{gap:.65rem;padding:.85rem}.login-next-step{grid-template-columns:22px minmax(0,1fr);gap:8px}}.login-footer{margin-top:24px;font-size:14px;color:hsl(var(--muted-foreground));line-height:1.5}@media(prefers-reduced-motion:reduce){.login-spinner{animation:none}}.org-profile-tab{padding:1.5rem 0}.form-section{margin-bottom:2.5rem}.section-title{font-size:1.125rem;font-weight:600;margin:0 0 .25rem;color:hsl(var(--foreground))}.section-description{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0 0 1.5rem}.form-grid{display:flex;flex-direction:column;gap:1.5rem}.form-field{display:flex;flex-direction:column;gap:.5rem}.field-hint{font-size:.8125rem;color:hsl(var(--muted-foreground));margin:0}.error-message{font-size:.8125rem;color:hsl(var(--destructive));margin:0}.readonly-value{padding:.625rem .875rem;font-size:.9375rem;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:8px;color:hsl(var(--muted-foreground))}.readonly-value.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9rem;letter-spacing:.01em;word-break:break-all}.fiscal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;align-items:stretch}.fiscal-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:1.25rem}.end-card{background:hsl(var(--card))}.fiscal-card-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.card-title{margin:0;font-size:1.05rem;font-weight:700;color:hsl(var(--foreground))}.eyebrow{margin:0 0 .15rem;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.fiscal-inputs{display:grid;grid-template-columns:1fr 110px;gap:.85rem}.input-group{display:flex;flex-direction:column;gap:.35rem;min-width:0}.day-input{text-align:center;letter-spacing:.02em;font-weight:600;cursor:text}.readonly-value.highlight{background:hsl(var(--card));border-color:hsl(var(--border));border-radius:var(--radius);padding:.9rem 1rem;display:grid;gap:.5rem}.date-line{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:hsl(var(--foreground))}.date-line+.date-line{margin-top:.35rem;padding-top:.35rem;border-top:1px solid hsl(var(--border))}.date-label{font-size:.875rem;color:hsl(var(--muted-foreground));font-weight:500}.date-value{font-size:1rem;color:hsl(var(--foreground))}.subtle{color:hsl(var(--muted-foreground))}@media(max-width:640px){.ui-form-actions{flex-direction:column-reverse}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.invites-tab{padding:1.5rem 0}.empty-state p{color:hsl(var(--muted-foreground));margin:0 0 1.5rem}.invite-form-card{padding:1.5rem;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:8px;margin-bottom:2rem}.form-card-title{font-size:1rem;font-weight:600;margin:0 0 1rem;color:hsl(var(--foreground))}.invite-form-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.invite-form-heading .form-card-title{margin:0}.invite-form-actions{display:flex;align-items:center;gap:.5rem}.invite-form-grid{grid-template-columns:minmax(220px,2fr) minmax(150px,1fr)}@media(max-width:920px){.invite-form-grid{grid-template-columns:1fr}}.invite-help-text{margin:.375rem 0 0;color:hsl(var(--muted-foreground));font-size:.8125rem;line-height:1.4}.invite-budget-access-panel{display:grid;gap:.75rem;margin-top:1rem}.invite-budget-access-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.invite-budget-access-header h4{margin:0;font-size:.9375rem;font-weight:600;color:hsl(var(--foreground))}.invite-budget-access-header span{color:hsl(var(--muted-foreground));font-size:.8125rem}.invite-budget-access-list{display:grid;gap:.5rem}.invite-budget-access-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:.75rem;align-items:center;padding:.625rem 0;border-top:1px solid hsl(var(--border))}.invite-budget-name{display:grid;gap:.125rem;min-width:0}.invite-budget-name span{overflow:hidden;color:hsl(var(--foreground));font-size:.875rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.invite-budget-name small{color:hsl(var(--muted-foreground));font-size:.75rem}@media(max-width:640px){.invite-form-heading{align-items:flex-start;flex-direction:column}.invite-form-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.invite-budget-access-row{grid-template-columns:1fr}}.invite-created-panel{display:grid;gap:1rem;padding:1rem;margin-bottom:1.5rem;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:8px}.invite-delivery-status{margin:0;font-size:.875rem;line-height:1.4}.invite-delivery-status.sent{color:var(--metric-actual-strong)}.invite-delivery-status.manual{color:hsl(var(--foreground))}.invite-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center}.invite-link-input{width:100%;min-width:0;height:2.5rem;padding:0 .75rem;color:hsl(var(--foreground));background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:6px;font:inherit;font-size:.875rem}@media(max-width:640px){.invite-link-row{grid-template-columns:1fr}}.invites-section{margin-bottom:2rem}.section-heading{font-size:.9375rem;font-weight:600;color:hsl(var(--muted-foreground));margin:0 0 1rem;text-transform:uppercase;letter-spacing:.025em}.invites-list{display:flex;flex-direction:column;gap:.75rem}.invite-card{position:relative;padding:1.25rem;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:8px;transition:all .15s}.invite-card:not(.past):hover{border-color:hsl(var(--muted-foreground));box-shadow:var(--shadow-sm)}.invite-card.past{opacity:.7}.invite-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.75rem}.invite-email-row{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}.invite-email{font-size:.9375rem;font-weight:600;color:hsl(var(--foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-badge{padding:.125rem .5rem;font-size:.75rem;font-weight:600;border-radius:6px;text-transform:uppercase;letter-spacing:.025em;flex-shrink:0}.status-badge.status-pending{background:var(--metric-forecast-bg);color:var(--metric-forecast-text)}.status-badge.status-accepted{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.status-badge.status-expired,.status-badge.status-revoked{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive))}.invite-role-badge{padding:.25rem .625rem;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:600;border-radius:6px;text-transform:capitalize;flex-shrink:0}.invite-meta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.meta-item{display:flex;align-items:center;gap:.375rem;font-size:.8125rem;color:hsl(var(--muted-foreground))}.meta-item svg{color:hsl(var(--muted-foreground));flex-shrink:0}.meta-item .expiring-soon{color:hsl(var(--destructive));font-weight:600}.invite-budget-access{align-items:flex-start;min-width:0}.invite-access-chips{display:flex;flex-wrap:wrap;gap:.375rem;min-width:0}.invite-access-chip{max-width:220px;overflow:hidden;padding:.125rem .5rem;color:hsl(var(--foreground));background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:6px;text-overflow:ellipsis;white-space:nowrap}.invite-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.5rem}.invite-card-actions .action-btn{flex:0 0 auto;min-width:7.5rem;white-space:nowrap}.actioning-overlay{position:absolute;inset:0;background:hsl(var(--background) / .7);display:flex;align-items:center;justify-content:center;border-radius:8px;z-index:1}@media(max-width:640px){.invite-header{flex-direction:column;align-items:flex-start}.invite-card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));width:100%}.invite-card-actions .action-btn{min-width:0;width:100%;justify-content:center}}.users-roles-tab{padding:1.5rem 0}.member-count{padding:.375rem .75rem;background:hsl(var(--muted));color:hsl(var(--foreground));font-size:.875rem;font-weight:600;border-radius:8px;white-space:nowrap}.members-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.875rem}.members-search{display:flex;align-items:center;width:min(100%,360px);gap:.5rem;padding:0 .75rem;height:2.5rem;color:hsl(var(--muted-foreground));background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:8px;transition:border-color .15s ease,box-shadow .15s ease}.members-search:focus-within{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .14)}.members-search-icon{flex-shrink:0}.members-search-input{width:100%;min-width:0;color:hsl(var(--foreground));background:transparent;border:0;outline:0;font:inherit;font-size:.875rem}.members-search-input::placeholder{color:hsl(var(--muted-foreground))}.members-search-summary{color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:500;white-space:nowrap}.members-table-wrapper{border-radius:8px}.members-table{min-width:840px}.members-table .ui-table-header{background:hsl(var(--muted))}.members-table .ui-table-head{height:2.75rem;color:hsl(var(--muted-foreground));font-size:.75rem;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}.members-table .ui-table-cell{vertical-align:middle}.member-table-row{transition:background-color .15s ease}.member-table-row:hover{background:hsl(var(--muted) / .35)}.member-table-row.disabled{opacity:.68}.member-table-row:last-child .ui-table-cell{border-bottom:0}.member-info{display:flex;align-items:center;gap:1rem;flex:1;min-width:0}.member-details{display:flex;flex-direction:column;gap:.25rem;min-width:0}.member-name-row{display:flex;align-items:center;gap:.5rem}.member-name{font-size:.9375rem;font-weight:600;color:hsl(var(--foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.you-badge{padding:.125rem .5rem;background:hsl(var(--accent));color:hsl(var(--foreground));font-size:.75rem;font-weight:600;border-radius:6px;text-transform:uppercase;letter-spacing:.025em}.member-email{font-size:.875rem;color:hsl(var(--muted-foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-actions{display:flex;align-items:center;gap:.5rem;justify-content:flex-end}.member-role-cell,.member-joined-cell{white-space:nowrap}.member-role-select{width:8.5rem}.member-status-pill{display:inline-flex;align-items:center;height:1.5rem;padding:0 .625rem;border-radius:999px;font-size:.75rem;font-weight:600}.member-status-pill.active{color:var(--metric-actual-text);background:var(--metric-actual-bg);border:1px solid var(--metric-actual-border)}.member-status-pill.disabled{color:hsl(var(--destructive));background:hsl(var(--destructive) / .12);border:1px solid hsl(var(--destructive) / .2)}.member-action-loader{width:1rem;height:1rem}.members-actions-head,.members-actions-cell{text-align:right}.members-empty-cell{height:8rem;color:hsl(var(--muted-foreground));text-align:center}.users-invites-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid hsl(var(--border))}@media(max-width:768px){.tab-header,.members-toolbar{flex-direction:column;align-items:flex-start}.member-count,.members-search{width:100%}}.budget-roles-tab{display:flex;flex-direction:column;gap:1.25rem}.tab-header{display:flex;align-items:center;justify-content:space-between}.tab-title{margin:0 0 4px;font-size:1.25rem;font-weight:700;color:hsl(var(--foreground));letter-spacing:-.01em}.tab-description{margin:0;color:hsl(var(--muted-foreground))}.role-form,.role-card{border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));box-shadow:var(--shadow-xl)}.role-form{padding:1rem;display:flex;flex-direction:column;gap:1rem}.presets{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.9rem;color:hsl(var(--foreground))}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem}.perm-card{border:1px solid hsl(var(--border));border-radius:10px;padding:.75rem;background:hsl(var(--muted))}.perm-card h4{margin:0 0 .5rem;font-size:.95rem;color:hsl(var(--foreground))}.perm-list{display:flex;flex-direction:column;gap:.5rem}.perm-item{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;color:hsl(var(--foreground))}.perm-item .ui-checkbox{margin-top:4px}.perm-label{font-weight:600}.perm-desc{font-size:.85rem;color:hsl(var(--muted-foreground))}.roles-list{display:flex;flex-direction:column;gap:.75rem}.role-card{padding:1rem}.role-header{display:flex;justify-content:space-between;gap:1rem;align-items:center}.role-title{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1rem;color:hsl(var(--foreground))}.role-description{margin:.15rem 0 0;color:hsl(var(--muted-foreground));font-size:.92rem}.role-actions{display:flex;gap:.5rem}.role-perms{margin-top:.75rem;display:flex;flex-wrap:wrap;gap:.4rem}.loading-state,.empty-state{border:1px dashed hsl(var(--border));border-radius:12px;padding:1.5rem;text-align:center;color:hsl(var(--muted-foreground));background:hsl(var(--card))}.loader{width:32px;height:32px;margin:0 auto .75rem;border:3px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:768px){.role-header{flex-direction:column;align-items:flex-start}.tab-header{flex-direction:column;gap:.5rem;align-items:flex-start}}.audit-log-tab{padding:1.5rem 0}.tab-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;gap:1rem}.tab-title{font-size:1.125rem;font-weight:600;margin:0 0 .25rem;color:hsl(var(--foreground))}.tab-description{font-size:.875rem;color:hsl(var(--muted-foreground));margin:0}.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;padding:1rem;margin-bottom:1.5rem;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:12px}.filter-group{display:flex;flex-direction:column;gap:.4rem}.filter-group label{font-size:.875rem;color:hsl(var(--muted-foreground))}.filter-group input,.filter-group select{border:1px solid hsl(var(--border));border-radius:8px;padding:.55rem .75rem;font-size:.95rem;background:hsl(var(--background));color:hsl(var(--foreground))}.filter-actions{display:flex;align-items:flex-end}.clear-btn{border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));padding:.55rem .85rem;border-radius:8px;font-weight:600;cursor:pointer}.clear-btn:disabled{opacity:.6;cursor:not-allowed}.log-count{padding:.375rem .75rem;background:hsl(var(--muted));color:hsl(var(--foreground));font-size:.875rem;font-weight:600;border-radius:12px;white-space:nowrap}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;text-align:center}.loader{width:24px;height:24px;border:2px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin .6s linear infinite}.loading-state p{margin-top:1rem;color:hsl(var(--muted-foreground))}.empty-state svg{color:hsl(var(--muted-foreground));margin-bottom:1rem}.empty-state h3{font-size:1.125rem;font-weight:600;margin:0 0 .5rem;color:hsl(var(--foreground))}.empty-state p{color:hsl(var(--muted-foreground));margin:0}.logs-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.log-item{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:10px;overflow:hidden}.log-main{padding:1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer;transition:background .15s}.log-main:hover{background:hsl(var(--muted) / .6)}.log-content{flex:1;min-width:0}.log-header{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem}.log-meta{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.log-user{font-size:.8125rem;color:hsl(var(--muted-foreground));font-weight:500}.expand-btn{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:hsl(var(--muted-foreground));cursor:pointer;transition:all .15s;border-radius:8px}.expand-btn:hover{background:hsl(var(--muted));color:hsl(var(--foreground))}.log-action{padding:.25rem .625rem;font-size:.75rem;font-weight:600;border-radius:6px;text-transform:uppercase;letter-spacing:.025em}.log-action.created{background:var(--metric-actual-bg);color:var(--metric-actual-text)}.log-action.updated{background:hsl(var(--accent));color:hsl(var(--foreground))}.log-action.deleted{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive))}.log-type{font-size:.875rem;color:hsl(var(--muted-foreground));font-weight:500}.log-source{font-size:.75rem;color:hsl(var(--muted-foreground));background:hsl(var(--muted));padding:.2rem .5rem;border-radius:6px}.log-timestamp{font-size:.8125rem;color:hsl(var(--muted-foreground));white-space:nowrap}.log-details{padding:1rem;background:hsl(var(--muted));border-top:1px solid hsl(var(--border))}.detail-row{display:flex;gap:.75rem;margin-bottom:.75rem}.detail-row:last-child{margin-bottom:0}.detail-label{font-size:.8125rem;font-weight:600;color:hsl(var(--muted-foreground));min-width:100px;flex-shrink:0}.detail-value{font-size:.8125rem;color:hsl(var(--foreground));word-break:break-all}.detail-user-agent{font-size:.75rem;font-family:ui-monospace,monospace}.detail-metadata{margin:.5rem 0 0;padding:.75rem;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:6px;font-size:.75rem;overflow-x:auto;max-width:100%;color:hsl(var(--foreground))}.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;padding-top:1rem;border-top:1px solid hsl(var(--border))}.page-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:8px;color:hsl(var(--foreground));cursor:pointer;transition:all .15s}.page-btn:hover:not(:disabled){background:hsl(var(--muted));border-color:hsl(var(--muted-foreground))}.page-btn:disabled{opacity:.4;cursor:not-allowed}.page-info{font-size:.875rem;color:hsl(var(--muted-foreground))}@media(max-width:640px){.log-item{flex-direction:column;align-items:flex-start}.log-timestamp{width:100%;text-align:left}}.salesforce-tab{max-width:800px}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;gap:1rem}.loading-spinner{width:32px;height:32px;border:3px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:spin .8s linear infinite}.connection-status{display:flex;flex-direction:column;gap:1rem;padding-bottom:1.5rem;border-bottom:1px solid hsl(var(--border))}.status-header{display:flex;align-items:center;justify-content:space-between}.status-indicator{display:flex;align-items:center;gap:.75rem}.status-icon{font-size:1.5rem}.status-icon.success{color:var(--metric-actual-text)}.status-icon.error{color:hsl(var(--destructive))}.status-title{margin:0;font-size:1rem;font-weight:600;color:hsl(var(--foreground))}.status-subtitle{margin:.25rem 0 0;font-size:.875rem;color:hsl(var(--muted-foreground))}.sync-info{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:hsl(var(--muted-foreground))}.info-icon{color:hsl(var(--primary))}.warning-banner{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:hsl(var(--destructive) / .1);border:1px solid hsl(var(--destructive) / .2);border-radius:10px;color:hsl(var(--destructive));font-size:.875rem}.action-buttons{display:flex;gap:.75rem;padding-top:1.5rem}.spinning{animation:spin 1s linear infinite}.sync-result{margin-top:1.5rem;padding:1.5rem;background:hsl(var(--muted));border-radius:10px;border:1px solid hsl(var(--border))}.sync-result h4{margin:0 0 1rem;font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:hsl(var(--muted-foreground))}.sync-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.stat{display:flex;flex-direction:column;gap:.5rem}.stat-label{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.02em;color:hsl(var(--muted-foreground))}.error-list{margin-top:1rem;padding-top:1rem;border-top:1px solid hsl(var(--border))}.error-item{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem 0;font-size:.875rem;color:hsl(var(--destructive))}.error-item svg{margin-top:.125rem;flex-shrink:0}.sync-health-panel{margin-top:1.5rem;padding:1.25rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card))}.sync-health-status-error{border-color:hsl(var(--destructive) / .35)}.sync-health-status-warning{border-color:hsl(var(--primary) / .35)}.sync-health-header,.sync-health-actions,.sync-health-timestamps,.sync-health-row,.sync-health-loading{display:flex;align-items:center}.sync-health-header{justify-content:space-between;gap:1rem}.sync-health-header h4{margin:0;font-size:.95rem;font-weight:600;color:hsl(var(--foreground))}.sync-health-header p{margin:.25rem 0 0;font-size:.8rem;color:hsl(var(--muted-foreground))}.sync-health-actions{gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.sync-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.75rem;margin-top:1rem}.sync-health-stat{padding:.75rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--muted) / .45)}.sync-health-stat strong{display:block;margin-top:.35rem;font-size:1.25rem;color:hsl(var(--foreground))}.sync-health-timestamps{gap:1rem;flex-wrap:wrap;margin-top:1rem;font-size:.85rem}.sync-health-timestamps>div{display:flex;flex-direction:column;gap:.25rem}.sync-health-warning{display:flex;align-items:flex-start;gap:.75rem;margin-top:1rem;padding:.75rem;border:1px solid hsl(var(--destructive) / .25);border-radius:8px;color:hsl(var(--destructive));background:hsl(var(--destructive) / .08)}.sync-health-warning p{margin:.25rem 0 0;color:hsl(var(--destructive));font-size:.82rem;line-height:1.4}.sync-health-list{margin-top:1rem;border-top:1px solid hsl(var(--border));padding-top:1rem}.sync-health-list h5{margin:0 0 .75rem;font-size:.78rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.sync-health-row{align-items:flex-start;gap:.75rem;padding:.65rem 0;border-top:1px solid hsl(var(--border))}.sync-health-row:first-of-type{border-top:0;padding-top:0}.sync-health-row>div{display:flex;flex-direction:column;gap:.25rem;min-width:0}.sync-health-row span{font-size:.88rem;color:hsl(var(--foreground))}.sync-health-row small{color:hsl(var(--muted-foreground));font-size:.78rem}.sync-health-row .sync-health-error{color:hsl(var(--destructive))}.sync-health-loading{gap:.5rem;margin-top:1rem;color:hsl(var(--muted-foreground));font-size:.875rem}.connection-form{display:flex;flex-direction:column;gap:1.5rem}.info-banner{display:flex;gap:.75rem;padding:1rem;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:10px;font-size:.875rem;color:hsl(var(--muted-foreground))}.info-banner-spaced{margin-top:1rem}.info-banner svg{margin-top:.125rem;flex-shrink:0;color:hsl(var(--muted-foreground))}.info-banner p{margin:0;line-height:1.5}.form-actions-compact{border-top:none;padding-top:0}.salesforce-setup-list{margin:.5rem 0 0;padding-left:1.25rem}.salesforce-checkbox-label{display:flex;align-items:center;gap:.5rem}.salesforce-checkbox-input{width:auto;margin:0}.field-hint{font-size:.75rem;color:hsl(var(--muted-foreground))}.field-mapping-section{margin-top:2rem;padding-top:2rem;border-top:1px solid hsl(var(--border))}.field-mapping-section h4{margin:0 0 .5rem;font-size:1rem;font-weight:600;color:hsl(var(--foreground))}.field-mapping-description{margin:0 0 1.5rem;font-size:.875rem;color:hsl(var(--muted-foreground));line-height:1.5}.campaign-field-table{margin-top:.75rem;border:1px solid hsl(var(--border));border-radius:10px;overflow:hidden}.campaign-field-header,.campaign-field-row{display:grid;grid-template-columns:2fr 1fr 1fr;align-items:center;gap:.5rem;padding:.65rem .75rem}.campaign-field-header{background:hsl(var(--muted));font-size:.85rem;font-weight:600;color:hsl(var(--muted-foreground))}.campaign-field-row+.campaign-field-row{border-top:1px solid hsl(var(--border))}.campaign-field-row.row-disabled{opacity:.6}.field-meta{display:flex;flex-direction:column;gap:2px}.field-label{font-weight:600;color:hsl(var(--foreground))}.field-api{font-size:.8rem;color:hsl(var(--muted-foreground));font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.field-note{font-size:.78rem;color:hsl(var(--muted-foreground))}.field-mapping-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:1.5rem}.mcp-api-tab{display:flex;flex-direction:column;gap:1rem}.mcp-endpoints,.mcp-credential-panel,.mcp-client-form,.mcp-client-card,.mcp-capability-panel,.mcp-scope-panel,.mcp-month-panel{border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--card))}.mcp-endpoints{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem;padding:.875rem}.mcp-endpoints>div{min-width:0}.mcp-endpoint-label{display:block;margin-bottom:.25rem;color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:700;text-transform:uppercase}.mcp-endpoints code,.mcp-client-card code,.mcp-credential-value code{display:block;overflow-wrap:anywhere;color:hsl(var(--foreground));font-size:.8125rem}.mcp-credential-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem;padding:1rem;border-color:hsl(var(--primary) / .45)}.mcp-credential-panel h3,.mcp-client-form h3,.mcp-capability-panel h4,.mcp-scope-panel h4,.mcp-month-panel h4,.mcp-client-card h3{margin:0;color:hsl(var(--foreground))}.mcp-credential-panel p{margin:.25rem 0 0;color:hsl(var(--muted-foreground));font-size:.875rem}.mcp-credential-value{display:flex;align-items:center;gap:.5rem;min-width:0}.mcp-credential-value code{flex:1;min-width:0;padding:.625rem .75rem;border-radius:6px;background:hsl(var(--muted))}.mcp-client-form{display:flex;flex-direction:column;gap:1rem;padding:1rem}.mcp-form-header,.mcp-scope-header,.mcp-client-title-row,.mcp-client-main{display:flex;align-items:center;justify-content:space-between;gap:1rem}.mcp-form-grid,.mcp-capability-grid,.mcp-scope-grid{display:grid;gap:.875rem}.mcp-form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.mcp-capability-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.mcp-scope-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.mcp-field{display:flex;flex-direction:column;gap:.375rem;min-width:0}.mcp-field>span{color:hsl(var(--foreground));font-size:.8125rem;font-weight:700}.mcp-field input{width:100%;height:2.5rem;padding:0 .75rem;color:hsl(var(--foreground));background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:8px;font:inherit}.mcp-field input:focus{outline:2px solid hsl(var(--ring) / .35);outline-offset:1px}.mcp-capability-panel,.mcp-scope-panel,.mcp-month-panel{padding:.875rem}.mcp-capability-panel h4,.mcp-scope-panel h4,.mcp-month-panel h4{font-size:.95rem}.mcp-check-list{display:flex;flex-direction:column;gap:.625rem;margin-top:.75rem}.mcp-scroll-list{max-height:260px;overflow:auto;padding-right:.25rem}.mcp-check-row{display:flex;align-items:flex-start;gap:.625rem}.mcp-check-row .ui-checkbox{margin-top:.125rem;flex:0 0 auto}.mcp-check-row span{display:flex;min-width:0;flex-direction:column;gap:.15rem}.mcp-check-row strong{color:hsl(var(--foreground));font-size:.875rem;line-height:1.25}.mcp-check-row small{color:hsl(var(--muted-foreground));font-size:.75rem;overflow-wrap:anywhere}.mcp-segment{display:flex;gap:.375rem}.mcp-month-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:1rem}.mcp-inline-checks{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.75rem}.mcp-inline-check{display:inline-flex;align-items:center;gap:.5rem;color:hsl(var(--foreground));font-size:.875rem;font-weight:600}.mcp-month-editor{display:flex;flex-direction:column;gap:.75rem}.mcp-month-input{display:flex;gap:.5rem}.mcp-month-input input{min-width:0}.mcp-month-chips{display:flex;flex-wrap:wrap;gap:.5rem}.mcp-month-chips button{display:inline-flex;align-items:center;gap:.4rem;min-height:1.875rem;padding:.25rem .55rem;color:hsl(var(--foreground));background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:999px;cursor:pointer;font:inherit;font-size:.8125rem;font-weight:700}.mcp-month-chips button span{color:hsl(var(--muted-foreground))}.mcp-form-actions{display:flex;justify-content:flex-end}.mcp-client-list{display:flex;flex-direction:column;gap:.75rem}.mcp-client-card{padding:1rem}.mcp-client-main{align-items:flex-start}.mcp-client-title-row{justify-content:flex-start;margin-bottom:.25rem}.mcp-client-title-row h3{font-size:1rem}.mcp-client-meta{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:.625rem;color:hsl(var(--muted-foreground));font-size:.8125rem}.mcp-client-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}@media(max-width:760px){.mcp-form-header,.mcp-scope-header,.mcp-client-main,.mcp-credential-value{align-items:flex-start;flex-direction:column}.mcp-month-panel{grid-template-columns:1fr}.mcp-client-actions,.mcp-form-actions{justify-content:flex-start}.mcp-credential-value,.mcp-credential-value .ui-button{width:100%}}.envelope-fields{display:flex;flex-direction:column;gap:24px}.envelope-fields-card .muted{margin:0}.envelope-fields-form{gap:16px}.envelope-fields-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.envelope-fields-required{display:flex;flex-direction:column;justify-content:flex-end}.envelope-fields-required-toggle{display:flex;align-items:center;gap:10px;padding-top:6px}.envelope-fields-options{grid-column:1 / -1}.envelope-fields-option-row{display:flex;gap:12px;align-items:center}.envelope-fields-options-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.envelope-fields-option-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:hsl(var(--muted));border:1px solid hsl(var(--border))}.envelope-fields-option-remove{background:transparent;border:none;color:hsl(var(--muted-foreground));cursor:pointer;font-size:16px;line-height:1}.envelope-fields-option-remove:hover{color:hsl(var(--foreground))}.envelope-fields-list{display:flex;flex-direction:column;gap:12px}.envelope-fields-row{padding:14px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));display:flex;justify-content:space-between;gap:16px;background:hsl(var(--card))}.envelope-fields-row-title{display:flex;align-items:center;gap:10px;font-weight:600}.envelope-fields-row-meta{display:flex;flex-wrap:wrap;gap:10px;color:hsl(var(--muted-foreground));font-size:.85rem;margin-top:4px}.envelope-fields-row-actions{display:flex;gap:8px;align-items:flex-start}.envelope-fields-key{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.85rem}@media(max-width:700px){.envelope-fields-row{flex-direction:column;align-items:stretch}.envelope-fields-row-actions{align-items:center}}.fy-rollover{display:flex;flex-direction:column;gap:16px}.fy-rollover-header,.fy-rollover-table-card{box-shadow:var(--shadow-sm)}.fy-rollover-controls{display:grid;grid-template-columns:minmax(180px,240px) minmax(260px,1fr) auto;align-items:end;gap:12px}.fy-rollover-search,.fy-rollover-search .ui-search-input{width:100%}.fy-rollover-count{align-self:center;color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:600;white-space:nowrap}.fy-rollover-empty{padding:16px;border:1px dashed hsl(var(--border));border-radius:8px;color:hsl(var(--muted-foreground));background:hsl(var(--muted))}.fy-rollover-table-wrapper{border-radius:8px}.fy-rollover-table{min-width:980px}.fy-rollover-table .ui-table-header{background:hsl(var(--muted))}.fy-rollover-table .ui-table-head{height:2.75rem;color:hsl(var(--muted-foreground));font-size:.75rem;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}.fy-rollover-table .ui-table-cell{vertical-align:middle}.fy-rollover-table-row{transition:background-color .15s ease}.fy-rollover-table-row:hover{background:hsl(var(--muted) / .35)}.fy-rollover-table-row:last-child .ui-table-cell{border-bottom:0}.fy-rollover-envelope,.fy-rollover-budget-cell,.fy-rollover-mapping{display:flex;flex-direction:column;gap:.25rem;min-width:0}.fy-rollover-budget-cell,.fy-rollover-mapping{align-items:flex-start}.fy-rollover-envelope-name,.fy-rollover-budget-cell>span:first-child,.fy-rollover-mapping>span:first-child{color:hsl(var(--foreground));font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.fy-rollover-envelope-meta,.fy-rollover-muted{color:hsl(var(--muted-foreground));font-size:.8125rem}.fy-rollover-key-select{min-width:260px}.fy-rollover-warning{display:inline-flex;align-items:center;gap:6px;color:hsl(var(--destructive));font-size:.8125rem;font-weight:600;white-space:nowrap}.fy-rollover-save{display:flex;justify-content:flex-end}.fy-rollover-actions-head{text-align:right}.fy-rollover-empty-cell{padding:2rem 1rem;text-align:center;color:hsl(var(--muted-foreground))}@media(max-width:900px){.fy-rollover-controls{grid-template-columns:1fr;align-items:stretch}.fy-rollover-count{align-self:flex-start}}.settings-page{max-width:1400px;margin:0 auto;padding-bottom:2rem}.settings-page .page-header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid hsl(var(--border))}.settings-page .page-title{font-size:1.875rem;font-weight:700;margin:0 0 .5rem;letter-spacing:-.025em;color:hsl(var(--foreground))}.settings-page .page-subtitle{font-size:.9375rem;color:hsl(var(--muted-foreground));margin:0}.settings-page .error-state{text-align:center;padding:3rem 1rem}.settings-page .error-state h2{font-size:1.5rem;font-weight:700;margin:0 0 .5rem;color:hsl(var(--destructive))}.settings-page .error-state p{color:hsl(var(--muted-foreground));margin:0}.settings-tabs{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:flex-start}.settings-tabs-list{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:6px;position:sticky;top:12px}.settings-tabs-trigger{justify-content:flex-start;width:100%}.settings-tabs-content{min-width:0}.settings-tabs-pane{padding-top:0}@media(max-width:768px){.settings-page{max-width:100%;padding:0 1rem 2rem}.settings-page .page-title{font-size:1.5rem}.settings-tabs{grid-template-columns:1fr}.settings-tabs-list{position:static;flex-direction:row;overflow-x:auto;padding-bottom:8px}.settings-tabs-trigger{width:auto}}.auth-callback-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:hsl(var(--background))}.auth-callback-container{max-width:480px;width:100%;background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 6px);padding:48px 40px;text-align:center;box-shadow:var(--shadow-float)}@media(max-width:640px){.auth-callback-container{padding:32px 24px}}.auth-callback-icon{width:80px;height:80px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground));background:hsl(var(--muted))}.auth-callback-icon-success{color:var(--metric-actual-strong);background:var(--metric-actual-bg)}.auth-callback-icon-error{color:hsl(var(--destructive));background:hsl(var(--destructive) / .12)}.auth-callback-spinner{width:40px;height:40px;border:4px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .8s linear infinite}.auth-callback-title{font-size:28px;font-weight:700;color:hsl(var(--foreground));margin-bottom:12px;line-height:1.2}@media(max-width:640px){.auth-callback-title{font-size:24px}}.auth-callback-description{font-size:16px;color:hsl(var(--muted-foreground));margin-bottom:0;line-height:1.5}@media(prefers-reduced-motion:reduce){.auth-callback-spinner{animation:none}}.invite-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:hsl(var(--background))}.invite-container{max-width:520px;width:100%;background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 6px);box-shadow:var(--shadow-float);padding:48px 40px;text-align:center}@media(max-width:640px){.invite-container{padding:32px 24px}}.invite-logo{width:72px;height:72px;margin:0 auto 24px;background:hsl(var(--secondary));border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:700;color:hsl(var(--secondary-foreground))}.invite-icon{width:72px;height:72px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.invite-icon-success{background:var(--metric-actual-bg);color:var(--metric-actual-strong)}.invite-icon-error{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive))}.invite-spinner{width:40px;height:40px;border:4px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .8s linear infinite}.invite-spinner-small{width:18px;height:18px;border:2px solid hsl(var(--foreground) / .3);border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .6s linear infinite}.invite-title{font-size:28px;font-weight:700;color:hsl(var(--foreground));margin-bottom:12px;line-height:1.2}@media(max-width:640px){.invite-title{font-size:24px}}.invite-description{font-size:16px;color:hsl(var(--muted-foreground));margin-bottom:32px;line-height:1.5}.invite-description strong{color:hsl(var(--foreground));font-weight:600}.invite-details{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:32px}@media(max-width:640px){.invite-details{flex-direction:column}}.invite-detail-item{flex:1;min-width:145px;display:flex;align-items:flex-start;gap:12px;padding:16px;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:12px;text-align:left;color:hsl(var(--muted-foreground))}.invite-detail-item-wide{flex-basis:100%}.invite-detail-item svg{flex-shrink:0;color:hsl(var(--foreground));margin-top:2px}.invite-detail-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));margin-bottom:4px}.invite-detail-value{font-size:15px;font-weight:600;color:hsl(var(--foreground));overflow-wrap:anywhere}.invite-access-summary{display:flex;flex-wrap:wrap;gap:6px}.invite-access-summary span{max-width:100%;overflow:hidden;padding:3px 8px;color:hsl(var(--foreground));background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:6px;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.invite-divider{position:relative;text-align:center;margin:32px 0}.invite-divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:hsl(var(--border))}.invite-divider span{position:relative;display:inline-block;padding:0 16px;background:hsl(var(--card));font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.08em}.invite-form{margin-bottom:24px}.invite-code-form{margin:0 0 24px;text-align:left}.invite-code-input{text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.15rem;font-weight:700;letter-spacing:.32em}.invite-code-input::placeholder{color:hsl(var(--muted-foreground));opacity:.45}.invite-email-lock{margin:.375rem 0 0;font-size:.8125rem;line-height:1.4;color:hsl(var(--muted-foreground))}.invite-error-box{margin-bottom:20px}.invite-error-box svg{flex-shrink:0}.invite-error-box p{flex:1;margin:0;font-size:14px;line-height:1.5}.invite-info-text{font-size:14px;color:hsl(var(--muted-foreground));line-height:1.5;margin:0}.invite-info-box{margin-bottom:24px}.invite-profile-card{margin-bottom:24px;padding:16px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted) / .45);text-align:left}.invite-profile-heading{margin-bottom:14px}.invite-profile-heading h2{margin:0;font-size:1rem;font-weight:700;color:hsl(var(--foreground))}.invite-profile-heading p{margin:4px 0 0;font-size:.875rem;line-height:1.45;color:hsl(var(--muted-foreground))}.invite-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.invite-profile-span-2{grid-column:1 / -1}.invite-profile-error{margin-top:12px}.invite-actions{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}.invite-footer{margin-top:24px;font-size:14px;color:hsl(var(--muted-foreground));line-height:1.5}@media(prefers-reduced-motion:reduce){.invite-spinner,.invite-spinner-small{animation:none}}@media(max-width:640px){.invite-profile-grid{grid-template-columns:1fr}.invite-profile-span-2{grid-column:auto}}.verify-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:hsl(var(--background))}.verify-container{max-width:480px;width:100%;background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 6px);box-shadow:var(--shadow-float);padding:48px 40px;text-align:center}@media(max-width:640px){.verify-container{padding:32px 24px}}.verify-icon{width:80px;height:80px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.verify-icon-success{background:var(--metric-actual-bg);color:var(--metric-actual-strong)}.verify-icon-error{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive))}.verify-spinner{width:40px;height:40px;border:4px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:50%;animation:spin .8s linear infinite}.verify-title{font-size:28px;font-weight:700;color:hsl(var(--foreground));margin-bottom:12px;line-height:1.2}@media(max-width:640px){.verify-title{font-size:24px}}.verify-description{font-size:16px;color:hsl(var(--muted-foreground));margin-bottom:32px;line-height:1.5}.verify-error-box{margin-bottom:24px;text-align:left}.verify-error-title{font-size:14px;font-weight:600;color:hsl(var(--destructive));margin-bottom:12px}.verify-error-list{margin:0;padding-left:20px;font-size:14px;color:hsl(var(--destructive));line-height:1.6}.verify-error-list li{margin-bottom:6px}.verify-error-list li:last-child{margin-bottom:0}.verify-footer{margin-top:24px;font-size:14px;color:hsl(var(--muted-foreground));line-height:1.5}@media(prefers-reduced-motion:reduce){.verify-spinner{animation:none}}.reset-password-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:hsl(var(--background))}.reset-password-container{width:100%;max-width:440px;padding:44px 36px;border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 6px);background:hsl(var(--card));color:hsl(var(--card-foreground));box-shadow:var(--shadow-float);text-align:center}.reset-password-logo{width:72px;height:72px;margin:0 auto 24px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:hsl(var(--secondary))}.reset-password-title{margin:0 0 10px;font-size:28px;line-height:1.2;color:hsl(var(--foreground))}.reset-password-description{margin:0 0 28px;font-size:15px;line-height:1.5;color:hsl(var(--muted-foreground))}.reset-password-form{text-align:left}.reset-password-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:96px;color:hsl(var(--muted-foreground));font-size:.95rem}.reset-password-spinner{width:18px;height:18px;border:2px solid hsl(var(--border));border-top-color:hsl(var(--foreground));border-radius:999px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.reset-password-success{margin-bottom:16px;font-size:.875rem;line-height:1.45}.reset-password-error{display:flex;flex-direction:column;gap:18px;text-align:left}.reset-password-error p{margin:0;padding:14px;border:1px solid hsl(var(--destructive) / .3);border-radius:var(--radius);background:hsl(var(--destructive) / .1);color:hsl(var(--foreground));font-size:.9rem;line-height:1.45}@media(max-width:560px){.reset-password-container{padding:34px 22px}}@media(prefers-reduced-motion:reduce){.reset-password-spinner{animation:none}}.oauth-callback{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:hsl(var(--background))}.oauth-card{width:min(520px,100%);text-align:center}.oauth-content{display:grid;gap:12px}.oauth-content p{margin:0;color:hsl(var(--muted-foreground))}.oauth-error{display:grid;gap:12px;justify-items:center}.marketing-screen-shell{overflow:hidden}body:has(.marketing-screen-shell){overflow:hidden}.marketing-screen-shell{display:flex;min-height:100vh;background:hsl(var(--background));color:hsl(var(--foreground))}.marketing-screen-sidebar{position:fixed;inset:0 auto 0 0;z-index:10;width:76px;background:hsl(var(--card));border-right:1px solid hsl(var(--border));display:flex;flex-direction:column;align-items:center}.marketing-screen-logo{width:100%;height:64px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid hsl(var(--border))}.marketing-screen-sidebar nav{display:flex;flex:1;flex-direction:column;gap:.35rem;width:100%;padding:1rem .75rem}.marketing-screen-sidebar nav span{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:var(--radius);color:hsl(var(--muted-foreground))}.marketing-screen-sidebar nav span.active{background:hsl(var(--secondary));color:hsl(var(--foreground))}.marketing-screen-sidebar nav em{display:none}.marketing-screen-main{width:calc(100% - 76px);margin-left:76px}.marketing-screen-main main{position:relative;min-height:calc(100vh - 64px);padding:1.5rem}.marketing-screen-topbar{position:sticky;top:0;z-index:5;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;background:hsl(var(--card));border-bottom:1px solid hsl(var(--border))}.marketing-screen-topbar h1{margin:0;font-size:1.125rem;font-weight:650}.marketing-screen-topbar-actions{display:flex;align-items:center;gap:.75rem}.sync-status,.story-pill{display:inline-flex;align-items:center;gap:.45rem;min-height:2rem;padding:0 .75rem;border:1px solid hsl(var(--border));border-radius:var(--radius-full);background:hsl(var(--card));color:hsl(var(--muted-foreground));font-size:.8rem;font-weight:650}.sync-status svg{color:var(--sfdc-blue)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:var(--radius-full);background:hsl(var(--foreground));color:hsl(var(--background));font-size:.82rem;font-weight:800}.story-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.25rem}.story-heading h2{margin:.2rem 0 .35rem;color:hsl(var(--foreground));font-size:2.15rem;line-height:1.05;letter-spacing:0}.story-heading span,.story-card-header p,.story-stat span,.story-stat small,.source-path span,.actuals-row span,.metadata-list em,.audit-list em,.field-map-table span,.sync-flow-grid span,.roi-ratio span{color:hsl(var(--muted-foreground))}.story-heading button{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;padding:0 1rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--foreground));color:hsl(var(--background));font:inherit;font-weight:650}.eyebrow{margin:0;color:hsl(var(--muted-foreground));font-size:.74rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.hero-dashboard-grid,.story-grid,.campaign-sync-layout{display:grid;gap:1rem}.hero-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.story-grid{grid-template-columns:minmax(0,1fr) 21rem;margin-bottom:1rem}.campaign-sync-layout{grid-template-columns:minmax(0,1fr) 23rem}.story-main-card,.story-side-card,.metadata-panel,.roi-panel{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);box-shadow:var(--shadow-sm)}.story-main-card{overflow:hidden}.story-side-card,.metadata-panel,.roi-panel{padding:1.1rem}.story-card-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid hsl(var(--border))}.story-card-header h3,.story-side-card h3,.metadata-panel h3,.roi-panel h3{margin:0;font-size:1rem}.story-card-header p{margin:.25rem 0 0;font-size:.86rem}.period-grid,.actuals-table,.field-map-table,.metadata-list,.audit-list{display:grid}.period-grid-head,.period-row,.actuals-row{display:grid;align-items:center;gap:.9rem;min-height:4rem;padding:0 1.1rem;border-bottom:1px solid hsl(var(--border))}.period-grid-head{min-height:2.8rem;grid-template-columns:.5fr .8fr .8fr 1.2fr;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:.76rem;font-weight:800;text-transform:uppercase}.period-row{grid-template-columns:.5fr .8fr .8fr 1.2fr}.period-row.active{background:hsl(var(--accent) / .55)}.period-row strong,.period-row span,.actuals-row strong,.actuals-row em,.field-map-table strong,.sync-flow-grid strong{color:hsl(var(--foreground));font-weight:700}.editable-cell{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.4rem;padding:0 .75rem;border:1px solid var(--metric-commit-border);border-radius:var(--radius-sm);background:var(--metric-commit-bg);color:var(--metric-commit-text)!important}.editable-cell.is-editing{outline:3px solid rgba(50,132,244,.18);border-color:hsl(var(--primary));background:hsl(var(--card))}.editable-cell em{display:inline-flex;align-items:center;gap:.3rem;color:hsl(var(--primary));font-style:normal;font-size:.72rem;font-weight:800}.story-stat-stack{display:grid;gap:.65rem;margin-top:1rem}.story-stat{min-height:6.8rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card))}.story-stat span,.story-stat strong{display:block}.story-stat strong{margin-top:.4rem;font-size:1.85rem;line-height:1}.story-stat-blue{border-top:4px solid var(--metric-plan-primary)}.story-stat-green{border-top:4px solid var(--metric-actual-primary)}.story-stat-purple{border-top:4px solid var(--metric-uncommitted-primary)}.story-stat-amber{border-top:4px solid var(--metric-forecast-primary)}.source-path{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:.45rem;margin-top:1rem;padding:.85rem;border-radius:var(--radius);background:hsl(var(--muted));font-size:.78rem;font-weight:750;text-align:center}.source-path svg{color:hsl(var(--primary))}.actuals-card{margin-top:0}.actuals-row{grid-template-columns:.85fr 1.45fr .6fr 1fr}.actuals-row em{font-style:normal}.command-backdrop{position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;padding-top:7rem;background:hsl(var(--background) / .42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.command-window{width:min(43rem,calc(100vw - 4rem));height:fit-content;padding:.75rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));box-shadow:var(--shadow-xl)}.command-input,.command-row{display:flex;align-items:center;gap:.85rem}.command-input{min-height:3.1rem;padding:0 .9rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted));color:hsl(var(--foreground));font-weight:650}.command-input kbd{margin-left:auto;color:hsl(var(--muted-foreground));font:inherit;font-size:.78rem}.command-row{margin-top:.55rem;padding:.85rem .9rem;border:1px solid hsl(var(--border));border-radius:var(--radius)}.command-row.selected{border-color:var(--metric-plan-border);background:var(--metric-plan-light)}.command-row svg{color:hsl(var(--primary))}.command-row strong,.command-row span{display:block}.command-row span{color:hsl(var(--muted-foreground));font-size:.84rem}.note-popover{position:absolute;top:23.7rem;left:33.4rem;z-index:30;width:23rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));box-shadow:var(--shadow-xl)}.note-popover-header{display:flex;align-items:center;gap:.55rem}.note-popover-header svg{color:hsl(var(--primary))}.note-popover p{margin:.75rem 0;color:hsl(var(--muted-foreground));font-size:.9rem}.note-popover button{min-height:2.25rem;padding:0 .75rem;border:0;border-radius:var(--radius);background:hsl(var(--primary));color:hsl(var(--primary-foreground));font:inherit;font-weight:700}.metadata-panel{position:absolute;top:1.5rem;right:1.5rem;bottom:1.5rem;z-index:25;width:23rem;box-shadow:var(--shadow-panel)}.metadata-panel-header{margin-bottom:1rem}.metadata-list{gap:.55rem}.metadata-list span{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:2.75rem;padding:0 .75rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted))}.metadata-list strong,.metadata-list em{font-size:.82rem}.metadata-list em{font-style:normal;text-align:right}.audit-list{gap:.75rem;margin-top:1rem;padding-top:1rem;border-top:1px solid hsl(var(--border))}.audit-list div{display:flex;gap:.65rem}.audit-list svg{color:var(--metric-actual-primary)}.audit-list strong,.audit-list em{display:block}.audit-list em{margin-top:.2rem;font-style:normal;font-size:.8rem}.campaign-sync-layout .story-main-card{min-height:31rem}.sync-flow-grid{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:.9rem;padding:1.25rem}.sync-flow-grid>div{min-height:10rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted))}.sync-flow-grid>svg{color:hsl(var(--primary))}.sync-flow-grid strong{display:block;margin:.45rem 0;font-size:1.05rem}.sync-flow-grid span{font-size:.84rem}.field-map-table{gap:.65rem;padding:0 1.25rem 1.25rem}.field-map-table div{display:grid;grid-template-columns:.9fr 1.2fr auto;align-items:center;gap:.75rem;min-height:3.5rem;padding:0 .85rem;border:1px solid hsl(var(--border));border-radius:var(--radius)}.field-map-table em{padding:.28rem .55rem;border-radius:var(--radius-full);background:var(--metric-plan-light);color:var(--metric-plan-primary);font-style:normal;font-weight:800}.roi-panel{display:grid;align-content:start;gap:.8rem}.roi-panel .story-stat{min-height:5.8rem}.roi-ratio{display:flex;gap:.65rem;padding:.85rem;border-radius:var(--radius);background:var(--metric-actual-bg)}.roi-ratio svg{color:var(--metric-actual-primary)}@media(max-width:960px){.hero-dashboard-grid,.story-grid,.campaign-sync-layout,.period-grid-head,.period-row,.actuals-row,.field-map-table div,.sync-flow-grid{grid-template-columns:1fr}}:root,[data-mode=dark]{color-scheme:dark;--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%;--radius: .5rem}[data-mode=light]{color-scheme:light;--background: 0 0% 100%;--foreground: 0 0% 9%;--card: 0 0% 98%;--card-foreground: 0 0% 9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 220 13% 91%;--secondary-foreground: 0 0% 9%;--muted: 220 13% 95%;--muted-foreground: 220 9% 46%;--accent: 220 13% 91%;--accent-foreground: 0 0% 9%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 98%;--border: 220 13% 87%;--input: 220 13% 87%;--ring: 221 83% 53%;--radius: .5rem}:root,[data-mode=dark],[data-mode=light]{--status-success: 142 71% 45%;--status-warning: 38 92% 50%;--status-danger: 0 84% 60%;--status-info: 217 91% 60%;--radius-full: 999px;--container-max: 1200px;--sfdc-blue: #00a1e0}:root,[data-mode=dark]{--overlay-strong: hsl(0 0% 0% / .6);--overlay-subtle: hsl(220 13% 8% / .28);--shadow-xs: 0 1px 2px hsl(0 0% 0% / .3);--shadow-sm: 0 2px 8px hsl(0 0% 0% / .2);--shadow-md: 0 4px 12px hsl(0 0% 0% / .3);--shadow-lg: 0 8px 24px hsl(0 0% 0% / .35);--shadow-xl: 0 12px 30px hsl(0 0% 0% / .35);--shadow-2xl: 0 16px 48px -16px hsl(0 0% 0% / .5);--shadow-3xl: 0 24px 40px hsl(0 0% 0% / .35);--shadow-float: 0 20px 50px -35px hsl(0 0% 0% / .7);--shadow-soft: 0 18px 36px hsl(0 0% 0% / .35);--shadow-panel: -8px 0 30px -10px hsl(0 0% 0% / .35);--shadow-sticky-col: 2px 0 6px hsl(0 0% 0% / .25);--shadow-header: 0 12px 40px -12px hsl(0 0% 0% / .4);--shadow-header-strong: 0 16px 48px -16px hsl(0 0% 0% / .5)}[data-mode=light]{--overlay-strong: hsl(0 0% 0% / .4);--overlay-subtle: hsl(220 13% 60% / .15);--shadow-xs: 0 1px 2px hsl(220 13% 13% / .08);--shadow-sm: 0 2px 8px hsl(220 13% 13% / .06);--shadow-md: 0 4px 12px hsl(220 13% 13% / .1);--shadow-lg: 0 8px 24px hsl(220 13% 13% / .12);--shadow-xl: 0 12px 30px hsl(220 13% 13% / .14);--shadow-2xl: 0 16px 48px -16px hsl(220 13% 13% / .18);--shadow-3xl: 0 24px 40px hsl(220 13% 13% / .16);--shadow-float: 0 20px 50px -35px hsl(220 13% 13% / .25);--shadow-soft: 0 18px 36px hsl(220 13% 13% / .14);--shadow-panel: -8px 0 30px -10px hsl(220 13% 13% / .14);--shadow-sticky-col: 2px 0 6px hsl(220 13% 13% / .1);--shadow-header: 0 12px 40px -12px hsl(220 13% 13% / .14);--shadow-header-strong: 0 16px 48px -16px hsl(220 13% 13% / .18)}:root,[data-mode=dark],[data-mode=light]{--chart-blue: 217 91% 60%;--chart-green: 142 71% 45%;--chart-indigo: 243 75% 59%;--chart-purple: 270 95% 60%;--chart-amber: 38 92% 50%;--logo-gradient-start: 200 100% 60%;--logo-gradient-end: 140 50% 50%;--cenerio-mark-blue: 216 90% 58%;--cenerio-mark-purple: 271 63% 66%;--cenerio-mark-mint: 154 48% 62%}:root,[data-mode=dark]{--cenerio-mark-core: 0 0% 100%}[data-mode=light]{--cenerio-mark-core: 220 43% 14%}:root,[data-mode=dark]{--metric-plan-primary: rgba(91, 124, 250, 1);--metric-plan-light: rgba(91, 124, 250, .14);--metric-plan-border: rgba(91, 124, 250, .18);--metric-plan-hover: rgba(91, 124, 250, .08);--metric-commit-primary: rgba(99, 102, 241, 1);--metric-commit-light: rgba(99, 102, 241, .14);--metric-commit-border-soft: rgba(99, 102, 241, .18);--metric-commit-hover: rgba(99, 102, 241, .08);--metric-commit-bg: rgba(99, 102, 241, .15);--metric-commit-border: rgba(99, 102, 241, .6);--metric-commit-text: #a5b4fc;--metric-commit-strong: #4338ca;--metric-uncommitted-primary: rgba(147, 51, 234, 1);--metric-uncommitted-light: rgba(147, 51, 234, .14);--metric-uncommitted-border-soft: rgba(147, 51, 234, .18);--metric-uncommitted-hover: rgba(147, 51, 234, .08);--metric-uncommitted-bg: rgba(147, 51, 234, .15);--metric-uncommitted-border: rgba(147, 51, 234, .6);--metric-uncommitted-text: #c4b5fd;--metric-uncommitted-strong: #7c3aed;--metric-forecast-primary: rgba(108, 70, 255, 1);--metric-forecast-light: rgba(108, 70, 255, .14);--metric-forecast-border-soft: rgba(108, 70, 255, .18);--metric-forecast-hover: rgba(108, 70, 255, .08);--metric-forecast-bg: rgba(251, 191, 36, .15);--metric-forecast-border: rgba(251, 191, 36, .6);--metric-forecast-text: #fcd34d;--metric-forecast-strong: #92400e;--metric-actual-primary: rgba(47, 181, 115, 1);--metric-actual-light: rgba(47, 181, 115, .14);--metric-actual-border-soft: rgba(47, 181, 115, .18);--metric-actual-hover: rgba(47, 181, 115, .08);--metric-actual-bg: rgba(16, 185, 129, .15);--metric-actual-border: rgba(16, 185, 129, .7);--metric-actual-text: #6ee7b7;--metric-actual-strong: #065f46;--metric-headroom-primary: rgba(20, 184, 166, 1);--metric-headroom-light: rgba(20, 184, 166, .14);--metric-headroom-border: rgba(20, 184, 166, .18);--metric-headroom-hover: rgba(20, 184, 166, .08);--metric-alert-primary: rgba(239, 68, 68, 1);--metric-alert-light: rgba(239, 68, 68, .14);--metric-alert-border: rgba(239, 68, 68, .18);--metric-alert-hover: rgba(239, 68, 68, .08)}[data-mode=light]{--metric-plan-primary: rgba(37, 99, 235, 1);--metric-plan-light: rgba(37, 99, 235, .1);--metric-plan-border: rgba(37, 99, 235, .25);--metric-plan-hover: rgba(37, 99, 235, .06);--metric-commit-primary: rgba(79, 70, 229, 1);--metric-commit-light: rgba(79, 70, 229, .1);--metric-commit-border-soft: rgba(79, 70, 229, .25);--metric-commit-hover: rgba(79, 70, 229, .06);--metric-commit-bg: rgba(79, 70, 229, .12);--metric-commit-border: rgba(79, 70, 229, .35);--metric-commit-text: #4338ca;--metric-commit-strong: #312e81;--metric-uncommitted-primary: rgba(126, 34, 206, 1);--metric-uncommitted-light: rgba(126, 34, 206, .1);--metric-uncommitted-border-soft: rgba(126, 34, 206, .25);--metric-uncommitted-hover: rgba(126, 34, 206, .06);--metric-uncommitted-bg: rgba(126, 34, 206, .12);--metric-uncommitted-border: rgba(126, 34, 206, .35);--metric-uncommitted-text: #6b21a8;--metric-uncommitted-strong: #581c87;--metric-forecast-primary: rgba(202, 138, 4, 1);--metric-forecast-light: rgba(202, 138, 4, .1);--metric-forecast-border-soft: rgba(202, 138, 4, .25);--metric-forecast-hover: rgba(202, 138, 4, .06);--metric-forecast-bg: rgba(202, 138, 4, .12);--metric-forecast-border: rgba(202, 138, 4, .35);--metric-forecast-text: #a16207;--metric-forecast-strong: #78350f;--metric-actual-primary: rgba(5, 150, 105, 1);--metric-actual-light: rgba(5, 150, 105, .1);--metric-actual-border-soft: rgba(5, 150, 105, .25);--metric-actual-hover: rgba(5, 150, 105, .06);--metric-actual-bg: rgba(5, 150, 105, .12);--metric-actual-border: rgba(5, 150, 105, .35);--metric-actual-text: #047857;--metric-actual-strong: #065f46;--metric-headroom-primary: rgba(13, 148, 136, 1);--metric-headroom-light: rgba(13, 148, 136, .1);--metric-headroom-border: rgba(13, 148, 136, .25);--metric-headroom-hover: rgba(13, 148, 136, .06);--metric-alert-primary: rgba(220, 38, 38, 1);--metric-alert-light: rgba(220, 38, 38, .1);--metric-alert-border: rgba(220, 38, 38, .25);--metric-alert-hover: rgba(220, 38, 38, .06)}.ui-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:var(--radius);border:1px solid transparent;padding:.5rem 1rem;font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ui-button:disabled{opacity:.5;cursor:not-allowed}.ui-button-default{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.ui-button-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.ui-button-outline{background:transparent;border-color:hsl(var(--border));color:hsl(var(--foreground))}.ui-button-ghost{background:transparent;color:hsl(var(--foreground))}.ui-button-ghost:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.ui-button-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}.ui-button-sm{height:2rem;padding:0 .75rem;font-size:.8rem}.ui-button-default-size{height:2.5rem}.ui-button-lg{height:2.75rem;padding:0 1.25rem;font-size:.95rem}.ui-button-icon{height:2.25rem;width:2.25rem;padding:0}.ui-button-link{padding:0;height:auto;font-weight:500;color:hsl(var(--muted-foreground));background:transparent}.ui-button-link:hover{background:transparent;color:hsl(var(--foreground))}.ui-button-block{width:100%}.ui-button-row{width:100%;justify-content:flex-start;text-align:left;gap:.75rem;padding:.6rem .75rem}.ui-pill{border-radius:999px}.ui-pill.is-active{background:hsl(var(--foreground));color:hsl(var(--background));border-color:transparent}.ui-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:var(--radius-full);background:hsl(var(--card));border:1px solid hsl(var(--border))}.ui-chip-label{font-weight:500;color:hsl(var(--foreground));font-size:.9rem}.ui-chip-value{font-weight:600;color:hsl(var(--foreground));font-size:.875rem;padding:2px 8px;background:hsl(var(--muted));border-radius:var(--radius-sm)}.ui-chip-remove{color:hsl(var(--muted-foreground))}.ui-chip-remove:hover{color:hsl(var(--destructive))}.grid-chip{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;height:auto;border-radius:var(--radius-sm);border:1px solid hsl(var(--border));background:hsl(var(--muted));color:hsl(var(--foreground));cursor:pointer;transition:border-color .15s ease,background-color .15s ease;outline:none;box-shadow:none;-webkit-tap-highlight-color:transparent}.grid-chip:hover{border-color:hsl(var(--ring))}.grid-chip:focus{outline:none;box-shadow:none}.grid-chip:active{outline:none!important;box-shadow:none!important;background:hsl(var(--muted))!important}.grid-chip:focus-visible{outline:2px solid var(--chip-accent, hsl(var(--primary)));outline-offset:2px}.grid-chip.plan{--chip-accent: hsl(var(--ring));--chip-icon: hsl(var(--muted-foreground));background:hsl(var(--accent));border-color:hsl(var(--border))}.grid-chip.plan:active{background:hsl(var(--accent))!important}.grid-chip.forecast{--chip-accent: var(--metric-forecast-strong);--chip-icon: var(--metric-forecast-text);background:var(--metric-forecast-bg);border-color:var(--metric-forecast-border)}.grid-chip.forecast:active{background:var(--metric-forecast-bg)!important}.grid-chip.actual{--chip-accent: var(--metric-actual-strong);--chip-icon: var(--metric-actual-text);background:var(--metric-actual-bg);border-color:var(--metric-actual-border)}.grid-chip.actual:active{background:var(--metric-actual-bg)!important}.grid-chip.read-only{cursor:default}.grid-chip input[type=number]{-moz-appearance:textfield}.grid-chip input::-webkit-outer-spin-button,.grid-chip input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.grid-chip.clickable{cursor:pointer;border-color:hsl(var(--ring))}.grid-chip.clickable:hover{transform:translateY(-1px);border-color:hsl(var(--ring) / .4)}.chip-label{display:none}.chip-value{font-weight:700;color:hsl(var(--foreground))}.chip-input{width:110px;border:none!important;background:transparent;font-weight:700;color:hsl(var(--foreground));padding:4px 0;border-bottom:2px solid transparent;outline:none!important;box-shadow:none!important;caret-color:hsl(var(--primary));-webkit-appearance:none;border-radius:0}.chip-input:focus,.chip-input:focus-visible{border-bottom-color:var(--chip-accent, hsl(var(--primary)));animation:caretPulse 1s ease infinite;outline:none!important;box-shadow:none!important}@keyframes caretPulse{0%{border-bottom-color:transparent}50%{border-bottom-color:hsl(var(--primary))}to{border-bottom-color:transparent}}.chip-icon{color:color-mix(in srgb,var(--chip-icon, hsl(var(--foreground))) 55%,transparent);display:inline-flex;align-items:center;justify-content:center;width:18px}.chip-input{width:120px;border:1px solid hsl(var(--ring));border-radius:var(--radius-xs);padding:6px 8px;font-size:.95rem}.metric-chip{border:1px solid transparent;font-weight:600}.metric-chip[data-active=false]{opacity:.55}.metric-chip-commit{background:var(--metric-commit-bg);border-color:var(--metric-commit-border);color:var(--metric-commit-text)}.metric-chip-uncommitted{background:var(--metric-uncommitted-bg);border-color:var(--metric-uncommitted-border);color:var(--metric-uncommitted-text)}.metric-chip-forecast{background:var(--metric-forecast-bg);border-color:var(--metric-forecast-border);color:var(--metric-forecast-text)}.metric-chip-actual{background:var(--metric-actual-bg);border-color:var(--metric-actual-border);color:var(--metric-actual-text)}.ui-card{background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius)}.ui-card-header{display:flex;flex-direction:column;gap:.25rem;padding:1.25rem 1.5rem 0}.ui-card-title{font-size:1rem;font-weight:600;margin:0}.ui-card-description{color:hsl(var(--muted-foreground));font-size:.875rem;margin:0}.ui-card-content{padding:1.5rem}.ui-card-footer{display:flex;align-items:center;gap:.5rem;padding:0 1.5rem 1.5rem}.ui-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:calc(var(--radius) - 4px);border:1px solid transparent;padding:.25rem .65rem;font-size:.75rem;font-weight:500;line-height:1.2}.ui-badge-default{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.ui-badge-secondary{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.ui-badge-outline{background:transparent;border-color:hsl(var(--border));color:hsl(var(--foreground))}.ui-badge-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}.ui-tabs{display:flex;flex-direction:column;gap:1rem}.ui-tabs-list{display:inline-flex;align-items:center;gap:.25rem;border-radius:var(--radius);background:hsl(var(--muted));padding:.25rem}.ui-tabs-trigger{border:none;background:transparent;color:hsl(var(--muted-foreground));padding:.5rem .9rem;border-radius:calc(var(--radius) - 2px);font-size:.875rem;font-weight:500;cursor:pointer;transition:color .15s ease,background-color .15s ease}.ui-tabs-trigger svg{width:16px;height:16px}.ui-tabs-trigger.is-active{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:var(--shadow-xs)}.meta-tabs-container{padding:0 var(--meta-panel-padding-x, 1.5rem);margin:1.5rem 0 1rem}.meta-panel-body{flex:1;overflow-y:auto;padding:var(--meta-panel-padding-y, 1.25rem) var(--meta-panel-padding-x, 1.5rem) 1.5rem;display:flex;flex-direction:column;gap:var(--meta-panel-section-gap, 1.25rem);background:hsl(var(--card))}.app-tabs-list{flex-wrap:wrap}.app-tabs-trigger{display:inline-flex;align-items:center;gap:.4rem}.app-tabs-content{padding-top:1.5rem}.ui-tabs-content{outline:none}.ui-dropdown{position:relative;display:inline-flex}.ui-dropdown-trigger{background:transparent;border:none;padding:0}.ui-dropdown-content{position:absolute;top:calc(100% + .5rem);min-width:220px;max-width:320px;background:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:.5rem;box-shadow:var(--shadow-xl);z-index:1150}.ui-dropdown-align-start{left:0}.ui-dropdown-align-end{right:0}.ui-dropdown-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:hsl(var(--muted-foreground));padding:.25rem .5rem}.ui-dropdown-separator{height:1px;background:hsl(var(--border));margin:.5rem 0}.ui-dropdown-group{display:flex;flex-direction:column;gap:.25rem}.ui-dropdown-item{display:flex;align-items:center;gap:.5rem;width:100%;border:1px solid transparent;border-radius:calc(var(--radius) - 2px);background:transparent;color:hsl(var(--foreground));padding:.5rem .65rem;font-size:.875rem;font-weight:500;cursor:pointer;text-align:left;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ui-dropdown-item:hover:not(:disabled){background:hsl(var(--accent));color:hsl(var(--accent-foreground));border-color:hsl(var(--border))}.ui-dropdown-item.is-active{background:hsl(var(--accent));color:hsl(var(--accent-foreground));border-color:hsl(var(--border))}.ui-dropdown-item.is-destructive{color:hsl(var(--destructive))}.ui-dropdown-item.is-destructive:hover:not(:disabled){background:hsl(var(--destructive) / .12);color:hsl(var(--destructive));border-color:hsl(var(--destructive) / .3)}.ui-dropdown-item:disabled{opacity:.6;cursor:not-allowed}.ui-select-trigger{width:100%;min-height:2.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));font-size:.9rem;font-weight:500;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.ui-select-trigger:focus-visible{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring) / .25)}.ui-select-trigger:disabled{opacity:.6;cursor:not-allowed}.ui-select-trigger.is-error{border-color:hsl(var(--destructive))}.ui-select-value[data-placeholder]{color:hsl(var(--muted-foreground))}.ui-select-icon{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground))}.ui-select-content{background:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);box-shadow:var(--shadow-xl);padding:.35rem;min-width:220px;z-index:1150}.ui-select-viewport{display:flex;flex-direction:column;gap:.25rem}.ui-select-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .65rem;border-radius:calc(var(--radius) - 2px);cursor:pointer;color:hsl(var(--foreground));font-size:.875rem;font-weight:500;outline:none}.ui-select-item[data-highlighted]{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.ui-select-item[data-state=checked]{background:hsl(var(--secondary))}.ui-select-item-indicator{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--foreground))}.ui-select-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:hsl(var(--muted-foreground));padding:.25rem .5rem}.ui-select-separator{height:1px;background:hsl(var(--border));margin:.25rem 0}.ui-checkbox{width:18px;height:18px;border-radius:4px;border:1px solid hsl(var(--border));background:hsl(var(--background));display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--primary-foreground));cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.ui-checkbox[data-state=checked]{background:hsl(var(--primary));border-color:hsl(var(--primary))}.ui-checkbox:focus-visible{outline:none;box-shadow:0 0 0 2px hsl(var(--ring) / .25)}.ui-checkbox-indicator{display:inline-flex;align-items:center;justify-content:center}.ui-command{width:100%;display:flex;flex-direction:column}.ui-command-panel{width:min(720px,calc(100% - 2rem));padding:0;overflow:hidden}.ui-command-input{display:flex;align-items:center;gap:.6rem;padding:.85rem 1rem;border-bottom:1px solid hsl(var(--border));background:hsl(var(--background))}.ui-command-input-field{flex:1;border:none;outline:none;font-size:.95rem;background:transparent;color:hsl(var(--foreground))}.ui-command-list{max-height:60vh;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.ui-command-item{display:flex;gap:.65rem;align-items:center;padding:.65rem .75rem;border:1px solid transparent;border-radius:calc(var(--radius) - 2px);background:transparent;color:hsl(var(--foreground));text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ui-command-item:hover:not(:disabled){background:hsl(var(--accent));border-color:hsl(var(--border))}.ui-command-item-active{background:hsl(var(--secondary));border-color:hsl(var(--border))}.ui-command-empty{padding:.75rem;text-align:center;color:hsl(var(--muted-foreground));font-size:.875rem}.ui-command-group{display:flex;flex-direction:column;gap:.35rem}.ui-command-separator{height:1px;background:hsl(var(--border));margin:.35rem 0}.ui-command-pill{padding:.18rem .5rem;border-radius:999px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.ui-command-text{flex:1;display:flex;flex-direction:column;gap:.1rem}.ui-command-title{font-weight:600;color:hsl(var(--foreground))}.ui-command-subtitle{font-size:.85rem;color:hsl(var(--muted-foreground))}.ui-command-meta{font-size:.82rem;color:hsl(var(--muted-foreground))}.ui-command-hint{font-size:.8rem;color:hsl(var(--muted-foreground));background:hsl(var(--secondary));padding:.22rem .55rem;border-radius:8px;border:1px solid hsl(var(--border))}.ui-command-error{margin:0 0 1rem;padding:.5rem .75rem;border-radius:calc(var(--radius) - 4px);border:1px solid hsl(var(--destructive) / .3);background:hsl(var(--destructive) / .12);color:hsl(var(--destructive));font-size:.85rem}.ui-popover{position:relative;display:inline-flex;width:100%}.ui-popover-trigger{background:transparent;border:none;padding:0}.ui-popover-content{position:absolute;top:calc(100% + .5rem);min-width:220px;background:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);box-shadow:var(--shadow-xl);z-index:1150}.ui-popover-align-start{left:0}.ui-popover-align-end{right:0}.ui-combobox-trigger{width:100%;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;min-height:2.5rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));font-size:.875rem;font-weight:500;display:inline-flex;align-items:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.ui-combobox-trigger:disabled{opacity:.6;cursor:not-allowed}.ui-combobox-placeholder{color:hsl(var(--muted-foreground))}.ui-combobox-content{width:min(360px,calc(100vw - 2rem));padding:0}.ui-form{display:flex;flex-direction:column;gap:1.25rem}.ui-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.ui-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:stretch}.ui-form-row.narrow-left{grid-template-columns:100px minmax(0,1fr)}@media(max-width:640px){.ui-form-row{grid-template-columns:1fr}}.ui-form-group{display:flex;flex-direction:column;gap:.4rem}.ui-form-label{font-size:.875rem;font-weight:600;color:hsl(var(--foreground))}.required{color:hsl(var(--destructive))}.optional{color:hsl(var(--muted-foreground));font-weight:400}.ui-form-input,.ui-form-select,.ui-form-textarea{width:100%;padding:.55rem .75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));font-size:.9rem;transition:border-color .15s ease,box-shadow .15s ease}.ui-form-input:focus,.ui-form-select:focus,.ui-form-textarea:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring) / .25)}.ui-form-input.is-error,.ui-form-select.is-error,.ui-form-textarea.is-error{border-color:hsl(var(--destructive))}.ui-form-error{font-size:.75rem;color:hsl(var(--destructive))}.ui-form-helper{color:hsl(var(--muted-foreground));font-size:.9rem;margin:0;padding-bottom:.5rem;border-bottom:1px solid hsl(var(--border))}.ui-form-error-inline{display:inline-flex;align-items:center;gap:.5rem}.ui-info-box,.ui-error-box{display:flex;align-items:flex-start;gap:.75rem;padding:.85rem 1rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.ui-error-box{background:hsl(var(--destructive) / .08);border-color:hsl(var(--destructive) / .3);color:hsl(var(--destructive))}.ui-form-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:.5rem;padding-top:1rem;border-top:1px solid hsl(var(--border))}.ui-form-stack{display:grid;gap:.5rem}.ui-form-readonly{width:100%;height:56px;display:flex;align-items:center;padding:.55rem .75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--secondary))}.ui-form-readonly-label{margin:0 0 .15rem;font-size:.7rem;letter-spacing:.05em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.ui-form-readonly-value{margin:0;font-size:.95rem;font-weight:700;color:hsl(var(--foreground))}.ui-input-prefix{display:flex;align-items:center;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));overflow:hidden}.ui-input-prefix.is-error{border-color:hsl(var(--destructive))}.ui-input-prefix .ui-form-input{border:none;background:transparent}.ui-input-prefix .ui-form-input:focus{outline:none;box-shadow:none}.ui-input-prefix-chip{min-width:2.5rem;padding:0 .6rem;height:100%;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:.85rem;color:hsl(var(--muted-foreground));background:hsl(var(--secondary));border-right:1px solid hsl(var(--border))}.ui-input-prefix-field{padding:.55rem .75rem}.ui-search{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .6rem;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));color:hsl(var(--foreground))}.ui-search-input{border:none;outline:none;background:transparent;color:hsl(var(--foreground));font-size:.9rem;width:200px}.ui-search-icon{color:hsl(var(--muted-foreground))}.ui-toggle-label{display:inline-flex;align-items:center;gap:.75rem;font-weight:500;color:hsl(var(--foreground))}.ui-toggle-text{flex:1}.ui-toggle-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 .5rem;background:hsl(var(--destructive));color:hsl(var(--destructive-foreground));border-radius:12px;font-size:.75rem;font-weight:700;letter-spacing:.02em}.ui-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.ui-switch input{opacity:0;width:0;height:0}.ui-switch-track{position:absolute;cursor:pointer;inset:0;background:hsl(var(--muted-foreground));transition:.3s;border-radius:24px}.ui-switch-track:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background:hsl(var(--background));transition:.3s;border-radius:50%}.ui-switch input:checked+.ui-switch-track{background:hsl(var(--ring))}.ui-switch input:focus+.ui-switch-track{box-shadow:0 0 0 3px hsl(var(--ring) / .2)}.ui-switch input:checked+.ui-switch-track:before{transform:translate(20px)}.ui-switch input:disabled+.ui-switch-track{opacity:.5;cursor:not-allowed}.ui-table{border:1px solid hsl(var(--border));border-radius:var(--radius);overflow:hidden;background:hsl(var(--card))}.ui-table-wrapper{overflow-x:auto;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card))}.ui-table-wrapper.padded{padding:.25rem}.meta-sidebar-overlay{position:fixed;inset:0;background-color:var(--overlay-subtle);z-index:999;animation:metaOverlayFadeIn .2s ease}.meta-sidebar{position:fixed;top:0;right:0;bottom:0;width:100%;background-color:hsl(var(--card));box-shadow:var(--shadow-panel);z-index:1000;display:flex;flex-direction:column;animation:metaSidebarSlideIn .3s cubic-bezier(.16,1,.3,1)}.meta-sidebar--wide{max-width:560px}.meta-sidebar--narrow{max-width:480px}@media(max-width:540px){.meta-sidebar{max-width:100%}}@keyframes metaSidebarSlideIn{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes metaOverlayFadeIn{0%{opacity:0}to{opacity:1}}.ui-toaster{position:fixed;top:1.25rem;right:1.25rem;display:flex;flex-direction:column;gap:.75rem;z-index:1300}.ui-toast{width:min(360px,calc(100vw - 2rem));display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;align-items:start;padding:.85rem 1rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--card-foreground));box-shadow:var(--shadow-xl);transition:transform .2s ease,opacity .2s ease}.ui-toast-success{border-color:hsl(var(--status-success) / .4)}.ui-toast-warning{border-color:hsl(var(--status-warning) / .4)}.ui-toast-destructive{border-color:hsl(var(--status-danger) / .4)}.ui-toast-title{margin:0;font-weight:600;font-size:.9rem}.ui-toast-description{margin:.15rem 0 0;color:hsl(var(--muted-foreground));font-size:.85rem}.ui-toast-close{border:none;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;padding:.15rem}.ui-toast-icon{margin-top:.1rem;color:hsl(var(--muted-foreground))}.ui-toast-removing{opacity:0;transform:translateY(-6px)}.ui-separator{height:1px;width:100%;background:hsl(var(--border))}.ui-progress{position:relative;height:.5rem;width:100%;overflow:hidden;border-radius:var(--radius);background:hsl(var(--secondary))}.ui-progress-indicator{height:100%;background:hsl(var(--primary));transition:width .2s ease}.ui-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.ui-stat{display:grid;gap:.5rem}.ui-stat-value{font-size:1.5rem;font-weight:600}.ui-stat-meta{color:hsl(var(--muted-foreground));font-size:.875rem}.ui-sheet-overlay{position:fixed;inset:0;background:var(--overlay-strong);z-index:1000;display:flex;align-items:stretch;justify-content:flex-end}.ui-sheet{width:min(720px,100%);height:100%;background:hsl(var(--card));color:hsl(var(--card-foreground));border-left:1px solid hsl(var(--border));padding:0;overflow-y:auto}.ui-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.ui-sheet-title{margin:0;font-size:1.125rem;font-weight:600}.ui-sheet-content{display:flex;flex-direction:column;gap:1rem;padding:var(--meta-panel-padding-y, 1.25rem) var(--meta-panel-padding-x, 1.5rem)}.ui-sheet-footer{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.ui-dialog-overlay{position:fixed;inset:0;background:var(--overlay-strong);z-index:1100;display:flex;align-items:center;justify-content:center}.ui-dialog-content{width:min(560px,calc(100% - 2rem));background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:1.5rem}.ui-dialog-header{display:grid;gap:.5rem;margin-bottom:1rem}.ui-dialog-title{margin:0;font-size:1.125rem;font-weight:600}.ui-dialog-description{margin:0;color:hsl(var(--muted-foreground));font-size:.9rem}.ui-dialog-note{margin-top:.75rem;padding:.75rem;border:1px solid var(--metric-forecast-border);border-radius:var(--radius-sm);background:var(--metric-forecast-bg);color:var(--metric-forecast-text);font-size:.875rem;line-height:1.45}.ui-dialog-footer{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.ui-tooltip-wrapper{position:relative;display:inline-flex}.ui-tooltip{position:absolute;z-index:1200;background:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);padding:.5rem .65rem;font-size:.75rem;line-height:1.35;box-shadow:var(--shadow-lg)}.ui-tooltip-portal,.ui-tooltip-portal.ui-tooltip-top,.ui-tooltip-portal.ui-tooltip-bottom,.ui-tooltip-portal.ui-tooltip-left,.ui-tooltip-portal.ui-tooltip-right{transform:none;bottom:auto;right:auto}.ui-tooltip-content{position:relative;z-index:1}.ui-tooltip-arrow{width:8px;height:8px;position:absolute;background:hsl(var(--popover));border-left:1px solid hsl(var(--border));border-bottom:1px solid hsl(var(--border));transform:rotate(45deg)}.ui-tooltip-top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.ui-tooltip-top .ui-tooltip-arrow{top:100%;left:50%;transform:translate(-50%) rotate(45deg)}.ui-tooltip-bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.ui-tooltip-bottom .ui-tooltip-arrow{bottom:100%;left:50%;transform:translate(-50%) rotate(45deg)}.ui-tooltip-left{right:calc(100% + 10px);top:50%;transform:translateY(-50%)}.ui-tooltip-left .ui-tooltip-arrow{right:-4px;top:50%;transform:translateY(-50%) rotate(45deg)}.ui-tooltip-right{left:calc(100% + 10px);top:50%;transform:translateY(-50%)}.ui-tooltip-right .ui-tooltip-arrow{left:-4px;top:50%;transform:translateY(-50%) rotate(45deg)}.ui-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:600;-webkit-user-select:none;user-select:none;flex-shrink:0;background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));overflow:hidden}.ui-avatar-sm{width:28px;height:28px;font-size:12px}.ui-avatar-md{width:36px;height:36px;font-size:14px}.ui-avatar-lg{width:48px;height:48px;font-size:18px}.ui-avatar-initials{line-height:1}.ui-avatar-image{width:100%;height:100%;object-fit:cover;display:block}.ui-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.875rem;color:hsl(var(--foreground))}.ui-table-head{text-align:left;font-weight:600;color:hsl(var(--muted-foreground))}.ui-table-cell,.ui-table-head{padding:.75rem 1rem;border-bottom:1px solid hsl(var(--border))}.ui-table-caption{caption-side:bottom;color:hsl(var(--muted-foreground));padding:.75rem 0}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100vh}body{font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;background:hsl(var(--background));color:hsl(var(--foreground));line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh}a{color:inherit;text-decoration:none}.sfdc-icon{color:var(--sfdc-blue)}:root{--meta-panel-padding-x: 1.5rem;--meta-panel-padding-y: 1.25rem;--meta-panel-section-gap: 1.25rem}
