/* Стили сайта — из образца C «Сначала задачи» (сайт-макеты/образцы-вида.html, выбран 08.10). */
/* ===== Палитра образцов: нейтральный фон, один синий акцент, бледные статусы ===== */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --head: #FAFBFC;
  --text: #1F2328; --text-2: #5F6670; --text-3: #8C929A;
  --line: #E6E8EC; --line-2: #D5D9DF; --track: #EDEFF2;
  --accent: #2F5D9E; --accent-hover: #264D84; --accent-weak: #EAF0F8;
  --amber-bg: #FBEFE3; --amber-tx: #8A4A14; --amber-dot: #C27A2C;
  --red-bg: #FBEBEA; --red-tx: #A32A21; --red-dot: #C8473D;
  --green-bg: #E7F3EC; --green-tx: #23683F; --green-dot: #3E8E5E;
  --grey-bg: #F0F2F5; --grey-tx: #5F6670;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}
/* ===== Обёртка документа ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #ECEEF1; color: var(--text); font-family: var(--font); font-variant-numeric: tabular-nums; }
.doc-in, .shot-cap, .doc-foot { max-width: 1440px; margin: 0 auto; padding-inline: 32px; }
.doc { padding-block: 40px 8px; }
.doc-back { font-size: 14px; line-height: 20px; color: var(--text-2); text-decoration: none; }
.doc-back:hover { text-decoration: underline; }
.doc-title { margin: 20px 0 8px; font-size: 32px; line-height: 40px; font-weight: 600; }
.doc-lead { max-width: 88ch; margin: 0; font-size: 16px; line-height: 24px; color: var(--text-2); }
.shot { padding-block: 48px 0; }
.shot-cap h2 { margin: 0 0 4px; font-size: 20px; line-height: 28px; font-weight: 600; }
.shot-cap p { margin: 0; max-width: 100ch; font-size: 15px; line-height: 22px; color: var(--text-2); }
.shot-frame { max-width: 1440px; margin: 16px auto 0; overflow-x: auto; }
.doc-foot { padding-block: 48px 64px; font-size: 13px; line-height: 20px; color: var(--text-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Приложение ===== */
.app { display: flex; flex-direction: column; width: 100%; min-width: 1280px; min-height: 900px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); font-family: var(--font); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.app h1, .app h2, .app p { margin: 0; }
.app a { color: var(--accent); text-decoration: none; }
.app .i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app .i.lg { width: 24px; height: 24px; stroke-width: 1.5; }
/* шапка */
.app .top { flex: none; display: flex; align-items: stretch; height: 56px; padding: 0 32px; background: var(--card); border-bottom: 1px solid var(--line); }
.app .logo { display: flex; align-items: center; margin-right: 40px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.app .nav { display: flex; align-items: stretch; gap: 28px; }
.app .nav span { position: relative; display: flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.app .nav .on { color: var(--text); font-weight: 500; }
.app .nav .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.app .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-tx); font-size: 12px; font-weight: 500; }
.app .user { margin-left: auto; display: flex; align-items: center; gap: 24px; color: var(--text-2); white-space: nowrap; }
/* страница и заголовок */
.app .page { flex: 1 0 auto; padding: 24px 32px 40px; }
.app .head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.app .head h1 { font-size: 22px; line-height: 28px; font-weight: 600; }
.app .seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #E9EBEF; }
.app .seg span { padding: 4px 14px; border-radius: 6px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.app .seg .on { background: var(--card); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.app .btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--text); font-weight: 500; white-space: nowrap; }
.app .btn.pri { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.app .btn.acc { color: var(--accent); }
.app .ml { margin-left: auto; }
/* карточки и счётчики */
.app .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.app .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.app .stat { padding: 16px 20px; }
.app .lb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.app .num { margin-top: 4px; font-size: 28px; line-height: 36px; font-weight: 600; }
.app .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.app .d-amber { background: var(--amber-dot); }
.app .d-red { background: var(--red-dot); }
.app .d-blue { background: var(--accent); }
.app .d-green { background: var(--green-dot); }
/* бейджи */
.app .bdg { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.app .nb { min-width: 32px; height: 24px; font-size: 13px; }
/* образец B: строка сводки и карточки */
.app .strip { display: flex; align-items: center; margin-bottom: 20px; padding: 14px 8px; }
.app .strip .st { display: flex; align-items: center; gap: 10px; padding: 0 24px; border-left: 1px solid var(--line); }
.app .strip .st:first-child { border-left: 0; }
.app .strip b { font-size: 22px; line-height: 28px; font-weight: 600; }
.app .strip .lb { font-size: 13px; }
.app .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app .cc { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.app .cc .ct { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.app .cc .ct .bdg { margin-left: auto; }
.app .cc .acc-n { font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; }
.app .cc .nm { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.app .cc .dt { font-size: 24px; line-height: 30px; font-weight: 600; white-space: nowrap; }
.app .cc .dt small { margin-right: 6px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.app .cc .dt.miss { font-size: 18px; color: var(--red-tx); }
.app .cc .prog .bar { flex: 1; width: auto; }
.app .cc .prog.empty { visibility: hidden; }
.app .cc .bdgs { display: flex; gap: 6px; }
.app .cc .act { margin-top: auto; padding-top: 4px; }
.app .cc .act .btn { width: 100%; justify-content: center; }
.app .cc.rest { align-items: center; justify-content: center; text-align: center; background: var(--head); box-shadow: none; }
.app .cc.rest .big { font-size: 28px; line-height: 36px; font-weight: 600; }
/* образец C: задачи и компактная таблица */
.app .tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.app .task { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.app .task .i.lg { color: var(--accent); }
.app .task .big { margin-top: 2px; font-size: 32px; line-height: 40px; font-weight: 600; white-space: nowrap; }
.app .task .big span { margin-left: 6px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-2); }
.app .tbl.compact td { padding: 10px 16px; }
.app .inl { margin-left: 8px; }
.app .b-amber { background: var(--amber-bg); color: var(--amber-tx); }
.app .b-red { background: var(--red-bg); color: var(--red-tx); }
.app .b-green { background: var(--green-bg); color: var(--green-tx); }
.app .b-blue { background: var(--accent-weak); color: var(--accent); }
.app .b-grey { background: var(--grey-bg); color: var(--grey-tx); }
.app .t-red { color: var(--red-tx); }
.app .t-amber { color: var(--amber-tx); }
/* таблица */
.app .tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.app .tbl th { height: 40px; padding: 0 16px; background: var(--head); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-2); text-align: left; white-space: nowrap; }
.app .tbl th:first-child { border-top-left-radius: 10px; }
.app .tbl th:last-child { border-top-right-radius: 10px; }
.app .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.app .tbl .n { text-align: right; }
.app .tbl .nw { white-space: nowrap; }
.app .co { font-weight: 500; white-space: nowrap; }
.app .sub { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-2); }
.app .under { display: block; margin-top: 4px; }
.app .tfoot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--text-2); }
/* прогресс разноски */
.app .prog { display: flex; align-items: center; gap: 10px; }
.app .bar { width: 120px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.app .bar i { display: block; width: var(--p); height: 100%; border-radius: 3px; background: var(--accent); }
.app .bar i.full { background: var(--green-dot); }
.app .frac { white-space: nowrap; }
.app .frac span { color: var(--text-3); }
/* кнопка-иконка */
.app .ibtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text-2); }
.app .ibtn.acc { color: var(--accent); }

/* Страница входа (site_export.py дописывает этот файл к site.css → login/login.css). Палитра — образец C. */
body.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 24px 16px 64px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 20px; }
.login .box { width: 100%; max-width: 380px; }
.login .brand { display: flex; align-items: center; gap: 12px; margin: 0 0 20px 2px; }
.login .mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); }
.login .mark svg { width: 22px; height: 22px; fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linejoin: round; }
.login .brand b { display: block; font-size: 16px; line-height: 22px; font-weight: 600; }
.login .brand small { display: block; font-size: 13px; line-height: 18px; color: var(--text-2); }
.login .card { padding: 28px 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .07); }
.login h1 { margin: 0 0 20px; font-size: 22px; line-height: 28px; font-weight: 600; }
.login label { display: block; margin: 0 0 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.login input { display: block; width: 100%; height: 42px; margin: 0 0 16px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.login input:hover { border-color: #C3C8CF; }
.login input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.login input.bad { border-color: var(--red-dot); }
.login input.bad:focus { box-shadow: 0 0 0 3px var(--red-bg); }
.login .pw { position: relative; }
.login .pw input { padding-right: 46px; }
.login .eye { position: absolute; top: 5px; right: 5px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.login .eye:hover { background: var(--grey-bg); color: var(--text); }
.login .eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login .eye .off, .login .eye.shown .on { display: none; }
.login .eye.shown .off { display: block; }
.login .caps { margin: -8px 0 14px; font-size: 12px; line-height: 16px; color: var(--amber-tx); }
.login .err { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--red-bg); color: var(--red-tx); font-size: 13px; line-height: 18px; }
.login .go { display: block; width: 100%; height: 42px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .15s; }
.login .go:hover { background: var(--accent-hover); }
.login .go:disabled { opacity: .72; cursor: default; }
.login .go:focus-visible, .login .eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login [hidden] { display: none !important; }
