:root{--bg-app: #f3f5f9;--bg-surface: #ffffff;--bg-control: #eef2fa;--bg-control-active: #dde6fb;--border: #d4dceb;--border-strong: #bdc9e1;--text-primary: #161b26;--text-secondary: #5b6479;--link-color: var(--text-primary);--error-text: #c62828;--error-bg: rgba(198, 40, 40, .12);--loading-text: #1f5feb;--row-hover: rgba(22, 27, 38, .03);--row-selected: rgba(31, 95, 235, .11);--overlay-backdrop: rgba(0, 0, 0, .45);font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;color:var(--text-primary);background-color:var(--bg-app);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}[data-theme=dark]{--bg-app: #0b0d10;--bg-surface: #0f1115;--bg-control: #0c0e12;--bg-control-active: #1c2230;--border: #1f2430;--border-strong: #2d3446;--text-primary: #e6e6e6;--text-secondary: #9aa0a6;--link-color: var(--text-primary);--error-text: #ffb4a9;--error-bg: rgba(255, 70, 70, .1);--loading-text: #8ab4f8;--row-hover: rgba(255, 255, 255, .02);--row-selected: rgba(138, 180, 248, .08);--overlay-backdrop: rgba(0, 0, 0, .45)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background-color:var(--bg-app);color:var(--text-primary)}a,a:visited,a:hover{color:var(--link-color)}.app{max-width:1200px;width:100%;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}.app.standalone{margin:0 auto;padding:24px}.app-shell{max-width:1400px;margin:0 auto;padding:16px;display:grid;grid-template-columns:280px 1fr;gap:16px;min-height:100vh}.app-content{min-width:0}.sidebar{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:16px;position:sticky;top:16px;height:calc(100vh - 32px)}.sidebar-nav{display:flex;flex-direction:column;gap:8px}.sidebar-nav a{color:inherit;text-decoration:none;padding:8px 10px;border-radius:8px}.sidebar-nav a.active{background:var(--bg-control-active)}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:12px}.mobile-topbar{display:none}.burger-button{width:44px;min-width:44px;height:40px;padding:0;font-size:18px}.theme-toggle-button{white-space:nowrap}.sidebar-backdrop{display:none}header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}header h1{margin:0;font-size:28px}.meta{color:var(--text-secondary);font-size:14px}.panel{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.panel h2{margin:0;font-size:18px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.space-between{justify-content:space-between}.cheburcheck-actions{display:flex;flex-direction:column;gap:10px}.cheburcheck-action-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.cheburcheck-action-time{margin-left:auto;white-space:nowrap}input[type=text],input[type=file],input:not([type]),textarea,select{padding:8px 10px;border-radius:8px;border:1px solid var(--border-strong);background:var(--bg-control);color:var(--text-primary);min-width:220px}button{padding:8px 14px;border-radius:8px;border:1px solid var(--border-strong);background:var(--bg-control-active);color:var(--text-primary);cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}table{width:100%;border-collapse:collapse;font-size:14px}th,td{border-bottom:1px solid var(--border);padding:10px 6px;text-align:left}tbody tr:hover{background:var(--row-hover)}.partner-domain-routes-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.partner-domain-routes-table{table-layout:fixed;width:100%}.partner-domain-routes-table th:nth-child(1),.partner-domain-routes-table td:nth-child(1){width:44px}.partner-domain-routes-table th:nth-child(2),.partner-domain-routes-table td:nth-child(2){width:16%}.partner-domain-routes-table th:nth-child(4),.partner-domain-routes-table td:nth-child(4){width:120px;min-width:120px;max-width:120px}.partner-domain-routes-table th:nth-child(5),.partner-domain-routes-table td:nth-child(5){width:228px;min-width:228px;max-width:228px;white-space:nowrap;vertical-align:top}.partner-domain-routes-table td input:not([type=checkbox]),.partner-domain-routes-table td textarea,.partner-domain-routes-table td select{min-width:0;width:100%;box-sizing:border-box}.partner-domain-routes-table .partner-domain-routes-target-cell{overflow-wrap:anywhere;word-break:break-word;vertical-align:top;min-width:0}.partner-domain-routes-table .partner-route-target-input{min-height:4.5rem;resize:vertical;display:block;font:inherit;line-height:1.35}.partner-domain-routes-action-row{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;justify-content:flex-end;width:100%}.error{color:var(--error-text);background:var(--error-bg);padding:8px 12px;border-radius:8px}.loading{color:var(--loading-text)}.file input{display:none}.file{padding:8px 14px;border-radius:8px;border:1px dashed var(--border-strong);cursor:pointer}.files-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(320px,1fr);gap:12px;align-items:start}.editor-panel{border:1px solid var(--border);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:10px}.code-editor{width:100%;min-height:360px;resize:vertical;border-radius:8px;border:1px solid var(--border-strong);background:var(--bg-control);color:var(--text-primary);padding:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.selected-row{background:var(--row-selected)}.files-grid table{table-layout:fixed}.files-grid th:nth-child(1),.files-grid td:nth-child(1){width:44px}.files-grid th:nth-child(2),.files-grid td:nth-child(2){width:38%}.files-grid th:nth-child(3),.files-grid td:nth-child(3){width:12%}.files-grid th:nth-child(4),.files-grid td:nth-child(4){width:14%}.files-grid th:nth-child(5),.files-grid td:nth-child(5){width:36%}.files-grid th{vertical-align:middle}.files-grid td{vertical-align:top}.file-name-cell{white-space:nowrap}.file-entry-button{padding:4px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sites-actions-header{width:1%;white-space:nowrap;text-align:right}.sites-actions-cell{white-space:nowrap}.sites-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.home-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.home-stat-card{border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--bg-control)}.home-stat-value{margin-top:6px;font-size:15px;color:var(--text-primary)}.home-chart-wrap{width:100%;min-height:300px;overflow:hidden}@media(max-width:1024px){.app-shell{grid-template-columns:1fr;padding:12px}.sidebar{position:fixed;top:0;left:0;width:min(320px,86vw);height:100vh;border-radius:0 12px 12px 0;transform:translate(-105%);transition:transform .2s ease;z-index:40}.sidebar.open{transform:translate(0)}.sidebar-backdrop{display:block;position:fixed;inset:0;border:0;padding:0;margin:0;background:var(--overlay-backdrop);opacity:0;pointer-events:none;z-index:30;transition:opacity .2s ease}.sidebar-backdrop.show{opacity:1;pointer-events:auto}.mobile-topbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.mobile-topbar h1{margin:0;font-size:24px}}@media(max-width:720px){.app{gap:16px}.app.standalone{padding:16px}.mobile-topbar .burger-button{width:44px;min-width:44px;height:40px;padding:0}.mobile-topbar .theme-toggle-button{width:auto;min-width:86px;margin-left:auto}header{flex-direction:column;align-items:flex-start}.row{flex-direction:column;align-items:stretch}.row.space-between{align-items:flex-start}.cheburcheck-action-row{flex-direction:column;align-items:stretch}.cheburcheck-action-time{margin-left:0}input[type=text],input[type=file],input:not([type]),textarea,select,button{width:100%;min-width:0}table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.partner-domain-routes-scroll{overflow-x:auto;margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.partner-domain-routes-table{display:table;width:auto;min-width:960px}.files-grid{grid-template-columns:1fr}th,td{white-space:nowrap}.partner-domain-routes-table th,.partner-domain-routes-table td{white-space:normal}.partner-domain-routes-table .partner-domain-routes-actions{white-space:nowrap}.partner-domain-routes-table .partner-domain-routes-action-row{justify-content:flex-end;flex-wrap:nowrap}.partner-domain-routes-table .partner-domain-routes-action-row button{width:auto;min-width:0;flex:0 0 auto}}
