/* Projexa Monitor – mobil PWA */
html, body { height: 100%; }
body.m { background: var(--bg); overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }
.m-app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.m-head { padding: calc(env(safe-area-inset-top) + 12px) 18px 12px; background: var(--grad-deep); color: #e4f2f8; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.m-head::after { content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; background: radial-gradient(closest-side, rgba(23, 184, 196, .3), transparent); }
.m-head h1 { font-size: 19px; color: #fff; margin: 0; }
.m-head .sub { font-size: 12px; color: #8fb3c4; }
.m-head .logo-mark { filter: none; }
.m-body { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(env(safe-area-inset-bottom) + 90px); display: grid; gap: 12px; align-content: start; }
.m-tabs { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); height: 64px; border-radius: 22px; background: var(--topbar); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--border); box-shadow: var(--sh-l); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--muted); text-decoration: none; position: relative; padding: 6px 10px; border-radius: 14px; }
.m-tabs a.is-active { color: var(--primary); background: var(--primary-50); }
.m-tabs .badge-dot { position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--sh-xs); }
.m-card h2 { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.m-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.m-kpi small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.m-kpi b { display: block; font-family: var(--font-display); font-size: 24px; margin-top: 2px; letter-spacing: -.02em; }
.m-hero { display: flex; align-items: center; gap: 16px; }
.m-ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.m-ring span { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.m-item { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.m-item:first-of-type { border-top: 0; }
.m-item .grow { min-width: 0; }
.m-item b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-item small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-section-title { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 0; }
.m-splash { position: fixed; inset: 0; z-index: 100; background: #062330; display: grid; place-items: center; transition: opacity .5s; }
.m-splash.is-out { opacity: 0; pointer-events: none; }
.m-splash .logo-mark { animation: m-pulse 1.6s ease-in-out infinite; }
@keyframes m-pulse { 50% { transform: scale(1.08); } }
.m-ptr { text-align: center; font-size: 12px; color: var(--muted); height: 0; overflow: hidden; transition: height .2s; }
.m-login { min-height: 100%; display: grid; place-items: center; padding: 24px; background: var(--grad-deep); }
.m-login form { width: min(380px, 100%); background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--sh-l); display: grid; gap: 14px; }

.m-body > * { min-width: 0; }
.m-body .alert .grow, .m-item .grow { min-width: 0; }
.m-kpis > * { min-width: 0; }
.m-body .chart { max-width: 100%; }
