/* Общие стили личного кабинета (/account/) и админки (/admin/), палитра — как на главной */
:root { --bg: #f3f1ec; --fg: #111; --muted: #6d6a64; --line: #d9d5cc; --card: #fbfaf7; --accent: #e03c31; --up: #1a8a4a; --down: #c8321e; --bar: #e03c31; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121212; --fg: #f3f1ec; --muted: #8f8b84; --line: #2b2a28; --card: #1a1a1a; --up: #3ecf7a; --down: #ff6a50; --bar: #f0584c; } } :root[data-theme="dark"] { --bg: #121212; --fg: #f3f1ec; --muted: #8f8b84; --line: #2b2a28; --card: #1a1a1a; --up: #3ecf7a; --down: #ff6a50; --bar: #f0584c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter Tight", system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
.page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo { color: inherit; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.04em; white-space: nowrap; }
.slash { color: var(--accent); font-size: 1.3em; line-height: 0; }
.logo small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.head-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hbtn { font: inherit; font-size: 14px; font-weight: 500; border-radius: 9px; padding: 7px 13px; cursor: pointer; white-space: nowrap;
  color: var(--fg); background: none; border: 1px solid var(--line); text-decoration: none; }
.hbtn:hover { border-color: var(--fg); }
.hbtn.solid { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.hbtn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hbtn.danger { color: var(--down); }
.hbtn.danger:hover { border-color: var(--down); }
.hbtn:disabled { opacity: .5; cursor: default; }
h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin: 36px 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tile .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 13px; color: var(--muted); }
.list { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-radius: 6px; padding: 2px 6px;
  border: 1px solid currentColor; vertical-align: 2px; }
.badge.ok { color: var(--up); } .badge.bad { color: var(--down); } .badge.mut { color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; min-width: 180px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--bg); }
tr.on td { background: var(--bg); }
form.pw { display: grid; gap: 8px; max-width: 360px; }
input { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
input:focus { outline: none; border-color: var(--accent); }
.err { color: var(--down); } .note { color: var(--up); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 13px; border-radius: 8px; padding: 6px 9px;
  transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; opacity: 0; transition: opacity .1s; }
.chart .tip.on { opacity: 1; }
@media (max-width: 480px) { .logo small { display: none; } .tile .val { font-size: 24px; } }

/* Вкладки разделов (кабинет, аналитика): как «Новости / Задачи / Блог» на главной */
/* overflow-y: hidden — подчёркивание вкладки (margin-bottom: -1px) иначе даёт полоске тянуться пальцем вверх-вниз */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 32px 0 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs button { font: inherit; font-size: 16px; color: var(--muted); background: none; border: 0; padding: 0 0 10px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.tabs button small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.tab-pane h2:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: 14px; color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* Логотип банка (account/banks/*): на белой подложке, чтобы тёмные значки были видны в тёмной теме */
.blogo { width: 1.05em; height: 1.05em; border-radius: 4px; background: #fff; padding: 1px; vertical-align: -.17em; margin-right: .3em; object-fit: contain; }
.chips .blogo { margin-right: 6px; }
/* переключатель темы в кабинете: три кнопки одной плашкой */
.theme-seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.theme-seg button { font: inherit; font-size: 14px; color: var(--fg); background: none; border: 0; border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.theme-seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.qtip > span.fit { position: fixed; right: auto; }   /* подсказку ставит fitTips() в common.js — в пределах экрана */
/* Крутилка перед «Загружаю…» (20.11.2026), как на главной (news/base.css) */
.loading::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.12em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .7; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }
