@font-face {
  font-family:"Manrope"; src:url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight:200 800; font-style:normal; font-display:swap;
}
*{box-sizing:border-box}
html{background:var(--nav-bg);color:var(--text);font-family:"Manrope","Segoe UI",sans-serif;font-synthesis:none}
body{margin:0;font-size:var(--type-body);line-height:1.5}
button,input,select,textarea{font:inherit}
button{color:inherit;border:0;background:none;cursor:pointer;transition:background-color var(--duration-fast) ease,border-color var(--duration-fast) ease,box-shadow var(--duration-fast) ease}
select{cursor:pointer}
button:disabled{opacity:.38;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
a{color:inherit}
svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button svg{pointer-events:none}
[data-icon]{display:inline-flex}
[hidden]{display:none!important}
.auth-screen{min-height:100dvh;display:grid;place-items:center;position:relative;padding:100px 20px 70px;background:var(--nav-bg);color:var(--nav-text)}
.auth-brand{position:absolute;top:27px;left:22px;margin:0}
.auth-card{width:min(440px,100%);padding:38px;background:var(--surface);color:var(--text);border-radius:var(--radius-lg);box-shadow:0 18px 50px #0d13235c}
.auth-card h1{margin:0 0 8px;font-size:29px;line-height:1.2;letter-spacing:-.7px;font-weight:750}
.auth-card p{margin:0 0 24px;font-size:13px;line-height:1.65;color:var(--secondary)}
.auth-card form{display:flex;flex-direction:column;gap:9px}
.auth-card label{font-size:12px;font-weight:700;color:var(--gray-700);margin-top:9px}
.auth-card input{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--input-border);border-radius:var(--input-radius);background:var(--surface);color:var(--text);font-size:13px}
.auth-card form .button{width:100%;margin-top:18px}
.auth-link{display:inline-flex;align-items:center;min-height:44px;margin-top:13px;padding:0;color:var(--accent);font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.auth-card .auth-error,.auth-card .auth-message{margin:18px 0 0;padding:12px 14px;border-radius:var(--radius-sm);font-size:12px}
.auth-error{background:var(--status-red-bg);color:var(--status-red-fg)!important}
.auth-message{background:var(--status-green-bg);color:var(--status-green-fg)!important}
.auth-footnote{position:absolute;bottom:24px;margin:0;color:var(--nav-muted);font-size:11px}
.workspace-placeholder{padding:28px;min-height:220px}
.workspace-placeholder h2{margin:0 0 7px;font-size:18px;letter-spacing:-.3px}
.workspace-placeholder p{margin:0;color:var(--secondary);font-size:13px}
@media (max-width:600px){.auth-screen{padding:108px 16px 48px;align-items:start}.auth-brand{left:12px;top:20px}.auth-card{padding:28px 24px}.auth-card h1{font-size:25px}.auth-footnote{position:static;margin-top:28px;text-align:center}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-70px;left:20px;z-index:100;background:var(--surface);padding:12px;border-radius:var(--radius-sm)}
.skip-link:focus{top:10px}

/* The frame separates permanent project context from the working surface. */
.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh;padding:12px 12px 12px 0}
.sidebar{position:sticky;top:12px;height:calc(100dvh - 24px);display:flex;flex-direction:column;padding:24px 16px 16px;color:var(--nav-text);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--nav-border) transparent}
.brand{display:flex;align-items:center;gap:11px;padding:0 13px;margin-bottom:41px}
.brand strong{display:flex;align-items:center;gap:9px;font-size:28px;line-height:1.05;letter-spacing:-1.7px;font-weight:800;color:var(--surface)}
.brand-label{font-size:9px;line-height:17px;padding:0 5px;letter-spacing:.4px;font-weight:650;border:1px solid var(--nav-border);border-radius:4px;color:var(--nav-muted)}
.brand div>span{display:block;font-size:8px;letter-spacing:1.25px;margin-top:9px;color:var(--nav-muted)}
.brand-mark{display:flex;align-items:flex-end;gap:3px;height:33px;color:var(--blue-100)}
.brand-mark i{display:block;width:6px;background:currentColor;transform:skewY(-14deg)}
.brand-mark i:nth-child(1){height:22px}.brand-mark i:nth-child(2){height:32px}.brand-mark i:nth-child(3){height:26px}
.workspace-caption{font-size:10px;font-weight:650;letter-spacing:1.15px;text-transform:uppercase;color:var(--nav-muted);padding:0 13px;margin-bottom:13px}
.project-nav,.main-nav{display:flex;flex-direction:column;gap:6px}
.project-button{width:100%;display:flex;align-items:center;gap:10px;min-height:57px;padding:10px;border:1px solid transparent;border-radius:var(--radius-md);text-align:left;color:var(--nav-text)}
.project-button[aria-current=true]{background:var(--nav-surface);border-color:var(--nav-border);box-shadow:inset 0 1px 0 #ffffff05}
.project-symbol{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:9px;font-size:11px;font-weight:700;background:var(--ink-800);color:var(--nav-muted);border:1px solid var(--nav-border)}
.project-button[aria-current=true] .project-symbol{background:var(--blue-100);color:var(--ink-800);border-color:var(--blue-100)}
.project-name{font-size:13px;font-weight:550;line-height:1.45}
.project-button[aria-current=true] .project-name{font-weight:650;color:var(--surface)}
.selected-tick{margin-left:auto;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--nav-border);color:var(--blue-100);flex-shrink:0}
.selected-tick svg{width:11px;height:11px;stroke-width:2.5}
.section-caption{margin-top:34px}
.main-nav{gap:5px}
.main-nav button{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;padding:10px 13px;border-radius:10px;text-align:left;font-size:13px;color:var(--nav-muted)}
.main-nav button.active{color:var(--ink-900);background:var(--blue-100);font-weight:750;box-shadow:0 2px 8px #0000000a}
.main-nav button.active>[data-icon]{color:var(--accent)}
.main-nav svg{width:19px;height:19px}
.nav-count{margin-left:auto;min-width:25px;text-align:center;padding:2px 6px;border-radius:6px;background:var(--surface);color:var(--accent);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.sidebar-bottom{margin-top:auto;padding:36px 11px 0}
.workspace-mode{display:flex;align-items:center;gap:7px;font-size:11px}
.workspace-mode strong{font-weight:600;color:var(--nav-text)}
.workspace-mode>span:last-child{font-size:8px;letter-spacing:.3px;text-transform:uppercase;padding:2px 5px;background:var(--nav-surface);border:1px solid var(--nav-border);border-radius:4px;color:var(--nav-muted);margin-left:auto}
.save-dot{width:5px;height:5px;background:var(--status-green-dot);border-radius:50%;flex-shrink:0}
.local-note{font-size:11px;color:var(--nav-muted);margin:8px 0 19px}
.help-button{display:flex;gap:9px;align-items:center;width:100%;min-height:46px;padding:14px 0 0;border-top:1px solid var(--nav-border);font-size:12px;color:var(--nav-muted)}
.help-button>span:last-child{margin-left:auto}.help-button svg{width:16px;height:16px}
.mobile-project-label,.main-nav .mobile-help{display:none}
.mobile-logout-button{display:none}
.nav-label-short{display:none}

.main-content{min-width:0;background:var(--canvas);border-radius:var(--radius-shell);overflow:clip;outline:0}
.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 30px;border-bottom:1px solid var(--border);background:var(--surface)}
.breadcrumb{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.breadcrumb strong{font-weight:650;color:var(--gray-700)}
.breadcrumb-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--border);border-radius:8px;color:var(--gray-600);margin-right:1px}
.breadcrumb-icon svg{width:15px;height:15px}.breadcrumb-divider svg{width:12px;height:12px;color:var(--gray-400)}
.topbar-right{display:flex;align-items:center;gap:12px}
.test-label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:550;color:var(--secondary);background:var(--gray-50);padding:5px 9px;border:1px solid var(--border);border-radius:6px}
.test-label>span:first-child{width:5px;height:5px;border-radius:50%;background:var(--status-green-dot)}
.staging-note{margin:0 0 16px;padding:9px 13px;border:1px solid #e4d5ad;border-radius:9px;background:#fff9eb;color:#735b25;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.staging-note[hidden]{display:none}
.staging-note button{min-height:30px;padding:5px 10px;border:1px solid #d9c690;border-radius:7px;background:#fff;color:#674b16;font-size:11px;font-weight:750}
.staging-note button:hover{background:#fff2cf}.staging-note button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;flex-shrink:0;padding:0;border:1px solid transparent;border-radius:9px;color:var(--muted)}
.icon-button svg{width:17px;height:17px}.topbar-help{width:30px;height:30px}
.page-content{padding:23px 30px 18px;max-width:1600px;margin:auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.eyebrow{font-size:10px;font-weight:650;color:var(--muted);display:block;letter-spacing:.75px;text-transform:uppercase;margin-bottom:5px}
.title-line{display:flex;align-items:center;gap:11px}
.page-heading h1{font-size:var(--type-title);line-height:1.22;letter-spacing:-1.3px;font-weight:750;margin:0}
.title-count{display:grid;place-items:center;min-width:30px;height:26px;font-size:12px;font-weight:700;color:var(--gray-600);background:var(--gray-200);padding:0 8px;border-radius:8px;font-variant-numeric:tabular-nums}
.page-heading p{color:var(--muted);font-size:12px;margin:8px 0 0}
body[data-view=leads] .page-heading p{display:none}
.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border-radius:var(--button-radius);font-size:12px;font-weight:700;white-space:nowrap;border:1px solid transparent;transition:background-color var(--duration-fast) ease,box-shadow var(--duration-fast) ease,transform var(--duration-fast) var(--ease-out)}
.button svg{height:17px;width:17px;stroke-width:2}
.button-primary{background:var(--button-bg);color:var(--button-fg);box-shadow:var(--shadow-button);border-color:#324bc330}
#new-lead{padding-left:13px;gap:10px}
#new-lead>[data-icon]{display:grid;place-items:center;background:#ffffff1f;border-radius:6px;width:24px;height:24px}
#new-lead svg{width:16px;height:16px}
.button-secondary{background:var(--surface);border-color:var(--gray-300);color:var(--gray-700);box-shadow:0 1px 2px #27366005}
.button:active:not(:disabled){transform:translateY(1px)}

.panel{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:var(--panel-radius);overflow:hidden;box-shadow:var(--shadow-panel)}
.status-tabs{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:12px 15px;border-bottom:1px solid var(--border);scrollbar-width:thin;scrollbar-color:var(--gray-300) transparent}
.status-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 9px;white-space:nowrap;font-size:12px;color:var(--secondary);border:1px solid transparent;border-radius:8px;flex-shrink:0}
.status-tab[aria-pressed=true]{color:var(--text);font-weight:750;background:var(--gray-100);border-color:var(--gray-200);box-shadow:0 1px 2px #27366004}
.status-tab-count{font-size:10px;min-width:18px;padding:0 4px;line-height:18px;border-radius:4px;background:var(--gray-100);color:var(--gray-500);font-weight:650;font-variant-numeric:tabular-nums}
.status-tab[aria-pressed=true] .status-tab-count{background:var(--ink-900);color:var(--surface)}
.status-tab:focus-visible{outline-offset:-2px}
.filters{padding:16px 20px;display:grid;grid-template-columns:minmax(190px,1fr) minmax(170px,224px) minmax(150px,180px);gap:12px}
.filter-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.filter-field>span:first-child{font-size:11px;font-weight:650;color:var(--secondary)}
.filter-field select,.search-field{width:100%;height:40px;min-width:0;border:1px solid var(--input-border);border-radius:var(--input-radius);background:var(--input-bg);color:var(--gray-700);box-shadow:0 1px 2px #27366003}
.filter-field select{padding:0 28px 0 11px;font-size:12px;max-width:100%}
.search-field{display:flex;align-items:center;gap:9px;padding-left:11px}
.search-field>span{color:var(--gray-400);display:flex}.search-field svg{width:17px;height:17px}
.search-field input{width:100%;height:36px;min-width:0;border:0;background:none;padding:0;font-size:13px;color:var(--text);outline:none}
.search-field:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px var(--accent-soft)}
.search-field input:focus-visible{outline:0}
input::placeholder,textarea::placeholder{color:var(--gray-500);opacity:1}
kbd{font-family:inherit;font-size:10px;min-width:18px;text-align:center;border:1px solid var(--border);border-radius:4px;color:var(--gray-400);background:var(--gray-50);margin-right:9px;line-height:20px}
.filter-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 15px;font-size:11px}
.filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.filter-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;background:var(--accent-soft);border:1px solid var(--blue-100);border-radius:6px;color:var(--accent-hover);overflow-wrap:anywhere}
.filter-chip span{color:var(--gray-600)}
.clear-filters{display:flex;align-items:center;gap:5px;white-space:nowrap;min-height:32px;color:var(--accent);font-size:11px;font-weight:600;padding:2px}
.clear-filters svg{width:13px;height:13px}

.table-wrap{overflow-x:auto}
.leads-table,.sources-table{width:100%;border-collapse:collapse;text-align:left}
.leads-table th{font-size:11px;letter-spacing:.15px;color:var(--muted);font-weight:600;background:var(--table-head-bg);padding:12px 16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap}
.leads-table th:first-child{padding-left:20px;width:32%}
.leads-table th:nth-child(2){width:24%}.leads-table th:nth-child(3){width:23%}.leads-table th:nth-child(4){width:16%}
.leads-table td{padding:11px 16px;border-bottom:1px solid var(--gray-100);font-size:12px;color:var(--secondary)}
.leads-table td:first-child{padding-left:20px}.leads-table td:last-child{padding:6px 12px 6px 0}
.leads-table tr:last-child td{border-bottom:0}
.client-button{display:flex;gap:11px;align-items:center;text-align:left;padding:0;min-height:44px;width:100%}
.avatar{display:grid;place-items:center;border-radius:11px;font-weight:700;flex-shrink:0}
.lead-avatar{width:35px;height:35px;background:var(--avatar-color,var(--avatar-0));color:var(--gray-600);font-size:10px;letter-spacing:.1px}
.client-name{font-size:14px;font-weight:700;color:var(--gray-700);display:block;line-height:1.5;overflow-wrap:anywhere}
.client-phone{font-size:13px;color:var(--muted);display:block;margin-top:2px;white-space:nowrap;font-weight:400;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.source-inline{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:var(--secondary);line-height:1.45}
.channel-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;flex-shrink:0;background:var(--gray-100);color:var(--gray-500)}
.channel-icon svg{width:14px;height:14px}
.channel-context,.channel-social{background:var(--channel-violet-bg);color:var(--channel-violet-fg)}
.channel-website,.channel-call{background:var(--channel-blue-bg);color:var(--channel-blue-fg)}
.channel-outdoor{background:var(--channel-amber-bg);color:var(--channel-amber-fg)}
.channel-classifieds,.channel-referral{background:var(--channel-green-bg);color:var(--channel-green-fg)}
.status-control{display:inline-flex;align-items:center;position:relative;max-width:100%;border-radius:7px}
.status-indicator{position:absolute;left:10px;pointer-events:none;width:5px;height:5px;background:var(--status-dot);border-radius:50%;z-index:1}
.status-control:after{content:"";position:absolute;right:10px;top:50%;width:5px;height:5px;border-right:1.5px solid var(--status-fg);border-bottom:1.5px solid var(--status-fg);transform:translateY(-70%) rotate(45deg);pointer-events:none;opacity:.7}
.status-select{appearance:none;-webkit-appearance:none;width:178px;max-width:100%;min-height:34px;padding:6px 24px 6px 23px;border:1px solid transparent;border-radius:7px;font-size:12px;font-weight:600;background:var(--status-bg);color:var(--status-fg)}
.status-select option{color:var(--text);background:var(--surface);font-weight:400}
.status-badge{border-radius:6px;font-size:11px;font-weight:650;background:var(--status-bg);color:var(--status-fg);display:inline-block;padding:5px 8px}
.tone-blue{--status-bg:var(--status-blue-bg);--status-fg:var(--status-blue-fg);--status-dot:var(--status-blue-dot)}
.tone-violet{--status-bg:var(--status-violet-bg);--status-fg:var(--status-violet-fg);--status-dot:var(--status-violet-dot)}
.tone-amber{--status-bg:var(--status-amber-bg);--status-fg:var(--status-amber-fg);--status-dot:var(--status-amber-dot)}
.tone-green{--status-bg:var(--status-green-bg);--status-fg:var(--status-green-fg);--status-dot:var(--status-green-dot)}
.tone-gray{--status-bg:var(--status-gray-bg);--status-fg:var(--status-gray-fg);--status-dot:var(--status-gray-dot)}
.tone-red{--status-bg:var(--status-red-bg);--status-fg:var(--status-red-fg);--status-dot:var(--status-red-dot)}
.created-cell{font-size:11px!important;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--secondary)!important}
.created-cell span{font-size:10px;display:block;color:var(--muted);margin-top:4px}
.row-open{width:28px;height:28px;color:var(--gray-400);border-radius:50%}.row-open svg{width:15px;height:15px}
.list-footer{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;font-size:11px;color:var(--muted)}
.list-footer-info{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.sort-control select{border:0;border-left:1px solid var(--border);border-radius:0;background:var(--surface);font-size:11px;color:var(--secondary);padding-left:14px;min-height:24px;max-width:170px}
.pagination{display:flex;gap:7px;align-items:center;flex-shrink:0}
.pagination>span{font-size:11px;min-width:34px;text-align:center;color:var(--secondary);font-variant-numeric:tabular-nums}
.pagination .icon-button{border:1px solid var(--border);width:30px;height:30px;border-radius:7px;color:var(--secondary)}
.empty-state{text-align:center;padding:46px 20px 50px}
.empty-icon{display:inline-grid;place-items:center;width:54px;height:54px;background:var(--accent-soft);border:1px solid var(--blue-100);border-radius:17px;color:var(--blue-500);box-shadow:0 5px 10px #425bd808}
.empty-icon svg{width:25px;height:25px}
.empty-state h3{font-size:18px;font-weight:750;letter-spacing:-.4px;margin:18px 0 7px}
.empty-state p{font-size:13px;color:var(--muted);margin:0 auto 22px;max-width:360px;line-height:1.7}
.page-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:17px 2px 0;color:var(--muted);font-size:10px}

.metrics{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:16px;margin-bottom:22px}
.report-metric{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 22px;box-shadow:var(--shadow-panel)}
.report-metric-label{font-size:11px;font-weight:550;color:var(--muted);display:block;margin-bottom:11px}
.report-metric strong{font-size:34px;line-height:1.2;font-weight:750;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}
.report-metric small{display:block;margin-top:8px;font-size:11px;color:var(--muted)}
.report-metric:first-child{background:var(--ink-900);border-color:var(--ink-900);color:var(--surface)}
.report-metric:first-child .report-metric-label,.report-metric:first-child small{color:var(--nav-muted)}
.report-metric:first-child:after{content:"";position:absolute;width:88px;height:88px;right:-18px;top:-18px;border:20px solid #ffffff04;border-radius:50%;pointer-events:none}
.report-metric:last-child{background:var(--accent-soft);border-color:var(--blue-100)}
.report-metric .metric-source-name{font-size:18px;letter-spacing:-.5px;line-height:1.6;color:var(--gray-700)}
.report-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 22px}
.report-heading h2{font-size:15px;font-weight:750;letter-spacing:-.35px;margin:0}
.report-heading p{font-size:11px;color:var(--muted);margin:5px 0 0}
.report-hint{font-size:10px;color:var(--muted);max-width:210px;text-align:right}
.sources-table th{font-size:10px;color:var(--muted);background:var(--table-head-bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-weight:600;padding:13px 16px;white-space:nowrap}
.sources-table td{font-size:13px;padding:17px 16px;border-bottom:1px solid var(--gray-100);color:var(--secondary);font-variant-numeric:tabular-nums}
.sources-table th:first-child,.sources-table td:first-child{padding-left:22px}.sources-table td:first-child{width:30%}
.sources-table td:not(:first-child),.sources-table th:not(:first-child){text-align:center}
.source-name-button{display:flex;gap:11px;align-items:center;min-height:34px;font-size:12px;color:var(--gray-700);padding:0;text-align:left;font-weight:650}
.source-name-button>svg{width:13px;height:13px;color:var(--gray-400)}
.source-icon{width:32px;height:32px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--blue-500)}
.source-icon svg{width:17px;height:17px}
.source-count-main{font-weight:750;color:var(--text)!important;font-size:14px!important}
.share-cell{min-width:100px}.share-value{display:block;margin-bottom:7px;font-size:11px;font-weight:600}
.share-track{display:block;margin:auto;max-width:82px;height:4px;background:var(--gray-100);border-radius:4px;overflow:hidden}
.share-fill{display:block;height:100%;background:var(--blue-500);border-radius:4px}
.source-table-note{font-size:10px;color:var(--muted);line-height:1.7;margin:0;padding:16px 22px}.sources-table tr:last-child td{border-bottom:0}

dialog{color:var(--text);border:1px solid var(--border);padding:0;border-radius:20px;box-shadow:var(--shadow-dialog);max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--gray-300) transparent}
dialog::backdrop{background:#121a3157;backdrop-filter:blur(4px)}
dialog[open]{animation:dialog-in var(--duration-dialog) var(--ease-out)}
.form-dialog{width:min(600px,calc(100% - 32px));background:var(--surface)}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:25px 28px 21px;border-bottom:1px solid var(--border);background:var(--surface-subtle)}
.dialog-heading h2{font-size:24px;font-weight:750;letter-spacing:-.8px;margin:8px 0 0;line-height:1.3}
.project-context{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:650;color:var(--accent);line-height:1.5;background:var(--accent-soft);padding:3px 7px;border-radius:5px}
.dialog-heading .icon-button{margin:-5px -8px 0 0;background:var(--surface);border:1px solid var(--border)}
.form-content{padding:0 28px 25px}.form-intro{font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0 22px}
.contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0;margin:0;border:0;min-width:0}.contact-fields>div{min-width:0}
.field-label{display:block;font-size:12px;font-weight:650;margin:21px 0 8px;color:var(--gray-700)}.contact-fields .field-label{margin-top:0}
.field-label>span{color:var(--accent);margin-left:2px}.field-label>.optional{font-weight:450;color:var(--muted);font-size:10px;margin-left:6px}
.form-dialog input,.form-dialog select,.form-dialog textarea{width:100%;border:1px solid var(--input-border);border-radius:9px;background:var(--input-bg);padding:11px 12px;color:var(--gray-700);font-size:13px;min-height:44px;box-shadow:0 1px 2px #27366003}
.form-dialog textarea{resize:vertical;min-height:90px;max-height:200px;line-height:1.7}
.form-dialog [aria-invalid=true]{border-color:var(--status-red-dot);background:var(--status-red-bg)}
.field-error{font-size:11px;color:var(--status-red-fg);line-height:1.6;margin:7px 0 0}.field-error:empty{display:none}
.field-help{font-size:10px;color:var(--muted);margin:7px 0 0}
.new-status-note{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin:13px 0 0}
.status-dot{width:5px;height:5px;border-radius:50%;background:var(--status-dot,var(--status-fg))}
.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:18px 28px;border-top:1px solid var(--border);background:var(--surface);position:sticky;bottom:0;z-index:1}
.required-note{font-size:10px;color:var(--muted);margin-right:auto}
.detail-dialog{margin:0 0 0 auto;inset:0 0 0 auto;width:540px;max-width:100%;height:100dvh;max-height:100dvh;border-radius:22px 0 0 22px;border-top:0;border-right:0;border-bottom:0;background:var(--surface)}
.detail-heading{position:sticky;top:0;z-index:2;background:var(--surface);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);font-size:10px;color:var(--muted)}
.detail-heading strong{display:block;color:var(--gray-700);font-weight:650;font-size:11px;margin-top:4px}
.detail-heading .icon-button{background:var(--gray-50);border-color:var(--border)}
.detail-person{padding:30px 28px 25px}.person-line{display:flex;align-items:center;gap:15px}.person-line>.avatar{width:52px;height:52px;font-size:14px;border-radius:16px}.person-line>div{min-width:0}
.detail-person h2{font-size:24px;line-height:1.35;font-weight:750;letter-spacing:-.7px;margin:0 0 7px;overflow-wrap:anywhere}
.detail-phone{font-size:14px;color:var(--muted);text-decoration:none;font-variant-numeric:tabular-nums;display:inline-flex;align-items:center;gap:6px}.detail-phone svg{width:14px;height:14px}
.detail-actions{display:flex;align-items:flex-end;gap:12px;margin-top:25px}
.detail-status{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0;font-size:11px;font-weight:650;color:var(--secondary)}
.detail-status .status-control,.detail-status .status-select{width:100%}.detail-status .status-select{min-height:44px;font-size:12px;padding-left:26px}.detail-status .status-indicator{left:12px}
.detail-actions .button{font-size:11px;min-height:44px}
.demo-record{font-size:10px;color:var(--muted);margin:18px 0 0}
.detail-meta{margin:0;display:grid;grid-template-columns:1.1fr 1fr;gap:20px;padding:23px 28px;background:var(--surface-subtle);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.detail-meta dt{font-size:10px;color:var(--muted);margin-bottom:8px}.detail-meta dd{margin:0;font-size:12px;color:var(--gray-700);font-weight:550}.detail-meta .source-inline{font-size:12px}
.detail-section{padding:25px 28px;border-bottom:1px solid var(--border)}
.detail-section h3{font-size:13px;font-weight:750;color:var(--gray-700);margin:0 0 15px}
.detail-comment{font-size:13px;color:var(--secondary);line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.history-list{list-style:none;padding:0;margin:0}
.history-list li{position:relative;padding-left:23px;padding-bottom:22px;font-size:12px;color:var(--secondary);line-height:1.7;overflow-wrap:anywhere}
.history-list li:before{content:"";position:absolute;left:0;top:6px;height:8px;width:8px;background:var(--gray-300);border:2px solid var(--surface);box-shadow:0 0 0 1px var(--gray-300);border-radius:50%;z-index:1}
.history-list li:first-child:before{background:var(--blue-500);box-shadow:0 0 0 1px var(--blue-100)}
.history-list li:not(:last-child):after{content:"";position:absolute;left:3.5px;top:16px;bottom:3px;width:1px;background:var(--border)}
.history-list li:last-child{padding-bottom:0}.history-list time{display:block;color:var(--muted);font-size:10px;margin-top:5px}
.help-dialog{width:min(620px,calc(100% - 32px));background:var(--surface)}
.help-content{padding:0 28px 26px}.help-content>p{font-size:13px;line-height:1.85;color:var(--secondary);margin:21px 0}
.help-storage{display:flex;gap:11px;background:var(--accent-soft);padding:17px;border:1px solid var(--blue-100);border-radius:12px;color:var(--blue-500)}
.help-storage>p{font-size:12px;line-height:1.8;margin:0;color:var(--secondary)}.help-storage strong{font-weight:750;color:var(--gray-700)}
.section-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.test-section{margin-top:26px}.test-section h3{font-size:14px;font-weight:750;letter-spacing:-.3px;margin:0}.test-section>p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 15px}
.inbound-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.inbound-option{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--border);padding:12px;border-radius:11px;min-height:54px;font-size:11px;font-weight:600;line-height:1.5;color:var(--gray-700)}
.inbound-option>span:last-child{min-width:0;overflow-wrap:anywhere}.inbound-option .source-icon{height:29px;width:29px}
.status-help{margin-top:24px;border-top:1px solid var(--border);padding-top:16px}.status-help>summary{cursor:pointer;font-size:12px;font-weight:650;min-height:36px;color:var(--gray-700)}
.status-guide-row{display:grid;grid-template-columns:159px 1fr;gap:13px;padding:11px 0;align-items:start}.status-guide-row .status-badge{font-size:10px;text-align:center}.status-guide-row p{font-size:11px;color:var(--muted);line-height:1.8;margin:0}
.toast{position:fixed;bottom:24px;left:calc(50% + 118px);transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:10px;padding:14px 18px;border:1px solid #ffffff12;border-radius:12px;background:var(--ink-900);color:var(--surface);box-shadow:0 7px 30px #17213a26;font-size:12px;max-width:calc(100% - 30px)}
.toast svg{width:18px;height:18px;color:var(--blue-100)}.toast.error{background:var(--status-red-fg)}.toast.toast-in-dialog{left:auto;right:20px;transform:none;bottom:20px;max-width:calc(100% - 40px)}
.error-banner{font-size:13px;line-height:1.8;color:var(--status-red-fg);border:1px solid var(--status-red-dot);background:var(--status-red-bg);padding:15px 18px;border-radius:12px;margin-bottom:20px}

@media(hover:hover) and (pointer:fine){
  .project-button:hover{background:var(--nav-surface);border-color:var(--nav-border)}
  .main-nav button:hover:not(.active){background:var(--nav-surface);color:var(--nav-text)}
  .help-button:hover{color:var(--surface)}
  .button-primary:hover{background:var(--accent-hover);box-shadow:0 4px 12px #344fce24,inset 0 1px 0 #ffffff26}
  .button-secondary:hover{background:var(--gray-50);border-color:var(--gray-400)}
  .icon-button:hover{background:var(--accent-soft);color:var(--accent);border-color:var(--blue-100)}
  .status-tab:hover:not([aria-pressed=true]){background:var(--gray-50);color:var(--text)}
  .leads-table tbody tr:hover,.sources-table tbody tr:hover{background:var(--table-hover-bg)}
  .status-select:hover{border-color:var(--status-dot)}
  .client-button:hover .client-name{color:var(--accent)}
  .source-name-button:hover,.detail-phone:hover{color:var(--accent)}
  .clear-filters:hover{text-decoration:underline}
  .inbound-option:hover{background:var(--accent-soft);border-color:var(--blue-100)}
}
@keyframes dialog-in{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
html[data-input=keyboard] dialog{animation:none}
html[data-input=keyboard] .button:active{transform:none}

@media(min-width:1600px){
  .app-shell{grid-template-columns:252px minmax(0,1fr)}
  .sidebar{padding-left:20px;padding-right:20px}.project-name{font-size:13px}
  .page-content{padding:28px 40px 24px}.topbar{padding:0 40px}
  .status-tab{font-size:12px;padding-left:13px;padding-right:13px}
  .client-name{font-size:14px}.source-inline{font-size:12px}.status-select{font-size:12px;width:184px}
}
@media(max-width:1190px){
  .app-shell{grid-template-columns:216px minmax(0,1fr)}
  .sidebar{padding-left:12px;padding-right:12px}.brand{padding-left:9px;gap:8px}.brand strong{font-size:25px}.brand-label{display:none}
  .topbar,.page-content{padding-left:24px;padding-right:24px}
  .project-button{padding-left:8px;padding-right:8px;gap:8px}.project-name{font-size:11px}.project-symbol{width:29px;height:29px;flex-basis:29px}
  .selected-tick{width:15px;height:15px}
  .status-tabs{padding:11px 12px}.status-tab{font-size:11px;padding-left:8px;padding-right:8px;gap:5px}
  .leads-table th,.leads-table td{padding-left:12px;padding-right:12px}
  .leads-table th:first-child,.leads-table td:first-child{padding-left:18px}.leads-table th:first-child{width:32%}
  .lead-avatar{display:none}.status-select{width:169px;font-size:11px}
  .sources-table td,.sources-table th{padding-left:12px;padding-right:12px}.report-hint{display:none}
}
@media(max-width:900px){
  html{background:var(--canvas)}.app-shell{display:block;padding:0}.main-content{border-radius:0}
  .sidebar{position:static;top:auto;height:auto;overflow:visible;border:0;border-bottom:1px solid var(--border);padding:18px 24px 0;display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;background:var(--surface);color:var(--text)}
  .brand{margin:0;padding:0;gap:10px}.brand strong{font-size:26px;color:var(--ink-900)}.brand-label{display:inline-flex;border-color:var(--gray-300);color:var(--muted)}
  .brand div>span{font-size:8px;margin-top:7px;color:var(--muted);letter-spacing:1px}.brand-mark{color:var(--accent);height:28px}
  .workspace-caption,.project-nav,.sidebar-bottom{display:none}
  .mobile-project-label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted);font-weight:600}
  .mobile-project-label select{display:block;background:var(--gray-50);border:1px solid var(--border);border-radius:9px;min-height:40px;width:100%;font-size:12px;color:var(--gray-700);padding:7px 9px;max-width:100%}
  .main-nav{grid-column:1/-1;flex-direction:row;gap:7px;align-items:center}
  .main-nav button{width:auto;border-radius:8px 8px 0 0;min-height:44px;padding:10px 15px;font-size:12px;border-bottom:2px solid transparent;color:var(--muted)}
  .main-nav button.active{border-bottom-color:var(--accent);background:var(--accent-soft);color:var(--accent);box-shadow:none}
  .main-nav .mobile-help{display:inline-grid;place-items:center;width:44px;height:44px;margin-left:auto;padding:0;border-radius:9px}
  .nav-count{margin-left:0;background:var(--blue-100);color:var(--accent-hover)}
  .topbar{display:none}.page-content{padding-top:22px}.page-heading{margin-bottom:20px}
  .lead-avatar{display:grid}.filters{grid-template-columns:minmax(170px,1fr) minmax(150px,205px) minmax(135px,160px);gap:10px;padding:16px}
  .leads-table th:first-child,.leads-table td:first-child{padding-left:16px}.client-button{gap:9px}
  .client-name{font-size:14px}.source-inline{font-size:12px}.channel-icon{width:23px;height:23px}.status-select{font-size:11px;width:164px}
  .leads-table td{padding-left:10px;padding-right:10px}.toast{left:50%}
  .metrics{gap:11px}.report-metric{padding:18px}.report-metric .metric-source-name{font-size:16px}
  .sources-table th:nth-child(4),.sources-table th:nth-child(5){white-space:normal}
}
@media(max-width:650px){
  .sidebar{position:sticky;top:0;z-index:15;padding:15px 17px;gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);box-shadow:0 3px 20px #27366005}
  .brand{gap:9px;min-width:0}.brand strong{font-size:24px;letter-spacing:-1.3px}.brand-label{display:none}.brand-mark{gap:2px}.brand-mark i{width:5px}
  .brand div>span{display:none}.brand-mark i:nth-child(1){height:20px}.brand-mark i:nth-child(2){height:28px}.brand-mark i:nth-child(3){height:24px}
  .mobile-project-label{font-size:9px;gap:4px}.mobile-project-label select{min-height:44px;font-size:11px;padding:7px 5px;border-radius:9px}
  .main-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;min-height:66px;padding:7px 14px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);box-shadow:0 -5px 25px #27366008;gap:8px}
  .main-nav button{justify-content:center;flex:1;border-radius:10px;border-bottom:0;min-height:48px;font-size:12px;padding:9px}
  .main-nav button.active{background:var(--accent-soft);border-bottom:0}.main-nav .mobile-help{flex:0 0 44px;margin:0;min-height:48px}
  .main-nav svg{width:18px;height:18px}.nav-count{font-size:10px;min-width:22px;padding:1px 4px}
  .main-content{padding-bottom:80px}
  .page-content{padding:21px 14px 15px}.page-heading{align-items:center;gap:10px;margin-bottom:18px}.eyebrow{font-size:9px;max-width:180px;letter-spacing:.3px;margin-bottom:6px}
  .page-heading h1{font-size:28px;letter-spacing:-1px}.page-heading .button{font-size:11px;padding:10px 11px;gap:7px;min-height:44px}
  #new-lead{gap:6px;padding-left:10px}#new-lead>[data-icon]{width:21px;height:21px}#new-lead svg{width:14px;height:14px}
  .page-heading p{display:none}.title-count{font-size:11px;min-width:25px;height:23px;border-radius:6px}.title-line{gap:8px}
  .panel{border-radius:16px}.status-tabs{padding:10px 8px}.status-tab{min-height:44px;font-size:12px;padding:8px;gap:5px}
  .filters{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px 10px;padding:15px 14px}.search-label{grid-column:1/-1}
  .filter-field>span:first-child{font-size:10px}.filter-field select,.search-field{min-height:44px;height:44px;font-size:12px;border-radius:9px}
  .search-field input{font-size:13px}.filter-summary-row{padding:0 14px 14px;align-items:flex-start;gap:8px;flex-wrap:wrap}
  .clear-filters{min-height:44px}.filter-chip{font-size:11px}
  .leads-table thead{display:none}.leads-table,.leads-table tbody{display:block;width:100%}
  .leads-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:18px 14px 16px;border-top:1px solid var(--border);gap:15px 12px;position:relative}
  .leads-table td{display:block;border:0;padding:0!important;min-width:0}.leads-table td:first-child{grid-column:1/-1;padding-right:26px!important}
  .leads-table td:last-child{position:absolute;top:18px;right:7px}.client-button{gap:11px;min-height:44px}
  .lead-avatar{width:37px;height:37px;font-size:11px;border-radius:12px}.client-name{font-size:13px}.client-phone{font-size:13px;margin-top:3px}
  .leads-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:7px;font-weight:500}
  .source-inline{font-size:12px;min-height:44px;align-items:center;gap:7px}.channel-icon{width:25px;height:25px}.channel-icon svg{width:14px;height:14px}
  .status-control{width:100%;height:44px}.status-select{font-size:11px;width:100%;min-height:44px;padding-left:22px;padding-right:18px;border-radius:8px}.status-control:after{right:8px}.status-indicator{left:9px;width:4px;height:4px}
  .created-cell{grid-column:1/-1;font-size:10px!important}.created-cell:before{content:"Обращение: ";color:var(--muted)}
  .created-cell span{display:inline;margin-left:7px;font-size:10px}.row-open{width:34px;height:44px;border-radius:9px}
  .list-footer{padding:12px 14px;gap:8px;align-items:flex-end}.list-footer-info{flex-direction:column;align-items:flex-start;gap:3px;font-size:10px}
  .sort-control select{min-height:44px;font-size:10px;padding-left:0;border-left:0;max-width:165px}
  .pagination{gap:4px}.pagination .icon-button{width:44px;height:44px;border-radius:9px}.pagination>span{min-width:28px;font-size:10px}
  .page-footer{font-size:9px;gap:5px;flex-direction:column;padding-top:15px}
  .metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.report-metric{padding:16px;border-radius:14px}.report-metric:last-child{grid-column:1/-1}
  .report-metric-label{font-size:10px;margin-bottom:7px}.report-metric strong{font-size:29px}.report-metric .metric-source-name{font-size:16px;line-height:1.5}.report-metric small{font-size:10px}
  .report-heading{padding:18px 15px}.report-heading h2{font-size:14px}.report-heading p{font-size:10px;line-height:1.7}
  .sources-table,.sources-table tbody{display:block;width:100%}.sources-table thead{display:none}
  .sources-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 14px;border-top:1px solid var(--border);gap:15px 12px}
  .sources-table td{display:block;min-width:0;padding:0!important;border:0;font-size:14px;text-align:left!important}.sources-table td:first-child{grid-column:1/-1;width:auto}
  .sources-table td:not(:first-child):before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;line-height:1.5;min-height:28px;margin-bottom:4px;overflow-wrap:anywhere}
  .source-name-button{font-size:12px;min-height:44px;width:100%;gap:10px}.source-name-button>svg{margin-left:auto}.source-icon{height:31px;width:31px;border-radius:9px}
  .sources-table td:nth-child(4),.sources-table td:nth-child(5){grid-row:3}.sources-table td:nth-child(4){grid-column:1/3}.sources-table td:nth-child(5){grid-column:3}
  .share-cell{min-width:0}.share-value{font-size:13px;margin-bottom:7px}.share-track{margin:0;max-width:65px}.source-table-note{font-size:10px;padding:16px 14px}
  .icon-button{min-width:44px;min-height:44px}
  .dialog-heading{padding:20px 19px 18px}.dialog-heading h2{font-size:23px;letter-spacing:-.65px}.project-context{font-size:10px}
  .form-content,.help-content{padding-left:19px;padding-right:19px}
  .contact-fields{grid-template-columns:1fr;gap:18px}
  .form-dialog,.help-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0}
  .form-dialog form{display:flex;flex-direction:column;min-height:100%}.form-content{flex:1}
  .form-dialog input,.form-dialog select,.form-dialog textarea{font-size:14px;min-height:46px}
  .field-label{font-size:12px}.form-intro{font-size:12px}.field-help,.field-error{font-size:11px}
  .dialog-footer{padding:15px 19px}.required-note{display:none}.dialog-footer .button{flex:1;font-size:12px}
  .detail-dialog{width:100%;border-radius:0}.detail-heading{padding:12px 16px}
  .detail-person{padding:26px 20px}.detail-person h2{font-size:23px}.person-line>.avatar{width:47px;height:47px;border-radius:14px}
  .detail-phone{font-size:13px}.detail-actions{gap:10px}.detail-actions .button{font-size:11px;padding:10px}
  .detail-status .status-select{font-size:11px}.detail-status{font-size:11px}
  .detail-meta{padding:21px 20px;grid-template-columns:1fr;gap:18px}.detail-meta>div{display:grid;grid-template-columns:120px 1fr;gap:10px}.detail-meta dt{margin:0;font-size:11px}.detail-meta .source-inline{min-height:0;font-size:12px}.detail-meta dd{font-size:12px}
  .detail-section{padding:24px 20px}.detail-comment{font-size:13px}.history-list li{font-size:12px}
  .help-dialog{display:flex;flex-direction:column}.help-dialog:not([open]){display:none}.help-content{flex:1}.help-content>p{font-size:13px}.help-storage>p{font-size:12px}
  .section-title-line{align-items:flex-start;flex-direction:column;gap:7px}.test-section h3{font-size:14px}.inbound-option{font-size:11px;min-height:56px;padding:10px}
  .status-guide-row{grid-template-columns:1fr;gap:7px}.status-guide-row .status-badge{width:max-content;max-width:100%;font-size:11px}.status-guide-row p{font-size:12px}.status-help summary{min-height:44px}
  .new-status-note{font-size:11px}.empty-state{padding:36px 18px}.empty-state p{font-size:12px}
  .toast{font-size:11px;bottom:84px;padding:13px 16px;width:max-content;max-width:calc(100% - 24px);border-radius:11px}.toast.toast-in-dialog{bottom:20px}
}
@media(max-width:360px){
  .filters{grid-template-columns:minmax(0,1fr)}
  .leads-table tr{grid-template-columns:minmax(0,1fr)}
  .leads-table td[data-label]{display:flex;align-items:center;gap:12px}
  .leads-table td[data-label]:before{margin:0;flex:0 0 62px;font-size:11px}
  .leads-table td[data-label]>.status-control{flex:1;min-width:0}
  .leads-table td[data-label]>.source-inline{flex:1;min-width:0}
  .detail-actions{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}dialog::backdrop{backdrop-filter:none}}
@media(max-width:650px){.main-nav{gap:2px}.main-nav button{flex-direction:column;gap:2px;min-width:0;min-height:50px;padding:5px 2px;font-size:9px;line-height:1.2;text-align:center}.main-nav button>span:nth-child(2){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main-nav svg{width:17px;height:17px}}
@media(max-width:900px){.auth-brand strong{color:var(--surface)}.auth-brand div>span{color:var(--nav-muted)}}
@media(max-width:650px){.sidebar{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 44px;column-gap:8px}.sidebar>.mobile-logout-button{display:grid;place-items:center;align-self:center;width:44px;height:44px;border:1px solid var(--border);border-radius:9px;color:var(--gray-700)}.mobile-logout-button svg{width:18px;height:18px}}
.sidebar>.mobile-logout-button{display:none}
@media(max-width:650px){.sidebar>.mobile-logout-button{display:grid}}
@media(max-width:360px){.brand strong{font-size:21px}.mobile-project-label select{font-size:10px}}
.source-action{min-height:36px;padding:6px 8px;border-radius:8px;color:var(--accent);font-size:11px;font-weight:700}
.source-action:hover{background:var(--accent-soft)}
.source-actions{display:flex;justify-content:center;gap:3px;flex-wrap:wrap}
.next-task-fields,.source-projects{border:0;margin:18px 0 0;padding:0}
.next-task-fields legend,.source-projects legend{font-size:12px;font-weight:750;color:var(--gray-700);margin-bottom:8px}
.next-task-fields input,.next-task-fields select{margin-bottom:8px}
.source-projects>div{display:flex;flex-wrap:wrap;gap:9px}
.source-projects label{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;font-size:12px;color:var(--gray-700);cursor:pointer}
.source-projects input{min-height:auto;width:auto;margin:0;accent-color:var(--accent)}
@media(max-width:650px){.sources-table td:last-child{grid-column:1/-1;grid-row:auto}.source-actions{justify-content:flex-start}}
.detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;margin:0}.detail-fields dt{font-size:10px;color:var(--muted);margin:0 0 5px}.detail-fields dd{font-size:12px;font-weight:600;color:var(--gray-700);margin:0;overflow-wrap:anywhere}.detail-section .detail-inline-actions{margin-top:18px}
@media(max-width:650px){.detail-fields{grid-template-columns:1fr 1fr;gap:13px}.detail-section .detail-inline-actions .button{width:100%}}
@media(max-width:360px){.detail-fields{grid-template-columns:1fr}}
.reference-list{list-style:none;margin:18px 0 0;padding:0}.reference-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--gray-100);padding:8px 0;font-size:12px;color:var(--gray-700)}.reference-row small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.reference-row button{min-height:44px;padding:8px;color:var(--accent);font-size:11px;font-weight:700;border-radius:8px}.reference-row button:hover{background:var(--accent-soft)}
.units-panel{overflow:hidden}.unit-toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:17px 21px;border-bottom:1px solid var(--border)}.unit-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--secondary)}.unit-toolbar input,.unit-toolbar select{min-height:44px;min-width:155px;padding:9px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:12px}.unit-admin-actions{display:flex;flex-wrap:wrap;gap:8px;padding:13px 21px;border-bottom:1px solid var(--border)}.unit-admin-actions .button{min-height:42px}.units-table{width:100%;border-collapse:collapse;text-align:left}.units-table th{padding:12px;border-bottom:1px solid var(--border);background:var(--surface-subtle);color:var(--muted);font-size:10px;font-weight:650;white-space:nowrap}.units-table td{padding:14px 12px;border-bottom:1px solid var(--gray-100);font-size:11px;color:var(--secondary)}.units-table td strong{color:var(--text);font-size:12px}.units-table td:first-child,.units-table th:first-child{padding-left:22px}.units-table td:last-child,.units-table th:last-child{padding-right:22px}.unit-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:44px;text-align:left;padding:4px 0}.unit-name span{font-size:10px;color:var(--muted)}.unit-empty{padding:30px 22px!important;color:var(--muted)!important}.unit-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 21px;color:var(--muted);font-size:11px}.unit-footer>div{display:flex;align-items:center;gap:8px}.unit-footer button{min-height:44px;padding:8px;color:var(--accent);font-size:11px;font-weight:700}.unit-price-hero{font-size:25px;font-weight:800;letter-spacing:-.5px;margin:10px 0 4px}.unit-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.unit-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:var(--gray-700)}.unit-form-grid input,.unit-form-grid select{width:100%}.unit-picker-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--gray-100);font-size:12px}.unit-picker-row input{width:18px;height:18px;accent-color:var(--accent)}.unit-picker-row span{display:block;color:var(--secondary)}.shortlist-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--gray-100)}.shortlist-row strong{display:block;font-size:12px}.shortlist-row span{display:block;font-size:11px;color:var(--muted)}.shortlist-price-change{color:var(--status-amber-fg)!important;font-weight:700}
@media(max-width:900px){.units-table{min-width:760px}.unit-toolbar input,.unit-toolbar select{min-width:140px}}
@media(max-width:650px){.unit-toolbar{padding:14px;display:grid;grid-template-columns:1fr 1fr}.unit-toolbar label:last-child{grid-column:1/-1}.unit-toolbar input,.unit-toolbar select{width:100%;min-width:0}.unit-admin-actions{padding:12px 14px}.unit-admin-actions .button{flex:1;min-width:120px}.units-table,.units-table tbody{display:block;width:100%;min-width:0}.units-table thead{display:none}.units-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 13px;padding:16px;border-bottom:1px solid var(--border)}.units-table td{padding:0!important;border:0;min-width:0}.units-table td:first-child,.units-table td:last-child{grid-column:1/-1}.units-table td[data-label]:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.unit-form-grid{grid-template-columns:1fr 1fr}.unit-footer{padding:12px 14px}}
@media(max-width:360px){.unit-form-grid{grid-template-columns:1fr}.unit-toolbar{grid-template-columns:1fr}}
@media(max-width:360px){.page-heading{flex-direction:column;align-items:stretch}.page-heading .button{width:100%}}
@media(max-width:360px){#nav-employees .nav-label-full{display:none}#nav-employees .nav-label-short{display:inline}}
.workspace-layout{min-width:0}
.deal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.deal-summary>div{padding:12px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:10px}.deal-summary span{display:block;font-size:10px;color:var(--muted)}.deal-summary strong{display:block;margin-top:4px;font-size:12px;color:var(--text);overflow-wrap:anywhere}.deal-history-title{font-size:12px;margin:20px 0 6px}.deal-event span{line-height:1.5}#deal-fields>input,#deal-fields>select,#deal-fields>textarea,#deal-fields fieldset input{width:100%;margin:6px 0 13px}#deal-fields .form-intro{margin-bottom:13px}
.deal-unit-label{font-size:11px;color:var(--secondary);margin:8px 0 0}
.deal-credit-label{font-size:11px;color:var(--muted);margin:5px 0 0}
.deal-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.deal-tabs button{min-height:42px;padding:8px 11px;border:1px solid var(--border);border-radius:9px;font-size:11px;color:var(--secondary)}.deal-tabs button[aria-current=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:750}
.file-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.file-row strong{overflow-wrap:anywhere}.file-actions{display:flex;gap:5px;flex-wrap:wrap}.file-actions a,.file-actions button{min-height:42px;display:inline-flex;align-items:center}.deal-documents,.deal-checklist{margin-top:20px;padding-top:17px;border-top:1px solid var(--border)}.deal-documents h4,.deal-checklist h4{font-size:12px;margin:0 0 8px}.deal-step{display:flex;align-items:center;justify-content:space-between;gap:10px}.deal-step small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.deal-step button{min-height:42px;color:var(--accent);font-size:11px;font-weight:750}
.template-list{list-style:none;margin:18px 0 0;padding:0}.template-list>li{padding:15px 0;border-top:1px solid var(--border);font-size:11px}.template-list strong{display:block;color:var(--text);font-size:12px}.template-list span{display:block;color:var(--muted);margin-top:4px}.template-list .detail-simple-list{margin-top:8px}.template-list .detail-simple-list li{font-size:11px}.template-list .detail-simple-list button{margin-left:8px}
.integration-status-list,.inbound-review-list{list-style:none;margin:15px 0;padding:0}.integration-status-list li,.inbound-review-list li{padding:11px 0;border-top:1px solid var(--border);font-size:11px}.integration-status-list strong,.inbound-review-list strong{display:block;color:var(--text);font-size:12px}.integration-status-list span,.inbound-review-list span{display:block;color:var(--secondary);margin-top:4px}.integration-status-list small,.inbound-review-list small{display:block;color:var(--muted);margin-top:4px;line-height:1.5}.inbound-review-list select{width:100%;margin:8px 0}.inbound-review-list button{min-height:42px}.integration-mapping{border-top:1px solid var(--border);padding-top:14px}.integration-mapping summary{font-size:12px;font-weight:700;color:var(--accent);cursor:pointer;min-height:40px}.integration-mapping form{margin-top:4px}.settings-panel>h3{font-size:13px;margin:22px 0 10px}
@media(min-width:901px){.filters{grid-template-columns:minmax(170px,1fr) repeat(3,minmax(140px,190px))}}
@media(min-width:651px) and (max-width:900px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.search-label{grid-column:1/-1}}
#mobile-more{display:none}.mobile-more-menu{position:fixed;right:14px;bottom:76px;z-index:21;width:min(230px,calc(100vw - 28px));padding:8px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-dialog)}.mobile-more-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;text-align:left;border-radius:8px;color:var(--text);font-size:12px;font-weight:650}.mobile-more-menu button:hover{background:var(--accent-soft);color:var(--accent)}
@media(max-width:900px){body[data-role=admin] #nav-analytics,body[data-role=admin] #nav-employees,body[data-role=admin] #nav-settings{display:none}#mobile-more:not([hidden]){display:flex}}
@media(max-width:900px){#nav-help{display:none}}
@media(min-width:651px) and (max-width:900px){.sidebar{position:relative}.mobile-more-menu{position:absolute;top:100%;right:24px;bottom:auto}}
@media(max-width:650px){.file-row,.deal-step{align-items:flex-start;flex-direction:column}.file-actions{width:100%}}
.deal-reservation{font-size:11px;color:var(--secondary);margin:10px 0}.deal-reservation strong{display:block;color:var(--status-amber-fg);margin-top:5px}
.deal-reservation-history{list-style:none;padding:0;margin:0 0 8px;color:var(--muted);font-size:10px}.deal-reservation-history li{padding:3px 0}
.expense-panel{overflow:hidden}.expense-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.expense-heading .button{min-height:42px}.expense-toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:16px 21px;border-bottom:1px solid var(--border)}.expense-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--secondary)}.expense-toolbar select,.expense-toolbar input{min-width:190px;min-height:44px;border:1px solid var(--border);border-radius:9px;padding:8px 11px;background:var(--surface);color:var(--text)}.expense-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 21px}.expense-summary>div{border:1px solid var(--border);border-radius:10px;padding:14px;background:var(--surface-subtle)}.expense-summary span{display:block;font-size:10px;color:var(--muted)}.expense-summary strong{display:block;font-size:13px;color:var(--text);margin-top:6px;overflow-wrap:anywhere}.expense-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 21px 18px}.expense-confirm p{font-size:11px;color:var(--secondary);margin:0}.expenses-table{width:100%;border-collapse:collapse;text-align:left}.expenses-table th{font-size:10px;color:var(--muted);padding:12px;border-bottom:1px solid var(--border);background:var(--surface-subtle)}.expenses-table td{font-size:11px;color:var(--secondary);padding:13px 12px;border-bottom:1px solid var(--gray-100)}.expenses-table td strong{display:block;color:var(--text)}.expenses-table td small{display:block;color:var(--muted);margin-top:4px}.expense-allocation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.expense-allocation-fields[hidden]{display:none}
@media(max-width:900px){.expense-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#nav-analytics .nav-label-full{display:none}#nav-analytics .nav-label-short{display:inline}.expense-heading{align-items:flex-start;flex-direction:column}.expense-toolbar{padding:14px}.expense-toolbar label,.expense-toolbar select,.expense-toolbar input{width:100%;min-width:0}.expense-summary{grid-template-columns:1fr 1fr;padding:14px}.expense-confirm{padding:0 14px 14px;align-items:flex-start;flex-direction:column}.expenses-table,.expenses-table tbody{display:block}.expenses-table thead{display:none}.expenses-table tr{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding:14px;border-bottom:1px solid var(--border)}.expenses-table td{padding:0;border:0;min-width:0}.expenses-table td:first-child,.expenses-table td:last-child{grid-column:1/-1}.expenses-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:3px}}
@media(max-width:360px){.expense-summary,.expense-allocation-fields{grid-template-columns:1fr}}
.analytic-panel{overflow:hidden;margin-bottom:18px}.analytic-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.analytic-heading .button{min-height:42px}.analytic-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:11px;padding:16px 21px;border-bottom:1px solid var(--border)}.analytic-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--secondary)}.analytic-toolbar select,.analytic-toolbar input{min-height:44px;min-width:150px;border:1px solid var(--border);border-radius:9px;padding:8px 11px;background:var(--surface);color:var(--text)}.analytic-toolbar button{min-height:44px}.analytic-table{width:100%;border-collapse:collapse;text-align:left}.analytic-table th{font-size:10px;color:var(--muted);padding:12px;border-bottom:1px solid var(--border);background:var(--surface-subtle);white-space:nowrap}.analytic-table td{font-size:11px;color:var(--secondary);padding:13px 12px;border-bottom:1px solid var(--gray-100)}.analytic-table td small{display:block;color:var(--status-amber-fg);font-size:9px;margin-top:3px}.analytic-source{text-align:left;color:var(--accent);font-weight:750;min-height:44px}.analytic-source:hover{text-decoration:underline}.analytic-detail{border-top:1px solid var(--border);padding:22px}.analytic-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.analytic-detail-heading h3{font-size:17px;margin:0}.analytic-detail-heading p{font-size:11px;color:var(--muted);margin:5px 0}.analytic-group{margin-top:21px}.analytic-group h4,.analytic-drilldown h4{font-size:12px;margin:0 0 10px}.analytic-group h4 small{font-weight:500;color:var(--muted);margin-left:6px}.analytic-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.analytic-metric{border:1px solid var(--border);border-radius:9px;padding:10px;background:var(--surface-subtle);min-width:0}.analytic-metric span{display:block;font-size:10px;color:var(--muted);line-height:1.4}.analytic-metric strong,.analytic-metric button{display:block;margin-top:4px;font-size:12px;font-weight:750;color:var(--text);text-align:left;overflow-wrap:anywhere}.analytic-metric button{color:var(--accent);min-height:30px}.analytic-drilldown{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.analytic-drilldown ul{list-style:none;margin:0;padding:0}.analytic-drilldown li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--gray-100);padding:9px 0;font-size:11px}.analytic-drilldown button{color:var(--accent);min-height:40px;font-weight:700}.analytic-drilldown p{font-size:10px;color:var(--muted)}
.analytic-list-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 21px;color:var(--muted);font-size:10px}
@media(max-width:1100px){.analytic-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.analytic-heading{flex-direction:column;align-items:flex-start}.analytic-toolbar{padding:14px;display:grid;grid-template-columns:1fr 1fr}.analytic-toolbar label:first-child{grid-column:1/-1}.analytic-toolbar select,.analytic-toolbar input{width:100%;min-width:0}.analytic-toolbar button{grid-column:1/-1}.analytic-table,.analytic-table tbody{display:block}.analytic-table thead{display:none}.analytic-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;padding:14px;border-bottom:1px solid var(--border)}.analytic-table td{padding:0;border:0;min-width:0}.analytic-table td:first-child,.analytic-table td:last-child{grid-column:1/-1}.analytic-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:3px}.analytic-detail{padding:16px}.analytic-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.analytic-toolbar,.analytic-metrics{grid-template-columns:1fr}.analytic-toolbar label:first-child,.analytic-toolbar button{grid-column:auto}}
.employee-stats-dialog{width:min(780px,calc(100% - 32px))}.employee-stats .analytic-group{margin:20px 0}.employee-stats h3{font-size:13px;margin:0 0 10px}.employee-stats h3 small{font-weight:500;color:var(--muted)}.employee-stats-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.employee-stats-filter label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--secondary)}.employee-stats-filter input{min-width:150px}.employee-stats-filter button{min-height:44px}.own-stats{margin-bottom:16px}.own-stats .analytic-metrics{padding:15px}.own-stats .settings-hint{padding:0 18px 15px!important}
.own-stats-open{margin:0 16px 12px}.employee-stats .analytic-drilldown{padding-bottom:20px}
@media(max-width:650px){.employee-stats-filter{display:grid;grid-template-columns:1fr 1fr}.employee-stats-filter input{min-width:0}.employee-stats-filter button{grid-column:1/-1}.own-stats .analytic-metrics{padding:12px}}
@media(max-width:650px){.deal-summary{grid-template-columns:1fr}.deal-summary>div{padding:10px}}
.today-toolbar{display:flex;align-items:end;gap:13px;flex-wrap:wrap;margin-bottom:18px}
.today-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--secondary)}
.today-toolbar select{min-height:42px;min-width:150px;padding:8px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text)}
.today-toolbar>span{margin-left:auto;color:var(--muted);font-size:11px}
.dashboard-grid,.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.work-panel{min-width:0;overflow:hidden}.work-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px 16px;border-bottom:1px solid var(--border)}
.work-heading h2,.settings-panel h2{margin:0;font-size:16px;line-height:1.3;letter-spacing:-.3px;font-weight:750}
.work-heading>span,.settings-count{display:inline-grid;place-items:center;min-width:25px;height:24px;padding:0 7px;border-radius:7px;background:var(--gray-100);font-size:11px;font-weight:750;color:var(--gray-700)}
.work-list,.correction-list,.audit-list,.detail-simple-list{list-style:none;margin:0;padding:0}
.work-row,.correction-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 22px;border-bottom:1px solid var(--gray-100)}
.work-row:last-child,.correction-row:last-child{border-bottom:0}
.work-row>div:first-child,.correction-row>div:first-child{min-width:0}
.work-row strong,.correction-row strong{display:block;font-size:12px;color:var(--text);font-weight:700;overflow-wrap:anywhere}
.work-row span,.correction-row span,.correction-row small{display:block;margin-top:5px;font-size:11px;color:var(--muted);line-height:1.5}
.work-actions,.detail-inline-actions{display:flex;gap:5px;flex-wrap:wrap}
.work-actions button{min-height:44px;padding:7px 9px;color:var(--accent);font-size:11px;font-weight:700;border-radius:8px;white-space:nowrap}
.work-actions button:hover{background:var(--accent-soft)}
.work-empty{padding:20px 22px;color:var(--muted);font-size:12px}
.detail-simple-list li{padding:9px 0;border-bottom:1px solid var(--gray-100);font-size:12px;color:var(--secondary)}
.detail-simple-list li:last-child{border-bottom:0}.detail-simple-list strong{display:block;color:var(--gray-700)}
.detail-simple-list span{display:block;margin-top:3px;color:var(--muted)}
.detail-inline-actions{margin-top:14px}.detail-inline-actions .button{font-size:11px}
.avatar-color-0{--avatar-color:var(--avatar-0)}.avatar-color-1{--avatar-color:var(--avatar-1)}.avatar-color-2{--avatar-color:var(--avatar-2)}.avatar-color-3{--avatar-color:var(--avatar-3)}
.status-open{min-height:34px;cursor:pointer}.status-open:hover{filter:brightness(.96)}
.staff-panel{overflow:hidden}.staff-table{width:100%;border-collapse:collapse;text-align:left}
.staff-table th{padding:13px 12px;border-bottom:1px solid var(--border);background:var(--surface-subtle);color:var(--muted);font-size:10px;font-weight:650;white-space:nowrap}
.staff-table td{padding:15px 12px;border-bottom:1px solid var(--gray-100);color:var(--secondary);font-size:11px;vertical-align:top}
.staff-table td:first-child,.staff-table th:first-child{padding-left:22px}.staff-table td:last-child,.staff-table th:last-child{padding-right:22px}
.staff-table td strong{display:block;color:var(--text);font-size:12px}.staff-table td small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
.staff-actions{display:flex;gap:3px;flex-wrap:wrap}.staff-actions button{min-height:44px;padding:7px 8px;color:var(--accent);font-size:11px;font-weight:700;border-radius:8px}
.source-action{min-height:44px}
.staff-actions button:hover{background:var(--accent-soft)}
.settings-panel{min-width:0;padding:25px}.settings-panel>p{font-size:12px;color:var(--secondary);line-height:1.6;margin:8px 0 17px}
.settings-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0}.settings-facts dt{font-size:10px;color:var(--muted)}
.settings-facts dd{margin:4px 0 0;font-size:12px;font-weight:650;color:var(--gray-700);overflow-wrap:anywhere}
.settings-panel form{display:flex;flex-direction:column;align-items:start;gap:9px}.settings-panel input,.settings-panel select,.settings-panel textarea{max-width:100%;border:1px solid var(--input-border);border-radius:9px;padding:10px 12px;background:var(--surface);color:var(--text);font-size:12px}
.settings-panel select,.settings-panel textarea{width:100%}.settings-panel .button{margin-top:8px}
.settings-check{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;color:var(--gray-700)}
.settings-check input{width:18px;height:18px;accent-color:var(--accent)}.settings-hint{font-size:11px!important;color:var(--muted)!important;margin:4px 0!important}
.settings-routing{width:100%;display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.settings-routing h3{font-size:12px;margin:0 0 3px}.settings-routing .field-label{margin-top:7px}
.settings-count{margin-left:5px}.correction-list{margin:17px -25px -25px}.correction-row{padding:17px 25px}.audit-list{margin-top:16px}.audit-list li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--gray-100);font-size:11px;color:var(--gray-700)}.audit-list time{color:var(--muted);white-space:nowrap}
@media(max-width:1100px){.dashboard-grid,.settings-grid{grid-template-columns:1fr}.work-row,.correction-row{padding:15px 18px}}
@media(max-width:650px){.today-toolbar>span{margin-left:0}.work-heading{padding:17px 16px}.work-row,.correction-row{align-items:flex-start;flex-direction:column;gap:7px;padding:15px 16px}.work-actions{width:100%}.work-actions button{min-height:44px}.staff-table,.staff-table tbody{display:block;width:100%}.staff-table thead{display:none}.staff-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;border-bottom:1px solid var(--border);gap:9px 12px}.staff-table td{padding:0!important;border:0;min-width:0}.staff-table td:first-child,.staff-table td:last-child{grid-column:1/-1}.staff-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:3px}.staff-actions button{min-height:44px}.settings-panel{padding:20px}.settings-facts{grid-template-columns:1fr 1fr}.correction-list{margin:15px -20px -20px}.audit-list li{flex-direction:column;gap:3px}.source-actions .source-action{min-height:44px}}
/* Help inherits the CRM surfaces and typography. */
.help-workspace{width:100%;min-width:0}
.help-page{display:grid;gap:20px;max-width:1160px}
.help-intro{padding:28px 30px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,340px);gap:28px;align-items:center}
.help-intro h2{font-size:24px;line-height:1.22;letter-spacing:-.025em;margin:0 0 9px}
.help-intro p{margin:0;color:var(--secondary);line-height:1.65;font-size:13px}
.help-intro .help-demo-note{padding:14px 17px;border-radius:var(--radius-md);background:var(--accent-soft);color:var(--gray-700)}
.help-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:18px;align-items:start}
.help-toc{position:sticky;top:20px;padding:19px 12px;display:grid;gap:3px}
.help-toc h3{font-size:12px;margin:0 10px 10px;color:var(--muted);font-weight:750}
.help-toc-link{min-height:40px;padding:8px 10px;text-align:left;border-radius:8px;font-size:12px;color:var(--gray-700)}
.help-toc-link:hover,.help-toc-link:focus-visible{background:var(--accent-soft);color:var(--accent)}
.help-chapters{display:grid;gap:16px;min-width:0}
.help-chapter{padding:26px 30px;scroll-margin-top:24px}
.help-chapter-head{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:12px}
.help-chapter h2{font-size:20px;line-height:1.25;letter-spacing:-.02em;margin:0}
.help-chapter-head span{font-size:11px;color:var(--muted);text-align:right}
.help-chapter>p,.help-chapter li,.help-question p{font-size:13px;line-height:1.68;color:var(--gray-700)}
.help-chapter>p{margin:0 0 13px;max-width:73ch}
.help-chapter ol{padding-left:19px;margin:0 0 18px;display:grid;gap:7px;max-width:73ch}
.help-chapter li::marker{color:var(--accent);font-weight:750}
.help-questions{border-top:1px solid var(--border)}
.help-question{border-bottom:1px solid var(--border)}
.help-question summary{cursor:pointer;list-style:none;position:relative;padding:13px 30px 13px 0;font-size:12px;font-weight:750;color:var(--text)}
.help-question summary::-webkit-details-marker{display:none}
.help-question summary:after{content:'+';position:absolute;right:4px;top:10px;color:var(--accent);font-size:18px;font-weight:500}
.help-question[open] summary:after{content:'−'}
.help-question p{margin:0 0 15px;max-width:70ch}
.help-related{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:18px}
.help-related>span{font-size:11px;color:var(--muted);margin-right:3px}
.help-related button{font-size:11px;font-weight:650;color:var(--accent);padding:7px 9px;border-radius:7px;background:var(--accent-soft)}
.help-related button:hover{background:var(--blue-100)}
.help-related .help-open{margin-left:auto;color:var(--gray-700);background:var(--gray-100)}
.help-toc-link:focus-visible,.help-related button:focus-visible,.help-question summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(max-width:900px){.help-layout{grid-template-columns:1fr}.help-toc{position:static;display:flex;flex-wrap:wrap;gap:4px;padding:13px}.help-toc h3{flex-basis:100%;margin:0 7px 5px}.help-toc-link{min-height:38px}}
@media(max-width:650px){.help-page{gap:14px}.help-intro{grid-template-columns:1fr;padding:22px 19px;gap:16px}.help-intro h2{font-size:21px}.help-chapters{gap:13px}.help-chapter{padding:20px 18px;scroll-margin-top:82px}.help-chapter-head{display:block}.help-chapter-head span{display:block;text-align:left;margin-top:5px}.help-related .help-open{margin-left:0}}
