/* Portal Kit — оформление. Палитра управляется из «Управление порталом → Оформление». */

:root {
  --font-sans:  "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-heading: var(--font-serif);

  /* Значения по умолчанию — переопределяются <style id="brand-vars"> */
  --accent:      #2F6B5A;
  --accent-dark: #7FBFA6;
  --gold:        #C9A961;
  --bg-light:    #F3F1EC;
  --bg-dark:     #151A18;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,25,20,.06), 0 8px 24px -12px rgba(20,25,20,.18);
}

/* ---- светлая тема (базовая) ---- */
:root, [data-theme="light"] {
  --bg:      var(--bg-light);
  --panel:   #FFFFFF;
  --panel-2: color-mix(in srgb, var(--bg-light) 60%, #fff);
  --line:    color-mix(in srgb, var(--bg-light) 70%, #000 8%);
  --ink:     #1D221E;
  --ink-2:   #5B635C;
  --ink-3:   #8B938C;
  --brand:   var(--accent);
  --brand-ink: #fff;
  --ok:   #2F7A47; --ok-bg: #E7F3EA;
  --err:  #A8352E; --err-bg: #F8E7E5;
  --warn: #8A6410; --warn-bg: #F8F0DC;
}
[data-theme="dark"] {
  --bg:      var(--bg-dark);
  --panel:   color-mix(in srgb, var(--bg-dark) 80%, #fff 6%);
  --panel-2: color-mix(in srgb, var(--bg-dark) 90%, #fff 4%);
  --line:    color-mix(in srgb, var(--bg-dark) 70%, #fff 14%);
  --ink:     #ECEEEA;
  --ink-2:   #A9B0AA;
  --ink-3:   #737A74;
  --brand:   var(--accent-dark);
  --brand-ink: #10160F;
  --ok:   #7FCB93; --ok-bg: #1B2E22;
  --err:  #F09A93; --err-bg: #3A1F1D;
  --warn: #E7C56E; --warn-bg: #33290F;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: var(--bg-dark); --panel: color-mix(in srgb, var(--bg-dark) 80%, #fff 6%);
    --panel-2: color-mix(in srgb, var(--bg-dark) 90%, #fff 4%);
    --line: color-mix(in srgb, var(--bg-dark) 70%, #fff 14%);
    --ink: #ECEEEA; --ink-2: #A9B0AA; --ink-3: #737A74;
    --brand: var(--accent-dark); --brand-ink: #10160F;
    --ok: #7FCB93; --ok-bg: #1B2E22; --err: #F09A93; --err-bg: #3A1F1D; --warn: #E7C56E; --warn-bg: #33290F;
  }
}

/* ---- база ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.55 var(--font-sans); color: var(--ink); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: currentColor; }
.lead { color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }
.ico { vertical-align: -4px; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- шапка ---- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar__in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; border: 0; color: var(--ink); }
.brand__name { font-family: var(--font-heading); font-size: 20px; letter-spacing: .01em; white-space: nowrap; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-family: var(--font-heading); font-weight: 500; }
.brand__img { width: auto; display: block; }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); border: 0; }
.topnav a:hover { background: var(--panel-2); color: var(--ink); }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { color: var(--ink); background: var(--panel-2); }
[data-theme="light"] [data-theme-toggle] .ico:last-child, [data-theme="auto"] [data-theme-toggle] .ico:last-child { display: none; }
[data-theme="dark"] [data-theme-toggle] .ico:first-child { display: none; }
.me { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; border: 0; color: var(--ink); padding: 0 6px; }
.me__name { font-size: 14px; } .me__role { font-size: 12px; color: var(--ink-3); }
.main { flex: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px; }
.foot { max-width: 1240px; margin: 0 auto; width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; }

/* ---- сообщения ---- */
.msg { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; border: 1px solid transparent; }
.msg--ok   { background: var(--ok-bg);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.msg--err  { background: var(--err-bg);  color: var(--err);  border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.msg--warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.msg--info { background: var(--panel-2); color: var(--ink-2); border-color: var(--line); }
[data-flash] { max-width: 1240px; margin: 16px auto 0; }
.main > [data-flash] { margin-left: 24px; margin-right: 24px; }

/* ---- формы ---- */
label { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.field { margin: 0 0 16px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=text] { width: 120px; font-family: ui-monospace, monospace; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--panel-2); border-bottom-color: var(--line); }
.btn--primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn--gold { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 80%, #fff), var(--gold)); color: #2A2410; border-color: transparent; }
.btn--gold:hover { filter: brightness(.96); }
.btn--danger { color: var(--err); }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---- панели и таблицы ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 20px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel h2 + .lead { margin-top: -8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl--tight td, .tbl--tight th { padding: 7px 10px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--off { background: var(--err-bg); color: var(--err); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.kv th { color: var(--ink-3); font-weight: 400; width: 40%; }
.temp-pass { display: flex; align-items: center; gap: 10px; }
.temp-pass code { font-size: 16px; padding: 6px 10px; }

/* ---- главная: плитки ---- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { margin: 0; }
.hero .muted { margin: 4px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); min-height: 132px; position: relative; }
.tile:hover { border-color: var(--brand); border-bottom-color: var(--brand); }
.tile__ico { color: var(--brand); margin-bottom: 14px; }
.tile__title { font-family: var(--font-heading); font-size: 18px; display: block; margin-bottom: 4px; }
.tile__desc { font-size: 13px; color: var(--ink-2); }
.tile--admin { border-style: dashed; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-2); }

/* ---- админка: боковое меню + тело ---- */
.admin__in { max-width: 1240px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: 250px 1fr; gap: 32px; }
.adminnav { position: sticky; top: 84px; align-self: start; }
.adminnav__title { font-size: 13px; font-family: var(--font-sans); color: var(--ink-3); font-weight: 500; margin: 0 0 8px 12px; }
.adminnav ul { list-style: none; margin: 0; padding: 0; }
.adminnav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); border: 0; }
.adminnav a:hover { background: var(--panel); color: var(--ink); }
.adminnav .is-active a { background: var(--brand); color: var(--brand-ink); }
.admin__head { margin-bottom: 22px; }
.admin__head h1 { margin-bottom: 4px; }
@media (max-width: 860px) {
  .admin__in { grid-template-columns: 1fr; }
  .adminnav { position: static; }
  .adminnav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .topnav span, .me { display: none; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__n { font-family: var(--font-heading); font-size: 30px; line-height: 1; }
.stat__l { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---- страницы без шапки: вход и мастер ---- */
body.bare { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; }
.side { background: var(--brand); color: var(--brand-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.side__brand { display: flex; align-items: center; gap: 14px; }
.side__brand .brand__mark { background: var(--brand-ink); color: var(--brand); }
.side__brand .brand__name { color: inherit; }
.side h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.side p { opacity: .85; max-width: 40ch; font-size: 16px; }
.side__foot { font-size: 13px; opacity: .7; }
.side__foot a { color: inherit; }
.side .points { list-style: none; padding: 0; margin: 22px 0 0; max-width: 46ch; display: grid; gap: 10px; }
.side .points li { position: relative; padding-left: 22px; font-size: 15px; opacity: .92; }
.side .points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold, #C9A34A); }
.auth__note { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.auth__join { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.auth__join .btn { justify-content: center; }
.auth { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__card h2 { font-size: 26px; margin-bottom: 20px; }
.auth__links { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 14px; }
.auth__theme { position: fixed; right: 18px; top: 18px; }
@media (max-width: 760px) {
  body.bare { grid-template-columns: 1fr; }
  .side { padding: 28px 24px; min-height: 0; }
  .side h1 { font-size: 26px; }
  .side p, .side .points { display: none; }
}

/* мастер */
.wizard { max-width: 640px; margin: 0 auto; }
.steps { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; font-size: 13px; }
.steps li { flex: 1; padding: 8px 0 8px; border-top: 3px solid var(--line); color: var(--ink-3); }
.steps li.done { border-top-color: var(--ok); color: var(--ok); }
.steps li.now { border-top-color: var(--brand); color: var(--ink); font-weight: 500; }
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.ok-y { color: var(--ok); } .ok-n { color: var(--err); }
.side .steps li.now { color: inherit; border-top-color: var(--brand-ink); }
.side .steps li { color: inherit; opacity: .6; border-top-color: rgba(255,255,255,.35); }
.side .steps li.now { opacity: 1; }

/* ===== e-checkme · страницы входа/регистрации по макету ===== */
html, body.bare { min-height: 100%; }
body.bare { grid-template-columns: minmax(320px, 47%) 1fr; min-height: 100vh; }
body.bare .side { min-height: 100vh; }
body.bare .side.side--img { background: var(--login-bg) center / cover no-repeat; }
body.bare .side.side--img::before { background: linear-gradient(180deg, rgba(5,29,32,.55) 0%, rgba(5,29,32,.72) 60%, rgba(5,29,32,.88) 100%); opacity: 1; }
body.bare .side__brand--light { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.94); }
body.bare .side__brand--light .brand__name { color: #0B2E2E; }
body.bare .side {
  position: relative; overflow: hidden; padding: 56px 60px;
  background: radial-gradient(120% 80% at 100% 100%, #0E3A3A 0%, #082A2C 45%, #051D20 100%);
  color: #fff;
}
body.bare .side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 900' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke-width='1.2'><path d='M900 40 C 700 120, 520 260, 470 520 S 560 900, 620 960' stroke='%232E8F7F' opacity='.55'/><path d='M960 220 C 760 300, 640 420, 600 620 S 700 940, 760 1000' stroke='%23C9A34A' opacity='.35'/><path d='M760 -40 C 620 180, 560 360, 560 560 S 640 860, 700 960' stroke='%232E8F7F' opacity='.35'/><path d='M1000 500 C 820 520, 700 600, 660 760' stroke='%23C9A34A' opacity='.25'/></g><g fill='%23C9A34A'><circle cx='486' cy='350' r='3.5'/><circle cx='596' cy='700' r='3'/></g></svg>") no-repeat right center / cover;
}
body.bare .side > * { position: relative; }
body.bare .side__brand { display: inline-flex; align-self: flex-start; padding: 10px 18px; border: 1.5px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(255,255,255,.04); }
body.bare .side__brand .brand__img { height: 96px !important; max-width: 100%; }
body.bare .side__brand .brand__mark { background: #fff; color: #0B2E2E; }
body.bare .side__brand .brand__name { color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 30px; letter-spacing: -.01em; }
body.bare .side h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 22px; color: #fff; }
body.bare .side h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--gold, #C9A34A); margin-top: 22px; }
body.bare .side .slogan { font-family: var(--font-heading); font-size: clamp(20px, 2.4vw, 28px); color: var(--gold, #C9A34A); margin: 18px 0 6px; letter-spacing: .01em; }
body.bare .side p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.45; max-width: 44ch; }
body.bare .side .points { margin-top: 28px; gap: 14px; }
body.bare .side .points li { font-size: 17px; line-height: 1.4; padding-left: 28px; color: rgba(255,255,255,.92); }
body.bare .side .points li::before { width: 11px; height: 11px; top: .5em; background: var(--gold, #C9A34A); }
body.bare .side__foot { color: rgba(255,255,255,.62); font-size: 14px; }
body.bare .side__foot a { color: inherit; text-decoration: none; }

body.bare .auth { background: linear-gradient(180deg, #F6F7F7 0%, #EEF1F0 100%); flex-direction: column; gap: 16px; padding: 56px 32px; }
[data-theme="dark"] body.bare .auth { background: linear-gradient(180deg, #101615 0%, #0B100F 100%); }
body.bare .auth__card, body.bare .auth__note, body.bare .auth__join {
  width: 100%; max-width: 640px; margin: 0; background: var(--panel); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(5,29,32,.08), 0 1px 2px rgba(5,29,32,.06); border: 1px solid rgba(5,29,32,.06);
}
body.bare .auth__card { padding: 36px 40px 30px; }
body.bare .auth__card h2 { text-align: center; font-family: var(--font-sans); font-weight: 600; font-size: 36px; margin-bottom: 26px; }
body.bare .auth__card label { font-weight: 600; font-size: 15px; }
body.bare .inp { position: relative; }
body.bare .inp > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
body.bare .inp > input { padding-left: 44px; height: 52px; font-size: 16px; border-radius: 10px; }
body.bare .inp > .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
body.bare .inp > .eye:hover { color: var(--accent); }
body.bare .auth__card .btn--primary { height: 52px; font-size: 18px; border-radius: 10px; }
body.bare .auth__links { justify-content: center; font-size: 16px; margin-top: 18px; }
body.bare .auth__note { margin-top: 0; padding: 22px 26px; display: flex; gap: 20px; align-items: center; font-size: 16px; color: var(--ink); background: linear-gradient(180deg, #F4F8F6 0%, #EEF4F1 100%); }
[data-theme="dark"] body.bare .auth__note { background: var(--panel-2); }
body.bare .auth__join { padding: 24px 26px; display: grid; grid-template-columns: 68px 1fr; gap: 6px 20px; align-items: center; font-size: 16px; }
body.bare .auth__join .btn { grid-column: 1 / -1; height: 52px; font-size: 18px; border: 2px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; font-weight: 600; }
body.bare .auth__join .btn:hover { background: var(--accent); color: #fff; }
body.bare .badge-ico { width: 68px; height: 68px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(5,29,32,.10); display: grid; place-items: center; color: var(--accent); flex: 0 0 68px; }
[data-theme="dark"] body.bare .badge-ico { background: var(--panel); }
body.bare .theme-pick { position: fixed; right: 22px; top: 22px; display: flex; gap: 10px; }
body.bare .theme-pick button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(5,29,32,.10); color: #1B2430; display: grid; place-items: center; cursor: pointer; }
body.bare .theme-pick button:hover { color: var(--accent); }
[data-theme="dark"] body.bare .theme-pick button { background: var(--panel); color: var(--ink); }
@media (max-width: 900px) {
  body.bare .side { padding: 28px 24px; min-height: 0; }
  body.bare .side h1 { font-size: 30px; }
  body.bare .side h1::after { margin-top: 12px; }
  body.bare .side__brand { padding: 10px 14px; }
  body.bare .side__brand .brand__img { height: 40px !important; }
  body.bare .auth { padding: 24px 16px; }
  body.bare .auth__card { padding: 24px 20px; }
  body.bare .auth__card h2 { font-size: 28px; }
  body.bare .theme-pick { position: static; justify-content: flex-end; width: 100%; max-width: 640px; }
}

/* ===== e-checkme · главная и тёмная шапка внутренних страниц ===== */
.topbar { background: #0B2E2E; border-bottom: 0; color: #fff; }
.topbar .brand__name { color: #fff; }
.topbar .brand__mark { background: #fff; color: #0B2E2E; }
.topnav a { color: rgba(255,255,255,.82); }
.topnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar .iconbtn { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.9); }
.topbar .iconbtn:hover { background: rgba(255,255,255,.1); }
.topbar .me__name { color: #fff; } .topbar .me__role { color: rgba(255,255,255,.6); }
.topbar .brand .brand__img { max-height: 46px; height: 46px !important; }
.hero2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 8px 0 18px; }
.hero2 h1 { margin: 0 0 4px; }
.planbadge { background: #0B2E2E; border-radius: 14px; padding: 8px 16px; line-height: 0; } .planbadge img { height: 72px; }
.dash { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.mod { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(5,29,32,.05); text-decoration: none; color: var(--ink); }
.mod:hover { border-color: var(--accent); }
.mod__top { display: flex; gap: 16px; align-items: center; }
.mod__ico { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: #0B2E2E; flex: 0 0 64px; }
.mod--admin .mod__ico { background: var(--accent); }
.mod__t { font-family: var(--font-heading); font-size: 21px; } .mod__d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mod__go { color: var(--accent); font-size: 14px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.kpi__ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #E5F3EE; color: #0E6B5C; flex: 0 0 44px; }
.kpi__ico.b { background: #FBEBD0; color: #8a5a00; } .kpi__ico.c { background: #E2ECF9; color: #2C5BA8; } .kpi__ico.d { background: #EEE4F5; color: #6B3FA0; }
.kpi__l { font-size: 13px; color: var(--muted); } .kpi__n { font-size: 24px; font-weight: 700; line-height: 1.1; } .kpi__s { font-size: 12px; color: var(--muted); } .kpi__s b { color: #0E6B5C; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } @media (max-width: 1400px) { .cols { grid-template-columns: 1fr 1fr; } } @media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card h3 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .card h3 a { font-size: 12.5px; font-weight: 400; }
.card .row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .card .row:last-child { border-bottom: 0; }
.card .av { width: 30px; height: 30px; border-radius: 50%; background: #E5F3EE; color: #0E6B5C; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 30px; }
.card .av--warn { background: #FBEBD0; color: #8a5a00; } .card .av--info { background: #E2ECF9; color: #2C5BA8; }
.card .m { color: var(--muted); font-size: 12px; } .card .t { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.steps { display: grid; grid-template-columns: 1fr; gap: 10px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13px; }
.step.done { opacity: .6; } .step .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #E5F3EE; color: #0E6B5C; flex: 0 0 30px; } .step.done .ic { background: #0E6B5C; color: #fff; }
.step b { display: block; font-size: 13.5px; } .step span { color: var(--muted); font-size: 12px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.sys .row { padding: 6px 0; } .dot { width: 8px; height: 8px; border-radius: 50%; background: #2AA876; display: inline-block; margin-right: 8px; } .dot.bad { background: #C0392B; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; } .quick a { text-decoration: none; color: var(--ink); font-size: 12px; }
.quick .ic { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 6px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); }
[data-theme="dark"] .kpi__ico, [data-theme="dark"] .card .av, [data-theme="dark"] .step .ic { background: rgba(127,191,166,.15); }
