/* app.css — Чистый минималистичный стиль */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    background: #f5f5f3;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo { text-decoration: none; color: #1a1a1a; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 18px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; color: #555; padding: 6px 14px; border-radius: 6px; font-size: 13px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover { background: #f5f5f3; color: #1a1a1a; }
.nav-links a.active { background: #1a1a1a; color: #fff; }

.main { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 32px 24px 60px; }

/* App shell */
.app-shell {
    display: flex;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8e8e5;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid #f0f0ee;
}
.logo-mark { font-size: 18px; flex-shrink: 0; }
.logo-text { font-size: 13px; font-weight: 700; line-height: 1.2; color: #1a1a1a; }
.logo-dot { color: #888; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #555;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: #f5f5f3; color: #1a1a1a; }
.nav-item.active { background: #1a1a1a; color: #fff; }
.nav-icon { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.nav-item-disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* Main content */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 32px 32px 60px;
}

.page-header {
    margin-bottom: 28px;
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}
.page-title { font-size: 22px; font-weight: 700; }
.header-action { flex-shrink: 0; }

.page-subtitle { color: #888; font-size: 13px; margin-bottom: 12px; }

.secondary-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.sec-nav-item { text-decoration: none; color: #666; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; border: 1px solid #e0e0e0; background: #fff; transition: background 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap; }
.sec-nav-item:hover { background: #f5f5f3; border-color: #bbb; color: #1a1a1a; }
.sec-nav-action { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.sec-nav-action:hover { background: #333; border-color: #333; color: #fff; }

.page-body { }

.back-link { display: inline-block; color: #888; text-decoration: none; font-size: 12px; margin-bottom: 6px; }
.back-link:hover { color: #1a1a1a; }

.card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
.card-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 14px; }
.card-hint { font-size: 12px; color: #888; margin-bottom: 16px; line-height: 1.5; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head .card-title { margin-bottom: 0; }

.form-section { margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
label, .form-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #555; margin-bottom: 5px; }
.label-hint { font-size: 11px; color: #aaa; font-weight: 400; }

.input, .select, .url-textarea,
input[type=text], input[type=password], input[type=number],
textarea, select {
    width: 100%; padding: 8px 10px; border: 1px solid #d0d0d0; border-radius: 6px;
    font-size: 13px; background: #fafafa; color: #1a1a1a; outline: none;
    font-family: inherit; transition: border-color 0.15s;
}
.input:focus, .select:focus, .url-textarea:focus,
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus,
textarea:focus, select:focus { border-color: #999; background: #fff; }
.url-textarea, textarea { font-family: 'Courier New', monospace; resize: vertical; min-height: 130px; line-height: 1.5; }
.prompt-textarea { min-height: 90px; font-size: 12px; }
.url-counter { text-align: right; font-size: 11px; color: #aaa; margin-top: 4px; }

.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkbox-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 7px; cursor: pointer; background: #fafaf8; transition: border-color 0.15s, background 0.15s; }
.checkbox-item:hover { border-color: #bbb; background: #fff; }
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-box { width: 16px; height: 16px; border: 2px solid #ccc; border-radius: 4px; flex-shrink: 0; position: relative; transition: all 0.15s; background: #fff; }
.checkbox-item input:checked ~ .checkbox-box { background: #1a1a1a; border-color: #1a1a1a; }
.checkbox-item input:checked ~ .checkbox-box::after { content: ''; position: absolute; left: 3px; top: 0px; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); }
.checkbox-label { display: flex; flex-direction: column; }
.checkbox-label strong { font-size: 13px; color: #1a1a1a; font-weight: 600; }
.checkbox-label em { font-size: 11px; color: #888; font-style: normal; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: #fff; border: 1px solid #ccc; border-radius: 7px; color: #333; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { background: #f5f5f3; border-color: #bbb; }
.btn-primary { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; color: #fff; }
.btn-large { width: 100%; justify-content: center; padding: 10px 24px; font-size: 14px; margin-top: 4px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { border-color: #f5c6c6; color: #c0392b; }
.btn-danger:hover { background: #fef0f0; }
.btn-warn { border-color: #f5e0a0; color: #a07000; }
.btn-warn:hover { background: #fdf8ec; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.link-small { display: inline-block; color: #888; font-size: 12px; margin-top: 6px; text-decoration: none; }
.link-small:hover { color: #1a1a1a; text-decoration: underline; }

.generator-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }

.results-panel { min-height: 200px; }
.results-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; color: #bbb; gap: 10px; }
.empty-icon { font-size: 30px; opacity: 0.4; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-header h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.results-actions { display: flex; gap: 8px; }
.results-table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.results-table th { text-align: left; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 1px solid #e8e8e5; background: #fafaf8; white-space: nowrap; }
.results-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0ee; vertical-align: top; max-width: 240px; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: #fafaf8; }
.result-url { font-family: 'Courier New', monospace; font-size: 12px; color: #1a1a1a; text-decoration: none; word-break: break-all; }
.result-url:hover { text-decoration: underline; }
.result-text { font-size: 12px; color: #333; line-height: 1.5; word-break: break-word; }
.result-error { color: #c0392b; font-size: 12px; }
.result-actions { display: flex; gap: 4px; margin-top: 6px; }
.copy-btn { background: #fff; border: 1px solid #e0e0e0; color: #888; cursor: pointer; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-family: inherit; transition: all 0.15s; }
.copy-btn:hover { border-color: #999; color: #1a1a1a; }
.expand-btn { font-size: 11px; color: #888; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.expand-btn:hover { color: #1a1a1a; }
.no-data { color: #ccc; }

.badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 500; background: #f0f0ee; color: #666; border: 1px solid #e0e0e0; }
.badge-active { background: #e6f5ec; color: #1a7a3c; border: 1px solid #b6dfc4; font-size: 11px; padding: 2px 9px; border-radius: 20px; margin-left: 6px; }

.progress-overlay { position: fixed; inset: 0; background: rgba(245,245,243,0.85); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: center; justify-content: center; }
.progress-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 36px 56px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.progress-spinner { width: 36px; height: 36px; border: 3px solid #e0e0e0; border-top-color: #1a1a1a; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.progress-sub { color: #888; font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.modal-box { position: relative; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; width: 100%; max-width: 500px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.modal-large { max-width: 680px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #e8e8e5; }
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; color: #aaa; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { color: #1a1a1a; background: #f5f5f3; }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid #e8e8e5; }
.full-text { white-space: pre-wrap; word-break: break-word; font-size: 13px; font-family: 'Courier New', monospace; color: #333; line-height: 1.7; max-height: 55vh; overflow-y: auto; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.project-card { display: flex; flex-direction: column; gap: 10px; }
.project-card-header { display: flex; align-items: center; justify-content: space-between; }
.project-card-header h3 { font-size: 15px; font-weight: 600; }
.project-desc { color: #666; font-size: 12px; line-height: 1.5; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f0ee; }
.project-date { color: #aaa; font-size: 11px; }
.project-actions { display: flex; gap: 6px; }

.settings-layout { display: grid; gap: 20px; }
.settings-copy { max-width: 760px; line-height: 1.6; }
.settings-stack { display: grid; gap: 18px; }
.proxy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.checkbox-item-inline { max-width: 760px; }
#proxyTestResult { margin-top: 16px; }
.providers-list { display: flex; flex-direction: column; gap: 10px; }
.provider-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fafaf8; border: 1px solid #e8e8e5; border-radius: 8px; gap: 16px; }
.provider-active { border-color: #b6dfc4; background: #f0faf4; }
.provider-info { flex: 1; min-width: 0; }
.provider-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; display: flex; align-items: center; }
.provider-meta { font-size: 12px; color: #666; margin-bottom: 2px; }
.provider-key { font-size: 11px; color: #aaa; font-family: 'Courier New', monospace; }
.provider-actions { display: flex; gap: 6px; flex-shrink: 0; }

.edit-layout { display: grid; gap: 20px; }
.prompt-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f0f0ee; }
.prompt-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.history-table-wrap { overflow-x: auto; padding: 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 700px; }
.history-table th { text-align: left; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 1px solid #e8e8e5; background: #fafaf8; white-space: nowrap; }
.history-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0ee; vertical-align: top; max-width: 200px; }
.history-table tr:hover td { background: #fafaf8; }
.history-table tr.status-error td { opacity: 0.5; }
.url-cell a { color: #1a1a1a; text-decoration: none; font-family: 'Courier New', monospace; font-size: 11px; word-break: break-all; }
.url-cell a:hover { text-decoration: underline; }
.result-preview { font-size: 11px; color: #333; margin-bottom: 3px; line-height: 1.4; }
.date-cell { color: #aaa; white-space: nowrap; font-size: 11px; }

.empty-state { text-align: center; padding: 50px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state h3 { font-size: 17px; font-weight: 600; }
.empty-state p { color: #888; font-size: 13px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: #1a1a1a; color: #fff; padding: 10px 20px; border-radius: 7px; font-size: 13px; font-weight: 500; z-index: 999; animation: toastIn 0.2s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.toast-error { background: #c0392b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.footer { display: flex; gap: 20px; justify-content: center; padding: 14px; border-top: 1px solid #e8e8e5; color: #bbb; font-size: 11px; background: #fff; }

code { background: #f5f5f3; border: 1px solid #e0e0e0; padding: 1px 5px; border-radius: 4px; font-size: 11px; color: #555; font-family: 'Courier New', monospace; }

/* ── Panel ── */
.panel { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid #f0f0ee; display: flex; align-items: center; gap: 12px; }
.panel-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #aaa; text-transform: uppercase; flex-shrink: 0; }
.panel-header h2, .panel-header h3 { font-size: 15px; font-weight: 600; flex: 1; margin: 0; }
.panel-actions { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 20px; }

/* ── Generate layout ── */
.generate-layout { display: flex; flex-direction: column; gap: 20px; }

/* ── Field components ── */
.field-group { margin-bottom: 16px; }
.field-label { font-size: 13px; color: #555; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.field-hint { font-size: 11px; color: #aaa; font-weight: 400; }
.field-input, .field-textarea, .field-select {
    width: 100%; padding: 8px 10px; border: 1px solid #d0d0d0; border-radius: 6px;
    font-size: 13px; background: #fafafa; color: #1a1a1a; outline: none;
    font-family: inherit; transition: border-color 0.15s;
}
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: #999; background: #fff; }
.field-textarea { font-family: 'Courier New', monospace; resize: vertical; min-height: 130px; line-height: 1.5; }
.prompt-textarea { min-height: 90px; font-size: 12px; font-family: inherit; }

/* ── Button variants ── */
.btn-ghost { background: transparent; border-color: #ddd; color: #666; }
.btn-ghost:hover { background: #f5f5f3; border-color: #bbb; color: #1a1a1a; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

/* ── Alerts ── */
.alert { padding: 10px 14px; border-radius: 7px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #e6f5ec; color: #1a7a3c; border: 1px solid #b6dfc4; }
.alert-error   { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }

/* ── Form page ── */
.form-page { }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0ee; }

/* ── Provider rows ── */
.provider-row { padding: 16px 0; border-bottom: 1px solid #f0f0ee; }
.provider-row:last-child { border-bottom: none; padding-bottom: 0; }
.provider-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.provider-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #555; justify-content: flex-start; }
.radio-item input[type=radio] { display: none; }
.radio-box { width: 16px; height: 16px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; position: relative; transition: all 0.15s; }
.radio-item input:checked ~ .radio-box { border-color: #1a1a1a; }
.radio-item input:checked ~ .radio-box::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #1a1a1a; }
.divider { border: none; border-top: 1px solid #f0f0ee; margin: 16px 0; }

/* ── Prompts ── */
.prompts-page { }
.prompt-panel { margin-bottom: 16px; }
.default-prompt { margin-top: 8px; font-size: 12px; color: #888; }
.default-prompt summary { cursor: pointer; margin-bottom: 6px; }
.default-prompt pre { font-family: 'Courier New', monospace; font-size: 11px; background: #f5f5f3; padding: 8px; border-radius: 4px; white-space: pre-wrap; word-break: break-word; }

/* ── Projects grid ── */
.full-width { grid-column: 1 / -1; }
.project-card-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0ee; }

/* ── Loading overlay ── */
.loading-overlay { position: fixed; inset: 0; background: rgba(245,245,243,0.88); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: center; justify-content: center; }
.loading-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 36px 56px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.loading-spinner { width: 36px; height: 36px; border: 3px solid #e0e0e0; border-top-color: #1a1a1a; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 18px; }
.loading-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.loading-sub { color: #888; font-size: 12px; }

/* ── Tool pages (IKS, Domains) ── */
.tool-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tool-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; cursor: pointer; margin: 0; }
.filter-label input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.filter-info { font-size: 12px; color: #888; margin-bottom: 10px; }

.cache-line { margin-top: 14px; font-size: 13px; color: #888; }
.link-danger { color: #c0392b; font-size: 12px; text-decoration: none; }
.link-danger:hover { text-decoration: underline; }

.progress-wrap { margin: 14px 0 4px; }
.progress-bar  { height: 5px; background: #e8e8e5; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #1a1a1a; border-radius: 3px; width: 0%; transition: width .3s; }
.progress-text { font-size: 12px; color: #888; margin-top: 6px; }

.tool-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-box { flex: 1; min-width: 100px; background: #fafaf8; border: 1px solid #e8e8e5; border-radius: 8px; padding: 12px 16px; text-align: center; }
.stat-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.stat-val { font-size: 22px; font-weight: 700; }
.stat-ok  { color: #1a7a3c; }
.stat-err { color: #c0392b; }

.tbl-wrap { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-table thead th { text-align: left; padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 1px solid #e8e8e5; background: #fafaf8; white-space: nowrap; }
.tool-table tbody tr { border-bottom: 1px solid #f0f0ee; }
.tool-table tbody tr:hover { background: #fafaf8; }
.tool-table td { padding: 8px 10px; vertical-align: middle; }

.domain-cell { font-family: 'Courier New', monospace; font-size: 12px; }
.iks-val { font-weight: 700; font-size: 14px; text-align: right; }
.iks-ok   { color: #1a7a3c; }
.iks-warn { color: #b45309; font-family: 'Courier New', monospace; }
.iks-none { color: #ccc; }

.tier-cell { text-align: center; min-width: 80px; }
.tier-prob { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.prob-low  { background: #fff8e1; color: #b45309; }
.prob-mid  { background: #e6f0fb; color: #185fa5; }
.prob-high { background: #e6f5ec; color: #1a7a3c; }

.badge-gray    { background: #f1efe8; color: #666; border: 1px solid #e0e0e0; }
.badge-warn    { background: #fff8e1; color: #b45309; border: 1px solid #f0d88a; }
.badge-ok      { background: #f0f9f4; color: #1a7a3c; border: 1px solid #c8e6c9; }
.badge-err     { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }

.auth-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 900px) {
    .generator-layout, .generate-layout { grid-template-columns: 1fr; }
    .provider-fields { grid-template-columns: 1fr; }
    .main { padding: 24px 16px 40px; }
    .main-content { padding: 20px 16px 40px; }
}
@media (max-width: 600px) {
    .checkboxes { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
    .nav-links a { padding: 5px 9px; font-size: 12px; }
}
