    :root {
      --bg: #25274d;
      --surface: #464866;
      --muted: #aaabb8;
      --accent: #2e9cca;
      --accent-deep: #29648a;
      --line: rgba(170, 171, 184, 0.2);
      --text: #f5f7ff;
      --glow: rgba(46, 156, 202, 0.35);
      --ok: #25d0ff;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      overflow-x: hidden;
    }

    body {
      margin: 0;
      font-family: "Trebuchet MS", "Segoe UI", sans-serif;
      background:
        radial-gradient(900px 500px at 85% 20%, rgba(46, 156, 202, 0.22), transparent 60%),
        radial-gradient(1200px 700px at 20% 0%, rgba(41, 100, 138, 0.25), transparent 65%),
        var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    .ticker-wrap {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(18, 19, 40, 0.9);
      border-bottom: 1px solid rgba(37, 208, 255, 0.4);
      overflow: hidden;
      backdrop-filter: blur(6px);
    }

    /* Safari (all versions, no JS dependency): sticky + backdrop-filter triggers
       a GPU compositor crash. Detect Safari via -webkit-hyphens support and
       remove the filter before the first paint. */
    @supports (-webkit-hyphens: none) {
      .ticker-wrap {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(12, 13, 32, 0.97);
      }
    }

    .ticker-track {
      display: inline-flex;
      gap: 2.5rem;
      align-items: center;
      white-space: nowrap;
      padding: 0.7rem 0;
      min-width: 100%;
      cursor: pointer;
      animation: none;
      will-change: transform;
    }

    .ticker-item {
      color: #7fe9ff;
      font-size: 0.9rem;
      letter-spacing: 0.02em;
      text-shadow: 0 0 8px rgba(37, 208, 255, 0.28);
    }

    .ticker-item strong {
      color: #d8f8ff;
      margin-right: 0.35rem;
    }

    @keyframes ticker {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .page {
      width: min(1180px, calc(100% - 2rem));
      margin: 1.1rem auto 2.5rem;
    }

    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0.6rem 0 1rem;
    }

    .brand {
      font-size: clamp(1.4rem, 2.8vw, 2rem);
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .brand .accent {
      color: var(--accent);
    }

    .nav a {
      color: var(--text);
      text-decoration: none;
      padding: 0.55rem 0.9rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
      transition: transform 120ms ease, border-color 120ms ease;
    }

    .nav a:hover {
      transform: translateY(-1px);
      border-color: rgba(46, 156, 202, 0.65);
    }

    /* ── Hamburger ── */
    .hamburger-btn {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;
      gap: 5px;
      width: 40px;
      height: 40px;
      padding: 8px;
      background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
      border: 1px solid var(--line);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 120ms ease;
      flex-shrink: 0;
    }
    .hamburger-btn:hover { border-color: rgba(46,156,202,0.65); }
    .hamburger-btn span {
      display: block;
      width: 100%;
      height: 2px;
      background: #f5f7ff;
      border-radius: 2px;
      transition: transform 200ms ease, opacity 200ms ease;
      flex-shrink: 0;
    }
    .hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger-btn.open span:nth-child(2) { opacity: 0; }
    .hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hamburger-icon { display: block; }
    .hamburger-btn .hb-1, .hamburger-btn .hb-2, .hamburger-btn .hb-3 {
      transition: transform 200ms ease, opacity 200ms ease;
      transform-origin: 12px 12px;
    }
    .hamburger-btn.open .hb-1 { transform: translateY(6px) rotate(45deg); }
    .hamburger-btn.open .hb-2 { opacity: 0; }
    .hamburger-btn.open .hb-3 { transform: translateY(-6px) rotate(-45deg); }

    /* ── Drawer overlay ── */
    .drawer-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 90;
      background: rgba(0,0,0,0.45);
    }
    .drawer-overlay.open { display: block; }

    /* ── Drawer panel ── */
    .drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 100;
      width: min(300px, 82vw);
      background: linear-gradient(160deg, #1e2044, #181a35);
      border-left: 1px solid rgba(46,156,202,0.25);
      box-shadow: -8px 0 32px rgba(0,0,0,0.45);
      transform: translateX(100%);
      transition: transform 240ms cubic-bezier(0.4,0,0.2,1);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }
    .drawer.open { transform: translateX(0); }

    .drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.1rem 0.8rem;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .drawer-title {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .drawer-close {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 1.3rem;
      cursor: pointer;
      line-height: 1;
      padding: 0.2rem 0.4rem;
      border-radius: 6px;
      transition: color 120ms;
    }
    .drawer-close:hover { color: var(--text); }

    .drawer-nav {
      display: flex;
      flex-direction: column;
      padding: 0.6rem 0.7rem;
      gap: 2px;
      flex: 1;
    }
    .drawer-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.8rem;
      border-radius: 10px;
      color: var(--text);
      text-decoration: none;
      font-size: 0.95rem;
      background: none;
      border: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
      transition: background 120ms ease;
    }
    .drawer-item:hover { background: rgba(46,156,202,0.12); }
    .drawer-item .di-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }

    .drawer-sep {
      height: 1px;
      background: rgba(255,255,255,0.07);
      margin: 0.4rem 0.8rem;
    }

    .drawer-item.danger { color: #ff7b7b; }
    .drawer-item.danger:hover { background: rgba(255,80,80,0.1); }
    .drawer-item.muted-item { color: var(--muted); font-size: 0.85rem; }
    .drawer-item.muted-item:hover { background: rgba(255,255,255,0.05); }

    .drawer-user {
      padding: 0.8rem 1.1rem;
      border-top: 1px solid rgba(255,255,255,0.07);
      font-size: 0.8rem;
      color: var(--muted);
      word-break: break-all;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 1rem;
      align-items: stretch;
    }

    .hero-card,
    .radar-card,
    .panel {
      display: flex;
      flex-direction: column;
      height: 100%;
      background: linear-gradient(170deg, rgba(70, 72, 102, 0.9), rgba(37, 39, 77, 0.92));
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    }

    .hero-card {
      padding: 1.5rem;
    }

    .tags {
      display: flex;
      gap: 0.55rem;
      flex-wrap: wrap;
      margin-bottom: 0.7rem;
    }

    .tag {
      position: relative;
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(46, 156, 202, 0.6);
      color: #b2e9ff;
      background: rgba(46, 156, 202, 0.12);
      border-radius: 999px;
      padding: 0.3rem 0.65rem;
      font-size: 0.78rem;
      cursor: help;
      outline: none;
    }

    .tag[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 0.55rem);
      transform: translateX(-50%) translateY(4px);
      width: max-content;
      max-width: min(320px, 84vw);
      padding: 0.5rem 0.65rem;
      border-radius: 10px;
      border: 1px solid rgba(37, 208, 255, 0.45);
      background: rgba(10, 12, 28, 0.97);
      color: #e8f8ff;
      font-size: 0.76rem;
      line-height: 1.35;
      text-align: center;
      white-space: normal;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
      z-index: 25;
    }

    .tag[data-tooltip]::before {
      content: '';
      position: absolute;
      left: 50%;
      bottom: calc(100% + 0.2rem);
      transform: translateX(-50%) translateY(4px);
      width: 10px;
      height: 10px;
      background: rgba(10, 12, 28, 0.97);
      border-right: 1px solid rgba(37, 208, 255, 0.45);
      border-bottom: 1px solid rgba(37, 208, 255, 0.45);
      rotate: 45deg;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
      z-index: 24;
    }

    .tag[data-tooltip]:hover::after,
    .tag[data-tooltip]:hover::before,
    .tag[data-tooltip]:focus-visible::after,
    .tag[data-tooltip]:focus-visible::before {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    h1 {
      margin: 0;
      line-height: 1.06;
      font-size: clamp(1.85rem, 4.2vw, 3.3rem);
      max-width: 20ch;
    }

    h1 .accent {
      color: var(--accent);
    }

    .subtitle {
      color: #dde2f8;
      line-height: 1.45;
      margin: 0.9rem 0 1rem;
      max-width: 52ch;
      font-size: clamp(1rem, 1.8vw, 1.16rem);
    }

    .hero-actions {
      display: flex;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    .btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      padding: 0.8rem 1.1rem;
      border: 1px solid transparent;
      text-decoration: none;
      font-weight: 700;
      min-width: 170px;
    }

    .btn.primary {
      background: linear-gradient(150deg, #8af2ff, var(--ok));
      color: #061224;
      box-shadow: 0 12px 30px rgba(37, 208, 255, 0.35);
    }

    .btn.secondary {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      border-color: var(--line);
    }

    .btn.btn-disabled {
      background: rgba(255, 255, 255, 0.03);
      color: rgba(226, 232, 248, 0.62);
      border-color: rgba(148, 163, 184, 0.3);
      cursor: not-allowed;
      opacity: 0.8;
    }

    .btn.grid-btn {
      background: linear-gradient(150deg, rgba(76, 233, 214, 0.3), rgba(12, 121, 132, 0.92));
      color: #eafaff;
      border-color: rgba(108, 241, 223, 0.36);
      box-shadow: 0 12px 24px rgba(10, 108, 112, 0.28);
    }

    .btn.calendar-btn {
      background: linear-gradient(150deg, rgba(116, 142, 255, 0.26), rgba(49, 67, 156, 0.92));
      color: #eef4ff;
      border-color: rgba(140, 166, 255, 0.34);
      box-shadow: 0 12px 24px rgba(38, 52, 122, 0.28);
    }

    .btn.map-btn {
      background: linear-gradient(150deg, #b8fbff, #5ee8ff);
      color: #061224;
      border-color: rgba(168, 247, 255, 0.8);
      box-shadow: 0 14px 34px rgba(94, 232, 255, 0.34);
    }

    .btn[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 0.55rem);
      transform: translateX(-50%) translateY(4px);
      width: max-content;
      max-width: min(220px, 80vw);
      padding: 0.45rem 0.65rem;
      border-radius: 10px;
      border: 1px solid rgba(37, 208, 255, 0.45);
      background: rgba(10, 12, 28, 0.97);
      color: #e8f8ff;
      font-size: 0.76rem;
      line-height: 1.35;
      text-align: center;
      white-space: nowrap;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
      z-index: 25;
    }

    .btn[data-tooltip]::before {
      content: '';
      position: absolute;
      left: 50%;
      bottom: calc(100% + 0.2rem);
      transform: translateX(-50%) translateY(4px);
      width: 10px;
      height: 10px;
      background: rgba(10, 12, 28, 0.97);
      border-right: 1px solid rgba(37, 208, 255, 0.45);
      border-bottom: 1px solid rgba(37, 208, 255, 0.45);
      rotate: 45deg;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
      z-index: 24;
    }

    .btn[data-tooltip]:hover::after,
    .btn[data-tooltip]:hover::before,
    .btn[data-tooltip]:focus-visible::after,
    .btn[data-tooltip]:focus-visible::before,
    .btn[data-tooltip].show-tooltip::after,
    .btn[data-tooltip].show-tooltip::before {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    .radar-card {
      display: none;
      position: relative;
      align-items: center;
      justify-content: center;
      margin-top: 0;
      min-height: 320px;
    }

    .radar-graphic-wrap {
      position: relative;
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      user-select: none;
      cursor: pointer;
    }

    .radar-graphic-glow {
      position: absolute;
      inset: 10%;
      border-radius: 50%;
      pointer-events: none;
      box-shadow: 0 0 80px rgba(37, 208, 255, 0.08), 0 0 160px rgba(37, 208, 255, 0.05);
    }

    .radar-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .radar-chip {
      position: absolute;
      display: flex;
      align-items: center;
      gap: 0.38rem;
      padding: 0.35rem 0.62rem;
      border-radius: 0.5rem;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 11px;
      font-weight: 600;
      pointer-events: none;
      white-space: nowrap;
      background: rgba(0, 0, 0, 0.88);
      border: 1px solid rgba(37, 208, 255, 0.22);
      box-shadow: 0 0 8px rgba(37, 208, 255, 0.09);
      backdrop-filter: blur(8px);
    }

    .radar-chip-dot {
      width: 0.38rem;
      height: 0.38rem;
      border-radius: 50%;
      flex-shrink: 0;
      background: #25d0ff;
      box-shadow: 0 0 4px rgb(37, 208, 255);
      animation: chipBlink 2s ease-in-out infinite;
    }

    .radar-chip-label {
      color: #d4d4d8;
    }

    .radar-chip-value {
      color: #25d0ff;
      margin-left: 0.125rem;
    }

    .chip-cook {
      top: 16%;
      right: -8%;
      animation: chipFloat 3.5s ease-in-out infinite, chipBlink 4.2s ease-in-out infinite;
    }

    .chip-hot {
      bottom: 20%;
      right: -8%;
      animation: chipFloat 3.5s ease-in-out 0.8s infinite;
    }

    .chip-filing {
      bottom: 6%;
      left: 2%;
      animation: chipFloat 3.5s ease-in-out 2.1s infinite, chipBlink 4.2s ease-in-out 2.1s infinite;
    }

    .chip-lowest {
      top: 4%;
      left: -8%;
      animation: chipFloat 3.5s ease-in-out 1.2s infinite;
    }

    .state-pulse {
      animation: statePulse 4s ease-in-out infinite;
    }

    .radar-spin {
      animation: radarSpin 7s linear infinite;
      transform-origin: 200px 200px;
    }

    .node-pulse-1 { animation: nodePulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-2 { animation: nodePulse 2.6s ease-out 0.4s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-3 { animation: nodePulse 3s ease-out 0.8s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-4 { animation: nodePulse 2.8s ease-out 1.2s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-5 { animation: nodePulse 2.4s ease-out 0.6s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-6 { animation: nodePulse 3.2s ease-out 1.6s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-7 { animation: nodePulse 2.7s ease-out 0.3s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-8 { animation: nodePulse 3.1s ease-out 1s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-9 { animation: nodePulse 2.5s ease-out 0.5s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-10 { animation: nodePulse 2.9s ease-out 1.4s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-11 { animation: nodePulse 3.3s ease-out 0.9s infinite; transform-box: fill-box; transform-origin: center; }
    .node-pulse-12 { animation: nodePulse 2.3s ease-out 1.8s infinite; transform-box: fill-box; transform-origin: center; }

    @keyframes radarSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes statePulse {
      0%, 100% { opacity: 0.85; }
      50% { opacity: 1; }
    }

    @keyframes nodePulse {
      0% { transform: scale(1); opacity: 0.95; }
      70% { transform: scale(1.9); opacity: 0; }
      100% { transform: scale(1); opacity: 0; }
    }

    @keyframes chipFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }

    @keyframes chipBlink {
      0%, 100% { opacity: 0.85; }
      50% { opacity: 1; }
    }

    .stats {
      margin-top: 1rem;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .stat {
      padding: 0.85rem;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(18, 19, 40, 0.46);
    }

    .stat .label {
      color: var(--muted);
      text-transform: uppercase;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
    }

    .stat .value {
      margin-top: 0.34rem;
      font-size: clamp(1.1rem, 2.1vw, 1.8rem);
      font-weight: 700;
    }

    .grid {
      margin-top: 1rem;
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .panel {
      padding: 1rem;
    }

    h2 {
      margin: 0 0 0.7rem;
      font-size: 1.2rem;
    }

    .table-wrap {
      overflow: auto;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(13, 14, 30, 0.44);
      max-height: 440px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 650px;
    }

    thead th {
      position: sticky;
      top: 0;
      background: rgba(41, 100, 138, 0.92);
      text-align: left;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #e7f8ff;
      padding: 0.72rem;
    }

    td {
      padding: 0.72rem;
      border-top: 1px solid rgba(170, 171, 184, 0.2);
      vertical-align: top;
      color: #eef2ff;
      line-height: 1.36;
    }

    td:nth-child(1),
    td:nth-child(2) {
      white-space: nowrap;
    }

    .empty {
      color: var(--muted);
      padding: 0.9rem;
    }

    .modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 40;
      padding: 16px;
    }

    .modal.open {
      display: flex;
    }

    .auth-options-card {
      width: min(440px, 100%);
      background: #2e3060;
      border: 1px solid rgba(37, 208, 255, 0.2);
      border-radius: 14px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
      padding: 16px;
    }

    .auth-options-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .auth-options-head h3 {
      margin: 0;
      font-size: 22px;
      color: var(--text);
    }

    .auth-options-close {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      padding: 7px 10px;
      cursor: pointer;
    }

    .auth-options-subtitle {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
      margin: 0 0 14px;
    }

    .auth-options-list {
      display: grid;
      gap: 10px;
    }

    .auth-option-btn {
      width: 100%;
      text-align: left;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      border-radius: 10px;
      padding: 10px 12px;
      font-weight: 700;
      cursor: pointer;
    }

    .auth-option-btn:hover {
      border-color: rgba(46, 156, 202, 0.6);
      background: rgba(46, 156, 202, 0.1);
    }

    #auth-option-google {
      background: rgba(46, 156, 202, 0.15);
      border-color: rgba(46, 156, 202, 0.4);
      color: #b2e9ff;
    }

    #auth-option-google:hover {
      background: rgba(46, 156, 202, 0.25);
      border-color: rgba(46, 156, 202, 0.6);
    }

    #auth-option-email {
      background: rgba(37, 208, 255, 0.1);
      border-color: rgba(37, 208, 255, 0.3);
      color: #7fe9ff;
    }

    #auth-option-email:hover {
      background: rgba(37, 208, 255, 0.18);
      border-color: rgba(37, 208, 255, 0.5);
    }

    #auth-option-facebook {
      background: rgba(66, 103, 178, 0.18);
      border-color: rgba(66, 103, 178, 0.45);
      color: #aab8e8;
    }

    #auth-option-facebook:hover {
      background: rgba(66, 103, 178, 0.28);
      border-color: rgba(66, 103, 178, 0.65);
    }

    .subscription-items-list {
      display: grid;
      gap: 12px;
    }

    .subscription-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      padding: 12px;
    }

    .subscription-item-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
    }

    .subscription-item-icon {
      font-size: 1.4rem;
    }

    .subscription-item-details {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .subscription-item-name {
      font-weight: 600;
      color: var(--text);
      font-size: 0.95rem;
    }

    .subscription-item-status {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .subscription-item-status.subscribed {
      color: #2e9cca;
      font-weight: 500;
    }

    .subscription-item-actions {
      display: flex;
      gap: 6px;
    }

    .subscription-item-btn {
      padding: 6px 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.8rem;
      font-weight: 600;
      transition: all 200ms;
      white-space: nowrap;
    }

    .subscription-item-btn:hover {
      border-color: rgba(46, 156, 202, 0.6);
      background: rgba(46, 156, 202, 0.12);
    }

    .subscription-item-btn.danger:hover {
      border-color: rgba(220, 100, 100, 0.6);
      background: rgba(220, 100, 100, 0.12);
    }

    @media (max-width: 1040px) {
      .hero {
        grid-template-columns: 1fr;
      }
      .hero-card {
        order: 2;
      }
      .radar-card {
        order: 1;
        display: flex;
      }
      .grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .page {
        width: calc(100% - 1rem);
      }
      .nav {
        margin-top: 0.2rem;
      }
      .brand {
        font-size: clamp(1rem, 4.2vw, 1.4rem);
        line-height: 1.25;
      }
      .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .hero-card,
      .radar-card,
      .panel {
        border-radius: 16px;
      }
      .btn {
        width: 100%;
      }
      .hero-actions {
        flex-direction: column;
      }

      .radar-graphic-wrap {
        max-width: 340px;
        padding-inline: 0.35rem;
      }

      .radar-chip {
        max-width: 62%;
        padding: 0.28rem 0.5rem;
        font-size: 10px;
        line-height: 1.2;
      }

      .radar-chip-value {
        max-width: 12ch;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .chip-cook {
        top: 12%;
        right: 2%;
      }

      .chip-hot {
        bottom: 16%;
        right: 2%;
      }

      .chip-filing {
        bottom: 4%;
        left: 2%;
      }

      .chip-lowest {
        top: 2%;
        left: 2%;
      }
    }

    @media (max-width: 420px) {
      .radar-chip {
        max-width: 58%;
      }

      .radar-chip-value {
        max-width: 10ch;
      }
    }

    @media (min-width: 640px) {
      .radar-card {
        display: flex;
      }
    }

    @media (min-width: 1600px) {
      .hero {
        gap: 1.6rem;
      }

      .grid {
        gap: 1.35rem;
      }
    }

    @keyframes shimmer {
      0%   { background-position: -400px 0; }
      100% { background-position: 400px 0; }
    }

    .skeleton {
      color: transparent !important;
      border-radius: 6px;
      background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.4s ease-in-out infinite;
      pointer-events: none;
      min-width: 3rem;
      display: inline-block;
    }

    .stat.loading .value {
      color: transparent;
      border-radius: 6px;
      background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.4s ease-in-out infinite;
      min-width: 4rem;
      display: inline-block;
    }

    .ticker-loading {
      display: flex;
      align-items: center;
      gap: 2rem;
      padding: 0.7rem 1.2rem;
    }

    .ticker-loading-bar {
      height: 12px;
      border-radius: 6px;
      background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.4s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes shakeAttention {
      0%   { transform: translateX(0) scale(1); border-color: rgba(46, 156, 202, 0.65); }
      15%  { transform: translateX(-6px) scale(1.04); border-color: rgba(37, 208, 255, 0.9); box-shadow: 0 0 14px rgba(37, 208, 255, 0.55); }
      30%  { transform: translateX(6px) scale(1.04); border-color: rgba(37, 208, 255, 0.9); }
      45%  { transform: translateX(-4px) scale(1.02); }
      60%  { transform: translateX(4px) scale(1.02); }
      75%  { transform: translateX(-2px); }
      90%  { transform: translateX(2px); }
      100% { transform: translateX(0) scale(1); border-color: rgba(46, 156, 202, 0.65); box-shadow: none; }
    }

    .shake-attention {
      animation: shakeAttention 0.55s ease-in-out both;
      border-color: rgba(37, 208, 255, 0.9) !important;
      box-shadow: 0 0 18px rgba(37, 208, 255, 0.45) !important;
    }

    body.local-paint-safe *,
    body.local-paint-safe *::before,
    body.local-paint-safe *::after {
      animation: none !important;
      transition: none !important;
    }

    body.local-paint-safe .ticker-wrap,
    body.local-paint-safe .radar-chip,
    body.local-paint-safe .hero-card,
    body.local-paint-safe .panel,
    body.local-paint-safe .stat {
      backdrop-filter: none !important;
      filter: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
    }

    body.local-paint-safe .radar-graphic-glow {
      display: none !important;
    }

    body.local-paint-safe .radar-svg [filter] {
      filter: none !important;
    }

    /* Re-enable radar animations under local-paint-safe (other protections remain) */
    body.local-paint-safe .radar-spin { animation: radarSpin 7s linear infinite !important; }
    body.local-paint-safe .state-pulse { animation: statePulse 4s ease-in-out infinite !important; }
    body.local-paint-safe .node-pulse-1 { animation: nodePulse 2.2s ease-out infinite !important; }
    body.local-paint-safe .node-pulse-2 { animation: nodePulse 2.6s ease-out 0.4s infinite !important; }
    body.local-paint-safe .node-pulse-3 { animation: nodePulse 3s ease-out 0.8s infinite !important; }
    body.local-paint-safe .node-pulse-4 { animation: nodePulse 2.8s ease-out 1.2s infinite !important; }
    body.local-paint-safe .node-pulse-5 { animation: nodePulse 2.4s ease-out 0.6s infinite !important; }
    body.local-paint-safe .node-pulse-6 { animation: nodePulse 3.2s ease-out 1.6s infinite !important; }
    body.local-paint-safe .node-pulse-7 { animation: nodePulse 2.7s ease-out 0.3s infinite !important; }
    body.local-paint-safe .node-pulse-8 { animation: nodePulse 3.1s ease-out 1s infinite !important; }
    body.local-paint-safe .node-pulse-9 { animation: nodePulse 2.5s ease-out 0.5s infinite !important; }
    body.local-paint-safe .node-pulse-10 { animation: nodePulse 2.9s ease-out 1.4s infinite !important; }
    body.local-paint-safe .node-pulse-11 { animation: nodePulse 3.3s ease-out 0.9s infinite !important; }
    body.local-paint-safe .node-pulse-12 { animation: nodePulse 2.3s ease-out 1.8s infinite !important; }
    body.local-paint-safe .radar-chip-dot { animation: chipBlink 2s ease-in-out infinite !important; }
    body.local-paint-safe .radar-chip { animation: chipFloat 3.5s ease-in-out infinite, chipBlink 4.2s ease-in-out infinite !important; }

    /* Legacy Safari-lite toggles intentionally removed. Ticker/radar behavior is now unified across browsers. */

    /* iOS: remove backdrop-filter and SVG filters to prevent GPU compositor crash */
    body.ios-mode .radar-chip {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(4, 6, 20, 0.96) !important;
    }
    body.ios-mode .radar-graphic-glow {
      display: none !important;
    }
    body.ios-mode .radar-svg [filter] {
      filter: none !important;
    }

    /* Safari (desktop + iOS): kill backdrop-filter and heavy animations to prevent
       GPU compositor blank-page crash. The ticker-wrap backdrop-filter on a sticky
       element is the primary trigger. */
    body.safari-mode .ticker-wrap {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(12, 13, 32, 0.97) !important;
    }
    body.safari-mode .radar-chip {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(4, 6, 20, 0.96) !important;
    }
    body.safari-mode .radar-chip-dot {
      animation: none !important;
    }
    body.safari-mode .chip-cook,
    body.safari-mode .chip-hot,
    body.safari-mode .chip-filing,
    body.safari-mode .chip-lowest {
      animation: none !important;
    }
    body.safari-mode .radar-spin {
      animation: radarSpin 10s linear infinite !important;
    }
    body.safari-mode .state-pulse {
      animation: none !important;
    }
    body.safari-mode .radar-graphic-glow {
      box-shadow: none !important;
    }
    body.safari-mode .radar-svg [filter] {
      filter: none !important;
    }
    body.safari-mode .skeleton {
      animation: none !important;
      background: rgba(255,255,255,0.09) !important;
    }
    body.safari-mode .stat.loading .value {
      animation: none !important;
      background: rgba(255,255,255,0.09) !important;
    }
    body.safari-mode .ticker-loading-bar {
      animation: none !important;
      background: rgba(255,255,255,0.09) !important;
    }
