.apt{--apt-ink:#10233f;--apt-muted:#5b6b82;--apt-line:#dfe5ee;--apt-bg:#f5f7fb;--apt-card:#fff;--apt-acc:#0f6fde;--apt-acc-ink:#fff;--apt-next:#e8f2ff;--apt-ok:#0a7d55;
  color:var(--apt-ink);font-size:16px;line-height:1.5;box-sizing:border-box}
.apt *,.apt *::before,.apt *::after{box-sizing:inherit}
.apt h2{font-size:1.35em;line-height:1.25;margin:1.6em 0 .5em}
.apt-lead{font-size:1.1em;color:var(--apt-muted);margin:0 0 1em}
.apt-search{background:var(--apt-bg);border:1px solid var(--apt-line);border-radius:16px;padding:16px;margin:0 0 1.5em}
.apt-search-title{margin:0 0 .6em!important;font-size:1.1em!important}
.apt-form{display:grid;grid-template-columns:1fr;gap:10px;position:relative}
.apt-field{position:relative;display:flex;flex-direction:column}
.apt-field label{font-size:.8em;font-weight:600;color:var(--apt-muted);margin:0 0 4px;}
.apt-in,.apt-date{width:100%;font:inherit;font-size:1.05em;padding:12px 14px;border:1px solid var(--apt-line);border-radius:10px;background:#fff;color:var(--apt-ink);min-height:48px}
.apt-in:focus,.apt-date:focus{outline:2px solid var(--apt-acc);outline-offset:1px;border-color:transparent}
.apt-swap{justify-self:end;margin:-6px 0;width:40px;height:40px;border-radius:50%;border:1px solid var(--apt-line);background:#fff;color:var(--apt-acc);font-size:20px;line-height:1;cursor:pointer;padding:0}
.apt-swap:hover{background:var(--apt-next)}
.apt-go{font:inherit;font-weight:700;font-size:1.05em;background:var(--apt-acc);color:var(--apt-acc-ink);border:0;border-radius:10px;min-height:50px;padding:0 22px;cursor:pointer}
.apt-go:hover{filter:brightness(1.08)}
.apt-ac{position:absolute;top:100%;left:0;right:0;z-index:50;list-style:none;margin:4px 0 0;padding:4px;background:#fff;border:1px solid var(--apt-line);border-radius:10px;box-shadow:0 10px 30px rgba(16,35,63,.12);max-height:320px;overflow:auto}
.apt-ac li{padding:10px 12px;border-radius:8px;cursor:pointer;margin:0}
.apt-ac li small{color:var(--apt-muted);margin-left:6px}
.apt-ac li.on,.apt-ac li:hover{background:var(--apt-next)}
.apt-ac .apt-ac-none{color:var(--apt-muted);cursor:default}
.apt-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;align-items:center}
.apt-chips:empty{display:none}
.apt-chips-l{font-size:.85em;color:var(--apt-muted);margin-right:2px}
.apt-chips button{font:inherit;font-size:.85em;padding:6px 12px;border-radius:999px;border:1px solid var(--apt-line);background:#fff;color:var(--apt-ink);cursor:pointer}
.apt-chips button:hover{border-color:var(--apt-acc);color:var(--apt-acc)}
.apt-results:not(:empty){margin-top:16px}
.apt-res-head{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;font-size:1.05em;margin:0 0 10px}
.apt-res-date{margin-left:auto;color:var(--apt-muted);font-size:.9em}
.apt-card{position:relative;background:var(--apt-card);border:1px solid var(--apt-line);border-radius:12px;padding:12px 14px;margin:0 0 8px}
.apt-card.apt-next{border-color:var(--apt-acc);background:var(--apt-next)}
.apt-gone{opacity:.5}
.apt-flag{position:absolute;top:-9px;right:12px;background:var(--apt-acc);color:#fff;font-size:.72em;font-weight:700;padding:2px 8px;border-radius:999px;}
.apt-times{display:flex;align-items:center;gap:10px;font-variant-numeric:tabular-nums}
.apt-dep,.apt-arr{font-size:1.45em;font-weight:700;white-space:nowrap}
.apt-arr{font-weight:600;color:var(--apt-muted)}
.apt-line{flex:1;height:2px;background:repeating-linear-gradient(90deg,var(--apt-line) 0 6px,transparent 6px 10px);min-width:20px}
.apt-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-top:6px;font-size:.9em;color:var(--apt-muted)}
.apt-badge{display:inline-block;font-size:.78em;font-weight:700;padding:2px 8px;border-radius:6px;background:#eef1f6;color:var(--apt-ink)}
.apt-badge.apt-IC{background:#fde9e7;color:#a3271b}
.apt-badge.apt-P{background:#e6f1ff;color:#0b4fa3}
.apt-badge.apt-R{background:#e8f6ef;color:#0a6b47}
.apt-badge.apt-B{background:#fff3d6;color:#7a5200}
.apt-no{color:var(--apt-ink);font-weight:600}
.apt-legs{margin:8px 0 0;padding-left:20px;font-size:.9em}
.apt-legs li{margin:2px 0}
.apt-past{margin:0 0 8px}
.apt-past summary{cursor:pointer;color:var(--apt-muted);font-size:.9em;padding:4px 0;margin-bottom:6px}
.apt-empty,.apt-info{background:#fff;border:1px dashed var(--apt-line);border-radius:10px;padding:12px 14px;color:var(--apt-muted)}
.apt-info{border-style:solid;background:#fffaf0}
.apt-res-foot{margin:10px 0 0;font-size:.9em}
.apt-res-foot a,.apt-note a{color:var(--apt-acc)}
.apt-summary{font-size:1.05em}
.apt-sub{color:var(--apt-muted);font-size:.92em}
.apt-table-wrap{overflow-x:auto;border:1px solid var(--apt-line);border-radius:12px;margin:0 0 1em}
.apt-table{width:100%;border-collapse:collapse;font-size:.95em;margin:0!important;border:0!important}
.apt-table th,.apt-table td{padding:10px 12px;text-align:left;border:0!important;border-bottom:1px solid var(--apt-line)!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.apt-table thead th{background:var(--apt-bg);font-size:.8em;color:var(--apt-muted)}
.apt-table tbody tr:last-child td{border-bottom:0!important}
.apt-table .apt-t{font-weight:700}
.apt-table tr.apt-next td{background:var(--apt-next)}
.apt-links{list-style:none;margin:0 0 1em;padding:0;display:grid;grid-template-columns:1fr;gap:8px}
.apt-links li{margin:0}
.apt-links a{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid var(--apt-line);border-radius:10px;text-decoration:none;color:var(--apt-ink);background:#fff;font-weight:600}
.apt-links a:hover{border-color:var(--apt-acc);color:var(--apt-acc)}
.apt-arrow{color:var(--apt-muted)}
.apt-tips{padding-left:20px}
.apt-tips li{margin:6px 0}
.apt-cta{margin:1em 0}
.apt-btn{display:inline-block;background:var(--apt-acc);color:#fff!important;text-decoration:none;font-weight:700;padding:12px 18px;border-radius:10px}
.apt-note{font-size:.85em;color:var(--apt-muted);border-top:1px solid var(--apt-line);padding-top:12px;margin-top:1.5em}
@media (min-width:720px){
  .apt-search{padding:20px}
  .apt-form{grid-template-columns:1fr auto 1fr 170px auto;align-items:end;gap:10px}
  .apt-swap{justify-self:center;margin:0 0 4px}
  .apt-links{grid-template-columns:repeat(2,1fr)}
  .apt-links-st{grid-template-columns:repeat(4,1fr)}
}
.apt button,.apt .apt-btn,.apt label,.apt th{text-transform:none!important;letter-spacing:normal!important}
.apt h1.apt-h1{font-size:2em;line-height:1.2;margin:0 0 .4em}
@media (max-width:719px){.apt h1.apt-h1{font-size:1.6em}}
