/* /long-short v2 — стили хаба и страниц монет. Правила: docs/long-short-design-spec.md */
  /* ── /long-short v2 — строго по docs/long-short-design-spec.md.
     Всё в карточках, сетка 12×16px, пять размеров шрифта (12/13/14/16/28),
     цвет только на направлении. page-glass.css НЕ подключается. ── */
  html, body { height: auto; min-height: 100vh; background: var(--c-color-background-2); }
  html, body { max-width: 100%; overflow-x: clip; }
  .page-shell { max-width: 1800px; margin: 0 auto; padding: 0 24px 48px; background: transparent; }
  .ls-page { max-width: 1400px; margin: 0 auto; padding: 16px 0 24px; font-variant-numeric: tabular-nums; }
  .ls-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c7 { grid-column: span 7; } .c12 { grid-column: span 12; }
  .card { background: var(--c-color-background-1); border: 1px solid var(--c-color-gray-200);
    border-radius: var(--c-border-radius-200); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
  .ct { display: flex; align-items: center; gap: 12px; min-height: 28px; flex-wrap: wrap; }
  .ct h1, .ct h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; min-width: 0; color: var(--c-color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
  .ct .lnk { color: var(--c-color-text-caption); display: inline-flex; }
  .cbody { margin-top: 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .meta { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--c-color-text-caption); }
  .seg { display: inline-flex; background: var(--c-color-background-2); border: 1px solid var(--c-color-gray-200);
    border-radius: 6px; padding: 2px; gap: 2px; }
  .seg button { height: 24px; padding: 0 10px; border: 0; background: transparent; border-radius: 4px; font: inherit;
    font-size: 12px; font-weight: 600; color: var(--c-color-text-secondary); cursor: pointer; }
  .seg button.on { background: var(--c-color-surface-2); color: var(--c-color-text-primary); }
  .ls-sel { height: 32px; padding: 0 28px 0 12px; border: 1px solid var(--c-color-gray-200); border-radius: 6px;
    background: var(--c-color-background-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A6B0C3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: var(--c-color-text-primary); font: inherit; font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; }
  .ls-inp { height: 32px; padding: 0 12px; border: 1px solid var(--c-color-gray-200); border-radius: 6px;
    background: var(--c-color-background-1); color: var(--c-color-text-primary); font: inherit; font-size: 14px; min-width: 220px; }
  .ls-inp::placeholder { color: var(--c-color-text-caption); }
  .plates { display: flex; gap: 16px; height: 100%; }
  .plate { flex: 1; min-height: 96px; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column;
    justify-content: space-between; min-width: 0; }
  .plate.long { background: var(--c-color-positive-bg); } .plate.short { background: var(--c-color-negative-bg); }
  .plate .t { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-color-text-secondary); }
  .plate .t b { color: var(--c-color-text-primary); font-size: 14px; }
  .plate .v { font-size: 28px; font-weight: 700; line-height: 1; color: var(--c-color-text-primary); }
  .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .big .v { font-size: 28px; font-weight: 700; line-height: 1; color: var(--c-color-text-primary); }
  .sub { font-size: 12px; color: var(--c-color-text-secondary); margin: 6px 0 12px; }
  .tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid;
    font-size: 12px; font-weight: 600; white-space: nowrap; }
  .tag.up { color: var(--c-color-positive); } .tag.down { color: var(--c-color-negative); } .tag.flat { color: var(--c-color-text-secondary); }
  .rt { width: 100%; border-collapse: collapse; }
  .rt th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-color-text-secondary); padding: 0 0 8px;
    border-bottom: 1px solid var(--c-color-gray-200); }
  .rt td { height: 40px; padding: 0; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--c-color-gray-200);
    color: var(--c-color-text-primary); }
  .rt tr:last-child td { border-bottom: 0; } .rt .r, .dt .r { text-align: right; }
  .tw { margin: 0 -16px; overflow-x: auto; }
  .dt { width: 100%; border-collapse: collapse; }
  .dt th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-color-text-secondary); padding: 12px 16px;
    border-bottom: 1px solid var(--c-color-gray-200); white-space: nowrap; }
  .dt td { padding: 16px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--c-color-gray-200);
    white-space: nowrap; color: var(--c-color-text-primary); }
  .dt.dense td { padding: 10px 12px; font-size: 13px; } .dt.dense th { padding: 8px 12px; }
  .dt tr:last-child td { border-bottom: 0; } .dt tbody tr:hover td { background: var(--c-color-surface-2); }
  .pos { color: var(--c-color-positive); } .neg { color: var(--c-color-negative); }
  .sec { color: var(--c-color-text-secondary); } .mono { font-family: var(--c-font-family-mono); font-size: 12px; }
  .coin { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-color-text-primary); text-decoration: none; }
  .coin-ico { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center;
    justify-content: center; font-size: 10px; font-weight: 700; background: var(--c-color-gray-200); color: var(--c-color-text-primary); }
  img.coin-ico { background: none; object-fit: contain; }
  .split { display: flex; gap: 2px; height: 20px; border-radius: 4px; overflow: hidden; min-width: 160px; }
  .split span { display: flex; align-items: center; font-size: 12px; font-weight: 600; color: #fff; padding: 0 8px; min-width: 0; overflow: hidden; }
  .split .l { background: var(--c-color-green-700); } .split .s { background: var(--c-color-red-700); justify-content: flex-end; flex: 1; }
  .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--c-color-text-secondary); margin-top: 10px; }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 2px; display: inline-block; }
  .legend b { color: var(--c-color-text-primary); font-weight: 600; }
  .chart { height: 340px; margin-top: 8px; position: relative; }
  .chart.short { height: 300px; }
  .chart .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--c-color-text-caption); }
  .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 12px; color: var(--c-color-text-caption); gap: 12px; }
  .faq details { border-bottom: 1px solid var(--c-color-gray-200); padding: 14px 0; }
  .faq details:last-child { border-bottom: 0; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--c-color-text-primary); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; color: var(--c-color-text-caption); font-weight: 400; }
  .faq details[open] summary::after { content: '\2212'; }
  .faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--c-color-text-secondary); max-width: 90ch; }
  .faq a { color: var(--c-color-text-hyperlink); text-decoration: none; }
  .hide { display: none !important; }
  .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-color-positive); display: inline-block; margin-right: 6px; }
  @media (max-width: 1100px) { .c4 { grid-column: span 6; } .c5, .c7 { grid-column: span 12; } }
  @media (max-width: 768px) {
    .page-shell { padding: 0 12px 48px; }
    .c4, .c5, .c7, .c12 { grid-column: span 12; }
    .ct h1, .ct h2 { white-space: normal; flex-basis: 100%; }
    .chart { height: 280px; } .chart.short { height: 260px; }
    .ls-inp { min-width: 0; width: 100%; }
  }
  .lang-switch { display:inline-flex; align-items:center; padding:0 10px; height:32px; border:1px solid var(--c-color-gray-200);
    border-radius:8px; font-size:12px; font-weight:600; color:var(--c-color-text-secondary); text-decoration:none; white-space:nowrap; }
  .lang-switch-group { display:inline-flex; border:1px solid var(--c-color-gray-200); border-radius:8px; overflow:hidden; }
  .lang-switch-group .lang-switch { border:0; border-radius:0; height:30px; padding:0 9px; font-size:11.5px; }
  .lang-switch-group .lang-switch + .lang-switch { border-left:1px solid var(--c-color-gray-200); }
  .lang-switch.is-cur { color:var(--c-color-text-primary); background:rgba(255,255,255,.06); cursor:default; }
  /* ── страница монеты ── */
  .c8 { grid-column: span 8; }
  .crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-color-text-caption); flex-wrap: wrap; }
  .crumbs a { color: var(--c-color-text-secondary); text-decoration: none; }
  .crumbs b { color: var(--c-color-text-primary); font-weight: 600; }
  .crumbs .stats { margin-left: auto; display: flex; gap: 20px; }
  .crumbs .stats b { font-weight: 600; }
  @media (max-width: 1100px) { .c8 { grid-column: span 12; } }
  @media (max-width: 768px) { .crumbs .stats { margin-left: 0; flex-basis: 100%; gap: 14px; } }
