/* grafik — tam ekran uygulama kipi: iskelet sayfa-standardi.css'tedir; burada yalnız grafik çerçevesi yüksekliği ayarlanır. */
html, body { height: 100%; }
.app-layout, .app-main { height: 100vh; height: 100dvh; }
html, body { overscroll-behavior: none; }
.app-main { display: flex; flex-direction: column; overflow: hidden; }
.app-content { flex: 1; min-height: 0; max-width: none; display: flex; flex-direction: column; overflow: hidden; }
.app-content > .page-header { margin-bottom: var(--spacing-sm, 8px); }
#flutter-chart-frame { width: 100%; flex: 1; min-height: 360px; border: 0; display: block; border-radius: var(--radius-lg, 12px); }
.app-content > .app-disclaimer { margin-top: var(--spacing-sm, 8px); }

/* Yükleme iskeleti (boş ekran/sonsuz spinner yok) ve dürüst hata iletisi. */
.gfx-wrap { position: relative; flex: 1; min-height: 360px; display: flex; flex-direction: column; }
.gfx-wrap #flutter-chart-frame { position: absolute; inset: 0; height: 100%; }
.gfx-skel { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg, 12px); background: linear-gradient(90deg, var(--surface-2, #141a21) 25%, var(--surface-3, #1b2330) 50%, var(--surface-2, #141a21) 75%); background-size: 200% 100%; animation: gfx-shimmer 1.4s linear infinite; }
.gfx-skel[hidden], .gfx-err[hidden] { display: none; }
.gfx-err { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 16px; text-align: center; margin: 0; }
.gfx-err p { margin: 0; }
.gfx-slow { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); padding: 8px 14px; text-align: center; border-radius: var(--radius-md, 8px); background: var(--surface-3, #1b2330); color: var(--text-primary, #e6edf5); font-size: 13px; }
.gfx-slow[hidden] { display: none; }
.gfx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes gfx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .gfx-skel { animation: none; } }

/* Mobil / tablet: grafik görünür alana (100dvh) tam oturur; başlık tek satıra iner, erişilebilirlik düğmesi
 * grafiğin alt gezinmesini kapatmaz (üst sağa taşınır). Grafik dokunmaları iframe içinde Flutter'a aittir
 * (sayfa kaydırması yok: .app-main taşmayı gizler), bu yüzden sayfa kaydırma tutamağı gerekmez. */
@media (max-width: 1024px) {
  /* Sabit mobil üst çubuk (56px; <=640px: 52px) içeriği örter: üst boşluk açıkça verilir. */
  .app-content { padding: calc(56px + 8px) 12px 8px; }
  .app-content > .page-header { margin-bottom: 4px; }
  .app-content .page-header-desc { display: none; }
  .app-content .page-header-title { font-size: 16px; margin: 0; }
  .app-content > .app-disclaimer { font-size: 12px; line-height: 1.3; margin-top: 4px; padding-bottom: env(safe-area-inset-bottom); }
  .a11y-panel-toggle { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 60px); right: 8px; }
  .gfx-wrap, #flutter-chart-frame { min-height: 240px; }
}
@media (max-width: 640px) { .app-content { padding-top: calc(52px + 8px); } .a11y-panel-toggle { top: calc(env(safe-area-inset-top, 0px) + 56px); } }
/* Telefon yatay: başlık gizlenir, grafik yüksekliği korunur; yasal uyarı görünür kalır. */
@media (max-height: 500px) and (orientation: landscape) {
  .app-content > .page-header { display: none; }
  .app-content { padding-top: calc(52px + 4px); }
  .gfx-wrap, #flutter-chart-frame { min-height: 0; }
  .a11y-panel-toggle { top: auto; bottom: 56px; }
}
