/* GİEM Mobil v3 — Tema 1 "Kurumsal"
   Açık zemin, logodaki lacivert (#0B428B) ana renk, logodaki gri-mavi (#8891B1) ikincil.
   Kaynak tasarım: TasarimOnerileri/tema1-kurumsal */

:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --ink: #15223B;
  --muted: #667085;
  --faint: #98A2B3;
  --line: #E3E6EB;
  --line-strong: #D3D8DF;
  --primary: #0B428B;
  --primary-press: #08336D;
  --primary-soft: #E9EFF7;
  --steel: #8891B1;
  --ok: #1D7F55;
  --ok-soft: #E5F3EC;
  --danger: #D23838;
  --danger-press: #B32D2D;
  --danger-soft: #FCEBEB;
  --warn: #B4570F;
  --warn-soft: #FDF1E4;
  --field-bg: #FFFFFF;
  --switch-off: #D0D5DD;
  --toast-bg: #15223B;
  --toast-ink: #FFFFFF;
  --sk-1: #ECEEF2;
  --sk-2: #F5F6F8;
  --tab-ink: #8A93A5;
  --icon-ink: #6B7489;
  --outer: #E7EAEF;
  --press: rgba(21, 34, 59, .06);
  --scrim: rgba(15, 23, 42, .45);
  --shadow-panic: rgba(210, 56, 56, .28);
  --logo-filter: none;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  color-scheme: light;
}

/* Koyu tema (Ayarlar → Koyu Tema). Lacivert kimlik korunur; ana renk koyu zeminde okunacak kadar açılır. */
:root[data-theme="dark"] {
  --bg: #0E1523;
  --surface: #161F31;
  --surface-2: #1B2539;
  --ink: #E6EAF2;
  --muted: #9AA5B8;
  --faint: #6E7A90;
  --line: #263149;
  --line-strong: #34405A;
  --primary: #3F7FD8;
  --primary-press: #3270C6;
  --primary-soft: rgba(63, 127, 216, .16);
  --steel: #8891B1;
  --ok: #3DB57F;
  --ok-soft: rgba(61, 181, 127, .15);
  --danger: #E5534B;
  --danger-press: #CC453E;
  --danger-soft: rgba(229, 83, 75, .16);
  --warn: #E39A50;
  --warn-soft: rgba(227, 154, 80, .15);
  --field-bg: #121A2A;
  --switch-off: #3A465F;
  --toast-bg: #E6EAF2;
  --toast-ink: #0E1523;
  --sk-1: #1B2539;
  --sk-2: #222D44;
  --tab-ink: #7C889D;
  --icon-ink: #9AA5B8;
  --outer: #0A101B;
  --press: rgba(255, 255, 255, .05);
  --scrim: rgba(0, 0, 0, .6);
  --shadow-panic: rgba(229, 83, 75, .35);
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}
.logo-img { filter: var(--logo-filter); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
[v-cloak] { display: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 26px; height: 26px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- iskelet */
#app { min-height: 100%; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page { flex: 1; padding: 8px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px); }
.page.plain { padding-bottom: calc(var(--safe-bottom) + 24px); }

/* Üst çubuk: sekme sayfalarında menü + firma + profil */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 10px;
  background: var(--bg);
}
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); flex: none; }
.icon-btn:active { background: var(--press); }
.firm {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; text-align: left;
}
.firm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm small { color: var(--muted); font-weight: 500; flex: none; }
.firm .ic { margin-left: auto; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* İç sayfa başlığı: geri + başlık */
.pagebar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: calc(var(--safe-top) + 8px) 8px 8px;
  background: var(--bg);
}
.pagebar h1 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagebar .sp { width: 44px; flex: none; }
.page-sub { color: var(--muted); font-size: 14px; margin: -2px 4px 14px; }

/* ---------------------------------------------------------------- düğmeler */
.btn {
  height: 52px; width: 100%; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; transition: background .15s;
}
.btn[disabled] { opacity: .55; cursor: default; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:active { background: var(--primary-press); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:active { background: var(--danger-press); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn.ghost .ic { color: var(--primary); }
.btn.text { height: 44px; color: var(--primary); }
.btn.text.danger-t { color: var(--danger); }
.btn + .btn { margin-top: 10px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.spin.dark { color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- form */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input {
  height: 52px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field-bg);
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
}
.input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.err { border-color: var(--danger); }
.input em { font-style: normal; color: var(--muted); padding-right: 10px; border-right: 1px solid var(--line); }
.input input, .input select { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; background: transparent; height: 100%; }
.input select { appearance: none; -webkit-appearance: none; }
.input .ic { color: var(--muted); }
.input button { color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; }
.field .hint { display: block; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check b { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; background: var(--field-bg); }
.check input:checked + b { background: var(--primary); border-color: var(--primary); }
.check b .ic { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.check input:checked + b .ic { opacity: 1; }
.check input:focus-visible + b { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--switch-off); transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.form-note { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- giriş */
.login { background: var(--surface); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-body { padding: calc(var(--safe-top) + 36px) 24px 0; flex: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.login .logo { height: 92px; display: block; margin: 8px 0 30px -6px; filter: var(--logo-filter); }
.login h1 { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.login .lead { color: var(--muted); margin: 6px 0 26px; }
.login .remember { margin: 4px 0 22px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-btn .ic { color: var(--primary); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.login-foot { padding: 18px 24px calc(var(--safe-bottom) + 24px); border-top: 1px solid var(--line); margin-top: 26px; background: var(--surface-2); }
.login-foot > div { max-width: 432px; margin: 0 auto; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foot-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.foot-link .ic { color: var(--primary); width: 20px; height: 20px; }
.foot-link b { display: block; font-size: 14px; font-weight: 600; }
.foot-link small { display: block; font-size: 12px; color: var(--muted); }
.ver { text-align: center; font-size: 12px; color: var(--faint); margin-top: 16px; }

/* ---------------------------------------------------------------- anasayfa */
.hello { font-size: 22px; font-weight: 700; letter-spacing: -.2px; margin: 4px 4px 14px; }
.hello small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.status { border-radius: 18px; padding: 18px; }
.status-top { display: flex; align-items: center; gap: 14px; }
.status-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.status-ic .ic { width: 26px; height: 26px; }
.status-ic.off { background: var(--danger-soft); color: var(--danger); }
.status-ic.on { background: var(--ok-soft); color: var(--ok); }
.status-ic.unk { background: var(--bg); color: var(--muted); }
.status-top small { color: var(--muted); font-size: 13px; }
.status-top h2 { font-size: 20px; font-weight: 700; }
.status-meta { display: flex; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-meta div { flex: 1; min-width: 0; }
.status-meta div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.status-meta dt { font-size: 12px; color: var(--muted); }
.status-meta dd { font-weight: 600; font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 24px 4px 10px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.quick a:active { background: var(--surface-2); }
.tile-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.quick b { display: block; font-weight: 600; }
.quick small { color: var(--muted); font-size: 13px; }
.news { padding: 14px 16px; display: flex; gap: 14px; width: 100%; text-align: left; }
.news + .news { margin-top: 10px; }
.news time { flex: none; width: 46px; text-align: center; border-right: 1px solid var(--line); padding-right: 12px; color: var(--primary); font-weight: 700; font-size: 20px; line-height: 1.1; }
.news time small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.news h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.news h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.news p { color: var(--muted); font-size: 14px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- listeler */
.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 60px; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
button.row:active, a.row:active { background: var(--surface-2); }
.row .lead-no { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-weight: 600; font-size: 15px; }
.row .main small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.row .side { text-align: right; flex: none; font-size: 13px; color: var(--muted); }
.row .chev { color: var(--faint); }
.call { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.off { background: var(--danger-soft); color: var(--danger); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.group-hd { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 18px 4px 8px; }
.group-hd:first-child { margin-top: 4px; }

/* boş / yükleniyor / hata */
.state { text-align: center; padding: 48px 24px; color: var(--muted); }
.state .ic { width: 40px; height: 40px; color: var(--faint); margin-bottom: 12px; stroke-width: 1.5; }
.state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.state .btn { width: auto; display: inline-flex; padding: 0 20px; height: 44px; margin-top: 16px; }
.skeleton { height: 60px; border-radius: 12px; background: linear-gradient(90deg, var(--sk-1) 25%, var(--sk-2) 50%, var(--sk-1) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.skeleton + .skeleton { margin-top: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- profil */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 12px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.profile-head b { display: block; font-size: 17px; font-weight: 700; }
.profile-head small { color: var(--muted); font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 14px; flex: none; }
.kv dd { font-weight: 600; font-size: 14px; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- alarm / panik */
.big-state { text-align: center; padding: 28px 20px 22px; }
.big-ic { width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 14px; display: grid; place-items: center; }
.big-ic .ic { width: 42px; height: 42px; stroke-width: 1.6; }
.big-ic.off { background: var(--danger-soft); color: var(--danger); }
.big-ic.on { background: var(--ok-soft); color: var(--ok); }
.big-ic.unk { background: var(--bg); color: var(--muted); }
.big-state h2 { font-size: 21px; font-weight: 700; }
.big-state p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.panic-text { padding: 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.panic-text h2 { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.panic-text b { color: var(--ink); }
.panic-btn {
  display: grid; place-items: center; width: 210px; height: 210px; margin: 34px auto 18px; border-radius: 50%;
  background: var(--danger); color: #fff; box-shadow: 0 0 0 14px var(--danger-soft), 0 10px 30px -8px var(--shadow-panic);
  transition: transform .12s;
}
.panic-btn:active { transform: scale(.97); background: var(--danger-press); }
.panic-btn span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.panic-btn .ic { width: 54px; height: 54px; stroke-width: 1.6; }
.panic-note { text-align: center; color: var(--muted); font-size: 13px; }

/* çalışma saatleri */
.day .main b { display: flex; align-items: center; gap: 8px; }
.times { display: flex; gap: 18px; flex: none; text-align: right; }
.times div b { display: block; font-size: 15px; font-weight: 600; }
.times div small { display: block; font-size: 12px; color: var(--muted); }
.times dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-grid .field { margin-bottom: 12px; }

/* logo hikayesi */
.story-img { display: block; width: 100%; border-radius: 12px; background: #fff; }
.story-text { text-align: center; color: var(--muted); font-size: 15px; padding: 18px 8px; }

/* ---------------------------------------------------------------- alt sekme çubuğu */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 6px 6px var(--safe-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--tab-ink); padding-top: 4px; }
.tab.on { color: var(--primary); }
.tab.panic { margin-top: -26px; color: var(--danger); }
.tab.panic span {
  width: 60px; height: 60px; border-radius: 50%; background: var(--danger); color: #fff;
  display: grid; place-items: center; border: 4px solid var(--surface); box-shadow: 0 4px 12px var(--shadow-panic);
}
.tab.panic .ic { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- sol menü */
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(84%, 340px); background: var(--surface); z-index: 31;
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer-head { padding: calc(var(--safe-top) + 34px) 20px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 64px; display: block; margin-bottom: 16px; filter: var(--logo-filter); }
.drawer-head b { display: block; font-size: 17px; font-weight: 700; }
.drawer-head small { color: var(--muted); font-size: 13px; }
.drawer nav { flex: 1; padding: 10px; overflow: auto; }
.drawer nav a { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 12px; border-radius: 10px; font-weight: 500; }
.drawer nav a .ic { color: var(--icon-ink); width: 21px; height: 21px; }
.drawer nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.drawer nav a.on .ic { color: var(--primary); }
.drawer nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 12px; }
.drawer-foot { padding: 14px 20px calc(var(--safe-bottom) + 20px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-foot button { display: flex; align-items: center; gap: 10px; color: var(--danger); font-weight: 600; height: 44px; }
.drawer-foot small { color: var(--faint); font-size: 12px; }

/* ---------------------------------------------------------------- pencereler */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); animation: fade .2s; }
.sheet {
  width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: var(--surface);
  border-radius: 20px 20px 0 0; padding: 8px 20px calc(var(--safe-bottom) + 20px); animation: up .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; text-wrap: balance; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.sheet .list { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.row.sel { background: var(--primary-soft); }
.row.sel .main b { color: var(--primary); }
.dialog-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: var(--scrim); animation: fade .15s; }
.dialog { width: 100%; max-width: 340px; background: var(--surface); border-radius: 18px; padding: 22px 20px 16px; animation: pop .18s; }
.dialog h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.dialog p { color: var(--muted); font-size: 15px; white-space: pre-line; }
.dialog .acts { display: flex; gap: 10px; margin-top: 20px; }
.dialog .acts .btn { height: 46px; margin: 0; font-size: 15px; }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); z-index: 60;
  max-width: 440px; margin: 0 auto; padding: 13px 16px; border-radius: 12px;
  background: var(--toast-bg); color: var(--toast-ink); font-size: 14px; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }
.offline { position: fixed; top: calc(var(--safe-top) + 8px); left: 16px; right: 16px; z-index: 55; max-width: 440px; margin: 0 auto; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { height: 92px; filter: var(--logo-filter); }
.ann-img { width: 100%; border-radius: 12px; margin: 10px 0 4px; display: block; }
.ann-body { color: var(--ink); font-size: 15px; white-space: pre-line; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Telefondan geniş ekranda (tablet / masaüstü önizleme) içerik ortada telefon genişliğinde kalır */
@media (min-width: 560px) {
  .screen, .tabbar { max-width: 480px; margin-left: auto; margin-right: auto; }
  .tabbar { left: 0; right: 0; }
  body { background: var(--outer); }
  .screen { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
}
