@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

    /* ── Dark Theme (default) ──────────────────────────────── */
    :root {
      --bg: #0d1117;
      --surface: #161b22;
      --surface2: #1c2333;
      --border: #30363d;
      --shadow: rgba(0, 0, 0, 0.4);
      --gold: #d4a843;
      --gold-dim: rgba(212, 168, 67, 0.15);
      --gold-glow: rgba(212, 168, 67, 0.06);
      --green: #3fb950;
      --green-dim: rgba(63, 185, 80, 0.12);
      --blue: #58a6ff;
      --blue-dim: rgba(88, 166, 255, 0.12);
      --purple: #bc8cff;
      --purple-dim: rgba(188, 140, 255, 0.12);
      --orange: #f0883e;
      --orange-dim: rgba(240, 136, 62, 0.12);
      --red: #f85149;
      --red-dim: rgba(248, 81, 73, 0.12);
      --text: #e6edf3;
      --text-muted: #8b949e;
      --text-dim: #484f58;
      --hdr-bg: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    }

    /* ── Light Theme ───────────────────────────────────────── */
    [data-theme="light"] {
      --bg: #f6f8fa;
      --surface: #ffffff;
      --surface2: #eaeef2;
      --border: #d0d7de;
      --shadow: rgba(0, 0, 0, 0.08);
      --gold: #9a6700;
      --gold-dim: rgba(154, 103, 0, 0.1);
      --gold-glow: rgba(154, 103, 0, 0.04);
      --green: #1a7f37;
      --green-dim: rgba(26, 127, 55, 0.1);
      --blue: #0969da;
      --blue-dim: rgba(9, 105, 218, 0.1);
      --purple: #6639ba;
      --purple-dim: rgba(102, 57, 186, 0.1);
      --orange: #953800;
      --orange-dim: rgba(149, 56, 0, 0.1);
      --red: #cf222e;
      --red-dim: rgba(207, 34, 46, 0.1);
      --text: #1f2328;
      --text-muted: #57606a;
      --text-dim: #8c959f;
      --hdr-bg: linear-gradient(135deg, #ffffff 0%, #f0f3f6 100%);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
      line-height: 1.5;
      transition: background .3s, color .3s;
    }

    /* ── Header ─────────────────────────────────────────────── */
    .header {
      background: var(--hdr-bg);
      border-bottom: 1px solid var(--border);
      padding: 18px 48px;
      position: relative;
      overflow: hidden;
      transition: background .3s;
    }

    .header::before {
      content: '';
      position: absolute;
      top: -60px;
      left: -60px;
      width: 260px;
      height: 260px;
      background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
      pointer-events: none;
    }

    .hdr-inner {
      position: relative;
      max-width: 1120px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 18px;
    }

    /* Title block */
    .hdr-title-wrap {}

    .hdr-top {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 4px;
    }

    .hdr-seal {
      width: 48px;
      height: 48px;
      background: var(--gold-dim);
      border: 1px solid rgba(212, 168, 67, .35);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
    }

    .hdr-badge {
      background: var(--gold-dim);
      border: 1px solid rgba(212, 168, 67, .3);
      color: var(--gold);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 2px;
      padding: 3px 10px;
      border-radius: 4px;
      font-family: 'DM Mono', monospace;
    }

    .hdr-title {
      font-family: 'DM Serif Display', serif;
      font-size: 24px;
      color: var(--text);
      letter-spacing: -.4px;
    }

    .hdr-sub {
      color: var(--text-muted);
      font-size: 12px;
      margin-top: 2px;
    }

    /* TZ selector block */
    .hdr-tz-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 16px;
    }

    .hdr-tz-icon {
      font-size: 18px;
    }

    .hdr-tz-inner {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .hdr-tz-label {
      font-size: 10px;
      color: var(--text-muted);
      font-family: 'DM Mono', monospace;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    select#tzSelect {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 7px;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 12.5px;
      padding: 5px 10px;
      cursor: pointer;
      outline: none;
      max-width: 280px;
      transition: border-color .2s;
    }

    select#tzSelect:focus {
      border-color: var(--gold);
    }

    select#tzSelect option {
      background: var(--bg);
      color: var(--text);
    }

    select#tzSelect optgroup {
      font-weight: 700;
    }

    /* Right info block */
    .hdr-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .hdr-info {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.8;
      text-align: right;
    }

    #liveTimeDisplay {
      color: var(--text);
      font-weight: 500;
    }

    #liveTZName {
      color: var(--gold);
    }

    #liveNIEM {
      color: var(--text-muted);
    }

    /* Theme controls */
    .theme-controls {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .theme-toggle-btn {
      width: 54px;
      height: 28px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 14px;
      cursor: pointer;
      position: relative;
      transition: border-color .2s;
      outline: none;
      display: flex;
      align-items: center;
    }

    .theme-toggle-btn:hover {
      border-color: var(--gold);
    }

    .toggle-thumb {
      position: absolute;
      left: 3px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
      transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    }

    [data-theme="light"] .toggle-thumb {
      transform: translateX(26px);
    }

    .auto-badge {
      font-size: 10px;
      font-family: 'DM Mono', monospace;
      font-weight: 600;
      cursor: pointer;
      padding: 3px 8px;
      border-radius: 4px;
      border: 1px solid var(--border);
      color: var(--text-muted);
      transition: all .2s;
      background: transparent;
      white-space: nowrap;
    }

    .auto-badge.active {
      color: var(--green);
      background: var(--green-dim);
      border-color: rgba(63, 185, 80, .3);
    }

    .auto-badge:hover {
      border-color: var(--text-muted);
    }

    /* ── Main ─────────────────────────────────────────────── */
    .main {
      max-width: 1120px;
      margin: 0 auto;
      padding: 30px 48px;
    }

    /* ── Input section ───────────────────────────────────── */
    .input-section {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px 24px;
      margin-bottom: 30px;
      box-shadow: 0 4px 20px var(--shadow);
    }

    .input-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .sec-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      font-family: 'DM Mono', monospace;
    }

    .input-actions {
      display: flex;
      gap: 9px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 17px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all .18s ease;
      font-family: 'DM Sans', sans-serif;
    }

    .btn-primary {
      background: var(--gold);
      color: #0d1117;
      font-weight: 700;
    }

    .btn-primary:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px var(--gold-dim);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    .btn-ghost:hover {
      border-color: var(--text-muted);
      color: var(--text);
      background: var(--surface2);
    }

    .file-drop {
      border: 2px dashed var(--border);
      border-radius: 9px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--text-muted);
      font-size: 13px;
      cursor: pointer;
      transition: all .2s;
      margin-bottom: 14px;
      background: var(--bg);
    }

    .file-drop:hover {
      border-color: var(--gold);
      color: var(--gold);
      background: var(--gold-glow);
    }

    .file-drop input {
      display: none;
    }

    .fdrop-icon {
      font-size: 22px;
    }

    .fdrop-text strong {
      display: block;
      color: var(--text);
      font-size: 13px;
      margin-bottom: 2px;
    }

    .fdrop-text span {
      font-size: 11px;
      color: var(--text-dim);
    }

    textarea {
      width: 100%;
      min-height: 110px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 9px;
      color: var(--text);
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      padding: 14px 16px;
      resize: vertical;
      outline: none;
      line-height: 1.6;
      transition: border-color .2s, box-shadow .2s;
    }

    textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px var(--gold-glow);
    }

    textarea::placeholder {
      color: var(--text-dim);
    }

    .error-bar {
      background: var(--red-dim);
      border: 1px solid rgba(248, 81, 73, .3);
      color: var(--red);
      padding: 10px 15px;
      border-radius: 8px;
      font-size: 13px;
      margin-top: 13px;
      display: none;
    }

    .error-bar.show {
      display: block;
    }

    /* ── API Guide note ─────────────────────────────────── */
    .api-guide {
      background: var(--bg);
      border: 1px solid var(--border);
      border-left: 3px solid var(--blue);
      border-radius: 9px;
      padding: 14px 18px;
      margin-top: 14px;
    }

    .api-guide-title {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .api-guide-body {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.75;
    }

    .api-guide-body strong {
      color: var(--text);
    }

    .api-guide-body a {
      color: var(--blue);
      text-decoration: none;
    }

    .api-guide-body a:hover {
      text-decoration: underline;
    }

    .api-guide-body .api-step,
    .qf-panel .api-step {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 6px 0;
    }

    .api-guide-body .step-num,
    .qf-panel .step-num {
      background: var(--blue-dim);
      color: var(--blue);
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      min-width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .api-guide-body code {
      background: var(--surface2);
      border: 1px solid var(--border);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      word-break: break-all;
    }

    /* ── Quick Fetch panel ───────────────────────────────── */
    .qf-panel {
      background: var(--bg);
      border: 1px solid var(--border);
      border-left: 3px solid var(--green);
      border-radius: 9px;
      padding: 14px 18px;
      margin-bottom: 14px;
    }

    .qf-title {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--green);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .qf-row {
      display: flex;
      gap: 9px;
      align-items: stretch;
      flex-wrap: wrap;
    }

    .qf-input {
      flex: 1;
      min-width: 180px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: 'DM Mono', monospace;
      font-size: 13px;
      padding: 9px 14px;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      letter-spacing: .5px;
    }

    .qf-input:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.1);
    }

    .qf-input::placeholder {
      color: var(--text-dim);
      font-family: 'DM Mono', monospace;
    }

    .qf-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      font-family: 'DM Sans', sans-serif;
      transition: all .18s ease;
      white-space: nowrap;
    }

    .qf-btn-open {
      background: var(--green);
      color: #0d1117;
      font-weight: 700;
    }

    .qf-btn-open:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }

    .qf-btn-open:disabled {
      opacity: .45;
      cursor: not-allowed;
      transform: none;
    }

    .qf-hint {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 9px;
      line-height: 1.6;
    }

    .qf-hint strong {
      color: var(--text-muted);
    }

    .qf-url-display {
      display: none;
      margin-top: 10px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 9px 13px;
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      word-break: break-all;
    }

    .qf-url-display.visible {
      display: block;
    }

    /* ── Section dividers ────────────────────────────────── */
    .section-divider {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 28px 0 18px;
    }

    .section-divider-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .section-divider-title {
      font-family: 'DM Serif Display', serif;
      font-size: 19px;
      color: var(--text);
      white-space: nowrap;
    }

    /* ── Stat bar ─────────────────────────────────────────── */
    .stat-bar {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .stat-pill {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 18px;
    }

    .stat-pill-val {
      font-family: 'DM Serif Display', serif;
      font-size: 23px;
      color: var(--text);
      line-height: 1;
      margin-bottom: 3px;
    }

    .stat-pill-label {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* ── Grid ────────────────────────────────────────────── */
    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 18px;
    }

    /* ── Cards ───────────────────────────────────────────── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px 22px;
    }

    .card-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      text-transform: uppercase;
      font-family: 'DM Mono', monospace;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title-icon {
      width: 20px;
      height: 20px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    /* ── Detail rows ─────────────────────────────────────── */
    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      gap: 14px;
    }

    .detail-row:last-child {
      border-bottom: none;
    }

    .detail-key {
      color: var(--text-muted);
      font-size: 12.5px;
      flex-shrink: 0;
      min-width: 140px;
    }

    .detail-val {
      color: var(--text);
      font-size: 13px;
      font-weight: 500;
      text-align: right;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    /* ── Badges ──────────────────────────────────────────── */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 9px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      font-family: 'DM Mono', monospace;
    }

    .badge-green {
      background: var(--green-dim);
      color: var(--green);
      border: 1px solid rgba(63, 185, 80, .3);
    }

    .badge-gold {
      background: var(--gold-dim);
      color: var(--gold);
      border: 1px solid rgba(212, 168, 67, .3);
    }

    .badge-blue {
      background: var(--blue-dim);
      color: var(--blue);
      border: 1px solid rgba(88, 166, 255, .3);
    }

    .badge-purple {
      background: var(--purple-dim);
      color: var(--purple);
      border: 1px solid rgba(188, 140, 255, .3);
    }

    .badge-orange {
      background: var(--orange-dim);
      color: var(--orange);
      border: 1px solid rgba(240, 136, 62, .3);
    }

    .badge-red {
      background: var(--red-dim);
      color: var(--red);
      border: 1px solid rgba(248, 81, 73, .3);
    }

    .badge-gray {
      background: rgba(139, 148, 158, .1);
      color: var(--text-muted);
      border: 1px solid rgba(139, 148, 158, .25);
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      display: inline-block;
    }

    /* ── Notices ─────────────────────────────────────────── */
    .notice-item {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 14px 18px;
      margin-bottom: 10px;
    }

    .notice-item:last-child {
      margin-bottom: 0;
    }

    .notice-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 5px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .notice-type {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }

    .notice-date {
      font-size: 11px;
      color: var(--text-muted);
      font-family: 'DM Mono', monospace;
    }

    .notice-appt {
      font-size: 13px;
      color: var(--blue);
      margin-top: 4px;
    }

    .notice-meta {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      margin-top: 5px;
    }

    /* ── Timeline ────────────────────────────────────────── */
    .timeline {}

    .timeline-item {
      display: grid;
      grid-template-columns: 124px 26px 1fr;
      column-gap: 14px;
    }

    .timeline-item:last-child .tl-line {
      display: none;
    }

    .tl-date {
      text-align: right;
      padding-top: 3px;
    }

    .tl-date-main {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
      font-family: 'DM Mono', monospace;
      white-space: nowrap;
    }

    .tl-date-time {
      font-size: 10px;
      color: var(--text-muted);
      font-family: 'DM Mono', monospace;
      margin-top: 2px;
    }

    .tl-spine {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .tl-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid;
      background: var(--bg);
      flex-shrink: 0;
      position: relative;
      z-index: 1;
      margin-top: 3px;
    }

    .tl-line {
      width: 2px;
      flex: 1;
      min-height: 14px;
      background: var(--border);
      margin: 4px 0;
    }

    .tl-content {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 17px;
      margin-bottom: 12px;
      transition: border-color .2s, background .2s, box-shadow .2s;
    }

    .tl-content:hover {
      border-color: var(--gold);
      background: var(--surface2);
      box-shadow: 0 2px 12px var(--shadow);
    }

    .tl-content-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 7px;
    }

    .tl-event-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
    }

    .tl-event-code {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      background: var(--gold-dim);
      padding: 3px 9px;
      border-radius: 5px;
      white-space: nowrap;
      flex-shrink: 0;
      border: 1px solid rgba(212, 168, 67, .2);
      letter-spacing: .5px;
    }

    .tl-silent-code {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--purple);
      background: var(--purple-dim);
      padding: 3px 9px;
      border-radius: 5px;
      white-space: nowrap;
      flex-shrink: 0;
      border: 1px solid rgba(188, 140, 255, .25);
      letter-spacing: .5px;
    }

    .tl-badges {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .tl-event-desc {
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-top: 6px;
    }

    .tl-event-id {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      margin-top: 7px;
    }

    /* ── Summary ─────────────────────────────────────────── */
    .summary-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px 26px;
      box-shadow: 0 4px 20px var(--shadow);
      margin-bottom: 20px;
    }

    .sum-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--border);
    }

    .sum-icon {
      width: 44px;
      height: 44px;
      background: var(--gold-dim);
      border: 1px solid rgba(212, 168, 67, .3);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .sum-title {
      font-family: 'DM Serif Display', serif;
      font-size: 20px;
      color: var(--text);
    }

    .sum-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .sum-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 20px;
    }

    .sum-stat {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 18px;
    }

    .sum-stat-val {
      font-family: 'DM Serif Display', serif;
      font-size: 26px;
      color: var(--text);
      line-height: 1;
      margin-bottom: 4px;
    }

    .sum-stat-lbl {
      font-size: 11px;
      color: var(--text-muted);
    }

    .progress-track {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px 20px;
      margin-bottom: 20px;
    }

    .progress-label {
      font-size: 11px;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--text-muted);
      font-family: 'DM Mono', monospace;
      margin-bottom: 16px;
    }

    .progress-steps {
      display: flex;
      align-items: flex-start;
    }

    .progress-step {
      flex: 1;
    }

    .progress-step-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .progress-step-dot {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
      border: 2px solid;
      margin-bottom: 7px;
    }

    .progress-step-dot.done {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .progress-step-dot.active {
      background: var(--gold);
      border-color: var(--gold);
      color: #0d1117;
    }

    .progress-step-dot.pending {
      background: transparent;
      border-color: var(--text-dim);
      color: var(--text-dim);
    }

    .progress-step-name {
      font-size: 10px;
      color: var(--text-muted);
      line-height: 1.3;
      text-align: center;
      max-width: 68px;
    }

    .progress-connector {
      flex: 1;
      height: 2px;
      margin-top: 11px;
    }

    .progress-connector.filled {
      background: var(--green);
    }

    .progress-connector.active {
      background: linear-gradient(to right, var(--green) 50%, var(--border) 50%);
    }

    .progress-connector.pending {
      background: var(--border);
    }

    .sum-body {
      font-size: 13.5px;
      line-height: 1.8;
      color: var(--text-muted);
    }

    .sum-body strong {
      color: var(--text);
      font-weight: 600;
    }

    .sum-body .hl {
      color: var(--gold);
      font-weight: 500;
    }

    .sum-body .hl-g {
      color: var(--green);
      font-weight: 500;
    }

    .sum-body .hl-r {
      color: var(--red);
      font-weight: 500;
    }

    .sum-body p {
      margin-bottom: 10px;
    }

    .sum-body p:last-child {
      margin-bottom: 0;
    }

    /* ── Disclaimer ──────────────────────────────────────── */
    .disclaimer {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--orange);
      border-radius: 12px;
      padding: 20px 22px;
      margin-bottom: 20px;
    }

    .disclaimer-title {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .disclaimer-body {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.75;
    }

    .disclaimer-body p {
      margin-bottom: 8px;
    }

    .disclaimer-body p:last-child {
      margin-bottom: 0;
    }

    .disclaimer-body a {
      color: var(--blue);
      text-decoration: none;
    }

    .disclaimer-body a:hover {
      text-decoration: underline;
    }

    /* ── Visitor map / analytics embed ───────────────────── */
    .visitor-map-card {
      margin-bottom: 22px;
    }

    .visitor-map-embed {
      width: 100%;
      overflow: hidden;
      display: flex;
      justify-content: center;
    }

    .visitor-map-embed iframe,
    .visitor-map-embed canvas,
    .visitor-map-embed svg {
      max-width: 100%;
    }

    /* ── Empty state ─────────────────────────────────────── */
    .empty-state {
      text-align: center;
      padding: 70px 20px;
      color: var(--text-muted);
    }

    .empty-icon {
      font-size: 52px;
      margin-bottom: 14px;
      opacity: .4;
    }

    .empty-title {
      font-family: 'DM Serif Display', serif;
      font-size: 22px;
      color: var(--text);
      margin-bottom: 8px;
    }

    .empty-desc {
      font-size: 14px;
    }

    /* ── Footer ──────────────────────────────────────────── */
    .footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 18px 48px;
    }

    .footer-inner {
      max-width: 1120px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .footer-credit {
      font-size: 12.5px;
      color: var(--text-muted);
    }

    .footer-credit strong {
      color: var(--text);
    }

    .footer-credit .brand {
      color: var(--gold);
      font-weight: 600;
    }

    .footer-right {
      font-size: 11px;
      color: var(--text-dim);
      font-family: 'DM Mono', monospace;
      text-align: right;
      line-height: 1.7;
    }

    .footer-right span {
      color: var(--text-muted);
    }

    /* ── Mono util ───────────────────────────────────────── */
    .mono {
      font-family: 'DM Mono', monospace;
    }

    /* ── NIEM link (no color by default, hover only) ───── */
    .niem-link {
      color: inherit;
      text-decoration: none;
      transition: color .2s;
    }

    .niem-link:hover {
      color: var(--gold);
      text-decoration: underline;
    }

    /* ── Responsive ──────────────────────────────────────── */
    @media(max-width:860px) {

      .main,
      .header,
      .footer {
        padding-left: 16px;
        padding-right: 16px;
      }

      .hdr-inner {
        grid-template-columns: 1fr;
      }

      .hdr-right {
        align-items: flex-start;
      }

      .grid-2 {
        grid-template-columns: 1fr;
      }

      .sum-stats {
        grid-template-columns: 1fr 1fr;
      }

      .timeline-item {
        grid-template-columns: 90px 20px 1fr;
        column-gap: 9px;
      }

      .tl-date-time {
        display: block;
        font-size: 9px;
      }

      .footer-inner {
        flex-direction: column;
      }

      select#tzSelect {
        max-width: 100%;
      }
    }
