/* Раздел «Новости» — ЛК сотрудника Московского Политеха. Демо в шести цветовых схемах.
   Токены — из ui-kit/tokens.css индиго- и красного паков. Все пары мелкого текста ≥ 4.5:1. */

:root {
  --news-canvas: #F1F3F6;
  --news-surface: #FFFFFF;
  --news-border: #E4E7EE;
  --news-border-soft: #E9ECF2;
  --news-divider: #F0F2F6;
  --news-chip-bg: #F3F5F8;
  --news-image-placeholder: #EDEFF4;

  --news-text: #1B2A4A;
  --news-ink: #2C2E6E;
  --news-text-body: #4E5666;
  --news-text-muted: #5C6474;
  --news-text-quiet: #45505F;
  --news-text-nav: #3C4453;

  --news-accent: #5B5BD6;
  --news-accent-dark: #3F3FA8;
  --news-tint: #F1F1FC;
  --news-tint-border: #DCDCF7;
  --news-tint-line: #C7C7EF;
  --news-tint-text: #3A3C75;
  --news-poll-bar: rgba(91, 91, 214, .16);
  --news-avatar: #6C6CE0;

  --news-alert: #C11B21;
  --news-alert-bg: #FDF1F1;
  --news-alert-border: #F2CFD1;
  --news-success: #0B6E4F;
  --news-up: #1F9D55;

  --news-rub-all: #5B5BD6;        --news-rub-all-bg: #F1F1FC;        --news-rub-all-fg: #3F3FA8;
  --news-rub-events: #5B7CE0;     --news-rub-events-bg: #ECF0FD;     --news-rub-events-fg: #2B4796;
  --news-rub-editorial: #9B7BFF;  --news-rub-editorial-bg: #F1ECFF;  --news-rub-editorial-fg: #5A34C7;
  --news-rub-people: #2FC1A8;     --news-rub-people-bg: #E4F7F3;     --news-rub-people-fg: #0B6252;
  --news-rub-values: #E0A02A;     --news-rub-values-bg: #FBF2DF;     --news-rub-values-fg: #7A5000;
  --news-rub-official: #8B95A6;   --news-rub-official-bg: #F0F2F6;   --news-rub-official-fg: #454E5E;
  --news-rub-wins: #3BBE7A;       --news-rub-wins-bg: #E6F7EE;       --news-rub-wins-fg: #0B6238;

  --news-font: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --news-radius-hero: 22px;
  --news-radius-card: 18px;
  --news-radius-control: 12px;
  --news-radius-badge: 7px;
  --news-radius-chip: 20px;
  --news-shadow-hover: 0 10px 26px -18px rgba(20, 24, 31, .45);

  --news-sidebar-w: 268px;
  --news-rail-w: 316px;
}

/* ---- Индиго-пак: вариации ---- */
[data-theme="polytech-blue"] {
  --news-ink: #123A6B; --news-accent: #2456E5; --news-accent-dark: #1B44BC;
  --news-tint: #EDF1FD; --news-tint-border: #D8E1FA; --news-tint-line: #C0CFF2; --news-tint-text: #33456B;
  --news-poll-bar: rgba(36, 86, 229, .15); --news-avatar: #4A72E8;
}
[data-theme="graphite-azure"] {
  --news-ink: #1E3A4C; --news-accent: #0A7AB6; --news-accent-dark: #0A6091;
  --news-tint: #E9F4FA; --news-tint-border: #CFE6F3; --news-tint-line: #B4D8EA; --news-tint-text: #1E4557;
  --news-poll-bar: rgba(10, 122, 182, .15); --news-avatar: #2A8FC7;
}

/* ---- Красный пак: графитовый текст, красный точечно, землистые рубрики ---- */
[data-pack="red"] {
  --news-text: #262A33;
  --news-ink: #262A33;
  --news-accent: #D6202B; --news-accent-dark: #A5121B;
  --news-tint: #FDECEC; --news-tint-border: #F7D5D7; --news-tint-line: #EDB6BA; --news-tint-text: #6B2226;
  --news-poll-bar: rgba(214, 32, 43, .13);
  --news-alert: #D6202B; --news-avatar: #D6202B;

  --news-rub-all: #D6202B;        --news-rub-all-bg: #FDECEC;        --news-rub-all-fg: #A5121B;
  --news-rub-events: #4A5361;     --news-rub-events-bg: #EEF0F3;     --news-rub-events-fg: #333B47;
  --news-rub-editorial: #B04A2F;  --news-rub-editorial-bg: #FBEDE8;  --news-rub-editorial-fg: #8A3419;
  --news-rub-people: #1F6E8C;     --news-rub-people-bg: #E7F2F6;     --news-rub-people-fg: #12505F;
  --news-rub-values: #B58200;     --news-rub-values-bg: #FBF3DF;     --news-rub-values-fg: #7A5000;
  --news-rub-official: #8B95A6;   --news-rub-official-bg: #F0F2F6;   --news-rub-official-fg: #454E5E;
  --news-rub-wins: #8A1B3D;       --news-rub-wins-bg: #FAEBF0;       --news-rub-wins-fg: #6E1230;
}
[data-pack="red"][data-theme="red-graphite"] {
  --news-ink: #23262B; --news-accent: #C8102E; --news-accent-dark: #96091F;
  --news-tint: #F1F2F4; --news-tint-border: #DDE0E5; --news-tint-line: #C7CCD4; --news-tint-text: #3A3F47;
  --news-poll-bar: rgba(200, 16, 46, .11); --news-avatar: #23262B;
}
[data-pack="red"][data-theme="red-warmgray"] {
  --news-ink: #2B2724; --news-accent: #D62F22; --news-accent-dark: #A31C12;
  --news-tint: #FAF2EF; --news-tint-border: #EEDCD6; --news-tint-line: #DEC2B9; --news-tint-text: #5A4741;
  --news-poll-bar: rgba(214, 47, 34, .12); --news-avatar: #D62F22;
}

/* Рубрики: класс на карточке задаёт тройку цветов */
.rub-all       { --dot: var(--news-rub-all);       --tbg: var(--news-rub-all-bg);       --tfg: var(--news-rub-all-fg); }
.rub-events    { --dot: var(--news-rub-events);    --tbg: var(--news-rub-events-bg);    --tfg: var(--news-rub-events-fg); }
.rub-editorial { --dot: var(--news-rub-editorial); --tbg: var(--news-rub-editorial-bg); --tfg: var(--news-rub-editorial-fg); }
.rub-people    { --dot: var(--news-rub-people);    --tbg: var(--news-rub-people-bg);    --tfg: var(--news-rub-people-fg); }
.rub-values    { --dot: var(--news-rub-values);    --tbg: var(--news-rub-values-bg);    --tfg: var(--news-rub-values-fg); }
.rub-official  { --dot: var(--news-rub-official);  --tbg: var(--news-rub-official-bg);  --tfg: var(--news-rub-official-fg); }
.rub-wins      { --dot: var(--news-rub-wins);      --tbg: var(--news-rub-wins-bg);      --tfg: var(--news-rub-wins-fg); }

/* ---- База ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--news-canvas); color: var(--news-text);
  font-family: var(--news-font); -webkit-font-smoothing: antialiased; font-size: 15px;
}
a { color: var(--news-accent); text-decoration: none; }
a:hover { color: var(--news-accent-dark); text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D6DAE2; border-radius: 8px; border: 3px solid var(--news-canvas); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.lk { display: grid; grid-template-columns: var(--news-sidebar-w) minmax(0, 1fr); min-height: 100vh; align-items: start; }

/* ---- Сайдбар ---- */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--news-surface);
  border-right: 1px solid #E6E9EF; padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.logo__mark { width: 38px; height: 38px; border-radius: 50%; border: 5px solid var(--news-ink); border-right-color: var(--news-accent); border-bottom-color: var(--news-accent); flex: none; }
[data-pack="red"] .logo__mark { border-color: #1A1A1A; border-right-color: #8C8C8C; border-bottom-color: #8C8C8C; }
.logo__text { font-size: 13px; font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }

.profile { position: relative; background: #F5F6F8; border-radius: 16px; padding: 18px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profile__more { position: absolute; top: 10px; right: 12px; color: #9AA2B1; font-size: 16px; letter-spacing: 1px; line-height: 1; }
.profile__avatar { width: 74px; height: 74px; border-radius: 50%; background: var(--news-avatar); color: #fff; font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.profile__name { font-size: 14px; font-weight: 500; text-align: center; line-height: 1.35; }

.search-fake { display: flex; align-items: center; gap: 8px; border: 1px solid #E6E9EF; border-radius: var(--news-radius-control); padding: 9px 11px; color: var(--news-text-muted); }
.search-fake span:first-of-type { font-size: 14px; flex: 1; }
.search-fake .kbd { font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 11px; font-size: 15px; color: var(--news-text-nav); text-align: left; width: 100%; }
.nav__item:hover { background: #F5F6F8; text-decoration: none; color: var(--news-text-nav); }
.nav__item--active, .nav__item--active:hover { font-weight: 600; color: var(--news-ink); background: var(--news-tint); }
.nav__item--active svg { stroke: var(--news-accent); }
.nav__badge { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--news-alert); border-radius: 20px; padding: 2px 7px; }

.sidebar__divider { height: 1px; background: #E6E9EF; margin: 0 6px; }
.overline { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--news-text-muted); }
.rubrics { display: flex; flex-direction: column; gap: 4px; }
.rubrics .overline { padding: 0 11px 6px; }
.rubric { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; font-size: 14px; line-height: 1.25; text-align: left; width: 100%; }
.rubric:hover { background: #F5F6F8; }
.rubric__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dot); }
.rubric__name { flex: 1; color: var(--news-text-nav); }
.rubric--active .rubric__name { color: var(--news-ink); font-weight: 600; }
.rubric__count { font-size: 12px; color: var(--news-text-muted); font-variant-numeric: tabular-nums; }

.darkmode { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 11px 4px; font-size: 14px; color: var(--news-text-nav); }
.toggle { width: 40px; height: 22px; border-radius: 20px; background: #E1E4EA; position: relative; flex: none; display: inline-block; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ---- Шапка раздела ---- */
.main { min-width: 0; padding: 0 0 56px; }
.head { position: sticky; top: 0; z-index: 5; background: rgba(241,243,246,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #E6E9EF; padding: 18px 32px 14px; }
.head__row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head__title { flex: 1; min-width: 240px; }
.crumb { font-size: 13px; color: var(--news-text-muted); }
.crumb:hover { color: var(--news-text-muted); }
.head h1 { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.head__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E1E4EA; border-radius: var(--news-radius-control); padding: 9px 12px; width: 260px; }
.search:focus-within { border-color: var(--news-accent); }
.search input { border: 0; outline: 0; font-size: 14px; background: transparent; width: 100%; color: var(--news-ink); }
.search input::placeholder { color: #7A8291; }
.seg { display: flex; background: #E9ECF2; border-radius: var(--news-radius-control); padding: 3px; }
.seg__btn { padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--news-text-quiet); }
.seg__btn--active { background: #fff; color: var(--news-ink); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--news-radius-control); background: #fff; border: 1px solid #E1E4EA; display: flex; align-items: center; justify-content: center; color: var(--news-text-nav); }
.icon-btn:hover { border-color: var(--news-accent); }
.icon-btn--on { color: var(--news-accent); border-color: var(--news-accent); }
.chips { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: var(--news-radius-chip); border: 1px solid #E1E4EA; background: #fff; color: var(--news-text-muted); }
.chip:hover { border-color: var(--news-tint-line); }
.chip--active, .chip--active:hover { background: var(--news-ink); color: #fff; border-color: var(--news-ink); }
.result-line { margin-left: auto; font-size: 13px; color: var(--news-text-muted); }

/* ---- Тело ---- */
.body { display: flex; flex-wrap: wrap; gap: 26px; padding: 26px 32px 0; align-items: flex-start; }
.content { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.rail { flex: 1 1 300px; max-width: var(--news-rail-w); min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 148px; }
.rail[hidden] { display: none; }

/* Бейджи */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--news-radius-badge); padding: 6px 10px; background: var(--tbg); color: var(--tfg); }
.badge--top { color: var(--news-alert); border: 1px solid var(--news-alert-border); background: var(--news-alert-bg); padding: 5px 10px; }
[data-pack="red"] .badge--top { color: #fff; background: var(--news-accent); border: 0; padding: 6px 10px; }
.badge--sm { font-size: 11px; letter-spacing: .05em; padding: 5px 9px; }

/* Hero */
.hero { background: var(--news-surface); border: 1px solid var(--news-border); border-radius: var(--news-radius-hero); overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.hero__text { flex: 1 1 300px; min-width: 0; padding: 30px 32px; display: flex; flex-direction: column; }
.hero__badges { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 30px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; color: var(--news-ink); text-wrap: pretty; }
.hero h2 a { color: inherit; }
.hero p { margin: 14px 0 0; color: var(--news-text-body); font-size: 15.5px; line-height: 1.52; text-wrap: pretty; }
.hero__foot { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 26px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--news-accent); color: #fff; font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: var(--news-radius-control); }
.btn-primary:hover { background: var(--news-accent-dark); color: #fff; text-decoration: none; }
.meta { color: var(--news-text-muted); font-size: 13.5px; }
.hero__img { flex: 1 1 340px; min-width: 260px; min-height: 300px; position: relative; background: var(--news-image-placeholder); }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Заголовки секций */
.section-head { display: flex; align-items: baseline; gap: 12px; }
.section-head h3, .feed__head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.section-head a, .feed__head span { font-size: 13px; color: var(--news-text-muted); }
.section { display: flex; flex-direction: column; gap: 14px; }

/* Сетка анонсов */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--news-border-soft); border-radius: var(--news-radius-card); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s, box-shadow .15s; color: inherit; }
.card:hover { border-color: var(--news-tint-line); box-shadow: var(--news-shadow-hover); text-decoration: none; color: inherit; }
.card__cover { position: relative; aspect-ratio: 16 / 9; background: var(--news-image-placeholder); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; color: var(--news-ink); }
.fav svg { fill: none; stroke: currentColor; }
.fav--on svg { fill: currentColor; }
.card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__body .badge { align-self: flex-start; }
.card h4 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--news-text-muted); }
.card__meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--news-text-muted); }

/* Лента */
.feed { background: #fff; border: 1px solid var(--news-border-soft); border-radius: var(--news-radius-card); padding: 8px 10px 10px; }
.feed__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 10px; gap: 12px; flex-wrap: wrap; }
.row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 12px; border-top: 1px solid var(--news-divider); cursor: pointer; color: inherit; border-radius: 10px; }
.row:hover { background: #FAFBFC; text-decoration: none; color: inherit; }
.row__day { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--tbg); color: var(--tfg); }
.row__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.row__meta { font-size: 12.5px; color: var(--news-text-muted); }
.row__side { display: flex; align-items: center; gap: 8px; }
.tag-pill { font-size: 12px; color: var(--news-text-muted); background: var(--news-chip-bg); border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.fav--row { position: static; width: 30px; height: 30px; border-radius: 9px; background: transparent; color: var(--news-text-muted); }
.fav--row:hover { background: var(--news-divider); }
.fav--row.fav--on { color: var(--news-ink); }
.load-more { display: block; width: calc(100% - 4px); margin: 10px 2px 2px; text-align: center; padding: 13px; border-radius: var(--news-radius-control); background: var(--news-chip-bg); font-size: 14.5px; font-weight: 600; color: var(--news-accent); }
.load-more:hover { background: #EAEEF6; }
.load-more--done { color: var(--news-text-muted); cursor: default; }
.empty { padding: 40px 20px; text-align: center; color: var(--news-text-muted); font-size: 15px; }
.empty strong { display: block; color: var(--news-ink); font-size: 18px; margin-bottom: 6px; }

/* ---- Виджеты ---- */
.widget { background: #fff; border: 1px solid var(--news-border-soft); border-radius: var(--news-radius-card); padding: 18px; }
.widget--tint { background: var(--news-tint); border-color: var(--news-tint-border); padding: 20px; }
.widget__overline { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--news-accent-dark); }
.widget h4 { margin: 0; font-size: 16px; font-weight: 700; }
.widget__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.widget__note { font-size: 12.5px; color: var(--news-text-muted); }
.poll__q { margin: 10px 0 16px; font-size: 16.5px; font-weight: 600; line-height: 1.32; color: var(--news-ink); text-wrap: pretty; }
.poll__opt { position: relative; overflow: hidden; border-radius: 11px; margin-bottom: 8px; border: 1px solid var(--news-tint-line); background: #fff; padding: 11px 13px; width: 100%; text-align: left; }
.poll__opt:hover { border-color: var(--news-accent); }
.poll__bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--news-poll-bar); width: 0; transition: width .4s ease; }
.poll__lbl { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--news-ink); }
.poll__pct { font-weight: 700; color: var(--news-accent-dark); }
.poll__opt--mine .poll__pct { color: var(--news-success); }
.poll__foot { font-size: 12.5px; color: var(--news-text-muted); margin-top: 12px; }
.btn-block { display: block; width: 100%; margin: 14px 0; text-align: center; background: var(--news-accent); color: #fff; border-radius: var(--news-radius-control); padding: 12px; font-size: 14.5px; font-weight: 600; }
.btn-block:hover { background: var(--news-accent-dark); }
.idea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 0; border-top: 1px solid var(--news-divider); }
.idea__rank { font-size: 13px; font-weight: 700; color: #6B7484; }
.idea__title { font-size: 13.5px; line-height: 1.35; }
.idea__votes { font-size: 12.5px; font-weight: 600; color: var(--news-up); white-space: nowrap; }
.agenda__date { margin: 9px 0 4px; font-size: 16px; font-weight: 700; }
.agenda__desc { font-size: 13.5px; color: var(--news-tint-text); line-height: 1.45; }
.agenda__form { display: flex; gap: 8px; margin-top: 14px; }
.agenda__form input { flex: 1; min-width: 0; border: 1px solid var(--news-tint-line); background: #fff; border-radius: 11px; padding: 10px 12px; font-size: 13.5px; outline: 0; }
.agenda__form input:focus { border-color: var(--news-accent); }
.btn-ink { background: var(--news-ink); color: #fff; border-radius: 11px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bday { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 8px 0; }
.bday__avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--tfg); background: var(--tbg); }
.bday__name { font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.bday__role { font-size: 12px; color: var(--news-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday__date { font-size: 12.5px; font-weight: 600; color: var(--news-accent); white-space: nowrap; }
.widget--links { padding: 8px; }
.widget--links .overline { padding: 10px 10px 8px; display: block; }
.qlink { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: 11px; font-size: 14px; color: var(--news-ink); }
.qlink:hover { background: #F5F6F8; text-decoration: none; color: var(--news-ink); }
.qlink span { color: #6B7484; }

/* ---- Панель схем (демо) ---- */
.tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 50; font-size: 13px; }
.tweaks__btn { display: flex; align-items: center; gap: 8px; background: #1B1F27; color: #fff; border-radius: 999px; padding: 10px 14px 10px 12px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); font-weight: 500; }
.tweaks__swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--news-accent); border: 2px solid rgba(255,255,255,.6); }
.tweaks__panel { position: absolute; right: 0; bottom: 48px; width: 280px; background: #fff; border: 1px solid var(--news-border); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(20,24,31,.35); padding: 8px; }
.tweaks__panel[hidden] { display: none; }
.tweaks__group { padding: 8px 10px 4px; }
.tweaks__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; color: var(--news-text); }
.tweaks__opt:hover { background: #F5F6F8; }
.tweaks__opt--active { background: var(--news-tint); font-weight: 600; }
.tweaks__opt i { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.08); }
.tweaks__sep { height: 1px; background: var(--news-divider); margin: 6px 4px; }
.tweaks__check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.tweaks__check input { accent-color: var(--news-accent); }

/* ---- Адаптив ---- */
@media (max-width: 1140px) { .rail { position: static; max-width: none; } }
@media (max-width: 900px) {
  .lk { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #E6E9EF; }
  .profile { flex-direction: row; padding: 8px 12px; gap: 10px; }
  .profile__avatar { width: 36px; height: 36px; font-size: 14px; }
  .profile__name br { display: none; }
  .profile__more, .search-fake, .sidebar__divider, .darkmode, .nav { display: none; }
  .rubrics { flex-direction: row; flex-wrap: wrap; gap: 4px; width: 100%; }
  .rubrics .overline { display: none; }
  .rubric { width: auto; padding: 6px 10px; border: 1px solid #E6E9EF; border-radius: 20px; font-size: 13px; }
  .rubric--active { background: var(--news-tint); border-color: var(--news-tint-border); }
  .rubric__count { display: none; }
  .head { padding: 14px 16px 12px; position: static; }
  .head h1 { font-size: 24px; }
  .search { width: 100%; }
  .head__tools { width: 100%; }
  .body { padding: 18px 16px 0; }
  .hero__text { padding: 22px 20px; }
  .hero h2 { font-size: 24px; }
  .hero__img { min-height: 220px; }
  .row__side .tag-pill { display: none; }
}
