/* MOBİL TASARIM (< 768px): kolay kullanım öncelikli. Büyük dokunma alanları, tek sütun, başparmakla ulaşılan alt gezinme. */
body { font-size: 16px; }
h1 { font-size: 24px; }

.btn { min-height: 52px; padding: 0 22px; border-radius: 16px; font-size: 17px; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
input, select, textarea { min-height: 52px; padding: 12px 16px; border-radius: 14px; }
textarea { min-height: 96px; }
.icon-btn { width: 48px; height: 48px; }
.icon-btn:active { background: rgba(62, 42, 29, .08); }
label.field { font-size: 15px; }

/* Gövde */
.shell-mob { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  min-height: calc(60px + var(--safe-t)); padding: var(--safe-t) 8px 0 14px; background: var(--blush-100); border-bottom: 1px solid var(--blush-200);
}
.topbar .brand-logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.topbar .title { flex: 1; font-size: 19px; font-weight: 800; }
.topbar .avatar { width: 40px; height: 40px; font-size: 15px; }
.mob-main { flex: 1; padding: 18px 16px calc(28px + var(--safe-b)); }
.shell-mob.has-nav .mob-main { padding-bottom: calc(96px + var(--safe-b)); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b); box-shadow: 0 -6px 20px rgba(62, 42, 29, .06);
}
.bottomnav a {
  flex: 1; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.bottomnav a .pill { display: grid; place-items: center; width: 56px; height: 32px; border-radius: 16px; }
.bottomnav a[aria-current="page"] { color: var(--berry-dark); }
.bottomnav a[aria-current="page"] .pill { background: var(--blush-100); }

.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { flex: 1; }
.page-head .btn-add { display: none; }  /* mobilde "yeni" düğmesi sağ altta yüzer */
.fab {
  position: fixed; right: 18px; bottom: calc(24px + var(--safe-b)); z-index: 15; width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: var(--berry); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(184, 69, 122, .4);
}
.fab:active { transform: scale(.94); }
.shell-mob.has-nav .fab { bottom: calc(86px + var(--safe-b)); }
.fab .icon { width: 28px; height: 28px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }

/* Ekran seçimi: tek sütun, büyük basılabilir kartlar */
.greeting { margin-bottom: 18px; }
.greeting p { margin-top: 4px; }
.screen-cards { display: flex; flex-direction: column; gap: 14px; }
.screen-card {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 16px 18px; border-radius: 22px; background: var(--surface);
  border: 2px solid var(--line); text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent;
}
.screen-card:active { background: var(--blush-50); border-color: var(--blush-300); }
.screen-card .ico { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--blush-100); color: var(--berry-dark); flex: none; }
.screen-card .ico .icon { width: 30px; height: 30px; }
.screen-card h2 { font-size: 21px; }
.screen-card .chev { margin-left: auto; color: var(--muted); }

/* Hesap listesi: her hesap ayrı bir kart */
.user-head { display: none; }
.user-table { display: flex; flex-direction: column; gap: 10px; }
.group-title { margin: 16px 4px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.user-head + .group-title { margin-top: 0; }
.user-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 14px; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; -webkit-tap-highlight-color: transparent;
}
.user-row:active { background: var(--blush-50); }
.user-row.is-off { opacity: .65; }
.user-row .avatar { width: 48px; height: 48px; font-size: 17px; }
.user-row .who b { display: block; font-size: 17px; }
.user-row .who span { color: var(--muted); font-size: 14px; }
.user-row .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.user-row .col-role, .user-row .col-status { display: none; }
.user-row .chev { margin-left: auto; color: var(--muted); }
.user-row .manage-btn { display: none; }

/* Alttan açılan sayfa */
dialog.sheet {
  width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(62, 42, 29, .25);
}
dialog.sheet[open] { animation: slide-up .22s ease-out; }
@keyframes slide-up { from { transform: translateY(40px); opacity: .5; } }
dialog.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet-head { padding: 8px 8px 4px 22px; }
.sheet-head h2 { font-size: 20px; }
.sheet-body { padding: 8px 22px 18px; }
.sheet-actions { padding: 14px 22px calc(18px + var(--safe-b)); border-top: 1px solid var(--line); }
.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-list .btn { justify-content: flex-start; min-height: 56px; }
#toasts { top: calc(var(--safe-t) + 70px); }

/* Giriş */
.login { min-height: 100dvh; display: flex; flex-direction: column; }
.login-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: calc(36px + var(--safe-t)) 24px 34px;
  background: linear-gradient(180deg, var(--blush-200), var(--blush-100)); border-radius: 0 0 36px 36px;
}
.login-hero img { width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 8px 24px rgba(184, 69, 122, .25); }
.login-hero h1 { margin-top: 10px; font-size: 28px; }
.login-hero p { color: var(--muted); }
.login-hero .deco { display: none; }
.login-panel { flex: 1; padding: 26px 22px calc(28px + var(--safe-b)); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font-size: 20px; }
.login-form .btn { margin-top: 4px; }

.placeholder { text-align: center; padding: 36px 20px; }
.placeholder .ico { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; background: var(--blush-100); color: var(--berry-dark); }
.placeholder .ico .icon { width: 38px; height: 38px; }
.placeholder p { margin-top: 8px; }
.account-grid { display: flex; flex-direction: column; gap: 16px; }

/* Ekran seçimi sayfası (menü yok): üstte logo, ortada büyük kartlar, altta hesap */
.select-page { min-height: 100dvh; display: flex; padding: calc(28px + var(--safe-t)) 18px calc(24px + var(--safe-b)); }
.select-inner { width: 100%; display: flex; flex-direction: column; }
.select-logo { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 8px 22px rgba(184, 69, 122, .22); }
.select-page .greeting { text-align: center; margin-bottom: 22px; }
.select-user { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; }
.select-user b { display: block; line-height: 1.2; }
.select-user span { font-size: 13px; color: var(--muted); }

.shell-mob.has-nav .save-bar.page-bar { bottom: calc(76px + var(--safe-b)); }

/* Kasa'da mutfak başlığı dar ekrana sığsın: güncelleme saati gizlenir, düğme satıra geçebilir */
.pane-head { flex-wrap: wrap; }
.pane-head .small-text { display: none; }
.pane-head .btn { min-height: 40px; padding: 0 14px; }
