/* --- BUGÜN kartı (src/view/goals.js) --- */
.today { position: absolute; bottom: var(--today-bottom, 130px); left: 18px; width: 258px; padding: 8px 12px 10px; }
.today:empty { display: none; }
.today-head { display: flex; width: 100%; justify-content: space-between; align-items: baseline; cursor: default; }
.today-head b { font-family: var(--head); font-size: 16px; color: var(--ink); }
.today-head .num { font-size: 13px; font-weight: 700; }
.today-note { margin: 6px 0 0; font-family: var(--hand); font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.today ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.today li { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: start; font-size: 14px; font-weight: 700; line-height: 1.2; }
.today li small { grid-column: 2; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.today svg, .today-toast svg { width: 16px; height: 16px; margin-top: 1px; fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.today .tick, .today .cross, .today-toast .cross { display: none; fill: none; }
.today li.is-done span { text-decoration: line-through 2px; text-decoration-color: var(--ok); color: var(--ink-soft); }
.today li.is-done svg { fill: #cfe6c8; }
.today li.is-done .tick { display: inline; stroke: var(--ok); stroke-width: 2.6; }
.today li.is-failed { color: var(--ink-soft); }
.today li.is-failed span { text-decoration: line-through 2px; text-decoration-color: var(--red); }
.today li.is-failed .cross { display: inline; stroke: var(--red); }

/* Telefon aile panelinin altında başlar ve ekranın içinde biter (eğik durduğu için köşesi ~10px kalkar). Mobil düzen mobile.css'te ezilir. */
.phone { bottom: 14px; height: clamp(300px, calc(100vh - 40px - var(--side-bottom, 0px)), 470px); }
.phone .screen { padding-bottom: 16px; }
/* Sığmayan bildirim uygulama ızgarasının altında kesik kalmasın: kaydırılır, alt kenar soluklaşır. */
.notifs { overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(#000 calc(100% - 14px), transparent); mask-image: linear-gradient(#000 calc(100% - 14px), transparent); }
.notifs::-webkit-scrollbar { display: none; }
.notif { flex: none; }
@media (max-height: 860px) and (min-width: 761px) {
  .apps { gap: 6px 6px; } .app .tile { width: 40px; height: 40px; border-radius: 12px; } .app .tile svg { width: 24px; height: 24px; }
}

/* Biten hedef: kısa kâğıt bildirim, modal değil. */
.today-toast {
  position: absolute; bottom: var(--toast-bottom, 340px); left: 18px; /* z-index yok: sonradan gelen kartlar (#layer) üstünü örter */
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; max-width: 258px;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  translate: 0 calc(var(--i, 0) * -56px); rotate: -2deg; pointer-events: none;
  animation: today-pop 2.6s var(--spring) both;
}
.today-toast .tick { fill: none; stroke: var(--ok); stroke-width: 2.6; }
.today-toast svg { fill: #cfe6c8; }
.today-toast b { display: block; font-size: 14px; }
.today-toast span { font-size: 12px; font-weight: 700; color: var(--ok); }
@keyframes today-pop { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.06); } 20%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* --- İlk gün rehberi (src/view/guide.js) --- */
.guide-tag {
  position: fixed; z-index: 3; width: max-content; max-width: 220px; padding: 8px 12px 6px;
  background: #fff3b8; border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow);
  rotate: -1.5deg; animation: today-in .35s var(--spring) both;
}
.guide-tag p { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.guide-tag .guide-row { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.guide-tag .guide-ok { font-weight: 900; font-size: 13px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 5px; background: var(--paper-2); }
.guide-tag .guide-skip { font-size: 11px; text-decoration: underline; color: var(--ink-soft); }
.guide-tag .arrow { position: absolute; left: var(--arrow-x, 50%); bottom: -10px; width: 14px; height: 14px; translate: -50% 0; rotate: 45deg; background: #fff3b8; border: 2px solid var(--ink); border-top: 0; border-left: 0; }
.guide-tag.is-below .arrow { bottom: auto; top: -10px; rotate: 225deg; }
@keyframes today-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* Hareketi azalt: oyuncu ayarı ya da işletim sistemi; ikisi de html.az-hareket olur (a11y/apply.js). */
.az-hareket .today-toast, .az-hareket .guide-tag { animation-duration: .01s; }

@media (max-width: 760px) {
  .today { top: auto; bottom: 212px; left: 8px; right: auto; width: auto; max-width: calc(100vw - 16px); padding: 4px 10px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .today-head { gap: 8px; cursor: pointer; min-height: 44px; align-items: center; }
  .today-head b { font-size: 11px; letter-spacing: .1em; }
  .today ul { display: none; }
  .today.is-open ul { display: grid; margin-bottom: 4px; }
  .today li { font-size: 12px; }
  .today-toast { top: auto; bottom: 256px; right: auto; left: 8px; translate: 0 calc(var(--i, 0) * -52px); }
}
.guide-tag.is-left .arrow { left: auto; right: -10px; top: 50%; bottom: auto; translate: 0 -50%; rotate: -45deg; }

/* Bugün listesi okul defteri sayfası: ince mavi satırlar, kırmızı kenar çizgisi */
.today {
  padding-left: 22px;
  background:
    linear-gradient(90deg, transparent 13px, rgba(196, 64, 52, .45) 13px, rgba(196, 64, 52, .45) 14px, transparent 14px),
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(64, 110, 170, .16) 21px 22px),
    #fbf6ea;
}
