    :root {
      color-scheme: light;
      --bg: #f5efe5;
      --panel: rgba(255, 252, 247, 0.88);
      --panel-strong: #fffdf9;
      --ink: #1e2430;
      --muted: #596173;
      --line: rgba(30, 36, 48, 0.1);
      --accent: #dd6b20;
      --accent-strong: #9b2c2c;
      --accent-soft: rgba(221, 107, 32, 0.12);
      --shadow: 0 24px 70px rgba(57, 42, 24, 0.12);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Georgia, "Times New Roman", serif;
      color: var(--ink);
      background:
        radial-gradient(circle at top left, rgba(247, 186, 114, 0.32), transparent 32%),
        radial-gradient(circle at bottom right, rgba(155, 44, 44, 0.18), transparent 28%),
        linear-gradient(135deg, #f3eadf 0%, #f9f5ef 48%, #efe4d3 100%);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    .shell {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 40px;
    }

    .hero {
      position: relative;
      overflow: hidden;
      margin-bottom: 22px;
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.45);
      border-radius: var(--radius-xl);
      background: linear-gradient(145deg, rgba(255, 251, 245, 0.95), rgba(247, 238, 228, 0.88));
      box-shadow: var(--shadow);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto -40px -60px auto;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(221, 107, 32, 0.24), transparent 68%);
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-size: 0.88rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .hero-grid {
      display: grid;
      gap: 24px;
      align-items: start;
      grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
      margin-top: 18px;
    }

    h1 {
      margin: 0 0 12px;
      font-size: clamp(2.2rem, 5vw, 4.2rem);
      line-height: 0.95;
      letter-spacing: -0.04em;
    }

    .hero p,
    .detail-copy p,
    .stat-card p,
    .empty p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      padding: 0 18px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: var(--ink);
      color: #fff;
      cursor: pointer;
      transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .button:hover,
    .button:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(30, 36, 48, 0.16);
    }

    .button.secondary {
      background: rgba(255, 255, 255, 0.62);
      border-color: var(--line);
      color: var(--ink);
    }

    .button.compact {
      min-height: 44px;
      padding: 0 16px;
      white-space: nowrap;
    }

    .panel {
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: var(--radius-xl);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }

    .detail-card {
      padding: 24px;
    }

    .detail-top {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-bottom: 18px;
    }

    .detail-flag {
      display: grid;
      place-items: center;
      width: 84px;
      height: 84px;
      overflow: hidden;
      border-radius: 24px;
      background: linear-gradient(145deg, #fffaf3, #f0dfca);
      font-size: 2.5rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .detail-flag svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .detail-copy h2 {
      margin: 0 0 6px;
      font-size: 2rem;
      line-height: 1;
    }

    .detail-meta {
      display: grid;
      gap: 12px;
      margin: 18px 0 22px;
    }

    .meta-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }

    .meta-row strong {
      font-size: 0.9rem;
      color: var(--muted);
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .meta-row span {
      text-align: right;
      font-weight: 700;
    }

    .grid {
      display: grid;
      gap: 22px;
      grid-template-columns: minmax(0, 1fr) 300px;
      align-items: start;
    }

    .browser {
      padding: 22px;
    }

    .browser-controls {
      grid-column: 1 / -1;
      padding-bottom: 16px;
    }

    .browser-controls .toolbar {
      margin-bottom: 0;
    }

    .toolbar {
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr) 180px;
      margin-bottom: 18px;
    }

    .field,
    .select {
      width: 100%;
      min-height: 50px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.78);
      color: var(--ink);
      outline: none;
    }

    .field:focus,
    .select:focus {
      border-color: rgba(221, 107, 32, 0.7);
      box-shadow: 0 0 0 4px rgba(221, 107, 32, 0.12);
    }

    .list-header {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      margin-bottom: 16px;
    }

    .list-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
    }

    .list-header h3,
    .sidebar h3 {
      margin: 0;
      font-size: 1.15rem;
    }

    .list-header p {
      margin: 0;
      color: var(--muted);
    }

    .country-list {
      display: grid;
      gap: 12px;
      max-height: 980px;
      overflow: auto;
      padding-right: 6px;
      scrollbar-width: thin;
      scrollbar-color: rgba(155, 44, 44, 0.35) transparent;
    }

    .country-list::-webkit-scrollbar {
      width: 10px;
    }

    .country-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .country-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(155, 44, 44, 0.28);
    }

    .country-list::-webkit-scrollbar-thumb:hover {
      background: rgba(155, 44, 44, 0.42);
    }

    .country-card {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      width: 100%;
      padding: 14px;
      border: 1px solid transparent;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.74);
      text-align: left;
      cursor: pointer;
      transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .country-card:hover,
    .country-card:focus-visible,
    .country-card.active {
      transform: translateY(-1px);
      border-color: rgba(221, 107, 32, 0.32);
      box-shadow: 0 18px 30px rgba(57, 42, 24, 0.08);
    }

    .country-emoji {
      display: grid;
      place-items: center;
      width: 58px;
      height: 58px;
      border-radius: 16px;
      background: linear-gradient(145deg, #fff9f0, #efdfcc);
      font-size: 1.7rem;
    }

    .country-name {
      margin: 0 0 4px;
      font-size: 1.05rem;
      font-weight: 700;
    }

    .country-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 70px;
      padding: 10px 12px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-weight: 700;
    }

    .skeleton-card,
    .skeleton-line,
    .skeleton-chip,
    .skeleton-block {
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.66);
    }

    .skeleton-card::after,
    .skeleton-line::after,
    .skeleton-chip::after,
    .skeleton-block::after {
      content: "";
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
      animation: shimmer 1.2s infinite;
    }

    .skeleton-card {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) 72px;
      gap: 14px;
      align-items: center;
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 18px;
    }

    .skeleton-block {
      height: 58px;
      border-radius: 16px;
    }

    .skeleton-copy {
      display: grid;
      gap: 10px;
    }

    .skeleton-line {
      height: 12px;
      border-radius: 999px;
    }

    .skeleton-line.title {
      width: 62%;
      height: 16px;
    }

    .skeleton-line.subtitle {
      width: 84%;
    }

    .skeleton-chip {
      height: 38px;
      border-radius: 999px;
    }

    .detail-card.loading .detail-top,
    .detail-card.loading .detail-meta,
    .detail-card.loading .hero-actions {
      opacity: 0.52;
    }

    @keyframes shimmer {
      100% {
        transform: translateX(100%);
      }
    }

    .sidebar {
      display: grid;
      gap: 18px;
    }

    .stat-card,
    .download-card {
      padding: 22px;
    }

    .stat-value {
      display: block;
      margin-top: 12px;
      font-size: 2.6rem;
      line-height: 1;
      letter-spacing: -0.05em;
    }

    .download-links {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .download-link {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.74);
    }

    .download-link span:last-child {
      color: var(--accent-strong);
      font-weight: 700;
    }

    .empty {
      padding: 28px;
      border: 1px dashed rgba(89, 97, 115, 0.28);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.55);
      text-align: center;
    }

    .footer-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 0.94rem;
    }

    .site-footer {
      padding: 22px 4px 6px;
      text-align: center;
    }

    .site-footer p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .site-footer a {
      color: var(--accent-strong);
      font-weight: 700;
    }

    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      padding: 12px 16px;
      border-radius: 14px;
      background: rgba(30, 36, 48, 0.92);
      color: #fff;
      box-shadow: 0 18px 40px rgba(30, 36, 48, 0.22);
      opacity: 0;
      transform: translateY(12px);
      pointer-events: none;
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 960px) {
      .hero-grid,
      .grid,
      .toolbar {
        grid-template-columns: 1fr;
      }

      .list-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .list-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .country-list {
        max-height: 720px;
      }
    }

    @media (max-width: 640px) {
      .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
      }

      .hero,
      .browser,
      .detail-card,
      .stat-card,
      .download-card {
        padding: 18px;
      }

      .detail-top {
        align-items: flex-start;
      }

      .country-card {
        grid-template-columns: 50px minmax(0, 1fr);
      }

      .pill {
        grid-column: span 2;
        justify-self: start;
      }

      .country-list {
        max-height: 560px;
        padding-right: 2px;
      }
    }
