/* ============================================================
   BOTTOM SHEET
   Kapalı: üstten %43.5 (Figma 380/874) · Açık: %10.3 (90/874)
   transform ile hareket eder — JS snap noktalarını yönetir.
   ============================================================ */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--sheet-bg);
  border-radius: 125px 125px 0 0;
  transform: translateY(43.5%);
  will-change: transform;
  z-index: 10;
}

.sheet.is-animating {
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0.24, 1);
}

.sheet-grab {
  padding-top: 20px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  /* sürükleme burada; içerik kaydırması native */
}

.sheet-grab:active {
  cursor: grabbing;
}

.sheet-handle {
  width: 100px;
  height: 24px;
  margin: 0 auto;
  display: block;
}

.sheet-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 9vw, 36px);
  color: var(--navy);
  text-align: center;
  margin: 21px auto 12px;
  max-width: 314px;
}

.sheet-content {
  height: calc(100% - 130px);
  overflow-y: hidden;
  /* açıkken JS 'auto' yapar */
  padding: 0 16px calc(140px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}

.sheet[aria-expanded="true"] .sheet-content {
  overflow-y: auto;
}

/* ---- Sheet kartları ---- */
.mcard {
  background: var(--card-mobile);
  flex: none;
}

.mcard--pill {
  border-radius: 70px;
  min-height: 140px;
  padding: 26px 24px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mcard--pill .mcard-text h2 {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.mstat {
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin-top: 2px;
}

.mstat small {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.msub {
  font-weight: 400;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.mcard--vars {
  border-radius: 70px;
  min-height: 100px;
  padding: 16px 24px;
}

.mcard--vars h2 {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.vars-cols {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.vars-cols p {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.mcard--chart {
  border-radius: 22px;
  min-height: 165px;
  padding: 14px 22px 10px;
}

.mcard--chart h2 {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.mchart-wrap {
  height: 118px;
  margin-top: 4px;
  position: relative;
}

.mchart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.mchart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--card-mobile);
  border-radius: 12px;
}

.mchart-empty.is-hidden {
  display: none;
}
