/* ATP Lab'a ozgu stiller. Taban: app.css (Mim Bytes Lojman ile ortak), tokenler: tokens.css */

/* marka (logo yerine yazi) */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--mb-font-display); letter-spacing: -.01em; color: var(--mb-text-primary); }
.wordmark i { width: 30px; height: 30px; border-radius: var(--mb-radius-sm); display: grid; place-items: center; background: var(--mb-brand-500); color: #fff; font: 700 11px/1 var(--mb-font-display); font-style: normal; letter-spacing: .04em; }
.login-card .wordmark { display: flex; font-size: 22px; }
.login-card .wordmark i { width: 36px; height: 36px; font-size: 13px; }
.sidebar .brand { justify-content: space-between; }

/* giris gorseli: akan olcum egrileri */
.login-visual svg.waves { position: absolute; left: 0; right: 0; top: 8%; width: 100%; height: 56%; }
.waves path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2400ms var(--mb-ease-standard) forwards; }
.waves .w1 { stroke: var(--mb-accent); opacity: .9; }
.waves .w2 { stroke: var(--mb-accent-erp); opacity: .7; animation-delay: 300ms; }
.waves .th { stroke: var(--mb-warning); stroke-width: 1; stroke-dasharray: 6 8; stroke-dashoffset: 0; opacity: .5; animation: none; }
.waves text { font: 500 12px var(--mb-font-mono); fill: var(--mb-text-muted); }
.waves circle { fill: var(--mb-accent); animation: pulse 2s ease-in-out infinite; color: var(--mb-accent); }

.badge svg { width: 13px; height: 13px; flex: none; }
code { font-family: var(--mb-font-mono); font-size: .9em; padding: 1px 6px; border-radius: 4px; background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); }

/* pano: anlik degerler */
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mb-space-4); }
@media (max-width: 760px) { .now-grid { grid-template-columns: 1fr; } }
.tile { position: relative; overflow: hidden; background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); border-radius: var(--mb-radius-lg); padding: 22px 24px 20px; transition: border-color var(--mb-dur-base), background-color var(--mb-dur-base); }
.tile::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--mb-accent)); }
.tile.alarm { border-color: var(--mb-danger-border); background: var(--mb-danger-subtle); --c: var(--mb-danger); }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile-top .ti { width: 34px; height: 34px; border-radius: var(--mb-radius-md); display: grid; place-items: center; background: var(--mb-bg-elevated); border: 1px solid var(--mb-border-default); color: var(--c, var(--mb-accent-text)); flex: none; }
.tile-top .ti svg { width: 18px; height: 18px; }
.tile-top .lbl { font-weight: 600; font-size: 15px; color: var(--mb-text-secondary); }
.tile-top .badge { margin-left: auto; }
.big { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.big b { font: 600 clamp(52px, 7vw, 76px)/1 var(--mb-font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big small { font: 500 22px/1 var(--mb-font-mono); color: var(--mb-text-muted); }
.tile.stale .big b { color: var(--mb-text-disabled); }
.range { position: relative; height: 8px; margin: 22px 0 10px; border-radius: 4px; background: var(--mb-bg-sunken); border: 1px solid var(--mb-border-subtle); }
.range .ok { position: absolute; top: -1px; bottom: -1px; border-radius: 4px; background: var(--mb-success-subtle); border: 1px solid var(--mb-success-border); }
.range .mark { position: absolute; top: -6px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--mb-text-primary); box-shadow: 0 0 0 3px var(--mb-bg-inset); transition: left var(--mb-dur-reveal) var(--mb-ease-emphasis); }
.tile.alarm .range .mark { background: var(--mb-danger); box-shadow: 0 0 0 3px transparent; }
.esik { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mb-text-muted); flex-wrap: wrap; }
.esik b { font: 600 14px var(--mb-font-mono); color: var(--mb-text-primary); margin-left: 6px; }
.now-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: var(--mb-space-4); font-size: 13px; color: var(--mb-text-muted); }
.now-foot a { margin-left: auto; font-weight: 600; }

/* cizgi grafik */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mb-space-6); }
@media (max-width: 1100px) { .charts { grid-template-columns: 1fr; } }
.lchart { width: 100%; height: auto; display: block; }
.lchart .gl { stroke: var(--mb-chart-grid); }
.lchart .ax { font: 500 11px var(--mb-font-mono); fill: var(--mb-chart-axis); }
.lchart .th { stroke: var(--mb-warning); stroke-width: 1; stroke-dasharray: 5 5; opacity: .8; }
.lchart .thl { font: 500 10px var(--mb-font-mono); fill: var(--mb-warning); }
.lchart .band { fill: var(--c); opacity: .13; }
.lchart .ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lchart .pt { fill: var(--mb-bg-elevated); stroke: var(--c); stroke-width: 1.6; }
.chart-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mb-text-secondary); margin-bottom: 8px; }
.chart-title i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* tablo yardimcilari */
td.bad { color: var(--mb-danger); font-weight: 600; }
td.dt { white-space: nowrap; }
tr.elle td:first-child { box-shadow: inset 3px 0 0 var(--mb-warning); }
.tbl-note { font-size: 13px; color: var(--mb-text-muted); }
.table-wrap.tall { max-height: 68vh; overflow: auto; }

/* ayar kartlari */
.grid-eq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mb-space-6); align-items: start; }
@media (max-width: 1000px) { .grid-eq { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: var(--mb-space-5); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 180px; }
.switch-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; border-radius: var(--mb-radius-md); background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); }
.switch-row b { display: block; font-size: 14px; }
.switch-row span { font-size: 12px; color: var(--mb-text-muted); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--mb-radius-sm); border-left: 3px solid var(--mb-warning); background: var(--mb-warning-subtle); color: var(--mb-text-secondary); font-size: 13px; }
.note svg { width: 18px; height: 18px; flex: none; color: var(--mb-warning); margin-top: 1px; }
.note.info { border-left-color: var(--mb-accent); background: var(--mb-accent-subtle); }
.note.info svg { color: var(--mb-accent-text); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mb-space-3); }
@media (max-width: 640px) { .trio { grid-template-columns: 1fr; } }
.trio > div { padding: 14px 16px; border-radius: var(--mb-radius-md); background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); }
.trio .lbl { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--mb-text-muted); }
.trio .val { font: 600 22px/1.3 var(--mb-font-mono); margin-top: 4px; }
.trio .val small { font-size: 13px; color: var(--mb-text-muted); margin-left: 4px; }
.keybox { display: flex; gap: 8px; align-items: center; }
.keybox .input { font-family: var(--mb-font-mono); font-size: 13px; }
h4.sub { font-size: 14px; font-weight: 600; color: var(--mb-text-secondary); margin-bottom: 10px; }
.feed .ic.warn { color: var(--mb-warning); }
.feed .post { font-size: 12px; color: var(--mb-text-muted); margin-top: 2px; }
