/* =====================================================================
   MODULE: sailhaven.css — styles for Sail timeline + Data modals.
   Source: Sail_Haven/sail-haven.html <style> (lines 27-478).
   Dropped the global '*' reset and 'body' rule (host owns those;
   sail-haven body forced max-width:360px which breaks the AR layout).
   All remaining rules are class-scoped (.tl-*, .modal-*, .hdr-btn …).
   ===================================================================== */
  /* ── Header ──────────────────────────────────────────────── */
  .page-header {
    background: #0c1829;
    padding: 7px 12px 6px;
    border-bottom: 1px solid #1e3a5f;
    display: flex; align-items: center; gap: 6px;
  }
  .header-logo { height: 40px; width: auto; flex-shrink: 0; }
  .header-title { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
  .page-header h1 { font-size: 18px; color: #38bdf8; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
  .page-header .subtitle { font-size: 12px; color: #e2e8f0; line-height: 1.2; }
  .header-btns { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
  .hdr-btn {
    background: #1e3a5f; border: 1px solid #38bdf8;
    color: #38bdf8; font-size: 11px; font-weight: 600;
    border-radius: 5px; padding: 4px 6px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
  }
  .hdr-btn:active { background: #0c2040; }

  /* ── Feature buttons (Forecast / Synoptic) ───────────────── */
  .feature-btns {
    display: flex; gap: 6px; padding: 5px 10px;
    background: #0c1829; border-bottom: 1px solid #1e3a5f;
  }
  .feature-btn {
    flex: 1; text-align: center;
    background: #1e293b; border: 1px solid #38bdf8;
    color: #38bdf8; font-size: 13px; font-weight: 600;
    border-radius: 5px; padding: 6px 4px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .feature-btn:active { background: #0c2040; }

  /* ── Timeline section ────────────────────────────────────── */
  .timeline-section { padding: 3px 0 0; }
  .timeline-label {
    font-size: 15px; color: #e2e8f0;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0 12px 4px;
  }
  .timeline-scroll {
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: #334155 #0f172a;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
  }
  .timeline-scroll::-webkit-scrollbar { height: 4px; }
  .timeline-scroll::-webkit-scrollbar-track { background: #0f172a; }
  .timeline-scroll::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

  .timeline-inner { display: inline-flex; flex-direction: column; }

  .tl-days { display: flex; height: 32px; background: #0c1829; border-bottom: 1px solid #1e3a5f; }
  .tl-day-header {
    position: relative; font-size: 17px; font-weight: 600; color: #7dd3fc;
    white-space: nowrap; border-right: 2px solid #1e3a5f; flex-shrink: 0; overflow: hidden;
  }
  .tl-day-header:last-child { border-right: none; }
  .tl-day-header .day-lbl {
    position: absolute; top: 50%; transform: translateY(-50%); padding-left: 4px;
  }

  .tl-hours { display: flex; }
  .tl-day-group { display: flex; border-right: 3px solid #1a5c3a; flex-shrink: 0; }
  .tl-day-group:last-child { border-right: none; }

  .tl-hour-col {
    position: relative;
    display: flex; flex-direction: column;
    width: 90px; flex-shrink: 0;
    border-right: 2px solid #1a5c3a;
  }
  .tl-hour-col:last-child { border-right: none; }

  .tl-hour-img {
    position: relative;
    width: 90px; height: 70px;
    background: #add8e6; flex-shrink: 0;
    pointer-events: none;
  }
  .tl-hour-img img {
    position: absolute; top: 0; left: 0;
    width: 90px; height: 70px;
  }
  .tl-hour-img svg.tide-flow {
    position: absolute; top: 0; left: 0;
    width: 90px; height: 70px; z-index: 2; pointer-events: none;
  }

  .tl-legend {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    padding: 2px 12px 4px; font-size: 12px;
  }
  .leg-tide { color: #8b0000; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
  .leg-tide-arrow { vertical-align: middle; }
  .leg-wind { color: #ef4444; font-weight: 600; }
  .leg-wave { color: #1e88e5; font-weight: 600; }
  .leg-note { color: #38bdf8; }

  .tl-slots-row {
    display: flex;
    height: 50px;
    border-top: 1px solid #1a5c3a;
    flex-shrink: 0;
  }

  .tl-slot {
    flex: 1; height: 100%;
    display: flex; flex-direction: column;
    justify-content: space-between; align-items: center;
    padding: 3px 1px;
    cursor: pointer; flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.5);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
  }
  .tl-slot:last-child { border-right: none; }
  .tl-slot-20, .tl-slot-40 { border-left: 1px solid rgba(255,255,255,0.5); }
  .tl-slot:active   { background: rgba(56,189,248,0.28); }
  .tl-slot.selected { background: rgba(56,189,248,0.22); }

  .slot-icon { font-size: 20px; line-height: 1; pointer-events: none; }
  .slot-rate { font-size: 12px; font-weight: 700; pointer-events: none; line-height: 1; white-space: nowrap; }

  .slot-hr {
    position: absolute; top: 3px; left: 3px; z-index: 2;
    font-size: 17px; font-weight: 700; color: #ef4444;
    pointer-events: none; line-height: 1;
    background: rgba(255,255,255,0.88); border-radius: 3px; padding: 1px 3px;
  }

  /* ── Tap hint ────────────────────────────────────────────── */
  .tap-hint { font-size: 17px; color: #94a3b8; text-align: center; padding: 4px 12px 0; }

  /* ── Detail panel ────────────────────────────────────────── */
  .detail-section { padding: 10px 12px; }
  .detail-empty {
    background: #1e293b; border: 1px dashed #334155; border-radius: 8px;
    min-height: 160px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    color: #94a3b8; font-size: 17px;
  }
  .detail-empty .hint { font-size: 15px; color: #475569; margin-top: 4px; }

  .detail-card { background: #1e293b; border-radius: 8px; overflow: hidden; border: 1px solid #334155; }
  .detail-card-header {
    background: #0c1829; padding: 8px 12px;
    border-bottom: 1px solid #1e3a5f;
    display: flex; align-items: baseline; gap: 10px;
  }
  .dc-time { font-size: 22px; font-weight: 700; color: #38bdf8; }
  .dc-date { font-size: 16px; color: #94a3b8; }

  .detail-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
  .dc-row    { display: flex; flex-direction: column; gap: 3px; }
  .dc-label  { font-size: 13px; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.05em; }
  .dc-value  { font-size: 18px; color: #f1f5f9; font-weight: 500; }
  .dc-value.flood { color: #ef4444; }
  .dc-value.ebb   { color: #34d399; }
  .dc-value.warn  { color: #fbbf24; }
  .dc-divider { height: 1px; background: #293548; }
  .dc-tidehour-badge {
    display: inline-block; font-size: 14px;
    background: #0f172a; color: #94a3b8;
    border-radius: 4px; padding: 1px 6px; margin-left: 6px;
  }

  /* ── Walton Tide Panel ───────────────────────────────────── */
  .tide-waves-grid { display: flex; gap: 10px; align-items: stretch; }
  .tw-left  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .tw-left .dc-value { white-space: normal; word-break: break-word; }
  .tw-right { flex-shrink: 0; display: flex; align-items: flex-start; }
  .tide-panel { width: 108px; flex-shrink: 0; display: flex; flex-direction: column;
                align-items: center; gap: 3px; }
  .tp-cap { font-size: 10px; color: #cbd5e1; font-weight: 600; text-align: center; line-height: 1.25; }
  .tide-box { position: relative; width: 44px; border: 1px solid #475569; border-radius: 4px;
              background: linear-gradient(#0c2040, #0f2d4d); overflow: hidden; }
  .tp-water { position: absolute; left: 0; right: 0; bottom: 0; }
  .tp-arrow { position: absolute; left: 50%; transform: translateX(-50%) translateY(50%);
              font-size: 14px; line-height: 1; text-shadow: 0 0 2px #000; }
  .tp-summary { font-size: 10px; text-align: center; line-height: 1.3; margin-top: 2px; font-weight: 600; }

  /* ── Compound image (detail panel) ──────────────────────── */
  .cmp-img-wrap { position: relative; flex-shrink: 0; width: 96px; height: 96px; }
  .cmp-img-wrap img { position: absolute; top: 0; left: 0; width: 96px; height: 96px; }
  .cmp-img-wrap svg.tide-flow { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; }

  .dc-sublabel  { font-size: 12px; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 5px; }
  .dc-subvalue  { font-size: 16px; color: #f1f5f9; font-weight: 500; }
  .dc-subvalue.warn { color: #fbbf24; }

  /* ── Info buttons ────────────────────────────────────────── */
  .info-btn-row { display: flex; gap: 4px; padding: 10px 12px 14px; }
  .info-btn { flex: 1; text-align: center; font-size: 10px; padding: 5px 2px; }

  /* ── NTM modal ──────────────────────────────────────────── */
  .ntm-list { display: flex; flex-direction: column; gap: 10px; }
  .ntm-item { border-bottom: 1px solid #293548; padding-bottom: 10px; }
  .ntm-item:last-child { border-bottom: none; padding-bottom: 0; }
  .ntm-item a { color: #38bdf8; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; display: block; }
  .ntm-item a:active { text-decoration: underline; }
  .ntm-item-date { font-size: 12px; color: #64748b; margin-top: 2px; }
  .ntm-empty { font-size: 14px; color: #64748b; text-align: center; padding: 12px 0; }
  .ntm-attribution { font-size: 11px; color: #475569; text-align: center;
                     margin-top: 12px; border-top: 1px solid #293548;
                     padding-top: 10px; line-height: 1.55; }
  .ntm-attribution a { color: #38bdf8; }

  /* ── Markdown modal body ─────────────────────────────────── */
  .modal-md { font-size: 14px; color: #cbd5e1; line-height: 1.6; }
  .modal-md ul { list-style: disc; padding-left: 18px; margin: 4px 0; }
  .modal-md li { margin: 3px 0; }
  .modal-md p  { margin: 6px 0; }
  .modal-md a  { color: #38bdf8; text-decoration: none; }
  .modal-md strong { color: #e2e8f0; }
  .modal-md h3, .modal-md h4, .modal-md h5 { color: #e2e8f0; margin: 8px 0 4px; }

  /* ── Image overlays ──────────────────────────────────────── */
  .img-overlay {
    position: absolute; z-index: 3;
    font-size: 10px; font-weight: 700; color: #fff;
    background: rgba(0,0,0,0.58); border-radius: 2px;
    padding: 1px 3px; pointer-events: none; line-height: 1.2;
  }
  .img-overlay-bl { bottom: 2px; left: 2px; }
  .img-overlay-br { bottom: 2px; right: 2px; }

  /* ── Action buttons ──────────────────────────────────────── */
  .action-btns { display: flex; gap: 8px; margin-top: 10px; }
  .hys-btn {
    flex: 1;
    background: #1e3a5f; border: 1px solid #38bdf8;
    color: #38bdf8; font-size: 14px; font-weight: 600;
    border-radius: 6px; padding: 8px 6px;
    cursor: pointer; text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .hys-btn:active { background: #0c2040; }

  /* ── Now panel rows ──────────────────────────────────────── */
  .now-row {
    display: flex; flex-direction: column; gap: 1px;
    padding: 6px 0; border-bottom: 1px solid #293548;
  }
  .now-row:last-child { border-bottom: none; }
  .now-lbl { font-size: 11px; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.04em; }
  .now-val { font-size: 16px; color: #f1f5f9; font-weight: 500; }
  .now-val.surge-pos { color: #fbbf24; }
  .now-val.surge-neg { color: #34d399; }
  .now-walton-tides { padding: 8px 0 4px; border-top: 1px solid #293548; margin-top: 6px; }
  .now-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
  .now-section { font-size: 12px; font-weight: 700; color: #38bdf8;
                 text-transform: uppercase; letter-spacing: 0.05em;
                 padding: 8px 0 4px; }

  /* ── Modals ──────────────────────────────────────────────── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 1400;  /* above ECCsailing app-screens (1100) + top bar (1300) */
    background: rgba(0,0,0,0.78);
    display: flex; align-items: center; justify-content: center;
    padding: 16px 10px;
  }
  .modal-overlay.hidden { display: none; }
  .modal-card {
    background: #1e293b; border: 1px solid #334155; border-radius: 10px;
    width: 100%; max-width: 340px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
    padding: 36px 14px 18px;
  }
  .modal-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; color: #94a3b8;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px;
    -webkit-tap-highlight-color: transparent;
  }
  .modal-close:active { color: #f1f5f9; }
  .modal-title { font-size: 14px; font-weight: 700; color: #38bdf8;
                 text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
  .modal-text  { font-size: 15px; color: #cbd5e1; line-height: 1.65; white-space: pre-wrap; }

  /* ── Astro panel ─────────────────────────────────────────── */
  .tap-hint-row { display: flex; align-items: center; justify-content: center;
                  gap: 10px; padding: 4px 12px 0; }
  .tap-hint-row .tap-hint { padding: 0; }

  .astro-calline { font-size: 14px; font-weight: 700; color: #f1f5f9;
                   text-align: center; margin-bottom: 4px; }
  .astro-loc { font-size: 11px; color: #38bdf8; text-align: center;
               margin-bottom: 10px; letter-spacing: 0.02em; }
  .astro-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .astro-table th, .astro-table td {
    padding: 5px 4px; text-align: left; vertical-align: top;
    border-bottom: 1px solid #293548;
  }
  .astro-table thead th {
    font-size: 10px; color: #38bdf8; text-transform: uppercase;
    letter-spacing: 0.04em; font-weight: 600;
  }
  .astro-table .body-cell { color: #38bdf8; font-weight: 700; width: 42px; }
  .astro-table .ev-sub { font-size: 10px; color: #38bdf8; display: block; }
  .astro-table .ev-val { color: #f1f5f9; }
  .astro-event { font-size: 13px; font-weight: 700; color: #fbbf24; }
  .astro-moonbox { display: flex; align-items: center; gap: 10px;
                   padding-top: 10px; }
  .astro-moonbox .mb-meta { font-size: 12px; color: #cbd5e1; line-height: 1.5; }
  .astro-moonbox .mb-name { font-weight: 700; color: #f1f5f9; }

  /* ── Forecast modal ──────────────────────────────────────── */
  .fcst-issued  { font-size: 12px; color: #ffffff; font-weight: 700; margin-bottom: 8px; }
  .fcst-gensit  { font-size: 13px; color: #94a3b8; line-height: 1.5; margin-bottom: 10px;
                  background: #0f172a; border-radius: 4px; padding: 6px 8px; }
  .fcst-period  { font-size: 11px; font-weight: 700; color: #38bdf8;
                  text-transform: uppercase; letter-spacing: 0.05em;
                  margin: 10px 0 5px; border-top: 1px solid #293548; padding-top: 8px; }
  .fcst-period:first-of-type { border-top: none; padding-top: 0; }
  .fcst-field   { font-size: 13px; color: #f1f5f9; margin-bottom: 6px; line-height: 1.4; }
  .fcst-lbl     { font-size: 10px; color: #64748b; text-transform: uppercase;
                  letter-spacing: 0.05em; display: block; margin-bottom: 1px; }
  .fcst-link    { display: block; font-size: 13px; color: #38bdf8; margin-top: 12px;
                  text-align: right; text-decoration: none; }

  /* ── Synoptic chart modal ────────────────────────────────── */
  .syn-run-info { font-size: 12px; color: #64748b; margin-bottom: 6px; text-align: center; }
  .syn-steps    { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
  .syn-step-btn {
    background: #0f172a; border: 1px solid #334155;
    color: #94a3b8; font-size: 12px; font-weight: 600;
    border-radius: 4px; padding: 4px 8px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .syn-step-btn.active { background: #1e3a5f; border-color: #38bdf8; color: #38bdf8; }
  .syn-img-wrap { background: #0f172a; border-radius: 4px; overflow: hidden; margin-bottom: 6px; min-height: 60px; }
  .syn-img-wrap img { width: 100%; display: block; }
  .syn-img-err  { font-size: 13px; color: #64748b; text-align: center; padding: 20px 0; }
  .syn-nav { display: flex; gap: 6px; margin-top: 6px; }
  .syn-nav button {
    flex: 1; background: #1e293b; border: 1px solid #334155;
    color: #94a3b8; font-size: 12px; border-radius: 4px; padding: 6px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .syn-nav button:active { background: #0f172a; }
  .syn-metlink { display: block; font-size: 12px; color: #38bdf8; text-align: center;
                 text-decoration: none; margin-top: 8px; }

  /* ── Issues viewer modal ─────────────────────────────────────── */
  .issue-line1 { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; margin-bottom:4px; }
  .issue-id    { font-size:13px; font-weight:700; color:#38bdf8; flex-shrink:0; }
  .issue-user  { font-size:13px; font-weight:700; color:#e2e8f0; letter-spacing:0.06em; flex-shrink:0; }
  .issue-dt    { font-size:12px; color:#64748b; }
  .issue-latlon { font-size:12px; color:#64748b; margin-bottom:6px; }
  .issue-latlon a { color:#38bdf8; text-decoration:none; }
  .issue-text  { font-size:14px; color:#cbd5e1; line-height:1.6; white-space:pre-wrap; margin-bottom:8px; }
  .issue-photo { width:100%; border-radius:4px; display:block; cursor:pointer; margin-top:4px; }
  .issue-nav   { display:flex; gap:6px; margin-top:12px;
                 border-top:1px solid #293548; padding-top:10px; }
  .issue-nav button {
    flex:1; background:#0f172a; border:1px solid #334155;
    color:#94a3b8; font-size:14px; font-weight:600;
    border-radius:4px; padding:7px 4px; cursor:pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .issue-nav button:active   { background:#1e293b; }
  .issue-nav button:disabled { opacity:0.3; cursor:not-allowed; }
  .issue-counter { text-align:center; font-size:11px; color:#64748b; margin-top:6px; }
  .issue-empty   { font-size:14px; color:#475569; text-align:center; padding:24px 0; }

  /* ── HiLo table ──────────────────────────────────────────────── */
  .hilo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .hilo-table th, .hilo-table td { padding: 3px 4px; text-align: left; vertical-align: top; }
  .hilo-table thead th { font-size: 10px; color: #38bdf8; text-transform: uppercase;
                         letter-spacing: 0.03em; font-weight: 600; border-bottom: 1px solid #334155; }
  .hilo-table .hl-grp { color: #38bdf8; font-weight: 700; white-space: nowrap; }
  .hilo-table .hl-dt  { color: #f1f5f9; white-space: nowrap; }
  .hilo-table .hl-ht  { color: #f1f5f9; }
  .hilo-table tr.hl-first td { border-top: 1px solid #293548; }
  .hilo-foot { font-size: 11px; color: #38bdf8; margin-top: 10px; line-height: 1.5; }
  .hilo-foot .courtesy { color: #64758b; font-style: italic; }
  .hilo-explain { font-size: 12px; color: #cbd5e1; line-height: 1.55; margin-top: 8px; }
  .hilo-btn-row { margin-top: 12px; display: flex; }
  .hilo-btn-row .hdr-btn { flex: 1; text-align: center; font-size: 13px; padding: 8px; }
  .hilo-walton { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #293548;
                 display: flex; flex-direction: column; gap: 3px; }

  /* ── Wave/Surge modal ────────────────────────────────────────── */
  .ws-section-hdr {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: #38bdf8;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 10px 0 4px; border-top: 1px solid #293548; padding-top: 8px;
  }
  .ws-section-hdr.first { border-top: none; padding-top: 0; margin-top: 0; }
  .ws-meta { font-size: 10px; color: #64748b; flex: 1; font-weight: 400;
             text-transform: none; letter-spacing: 0; }
  .ws-refresh { background: #0f172a; border: 1px solid #334155; color: #64748b;
                font-size: 11px; border-radius: 3px; padding: 2px 6px;
                cursor: pointer; flex-shrink: 0; }
  .ws-refresh:active { background: #1e293b; }
  .ws-img-wrap { background: #f8fafc; border-radius: 4px; overflow: hidden; margin-top: 4px; }
  .ws-img-wrap img { width: 100%; display: block; }
  .ws-note { font-size: 10px; color: #475569; margin-top: 4px; line-height: 1.5; }
  .ws-note a { color: #38bdf8; text-decoration: none; }

  /* ── Calibrate ───────────────────────────────────────────────── */
  .cal-dialogue { font-size: 14px; color: #cbd5e1; line-height: 1.55;
                  margin-bottom: 10px; max-height: 38vh; overflow-y: auto; }
  .cal-dialogue ul { list-style: disc; padding-left: 18px; margin: 4px 0; }
  .cal-dialogue li { margin: 3px 0; }
  .cal-dialogue p  { margin: 6px 0; }
  .cal-input-row { margin-bottom: 10px; }
  .cal-input-row label { display: block; font-size: 11px; color: #38bdf8;
                         text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
  .cal-input-row input {
    width: 100%; font-size: 20px; padding: 9px 10px; border-radius: 6px;
    border: 1px solid #38bdf8; background: #0c2040; color: #f1f5f9;
    -webkit-appearance: none; appearance: none;
  }
  .cal-btn-row { display: flex; gap: 8px; margin-bottom: 12px; }
  .cal-btn-row .hys-btn { flex: 1; }
  .cal-btn-row .cal-abort { border-color: #ef4444; color: #ef4444; }
  .cal-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
  .cal-table th, .cal-table td { border: 1px solid #334155; padding: 4px 3px;
                                 text-align: center; vertical-align: middle; }
  .cal-table thead th { background: #1e3a5f; color: #7dd3fc; font-size: 10px;
                        text-transform: uppercase; letter-spacing: 0.02em; }
  .cal-table td:first-child { color: #7dd3fc; font-weight: 700; }
  .cal-table .cal-sub { display: block; font-size: 10px; color: #94a3b8; }
  .cal-table tr.cal-row-target td { background: #0c1829; color: #fbbf24; font-weight: 600; }
  .cal-countdown { text-align: center; margin: 4px 0 12px; }
  .cal-cd-lbl  { font-size: 12px; color: #38bdf8; text-transform: uppercase;
                 letter-spacing: 0.05em; margin-bottom: 2px; }
  .cal-cd-main { font-size: 44px; font-weight: 800; color: #ef4444; line-height: 1; }
  .cal-cd-sub  { font-size: 20px; font-weight: 700; color: #ef4444; line-height: 1.2; margin-top: 4px; }
  .cal-flash   { animation: calflash 0.5s steps(1, end) infinite; }
  @keyframes calflash { 50% { opacity: 0.15; } }
  .cal-results .cal-res-line { font-size: 13px; color: #cbd5e1; line-height: 1.6; }
  .cal-results .cal-lf { font-size: 18px; font-weight: 700; color: #38bdf8;
                         margin: 10px 0 4px; line-height: 1.4; }
  .cal-err { color: #ef4444; font-size: 13px; margin-bottom: 10px; }

  /* Loading spinner */
  .spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #334155; border-top-color: #38bdf8;
    border-radius: 50%; animation: spin 0.8s linear infinite;
    vertical-align: middle; margin-right: 6px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
