/* Growth — тема. Все цвета и размеры здесь: стиль правится в одном месте. Светлая тема. */
/* Inter (SIL Open Font License 1.1), локальная копия — без внешних запросов */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/theme/fonts/inter-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/theme/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/theme/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/theme/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* поверхность */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f8f9fb;
  --border: #e6e9ef;
  --border-strong: #d5dae3;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);
  --overlay: rgba(15, 23, 42, 0.45);

  /* текст */
  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9aa3b2;

  /* акцент — один насыщенный синий */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eaf1ff;
  --accent-text: #1d4ed8;

  /* статусы: мягкая подложка + цветной текст */
  --ok-bg: #e7f7ee;     --ok-text: #16803c;
  --warn-bg: #fff6e0;   --warn-text: #a15c00;
  --bad-bg: #fdecec;    --bad-text: #c42b2b;
  --info-bg: #eaf1ff;   --info-text: #1d4ed8;
  --neutral-bg: #f1f3f6; --neutral-text: #4b5563;

  /* форма */
  --radius-card: 14px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --gap: 16px;
  --pad-card: 20px;
  --sidebar-w: 232px;
  --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-num: 26px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 var(--fs-md)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: var(--fs-xl); font-weight: 700; margin: 0; }
h2 { font-size: var(--fs-lg); font-weight: 600; margin: 0; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.label { color: var(--text-muted); font-size: var(--fs-xs); }
.num { font-size: var(--fs-num); font-weight: 600; letter-spacing: -0.01em; }

/* карточки */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
        box-shadow: var(--shadow); padding: var(--pad-card); }
.card.disabled { background: var(--surface-muted); }
.card.disabled .card-body { opacity: .55; }

/* кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
       border-radius: var(--radius-control); border: 1px solid var(--border-strong); background: var(--surface);
       color: var(--text); font: 500 var(--fs-md) var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--bad-text); }
.btn.link { border: 0; background: none; color: var(--accent-text); padding: 0 4px; height: auto; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.input { height: 40px; width: 100%; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-control);
         font: 400 var(--fs-md) var(--font); color: var(--text); background: var(--surface); }
.input:focus, .btn:focus-visible { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: var(--fs-sm); color: var(--text-muted); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .toggle { position: absolute; right: 6px; top: 6px; height: 28px; }

/* таблетки статусов */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
        font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.pill.bad { background: var(--bad-bg); color: var(--bad-text); }
.pill.info { background: var(--info-bg); color: var(--info-text); }
.pill.neutral { background: var(--neutral-bg); color: var(--neutral-text); }

/* таблицы: без вертикальных линий, светлый заголовок, воздух */
.table-scroll { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); background: var(--surface-muted);
            padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* поп-ап */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center;
                  padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: var(--radius-card); width: 100%; max-width: 520px; padding: 24px;
         box-shadow: 0 20px 50px rgba(15, 23, 42, .18); max-height: calc(100vh - 32px); overflow: auto; }
.modal h2 { margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.notice { border-radius: var(--radius-control); padding: 12px 14px; font-size: var(--fs-sm); }
.notice.bad { background: var(--bad-bg); color: var(--bad-text); }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }
.notice.info { background: var(--info-bg); color: var(--info-text); }

/* логотип — общий для всех страниц (вход, кабинет) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-lg); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center;
              font-size: 14px; font-weight: 700; flex: 0 0 30px; }

