    *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}

    :root {
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-left: env(safe-area-inset-left, 0px);
      --safe-right: env(safe-area-inset-right, 0px);
      --nav-h: 68px;
      --header-h: 58px;

      --bg: #070c18;
      --bg1: #0c1525;
      --bg2: #111e35;
      --card: rgba(255,255,255,0.04);

      --blue: #3b82f6;
      --blue-dim: rgba(59,130,246,0.14);
      --blue-border: rgba(59,130,246,0.28);
      --cyan: #06b6d4;
      --green: #22c55e;
      --green-dim: rgba(34,197,94,0.1);
      --red: #ef4444;
      --red-dim: rgba(239,68,68,0.1);
      --amber: #f59e0b;
      --purple: #a855f7;

      --text: #eef2ff;
      --text2: #94a3b8;
      --muted: #475569;

      --border: rgba(255,255,255,0.07);
      --border2: rgba(255,255,255,0.11);

      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Контент скроллит САМ ДОКУМЕНТ (корневой нативный скроллер iOS).
       Вложенные overflow-контейнеры в standalone-PWA «замерзают» после
       быстрого флика (давний баг WebKit) — документный скроллер нет.
       Поэтому здесь нет overflow:hidden и нет вложенного .scroll-area-скролла. */
    html {
      min-height: 100%;
      background: var(--bg); /* виден при rubber-band за границами контента */
    }

    body {
      min-height: 100vh;
      min-height: 100dvh;
      -webkit-font-smoothing: antialiased;
      font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
      background: var(--bg);
      color: var(--text);
      padding-top: var(--safe-top);
      padding-left: var(--safe-left);
      padding-right: var(--safe-right);
    }

    /* ── SPLASH ── */
    #splash {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(ellipse at 50% 35%, #0d2040 0%, #070c18 65%);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    #splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }

    .splash-content {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .splash-logo-wrap {
      position: relative;
      width: 96px; height: 96px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 28px;
    }
    .splash-ring {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(59,130,246,0.22);
      animation: ripple 2.4s ease-out infinite;
    }
    .splash-ring:nth-child(1) { width: 100%; height: 100%; animation-delay: 0s; }
    .splash-ring:nth-child(2) { width: 136%; height: 136%; animation-delay: 0.7s; }
    .splash-ring:nth-child(3) { width: 172%; height: 172%; animation-delay: 1.4s; }
    @keyframes ripple {
      0%   { opacity: 0.7; transform: scale(0.8); }
      100% { opacity: 0;   transform: scale(1.1); }
    }

    .splash-icon {
      width: 84px; height: 84px;
      background: #fff;
      border-radius: 26px;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 48px rgba(37,99,235,0.55), 0 0 96px rgba(6,182,212,0.2);
      position: relative; z-index: 1;
      animation: icon-glow 2.2s ease-in-out infinite;
    }
    @keyframes icon-glow {
      0%,100% { box-shadow: 0 0 48px rgba(37,99,235,0.55), 0 0 96px rgba(6,182,212,0.2); }
      50%      { box-shadow: 0 0 64px rgba(37,99,235,0.75), 0 0 128px rgba(6,182,212,0.3); }
    }
    .splash-icon img { width: 58px; height: 58px; }

    .splash-title {
      font-size: 34px;
      font-weight: 700;
      letter-spacing: -0.8px;
      color: #fff;
      animation: fade-up 0.5s ease both;
      animation-delay: 0.15s;
    }
    .splash-subtitle {
      font-size: 13px;
      color: var(--text2);
      margin-top: 6px;
      animation: fade-up 0.5s ease both;
      animation-delay: 0.28s;
    }
    .splash-dots {
      display: flex; gap: 6px;
      margin-top: 44px;
      animation: fade-up 0.5s ease both;
      animation-delay: 0.42s;
    }
    .splash-dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      background: rgba(59,130,246,0.3);
      animation: dot-pulse 2.4s ease-in-out infinite;
    }
    .splash-dot:nth-child(2) { animation-delay: 0.4s; }
    .splash-dot:nth-child(3) { animation-delay: 0.8s; }
    @keyframes dot-pulse {
      0%,50%,100% { opacity:0.25; transform:scale(1); }
      25%          { opacity:0.9;  transform:scale(1.25); background:var(--blue); }
    }

    @keyframes fade-up {
      from { opacity:0; transform:translateY(8px); }
      to   { opacity:1; transform:translateY(0); }
    }

    /* ── HEADER ── */
    .app-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
      padding-top: env(safe-area-inset-top, 0px);
      /* Без backdrop-filter: блюр под fixed-элементом при быстром скролле
         крашит WebKit на iOS (bugs #221804, #195865) */
      background: rgba(7,12,24,0.97);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding-left: 16px;
      padding-right: 16px;
      gap: 10px;
      z-index: 50;
    }
    .header-logo {
      width: 36px; height: 36px;
      background: #fff;
      border-radius: 11px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 12px rgba(37,99,235,0.45);
    }
    .header-logo img { width: 26px; height: 26px; }
    .header-title {
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -0.3px;
      flex: 1;
    }

    .icon-btn {
      width: 38px; height: 38px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text2);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s, color 0.15s, transform 0.1s;
    }
    .icon-btn:active { transform: scale(0.88); }
    .icon-btn.active { background: var(--blue-dim); color: #60a5fa; border-color: var(--blue-border); }
    .icon-btn.spinning svg { animation: spin 0.6s linear; }
    .icon-btn svg { width: 18px; height: 18px; }

    /* ── Инлайн-иконки (Lucide) ── */
    .ico {
      width: 1.05em; height: 1.05em;
      flex-shrink: 0;
      display: inline-block;
      vertical-align: -0.18em;
    }
    /* Крупная тонированная плашка для пустых/ошибочных состояний */
    .state-ico {
      width: 68px; height: 68px;
      margin: 0 auto 16px;
      border-radius: 22px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(96,165,250,0.1);
      border: 1px solid rgba(96,165,250,0.18);
      color: #60a5fa;
    }
    .state-ico .ico { width: 30px; height: 30px; }
    .state-ico.red    { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.22);   color: #f87171; }
    .state-ico.amber  { background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.22);  color: #fbbf24; }
    .state-ico.green  { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.22);   color: #4ade80; }
    .state-ico.purple { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.25);  color: #c084fc; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── SCROLL & PAGES ── */
    /* Не скроллер: обычная обёртка, отступы под fixed-шапку и fixed-нав.
       Скроллит документ — см. комментарий у html/body. */
    .scroll-area {
      padding-top: var(--header-h);
      padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    }

    .page {
      display: none;
      padding: 16px 16px 32px;
      max-width: 520px;
      margin: 0 auto;
      width: 100%;
    }
    .page.active { display: block; }

    /* Staggered card entrance */
    .page.active > .card,
    .page.active > .mchs-tabs,
    .page.active > [class^="mchs-"],
    .page.active > [class^="bridge-"],
    .page.active > [class^="news-"] {
      /* backwards, а не both: after-фаза both навсегда удерживает transform
         на карточках → лишние композитные слои давят на скролл-слой iOS */
      animation: card-in 0.28s var(--ease-out) backwards;
    }
    .page.active > *:nth-child(2) { animation-delay: 50ms; }
    .page.active > *:nth-child(3) { animation-delay: 100ms; }
    .page.active > *:nth-child(4) { animation-delay: 150ms; }
    @keyframes card-in {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── BOTTOM NAV ── */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
      padding-bottom: env(safe-area-inset-bottom, 0px);
      background: rgba(7,12,24,0.98);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: stretch;
      z-index: 50;
    }
    /* Sliding nav indicator */
    #nav-pill {
      position: absolute;
      top: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, var(--blue) 70%, transparent 100%);
      box-shadow: 0 0 12px var(--blue);
      border-radius: 0 0 3px 3px;
      transition: left 0.3s var(--ease-spring), width 0.3s var(--ease-spring);
      pointer-events: none;
    }

    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      transition: color 0.2s, transform 0.12s var(--ease-spring);
      padding: 0 2px;
      position: relative;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-item:active { transform: scale(0.84); }
    .nav-icon {
      width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .nav-icon svg {
      width: 22px; height: 22px;
      transition: transform 0.28s var(--ease-spring);
    }
    .nav-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1px; transition: color 0.2s; }
    .nav-item.active { color: var(--blue); }
    .nav-item.active .nav-icon svg { transform: scale(1.15); }
    /* Active dot under icon */
    .nav-item.active .nav-icon::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 50%; transform: translateX(-50%);
      width: 4px; height: 4px;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 6px var(--blue);
    }

    /* ── AUTH ── */
    #screen-auth {
      display: none;
      background: radial-gradient(ellipse at 50% 0%, #0d1e3a 0%, #070c18 65%);
    }
    .auth-inner {
      max-width: 400px;
      margin: 0 auto;
      padding: 40px 20px 52px;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .auth-header { text-align: center; margin-bottom: 32px; }
    .auth-logo {
      width: 80px; height: 80px;
      background: #fff;
      border-radius: 24px;
      display: inline-flex; align-items: center; justify-content: center;
      margin-bottom: 18px;
      box-shadow: 0 8px 40px rgba(37,99,235,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    }
    .auth-logo img { width: 54px; height: 54px; }
    .auth-header h2 {
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.5px;
    }
    .auth-header p { font-size: 14px; color: var(--text2); margin-top: 6px; }

    .auth-pwa-notice {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: rgba(245,158,11,0.08);
      border: 1px solid rgba(245,158,11,0.22);
      border-radius: 16px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }
    .auth-pwa-icon {
      width: 32px; height: 32px;
      background: rgba(245,158,11,0.12);
      border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: #fbbf24;
    }
    .auth-pwa-icon svg { width: 18px; height: 18px; }
    .auth-pwa-text { flex: 1; }
    .auth-pwa-title {
      font-size: 13px;
      font-weight: 700;
      color: #fbbf24;
      margin-bottom: 4px;
    }
    .auth-pwa-desc {
      font-size: 12px;
      color: var(--text2);
      line-height: 1.5;
    }
    .auth-pwa-share {
      display: inline-block;
      font-size: 13px;
      color: #60a5fa;
      font-weight: 700;
    }

    .auth-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border2);
      border-radius: 24px;
      padding: 20px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    }

    .tab-row {
      display: flex;
      gap: 4px;
      background: rgba(0,0,0,0.3);
      border-radius: 12px;
      padding: 3px;
      margin-bottom: 20px;
    }
    .tab {
      flex: 1; padding: 9px 12px;
      border: none; border-radius: 9px;
      font-size: 13px; font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: all 0.2s;
      font-family: inherit;
    }
    .tab.active {
      background: var(--bg2);
      color: var(--text);
      box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ── INPUTS ── */
    .input-group { margin-bottom: 13px; }
    .input-group label {
      display: block;
      font-size: 11px;
      color: var(--text2);
      margin-bottom: 6px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .input-group input,
    .input-group textarea {
      width: 100%;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 12px 14px;
      color: var(--text);
      font-size: 15px;
      outline: none;
      font-family: inherit;
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
      -webkit-appearance: none;
    }
    .input-group input:focus,
    .input-group textarea:focus {
      border-color: var(--blue);
      background: rgba(59,130,246,0.06);
      box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
    }
    .input-group textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
    .error-msg {
      color: #f87171;
      font-size: 13px;
      margin-top: 8px;
      min-height: 18px;
      font-weight: 500;
    }

    /* ── BUTTONS ── */
    .btn {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.1s, opacity 0.15s;
      margin-bottom: 8px;
      font-family: inherit;
      letter-spacing: -0.1px;
    }
    .btn:last-child { margin-bottom: 0; }
    .btn:active { transform: scale(0.97); opacity: 0.85; }
    .btn:disabled { opacity: 0.32; cursor: not-allowed; transform: none; }
    .btn-primary {
      background: linear-gradient(135deg, #3b82f6, #2563eb);
      color: #fff;
      box-shadow: 0 4px 20px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
    }
    .btn-success {
      background: linear-gradient(135deg, #22c55e, #16a34a);
      color: #fff;
      box-shadow: 0 4px 20px rgba(34,197,94,0.35);
    }
    .btn-danger {
      background: var(--red-dim);
      color: #f87171;
      border: 1px solid rgba(239,68,68,0.24);
    }
    .btn-secondary {
      background: rgba(255,255,255,0.06);
      color: var(--text2);
      border: 1px solid var(--border2);
    }

    /* ── CARDS ── */
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 18px 16px;
      margin-bottom: 14px;
    }
    .card h2 {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 14px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }

    /* ── BADGES ── */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.2px;
    }
    .badge-green  { background: rgba(34,197,94,0.13);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
    .badge-yellow { background: rgba(245,158,11,0.13); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
    .badge-red    { background: rgba(239,68,68,0.13);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
    .badge-blue   { background: var(--blue-dim); color: #60a5fa; border: 1px solid var(--blue-border); }
    .badge-purple { background: rgba(168,85,247,0.13); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }

    /* ── STATUS ROWS ── */
    .status-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      font-size: 14px;
    }
    .status-row:last-child { border-bottom: none; }
    .status-label { color: var(--text2); }

    /* ── DIVIDER ── */
    .divider { height: 1px; background: var(--border); margin: 4px 0 14px; }

    /* ── STUB ── */
    .stub {
      text-align: center;
      padding: 72px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .stub-icon { font-size: 52px; margin-bottom: 16px; }
    .stub-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
    .stub-desc { font-size: 14px; color: var(--text2); line-height: 1.65; max-width: 280px; }
    .stub-badge {
      display: inline-block;
      margin-top: 18px;
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 11px; font-weight: 700;
      background: var(--blue-dim);
      color: #60a5fa;
      border: 1px solid var(--blue-border);
    }

    /* ── SPINNERS ── */
    .mchs-spinner, .news-spinner, .bridge-spinner {
      width: 36px; height: 36px;
      border: 2.5px solid rgba(255,255,255,0.08);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto;
    }
    .mchs-spinner   { border-top-color: var(--red); }
    .news-spinner   { border-top-color: var(--blue); }
    .bridge-spinner { border-top-color: var(--cyan); }

    /* ── MCS ── */
    .mchs-tabs {
      display: flex; gap: 4px;
      background: rgba(0,0,0,0.3);
      border-radius: 14px; padding: 4px;
      margin-bottom: 16px;
    }
    .mchs-tab {
      flex: 1; padding: 10px;
      border: none; border-radius: 10px;
      font-size: 14px; font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: all 0.2s;
      font-family: inherit;
    }
    .mchs-tab.active { background: var(--bg2); color: #f87171; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }

    .mchs-state { text-align: center; padding: 72px 24px; }
    .mchs-state-text { color: var(--text2); font-size: 14px; margin-top: 14px; }

    .mchs-img {
      width: 100%; border-radius: 16px;
      display: block; margin-bottom: 14px;
      object-fit: cover; max-height: 210px;
      cursor: zoom-in;
    }
    .mchs-date-header { margin-bottom: 16px; }
    .mchs-date-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(239,68,68,0.1);
      border: 1px solid rgba(239,68,68,0.24);
      border-radius: 10px;
      padding: 6px 14px;
      font-size: 14px; font-weight: 700; color: #f87171;
      margin-bottom: 4px;
    }
    .mchs-pubdate-row { font-size: 11px; color: var(--muted); padding-left: 2px; margin-top: 4px; }
    .mchs-section-label {
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
      color: var(--muted); font-weight: 700;
      margin: 16px 0 10px;
    }
    .mchs-row { display: flex; gap: 8px; margin-bottom: 8px; }
    .mchs-info-box {
      flex: 1;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 14px; padding: 12px;
    }
    .mchs-info-label {
      font-size: 10px; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.5px;
      margin-bottom: 5px; font-weight: 700;
      display: flex; align-items: center; gap: 5px;
    }
    .mchs-info-label .ico { width: 13px; height: 13px; }
    .mchs-alert > .ico { width: 17px; height: 17px; margin-top: 1px; }
    .mchs-info-value { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); }
    .mchs-info-value.temp { font-size: 20px; font-weight: 700; color: #fbbf24; }

    .mchs-alert {
      background: rgba(239,68,68,0.08);
      border: 1px solid rgba(239,68,68,0.2);
      border-radius: 14px; padding: 12px 14px;
      margin-bottom: 8px; font-size: 13px;
      color: #fca5a5; display: flex; gap: 10px;
      align-items: flex-start; line-height: 1.5;
    }
    .mchs-alert.ok {
      background: rgba(34,197,94,0.07);
      border-color: rgba(34,197,94,0.18);
      color: #86efac;
    }

    .mchs-water-card {
      background: rgba(59,130,246,0.07);
      border: 1px solid rgba(59,130,246,0.18);
      border-radius: 14px; padding: 14px;
      margin-bottom: 10px;
    }
    .mchs-water-title {
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
      color: #60a5fa; font-weight: 700; margin-bottom: 8px;
    }
    .mchs-water-row { font-size: 13px; line-height: 1.6; color: var(--text2); margin-bottom: 6px; }
    .mchs-water-row:last-child { margin-bottom: 0; }
    .mchs-water-label { color: var(--muted); font-size: 11px; margin-bottom: 2px; }

    .mchs-source-link {
      display: block; text-align: center;
      color: #60a5fa; font-size: 13px; font-weight: 600;
      text-decoration: none; margin-top: 14px; padding: 12px;
      background: var(--blue-dim); border-radius: 12px;
      border: 1px solid var(--blue-border);
      transition: background 0.15s;
    }
    .mchs-pubdate { font-size: 11px; }
    .mchs-source { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 10px 0 2px; }
    .mchs-source a { color: #60a5fa; text-decoration: none; font-weight: 500; }

    /* ── BRIDGES ── */
    .bridge-check-time { font-size: 11px; color: var(--muted); text-align: right; margin-bottom: 10px; }

    /* Статус-баннер мостов (today + время проверки) */
    .bridge-status-banner {
      background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(6,182,212,0.08));
      border: 1px solid var(--blue-border);
      border-radius: 16px;
      padding: 14px 16px;
      margin-bottom: 14px;
    }
    .bridge-status-text { font-size: 14px; line-height: 1.5; font-weight: 600; }
    .bridge-status-check {
      font-size: 11.5px; color: var(--text2); margin-top: 8px;
      display: flex; align-items: center; gap: 5px;
    }

    /* ── Путевая информация ── */
    .pt-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 16px;
      margin-bottom: 12px;
    }
    .pt-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.2px; }
    .pt-title .ico { color: #60a5fa; }
    .pt-meta {
      display: flex; flex-wrap: wrap; gap: 6px;
      margin-top: 8px;
    }
    .pt-chip {
      font-size: 11px; color: var(--text2);
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      border-radius: 8px; padding: 3px 8px;
    }
    .pt-change {
      background: rgba(245,158,11,0.09);
      border: 1px solid rgba(245,158,11,0.3);
      border-radius: 12px;
      padding: 10px 12px;
      margin-top: 12px;
      font-size: 13px; line-height: 1.5;
    }
    .pt-change-label {
      font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
      color: var(--amber); margin-bottom: 4px;
    }
    .pt-items { margin-top: 12px; }
    .pt-item {
      position: relative;
      padding: 10px 0 10px 16px;
      font-size: 13.5px; line-height: 1.55; color: var(--text);
      border-bottom: 1px solid rgba(255,255,255,0.045);
    }
    .pt-item:last-child { border-bottom: none; padding-bottom: 2px; }
    .pt-item::before {
      content: '';
      position: absolute; left: 0; top: 17px;
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--blue);
      opacity: 0.75;
    }
    .pt-item.warn::before { background: var(--amber); }
    .pt-item.danger::before { background: #ef4444; }
    .bridge-section-header {
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
      color: var(--muted); font-weight: 700;
      margin: 18px 0 10px 2px;
    }
    .bridge-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px; padding: 14px 16px;
      margin-bottom: 10px;
      display: flex; align-items: flex-start; gap: 12px;
    }
    .bridge-card.active {
      background: rgba(6,182,212,0.07);
      border-color: rgba(6,182,212,0.24);
    }
    .bridge-card.open-now {
      background: rgba(34,197,94,0.07);
      border-color: rgba(34,197,94,0.24);
    }
    .bridge-icon {
      width: 40px; height: 40px; flex-shrink: 0;
      border-radius: 13px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(6,182,212,0.1);
      border: 1px solid rgba(6,182,212,0.18);
      color: #22d3ee;
      position: relative;
    }
    .bridge-icon .ico { width: 20px; height: 20px; }
    .bridge-card.open-now .bridge-icon { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); color: #4ade80; }
    .bridge-card.open-now .bridge-icon::after {
      content: '';
      position: absolute; top: -2px; right: -3px;
      width: 8px; height: 8px;
      border-radius: 50%; background: var(--green);
      box-shadow: 0 0 0 2px var(--bg);
      animation: pulse-dot 1.6s ease infinite;
    }
    @keyframes pulse-dot {
      0%,100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(34,197,94,0.28); }
      50%      { box-shadow: 0 0 0 2px var(--bg), 0 0 0 7px rgba(34,197,94,0.1); }
    }
    .bridge-body { flex: 1; min-width: 0; }
    .bridge-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
    .bridge-times { display: flex; flex-direction: column; gap: 4px; }
    .bridge-time-row {
      font-size: 13px; color: var(--text2);
      display: flex; align-items: center; gap: 6px;
    }
    .time-val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
    .bridge-time-sep { color: var(--muted); }
    .bridge-timer { font-size: 12px; font-weight: 600; margin-top: 7px; color: #22d3ee; letter-spacing: 0.2px; }
    .bridge-card.open-now .bridge-timer { color: #4ade80; }
    .bridge-badge {
      flex-shrink: 0; padding: 4px 10px; border-radius: 20px;
      font-size: 11px; font-weight: 700; white-space: nowrap;
    }
    .bridge-badge.open { background: rgba(34,197,94,0.14);  color: #4ade80;  border: 1px solid rgba(34,197,94,0.28); }
    .bridge-badge.soon { background: rgba(6,182,212,0.14);  color: #22d3ee;  border: 1px solid rgba(6,182,212,0.28); }
    .bridge-badge.done { background: rgba(100,116,139,0.1); color: #94a3b8;  border: 1px solid rgba(100,116,139,0.2); }
    .bridge-badge.no   { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,0.07); }
    .bridge-no-active {
      text-align: center; padding: 22px;
      background: var(--green-dim); border: 1px solid rgba(34,197,94,0.18);
      border-radius: 16px; margin-bottom: 14px;
      font-size: 14px; font-weight: 600; color: #4ade80;
    }

    /* ── NEWS ── */
    .news-state { text-align: center; padding: 72px 24px; }
    .news-state-text { color: var(--text2); font-size: 14px; margin-top: 14px; }

    .news-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 12px;
    }
    .news-card.tappable { cursor: pointer; transition: transform 0.14s var(--ease-out), border-color 0.14s; }
    .news-card.tappable:active { transform: scale(0.98); border-color: var(--border2); }
    .news-cover {
      position: relative;
      background: rgba(255,255,255,0.03);
    }
    .news-image {
      width: 100%; object-fit: cover;
      height: 172px; display: block;
    }
    .news-cover::after {
      /* мягкий градиент, чтобы обложка «вплавлялась» в карточку */
      content: '';
      position: absolute; inset: auto 0 0 0; height: 42px;
      background: linear-gradient(to bottom, transparent, rgba(10,16,30,0.55));
      pointer-events: none;
    }
    .news-card-body { padding: 13px 16px 14px; }
    .news-byline {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 11px;
    }
    .news-ava, .article-ava {
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 1.5px solid rgba(255,255,255,0.14);
      box-shadow: 0 2px 10px rgba(0,0,0,0.35);
      background: var(--bg2);
    }
    .news-ava { width: 36px; height: 36px; }
    .article-ava { width: 46px; height: 46px; }
    .ava-fallback {
      display: inline-flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      color: #fff; font-weight: 700; font-size: 15px;
    }
    .news-byline-text { flex: 1; min-width: 0; }
    .news-author-name {
      font-size: 13px; font-weight: 650; color: var(--text);
      letter-spacing: -0.1px;
      overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    }
    .news-date { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }
    .news-title {
      font-size: 16px; font-weight: 700;
      line-height: 1.38; margin-bottom: 7px;
      color: var(--text); letter-spacing: -0.25px;
    }
    .news-desc {
      font-size: 13px; color: var(--text2);
      line-height: 1.55; margin-bottom: 10px;
      display: -webkit-box; -webkit-line-clamp: 3;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    .news-readmore {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 12.5px; font-weight: 650; color: #60a5fa;
    }
    .news-readmore .ico { width: 14px; height: 14px; }

    /* ── NEWS MODAL ── */
    #news-modal {
      display: none; position: fixed; inset: 0; z-index: 200;
      background: var(--bg); flex-direction: column; overflow: hidden;
    }
    #news-modal.open { display: flex; animation: slide-up 0.25s ease; }
    @keyframes slide-up {
      from { transform: translateY(28px); opacity: 0; }
      to   { transform: translateY(0);    opacity: 1; }
    }
    .news-modal-header {
      height: calc(var(--header-h) + var(--safe-top));
      padding-top: var(--safe-top);
      padding-left: 16px; padding-right: 16px;
      flex-shrink: 0;
      background: rgba(7,12,24,0.98);
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; gap: 12px;
    }
    .news-modal-title {
      flex: 1; font-size: 15px; font-weight: 600;
      overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    }
    .news-modal-body {
      flex: 1; overflow-y: auto;
      overscroll-behavior-y: contain;
      padding: 16px;
      padding-bottom: calc(24px + var(--safe-bottom));
    }
    .news-modal-content { max-width: 640px; margin: 0 auto; }
    .article-head { padding: 4px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
    .article-title {
      font-size: 21px; font-weight: 800; line-height: 1.3;
      letter-spacing: -0.4px; margin-bottom: 12px;
    }
    .article-meta { display: flex; gap: 8px; flex-wrap: wrap; }
    .article-chip {
      font-size: 11px; font-weight: 600; color: var(--text2);
      background: rgba(255,255,255,0.05); border: 1px solid var(--border);
      border-radius: 20px; padding: 4px 10px;
    }
    .article-byline {
      display: flex; align-items: center; gap: 12px;
      background: rgba(255,255,255,0.035);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px 13px;
    }
    .article-byline-text { flex: 1; min-width: 0; }
    .article-author-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.15px; }
    .article-byline-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
    .article-ava.ava-fallback { font-size: 19px; }
    .article-body p {
      margin-bottom: 13px; line-height: 1.7; font-size: 15px;
      color: var(--text2); white-space: pre-line;
    }
    .article-body img {
      width: 100%; border-radius: 14px; margin: 6px 0 8px;
      display: block; cursor: zoom-in;
      border: 1px solid var(--border);
    }
    .article-body a { color: #60a5fa; text-decoration: none; word-break: break-word; }
    .article-body strong { color: var(--text); }
    .article-body h3 { font-size: 16px; margin: 16px 0 8px; color: var(--text); font-weight: 700; }
    .article-figcap {
      font-size: 11px !important; color: var(--muted) !important;
      margin: -2px 0 14px !important; text-align: center;
    }
    .article-src { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
    .btn-article-src {
      display: block; text-align: center; padding: 13px;
      background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff !important;
      border-radius: 14px; font-size: 14px; font-weight: 650; text-decoration: none;
      box-shadow: 0 4px 18px rgba(59,130,246,0.3);
      transition: transform 0.12s;
    }
    .btn-article-src:active { transform: scale(0.97); }
    .btn-article-tg {
      display: block; text-align: center; padding: 12px;
      background: var(--blue-dim); color: #60a5fa !important;
      border: 1px solid var(--blue-border); border-radius: 14px;
      font-size: 13px; font-weight: 600; text-decoration: none;
      transition: transform 0.12s;
    }
    .btn-article-tg:active { transform: scale(0.97); }

    /* ── LIGHTBOX ── */
    #lightbox {
      display: none; position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.95);
      align-items: center; justify-content: center;
    }
    #lightbox.open { display: flex; animation: lb-in 0.18s ease; }
    @keyframes lb-in { from { opacity:0; } to { opacity:1; } }
    #lb-img {
      max-width: 95vw; max-height: 90vh;
      border-radius: 12px; object-fit: contain;
      animation: lb-scale 0.18s ease;
    }
    @keyframes lb-scale { from { transform:scale(0.93); } to { transform:scale(1); } }
    .lb-close {
      position: absolute; top: max(16px, var(--safe-top)); right: 16px;
      width: 38px; height: 38px; border-radius: 50%;
      background: rgba(255,255,255,0.12);
      backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; color: #fff; cursor: pointer;
    }

    /* ── PROFILE ── */
    .profile-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 0 22px;
      gap: 14px;
    }
    .user-avatar {
      width: 74px; height: 74px;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      border-radius: 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 30px;
      font-weight: 700;
      color: #fff;
      box-shadow: 0 4px 24px rgba(37,99,235,0.45);
      border: 2px solid rgba(255,255,255,0.1);
    }
    .profile-info { text-align: center; }
    .user-name { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 7px; letter-spacing: -0.3px; }
    .user-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

    .settings-section { margin-bottom: 10px; }
    .settings-label {
      font-size: 11px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.6px;
      margin-bottom: 8px; padding-left: 4px;
    }
    .settings-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px; overflow: hidden;
    }
    .settings-row {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .settings-row:last-child { border-bottom: none; }
    .settings-row-icon {
      width: 32px; height: 32px;
      border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .settings-row-icon.blue-icon   { background: rgba(59,130,246,0.14);  color: #60a5fa; }
    .settings-row-icon.red-icon    { background: rgba(239,68,68,0.12);   color: #f87171; }
    .settings-row-icon.cyan-icon   { background: rgba(6,182,212,0.13);   color: #22d3ee; }
    .settings-row-icon.green-icon  { background: rgba(34,197,94,0.13);   color: #4ade80; }
    .settings-row-icon.indigo-icon { background: rgba(129,140,248,0.14); color: #a5b4fc; }
    .settings-row-icon svg { width: 18px; height: 18px; }
    .settings-row-text { flex: 1; }
    .settings-row-title { font-size: 14px; font-weight: 500; color: var(--text); }

    .settings-btn-group { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
    .settings-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .mob-hint {
      font-size: 12px; color: var(--text2); line-height: 1.55;
      padding: 0 16px 14px;
    }

    /* ── SWITCH ── */
    .switch {
      position: relative; flex-shrink: 0;
      width: 46px; height: 28px;
    }
    .switch input { opacity: 0; width: 0; height: 0; }
    .switch-slider {
      position: absolute; inset: 0;
      background: rgba(255,255,255,0.12);
      border-radius: 999px;
      transition: background 0.2s;
      cursor: pointer;
    }
    .switch-slider::before {
      content: '';
      position: absolute;
      width: 24px; height: 24px;
      left: 2px; top: 2px;
      background: #fff;
      border-radius: 50%;
      transition: transform 0.2s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    .switch input:checked + .switch-slider { background: var(--blue); }
    .switch input:checked + .switch-slider::before { transform: translateX(18px); }
    .switch input:disabled + .switch-slider { opacity: 0.4; cursor: default; }

    .station-select {
      width: 100%;
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text);
      font-family: inherit; font-size: 14px;
      padding: 10px 12px;
      appearance: none;
      -webkit-appearance: none;
    }
    .lvl-thr-row { display: flex; align-items: center; gap: 12px; }
    .lvl-thr-label { flex: 1; font-size: 14px; color: var(--text2); white-space: nowrap; }
    .lvl-thr-select { width: 130px; flex-shrink: 0; }
    .lvl-thr-select:disabled { opacity: 0.45; }
    .lvl-lock { color: #fbbf24; }
    .lvl-lock .ico { width: 12px; height: 12px; }
    .lvl-hint { font-size: 12px; color: var(--muted); line-height: 1.4; }

    /* ── УРОВНИ ВОДЫ ── */
    .wl-head {
      display: flex; align-items: baseline; justify-content: space-between;
      margin: 4px 4px 14px;
    }
    .wl-head-title { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
    .wl-head-sub { font-size: 11px; color: var(--muted); font-weight: 600; }
    .wl-card {
      display: flex; align-items: center; gap: 13px;
      background: linear-gradient(155deg, rgba(96,165,250,0.08), rgba(255,255,255,0.015) 50%), var(--card);
      border: 1px solid var(--border);
      border-radius: 20px; padding: 14px 16px; margin-bottom: 10px;
      cursor: pointer;
      transition: transform 0.12s;
    }
    .wl-card:active { transform: scale(0.98); }
    .wl-card.special {
      background: linear-gradient(155deg, rgba(168,85,247,0.14), rgba(96,165,250,0.05) 60%), var(--card);
      border-color: rgba(168,85,247,0.3);
    }
    .wl-ico {
      width: 42px; height: 42px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: #60a5fa;
      background: rgba(96,165,250,0.1);
      border: 1px solid rgba(96,165,250,0.16);
      border-radius: 13px;
    }
    .wl-ico .ico { width: 20px; height: 20px; }
    .wl-card.special .wl-ico { background: rgba(168,85,247,0.13); border-color: rgba(168,85,247,0.28); color: #c084fc; }
    .wl-body { flex: 1; min-width: 0; }
    .wl-name { font-size: 14px; font-weight: 650; letter-spacing: -0.1px; }
    .wl-sub { font-size: 11px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
    .wl-val { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
    .wl-level {
      font-size: 19px; font-weight: 800; color: #60a5fa;
      font-variant-numeric: tabular-nums; letter-spacing: -0.4px;
    }
    .wl-level span { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
    .wl-delta {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 10px; font-weight: 700;
      border-radius: 20px; padding: 2px 8px; margin-top: 4px;
      background: rgba(255,255,255,0.06); color: var(--muted);
    }
    .wl-delta.up   { background: rgba(245,158,11,0.14); color: #fbbf24; }
    .wl-delta.down { background: rgba(34,197,94,0.14);  color: #4ade80; }
    .wl-detail {
      display: none;
      background: rgba(0,0,0,0.25); border: 1px solid var(--border);
      border-radius: 20px; padding: 15px 16px; margin: -4px 0 10px;
    }
    .wl-detail.open { display: block; }
    .wl-chart-caption {
      font-size: 10px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;
    }
    .wl-chart { width: 100%; height: 84px; display: block; margin-bottom: 4px; }
    .wl-chart-range {
      display: flex; justify-content: space-between;
      font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums;
      margin-bottom: 10px;
    }
    .wl-note {
      font-size: 12px; color: #fbbf24; line-height: 1.5;
      background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15);
      border-radius: 12px; padding: 9px 11px; margin-bottom: 10px;
    }
    .wl-history-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 7px 2px; font-size: 12.5px;
      border-bottom: 1px solid rgba(255,255,255,0.045);
    }
    .wl-history-row:last-child { border-bottom: none; }
    .wl-hr-time { color: var(--text2); font-variant-numeric: tabular-nums; }
    .wl-hr-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
    .btn-wl-more {
      width: 100%; margin-top: 10px; padding: 11px;
      background: var(--blue-dim); color: #60a5fa;
      border: 1px solid var(--blue-border); border-radius: 13px;
      font-family: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
      transition: transform 0.12s;
    }
    .btn-wl-more:active { transform: scale(0.97); }
    .wl-attr { font-size: 11px; color: var(--muted); margin-top: 10px; }
    .wl-attr a { color: #60a5fa; text-decoration: none; }

    /* ── CONSENT AT REGISTER ── */
    .consent-check {
      display: flex; align-items: flex-start; gap: 10px;
      margin: 2px 2px 4px;
      cursor: pointer;
      -webkit-user-select: none; user-select: none;
    }
    .consent-check input { position: absolute; opacity: 0; width: 0; height: 0; }
    .consent-check-box {
      width: 21px; height: 21px; flex-shrink: 0;
      margin-top: 1px;
      border-radius: 7px;
      border: 1.5px solid var(--border2);
      background: rgba(255,255,255,0.05);
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, border-color 0.15s;
    }
    .consent-check-box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(0.5); transition: opacity 0.15s, transform 0.18s var(--ease-spring); }
    .consent-check input:checked + .consent-check-box { background: var(--blue); border-color: var(--blue); }
    .consent-check input:checked + .consent-check-box svg { opacity: 1; transform: scale(1); }
    .consent-check.shake { animation: consent-shake 0.4s ease; }
    @keyframes consent-shake {
      0%,100% { transform: translateX(0); }
      20%,60% { transform: translateX(-5px); }
      40%,80% { transform: translateX(5px); }
    }
    .consent-check-text { font-size: 12px; color: var(--text2); line-height: 1.55; }
    .consent-check-text a { color: #60a5fa; text-decoration: none; font-weight: 600; }
    .consent-check + .consent-check { margin-top: 8px; }
    .tg-consent { margin-bottom: 12px; }

    /* ── CONSENT BANNER ── */
    .consent-banner {
      background: rgba(245,158,11,0.1);
      border: 1px solid rgba(245,158,11,0.3);
      border-radius: 18px;
      padding: 16px;
      margin-bottom: 10px;
    }
    .consent-title { font-size: 14px; font-weight: 700; color: #fbbf24; margin-bottom: 6px; }
    .consent-text { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
    .consent-links { font-size: 12px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
    .consent-links a { color: #60a5fa; text-decoration: none; }


    /* ── LOG ── */
    .log {
      background: rgba(0,0,0,0.35); border-radius: 12px;
      padding: 12px; font-size: 11px;
      font-family: 'Menlo', 'Monaco', 'SF Mono', monospace;
      max-height: 160px; overflow-y: auto; line-height: 1.7;
    }
    .log::-webkit-scrollbar { width: 3px; }
    .log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
    .log-entry { border-bottom: 1px solid rgba(255,255,255,0.03); }
    .log-entry.ok   { color: #4ade80; }
    .log-entry.err  { color: #f87171; }
    .log-entry.info { color: #60a5fa; }
    .log-entry.warn { color: #fbbf24; }

    /* ── SKELETON SCREENS ── */
    @keyframes shimmer {
      from { background-position: -200% 0; }
      to   { background-position:  200% 0; }
    }
    .skel {
      background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s ease-in-out infinite;
      border-radius: 8px;
    }
    .skel-h  { height: 14px; border-radius: 7px; }
    .skel-sm { height: 11px; border-radius: 6px; }
    .skel-lg { height: 20px; border-radius: 10px; }
    .skel-block { border-radius: 14px; }

    /* ── TELEGRAM LOGIN ── */
    .btn-telegram {
      background: linear-gradient(135deg, #2AABEE, #229ED9);
      color: #fff;
      display: flex; align-items: center; justify-content: center; gap: 9px;
      box-shadow: 0 4px 20px rgba(42,171,238,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    }
    .btn-telegram svg { width: 19px; height: 19px; fill: #fff; flex-shrink: 0; }
    .auth-divider {
      display: flex; align-items: center; gap: 12px;
      margin: 14px 0;
      color: var(--muted); font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.6px;
    }
    .auth-divider::before, .auth-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border2);
    }
    .tg-wait-row {
      display: flex; align-items: center; justify-content: center; gap: 9px;
      font-size: 13px; color: var(--text2);
      padding: 10px 0 12px;
    }
    .mini-spinner {
      width: 15px; height: 15px; flex-shrink: 0;
      border: 2px solid rgba(255,255,255,0.12);
      border-top-color: #2AABEE;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* ── TOASTS ── */
    #toast-wrap {
      position: fixed; left: 0; right: 0;
      top: calc(var(--header-h) + var(--safe-top) + 8px);
      z-index: 900;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      pointer-events: none;
      padding: 0 16px;
    }
    .toast {
      display: flex; align-items: center; gap: 8px;
      background: rgba(15,25,45,0.97);
      border: 1px solid var(--border2);
      border-radius: 14px;
      padding: 11px 16px;
      font-size: 13px; font-weight: 500; color: var(--text);
      box-shadow: 0 12px 40px rgba(0,0,0,0.55);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      max-width: 100%;
      animation: toast-in 0.32s var(--ease-spring) both;
    }
    .toast.out { animation: toast-out 0.25s ease both; }
    @keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.95); } to { opacity: 1; transform: none; } }
    @keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.97); } }
    .toast .t-ico { flex-shrink: 0; display: flex; }
    .toast .t-ico .ico { width: 17px; height: 17px; }
    .toast .t-ico.ok   { color: #4ade80; }
    .toast .t-ico.err  { color: #f87171; }
    .toast .t-ico.warn { color: #fbbf24; }
    .toast .t-ico.info { color: #60a5fa; }

    /* ── NEWS TABS & BOOKMARKS ── */
    .news-tabs .mchs-tab.active { color: #60a5fa; }
    .btn-bookmark {
      width: 42px; height: 38px; flex-shrink: 0;
      border-radius: 10px;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border2);
      color: var(--text2);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease-spring);
    }
    .btn-bookmark svg { width: 17px; height: 17px; }
    .btn-bookmark.saved { background: var(--blue-dim); border-color: var(--blue-border); color: #60a5fa; }
    .btn-bookmark:active { transform: scale(0.86); }
    #btn-modal-save.active { background: var(--blue-dim); color: #60a5fa; border-color: var(--blue-border); }

    /* ── MCS EMPTY ── */
    .mchs-empty { text-align: center; padding: 42px 22px 44px; }
    .mchs-empty-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
    .mchs-empty-desc { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 300px; margin: 0 auto; }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
