.sp-tabs { background: transparent; border-bottom: 1px solid var(--border); padding: 0; }
.sp-day h2 { font-size: .95em; margin: 0 0 6px; }
.sp-day h2::first-letter { text-transform: uppercase; }
.sp-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.sp-item:first-of-type { border-top: 0; }
.sp-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9em; width: 3em; flex-shrink: 0; }
.sp-main { flex: 1; min-width: 0; }
.sp-main .badge { font-size: .8em; }
.sp-sub { font-size: .85em; margin-top: 2px; word-break: break-word; }
.sp-item .act.small { margin: 0; padding: 4px 8px; }

.sp-legend { display: flex; gap: 14px; margin-top: 10px; font-size: .85em; color: var(--muted); }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legend .t { width: 16px; height: 16px; padding: 0; min-width: 0; }
.sp-model-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sp-model-head h2 { margin: 0; }
.sp-prog { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 8px 0 12px; overflow: hidden; }
.sp-prog i { display: block; height: 100%; background: #2a78d6; border-radius: 3px; }
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 5px; }
.t {
  display: inline-grid; place-items: center; min-width: 52px; height: 34px; border-radius: 8px; padding: 0 4px;
  font-weight: 700; font-size: .85em; font-variant-numeric: tabular-nums; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--muted); background: var(--surface);
}
.t.seen { background: color-mix(in srgb, #2a78d6 22%, var(--surface)); border-color: #2a78d6; color: var(--text); }
.t.ride { background: #2a78d6; border-color: #2a78d6; color: #fff; }
.t.retired { opacity: .55; border-style: dashed; }
a.t:hover { border-color: var(--text); }

.sp-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85em; color: var(--muted); }
.sp-form label input, .sp-form label textarea { color: var(--text); }
.sp-credit { font-size: .8em; text-align: center; }
.sp-credit a { color: var(--muted); }
#acc-card .acc-form { max-width: 420px; }

.sp-section > .sp-model-head h2 { font-size: 1.1em; }
.sp-model { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.sp-model h3 { margin: 0; font-size: .95em; }

/* coupled Bombardier pairs */
.tiles-grid.pairs { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.t-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3px; }
.t-pair .t { min-width: 0; }
.t-pair .plus { font-size: .8em; color: var(--muted); font-weight: 700; }
.sp-pairs-note { font-size: .8em; margin: 8px 0 4px; }

/* no livery written down for a vehicle I have seen */
.t.nolivery { box-shadow: 0 0 0 2px var(--warn); }
button.t { cursor: pointer; font-family: inherit; }
button.t:hover { border-color: var(--text); }
/* partial numbers */
.spot-cands { display: flex; flex-wrap: wrap; gap: 4px; font-size: .85em; }
.spot-cands:empty { display: none; }
.cand-one { color: var(--ok); }
/* vehicle profile */
.sp-dlg-back { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.45); display: grid; place-items: start center; padding: 24px 12px; overflow-y: auto; }
.sp-dlg { width: 100%; max-width: 560px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.sp-dlg h3 { margin: 8px 0 2px; font-size: .9em; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sp-dlg .tiles { grid-template-columns: repeat(4, 1fr); margin: 4px 0; }
.sp-dlg-x { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; }
.sp-prof-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.sp-prof-head h2 { margin: 0; font-size: 1.15em; }
.t.big { min-width: 74px; height: 48px; font-size: 1.15em; flex-shrink: 0; }
.sp-prof-list { max-height: 40vh; overflow-y: auto; }
@media (max-width: 520px) { .sp-dlg .tiles { grid-template-columns: repeat(2, 1fr); } }
