/* BILGEAP 1.26.1 — Sınav içi hesap makinesi paneli (assets/js/hesap-makinesi.js). Masaüstü: sağ altta sürüklenebilir pencere;
   telefon: alttan açılan sayfa. İçerik Desmos (gömülü, girişsiz). */
.hm-panel { position: fixed; right: 16px; bottom: 16px; z-index: 1100; width: min(440px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, .14)); box-shadow: 0 24px 60px -18px rgba(20, 10, 60, .45); resize: both; min-width: 300px; min-height: 320px; }
.hm-panel[hidden] { display: none; }
.hm-panel.is-surukleniyor { user-select: none; opacity: .92; }
.hm-panel.is-surukleniyor .hm-cerceve { pointer-events: none; }
.hm-bas { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; cursor: move; touch-action: none;
  background: linear-gradient(135deg, var(--hero-a, #5b3df5), var(--hero-b, #8b5cf6)); color: #fff; }
.hm-bas strong { font-size: var(--fs-14, 14px); }
.hm-not { font-size: 12px; opacity: .85; margin-right: auto; }
.hm-x { width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.hm-x:hover { background: rgba(255, 255, 255, .32); }
.hm-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hm-cerceve { flex: 1; width: 100%; border: 0; background: #fff; }
.hm-dugme[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }
@media (max-width: 640px) {
  .hm-panel { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100%; height: 62vh; border-radius: 18px 18px 0 0; resize: none; min-width: 0; }
  .hm-bas { cursor: default; }
}
