.layout{display:flex;height:100vh;background:var(--bg)}.sidebar{width:220px;min-width:220px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:0}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:20px 18px;border-bottom:1px solid var(--border);font-weight:700;font-size:16px;color:var(--text);text-decoration:none}.brand-logo{display:inline-flex}.brand-text{display:flex;flex-direction:column;line-height:1.25}.brand-location{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;padding:16px 10px;display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:var(--text-muted);text-decoration:none;font-size:13px;transition:all .15s}.nav-item:hover{background:var(--hover);color:var(--text)}.nav-item.active{background:var(--primary-dim);color:var(--primary);font-weight:600}.nav-icon{width:18px;height:18px;flex-shrink:0}.nav-group+.nav-group{margin-top:18px}.nav-group-label{padding:0 10px;margin-bottom:8px;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase}.sidebar :is(a,button):focus-visible{outline:2px solid var(--primary);outline-offset:2px}.sidebar-footer{padding:14px 12px;border-top:1px solid var(--border)}.user-info{display:flex;align-items:center;gap:10px;margin-bottom:10px}.user-avatar{width:34px;height:34px;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex-shrink:0}.user-name{font-size:13px;font-weight:600}.user-role{font-size:11px;color:var(--text-muted)}.logout-btn{width:100%;padding:7px;background:transparent;border:1px solid var(--border);border-radius:7px;color:var(--text-muted);cursor:pointer;font-size:13px;transition:all .15s}.logout-btn:hover{background:#fee2e2;border-color:#fca5a5;color:#dc2626}.main-content{flex:1;min-width:0;overflow-y:auto;padding:28px 32px}@media(max-width:1100px){.main-content{padding:24px}}@media(max-width:680px){.sidebar{width:64px;min-width:64px}.sidebar-brand{padding:18px}.brand-name,.nav-label,.nav-group-label,.sidebar-footer .user-info{display:none}.sidebar-nav{padding:12px 8px}.nav-item{justify-content:center;padding:12px 8px}.sidebar-footer{padding:10px 4px}.logout-btn{font-size:10px}.main-content{padding:20px 16px}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2)}.login-card{background:#fff;border-radius:16px;padding:40px;width:380px;box-shadow:0 20px 60px #0003}.login-brand{text-align:center;margin-bottom:28px}.login-icon{display:inline-flex;margin-bottom:8px}.login-brand h1{font-size:26px;color:var(--primary)}.login-brand p{color:var(--text-muted);font-size:13px;margin-top:4px}.projects-header{gap:16px;flex-wrap:wrap}.projects-count{color:var(--text-muted);font-size:16px;font-weight:500;margin-left:6px}.projects-subtitle{margin-top:6px;color:var(--text-muted);font-size:13px}.projects-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.projects-selection{margin:-8px 0 16px;font-size:12px;color:var(--text-muted)}.projects-page .projects-name{min-width:210px}.projects-name-link{color:var(--text);text-decoration:none;font-weight:600}.projects-name-link:hover{color:var(--primary);text-decoration:underline}.projects-domain{display:block;margin-top:5px;font-size:12px;color:var(--text-muted);text-decoration:none}.projects-domain:hover{color:var(--primary);text-decoration:underline}.projects-status{display:flex;flex-wrap:wrap;gap:4px}.projects-version{font-family:monospace;font-size:12px}.projects-commit{display:block;margin-top:4px;font-size:11px;color:var(--text-muted)}.projects-details-cell{text-align:right}.projects-row-selected{background:var(--primary-dim)}.projects-page input[type=checkbox]{width:15px;height:15px;accent-color:var(--primary);cursor:pointer}.projects-page input[type=checkbox]:disabled{cursor:not-allowed}@media(max-width:680px){.projects-toolbar{width:100%}.projects-toolbar .btn{flex:1;justify-content:center}}.project-detail{max-width:1240px;margin:0 auto}.project-back{display:inline-block;border:0;background:none;color:var(--text-muted);font:inherit;font-size:12px;cursor:pointer;padding:0;margin-bottom:14px}.project-back:hover{color:var(--primary)}.project-header{gap:16px;flex-wrap:wrap;margin-bottom:20px}.project-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.project-subtitle{margin-top:6px;color:var(--text-muted);font-size:13px;overflow-wrap:anywhere}.project-detail a{color:var(--primary)}.project-subtitle a{text-decoration:none}.project-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.project-section{padding:20px}.project-section h2{font-size:14px;margin-bottom:18px}.project-health{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:18px;margin-bottom:18px;padding:18px 20px}.project-label,.project-field dt{display:block;font-size:11px;color:var(--text-muted);margin-bottom:6px}.project-health strong{display:block;font-size:17px;font-weight:600}.project-health small{color:var(--text-muted);font-size:12px;font-weight:400}.project-health-error{grid-column:1 / -1;color:var(--danger);font-size:12px;overflow-wrap:anywhere}.project-help{display:block;font-size:12px;color:var(--text-muted);margin-top:8px;line-height:1.5}.project-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.project-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}.project-field{min-width:0}.project-field dd{font-size:13px;overflow-wrap:anywhere;line-height:1.5}.project-description{color:var(--text-muted);font-size:13px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border);white-space:pre-wrap}.project-deploy-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.project-disclosure{margin-bottom:12px;padding:16px 20px}.project-disclosure summary,.project-inline-disclosure summary{cursor:pointer;font-size:13px;font-weight:600}.project-disclosure summary span{color:var(--text-muted);font-size:12px;font-weight:400;margin-left:6px}.project-disclosure[open]>summary{margin-bottom:18px}.project-inline-disclosure{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.project-inline-disclosure summary{font-weight:400;font-size:12px;color:var(--text-muted)}.project-endpoints{display:flex;gap:16px;padding:14px 0;font-size:12px}.project-logs{background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.project-summary-counts{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-bottom:18px}.project-summary-tables{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px}.project-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 20px;margin-top:20px}.project-controls h2{font-size:14px}.project-controls .project-help{margin-top:4px}.project-edit-form{max-width:860px}.project-edit-form .project-section{margin-bottom:18px}.project-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.project-form-grid label{display:block;font-size:12px;color:var(--text-muted)}.project-form-grid label>input,.project-form-grid label>select,.project-form-grid label>textarea{margin-top:6px}.project-form-grid .form-textarea{min-height:80px}.project-form-wide{grid-column:1 / -1}.business-section .alert{margin:12px 0}.business-assign{display:grid;gap:6px;max-width:720px;margin-top:14px}.business-assign>label{font-size:12px;color:var(--text-muted)}.business-assign-row{display:flex;gap:10px;align-items:stretch}.business-assign-row .form-input{flex:1;min-width:0}.business-assign-row .btn{white-space:nowrap;min-width:140px}.business-subtitle{font-size:13px;font-weight:600;margin:22px 0 8px;color:var(--text)}.business-list td{vertical-align:middle}.business-list td:nth-child(2),.business-list td:nth-child(3),.business-list th:nth-child(2),.business-list th:nth-child(3){width:90px;text-align:center}.business-list th:last-child,.business-actions{width:180px;text-align:right;white-space:nowrap}.business-actions .btn+.btn{margin-left:6px}.business-list .form-input{padding:6px 10px}.project-edit-form .project-disclosure>.project-help{margin-bottom:16px}.project-detail :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media(max-width:1000px){.project-health{grid-template-columns:repeat(3,1fr)}.project-summary-tables{grid-template-columns:1fr}}@media(max-width:720px){.project-overview-grid,.project-form-grid{grid-template-columns:1fr}.project-health,.project-summary-counts{grid-template-columns:repeat(2,1fr)}.project-header .project-actions{width:100%}.project-controls{align-items:flex-start}.project-section{padding:16px}}.pf-page{display:grid;gap:18px;min-width:0}.pf-subtitle{color:var(--text-secondary, #64748b);margin-top:8px}.pf-toolbar-row{display:flex;flex-wrap:wrap;gap:10px}.pf-toolbar-row input{flex:1 1 260px}.pf-toolbar-row select{flex:0 1 180px}.pf-filter-disclosure{margin-top:14px}.pf-filter-disclosure summary{cursor:pointer;font-weight:600}.pf-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:14px}.pf-filter-grid label{display:grid;gap:6px}.pf-results{padding:0;min-width:0;overflow:hidden}.pf-table-wrap{overflow:auto;max-height:70vh}.pf-table{border-collapse:separate;border-spacing:0;width:100%;white-space:nowrap}.pf-table thead th{position:sticky;top:0;z-index:2;background:var(--bg-secondary, #f1f5f9)}.pf-table th,.pf-table td{padding:12px;border-bottom:1px solid var(--border, #e2e8f0)}.pf-table thead button{border:0;background:none;color:inherit;font:inherit;font-weight:600;cursor:pointer}.pf-table tr>:first-child{position:sticky;left:0;background:var(--bg-card, #fff);z-index:1;min-width:220px;text-align:left}.pf-table thead tr>:first-child{z-index:3;background:var(--bg-secondary, #f1f5f9)}.pf-table small{display:block;color:var(--text-secondary, #64748b);margin-top:4px;font-weight:400}.pf-table th.pf-vertical:not(:first-child){width:48px;min-width:48px;max-width:48px}.pf-table th.pf-vertical{padding:10px 4px;vertical-align:bottom;text-align:center;height:150px}.pf-table thead tr>th.pf-vertical:first-child{text-align:left;padding-left:16px}.pf-table th.pf-vertical>button,.pf-table th.pf-vertical>span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:140px;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 auto;display:block;font-weight:600}.pf-table thead tr>th.pf-vertical:first-child>button{margin:0}.pf-table td.pf-cell,.pf-table td.pf-col{width:48px;min-width:48px;max-width:48px;padding:0;text-align:center;font-size:12px;border-left:1px solid var(--border, #e2e8f0);overflow:hidden}.pf-table td.pf-cell{font-weight:700;font-size:13px}.pf-table td.pf-col a{text-decoration:none;font-size:16px}.pf-table .pf-status{padding:2px 4px;font-size:10px;letter-spacing:.02em}.pf-table .pf-owner{max-width:240px;overflow:hidden;text-overflow:ellipsis}.pf-cell-a{background:#bbf7d0;color:#065f46}.pf-cell-d{background:#fed7aa;color:#9a3412}.pf-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;padding:12px 16px;font-size:13px;color:var(--text-secondary, #64748b);border-bottom:1px solid var(--border, #e2e8f0)}.pf-legend .pf-cell{display:inline-flex;align-items:center;justify-content:center;width:24px;height:22px;border-radius:4px;font-weight:700;border:1px solid var(--border, #e2e8f0)}.pf-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px;flex-wrap:wrap}.pf-pagination>span{margin-right:auto}.pf-empty{padding:24px;text-align:center}.project-feature-settings{scroll-margin-top:20px}.project-feature-settings table{width:100%}.project-feature-settings .feature-description{display:block;color:var(--text-secondary, #64748b);font-size:12px;margin-top:4px}.project-feature-settings .feature-config{margin-top:18px;border-top:1px solid var(--border, #e2e8f0);padding-top:18px}.project-feature-settings .feature-config h3{margin-bottom:12px}.central-project-reports{display:flex;flex-direction:column;gap:16px}.central-report-page-header{align-items:flex-end;gap:18px;margin-bottom:0}.central-report-page-header>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.central-report-page-header p,.central-report-card header p{color:var(--text-muted);font-size:12px}.central-report-actions{display:flex;align-items:center;gap:8px}.central-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.central-report-stat,.central-report-card{min-width:0;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.central-report-stat{display:flex;flex-direction:column;gap:8px}.central-report-stat>span,.central-report-stat small{color:var(--text-muted);font-size:12px}.central-report-stat>strong{font-size:25px;font-variant-numeric:tabular-nums}.central-report-stat small.positive{color:#16834b}.central-report-stat small.negative{color:#c62828}.central-report-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.central-report-chart-options{display:flex;flex-wrap:wrap;gap:7px 12px;margin:-4px 0 8px;color:var(--text-muted);font-size:11px}.central-report-chart-options label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}.central-report-chart-options input{margin:0;accent-color:var(--primary)}.central-report-chart-options i{width:8px;height:3px;border-radius:2px}.central-report-task-totals{margin:-8px 0 0;color:var(--text-muted);font-size:12px;text-align:right}.central-report-rankings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.central-report-card>h2{margin-bottom:14px}.central-report-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.central-report-card>header h2{font-size:16px}.central-report-rank{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;padding:10px 0;border-top:1px solid var(--border)}.central-report-rank>span{grid-row:span 2;color:var(--text-muted);font-size:12px}.central-report-rank>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.central-report-rank>small{color:var(--text-muted)}.central-report-empty{padding:18px 4px;color:var(--text-muted);font-size:13px;text-align:center}.central-report-guests>header,.central-report-activity>header{margin:0}.central-report-event-table-wrap{max-width:100%;overflow-x:auto}.central-report-event-table,.central-report-events-table{width:100%;min-width:1050px;table-layout:fixed;border-collapse:collapse;font-size:12px}.central-report-event-table th,.central-report-event-table td,.central-report-events-table th,.central-report-events-table td{overflow:hidden;padding:8px 7px;border:0;text-align:left;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.central-report-event-table th,.central-report-events-table th{color:var(--text-muted);font-size:11px;font-weight:600}.central-report-event-table td,.central-report-events-table td{color:var(--text)}.central-report-event-table th:nth-child(1),.central-report-event-table td:nth-child(1),.central-report-events-table th:nth-child(1),.central-report-events-table td:nth-child(1){width:15%}.central-report-event-table th:nth-child(2),.central-report-event-table td:nth-child(2),.central-report-events-table th:nth-child(2),.central-report-events-table td:nth-child(2){width:11%}.central-report-event-table th:nth-child(3),.central-report-event-table td:nth-child(3),.central-report-event-table th:nth-child(4),.central-report-event-table td:nth-child(4),.central-report-events-table th:nth-child(3),.central-report-events-table td:nth-child(3),.central-report-events-table th:nth-child(4),.central-report-events-table td:nth-child(4){width:12%}.central-report-event-table th:nth-child(5),.central-report-event-table td:nth-child(5),.central-report-events-table th:nth-child(5),.central-report-events-table td:nth-child(5),.central-report-event-table th:nth-child(6),.central-report-event-table td:nth-child(6),.central-report-events-table th:nth-child(6),.central-report-events-table td:nth-child(6){width:25%}.central-report-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:#0f172a88}.central-report-modal{display:flex;flex-direction:column;width:min(1200px,98vw);max-height:92vh;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 20px 60px #0f172a44}.central-report-modal>header,.central-report-modal>footer,.central-report-modal>footer>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.central-report-modal>header{margin-bottom:12px}.central-report-modal>header h2{font-size:18px}.central-report-modal>header span,.central-report-modal>footer{color:var(--text-muted);font-size:12px}.central-guest-summary{display:flex;flex-wrap:wrap;gap:10px 20px;margin-bottom:12px;padding:12px;border-radius:8px;background:var(--bg);color:var(--text-muted);font-size:12px}.central-guest-summary strong{color:var(--text)}.central-report-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:12px}.central-report-filters label{display:flex;flex-direction:column;gap:4px;color:var(--text-muted);font-size:11px}.central-report-filters input,.central-report-filters select{width:155px;height:34px;padding:5px 8px;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font:inherit}.central-report-filters>input{width:170px}.central-report-table-wrap{min-height:160px;flex:1;overflow:auto;border:1px solid var(--border);border-radius:8px}.central-report-table{width:100%;border-collapse:collapse;font-size:12px}.central-report-table th,.central-report-table td{max-width:360px;padding:9px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;overflow-wrap:anywhere}.central-report-table th{position:sticky;top:0;background:var(--bg);white-space:nowrap}.central-report-table th button{padding:0;border:0;background:none;color:var(--text-muted);font:inherit;font-weight:600;cursor:pointer}.central-report-table tr:last-child td{border-bottom:0}.central-report-table.central-report-events-table{min-width:1050px;border-collapse:collapse;table-layout:fixed}.central-report-table.central-report-events-table th,.central-report-table.central-report-events-table td{max-width:none;padding:8px 7px;border:0;overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.central-report-table.central-report-events-table th{color:var(--text-muted);font-size:11px}.central-report-table.central-report-events-table td{color:var(--text)}.central-report-modal>footer{margin-top:12px}.central-report-modal>footer>div{justify-content:flex-end;flex-wrap:wrap}@media(max-width:900px){.central-report-chart-grid{grid-template-columns:1fr}.central-report-rankings{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.central-report-page-header{align-items:flex-start;flex-direction:column}.central-report-actions{flex-wrap:wrap}.central-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.central-report-rankings{grid-template-columns:1fr}.central-report-modal-backdrop{padding:5px}.central-report-modal{width:100%;max-height:98vh;padding:10px}.central-report-modal>footer{align-items:flex-start;flex-direction:column}.central-report-filters label,.central-report-filters label input,.central-report-filters>input,.central-report-filters select{width:100%}}@media print{body[data-central-report-print] .layout{display:block;height:auto}body[data-central-report-print] .main-content{display:block;overflow:visible;padding:0}body[data-central-report-print=overview] *{visibility:hidden!important}body[data-central-report-print=overview] .central-project-reports,body[data-central-report-print=overview] .central-project-reports *{visibility:visible!important}body[data-central-report-print=overview] .central-project-reports{position:absolute;inset:0 auto auto 0;width:100%;padding:12mm;background:#fff}body[data-central-report-print=overview] .central-report-actions,body[data-central-report-print=overview] .central-report-page-header>div:first-child>a,body[data-central-report-print=overview] .central-report-card button,body[data-central-report-print=overview] .central-report-modal-backdrop{display:none!important}body[data-central-report-print=detail] *{visibility:hidden!important}body[data-central-report-print=detail] .central-report-modal-backdrop,body[data-central-report-print=detail] .central-report-modal-backdrop *{visibility:visible!important}body[data-central-report-print=detail] .central-report-modal-backdrop{position:static;display:block;padding:0;background:#fff}body[data-central-report-print=detail] .central-report-modal{width:100%;max-height:none;border:0;box-shadow:none}body[data-central-report-print=detail] .central-report-modal>header button,body[data-central-report-print=detail] .central-report-modal>footer,body[data-central-report-print=detail] .central-report-filters{display:none!important}body[data-central-report-print=detail] .central-report-table-wrap{overflow:visible;border:0}body[data-central-report-print=detail] .central-report-table th{position:static}}.brand-ads-page{max-width:1500px;margin:0 auto}.brand-ads-header,.brand-ad-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand-ads-header{margin-bottom:24px}.brand-ads-header p,.brand-ad-section-heading p,.brand-ad-schedule-card>p{color:var(--text-muted);margin-top:5px;font-size:13px}.brand-ad-library{margin-bottom:30px}.brand-ad-section-heading{margin-bottom:14px}.brand-ad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}.brand-ad-card{min-width:0;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px #0f172a0a}.brand-ad-card video{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;background:#0f172a}.brand-ad-card-body{padding:15px}.brand-ad-title-row{display:flex;align-items:start;justify-content:space-between;gap:10px}.brand-ad-title-row h3{overflow-wrap:anywhere}.brand-ad-description{min-height:36px;margin:8px 0 12px;color:var(--text-muted);font-size:12px;line-height:1.5}.brand-ad-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--text-muted);font-size:11px}.brand-ad-actions{display:flex;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.brand-ad-campaign{padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:14px}.brand-ad-selection-count{padding:5px 11px;color:var(--primary);background:var(--primary-dim);border-radius:99px;font-size:12px;font-weight:700}.brand-ad-safe-note{display:flex;gap:11px;margin-bottom:18px;padding:12px 14px;color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:9px;font-size:12px;line-height:1.45}.brand-ad-safe-note>span{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;color:#fff;background:#2563eb;border-radius:50%;font-weight:700}.brand-ad-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.brand-ad-project-panel{min-width:0}.brand-ad-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:12px;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:10px}.brand-ad-filter-search{grid-column:span 2}.brand-ad-filters .form-label{margin-bottom:4px}.brand-ad-reset{align-self:end;justify-content:center;min-height:37px}.brand-ad-project-list{overflow:hidden;border:1px solid var(--border);border-radius:10px}.brand-ad-list-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;color:var(--text-muted);background:var(--bg);border-bottom:1px solid var(--border);font-size:12px}.brand-ad-check{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.brand-ad-check input,.brand-ad-project-row>input,.brand-ad-mode input{accent-color:var(--primary)}.brand-ad-project-row{display:grid;grid-template-columns:auto minmax(150px,1fr) auto;align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}.brand-ad-project-row:last-child{border-bottom:0}.brand-ad-project-row:hover{background:var(--hover)}.brand-ad-project-row.selected{background:var(--primary-dim)}.brand-ad-project-main,.brand-ad-project-status{display:flex;flex-direction:column;gap:3px;min-width:0}.brand-ad-project-main strong,.brand-ad-project-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-ad-project-main small,.brand-ad-project-status small{color:var(--text-muted);font-size:11px}.brand-ad-project-status{align-items:flex-end;max-width:150px}.brand-ad-project-status small{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.brand-ad-schedule-card{position:sticky;top:0;padding:18px;border:1px solid var(--border);border-radius:11px;box-shadow:0 5px 18px #0f172a0f}.brand-ad-schedule-card>p{margin-bottom:18px}.brand-ad-mode{margin-bottom:16px;border:0}.brand-ad-mode legend{margin-bottom:7px;color:var(--text-muted);font-size:12px;font-weight:600}.brand-ad-mode label{display:flex;align-items:start;gap:9px;padding:9px;border:1px solid var(--border);border-radius:8px;cursor:pointer}.brand-ad-mode label+label{margin-top:7px}.brand-ad-mode input{margin-top:3px}.brand-ad-mode span{display:flex;flex-direction:column;gap:3px;font-size:12px}.brand-ad-mode small,.brand-ad-help{color:var(--text-muted);font-size:11px;line-height:1.4}.brand-ad-help{margin-top:5px}.brand-ad-apply{width:100%;justify-content:center;margin-top:8px}.brand-ad-readonly{text-align:center}.brand-ad-file{padding:7px}.brand-ad-modal{width:540px}.brand-ads-page button:focus-visible,.brand-ads-page input:focus-visible,.brand-ads-page select:focus-visible,.brand-ads-page textarea:focus-visible{outline:3px solid rgba(99,102,241,.25);outline-offset:2px}@media(max-width:1180px){.brand-ad-workspace{grid-template-columns:1fr}.brand-ad-schedule-card{position:static}}@media(max-width:820px){.brand-ad-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.brand-ads-header{align-items:flex-start;flex-direction:column}.brand-ads-header .btn{width:100%;justify-content:center}.brand-ad-campaign{padding:14px}.brand-ad-filters{grid-template-columns:1fr}.brand-ad-filter-search{grid-column:auto}.brand-ad-project-row{grid-template-columns:auto minmax(0,1fr)}.brand-ad-project-status{grid-column:2;align-items:flex-start;max-width:none}}.cc-page{display:flex;flex-direction:column;gap:20px;max-width:1400px}.cc-muted{color:var(--text-muted)}.cc-small{font-size:12px}.cc-mono{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:12.5px}.cc-nowrap{white-space:nowrap}.cc-page .form-textarea,.cc-dialog .form-textarea,.cc-page .form-input,.cc-dialog .form-input{font-family:inherit}.cc-pos{color:#047857}.cc-neg{color:#b91c1c}.cc-warn{color:#b45309;font-weight:600}.cc-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:22px 24px;border-radius:16px;background:radial-gradient(120% 140% at 0% 0%,#eef2ff,#f8fafc 55%,#fff);border:1px solid var(--border)}.cc-hero p{margin-top:4px}.cc-eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary);margin-bottom:4px}.cc-hero-filter{display:flex;flex-direction:column;gap:4px;min-width:280px}.cc-hero-filter .form-label{margin-bottom:0}.cc-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border)}.cc-tab{border:none;background:none;padding:10px 16px;font-size:13.5px;font-weight:600;color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,border-color .15s}.cc-tab:hover{color:var(--text)}.cc-tab.active{color:var(--primary);border-bottom-color:var(--primary)}.cc-tab-panel{min-height:300px}.cc-section-toolbar,.cc-filterbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.cc-section-toolbar p,.cc-filterbar p{margin-top:2px;font-size:13px}.cc-filterbar-right{display:flex;align-items:center;gap:12px}.cc-count{margin-left:auto;font-size:12.5px}.cc-segmented{display:inline-flex;background:var(--hover);border:1px solid var(--border);border-radius:10px;padding:3px}.cc-segmented button{border:none;background:none;padding:6px 12px;border-radius:7px;font-size:12.5px;font-weight:600;color:var(--text-muted);cursor:pointer}.cc-segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0f172a1f}.cc-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:18px}.cc-kpi{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 18px}.cc-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--kpi, var(--primary))}.cc-kpi-indigo{--kpi: #6366f1}.cc-kpi-emerald{--kpi: #10b981}.cc-kpi-sky{--kpi: #0ea5e9}.cc-kpi-rose{--kpi: #f43f5e}.cc-kpi-amber{--kpi: #f59e0b}.cc-kpi-slate{--kpi: #64748b}.cc-kpi-label{font-size:12px;font-weight:600;color:var(--text-muted)}.cc-kpi-value{font-size:28px;font-weight:700;margin:6px 0 2px;font-variant-numeric:tabular-nums;min-height:34px;display:flex;align-items:center}.cc-kpi-sub{font-size:12px;color:var(--text-muted);min-height:16px}.cc-chart-card,.cc-table-card{margin-bottom:18px}.cc-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.cc-card-head h3{margin-bottom:2px}.cc-card-head .cc-muted{font-size:12.5px}.cc-chart{width:100%;height:240px}.cc-table th.num,.cc-table td.num{text-align:right;font-variant-numeric:tabular-nums}.cc-table tbody tr.cc-row-click{cursor:pointer}.cc-table tbody tr.cc-row-click:focus-visible td{outline:none;background:var(--primary-dim)}.cc-table tbody tr.selected td{background:var(--primary-dim)}.cc-currency{font-size:11px;color:var(--text-muted);font-weight:600;margin-left:4px}.cc-member-cell{display:flex;align-items:center;gap:10px}.cc-member-name{font-weight:600}.cc-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0e7ff,#c7d2fe);color:#3730a3;font-weight:700;font-size:13px}.cc-avatar-lg{width:44px;height:44px;font-size:17px}.cc-tags{display:flex;flex-wrap:wrap;gap:4px}.cc-tag{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--hover);border:1px solid var(--border);font-size:11.5px;color:#334155}.cc-tag-more{background:var(--primary-dim);color:var(--primary);border-color:#c7d2fe}.cc-pill-count{display:inline-flex;min-width:22px;justify-content:center;padding:1px 7px;border-radius:99px;background:#fef3c7;color:#92400e;font-weight:700;font-size:12px}.cc-action-tag{font-weight:600;font-size:12.5px}.cc-reason{max-width:280px}.cc-details{max-width:340px;color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cc-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:600;white-space:nowrap}.cc-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}.cc-badge-active{background:#d1fae5;color:#065f46}.cc-badge-suspended{background:#fee2e2;color:#991b1b}.cc-badge-closed{background:#e2e8f0;color:#334155}.cc-badge-unverified{background:#fef3c7;color:#92400e}.cc-badge-open{background:#dbeafe;color:#1e40af}.cc-badge-awaiting_member{background:#ede9fe;color:#5b21b6}.cc-badge-resolved{background:#d1fae5;color:#065f46}.cc-badge-unknown{background:#f1f5f9;color:#475569}.cc-search{position:relative;flex:1;min-width:220px;max-width:360px}.cc-search svg{position:absolute;left:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.cc-search .form-input{padding-left:34px}.cc-chips{display:flex;gap:6px}.cc-chips-wrap{flex-wrap:wrap}.cc-chip{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);padding:5px 12px;border-radius:99px;font-size:12.5px;font-weight:600;cursor:pointer;transition:all .15s}.cc-chip:hover{border-color:#c7d2fe;color:var(--text)}.cc-chip.active{background:var(--primary);border-color:var(--primary);color:#fff}.cc-filter-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 12px;border-radius:99px;background:var(--primary-dim);color:var(--primary);font-weight:600;font-size:12.5px}.cc-filter-pill button{border:none;background:#6366f126;color:var(--primary);width:20px;height:20px;border-radius:50%;cursor:pointer;line-height:1}.cc-pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;font-size:12.5px;color:var(--text-muted)}.cc-pagination>div{display:flex;align-items:center;gap:10px}.cc-page-indicator{font-weight:600}.cc-skeleton{display:inline-block;border-radius:6px;background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%);background-size:400% 100%;animation:cc-shimmer 1.3s ease infinite}@keyframes cc-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.cc-skeleton-row:hover td{background:transparent}.cc-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 20px;text-align:center;color:var(--text-muted);background:var(--surface)}.cc-empty svg{width:34px;height:34px;color:#cbd5e1;margin-bottom:4px}.cc-empty-title{font-weight:600;color:#334155;font-size:14px}.cc-empty-hint{font-size:12.5px}.cc-drawer-layer{position:fixed;inset:0;z-index:90}.cc-drawer-scrim{position:absolute;inset:0;background:#0f172a52;animation:cc-fade .15s ease}.cc-drawer{position:absolute;top:0;right:0;bottom:0;width:min(620px,100vw);background:var(--bg);box-shadow:-20px 0 50px #0f172a2e;display:flex;flex-direction:column;animation:cc-slide .2s ease}@keyframes cc-slide{0%{transform:translate(40px);opacity:0}to{transform:none;opacity:1}}@keyframes cc-fade{0%{opacity:0}to{opacity:1}}.cc-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 24px;background:var(--surface);border-bottom:1px solid var(--border)}.cc-drawer-title{display:flex;align-items:center;gap:14px}.cc-drawer-title h2{font-size:18px}.cc-drawer-sub{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:12.5px}.cc-drawer-body{flex:1;overflow-y:auto;padding:18px 24px 32px;display:flex;flex-direction:column;gap:14px}.cc-drawer-skeleton{display:flex;flex-direction:column;gap:14px}.cc-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 18px}.cc-section h3{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:12px}.cc-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}.cc-profile-grid>:first-child{grid-column:1 / -1}.cc-kv-block{display:flex;flex-direction:column;gap:3px;font-size:13.5px}.cc-kv-label{font-size:11.5px;font-weight:600;color:var(--text-muted)}.cc-email-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cc-revealed{background:#fef9c3;padding:2px 8px;border-radius:6px;color:#713f12}.cc-inline-alert{margin:12px 0 0}.cc-wallets{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.cc-wallet{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;background:linear-gradient(180deg,#fff,#f8fafc)}.cc-wallet .btn{align-self:flex-start;margin-top:6px}.cc-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.cc-wallet-balance{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.cc-wallet-meta{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--text-muted)}.cc-level{font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:#fef3c7;color:#92400e;text-transform:capitalize}.cc-ledger{display:flex;flex-direction:column}.cc-ledger-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border)}.cc-ledger-row:last-child{border-bottom:none}.cc-ledger-desc{font-weight:600;font-size:13px}.cc-ledger-amount{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums}.cc-mini-list{display:flex;flex-direction:column;gap:6px}.cc-mini-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);cursor:pointer;text-align:left;font:inherit;color:inherit}.cc-mini-item:hover{border-color:#c7d2fe;background:var(--primary-dim)}.cc-mini-title{font-weight:600;font-size:13px}.cc-actions{display:flex;gap:8px;flex-wrap:wrap}.cc-danger-zone{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #fecaca;background:#fff5f5;border-radius:10px}.cc-danger-zone strong{color:#991b1b;font-size:13px}.cc-dialog-backdrop{z-index:120}.cc-dialog{width:520px}.cc-dialog-danger .modal-header h2{color:#991b1b}.cc-dialog-text{font-size:13.5px;color:#334155;margin-bottom:14px;line-height:1.5}.cc-field-hint{font-size:11.5px;color:var(--text-muted);margin-top:4px}.cc-field-error{color:var(--danger)}.cc-kv{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px dashed var(--border);font-size:13px}.cc-kv>span:first-child{color:var(--text-muted)}.cc-kv code{font-size:12px;word-break:break-all}.cc-confirm-summary .alert{margin-top:12px}.btn-danger-solid{background:var(--danger);color:#fff}.btn-danger-solid:hover{background:#dc2626}.cc-toasts{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;gap:8px;z-index:200}.cc-toast{display:flex;align-items:center;gap:12px;min-width:260px;max-width:420px;padding:11px 14px;border-radius:10px;font-size:13px;box-shadow:0 10px 30px #0f172a26;animation:cc-slide .2s ease}.cc-toast button{margin-left:auto;border:none;background:none;cursor:pointer;font-size:16px;color:inherit;opacity:.7}.cc-toast-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.cc-toast-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.cc-toast-info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.cc-inbox{display:grid;grid-template-columns:360px 1fr;gap:16px;height:calc(100vh - 290px);min-height:520px}.cc-inbox-list,.cc-inbox-detail{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.cc-inbox-filters{display:flex;flex-direction:column;gap:10px;padding:14px;border-bottom:1px solid var(--border)}.cc-inbox-filters .cc-search{max-width:none}.cc-inbox-count{padding:8px 14px;border-bottom:1px solid var(--border);background:var(--bg)}.cc-inbox-items{overflow-y:auto;flex:1}.cc-inbox-item{display:flex;flex-direction:column;gap:6px;width:100%;padding:12px 14px;border:none;border-bottom:1px solid var(--border);background:none;text-align:left;cursor:pointer;font:inherit;color:inherit;border-left:3px solid transparent}.cc-inbox-item:hover{background:var(--hover)}.cc-inbox-item.active{background:var(--primary-dim);border-left-color:var(--primary)}.cc-inbox-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.cc-inbox-subject{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cc-unread-dot{width:8px;height:8px;border-radius:50%;background:var(--primary);flex-shrink:0;box-shadow:0 0 0 3px var(--primary-dim)}.cc-cat{font-size:11.5px;font-weight:600;color:#475569;background:#f1f5f9;padding:1px 8px;border-radius:6px}.cc-thread{display:flex;flex-direction:column;height:100%;min-height:0}.cc-thread-loading{display:flex;flex-direction:column;gap:14px;padding:20px}.cc-thread-head{display:flex;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--border)}.cc-thread-head h2{font-size:17px;margin:4px 0}.cc-thread-meta{display:flex;align-items:center;gap:8px;font-size:12px}.cc-thread-status{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.cc-quick-status{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.cc-messages{flex:1;overflow-y:auto;padding:18px 20px;display:flex;flex-direction:column;gap:12px;background:#f8fafc}.cc-bubble-row{display:flex}.cc-bubble-row.staff{justify-content:flex-end}.cc-bubble{max-width:72%;padding:10px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:0 1px 2px #0f172a0a}.cc-bubble-row.member .cc-bubble{border-bottom-left-radius:4px}.cc-bubble-row.staff .cc-bubble{background:var(--primary);color:#fff;border-color:var(--primary);border-bottom-right-radius:4px}.cc-bubble-author{font-size:11.5px;font-weight:700;margin-bottom:4px;opacity:.85}.cc-bubble-body{white-space:pre-wrap;word-break:break-word;font-size:13.5px;line-height:1.5}.cc-bubble-time{font-size:11px;opacity:.7;margin-top:6px;text-align:right}.cc-composer{border-top:1px solid var(--border);padding:14px 20px;background:var(--surface)}.cc-composer .form-textarea{min-height:84px}.cc-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap}.cc-composer-foot>.cc-muted{flex:1;min-width:220px}.cc-composer-actions{display:flex;align-items:center;gap:8px}.cc-composer-actions .form-select{width:auto;padding:7px 10px;font-size:13px}.cc-inline-label{font-size:12px;color:var(--text-muted);font-weight:600;white-space:nowrap}.cc-link{font:inherit;border:none;background:none;padding:0;color:#1d4ed8;font-weight:600;cursor:pointer}.cc-link:hover{text-decoration:underline}@media(max-width:1100px){.cc-inbox{grid-template-columns:1fr;height:auto}.cc-inbox-items{max-height:360px}.cc-thread{min-height:560px}}@media(max-width:760px){.cc-hero{flex-direction:column;align-items:stretch}.cc-hero-filter{min-width:0}.cc-profile-grid{grid-template-columns:1fr}.cc-thread-head{flex-direction:column}.cc-thread-status{align-items:flex-start}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--primary: #6366f1;--primary-dim: #eef2ff;--bg: #f8fafc;--surface: #ffffff;--border: #e2e8f0;--hover: #f1f5f9;--text: #1e293b;--text-muted: #64748b;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--info: #3b82f6;font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-size:14px}body{background:var(--bg);color:var(--text)}h1{font-size:24px;font-weight:700}h2{font-size:18px;font-weight:600}h3{font-size:15px;font-weight:600}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.page-title{font-size:22px;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;border:none;cursor:pointer;font-size:13px;font-weight:500;transition:all .15s;white-space:nowrap}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:#4f46e5}.btn-secondary{background:var(--hover);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--border)}.btn-danger{background:#fee2e2;color:var(--danger)}.btn-danger:hover{background:#fecaca}.btn-sm{padding:5px 11px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.badge{display:inline-block;padding:2px 10px;border-radius:99px;font-size:11px;font-weight:600;text-transform:capitalize}.badge-active{background:#d1fae5;color:#065f46}.badge-trial{background:#dbeafe;color:#1e40af}.badge-suspended{background:#fee2e2;color:#991b1b}.badge-terminated{background:#f3f4f6;color:#374151}.badge-ok{background:#d1fae5;color:#065f46}.badge-warning{background:#fef3c7;color:#92400e}.badge-error{background:#fee2e2;color:#991b1b}.badge-unreachable{background:#f3f4f6;color:#374151}.table-wrap{overflow-x:auto;border-radius:10px;border:1px solid var(--border)}table{width:100%;border-collapse:collapse;background:var(--surface)}th{text-align:left;padding:11px 16px;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--bg);border-bottom:1px solid var(--border);white-space:nowrap}td{padding:12px 16px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle}tr:last-child td{border-bottom:none}tr:hover td{background:var(--hover)}.form-group{margin-bottom:16px}.form-label{display:block;font-size:12px;font-weight:600;color:var(--text-muted);margin-bottom:5px}.form-input,.form-select,.form-textarea{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--surface);color:var(--text);transition:border-color .15s}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--primary)}.form-textarea{resize:vertical;min-height:80px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:var(--surface);border-radius:14px;padding:28px;width:560px;max-width:95vw;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #00000026}.client-editor-modal{width:900px;max-height:min(88vh,760px)}.client-project-summary{border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#f2f7ff);border-radius:12px;padding:12px;margin-bottom:16px}.project-summary-header{color:#1d4ed8;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}.project-summary-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.project-summary-block{border:1px solid var(--border);border-radius:10px;background:#fff;padding:10px}.project-summary-block.active{border-color:#a7f3d0;background:#ecfdf5}.project-summary-block.inactive{border-color:#e5e7eb;background:#f8fafc}.project-summary-title{font-size:12px;font-weight:700;margin-bottom:8px}.project-summary-empty{font-size:12px;color:var(--text-muted)}.project-chip-list{display:flex;flex-wrap:wrap;gap:6px}.project-chip{border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600}.project-chip-active{background:#d1fae5;color:#065f46}.project-chip-inactive{background:#e2e8f0;color:#334155}.client-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.client-edit-section{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}.client-edit-section-title{font-size:13px;font-weight:700;margin-bottom:10px;color:#0f172a;display:flex;align-items:center;gap:8px}.client-edit-section-title:before{content:"";width:9px;height:9px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 3px var(--primary-dim)}.client-edit-footer{justify-content:space-between}.client-name-link{border:none;background:transparent;color:#1d4ed8;cursor:pointer;font-weight:700;padding:0;font-size:13px;text-align:left}.client-name-link:hover{color:#1e40af;text-decoration:underline}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:var(--text-muted);line-height:1}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px 20px}.stat-label{font-size:12px;color:var(--text-muted);margin-bottom:6px}.stat-value{font-size:28px;font-weight:700}.stat-sub{font-size:12px;color:var(--text-muted);margin-top:4px}.splash{display:flex;align-items:center;justify-content:center;height:100vh;font-size:18px;color:var(--text-muted)}.empty-state{text-align:center;padding:48px 20px;color:var(--text-muted);font-size:15px}.loading{text-align:center;padding:40px;color:var(--text-muted)}.alert{padding:11px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.alert-success{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7}.alert-info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}@media(max-width:980px){.client-editor-modal{width:min(95vw,700px)}.client-edit-grid,.project-summary-columns{grid-template-columns:1fr}}@media(max-width:640px){.client-edit-footer{flex-direction:column;align-items:stretch;gap:10px}.client-edit-footer>div{display:flex;flex-direction:column;gap:8px}}
