/* Kelebek · "Gün ışığında saha"
   Zemin: tebeşir kâğıdı (sıcak kırık beyaz). Saha hissi biçilmiş çim şeritleri ve tebeşir çizgilerinden gelir; yalnız başlıkta ve imza öğelerde.
   Bilinçli olarak YOK: koyu lacivert/siyah zemin, neon yeşil/sarı, parlama, kayan şerit, "canlı" rozeti, oran kutusu görünümü.
   Seçim rengi kelebeğin kayısı kanadı; ana düğme çim yeşili üstünde tebeşir beyazı yazı.
   Yazı: Bricolage Grotesque (başlık, kulüp afişi sıcaklığı) + Instrument Sans (gövde). */
:root {
  --bg: #f5f4ec;
  --surface: #fffffb;
  --surface-2: #f1f0e6;
  --ink: #13261a;
  --muted: #586859;
  --rule: #e7e5d9;
  --line: #d5d3c4;
  --turf-a: #2b7540;        /* çim şeridi 1 */
  --turf-b: #307f46;        /* çim şeridi 2 */
  --turf-deep: #1f5d30;
  --chalk: #fbfbf4;         /* tebeşir */
  --leaf: #2e7d42;          /* ana düğme: çim */
  --leaf-hover: #266b38;
  --leaf-ink: #fbfbf4;
  --leaf-deep: #23663a;     /* bağlantı, vurgu yazısı */
  --mint: #e3efdc;          /* boş saat */
  --mint-line: #c3dbb7;
  --mint-ink: #1d4d2b;
  --peach: #fcd9bf;         /* seçim: kelebeğin kayısı kanadı */
  --peach-line: #e8a172;
  --peach-ink: #6b2f10;
  --oat: #ebeae1;           /* dolu */
  --oat-line: #dddbcd;
  --sky: #dde8ec;           /* abone */
  --sky-ink: #30566a;
  --clay: #f3e4c6;          /* bakım: kum */
  --clay-ink: #77501d;
  --error: #b03c2b;
  --error-soft: #f9e2dc;
  --held: #6d5a96;
  --held-soft: #ece6f4;
  --shadow-tint: 30 60 36;
  --shadow: 0 1px 2px rgb(var(--shadow-tint) / .07), 0 8px 24px -14px rgb(var(--shadow-tint) / .28);
  --shadow-lg: 0 2px 6px rgb(var(--shadow-tint) / .08), 0 30px 64px -26px rgb(var(--shadow-tint) / .4);
  --r-xl: 26px; --r-lg: 18px; --r-md: 13px; --r-sm: 9px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dock-h: 0px;
  /* eski sınıfların beklediği adlar (yönetim ve ödeme sayfaları) */
  --turf: var(--leaf-deep); --turf-ink: var(--leaf-ink); --turf-soft: var(--mint);
  --flood: var(--peach); --flood-ink: var(--peach-ink); --tang: var(--peach-line);
  --busy: var(--oat); --busy-line: var(--oat-line);
  --led: var(--body); --navy: var(--sky-ink);
  /* Saat tablosu durumları (Figma 07): açık zeminde belirgin, her durum ayrı renk ailesi */
  --slot-free: #dcefd3; --slot-free-line: #7fb98a; --slot-free-ink: #17491f;
  --slot-sel: #ee7d3e; --slot-sel-line: #c4581d;
  --slot-busy: #373e48; --slot-busy-ink: #f2f1ea;
  --slot-wait: #f2b632; --slot-wait-ink: #ffd36b;
  --slot-abone: #3b5aa0;
  --slot-maint: #f3c656; --slot-maint-hatch: #e0a92e; --slot-maint-ink: #4f3500;
  --slot-mine: #1f6b35;
  /* Düğme kuralı (2026-10-16, Numan): her düğme zeminden belirgin, açık zemine zıt koyu tonda */
  --btn-2: #22332a; --btn-2-hover: #13261a; --btn-2-ink: #fbfbf4;
  /* Gün renkleri (takvim ve şerit aynı): hafta içi çim, hafta sonu gece mavisi, seçili turuncu */
  --day-wday: #1f5d30; --day-wday-hover: #184d27;
  --day-wkend: #2f4f86; --day-wkend-hover: #26416f;
  --day-ink: #fbfbf4;
  --day-today: #fcd9bf; --day-today-ink: #6b2f10;
  --day-few: #f2b632; --day-few-ink: #3d2a00;
  --day-off: #e6e4d8; --day-off-hatch: #d6d3c3; --day-off-ink: #6a6a5c;
  --day-sel: #ee7d3e; --day-sel-ink: #23120a;
  color-scheme: light;
}
/* Yalnız açık tema (2026-10-16, Numan): koyu tema kaldırıldı. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; background-color: var(--bg); min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; font-variation-settings: "wdth" 90; }
button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
select { background-color: var(--surface-2); color: var(--ink); }
a { color: var(--leaf-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--leaf-deep); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ink { color: var(--ink); }
.m6 { margin: 6px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--leaf); color: var(--leaf-ink); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* Genel kapsayıcı (yönetim ve diğer sayfalar) */
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 24px; padding-block: calc(20px + env(safe-area-inset-top, 0px)) 48px; }

/* Biçilmiş çim deseni: yönetim başlığı ve imza yüzeyler de kullanır */
.turf, .turf-band {
  background-color: var(--turf-a);
  background-image:
    repeating-linear-gradient(90deg, var(--turf-a) 0 64px, var(--turf-b) 64px 128px),
    radial-gradient(120% 90% at 80% 0%, rgb(255 255 255 / .10), transparent 60%);
  background-blend-mode: normal, soft-light;
}

/* =========================================================
   HERO: 6 katmanlı saha sahnesi
   ========================================================= */
.scene { position: relative; isolation: isolate; }
.layer { position: absolute; inset: 0; }
.hero {
  margin: calc(12px + env(safe-area-inset-top, 0px)) 12px 0; border-radius: var(--r-xl); overflow: hidden;
  min-height: clamp(240px, 34vh, 340px); color: var(--chalk);
  box-shadow: var(--shadow-lg);
}
.hero .depth-0 { inset: -12% 0 -12%; }  /* paralaks payı */
.hero .depth-0::after { /* çimin dokusu: çok hafif gren */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .depth-1 { pointer-events: none; }
.sun { position: absolute; right: -10%; top: -40%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgb(255 246 214 / .22), transparent); }
.chalk { position: absolute; inset: 0; width: 100%; height: 100%; }
.chalk * { fill: none; stroke: var(--chalk); stroke-width: 3; opacity: .55; vector-effect: non-scaling-stroke; }
.chalk .spot { fill: var(--chalk); stroke: none; }
.corner { position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; transform: scaleX(-1); }
.corner .arc { fill: none; stroke: var(--chalk); stroke-width: 3; opacity: .55; }
.corner .pole { stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; opacity: .9; }
.corner .flag { fill: #f6c29c; transform-box: fill-box; transform-origin: left center; animation: flag 3.2s ease-in-out infinite; }
@keyframes flag { 50% { transform: skewY(-6deg) scaleX(.9); } }

.hero .depth-3 { display: grid; place-items: center end; padding-right: clamp(24px, 12vw, 200px); pointer-events: none; }
.butterfly { width: clamp(96px, 13vw, 170px); height: auto; filter: drop-shadow(0 18px 18px rgb(8 30 14 / .35)); }
.butterfly .w1 { fill: var(--chalk); }
.butterfly .w2 { fill: #f6c29c; }
.butterfly .bd { fill: #13261a; }
.butterfly .wing { transform-box: view-box; transform-origin: 20px 20px; animation: flap 4.4s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes flap { 0%, 70%, 100% { transform: scaleX(1); } 78% { transform: scaleX(.55); } 86% { transform: scaleX(1); } 92% { transform: scaleX(.7); } }
.float-loop { animation: drift 11s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 33% { transform: translate(-10px, -14px) rotate(2deg); } 66% { transform: translate(8px, -6px) rotate(-1deg); } }

.hero-copy { position: relative; inset: auto; padding: clamp(24px, 3vw, 40px) clamp(22px, 4vw, 56px) clamp(22px, 2.6vw, 34px); max-width: 760px; display: grid; gap: 10px; align-content: end; min-height: inherit; }
.kicker { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 1.9rem + 3.6vw, 5.2rem); line-height: .98; font-weight: 700; letter-spacing: -.025em; font-variation-settings: "wdth" 92, "opsz" 96; text-wrap: balance; }
#tagline { margin: 4px 0 0; max-width: 46ch; font-size: 1rem; line-height: 1.5; color: color-mix(in srgb, var(--chalk) 88%, transparent); text-wrap: pretty; }
.hero .facts { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .facts li {
  padding: 6px 12px; border-radius: 999px; font-size: .84rem; line-height: 1.35;
  background: rgb(10 40 20 / .26); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--chalk) 55%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero .facts b { font-weight: 650; }
.dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--chalk); opacity: .5; }
.d1 { left: 62%; top: 22%; } .d2 { left: 71%; top: 70%; width: 3px; height: 3px; } .d3 { left: 88%; top: 16%; width: 4px; height: 4px; } .d4 { left: 54%; top: 82%; width: 3px; height: 3px; opacity: .35; }

/* Açılış: maskeli satır + kademeli giriş (saha.js .is-ready ekler) */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.motion .line > span { transform: translateY(105%); }
.motion .hero #tagline, .motion .hero .facts li { opacity: 0; transform: translateY(10px); }
.motion.is-ready .line > span { transform: none; transition: transform .9s var(--ease); }
.motion.is-ready .kicker .line > span { transition-delay: .05s; }
.motion.is-ready h1.line > span { transition-delay: .14s; }
.motion.is-ready .hero #tagline, .motion.is-ready .hero .facts li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.32s + var(--i, 0) * 60ms); }

/* =========================================================
   GÜN ŞERİDİ (yapışkan)
   ========================================================= */
.dock-sentinel { display: block; height: 1px; }
.dock {
  position: sticky; top: 0; z-index: 15; margin: -1px 0 0;
  padding: 12px 12px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  transition: box-shadow .25s var(--ease);
}
.dock.stuck { box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgb(var(--shadow-tint) / .5); }
.days-wrap { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 18px; }
.week-head { display: flex; align-items: center; gap: 10px; }
.rail-label { margin: 0; font-family: var(--display); font-weight: 650; font-size: 1.02rem; line-height: 1.15; max-width: 9.5em; font-variation-settings: "wdth" 88; }
.week-nav { display: inline-flex; gap: 4px; }
.week-btn { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--btn-2); color: var(--btn-2-ink); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px -6px rgb(var(--shadow-tint) / .7); transition: background-color .2s ease, transform .16s var(--ease); }
.cal-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: var(--day-sel); color: var(--day-sel-ink); font-weight: 650; font-size: .86rem; cursor: pointer; box-shadow: 0 4px 10px -6px rgb(var(--shadow-tint) / .7); transition: background-color .2s ease, transform .16s var(--ease); }
.cal-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cal-btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .cal-btn:hover { background: #e06a2a; } }
.week-btn:active { transform: scale(.94); }
.week-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .week-btn:not([disabled]):hover { background: var(--btn-2-hover); } }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dn wd" "dn free";
  align-items: center; column-gap: 10px; text-align: left; width: 100%; min-width: 0;
  padding: 7px 10px 7px 7px; border: 0; border-radius: var(--r-md); background: var(--day-wday); color: var(--day-ink); cursor: pointer;
  box-shadow: 0 5px 12px -8px rgb(var(--shadow-tint) / .8);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.day .dn {
  grid-area: dn; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; background: rgb(255 255 255 / .16);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.day .wd { grid-area: wd; font-weight: 650; font-size: .9rem; line-height: 1.2; align-self: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .free { grid-area: free; font-size: .76rem; color: rgb(251 251 244 / .82); line-height: 1.25; align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day.wkend { background: var(--day-wkend); }
.day.today .dn { background: var(--day-today); color: var(--day-today-ink); }
.day.few:not(.closed) .free { color: var(--day-few); font-weight: 600; }
.day.closed { background: var(--day-off) repeating-linear-gradient(135deg, transparent 0 6px, var(--day-off-hatch) 6px 8px); color: var(--day-off-ink); box-shadow: none; }
.day.closed .free { color: var(--day-off-ink); }
.day.closed .dn { background: rgb(255 255 255 / .6); }
.days .pad { visibility: hidden; pointer-events: none; }
.day:active { transform: scale(.975); }
/* Seçili gün: tebeşir çizgili küçük çim parçası */
.day[aria-pressed="true"] { background: var(--day-sel); color: var(--day-sel-ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--day-sel), var(--shadow); }
.day[aria-pressed="true"] .dn { background: var(--chalk); color: var(--day-sel-ink); }
.day[aria-pressed="true"] .free { color: var(--day-sel-ink); }
@media (hover: hover) and (pointer: fine) {
  .day.wday:hover:not([aria-pressed="true"]) { background: var(--day-wday-hover); }
  .day.wkend:hover:not([aria-pressed="true"]) { background: var(--day-wkend-hover); }
}
.days.intro .day { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* =========================================================
   SAHNE
   ========================================================= */
.stage { max-width: 1400px; margin: 0 auto; min-width: 0; padding: 18px 24px 40px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.eyebrow { margin: 0 0 2px; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-deep); }
.stage-head h2 { margin: 0; font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.02; text-wrap: balance; scroll-margin-top: 120px; }
.stage-head h2:focus { outline: none; }
.stage-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* uyumluluk: yönetim sayfası .toolbar kullanabilir */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 16px 0 12px; }
.toolbar h2 { margin: 0; font-size: 1.5rem; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--btn-2); }
.seg button { border: 0; background: none; padding: 6px 16px; min-height: 36px; border-radius: 999px; cursor: pointer; font-weight: 550; color: rgb(251 251 244 / .78); transition: background-color .25s var(--ease), color .25s var(--ease); }
.seg button:hover { color: var(--btn-2-ink); }
.seg button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 12px; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.sw-free { background: var(--slot-free); box-shadow: inset 0 0 0 1.5px var(--slot-free-line); }
.sw-busy { background: var(--slot-busy); }
.sw-abone { background: var(--slot-abone); }
.sw-maint { background: var(--slot-maint) repeating-linear-gradient(135deg, transparent 0 3px, var(--slot-maint-hatch) 3px 5px); }
.sw-sel { background: var(--slot-sel); }
.sw-mine { background: var(--slot-mine); }
.sw-held { background: var(--held-soft); }

/* Ana düzen (yönetim: pano + panel ızgarası) */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.site .main { grid-template-columns: minmax(0, 1fr); }
.board { min-width: 0; }
.fresh { font-size: .8rem; color: var(--muted); margin: 12px 4px 0; }
/* Pano doğuşu: yukarıdan aşağı açılır (bir kez) */
.motion .board.born #board > :first-child { animation: born .8s var(--ease) both; }
@keyframes born { from { clip-path: inset(0 0 100% 0 round var(--r-lg)); opacity: .4; } to { clip-path: inset(0 0 0 0 round var(--r-lg)); opacity: 1; } }

/* =========================================================
   TAKVİM: saha krokisi
   ========================================================= */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); padding: 6px; overscroll-behavior-x: contain; }
table.grid { border-collapse: separate; border-spacing: 5px 4px; width: 100%; min-width: 620px; table-layout: fixed; }
.grid th, .grid td { padding: 0; }
.grid thead th { text-align: left; padding: 12px 10px 12px; vertical-align: bottom; position: relative; }
/* Sütun başı: ince çim şeridi + tebeşir çizgisi */
.grid thead th:not(.tc)::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--turf-a) 0 12px, var(--turf-b) 12px 24px); opacity: .9; }
.grid thead .pn { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 700; line-height: 1.1; font-variation-settings: "wdth" 85; }
.grid thead .pm { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.grid thead .pm.link { color: var(--leaf-deep); }
.grid .tc { position: sticky; left: 0; z-index: 1; width: 74px; padding: 0 8px 0 6px; text-align: left; background: var(--surface); }
.grid thead .tc { font-size: .76rem; color: var(--muted); font-weight: 500; vertical-align: bottom; padding-bottom: 14px; }
.tc .t { display: block; font-weight: 650; font-size: .98rem; line-height: 1.1; }
.tc .tier { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; }
.grid tr.sep th { text-align: left; padding: 16px 10px 8px; font-family: var(--display); font-weight: 650; font-size: 1rem; color: var(--ink); }
.grid tr.sep th::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--peach-line); vertical-align: middle; margin-right: 8px; }
.grid tr.sep th small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 8px; }
/* Tarife değişimi: District koltuk haritasındaki "fiyat kademesi" ayracından uyarlandı; kademe değişen satırın üstüne tebeşir çizgisi */
.grid tbody tr:has(> .tc .tier):not(:first-child) > * { border-top: 2px dashed var(--line); padding-top: 8px; }
.grid tbody tr.gone + tr > *, .grid tbody tr.sep + tr > * { border-top: 0 !important; padding-top: 0 !important; }
.tc .tier { text-transform: uppercase; letter-spacing: .06em; font-size: .64rem !important; font-weight: 650 !important; color: var(--leaf-deep) !important; }
.hour-row:has(.tier) { border-top: 2px dashed var(--line); }
.hour-row:first-child, .hour-list > p + .hour-row, .hour-sep + .hour-row { border-top: 0; }
.grid tr.gone th { font-weight: 400; font-size: .85rem; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); }

.cell {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 10px; border: 0; font-size: .9rem; padding: 2px 8px; text-align: center; line-height: 1.15; background: none;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
button.cell { cursor: pointer; }
button.cell:active { transform: scale(.97); }
.cell.free { background: var(--slot-free); color: var(--slot-free-ink); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--slot-free-line); }
@media (hover: hover) and (pointer: fine) {
  .cell.free:hover { background: var(--leaf); color: var(--leaf-ink); box-shadow: 0 6px 14px -8px rgb(var(--shadow-tint) / .55); transform: translateY(-1px); }
}
.cell.selected { background: var(--slot-sel); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--slot-sel-line), 0 6px 14px -6px rgb(238 125 62 / .55); }
.cell.booked, .cell.linked { background: var(--slot-busy); color: var(--slot-busy-ink); font-weight: 600; font-size: .84rem; }
.cell.linked { font-size: .76rem; }
.cell.abone { background: var(--slot-abone); color: #fff; font-weight: 650; font-size: .84rem; }
.cell.bakim { background: var(--slot-maint) repeating-linear-gradient(135deg, transparent 0 8px, var(--slot-maint-hatch) 8px 10px); color: var(--slot-maint-ink); font-weight: 700; font-size: .82rem; }
.cell.mine { background: var(--slot-mine); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1.5px #bfe3c6; }
.cell.past, .cell.closed { color: #a8aa9f; background: transparent; box-shadow: inset 0 0 0 1.5px #dcdacd; }
button.cell.booked:hover, button.cell.linked:hover, button.cell.abone:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--slot-wait); }
.cell.waiting { color: var(--slot-wait-ink); box-shadow: inset 0 0 0 2.5px var(--slot-wait); }

/* Telefon listesi */
.hour-list { display: none; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); padding: 4px 14px; }
.hour-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hour-row:last-child { border-bottom: 0; }
.hour-row .t { font-weight: 700; font-size: 1.02rem; line-height: 1.2; display: block; }
.hour-row .tier { display: block; font-size: .72rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 6px 14px; border-radius: 12px; border: 0; background: var(--slot-free); color: var(--slot-free-ink); box-shadow: inset 0 0 0 1.5px var(--slot-free-line); cursor: pointer; text-align: left; line-height: 1.2; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.chip:active { transform: scale(.97); }
.chip b { display: block; font-weight: 650; font-size: .88rem; }
.chip span { font-size: .8rem; color: var(--muted); }
.chip.selected { background: var(--slot-sel); color: #fff; box-shadow: inset 0 0 0 1.5px var(--slot-sel-line); }
.chip.selected span { color: #fff; }
.chip.mine { background: var(--slot-mine); color: #fff; box-shadow: none; cursor: default; }
.chip.mine span { color: #fff; }
.busy-note { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.busy-note .linkbtn { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; margin: 2px 0; border-radius: 99px; background: var(--slot-busy); color: var(--slot-busy-ink); text-decoration: none; font-weight: 600; }
.linkbtn { border: 0; background: none; padding: 6px 2px; color: var(--leaf-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .82rem; min-height: 32px; }
.hour-sep { font-family: var(--display); font-weight: 650; font-size: 1rem; padding: 14px 0 4px; }
.hour-sep small { font-family: var(--body); font-weight: 400; color: var(--muted); margin-left: 6px; font-size: .8rem; }

/* Durumlar */
.state-box { padding: 48px 24px; text-align: center; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); }
.state-box h3 { margin: 0 0 8px; font-size: 1.5rem; }
.state-box p { margin: 0 auto 16px; max-width: 46ch; color: var(--muted); }
.state-box .btn { width: auto; }
.skel { display: grid; gap: 6px; padding: 10px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.skel div { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--mint), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* =========================================================
   REZERVASYON KARTI
   Yönetim: pano yanında yapışkan kart. Müşteri: boştayken bilgi şeridi, işlemde sağdan çekmece / telefonda alt sayfa.
   ========================================================= */
.panel {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); background: var(--surface);
  border-radius: var(--r-xl); padding: 24px 22px 22px; display: grid; gap: 16px; box-shadow: var(--shadow-lg);
  animation: rise .26s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.site .panel.idle {
  position: static; animation: none; margin: 4px 0 14px; padding: 16px 20px; border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(170px, auto) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 24px; align-items: start;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
}
.site .panel.idle > * { grid-column: auto; }
.site .panel.idle h3 { font-size: 1.2rem; align-self: center; display: flex; align-items: center; gap: 10px; }
.site .panel.idle h3::before { content: ""; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: var(--peach-line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b2f10' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.site .panel.idle .sub { margin: 0; font-size: .86rem; }
.site .panel.idle > .notice, .site .panel.idle > .section-label, .site .panel.idle > .mini-list, .site .panel.idle > .btn { grid-column: 1 / -1; }
.site .panel.idle > .notice { margin: 0 0 6px !important; }
.site .panel.idle > .btn { justify-self: start; width: auto; min-height: 40px; }
.site .panel:not(.idle) {
  position: fixed; z-index: 30; top: 12px; right: 12px; bottom: 12px; width: min(430px, calc(100vw - 24px));
  overflow-y: auto; overscroll-behavior: contain; align-content: start;
  animation: drawer .38s var(--ease-drawer);
}
@keyframes drawer { from { transform: translateX(calc(100% + 24px)); } }
#panel-title:focus { outline: none; }
.panel h3 { margin: 0; font-size: 1.45rem; line-height: 1.12; text-wrap: balance; }
.panel .sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.panel p.sub { margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
/* Sabit özet: Structured'daki adımlar boyunca üstte duran seçim kartından uyarlandı; uzun onay adımında saha ve saat görünür kalır */
.site .panel:not(.idle) .panel-head { position: sticky; top: -24px; z-index: 2; margin: -24px -22px 0; padding: 22px 22px 14px; background: var(--surface); border-bottom: 1px solid var(--rule); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.close { display: none; border: 0; background: var(--surface-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 36px; font-weight: 600; font-size: .85rem; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.close:hover { color: var(--ink); background: var(--mint); }
.site .panel .close { display: inline-block; }
.price { margin: 0; display: grid; gap: 6px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-md); }
.price div { display: flex; justify-content: space-between; gap: 10px; }
.price dt { color: var(--muted); }
.price dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.price .now { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.price .now dd, .price .now dt { color: var(--ink); font-weight: 700; }
.price .now dd { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .75rem; }
.steps li { flex: 1; padding-top: 8px; color: var(--muted); position: relative; font-weight: 500; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--rule); }
.steps li.on { color: var(--ink); font-weight: 650; }
.steps li.on::before { background: var(--peach-line); }
.steps li.done::before { background: var(--leaf); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .86rem; }
.field input, .field select, .field textarea {
  min-height: 46px; padding: 10px 14px; border: 0; border-radius: 11px; background: var(--surface-2); width: 100%;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--leaf-deep), 0 0 0 4px color-mix(in srgb, var(--leaf) 22%, transparent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.phone { display: flex; align-items: stretch; border-radius: 11px; }
.phone span { display: flex; align-items: center; padding: 0 12px; border-radius: 11px 0 0 11px; background: var(--mint); color: var(--mint-ink); font-weight: 600; }
.phone input { border-radius: 0 11px 11px 0; flex: 1; min-width: 0; }
.hint { font-size: .8rem; color: var(--muted); margin: 0; }
.err { font-size: .85rem; color: var(--error); margin: 0; font-weight: 500; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 0;
  background: var(--leaf); color: var(--leaf-ink); font-weight: 650; cursor: pointer; width: 100%;
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 6px 16px -9px rgb(var(--shadow-tint) / .6);
  transition: background-color .2s ease, transform .16s var(--ease), box-shadow .2s ease;
}
a.btn { text-decoration: none; text-align: center; }
.btn:hover { background: var(--leaf-hover); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--btn-2); color: var(--btn-2-ink); box-shadow: 0 4px 10px -6px rgb(var(--shadow-tint) / .7); }
.btn.ghost:hover { background: var(--btn-2-hover); }
.btn.danger { background: var(--error-soft); color: var(--error); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 30%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--error-soft) 70%, var(--error) 12%); }
.btn.small { min-height: 38px; padding: 6px 16px; width: auto; font-size: .88rem; }
.row-btns { display: grid; gap: 10px; }
.demo-code { font-size: .85rem; padding: 10px 14px; border-radius: 11px; background: var(--clay); color: var(--clay-ink); }
.demo-code b { letter-spacing: .15em; }
.hold { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: var(--r-md); background: var(--mint); color: var(--ink); font-weight: 500; }
.hold .num { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--leaf-deep); }
.hold.low { background: var(--error-soft); }
.hold.low .num { color: var(--error); }
.notice { padding: 12px 14px; border-radius: var(--r-md); font-size: .88rem; position: relative; padding-left: 18px; }
.notice::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: currentColor; opacity: .5; }
.notice.warn { background: var(--clay); color: var(--ink); }
.notice.warn::before { background: var(--clay-ink); opacity: .8; }
.notice.bad { background: var(--error-soft); color: var(--ink); }
.notice.bad::before { background: var(--error); }
.notice.ok { background: var(--mint); color: var(--ink); }
.notice.ok::before { background: var(--leaf-deep); }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.onbilgi { font-size: 16px; line-height: 1.55; border-radius: var(--r-md); padding: 14px 16px; max-height: 280px; overflow: auto; background: var(--surface-2); }
.onbilgi h4 { margin: 0 0 8px; font-size: 1.05rem; }
.onbilgi ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--leaf); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--mint); border-top-color: var(--leaf-deep); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.code { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: .06em; display: inline-block; padding: 8px 16px; background: var(--surface); color: var(--leaf-deep); border-radius: var(--r-md); }
.mini-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; font-size: .88rem; }
.mini-list li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--rule); }
.mini-list .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-label { font-size: .76rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--mint); color: var(--mint-ink); }
.pill.warn { background: var(--clay); color: var(--clay-ink); }
.pill.bad { background: var(--error-soft); color: var(--error); }
.pill.info { background: var(--sky); color: var(--sky-ink); }
.pill.held { background: var(--held-soft); color: var(--held); }
.backdrop { display: none; }
.site .backdrop.on { display: block; position: fixed; inset: 0; z-index: 29; background: rgb(15 32 20 / .34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }

/* Alt bilgi */
.notes { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; align-items: start; font-size: .88rem; color: var(--muted); }
.notes details { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--r-md); padding: 4px 16px; }
.notes details[open] { padding-bottom: 14px; }
.notes summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 44px; display: flex; align-items: center; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 1.3rem; color: var(--leaf-deep); transition: transform .25s var(--ease); }
.notes details[open] summary::after { transform: rotate(45deg); }
.notes details p, .notes details ul { margin: 4px 0 0; }
.notes details ul { padding-left: 18px; display: grid; gap: 4px; }
.notes-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding: 12px 4px; }
.notes-meta strong.ink { font-weight: 600; }
.notes-meta .staff { margin: 0; grid-column: 1 / -1; }
.qr { width: 72px; height: 72px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: .66rem; text-align: center; background: var(--surface); }
/* eski footer düzeni (yönetim) */
.wrap > footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }


/* =========================================================
   AÇILIŞ TAKVİMİ: saat tablosunun yerinde gün seçimi
   ========================================================= */
.picking .dock, .picking .stage-head, .picking .stage > .legend, .picking .main, .picking .site .panel, .picking .site .backdrop { display: none; }
.pick { padding: 4px 0 8px; }
.pk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.pk-head h2 { margin: 0; font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1; }
.pk-head h2:focus { outline: none; }
.pk-sub { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.pk-pager { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pk-cal { display: grid; gap: 8px; }
.pk-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pk-wd span { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.pk-wd span:nth-child(n+6) { color: var(--day-wkend); }
.pk-day, .pk-pad, .pk-skel { min-height: 104px; border-radius: var(--r-md); }
.pk-day {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; align-content: start; gap: 2px; width: 100%; height: 100%;
  padding: 10px 12px 12px; border: 0; text-align: left; cursor: pointer; background: var(--day-wday); color: var(--day-ink);
  box-shadow: 0 6px 14px -9px rgb(var(--shadow-tint) / .85);
  transition: background-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.pk-day .n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.pk-day .n small { font-family: var(--body); font-size: .74rem; font-weight: 600; opacity: .8; }
.pk-day .tag { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: rgb(255 255 255 / .18); }
.pk-day .info { font-size: .8rem; opacity: .88; align-self: end; }
.pk-day .bar { display: block; height: 5px; margin-top: 6px; border-radius: 5px; background: rgb(255 255 255 / .2); overflow: hidden; }
.pk-day .bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--day-ink); }
.pk-day.wkend { background: var(--day-wkend); }
.pk-day.today .tag { background: var(--day-today); color: var(--day-today-ink); }
.pk-day.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--day-today), 0 6px 14px -9px rgb(var(--shadow-tint) / .85); }
.pk-day.few .info { color: var(--day-few); font-weight: 650; opacity: 1; }
.pk-day.few .bar i { background: var(--day-few); }
.pk-day.off { cursor: not-allowed; background: var(--day-off) repeating-linear-gradient(135deg, transparent 0 7px, var(--day-off-hatch) 7px 9px); color: var(--day-off-ink); box-shadow: none; }
.pk-day.current { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--day-sel); }
.pk-day.chosen { background: var(--day-sel); color: var(--day-sel-ink); transform: scale(1.04); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--day-sel), 0 14px 26px -12px rgb(var(--shadow-tint) / .8); }
.pk-day.chosen .bar i { background: var(--day-sel-ink); }
.pk-day:not(.off):active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .pk-day.wday:not(.chosen):hover { background: var(--day-wday-hover); transform: translateY(-2px); }
  .pk-day.wkend:not(.chosen):hover { background: var(--day-wkend-hover); transform: translateY(-2px); }
}
.pk-pad { display: grid; align-content: start; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--rule); }
.pk-pad .n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--line); }
.pk-loading { display: grid; gap: 8px; }
.pk-skel { background: linear-gradient(90deg, var(--surface-2), var(--rule), var(--surface-2)); background-size: 200% 100%; animation: pk-shimmer 1.4s linear infinite; }
@keyframes pk-shimmer { to { background-position: -200% 0; } }
.pk-err { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.pk-err p { margin: 0 0 12px; }
.pk-legend { margin-top: 16px; }
.sw-wday { background: var(--day-wday); }
.sw-wkend { background: var(--day-wkend); }
.sw-today { background: var(--day-today); box-shadow: inset 0 0 0 1.5px var(--peach-line); }
.sw-few { background: var(--day-few); }
.sw-off { background: var(--day-off) repeating-linear-gradient(135deg, transparent 0 3px, var(--day-off-hatch) 3px 5px); }
.pk-bar-note { color: var(--muted); }

/* Açılış: haftalar sırayla yükselir */
.motion .pick:not(.leaving) .pk-row:not(.pk-wd) { animation: rise .5s var(--ease) both; animation-delay: calc(var(--r, 0) * 55ms + 60ms); }
.pick.entering .pk-head, .pick.entering .pk-legend { animation: rise .45s var(--ease) both; }
/* Seçim: seçili hafta kalır, gerisi söner */
.pick.leaving .pk-head, .pick.leaving .pk-wd, .pick.leaving .pk-legend, .pick.leaving .pk-row:not(.keep) { opacity: 0; transform: translateY(-6px) scale(.98); transition: opacity .22s ease, transform .24s var(--ease); }
.pick.leaving .pk-row.keep .pk-day:not(.chosen), .pick.leaving .pk-row.keep .pk-pad { opacity: .9; }
/* Uçan günler: takvim hücresinden gün şeridine */
.pk-ghost { position: fixed; z-index: 40; display: grid; align-content: start; padding: 10px 12px; border-radius: var(--r-md); background: var(--day-wday); color: var(--day-ink); font-family: var(--display); font-size: 1.5rem; font-weight: 700; pointer-events: none; box-shadow: 0 10px 22px -12px rgb(var(--shadow-tint) / .8); overflow: hidden; }
.pk-ghost.wkend { background: var(--day-wkend); }
.pk-ghost.off { background: var(--day-off); color: var(--day-off-ink); box-shadow: none; }
.pk-ghost.sel { background: var(--day-sel); color: var(--day-sel-ink); }
/* Şerit ve saat tablosu uçuş bitene kadar gizli, sonra sırayla gelir */
.landing .days-wrap, .landing .stage-head, .landing .stage > .legend, .landing .main, .landing .site .panel { opacity: 0; }
.arrive .days-wrap { animation: fade .3s ease both; }
.arrive .stage-head { animation: rise .45s var(--ease) both .06s; }
.arrive .stage > .legend, .arrive .site .panel { animation: rise .45s var(--ease) both .12s; }
.arrive .main { animation: rise .5s var(--ease) both .16s; }

/* Tablet */
@media (max-width: 1180px) {
  .main { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .days-wrap { grid-template-columns: minmax(0, 1fr); }
  .week-head { justify-content: space-between; }
  .rail-label { max-width: none; }
  .site .panel.idle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site .panel.idle h3 { grid-column: 1 / -1; }
}
/* Telefon: gün şeridi yatay kaydırılır; kart alttan açılır */
@media (max-width: 860px) {
  .hero { margin: calc(8px + env(safe-area-inset-top, 0px)) 8px 0; min-height: 0; border-radius: 22px; }
  .hero-copy { padding: 22px 18px 18px; gap: 6px; }
  .hero h1 { font-size: clamp(2.5rem, 1.6rem + 6vw, 3.6rem); }
  #tagline { font-size: .9rem; padding-right: 76px; }
  .hero .depth-3 { place-items: start end; padding: 18px 14px 0 0; }
  .butterfly { width: 74px; }
  .hero .facts { gap: 6px; margin-top: 8px; }
  .hero .facts li { font-size: .76rem; padding: 4px 10px; }
  .hero .facts li:nth-child(n+3) { display: none; }
  .corner { display: none; }
  .chalk line, .chalk circle { opacity: .35; }
  .dock { padding: 10px 0 8px; }
  .days-wrap { gap: 6px; }
  .week-head { padding-inline: 16px; }
  .rail-label { font-size: .95rem; }
  .days-wrap .days { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
  .days { display: flex; gap: 8px; padding: 6px 16px 8px; }
  .days::-webkit-scrollbar { display: none; }
  .day {
    flex: 0 0 auto; width: 74px; grid-template-columns: 1fr; grid-template-areas: "wd" "dn" "free";
    justify-items: center; text-align: center; row-gap: 3px; padding: 9px 4px; scroll-snap-align: start;
  }
  .day .dn { width: 38px; height: 38px; font-size: 1.15rem; }
  .day .wd { font-size: .78rem; align-self: auto; }
  .day .free { font-size: .68rem; text-align: center; align-self: auto; white-space: normal; }
  .stage { padding: 14px 16px 32px; }
  .stage-head { align-items: flex-start; }
  .stage-tools { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
  .seg button { padding: 6px 12px; }
  .stage-tools .btn.small { padding-inline: 14px; white-space: nowrap; }
  .main { grid-template-columns: minmax(0, 1fr); }
  .table-scroll { display: none; }
  .hour-list { display: block; }
  .legend { display: none; }
  .site .panel.idle { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 6px; margin-top: 12px; }
  .site .panel.idle p.sub + p.sub { display: none; }
  .site .panel:not(.idle), .main.adm .panel:not(.idle) {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; z-index: 30; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
    border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 30px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: sheet .32s var(--ease-drawer);
  }
  .main.adm .panel.idle { display: none; }
  .site .panel:not(.idle) .panel-head { top: -30px; margin: -30px -18px 0; padding: 30px 18px 12px; }
  .site .panel:not(.idle)::before, .main.adm .panel:not(.idle)::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: var(--line); z-index: 3; }
  @keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
  .close { display: inline-block; }
  .notes { margin-top: 32px; }
  .wrap { padding-inline: 16px; }
}

/* Telefon: takvim sıkışık; etiketler ve çubuk sadeleşir */
@media (max-width: 860px) {
  .pk-head { margin-bottom: 12px; }
  .pk-sub { font-size: .86rem; }
  .pk-cal, .pk-row, .pk-loading { gap: 5px; }
  .pk-day, .pk-pad, .pk-skel { min-height: 66px; }
  .pk-day { padding: 7px 6px 8px; grid-template-rows: auto 1fr auto; }
  .pk-day .n, .pk-pad .n { font-size: 1.2rem; }
  .pk-day .n small { display: none; }
  .pk-day .tag { position: static; justify-self: start; margin-top: 3px; padding: 1px 5px; font-size: .58rem; }
  .pk-day .info { display: none; }
  .pk-day .bar { height: 4px; margin-top: 4px; }
  .pk-pad { padding: 7px 6px; }
  .pk-wd span { font-size: .66rem; letter-spacing: .02em; padding: 0 2px; }
  .pk-legend { display: flex; gap: 6px 14px; font-size: .76rem; }
  .pk-ghost { font-size: 1.1rem; padding: 7px 6px; }
  .days .pad { display: none; }
  .cal-btn { height: 34px; padding: 0 12px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .float-loop, .butterfly .wing, .corner .flag { animation: none !important; }
}
