/* GÜVSAŞ müşteri uygulaması — açık tema. Onaylı taslak: canlı + kayıt aynı ekranda.
   Telefon (tek sütun, altta menü), tablet ve masaüstü (üstte menü, kamera ekranı iki sütun). */

/* Açık tema: app.css'in renk değişkenlerini ezer (giriş ekranı ve pencereler de açık olur). */
body.acik-tema {
  color-scheme: light;
  --zemin: #f4f2f8; --panel: #ffffff; --panel-2: #f5f3f9; --panel-3: #ebe7f2; --video: #0d0c10;
  --cizgi: #e4e0eb; --cizgi-2: #d9d3e3;
  --metin: #1c1924; --metin-2: #4a4555; --soluk: #6d6878; --cok-soluk: #a29dad;
  --mor-zemin: #f0e9f8; --mor-acik: #6c429c;
  --yesil-metin: #1d8a47; --kirmizi-metin: #c9353b; --turuncu-metin: #a86a10; --mavi-metin: #2b6cb0;
  --golge-buyuk: 0 24px 64px rgba(40,25,70,.22);
  --m-altin-zemin: #fbf3dc; --m-kirmizi: #e0434a; --m-kirmizi-zemin: #fdecec;
  --m-turuncu: #f07a2f; --m-yesil-olay: #4cc760; --m-sari: #f2b705; --m-mavi: #4a8df0;
  background: var(--zemin); color: var(--metin);
}
body.acik-tema .giris-sahne { background: radial-gradient(1200px 600px at 50% -10%, #ebe2f6, var(--zemin)); }

.m-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--zemin); }
/* .m-ortu (alttan açılan menü, takvim, uyarı) body'ye eklenir, .m-app'in dışındadır: aynı temel stiller ona da. */
/* :where → özgüllük sıfır; bileşen sınıfları (.m-menu-satir, .m-dugme-ana...) her zaman bunu ezer. */
:where(.m-app, .m-ortu) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; box-shadow: none; }
.m-app button:focus-visible, .m-ortu button:focus-visible { outline: 2px solid var(--mor); outline-offset: 2px; }
.m-app svg.i, .m-ortu svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.m-ortu { color: var(--metin); font-size: 15px; }
.m-ekran { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding-bottom: 86px; }

/* Alt menü (telefon) / üst menü (geniş ekran) */
.m-menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--panel); border-top: 1px solid var(--cizgi); padding: 8px 0 max(10px, env(safe-area-inset-bottom)); }
.m-menu button { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--cok-soluk); position: relative; }
.m-menu button.etkin { color: var(--mor); }
.m-menu .m-rozet { position: absolute; top: -4px; left: calc(50% + 6px); background: var(--m-kirmizi); color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 5px; }
.m-menu .m-marka { display: none; }

/* Üst çubuk */
.m-bos { flex: 1; }
.m-yuvarlak { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; position: relative; }
.m-yuvarlak .nokta { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--m-kirmizi); border: 2px solid var(--panel-2); }

.m-secici { margin: 4px 16px 14px; background: var(--panel-3); border-radius: 14px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; }
.m-secici button { height: 44px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--soluk); display: flex; align-items: center; justify-content: center; gap: 8px; }
.m-secici button.etkin { background: var(--panel); color: var(--metin); box-shadow: 0 2px 8px rgba(40,25,70,.08); }

.m-cihazlar { display: grid; gap: 14px; padding: 0 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.m-cihaz { background: var(--panel); border: 1px solid var(--cizgi); border-radius: 18px; padding: 14px; min-width: 0; }
.m-cihaz-bas { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.m-cihaz-bas .simge { width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--soluk); flex: none; }
.m-cihaz-bas b { font-size: 15px; display: block; }
.m-durum { font-size: 12px; color: var(--yesil-metin); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.m-durum::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-durum.kapali { color: var(--soluk); }
.m-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-izgara > button { display: block; width: 100%; text-align: left; min-width: 0; }

.m-resim { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1b1922; }
.m-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-resim .yok { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.m-resim::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.m-resim span { position: absolute; left: 9px; right: 9px; bottom: 7px; z-index: 1; color: #fff; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-resim.secili { outline: 3px solid var(--mor); outline-offset: -3px; }

.m-bolum { font-size: 12px; font-weight: 700; color: var(--soluk); letter-spacing: .06em; text-transform: uppercase; margin: 6px 22px 10px; }
.m-bilgi-kart { margin: 0 14px 14px; border-radius: 18px; padding: 18px; background: var(--panel); border: 1px solid var(--cizgi); display: flex; gap: 14px; align-items: center; }
.m-bilgi-kart .kutu { width: 56px; height: 56px; border-radius: 14px; background: var(--mor-zemin); color: var(--mor); display: grid; place-items: center; flex: none; }
.m-bilgi-kart b { display: block; font-size: 15px; margin-bottom: 3px; }
.m-bilgi-kart small { color: var(--soluk); font-size: 13px; line-height: 1.45; display: block; }
.m-bos-ipucu { text-align: center; color: var(--soluk); padding: 22px 30px 26px; font-size: 13.5px; line-height: 1.5; }

/* Kamera ekranı */
.m-kamera { display: grid; grid-template-columns: minmax(0, 1fr); }
.m-kamera-bas { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.m-kamera-bas h2 { font-size: 17px; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kamera-bas button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.m-kamera-bas button:hover { background: var(--panel-3); }
.m-video { position: relative; aspect-ratio: 16/9; background: var(--video); overflow: hidden; touch-action: pan-y; }
.m-video video, .m-video img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.m-video img.poster { filter: brightness(.75); }
.m-video .rozetler { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.m-rozet-v { background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }
.m-rozet-v i { width: 7px; height: 7px; border-radius: 50%; background: var(--m-kirmizi); }
.m-rozet-v.kayit i { background: var(--m-sari); }
.m-video .osd { position: absolute; right: 10px; top: 10px; z-index: 2; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.m-video .katman { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; padding: 16px; }
.m-video .katman .hata { display: grid; gap: 12px; justify-items: center; max-width: 320px; line-height: 1.45; }
.m-video .katman .hata button { background: #fff; color: #1c1924; border-radius: 20px; height: 38px; padding: 0 18px; font-weight: 700; }
.m-donen { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: m-don .8s linear infinite; margin: 0 auto 8px; }
@keyframes m-don { to { transform: rotate(360deg); } }
.m-video:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.m-video .tam-kapat { display: none; }
.m-video:fullscreen .tam-kapat, .m-video.uyg-tam .tam-kapat { display: grid; position: absolute; right: 14px; bottom: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; place-items: center; }
/* Mobil uygulamada tam ekran (yerel taraf: sistem çubukları gizli, telefon yatay) */
.m-video.uyg-tam { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
body.uyg-tam-acik { overflow: hidden; }

.m-arac { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel-2); border-bottom: 1px solid var(--cizgi); }
.m-arac button { height: 48px; display: grid; place-items: center; color: var(--metin); font-weight: 800; font-size: 13px; }
.m-arac button:hover { background: var(--panel-3); }
.m-arac button.acik { color: var(--mor); }
.m-arac button.kirmizi { color: var(--m-kirmizi); }
.m-arac button:disabled { opacity: .35; cursor: default; }
.m-islemler { display: flex; gap: 10px; padding: 14px; align-items: center; }
.m-hap { height: 48px; border-radius: 24px; background: var(--panel); border: 1px solid var(--cizgi); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14.5px; padding: 0 18px; box-shadow: 0 2px 8px rgba(40,25,70,.06); }
.m-app .m-hap.ana { background: var(--mor); border-color: var(--mor); color: #fff; flex: 1; }
.m-app .m-hap.canli { background: var(--panel); color: var(--metin); border-color: var(--cizgi); flex: 1; }
.m-hap.canli i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-kirmizi); }

.m-kayit-alan { border-top: 8px solid var(--panel-3); padding-top: 6px; background: var(--panel); }
.m-tarih-satir { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 10px; }
.m-tarih-satir .ok { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--soluk); }
.m-tarih-satir .ok:disabled { opacity: .3; cursor: default; }
.m-tarih-dugme { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; height: 42px; padding: 0 14px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.m-tarih-dugme:hover { background: var(--panel-2); }
.m-tarih-dugme svg { color: var(--mor); }
.m-serit { position: relative; height: 88px; background: var(--panel); border-block: 1px solid var(--cizgi); touch-action: none; cursor: grab; user-select: none; margin-top: 6px; }
.m-serit:active { cursor: grabbing; }
.m-serit canvas { width: 100%; height: 100%; display: block; }
.m-serit-alt { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; gap: 10px; }
.m-zaman-etiket { background: var(--panel-2); border-radius: 20px; padding: 7px 16px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; }
.m-yakinlik { display: flex; gap: 6px; }
.m-yakinlik button { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--soluk); }
.m-renkler { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 14px 16px; font-size: 11.5px; color: var(--soluk); }
.m-renkler span { display: inline-flex; align-items: center; gap: 5px; }
.m-renkler i { width: 12px; height: 7px; border-radius: 2px; }
.m-diger { padding: 6px 0 16px; border-top: 8px solid var(--panel-3); background: var(--panel); }
.m-serit-liste { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.m-serit-liste > button { flex: none; width: 136px; }

/* Bildirimler / Ben */
.m-sayfa-bas { font-size: 24px; font-weight: 800; margin: 16px 20px 12px; }
.m-gun-baslik { font-size: 12px; font-weight: 700; color: var(--soluk); padding: 14px 18px 6px; text-transform: uppercase; letter-spacing: .06em; }
.m-olay { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--cizgi); text-align: left; width: 100%; background: var(--panel); }
.m-olay:hover { background: var(--panel-2); }
.m-olay .tur { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.m-olay .metin { flex: 1; min-width: 0; }
.m-olay b { display: block; font-size: 14px; margin-bottom: 2px; }
.m-olay small { color: var(--soluk); font-size: 12.5px; }
.m-profil { display: flex; gap: 14px; align-items: center; padding: 6px 20px 20px; }
.m-profil .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--mor); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.m-grup-baslik { font-size: 12px; font-weight: 700; color: var(--soluk); margin: 0 22px 8px; text-transform: uppercase; letter-spacing: .06em; }
.m-grup { margin: 0 14px 18px; border: 1px solid var(--cizgi); border-radius: 16px; overflow: hidden; background: var(--panel); max-width: 640px; }
.m-satir { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--cizgi); width: 100%; text-align: left; }
.m-grup > :last-child { border-bottom: 0; }
button.m-satir:hover { background: var(--panel-2); }
.m-satir .metin { flex: 1; min-width: 0; }
.m-satir b { font-size: 14.5px; display: block; font-weight: 600; }
.m-satir small { font-size: 12.5px; color: var(--soluk); }
.m-cip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 10px; flex: none; }
.m-cip.aktif { background: var(--mor-zemin); color: var(--mor); }
.m-cip.yok { background: var(--panel-3); color: var(--soluk); }

.m-satir-simge { width: 36px; height: 36px; border-radius: 10px; background: var(--mor-zemin); color: var(--mor); display: grid; place-items: center; flex: none; }
.m-satir-simge svg.i { width: 19px; height: 19px; }
.m-satir > svg.i:last-child { color: var(--cok-soluk); width: 18px; height: 18px; }
.m-satir.tehlike, .m-satir.tehlike b { color: var(--m-kirmizi); }
.m-satir.tehlike .m-satir-simge { background: var(--m-kirmizi-zemin); color: var(--m-kirmizi); }

/* Ana sayfa: renkli üst kart, özet kutuları, hızlı işlemler */
.m-hero { margin: 12px 14px 14px; max-width: 860px; border-radius: 22px; padding: 16px 16px 14px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #b06ad9 0%, rgba(176,106,217,0) 55%), linear-gradient(135deg, #5b2d91 0%, #3f2470 60%, #2c1a52 100%);
  box-shadow: 0 14px 34px rgba(70,35,120,.28); }
.m-hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255,255,255,.06); pointer-events: none; }
.m-hero-ust { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.m-hero .ad { font-size: 19px; font-weight: 800; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hero .ad small { display: block; font-size: 13px; font-weight: 500; opacity: .8; }
.m-hero .m-yuvarlak { background: rgba(255,255,255,.16); color: #fff; }
.m-hero-ist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; min-height: 62px; }
.m-hero-kutu { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 10px 9px; backdrop-filter: blur(4px); min-width: 0; }
.m-hero-kutu b { display: block; font-size: 20px; font-weight: 800; }
.m-hero-kutu small { display: block; font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hero-kutu.iyi b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ee39a; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(94,227,154,.25); }
.m-hero-kutu.dikkat b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffc857; margin-right: 6px; vertical-align: middle; }
.m-hizli-satir { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 14px 16px; max-width: 860px; }
.m-hizli { display: grid; justify-items: center; gap: 7px; padding: 12px 4px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--cizgi); font-size: 12.5px; font-weight: 700; color: var(--metin); }
.m-hizli span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--r); box-shadow: 0 6px 14px color-mix(in srgb, var(--r) 35%, transparent); }
.m-hizli span svg.i { width: 22px; height: 22px; }
.m-hizli:hover { border-color: color-mix(in srgb, var(--r) 45%, var(--cizgi)); }
.m-filtre { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.m-filtre button { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--cizgi); font-size: 13px; font-weight: 600; color: var(--soluk); }
.m-filtre button.etkin { background: var(--mor); border-color: var(--mor); color: #fff; }
.m-daha { display: block; margin: 14px auto 0; padding: 10px 20px; }
@media (min-width: 900px) { .m-hero, .m-hizli-satir { margin-left: 22px; } }

/* Uygulama içi bildirim kutuları (açık tema): koyu zemin + koyu yazı okunmuyordu */
body.acik-tema .bildirim { background: #fff; color: #1d1530; border: 1px solid var(--cizgi); border-left: 4px solid var(--m-yesil, #1f9d63); box-shadow: 0 10px 30px rgba(40,25,70,.18); font-weight: 500; }
body.acik-tema .bildirim.hata, body.acik-tema .bildirim.alarm { background: #fff; color: #1d1530; border-color: #f3c7cd; border-left: 4px solid #e0435a; }
body.acik-tema .bildirim.hata .ikon, body.acik-tema .bildirim.alarm .ikon { color: #e0435a; }
body.acik-tema .bildirim.basari .ikon { color: #1f9d63; }
@media (max-width: 899px) {
  body.acik-tema #bildirimler { top: calc(12px + env(safe-area-inset-top)); bottom: auto; left: 12px; right: 12px; max-width: none; }
  body.acik-tema .bildirim { max-width: none; }
}

/* GÜVSAŞ logosu */
.m-marka-logo { display: inline-grid; flex: none; width: 36px; height: 36px; }
.m-marka-logo svg { width: 100%; height: 100%; display: block; }
.m-marka-logo.beyaz-halka { width: 46px; height: 46px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(20,8,45,.35); }
.m-destek-bas .m-marka-logo.beyaz-halka { width: 44px; height: 44px; }
.m-hero-filigran { position: absolute; right: -46px; top: -30px; width: 210px; height: 210px; opacity: .13; transform: rotate(-12deg); pointer-events: none; filter: saturate(0) brightness(2.4); }
.m-hero::after { display: none; }
.m-hero-marka { font-weight: 900; font-size: 20px; letter-spacing: .14em; line-height: 1.05; }
.m-hero-marka small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #ecd18a; margin-top: 3px; }
.m-hero-selam { position: relative; z-index: 1; margin-top: 16px; font-size: 19px; font-weight: 800; }
.m-hero-selam small { display: block; font-size: 13px; font-weight: 500; opacity: .8; }
.m-hero { border-bottom: 3px solid #DDB13F; }
.m-kamera-logo { width: 26px; height: 26px; margin-right: 2px; }
.m-marka .m-marka-logo { width: 32px; height: 32px; }

/* Ana sayfa alt kısmı */
.m-ana-alt { margin: 18px 0 8px; }
.m-bolum-bas { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 8px; max-width: 840px; }
.m-bolum-bas span { font-size: 12px; font-weight: 700; color: var(--soluk); letter-spacing: .06em; text-transform: uppercase; }
.m-bolum-bas button { display: flex; align-items: center; gap: 2px; color: var(--mor); font-weight: 700; font-size: 13px; }
.m-bolum-bas button svg.i { width: 16px; height: 16px; }
.m-son-olaylar { margin: 0 14px 16px; max-width: 860px; overflow: hidden; }
.m-son-olaylar .m-olay:last-child { border-bottom: 0; }
.m-alt-bilgi { display: flex; align-items: center; gap: 12px; margin: 8px 14px 18px; max-width: 860px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #fbf6ea, #f3ecfb); border: 1px solid #eadfc4; }
.m-alt-bilgi > div { flex: 1; min-width: 0; }
.m-alt-bilgi b { display: block; font-size: 14px; color: #3f2470; }
.m-alt-bilgi small { display: block; font-size: 12px; color: #7a6a4a; margin-top: 2px; }
.m-alt-bilgi a { width: 40px; height: 40px; border-radius: 50%; background: #6c429c; color: #fff; display: grid; place-items: center; flex: none; }
.m-alt-bilgi a svg.i { width: 19px; height: 19px; }
@media (min-width: 900px) { .m-son-olaylar, .m-alt-bilgi { margin-left: 22px; } .m-bolum-bas { margin-left: 26px; } }

/* Alarm ayarları sayfası */
.m-ayar-satir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--cizgi); cursor: pointer; }
.m-ayar-satir:last-of-type { border-bottom: 0; }
.m-ayar-satir.dikey { flex-direction: column; align-items: stretch; cursor: default; }
.m-ayar-satir .metin { flex: 1; min-width: 0; }
.m-ayar-satir b { display: block; font-size: 14.5px; }
.m-ayar-satir small { display: block; color: var(--soluk); font-size: 12.5px; margin-top: 2px; }
.m-anahtar { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--panel-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.m-anahtar::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.m-anahtar:checked { background: var(--mor); }
.m-anahtar:checked::after { transform: translateX(18px); }
.m-anahtar:disabled { opacity: .5; }
.m-kaydirici { width: 100%; accent-color: var(--mor); }
.m-sayfa-alt { max-height: 88vh; overflow-y: auto; }
.m-kucuk-dugme { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--mor-zemin) !important; color: var(--mor) !important; }
.m-kucuk-dugme.tehlike { background: rgba(220,50,50,.1) !important; color: #c23030 !important; margin-top: 0; flex: none; }
.m-kucuk-dugme:disabled { opacity: .5; }
.m-ayar-git { width: 100%; text-align: left; font: inherit; color: inherit; }
.m-ayar-git svg.i { width: 18px; height: 18px; color: var(--soluk); }
/* Alan / çizgi çizimi */
.m-cizim { max-width: 640px; }
.m-cizim-sahne { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.m-cizim-resim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.m-cizim-yok { position: absolute; inset: 0; display: grid; place-items: center; color: #bbb; font-size: 13px; padding: 16px; text-align: center; }
.m-cizim-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.m-cizim-svg .alan { fill: rgba(255,59,48,.28); stroke: #ff3b30; stroke-width: 5; vector-effect: non-scaling-stroke; }
.m-cizim-svg .cizgi { fill: none; stroke: #ffcc00; stroke-width: 4; vector-effect: non-scaling-stroke; }
.m-cizim-svg .nokta { fill: #fff; stroke: #ff3b30; stroke-width: 3; vector-effect: non-scaling-stroke; }
.m-cizim-svg .harf { fill: #fff; font-size: 52px; font-weight: 800; paint-order: stroke; stroke: #000; stroke-width: 6px; }
.m-cizim-ipucu { font-size: 13px; color: var(--soluk); margin: 8px 2px; min-height: 1.4em; }
.m-cizim-araclar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.m-cizim-araclar .m-kucuk-dugme { margin-top: 0; }
.m-cizim-deger { color: var(--mor); font-variant-numeric: tabular-nums; }
.m-hedef { margin: 4px 0 6px; }
.m-hedef b { display: block; font-size: 14.5px; }
.m-hedef small { display: block; color: var(--soluk); font-size: 12.5px; margin: 2px 0 8px; }
.m-hedef-secim { display: flex; gap: 8px; }
.m-hedef-cip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: var(--panel-2); font-weight: 700; cursor: pointer; }
.m-hedef-cip:has(input:checked) { background: var(--mor-zemin); color: var(--mor); box-shadow: inset 0 0 0 1.5px var(--mor); }
/* Yüz listesi */
.m-yuz-form { background: var(--panel-2); border-radius: 14px; padding: 12px; }
.m-yuz-adim { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; margin: 2px 2px 8px; }
.m-yuz-adim i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--mor); color: #fff; display: grid; place-items: center; font-size: 12px; }
.m-yuz-sec { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--panel) !important;
  border: 2px dashed var(--mor) !important; color: var(--metin); text-align: left; font: inherit; cursor: pointer; }
.m-yuz-sec:hover { background: var(--mor-zemin) !important; }
.m-yuz-sec-simge { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--mor-zemin); color: var(--mor); display: grid; place-items: center; }
.m-yuz-sec-simge svg.i { width: 26px; height: 26px; }
.m-yuz-sec-yazi b { display: block; font-size: 15px; color: var(--mor); }
.m-yuz-sec-yazi small { display: block; color: var(--soluk); font-size: 12.5px; margin-top: 2px; }
.m-yuz-onizleme { width: 72px; height: 72px; flex: none; border-radius: 12px; object-fit: cover; }
.m-dugme-ana:disabled { opacity: .45; cursor: not-allowed; }
.m-onay { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin: 0 2px 12px; cursor: pointer; }
.m-onay-kutu { width: 20px; height: 20px; flex: none; accent-color: var(--mor); margin-top: 1px; }

/* Destek kartı (Ben) ve "alarm sistemi yok" kartı */
.m-destek { margin: 0 14px 18px; max-width: 640px; border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(145deg, #6c429c, #4a2b70); box-shadow: 0 10px 28px rgba(80,45,130,.25); }
.m-destek-bas { display: flex; gap: 12px; align-items: center; }
.m-destek-bas b { display: block; font-size: 16px; }
.m-destek-bas small { display: block; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.m-destek > p { margin: 14px 0; font-size: 13.5px; line-height: 1.5; opacity: .9; }
.m-iletisim-satir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-iletisim { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: inherit; background: rgba(255,255,255,.14); }
.m-iletisim:hover { background: rgba(255,255,255,.22); }
.m-iletisim.ana { background: #fff; color: var(--mor); }
.m-iletisim svg.i { width: 22px; height: 22px; }
.m-web { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.16);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.m-web svg.i:last-child { margin-left: auto; width: 18px; height: 18px; opacity: .7; }
.m-surum { text-align: center; color: var(--cok-soluk); font-size: 12px; margin: 4px 0 20px; }
.m-bos-kart { margin: 6px 14px 18px; max-width: 520px; background: var(--panel); border: 1px solid var(--cizgi); border-radius: 20px; padding: 26px 20px 20px; text-align: center; }
.m-bos-kart .simge { width: 64px; height: 64px; border-radius: 50%; background: var(--mor-zemin); color: var(--mor); display: grid; place-items: center; margin: 0 auto 14px; }
.m-bos-kart .simge svg.i { width: 30px; height: 30px; }
.m-bos-kart h3 { margin: 0 0 8px; font-size: 18px; text-wrap: balance; }
.m-bos-kart p { color: var(--soluk); margin: 0 0 18px; line-height: 1.5; font-size: 14px; }
.m-bos-kart .m-iletisim { background: var(--panel-2); color: var(--metin); }
.m-bos-kart .m-iletisim.ana { background: var(--mor); color: #fff; }

/* Alttan açılan sayfa ve uyarı */
.m-ortu { position: fixed; inset: 0; background: rgba(20,15,30,.42); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.m-ortu.orta { align-items: center; padding: 24px; }
.m-sayfa-alt { background: var(--panel); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 10px 18px max(24px, env(safe-area-inset-bottom)); animation: m-yuksel .2s; }
.m-sayfa-alt .tutamac { width: 40px; height: 5px; border-radius: 3px; background: var(--cizgi); margin: 0 auto 12px; }
@keyframes m-yuksel { from { transform: translateY(30px); opacity: 0; } }
.m-takvim-bas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.m-takvim-bas b { font-size: 16px; }
.m-takvim-bas button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.m-takvim-bas button:disabled { opacity: .3; cursor: default; }
.m-takvim { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.m-takvim .gun-ad { font-size: 11px; font-weight: 700; color: var(--cok-soluk); padding: 4px 0; }
.m-takvim button { height: 44px; border-radius: 12px; font-weight: 600; font-size: 14px; position: relative; font-variant-numeric: tabular-nums; }
.m-takvim button:hover:not(:disabled) { background: var(--panel-2); }
.m-takvim button.var::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--mor); }
.m-takvim button:disabled { color: var(--cok-soluk); cursor: default; }
.m-takvim button.bugun { box-shadow: inset 0 0 0 1.5px var(--mor); }
.m-app .m-takvim button.secili, .m-takvim button.secili { background: var(--mor); color: #fff; }
.m-takvim button.secili::after { background: #fff; }
.m-takvim-not { font-size: 12px; color: var(--soluk); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.m-takvim-not i { width: 6px; height: 6px; border-radius: 50%; background: var(--mor); display: inline-block; }
.m-uyari { background: var(--panel); border-radius: 22px; padding: 26px 22px 20px; text-align: center; width: 100%; max-width: 380px; animation: m-yuksel .2s; }
.m-uyari .simge { width: 60px; height: 60px; border-radius: 50%; background: var(--mor-zemin); color: var(--mor); display: grid; place-items: center; margin: 0 auto 14px; }
.m-uyari .simge svg { width: 28px; height: 28px; }
.m-uyari h3 { margin: 0 0 8px; font-size: 18px; text-wrap: balance; }
.m-uyari p { color: var(--soluk); margin: 0 0 16px; line-height: 1.5; font-size: 14px; }
.m-uyari .tel { display: block; font-weight: 800; font-size: 18px; color: var(--mor); margin-bottom: 18px; text-decoration: none; font-variant-numeric: tabular-nums; }
.m-dugme-ana { width: 100%; height: 48px; border-radius: 14px; background: var(--mor) !important; color: #fff !important; font-weight: 700; }
.m-dugme-ikinci { width: 100%; height: 46px; border-radius: 14px; background: var(--panel-2) !important; font-weight: 700; margin-top: 8px; }
.m-menu-satir { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 6px; font-weight: 600; font-size: 15px; border-radius: 12px; }
.m-menu-satir:hover { background: var(--panel-2); }
.m-girdi { width: 100%; height: 48px; border: 1px solid var(--cizgi-2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--panel); color: var(--metin); margin: 6px 0 14px; }
.m-girdi:focus { outline: 2px solid var(--mor); border-color: transparent; }

/* Geniş ekran: menü üstte, kamera ekranı iki sütun */
@media (min-width: 900px) {
  .m-ekran { padding-bottom: 32px; }
  .m-menu { position: sticky; top: 0; bottom: auto; order: -1; display: flex; gap: 4px; align-items: center; padding: 10px 24px; border-top: 0; border-bottom: 1px solid var(--cizgi); }
  .m-menu .m-marka { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; margin-right: auto; }
  .m-menu button { display: flex; align-items: center; gap: 8px; font-size: 14px; height: 40px; padding: 0 14px; border-radius: 10px; }
  .m-menu button.etkin { background: var(--mor-zemin); }
  .m-menu .m-rozet { position: static; }
  .m-kamera { grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; padding: 10px 18px; align-items: start; }
  .m-kamera-bas { grid-column: 1 / -1; padding: 4px 0; }
  .m-kamera .m-sol { border-radius: 16px; overflow: hidden; border: 1px solid var(--cizgi); }
  .m-kamera .m-sag { border-radius: 16px; overflow: hidden; border: 1px solid var(--cizgi); background: var(--panel); }
  .m-kamera .m-kayit-alan, .m-kamera .m-diger { border-top: 0; }
  .m-serit-liste { flex-wrap: wrap; overflow: visible; }
  .m-serit-liste > button { width: calc(50% - 4px); }
}
@media (max-width: 899px) {
  .m-app.kamera-modu .m-menu { display: none; }
  .m-app.kamera-modu .m-ekran { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .m-app *, .m-ortu * { animation: none !important; } }
