/*
SPDX-License-Identifier: MIT
Copyright (c) 2026 Anthony Campbell (claydonkey)
*/
    :root {
      --bg-1: #06131f;
      --bg-2: #0b1e30;
      --bg-3: #113553;
      --panel: rgba(248, 250, 252, 0.92);
      --panel-soft: #f8fbfd;
      --panel-strong: rgba(255, 255, 255, 0.98);
      --text: #0f172a;
      --muted: #526277;
      --border: rgba(148, 163, 184, 0.26);
      --accent: #0f766e;
      --accent-2: #2563eb;
      --accent-3: #0b5ed7;
      --surface-button: #334155;
      --danger: #dc2626;
      --success: #0f766e;
      --shadow: 0 24px 70px rgba(3, 10, 20, 0.35);
      --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
      --shell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.96) 100%);
      --shell-border: rgba(255, 255, 255, 0.45);
      --stat-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      --stat-border: rgba(148, 163, 184, 0.18);
      --field-bg: rgba(255, 255, 255, 0.96);
      --field-border: rgba(148, 163, 184, 0.22);
    }

    :root[data-theme="dark"] {
      --panel: rgba(15, 23, 42, 0.92);
      --panel-soft: rgba(15, 23, 42, 0.96);
      --panel-strong: rgba(17, 24, 39, 0.98);
      --text: #e2e8f0;
      --muted: #9fb0c7;
      --border: rgba(148, 163, 184, 0.18);
      --surface-button: #1e293b;
      --shadow: 0 24px 70px rgba(2, 6, 23, 0.58);
      --shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.32);
      --shell-bg: linear-gradient(180deg, rgba(9, 14, 24, 0.92) 0%, rgba(13, 20, 34, 0.96) 100%);
      --shell-border: rgba(148, 163, 184, 0.14);
      --stat-bg: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
      --stat-border: rgba(148, 163, 184, 0.14);
      --field-bg: rgba(15, 23, 42, 0.96);
      --field-border: rgba(148, 163, 184, 0.16);

    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI Variable', 'Segoe UI', 'Trebuchet MS', sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 15% 15%, rgba(45, 212, 191, 0.18), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.12), transparent 32%),
        linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
      min-height: 100vh;
      padding: 28px 18px 40px;
      display: flex;
      justify-content: center;
      transition: background 0.25s ease, color 0.25s ease;
    }

    .shell {
      position: relative;
      max-width: 1180px;
      width: 100%;
      margin: 0 auto;
      background: var(--shell-bg);
      border: 1px solid var(--shell-border);
      border-radius: 32px;
      padding: 30px;
      backdrop-filter: blur(24px);
      box-shadow: var(--shadow);
      transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.22fr 0.95fr;
      gap: 18px;
      margin-bottom: 26px;
    }

    .hero-card,
    .panel {
      background: linear-gradient(180deg, var(--panel-strong) 0%, var(--panel-soft) 100%);
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: var(--shadow-soft);
    }

    .hero-copy {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 8px 0 0;
    }

    .hero-card {
      padding: 18px 20px;
      border-radius: 22px;
      background: linear-gradient(180deg, var(--panel-strong) 0%, var(--panel-soft) 100%);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }

    .hero-brand-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 4px;
    }

    .hero-title-icon {
      width: 116px;
      height: 116px;
      display: block;
      margin-bottom: 10px;
      margin-top: -8px;
    }

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

    .eyebrow {
      display: inline-flex;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.1);
      color: var(--accent-3);
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    h1 {
      color: var(--text);
      font-size: clamp(2.1rem, 4vw, 3.35rem);
      line-height: 0.95;
      letter-spacing: -0.05em;
    }

    .hero-copy p {
      margin-top: 14px;
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.6;
      max-width: 64ch;
    }

    .hero-status {
      display: grid;
      gap: 12px;
      align-content: start;
      width: 100%;
      min-width: 0;
      justify-self: stretch;
    }

    .hero-grid,
    .hero-card-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .stat,
    .hero-stat {
      padding: 14px 16px;
      border-radius: 18px;
      background: var(--stat-bg);
      border: 1px solid var(--stat-border);
    }

    .stat-label,
    .hero-stat-label {
      color: var(--muted);
      font-size: 0.77rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 8px;
    }

    .stat-value,
    .hero-stat-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text);
    }

    .layout {
      display: grid;
      grid-template-columns: 1.22fr 0.95fr;
      gap: 20px;
    }

    .col {
      display: grid;
      gap: 20px;
      align-content: start;
      min-width: 0;
    }

    .panel {
      padding: 30px;
    }

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

    h2 {
      margin: 0;

      letter-spacing: -0.02em;
    }

    .button-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    button {
      border: 0;
      border-radius: 14px;
      padding: 12px 16px;
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    button:hover {
      transform: translateY(-1px);
    }

    button:active {
      transform: translateY(0);
    }

    .btn-primary {
      border: none;
      background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
      color: #fff;
      box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
      filter: saturate(1.04);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-accent {
      background: linear-gradient(145deg, var(--accent) 0%, #14b8a6 100%);
      color: #fff;
      box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.92);
      color: #1d4ed8;
      border: 1px solid rgba(37, 99, 235, 0.22);
      box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
    }

    :root[data-theme="dark"] .btn-secondary {
      background: rgba(15, 23, 42, 0.94);
      color: #93c5fd;
      border-color: rgba(96, 165, 250, 0.28);
      box-shadow: 0 10px 20px rgba(96, 165, 250, 0.14);
    }

    .btn-secondary:hover {
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    }




    input[type="file"] {
      width: 100%;
      border-radius: 14px;
      border: 1px solid var(--field-border);
      background: var(--field-bg);
      color: var(--text);
      padding: 8px 10px;
      font-size: 0.95rem;
    }

    input[type="file"]::file-selector-button {
      border: none;
      border-radius: 14px;
      padding: 12px 16px;
      margin-right: 12px;
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
      box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
      transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    input[type="file"]::file-selector-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
      filter: saturate(1.04);
    }
    input,
    textarea,
    select {
      background: var(--field-bg);
      color: var(--text);
      border: 1px solid var(--field-border);
    }

    :root[data-theme="dark"] select,
    :root[data-theme="dark"] input[type="number"],
    :root[data-theme="dark"] input[type="text"],
    :root[data-theme="dark"] textarea {
      background: var(--field-bg) !important;
      color: var(--text) !important;
      border: 1px solid var(--field-border) !important;
      box-shadow: none;
    }

    :root[data-theme="dark"] select option {
      background: #0f172a;
      color: #e2e8f0;
    }

    :root[data-theme="dark"] input::placeholder,
    :root[data-theme="dark"] textarea::placeholder {
      color: var(--muted);
      opacity: 1;
    }

    .btn-danger {
      background: linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
      color: #fff;
      box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
    }

    .mode-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

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

    .status-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .status-row:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .label {
      color: var(--muted);
      font-weight: 600;
    }

    .value {
      font-weight: 800;
      color: var(--accent-3);
      text-align: right;
    }

    .stack {
      display: grid;
      gap: 12px;
    }

    .input-row {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 10px;
      align-items: center;
    }

    input {
      width: 100%;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid var(--border);
      font: inherit;
      background: #fff;
      color: var(--text);
    }

    .note {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .log {
      min-height: 320px;
      max-height: 420px;
      max-width: 100%;
      box-sizing: border-box;
      overflow: auto;
      background: #0f172a;
      color: #dbeafe;
      border-radius: 18px;
      padding: 14px;
      font-family: "Cascadia Code", Consolas, monospace;
      font-size: 0.85rem;
      line-height: 1.55;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .log-disclosure {
      border-top: 1px solid rgba(148, 163, 184, 0.16);
      padding-top: 8px;
    }

    .log-disclosure summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #dbe7f5;
      font-weight: 700;
      user-select: none;
    }

    .log-disclosure summary::-webkit-details-marker {
      display: none;
    }

    .log-disclosure summary::after {
      content: 'Show';
      color: #93c5fd;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .log-disclosure[open] summary::after {
      content: 'Hide';
    }

    .log-disclosure-body {
      margin-top: 12px;
      max-width: 100%;
      overflow: hidden;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 700;
      background: #e2e8f0;
      color: var(--text);
    }

    .chip.connected {
      background: rgba(15, 118, 110, 0.12);
      color: var(--success);
    }

    .chip.disconnected {
      background: rgba(220, 38, 38, 0.12);
      color: var(--danger);
    }

    .connection-status {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-left: 2px;
      animation: pulse 2s infinite;
      vertical-align: middle;
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.28);
    }

    .connection-status.connected {
      background-color: #16a34a;
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
    }

    .connection-status.disconnected {
      background-color: #dc2626;
      box-shadow: none;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.45;
      }
    }

    .viz-panel {
      overflow: hidden;
    }

    .viz-stack {
      display: grid;
      gap: 18px;
    }

    .viz-stage {
      min-height: 300px;
      border-radius: 22px;
      border: 1px solid var(--stat-border);
      background:
        radial-gradient(circle at 50% 14%, rgba(59, 130, 246, 0.18), transparent 34%),
        linear-gradient(180deg, #eff6ff 0%, #dbeafe 48%, #e0f2fe 100%);
      position: relative;
      overflow: hidden;
      perspective: 900px;
      display: grid;
      place-items: center;
    }

    .viz-horizon {
      position: absolute;
      inset: auto -8% 58% -8%;
      height: 2px;
      background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.5) 15%, rgba(37, 99, 235, 0.5) 85%, transparent 100%);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
    }

    .viz-ground {
      position: absolute;
      left: -10%;
      right: -10%;
      bottom: -18%;
      height: 42%;
      background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(14, 116, 144, 0.12) 100%),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 42px);
      transform: rotateX(74deg);
      transform-origin: bottom;
      border-radius: 20px;
    }

    .device-scene {
      position: relative;
      width: 220px;
      height: 220px;
      transform-style: preserve-3d;
      display: grid;
      place-items: center;
    }

    .device-model {
      width: 112px;
      height: 112px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 220ms ease-out;
    }

    .device-face {
      position: absolute;
      inset: 0;
      border-radius: 16px;
      border: 1px solid rgba(15, 23, 42, 0.14);
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(219, 234, 254, 0.96) 100%);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    }

    .device-face.front {
      transform: translateZ(26px);
      background: linear-gradient(145deg, #60a5fa 0%, #2563eb 100%);
      color: #fff;
    }

    .device-face.back {
      transform: rotateY(180deg) translateZ(26px);
    }

    .device-face.left {
      transform: rotateY(-90deg) translateZ(26px);
      width: 52px;
      left: 30px;
    }

    .device-face.right {
      transform: rotateY(90deg) translateZ(26px);
      width: 52px;
      left: 30px;
    }

    .device-face.top {
      transform: rotateX(90deg) translateZ(26px);
      height: 52px;
      top: 30px;
    }

    .device-face.bottom {
      transform: rotateX(-90deg) translateZ(26px);
      height: 52px;
      top: 30px;
    }

    .device-face.front::before {
      content: "";
      position: absolute;
      inset: 20px 18px;
      border-radius: 12px;
      border: 2px solid rgba(255, 255, 255, 0.72);
    }

    .device-face.front::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 16px;
      width: 20px;
      height: 20px;
      margin-left: -10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
    }

    .device-arrow {
      position: absolute;
      top: 50%;
      left: calc(50% + 74px);
      width: 72px;
      height: 10px;
      margin-top: -5px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0.88) 100%);
      box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
    }

    .device-arrow::after {
      content: "";
      position: absolute;
      right: -4px;
      top: 50%;
      width: 18px;
      height: 18px;
      margin-top: -9px;
      background: #0f766e;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    .range-stack {
      display: grid;
      gap: 10px;
    }

    .range-topline {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      font-size: 0.9rem;
      color: var(--muted);
      font-weight: 700;
    }

    .range-label {
      color: var(--text);
    }

    .range-bar {
      position: relative;
      height: 18px;
      border-radius: 999px;
      overflow: hidden;
      background: linear-gradient(90deg, rgba(220, 38, 38, 0.2) 0%, rgba(234, 179, 8, 0.18) 45%, rgba(15, 118, 110, 0.16) 100%);
      border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .range-fill {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(220, 38, 38, 0.92) 0%, rgba(234, 179, 8, 0.88) 48%, rgba(15, 118, 110, 0.85) 100%);
      transition: width 220ms ease;
    }

    .range-grid {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .viz-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .viz-metric {
      padding: 12px 10px;
      border-radius: 16px;
      background: var(--field-bg);
      border: 1px solid var(--field-border);
      text-align: center;
    }

    .viz-metric-label {
      color: var(--muted);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 8px;
    }

    .viz-metric-value {
      font-size: 1rem;
      font-weight: 800;
      color: var(--accent-3);
    }

    .matrix-preview {
      display: grid;
      gap: 10px;
      margin-top: 2px;
    }

    .matrix-preview-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
    }

    .matrix-preview-head .muted {
      color: var(--muted);
      font-weight: 600;
    }

    .matrix-scroll-controls {
      display: inline-flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .matrix-scroll-controls button {
      padding: 8px 12px;
      font-size: 0.8rem;
      border-radius: 12px;
    }

    .matrix-shell {
      padding: 14px;
      border-radius: 18px;
      background: linear-gradient(180deg, #0b1220 0%, #020617 100%);
      border: 1px solid rgba(148, 163, 184, 0.2);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 22px rgba(2, 10, 20, 0.18);
      overflow-x: auto;
    }

    #ledMatrixPreview {
      display: block;
      width: 100%;
      height: auto;
      image-rendering: pixelated;
    }

    .matrix-editor-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, max-content));
      gap: 8px;
      justify-content: start;
    }

    .matrix-editor-actions button {
      padding: 8px 12px;
      font-size: 0.8rem;
      border-radius: 12px;
      white-space: nowrap;
    }

    .matrix-editor-stage {
      position: relative;
      width: 100%;
      min-height: 90px;
      overflow: hidden;
    }

    .matrix-editor-grid {
      display: grid;
      grid-template-columns: repeat(32, 8px);
      gap: 2px;
      padding: 6px;
      width: max-content;
      transform-origin: top left;
    }

    .matrix-editor-cell {
      width: 8px;
      height: 8px;
      border: 0;
      border-radius: 3px;
      padding: 0;
      background: #172033;
      box-shadow: none;
      cursor: pointer;
      transition: background 0.12s ease, box-shadow 0.12s ease;
    }

    .matrix-editor-cell.on {
      background: #f97316;
      box-shadow: 0 0 8px rgba(249, 115, 22, 0.55);
    }

    @media (max-width: 920px) {

      .hero,

      .hero-card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .hero-stat {
        padding: 14px 16px;
        border-radius: 18px;
        background: var(--stat-bg);
        border: 1px solid var(--stat-border);
      }

      .hero-stat-label {
        color: var(--muted);
        font-size: 0.77rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
      }

      .hero-stat-value {
        font-weight: 800;
        font-size: 1.05rem;
        color: var(--text);
      }

      .layout {
        grid-template-columns: 1fr;
      }

      .mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .input-row {
        grid-template-columns: 1fr;
      }

      .viz-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }


    .poll-toggle-button {
      width: 48px;
      min-width: 48px;
      height: 48px;
      padding: 0;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      line-height: 1;
      letter-spacing: 0;
      text-transform: none;
      color: #fff;
    }

    .poll-toggle-button.is-running {
      background: linear-gradient(145deg, #0f766e 0%, #14b8a6 100%);
      box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
    }

    .poll-toggle-button.is-paused {
      background: linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
      box-shadow: 0 10px 22px rgba(220, 38, 38, 0.2);
    }

    .poll-controls {
      display: grid;
      gap: 12px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .poll-controls-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .poll-controls-stack {
      display: grid;
      gap: 8px;
      flex: 1;
      min-width: 220px;
    }

    .app-footer {
      margin-top: 28px;
      padding-top: 18px;
      border-top: 1px solid rgba(148, 163, 184, 0.24);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 18px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.6;
    }

    .footer-copy {
      max-width: 60ch;
    }

    .footer-meta {
      display: flex;
      gap: 10px 14px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .footer-chip {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(148, 163, 184, 0.2);
      color: var(--text);
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    :root[data-theme="dark"] .footer-chip {
      background: rgba(15, 23, 42, 0.82);
      border-color: rgba(148, 163, 184, 0.16);
    }






