:root{--bg-page: #020617;--bg-sidebar: #0f172a;--bg-card: #0f172a;--bg-card-hover: #1e293b;--bg-input: #1e293b;--bg-input-focus: #334155;--bg-glass: rgba(15, 23, 42, .85);--glass-border: rgba(148, 163, 184, .15);--text-heading: #f1f5f9;--text-body: #cbd5e1;--text-muted: #94a3b8;--text-dim: #64748b;--text-inverse: #ffffff;--border: #1e293b;--border-light: #334155;--primary: #3b82f6;--primary-hover: #2563eb;--primary-bg-soft: rgba(59, 130, 246, .2);--primary-text-soft: #60a5fa;--success: #10b981;--success-bg-soft: rgba(16, 185, 129, .1);--success-text-soft: #34d399;--danger: #ef4444;--danger-bg-soft: rgba(239, 68, 68, .1);--danger-text-soft: #f87171;--warning: #f59e0b;--warning-bg-soft: rgba(245, 158, 11, .2);--warning-text-soft: #fbbf24;--radius: 8px;--radius-sm: 6px;--radius-lg: 16px;--header-height: 60px;--sidebar-width: 260px;--font-sans: "Inter", system-ui, -apple-system, sans-serif;--font-mono: "Fira Code", "Consolas", monospace;--transition: all .2s ease-in-out;--editor-bg: #0d1117;--editor-gutter: #161b22;--editor-gutter-text: #484f58;--editor-line: #21262d;--editor-text: #c9d1d9;--editor-cursor: #c9d1d9;--tok-comment: #8b949e;--tok-punctuation: #c9d1d9;--tok-keyword: #ff7b72;--tok-string: #a5d6ff;--tok-function: #d2a8ff;--tok-number: #79c0ff;--tok-operator: #ff7b72;--tok-class: #ffa657;--tok-builtin: #ffa657;--tok-boolean: #79c0ff;--tok-decorator: #d2a8ff;--tok-variable: #ffa657}:root[data-theme=light]{--bg-page: #f9fafb;--bg-sidebar: #ffffff;--bg-card: #ffffff;--bg-card-hover: #f3f4f6;--bg-input: #f3f4f6;--bg-input-focus: #ffffff;--bg-glass: rgba(255, 255, 255, .9);--glass-border: rgba(0, 0, 0, .1);--text-heading: #111827;--text-body: #374151;--text-muted: #6b7280;--text-dim: #9ca3af;--text-inverse: #ffffff;--border: #e5e7eb;--border-light: #d1d5db;--primary-bg-soft: rgba(59, 130, 246, .1);--primary-text-soft: #2563eb;--warning-bg-soft: rgba(245, 158, 11, .1);--warning-text-soft: #d97706;--danger-bg-soft: rgba(239, 68, 68, .1);--danger-text-soft: #dc2626;--success-bg-soft: rgba(16, 185, 129, .1);--success-text-soft: #059669;--editor-bg: #ffffff;--editor-gutter: #f6f8fa;--editor-gutter-text: #9ca3af;--editor-line: #e5e7eb;--editor-text: #24292f;--editor-cursor: #24292f;--tok-comment: #6a737d;--tok-punctuation: #24292f;--tok-keyword: #cf222e;--tok-string: #0a3069;--tok-function: #8250df;--tok-number: #0550ae;--tok-operator: #cf222e;--tok-class: #953800;--tok-builtin: #953800;--tok-boolean: #0550ae;--tok-decorator: #8250df;--tok-variable: #953800}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);background-color:var(--bg-page);color:var(--text-body);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.dashboard-layout{display:flex;min-height:100vh}.page-container{max-width:1200px;margin:0 auto;width:100%}.sidebar{width:var(--sidebar-width);background:var(--bg-sidebar);border-right:1px solid var(--border);height:100vh;position:sticky;top:0;display:flex;flex-direction:column;flex-shrink:0;z-index:50}.sidebar-header{height:var(--header-height);display:flex;align-items:center;padding:0 1.5rem;border-bottom:1px solid var(--border);justify-content:space-between}.brand{font-weight:700;font-size:1.1rem;color:var(--text-heading);text-decoration:none;display:flex;align-items:center;gap:.75rem}.sidebar-nav{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:2px}.main-content{flex:1;padding:2rem;overflow-y:auto;max-width:100%}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.6rem .8rem;color:var(--text-muted);text-decoration:none;font-weight:500;transition:var(--transition);border-radius:var(--radius-sm);border:1px solid transparent;background:transparent;width:100%;text-align:left;cursor:pointer;font-size:.9rem}.nav-link:hover{background-color:var(--bg-card-hover);color:var(--text-heading)}.nav-link.active{background:var(--bg-card-hover);color:var(--primary);border-color:var(--border)}.nav-link svg{width:18px;height:18px;stroke-width:2px}.sidebar-instance{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin-top:auto;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary-bg-soft);color:var(--primary-text-soft);font-size:.68rem;font-weight:700;line-height:1;margin-left:auto}.nav-link-logout{color:var(--text-muted)}.nav-link-logout:hover{color:var(--danger);background:#ef44440d}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem;color:var(--text-body)}.card:hover{border-color:var(--border-light)}.card-section-header{display:flex;align-items:center;gap:.75rem;padding-bottom:.75rem;margin-bottom:1rem;border-bottom:1px solid var(--border)}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.glass-panel{background:var(--bg-glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid var(--glass-border);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem;color:var(--text-heading)}.glass-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--glass-border)}.glass-header h2{margin:0;font-size:1.2rem;font-weight:600;color:var(--text-heading)}.glass-icon{padding:.5rem;border-radius:10px;display:flex;align-items:center;justify-content:center}.glass-icon--primary{background:var(--primary-bg-soft);color:var(--primary-text-soft)}.glass-icon--warning{background:var(--warning-bg-soft);color:var(--warning-text-soft)}.glass-alert{display:flex;align-items:center;gap:.75rem;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border:1px solid transparent}.glass-alert--error{background:var(--danger-bg-soft);border-color:var(--danger);color:var(--danger-text-soft)}.glass-alert--success{background:var(--success-bg-soft);border-color:var(--success);color:var(--success-text-soft)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:38px;padding:0 1rem;border-radius:var(--radius-sm);font-weight:500;font-size:.9rem;cursor:pointer;border:1px solid transparent;transition:var(--transition);text-decoration:none;white-space:nowrap;background:var(--bg-card);color:var(--text-heading);border-color:var(--border);line-height:1;box-sizing:border-box;vertical-align:middle;font-family:inherit;margin:0}label.btn{display:inline-flex;-webkit-appearance:none;appearance:none}.btn:hover:not(:disabled){background-color:var(--bg-card-hover);border-color:var(--text-muted)}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-secondary{background:var(--bg-card);border:1px solid var(--border);color:var(--text-heading)}.btn-secondary:hover:not(:disabled){background-color:var(--bg-card-hover);border-color:var(--text-muted)}.btn-danger{background:transparent;border:1px solid var(--border);color:var(--danger)}.btn-danger:hover:not(:disabled){background:#ef44441a;color:var(--danger);border-color:var(--danger)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-icon{height:38px;width:38px;padding:0;border-radius:var(--radius-sm);background:transparent;border:1px solid transparent;color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:var(--transition)}.btn-icon:hover{background:var(--bg-card-hover);color:var(--text-heading)}.btn-square{width:38px;padding:0}.btn-sm-square{width:32px;height:32px;padding:0}.btn-sm{padding:.25rem .5rem;font-size:.8rem;gap:.25rem}.btn-group{display:inline-flex;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}.btn-group .btn{border-radius:0;border:none;border-right:1px solid var(--border)}.btn-group .btn:last-child{border-right:none}.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text-body)}.btn-outline:hover:not(:disabled){background:var(--bg-card-hover);border-color:var(--text-muted);color:var(--text-heading)}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border);gap:1rem}.page-header h1{margin:0;font-size:1.5rem;font-weight:600;color:var(--text-heading)}.page-subtitle{margin:.25rem 0 0;color:var(--text-muted);font-size:.9rem}.input-field{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-heading);padding:0 .75rem;height:38px;font-size:.9rem;width:100%;transition:var(--transition);font-family:inherit}.input-field:focus{outline:none;border-color:var(--primary);background:var(--bg-input-focus);box-shadow:0 0 0 2px #3b82f626}.input-wrapper{position:relative;width:100%;margin-bottom:1.5rem}.input-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.input-with-icon{padding-left:36px!important}label{display:inline-block;margin-bottom:.5rem;color:var(--text-body);font-weight:500;font-size:.9rem}.form-hint{font-size:.8rem;color:var(--text-dim);margin-top:.4rem}.parser-table,.proxy-table{width:100%;overflow:hidden;border-collapse:separate;border-spacing:0}.parser-head-row,.proxy-head-row{display:grid;padding:.6rem 1rem;background-color:var(--bg-card-hover);border-bottom:1px solid var(--border);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);align-items:center}.parser-row,.proxy-row{display:grid;padding:.65rem 1rem;border-bottom:1px solid var(--border);align-items:center;font-size:.9rem;transition:background-color .1s}.parser-row:last-child,.proxy-row:last-child{border-bottom:none}.parser-row:hover,.proxy-row:hover{background-color:var(--bg-card-hover)}.parser-row--error{border-left:3px solid var(--danger)}.parser-row--disabled{opacity:.6}.parser-head-row,.parser-row{grid-template-columns:2.2fr 1.4fr 150px 90px 96px;gap:1rem}.proxy-head-row,.proxy-row{grid-template-columns:2fr 100px 1.5fr 120px;gap:1rem}.parser-col-main{display:flex;align-items:center;gap:.75rem;min-width:0}.parser-icon-wrapper{position:relative;flex-shrink:0;width:36px;height:36px}.parser-icon-wrapper>label{display:block;width:100%;height:100%;cursor:pointer;line-height:0}.parser-icon{width:36px;height:36px;border-radius:8px;object-fit:cover;background:var(--bg-input);display:flex;align-items:center;justify-content:center;font-size:1.1rem;border:1px solid var(--border);box-sizing:border-box}.icon-edit-overlay{position:absolute;top:0;left:0;width:36px;height:36px;background:#0000008c;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;border-radius:8px;color:#fff;pointer-events:none}.parser-icon-wrapper:hover .icon-edit-overlay{opacity:1}.parser-info{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px}.parser-service-title{font-weight:600;font-size:.92rem;color:var(--text-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parser-service-sub{font-size:.78rem;color:var(--text-muted);line-height:1.3}.parser-col-file{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}.parser-col-state{display:flex;align-items:center;gap:8px}.parser-col-status{display:flex;align-items:center}.parser-state-text{font-size:.82rem;color:var(--text-muted);white-space:nowrap}.parser-switch-wrap{flex-shrink:0}.parser-filename{font-family:var(--font-mono);font-size:.8rem;color:var(--text-dim);background:var(--bg-input);padding:3px 8px;border-radius:4px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.parser-error-pill{display:inline-flex;align-items:center;gap:4px;background:#ef44441a;color:var(--danger);padding:2px 8px;border-radius:4px;font-size:.75rem;cursor:pointer;margin-top:2px}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg-page);padding:1rem;position:relative;overflow:hidden}.login-card{width:100%;max-width:400px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;text-align:center;position:relative;z-index:10}.login-header{margin-bottom:2rem}.login-logo-wrap{margin-bottom:1rem;display:flex;justify-content:center}.login-error{background:#ef44441a;color:var(--danger);padding:.75rem;border-radius:var(--radius-sm);margin-bottom:1.5rem;display:flex;align-items:center;gap:.75rem;font-size:.9rem;text-align:left}.login-submit{width:100%;justify-content:center;height:42px;font-size:1rem}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.modal-overlay{position:fixed;inset:0;background:#00000080;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem}.modal-card{width:100%;max-width:600px;max-height:90vh;overflow-y:auto}.modal-title{display:flex;align-items:center;gap:.75rem;font-size:1.1rem;margin-top:0;color:var(--text-heading)}.modal-filename{font-family:monospace;color:var(--text-muted);border-bottom:1px solid var(--border);padding-bottom:.5rem;margin-bottom:1rem}.modal-pre{background:var(--bg-page);padding:1rem;border-radius:var(--radius-sm);overflow-x:auto;color:var(--danger-text-soft);font-family:monospace;font-size:.85rem;border:1px solid var(--border)}.modal-content{width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border)}.modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid var(--border)}.badge{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:9999px;font-size:.75rem;font-weight:500;line-height:1.5}.badge-info{background:#3b82f626;color:var(--primary);border:1px solid rgba(59,130,246,.25)}.roles-empty{text-align:center;padding:3rem 1.5rem}.roles-empty-icon{color:var(--text-dim);margin-bottom:1rem}.roles-empty p{color:var(--text-muted);margin:0 0 1rem;font-size:.9rem}.roles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1rem}.role-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.75rem;transition:border-color .15s}.role-card:hover{border-color:var(--border-light)}.role-card-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.role-card-name{font-weight:700;font-size:1rem;color:var(--text-heading);display:flex;align-items:center;gap:8px;min-width:0}.role-card-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-card-actions{display:flex;gap:.25rem;flex-shrink:0}.role-card-sections{display:flex;flex-wrap:wrap;gap:6px}.role-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:6px;font-size:.78rem;font-weight:500;background:var(--primary-bg-soft);color:var(--primary-text-soft);border:1px solid rgba(59,130,246,.15)}.role-card-meta{font-size:.78rem;color:var(--text-dim);margin-top:auto;padding-top:.5rem;border-top:1px solid var(--border)}.role-form{padding:1.25rem;display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.375rem}.form-label{font-weight:500;font-size:.85rem;color:var(--text-heading)}.form-label-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.form-label-actions{display:flex;gap:.375rem}.sections-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;max-height:260px;overflow-y:auto;padding:10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-input)}.section-option{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:.85rem;color:var(--text-body);border:1px solid transparent;transition:all .12s;-webkit-user-select:none;user-select:none}.section-option:hover{background:var(--bg-card-hover)}.section-option--active{background:var(--primary-bg-soft);border-color:#3b82f64d;color:var(--primary-text-soft)}.section-option input[type=checkbox]{accent-color:var(--primary);flex-shrink:0}.password-row{display:flex;gap:.5rem;align-items:center}.password-input-wrap{position:relative;flex:1;min-width:0}.password-input-wrap .input-field{width:100%;padding-right:2.5rem;box-sizing:border-box}.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%)}.form-hint{font-size:.78rem;color:var(--danger);margin:0}.access-denied-card{text-align:center;padding:3rem 1.5rem}.access-denied-card h2{margin:0 0 .5rem;color:var(--text-heading)}.access-denied-card p{color:var(--text-muted);margin:0}@media(max-width:768px){.roles-grid{grid-template-columns:1fr}.sections-grid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.sections-grid{grid-template-columns:1fr}.password-row{flex-wrap:wrap}.password-input-wrap{width:100%}.metrics-summary-grid{grid-template-columns:1fr}.metrics-parser-table{min-width:0}.metrics-parser-table thead{display:none}.metrics-parser-table tbody tr{display:flex;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;border-bottom:1px solid var(--border)}.metrics-parser-table tbody tr:last-child{border-bottom:none}.metrics-parser-table td{display:block;padding:0;border-bottom:none}.metrics-parser-table td.metrics-parser-name{width:100%;font-size:.92rem}.metrics-parser-table td.metrics-parser-file{width:100%;font-size:.78rem;margin-bottom:2px}}.status-badge,.parser-status-badge,.proxy-status-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.parser-status-badge--active,.proxy-status-badge--ok{background:#10b98126;color:var(--success)}.parser-status-badge--error,.proxy-status-badge--error{background:#ef444426;color:var(--danger)}.parser-status-badge--disabled,.proxy-status-badge--unknown{background:#ffffff0d;color:var(--text-muted)}.parser-col-actions,.proxy-col-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem}.parser-actions-inline,.proxy-actions-inline{display:flex;gap:.5rem}.text-success{color:var(--success)}.text-danger{color:var(--danger)}.text-primary{color:var(--primary)}.text-warning{color:var(--warning)}.text-muted{color:var(--text-muted)}.spinner{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.flex-col{flex-direction:column}.flex-1{flex:1}.gap-2{gap:.5rem}.gap-4{gap:1rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-dim)}.mobile-header,.mobile-only{display:none}.mobile-overlay{display:none;position:fixed;inset:0;background:#00000080;z-index:40}.mobile-overlay.open{display:block}.mobile-hidden{display:inline}@media(max-width:768px){.dashboard-layout{flex-direction:column}.mobile-only{display:block!important}.mobile-hidden{display:none!important}.sidebar{position:fixed;height:100%;transform:translate(-100%);transition:transform .2s ease;width:85%;max-width:300px;background:var(--bg-sidebar);border-right:1px solid var(--border)}.sidebar.open{transform:translate(0)}.mobile-header{display:flex;height:60px;align-items:center;justify-content:space-between;padding:0 1rem;background:var(--bg-card);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}.main-content{padding:1rem 1rem 6rem}.page-header{flex-direction:column;align-items:flex-start;gap:.75rem;margin-bottom:1rem}.page-header-actions{width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.card{padding:1rem}.parser-head-row,.proxy-head-row{display:none}.parser-row,.proxy-row{grid-template-columns:1fr;gap:.5rem;height:auto;padding:1rem}.parser-col-main{margin-bottom:.5rem}.parser-col-actions,.proxy-col-actions{justify-content:flex-start;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border);width:100%}.glass-panel{padding:1rem;border-radius:var(--radius)}.banner-dropzone{padding:20px 12px}.btn-save-full{height:44px}.modal-card{max-width:100%;margin:0 .5rem}table{font-size:.85rem}.login-page{align-items:flex-start;padding-top:20vh}.login-card{padding:1.5rem;margin:0 auto;width:100%}}.switch{position:relative;display:inline-block;width:40px;height:22px}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;inset:0;background-color:var(--bg-input);border:1px solid var(--border);transition:.2s;border-radius:20px}.switch .slider:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:var(--text-muted);transition:.2s;border-radius:50%}.switch input:checked+.slider{background:var(--success);border-color:transparent}.switch input:checked+.slider:before{transform:translate(18px);background-color:#fff}.crop-zoom-range{-webkit-appearance:none;appearance:none;width:100%;height:4px;background:var(--border-light);border-radius:2px;outline:none;cursor:pointer}.crop-zoom-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--primary);border:2px solid var(--bg-card);cursor:pointer}.crop-zoom-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--primary);border:2px solid var(--bg-card);cursor:pointer}.tab-btn{background:transparent;border:none;color:var(--text-muted);padding-bottom:.5rem;cursor:pointer;font-weight:500;font-size:.9rem;border-bottom:2px solid transparent;transition:color .15s ease,border-color .15s ease}.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}.tab-btn:hover{color:var(--text-body)}.settings-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:24px}.settings-form .full-width{grid-column:1 / -1}.glass-input{width:100%;padding:10px 14px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);color:var(--text-heading);font-size:.95rem;outline:none;transition:var(--transition);margin-top:6px;font-family:inherit}.glass-input:focus{border-color:var(--primary);background:var(--bg-input-focus);box-shadow:0 0 0 2px #3b82f626}.glass-input--warning:focus{border-color:var(--warning);box-shadow:0 0 0 2px #f59e0b26}.glass-icon--success{background:var(--success-bg-soft);color:var(--success-text-soft)}.banner-preview-frame{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--glass-border);aspect-ratio:16/9;background:var(--bg-input);display:flex;align-items:center;justify-content:center}.banner-meta{margin-top:20px;background:var(--bg-input);border-radius:10px;padding:16px}.banner-meta-label{display:flex;align-items:center;gap:10px;color:var(--text-muted);font-size:.9rem;margin-bottom:4px}.banner-link{color:var(--primary-text-soft);text-decoration:none;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.banner-dropzone{border:2px dashed var(--border-light);border-radius:12px;padding:32px 20px;text-align:center;background:var(--bg-input);transition:var(--transition);cursor:pointer;position:relative;margin-bottom:24px}.banner-dropzone--active{border-color:var(--primary);background:var(--primary-bg-soft)}.banner-dropzone-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:var(--bg-card-hover);display:flex;align-items:center;justify-content:center}.banner-empty{height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--border);border-radius:12px;color:var(--text-dim)}.btn-delete-banner{margin-top:16px;width:100%;padding:.75rem 1rem;background:var(--danger-bg-soft);border:1px solid var(--danger);color:var(--danger-text-soft);border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;font-size:inherit;font-family:inherit;transition:var(--transition)}.btn-delete-banner:disabled{opacity:.5;cursor:not-allowed}.btn-save-full{width:100%;height:42px}.btn-wide{padding:0 1.25rem}.preview-remove-btn{position:absolute;top:-10px;right:-10px;background:var(--danger);color:var(--text-inverse);border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer}.toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:calc(100vw - 40px)}.toast{position:relative;display:flex;align-items:center;gap:10px;padding:14px 18px;border-radius:12px;font-size:.9rem;font-weight:500;line-height:1.4;pointer-events:auto;animation:toastIn .35s cubic-bezier(.21,1.02,.73,1);min-width:260px;max-width:420px;border:1px solid transparent;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 4px 24px #00000040,0 1px 4px #00000026;word-break:break-word;overflow:hidden}.toast--success{background:#10b981e0;color:#fff;border-color:#34d39980}.toast--error{background:#ef4444e0;color:#fff;border-color:#f8717180}.toast--info{background:#3b82f6e0;color:#fff;border-color:#60a5fa80}.toast--warning{background:#f59e0be0;color:#fff;border-color:#fbbf2480}:root[data-theme=light] .toast--success{background:#10b981eb}:root[data-theme=light] .toast--error{background:#dc2626eb}:root[data-theme=light] .toast--info{background:#2563ebeb}:root[data-theme=light] .toast--warning{background:#d97706eb}.toast--exit{animation:toastOut .3s ease forwards}.toast-close{margin-left:auto;flex-shrink:0;background:none;border:none;color:inherit;cursor:pointer;padding:2px;opacity:.7;transition:opacity .15s;border-radius:4px}.toast-close:hover{opacity:1}.toast-icon{flex-shrink:0}.toast-msg{flex:1;min-width:0}.toast-progress{position:absolute;bottom:0;left:0;height:3px;background:#fff6;border-radius:0 0 0 12px;animation:toastProgress linear forwards;width:100%}@keyframes toastProgress{0%{width:100%}to{width:0%}}@keyframes toastIn{0%{opacity:0;transform:translate(30px) scale(.95)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes toastOut{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(30px) scale(.95)}}@keyframes toastInMobile{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toastOutMobile{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(20px) scale(.95)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.confirm-overlay{position:fixed;inset:0;background:#00000080;z-index:9998;display:flex;align-items:center;justify-content:center;padding:1rem;animation:fadeIn .15s ease}.confirm-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;max-width:400px;width:100%;text-align:center}.confirm-card h3{margin:0 0 .5rem;font-size:1.1rem;color:var(--text-heading)}.confirm-card p{margin:0 0 1.5rem;color:var(--text-muted);font-size:.9rem}.confirm-actions{display:flex;gap:.75rem;justify-content:center}.confirm-actions .btn{min-width:100px}.not-found-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center;color:var(--text-muted)}.not-found-page h1{font-size:4rem;margin:0;color:var(--text-dim)}.not-found-page p{font-size:1.1rem;margin:.5rem 0 2rem}.page-loader{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:9999;background:var(--bg-page);animation:pageLoaderFadeIn .2s ease}.page-loader-content{display:flex;flex-direction:column;align-items:center;gap:28px}.page-loader-logo{height:40px;width:auto;max-width:160px;object-fit:contain}.page-loader-row{display:flex;align-items:center;gap:10px}.page-loader-spinner{flex-shrink:0;animation:pageLoaderSpin 1.4s linear infinite}.page-loader-arc{stroke-dasharray:70 100;animation:pageLoaderDash 1.4s ease-in-out infinite}.page-loader-text{font-size:.82rem;font-weight:500;color:var(--text-dim)}@keyframes pageLoaderFadeIn{0%{opacity:0}to{opacity:1}}@keyframes pageLoaderSpin{to{transform:rotate(360deg)}}@keyframes pageLoaderDash{0%{stroke-dasharray:1 100;stroke-dashoffset:0}50%{stroke-dasharray:70 100;stroke-dashoffset:-20}to{stroke-dasharray:70 100;stroke-dashoffset:-94}}.skeleton{background:linear-gradient(90deg,var(--bg-card-hover) 25%,var(--bg-input-focus) 37%,var(--bg-card-hover) 63%);background-size:200% 100%;border-radius:var(--radius-sm);animation:skeletonShimmer 1.6s ease-in-out infinite}.skeleton-row{height:52px;margin-bottom:1px}.skeleton-card{height:120px;margin-bottom:1rem;border-radius:var(--radius)}@keyframes skeletonShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.editor-page{display:flex;flex-direction:column;height:100%;min-height:0}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0;margin-bottom:.5rem;flex-shrink:0}.editor-toolbar-left{display:flex;align-items:center;gap:.75rem;min-width:0}.editor-toolbar-right{display:flex;align-items:center;gap:1rem;flex-shrink:0}.editor-file-info{display:flex;align-items:center;gap:6px;min-width:0}.editor-filename{font-family:var(--font-mono);font-size:.95rem;font-weight:600;color:var(--text-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-dirty-dot{width:8px;height:8px;border-radius:50%;background:var(--warning);flex-shrink:0}.editor-line-count{font-size:.8rem;font-variant-numeric:tabular-nums;white-space:nowrap}.editor-body{flex:1;min-height:0;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--editor-bg)}.editor-loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-size:.9rem}.editor-scroll{display:flex;height:100%;overflow:auto}.editor-gutter{position:sticky;left:0;z-index:2;display:flex;flex-direction:column;align-items:flex-end;padding:16px 12px 16px 16px;background:var(--editor-gutter);border-right:1px solid var(--editor-line);font-family:var(--font-mono);font-size:13px;line-height:1.5;color:var(--editor-gutter-text);-webkit-user-select:none;user-select:none;min-width:52px;box-sizing:border-box;flex-shrink:0}.editor-content{flex:1;min-width:0}.editor-highlight{font-family:var(--font-mono)!important;font-size:13px!important;line-height:1.5!important;color:var(--editor-text)!important;caret-color:var(--editor-cursor)!important;background:none!important;padding:16px!important;white-space:pre!important;min-height:100%!important;box-sizing:border-box}.editor-textarea{outline:none!important;border:none!important;background:transparent!important;caret-color:var(--editor-cursor)!important;color:transparent!important;white-space:pre!important;font-family:var(--font-mono)!important;font-size:13px!important;line-height:1.5!important;padding:16px!important;min-height:100%!important;resize:none!important}.editor-highlight .token.comment,.editor-highlight .token.prolog,.editor-highlight .token.doctype,.editor-highlight .token.cdata{color:var(--tok-comment);font-style:italic}.editor-highlight .token.punctuation{color:var(--tok-punctuation)}.editor-highlight .token.keyword,.editor-highlight .token.atrule{color:var(--tok-keyword)}.editor-highlight .token.string,.editor-highlight .token.char,.editor-highlight .token.attr-value{color:var(--tok-string)}.editor-highlight .token.function,.editor-highlight .token.function-name{color:var(--tok-function)}.editor-highlight .token.number{color:var(--tok-number)}.editor-highlight .token.operator,.editor-highlight .token.entity,.editor-highlight .token.url{color:var(--tok-operator)}.editor-highlight .token.class-name,.editor-highlight .token.constant,.editor-highlight .token.symbol{color:var(--tok-class)}.editor-highlight .token.builtin,.editor-highlight .token.property{color:var(--tok-builtin)}.editor-highlight .token.boolean{color:var(--tok-boolean)}.editor-highlight .token.decorator,.editor-highlight .token.tag{color:var(--tok-decorator)}.editor-highlight .token.variable,.editor-highlight .token.regex{color:var(--tok-variable)}.editor-highlight .token.important,.editor-highlight .token.bold{font-weight:700}.editor-highlight .token.italic{font-style:italic}.editor-highlight .token.deleted{color:var(--danger)}.editor-highlight .token.inserted{color:var(--success)}@media(max-width:768px){.editor-toolbar{flex-wrap:wrap}.editor-gutter{display:none}.editor-highlight,.editor-textarea{font-size:12px!important;padding:12px!important}.editor-body{border-radius:var(--radius-sm)}}.docs-editor-bar{display:flex;border-bottom:1px solid var(--border);padding:8px 16px;align-items:center;gap:8px;background:var(--bg-card-hover);font-size:13px;color:var(--text-muted)}.docs-textarea{width:100%;min-height:500px;padding:20px;border:none;outline:none;resize:vertical;font-family:var(--font-mono);font-size:14px;line-height:1.6;background:var(--bg-card);color:var(--text-body);box-sizing:border-box}.docs-view{overflow-x:auto;padding:1.5rem 2rem}.markdown-body{color:var(--text-body);font-size:.95rem;line-height:1.75;word-wrap:break-word;overflow-wrap:break-word}.markdown-body>*:first-child{margin-top:0}.markdown-body>*:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{color:var(--text-heading);font-weight:700;line-height:1.3;margin:1.75em 0 .75em}.markdown-body h1{font-size:1.75rem;padding-bottom:.4em;border-bottom:1px solid var(--border)}.markdown-body h2{font-size:1.4rem;padding-bottom:.3em;border-bottom:1px solid var(--border)}.markdown-body h3{font-size:1.15rem}.markdown-body h4{font-size:1rem}.markdown-body p{margin:.75em 0}.markdown-body a{color:var(--primary);text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body strong{color:var(--text-heading);font-weight:700}.markdown-body em{font-style:italic}.markdown-body blockquote{margin:1em 0;padding:.5em 1em;border-left:4px solid var(--primary);background:var(--bg-input);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--text-muted)}.markdown-body blockquote p{margin:.25em 0}.markdown-body ul,.markdown-body ol{margin:.75em 0;padding-left:1.75em}.markdown-body li{margin:.35em 0}.markdown-body li>ul,.markdown-body li>ol{margin:.25em 0}.markdown-body code{font-family:var(--font-mono);font-size:.88em;background:var(--bg-input);padding:2px 6px;border-radius:4px;color:var(--primary-text-soft);border:1px solid var(--border)}.markdown-body pre{margin:1em 0;padding:1rem 1.25rem;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);overflow-x:auto;line-height:1.5}.markdown-body pre code{background:none;padding:0;border:none;border-radius:0;font-size:.85rem;color:var(--text-body)}.markdown-body hr{border:none;border-top:1px solid var(--border);margin:1.5em 0}.markdown-body table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.88rem}.markdown-body thead th{background:var(--bg-card-hover);font-weight:600;color:var(--text-heading);text-align:left;padding:.6rem .75rem;border-bottom:2px solid var(--border)}.markdown-body tbody td{padding:.5rem .75rem;border-bottom:1px solid var(--border);vertical-align:top}.markdown-body tbody tr:last-child td{border-bottom:none}.markdown-body tbody tr:hover{background:var(--bg-card-hover)}.markdown-body img{max-width:100%;height:auto;border-radius:var(--radius-sm);margin:.5em 0}.markdown-body input[type=checkbox]{margin-right:.5em;accent-color:var(--primary)}.markdown-body del{color:var(--text-dim)}@media(max-width:768px){.docs-view{padding:1rem}.markdown-body{font-size:.9rem}.markdown-body h1{font-size:1.4rem}.markdown-body h2{font-size:1.2rem}.markdown-body pre{padding:.75rem}.markdown-body table{font-size:.82rem}}.api-sandbox-row{display:flex;gap:10px;flex-wrap:wrap}.api-sandbox-method{width:100px;flex-shrink:0}.api-sandbox-url{flex:1;font-family:var(--font-mono);min-width:140px}.api-response{background:var(--bg-input);padding:15px;border-radius:var(--radius-sm);border:1px solid var(--border);overflow-x:auto;white-space:pre-wrap;word-break:break-word;font-size:.85rem;max-width:100%}.api-response-header{display:flex;justify-content:space-between;margin-bottom:10px;font-size:.8rem;color:var(--text-muted)}.api-response pre{margin:0;overflow-x:auto;font-size:.85rem;color:var(--text-body);max-height:400px}.mobile-header-actions{display:flex;align-items:center;gap:.5rem}.geocoder-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:stretch}.geocoder-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.geocoder-card{display:flex;flex-direction:column;margin-bottom:0}.geocoder-stats{display:flex;flex-direction:column;gap:.75rem;flex:1}.geocoder-stat-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:var(--bg-input);border-radius:var(--radius)}.geocoder-stat-val{font-weight:600}.geocoder-pool-bar{height:8px;background:#ffffff0d;border-radius:4px;overflow:hidden;display:flex}.geocoder-hint{margin:auto 0 0;font-size:.85rem;color:var(--text-muted);line-height:1.6;padding-top:.5rem}.geocoder-badge{margin-left:auto;background:var(--bg-input);padding:2px 10px;border-radius:20px;font-size:.8rem;color:var(--text-body)}.geocoder-token-list{display:flex;flex-direction:column;gap:.5rem;flex:1;margin-bottom:1rem}.geocoder-token-item{display:flex;align-items:center;justify-content:space-between;padding:.625rem .75rem;background:var(--bg-input);border-radius:var(--radius);border:1px solid var(--border)}.geocoder-token-info{display:flex;align-items:center;gap:.75rem;overflow:hidden;min-width:0}.geocoder-token-code{display:block;font-size:.9rem;color:var(--text-body);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.geocoder-token-id{display:block;font-size:.75rem;color:var(--text-muted)}.geocoder-add-section{margin-top:auto;padding-top:1rem;border-top:1px solid var(--border)}.geocoder-cache-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}.geocoder-cache-card{padding:14px 18px;background:var(--bg-card-hover);border-radius:10px}.geocoder-cache-label{font-size:12px;margin-bottom:4px}.geocoder-cache-value{font-size:22px;font-weight:700}.geocoder-cache-card-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.geocoder-cache-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.geocoder-cache-card-title{font-weight:600;font-size:14px}.geocoder-cache-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.geocoder-cache-sm{font-size:11px}.geocoder-cache-num{font-size:18px;font-weight:600}.geocoder-cache-footer{font-size:12px;margin-top:6px}.geocoder-cache-actions{border-top:1px solid var(--border);padding-top:16px;display:flex;gap:8px;flex-wrap:wrap}.geocoder-add-row{display:flex;gap:.5rem;align-items:flex-start;margin-top:.5rem}.places-header-actions{display:flex;gap:.5rem;flex-wrap:wrap}.places-no-mb{margin-bottom:0!important}.places-card-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.places-card-title{font-size:1rem;font-weight:600;color:var(--text-heading)}.suggest-section{margin-bottom:1rem}.suggest-search-bar{display:flex;align-items:center;gap:.5rem;margin-bottom:0}.suggest-dropdown{display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-top:.5rem}.suggest-row{display:flex;align-items:center;gap:.75rem;padding:.625rem 1rem;border-bottom:1px solid var(--border);transition:background .12s}.suggest-row:last-child{border-bottom:none}.suggest-row:hover{background:var(--bg-card-hover)}.suggest-row-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%}.suggest-row-body{flex:1;min-width:0}.suggest-row-name{font-weight:600;font-size:.85rem;color:var(--text-heading);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggest-row-desc{display:block;font-size:.75rem;color:var(--text-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggest-row-pill{flex-shrink:0;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.suggest-row-empty{padding:1.5rem;text-align:center;color:var(--text-muted);font-size:.82rem}.places-type-pill{flex-shrink:0;font-size:.6rem;font-weight:700;padding:2px 8px;border-radius:4px;color:#fff;text-transform:uppercase;letter-spacing:.5px;margin-top:2px}.place-modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .15s ease;padding:1rem}.place-modal{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg, 16px);width:100%;max-width:520px;animation:modalSlideUp .2s ease;display:flex;flex-direction:column}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.place-modal-header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.place-modal-icon{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.place-modal-title{margin:0;font-size:1.05rem;font-weight:700;color:var(--text-heading)}.place-modal-subtitle{margin:2px 0 0;font-size:.8rem;color:var(--text-muted)}.place-modal-close{margin-left:auto;color:var(--text-muted)}.place-modal-body{padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.875rem}.place-modal-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.place-modal-field{display:flex;flex-direction:column}.place-modal-field--wide{grid-column:1 / -1}.place-modal-label{font-size:.75rem;font-weight:600;color:var(--text-muted);margin-bottom:5px;display:block}.place-modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid var(--border)}.places-search-bar{display:flex;gap:.5rem;margin-bottom:1rem}.places-search-field{flex:1}.places-list{display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.places-row{display:flex;align-items:center;gap:.75rem;padding:.625rem 1rem;border-bottom:1px solid var(--border);transition:background .12s}.places-row:last-child{border-bottom:none}.places-row:hover{background:var(--bg-card-hover)}.places-row-info{flex:1;min-width:0}.places-row-name{font-weight:600;font-size:.85rem;color:var(--text-heading)}.places-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;font-size:.75rem;color:var(--text-muted);margin-top:2px;line-height:1.5}.places-row-dot{color:var(--border);-webkit-user-select:none;user-select:none}.places-row-cat{color:var(--primary)}.places-row-group{font-weight:600;color:var(--text-body)}.places-row-actions{display:flex;gap:2px;flex-shrink:0}.places-btn-del{color:var(--danger)}.places-empty{padding:3rem 1rem;text-align:center;color:var(--text-muted);font-size:.85rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}.places-pagination{display:flex;justify-content:center;align-items:center;gap:.75rem;margin-top:.75rem}.pr-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border);margin-bottom:1rem;padding:0}.pr-tabs .tab-btn{display:flex;align-items:center;gap:.4rem;padding:.6rem 1rem;position:relative}.pr-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary-bg-soft);color:var(--primary-text-soft);font-size:.68rem;font-weight:700;line-height:1}.pr-badge-sm{min-width:16px;height:16px;font-size:.65rem}.pr-filters{display:flex;gap:.4rem;margin-bottom:1rem;flex-wrap:wrap}.pr-filter-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;border-radius:8px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-muted);font-size:.82rem;cursor:pointer;transition:all .15s ease}.pr-filter-btn:hover{border-color:var(--primary);color:var(--text-body)}.pr-filter-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.pr-filter-btn.active .pr-badge{background:#ffffff40;color:#fff}.pr-card{background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;margin-bottom:.5rem;transition:border-color .15s ease}.pr-card:hover{border-color:var(--border-hover, var(--primary))}.pr-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.pr-card-status{display:flex;align-items:center;gap:.35rem;font-size:.78rem;font-weight:600}.pr-card-date{font-size:.75rem;color:var(--text-muted)}.pr-card-body{margin-bottom:.5rem}.pr-card-title{font-size:.95rem;font-weight:600;color:var(--text-body);margin-bottom:.2rem}.pr-card-meta{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:var(--text-muted);flex-wrap:wrap}.pr-card-comment{margin-top:.4rem;font-size:.82rem;color:var(--text-muted);font-style:italic;padding:.4rem .6rem;background:var(--bg-secondary, rgba(0,0,0,.05));border-radius:6px}.pr-card-resolver{display:flex;align-items:center;gap:.35rem;font-size:.75rem;color:var(--text-muted);margin-bottom:.4rem}.pr-card-resolver-date{opacity:.7}.pr-card-reject-reason{font-size:.78rem;color:var(--danger);margin-bottom:.4rem;padding:.3rem .6rem;background:#ef444414;border-radius:6px}.pr-card-actions{display:flex;align-items:center;gap:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.btn-sm{height:32px;padding:0 .65rem;font-size:.78rem;gap:.3rem}.btn-success{background:var(--success);border-color:var(--success);color:#fff}.btn-success:hover{filter:brightness(1.1)}.btn-danger-outline{background:transparent;border:1px solid var(--danger);color:var(--danger)}.btn-danger-outline:hover{background:#ef44441a}.pr-approve-source{padding:.75rem 1.25rem;background:var(--bg-secondary, rgba(0,0,0,.03));border-bottom:1px solid var(--border)}.pr-approve-source-title{font-size:.75rem;color:var(--text-muted);margin-bottom:.3rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.pr-approve-source-row{font-size:.88rem;color:var(--text-body)}.pr-approve-source-comment{font-size:.82rem;color:var(--text-muted);font-style:italic;margin-top:.25rem}.tariff-grid{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;align-items:start}.tariff-sidebar{position:sticky;top:20px}.tariff-list{display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 280px);overflow-y:auto}.tariff-item{display:flex;align-items:center;justify-content:space-between;padding:.625rem .75rem;border-left:3px solid var(--primary);border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:var(--bg-card-hover)}.tariff-item-name{font-weight:600;font-size:.9rem;color:var(--text-heading)}.tariff-item-id{font-size:.75rem;color:var(--text-muted);font-family:monospace}.tariff-mapping-header{padding:.75rem 1.25rem;background:var(--bg-card-hover);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.625rem}.tariff-mapping-table{width:100%;border-collapse:collapse;font-size:.9rem}.tariff-mapping-table th{text-align:left;padding:.625rem 1.25rem;color:var(--text-muted);font-weight:500;border-bottom:1px solid var(--border);background:var(--bg-card)}.tariff-mapping-table td{padding:.625rem 1.25rem;border-bottom:1px solid var(--border)}.tariff-mapping-table tr:last-child td{border-bottom:none}.input-field--mapped{background:var(--success-bg-soft);border-color:var(--success);color:var(--success)}.empty-placeholder{padding:1.5rem;text-align:center;color:var(--text-muted);border:1px dashed var(--border);border-radius:var(--radius);font-size:.9rem}.test-results-card{display:flex;flex-direction:column;overflow:hidden;padding:0;min-height:400px;min-width:0}.test-tabs{padding:.75rem 1.25rem 0;border-bottom:1px solid var(--border);display:flex;gap:1.25rem}.test-results-body{overflow-y:auto;flex:1;padding:1.25rem;min-width:0}.test-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;color:var(--text-muted);text-align:center}.test-tariff-group{border-left:3px solid var(--primary);padding-left:.75rem}.test-tariff-name{font-size:1rem;font-weight:600;color:var(--primary);margin-bottom:.5rem}.test-offer-row{display:flex;align-items:center;justify-content:space-between;padding:.5rem .625rem;background:var(--bg-card-hover);border-radius:var(--radius-sm);gap:.75rem}.test-offer-service{display:flex;align-items:center;gap:.625rem;min-width:0}.test-offer-icon{width:24px;height:24px;object-fit:contain;flex-shrink:0}.test-offer-meta{display:flex;align-items:center;gap:1rem;font-size:.85rem;flex-shrink:0}.test-grid{display:grid;grid-template-columns:340px 1fr;gap:1.5rem;align-items:start}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.page-header-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:nowrap;flex-shrink:0;padding-top:2px}.stat-value{font-size:2.25rem;font-weight:700;line-height:1;color:var(--text-heading)}.stat-value--sm{font-size:1.75rem}.stat-label{font-size:.85rem;color:var(--text-muted)}.section-title{font-size:1.1rem;font-weight:600;margin:0;color:var(--text-heading)}.metric-row{display:flex;justify-content:space-between;align-items:center;padding:0}.metric-label{color:var(--text-muted);font-size:.9rem}.metric-value{font-weight:600;font-variant-numeric:tabular-nums}.metrics-live-row{display:flex;align-items:center;gap:8px;margin-top:2px}.metrics-live-dot{width:8px;height:8px;border-radius:50%;background:var(--success);animation:metricsLivePulse 2s ease-in-out infinite}@keyframes metricsLivePulse{0%,to{opacity:1;box-shadow:0 0 #10b98180}50%{opacity:.6;box-shadow:0 0 0 6px #10b98100}}.metrics-live-text{font-size:.8rem;font-weight:600;color:var(--success);text-transform:uppercase;letter-spacing:.5px}.metrics-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:1.5rem}.metrics-card{display:flex;align-items:center;gap:14px;padding:18px 20px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg)}.metrics-card-icon{flex-shrink:0;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center}.metrics-card-icon--primary,.metrics-card-icon--info{background:var(--primary-bg-soft);color:var(--primary-text-soft)}.metrics-card-icon--success{background:var(--success-bg-soft);color:var(--success-text-soft)}.metrics-card-icon--warning{background:var(--warning-bg-soft);color:var(--warning-text-soft)}.metrics-card-icon--danger{background:var(--danger-bg-soft);color:var(--danger-text-soft)}.metrics-card-body{min-width:0;overflow:hidden}.metrics-card-value{font-size:1.25rem;font-weight:700;line-height:1.2;color:var(--text-heading);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metrics-card-label{font-size:.78rem;color:var(--text-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis}.metrics-resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:1.5rem}.metrics-section-header{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.95rem;color:var(--text-heading);margin-bottom:16px}.metrics-bar-wrap{margin-bottom:12px}.metrics-bar-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}.metrics-bar-label{font-size:.85rem;color:var(--text-muted)}.metrics-bar-value{font-size:.85rem;font-weight:600;font-variant-numeric:tabular-nums}.metrics-bar-track{height:8px;background:var(--bg-input);border-radius:4px;overflow:hidden}.metrics-bar-fill{height:100%;border-radius:4px;transition:width .6s ease,background .4s ease;min-width:2px}.metrics-bar-meta{display:flex;justify-content:space-between;margin-top:8px;font-size:.78rem;color:var(--text-dim)}.metrics-parser-count{margin-left:auto;display:flex;gap:4px;font-variant-numeric:tabular-nums}.metrics-parser-table-wrap{overflow-x:auto}.metrics-parser-table{width:100%;border-collapse:collapse;font-size:.88rem}.metrics-parser-table th{text-align:left;padding:10px 20px;font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.3px;color:var(--text-dim);background:var(--bg-card-hover);border-bottom:1px solid var(--border)}.metrics-parser-table td{padding:10px 20px;border-bottom:1px solid var(--border);vertical-align:middle}.metrics-parser-table tbody tr:last-child td{border-bottom:none}.metrics-parser-table tbody tr:hover{background:var(--bg-card-hover)}.metrics-parser-row--error{background:var(--danger-bg-soft)}.metrics-parser-row--error:hover{background:var(--danger-bg-soft)!important}.metrics-parser-name{font-weight:500;color:var(--text-heading)}.metrics-parser-file{font-family:var(--font-mono);font-size:.82rem;color:var(--text-muted)}.metrics-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:.78rem;font-weight:600;white-space:nowrap}.metrics-badge--success{background:var(--success-bg-soft);color:var(--success-text-soft)}.metrics-badge--danger{background:var(--danger-bg-soft);color:var(--danger-text-soft)}.metrics-badge--muted{background:var(--bg-input);color:var(--text-dim)}.metrics-footer-row{display:flex;justify-content:space-between;padding:12px 0;font-size:.8rem;margin-top:4px}.chart-info-banner{display:none;align-items:center;gap:6px;padding:8px 14px;min-height:40px;background:var(--bg-input);border:1px solid var(--border-light);border-radius:var(--radius-sm);font-size:.85rem;margin-bottom:12px;color:var(--text-body);flex-wrap:wrap;box-sizing:border-box}.chart-info-val{font-weight:700;font-size:1.05rem;color:var(--primary);font-variant-numeric:tabular-nums}.chart-info-sm{font-size:.8rem;color:var(--text-muted)}.chart-info-sep{color:var(--text-dim);font-size:.9rem}.chart-tip{position:absolute;transform:translate(-50%);z-index:10;background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:6px 12px;font-size:.8rem;white-space:nowrap;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none}.chart-tip strong{color:var(--text-heading);font-size:.9rem}.chart-tip span{font-size:.78rem}.line-chart-container{position:relative}.line-chart-wrap{position:relative;overflow:hidden}.line-chart-svg{display:block;cursor:crosshair;touch-action:pan-y;-webkit-user-select:none;user-select:none}.line-chart-grid{stroke:var(--border);stroke-width:1;opacity:.5}.line-chart-y-label{text-anchor:end;font-size:11px;fill:var(--text-dim);font-variant-numeric:tabular-nums;font-family:var(--font-sans)}.line-chart-x-label{text-anchor:middle;font-size:11px;fill:var(--text-muted);font-family:var(--font-sans)}.line-chart-crosshair{stroke:var(--text-dim);stroke-width:1;stroke-dasharray:4 3;opacity:.6}.chart-legend{display:flex;align-items:center;gap:1rem}.chart-legend-item{display:flex;align-items:center;gap:6px}.chart-legend-dot{width:10px;height:10px;border-radius:3px;display:inline-block;flex-shrink:0}@media(max-width:768px){.test-grid,.tariff-grid{grid-template-columns:1fr}.tariff-sidebar{position:static}.tariff-list{max-height:none}.grid-cards{grid-template-columns:1fr;gap:1rem}.metrics-summary-grid{grid-template-columns:1fr 1fr;gap:10px}.metrics-card{padding:14px;gap:10px}.metrics-card-icon{width:36px;height:36px;border-radius:10px}.metrics-card-value{font-size:1rem;word-break:break-all}.metrics-card-label{font-size:.68rem;white-space:normal;word-break:break-word;line-height:1.3}.metrics-resource-grid{grid-template-columns:1fr;gap:12px}.metrics-parser-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.metrics-parser-table{min-width:520px}.metrics-parser-table th,.metrics-parser-table td{padding:8px 12px;font-size:.82rem}.metrics-parser-table th{font-size:.72rem}.metrics-badge{padding:2px 8px;font-size:.72rem}.metrics-section-header{font-size:.88rem}.metrics-bar-meta{flex-direction:column;gap:2px}.metrics-footer-row{flex-direction:column;gap:4px;font-size:.75rem}.metrics-live-row{gap:6px;font-size:.78rem}.stat-value{font-size:1.75rem}.toast-container{top:auto;bottom:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));right:12px;left:12px;max-width:none;align-items:stretch}.toast{min-width:0;max-width:none;width:100%;padding:12px 14px;font-size:.85rem;border-radius:10px;animation-name:toastInMobile}.toast--exit{animation-name:toastOutMobile}.confirm-card{margin:0 1rem}.geocoder-grid{grid-template-columns:1fr;gap:1rem}.geocoder-card{min-height:0!important}.geocoder-card .card-section-header{flex-wrap:wrap;gap:.5rem}.geocoder-card .card-section-header .section-title{flex:1;min-width:0;word-break:break-word}.geocoder-card .geocoder-badge{margin-left:0;flex-shrink:0}.geocoder-stat-row{flex-wrap:wrap;gap:.25rem .5rem;padding:.5rem .625rem}.geocoder-stat-row .text-muted{font-size:.8rem;flex:1;min-width:0}.geocoder-stat-row .geocoder-stat-val{font-size:.9rem;flex-shrink:0}.geocoder-stats-grid{grid-template-columns:1fr}.btn-group{width:100%}.btn-group .btn{flex:1;justify-content:center}.place-modal-row{grid-template-columns:1fr}.place-modal{max-width:100%}.places-search-bar,.geocoder-add-row{flex-direction:column}.geocoder-add-row .btn{width:100%;justify-content:center}.geocoder-cache-summary{grid-template-columns:1fr}.geocoder-cache-value{font-size:18px}.geocoder-cache-card-title{font-size:13px}.geocoder-cache-num{font-size:16px}.geocoder-cache-actions{flex-direction:column}.geocoder-cache-actions .btn{width:100%;justify-content:center}.chart-info-banner{display:flex}.chart-tip{display:none!important}.chart-info-banner{font-size:.8rem;padding:7px 12px;gap:5px;min-height:36px}.chart-info-val{font-size:.95rem}.line-chart-svg{cursor:default}.line-chart-x-label,.line-chart-y-label{font-size:9px}.test-offer-row{flex-direction:column;align-items:flex-start}.test-offer-meta{width:100%;justify-content:space-between;padding-top:.25rem}.tariff-mapping-table th,.tariff-mapping-table td{padding:.5rem .75rem;font-size:.82rem}.tariff-mapping-table th:nth-child(2),.tariff-mapping-table td:nth-child(2){min-width:0}.tariff-mapping-table td select.input-field{min-width:0;width:100%}.tariff-mapping-header{padding:.625rem .75rem;font-size:.85rem}.chart-legend{flex-wrap:wrap;gap:.5rem .75rem;font-size:.78rem}.api-sandbox-row{flex-direction:column}.api-sandbox-method{width:100%}.api-sandbox-url{min-width:0;width:100%}.api-response-header{flex-direction:column;gap:4px;font-size:.78rem}.api-response pre{font-size:.78rem}.page-header h1{font-size:1.2rem}.page-subtitle{font-size:.78rem}.section-title{font-size:.92rem}.settings-form{grid-template-columns:1fr}.glass-header h2{font-size:1rem}.glass-input{font-size:.88rem;padding:8px 12px}.places-header-actions{width:100%;display:flex;flex-wrap:wrap;gap:.5rem}.places-header-actions .btn{flex:1;min-width:0;justify-content:center}.suggest-search-bar{flex-direction:column}.suggest-row{padding:8px 12px;gap:8px}.suggest-row-name{font-size:.82rem}.geocoder-token-item{padding:8px 10px;flex-wrap:wrap;gap:.5rem}.geocoder-token-info{min-width:0;flex:1}.geocoder-token-code{font-size:.78rem;word-break:break-all;white-space:normal}.geocoder-add-section .stat-label{font-size:.8rem}.geocoder-hint{font-size:.78rem}.geocoder-badge{font-size:.72rem;padding:2px 8px}.stat-value{font-size:1.5rem}.stat-label{font-size:.75rem}.input-grid{grid-template-columns:1fr}.test-results-card{min-height:200px}.test-tabs{padding:.5rem .75rem 0;gap:.75rem}.tab-btn{font-size:.82rem}.test-tariff-name{font-size:.88rem}.banner-preview-frame{aspect-ratio:auto;max-height:200px}.banner-empty{height:150px}.banner-dropzone{padding:20px 12px}.confirm-card{padding:1.5rem}.confirm-card h3{font-size:1rem}.confirm-card p{font-size:.82rem}.modal-title{font-size:.95rem}.modal-pre{font-size:.78rem;padding:.75rem}.place-modal-body,.place-modal-header{padding:1rem}.place-modal-footer{padding:.75rem 1rem}.place-modal-title{font-size:.95rem}.place-modal-icon{width:34px;height:34px}.role-card{padding:1rem;gap:.5rem}.role-card-name{font-size:.88rem}.role-badge{font-size:.72rem;padding:2px 8px}.proxy-row--error,.parser-row--error{border-left-width:2px}.parser-service-title{font-size:.85rem}.parser-filename{font-size:.72rem}.parser-error-pill{font-size:.7rem}.empty-placeholder{padding:1rem;font-size:.85rem}.card-section-header{padding-bottom:.5rem;margin-bottom:.75rem}.card-section-header h2{font-size:.92rem}.glass-panel{margin-bottom:1rem}.glass-header{margin-bottom:1rem;padding-bottom:.75rem}.glass-icon{padding:.375rem}.btn{height:36px;font-size:.82rem;padding:0 .75rem;gap:.375rem}.btn-icon{height:34px;width:34px}.btn-sm-square{width:30px;height:30px}.btn-square{width:36px}}
