/* ==========================================================================
   Палитра повторяет оригинал (XenForo 2.3, стиль XenTR, тёмный и светлый режим)
   ========================================================================== */
:root {
  --page-bg: #ebebeb;
  --text: #243042;
  --text-dim: #505c75;
  --text-muted: #8a94a8;
  --link: #5c678a;
  --link-hover: #3a4566;

  --header-bg: #3d425c;
  --header-text: #d1d7e0;
  --header-text-strong: #ffffff;
  --nav-sel-bg: #f5f5f5;
  --nav-sel-text: #5c678a;
  --section-bg: #f5f5f5;
  --section-border: #cccccc;
  --section-text: #5c678a;

  --content-bg: #ffffff;
  --content-alt: #f5f5f5;
  --highlight: #f2f5f9;
  --border: #d6d6d6;
  --border-top: #e0e0e0;
  --border-bottom: #cccccc;
  --border-light: #e6e6e6;
  --block-head-bg: #edf2f7;
  --block-head-text: #5c678a;
  --minor-bg: #f5f5f5;
  --minor-text: #94a0b8;
  --icon-bg: #f5f5f5;
  --icon-color: #3d425c;
  --unread: #33844a;

  --notice-bg: #e8fee7;
  --notice-hr: #8a94a8;
  --button-bg: #5c678a;
  --button-border: #5c678a;
  --button-text: #ffffff;
  --button-green: #42a95f;
  --button-orange: #ea741f;
  --button-primary: #5c678a;
  --accent: #5c678a;
  --accent-soft: #edf2f7;
  --success: #33844a;
  --danger: #c0392b;
  --success-bg: #e8fee7;
  --error-bg: #fde3e1;
  --warning-bg: #fff5d6;
  --footer-bg: #2d3143;
  --footer-text: #d1d7e0;
  --bar-track: #dddddd;
  --bar-win: rgba(94, 172, 57, .71);
  --bar-lose: rgba(215, 11, 0, .467);
  --win-link: #41a85f;
  --trophy: #f2930d;
  --radius: 2px;
  --filterbar-top: #f2f5f9;
  --filterbar-bottom: #e4ebf3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --page-bg: #151d28; --text: #e0e0e0; --text-dim: #c2c4d6; --text-muted: #8c90ad; --link: #a3a6c2; --link-hover: #d0d2e6;
    --header-bg: #33354d; --header-text: #a3a6c2; --header-text-strong: #e0e1eb; --nav-sel-bg: #1d2735; --nav-sel-text: #e0e1eb;
    --section-bg: #1d2735; --section-border: #3d5271; --section-text: #a3a6c2;
    --content-bg: #243042; --content-alt: #1d2735; --highlight: #2b3a50; --border: #364963; --border-top: #2e3f56; --border-bottom: #3d5271; --border-light: #2b3a50;
    --block-head-bg: #2b3a50; --block-head-text: #e0e1eb; --minor-bg: #1d2735; --minor-text: #e0e1eb; --icon-bg: #1d2735; --icon-color: #a3a6c2;
    --notice-bg: #0f5712; --notice-hr: #e0e0e0;
    --button-bg: #474a6b; --button-border: #52557a; --button-text: #e0e1eb; --button-green: #255f36; --button-primary: #474a6b;
    --accent: #8f94c4; --accent-soft: #2b3a50; --success-bg: #173d22; --error-bg: #4a2228; --warning-bg: #45391c;
    --footer-bg: #232434; --footer-text: #a3a6c2; --bar-track: #dddddd; --filterbar-top: #292b3e; --filterbar-bottom: #32344b;
    color-scheme: dark;
  }
}
:root[data-scheme="dark"] {
  --page-bg: #151d28; --text: #e0e0e0; --text-dim: #c2c4d6; --text-muted: #8c90ad; --link: #a3a6c2; --link-hover: #d0d2e6;
  --header-bg: #33354d; --header-text: #a3a6c2; --header-text-strong: #e0e1eb; --nav-sel-bg: #1d2735; --nav-sel-text: #e0e1eb;
  --section-bg: #1d2735; --section-border: #3d5271; --section-text: #a3a6c2;
  --content-bg: #243042; --content-alt: #1d2735; --highlight: #2b3a50; --border: #364963; --border-top: #2e3f56; --border-bottom: #3d5271; --border-light: #2b3a50;
  --block-head-bg: #2b3a50; --block-head-text: #e0e1eb; --minor-bg: #1d2735; --minor-text: #e0e1eb; --icon-bg: #1d2735; --icon-color: #a3a6c2;
  --notice-bg: #0f5712; --notice-hr: #e0e0e0;
  --button-bg: #474a6b; --button-border: #52557a; --button-text: #e0e1eb; --button-green: #255f36; --button-primary: #474a6b;
  --accent: #8f94c4; --accent-soft: #2b3a50; --success-bg: #173d22; --error-bg: #4a2228; --warning-bg: #45391c;
  --footer-bg: #232434; --footer-text: #a3a6c2; --bar-track: #dddddd; --filterbar-top: #292b3e; --filterbar-bottom: #32344b;
  color-scheme: dark;
}
/* «Старый» стиль: классическая синяя шапка XenForo */
:root[data-style="old"] { --header-bg: #185886; --header-text: #ffffff; --header-text-strong: #ffffff; --link: #2577b1; --block-head-text: #185886; --block-head-bg: #dce7f5; --nav-sel-text: #185886; --button-bg: #2577b1; --button-border: #2577b1; --button-primary: #2577b1; --accent: #2577b1; }

/* ===== Base ===== */
* { box-sizing: border-box; }
html { font: 16px/1.2 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', sans-serif; color: var(--text); background: var(--page-bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); overflow-y: scroll; }
.p-pageWrapper { min-height: 100vh; display: flex; flex-direction: column; }
.p-body { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border-light); margin: 8px 0; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
.u-muted { color: var(--text-muted); }
.u-dim { color: var(--text-dim); }
.u-small { font-size: 14px; }
.u-right { text-align: right; }
.u-hidden { display: none !important; }
.u-srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Header + navigation (one dark band) ===== */
.p-header, .p-nav { background: var(--header-bg); color: var(--header-text); }
.p-header-inner, .p-nav-inner, .p-sectionLinks-inner, .p-body-inner, .p-footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 4px; }
.p-header-content { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 4px 0; gap: 12px; }
.p-header-logo a { color: var(--header-text); text-decoration: none; white-space: nowrap; font-size: 16px; }
.p-header-logo b { font-size: 1.8em; font-weight: 700; color: var(--header-text-strong); opacity: .82; letter-spacing: -.5px; }
.p-header-logo span { margin-left: 4px; }
.p-navgroup { display: flex; align-items: center; }
.p-navgroup-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; color: var(--header-text); white-space: nowrap; font-size: 16px; background: none; border: 0; cursor: pointer; border-radius: var(--radius); }
.p-navgroup-link:hover { color: var(--header-text-strong); text-decoration: none; }
.p-navgroup-link .ico { font-size: 17px; }
.p-navgroup-link .avatar { width: 24px; height: 24px; font-size: 12px; }

.p-stickyHeader { position: sticky; top: 0; z-index: 50; flex-shrink: 0; background: var(--header-bg); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.p-nav { position: relative; }
.p-nav-inner { display: flex; align-items: flex-end; min-height: 35px; }
.p-nav-smallLogo { display: none; align-items: center; color: var(--header-text-strong); font-weight: 700; font-size: 22px; margin-right: 8px; }
.p-nav-smallLogo:hover { text-decoration: none; color: var(--header-text-strong); }
.p-nav-list { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.p-navEl { position: relative; display: flex; }
.p-navEl > a { display: flex; align-items: center; gap: 5px; padding: 8px 4px; color: var(--header-text); text-decoration: none; font-size: 16px; border-radius: 1px 1px 0 0; }
.p-navEl > a:hover { color: var(--header-text-strong); text-decoration: none; }
.p-navEl-emoji { font-size: 18px; line-height: 1; }
.p-navEl-caret { font-size: 12px; opacity: .7; margin-left: 2px; }
.p-navEl.is-selected > a { background: var(--nav-sel-bg); color: var(--nav-sel-text); font-weight: 700; }
.p-navEl-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--content-bg); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 5px 10px rgba(0,0,0,.35); z-index: 60; padding: 3px 0; }
.p-navEl:hover .p-navEl-drop, .p-navEl:focus-within .p-navEl-drop { display: block; }
.p-navEl-drop a { display: block; padding: 6px 10px; color: var(--text); }
.p-navEl-drop a:hover { background: var(--highlight); text-decoration: none; }
.p-nav-opposite { display: none; align-items: center; margin-left: auto; }
.p-nav-burger { display: none; }

.menu { position: relative; }
.menu-content { display: none; position: absolute; right: 0; top: calc(100% + 2px); min-width: 220px; background: var(--content-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 10px rgba(0,0,0,.35); z-index: 70; padding: 3px 0; font-size: 15px; }
.menu.is-open .menu-content { display: block; }
.menu-content a, .menu-content button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 12px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; }
.menu-content a:hover, .menu-content button:hover { background: var(--highlight); text-decoration: none; }
.menu-content .is-active { font-weight: 700; color: var(--link); }
.menu-header { padding: 6px 12px; font-size: 16px; background: var(--block-head-bg); color: var(--block-head-text); border-bottom: 1px solid var(--border-light); margin-top: -3px; }
.menu-sep { border-top: 1px solid var(--border-light); margin: 3px 0; }

.p-sectionLinks { background: var(--section-bg); border-bottom: 1px solid var(--section-border); font-size: 15px; }
.p-sectionLinks--empty { height: 10px; }
.p-sectionLinks-inner { display: flex; flex-wrap: wrap; }
.p-sectionLinks a { color: var(--section-text); padding: 4px 4px; line-height: 1.2; }
.p-sectionLinks a:hover { color: var(--link-hover); text-decoration: none; }
.p-sectionLinks a.is-active { font-weight: 700; }

/* ===== Body ===== */
.p-body-inner { padding: 4px 4px 8px; }
.p-body-main { display: flex; align-items: flex-start; }
.p-body-content { flex: 1; min-width: 0; padding-right: 4px; }
.p-body-sidebar { width: 410px; flex-shrink: 0; }
.p-body-main:not(:has(.p-body-sidebar)) .p-body-content { padding-right: 0; }

/* green welcome notice */
.p-notice { display: flex; background: var(--notice-bg); color: var(--text); border: 1px solid var(--border); border-top-color: var(--border-top); border-bottom-color: var(--border-bottom); border-radius: var(--radius); margin-bottom: 4px; }
.p-notice-image { flex: 0 0 auto; padding: 6px 0 6px 6px; }
.p-notice-image img { width: 48px; height: 48px; display: block; border-radius: 3px; }
.p-notice-content { padding: 6px; line-height: 1.2; flex: 1; min-width: 0; }
.p-notice-content a { font-weight: 700; }
.p-notice-content hr { border-top: 1px solid var(--notice-hr); margin: 6px 0 9px; }

/* breadcrumbs */
.p-breadcrumbs { list-style: none; margin: 0 0 4px; padding: 0 0 0 4px; display: flex; flex-wrap: wrap; font-size: 16px; background: var(--block-head-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.p-breadcrumbs li { position: relative; display: flex; }
.p-breadcrumbs a { display: flex; align-items: center; gap: 3px; padding: 7px 18px 7px 14px; color: var(--text); }
.p-breadcrumbs li:first-child a { padding-left: 8px; }
.p-breadcrumbs li:last-child a { font-weight: 700; }
.p-breadcrumbs li::after { content: ''; position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-top: 1px solid var(--text-muted); border-right: 1px solid var(--text-muted); transform: scaleX(.5) rotate(45deg); transform-origin: center; pointer-events: none; }
.p-breadcrumbs a:hover { text-decoration: none; color: var(--link-hover); }

/* page title bar (p-body-header) */
.p-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--content-bg); padding: 8px 6px; border-radius: var(--radius); border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
.p-title-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.p-title-value { font-size: 19px; font-weight: 400; line-height: 1.25; margin-right: auto; }
.p-title-pageAction { display: flex; gap: 4px; flex-wrap: wrap; }
.p-title:has(+ .p-description) { margin-bottom: 0; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 2px; }
.p-description { background: var(--content-bg); color: var(--text-muted); font-size: 16px; padding: 0 6px 8px; border-bottom: 1px solid var(--border-light); border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.p-description a { color: var(--text-muted); }
.p-description-sep { margin: 0 2px; }

.notice { padding: 6px 8px; border-radius: var(--radius); margin-bottom: 4px; border: 1px solid var(--border); background: var(--content-bg); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.notice--success { background: var(--success-bg); }
.notice--error { background: var(--error-bg); }
.notice--warning { background: var(--warning-bg); }
.notice--locked { border-left: 3px solid var(--unread); }
.notice--locked .ico { color: var(--unread); font-size: 18px; }

/* ===== Blocks ===== */
.block { margin-bottom: 4px; }
.block-container { background: var(--content-bg); border: 1px solid var(--border); border-top-color: var(--border-top); border-bottom-color: var(--border-bottom); border-radius: var(--radius); overflow: hidden; }
.block-header { margin: 0; padding: 4px 6px; font-size: 18px; font-weight: 400; background: var(--block-head-bg); color: var(--block-head-text); border-bottom: 1px solid var(--border-top); }
.block-header a { color: inherit; }
.block-header a:hover { text-decoration: none; }
.block-desc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.block-minorHeader { margin: 0; padding: 4px 6px; font-size: 17px; font-weight: 400; background: var(--minor-bg); color: var(--minor-text); display: flex; align-items: center; gap: 8px; }
.block-minorHeader a { color: inherit; }
.block-minorHeader .ico { font-size: 15px; }
.block-row { padding: 4px 6px; border-top: 1px solid var(--border-light); }
.block-row:first-child { border-top: 0; }
.block-footer { padding: 4px 6px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-dim); }
.block-footer--right { text-align: right; }
.block-outer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.block-outer:empty { display: none; }
.block-empty { padding: 6px; color: var(--text-dim); }

/* ===== Node list ===== */
.node { border-top: 1px solid var(--border-light); }
.node:first-child { border-top: 0; }
.node-body { display: flex; align-items: stretch; }
.node-icon { width: 72px; flex-shrink: 0; padding: 6px; display: flex; justify-content: center; align-items: center; border-right: 1px solid var(--border-light); }
.node-icon i { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--icon-bg); border-radius: var(--radius); color: var(--icon-color); font-size: 18px; font-style: normal; }
.node-icon .ico { width: 20px; height: 20px; }
.node--unread .node-icon i { color: var(--unread); }
.node-main { flex: 1; min-width: 0; padding: 8px 6px; display: flex; flex-direction: column; justify-content: center; }
.node-title { font-size: 17px; font-weight: 400; margin: 0; }
.node-title a { color: var(--link); }
.node--unread .node-title { font-weight: 700; }
.node-description { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.node-subNodes { list-style: none; margin: 3px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; font-size: 15px; }
.node-subNodes li { min-width: 0; }
.node-subNodes a { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; min-width: 0; }
.node-subNodes a span { overflow: hidden; text-overflow: ellipsis; }
.node-subNodes .ico { font-size: 15px; color: var(--icon-color); }
.node-subNodes .is-unread a { font-weight: 700; }
.node-subNodes .is-unread .ico { color: var(--unread); }
.node-extra { width: 280px; flex-shrink: 0; display: flex; gap: 6px; align-items: center; padding: 6px; border-left: 1px solid var(--border-light); font-size: 16px; min-width: 0; }
.node-extra-main { min-width: 0; flex: 1; }
.node-extra-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.node-extra-title { color: var(--text-dim); }
.node-extra-row .label { font-size: 13px; padding: 1px 3px; }
.node-extra-meta { color: var(--text-muted); }
.node-extra-meta a:not([class*="username--"]) { color: var(--text-muted); }
.node-extra-placeholder { color: var(--text-muted); font-style: italic; }
.node-stats { width: 200px; flex-shrink: 0; display: flex; align-items: center; text-align: center; border-left: 1px solid var(--border-light); padding: 6px 0; }
.node-stats dl { flex: 1; margin: 0; }
.node-stats dt { font-size: 12.8px; color: var(--text-muted); }
.node-stats dd { margin: 0; font-size: 16px; }

/* ===== Avatars & usernames ===== */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 30%; overflow: hidden; color: #fff; font-weight: 600; flex-shrink: 0; text-decoration: none !important; background: #7a7fa8; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xxs { width: 24px; height: 24px; font-size: 13px; }
.avatar--xs { width: 36px; height: 36px; font-size: 18px; }
.avatar--s { width: 48px; height: 48px; font-size: 24px; }
.avatar--m { width: 110px; height: 110px; font-size: 52px; border-radius: 22%; }
.avatar--l { width: 160px; height: 160px; font-size: 72px; border-radius: 22%; }
.username { font-weight: 400; }
.username--admin, .username--moderator { color: #41a85f; }
.message-name .username, .memberHeader-name .username { font-weight: 700; }
.userTitle { font-size: 15px; color: var(--text); }
.userBanner { display: block; font-size: 13px; padding: 2px 4px; background: #3b4f8a; color: #fff; margin: 2px 0; text-align: center; border: 1px solid rgba(0,0,0,.25); line-height: 1.2; }
.userBanner--Команда { background: #2d5394; }
.userBanner--Меценат { background: #ea741f; }
.userBanner--Модератор { background: #2c7a3c; }
.userBanner--Эксперт { background: #2a8fb8; }

/* ===== Labels (prefixes) ===== */
.label { display: inline-block; padding: 2px 4px; border-radius: 20%; font-size: 14px; line-height: 1.1; border: 1px solid transparent; vertical-align: 1px; margin-right: 4px; white-space: nowrap; }
.label--primary { background: var(--accent-soft); color: var(--link); border-color: var(--border); border-radius: 3px; }
.label--baltdef { color: #fff; background: rgba(22, 68, 130, .52); border-color: #164482; }
.label--mfdef { color: #fff; background: rgba(255, 204, 80, .73); border-color: #164482; }
.label--1xdef { color: #fff; background: #5795d3; border-color: #164482; }
.label--profit { color: #fff; background: rgba(11, 128, 0, .63); border-color: #164482; border-radius: 3px; }
.label--multi { color: #fff; background: #f2920c; border-color: #164482; border-radius: 3px; }
.label--red { color: #fff; background: hsl(0,100%,42%); border-radius: 3px; }
.label--green { color: #fff; background: hsl(120,100%,25%); border-radius: 3px; }
.label--gray { color: #fff; background: hsl(0,0%,50%); border-radius: 3px; }

/* ===== Buttons ===== */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 6px; border: 1px solid var(--button-border); border-radius: var(--radius); background: var(--button-bg); color: var(--button-text); font-size: 15px; cursor: pointer; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.button .ico { font-size: 18px; }
.button:hover { filter: brightness(1.12); color: var(--button-text); }
.button--primary { background: var(--button-primary); color: var(--button-text); }
.button--green { background: var(--button-green); border-color: var(--button-green); color: #fff; }
.button--cta, .button--orange { background: var(--button-orange); border-color: var(--button-orange); color: #fff; }
.button--green:hover, .button--cta:hover, .button--orange:hover { color: #fff; }
.button--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button--danger:hover { color: #fff; }
.button--small { padding: 3px 6px; font-size: 14px; }
.button--link { background: none; border-color: transparent; color: var(--link); padding: 3px 6px; }

/* ===== Thread list ===== */
.structItem { display: flex; align-items: flex-start; border-top: 1px solid var(--border-light); }
.structItem:first-child { border-top: 0; }
.structItem-group--sticky { border-bottom: 1px solid var(--border-light); }
.structItem-cell { padding: 6px 5px; }
.structItem-cell--icon { width: 46px; flex-shrink: 0; }
.structItem-cell--icon .avatar--s { width: 36px; height: 36px; font-size: 16px; display: flex; }
.structItem-cell--main { flex: 1; min-width: 0; padding-left: 0; padding-bottom: .2em; }
.structItem-title { font-size: 17px; }
.structItem-title a { color: var(--link); }
.structItem-title .label { font-weight: 400; }
.structItem-minor { font-size: 14px; color: var(--text-muted); }
.structItem-minor a { color: inherit; }
.structItem-parts { display: inline; }
.structItem-parts .u-dim { color: var(--text-dim); }
.structItem-pageJump { margin-left: 8px; font-size: 13px; }
.structItem-pageJump a { color: var(--text-dim); background: var(--content-alt); border: 1px solid var(--border); border-radius: 1px; padding: 0 3px; opacity: .5; }
.structItem:hover .structItem-pageJump a { opacity: 1; }
.structItem-status { float: right; display: inline-flex; gap: 8px; margin-left: 8px; color: var(--text-muted); font-size: 14px; }
.structItem-cell--meta { width: 135px; flex-shrink: 0; font-size: 15px; }
.structItem-cell--meta dl { display: flex; justify-content: space-between; margin: 0; }
.structItem-cell--meta dt::after { content: ':'; }
.structItem-cell--meta dd { margin: 0; }
.structItem-cell--meta dl.structItem-minor { font-size: 14px; }
.structItem-cell--meta dl.structItem-minor dd { color: var(--text-muted); }
.structItem-cell--latest { width: 190px; flex-shrink: 0; text-align: right; font-size: 15px; }
.structItem-cell--latest a { color: var(--text-dim); }
.structItem-cell--latest .structItem-minor { display: block; }
.structItem-cell--iconEnd { width: 34px; flex-shrink: 0; padding-left: 2.5px; padding-top: 10px; }
.structItem-cell--iconEnd .avatar { display: flex; }

/* «Фильтры» — полоса-заголовок списка, как block-filterBar в оригинале */
.block-filterBar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 15px; color: var(--block-head-text); background: linear-gradient(0deg, var(--filterbar-bottom), var(--filterbar-top)); border-bottom: 1px solid var(--border-bottom); min-height: 32px; }
.block-filterBar .filterChip { background: rgba(255,255,255,.08); color: inherit; padding: 1px 8px; }
.block-filterBar .filterChip a { color: inherit; opacity: .75; }
.filterMenu { position: relative; margin-left: auto; }
.filterMenu > summary { list-style: none; cursor: pointer; padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
.filterMenu > summary::-webkit-details-marker { display: none; }
.filterMenu > summary::after { content: ''; display: inline-block; margin-left: 4px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: 2px; }
.filterMenu > summary:hover { background: rgba(255,255,255,.08); }
.filterMenu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 260px; background: var(--content-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 10px rgba(0,0,0,.35); }
.filterMenu-body .menu-header { margin-top: 0; }
.filterMenu-row { padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.filterMenu-row .input { width: 100%; }
.filterMenu-row a { color: var(--text); padding: 2px 0; }
.filterMenu-row a.is-active { font-weight: 700; color: var(--link); }
.filterMenu-foot { padding: 6px 10px; border-top: 1px solid var(--border-light); text-align: right; background: var(--minor-bg); }
.prefixBar { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 6px; }
.prefixBar a:hover { text-decoration: none; }
.prefixBar .label { margin: 0; font-size: 15px; padding: 3px 6px; }
.prefixBar .is-active .label, .prefixBar .label.is-active { outline: 1px solid var(--text-muted); }

/* ===== Messages ===== */
.message { display: flex; background: var(--content-bg); border: 1px solid var(--border); border-top-color: var(--border-top); border-bottom-color: var(--border-bottom); border-radius: var(--radius); margin-bottom: 4px; }
.message-cell--user { width: 156px; flex-shrink: 0; padding: 6px; background: var(--minor-bg); border-right: 1px solid var(--border); text-align: center; position: relative; }
.message-cell--user::after { content: ''; position: absolute; right: -7px; top: 12px; width: 12px; height: 12px; background: var(--content-bg); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.message-name { margin-top: 6px; font-size: 16px; font-weight: 700; }
.message-cell--user .avatar--m { width: 96px; height: 96px; font-size: 46px; border-radius: 20%; }
.message-cell--user .userTitle { font-size: 14px; }
.message-cell--user .userBanner { margin-top: 3px; font-size: 12px; padding: 1px 4px; }
.message-trophies { display: flex; justify-content: center; gap: 6px; margin: 6px 0 2px; font-size: 18px; color: #6a8cc7; }
.message-userExtras { margin: 3px 0 0; font-size: 14px; text-align: left; }
.message-userExtras dl { display: flex; justify-content: space-between; flex-wrap: wrap; margin: 0; gap: 0 6px; }
.message-userExtras dt { color: var(--text); }
.message-userExtras dt::after { content: ':'; }
.message-userExtras dd { margin: 0 0 0 auto; text-align: right; }
.message-cell--main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 6px 6px 6px 8px; }
.message-attribution { display: flex; justify-content: space-between; align-items: center; padding: 0 0 3px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.message-attribution a { color: var(--text-muted); }
.message-attribution-opposite { display: flex; gap: 12px; align-items: center; }
.message-body { padding: 6px 0; flex: 1; font-size: 16px; line-height: 1.25; word-wrap: break-word; overflow-wrap: anywhere; }
.message-edited { font-size: 13px; color: var(--text-muted); padding: 0 0 6px; }
.message-footer { padding: 4px 0 0; }
.message-actionBar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.message-actionBar .actionBar-set { margin-top: 6px; font-size: 15px; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.actionBar-action { color: var(--text-muted); padding: 3px 6px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.actionBar-action:hover { background: var(--highlight); color: var(--text); text-decoration: none; }
.actionBar-action.is-active { color: var(--link); font-weight: 700; }
.reactPicker { position: relative; display: inline-block; }
.reactPicker-list { display: none; position: absolute; bottom: 100%; left: 0; background: var(--content-bg); border: 1px solid var(--border); border-radius: 20px; padding: 3px 6px; box-shadow: 0 4px 14px rgba(0,0,0,.3); white-space: nowrap; z-index: 10; }
.reactPicker:hover .reactPicker-list, .reactPicker:focus-within .reactPicker-list { display: flex; }
.reactPicker-list button { font-size: 20px; background: none; border: 0; cursor: pointer; padding: 2px 4px; transition: transform .1s; }
.reactPicker-list button:hover { transform: scale(1.3); }
.reactionsBar { margin-top: 6px; padding: 4px 6px; background: var(--minor-bg); border-radius: var(--radius); font-size: 14px; color: var(--text-dim); }
.reactionsBar:empty { display: none; }
.reactionsBar-emoji { margin-right: 2px; }

.bbQuote { margin: 8px 0; border-left: 3px solid var(--link); background: var(--minor-bg); border-radius: 0 var(--radius) var(--radius) 0; }
.bbQuote-head { padding: 4px 8px; font-size: 14px; font-weight: 700; color: var(--link); border-bottom: 1px solid var(--border-light); }
.bbQuote-body { padding: 6px 8px; }
.bbSpoiler { margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.bbSpoiler summary { padding: 4px 8px; cursor: pointer; background: var(--minor-bg); font-size: 14px; font-weight: 700; }
.bbSpoiler-content { padding: 6px 8px; }
.bbImage { max-height: 420px; max-width: 100%; border-radius: var(--radius); cursor: zoom-in; }
a .bbImage { cursor: pointer; }
.message-body ul, .message-body ol { margin: 6px 0; padding-left: 28px; }

/* ===== Forms ===== */
.input, select.input, textarea.input { width: 100%; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--page-bg); color: var(--text); font-size: 16px; }
.input:focus { outline: 0; border-color: var(--link); background: var(--content-bg); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.4; }
.formRow { display: flex; margin: 0; }
.formRow > dt { width: 33%; flex-shrink: 0; text-align: right; padding: 15px 6px; background: var(--content-alt); color: var(--text); font-size: 16px; }
.formRow--input > dt { padding-top: 20px; }
.formRow > dd { flex: 1; margin: 0; min-width: 0; padding: 15px 6px; }
.formRow-hint { display: block; font-size: 14px; color: var(--text-muted); }
.formRow-explain { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.formSubmitRow { display: flex; gap: 6px; padding: 6px 6px 6px calc(33% + 6px); border-top: 1px solid var(--border-light); background: var(--minor-bg); }
.formSubmitRow--center { justify-content: center; padding-left: 6px; }
.inputGroup { display: flex; align-items: stretch; }
.inputGroup .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.inputGroup-text { display: flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 15px; color: var(--text-dim); background: var(--content-alt); border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; white-space: nowrap; user-select: none; }
.formAfter { text-align: center; padding: 6px 0; font-size: 15px; }
.formAfter .button { margin-left: 4px; }
.inputChoices { list-style: none; margin: 0; padding: 0; }
.inputChoices li { margin: 4px 0; }
.editorToolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--minor-bg); }
.editorToolbar button { min-width: 30px; height: 28px; border: 0; background: none; border-radius: var(--radius); cursor: pointer; color: var(--text-dim); font-size: 14px; }
.editorToolbar button:hover { background: var(--highlight); color: var(--text); }
.editorToolbar + textarea.input { border-radius: 0 0 var(--radius) var(--radius); }
/* compact editor (game form): emoji, bold, link, size, colour, more | clear, preview */
.editorToolbar--compact { gap: 0; align-items: center; padding: 4px 6px; background: var(--input-bg, var(--content-bg)); }
.editorToolbar--compact button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; font-size: 18px; }
.editorToolbar--compact .ico--caret { font-size: 11px; margin-left: -1px; }
.editorToolbar--compact .menu-content { left: 0; right: auto; min-width: 0; }
.editorToolbar--compact .menu-content button { min-width: 0; height: auto; font-size: 15px; color: var(--text); }
.editorToolbar--compact .editorToolbar-gap ~ .menu .menu-content { left: auto; right: 0; }
.editorToolbar--compact .menu-content button { white-space: nowrap; }
.editorToolbar-gap { flex: 1; }
.editorToolbar-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--border-light); }
.editorToolbar [aria-pressed="true"] { background: var(--highlight); color: var(--text); }
.menu.is-open .editorMenu--emoji { display: grid; grid-template-columns: repeat(5, 40px); padding: 4px; }
.editorMenu--emoji button { justify-content: center; padding: 4px; font-size: 22px !important; }
.menu.is-open .editorMenu--colors { display: grid; grid-template-columns: repeat(6, 26px); gap: 5px; padding: 8px; }
.editorMenu--colors button { width: 26px; height: 26px; padding: 0; border: 1px solid rgba(0,0,0,.25) !important; border-radius: 3px; }
.editorPreview { min-height: 222px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.formInfoRow { padding: 10px; font-size: 16px; line-height: 1.3; border-bottom: 1px solid var(--border-light); }
.inputGroup--dateTime { gap: 6px; }
.inputGroup--dateTime .input { border-radius: var(--radius); }
.inputGroup--dateTime input[type="date"] { flex: 1 1 auto; min-width: 0; }
.inputGroup--dateTime input[type="time"] { flex: 0 0 auto; width: auto; }

/* ===== Pagination, tabs, filters ===== */
.pageNav { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.pageNav a, .pageNav span { min-width: 30px; padding: 3px 7px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--content-bg); text-align: center; font-size: 15px; }
.pageNav .is-current { background: var(--button-bg); border-color: var(--button-border); color: var(--button-text); }
.pageNav .pageNav-gap { border: 0; background: none; }
.tabs { display: flex; border-bottom: 1px solid var(--border-light); padding: 0 6px; background: var(--minor-bg); flex-wrap: wrap; }
.tabs a { padding: 6px 10px; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs a.is-active { color: var(--link); border-bottom-color: var(--link); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.filterBar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 6px; background: var(--minor-bg); border-bottom: 1px solid var(--border-light); font-size: 15px; }
.filterBar-label { color: var(--text-muted); }
.filterBar-opposite { margin-left: auto; }
.filterChip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius); background: var(--block-head-bg); color: var(--text); }

/* ===== Home blocks: files, info service, big wins ===== */
.listPlain { list-style: none; margin: 0; padding: 0; }
.listPlain li { padding: 4px 6px; }
.fileList li { display: flex; align-items: center; gap: 4px; padding: 3px 6px; font-size: 16px; }
.fileList-icon { width: 24px; height: 24px; border-radius: 30%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--icon-bg); color: var(--icon-color); flex-shrink: 0; }
.fileList a { color: var(--text-dim); }
.infoBanner { display: block; padding: 0 6px 6px; }
.infoBanner img { display: block; max-width: 100%; }
.infoBanner-text { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: 20px 24px; background: linear-gradient(100deg, #b8ddf9 0%, #b3d6f6 55%, #9fc2f0 100%); color: #263c8f; position: relative; overflow: hidden; }
.infoBanner-text:hover { text-decoration: none; color: #263c8f; }
.infoBanner-text b { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: -.3px; line-height: 1.1; }
.infoBanner-text span { font-size: 27px; text-transform: uppercase; color: #3550a8; margin-top: 4px; }
.infoBanner-text::after { content: '📊 🎾 ⚽'; position: absolute; right: 30px; bottom: 14px; font-size: 54px; }
.wins { list-style: none; margin: 0; padding: 0 0 2px; }
.wins li { padding: 3px 6px; }
.win-head { display: flex; align-items: baseline; gap: 4px; }
.win-head .ico { color: var(--trophy); font-size: 14px; align-self: center; }
.win-title { color: var(--win-link); font-size: 17px; }
.win-title:hover { color: var(--win-link); }
.win-date { font-size: 11px; color: var(--text); }
.win-sum { font-size: 14px; color: var(--text); }
.win-sum small { font-size: 11px; }

/* ===== Sidebar: tournament widget ===== */
.pickem-title { display: block; padding: 4px 6px 6px; font-weight: 700; font-size: 16px; }
.pickem-empty { padding: 4px 6px 8px; color: var(--text-dim); font-size: 15px; }
.pickem-match { margin: 0 12px 6px; }
.pickem-meta { font-size: 14px; color: var(--text-dim); padding: 6px 0 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
.pickem-row { display: grid; grid-template-columns: 70px 50px 1fr; align-items: center; min-height: 32px; margin: 0; position: relative; }
.pickem-row input { position: absolute; opacity: 0; pointer-events: none; }
label.pickem-row { cursor: pointer; }
.pickem-team { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.pickem-team.is-flag { font-size: 20px; font-style: normal; }
.pickem-count { text-align: center; font-style: italic; color: var(--text-dim); }
.pickem-row.is-leader .pickem-count, .pickem-row.is-leader .pickem-team { font-weight: 700; font-style: normal; color: var(--text); }
.pickem-bar { height: 10px; border-radius: 10px; background: var(--bar-track); overflow: hidden; margin-right: 6px; }
.pickem-bar i { display: block; height: 100%; border-radius: 10px; background: var(--bar-lose); }
.pickem-row.is-leader .pickem-bar i { background: var(--bar-win); }
.pickem-row input:checked ~ .pickem-team, .pickem-row input:checked ~ .pickem-count { color: var(--link); font-weight: 700; }
.pickem-row input:checked ~ .pickem-bar { outline: 2px solid var(--link); outline-offset: 1px; }
.pickem-row.is-mine .pickem-count::after { content: ' ✓'; color: var(--unread); font-style: normal; }
.voteRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.voteRow label { display: block; margin: 0; }
.voteRow label > span, .voteRow .voteStatic { display: flex; flex-direction: column; align-items: center; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; background: var(--content-bg); text-align: center; }
.voteRow .voteStatic { cursor: default; }
.voteRow input { position: absolute; opacity: 0; pointer-events: none; }
.voteRow input:checked + span, .voteRow .voteStatic.is-picked { background: var(--button-bg); color: var(--button-text); border-color: var(--button-border); }
.voteRow b { font-size: 15px; }
.matchCard { padding: 6px; border-top: 1px solid var(--border-light); }
.matchCard-teams { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.matchCard-time { font-size: 13px; color: var(--text-muted); margin: 2px 0 6px; }
.statsList dl { display: flex; justify-content: space-between; margin: 0; padding: 3px 6px; }
.statsList dt { color: var(--text-dim); }
.statsList dd { margin: 0; }

/* ===== Data tables ===== */
.dataList { width: 100%; border-collapse: collapse; font-size: 15px; }
.dataList th { text-align: left; font-weight: 400; font-size: 14px; color: var(--minor-text); padding: 5px 6px; background: var(--minor-bg); border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.dataList td { padding: 5px 6px; border-top: 1px solid var(--border-light); vertical-align: middle; }
.dataList tr:hover td { background: var(--highlight); }
.dataList .cell-num { text-align: right; white-space: nowrap; }
.tableWrap { overflow-x: auto; }

/* ===== Files, tournaments, members ===== */
.fileItem { display: flex; gap: 8px; padding: 6px; border-top: 1px solid var(--border-light); }
.fileItem:first-child { border-top: 0; }
.fileItem-icon { width: 48px; height: 48px; border-radius: 30%; background: var(--icon-bg); color: var(--icon-color); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.fileItem-main { flex: 1; min-width: 0; }
.fileItem-title { font-size: 17px; }
.fileItem-meta { width: 160px; flex-shrink: 0; font-size: 14px; }
.fileItem-meta dl { display: flex; justify-content: space-between; margin: 0 0 2px; }
.fileItem-meta dt { color: var(--text-muted); }
.fileItem-meta dd { margin: 0; }
.stars { color: #f2930d; letter-spacing: 1px; }
.badge { display: inline-block; padding: 1px 6px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--button-orange); color: #fff; vertical-align: 2px; }
.badge--muted { background: var(--button-bg); color: var(--button-text); }
.badge--open { background: #33844a; }
.badge--active { background: #ea741f; }
.badge--finished { background: #6b7090; }

.fameCard { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.fameCard:first-child { border-top: 0; }
.fameCard-title { flex: 1; min-width: 220px; }
.fameCard-title b { font-size: 17px; }
.fameCard-medals { display: flex; gap: 18px; flex-wrap: wrap; }
.medal { display: flex; align-items: center; gap: 6px; }
.medal-icon { font-size: 22px; }

.memberHeader { display: flex; gap: 14px; padding: 10px; align-items: flex-start; flex-wrap: wrap; }
.memberHeader-main { flex: 1; min-width: 220px; }
.memberHeader-name { font-size: 24px; }
.memberHeader-stats { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.memberHeader-stats dt { font-size: 13px; color: var(--text-muted); }
.memberHeader-stats dd { margin: 0; font-size: 18px; }

/* ===== Footer ===== */
.p-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 15px; }
.p-footer a { color: var(--footer-text); }
.p-footer a:hover { color: var(--header-text-strong); }
.p-footer-inner { padding: 4px 4px 6px; }
.p-footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.p-footer-row-main { display: flex; align-items: flex-start; gap: 30px; }
.p-footer-counter:empty { display: none; }
.p-footer-linkList { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 2px 16px; margin: 0 0 0 auto; padding: 0; max-width: 420px; }
.p-footer-style .ico { margin-right: 3px; }
.p-breadcrumbs--bottom { margin: 8px 0 0; }
.p-footer-copyright { padding: 6px 0 0; text-align: center; font-size: 13px; opacity: .8; }

/* ===== Off-canvas (mobile nav) ===== */
.offCanvas { position: fixed; inset: 0; z-index: 200; display: none; }
.offCanvas.is-open { display: block; }
.offCanvas-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.offCanvas-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw; background: var(--content-bg); overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.4); }
.offCanvas-header { background: var(--header-bg); color: var(--header-text-strong); padding: 10px 12px; font-weight: 700; font-size: 20px; display: flex; justify-content: space-between; align-items: center; }
.offCanvas-header button { background: none; border: 0; color: inherit; font-size: 24px; cursor: pointer; }
.offCanvas-panel a { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.offCanvas-panel a.is-sub { padding-left: 32px; font-size: 15px; }

/* ===== Responsive (breakpoints as in XenForo: 1150 / 900 / 650) ===== */
@media (max-width: 1150px) {
  .p-body-sidebar { width: 300px; }
  .node-extra { width: 230px; }
  .node-stats { width: 150px; }
}
@media (max-width: 900px) {
  .p-body-main { flex-direction: column; align-items: stretch; }
  .p-body-content { padding-right: 0; }
  .p-body-sidebar { width: 100%; margin-top: 4px; }
  .node-extra { display: none; }
  .structItem-cell--latest, .structItem-cell--iconEnd { display: none; }
  .infoBanner-text::after { display: none; }
}
@media (max-width: 650px) {
  .p-header { display: none; }
  .p-nav-inner { align-items: center; min-height: 40px; }
  .p-nav-smallLogo { display: flex; }
  .p-nav-list { display: none; }
  .p-nav-burger { display: inline-flex; font-size: 20px; }
  .p-nav-opposite { display: flex; }
  .p-navgroup-link .p-navgroup-linkText { display: none; }
  .p-navgroup-link--hideNarrow { display: none; }
  .node-stats { display: none; }
  .node-icon { width: 50px; padding: 6px 4px; }
  .node-subNodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structItem-cell--meta { display: none; }
  .structItem-cell--icon { width: 48px; }
  .p-title-pageAction .button span { display: none; }
  .message { flex-direction: column; }
  .message-cell--user { width: auto; display: flex; align-items: center; gap: 8px; text-align: left; border-right: 0; border-bottom: 1px solid var(--border); padding: 6px; }
  .message-cell--user::after { display: none; }
  .message-cell--user .avatar--m { width: 36px; height: 36px; font-size: 18px; }
  .message-cell--user .userBanner { display: inline-block; padding: 1px 6px; }
  .message-name { margin: 0; }
  .message-userExtras, .message-trophies { display: none; }
  .formRow { flex-direction: column; gap: 4px; }
  .formRow > dt { width: auto; text-align: left; padding: 0; }
  .fileItem-meta { display: none; }
  .p-footer-row { flex-direction: column; }
  .p-footer-linkList { justify-content: flex-start; }
  .infoBanner-text b { font-size: 22px; }
  .infoBanner-text span { font-size: 17px; }
  .p-notice-image { display: none; }
}

/* ===== Боковая колонка слева (файлы, помощь), как в оригинале ===== */
.p-body-main--sideLeft .p-body-sidebar { order: -1; padding-right: 4px; }
.p-body-main--sideLeft .p-body-content { padding-right: 0; }
.p-body-sidebar--left { order: -1; width: 410px; padding-right: 4px; }
.p-body-main:has(.p-body-sidebar--left) .p-body-content { padding-right: 0; }
.block-minorHeader--strong { font-size: 18px; background: var(--block-head-bg); color: var(--block-head-text); }
.sideNav li { padding: 0; }
.sideNav a { display: block; padding: 4px 6px; color: var(--text-muted); font-size: 15px; }
.sideNav a.is-selected { color: var(--text); background: var(--highlight); }
.sideCats li { display: flex; justify-content: space-between; align-items: center; padding: 3px 6px 3px 22px; }
.sideCats a { color: var(--text-dim); }
.sideCats .count { font-size: 12px; padding: 0 5px; border-radius: 2px; background: var(--content-alt); color: var(--text-muted); }
.sideCats li.is-selected a { font-weight: 700; color: var(--text); }
.block-minorHeader .chev { font-size: 15px; opacity: .8; }
.helpRow { padding: 6px; }
.helpRow-title { font-size: 16px; }
.helpRow-title a { color: var(--text); }
.helpRow-desc { font-size: 14px; color: var(--text-dim); margin-top: 2px; }

/* ===== Файлы: строка как structItem--resource ===== */
.fileItem { align-items: flex-start; padding: 6px 5px; }
.fileItem-icon { width: 48px; height: 48px; position: relative; overflow: visible; }
.fileItem-icon .avatar { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; font-size: 10px; }
.fileItem-title { font-size: 17px; }
.fileItem-title a { color: var(--link); }
.fileItem-tagline { font-size: 14px; margin-top: 2px; color: var(--text); }
.fileItem-meta { width: 230px; font-size: 15px; }
.fileItem-rating { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.fileItem-rating .stars { color: var(--text-muted); opacity: .45; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.fileItem-meta dl { margin: 0; }
.fileItem-meta dt::after { content: ':'; }
.fileItem-meta dd { color: var(--text-muted); }

/* ===== Зал славы / турниры ===== */
.fameRow { display: flex; align-items: flex-start; gap: 0; border-top: 1px solid var(--border-light); padding: 6px 5px; }
.fameRow:first-child { border-top: 0; }
.fameRow-icon { width: 46px; flex-shrink: 0; font-size: 26px; line-height: 1; padding-top: 2px; }
.fameRow-main { flex: 1; min-width: 0; }
.fameRow-title { font-size: 17px; }
.fameRow-title a { color: var(--link); }
.fameRow-meta { width: 210px; flex-shrink: 0; font-size: 15px; }
.fameRow-meta dl { display: flex; justify-content: space-between; margin: 0; }
.fameRow-meta dt::after { content: ':'; }
.fameRow-meta dd { margin: 0; }
.tabs--page { background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 4px; padding: 0 2px; }
.tabs--page a { color: var(--text); font-size: 16px; padding: 4px 6px; }
.tabs--page a.is-active { color: var(--text); font-weight: 400; }
.block-header--minor { font-size: 17px; padding: 6px; background: var(--content-bg); }
@media (max-width: 650px) {
  .formRow { flex-direction: column; }
  .formRow > dt { width: auto; text-align: left; background: none; padding: 7.5px 6px 0; }
  .formRow > dd { padding: 7.5px 6px 15px; }
  .formSubmitRow { padding-left: 6px; }
  .p-body-main--sideLeft .p-body-sidebar, .p-body-sidebar--left { order: 1; width: 100%; padding-right: 0; }
  .fameRow-meta { width: 150px; }
  .message-cell--user { width: auto; }
}

/* chat (shoutbox) */
.chatBox-list { list-style: none; margin: 0; padding: 4px 0; height: 260px; overflow-y: auto; background: var(--content-bg); }
.chatBox--full .chatBox-list { height: min(65vh, 600px); }
.chatMsg { display: flex; gap: 8px; padding: 4px 10px; align-items: flex-start; }
.chatMsg:hover { background: var(--highlight); }
.chatMsg .avatar--xs { width: 24px; height: 24px; font-size: 12px; margin-top: 1px; }
.chatMsg-main { min-width: 0; flex: 1; overflow-wrap: anywhere; line-height: 1.4; }
.chatMsg-head .username { font-weight: 600; }
.chatMsg-head time { color: var(--text-muted); font-size: 11px; }
.chatMsg-body img { max-width: 100%; max-height: 160px; }
.chatMsg-del { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1; }
.chatMsg-del:hover { color: #d9534f; }
.chatBox-form { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px; border-top: 1px solid var(--border-light); }
.chatBox-input.input {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .chatBox-form, .chatMsg-editForm { flex-wrap: wrap; }
  .chatBox-form .chatBox-input, .chatMsg-editForm .chatBox-input { flex-basis: 100%; order: -1; }
  .chatBox-form > .button--primary { margin-inline-start: auto; }
}
.chatBox-emoji .menu-content { bottom: 100%; top: auto; left: 0; right: auto; }
.chatBox-error { padding: 0 10px 8px; color: #d9534f; }

/* ---------- ТЗ 26.10: smilies, full editor, game templates, widgets, overlays, active games ---------- */
.smilie { vertical-align: middle; max-width: 100%; height: auto; }
.smilie--emoji { width: 22px; height: 22px; }
.message-body .smilie--flag, .pickem-team .smilie--flag { width: 20px; height: 20px; }
.pickem-team.is-flag .smilie { width: 22px; height: 22px; }
/* full editor toolbar (thread reply, edit) */
.xEditor--full .editorToolbar--compact { padding: 6px 8px; }
.editorToolbar .ico { width: 18px; height: 18px; }
.editorToolbar-preview { gap: 6px; width: auto !important; padding: 0 12px !important; margin: -6px -8px -6px 6px; border-left: 1px solid var(--border-light) !important; border-radius: 0 !important; font-size: 15px !important; font-weight: 600; color: var(--text) !important; }
.editorMenu .ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); }
.editorToolbar .menu-content button { gap: 8px; }
textarea.is-bbMode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--minor-bg); }
.message--quickReply .message-cell--main { padding: 12px; }
.formButtonGroup { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.avatar--guest { display: inline-flex; align-items: center; justify-content: center; background: var(--minor-bg) !important; color: var(--text-muted); font-size: 34px !important; font-weight: 700; letter-spacing: -1px; }
/* smilie panel */
.smilieMenu { position: relative; display: inline-flex; }
.smiliePanel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 80; width: 410px; max-width: calc(100vw - 24px); background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 14px rgba(0,0,0,.3); }
.chatBox-emoji .smiliePanel { top: auto; bottom: calc(100% + 4px); }
.smiliePanel-search { display: flex; gap: 6px; align-items: center; padding: 6px; border-bottom: 1px solid var(--border-light); }
.smiliePanel-search .input { flex: 1; min-width: 0; height: 30px; font-size: 15px; }
.smiliePanel-close { border: 0; background: none; color: var(--link); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.smiliePanel-body { max-height: 260px; overflow-y: auto; padding: 0 0 6px; }
.smiliePanel-head { margin: 0; padding: 6px 8px 4px; font-size: 15px; font-weight: 400; color: var(--block-head-text); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; background: var(--content-bg); }
.smiliePanel-grid { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; }
.smiliePanel-grid button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 2px; border: 0; background: none; border-radius: 4px; cursor: pointer; }
.smiliePanel-grid button:hover { background: var(--highlight); }
.smiliePanel-grid .smilie { max-height: 32px; width: auto; }
.smiliePanel-grid .smilie--emoji { width: 24px; height: 24px; }
/* new BBCode blocks */
.bbHeading { margin: 10px 0 6px; font-weight: 700; line-height: 1.25; }
h2.bbHeading { font-size: 22px; } h3.bbHeading { font-size: 19px; } h4.bbHeading { font-size: 17px; }
.bbHr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.bbCodeBlock { margin: 8px 0; border: 1px solid var(--border-light); border-left: 3px solid var(--link); border-radius: var(--radius); background: var(--minor-bg); }
.bbCodeBlock-title { padding: 4px 8px; font-size: 14px; font-weight: 700; color: var(--text-dim); border-bottom: 1px solid var(--border-light); }
.bbCodeCode { margin: 0; padding: 8px; overflow-x: auto; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.bbCodeInline { padding: 1px 4px; border-radius: 3px; background: var(--minor-bg); border: 1px solid var(--border-light); font: .9em ui-monospace, Menlo, Consolas, monospace; }
.bbTable { overflow-x: auto; margin: 8px 0; }
.bbTable table { border-collapse: collapse; }
.bbTable td, .bbTable th { border: 1px solid var(--border); padding: 4px 8px; }
.bbTable th { background: var(--minor-bg); }
.bbMediaWrapper { position: relative; max-width: 640px; aspect-ratio: 16 / 9; margin: 8px 0; }
.bbMediaWrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.bbInlineSpoiler { background: var(--text); color: transparent; border-radius: 3px; cursor: pointer; padding: 0 2px; }
.bbInlineSpoiler.is-shown, .bbInlineSpoiler:focus { background: var(--minor-bg); color: inherit; }
.bbInlineSpoiler.is-shown .smilie, .bbInlineSpoiler .smilie { opacity: 0; }
.bbInlineSpoiler.is-shown .smilie { opacity: 1; }
.bbHide { margin: 8px 0; padding: 6px 8px; border: 1px dashed var(--border); border-radius: var(--radius); }
.bbHide-title { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.bbHide--locked { color: var(--text-muted); font-size: 14px; background: var(--minor-bg); }
.bbQuote-jump { margin-left: 4px; text-decoration: none !important; }
.bbQuote-head { color: var(--success, #3c9d3c); font-weight: 400; }
.message-body ol { margin: 6px 0; padding-left: 28px; }
/* game: «Доступные тотализаторы» */
.pairsRows { margin: 0; }
.pairsRows-row { display: flex; border-bottom: 1px solid var(--border-light); }
.pairsRows-row:last-child { border-bottom: 0; }
.pairsRows-row > dt { width: 33%; flex-shrink: 0; margin: 0; padding: 14px 8px; text-align: right; background: var(--content-alt); color: var(--text); font-size: 16px; }
.pairsRows-row > dd { flex: 1; margin: 0; padding: 14px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 16px; }
.totoChoose .block-empty { padding: 14px; }
.p-title-pageAction { display: flex; gap: 6px; flex-wrap: wrap; }
.button--icon { padding-left: 10px; padding-right: 10px; }
/* game topic widgets and their edit fields */
.gameWidgets { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.gameWidget { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gameWidget-head { display: flex; justify-content: space-between; padding: 5px 8px; font-size: 14px; background: var(--minor-bg); color: var(--text-dim); border-bottom: 1px solid var(--border-light); }
.gameWidget iframe { display: block; width: 100%; height: 600px; border: 0; background: #fff; }
.gameWidgets > .button { align-self: flex-start; }
.gameWidgetFields { border-top: 1px solid var(--border-light); }
.formRow--stacked { display: block; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.formRow--stacked > dt { width: auto; text-align: left; padding: 0 0 6px; background: none; }
.formRow--stacked > dd { padding: 0; }
.inputGroup--number { max-width: 240px; }
.inputGroup--number .input { text-align: right; }
.inputGroup-button { width: 44px; border: 1px solid var(--border); border-left: 0; background: var(--content-alt); color: var(--link); font-size: 20px; cursor: pointer; }
.inputGroup-button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.inputGroup-button:hover { background: var(--highlight); }
.inputGroup--number input::-webkit-inner-spin-button { display: none; }
/* «Активные игры:» */
.activeGames li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; min-width: 0; }
.activeGames .avatar--xs { width: 26px; height: 26px; font-size: 14px; flex-shrink: 0; }
.activeGames .label { margin: 0; flex-shrink: 0; }
.activeGames a:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
/* overlays */
.overlayModal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 60px 10px 20px; background: rgba(0,0,0,.45); overflow-y: auto; }
.overlayModal-dialog { width: 800px; max-width: 100%; background: var(--content-bg); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.overlayModal-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 20px; color: var(--block-head-text); background: var(--block-head-bg); border-bottom: 1px solid var(--border-light); border-radius: var(--radius) var(--radius) 0 0; }
.overlayModal-close { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--link); cursor: pointer; padding: 0 4px; }
.overlayModal-body .p-title { display: none; }
.overlayModal-body .block { margin: 0; }
.overlayModal-body .block-container { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
html.has-overlay { overflow: hidden; }
/* nav: dropdown in the section links bar */
.p-sectionLinks-drop { position: relative; display: flex; }
.p-sectionLinks-drop:hover .p-navEl-drop, .p-sectionLinks-drop:focus-within .p-navEl-drop { display: block; }
.p-sectionLinks-drop .p-navEl-drop a { padding: 6px 10px; }
/* help pages */
.bbCodeHelp-title { margin: 0 0 2px; font-size: 18px; color: var(--block-head-text); }
.bbCodeHelp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.bbCodeHelp-src { margin: 2px 0 0; padding: 6px 8px; background: var(--minor-bg); border: 1px solid var(--border-light); border-radius: var(--radius); white-space: pre-wrap; font: 13px ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 650px) { .bbCodeHelp-cols { grid-template-columns: 1fr; } .pairsRows-row { display: block; } .pairsRows-row > dt { width: auto; text-align: left; padding: 8px; } .pairsRows-row > dd { padding: 8px; } .smiliePanel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; } }
/* toast */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 300; padding: 10px 14px; border-radius: var(--radius); background: var(--success-bg, #d4edda); color: var(--text); border-left: 4px solid var(--success, #28a745); box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.toast.is-shown { opacity: 1; transform: none; }
@media (max-width: 650px) {
  .message--quickReply .message-cell--user { display: none; }
  .editorToolbar-preview { margin: 0; border-left: 0 !important; }
  .gameWidget iframe { height: 520px; }
}

/* attachments */
.attachBox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.attachBox-add { color: var(--link); background: var(--content-bg); border: 1px solid var(--border); }
.attachBox-add:hover { background: var(--highlight); }
.attachBox-list { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.attachBox-item { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.attachBox-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border-light); }
.attachBox-item.is-uploading { color: var(--text-muted); }
.attachBox-del { border: 0; background: none; color: var(--danger); font-size: 18px; cursor: pointer; line-height: 1; }
.attachBox-error { color: var(--danger); }
.quickReply-attach { margin-top: 8px; }
.message-attachments { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--border-light); }
.message-attachments-title { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); font-weight: 400; }
.attachList { display: flex; flex-wrap: wrap; gap: 8px; }
.attachList-thumb img { display: block; max-width: 200px; max-height: 150px; border: 1px solid var(--border); border-radius: var(--radius); }
.attachList-file { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--content-alt); }
.attachList-file small { color: var(--text-muted); }


/* личные переписки */
.p-navgroup-link--conv, .p-navgroup-link--alerts { position: relative; }
.badge--nav { position: absolute; top: 2px; right: -2px; padding: 0 5px; font-size: 11px; line-height: 16px; min-width: 16px; text-align: center; background: #e03e2d; vertical-align: 0; }
.badge[hidden] { display: none; }
.convTools { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin: 0 0 8px; }
.convTools-invite[open] summary { margin-bottom: 0; }
.convItem.is-unread .structItem-title a { font-weight: 700; }
.message--unread .message-cell--main { box-shadow: inset 3px 0 0 var(--accent, #3d6ea8); }
.convReport { display: inline-block; }
.convReport summary { list-style: none; cursor: pointer; }
.convReport summary::-webkit-details-marker { display: none; }
.convReport-form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.convReport-form .input { width: 260px; max-width: 100%; }
.convAlert { position: fixed; right: 16px; bottom: 16px; z-index: 310; display: flex; align-items: flex-start; gap: 8px; max-width: 340px; padding: 10px 12px; border-radius: var(--radius); background: var(--content-bg); color: var(--text); border-left: 4px solid var(--accent, #3d6ea8); box-shadow: 0 3px 12px rgba(0,0,0,.3); opacity: 0; transform: translateY(8px); transition: .2s; }
.convAlert.is-shown { opacity: 1; transform: none; }
.convAlert a { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; font-size: 14px; }
.convAlert a b { color: var(--accent, #3d6ea8); }
.convAlert-close { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 2px; }
.memberHeader-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.memberCard { position: absolute; z-index: 290; width: 330px; max-width: calc(100vw - 16px); padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--content-bg); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.memberCard-inner { display: flex; gap: 10px; }
.memberCard-main { flex: 1; min-width: 0; }
.memberCard-name { font-size: 17px; font-weight: 700; }
.memberCard-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 2px; }
.memberCard-buttons { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light, var(--border)); }
.memberSuggest { position: absolute; z-index: 50; left: 6px; right: 6px; margin-top: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--content-bg); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.memberSuggest button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: none; color: var(--text); cursor: pointer; font-size: 14px; }
.memberSuggest button:hover { background: var(--highlight); }
.xEditor textarea.is-dropTarget { outline: 2px dashed var(--accent, #3d6ea8); outline-offset: -2px; }
/* chat reactions */
.chatReactAdd { position: relative; display: inline-block; }
.chatMsg-reactBtn { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1; opacity: 0; }
.chatMsg:hover .chatMsg-reactBtn, .chatReactAdd:focus-within .chatMsg-reactBtn { opacity: 1; }
@media (hover: none) { .chatMsg-reactBtn { opacity: .7; } }
.chatReactAdd-list { display: none; position: absolute; top: -5px; left: 100%; background: var(--content-bg); border: 1px solid var(--border); border-radius: 20px; padding: 2px 5px; box-shadow: 0 4px 14px rgba(0,0,0,.3); white-space: nowrap; z-index: 10; }
.chatReactAdd:hover .chatReactAdd-list, .chatReactAdd:focus-within .chatReactAdd-list { display: flex; }
.chatReactAdd-list button { font-size: 18px; background: none; border: 0; cursor: pointer; padding: 2px 3px; transition: transform .1s; }
.chatReactAdd-list button:hover { transform: scale(1.3); }
.chatMsg-reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.chatMsg-reacts:empty { display: none; }
.chatMsg-reacts { margin-top: 2px; }
.chatReact { border: 1px solid var(--border); background: var(--minor-bg); border-radius: 12px; padding: 0 6px; font-size: 12px; line-height: 20px; cursor: pointer; color: var(--text); }
.chatReact[disabled] { cursor: default; }
.chatReact.is-mine { border-color: var(--accent); background: var(--accent-soft); }
.chatReact b { font-weight: 600; }
/* @ nickname suggestions */
.mentionSuggest { position: absolute; z-index: 60; min-width: 160px; max-width: 280px; background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: 3px 0; }
.mentionSuggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 10px; color: var(--text); cursor: pointer; font-size: 14px; }
.mentionSuggest button.is-active, .mentionSuggest button:hover { background: var(--accent-soft); color: var(--accent); }
/* 🔔 alerts */
.alertList-item { display: flex; gap: 10px; align-items: flex-start; }
.alertList-item.is-unread { background: var(--highlight); }
.alertList-item.is-unread .alertList-text { font-weight: 600; }
/* «Следить за темой», шапка темы */
.threadTools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.threadTools-watch { margin-left: auto; }
.message--threadHeader { border-bottom: 2px solid var(--accent, #3d6ea8); }
.message-headerLabel { margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
/* правка своих сообщений в чате */
.chatMsg-edit { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 13px; padding: 0 3px; line-height: 1; }
.chatMsg-edit:hover { color: var(--accent); }
.chatMsg-edited { color: var(--text-muted); font-size: 11px; }
.chatMsg-editForm { display: flex; align-items: flex-end; gap: 4px; margin-top: 2px; }
.chatMsg-editForm .chatBox-input { padding: 2px 6px; }

/* ТЗ 06.11: unread topics, «Отметить прочитанным», topic lines in the chat, payout tables */
.structItem.is-unread .structItem-title a { font-weight: 700; }
.structItem.is-unread { box-shadow: inset 3px 0 0 var(--unread); }
.activeGames li.is-unread a:not(.avatar) { font-weight: 700; }
.activeGames li.is-unread { box-shadow: inset 3px 0 0 var(--unread); }
.inlineAction { display: inline-flex; margin: 0; }
.tabs--page { display: flex; align-items: center; flex-wrap: wrap; }
.tabs-action { margin: 0 0 0 auto; padding: 2px 0; }
.block-filterBar .filterLink { color: inherit; opacity: .85; font-size: 14px; }
.filterBar-markRead { margin: 0 0 0 auto; }
.block-filterBar .filterBar-markRead .button--link { color: inherit; opacity: .85; font-size: 13px; }
.chatMsg--event .chatMsg-body { color: var(--text-dim); }
.chatMsg-event a { font-weight: 600; }
.chatMsg-event .label { margin: 0 4px 0 2px; }
.bbTable td.is-num, .bbTable th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bbTable th { text-align: left; }
.bbTable a.username { font-weight: 600; }
.draftNotice { padding: 4px 8px; margin-bottom: 4px; border-left: 3px solid var(--unread); background: var(--highlight); }
.u-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filterBar-markRead + .filterMenu { margin-left: 4px; }

/* рекламные блоки */
.adBox { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--content-bg); overflow: hidden; }
.adBox-head { display: flex; justify-content: space-between; padding: 3px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.adBox-age { font-weight: 700; }
.adBox-body { display: block; color: inherit; text-decoration: none; }
.adBox-body:hover { text-decoration: none; }
.adBox-image { display: block; width: 100%; height: auto; margin: 0 auto; }
.adBox--header .adBox-image, .adBox--thread .adBox-image { max-width: 970px; }
.adBox-text { display: block; padding: 8px 10px; }
.adBox-title { display: block; font-size: 15px; }
.adBox-desc { display: block; margin-top: 3px; opacity: .85; }
.adBox-button { margin-top: 8px; }
.adBox-legal { padding: 2px 8px 5px; font-size: 11px; opacity: .55; word-break: break-word; }
.adBox--header, .adBox--thread { text-align: center; }
.adBox--header .adBox-text, .adBox--thread .adBox-text { text-align: center; }
.adBox--thread { margin: 10px 0; }
@media (max-width: 650px) { .u-hideMobile { display: none !important; } }
@media (min-width: 651px) { .u-onlyMobile { display: none !important; } }

/* SEO: архив тиражей, «Читайте также», тексты разделов, итог тиража, 404 */
.drawTotes { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.drawTote { display: flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--content-bg); min-width: 150px; text-decoration: none; }
.drawTote span { font-size: 13px; color: var(--text-muted); }
.drawTote.is-active { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.drawTote.is-empty { opacity: .6; }
.drawTable td:nth-child(4) { min-width: 160px; }
.drawResult { border-left: 3px solid #0b8000; }
.drawResult b { white-space: nowrap; }
.drawResultForm summary { cursor: pointer; }
.drawResultForm form { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.drawResultForm .input { flex: 1; min-width: 220px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 12px; padding: 6px 8px 8px; }
.related h3 { font-size: 15px; margin: 6px 0 4px; font-weight: 600; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 3px 0; border-top: 1px solid var(--border-light); display: flex; gap: 6px; justify-content: space-between; align-items: baseline; }
.related li span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.related-nav { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.related-nav a:last-child { margin-left: auto; text-align: right; }
.seoText { padding: 8px 10px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.seoText b { color: var(--text); }
.notFound-search { display: flex; gap: 6px; margin: 6px 0 10px; }
.notFound-search .input { flex: 1; }
.notFound-links { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; }

/* ===== Инструменты ===== */
.u-error { color: #c0392b; }
.u-ok { color: #2e8b57; }
.input--num { width: 90px; }
.input--inline { width: auto; display: inline-block; padding: 2px 4px; }
.toolMono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
.toolCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 8px 0; }
.toolCard { background: var(--content-bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s; }
.toolCard:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.toolCard.is-open { border-color: var(--button-green); }
.toolCard-head { display: flex; align-items: center; gap: 10px; }
.toolCard-icon { font-size: 28px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; flex-shrink: 0; }
.toolCard-name { font-size: 18px; font-weight: 600; color: var(--text); }
.toolCard-text { color: var(--text-muted); font-size: 14px; line-height: 1.45; flex: 1; }
.toolCard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolBadge { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.toolBadge--ok { background: var(--success-bg); border-color: #8fd19e; color: #2e7d32; }
.toolBadge--gift { background: linear-gradient(90deg, #fff4e0, #ffe7f0); border-color: #f3b37a; color: #a5521a; }
.toolBadge--lock { background: var(--minor-bg); }
.p-title .toolBadge { margin-left: auto; }
.toolTitle-icon { margin-right: 2px; }
.toolOthers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.toolChip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--content-bg); font-size: 14px; }
.toolChip.is-open { border-color: var(--button-green); }
.toolLocked { text-align: center; padding: 28px 16px; margin: 8px 0; }
.toolLocked-icon { font-size: 40px; }
.toolLocked-title { font-size: 20px; font-weight: 600; margin: 6px 0; }
.toolLocked-text { color: var(--text-muted); max-width: 620px; margin: 0 auto 12px; line-height: 1.5; }
.toolLocked-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.toolLoading { padding: 20px; text-align: center; color: var(--text-muted); }
.toolLayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; margin: 8px 0; align-items: start; }
.toolLayout > .block-container { padding: 10px 12px; }
.toolLayout-side { position: sticky; top: calc(var(--site-header-height, 86px) + 12px); }
@media (max-width: 900px) { .toolLayout { grid-template-columns: 1fr; } .toolLayout-side { position: static; } }
.toolSide-title { font-size: 16px; margin: 0 0 8px; }
.toolField { margin-bottom: 12px; }
.toolField > label, .toolField--row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.toolField--row { display: flex; gap: 10px; flex-wrap: wrap; }
.toolField--row label { flex: 1; min-width: 120px; }
.toolField--row .input, .toolField > label .input { display: block; width: 100%; margin-top: 3px; font-weight: 400; }
.toolField summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.toolField summary .toolCheck { display: inline-flex !important; }
.toolCheck { display: flex !important; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.toolRowInput { display: flex; gap: 6px; }
.toolRowInput .input { flex: 1; }
.toolF1x2-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 4px 6px; align-items: center; margin: 4px 0; }
.toolF1x2-grid .input { width: 100%; }
.toolRun { width: 100%; padding: 9px; font-size: 16px; }
.toolGrid-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.toolGrid-top .input { display: inline-block; width: 70px; }
.toolGrid-quick { display: flex; gap: 4px; }
table.toolGrid { width: 100%; border-collapse: separate; border-spacing: 0 3px; }
table.toolGrid th { font-size: 13px; color: var(--text-muted); font-weight: 400; text-align: left; padding: 0 4px; }
table.toolGrid th:nth-child(n+3) { text-align: center; width: 54px; }
.toolGrid-num { width: 28px; color: var(--text-muted); text-align: right; padding-right: 6px; }
.toolGrid-name { width: 100%; padding: 3px 6px; }
.toolGrid-cell { text-align: center; font-weight: 600; cursor: pointer; user-select: none; border: 1px solid var(--border); background: var(--content-bg); color: var(--text-muted); transition: background .1s; }
.toolGrid-cell:hover { background: var(--highlight); }
.toolGrid-cell.is-on { background: #2e8b3e; border-color: #24702f; color: #fff; }
.toolGrid-sum { margin-top: 8px; padding: 6px 8px; background: var(--minor-bg); border-radius: var(--radius); font-size: 14px; }
.toolOut:empty { display: none; }
.toolOut { margin: 8px 0; }
.toolStats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 8px; }
.toolStat { background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.toolStat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); }
.toolStat-value { font-size: 22px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; word-break: break-all; }
.toolStat-sub { font-size: 12px; color: var(--text-muted); }
.toolStat.is-accent { border-color: var(--link); box-shadow: inset 0 3px 0 var(--link); }
.toolStat.is-ok { box-shadow: inset 0 3px 0 #2e8b57; } .toolStat.is-warn { box-shadow: inset 0 3px 0 #e69a28; } .toolStat.is-bad { box-shadow: inset 0 3px 0 #c0392b; }
.toolNote { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); padding: 6px 8px; background: var(--minor-bg); border-radius: var(--radius); margin: 6px 0; }
.toolPack { background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.toolPack-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.toolPack-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.toolPack-text { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; }
.toolTable tr.is-dim td { opacity: .5; }
.toolTable tr.is-win td { background: var(--success-bg); }
.toolSpin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: toolspin .7s linear infinite; }
@keyframes toolspin { to { transform: rotate(360deg); } }
.toolGroup { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 6px; margin-bottom: 6px; }
.toolGroup-ev { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.toolEv { width: 26px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; cursor: pointer; user-select: none; }
.toolEv.is-on { background: var(--link); color: #fff; border-color: var(--link); }
.toolGroup-lim { font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.toolGroup-lim .input { width: 56px; }
.toolPts { width: 100%; font-size: 13px; }
.toolPts .input { width: 100%; padding: 2px 4px; }
.toolStrek, .toolCheckBox, .toolDoli { padding: 10px 12px; margin: 8px 0; }
.toolStrekIn { width: 100%; border-collapse: collapse; font-size: 14px; }
.toolStrekIn th { font-weight: 400; color: var(--text-muted); font-size: 13px; text-align: left; padding: 2px 4px; }
.toolStrekIn td { padding: 2px; }
.toolStrekIn .input--num { width: 64px; }
.toolStrekIn td:nth-child(5) { padding-right: 12px; }
.toolStrek-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.toolStrek-bar .input { display: inline-block; width: 70px; }
.toolStrekOut tr.toolStrek-first td { border-top: 2px solid var(--border); }
.toolBar { display: inline-block; width: 70px; height: 8px; background: var(--minor-bg); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 4px; }
.toolBar span { display: block; height: 100%; }
.toolBar.is-over span { background: #e2574c; }
.toolBar.is-under span { background: #3fa45b; }
td .toolBar { width: 100%; max-width: 160px; }
.toolVerdict { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 20px; background: var(--minor-bg); }
.toolVerdict.is-hot { background: #e2574c; color: #fff; } .toolVerdict.is-warm { background: #f6c38b; color: #6b3b06; } .toolVerdict.is-cool { background: #cfe9d6; color: #1f5f2f; }
.toolTabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.toolTabs button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 15px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.toolTabs button.is-active { color: var(--text); border-bottom-color: var(--link); font-weight: 600; }
.toolBank { height: 14px; border-radius: 7px; background: var(--minor-bg); overflow: hidden; display: flex; margin: 10px 8px; }
.toolBank-cap { background: var(--link); } .toolBank-rest { background: #8fbfe0; }

/* ===== Подарок за регистрацию ===== */
.giftBanner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; margin: 8px 0; border-radius: calc(var(--radius) * 2.5);
  background: radial-gradient(120% 140% at 0% 0%, #ffe8c7 0%, #ffd9e6 45%, #dfe6ff 100%); color: #2b2440; border: 1px solid rgba(160, 110, 60, .25); overflow: hidden; box-shadow: 0 8px 22px rgba(120, 70, 30, .10); }
.giftBanner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.35); pointer-events: none; }
.giftBanner-icon { font-size: 44px; position: relative; width: 74px; height: 74px; display: grid; place-items: center; background: rgba(255,255,255,.7); border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.giftBanner-icon span { position: absolute; right: -8px; bottom: -8px; font-size: 24px; background: #fff; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.giftBanner-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: #b4532a; }
.giftBanner-title { font-size: 21px; font-weight: 700; margin: 2px 0 4px; line-height: 1.25; }
.giftBanner-text { font-size: 14px; line-height: 1.45; color: #4a4160; }
.giftBanner-points { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #4a4160; }
.giftBanner-points li::before { content: '✓ '; color: #2e8b57; font-weight: 700; }
.giftBanner-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.giftBanner-button { font-size: 16px; padding: 10px 18px; border-radius: 24px; box-shadow: 0 4px 12px rgba(200, 90, 20, .3); }
.giftBanner-more { font-size: 13px; color: #6b4a8a; }
.giftBanner-note { font-size: 14px; font-weight: 600; color: #6b4a8a; text-align: center; max-width: 170px; }
@media (max-width: 700px) { .giftBanner { grid-template-columns: 1fr; padding: 14px; gap: 10px; } .giftBanner-icon { display: none; } .giftBanner-points { display: none; } .giftBanner-cta { flex-direction: row; justify-content: space-between; flex-wrap: wrap; } .giftBanner-cta { grid-column: 1 / -1; } .giftBanner-icon { width: 58px; height: 58px; font-size: 34px; } .giftBanner-title { font-size: 18px; } }

/* Инструменты: удобства */
.toolGrid-quick { align-items: center; flex-wrap: wrap; }
.toolGrid-quick .button { min-width: 34px; }
.toolGrid-more { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; font-size: 14px; }
.toolGrid-more summary { cursor: pointer; color: var(--link); }
.toolGrid-more details[open] { background: var(--minor-bg); border-radius: var(--radius); padding: 6px 8px; }
.toolGrid-more textarea { width: 100%; margin: 4px 0; }
.toolGrid-col { cursor: pointer; user-select: none; border-radius: 4px; }
.toolGrid-col:hover { background: var(--highlight); color: var(--text) !important; }
.toolGrid-num { cursor: pointer; user-select: none; }
.toolGrid-num:hover { color: var(--link); font-weight: 600; }
.toolGrid-cnt { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13px; }
.toolLinkBtn { display: block; width: 100%; text-align: center; margin-top: 6px; font-size: 13px; }
.toolMini { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 6px; }
.toolMini th { color: var(--text-muted); font-weight: 400; text-align: left; }
.toolMini td, .toolMini th { padding: 3px 4px; border-bottom: 1px solid var(--border-light); }
.toolMini tr[data-pick] { cursor: pointer; }
.toolMini tr[data-pick]:hover td { background: var(--highlight); }
.toolChips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: -4px 0 10px; }
.toolChipBtn { border: 1px solid var(--border); background: var(--content-bg); border-radius: 14px; padding: 2px 9px; font-size: 13px; cursor: pointer; color: var(--text); }
.toolChipBtn:hover { border-color: var(--link); }
.toolTable tr.is-best td { background: var(--success-bg); }
.toolBest { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: #2e8b3e; color: #fff; margin-left: 4px; }
.toolGroup-quick { font-size: 12px; margin-bottom: 4px; }
.toolGroup-quick .button--link { padding: 0; font-size: 12px; }
.toolSend { margin: 8px 0; padding: 8px 10px; background: var(--content-bg); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolSend .u-small { flex-basis: 100%; }
.toolResCells { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.toolResCell { width: 38px; height: 42px; border: 1px solid var(--border); border-radius: 6px; background: var(--content-bg); cursor: pointer; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--text-muted); }
.toolResCell small { font-size: 10px; font-weight: 400; color: var(--text-muted); margin-bottom: 3px; }
.toolResCell.is-set { background: #2e8b3e; border-color: #24702f; color: #fff; }
.toolResCell.is-set small { color: rgba(255,255,255,.8); }
.toolResCell.is-void { background: var(--minor-bg); text-decoration: line-through; }
.toolBestList { margin-top: 4px; max-height: 180px; overflow: auto; }
@media (max-width: 600px) { table.toolGrid th:nth-child(n+3) { width: 44px; } .toolGrid-name { font-size: 14px; } }
.toolPack-actions select.input { width: auto; display: inline-block; padding: 3px 6px; font-size: 13px; }
.toolPack-head > .u-small { flex: 1; text-align: right; }
.p-footer-support { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 8px 0 2px; font-size: 13px; }
.p-footer-supportBtn { font-weight: 600; }

/* ===== Анализ тиражей Балтбет ===== */
.baltNav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.baltNav > a { padding: 5px 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--content-bg); font-size: 14px; }
.baltNav > a.is-active { background: var(--link); border-color: var(--link); color: #fff; }
.baltNav-find { margin-left: auto; display: flex; gap: 4px; }
.baltNav-find .input { width: 120px; }
.baltR { font-weight: 700; font-size: 16px; position: relative; display: inline-block; min-width: 14px; }
.baltR--1 { color: #2e8b3e; } .baltR--x { color: #d39200; } .baltR--2 { color: #d0372e; } .baltR--void { color: var(--text-muted); }
.baltR--pill { padding: 1px 9px; border-radius: 6px; font-size: 14px; }
.baltR--pill.baltR--1 { background: #e3f4e6; } .baltR--pill.baltR--x { background: #fff3d6; } .baltR--pill.baltR--2 { background: #fde3e1; }
.baltK { font-size: 9px; font-weight: 700; margin-left: 1px; vertical-align: -3px; }
.baltK--f { color: #2a4f8a; } .baltK--m { color: #d39200; } .baltK--a { color: #d0372e; }
.baltTable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.baltTable th { background: #33476b; color: #fff; font-weight: 600; padding: 6px 4px; font-size: 13px; text-align: center; position: sticky; top: 0; }
.baltTable td { text-align: center; padding: 5px 3px; border-bottom: 1px solid var(--border-light); }
.baltTable tbody tr:hover td { background: var(--highlight); }
.baltTable-draw a { font-weight: 700; font-size: 15px; }
.baltTable td.is-vertical { background: #dbe9ff; } .baltTable td.is-diag1 { background: #fff0c9; } .baltTable td.is-diag2 { background: #d9f2df; } .baltTable td.is-absent { background: #f3dcfa; }
.baltTable td.is-hit { background: #e3f4e6; }
.baltMaskRow td { font-weight: 700; color: var(--link); background: var(--minor-bg); }
.baltPill { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: var(--minor-bg); font-weight: 600; font-size: 13px; }
.baltTrio { white-space: nowrap; }
.baltTrio span { display: inline-block; min-width: 20px; padding: 1px 5px; margin: 0 1px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.baltTrio .b1 { background: #e3f4e6; color: #2e7d32; } .baltTrio .bx { background: #fff3d6; color: #9a6b00; } .baltTrio .b2 { background: #fde3e1; color: #b3261e; }
.baltTrio .bf { background: #e1e8f5; color: #2a4f8a; } .baltTrio .bm { background: #fff3d6; color: #9a6b00; } .baltTrio .ba { background: #fde3e1; color: #b3261e; }
.baltTrio--big span { font-size: 14px; padding: 3px 8px; }
.baltHints { border: 1px solid var(--border); border-left: 4px solid #e8862d; border-radius: var(--radius); background: var(--content-bg); margin: 8px 0; overflow: hidden; }
.baltHints-head { background: #33476b; color: #fff; padding: 8px 12px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.baltHints-count { background: #fff; color: #33476b; border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.baltHints-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 10px; }
.baltHint { border-radius: var(--radius); padding: 8px 10px; }
.baltHint--v { background: #eef3fc; } .baltHint--d1 { background: #fff8e5; } .baltHint--d2 { background: #ecf7ee; } .baltHint--ab { background: #f8eefc; }
.baltHint-title { font-weight: 700; text-align: center; margin-bottom: 4px; }
.baltHint--v .baltHint-title { color: #2a4f8a; } .baltHint--d1 .baltHint-title { color: #c98a00; } .baltHint--d2 .baltHint-title { color: #2e8b3e; } .baltHint--ab .baltHint-title { color: #8a3aa8; }
.baltHint-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; }
.baltModes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; padding: 8px; background: var(--minor-bg); border-radius: var(--radius); }
.baltModes-label { font-weight: 600; }
.baltMode { border: 1px solid var(--border); background: var(--content-bg); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.baltMode.is-active { background: #5b6472; color: #fff; border-color: #5b6472; }
.baltMode--vertical.is-active { background: #2a4f8a; border-color: #2a4f8a; } .baltMode--diag1.is-active { background: #c98a00; border-color: #c98a00; } .baltMode--diag2.is-active { background: #2e8b3e; border-color: #2e8b3e; } .baltMode--absent.is-active { background: #8a3aa8; border-color: #8a3aa8; }
.baltModes-opt { font-size: 13px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.baltModes-opt .input { width: 56px; padding: 2px 4px; }
.baltDrawNav { display: flex; gap: 6px; margin-bottom: 8px; }
.baltMask { cursor: pointer; letter-spacing: 2px; font-size: 18px; }
.baltMask.is-copied::after { content: ' ✓'; color: #2e8b3e; }
.baltEvents td { vertical-align: middle; }
.baltQ { white-space: nowrap; }
.baltQ.is-res { background: #fff7d1; }
.baltQ-d { font-size: 11px; color: var(--text-muted); }
.baltQ-d.is-over { color: #d0372e; } .baltQ-d.is-under { color: #2e8b3e; }
.baltScore { white-space: nowrap; }
.baltForm { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px 12px; margin-bottom: 8px; }
.baltForm label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-muted); gap: 3px; }
.baltForm label .input { min-width: 140px; }
@media (max-width: 700px) { .baltR { font-size: 14px; } .baltTable td { padding: 4px 1px; } .baltTable th { padding: 4px 1px; font-size: 11px; } .baltNav-find { margin-left: 0; } }
.baltHint-row > span:first-child { white-space: nowrap; }
.toolStats .toolStat:has(.baltMask) { grid-column: span 2; }
.baltMask { font-size: 17px; white-space: nowrap; }
.threadVisitors .block-container { padding: 8px 12px; font-size: 14px; line-height: 1.7; }
.threadVisitors-label { font-weight: 600; margin-right: 4px; }
.threadVisitors-row + .threadVisitors-row { border-top: 1px solid var(--border-light); margin-top: 4px; padding-top: 4px; }
.mineMark { font-size: 12px; margin-right: 3px; }
.reactionsBar { position: relative; cursor: pointer; }
.reactionsBar:empty { cursor: default; }
.reactionsBar-names { text-decoration: underline dotted; text-underline-offset: 3px; }
.reactionsBar-all { position: absolute; z-index: 30; left: 0; top: 100%; margin-top: 4px; background: var(--content-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; min-width: 160px; font-size: 14px; white-space: nowrap; }
.reactionsBar-all[hidden] { display: none; }
[id^="post-"], [id^="message-"], :target { scroll-margin-top: calc(var(--site-header-height, 86px) + 8px); }
.alertsPop { position: fixed; z-index: 200; width: 360px; max-width: calc(100vw - 16px); background: var(--content-bg); color: var(--text); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; }
.alertsPop-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-light); }
.alertsPop-list { max-height: 60vh; overflow: auto; }
.alertsPop-item { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.alertsPop-item:hover { background: var(--highlight); }
.alertsPop-item.is-unread { background: var(--accent-soft); }
.alertsPop-ex { display: block; color: var(--text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 270px; }
.alertsPop-time { display: block; color: var(--text-muted); font-size: 12px; }
.alertsPop-empty { padding: 14px 12px; color: var(--text-muted); text-align: center; }
/* палитра цвета текста: крупные квадраты (общие стили кнопок меню сжимали их в полоски) */
.menu.is-open .menu-content.editorMenu--colors { display: grid; grid-template-columns: repeat(6, 32px); gap: 6px; padding: 10px; }
.menu-content.editorMenu--colors button { width: 32px !important; height: 32px !important; min-width: 32px !important; padding: 0 !important; border: 1px solid rgba(0,0,0,.25) !important; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.menu-content.editorMenu--colors button:hover { outline: 2px solid var(--link); outline-offset: 1px; filter: none; }
.menu-content.editorMenu--colors .editorColor-more { background: var(--minor-bg) !important; font-weight: 700; color: var(--text); display: grid !important; place-items: center; }
.birthdays .block-container { background: linear-gradient(135deg, #fff6e0, #ffe8f0); }
.birthdays-list { padding: 6px 10px; }
.birthdays-item { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.birthdays-congrats { margin-left: auto; text-decoration: none; }

/* админка: форма тиража Балтбет — 15 матчей в строку, на телефоне прокрутка */
.baltForm { overflow-x: auto; }
.baltForm-row { display: grid; grid-template-columns: 56px repeat(15, 56px); gap: 4px; align-items: center; margin-bottom: 3px; }
.baltForm-row > span { font-size: 12px; color: var(--muted, #888); }
.baltForm-head b { text-align: center; font-size: 12px; }
.baltForm select.input { padding: 4px 2px; text-align: center; min-width: 0; width: 100%; }

/* визуальный редактор: текст выглядит как в сообщении, BBCode остаётся в скрытом поле */
textarea.is-veHidden { display: none !important; }
.veRoot { display: block; padding: 8px 10px; overflow-y: auto; max-height: 70vh; resize: vertical; cursor: text; white-space: pre-wrap; flex: none; font-size: 15px; line-height: 1.35; border-top-left-radius: 0; border-top-right-radius: 0; }
.veRoot[hidden] { display: none; }
.veRoot:focus { outline: 2px solid var(--link); outline-offset: -1px; }
.veRoot.is-empty::before { content: attr(data-placeholder); color: var(--muted, #8a8a8a); pointer-events: none; position: absolute; }
.veRoot.is-dropTarget { outline: 2px dashed var(--accent, #3d6ea8); outline-offset: -2px; }
.veRoot img.veImg { max-width: 100%; max-height: 260px; border-radius: var(--radius); vertical-align: middle; }
.veRoot ul, .veRoot ol { margin: 4px 0; padding-left: 28px; }
.veRoot h2, .veRoot h3, .veRoot h4 { margin: 6px 0; }
.veBlock { margin: 6px 0; border-left: 3px solid var(--link); background: var(--minor-bg); border-radius: 0 var(--radius) var(--radius) 0; }
.veBlock--spoiler, .veBlock--hide { border-left-color: var(--border); border: 1px dashed var(--border); border-radius: var(--radius); }
.veBlock-label { padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--link); user-select: none; border-bottom: 1px solid var(--border-light); white-space: normal; }
.veBlock-body { padding: 4px 8px; min-height: 1.4em; }
.veInline { background: var(--minor-bg); border-bottom: 1px dashed var(--border); }
.veChip { color: var(--link); font-weight: 600; }
.veCode { margin: 6px 0; padding: 6px 8px; background: var(--minor-bg); border-radius: var(--radius); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; white-space: pre-wrap; }
.editorToolbar.is-visual [data-tag="bbmode"] { opacity: .75; }
.editorToolbar [data-tag="bbmode"][aria-pressed="true"] { background: var(--minor-bg); box-shadow: inset 0 0 0 1px var(--border); }
.attachBox-ins { margin: 0 4px; padding: 1px 8px; font-size: 12px; }

/* Keep an inline editor inside its post, with subsequent replies available below. */
.postEdit { margin: 10px 0 0; min-width: 0; }
.postEdit-error { color: var(--error, #c0392b); }
.mentionSuggest { max-width: min(280px, calc(100vw - 16px)); }

.message-cell--main > [hidden] { display: none !important; }

/* Tools catalog and subscription plans. */
.toolsIntro { max-width: 760px; margin-bottom: 24px; line-height: 1.6; }
.toolsCatalog { display: grid; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 20px; }
.toolsPanel { border: 1px solid var(--border); background: var(--content-bg); border-radius: 10px; }
.toolsEyebrow { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.toolsGift { padding: 24px; position: sticky; top: calc(var(--site-header-height, 86px) + 16px); }
.toolsGift-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 24px 0 16px; background: var(--accent-soft); border-radius: 12px; font-size: 25px; }
.toolsGift h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 12px 0 8px; }
.toolsGift-free { margin: 0 0 20px; color: var(--link); font-size: 14px; font-weight: 600; }
.toolsGift-description { font-size: 14px; line-height: 1.65; color: var(--text-dim); margin: 0 0 20px; }
.toolsGift-points { padding: 16px 0 0; margin: 0 0 24px; list-style: none; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.toolsGift-points li { margin: 9px 0; padding-left: 18px; position: relative; }
.toolsGift-points li::before { content: '✓'; position: absolute; left: 0; color: var(--link); }
.toolsGift .toolBadge { margin-bottom: 12px; }
.toolsGift .toolBadge { margin-bottom: 12px; }
.toolsGift-button { display: flex; justify-content: center; padding: 10px 14px; }
.toolsGift-more { display: block; text-align: center; margin-top: 12px; font-size: 13px; }
.toolsPaid { min-width: 0; }
.toolsPaid-panel { padding: 24px 24px 0; }
.toolsPaid-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.toolsPaid-head h2 { font-size: 23px; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.toolsCount { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border: 1px solid var(--border-light); border-radius: 50%; font-size: 13px; color: var(--text-muted); }
.toolsPaid-hint { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 10px 0 20px; }
.toolsItem { border-top: 1px solid var(--border-light); }
.toolsItem summary { cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 19px 0; list-style: none; }
.toolsItem summary::-webkit-details-marker { display: none; }
.toolsItem summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.toolsItem-icon { width: 24px; flex-shrink: 0; font-size: 21px; line-height: 1.4; text-align: center; }
.toolsItem-heading { flex: 1; min-width: 0; }
.toolsItem-name { display: block; font-weight: 600; font-size: 16px; line-height: 1.5; }
.toolsItem-short { display: block; font-size: 13px; line-height: 1.55; color: var(--text-muted); margin-top: 4px; }
.toolsItem-chevron { color: var(--text-muted); font-size: 20px; flex-shrink: 0; transition: transform .15s; }
.toolsItem[open] .toolsItem-chevron { transform: rotate(180deg); }
.toolsItem[open] .toolsItem-name { color: var(--link); }
.toolsItem-content { padding: 0 0 22px 38px; }
.toolsItem-description { margin: 16px 0; color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.toolExample { background: var(--content-alt); border: 1px solid var(--border-light); border-radius: 7px; padding: 16px; }
.toolExample-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 16px; }
.toolExample-head span { font-size: 11px; color: var(--text-muted); }
.toolExample-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.toolExample-stats strong { display: block; font-size: 25px; font-weight: 600; line-height: 1.3; }
.toolExample-stats span { display: block; font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.toolExample dl { font-size: 12px; margin: 0; }
.toolExample dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border-light); }
.toolExample dt { color: var(--text-muted); }
.toolExample dd { margin: 0; text-align: right; }
.toolsSubscribe { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 2px 0; }
.toolsSubscribe strong, .toolsSubscribe span { display: block; font-size: 14px; }
.toolsSubscribe span { color: var(--text-muted); font-size: 12px; margin-top: 5px; }
.toolsSubscribe .button { padding: 10px 18px; }
.toolsFootnote { color: var(--text-muted); font-size: 12px; margin: 24px 0; }
.subscriptionPage { max-width: 1000px; margin: 12px auto 32px; }
.subscriptionBack { font-size: 13px; }
.subscriptionIntro { text-align: center; margin: 40px 0 32px; }
.subscriptionIntro h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.25; letter-spacing: -.7px; font-weight: 600; margin: 14px 0; }
.subscriptionIntro p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0; }
.subscriptionPlans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.subscriptionPlan { background: var(--content-bg); border: 1px solid var(--border); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; }
.subscriptionPlan h2 { font-size: 19px; font-weight: 600; }
.subscriptionPeriod { margin: 6px 0 24px; font-size: 13px; color: var(--text-muted); }
.subscriptionPrice { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.subscriptionPrice strong { font-size: 40px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.2; }
.subscriptionPrice > span { color: var(--text-muted); font-size: 23px; }
.subscriptionMonthly { font-size: 13px; color: var(--text-muted); margin: 8px 0 24px; }
.subscriptionPlan-rule { border-top: 1px solid var(--border-light); }
.subscriptionPlan ul { list-style: none; padding: 0; margin: 20px 0 26px; font-size: 13px; line-height: 1.6; flex: 1; }
.subscriptionPlan li { position: relative; padding-left: 19px; margin-bottom: 12px; }
.subscriptionPlan li::before { content: '✓'; position: absolute; left: 0; color: var(--link); }
.subscriptionBuy, .subscriptionBuy:hover { display: block; width: 100%; padding: 10px 16px; color: var(--text-muted); background: var(--minor-bg); border: 1px solid var(--border); border-radius: 5px; opacity: .7; cursor: not-allowed; box-shadow: none; }
.subscriptionContact { margin-top: 24px; padding: 22px; border: 1px solid var(--border); border-radius: 8px; text-align: center; background: var(--content-alt); }
.subscriptionContact strong { font-size: 15px; font-weight: 600; }
.subscriptionContact p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 8px 0 12px; }
.subscriptionContact a { font-size: 13px; }
.subscriptionGift-note { text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.7; margin: 20px 0; }
@media (max-width: 760px) {
  .toolsCatalog { grid-template-columns: 1fr; gap: 20px; }
  .toolsGift { position: static; }
  .toolsGift, .toolsPaid-panel { padding: 20px; }
  .toolsPaid-panel { padding-bottom: 0; }
  .toolsGift-icon { margin-top: 18px; }
  .toolsItem-content { padding-left: 0; }
  .toolsItem-name { font-size: 15px; }
  .toolsSubscribe { padding: 18px 0 0; }
  .toolsSubscribe .button { width: 100%; justify-content: center; }
  .subscriptionIntro { margin: 28px 8px; }
  .subscriptionPlans { grid-template-columns: 1fr; gap: 14px; }
  .subscriptionPlan { padding: 22px; }
  .subscriptionPlan ul { margin-bottom: 16px; }
  .subscriptionPrice strong { font-size: 36px; }
  .subscriptionContact { padding: 20px 14px; }
}

/* Community tools and editing controls. */
.avatar { position: relative; overflow: visible; }
.avatar img { border-radius: inherit; }
.onlineIndicator { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--content-bg); background: #39b86a; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.avatar--xxs .onlineIndicator, .chatMsg .onlineIndicator { width: 9px; height: 9px; }
.avatar--m .onlineIndicator, .avatar--l .onlineIndicator { width: 15px; height: 15px; right: 3px; bottom: 3px; }
.veImageFrame { display: inline-block; max-width: 100%; resize: horizontal; overflow: hidden; vertical-align: middle; padding: 0 0 8px; min-width: 40px; outline: 1px dashed var(--border); }
.veImageFrame img { display: block; width: 100%; height: auto; max-width: 100%; }
.veImageTools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; background: var(--content-alt); border: 1px solid var(--border); }
.veImageTools[hidden] { display: none; }
.veImageTools label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.veImageTools input { width: 90px; }
.baltR--f { background: #27824b; color: white; }
.baltR--m { background: #edc84b; color: #392d00; }
.baltR--a { background: #c84646; color: white; }
.baltR--unknown { background: var(--minor-bg); color: var(--text-muted); }
.archiveTotes { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.archiveTotes a { padding: 7px 12px; border: 1px solid var(--border); border-radius: 5px; }
.archiveTotes [aria-current] { background: var(--accent-soft); font-weight: 600; }
.archiveDate { display: block; font-size: 10px; white-space: nowrap; }
.structItem-lastLink { display: inline-block; margin-left: 8px; font-size: 12px; }
.memberHeader-buttons form { margin-bottom: 6px; }
.alertList-item.is-unread .alertList-text, .alertsPop-item.is-unread > span > b { font-weight: 700; }

.baltHints > summary { cursor: pointer; list-style: none; }
.baltHints > summary::-webkit-details-marker { display: none; }
.baltHints > summary::after { content: 'Развернуть ▾'; font-size: 12px; font-weight: 400; }
.baltHints[open] > summary::after { content: 'Свернуть ▴'; }

/* Community usability improvements. */
.gameSchedule { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; background:var(--accent-soft); border:1px solid var(--border); border-radius:8px; padding:16px; }
.gameSchedule label { display:grid; gap:8px; font-weight:600; }
.gameSchedule input { min-width:0; font-size:17px; }
.alertsPop-head { flex-wrap:wrap; gap:8px; }
.alertsPop-head form { flex-basis:100%; }
.alertsPop-head button { max-width:100%; white-space:normal; }
.alertsPop-item:not(.is-unread) { opacity:.75; }
.messageBody-folded { max-height:14em; overflow:hidden; position:relative; }
.messageBody-folded::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2em; background:linear-gradient(transparent,var(--content-bg)); pointer-events:none; }
.messageFold { margin:8px 0; }
.threadVisitors-avatars { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.visitorAvatar { position:relative; }
.visitorAvatar summary { list-style:none; cursor:pointer; }
.visitorAvatar summary::-webkit-details-marker { display:none; }
.visitorAvatar-info { display:none; position:absolute; bottom:calc(100% + 6px); left:0; z-index:30; padding:10px; border:1px solid var(--border); background:var(--content-bg); box-shadow:0 3px 12px #0002; border-radius:7px; width:190px; font-size:12px; }
.visitorAvatar:nth-child(n+5) .visitorAvatar-info { left:auto; right:0; }
.visitorAvatar-info time { display:block; color:var(--text-muted); margin-top:4px; }
.visitorAvatar[open] .visitorAvatar-info,.visitorAvatar:hover .visitorAvatar-info,.visitorAvatar:focus-within .visitorAvatar-info { display:block; }
.reactPicker-list { max-width:calc(100vw - 24px); flex-wrap:wrap; }
@media(max-width:600px){.gameSchedule{grid-template-columns:1fr;gap:14px;}.threadTools{flex-wrap:wrap;gap:8px;}}
@media print { .messageBody-folded { max-height:none;overflow:visible; }.messageBody-folded::after,.messageFold { display:none; } }

/* Keep SVG controls on a shared center line, independent of text baselines. */
.button,.actionBar-action { vertical-align:middle; }
.button > .ico,.actionBar-action > .ico,.p-navgroup-link > .ico,.editorToolbar button > .ico { display:block; margin-block:0; }
.p-title-pageAction { align-items:center; }
.p-title-pageAction > .button { min-height:30px; }
.formSubmitRow { align-items:center; flex-wrap:wrap; }
.threadTools form { display:inline-flex; align-items:center; }
/* A palette stays beside the selected message, outside clipped scroll containers. */
.reactionPopups .reactPicker-list,.reactionPopups .chatReactAdd-list { display:none!important; }
.reactionPopup { position:fixed; z-index:350; display:flex; flex-wrap:wrap; gap:3px; padding:8px; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; background:var(--content-bg); color:var(--text); border:1px solid var(--border); border-radius:14px; box-shadow:0 5px 24px #0003; }
.reactionPopup button { flex:0 0 34px; height:34px; padding:2px; font-size:23px; border:0; border-radius:7px; cursor:pointer; background:transparent; color:inherit; }
.reactionPopup button:hover,.reactionPopup button:focus-visible { background:var(--accent-soft); outline:2px solid var(--accent); }
.chatBox-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.chatBox-toggle { flex-shrink:0; font-weight:400; }
@media(max-width:650px),(hover:none) {
  .chatMsg .chatReactAdd { display:none; }
  .chatMsg.is-selected .chatReactAdd { display:inline-block; }
  .chatMsg.is-selected .chatMsg-reactBtn { opacity:1; }
}

.veImageFrame.is-selected { outline:3px solid var(--accent); outline-offset:2px; }

.chatMsg:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }

.topicPanel { padding:10px 12px; min-width:0; }
.topicPanel>summary { cursor:pointer; font-weight:600; color:var(--text-dim); padding:4px 0; }
.topicPanel>summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.topicPanel .related-nav { margin-top:10px; }
@media print { .topicPanel { display:none; } }
.veImageFrame[style*="height"] img.veImg { height:100%; max-height:none; object-fit:fill; }
.veRoot .veImageFrame:not([style*="height"]) img.veImg { max-height:none; }
.veImageTools [type="checkbox"] { width:auto; }

.followingRow { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }

.veImageFrame[style*="height"] { padding-bottom:0; }

.super15Widget .block-container { overflow:hidden; border-radius:10px; }
.super15Widget-head { display:flex; justify-content:space-between; align-items:center; padding:16px; gap:10px; }
.super15Widget-label { font-size:9px; letter-spacing:.13em; color:var(--text-muted); }
.super15Widget h3 { margin:4px 0 0; font-size:18px; font-weight:400; }
.super15Widget h3 b { color:var(--accent); }
.super15Widget-refresh { border:1px solid var(--border); border-radius:50%; width:30px; height:30px; cursor:pointer; color:var(--text-dim); background:var(--content-alt); font-size:20px; }
.super15Widget-prize { margin:0 14px; padding:16px 12px; border:1px solid var(--border); border-radius:10px; background:linear-gradient(125deg,var(--accent-soft),var(--content-bg)); text-align:center; }
.super15Widget-prize>span,.super15Widget-prize small { display:block; color:var(--text-muted); font-size:11px; }
.super15Widget-prize strong { display:block; font-size:29px; letter-spacing:-.03em; margin:5px 0; color:var(--text); }
.super15Widget-status { margin:9px 16px; font-size:10px; color:var(--text-muted); }
.super15Widget-legend { display:flex; justify-content:space-between; padding:8px 16px; background:var(--content-alt); font-size:10px; color:var(--text-muted); }
.super15Widget-games { padding:0 14px; margin:0; max-height:540px; overflow:auto; overscroll-behavior:contain; list-style:none; scrollbar-width:thin; }
.super15Widget-games li { padding:12px 0; border-bottom:1px solid var(--border-light); }
.super15Widget-games li>b { font-size:12px; display:block; line-height:1.4; font-weight:600; }
.super15Widget-games li>small { font-size:9px; color:var(--text-muted); display:block; margin:3px 0 7px; }
.super15Widget-outcomes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.super15Widget-outcomes>div { border:1px solid var(--border); border-radius:6px; padding:5px 2px; text-align:center; background:var(--content-alt); }
.super15Widget-outcomes span { display:block; font-size:9px; color:var(--text-muted); }
.super15Widget-outcomes strong { display:block; font-size:10px; font-weight:500; margin-top:2px; white-space:nowrap; }
.super15Widget-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 14px; font-size:10px; }

.super15Widget-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:12px 10px 0; text-align:center; }
.super15Widget-stats:empty,.super15Widget-gaps:empty { display:none; }
.super15Widget-stats b { display:block; font-size:13px; color:var(--text); }
.super15Widget-stats span { display:block; font-size:9px; color:var(--text-muted); margin-top:3px; }
.super15Widget-gaps { margin:12px 14px 0; padding:9px 10px; border:1px solid var(--border); border-radius:7px; font-size:10px; background:var(--content-alt); }
.super15Widget-gaps>b { display:block; font-size:10px; font-weight:600; margin-bottom:5px; }
.super15Widget-gaps>span { display:block; margin:4px 0; color:var(--text-dim); }

/* Self-service registration in game topics. */
.gameEntry{margin:18px 0 8px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--content-bg)}
.gameEntry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.gameEntry h3{margin:0 0 4px}.gameEntry p{margin:6px 0}
.gameEntry-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:14px 0}.gameEntry-totals>div{padding:10px;border:1px solid var(--border);border-radius:7px}.gameEntry-totals small,.gameEntry-totals strong{display:block}.gameEntry-totals strong{margin-top:5px;font-size:17px}
.gameEntry-table{overflow-x:auto}.gameEntry table{width:100%;border-collapse:collapse}.gameEntry th,.gameEntry td{padding:10px 6px;border-bottom:1px solid var(--border);text-align:left}.gameEntry td:nth-child(n+2),.gameEntry th:nth-child(n+2){text-align:right;white-space:nowrap}.gameEntry td:first-child{overflow-wrap:anywhere}.gameEntry-mine{background:var(--content-alt)}
.gameEntry-actions,.gameEntry-actions form,.gameEntry-loader{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.gameEntry-actions{margin:14px 0}.gameEntry-actions label{max-width:220px}.gameEntry label,.gameEntry-settings label{display:block}.gameEntry-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0}.gameEntry-fields>label{min-width:0}.gameEntry-settings{margin:12px 0}.gameEntry-settings summary{cursor:pointer;font-weight:600;padding:8px 0}.gameEntry-settings form{padding:12px;border:1px solid var(--border);border-radius:7px}.gameEntry-loader{margin:12px 0}.gameEntry-loader select{width:auto;max-width:100%}.gameEntry-loader [role=status]{flex-basis:100%}
@media(max-width:600px){.gameEntry{padding:10px}.gameEntry-totals{grid-template-columns:1fr 1fr}.gameEntry-actions form{width:100%}.gameEntry-actions label{flex:1;min-width:140px;max-width:none}.gameEntry-heading{align-items:flex-start}.gameEntry-fields{grid-template-columns:1fr}.gameEntry-table{font-size:12px}}
.gameEntry-payment{font-size:12px;color:var(--text-muted);margin-top:4px}.gameEntry-payment small{display:block;font-size:11px}.gameEntry-paid{color:var(--link-color,#35834b);font-weight:600}.gameEntry-review{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;text-align:left;white-space:normal}.gameEntry-review details{flex:1;min-width:150px}.gameEntry-review summary{cursor:pointer;padding:4px 0}.gameEntry-review details form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-top:8px}.gameEntry-review label{width:180px;max-width:100%}.gameEntry th:last-child{white-space:normal;max-width:130px}
