/* LLM-коннектор админка — палитра v08 Marketplace (как cards.css). */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #0b1f33;
  --muted: #6c83a0;
  --line: #e3e9f2;
  --accent: #005bff;
  --accent-strong: #003bbf;
  --accent-soft: #eaf1ff;
  --magenta: #f1117e;
  --ok: #12b76a;
  --ok-soft: #e7f8ef;
  --warn: #f79009;
  --warn-soft: #fff5e6;
  --crit: #f04438;
  --crit-soft: #feeceb;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.05), 0 12px 30px -16px rgba(11, 31, 51, 0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.adm-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.adm-header-inner { max-width: 820px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.adm-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; }
.adm-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #005bff 55%, #f1117e 130%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.adm-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.adm-nav-link { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.adm-nav-link.is-active { background: var(--accent-soft); color: var(--accent-strong); }

.adm-main { max-width: 820px; margin: 0 auto; padding: 26px 20px 70px; display: grid; gap: 18px; }
.adm-hero h1 { font-size: 27px; margin: 0 0 8px; letter-spacing: -0.02em; }
.adm-lead { color: var(--muted); margin: 0; line-height: 1.55; font-size: 15px; }
.adm-lead strong { color: var(--ink); }

.adm-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.adm-card-head h2 { font-size: 17px; margin: 0; }
.adm-pill { font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.adm-pill[data-state="ok"] { background: var(--ok-soft); color: #0e7a45; }
.adm-pill[data-state="down"] { background: var(--crit-soft); color: #b42318; }
.adm-pill[data-state="checking"] { background: var(--warn-soft); color: #b45309; }

.adm-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.adm-status-grid div { min-width: 0; }
.adm-status-grid dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.adm-status-grid dd { margin: 0; font-size: 14.5px; font-weight: 600; word-break: break-word; }
.adm-issues { margin-top: 14px; background: var(--crit-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; color: #b42318; line-height: 1.5; }

.adm-form { display: grid; gap: 16px; }
.adm-field { display: grid; gap: 6px; }
.adm-field-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.adm-field input[type="text"], .adm-field input[type="number"] {
  font: inherit; font-size: 15px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: #f8fafc; color: var(--ink); width: 100%;
}
.adm-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.18); background: #fff; }
.adm-field-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.adm-field-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.adm-field-narrow { flex: 0 0 130px; }
.adm-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; min-width: 220px; padding-bottom: 4px; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.adm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.adm-btn { font: inherit; font-weight: 800; font-size: 14.5px; padding: 12px 20px; border-radius: var(--r-md); cursor: pointer; border: 1.5px solid transparent; }
.adm-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(0, 91, 255, 0.28); }
.adm-btn-primary:active { transform: translateY(1px); }
.adm-btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.adm-btn:disabled { opacity: 0.6; cursor: wait; }
.adm-form-msg { font-size: 13.5px; font-weight: 700; }
.adm-form-msg[data-tone="ok"] { color: #0e7a45; }
.adm-form-msg[data-tone="err"] { color: #b42318; }

.adm-foot { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 4px 0 0; }
.adm-foot code { background: #e9eef6; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.is-hidden { display: none !important; }

@media (max-width: 540px) {
  .adm-status-grid { grid-template-columns: 1fr; }
}
