    :root {
      --header-h: 54px;
      --sidebar-w: 360px;
      --bg: #f3f4f7;
      --panel: #ffffff;
      --ink: #1d2731;
      --muted: #647181;
      --line: #e3e7ee;
      --blue: #3469f0;
      --blue-soft: #e8efff;
      --orange: #d0741d;
      --danger: #c33e3e;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      height: 100vh;
      overflow: hidden;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background: var(--bg);
      color: var(--ink);
    }

    .header {
      height: var(--header-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14px;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }

    .left-head {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .logo {
      display: inline-block;
      transform: rotate(180deg);
    }

    .logo img {
      display: block;
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

    .today {
      color: var(--muted);
      font-size: 0.95rem;
      white-space: nowrap;
    }

    .feed-selector {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .active-feed {
      border: 1px solid var(--line);
      background: #f8faff;
      color: #274061;
      font-weight: 600;
      font-size: 0.88rem;
      border-radius: 8px;
      padding: 6px 10px;
      white-space: nowrap;
    }

    .picker-btn {
      border: 1px solid var(--line);
      background: var(--blue);
      color: #fff;
      font-weight: 600;
      font-size: 0.88rem;
      border-radius: 8px;
      padding: 6px 11px;
      cursor: pointer;
      white-space: nowrap;
    }

    .right-head {
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    .orig-link {
      color: #3555c8;
      font-size: 0.86rem;
      text-decoration: none;
      font-weight: 600;
    }

    .orig-link:hover {
      text-decoration: underline;
    }

    .info-btn {
      border: 1px solid var(--line);
      background: #fff;
      color: #2a3d50;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      cursor: pointer;
      font-size: 0.95rem;
    }

    .main {
      height: calc(100vh - var(--header-h));
      display: grid;
      grid-template-columns: 1fr var(--sidebar-w);
      min-width: 0;
      min-height: 0;
    }

    #map {
      width: 100%;
      height: 100%;
      min-width: 0;
    }

    .sidebar {
      border-left: 1px solid var(--line);
      background: #fff;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .side-head {
      padding: 10px 14px;
      border-bottom: 1px solid var(--line);
      background: #fff;
    }

    .side-title {
      margin: 0;
      font-size: 2rem;
      line-height: 1;
      letter-spacing: -0.4px;
    }

    .side-sub {
      margin-top: 8px;
      color: var(--muted);
      font-size: 0.84rem;
    }

    .feed {
      flex: 1;
      overflow: auto;
      min-height: 0;
    }

    .card {
      border-bottom: 1px solid var(--line);
      padding: 12px 14px 13px;
      cursor: pointer;
      transition: background 0.14s ease;
    }

    .card:hover {
      background: #fafcff;
    }

    .card.active {
      background: var(--blue-soft);
    }

    .meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .meta-left {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--danger);
      flex: 0 0 auto;
    }

    .source {
      font-weight: 700;
      color: #111;
      text-decoration: none;
      white-space: nowrap;
    }

    .text {
      margin: 0;
      font-size: 0.96rem;
      line-height: 1.37;
      color: #17222d;
    }

    .where {
      margin-top: 8px;
      color: var(--muted);
      font-size: 0.8rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .empty {
      margin: 14px;
      border: none;
      border-radius: 0;
      padding: 4px 0;
      font-size: 0.9rem;
      color: var(--muted);
      background: transparent;
    }

    .leaflet-popup-content {
      margin: 10px 12px;
      line-height: 1.35;
    }

    .p-title {
      font-size: 0.92rem;
      margin-bottom: 5px;
    }

    .p-meta {
      font-size: 0.78rem;
      color: #3f5161;
      margin-top: 3px;
    }

    .p-meta a {
      color: #1e57d5;
      text-decoration: none;
    }

    .info-modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      background: rgba(10, 18, 28, 0.45);
      z-index: 2900;
      padding: 18px;
    }

    .info-box {
      width: min(640px, 100%);
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 16px;
      box-shadow: 0 12px 34px rgba(18, 28, 44, 0.2);
    }

    .info-title {
      margin: 0;
      font-size: 1.1rem;
      color: #20324a;
    }

    .info-list {
      margin: 10px 0 0;
      padding-left: 18px;
      color: #334557;
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .info-list code {
      background: #f2f5f9;
      border: 1px solid #e4e9f0;
      border-radius: 6px;
      padding: 1px 5px;
      font-size: 0.84rem;
    }

    .info-actions {
      margin-top: 14px;
      display: flex;
      justify-content: flex-end;
    }

    .info-close {
      border: 1px solid var(--line);
      background: var(--blue);
      color: #fff;
      border-radius: 10px;
      padding: 7px 12px;
      cursor: pointer;
      font-weight: 600;
    }

    .picker-modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      background: rgba(10, 18, 28, 0.45);
      z-index: 2950;
      padding: 18px;
    }

    .picker-box {
      width: min(980px, 100%);
      max-height: min(82vh, 900px);
      overflow: auto;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 12px 34px rgba(18, 28, 44, 0.2);
      padding: 14px;
    }

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

    .picker-title {
      margin: 0;
      font-size: 1.06rem;
      color: #20324a;
    }

    .picker-close {
      border: 1px solid var(--line);
      background: #fff;
      color: #2a3d50;
      border-radius: 8px;
      padding: 6px 10px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.84rem;
    }

    .picker-group {
      border-top: 1px solid var(--line);
      padding-top: 10px;
      margin-top: 10px;
    }

    .picker-group:first-of-type {
      border-top: none;
      padding-top: 0;
      margin-top: 0;
    }

    .picker-group-title {
      margin: 0 0 8px;
      font-size: 0.87rem;
      color: #46617f;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .picker-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .picker-item {
      border: 1px solid #ced8e7;
      background: #fff;
      color: #234061;
      border-radius: 8px;
      padding: 6px 9px;
      font-size: 0.83rem;
      cursor: pointer;
      font-weight: 600;
      line-height: 1.1;
    }

    .picker-item.active {
      background: var(--blue);
      border-color: var(--blue);
      color: #fff;
    }

    .parody-modal {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      background: rgba(10, 18, 28, 0.56);
      z-index: 3000;
      padding: 18px;
    }

    .parody-box {
      width: min(520px, 100%);
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px 18px 16px;
      box-shadow: 0 12px 34px rgba(18, 28, 44, 0.25);
      text-align: center;
    }

    .parody-logo {
      width: 62px;
      height: 62px;
      margin: 0 auto 10px;
      display: block;
      transform: rotate(180deg);
    }

    .parody-title {
      margin: 0;
      font-size: 1.18rem;
    }

    .parody-copy {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .parody-btn {
      margin-top: 14px;
      border: 1px solid var(--line);
      background: var(--blue);
      color: #fff;
      border-radius: 10px;
      padding: 8px 14px;
      cursor: pointer;
      font-weight: 600;
    }

    @media (max-width: 1080px) {
      :root { --sidebar-w: 330px; }
    }

    @media (max-width: 920px) {
      .main {
        grid-template-columns: 1fr;
        grid-template-rows: 55% 45%;
      }

      .sidebar {
        border-left: none;
        border-top: 1px solid var(--line);
      }

      .right-head {
        gap: 6px;
      }
    }
