/* Duyumco — sitedeki panel görselleri (Tasarım 5).
   Sitede görünen her "ekran" bu parçalarla HTML olarak çizilir; görünüş gerçek panelle aynıdır (panel/css/panel.css).
   Ekran görüntüsü, fotoğraf, 3B çizim kullanılmaz. Bütün sınıflar m- ile başlar; yazılar gerçekçi Türkçe örnek veridir. */

.m { font-size: 13px; line-height: 1.4; letter-spacing: -0.008em; color: var(--ink); text-align: left; }
/* Eşit genişlikli rakam yalnızca sayı alanlarında: Inter'de tabular-nums kısa çizgiyi de genişletir (H-00042 → "H - 00042") */
.m-kpi strong, .m-row__v, .m-time, .m-kv b, .m-nav__n { font-variant-numeric: tabular-nums; }
.m svg { width: 16px; height: 16px; flex: none; }

/* Pencere: solda tam boy lacivert yan menü, panel zemini üstünde beyaz kartlar */
.m-win { background: var(--bg-panel); border-radius: 24px; box-shadow: var(--sh-3); padding: 0; display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 0; overflow: hidden; }
.m-win > .m-main { padding: 14px; }
.m-win--bare { padding: 12px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.m-win--flat { box-shadow: 0 0 0 1px var(--line); }

/* Yan menü */
.m-side { background: radial-gradient(130% 46% at 0% 0%, #1b478f 0%, rgba(27, 71, 143, 0) 70%), linear-gradient(180deg, #0d2249 0%, #081631 100%); color: #fff; padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
/* Logo: resmî logo oranı (chrome.css › Logo ile aynı kural, F = 19px) */
.m-brand { display: block; padding: 2px 8px 12px; font-family: var(--font-brand); font-size: 19px; line-height: 1; font-weight: 420; letter-spacing: -0.027em; font-variation-settings: 'opsz' 44; white-space: nowrap; }
.m-brand svg { display: inline-block; width: 1.02em; height: 1.02em; margin-right: 0.034em; vertical-align: -0.148em; color: currentColor; }
.m-side .m-brand circle { fill: var(--ice); }
.m-nav__g { padding: 10px 10px 4px; font-size: 11.5px; color: #a8bbde; }
.m-nav__a { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 10px; color: #d0ddf4; font-weight: 500; white-space: nowrap; }
.m-nav__a svg { color: #9bb0d6; }
.m-nav__a.is-on { background: linear-gradient(90deg, #23509f, #1a3d7c); color: #fff; }
.m-nav__a.is-on svg { color: var(--ice); }
.m-nav__n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(166, 202, 255, 0.16); color: #e3edff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.m-nav__a.is-on .m-nav__n { background: #fff; color: var(--navy-850); }

/* Üst çubuk */
.m-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.m-top { display: flex; align-items: center; gap: 8px; }
.m-search { flex: 1; max-width: 320px; height: 38px; padding: 0 14px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.m-sp { flex: 1; }
.m-iconbtn { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); position: relative; flex: none; }
.m-iconbtn i { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--surface); }
.m-pill { height: 38px; padding: 0 14px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.m-new { height: 38px; padding: 0 16px 0 12px; border-radius: 10px; background: var(--blue) var(--grad-btn); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.m-hello { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.m-hello small { display: block; color: var(--muted); font-size: 12.5px; }
.m-hello b { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }

/* Sayı kutuları */
.m-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.m-kpi { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 6px; min-width: 0; }
.m-kpi small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kpi strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.m-kpi span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kpi span b { color: var(--blue); font-weight: 600; }
.m-kpi--blue { background: var(--grad-navy); color: #fff; box-shadow: none; }
.m-kpi--blue small, .m-kpi--blue span { color: var(--on-navy-2); }
/* Sağ üstte yuvarlak simge (paneldeki .stat__i gibi; telefon görünümünde yok) */
.m-kpi { position: relative; }
.m-kpi__i { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); }
.m .m-kpi__i svg { width: 13px; height: 13px; }
.m-kpi--blue .m-kpi__i { background: rgba(166, 202, 255, 0.18); color: #fff; }
.m-kpi:has(.m-kpi__i) small { padding-right: 30px; }

/* Gün dalgası bandı (paneldeki Genel Bakış bandı): selam + sıradaki + günün ses dalgası */
.m-band { display: grid; gap: 10px; padding: 16px 18px 12px; border-radius: 16px; background: var(--grad-navy); color: #fff; }
.m-band__t { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.m-band__t > span:first-child { display: grid; min-width: 0; }
.m-band__t b { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.028em; white-space: nowrap; }
.m-band__t small { font-size: 12.5px; color: var(--on-navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-next { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 14px 6px 6px; border-radius: 11px; background: rgba(166, 202, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(166, 202, 255, 0.2); }
.m-next i { padding: 6px 9px; border-radius: 8px; background: #fff; color: var(--navy-850); font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-next span { display: grid; min-width: 0; line-height: 1.3; }
.m-next small { font-size: 11px; color: var(--on-navy-2); }
.m-next em { font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-dw { display: flex; align-items: center; height: 52px; }
.m-dw i { flex: 1; height: calc(var(--h) * 1%); min-height: 3px; padding: 0 1.5px; }
.m-dw i::before { content: ''; display: block; width: 100%; max-width: 4px; height: 100%; margin: 0 auto; border-radius: 3px; background: #3f6bb6; transition: background 700ms var(--ease); }
.m-dw i.p::before { background: var(--ice); }
.m-dwh { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--on-navy-3); font-variant-numeric: tabular-nums; }

/* Kart */
.m-card { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px; min-width: 0; }
.m-card__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.m-card__h b { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.m-card__h span { font-size: 12px; color: var(--muted); }
.m-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }

/* Liste satırı */
.m-list { display: grid; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; min-width: 0; }
.m-row + .m-row { border-top: 1px solid var(--line); }
.m-row__t { flex: 1; min-width: 0; display: grid; }
.m-row__t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row__t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row__v { font-weight: 600; white-space: nowrap; }
.m-time { min-width: 46px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.m-av { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.m-av--lg { width: 44px; height: 44px; font-size: 15px; }

/* Rozet */
.m-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--soft); flex: none; }
.m-badge--blue { background: var(--blue-100); color: var(--blue-700); }
.m-badge--solid { background: var(--blue); color: #fff; }
.m-badge--deep { background: var(--blue-800); color: #fff; }
.m-badge--warn { background: var(--warn-soft); color: var(--warn); }
.m-badge--danger { background: var(--danger-soft); color: var(--danger); }
.m-badge--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.m-dot--light { background: var(--blue-300); }
.m-dot--gray { background: var(--line-2); }

/* Çubuk grafik: hap çubuklar; yükseklik --h (0–100). Sahne canlıyken aşağıdan büyür. */
.m-bars { display: flex; align-items: end; gap: 8px; height: 120px; }
.m-bar { flex: 1; height: calc(var(--h, 50) * 1%); border-radius: 6px; background: var(--blue); transform-origin: bottom; }
.m-bar--light { background: var(--blue-300); }
.js [data-scene] .m-bar { transform: scaleY(0); transition: transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 200ms); }
.js [data-scene].is-live .m-bar, .no-motion [data-scene] .m-bar, .no-motion .m-bar { transform: none; }
.m-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.m-legend span { display: inline-flex; align-items: center; gap: 6px; }
.m-axis { display: flex; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.m-axis span { flex: 1; text-align: center; }

/* İlerleme çubuğu */
.m-prog { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.m-prog i { display: block; height: 100%; width: calc(var(--p, 50) * 1%); border-radius: inherit; background: var(--blue); transform-origin: left; }
.js [data-scene] .m-prog i { transform: scaleX(0); transition: transform 1100ms var(--ease) 300ms; }
.js [data-scene].is-live .m-prog i, .no-motion [data-scene] .m-prog i, .no-motion .m-prog i { transform: none; }

/* Anahtar–değer */
.m-kv { display: grid; gap: 8px; }
.m-kv div { display: flex; justify-content: space-between; gap: 12px; }
.m-kv span { color: var(--muted); }
.m-kv b { font-weight: 500; text-align: right; }

/* Zaman çizelgesi */
.m-tl { display: grid; gap: 0; }
.m-tl__i { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 14px; position: relative; }
.m-tl__i::before { content: ''; width: 10px; height: 10px; margin: 4px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--blue); z-index: 1; }
.m-tl__i::after { content: ''; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.m-tl__i:last-child { padding-bottom: 0; }
.m-tl__i:last-child::after { display: none; }
.m-tl__i b { font-weight: 500; }
.m-tl__i span { display: block; font-size: 12px; color: var(--muted); }
.m-tl__i time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Mesaj balonu (WhatsApp / SMS hatırlatması) */
.m-chat { display: grid; gap: 8px; }
.m-bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); justify-self: start; }
.m-bubble--out { background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; justify-self: end; }
.m-bubble small { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.m-bubble--out small { color: var(--on-blue-soft); }
.m-bubble small svg { width: 14px; height: 14px; }

/* Küçük tablo */
.m-table { display: grid; }
.m-table > div { display: grid; grid-template-columns: var(--cols, 1.4fr 1fr 1fr auto); gap: 10px; align-items: center; padding: 9px 4px; min-width: 0; }
.m-table > div + div { border-top: 1px solid var(--line); }
.m-table > div:first-child { font-size: 11.5px; color: var(--muted); padding-top: 0; }
.m-table span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-mono { font-feature-settings: 'tnum', 'zero'; letter-spacing: 0; }

/* Sekme hapları */
.m-tabs { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.m-tab { height: 30px; padding: 0 12px; border-radius: 9px; background: var(--surface-2); color: var(--soft); font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.m-tab.is-on { background: var(--navy-800); color: #fff; }

/* Havada duran bildirim kartı (sahnelerin kenarında) */
.m-toast { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-2); white-space: nowrap; }
.m-toast i { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.m-toast i svg { width: 16px; height: 16px; }
.m-toast b { display: block; font-weight: 600; }
.m-toast span { display: block; font-size: 12px; color: var(--muted); }
.m-toast--deep i { background: var(--blue-800); }

/* Telefon: panelin telefondaki hâli (alt sekme çubuğu, ortada mavi "Yeni"); açık renk çerçeve */
.m-phone { width: 300px; border-radius: 40px; background: var(--surface-3); padding: 8px; box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-3); }
.m-phone__in { border-radius: 33px; background: var(--bg-panel); box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 600px; }
.m-phone__top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.m-phone__body { padding: 4px 12px 12px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.m-phone .m-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 8px 8px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.m-tabbar span { display: grid; justify-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--muted); }
.m-tabbar span svg { width: 20px; height: 20px; }
.m-tabbar span.is-on { color: var(--blue); }
.m-tabbar .m-fab { width: 46px; height: 46px; margin: -18px auto 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--surface); }

/* ——— Ek: anahtar, onay kutusu, dosya hapı (alt bölümler) ——— */
/* Anahtar: açık hâli .is-on */
.m-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); flex: none; transition: background var(--t-2) var(--ease); }
.m-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(10, 26, 56, 0.22); transition: transform var(--t-2) var(--spring); }
.m-switch.is-on { background: var(--blue); }
.m-switch.is-on::after { transform: translateX(14px); }
/* Onay kutusu: işaretli hâli .is-on */
.m-check { width: 18px; height: 18px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: #fff; display: grid; place-items: center; flex: none; transition: background var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.m-check svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.5); transition: opacity var(--t-1) var(--ease), transform var(--t-2) var(--spring); }
.m-check.is-on { background: var(--blue); box-shadow: none; }
.m-check.is-on svg { opacity: 1; transform: none; }
/* Dosya hapı: tür kutusu + ad + boyut */
.m-file { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); min-width: 0; max-width: 100%; }
.m-file i { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex: none; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0; }
.m-file i.is-blue { background: var(--blue); color: #fff; }
.m-file b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-file span { font-size: 12px; color: var(--muted); white-space: nowrap; }
