/*
  Panokta Preschool — QR ile açılan dijital tanıtım (deneyim/index.html)

  Basılı materyallerdeki tek QR bu sayfayı açar. Ziyaretçi telefondadır, çoğu ilk kez
  görür; bu yüzden sayfa mobil önceliklidir, metin büyük ve kısadır, her etkileşim
  "dokunun" diye açıkça söylenir. Uygulama parçaları ekran görüntüsü değil HTML'dir:
  renkler, etiketler ve bildirim metinleri uygulamanın kaynak kodundan alındı, böylece
  ziyaretçi dokunduğunda gerçek uygulamadaki gibi değişir.

  Tek görünüm bilinçli: sayfa açık ve koyu bölümleri tasarımın parçası olarak kullanır;
  koyu tema ayrıca tanımlanmaz, her renk burada açıkça verilir.

  Sitede (www.panokta.com/preschool-tanitim) CSP satır içi betiğe izin vermez; bu yüzden
  sayfada satır içi betik yoktur ve kapak animasyonları yalnız CSS'tir.
*/

/* ---------- Yazı tipleri ---------- */

/* Plus Jakarta Sans: baskı sistemiyle aynı "temel" ve "ext" parçaları (Türkçe ğ, ş, İ ext'te). */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('varlik/font/jakarta-temel-medium.woff') format('woff'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('varlik/font/jakarta-temel-bold.woff') format('woff'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('varlik/font/jakarta-temel-extrabold.woff') format('woff'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('varlik/font/jakarta-ext-medium.woff') format('woff'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('varlik/font/jakarta-ext-bold.woff') format('woff'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('varlik/font/jakarta-ext-extrabold.woff') format('woff'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Inter: uygulamanın arayüz yazı tipi; uygulama parçaları bununla çizilir. */
@font-face { font-family: 'Inter'; font-weight: 400 900; font-display: swap; src: url('varlik/font/inter-degisken.woff') format('woff'); }

/* ---------- Belirteçler ---------- */

:root {
  color-scheme: light;

  /* Marka (baskı sistemiyle aynı değerler) */
  --lacivert: #00173f;
  --lacivert-2: #0a2552;
  --gece: #000f2b;
  --mavi: #0159fe;
  --mavi-acik: #b9d6fd;
  --mavi-zemin: #eef4ff;
  --mercan: #fe7151;
  --mercan-yazi: #c4432b;
  --mercan-zemin: #fff1ec;
  --nane: #00b8ab;
  --nane-yazi: #007f6b;
  --nane-zemin: #e6f7f3;
  --altin-zemin: #fff5df;
  --mor-zemin: #f2edff;

  /* Nötrler: lacivert eğilimli; saf gri kullanılmaz */
  --kagit: #faf8f4;
  --zemin: #f3f6fb;
  --beyaz: #fff;
  --metin: #00173f;
  --metin-2: #33425c;
  --metin-soluk: #5a6981;
  --cizgi: #dfe5ee;
  --koyu-metin: #e3eaf7;
  --koyu-soluk: #9fb1d1;

  /* Uygulama (OkulPlan mobil) renkleri */
  --app-zemin: #f8fafc;
  --app-metin: #0f172a;
  --app-soluk: #64748b;
  --app-cizgi: #e2e8f0;

  --yazi: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --app: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --golge-1: 0 1px 2px rgba(0, 23, 63, 0.06), 0 6px 18px rgba(0, 23, 63, 0.08);
  --golge-2: 0 2px 6px rgba(0, 23, 63, 0.08), 0 18px 44px rgba(0, 23, 63, 0.16);
  --egri: cubic-bezier(0.2, 0.8, 0.2, 1);
  --yay: cubic-bezier(0.34, 1.4, 0.5, 1);

  --kenar-sol: max(20px, env(safe-area-inset-left, 0px));
  --kenar-sag: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Temel ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--lacivert);
}

body {
  margin: 0;
  background: var(--kagit);
  color: var(--metin);
  font-family: var(--yazi);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--mavi);
  outline-offset: 3px;
  border-radius: 8px;
}

svg.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gizli {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bölüm kabı: telefonda tam genişlik, geniş ekranda okunur bir sütun */
.kap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-left: var(--kenar-sol);
  padding-right: var(--kenar-sag);
}

.bolum {
  position: relative;
  padding-block: 88px;
}

.ust-baslik {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mavi);
}

.ust-baslik::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mercan);
}

h2 {
  margin-top: 14px;
  font-size: clamp(30px, 8.4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 em {
  font-style: normal;
  color: var(--mavi);
}

.giris-metni {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--metin-2);
  text-wrap: pretty;
}

/* İmza: cümleyi bitiren nokta yazılmaz, logodaki mercan nokta olarak çizilir */
.imza-cumlesi {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.imza-cumlesi::after {
  content: '';
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--mercan);
}

/* ---------- Düğmeler ---------- */

.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.2s var(--egri), box-shadow 0.2s var(--egri), background-color 0.2s;
}

.dugme:active {
  transform: scale(0.97);
}

.dugme .i {
  font-size: 20px;
}

.dugme.beyaz {
  background: var(--beyaz);
  color: var(--lacivert);
  box-shadow: 0 10px 30px rgba(0, 9, 30, 0.35);
}

.dugme.mavi {
  background: var(--mavi);
  color: var(--beyaz);
  box-shadow: 0 10px 26px rgba(1, 89, 254, 0.32);
}

.dugme.cizgili {
  background: transparent;
  color: var(--lacivert);
  box-shadow: inset 0 0 0 1.5px var(--cizgi);
}

.koyu .dugme.cizgili {
  color: var(--beyaz);
  box-shadow: inset 0 0 0 1.5px rgba(185, 214, 253, 0.35);
}

/* ---------- Görünür oldukça açılma ---------- */

/*
  Her şey baştan görünürdür. Betik yalnız açılışta ekranın altında kalan öğeleri
  .bekle ile gizler ve görününce açar; betik çalışmazsa hiçbir şey gizli kalmaz.
  Gecikme --sira ile verilir (aynı gruptaki öğeler sırayla gelir).
*/
[data-gir] {
  transition: opacity 0.7s var(--egri), transform 0.8s var(--egri);
  transition-delay: calc(var(--sira, 0) * 90ms);
}

[data-gir].bekle {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- Üst çubuk ve ilerleme ---------- */

.ilerleme {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.ilerleme i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--ilerleme, 0));
  background: linear-gradient(90deg, var(--mavi), var(--nane) 60%, var(--mercan));
}

.ust {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--kenar-sag) 10px var(--kenar-sol);
  background: rgba(250, 248, 244, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 23, 63, 0.07);
  transform: translateY(-110%);
  transition: transform 0.45s var(--egri);
}

.ust.acik {
  transform: none;
}

.ust img {
  width: 132px;
  height: auto;
}

.ust .dugme {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  box-shadow: none;
}

/* ---------- 1 · Kapak ---------- */

.kapak {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--beyaz);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(1, 89, 254, 0.5) 0%, rgba(1, 89, 254, 0) 60%),
    radial-gradient(90% 60% at 0% 55%, rgba(254, 113, 81, 0.2) 0%, rgba(254, 113, 81, 0) 60%),
    linear-gradient(170deg, #062259 0%, #00173f 48%, #000f2b 100%);
}

.kapak-ic {
  position: relative;
  z-index: 3;
  padding-top: calc(26px + env(safe-area-inset-top, 0px));
}

.kapak-logo {
  width: 168px;
  height: auto;
}

.kapak h1 {
  margin-top: 44px;
  font-size: clamp(38px, 11vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.kapak h1 em {
  font-style: normal;
  color: #8fbaff;
}

.ucleme {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #c9d6ee;
}

.ucleme li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ucleme i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--renk);
}

.kapak-eylem {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.kapak-eylem p {
  font-size: 14px;
  font-weight: 600;
  color: var(--koyu-soluk);
}

/* Kapak sahnesi: altta okul fotoğrafı lacivert zemine karışır, önünde velinin telefonu yükselir */
.kapak-sahne {
  position: relative;
  z-index: 2;
  height: 430px;
  margin-top: 26px;
}

.kapak-foto {
  position: absolute;
  inset: 0 -40px 0 -40px;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46%);
  mask-image: linear-gradient(180deg, transparent 0, #000 46%);
}

.kapak-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.62;
  filter: saturate(0.9);
}

.kapak-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 15, 43, 0) 40%, rgba(0, 15, 43, 0.55) 100%);
}

.telefon {
  --gen: 236px;
  position: relative;
  width: var(--gen);
  padding: calc(var(--gen) * 0.034);
  border-radius: calc(var(--gen) * 0.165);
  background: linear-gradient(150deg, #3a4558 0%, #121b2b 22%, #0b1220 60%, #2b3446 100%);
  box-shadow:
    inset 0 0 0 1.5px #56627a,
    0 14px 30px rgba(0, 9, 30, 0.3),
    0 40px 80px rgba(0, 9, 30, 0.45);
}

.telefon::after {
  content: '';
  position: absolute;
  top: calc(var(--gen) * 0.062);
  left: 50%;
  width: 29%;
  height: calc(var(--gen) * 0.08);
  border-radius: 99px;
  background: #0b1220;
  transform: translateX(-50%);
}

.telefon > img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--gen) * 0.135);
  background: #f8fafc;
}

.kapak .telefon {
  position: absolute;
  left: 50%;
  top: 34px;
  z-index: 2;
  transform: translateX(-50%);
}

.kapak .telefon {
  animation: telefon-yuksel 1.3s var(--egri) 0.25s both;
}

@keyframes telefon-yuksel {
  from {
    transform: translate(-50%, 70px) scale(0.96);
  }
}

/* Kapakta telefonun yanında beliren bildirimler (velinin kilit ekranındaki metinler) */
/* Bildirimler telefondaki çocuk kartını ("Okulda") kapatmaz: biri telefonun üstünde, biri altında */
.kapak-bildirim {
  position: absolute;
  z-index: 3;
  width: min(258px, 70vw);
}

.kapak-bildirim.b1 {
  left: max(8px, calc(50% - 190px));
  top: -8px;
}

.kapak-bildirim.b2 {
  right: max(8px, calc(50% - 190px));
  top: 214px;
}

.kapak-bildirim {
  animation: bildirim-gel 0.9s var(--yay) both;
}

.kapak-bildirim.b1 {
  animation-delay: 0.9s;
}

.kapak-bildirim.b2 {
  animation-delay: 1.5s;
}

@keyframes bildirim-gel {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
  }
}

/* ---------- Bildirim kartı (iOS kilit ekranı düzeni; metinler uygulamanın gönderdiği bildirimler) ---------- */

.bildirim {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 13px 12px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 6px 22px rgba(0, 15, 43, 0.22);
  color: #0b1220;
  font-family: var(--app);
  text-align: left;
}

.bildirim > img {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: var(--beyaz);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.bildirim p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.bildirim b {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bildirim time {
  flex: none;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
}

.bildirim span {
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  line-height: 1.32;
  color: #1f2937;
}

.bildirim.resimli {
  grid-template-columns: 34px 1fr 40px;
}

.bildirim.resimli > img:last-child {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
}

/* ---------- 2 · Parçalar ---------- */

.parcalar {
  background: var(--kagit);
}

.bilenler {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.bilenler li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
  font-size: 17px;
  line-height: 1.35;
  color: var(--metin-2);
}

.bilenler b {
  color: var(--metin);
  font-weight: 800;
}

.bilenler li.yonetici {
  background: linear-gradient(120deg, #fff1ec, #ffe6dd);
  box-shadow: inset 0 0 0 1.5px rgba(254, 113, 81, 0.35);
}

.ikon-kutu {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--ton, var(--mavi-zemin));
}

.ikon-kutu img {
  width: 42px;
  height: 42px;
}

.kopru {
  margin-top: 34px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--metin-2);
  text-wrap: pretty;
}

.kopru strong {
  color: var(--metin);
  font-weight: 800;
}

.pano-cerceve {
  position: relative;
  margin-top: 26px;
  padding: 14px;
  border-radius: 30px;
  background: var(--app-zemin);
  box-shadow: var(--golge-2), inset 0 0 0 1px rgba(0, 23, 63, 0.06);
}

.pano-cerceve .rol {
  margin: 2px 4px 12px;
}

.sonuc {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--lacivert);
  color: var(--beyaz);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sonuc img {
  flex: none;
  width: 46px;
  height: 46px;
}

.devam-ipucu {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--metin-soluk);
  text-decoration: none;
}

.devam-ipucu .i {
  font-size: 18px;
  animation: zipla 1.8s var(--egri) infinite;
}

@keyframes zipla {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateY(5px);
  }
}

/* ---------- Uygulama parçaları (OkulPlan mobil bileşenlerinin HTML karşılığı) ---------- */

.app {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--app-zemin);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 22px 48px rgba(15, 23, 42, 0.16), inset 0 0 0 1px rgba(15, 23, 42, 0.07);
  font-family: var(--app);
  color: var(--app-metin);
  text-align: left;
}

.app-govde {
  padding: 6px 12px 12px;
  display: grid;
  gap: 9px;
}

.app-baslik {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.app-baslik .i {
  font-size: 16px;
  color: #64748b;
}

.app-kart {
  padding: 14px;
  border-radius: 18px;
  background: var(--beyaz);
  border: 1.5px solid var(--app-cizgi);
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-family: var(--app);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--beyaz);
  background: var(--btn, #2563eb);
  box-shadow: 0 6px 14px var(--btn-golge, rgba(37, 99, 235, 0.25));
  transition: transform 0.18s var(--egri), filter 0.2s, opacity 0.25s, background-color 0.3s;
}

.app-btn .i {
  font-size: 17px;
  stroke-width: 2.4;
}

.app-btn:active,
.app-btn.basildi {
  transform: scale(0.965);
  filter: brightness(0.94);
}

.app-btn.yesil { --btn: #10b981; --btn-golge: rgba(16, 185, 129, 0.28); }
.app-btn.mavi { --btn: #2563eb; }
.app-btn.nane { --btn: #0d9488; --btn-golge: rgba(13, 148, 136, 0.28); }
.app-btn.lacivert { --btn: #1d4ed8; }
.app-btn.turuncu { --btn: #ff5722; --btn-golge: rgba(255, 87, 34, 0.3); }
.app-btn.koyu-yesil { --btn: #15803d; --btn-golge: rgba(21, 128, 61, 0.28); }
.app-btn.acik {
  --btn: #eff6ff;
  color: #0f172a;
  box-shadow: inset 0 0 0 1.5px #bfdbfe;
}

.app-btn.tamam {
  --btn: #e2e8f0;
  color: #475569;
  box-shadow: none;
}

.app-rozet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--rk, #a7f3d0);
  background: var(--rz, #ecfdf5);
  color: var(--ry, #15803d);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.app-rozet i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rn, #22c55e);
}

.app-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--egri), transform 0.45s var(--yay);
  pointer-events: none;
}

.app-toast .i {
  font-size: 18px;
  color: #4ade80;
}

.app-toast.acik {
  opacity: 1;
  transform: none;
}

/* KPI kartları: Yönetici panosundaki dörtlü özet (ManagerHomeScreen) */
.kpiler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.kpi {
  display: grid;
  align-content: space-between;
  gap: 4px;
  min-height: 104px;
  padding: 12px;
  border-radius: 18px;
  border: 1.5px solid var(--kk);
  background: var(--kz);
  font-family: var(--app);
  transition: box-shadow 0.4s var(--egri), transform 0.4s var(--egri);
}

.kpi > p:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--kb);
}

.kpi > p:first-child .i {
  font-size: 15px;
  color: var(--ki);
}

.kpi-deger {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.kpi-deger strong {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--kd);
  font-variant-numeric: tabular-nums;
}

.kpi-deger span {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--kb);
}

/* Uygulamada tek satır; dar telefonda kesilmesin diye burada iki satıra iner */
.kpi small {
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ki);
}

.kpi.yesil { --kz: #f0fdf5; --kk: #86efac; --kb: #166534; --kd: #15803d; --ki: #16a34a; }
.kpi.sari { --kz: #fefce8; --kk: #fde047; --kb: #92400e; --kd: #78350f; --ki: #b45309; }
.kpi.turuncu { --kz: #fff7ed; --kk: #fed7aa; --kb: #9a3412; --kd: #7c2d12; --ki: #ea580c; }
.kpi.mavi { --kz: #eff6ff; --kk: #bfdbfe; --kb: #1e40af; --kd: #1e3a8a; --ki: #2563eb; }

.kpi.parla {
  animation: parla 1.2s var(--egri);
}

@keyframes parla {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 89, 254, 0.45);
    transform: scale(1);
  }
  25% {
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(1, 89, 254, 0);
    transform: none;
  }
}

/* Tek satırlık gösterge: alıcı kartında yer kazanmak için başlık solda, sayı sağda */
.kpi.satir {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  min-height: 0;
  padding: 19px 14px 9px;
  border-radius: 16px;
}

.kpi.satir > p:first-child {
  justify-content: flex-start;
  font-size: 13px;
}

.kpi.satir small {
  grid-column: 1;
}

.kpi.satir .kpi-deger {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* Yönetim konsolu başlığı (koyu çivit kart) */
.konsol {
  padding: 15px 16px;
  border-radius: 20px;
  border: 1.5px solid #4338ca;
  background: #1e1b4b;
  color: var(--beyaz);
  font-family: var(--app);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.konsol-ust {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.konsol-ust span {
  padding: 3px 8px;
  border-radius: 9px;
  border: 1px solid rgba(199, 210, 254, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #c7d2fe;
}

.konsol-ust span + span {
  border-color: rgba(134, 239, 172, 0.3);
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.konsol b {
  display: block;
  margin-top: 9px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.konsol small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 650;
  color: #e0e7ff;
}

.konsol small + small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

/* Rol etiketi: kimin ekranı olduğunu söyler */
.rol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 99px;
  background: var(--beyaz);
  box-shadow: 0 1px 3px rgba(0, 23, 63, 0.1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--metin-soluk);
  white-space: nowrap;
}

.rol img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--rol-renk);
}

.rol b {
  font-weight: 800;
  color: var(--rol-renk);
}

.rol.yonetici { --rol-renk: var(--mavi); }
.rol.ogretmen { --rol-renk: #e2553a; }
.rol.veli { --rol-renk: #00a396; }

/* ---------- 3 · Bir gün, üç ekran (yapışkan sahne) ---------- */

.gun {
  position: relative;
  background: var(--zemin);
}

.gun-giris {
  padding-top: 88px;
  padding-bottom: 24px;
}

.gun-not {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gun-not span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--beyaz);
  box-shadow: 0 1px 3px rgba(0, 23, 63, 0.08);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--metin-2);
}

.gun-not span .i {
  font-size: 16px;
  color: var(--mavi);
}

/*
  Sahne kaydırmayla ilerler: .gun-izler içindeki her .iz bir adımın kaydırma payıdır.
  Sahne (position: sticky) ekranda sabit kalır; ortadan geçen iz, etkin adımı belirler.
  Gerçek telefonda tarayıcı çubukları ekranı daraltır (100svh); adım sığmazsa JS --k ile küçültür.
*/
.gun-akis {
  position: relative;
}

.sahne {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}

.gun-izler {
  margin-top: -100vh;
  margin-top: -100svh;
  pointer-events: none;
}

.iz {
  height: 115vh;
  height: 115svh;
}

.iz:last-child {
  height: 135vh;
  height: 135svh;
}

/* Hikâye çizgisi: günün altı anı, en üstte parça parça dolar */
.gun-cizgi {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px var(--kenar-sag) 0 var(--kenar-sol);
}

.gun-cizgi li {
  height: 4px;
  border-radius: 99px;
  background: #d5ddea;
  overflow: hidden;
}

.gun-cizgi li::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mavi);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--egri);
}

.gun-cizgi li.gecti::after {
  transform: none;
  background: #8fb0e6;
}

.gun-cizgi li.simdi::after {
  transform: none;
}

.sahne-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px var(--kenar-sag) 4px var(--kenar-sol);
}

.saat-blok {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.saat {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--lacivert);
}

.adim-adi {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--metin-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sonraki {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--beyaz);
  color: var(--lacivert);
  box-shadow: var(--golge-1);
  font-size: 20px;
  transition: transform 0.2s var(--egri), background-color 0.3s, color 0.3s;
}

.sonraki:active {
  transform: scale(0.94);
}

.sonraki.hazir {
  background: var(--lacivert);
  color: var(--beyaz);
  animation: nabiz 1.8s var(--egri) infinite;
}

@keyframes nabiz {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 23, 63, 0.35);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(0, 23, 63, 0);
  }
}

.sahne-orta {
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.adim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px var(--kenar-sag) 14px var(--kenar-sol);
  transform-origin: 50% 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(var(--k, 1));
  transition: opacity 0.45s var(--egri), transform 0.6s var(--egri), visibility 0s linear 0.6s;
}

.adim.etkin {
  opacity: 1;
  visibility: visible;
  transform: scale(var(--k, 1));
  transition: opacity 0.5s var(--egri) 0.08s, transform 0.65s var(--egri) 0.08s, visibility 0s;
}

.adim.cikti {
  transform: translateY(-26px) scale(var(--k, 1));
}

/* Açıklama ve sonuç aynı yerde durur: iş yapılınca açıklamanın yerini sonuç alır */
.adim-yazi {
  display: grid;
}

.adim-yazi > * {
  grid-area: 1 / 1;
  transition: opacity 0.35s var(--egri), transform 0.45s var(--egri);
}

.adim-metin {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--metin);
  text-wrap: pretty;
}

.adim-sonuc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: #0f7a3d;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.adim-sonuc .i {
  flex: none;
  margin-top: 1px;
  font-size: 20px;
  stroke-width: 2.4;
}

.adim.bitti .adim-metin {
  opacity: 0;
  transform: translateY(-8px);
}

.adim.bitti .adim-sonuc {
  opacity: 1;
  transform: none;
}

.adim > .app {
  width: 100%;
}

/* Kimin ekranı: uygulama kartının başında rol, kişi ve saat */
.app-kim {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 1px 12px;
  font-family: var(--yazi);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--metin-soluk);
  white-space: nowrap;
}

.app-kim img {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--beyaz), 0 0 0 3.5px var(--rol-renk);
}

.app-kim span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-kim b {
  font-weight: 800;
  color: var(--rol-renk);
}

.app-kim time {
  margin-left: auto;
  font-family: var(--app);
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.app-kim.yonetici { --rol-renk: var(--mavi); }
.app-kim.ogretmen { --rol-renk: #e2553a; }
.app-kim.veli { --rol-renk: #00a396; }

.alicilar {
  display: grid;
  gap: 8px;
}

.alici {
  position: relative;
  display: grid;
  padding-top: 13px;
}

/* Rol çipi: alıcının kimin ekranı olduğunu, içeriğin üst kenarına binerek söyler */
.rol-cip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 3px 11px 3px 3px;
  border-radius: 99px;
  background: var(--beyaz);
  box-shadow: 0 1px 4px rgba(0, 23, 63, 0.16);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--metin-soluk);
  white-space: nowrap;
}

.rol-cip img {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--rol-renk);
}

.rol-cip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rol-cip b {
  font-weight: 800;
  color: var(--rol-renk);
}

.rol-cip.yonetici { --rol-renk: var(--mavi); }
.rol-cip.ogretmen { --rol-renk: #e2553a; }
.rol-cip.veli { --rol-renk: #00a396; }

/* Bilgi vardığında alıcının içeriği rol renginde halka verir */
.alici::after {
  content: '';
  position: absolute;
  inset: 13px 0 0 0;
  border-radius: 18px;
  pointer-events: none;
}

.alici.vardi::after {
  animation: vardi 1.1s var(--egri);
}

@keyframes vardi {
  0% {
    box-shadow: 0 0 0 0 var(--vardi-renk, rgba(1, 89, 254, 0.5));
  }
  100% {
    box-shadow: 0 0 0 16px rgba(1, 89, 254, 0);
  }
}

.alici[data-alici='veli'] { --vardi-renk: rgba(0, 184, 171, 0.5); }
.alici[data-alici='ogretmen'] { --vardi-renk: rgba(254, 113, 81, 0.5); }

/* Dokunulacak öğe: halka nabız gibi atar, köşesinde "Dokunun" etiketi zıplar */
.dokun {
  position: relative;
}

.dokun::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(1, 89, 254, 0.55);
  animation: dokun-halka 1.6s var(--egri) infinite;
  pointer-events: none;
}

.dokun::before {
  content: 'Dokunun';
  position: absolute;
  z-index: 4;
  right: 12px;
  top: -13px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--lacivert);
  color: var(--beyaz);
  font-family: var(--yazi);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(0, 23, 63, 0.3);
  animation: etiket-zipla 1.6s var(--egri) infinite;
  pointer-events: none;
}

@keyframes dokun-halka {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 89, 254, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(1, 89, 254, 0);
  }
}

@keyframes etiket-zipla {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateY(-4px);
  }
}

/* Sinyal: bilgi dokunulan yerden alıcıya akar */
.sinyal-katman {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sinyal-katman path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  opacity: 0.55;
}

.sinyal-katman circle {
  filter: drop-shadow(0 0 6px currentColor);
}

/* Hayalet parmak: ziyaretçi dokunmazsa ne yapılacağını kendisi gösterir */
.parmak {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 23, 63, 0.35), 0 8px 18px rgba(0, 23, 63, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.75s var(--egri), opacity 0.3s;
}

.parmak.gorunur {
  opacity: 1;
}

.parmak.bas {
  animation: parmak-bas 0.45s var(--egri);
}

@keyframes parmak-bas {
  40% {
    scale: 0.78;
    background: rgba(1, 89, 254, 0.35);
  }
}

/* Yoklama (AttendanceScreen) */
.yk-ust {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.yk-ust b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
  letter-spacing: -0.015em;
}

.yk-ust small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  color: #059669;
}

.yk-rozet {
  flex: none;
  padding: 5px 9px;
  border-radius: 10px;
  border: 1.5px solid #a7f3d0;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  font-variant-numeric: tabular-nums;
}

.yk-kart {
  display: grid;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 18px;
  border: 1.5px solid #bbf7d0;
  background: var(--beyaz);
}

.yk-liste {
  display: grid;
  gap: 6px;
}

.yk-satir {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px 6px 7px;
  line-height: 1.3;
  border-radius: 16px;
  border: 1.5px solid var(--app-cizgi);
  background: var(--beyaz);
  text-align: left;
  transition: transform 0.18s var(--egri), border-color 0.3s;
}

.yk-satir:active {
  transform: scale(0.98);
}

.yk-satir img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0;
}

.yk-satir b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.yk-satir small {
  display: block;
  font-size: 11.5px;
  color: var(--app-soluk);
}

.yk-durum {
  --rz: #fef2f2;
  --rk: #fecaca;
  --rn: #ef4444;
  --ry: #b91c1c;
}

.yk-durum[data-durum='geldi'] { --rz: #ecfdf5; --rk: #a7f3d0; --rn: #22c55e; --ry: #15803d; }
.yk-durum[data-durum='izinli'] { --rz: #eff6ff; --rk: #bfdbfe; --rn: #3b82f6; --ry: #1d4ed8; }

.yk-durum em {
  font-style: normal;
  color: #94a3b8;
  margin-left: 1px;
}

.yk-durum.degisti {
  animation: rozet-zipla 0.45s var(--yay);
}

@keyframes rozet-zipla {
  40% {
    transform: scale(1.12);
  }
}

/* Çocuk kartı: velinin panosundaki gerçek kart; durum değişince görüntüler yumuşakça geçer */
.cocuk-kart {
  position: relative;
  aspect-ratio: 1224 / 354;
  border-radius: 18px;
  overflow: hidden;
  background: #fdfaff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cocuk-kart img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--egri);
}

.cocuk-kart img.on {
  opacity: 1;
}

/* Kampüs Günlüğü onayı (ManagerCampusScreen) */
.ko-ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 14.5px;
  font-weight: 800;
}

.ko-ust b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ko-ust b .i {
  color: #0d9488;
  font-size: 16px;
}

.ko-ust span {
  padding: 4px 9px;
  border-radius: 9px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 0.4s, color 0.4s;
}

.ko-kart {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  border: 1.5px solid #99f6e4;
  background: var(--beyaz);
  transition: border-color 0.4s;
}

.ko-kisi {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ko-kisi img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ko-kisi b {
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.ko-kisi small {
  display: block;
  font-size: 11.5px;
  color: var(--app-soluk);
}

.ko-baslik {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f766e;
}

.ko-metin {
  margin-top: -5px;
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
}

.ko-foto {
  width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 13px;
}

.ko-dugmeler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ko-dugmeler .app-btn {
  min-height: 42px;
  font-size: 13px;
  padding: 0 8px;
}

.ko-kart.yayinda {
  border-color: #5eead4;
}

/* Kilit ekranı: velinin telefonu; bildirimler üstten yığılır */
.kilit {
  position: relative;
  overflow: hidden;
  height: 196px;
  padding: 18px 10px 10px;
  border-radius: 22px;
  background: #4b5a3d url('varlik/foto/kilit-duvar.webp') center / cover;
}

.kilit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.22));
}

.kilit.kisa {
  height: 174px;
}

.kilit-saat {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  padding: 0 6px 6px;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--app);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.kilit-saat b {
  order: 2;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kilit-saat span {
  font-size: 12.5px;
  font-weight: 600;
}

.kilit-yigin {
  position: relative;
  display: grid;
  gap: 7px;
}

.kilit .bildirim {
  background: rgba(255, 255, 255, 0.82);
}

/* Velinin ekranı: çocuk kartı ve altında gelecek bildirimin ayrılmış yeri */
.veli-yigin {
  display: grid;
  gap: 8px;
}

.veli-yigin .bildirim {
  background: var(--beyaz);
  box-shadow: 0 8px 22px rgba(0, 23, 63, 0.16), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.bildirim.bekliyor {
  visibility: hidden;
}

/* Yeni gelen bildirim üstten düşer (kilit ekranı ve uygulama içi) */
.bildirim.yeni {
  animation: bildirim-dus 0.75s var(--yay) both;
}

@keyframes bildirim-dus {
  from {
    opacity: 0;
    transform: translateY(-34px) scale(0.94);
  }
}

.kilit-bos {
  position: relative;
  padding: 18px 6px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--app);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Beslenme & öğün (BulkRecordScreen) */
.bs-ust b {
  display: block;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.bs-ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bs-etiket {
  padding: 4px 9px;
  border-radius: 10px;
  border: 1.5px solid #ea580c;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
}

.bs-sekme {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bs-sekme span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}

.bs-sekme small {
  font-size: 10.5px;
  font-weight: 700;
}

.bs-sekme .tamam {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.bs-sekme .aktif {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
}

.bs-secim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bs-secim button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 6px 8px;
  border-radius: 16px;
  border: 1.5px solid var(--sk);
  background: var(--sz);
  font-family: var(--app);
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.18s var(--egri);
}

.bs-secim button:active {
  transform: scale(0.97);
}

.bs-secim button i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sr);
  color: var(--beyaz);
  font-size: 22px;
}

.bs-secim button i .i {
  stroke-width: 2.6;
}

.bs-secim button::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 9px;
  width: 7px;
  height: 12px;
  border: solid var(--sr);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--yay);
}

.bs-secim button.secili {
  border-color: var(--sr);
  border-width: 2.5px;
  padding: 8px 5px 7px;
}

.bs-secim button.secili::after {
  transform: rotate(45deg) scale(1);
}

.bs-secim [data-ogun='all'] { --sz: #f0fdf4; --sk: #86efac; --sr: #15803d; }
.bs-secim [data-ogun='most'] { --sz: #fffbeb; --sk: #fcd34d; --sr: #b45309; }
.bs-secim [data-ogun='some'] { --sz: #fff7ed; --sk: #fdba74; --sr: #ea580c; }
.bs-secim [data-ogun='none'] { --sz: #fef2f2; --sk: #fca5a5; --sr: #dc2626; }

/* Okula yaklaşıyorum (velinin Teslim Al & Yoldayım ekranı) */
.yd-kart {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid #fed7aa;
  background: var(--beyaz);
}

.yd-ust {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
  align-items: center;
}

.yd-ust b {
  display: block;
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.yd-ust p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: #475569;
}

.yd-ust img {
  width: 74px;
  aspect-ratio: 326 / 282;
  height: auto;
  mix-blend-mode: multiply;
}

.yd-bilgi {
  position: absolute;
  inset: -2px;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #fed7aa;
  background: #fff7ed;
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.18);
  animation: bant-in 0.55s var(--yay) both;
  color: #c2410c;
  font-size: 14px;
  font-weight: 800;
}

.yd-bilgi b {
  display: flex;
  align-items: center;
  gap: 7px;
}

.yd-bilgi small {
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
}

.yd-soru {
  font-size: 13.5px;
  font-weight: 800;
}

.yd-sure {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.yd-sure button {
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: var(--beyaz);
  font-family: var(--app);
  font-size: 14px;
  font-weight: 800;
  color: #ea580c;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.yd-sure button.secili {
  border-color: #ff5722;
  background: #ff5722;
  color: var(--beyaz);
}

.gizle {
  display: none !important;
}

@keyframes bant-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

/* Öğretmenin canlı çıkış sinyali (PickupScreen); boşken de dolu kartın yerini tutar */
[data-cs] {
  display: grid;
  padding: 18px 10px 10px;
  border-radius: 18px;
  background: var(--app-zemin);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07);
}

[data-cs] > * {
  grid-area: 1 / 1;
  transition: opacity 0.35s var(--egri), transform 0.5s var(--yay), visibility 0s;
}

[data-cs] > .bos-durum {
  display: grid;
  place-items: center;
}

[data-cs-dolu] {
  display: grid;
  gap: 6px;
  align-content: start;
}

[data-cs]:not(.dolu) [data-cs-dolu],
[data-cs].dolu .bos-durum {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.cs-baslik {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 2px;
  font-family: var(--app);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.02em;
  color: #ea580c;
}

.cs-baslik .i {
  font-size: 16px;
}

.cs-kart {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid #fed7aa;
  background: var(--beyaz);
  font-family: var(--app);
}

.cs-kisi {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
}

.cs-kisi > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffedd5;
  color: #c2410c;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.cs-kisi b {
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.cs-kisi small {
  display: block;
  font-size: 12px;
  color: var(--app-soluk);
}

.cs-kisi .app-rozet {
  --rz: #fff7ed;
  --rk: #fed7aa;
  --ry: #c2410c;
  font-size: 12px;
}

.cs-kart .app-btn {
  --btn: #ea580c;
  --btn-golge: rgba(234, 88, 12, 0.25);
  min-height: 40px;
  font-size: 13.5px;
}

.bos-durum {
  padding: 14px;
  border-radius: 16px;
  border: 1.5px dashed #cbd5e1;
  font-family: var(--app);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

/* Kapı teslim istasyonu (yöneticinin Kapı/Teslim ekranı) */
.kp-sayilar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.kp-sayilar span {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 2px 7px;
  border-radius: 14px;
  border: 1.5px solid var(--kk);
  background: var(--kz);
  color: var(--kb);
  font-size: 10.5px;
  font-weight: 750;
  text-align: center;
}

.kp-sayilar b {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--kd);
  font-variant-numeric: tabular-nums;
}

.kp-sayilar .yesil { --kz: #f0fdf4; --kk: #bbf7d0; --kb: #15803d; --kd: #14532d; }
.kp-sayilar .mavi { --kz: #eff6ff; --kk: #bfdbfe; --kb: #1d4ed8; --kd: #1e3a8a; }
.kp-sayilar .turuncu { --kz: #fff7ed; --kk: #fed7aa; --kb: #c2410c; --kd: #7c2d12; }
.kp-sayilar .sari { --kz: #fefce8; --kk: #fde68a; --kb: #a16207; --kd: #713f12; }

.kp-kart {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
  border: 1.5px solid #fdba74;
  background: var(--beyaz);
}

.kp-kart p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #475569;
}

.kp-kart p b {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.kp-kart .app-rozet {
  --rz: #ffedd5;
  --rk: #fdba74;
  --rn: #f97316;
  --ry: #c2410c;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.kp-kart .app-btn {
  min-height: 44px;
  font-size: 13.5px;
}

.kp-kart.teslim {
  border-color: #86efac;
}

/* Günün sonu: dört soru ve cevapları */
.sorular {
  display: grid;
  gap: 8px;
}

.sorular li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border-radius: 18px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
}

.sorular img {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 13px;
  background: var(--ton, var(--mavi-zemin));
}

.sorular b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sorular span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 14.5px;
  font-weight: 700;
  color: #15803d;
}

.sorular span .i {
  font-size: 16px;
  stroke-width: 3;
}

.adim[data-adim='son'] .sorular li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s var(--egri), transform 0.6s var(--egri);
  transition-delay: calc(0.25s + var(--sira, 0) * 0.32s);
}

.adim[data-adim='son'].etkin .sorular li {
  opacity: 1;
  transform: none;
}

.tekrar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
  font-size: 14px;
  font-weight: 750;
  color: var(--metin-2);
}

/* Günün sonu: yöneticinin ilke cümlesi */
.son-ilke {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--lacivert);
  color: var(--beyaz);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--egri) 1.6s, transform 0.7s var(--egri) 1.6s;
}

.adim.etkin .son-ilke {
  opacity: 1;
  transform: none;
}

.son-ilke img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lacivert), 0 0 0 4px #5b8dff;
}

.son-ilke small {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fbaff;
}

/* ---------- Kart kesitleri ve bölüm başı (karne, ekip) ---------- */

/* Kesitlerin köşeleri saydamdır (araclar/deneyim-varliklari.py: kose_kes); gölge kartın biçimini izler */
.kart-kesit {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 1.5px rgba(0, 23, 63, 0.08)) drop-shadow(0 6px 14px rgba(0, 23, 63, 0.08));
}

/* ---------- 4 · Günlük karne ---------- */

.karne {
  background: var(--beyaz);
}

.karne-parcalar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.karne-parcalar li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 16px;
  background: var(--kagit);
  box-shadow: inset 0 0 0 1px rgba(0, 23, 63, 0.06);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--metin-2);
}

.karne-parcalar img {
  flex: none;
  width: 38px;
  height: 38px;
}

.karne-ciftler {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

/* Bir çift: öğretmenin girdiği ekran, altında velinin karnesindeki kart */
.karne-cift {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px;
  border-radius: 28px;
  background: var(--zemin);
}

.kc-bas {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 0 2px;
}

.kc-bas h3,
.ek-bas h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.kc-bas p {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--metin-2);
  text-wrap: pretty;
}

.kc-app {
  box-shadow: var(--golge-1), inset 0 0 0 1px rgba(15, 23, 42, 0.07);
}

.kc-ok {
  display: grid;
  place-items: center;
  margin: -6px 0 -10px;
  font-size: 20px;
  color: #8a96a9;
}

/* Tuvalet (ToiletBulkRecordScreen): satır rozetleri Küçük, Büyük, İkisi, Denedi */
.kc-tumu {
  min-height: 44px;
  font-size: 13.5px;
  text-align: center;
}

.tv-liste {
  display: grid;
  gap: 7px;
}

.tv-liste li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 15px;
  border: 1px solid #dbe3ef;
  background: var(--beyaz);
}

.tv-liste img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.tv-liste b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.tv-liste small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--app-soluk);
}

.tv-liste em {
  padding: 5px 9px;
  border-radius: 10px;
  border: 1px solid var(--pk);
  background: var(--pz);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  color: var(--py);
}

.tv-liste .kucuk { --pz: #f0fdf4; --pk: #86efac; --py: #15803d; }
.tv-liste .buyuk { --pz: #fffbeb; --pk: #fcd34d; --py: #92400e; }

/* Günün etkinlikleri (ActivityBulkRecordScreen; alan renkleri activity-catalog.ts) */
.et-rozet {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
  color: #c2410c;
}

.et-rozet i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.et-alan {
  display: grid;
  gap: 10px;
  padding: 11px 12px 12px;
  border-radius: 18px;
  border: 2px solid #7c3aed;
  background: #f5f3ff;
}

.et-alan-bas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.et-alan-bas b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
}

.et-alan-bas small {
  display: block;
  font-size: 12px;
  color: var(--app-soluk);
}

.et-alan-bas i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7c3aed;
  color: var(--beyaz);
  font-size: 13px;
}

.et-alan-bas i .i {
  stroke-width: 3.2;
}

.et-oneriler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.et-oneriler span {
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid #ddd6fe;
  background: var(--beyaz);
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}

.et-oneriler .secili {
  border-color: #7c3aed;
  background: #7c3aed;
  color: var(--beyaz);
}

.et-alt {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--app-soluk);
}

/* ---------- 5 · Roller ---------- */

.roller {
  background: var(--kagit);
}

.rol-sekme {
  position: relative;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 20px;
  background: #ece9e2;
}

.rol-sekme button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 62px;
  padding: 8px 4px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--metin-soluk);
  transition: color 0.3s;
}

.rol-sekme button b {
  font-size: 15px;
  font-weight: 800;
  color: var(--metin-2);
  transition: color 0.3s;
}

.rol-sekme button[aria-selected='true'] {
  color: var(--metin-2);
}

.rol-sekme button[aria-selected='true'] b {
  color: var(--sekme-renk);
}

.rol-sekme .kayan {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 18px) / 3);
  border-radius: 16px;
  background: var(--beyaz);
  box-shadow: 0 2px 8px rgba(0, 23, 63, 0.12);
  transform: translateX(calc(var(--sekme, 0) * (100% + 4px)));
  transition: transform 0.45s var(--egri);
}

.rol-panel {
  margin-top: 22px;
}

.rol-panel[hidden] {
  display: none;
}

.rol-panel.acildi {
  animation: panel-gel 0.55s var(--egri);
}

@keyframes panel-gel {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.rol-gorsel {
  position: relative;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: var(--rol-zemin);
}

.rol-gorsel > img.foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--odak, 50% 30%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
}

.rol-gorsel .telefon {
  --gen: 168px;
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 128px;
}

.rol-gorsel .cerceve-web {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 18px;
  width: 62%;
}

.rol-gorsel .rol-ilke {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  max-width: 54%;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lacivert);
}

.rol-metin {
  margin-top: 20px;
}

.rol-metin h3 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.rol-metin h3 span {
  color: var(--sekme-renk);
}

.rol-metin > p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--metin-2);
}

.tik {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.tik li {
  position: relative;
  padding-left: 34px;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--metin-2);
}

.tik li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tik-zemin, var(--mavi-zemin));
}

.tik li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--tik-renk, var(--mavi));
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg);
}

.rol-panel[data-rol='yonetici'] { --sekme-renk: var(--mavi); --rol-zemin: linear-gradient(180deg, #e8f0ff, #dfeaff); --tik-renk: var(--mavi); --tik-zemin: #e3edff; }
.rol-panel[data-rol='ogretmen'] { --sekme-renk: #e2553a; --rol-zemin: linear-gradient(180deg, #fff1ea, #ffe7dc); --tik-renk: #e2553a; --tik-zemin: #ffe9e1; }
.rol-panel[data-rol='veli'] { --sekme-renk: #00a396; --rol-zemin: linear-gradient(180deg, #e8f8f4, #daf3ec); --tik-renk: #00a396; --tik-zemin: #dcf5ef; }

.rol-sekme button[data-rol='yonetici'] { --sekme-renk: var(--mavi); }
.rol-sekme button[data-rol='ogretmen'] { --sekme-renk: #e2553a; }
.rol-sekme button[data-rol='veli'] { --sekme-renk: #00a396; }

/* Dizüstü çerçevesi: web paneli */
.dizustu-ekran {
  position: relative;
  padding: 2.2% 2.2% 3%;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(160deg, #2b3446, #0e1726 30%);
  box-shadow: inset 0 0 0 1px #4b566b;
}

.dizustu-ekran img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 2px;
}

.dizustu-govde {
  position: relative;
  height: 9px;
  margin: 0 -7%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #d9dee6 0%, #b8c0cc 55%, #8f98a6 100%);
  box-shadow: 0 10px 22px rgba(0, 23, 63, 0.22);
}

.web-panel-blok {
  margin-top: 26px;
  padding: 20px;
  border-radius: 24px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
}

.web-panel-blok h4 {
  margin: 18px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.web-panel-blok p {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--metin-2);
}

.web-panel-blok .dizustu {
  padding: 0 7%;
}

/* ---------- 6 · Ekip ---------- */

.ekip {
  background: var(--zemin);
}

.ekip-kartlar {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.ekip-kart {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px 16px;
  border-radius: 26px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
}

.ek-yazi {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ek-bas {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 2px;
}

.ekip-kart > p,
.ek-yazi > p {
  padding: 0 2px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--metin-2);
  text-wrap: pretty;
}

.ek-yazi .tik {
  --tik-zemin: #ffedd5;
  --tik-renk: #c2410c;
  margin-top: 0;
  gap: 9px;
  padding: 0 2px;
}

.ek-yazi .tik li {
  font-size: 15px;
}

/* Uygulama ekranından bir parça: açık zemin üstünde kesitler ve HTML parçaları */
.ek-gorsel {
  display: grid;
  gap: 10px;
  padding: 22px 10px 12px;
  border-radius: 20px;
  background: var(--app-zemin);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07);
}

/* Kilit ekranından bir şerit: bildirim, velinin kilit ekranındaki duvar kâğıdının üstünde */
.ek-kilit {
  position: relative;
  overflow: hidden;
  padding: 22px 10px 10px;
  border-radius: 20px;
  background: #4b5a3d url('varlik/foto/kilit-duvar.webp') center 30% / cover;
}

.ek-kilit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.28));
}

.ek-kilit .bildirim {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
}

/* Personel sayaçları (StaffCheckInScreen): izinli kişi "Gelmedi"ye sayılmaz, altında yazar */
.ps-sayilar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-family: var(--app);
  text-align: center;
}

.ps-sayilar p {
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 2px;
  border-radius: 14px;
  border: 1px solid var(--pk, #e2e8f0);
  background: var(--pz, var(--beyaz));
  color: var(--py, #0f172a);
}

.ps-sayilar small {
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--pe, #64748b);
}

.ps-sayilar b {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.ps-sayilar em {
  font-size: 10px;
  font-style: normal;
  color: #b45309;
}

.ps-sayilar .yesil { --pz: #f0fdf4; --pk: #bbf7d0; --py: #15803d; --pe: #15803d; }
.ps-sayilar .mavi { --pz: #eff6ff; --pk: #bae6fd; --py: #0369a1; --pe: #0369a1; }
.ps-sayilar .kirmizi { --pz: #fff1f2; --pk: #fecdd3; --py: #be123c; --pe: #be123c; }

/* Ekip mesajları: gelen balonlar sola dayalı; dosyalı balon paneli doldurur, fotoğraflı balon
   aynı ölçekte (kesit genişlikleri 679 ve 519) */
.sohbet .kart-kesit.dosya {
  width: 100%;
}

.sohbet .kart-kesit.foto {
  width: 76.4%;
}

.sohbet-bas {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 2px;
  font-family: var(--app);
  font-size: 13.5px;
  color: #0f172a;
}

.sohbet-bas .i {
  font-size: 16px;
  color: var(--app-soluk);
}

.sohbet-bas b {
  font-weight: 800;
}

/*
  Aylık puantaj (web paneli, staff-puantaj-table.tsx): G geldi, İ izinli, H hafta sonu.
  Telefonda 5–13 Ekim görünür (bugün 13 Ekim); geniş ekranda ayın ilk on altı günü ve G toplamı da.
*/
.pt {
  display: grid;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--beyaz);
  box-shadow: 0 4px 14px rgba(0, 23, 63, 0.06), inset 0 0 0 1px #e2e8f0;
  font-family: var(--app);
  color: #0f172a;
}

.pt-ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 24px 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pt-sekme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--beyaz);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-sekme .i {
  font-size: 14px;
  color: var(--app-soluk);
}

.pt-ay {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-ay .i {
  font-size: 14px;
  color: #475569;
}

.pt-ozet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.pt-ozet p {
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--pk, #e2e8f0);
  background: var(--pz, var(--beyaz));
}

.pt-ozet small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pe, #64748b);
}

.pt-ozet b {
  font-size: 17px;
  font-weight: 800;
  color: var(--py, #0f172a);
}

.pt-ozet .turuncu { --pz: #fff7ed; --pk: #fed7aa; --pe: #9a3412; --py: #c2410c; }

.pt-tablo {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e2e8f0;
  table-layout: fixed;
  font-size: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pt-tablo th,
.pt-tablo td {
  padding: 0;
  font-weight: inherit;
}

.pt-tablo thead th {
  padding: 5px 0 4px;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  color: #475569;
}

.pt-tablo thead small {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  opacity: 0.85;
}

.pt-tablo .ad {
  width: 31%;
  padding-left: 8px;
  text-align: left;
}

.pt-tablo tbody th {
  padding: 5px 4px 5px 8px;
  text-align: left;
}

.pt-tablo tbody th b,
.pt-tablo tbody th small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pt-tablo tbody th b {
  font-size: 10.5px;
  font-weight: 700;
}

.pt-tablo tbody th small {
  font-size: 8.5px;
  color: #64748b;
}

.pt-tablo tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.pt-tablo tbody tr:nth-child(even) {
  background: #fafafa;
}

.pt-tablo tbody tr:last-child {
  border-bottom: 0;
}

.pt-tablo td {
  padding: 3px 0;
  border-left: 1px solid #f1f5f9;
}

.pt-tablo .hs {
  background: #fafafa;
}

.pt-tablo thead .hs {
  background: #f1f5f9;
  color: #94a3b8;
}

.pt-tablo .bugun {
  background: #eff6ff;
}

.pt-tablo thead .bugun {
  color: #1d4ed8;
}

.pt i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.pt i.g { background: #dcfce7; color: #15803d; }
.pt i.i { background: #fef3c7; color: #b45309; }
.pt i.h { background: #f1f5f9; color: #94a3b8; font-weight: 700; }
.pt i.b { color: #cbd5e1; }
.pt i.bugun { background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }

/* Tablodaki kare hücreye sığar; dar sütunda kareler birbirine değmez */
.pt-tablo i {
  width: min(17px, calc(100% - 3px));
  height: auto;
  aspect-ratio: 1;
}

.pt-tablo .top {
  width: 26px;
  font-weight: 800;
}

.pt-tablo .g-top {
  display: none;
  border-left: 2px solid #cbd5e1;
  background: #f0fdf4;
  color: #15803d;
}

.pt-tablo .i-top {
  border-left: 2px solid #cbd5e1;
  background: #fffbeb;
  color: #b45309;
}

.pt-tablo thead .i-top {
  color: #92400e;
}

.pt-tablo :is([data-gun='1'], [data-gun='2'], [data-gun='3'], [data-gun='4'], [data-gun='14'], [data-gun='15'], [data-gun='16']) {
  display: none;
}

.pt-kodlar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.pt-kodlar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 7 · Duyurular ---------- */

/* Akşam: yönetici duyuruyu gün bitince yazar; bölüm gece mavisidir */
.duyuru {
  overflow: hidden;
  isolation: isolate;
  color: var(--beyaz);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(1, 89, 254, 0.34) 0%, rgba(1, 89, 254, 0) 60%),
    radial-gradient(70% 45% at 0% 100%, rgba(0, 184, 171, 0.16) 0%, rgba(0, 184, 171, 0) 60%),
    linear-gradient(170deg, #0a2552 0%, #00173f 55%, #000f2b 100%);
}

.duyuru .ust-baslik,
.duyuru h2 em {
  color: #8fbaff;
}

.duyuru h2 {
  color: var(--beyaz);
}

.duyuru .giris-metni {
  color: var(--koyu-metin);
}

.duyuru-ic {
  position: relative;
  display: grid;
  grid-template-areas: 'yazi' 'app' 'veli' 'durum';
  gap: 26px;
}

.dy-yazi { grid-area: yazi; }
.dy-app { grid-area: app; }
.dy-veli { grid-area: veli; }

/* Yöneticinin bildirim ekranı (BroadcastNotificationScreen) */
.dy-bant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  font-size: 11px;
  line-height: 1.35;
  color: #3b82f6;
}

.dy-bant b {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #1e40af;
}

.dy-zil {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #dbeafe;
  font-size: 18px;
  color: #1d4ed8;
}

.dy-sonuc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid #22c55e;
  background: #f0fdf4;
  font-size: 12.5px;
  font-weight: 750;
  color: #15803d;
  animation: dy-gel 0.45s var(--egri);
}

.dy-sonuc[hidden] {
  display: none;
}

.dy-sonuc .i {
  font-size: 15px;
  stroke-width: 3;
}

.dy-kart {
  display: grid;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1.5px solid var(--app-cizgi);
  background: var(--beyaz);
}

.dy-alan {
  display: grid;
  gap: 6px;
}

.dy-alan > p {
  font-size: 12px;
  font-weight: 750;
  color: #334155;
}

.dy-secim {
  --sk: #0159fe;
  --sz: #eff6ff;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 7px;
}

.dy-secim.mor { --sk: #7c3aed; --sz: #f5f3ff; }
.dy-secim.kirmizi { --sk: #e11d48; --sz: #fff1f2; }

.dy-secim span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  color: #475569;
}

.dy-secim span .i {
  font-size: 14px;
}

.dy-secim .secili {
  border-color: var(--sk);
  background: var(--sz);
  color: var(--sk);
}

.dy-girdi {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: var(--beyaz);
  font-size: 13.5px;
  line-height: 1.4;
  color: #0f172a;
  transition: color 0.3s;
}

.dy-girdi.metin {
  min-height: 92px;
}

.dy-girdi.bos {
  color: #94a3b8;
}

.dy-gonder,
.dy-onayla {
  --btn: #0159fe;
  --btn-golge: rgba(1, 89, 254, 0.3);
}

.dy-gonder:disabled {
  --btn: #94a3b8;
  box-shadow: none;
  cursor: default;
}

/* Gönderim onayı: uygulamadaki pencere; ekranın üstüne açılır */
.dy-onay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(15, 23, 42, 0.65);
  animation: dy-karart 0.3s var(--egri);
}

.dy-onay[hidden] {
  display: none;
}

.dy-onay-kart {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 16px;
  border-radius: 22px;
  background: var(--beyaz);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: dy-pencere 0.45s var(--yay);
}

.dy-onay-bas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dy-onay-bas > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fee2e2;
  font-size: 21px;
}

.dy-onay-bas b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.dy-onay-bas small {
  display: block;
  font-size: 11.5px;
  color: var(--app-soluk);
}

.dy-ozet {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
}

.dy-ozet div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dy-ozet dt {
  color: var(--app-soluk);
}

.dy-ozet dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
  color: #0f172a;
}

.dy-ozet .acil {
  color: #e11d48;
}

.dy-ozet .baslik {
  display: block;
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px solid #e2e8f0;
}

.dy-ozet .baslik dt {
  font-size: 11px;
}

.dy-ozet .baslik dd {
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dy-onay-dugmeler {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  margin-top: 2px;
}

.dy-vazgec {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: var(--beyaz);
  font-family: var(--app);
  font-size: 13px;
  font-weight: 750;
  color: #475569;
}

.dy-onayla {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

@keyframes dy-karart {
  from {
    opacity: 0;
  }
}

@keyframes dy-pencere {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@keyframes dy-gel {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Velinin kilit ekranı: saat ortada büyük, bildirimler altında */
.kilit.uzun {
  height: auto;
  min-height: 310px;
  padding: 22px 10px 12px;
}

.kilit.uzun .kilit-saat {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 0 16px;
}

.kilit.uzun .kilit-saat b {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.05;
}

.kilit.uzun .kilit-saat span {
  font-size: 14px;
}

/* İpucu: ne yapılacağı; gönderilince yerini sonuç alır */
.dy-durum {
  grid-area: durum;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.dy-ipucu {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--koyu-metin);
}

.dy-ipucu .i {
  flex: none;
  margin-top: 1px;
  font-size: 20px;
  color: #8fbaff;
}

.dy-ipucu.bitti {
  color: #86efac;
}

.dy-ipucu.bitti .i {
  color: #4ade80;
  stroke-width: 2.4;
}

.tekrar[hidden] {
  display: none;
}

.duyuru .tekrar {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(185, 214, 253, 0.3);
  color: var(--beyaz);
}

/* ---------- 8 · Anaokulu için ---------- */

.anaokulu {
  background: var(--beyaz);
}

.var-liste {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.var-liste li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--nane-zemin);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #053b36;
}

.var-liste li span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nane);
  color: var(--beyaz);
  font-size: 16px;
}

.var-liste li span .i {
  stroke-width: 3.2;
}

.var-kapanis {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.yoklar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #8a96a9;
}

.yoklar li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.yoklar li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #b3bdcb;
}

/* Yatay kayan ekran şeridi: telefonda parmakla kaydırılır */
.serit {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px var(--kenar-sag) 18px var(--kenar-sol);
  scroll-padding-left: var(--kenar-sol);
}

.serit::-webkit-scrollbar {
  display: none;
}

.serit figure {
  flex: none;
  width: min(300px, 78vw);
  scroll-snap-align: start;
}

.serit figure > img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--golge-1), 0 0 0 1px rgba(0, 23, 63, 0.05);
}

.serit figcaption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--metin-2);
}

.serit-not {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--metin-soluk);
}

/* ---------- 9 · Güven ve kayıt ---------- */

.guven {
  background: var(--zemin);
}

.guven-liste {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.guven-liste li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px 14px 12px;
  border-radius: 20px;
  background: var(--beyaz);
  box-shadow: var(--golge-1);
}

.guven-liste b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guven-liste p {
  margin-top: 3px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--metin-2);
}

/* ---------- 10 · Başlangıç ---------- */

.baslangic {
  background: var(--kagit);
}

.baslangic-foto {
  margin-top: 26px;
  height: 230px;
  border-radius: 26px;
  overflow: hidden;
}

.baslangic-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.adimlar {
  position: relative;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.adimlar::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 30px;
  bottom: 30px;
  border-left: 2px dashed #c9d3e2;
}

.adimlar li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.adimlar .ikon-kutu {
  background: var(--beyaz);
  box-shadow: var(--golge-1);
}

.adimlar b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.adimlar b em {
  font-style: normal;
  color: var(--mavi);
  margin-right: 6px;
}

.adimlar p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--metin-2);
}

/* ---------- 11 · Demo ---------- */

.demo {
  overflow: hidden;
  isolation: isolate;
  color: var(--beyaz);
  background:
    radial-gradient(110% 60% at 100% 0%, rgba(1, 89, 254, 0.45) 0%, rgba(1, 89, 254, 0) 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(254, 113, 81, 0.22) 0%, rgba(254, 113, 81, 0) 60%),
    linear-gradient(170deg, #062259 0%, #00173f 50%, #000f2b 100%);
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.demo .ust-baslik {
  color: #8fbaff;
}

.demo h2 {
  color: var(--beyaz);
}

.demo-foto {
  margin: 28px 0 0;
  height: 220px;
  border-radius: 26px;
  overflow: hidden;
}

.demo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.demo .tik li {
  color: var(--koyu-metin);
}

.demo .tik {
  --tik-zemin: rgba(143, 186, 255, 0.18);
  --tik-renk: #8fbaff;
}

.demo-eylem {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.demo-eylem .dugme {
  width: 100%;
}

.demo-aciklama {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--koyu-soluk);
}

.iletisim {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.iletisim li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(185, 214, 253, 0.16);
}

.iletisim li > .i {
  font-size: 20px;
  color: #8fbaff;
}

.iletisim span {
  flex: 1;
  min-width: 0;
}

.iletisim small {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--koyu-soluk);
}

.iletisim b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}

.iletisim button,
.iletisim a.kucuk {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--beyaz);
  text-decoration: none;
}

.imza-etiketi {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(185, 214, 253, 0.3);
  font-size: 17px;
}

.imza-etiketi img {
  width: 22px;
  height: auto;
}

.dip {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(185, 214, 253, 0.16);
  display: grid;
  gap: 14px;
  font-size: 13px;
  color: var(--koyu-soluk);
}

.dip img {
  width: 128px;
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-gir].bekle {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Kısa ekranlar (ör. iPhone SE) ---------- */

@media (max-height: 640px) {
  .saat {
    font-size: 25px;
  }

  .adim-metin,
  .adim-sonuc {
    font-size: 15px;
  }

  .kapak-sahne {
    height: 360px;
  }
}

/* ---------- İki sütunlu bölümler: telefonda tek sütun, sıra aynı ---------- */

/* "Anaokulu için" ekran şeridi telefonda kenardan kenara kayar */
.anaokulu .serit {
  margin-left: calc(-1 * var(--kenar-sol));
  margin-right: calc(-1 * var(--kenar-sag));
}

/* ---------- 3b · Masaüstü oynatıcısı: üç ekran yan yana ---------- */

/*
  Telefonda gün, kaydırdıkça ilerleyen sahnedir. Geniş ekranda kaydırma sabitlemesi
  boşluk hissi veriyordu; burada üç rolün telefonu yan yana durur ve gün saat saat
  oynar (kendiliğinden ya da çizelgeden seçilerek). Ekranlar yerinde değişir.
*/
.oyuncu {
  display: none;
}

/* ---------- Geniş ekran ---------- */

@media (min-width: 1024px) {
  :root {
    --kenar-sol: max(40px, env(safe-area-inset-left, 0px));
    --kenar-sag: max(40px, env(safe-area-inset-right, 0px));
  }

  .kap {
    max-width: 1200px;
  }

  .bolum {
    padding-block: 112px;
  }

  h2 {
    font-size: clamp(36px, 3.2vw, 46px);
  }

  .giris-metni {
    font-size: 19px;
  }

  .izgara {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5.5vw, 96px);
    align-items: center;
  }

  .izgara > .sutun {
    min-width: 0;
  }

  /* Kapak */
  .kapak {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-left: max(48px, calc((100vw - 1200px) / 2));
    padding-right: max(48px, calc((100vw - 1200px) / 2));
  }

  .kapak .kap {
    max-width: none;
    padding: 0;
  }

  .kapak h1 {
    font-size: clamp(52px, 4.6vw, 72px);
  }

  .kapak-sahne {
    height: 100%;
    min-height: 680px;
    margin: 0;
  }

  .kapak .telefon {
    --gen: clamp(280px, 24vw, 340px);
    top: auto;
    bottom: -70px;
  }

  .kapak-foto {
    inset: 0 -240px 0 -60px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  }

  .kapak-bildirim {
    width: 290px;
  }

  .kapak-bildirim.b1 {
    left: -10px;
    top: 27%;
  }

  .kapak-bildirim.b2 {
    right: -20px;
    top: 52%;
  }

  /* Parçalar: bilenler solda, yöneticinin panosu sağda */
  .parcalar .izgara {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .parcalar .pano-cerceve {
    margin-top: 0;
  }

  .parcalar .devam-ipucu {
    justify-content: flex-start;
  }

  /* Gün: telefon sahnesi yerine oynatıcı */
  .gun-giris,
  .gun-akis {
    display: none;
  }

  .gun {
    background:
      radial-gradient(60% 50% at 85% 10%, rgba(1, 89, 254, 0.07) 0%, rgba(1, 89, 254, 0) 70%),
      radial-gradient(50% 40% at 10% 90%, rgba(254, 113, 81, 0.07) 0%, rgba(254, 113, 81, 0) 70%),
      var(--zemin);
  }

  .oyuncu {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 64px);
    align-items: center;
    width: 100%;
    max-width: 1680px;
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(24px, 5vh, 64px) var(--kenar-sag) clamp(24px, 5vh, 64px) var(--kenar-sol);
  }

  .oyuncu-sol h2 {
    font-size: clamp(34px, 2.9vw, 44px);
  }

  .oyuncu-giris {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--metin-2);
  }

  .zaman {
    margin-top: 26px;
    display: grid;
    gap: 4px;
  }

  .zaman button {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 10px 14px 12px 12px;
    border-radius: 16px;
    text-align: left;
    transition: background-color 0.3s, box-shadow 0.3s;
  }

  .zaman button:hover {
    background: rgba(255, 255, 255, 0.6);
  }

  .zaman time {
    padding-top: 1px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--metin-soluk);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
  }

  .zaman b {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--metin-2);
  }

  /* Etkin saatin açıklaması açılır; iş yapılınca yerini sonuç alır. Yükseklik en uzun
     açıklamaya göre JS'ten gelir (--alt-y): saat değişince sütun boyu oynamaz. */
  .zaman-alt {
    display: grid;
    height: 0;
    overflow: hidden;
    transition: height 0.45s var(--egri), margin-top 0.45s var(--egri);
  }

  .zaman-alt > * {
    grid-area: 1 / 1;
    align-self: start;
    font-size: 14px;
    line-height: 1.45;
    transition: opacity 0.35s var(--egri), transform 0.45s var(--egri);
  }

  .zaman-metin {
    color: var(--metin-2);
  }

  .zaman-sonuc {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 700;
    color: #0f7a3d;
    opacity: 0;
    transform: translateY(6px);
  }

  .zaman-sonuc .i {
    flex: none;
    margin-top: 2px;
    font-size: 16px;
  }

  .zaman-alt.bitti .zaman-metin {
    opacity: 0;
    transform: translateY(-6px);
  }

  .zaman-alt.bitti .zaman-sonuc {
    opacity: 1;
    transform: none;
  }

  .zaman button.gecti time {
    color: #16a34a;
  }

  .zaman button[aria-current='step'] {
    background: var(--beyaz);
    box-shadow: var(--golge-1);
  }

  .zaman button[aria-current='step'] time {
    color: var(--rol-renk);
  }

  .zaman button[aria-current='step'] .zaman-alt {
    height: var(--alt-y, 63px);
    margin-top: 5px;
  }

  /* Oynarken etkin saatin altında ilerleme çizgisi dolar */
  .zaman i {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 3px;
    border-radius: 99px;
    overflow: hidden;
    opacity: 0;
    background: #e5eaf2;
  }

  .zaman i::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rol-renk);
    transform-origin: left;
    transform: scaleX(0);
  }

  .oyuncu.oynuyor .zaman button[aria-current='step'] i {
    opacity: 1;
  }

  .oyuncu.oynuyor .zaman button[aria-current='step'] i::after {
    animation: dolum var(--sure, 7s) linear forwards;
  }

  @keyframes dolum {
    to {
      transform: scaleX(1);
    }
  }

  .oyuncu-dugmeler {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .oyuncu-dugmeler .dugme {
    min-height: 48px;
    padding: 0 20px;
    font-size: 15.5px;
  }

  .oyuncu-not {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--metin-soluk);
  }

  .oyuncu-not .i {
    font-size: 17px;
    color: var(--mavi);
  }

  .oyuncu-sag {
    min-width: 0;
  }

  /* Telefonlar: --tel (çerçeve genişliği), --o (ekran ölçeği) ve --ara JS'ten gelir */
  .telefonlar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--ara, 36px);
    padding-top: 6px;
  }

  .cihaz {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 12px;
  }

  .cihaz[data-rol='ogretmen'] { --rol-renk: #e2553a; }
  .cihaz[data-rol='veli'] { --rol-renk: #00a396; }
  .cihaz[data-rol='yonetici'] { --rol-renk: var(--mavi); }

  .cihaz > .rol-cip {
    position: static;
    max-width: none;
    font-size: 13px;
    transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
  }

  .cihaz.aktor > .rol-cip {
    background: var(--rol-renk);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(0, 23, 63, 0.18);
  }

  .cihaz.aktor > .rol-cip b {
    color: var(--beyaz);
  }

  .cihaz.aktor > .rol-cip img {
    box-shadow: 0 0 0 1.5px var(--beyaz);
  }

  .cihaz-govde {
    position: relative;
    width: var(--tel, 290px);
    padding: calc(var(--tel, 290px) * 0.034);
    border-radius: calc(var(--tel, 290px) * 0.165);
    background: linear-gradient(150deg, #3a4558 0%, #121b2b 22%, #0b1220 60%, #2b3446 100%);
    box-shadow:
      inset 0 0 0 1.5px #56627a,
      0 12px 28px rgba(0, 23, 63, 0.16),
      0 34px 70px rgba(0, 23, 63, 0.2);
    transition: transform 0.6s var(--egri), box-shadow 0.6s var(--egri);
  }

  .cihaz-govde::after {
    content: '';
    position: absolute;
    z-index: 9;
    top: calc(var(--tel, 290px) * 0.058);
    left: 50%;
    width: 29%;
    height: calc(var(--tel, 290px) * 0.074);
    border-radius: 99px;
    background: #0b1220;
    transform: translateX(-50%);
  }

  .cihaz.aktor .cihaz-govde {
    transform: translateY(-8px);
    box-shadow:
      inset 0 0 0 1.5px #56627a,
      0 0 0 4px var(--rol-renk),
      0 18px 36px rgba(0, 23, 63, 0.22),
      0 44px 90px rgba(0, 23, 63, 0.26);
  }

  .cihaz-ekran {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 440 / 956;
    border-radius: calc(var(--tel, 290px) * 0.135);
    background: #f9fafc;
  }

  /* Ekran düzlemi: ekran görüntüsünün 1/3'ü (440×956); tüm katmanlar bu ölçüde yazılır */
  .tuval {
    position: absolute;
    left: 0;
    top: 0;
    width: 440px;
    height: 956px;
    transform-origin: 0 0;
    transform: scale(var(--o, 0.62));
  }

  .katman {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s var(--egri), visibility 0s linear 0.55s;
  }

  .katman.acik {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s var(--egri), visibility 0s;
  }

  .katman > .zemin {
    position: absolute;
    left: 0;
    top: 0;
    width: 440px;
    height: 956px;
    max-width: none;
  }

  /* Durum çubuğundaki saat hikâyenin saatini gösterir (ekran görüntülerinde başka saatler var) */
  .durum-saat {
    position: absolute;
    z-index: 6;
    left: 44px;
    top: 25px;
    width: 72px;
    height: 20px;
    margin: 0;
    padding-left: 7px;
    background: #f9fafc;
    font-family: var(--app);
    font-size: 17px;
    font-weight: 650;
    line-height: 20px;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    font-variant-numeric: tabular-nums;
  }

  .tuval.kilitte .durum-saat {
    display: none;
  }

  .o-hit {
    position: absolute;
    display: block;
    transition: background-color 0.15s;
  }

  .o-hit:active,
  .o-hit.basildi {
    background: rgba(15, 23, 42, 0.12);
  }

  /* Sinyalin indiği ve halkanın çizildiği yerler (görünmez) */
  .o-capa {
    position: absolute;
    pointer-events: none;
  }

  /* Ekranlar küçüldüğü için parmak da küçülür */
  .oyuncu .parmak {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }

  /* Telefonun içindeki "Tıklayın" etiketi ekran ölçeğinden bağımsız okunur boyda */
  .oyuncu .dokun::before {
    content: 'Tıklayın';
    top: calc(-15px / var(--o, 0.62));
    right: calc(12px / var(--o, 0.62));
    padding: calc(4px / var(--o, 0.62)) calc(10px / var(--o, 0.62));
    font-size: calc(12px / var(--o, 0.62));
  }

  .oyuncu .dokun::after {
    inset: calc(-3px / var(--o, 0.62));
  }

  /* Yoklama (öğretmen) */
  .o-yk-rozet {
    position: absolute;
    left: 346px;
    top: 153px;
    width: 64px;
    height: 30px;
    border-radius: 10px;
    border: 1.5px solid #a7f3d0;
    text-align: center;
    line-height: 27px;
    background: #f0fdf4;
    font-family: var(--app);
    font-size: 14.5px;
    font-weight: 800;
    color: #065f46;
  }

  .o-yk-cip {
    position: absolute;
    top: 370px;
    height: 32px;
    border-radius: 16px;
    text-align: center;
    line-height: 32px;
    background: #f1f5f9;
    font-family: var(--app);
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
  }

  /* Ekran görüntüsündeki rozet, daha dar durumda (İzinli) kenardan görünmesin diye beyazla örtülür */
  .o-yk-satir {
    position: absolute;
    left: 16px;
    width: 408px;
    height: 67px;
    border-radius: 17px;
    background: linear-gradient(var(--beyaz), var(--beyaz)) no-repeat right 13px top 17px / 81px 34px;
    transition: background-color 0.15s;
  }

  .o-yk-satir:active {
    background-color: rgba(15, 23, 42, 0.04);
  }

  .o-yk-satir .yk-durum {
    position: absolute;
    right: 13px;
    top: 17px;
    height: 34px;
    padding: 0 12px 0 13px;
    gap: 8px;
    border-radius: 11px;
    font-size: 15.5px;
  }

  .o-yk-satir .yk-durum i {
    width: 8px;
    height: 8px;
  }

  /* Öğün seçimi (öğretmen) */
  .o-ogun {
    position: absolute;
    width: 198px;
    height: 116px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    border-radius: 22px;
    border: 1.5px solid var(--sk);
    background: var(--sz);
    font-family: var(--app);
    font-size: 17.5px;
    font-weight: 800;
    color: #0f172a;
  }

  .o-ogun i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sr);
    color: var(--beyaz);
    font-size: 27px;
  }

  .o-ogun i .i {
    stroke-width: 2.6;
  }

  .o-ogun.secili {
    border: 3px solid var(--sr);
  }

  .o-ogun.secili::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 13px;
    width: 8px;
    height: 15px;
    border: solid var(--sr);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
  }

  .o-ogun[data-ogun='all'] { --sz: #f0fdf4; --sk: #86efac; --sr: #15803d; }
  .o-ogun[data-ogun='most'] { --sz: #fefbea; --sk: #fcd34d; --sr: #b45309; }
  .o-ogun[data-ogun='some'] { --sz: #fff7ed; --sk: #fdba74; --sr: #ea580c; }
  .o-ogun[data-ogun='none'] { --sz: #fef2f2; --sk: #fca5a5; --sr: #dc2626; }

  /* Çıkış sinyali (öğretmen) ve sayı yamaları */
  .o-cs-pill {
    position: absolute;
    left: 316px;
    top: 700px;
    width: 93px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    border: 1.5px solid #fed7aa;
    background: #fff7ed;
    font-family: var(--app);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 800;
    color: #c2410c;
  }

  .o-cs-pill .i {
    font-size: 15px;
  }

  .o-sayi {
    position: absolute;
    width: 40px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--z);
    font-family: var(--app);
    font-size: 24px;
    font-weight: 900;
    color: var(--r);
    font-variant-numeric: tabular-nums;
  }

  /* Okula yaklaşma (veli) */
  .o-yd-bant {
    position: absolute;
    left: 35px;
    top: 236px;
    width: 371px;
    height: 66px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    align-items: center;
    gap: 4px 8px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1.5px solid #fed7aa;
    background: #fff7ed;
    font-family: var(--app);
    color: #c2410c;
    transition: background-color 0.4s, border-color 0.4s;
  }

  .o-yd-bant > * {
    transition: opacity 0.4s;
  }

  .o-yd-bant.bos {
    border-color: var(--beyaz);
    background: var(--beyaz);
  }

  .o-yd-bant.bos > * {
    opacity: 0;
  }

  .o-yd-bant b {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 800;
  }

  .o-yd-bant em {
    padding: 4px 9px;
    border-radius: 8px;
    background: #ffedd5;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
  }

  .o-yd-bant small {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 500;
    color: #9a3412;
  }

  .o-yd-sure {
    position: absolute;
    left: 35px;
    top: 340px;
    width: 370px;
    height: 35px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .o-yd-sure button {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: var(--beyaz);
    font-family: var(--app);
    font-size: 16px;
    font-weight: 800;
    color: #ea580c;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  }

  .o-yd-sure button.secili {
    border-color: #ff5722;
    background: #ff5722;
    color: var(--beyaz);
  }

  .o-yd-dugme {
    position: absolute;
    left: 35px;
    top: 387px;
    width: 370px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    background: #ff5722;
    color: var(--beyaz);
    font-family: var(--app);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(255, 87, 34, 0.3);
  }

  .o-yd-dugme .i {
    font-size: 17px;
  }

  /* Kampüs Günlüğü onayı (yönetici) */
  .o-ko-rozet {
    position: absolute;
    left: 353px;
    top: 122px;
    width: 72px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #cbfaf0;
    font-family: var(--app);
    font-size: 12.5px;
    font-weight: 800;
    color: #0f766e;
  }

  .o-ko-metin {
    position: absolute;
    left: 30px;
    top: 222px;
    width: 380px;
    height: 78px;
    background: var(--beyaz);
    font-family: var(--app);
  }

  .o-ko-metin b {
    display: block;
    padding-top: 5px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f766e;
  }

  .o-ko-metin p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: #334155;
  }

  .o-ko-foto {
    position: absolute;
    left: 31px;
    top: 306px;
    width: 378px;
    height: 378px;
    max-width: none;
    object-fit: cover;
    border-radius: 12px;
  }

  .o-ko-dugme {
    position: absolute;
    left: 31px;
    top: 751px;
    width: 185px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 13px;
    background: #1a8c84;
    color: var(--beyaz);
    font-family: var(--app);
    font-size: 15.5px;
    font-weight: 800;
    transition: background-color 0.3s, color 0.3s;
  }

  .o-ko-dugme .i {
    font-size: 16px;
    stroke-width: 3;
  }

  .o-ko-dugme.tamam {
    background: #e2e8f0;
    color: #475569;
  }

  .o-toast {
    top: 796px;
    bottom: auto;
    font-size: 14px;
  }

  /* Kapı teslim istasyonu (yönetici) */
  .o-kp-kart {
    position: absolute;
    left: 13px;
    width: 414px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    border: 1.5px solid #fed7aa;
    background: var(--beyaz);
    font-family: var(--app);
  }

  .o-kp-kart.kapida {
    border-color: #fdba74;
    transition: border-color 0.4s;
  }

  .o-kp-kart.teslim {
    border-color: #86efac;
  }

  .o-kp-kart p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .o-kp-kart p > b {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
  }

  .o-kp-alan {
    font-size: 15.5px;
    color: #475569;
  }

  .o-kp-alan b {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
  }

  .o-kp-rozet {
    --rz: #ffedd5;
    --rk: #fdba74;
    --rn: #f97316;
    --ry: #c2410c;
    padding: 5px 10px;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .o-kp-rozet.sari {
    --rz: #fef3c7;
    --rk: #fde68a;
    --rn: #facc15;
    --ry: #a16207;
    letter-spacing: 0;
  }

  .o-kp-rozet.tamam {
    --rz: #f0fdf4;
    --rk: #86efac;
    --rn: #22c55e;
    --ry: #15803d;
  }

  .o-kp-dugme {
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 13px;
    background: #15803d;
    color: var(--beyaz);
    font-family: var(--app);
    font-size: 15.5px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(21, 128, 61, 0.28);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  }

  .o-kp-dugme .i {
    font-size: 17px;
  }

  .o-kp-dugme.tamam {
    background: #e2e8f0;
    color: #475569;
    box-shadow: none;
  }

  /* Yönetici panosundaki göstergeler, ekran görüntüsündeki kartın tam üstüne oturur */
  .o-kpi {
    position: absolute;
    width: 201px;
    height: 119px;
    min-height: 0;
    padding: 13px;
    border-radius: 18px;
  }

  /* Velinin kilit ekranı: duvar kâğıdı çocuğun fotoğrafı; saat ve bildirimler HTML */
  .kilit-tam {
    background: #3b3a36;
  }

  .kilit-tam::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.38) 100%);
  }

  .kilit-tam::after {
    content: '';
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 9px;
    width: 140px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(-50%);
  }

  .kt-ust {
    position: absolute;
    z-index: 2;
    right: 30px;
    top: 27px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .kt-sinyal {
    width: 18px;
    height: 11px;
    background:
      linear-gradient(#fff, #fff) 0 100% / 3px 40% no-repeat,
      linear-gradient(#fff, #fff) 5px 100% / 3px 60% no-repeat,
      linear-gradient(#fff, #fff) 10px 100% / 3px 80% no-repeat,
      linear-gradient(#fff, #fff) 15px 100% / 3px 100% no-repeat;
  }

  .kt-pil {
    position: relative;
    width: 25px;
    height: 12px;
    border-radius: 3.5px;
    box-shadow: inset 0 0 0 1.4px rgba(255, 255, 255, 0.75);
  }

  .kt-pil::after {
    content: '';
    position: absolute;
    inset: 2.4px 6px 2.4px 2.4px;
    border-radius: 1.5px;
    background: #fff;
  }

  .kt-tarih,
  .kt-saat {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: var(--app);
    color: rgba(255, 255, 255, 0.96);
  }

  .kt-tarih {
    top: 64px;
    font-size: 20px;
    font-weight: 600;
  }

  .kt-saat {
    top: 84px;
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  }

  .kt-yigin {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    top: 452px;
    display: grid;
    gap: 9px;
  }

  .kt-yigin .bildirim {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 13px 15px 14px 13px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
  }

  .kt-yigin .bildirim.resimli {
    grid-template-columns: 40px 1fr 46px;
  }

  .kt-yigin .bildirim > img,
  .o-banner > img {
    width: 40px;
    height: 40px;
    padding: 7px;
    border-radius: 10px;
  }

  .kt-yigin .bildirim.resimli > img:last-child {
    width: 46px;
    height: 46px;
    padding: 0;
  }

  .kt-yigin .bildirim b,
  .o-banner b {
    font-size: 16px;
  }

  .kt-yigin .bildirim span,
  .o-banner span {
    font-size: 15px;
  }

  .kt-yigin .bildirim time,
  .o-banner time {
    font-size: 13px;
  }

  .kt-alt {
    position: absolute;
    z-index: 2;
    left: 46px;
    right: 46px;
    bottom: 40px;
    display: flex;
    justify-content: space-between;
    margin: 0;
  }

  .kt-alt span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Uygulama açıkken gelen bildirim: ekranın üstünden düşer */
  .o-banner {
    position: absolute;
    z-index: 8;
    left: 12px;
    right: 12px;
    top: 54px;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 13px 15px 14px 13px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-40px) scale(0.96);
    transition: opacity 0.4s var(--egri), transform 0.65s var(--yay), visibility 0s linear 0.65s;
  }

  .o-banner.acik {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.4s var(--egri), transform 0.65s var(--yay), visibility 0s;
  }

  /* Bilginin vardığı yeri gösteren halka (ekran düzleminde) */
  .o-vurgu {
    position: absolute;
    z-index: 7;
    border-radius: 20px;
    border: 4px solid var(--vurgu-renk, var(--mavi));
    pointer-events: none;
    animation: o-vurgu 1.5s var(--egri) forwards;
  }

  @keyframes o-vurgu {
    0% {
      opacity: 0;
      transform: scale(0.97);
    }
    18% {
      opacity: 1;
      transform: scale(1.015);
    }
    100% {
      opacity: 0;
      transform: scale(1.05);
    }
  }

  /* Günün sonu: ekranlar geri çekilir, dört sorunun cevabı telefonların üstünde belirir */
  .cihaz-ekran::after {
    content: '';
    position: absolute;
    z-index: 10;
    inset: 0;
    background: rgba(238, 242, 249, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--egri);
  }

  .oyuncu.sonda .cihaz-ekran::after {
    opacity: 1;
    transition-delay: 0.2s;
  }

  .o-ozet {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
  }

  .o-ozet li {
    position: absolute;
    display: grid;
    grid-template-columns: 42px auto;
    align-items: center;
    gap: 11px;
    padding: 9px 16px 9px 9px;
    border-radius: 18px;
    background: var(--beyaz);
    box-shadow: 0 2px 6px rgba(0, 23, 63, 0.08), 0 18px 40px rgba(0, 23, 63, 0.18);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.5s var(--egri), transform 0.7s var(--yay);
  }

  .o-ozet.acik li {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.35s + var(--sira) * 0.35s);
  }

  .o-ozet img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 12px;
    background: var(--mavi-zemin);
  }

  .o-ozet b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .o-ozet span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
  }

  .o-ozet span .i {
    font-size: 15px;
    stroke-width: 3;
  }

  /* Roller: başlık solda, açıklama ve sekmeler sağda; panelde görsel solda, metin sağda */
  .roller-bas {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: end;
  }

  .roller-bas .giris-metni {
    margin-top: 0;
  }

  .rol-sekme {
    max-width: 560px;
    margin-top: 40px;
  }

  .rol-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 4.5vw, 72px);
    align-items: start;
    margin-top: 30px;
  }

  .rol-gorsel {
    position: sticky;
    top: 96px;
    height: min(640px, calc(100vh - 140px));
    min-height: 520px;
  }

  .rol-gorsel .telefon {
    --gen: clamp(200px, 17vw, 240px);
    right: 32px;
    top: auto;
    bottom: -90px;
  }

  .rol-metin {
    margin-top: 0;
    padding-top: 10px;
  }

  .rol-metin h3 {
    font-size: clamp(30px, 2.6vw, 38px);
  }

  .rol-metin > p {
    font-size: 18px;
  }

  .tik li {
    font-size: 17.5px;
  }

  /* Bölüm başı (karne, ekip): başlık solda, giriş sağda */
  .bolum-bas {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: end;
  }

  .bolum-bas .giris-metni {
    margin-top: 0;
  }

  .kc-bas h3,
  .ek-bas h3 {
    font-size: 22px;
  }

  /* Karne: başlık solda; giriş ve karnenin bölümleri sağda; iki çift yan yana */
  .karne .bolum-bas {
    align-items: start;
  }

  .karne-ciftler {
    margin-top: 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .karne-cift {
    gap: 16px;
    padding: 24px 24px 26px;
  }

  /* Ekip: iki kart yan yana; izin tablosu ve mesajlar boydan boya (yazı solda, ekran sağda).
     1280 ve üstünde mesajlar üçüncü sütuna geçer. */
  .ekip-kartlar {
    margin-top: 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ekip-kart {
    padding: 24px 22px 22px;
  }

  .ekip-kart.genis {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    column-gap: 44px;
    align-items: center;
    padding: 30px;
  }

  .pt-tablo :is([data-gun='1'], [data-gun='2'], [data-gun='3'], [data-gun='4'], [data-gun='14'], [data-gun='15'], [data-gun='16']),
  .pt-tablo .g-top {
    display: table-cell;
  }

  .pt-tablo .i-top {
    border-left: 1px solid #e2e8f0;
  }

  .pt-tablo {
    font-size: 11px;
  }

  .pt-tablo .ad {
    width: 150px;
    padding-left: 14px;
  }

  .pt-tablo tbody th {
    padding: 7px 6px 7px 14px;
  }

  .pt-tablo tbody th b {
    font-size: 12.5px;
  }

  .pt-tablo tbody th small {
    font-size: 10.5px;
  }

  .pt-tablo thead th {
    font-size: 10.5px;
  }

  .pt-tablo thead small {
    font-size: 9.5px;
  }

  .pt-tablo .top {
    width: 36px;
  }

  .pt i {
    width: 20px;
    height: 20px;
    font-size: 10.5px;
  }

  .pt-tablo i {
    width: min(22px, calc(100% - 4px));
    height: auto;
  }

  .pt-ust {
    padding: 24px 14px 12px;
  }

  .pt-ozet {
    grid-template-columns: repeat(2, minmax(0, 220px));
    padding: 12px 14px;
  }

  .pt-kodlar {
    padding: 11px 14px;
  }

  .mesaj .sohbet {
    width: min(100%, 400px);
  }

  /* Duyuru: başlık üstte; yöneticinin ekranı ve velinin kilit ekranı yan yana */
  .duyuru-ic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'yazi yazi'
      'app veli'
      'durum durum';
    column-gap: 48px;
    row-gap: 36px;
    align-items: center;
  }

  .dy-yazi {
    max-width: 640px;
  }

  .dy-veli {
    justify-self: center;
    width: min(100%, 320px);
  }

  /* Kilit ekranı geniş ekranda telefon boyunda */
  .kilit.uzun {
    min-height: 560px;
    padding: 50px 14px 16px;
    border-radius: 42px;
    box-shadow: 0 0 0 7px #0b1220, 0 0 0 8px rgba(185, 214, 253, 0.18), 0 30px 60px rgba(0, 0, 0, 0.45);
  }

  .kilit.uzun .kilit-saat {
    padding-bottom: 26px;
  }

  .kilit.uzun .kilit-saat b {
    font-size: 72px;
  }

  .dy-veli .rol-cip {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .duyuru .dokun::before {
    content: 'Tıklayın';
  }

  .dy-veli::after {
    border-radius: 42px;
  }

  /* Anaokulu için: metin solda, uygulamadan üç ekran sağda üst üste */
  .anaokulu .izgara {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }

  .anaokulu .serit {
    margin: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    gap: 18px;
  }

  .anaokulu .serit figure {
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 18px;
  }

  .anaokulu .serit figure:nth-child(2) {
    margin-left: 36px;
  }

  .anaokulu .serit figure:nth-child(3) {
    margin-left: 72px;
  }

  .anaokulu .serit figcaption {
    margin: 0;
    font-size: 16px;
  }

  .serit-not {
    display: none;
  }

  /* Güven: başlık solda sabit, kartlar sağda iki sütun */
  .guven .izgara {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .guven .izgara > .sutun:first-child {
    position: sticky;
    top: 120px;
  }

  .guven-liste {
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .guven-liste li:first-child {
    grid-column: 1 / -1;
  }

  .guven-liste li {
    padding: 18px 20px 18px 16px;
  }

  /* Başlangıç: başlık ve fotoğraf solda, adımlar sağda */
  .baslangic-foto {
    height: 360px;
  }

  .adimlar {
    margin-top: 0;
    gap: 26px;
  }

  .adimlar b {
    font-size: 19px;
  }

  .adimlar p {
    font-size: 16px;
  }

  /* Demo: metin ve düğmeler solda, fotoğraf sağda; imza ve dipnot boydan boya */
  .demo .kap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    grid-template-areas:
      'ust foto'
      'baslik foto'
      'liste foto'
      'eylem foto'
      'aciklama foto'
      'iletisim foto'
      'imza imza'
      'dip dip';
    column-gap: clamp(40px, 5.5vw, 96px);
    align-items: start;
  }

  .demo .ust-baslik { grid-area: ust; justify-self: start; }
  .demo h2 { grid-area: baslik; }
  .demo .tik { grid-area: liste; }
  .demo-eylem { grid-area: eylem; display: flex; flex-wrap: wrap; }
  .demo-eylem .dugme { width: auto; white-space: nowrap; }
  .demo-aciklama { grid-area: aciklama; }
  .iletisim { grid-area: iletisim; }
  .demo .imza-etiketi { grid-area: imza; justify-self: start; }
  .dip { grid-area: dip; }

  /* Fotoğraf solun yüksekliğine uyar; kendi boyu satırları uzatmaz */
  .demo-foto {
    grid-area: foto;
    align-self: stretch;
    contain: size;
    height: auto;
    margin: 0;
    border-radius: 30px;
  }
}

/* Geniş ekranda ekip üç sütun (izin tablosu altta boydan boya); duyuru üç sütun: metin,
   yöneticinin ekranı, velinin kilit ekranı */
@media (min-width: 1280px) {
  .ekip-kartlar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense;
  }

  .ekip-kart.mesaj {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 24px 22px 22px;
  }

  .mesaj .sohbet {
    width: auto;
  }

  .duyuru-ic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 280px);
    grid-template-areas:
      'yazi app veli'
      'durum app veli';
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 30px;
    align-items: start;
  }

  .dy-app {
    align-self: center;
  }

  .dy-veli {
    align-self: center;
  }

  .dy-durum {
    align-self: start;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .oyuncu {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }

  /* Dar sütunda iki düğme alt alta: etiket değişince düzen oynamaz */
  .oyuncu-dugmeler {
    display: grid;
  }
}

/* Kısa ve dar ekranda (ör. iPad yatay) giriş ve el ipucu çıkar: çizelge ve telefondaki
   "Tıklayın" etiketi aynı işi görür */
@media (min-width: 1024px) and (max-width: 1279px) and (max-height: 820px) {
  .oyuncu-giris,
  .oyuncu-not {
    display: none;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .oyuncu.oynuyor .zaman button[aria-current='step'] i::after {
    animation: none;
  }
}
