/* Seyahat Kartları — kâğıt bilet / seyahat defteri havası */

:root {
  --paper: #f3eee4;
  --card: #fffcf6;
  --card-2: #f7f2e8;
  --ink: #1d1b17;
  --ink-2: #5f5a51;
  --ink-3: #948e82;
  --line: #e4dccd;
  --accent: #d9542b;
  --accent-ink: #fffaf2;
  --board: #1d1b17;
  --board-ink: #ffb341;
  --live: #2f7d4f;
  --c-transport: #2d5a8a;
  --c-stay: #8a466a;
  --c-spot: #4c7a37;
  --c-todo: #b07c1f;
  --shadow: 0 1px 0 rgb(60 45 20 / .06), 0 8px 24px -12px rgb(60 45 20 / .22);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121312;
    --card: #1c1d1b;
    --card-2: #232421;
    --ink: #efe8da;
    --ink-2: #b1aa9c;
    --ink-3: #7c776d;
    --line: #2f302c;
    --accent: #ff7a45;
    --accent-ink: #1a0f08;
    --board: #0a0a09;
    --board-ink: #ffb341;
    --live: #5cc285;
    --c-transport: #86aee0;
    --c-stay: #d991b8;
    --c-spot: #98c77e;
    --c-todo: #e6b659;
    --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 10px 28px -14px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #121312; --card: #1c1d1b; --card-2: #232421; --ink: #efe8da; --ink-2: #b1aa9c; --ink-3: #7c776d;
  --line: #2f302c; --accent: #ff7a45; --accent-ink: #1a0f08; --board: #0a0a09; --board-ink: #ffb341; --live: #5cc285;
  --c-transport: #86aee0; --c-stay: #d991b8; --c-spot: #98c77e; --c-todo: #e6b659;
  --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 10px 28px -14px rgb(0 0 0 / .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
.muted { color: var(--ink-3); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.tiny { width: 14px; height: 14px; stroke-width: 2; }

.t-transport { --c: var(--c-transport); }
.t-stay { --c: var(--c-stay); }
.t-spot { --c: var(--c-spot); }
.t-todo { --c: var(--c-todo); }

.eyebrow {
  margin: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- üst bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.top-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.top h1 {
  margin: 0; font: 600 28px/1.1 var(--serif); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
}
.tag-emoji { margin-right: .3em; font-family: var(--sans); }

.page {
  max-width: 620px; margin: 0 auto;
  padding: 6px 16px calc(env(safe-area-inset-bottom) + 120px);
}

/* ---------- ana ekran: bagaj etiketi kartları ---------- */
.tag {
  --notch: 9px;
  position: relative; width: 100%; display: flex; align-items: stretch; text-align: left;
  margin-bottom: 14px; min-height: 96px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle var(--notch) at 76px 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 76px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 76px 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 76px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.tag-stub {
  width: 76px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1.5px dashed var(--line); color: var(--accent);
}
.tag-stub b { font: 600 34px/1 var(--serif); }
.tag-stub small { font: 700 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag-stub .i { width: 28px; height: 28px; }
.tag-body { flex: 1; min-width: 0; padding: 16px 16px 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tag-name { font: 600 21px/1.2 var(--serif); }
.tag-dates { font: 500 12px/1.4 var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.tag.past { opacity: .62; }

.stamp {
  align-self: flex-start; margin-top: 6px;
  font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 4px; border: 1.5px solid currentColor; color: var(--ink-3);
  transform: rotate(-2deg);
}
.stamp.live { color: var(--live); }
.stamp.upcoming { color: var(--accent); }

.empty { text-align: center; padding: 56px 20px; color: var(--ink-2); }
.empty-ic { width: 56px; height: 56px; stroke-width: 1.2; color: var(--ink-3); }
.empty h2 { font: 600 22px/1.2 var(--serif); color: var(--ink); margin: 14px 0 6px; }
.empty p { margin: 0 auto; max-width: 30ch; font-size: 15px; }

/* ---------- sıradaki: biniş kartı ---------- */
.pass {
  --c: var(--accent);
  position: relative; margin: 8px 0 22px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 18px 16px;
  overflow: hidden;
}
.pass::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.pass.slim { padding: 14px 18px; }
.pass.slim::before { display: none; }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pass-label {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c);
}
.pass-op { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.pass-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 6px; margin-top: 14px; }
.pass-end { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pass-end.right { text-align: right; align-items: flex-end; }
.pass-city { font: 600 clamp(16px, 4.8vw, 19px)/1.15 var(--serif); overflow-wrap: break-word; hyphens: auto; }
.pass-time { font: 600 26px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pass-mid { display: flex; align-items: center; color: var(--c); padding-top: 2px; position: relative; }
.pass-mid .i { width: 22px; height: 22px; }
.pass-mid::before, .pass-mid::after { content: ""; width: 8px; border-top: 1.5px dashed var(--ink-3); margin: 0 3px; }

.pass-single { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; }
.pass-single > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pass-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.pass-sub { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pass-date { margin-top: 10px; font: 500 12px/1.3 var(--mono); color: var(--ink-2); letter-spacing: .03em; text-transform: uppercase; }

.perf {
  position: relative; height: 0; margin: 16px -18px; border-top: 1.5px dashed var(--line);
}
.perf::before, .perf::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper);
}
.perf::before { left: -10px; }
.perf::after { right: -10px; }

.pass-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pass-count-l { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.board { display: inline-flex; align-items: center; gap: 3px; }
.flaps { display: inline-flex; gap: 2px; }
.flap {
  position: relative; width: 26px; height: 38px; display: grid; place-items: center;
  font: 700 25px/1 var(--mono); color: var(--board-ink); background: var(--board); border-radius: 5px;
  box-shadow: inset 0 -12px 16px -12px rgb(255 255 255 / .06);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .55); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.flap-unit { font: 700 11px/1 var(--mono); text-transform: uppercase; color: var(--ink-2); margin: 0 6px 0 3px; letter-spacing: .06em; }
.flap-unit:last-child { margin-right: 0; }

.pass-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 2px 14px; margin: 16px 0 0; }
.pass-facts > div { min-width: 0; }
.pass-facts > div[role="button"] { cursor: pointer; }
.pass-facts dt { font: 700 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pass-facts dd { margin: 3px 0 0; display: flex; align-items: center; gap: 5px; font: 600 15px/1.2 var(--mono); white-space: nowrap; }
.pass-facts dd > span { overflow: hidden; text-overflow: ellipsis; }
.pass-facts dd .i { color: var(--ink-3); }

.pass-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pass-actions .btn { flex: 1 1 auto; }
.pass-today { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: italic 15px/1.4 var(--serif); color: var(--ink-2); }
.pass.slim .pass-today { margin: 0; padding: 0; border: 0; }

/* ---------- sekmeler ---------- */
.tabs {
  display: flex; gap: 18px; overflow-x: auto; margin: 0 -16px 2px; padding: 0 16px;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 0 11px; font-size: 14px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.on { color: var(--ink); border-color: var(--ink); }

.past-toggle {
  display: block; margin: 14px auto 0; padding: 6px 12px; border-radius: 999px;
  font: 600 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--ink-2); background: var(--card-2);
}

/* ---------- günler ve zaman çizelgesi ---------- */
.day { margin-top: 22px; }
.day-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.day-num { font: 600 38px/1 var(--serif); letter-spacing: -.02em; min-width: 46px; text-align: right; }
.day-meta { display: flex; flex-direction: column; }
.day-meta b { font: 600 15px/1.2 var(--sans); text-transform: capitalize; }
.day-meta small { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.day.today .day-num, .day.today .day-meta b { color: var(--accent); }
.day.past-day { opacity: .7; }

.rail { list-style: none; margin: 0; padding: 0; }
.stop { position: relative; display: grid; grid-template-columns: 46px 20px minmax(0, 1fr); padding-bottom: 10px; }
.stop::before {
  content: ""; position: absolute; left: 55px; top: 0; bottom: 0; width: 1.5px; background: var(--line);
}
.stop:first-child::before { top: 22px; }
.stop:last-child::before { bottom: calc(100% - 22px); }
.stop:only-child::before { display: none; }
.stop-time { padding-top: 15px; text-align: right; font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stop-dot {
  position: relative; z-index: 1; width: 11px; height: 11px; margin: 16px auto 0; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 3px var(--paper);
}
.stop.untimed .stop-dot { background: var(--paper); border: 1.5px solid var(--c); }
.stop.past .stop-dot { background: var(--ink-3); border-color: var(--ink-3); }
.stop.live .stop-dot { background: var(--live); animation: pulse 1.8s infinite; box-shadow: 0 0 0 0 var(--live); }

.card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-left: 4px; }
.stop.past .card { opacity: .6; }
.stop.past.open .card { opacity: 1; }
.stop.live .card { box-shadow: 0 0 0 1.5px var(--live), var(--shadow); }
.card-row { display: flex; align-items: center; gap: 11px; padding: 11px 12px; cursor: pointer; min-height: 58px; }
.card-ic {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.card-title .arrow { display: inline-flex; vertical-align: -3px; margin: 0 4px; color: var(--ink-3); }
.card-title .arrow .i { width: 15px; height: 15px; }
.check.on ~ .card-body .card-title { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); }
.card-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.check {
  width: 26px; height: 26px; flex: none; margin: 0 5px; border-radius: 50%;
  border: 1.75px solid var(--c); display: grid; place-items: center; color: transparent;
  transition: background .15s;
}
.check .i { width: 15px; height: 15px; stroke-width: 3; }
.check.on { background: var(--c); color: var(--card); }

.badge {
  flex: none; font: 700 11px/1 var(--mono); letter-spacing: .02em; padding: 5px 7px; border-radius: 6px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.badge.live { background: var(--live); color: var(--card); }

.round-btn {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.round-btn .i { width: 16px; height: 16px; }

.move { display: flex; flex-direction: column; flex: none; margin-right: -4px; }
.move button { width: 28px; height: 20px; display: grid; place-items: center; color: var(--ink-3); }
.move button .i { width: 16px; height: 16px; }
.move button:disabled { opacity: .2; cursor: default; }

.details { padding: 4px 14px 14px; border-top: 1px dashed var(--line); background: var(--card-2); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.row-l { grid-column: 1 / -1; font: 700 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.row-v { min-width: 0; overflow-wrap: break-word; }
.row-v a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.row-v a.place { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.row-v a.place small { font-size: 13px; color: var(--ink-2); }
.row-v.mono { font: 600 15px/1.3 var(--mono); letter-spacing: .04em; }
.mini {
  flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600;
  color: var(--ink); padding: 6px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none;
}
.notes { white-space: pre-wrap; margin: 12px 0 0; font: italic 15px/1.45 var(--serif); color: var(--ink-2); }
.detail-actions { display: flex; gap: 8px; margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px; border-radius: 11px; font-size: 15px; font-weight: 600; text-decoration: none;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.btn .i { width: 18px; height: 18px; }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--accent); }
.btn.wide { width: 100%; }

.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.files:empty { display: none; }
.thumb {
  position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line); color: var(--ink-2);
}
.thumb.doc, .thumb:has(> .i) { background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb span { font-size: 10px; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgb(0 0 0 / .7); color: #fff; font-size: 15px; line-height: 1; }

/* ---------- ekle butonu ---------- */
.fab {
  position: fixed; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px 14px 20px; border-radius: 999px; font-weight: 650; font-size: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45);
}
.fab .i { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- alt sayfa ---------- */
#sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgb(20 15 8 / .45); animation: fade .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  max-width: 620px; margin: 0 auto;
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  animation: up .28s cubic-bezier(.2, .8, .2, 1);
  overscroll-behavior: contain;
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.sheet-head {
  position: sticky; top: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font: 600 19px/1.2 var(--serif); text-align: center; }
.sheet-head .link:last-child { justify-self: end; }
.link { color: var(--ink-2); font-size: 16px; }
.link.strong { color: var(--accent); font-weight: 700; }
.sheet-foot { padding: 0 16px; }
.form-note {
  display: flex; align-items: center; gap: 8px; margin: 14px 16px 0; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; background: color-mix(in srgb, var(--live) 12%, transparent); color: var(--live); font-weight: 600;
}

.fields { display: flex; flex-wrap: wrap; gap: 14px 12px; padding: 18px 16px; }
.field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.half { flex: 1 1 calc(50% - 6px); }
.field > span { font: 700 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font-size: 16px; padding: 11px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { min-height: 46px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.upload { align-self: flex-start; margin-top: 2px; }
.field small { font-size: 13px; }

.pick { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.pick-row {
  display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; cursor: pointer;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
}
.pick-row.mail { --c: var(--accent); margin-top: 8px; border-style: dashed; background: transparent; }
.pick-text { display: flex; flex-direction: column; }
.pick-text b { font: 600 17px/1.25 var(--serif); }
.pick-text small { color: var(--ink-2); font-size: 13.5px; }

.menu { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.menu-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.menu-label { font: 700 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--card-2); border-radius: 11px; border: 1px solid var(--line); }
.seg button { padding: 9px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.menu-item {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; cursor: pointer;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
}
.menu-item > span { display: flex; flex-direction: column; }
.menu-item small { color: var(--ink-2); font-size: 13px; }
.menu-note { font-size: 14px; color: var(--ink-2); margin: 6px 2px 0; line-height: 1.5; }
.menu-note b { color: var(--ink); }

#sheet.full .sheet { top: 0; max-height: none; border-radius: 0; background: #fff; padding: 0; animation: fade .2s; }
.viewer { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); }
.viewer img { width: min(100%, 420px); max-height: 80dvh; object-fit: contain; image-rendering: pixelated; }
.viewer p { color: #8a8a8a; font-size: 13px; margin: 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: .2s; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- kaydırılabilir biniş kartları ---------- */
.carousel { margin: 8px -16px 22px; }
.pass-view { overflow: hidden; transition: height .3s ease; }
.pass-track {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 0 16px;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1); will-change: transform;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.pass-track > .pass { flex: 0 0 calc(100% - 32px); margin: 0; }
.pass.past { --c: var(--ink-3); }
.pass.past .pass-city, .pass.past .pass-time { color: var(--ink-2); }
.done-ic { color: var(--live); width: 22px; height: 22px; stroke-width: 2.4; }
.pass-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.nav-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line);
}
.nav-btn .i { width: 18px; height: 18px; }
.nav-btn.flip .i { transform: scaleX(-1); }
.pass-pos {
  min-width: 74px; padding: 7px 10px; border-radius: 999px; text-align: center;
  font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); background: var(--card-2);
}
.carousel .pass-today { margin: 12px 16px 0; padding: 0; border: 0; text-align: center; }
.page { overflow-x: hidden; }
.seg.three { grid-template-columns: 1fr 1fr 1fr; }
