/* APE Admin — config management styles (Claude Desktop palette) * * Page chrome (.app-page, .app-header, .app-brand, .app-tabs, .app-link, * .app-actions, .app-main, .btn-text) lives in app-shell.css. This file * holds only admin-specific body/form/table styles. */ .admin-tab-content { display: flex; flex-direction: column; gap: 24px; } /* ===== Section ===== */ .admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 24px; box-shadow: var(--shadow-sm); } .admin-section-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; } .admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; } .admin-section-head .admin-section-title { margin-bottom: 0; } .admin-section-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px; } .admin-section-sub code { background: var(--code-bg); padding: 1px 5px; border-radius: 3px; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--text); } .admin-section-sub strong { color: var(--text); font-weight: 600; } /* ===== Forms ===== */ .admin-form { display: flex; flex-direction: column; gap: 14px; } .form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .form-row label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; flex: 0 0 auto; } .form-row label.grow { flex: 1; min-width: 200px; } .form-row label.checkbox { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal; font-size: 13px; font-weight: 400; color: var(--text); padding: 8px 0; } .form-row label.checkbox input { margin: 0; } .admin-form input[type="text"], .admin-form input[type="number"], .admin-form select, .admin-form textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; outline: none; transition: border-color 0.12s, box-shadow 0.12s; min-width: 180px; } .admin-form input[type="number"] { min-width: 100px; } .admin-form textarea { width: 100%; resize: vertical; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 13.5px; line-height: 1.55; } .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); } .admin-form input:disabled, .admin-form select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; } .admin-token-panel { max-width: 520px; display: flex; flex-direction: column; gap: 10px; } .admin-token-row { display: flex; gap: 10px; align-items: center; } .admin-token-row .input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; } .field-label { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; } .form-spacer { flex: 1; } /* ===== Buttons ===== */ .btn-primary, .btn-secondary { font: inherit; font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: var(--radius-md); cursor: pointer; transition: background 0.12s, border-color 0.12s, transform 0.05s; border: 1px solid transparent; } .btn-primary { background: var(--primary); color: var(--primary-fg); } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); } .btn-primary:active:not(:disabled) { transform: scale(0.98); } .btn-primary:disabled { background: var(--border-strong); color: #fff; cursor: not-allowed; } .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); } .btn-secondary:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); } /* ===== Tables ===== */ .admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); } .admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; } .admin-table th { background: var(--code-bg); color: var(--text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .admin-table tbody tr:last-child td { border-bottom: none; } .admin-table tbody tr:hover td { background: rgba(45,42,38,0.025); } .admin-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13.5px; font-style: italic; border: 1px dashed var(--border); border-radius: var(--radius-md); } /* ===== Chips reused from chat.css aesthetic ===== */ .status-chip, .code-pill, .intent-chip, .strat-chip, .topic-chip { display: inline-block; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 11.5px; padding: 2px 8px; border-radius: var(--radius-pill); } .status-chip { background: rgba(79,138,77,0.12); color: var(--pos); font-weight: 500; } .code-pill { background: var(--code-bg); color: var(--text); } .intent-chip { background: #e6f1f3; color: #1d5a64; } .strat-chip { background: #ece7f3; color: #4a3a7d; } .topic-chip { background: var(--accent-soft); color: var(--primary); } .ts { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-secondary); } .muted { color: var(--muted); } /* ===== Row actions (Edit / Delete buttons in AdminTable) ===== */ .admin-row-actions { display: flex; gap: 6px; white-space: nowrap; } .admin-row-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 12px; font-family: inherit; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; } .admin-row-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); } .admin-row-btn:disabled { opacity: 0.55; cursor: default; } .admin-row-btn.admin-row-btn-danger:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: var(--danger-fg); } /* ===== Form additions: cancel button + check-inline ===== */ .admin-form .btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 16px; font-size: 13px; font-family: inherit; font-weight: 500; cursor: pointer; transition: background 0.15s; } .admin-form .btn-secondary:hover { background: var(--bg); } .admin-form .check-inline { display: inline-flex; align-items: center; gap: 6px; padding-top: 18px; /* align with sibling inputs */ } .admin-form .form-actions { display: flex; gap: 10px; margin-top: 4px; align-items: center; } /* ===== Instructions coverage banner ===== */ .admin-coverage { border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 18px; font-size: 13px; border: 1px solid var(--border); } .admin-coverage.ok { background: #f4efe8; border-color: #e6ddd0; color: var(--pos); } .admin-coverage.warn { background: var(--accent-soft); border-color: #e6c9b3; color: var(--text); } .admin-coverage strong { font-weight: 600; } .admin-coverage-missing { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-secondary); } .missing-chip { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-pill); padding: 2px 10px; font-family: "JetBrains Mono", monospace; font-size: 11px; cursor: pointer; transition: background 0.15s, color 0.15s; } .missing-chip:hover { background: var(--primary); color: var(--primary-fg); } /* ===== Instructions table extras ===== */ .instructions-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .instructions-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); } .instructions-filter select { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 12.5px; font-family: inherit; } .instruction-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-secondary); font-size: 12.5px; line-height: 1.45; max-width: 480px; } .status-chip.status-chip-muted { background: var(--secondary); color: var(--muted); } /* ===== Per-offer weights editor ===== */ .weights-section { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 4px; } .weights-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; } .weights-head strong { font-size: 13px; color: var(--text); } .weights-sub { color: var(--text-secondary); font-size: 11.5px; line-height: 1.4; } .weights-row { align-items: flex-start; } .weights-row label { flex: 1 1 0; min-width: 120px; } .weight-hint { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; line-height: 1.3; } .weights-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); } .weights-preview-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; } .weights-preview-chip { background: var(--accent-soft); color: var(--text); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11.5px; } .weights-preview-chip strong { color: var(--primary); margin-left: 2px; } .weights-preview-default { color: var(--muted); font-size: 11.5px; font-style: italic; } .weights-cell { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--text-secondary); background: var(--code-bg); padding: 2px 8px; border-radius: 4px; } /* ===== Bandit State inspector ===== */ .bandit-summary { margin-top: 10px; color: var(--text-secondary); font-size: 12px; font-style: italic; } .bandit-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 14px; } .bandit-cell-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; } .bandit-cell-user { font-weight: 600; color: var(--text); font-size: 13px; } .bandit-cell-hash { background: var(--code-bg); color: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-family: "JetBrains Mono", monospace; margin-left: 6px; font-weight: 400; } .bandit-cell-summary { margin-left: auto; color: var(--text-secondary); font-size: 11.5px; } .bandit-arms-tbl tr.winner-row { background: rgba(79, 138, 77, 0.06); } .bandit-arms-tbl tr.winner-row td { font-weight: 500; } .winner-arrow { color: var(--pos); font-size: 12px; } .bandit-arms-tbl .pos-num { color: var(--pos); } .bandit-arms-tbl .neg-num { color: var(--danger); } .bandit-arms-tbl td.num { font-variant-numeric: tabular-nums; } /* ===== Strategy performance panel ===== */ .strategy-perf { display: flex; flex-direction: column; gap: 14px; } .strategy-perf-head .tier-legend { display: inline-flex; gap: 4px; margin: 0 6px; } .strategy-perf-controls { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); } .strategy-perf-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-secondary); font-weight: 500; } .strategy-perf-controls input { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; color: var(--text); font-family: inherit; min-width: 160px; } .strategy-perf-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; } .strategy-perf-block-head { color: var(--text); font-weight: 600; font-size: 13px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); } /* Tier chips — same color across panel + policy chip + tier-legend */ .tier-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; font-family: "Inter", sans-serif; } .tier-chip.tier-high { background: rgba(79, 138, 77, 0.15); color: var(--pos); } .tier-chip.tier-medium { background: var(--accent-soft); color: var(--primary); } .tier-chip.tier-low { background: rgba(181, 65, 65, 0.12); color: var(--danger); } .tier-chip.tier-exploring { background: var(--secondary); color: var(--muted); } /* Performance bar with tier-threshold gridlines at 50 and 80 */ .perf-bar-wrap { display: flex; align-items: center; gap: 8px; } .perf-bar-track { position: relative; flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; min-width: 120px; } .perf-bar-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--surface); opacity: 0.8; z-index: 1; } .perf-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s ease; } .perf-bar-fill.tier-high { background: var(--pos); } .perf-bar-fill.tier-medium { background: var(--primary); } .perf-bar-fill.tier-low { background: var(--danger); } .perf-bar-fill.tier-exploring { background: var(--muted); } .perf-bar-label { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; } .perf-bar-label strong { font-weight: 600; } .perf-bar-mu { color: var(--muted); font-size: 10.5px; margin-left: 6px; } /* Best / worst cell display */ .cell-best-worst { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; } .cell-best { color: var(--pos); } .cell-worst { color: var(--danger); } .cell-best code, .cell-worst code { margin: 0 3px; font-size: 10.5px; } .cell-mu { margin-left: 4px; color: var(--muted); font-variant-numeric: tabular-nums; } /* Policy chips colored by global strategy tier */ .policy-chip-tier-high { background: rgba(79, 138, 77, 0.12) !important; color: var(--pos) !important; } .policy-chip-tier-high .chip-x { color: var(--pos) !important; } .policy-chip-tier-medium { background: var(--accent-soft) !important; color: var(--primary) !important; } .policy-chip-tier-low { background: rgba(181, 65, 65, 0.10) !important; color: var(--danger) !important; } .policy-chip-tier-low .chip-x { color: var(--danger) !important; } .policy-chip-tier-exploring { background: var(--secondary) !important; color: var(--muted) !important; } .chip-perf { display: inline-block; margin-left: 4px; padding: 0 5px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.6); border-radius: 4px; font-variant-numeric: tabular-nums; } /* ===== Status pill (ACTIVE / PAUSED toggle) ===== */ .status-pill-wrap { position: relative; display: inline-block; } .status-pill { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 3px 10px 3px 8px; font-size: 11px; font-weight: 600; font-family: inherit; cursor: pointer; letter-spacing: 0.04em; transition: background 0.15s, border-color 0.15s, color 0.15s; } .status-pill:hover { border-color: var(--text-secondary); } .status-pill:disabled { opacity: 0.6; cursor: default; } .status-pill-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; } .status-pill-caret { color: var(--muted); font-size: 9px; margin-left: 2px; } /* status-specific colors */ .status-pill-active { background: rgba(79, 138, 77, 0.08); border-color: rgba(79, 138, 77, 0.35); color: var(--pos); } .status-pill-active .status-pill-dot { background: var(--pos); box-shadow: 0 0 0 2px rgba(79, 138, 77, 0.2); } .status-pill-inactive { background: var(--secondary); border-color: var(--border-strong); color: var(--muted); } .status-pill-inactive .status-pill-dot { background: var(--muted); } .status-pill-draft { background: var(--accent-soft); border-color: rgba(200, 122, 76, 0.3); color: var(--primary); } .status-pill-draft .status-pill-dot { background: var(--primary); } /* Tiny dropdown menu */ .status-pill-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-md); min-width: 110px; z-index: 10; overflow: hidden; } .status-pill-menu-item { background: transparent; border: none; text-align: left; padding: 8px 12px; font-size: 12.5px; font-family: inherit; cursor: pointer; color: var(--text); font-weight: 500; transition: background 0.1s; } .status-pill-menu-item:hover { background: var(--accent-soft); color: var(--primary); } .status-pill-menu-item.status-pill-menu-cancel { color: var(--muted); font-weight: 400; border-top: 1px solid var(--border); } /* ===== Policies: grouped Intent → Strategies view ===== */ .policy-add-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); } .policy-add-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-secondary); font-weight: 500; } .policy-add-row label input, .policy-add-row label select { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; color: var(--text); font-family: inherit; min-width: 160px; } .policy-add-row .btn-primary { padding: 8px 16px; } .policy-group-list { display: flex; flex-direction: column; gap: 10px; } .policy-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; transition: border-color 0.15s, box-shadow 0.15s; } .policy-group:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); } .policy-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; } .policy-group-head .dot-sep { color: var(--muted); } .policy-group-head .topic-default { background: var(--secondary); color: var(--text-secondary); font-style: italic; } .policy-count { margin-left: auto; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; } .policy-group-actions { display: inline-flex; gap: 6px; align-items: center; } .policy-edit-panel { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg); padding: 10px 12px; margin-bottom: 10px; } .policy-edit-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .policy-edit-actions .btn-primary, .policy-edit-actions .btn-secondary { padding: 7px 12px; font-size: 12.5px; } .policy-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .policy-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--primary); border-radius: var(--radius-pill); padding: 4px 4px 4px 12px; font-size: 12px; font-weight: 500; font-family: "JetBrains Mono", monospace; } .chip-x { background: transparent; border: none; color: var(--primary); font-size: 16px; line-height: 1; padding: 0 6px; cursor: pointer; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; } .chip-x:hover { background: var(--danger); color: var(--danger-fg); } .policy-add select { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; color: var(--text-secondary); font-family: inherit; cursor: pointer; } .policy-add select:hover { border-color: var(--primary); color: var(--primary); } .strategy-check-panel { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); padding: 12px 14px; } .strategy-check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--text); font-size: 13px; } .strategy-check-head span { color: var(--text-secondary); font-size: 12px; } .strategy-check-grid, .strategy-chip-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .strategy-check { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); padding: 5px 9px 5px 7px; cursor: pointer; } .strategy-check input { margin: 0; } .strategy-check small { color: var(--muted); font-size: 10.5px; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; } .strategy-check:has(input:checked) { border-color: rgba(79, 138, 77, 0.45); background: rgba(79, 138, 77, 0.08); } .mapping-warning { border: 1px solid rgba(181, 65, 65, 0.25); border-left: 3px solid var(--danger); border-radius: var(--radius-sm); background: rgba(181, 65, 65, 0.07); color: var(--text); font-size: 12.5px; line-height: 1.45; padding: 9px 11px; margin-top: 10px; } .mapping-warning code { display: inline-block; margin: 2px 4px; background: var(--surface); border: 1px solid rgba(181, 65, 65, 0.18); border-radius: 4px; padding: 1px 6px; } .mapping-warning-block { margin: 0 0 12px; } .mapping-warning-inline { color: var(--danger); font-size: 12px; font-weight: 600; } .admin-empty-compact { padding: 12px; text-align: left; } .policy-group-missing { border-color: rgba(181, 65, 65, 0.28); background: rgba(181, 65, 65, 0.05); } .policy-group-orphan { border-color: rgba(181, 65, 65, 0.5); background: rgba(181, 65, 65, 0.08); } .policy-alert { border: 1px solid rgba(181, 65, 65, 0.28); border-radius: var(--radius-pill); background: rgba(181, 65, 65, 0.08); color: var(--danger); padding: 2px 8px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; } /* ───────────────────────────────────────────────────────────────────── * UserAutocomplete — reusable user-search input with live dropdown. * Used in BanditStateTab, StrategyPerformancePanel, and anywhere * else the admin needs to pick a real user_id_hash by display name. * ──────────────────────────────────────────────────────────────────── */ .user-autocomplete { position: relative; display: inline-block; width: 100%; } .user-autocomplete > input[type="text"] { width: 100%; padding-right: 28px; /* room for the × clear button */ } .user-autocomplete .ua-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: none; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s, color 0.15s; } .user-autocomplete .ua-clear:hover { background: var(--secondary); color: var(--danger); } .ua-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-md); list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow-y: auto; z-index: 200; } .ua-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; transition: background 0.1s; } .ua-option.active, .ua-option:hover { background: var(--accent-soft); } .ua-option.ua-empty { color: var(--muted); cursor: default; font-style: italic; } .ua-option.ua-empty:hover { background: transparent; } .ua-option-empty { border-bottom: 1px dashed var(--border); margin-bottom: 4px; padding-bottom: 8px; } .ua-option .opt-name { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ua-option .opt-hash { background: var(--code-bg); color: var(--muted); padding: 1px 6px; border-radius: 4px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 400; white-space: nowrap; } .ua-option .opt-topic { color: var(--text-secondary); font-size: 11.5px; white-space: nowrap; } .ua-option .opt-ready { color: var(--pos); font-size: 14px; line-height: 1; } /* ───────────────────────────────────────────────────────────────────── * Column legend — short one-line descriptions of each table column. * Sits between the block title and the table itself so admins can read * what each column means before they scan the rows. * ──────────────────────────────────────────────────────────────────── */ .col-legend { list-style: none; margin: 8px 0 12px; padding: 10px 14px; background: var(--accent-soft); border-left: 3px solid var(--primary); border-radius: 4px; font-size: 12px; line-height: 1.55; color: var(--text); } .col-legend li { margin: 0; padding: 2px 0; } .col-legend li strong { color: var(--text); font-weight: 700; } .col-legend li em { font-style: italic; color: var(--text-secondary); font-weight: 400; } /* ───────────────────────────────────────────────────────────────────── * SignalRulesTab — expanded form + table styling for the 25-signal catalog. * ──────────────────────────────────────────────────────────────────── */ /* Consumer multi-select chips */ .consumers-fieldset { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px 8px 14px; flex: 1; } .consumers-fieldset legend { padding: 0 6px; font-size: 11.5px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .consumer-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 12px; cursor: pointer; user-select: none; transition: all 0.15s; } .consumer-chip:has(input:checked) { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); } .consumer-chip input[type="checkbox"] { width: 13px; height: 13px; margin: 0; } /* Composite-pattern warning */ .composite-warning { font-size: 12px; color: var(--text-secondary); background: #fdf3da; border-left: 3px solid #d4a017; padding: 8px 12px; margin: 6px 0; border-radius: 4px; } .composite-warning code { background: var(--code-bg); padding: 1px 5px; border-radius: 3px; } /* Signal list filter header */ .signal-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 12px; } .signal-filter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); } .signal-filter select { padding: 3px 6px; font-size: 12px; } /* Signal name + source-type badge in the same table cell */ .signal-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .source-badge { font-size: 10px; padding: 1px 6px; border-radius: var(--radius-pill); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; } .source-ui { background: #e7f0fd; color: #2c5d96; } .source-llm { background: #f5e8f5; color: #7d3a7d; } .source-derived { background: #e7efe6; color: #3a7a4a; } .source-composite { background: #fff0e1; color: #b56419; } .source-default { background: var(--secondary); color: var(--muted); } .source-unknown { background: var(--secondary); color: var(--muted); } /* Reward category badges in the table — now show value + category name */ .reward-badge { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 3px 9px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; } .reward-badge strong { font-size: 13.5px; } .reward-badge-cat { font-size: 9.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; margin-top: 1px; } .reward-strong_positive { background: #d8efd2; color: #2c5a1a; } .reward-weak_positive { background: #ecf6e7; color: #4a7a3a; } .reward-weak_negative { background: #f6e7e7; color: #7a3a3a; } .reward-strong_negative { background: #efd2d2; color: #5a1a1a; } /* "Reward magnitudes live on the Reward Scale tab" pointer block */ .reward-scale-pointer { background: var(--accent-soft); border-left: 3px solid var(--primary); padding: 10px 14px; margin: 8px 0 14px; border-radius: 4px; font-size: 12.5px; line-height: 1.55; color: var(--text); } .reward-scale-pointer code { background: var(--code-bg); padding: 1px 5px; border-radius: 3px; font-size: 11.5px; } .reward-scale-summary { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; } .reward-scale-summary li { display: inline-flex; align-items: center; gap: 4px; } .reward-scale-summary code { background: rgba(0, 0, 0, 0.04); padding: 1px 6px; border-radius: 3px; } .reward-scale-summary strong { font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 3px; } .reward-scale-summary strong.reward-strong_positive { color: #2c5a1a; background: #d8efd2; } .reward-scale-summary strong.reward-weak_positive { color: #4a7a3a; background: #ecf6e7; } .reward-scale-summary strong.reward-weak_negative { color: #7a3a3a; background: #f6e7e7; } .reward-scale-summary strong.reward-strong_negative { color: #5a1a1a; background: #efd2d2; } /* Frequency + quality tags */ .freq-tag, .quality-tag { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--secondary); color: var(--text-secondary); text-transform: capitalize; } /* Consumer pills in the table column */ .consumer-list { display: inline-flex; flex-wrap: wrap; gap: 3px; } .consumer-pill { font-size: 10.5px; padding: 1px 6px; background: var(--accent-soft); color: var(--primary); border-radius: var(--radius-pill); white-space: nowrap; } /* ───────────────────────────────────────────────────────────────────── * InstructionQualityPanel — surface problem-signal incidence per * (strategy, instruction_version) so admins know what to rewrite. * ──────────────────────────────────────────────────────────────────── */ .iq-panel { background: var(--surface); border-left: 3px solid var(--primary); border-radius: 4px; padding: 12px 16px; } .iq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 6px; } .iq-head h2 { margin: 0 0 4px 0; } .iq-controls { display: flex; align-items: flex-end; gap: 8px; } .iq-controls label { font-size: 11.5px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 2px; } .iq-summary { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 12px; border-bottom: 1px dashed var(--border); margin-bottom: 12px; } .iq-summary .dot-sep { color: var(--muted); } .iq-list { display: flex; flex-direction: column; gap: 8px; } .iq-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; } .iq-card:hover { border-color: var(--border-strong); } .iq-card.open { border-color: var(--primary); box-shadow: var(--shadow-sm); } .iq-card-head { display: grid; grid-template-columns: auto auto auto auto auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; user-select: none; } .iq-card-head:hover { background: var(--bg); } .version-chip { background: var(--code-bg); color: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; } .iq-rate { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; } .iq-totals { color: var(--muted); font-size: 12px; } .iq-dominant { font-size: 11.5px; color: var(--text-secondary); } .iq-dominant code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; font-size: 11px; } .iq-expand { color: var(--muted); font-size: 12px; } .iq-card-body { padding: 0 14px 14px; border-top: 1px dashed var(--border); } .iq-failures-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; } .iq-failure-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); font-size: 11.5px; cursor: help; } .iq-failure-chip.active { background: #fdf3da; border-color: #e8c879; } .iq-failure-count { font-variant-numeric: tabular-nums; color: var(--text); } .problem-signal { background: var(--code-bg); padding: 1px 6px; border-radius: 3px; font-size: 11px; color: var(--text); margin-right: 3px; } .iq-samples { margin-top: 8px; } .iq-samples-head { font-size: 11.5px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 6px; } .iq-samples-tbl { width: 100%; border-collapse: collapse; font-size: 12px; } .iq-samples-tbl th { text-align: left; font-weight: 600; color: var(--text-secondary); padding: 4px 8px; border-bottom: 1px solid var(--border); } .iq-samples-tbl td { padding: 4px 8px; border-bottom: 1px solid var(--border); vertical-align: top; } .iq-query { color: var(--text); font-style: italic; } .iq-action-hint { background: var(--accent-soft); border-left: 3px solid var(--primary); padding: 8px 12px; margin-top: 14px; border-radius: 4px; font-size: 12.5px; color: var(--text); line-height: 1.55; } /* Tier accent strip on the left of each card */ .iq-tier-critical { border-left: 4px solid #b03a3a; } .iq-tier-high { border-left: 4px solid #d4862a; } .iq-tier-medium { border-left: 4px solid #d4a017; } .iq-tier-low { border-left: 4px solid #5fa86b; } .iq-tier-exploring { border-left: 4px solid var(--muted); } /* ============================================================ Admin visual polish ============================================================ */ .admin-tab-content { gap: 18px; } .admin-section, .strategy-perf-block, .bandit-cell, .policy-group, .weights-section, .admin-table-wrap { background: rgba(255, 255, 255, 0.86); border-color: rgba(217, 213, 204, 0.78); box-shadow: var(--shadow-sm); } .admin-section { padding: 24px; position: relative; overflow: hidden; } .admin-section::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), rgba(208, 138, 40, 0.76), transparent); opacity: 0.76; } .admin-section-title { font-size: 17px; letter-spacing: -0.01em; } .admin-section-sub { max-width: 860px; } .admin-form input[type="text"], .admin-form input[type="number"], .admin-form select, .admin-form textarea, .strategy-perf-controls input, .policy-add-row label input, .policy-add-row label select, .instructions-filter select { background: var(--surface); border-color: var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); } .btn-primary { background: linear-gradient(145deg, var(--primary), #e0975f); box-shadow: 0 10px 22px rgba(200, 122, 76, 0.16); } .btn-secondary, .admin-row-btn, .admin-form .btn-secondary { background: rgba(255, 255, 255, 0.78); } .admin-table-wrap { box-shadow: var(--shadow-sm); } .admin-table { border-collapse: separate; border-spacing: 0; } .admin-table th { background: var(--surface-soft); color: var(--text-secondary); } .admin-table tbody tr:hover td { background: rgba(226, 241, 239, 0.44); } .status-chip, .code-pill, .intent-chip, .strat-chip, .topic-chip, .tier-chip, .consumer-pill, .source-badge { border: 1px solid rgba(255, 255, 255, 0.44); box-shadow: inset 0 1px 0 rgba(255,255,255,0.58); } .policy-add-row, .strategy-perf-controls, .weights-section { background: rgba(250, 248, 244, 0.78); } /* Selection Score tab - research references */ .admin-subhead { font-size: 13px; font-weight: 600; margin: 18px 0 6px; color: var(--text, #2d2a26); } .ref-list { margin: 0 0 8px; padding-left: 18px; line-height: 1.55; } .ref-list li { margin-bottom: 6px; font-size: 13px; } .ref-list a { color: var(--primary, #b5541f); text-decoration: underline; } .ref-list a:hover { opacity: 0.8; } .ref-note { color: var(--text-secondary, #6b655d); } .ref-list li { margin-bottom: 10px; } .ref-note { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; } /* Research tab — roadmap / flow diagram */ .roadmap { display: flex; flex-direction: column; align-items: stretch; margin: 8px 0 14px; } .roadmap-item { display: flex; flex-direction: column; align-items: center; } .roadmap-card { width: 100%; border: 1px solid var(--border, #e7e2d9); border-radius: 12px; background: rgba(250, 248, 244, 0.7); padding: 12px 14px; } .roadmap-card.is-here { border-color: #4f8a4d; box-shadow: 0 0 0 1px #4f8a4d33; } .roadmap-card.is-goal { border-color: #b5541f; background: rgba(181,84,31,0.06); } .roadmap-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; } .roadmap-stage { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-secondary,#6b655d); text-transform: uppercase; } .roadmap-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; } .roadmap-badge.here { background: #e3f0e2; color: #2f6b2e; } .roadmap-badge.goal { background: #f6e3d6; color: #97441a; } .roadmap-title { font-size: 15px; font-weight: 650; margin-bottom: 3px; } .roadmap-summary { font-size: 13px; color: var(--text-secondary,#6b655d); margin-bottom: 8px; line-height: 1.5; } .roadmap-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 12.5px; padding: 4px 0; border-top: 1px dashed var(--border,#e7e2d9); align-items: start; } .roadmap-k { font-weight: 600; color: var(--text,#2d2a26); } .roadmap-row code { font-size: 12px; white-space: normal; word-break: break-word; } .roadmap-arrow { font-size: 20px; color: var(--text-secondary,#9a948b); line-height: 1; margin: 4px 0; } /* Research tab — method selection guide + decision flow */ .method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 10px 0 16px; } .method-card { border: 1px solid var(--border,#e7e2d9); border-radius: 10px; background: rgba(250,248,244,0.6); padding: 11px 13px; } .method-card.fit-now { border-color: #4f8a4d; box-shadow: 0 0 0 1px #4f8a4d22; } .method-card.fit-goal { border-color: #b5541f; box-shadow: 0 0 0 1px #b5541f22; } .method-card.fit-matches, .method-card.fit-stage2best { border-color: #b88a2e; } .method-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; } .method-name { font-size: 14px; font-weight: 650; } .method-badge { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #ece8e1; color: #6b655d; white-space: nowrap; } .method-badge.fit-now { background: #e3f0e2; color: #2f6b2e; } .method-badge.fit-goal { background: #f6e3d6; color: #97441a; } .method-badge.fit-matches, .method-badge.fit-stage2best { background: #f6efd9; color: #7a5a14; } .method-badge.fit-skip { background: #efe7e7; color: #8a6b6b; } .method-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; font-size: 12px; padding: 3px 0; line-height: 1.45; } .method-k { font-weight: 600; color: var(--text,#2d2a26); } .decision-flow { margin: 6px 0 14px; padding-left: 20px; } .decision-flow li { margin-bottom: 9px; font-size: 13px; } .decision-q { display: block; font-weight: 600; } .decision-a { display: block; color: var(--text-secondary,#6b655d); margin-top: 1px; } .router-diagram { margin: 10px 0 16px; padding: 13px 15px; border: 1px solid var(--border, #e7e2d9); border-radius: 8px; background: #fffdfa; color: var(--text, #2d2a26); font-size: 12px; line-height: 1.45; overflow-x: auto; white-space: pre; } /* Research tab — "our unique approach" banner */ .unique-banner { border: 1.5px solid #b5541f; border-radius: 12px; background: linear-gradient(180deg, rgba(181,84,31,0.07), rgba(181,84,31,0.03)); padding: 14px 16px; margin: 4px 0 16px; } .unique-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: #97441a; background: #f6e3d6; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; } .unique-banner p { font-size: 13px; line-height: 1.55; margin: 6px 0; } .unique-fuse { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 10px 0; } .unique-chip { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 650; background: #fff; border: 1px solid var(--border,#e7e2d9); border-radius: 9px; padding: 9px 11px; } .unique-chip small { font-weight: 400; font-size: 11.5px; color: var(--text-secondary,#6b655d); line-height: 1.4; } .unique-plus { align-self: center; font-size: 18px; font-weight: 700; color: #b5541f; } .unique-why { border-top: 1px dashed #b5541f55; padding-top: 8px; } /* Research tab — industry usage table */ .usage-table { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: 12.5px; } .usage-table th, .usage-table td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--border,#e7e2d9); vertical-align: top; } .usage-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary,#6b655d); } .usage-table td:first-child { white-space: nowrap; } /* Research tab — RL family tree */ .rl-tree { margin: 8px 0 14px; display: flex; flex-direction: column; gap: 7px; } .rl-node { border: 1px solid var(--border,#e7e2d9); border-left-width: 3px; border-radius: 8px; background: rgba(250,248,244,0.55); padding: 8px 12px; } .rl-node.lvl-0 { margin-left: 0; border-left-color: #6b655d; } .rl-node.lvl-1 { margin-left: 22px; border-left-color: #8a7bb0; } .rl-node.lvl-2 { margin-left: 44px; border-left-color: #b88a2e; } .rl-node.us { background: rgba(79,138,77,0.08); border-color: #4f8a4d; border-left-color: #4f8a4d; } .rl-node-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rl-name { font-size: 14px; font-weight: 650; } .rl-tag { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #ece8e1; color: #6b655d; } .rl-tag.us { background: #e3f0e2; color: #2f6b2e; } .rl-plain { font-size: 12.5px; color: var(--text-secondary,#6b655d); margin-top: 3px; line-height: 1.5; } .usage-table tr.row-us td { background: rgba(79,138,77,0.08); } /* Final admin warning-state overrides */ .policy-group.policy-group-missing { border-color: rgba(181, 65, 65, 0.28); background: rgba(181, 65, 65, 0.05); } .policy-group.policy-group-orphan { border-color: rgba(181, 65, 65, 0.5); background: rgba(181, 65, 65, 0.08); } /* ============================================================ Admin UX refresh ============================================================ */ .admin-tab-content { gap: 20px; } .admin-section, .strategy-perf-block, .bandit-cell, .policy-group, .weights-section, .admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04); } .admin-section { padding: 22px; overflow: visible; } .admin-section::before { height: 0; background: transparent; } .admin-section-head { align-items: flex-start; margin-bottom: 8px; } .admin-section-title { margin: 0; color: var(--text); font-size: 16px; font-weight: 750; letter-spacing: 0; } .admin-section-sub { max-width: 920px; margin: 8px 0 16px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; } .col-legend, .reward-scale-pointer, .iq-action-hint { background: #f8fafc; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; color: var(--text-secondary); } .col-legend li strong { color: var(--text); } .admin-form { gap: 12px; } .form-row, .policy-add-row, .strategy-perf-controls { align-items: flex-end; gap: 10px; } .policy-add-row, .strategy-perf-controls, .weights-section, .policy-edit-panel, .strategy-check-panel { background: #f8fafc; border-color: var(--border); border-radius: 8px; } .form-row label, .policy-add-row label, .strategy-perf-controls label { color: var(--text-secondary); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; } .admin-form input[type="text"], .admin-form input[type="number"], .admin-form select, .admin-form textarea, .policy-add-row label input, .policy-add-row label select, .strategy-perf-controls input, .instructions-filter select { min-height: 36px; background: #fff; border-color: var(--border-strong); border-radius: 7px; box-shadow: none; } .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .policy-add-row label input:focus, .policy-add-row label select:focus, .strategy-perf-controls input:focus, .instructions-filter select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14); } .btn-primary, .btn-secondary, .admin-row-btn, .admin-form .btn-secondary { border-radius: 7px; box-shadow: none; } .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); } .btn-primary:disabled { background: #cbd5e1; border-color: #cbd5e1; color: #fff; } .btn-secondary, .admin-row-btn, .admin-form .btn-secondary { background: #fff; border-color: var(--border-strong); color: var(--text); } .btn-secondary:hover:not(:disabled), .admin-row-btn:hover:not(:disabled), .admin-form .btn-secondary:hover:not(:disabled) { background: #eef2f7; border-color: #94a3b8; color: var(--text); } .admin-row-btn.admin-row-btn-danger { color: var(--danger); } .admin-row-btn.admin-row-btn-danger:hover:not(:disabled) { background: #fff1f1; border-color: #f0aaa6; color: var(--danger); } .admin-table-wrap { overflow: auto; } .admin-table { border-collapse: separate; border-spacing: 0; font-size: 13px; } .admin-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #64748b; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; } .admin-table th, .admin-table td { padding: 11px 14px; border-bottom-color: var(--border); } .admin-table tbody tr:hover td { background: #f8fbfd; } .admin-row-actions { gap: 8px; } .status-chip, .code-pill, .intent-chip, .strat-chip, .topic-chip, .tier-chip, .consumer-pill, .source-badge, .policy-chip { border: 1px solid rgba(23, 32, 51, 0.06); box-shadow: none; } .intent-chip { background: #e7f5f3; color: #0f625d; } .strat-chip { background: #eef2ff; color: #3730a3; } .topic-chip { background: #fff7e6; color: #9a5b00; } .policy-group { padding: 14px; } .policy-group:hover { border-color: #b8c4d4; box-shadow: 0 8px 24px rgba(23, 32, 51, 0.07); } .policy-group-head { gap: 8px; margin-bottom: 12px; } .policy-count { color: #64748b; font-size: 10.5px; font-weight: 800; } .policy-group-actions { margin-left: 0; } .policy-chip { background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 5px 4px 11px; } .policy-add select { background: #fff; border-color: var(--border-strong); border-style: solid; color: var(--text-secondary); } .strategy-check { border-radius: 999px; background: #fff; } .strategy-check:has(input:checked) { background: #e7f5f3; border-color: #8ccdc5; } .mapping-warning, .policy-group.policy-group-missing, .policy-group.policy-group-orphan { border-color: #f0aaa6; background: #fff7f7; } .policy-alert { background: #fff1f1; border-color: #f0aaa6; color: var(--danger); } .admin-empty { background: #f8fafc; border-color: var(--border); border-radius: 8px; } .tier-chip.tier-high, .policy-chip-tier-high { background: #e7f7ef !important; color: #166342 !important; } .tier-chip.tier-medium, .policy-chip-tier-medium { background: #fff7e6 !important; color: #9a5b00 !important; } .tier-chip.tier-low, .policy-chip-tier-low { background: #fff1f1 !important; color: var(--danger) !important; } .tier-chip.tier-exploring, .policy-chip-tier-exploring { background: #eef2f7 !important; color: #64748b !important; } .perf-bar-track { background: #e2e8f0; } .perf-bar-fill.tier-high { background: #228b5e; } .perf-bar-fill.tier-medium { background: #d97706; } .perf-bar-fill.tier-low { background: #c2413c; } .perf-bar-fill.tier-exploring { background: #94a3b8; } @media (max-width: 760px) { .admin-section { padding: 18px; } .policy-add-row, .strategy-perf-controls { align-items: stretch; } .policy-add-row label, .policy-add-row label input, .policy-add-row label select, .policy-add-row .btn-primary { width: 100%; } .policy-group-head { align-items: flex-start; } .policy-count, .policy-group-actions { margin-left: 0; } }