:root {
      --ink: #10283b;
      --ink2: #183f59;
      --teal: #00a58e;
      --teal2: #007f75;
      --mint: #dff7f0;
      --lime: #cde900;
      --paper: #f7faf9;
      --white: #ffffff;
      --muted: #5f7180;
      --line: #dce8e6;
      --shadow: 0 18px 50px rgba(13,48,65,.13);
      --radius: 20px;
      --max: 1440px;

      /* Állapotjelző színek */
      --status-exact-bg: #dcfce7;
      --status-exact-text: #15803d;
      --status-delay-bg: #fef9c3;
      --status-delay-text: #854d0e;
      --status-heavy-bg: #fee2e2;
      --status-heavy-text: #b91c1c;

      /* Járatbadge színek */
      --route-blue: #0284c7;
      --route-green: #00a58e;
      --route-yellow: #f59e0b;
      --route-purple: #7c3aed;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      background: var(--paper);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
      line-height: 1.55;
    }
    a { color: inherit; text-decoration: none; }
    .container { width: min(var(--max), calc(100% - 40px)); margin: auto; }

    /* Header */
    header {
      position: sticky;
      z-index: 20;
      top: 0;
      background: rgba(255,255,255,.94);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(15px);
    }
    .nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
    .brand img { display: block; width: 188px; height: auto; }
    .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      background: var(--mint);
      color: var(--teal2);
      border-radius: 30px;
      font-size: 0.8rem;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .live-indicator .pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 3px rgba(0,165,142,.25);
    }

    /* Fő tartalom */
    .content-area { flex: 1 0 auto; padding: 48px 0 80px; }
    body > header, body > footer { flex-shrink: 0; }
    
    .page-head { margin-bottom: 32px; }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 10px;
      color: var(--teal2);
      font-size: .78rem;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .eyebrow:before { content: ""; width: 20px; height: 3px; background: var(--lime); border-radius: 3px; }
    .page-head h1 {
      font-size: 3.2rem;
      font-weight: 900;
      letter-spacing: 0;
      line-height: 1.08;
      margin: 0 0 8px;
    }
    .page-head h1 em { color: var(--teal); font-style: normal; }
    .page-head h2 {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--muted);
      margin: 0;
    }

    /* Kártya és Szűrősáv */
    .card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 28px rgba(13,48,65,.05);
      overflow: hidden;
    }
    .filter-bar {
      padding: 20px 24px;
      background: #fafcfb;
      border-bottom: 1px solid var(--line);
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
    }
    .filters-left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    select, input {
      padding: 10px 14px;
      color: var(--ink);
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 10px;
      font-size: 0.9rem;
      outline: none;
      font-family: inherit;
    }
    select:focus, input:focus { border-color: var(--teal); }

    /* Táblázat */
    .table-responsive { width: 100%; overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.92rem; }
    th {
      background: #fbfdfc;
      color: var(--muted);
      font-weight: 750;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      text-transform: uppercase;
      font-size: 0.72rem;
      letter-spacing: 0;
    }
    td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: #f9fcfb; }

    /* Vonalbadge-ek */
    .route-badge {
      display: inline-block;
      padding: 4px 11px;
      border-radius: 8px;
      font-weight: 900;
      font-size: 0.88rem;
      text-align: center;
      min-width: 44px;
      white-space: nowrap;
      overflow-wrap: normal;
      word-break: normal;
      color: var(--white);
    }
    .badge-blue { background: var(--route-blue); }
    @media(min-width: 861px) {
      th:nth-child(2), td:nth-child(2) { min-width: 12em; }
    }
    .badge-green { background: var(--route-green); }
    .badge-yellow { background: var(--route-yellow); color: var(--ink); }
    .badge-purple { background: var(--route-purple); }

    /* Állapotjelző pill-ek */
    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 750;
      white-space: nowrap;
    }
    .pill-exact { background: var(--status-exact-bg); color: var(--status-exact-text); }
    .pill-delay { background: var(--status-delay-bg); color: var(--status-delay-text); }
    .pill-heavy { background: var(--status-heavy-bg); color: var(--status-heavy-text); }

    /* GPS állapot */
    .gps-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 650; color: var(--ink2); }
    .gps-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--teal); }

    /* Footer */
    footer {
      padding: 38px 0 24px;
      background: #0b202f;
      color: #d7e3e8;
      border-top: 1px solid #17384d;
      font-size: 0.88rem;
    }
    .footer-main { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: start; }
    .company-logo img { max-width: 200px; max-height: 60px; height: auto; object-fit: contain; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      margin-top: 26px;
      padding-top: 20px;
      border-top: 1px solid #294354;
      font-size: 0.8rem;
    }

    @media(max-width: 860px) {
      th { display: none; }
      tr { display: block; padding: 16px; border-bottom: 1px solid var(--line); }
      td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border: none; }
      td::before { content: attr(data-label); font-weight: 750; font-size: 0.78rem; color: var(--muted); }
      .footer-main { grid-template-columns: 1fr; }
    }

    
[hidden] { display:none !important; }
.share-links {margin-top:24px;font-size:14px;overflow-wrap:anywhere}
.share-links h2 {font-size:16px;margin-bottom:10px}
.share-links p + p {margin-top:8px}
.share-links a {color:var(--teal2);text-decoration:underline;text-underline-offset:3px}
td details {margin-top:8px;max-height:260px;overflow:auto}
td summary {cursor:pointer;color:var(--teal2)}
td details strong {display:block;margin-top:8px;font-size:13px}
.feed-summary {display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:20px;color:var(--muted);font-size:.88rem}
.feed-message {padding:24px;text-align:center;color:var(--muted)}
.live-indicator[data-state="error"],.live-indicator[data-state="partial"] {background:#fff2d6;color:#714b06}
.live-indicator[data-state="loading"] {background:#edf1f3;color:#526777}
.value {min-width:0;overflow-wrap:anywhere}
.position-link {text-decoration:underline;text-underline-offset:3px;font-variant-numeric:tabular-nums}
.cell-note {display:block;font-size:.75rem;color:var(--muted)}
.pill-unknown {background:#edf1f3;color:#526777}
select,input {max-width:100%}
button {font:inherit;cursor:pointer}
.refresh {width:132px;max-width:100%;height:36px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;background:white;color:var(--teal2);font-size:14px;line-height:1;white-space:nowrap;cursor:pointer}
.refresh:disabled {cursor:wait;opacity:.65}
.refresh:focus-visible,a:focus-visible {outline:2px solid var(--teal2);outline-offset:3px}
@media(max-width:860px) {
  thead {display:none}
  td {gap:12px;align-items:flex-start}
  td::before {flex:0 0 38%}
  td:nth-child(2)::before {flex-basis:25%}
  td .value {text-align:right}
  .status-pill {white-space:normal}
  .nav {height:auto;min-height:76px;flex-wrap:wrap;gap:12px;padding:12px 0}
  .footer-bottom {flex-wrap:wrap;gap:12px}
}
@media(max-width:480px) {
  .page-head h1 {font-size:2.1rem}
  .content-area {padding-top:28px}
  .filter-bar {padding:16px}
  .filters-left, #searchInput {width:100%}
  .filters-left select {flex:1;min-width:0}
}
