/* F0 ölçüm sayfası — PiPower Notlar renkleri (ARAYUZ_KURALLARI.md §1). Başlık bandı not-defteri-mobil.js'teki .nd-ust'ün aynısı.
   Koyu tema ve renk temaları F1'de koyu-tema.js ile gelir. */
:root {
  --zemin: #eef2f7;
  --yazi: #1e293b;
  --gri: #64748b;
  --kart: #fff;
  --cizgi: #e2e8f0;
  --vurgu: #c2410c;
  --yesil: #16a34a;
  --kirmizi: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--zemin); color: var(--yazi);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* Görünür alana sabit kap (klavye açılınca alttaki düğmeler kaybolmasın). Geniş ekranda ortada sınırlı genişlik. */
.uygulama { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--zemin); }

.ust { flex: none; background: linear-gradient(135deg, #f59e0b, #c2410c); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); position: relative; z-index: 2; }
.ust-satir { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.ust h1 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust h1 small { display: block; font-size: 12px; font-weight: 600; opacity: .9; overflow: hidden; text-overflow: ellipsis; }

.rozet { flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; white-space: nowrap; }
.rozet.yesil { background: #dcfce7; color: #166534; }
.rozet.sari { background: #fef3c7; color: #92400e; }
.rozet.kirmizi { background: #fee2e2; color: #991b1b; }

.icerik { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.kart { background: var(--kart); border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.grup-baslik { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vurgu); margin: 0 0 10px; }
.alan { display: block; margin-bottom: 10px; }
.alan span { display: block; font-size: 13px; color: var(--gri); margin-bottom: 4px; }
.alan input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 10px; background: #f8fafc; color: var(--yazi); }
.alan input:focus { outline: 2px solid #fdba74; border-color: #fdba74; }
.not { font-size: 13px; line-height: 1.4; color: var(--gri); margin: 4px 0 12px; }

.dugmeler { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dugme { flex: 1 1 140px; min-height: 48px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; padding: 10px 14px; }
.dugme:active { transform: scale(.97); }
.dugme:disabled { opacity: .5; cursor: default; }
.dugme.turuncu { background: linear-gradient(135deg, #f59e0b, #c2410c); color: #fff; box-shadow: 0 6px 16px rgba(194, 65, 12, .28); }
.dugme.cizgi { width: 100%; background: #fff; color: var(--vurgu); border: 1px solid #fed7aa; }
.dugme.ikincil { background: #fff7ed; color: var(--vurgu); border: 1px solid #fed7aa; }
.not.uyari { color: #92400e; background: #fef3c7; padding: 8px 10px; border-radius: 10px; }

/* Görüşme sahnesi */
.sahne { position: relative; background: #0f172a; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.kutular { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; min-height: 300px; padding-bottom: 80px; }
.bos { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; min-height: 220px; }
.kutu { position: relative; background: #1e293b; aspect-ratio: 4 / 3; }
.kutu video { width: 100%; height: 100%; object-fit: cover; display: block; background: #1e293b; }
.kutu .etiket { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 12px; color: #fff; background: rgba(15, 23, 42, .65);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kendi { position: absolute; right: 8px; top: 8px; width: 28%; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: #334155; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.kendi video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.uyari-serit { position: absolute; left: 8px; top: 8px; right: calc(28% + 16px); font-size: 13px; line-height: 1.3; color: #92400e; background: #fef3c7;
  padding: 8px 10px; border-radius: 10px; }
.ses-ac { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); border: 0; border-radius: 999px; padding: 12px 20px; font-size: 16px; font-weight: 700;
  background: #fff; color: var(--yazi); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); cursor: pointer; }
.denetimler { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 16px; padding: 12px;
  background: linear-gradient(rgba(15, 23, 42, 0), rgba(15, 23, 42, .9)); }
.yuvarlak { width: 56px; height: 56px; border-radius: 50%; border: 0; font-size: 24px; line-height: 1; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }
.yuvarlak:active { transform: scale(.93); }
.yuvarlak.kapali { background: #fff; color: #0f172a; opacity: .75; text-decoration: line-through; }
.yuvarlak.kirmizi { background: var(--kirmizi); }

/* Ölçüm tablosu */
.olcum table { width: 100%; border-collapse: collapse; font-size: 13px; }
.olcum th { text-align: left; font-weight: 600; color: var(--gri); padding: 4px 8px 4px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.olcum td { padding: 4px 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.olcum .ayrac td, .olcum .ayrac th { border-top: 1px solid var(--cizgi); padding-top: 8px; }
.iyi { color: var(--yesil); font-weight: 700; }
.kotu { color: var(--kirmizi); font-weight: 700; }

.olaylar { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.45; color: var(--gri); max-height: 220px; overflow: auto; }
.olaylar li b { color: var(--yazi); font-weight: 600; }

.balon { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 10;
  max-width: calc(100% - 32px); background: #1e293b; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
