/* EsnafCebinde telefon arayüzü (docs/tasarim/telefon/telefon.html, PLAN.md; ürün sahibinin onayı 2026-10-24).
   Uygulamada (Android/iOS) ve 1024 px altındaki sitede açılır; masaüstü değişmez. Yönetim hesabı eski telefon kabuğunda kalır:
   kurallar yalnızca .app-shell--m altında geçerlidir (AppShell). design-system.css'ten sonra yüklenir; belirteçleri oradandır.
   Kabuk: üst çubuk (PhoneTopBar) ve bölüm değiştirme menüsü (AreaSwitchMenu), yüzen alt menü (AppBottomNav), canlı çubuk
   (FoodActiveOrderBar, UstaActiveJobBar), karşılama (PhoneHome) ve Hesabım (AccountHub). Renk: üst çubuk ve alt menü sitenin
   paletinde bölüm renginde (Çarşı ve karşılama lacivert, Yemek koyu kahve, Usta koyu yeşil); içerik açık zeminde. */

/* Karşılamadaki el yazısı slogan (Kaushan Script, SIL Open Font License 1.1; Google Fonts dağıtımından Latin ve Latin-ext alt
   kümeleri). Sitede ve uygulamada aynı dosyadan yüklenir; yalnız sloganın çizildiği sayfada indirilir. */
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/kaushan-script-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/kaushan-script-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.pbar { display: none; }

@media (max-width: 1023.98px) {
  /* ------------------------------------------------------------ Bölüm belirteçleri */
  .app-shell--m {
    --m-bar: var(--carsi-900);
    --m-acc: var(--saffron-400);
    --m-cta: var(--accent-500);
    --m-cta-ink: #241200;
    --m-link: var(--primary-500);
    --m-badge: var(--yemek-ember);
    --m-badge-ink: #fff;
    --m-nav-h: 64px;
    --m-nav-gap: 0px;
    /* Alt menünün kapladığı yükseklik: sayfa altı boşluğu, kaydet şeritleri ve bildirimler bunun üstünde durur. */
    --bottom-nav-height: calc(var(--m-nav-h) + var(--m-nav-gap));
    --topbar-height: 56px;
    /* Üst çubuğun rengi: bölüm rengi; ortak sayfalarda (profil, bildirimler, destek, Hesabım) lacivert (telefon.html → Ortak). */
    --m-top: var(--m-bar);
    /* Ortadaki yükseltilmiş düğme (Ürün ara, Sepetim, Usta çağır) menünün üstüne taşar; menünün hemen üstünde yüzen eylem
       çubukları (sepet, Siparişi ver, talep eylemleri) bu kadar daha yukarıda durur. Yoksa düğmenin üstüne biniyordu (2026-10-28). */
    --m-fab-rise: 0px;
  }
  .app-shell--m:has(.mobile-bottom-nav .action-create) { --m-fab-rise: 26px; }
  .app-shell--m.app-shell--shared { --m-top: var(--carsi-900); }
  .app-shell--m.app-shell--area-yemek {
    --m-bar: #2a1305;
    --m-acc: #ffb59b;
    --m-cta: var(--yemek-ember);
    --m-cta-ink: #fff;
    --m-link: var(--yemek-ember);
    --m-badge: var(--accent-500);
    --m-badge-ink: #241200;
  }
  .app-shell--m.app-shell--area-usta {
    --m-bar: #0c302c;
    --m-acc: var(--mint-400);
    --m-cta: var(--mint-600);
    --m-cta-ink: #fff;
    --m-link: var(--mint-600);
  }
  [data-theme="dark"] .app-shell--m.app-shell--area-usta { --m-link: var(--mint-400); }
  [data-theme="dark"] .app-shell--m { --m-link: var(--primary-300); }
  [data-theme="dark"] .app-shell--m.app-shell--area-yemek { --m-link: #ff9a78; }
  /* design-system.css eski telefon çubuğuna göre .app-shell:has(.topbar .topbar-address-row) ile 108–156 px veriyordu; aynı özgüllükte
     daha sonra yüklenen bu kural telefon çubuğunun gerçek yüksekliğini koyar. */
  .app-shell.app-shell--m.app-shell--topnav { --topbar-height: 56px; }
  .app-shell.app-shell--m.app-shell--topnav:has(.pbar__addr) { --topbar-height: 98px; }

  /* Masaüstü üst çubuğu telefonda yerini PhoneTopBar'a bırakır (bileşenleri çizilmeye devam eder; sayaçlar ortak durumdadır). */
  .app-shell--m .topbar { display: none; }

  /* ------------------------------------------------------------ Üst çubuk */
  .app-shell--m .pbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 960;
    padding-top: var(--safe-top);
    background: var(--m-top);
    color: #eaf1fb;
  }
  .pbar__row { height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; }
  .pbar--title .pbar__row { padding-left: 4px; }
  .pbar--title.pbar--noback .pbar__row { padding-left: 16px; }
  .pbar__brand { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; }
  .pbar__brand .brand-logo__word { height: 24px; width: auto; }
  .pbar__ib {
    width: 40px; height: 40px; flex: none; margin-left: 4px;
    display: grid; place-items: center; position: relative;
    border: 0; border-radius: 50%; padding: 0;
    background: rgba(255, 255, 255, .08); color: inherit; text-decoration: none; cursor: pointer;
    transition: transform .12s ease-out, background-color .15s;
  }
  .pbar__ib:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
  .pbar__ib:active { transform: scale(.94); }
  .pbar__ib .icon { width: 21px; height: 21px; }
  .pbar__back { margin: 0 6px 0 0; background: transparent; }
  .pbar__badge {
    position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--m-badge); color: var(--m-badge-ink); font-size: 11px; font-weight: 700; line-height: 1;
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--m-top); font-variant-numeric: tabular-nums;
  }
  /* Sekme sayfalarında başlığın solundaki bölüm simgesi (Mesajlar, Bildirimler, Tekliflerim). */
  .pbar__mark {
    width: 32px; height: 32px; margin-right: 10px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: var(--m-acc);
  }
  /* Üst çubukta yazılı sayfa eylemi (ör. "Tümü okundu", "Yeni talep"). */
  .pbar__pill {
    height: 36px; margin-left: 6px; padding: 0 12px; border: 0; border-radius: 999px; flex: none;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .12); color: #fff; font: 600 13px/1 var(--font-family); text-decoration: none; cursor: pointer;
  }
  .pbar__pill:hover { background: rgba(255, 255, 255, .18); color: #fff; text-decoration: none; }
  .pbar__pill:disabled { opacity: .5; cursor: default; }
  .pbar__ib:disabled { opacity: .5; cursor: default; }
  .pbar__avatar {
    width: 36px; height: 36px; margin-left: 6px; flex: none; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff;
    font-size: 13px; font-weight: 700; text-decoration: none;
  }
  .pbar__avatar:hover { text-decoration: none; background: rgba(255, 255, 255, .22); }
  .pbar__login {
    height: 44px; margin-left: 6px; padding: 0 16px; border: 0; border-radius: 999px; flex: none;
    background: #fff; color: var(--carsi-900); font: 700 14px/1 var(--font-family); cursor: pointer;
    display: inline-flex; align-items: center; text-decoration: none;
  }
  .pbar__login:hover { text-decoration: none; }
  .pbar__wallet {
    height: 34px; margin-left: 4px; padding: 0 10px; border-radius: 10px; flex: none;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .pbar__wallet:hover { text-decoration: none; color: #fff; }
  .pbar__wallet.is-low { background: rgba(242, 140, 0, .26); color: #ffd48a; }
  .pbar__title {
    flex: 1; min-width: 0; margin: 0; color: #fff;
    font: 700 21px/1.2 var(--font-display); letter-spacing: -0.015em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pbar__title small {
    display: block; font: 400 13px/1.3 var(--font-family); letter-spacing: 0; color: rgba(255, 255, 255, .7);
    overflow: hidden; text-overflow: ellipsis;
  }
  .pbar__search { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 8px 10px 12px; }
  .pbar__search > .icon { position: absolute; left: 24px; top: 13px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
  .pbar__search input {
    flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 40px; border: 0; border-radius: 12px;
    background: #fff; color: #101828; font: 400 16px/1 var(--font-family);
  }
  .pbar__search input:focus { outline: 2px solid var(--m-acc); outline-offset: 1px; }

  /* Yemek'te teslimat adresi: çubuğun altında tek satır ("Teslimat: Ev · Sincan ⌄"). */
  .pbar__addr { padding: 0 12px 2px; }
  .paddr { display: flex; position: relative; min-width: 0; }
  .paddr .topbar-address {
    min-height: 40px; max-width: 100%; padding: 0 4px; gap: 6px;
    border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: rgba(255, 255, 255, .72);
  }
  .paddr .topbar-address:hover { box-shadow: none; }
  .paddr .topbar-address__icon, .paddr .topbar-address__chevron { color: currentColor; }
  .paddr .topbar-address__text { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
  .paddr .topbar-address__label { font-size: 13px; font-weight: 400; color: inherit; flex: none; }
  .paddr .topbar-address__value { font-size: 13px; font-weight: 600; color: #fff; }
  .paddr .topbar-address--empty { border: 0; }
  .paddr .topbar-address--empty .topbar-address__value { color: var(--m-acc); }
  /* Karşılamadaki hap */
  .paddr--pill { margin-top: 12px; }
  .paddr--pill .topbar-address {
    min-height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: #fff;
  }
  .paddr--pill .topbar-address__label { display: none; }
  /* Liste satırın/hapın hemen altında açılır. Ortak kural paneli bu genişlikte position: fixed yapar; orada top: 100% ekran
     yüksekliği demektir ve panel ekranın altına düşüyordu (Yemek çubuğu, karşılama, Usta; 2026-10-26). */
  .paddr .topbar-address__panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: auto; width: min(358px, calc(100vw - 32px)); min-width: 0;
  }

  /* ------------------------------------------------------------ Bölüm değiştirme (üst çubuktan aşağı açılır) */
  .aswitch { flex: 0 1 auto; min-width: 0; margin-right: auto; }
  .aswitch__btn {
    display: inline-flex; align-items: center; gap: 9px; max-width: 100%; height: 44px; padding: 0 12px 0 5px;
    border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer;
    transition: background-color .15s;
  }
  .aswitch__btn:hover, .aswitch__btn.is-open { background: rgba(255, 255, 255, .12); }
  .aswitch__img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
  .aswitch__name { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.015em; white-space: nowrap; }
  .aswitch__chev { color: rgba(255, 255, 255, .7); transition: transform .2s ease-out; }
  .aswitch__btn.is-open .aswitch__chev { transform: rotate(180deg); color: #fff; }
  .aswitch__scrim {
    position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--safe-top) + 56px); z-index: 1;
    background: rgba(6, 10, 18, .5); animation: m-fade .15s ease-out;
  }
  .aswitch__menu {
    position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 56px); z-index: 2;
    padding: 4px 8px 12px; border-radius: 0 0 24px 24px;
    background: var(--m-top); box-shadow: 0 18px 34px rgba(6, 10, 18, .35);
    animation: m-drop .18s ease-out;
  }
  .aswitch__cap { padding: 10px 12px 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .6); }
  .aswitch__row {
    display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 12px; border-radius: 16px;
    color: #fff; text-decoration: none;
  }
  .aswitch__row:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
  .aswitch__row.is-current { background: rgba(255, 255, 255, .1); }
  .aswitch__row img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
  .aswitch__tx { flex: 1; min-width: 0; line-height: 1.3; }
  .aswitch__tx b { display: block; font-size: 17px; font-weight: 600; }
  .aswitch__tx small { font-size: 13px; color: rgba(255, 255, 255, .7); }
  .aswitch__check { color: var(--m-acc); }
  .aswitch__go { color: rgba(255, 255, 255, .55); }
  .aswitch__live, .parea__live {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; flex: none;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .aswitch__live::before, .parea__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-400); }
  .aswitch__live.is-hot, .parea__live.is-hot { background: var(--accent-500); color: #241200; }
  .aswitch__live.is-hot::before, .parea__live.is-hot::before { background: #241200; }

  /* ------------------------------------------------------------ Alt menü (ADR-074): düz, ekranın altına yapışık, temaya uyan zemin;
     bölüm sayfalarında ortada yuvarlak ana düğme (Ürün ara, Sepetim, Usta çağır). Önceki yüzen koyu hap kalktı. */
  .app-shell--m .mobile-bottom-nav {
    left: 0; right: 0; bottom: 0; height: calc(var(--m-nav-h) + var(--safe-bottom)); padding: 0 6px var(--safe-bottom); border-radius: 0;
    background: var(--bg-surface); border: 0; border-top: 1px solid var(--border-color); box-shadow: 0 -6px 18px rgba(13, 21, 36, .06);
    -webkit-backdrop-filter: none; backdrop-filter: none; align-items: center;
  }
  .app-shell--m .mobile-bottom-nav .nav-item {
    height: var(--m-nav-h); gap: 4px; padding-top: 2px;
    color: var(--text-muted); font-size: 11px; letter-spacing: .01em; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .app-shell--m .mobile-bottom-nav .nav-item .icon { width: 23px; height: 23px; position: relative; z-index: 1; }
  .app-shell--m .mobile-bottom-nav .nav-item:hover { color: var(--text-main); }
  .app-shell--m .mobile-bottom-nav .nav-item.active { color: var(--m-link); font-weight: 700; }
  .app-shell--m .mobile-bottom-nav .nav-item .badge-dot {
    top: calc(50% - 24px); left: calc(50% + 5px); z-index: 2; min-width: 16px; height: 16px; padding: 0 4px; font-size: 11px;
    background: var(--accent-500); color: #241200; box-shadow: 0 0 0 2px var(--bg-surface);
  }
  .app-shell--m .mobile-bottom-nav .nav-item.action-create { color: var(--text-main); font-weight: 600; }
  .app-shell--m .mobile-bottom-nav .nav-item.action-create .create-icon-bubble {
    position: relative; width: 54px; height: 54px; margin-top: -30px; border: 0;
    background: var(--m-cta); color: var(--m-cta-ink);
    box-shadow: 0 0 0 5px var(--bg-surface), 0 10px 18px -6px color-mix(in srgb, var(--m-cta) 60%, transparent);
  }
  .app-shell--m .mobile-bottom-nav .nav-item.action-create .create-icon-bubble .icon { width: 25px; height: 25px; color: inherit; }
  /* Yemek sepeti: yuvarlakta adet rozeti, altında tutar (2026-10-31; ayrı "Sepeti gör" çubuğu kalktı). */
  .app-shell--m .mobile-bottom-nav .nav-cart-count {
    position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    display: inline-grid; place-items: center; font: 800 12px/1 var(--font-display); font-variant-numeric: tabular-nums;
    background: #fff; color: var(--m-cta); box-shadow: 0 0 0 2px var(--m-cta), 0 4px 10px rgba(0, 0, 0, .25);
  }
  .app-shell--m .mobile-bottom-nav .nav-item.action-create.has-cart .nav-label {
    font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em;
  }

  /* Akış ekranı (PhoneBar HideNav): adım adım form ve sabit eylemli ayrıntıda alt menü ve canlı kart yok; sayfa kendi eylemini taşır. */
  .app-shell--m.app-shell--flow .mobile-bottom-nav, .app-shell--m.app-shell--flow .live-strips { display: none; }
  .app-shell--m.app-shell--flow { --bottom-nav-height: 0px; }

  /* ------------------------------------------------------------ Canlı çubuk: alt menünün üstünde yüzen beyaz kart */
  .app-shell--m .live-strips {
    position: fixed; left: 12px; right: 12px; z-index: 940;
    bottom: calc(var(--safe-bottom) + var(--m-nav-gap) + var(--m-nav-h) + 30px);
    display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; background: none;
    pointer-events: none;
  }
  .app-shell--m .live-strips > * { pointer-events: auto; }
  .app-shell--m .live-strips .faob, .app-shell--m .live-strips .uajb {
    width: 100%; max-width: none; margin: 0; min-height: 60px; padding: 8px 8px 8px 10px; gap: 12px;
    border: 1px solid var(--border-color); border-radius: 18px;
    background: var(--bg-surface); color: var(--text-main); box-shadow: 0 10px 28px rgba(13, 21, 36, .22);
  }
  .app-shell--m .live-strips .faob__icon, .app-shell--m .live-strips .uajb__icon { flex-basis: 40px; height: 40px; }
  .app-shell--m .live-strips .faob__text b, .app-shell--m .live-strips .uajb__text b { font-size: 15px; font-weight: 600; }
  .app-shell--m .live-strips .faob__text small, .app-shell--m .live-strips .uajb__text small { font-size: 13px; }
  .app-shell--m .live-strips .faob__go, .app-shell--m .live-strips .uajb__go {
    min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--m-bar); color: #fff; font-size: 14px;
  }
  .app-shell--m .live-strips .faob__go .icon, .app-shell--m .live-strips .uajb__go .icon { display: none; }
  /* İki süren iş (sipariş ve usta) tek kartta iki satırdır; üst üste iki kart ekranın üçte birini kaplıyordu. */
  .app-shell--m .live-strips:has(> * + *) {
    gap: 0; overflow: hidden; pointer-events: auto;
    border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface); box-shadow: 0 10px 28px rgba(13, 21, 36, .22);
  }
  .app-shell--m .live-strips:has(> * + *) .faob, .app-shell--m .live-strips:has(> * + *) .uajb {
    min-height: 56px; border: 0; border-radius: 0; box-shadow: none;
  }
  .app-shell--m .live-strips:has(> * + *) > * + * { border-top: 1px solid var(--border-color); }
  /* Kart açıkken sayfanın sonu kartın altında kalmasın; sohbet, tam ekran harita ve kaydet şeridi olan sayfalarda kart çıkmaz. */
  .app-shell--m:has(.live-strips > *) .app-shell__content { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 112px); }
  .app-shell--m:has(.chat-layout, .map-container--full, .sticky-actions) .live-strips { display: none; }

  /* ------------------------------------------------------------ Sayfanın eylem çubuğu (ortak .sticky-actions)
     Her sayfada aynı yerde, ekranın altına sabit (position: fixed): alt menü görünürken menünün ve ortadaki yükseltilmiş düğmenin
     hemen üstünde yüzen kart (sepetin "Siparişi ver" şeridi, usta profilinin "Teklif iste" çubuğu gibi), akış ekranında (alt menü
     yok: Ürün ara ve Usta çağır sihirbazları) ekranın dibinde tam genişlik şerit. Ortak kural önceden yapışkandı (position: sticky)
     ve çubuk yalnız kendi kapsayıcısının (form, kart, sayfa sütunu) içinde kayıyordu: sayfanın sonuna inince 36–182 px yukarı
     kayıp ekranın ortasında duruyor, formun içindeki çubuk alt menünün arkasına giriyor, ortadaki yükseltilmiş düğme de çubuğun
     üstüne biniyordu (ürün sahibi 2026-10-29: "Butonlar kayabiliyor, farklı yerlerde gözükebiliyor";
     docs/denetim/ARAYUZ_DENETIMI_2026-10-29-butonlar.md). Sayfanın sonu ve odaklanan alan çubuğun altında kalmasın diye içerik
     alt boşluğu ve kaydırma payı çubuğun kapladığı yer kadardır: platform-ui.js çubuğun üst kenarından ekranın altına kadarki
     yüksekliği --m-actions-space'e yazar (ölçülemezse çubuk ~96 px sayılır). Çerez kartı, bildirimler (toast) ve tabletteki sohbet
     düğmesi çubuğun üstünde açılır; çubuğu ve ortadaki düğmeyi örtmez. Telefonda gizli kapsayıcıdaki (m-off) çubuk sayılmaz.
     Masaüstü değişmez (design-system.css: akışta ya da uzun formda yüzen kaydet şeridi). */
  .app-shell--m { --m-actions-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--m-fab-rise) + 6px); }
  .app-shell--m.app-shell--flow { --m-actions-bottom: 0px; }
  .app-shell--m .sticky-actions {
    position: fixed; left: 10px; right: 10px; bottom: var(--m-actions-bottom); z-index: 950;
    margin: 0; padding: 10px; border: 1px solid var(--border-color); border-radius: 18px;
    background: var(--bg-surface); box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
  }
  .app-shell--m.app-shell--flow .sticky-actions {
    left: 0; right: 0; padding: 10px 16px calc(12px + var(--safe-bottom));
    border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -6px 20px rgba(13, 21, 36, .08);
  }
  .app-shell.app-shell--m:has(.sticky-actions:not(.m-off *)) .app-shell__content { padding-bottom: calc(var(--m-actions-space, calc(var(--m-actions-bottom) + 96px)) + 16px); }
  html:has(.app-shell--m .sticky-actions:not(.m-off *)) { scroll-padding-bottom: calc(var(--m-actions-space, 200px) + 8px); }
  .app-shell.app-shell--m .toast-container, .app-shell.app-shell--m .cookie { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--m-fab-rise) + 12px); }
  .app-shell.app-shell--m:has(.sticky-actions:not(.m-off *)) .toast-container,
  .app-shell.app-shell--m:has(.sticky-actions:not(.m-off *)) .cookie { bottom: calc(var(--m-actions-space, calc(var(--m-actions-bottom) + 96px)) + 8px); }
  .app-shell.app-shell--m:has(.sticky-actions:not(.m-off *)) .chat-dock--tablet { --dock-bottom: calc(var(--m-actions-space, calc(var(--m-actions-bottom) + 96px)) + 12px); }
  /* Sayfa girişindeki kayarak belirme (.fade-up) dönüşüm (transform) kullanır; dönüşen ata sabit çubuğu canlandırma boyunca kendi
     içine alır: çubuk açılışın ilk ~0,3 sn'sinde içeriğin arasında (ekranın 970–1950 px aşağısında) durup sonra alta atlıyordu
     (firma profili, şube, destek talebi, bildirim ayarları; sepet, restoran menüsü ve restoran sipariş ayrıntısının sabit çubukları da
     aynı kapsayıcıda). Sabit çubuk taşıyan kapsayıcı telefonda yalnız saydamlıkla belirir. */
  .app-shell--m .fade-up:has(.sticky-actions, .fc-summary__actions, .fr-cartbar, .fto-actions) { animation-name: m-fade; }

  /* ------------------------------------------------------------ Karşılama (ADR-074; taslak docs/tasarim/telefon/anasayfa-v9.html,
     2026-11-13'te "çok basit" bulunup zenginleştirildi)
     Üst bölüm renkli ve büyüktür: konum bilinmiyorsa ya da ilin fotoğrafı yoksa gece mavisinde turuncu ışık ve noktalı Türkiye
     haritası, varsa ilin fotoğrafı (solda lacivert, sağda gün batımı tonu). Üst çubuk bu bölümün üstünde saydam durur ve sayfayla
     birlikte kayar. Arama kutusu üst bölümle içeriğin birleştiği kenardadır. Bölümler fotoğraflı karttır; süren işler bölüm renginin
     açık tonundadır (--ph-*-soft / --ph-*-ink; koyu temada ayrı değerler). Turuncu dolgu yalnız eylemdedir (arama düğmesi, "Konum
     seçin", rozet). İçerik temaya uyar (açık temada sıcak beyaz zemin). Çubukla içerik arasına akışta bir şerit girerse (konum izni
     önerisi, güncelleme bandı) üst bölüm çubuğun altına taşmaz ve çubuk düz lacivert kalır. */
  .app-shell--m.app-shell--home { --ph-over: calc(56px + var(--safe-top)); --ph-paper: #fffaf4; }
  [data-theme="dark"] .app-shell--m.app-shell--home { --ph-paper: var(--bg-app); }
  .app-shell--m.app-shell--home:has(.location-prompt, .app-update) { --ph-over: 0px; }
  .app-shell--m.app-shell--home .app-shell__main { background: var(--ph-paper); }
  .app-shell--m.app-shell--home .app-shell__content--bleed { padding-top: 0; }
  .app-shell--m.app-shell--home .pbar--home { position: relative; background: transparent; }
  .app-shell--m.app-shell--home:has(.location-prompt, .app-update) .pbar--home { background: var(--carsi-900); }
  .pbar--home .pbar__row { padding: 0 12px 0 16px; }
  /* Arama karşılamada büyük kutudadır (PhoneHome); çubuktaki düğme yinelenmez. */
  .pbar--home .pbar__ib[data-testid="phone-search-toggle"] { display: none; }
  .pbar--home .pbar__ib { background: rgba(255, 255, 255, .14); }
  .pbar--home .pbar__badge { background: var(--accent-500); color: #241200; box-shadow: 0 0 0 2px var(--carsi-900); }
  .pbar--home .pbar__avatar { width: 40px; height: 40px; background: #fff; color: var(--carsi-900); font: 700 15px/1 var(--font-display); }
  .pbar--home .pbar__avatar:hover { background: #fff; color: var(--carsi-900); }

  /* Kaydırma yok (ürün sahibi 2026-11-13: "mobil ana sayfada kesinlikle scroll olmamalı"): kabuk ekran yüksekliğine sabitlenir,
     karşılama kalan yeri doldurur; içerik sabit bloklardır, yalnız son açık talepler listesi esner ve sığmayan satırı göstermez.
     Yatay telefonda (yükseklik 560 px altı) tek ekrana sığmak olanaksızdır; orada sayfa olağan biçimde kayar. */
  @media (min-height: 560px) {
    .app-shell--m.app-shell--home { height: 100dvh; min-height: 0; overflow: hidden; }
    .app-shell--m.app-shell--home .app-shell__body, .app-shell--m.app-shell--home .app-shell__main { min-height: 0; overflow: hidden; }
    /* İçerik kırpılmaz (overflow: visible): üst bölüm (.phome__top) çubuğun altına --ph-over kadar yukarı çekilir; içerik kırpınca
       çekilen pay kesiliyor, saydam çubuğun arkasında sıcak beyaz zemin kalıyordu: açık yazı logosu ve zil zeminle aynı renge düşüp
       okunmuyordu (ürün sahibi, uygulama 5.2: "üstteki logo ile headerin rengi aynı olduğu için logo okunmuyor"; oturum açık müşteri,
       açık tema). Kaydırmayı kabuk ve .app-shell__main keser; çubuk da .app-shell__main'in içinde olduğundan çekilen pay kırpılmaz. */
    .app-shell--m.app-shell--home .app-shell__content { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
    .app-shell--m.app-shell--home .phome { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .app-shell--m.app-shell--home .phome__top { flex: none; }
    .app-shell--m.app-shell--home .phome__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .app-shell--m.app-shell--home .phome__body > * { flex: none; }
    .app-shell--m.app-shell--home .phome__body > .phome__feed { flex: 1 1 0; min-height: 0; }
  }
  .phome__title.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  .phome {
    margin: 0; overflow-x: clip;
    --ph-c-soft: #fff1dc; --ph-c-ink: #8f4a00; --ph-y-soft: #fde9e1; --ph-y-ink: #b8320f; --ph-u-soft: #e2f5ec; --ph-u-ink: #0c6b48;
    --ph-live: #17b26a;
  }
  [data-theme="dark"] .phome {
    --ph-c-soft: #2b1f0a; --ph-c-ink: #ffc266; --ph-y-soft: #33160c; --ph-y-ink: #ff9b7a; --ph-u-soft: #0e2a22; --ph-u-ink: #5fe0a8;
    --ph-live: var(--mint-400);
  }
  .phome__top {
    position: relative; isolation: isolate; margin-top: calc(-1 * var(--ph-over, 0px)); padding: calc(var(--ph-over, 0px) + 2px) 0 16px;
    background: var(--carsi-900); color: #fff;
  }
  .phome--seller .phome__top { padding-bottom: 20px; }
  .phome__hero { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .phome__hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
  /* Konum yok: gece mavisi zemin, sağ üstte turuncu ışık, sağda noktalı Türkiye. */
  .phome--map .phome__hero {
    background:
      radial-gradient(90% 70% at 96% 0%, rgba(255, 138, 0, .72) 0%, rgba(255, 138, 0, 0) 60%),
      radial-gradient(120% 90% at 0% 100%, #1a4fa3 0%, rgba(26, 79, 163, 0) 60%),
      var(--carsi-900);
  }
  .phome--map .phome__hero img {
    position: absolute; right: -168px; top: calc(var(--ph-over, 0px) + 30px); width: 470px; height: auto; object-fit: contain; opacity: .9;
  }
  .phome--map .phome__hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #0b1f38 0%, rgba(11, 31, 56, .94) 54%, rgba(11, 31, 56, 0) 88%);
  }
  /* Şehir: fotoğraf görünür kalır; solda lacivert, sağda gün batımı tonu. Yazının arkası her zaman koyu. */
  .phome--city .phome__hero::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(11, 31, 56, .8) 0%, rgba(11, 31, 56, .3) 40%, rgba(11, 31, 56, .86) 100%),
      linear-gradient(100deg, rgba(11, 31, 56, .88) 0%, rgba(11, 31, 56, .4) 55%, rgba(242, 110, 0, .45) 100%);
  }
  /* Adres/konum listesi arama kutusunun ve satırların üstüne açılır. */
  .phome__hello { position: relative; z-index: 4; padding: 4px 16px 0; }
  .phome__greet { display: block; margin: 0; font: 500 14px/1.3 var(--font-family); color: rgba(255, 255, 255, .88); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }  .phome__title {
    margin: 4px 0 0; color: #fff; font: 800 30px/1.08 var(--font-display); letter-spacing: -0.025em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .4); text-wrap: balance;
  }
  /* v9: slogan tek satır (dar ekranda iki satıra iner). */
  .phome__title--script {
    margin: 4px 0 0; font: 400 clamp(21px, 6.6vw, 27px)/1.15 "Kaushan Script", var(--font-display); letter-spacing: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35); text-wrap: balance;
  }
  .phome__title--script span + span { color: #ffc266; }
  .phome .paddr--pill { margin-top: 12px; }
  .phome.phome--buyer .paddr--pill { margin-top: 6px; }
  .phome .paddr--pill .topbar-address {
    min-height: 44px; padding: 0 13px 0 11px; border-radius: 999px; background: rgba(11, 31, 56, .46); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  }
  .phome .paddr--pill .topbar-address__icon { color: #ffb14a; }
  .phome .paddr--pill .topbar-address__value { font-size: 14px; font-weight: 600; }
  /* Konum seçilmemişse hap turuncu çağrıdır ("Konum seçin"). */
  .phome .paddr--pill .topbar-address.topbar-address--empty { background: var(--accent-500); box-shadow: 0 10px 20px -10px rgba(242, 140, 0, .9); color: #241200; }
  .phome .paddr--pill .topbar-address--empty .topbar-address__value,
  .phome .paddr--pill .topbar-address--empty .topbar-address__icon,
  .phome .paddr--pill .topbar-address--empty .topbar-address__chevron { color: #241200; }
  /* v9: arama kutusu üst bölümün içinde, en altta. */
  .phome__search {
    position: relative; z-index: 3; display: flex; align-items: center; gap: 10px;
    height: 52px; margin: 14px 16px 0; padding: 0 5px 0 16px; border-radius: 14px; background: var(--bg-surface);
    box-shadow: 0 16px 30px -14px rgba(11, 31, 56, .55), 0 0 0 1px rgba(11, 31, 56, .06);
  }
  [data-theme="dark"] .phome__search { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7), 0 0 0 1px var(--border-color); }
  .phome__search:focus-within { box-shadow: 0 16px 30px -14px rgba(11, 31, 56, .55), 0 0 0 2px var(--accent-500); }
  .phome__search > .icon { width: 20px; height: 20px; flex: none; color: var(--text-main); }
  .phome__search input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-main);
    font: 400 16px/1 var(--font-family);
  }
  .phome__search input::placeholder { color: var(--text-muted); }
  .phome__search button {
    width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 11px; display: grid; place-items: center;
    background: var(--accent-500); color: #241200; cursor: pointer;
  }
  .phome__search button .icon { width: 20px; height: 20px; }

  .phome__body { padding: 14px 16px 12px; }
  .phome--seller .phome__body { padding-top: 18px; }
  .phome__head { margin: 14px 0 8px; color: var(--text-main); font: 700 16px/1.2 var(--font-family); letter-spacing: -0.01em; }
  .phome__body > .phome__head:first-child, .phome__now > .phome__head { margin-top: 0; }
  .phome__areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* Ziyaretçi ve müşteri: bölümler yan yana karo (v8; ürün sahibi 2026-11-13). İki bölümde iki sütun, tek bölümde tam genişlik. */
  .phome--visitor .phome__areas--n3, .phome--buyer .phome__areas--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phome--visitor .phome__areas--n2, .phome--buyer .phome__areas--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parea { position: relative; text-decoration: none; transition: transform .14s ease-out; }
  .parea:hover { text-decoration: none; }
  .parea:active { transform: scale(.985); }
  .parea:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; }
  /* Bölüm karosu: bölüm renginde dolgu, ad ve tek eylem üstte, canlı sayı solda altta, yuvarlak fotoğraf sağ altta taşar.
     Yükseklik en az 122 px; büyük sistem yazısında karo uzar, yazı kırpılmaz. Çarşı turuncusunda yazı koyudur (kontrast). */
  .parea--door {
    isolation: isolate; overflow: hidden; display: block; min-height: 122px; padding: 12px 12px 42px; border-radius: 18px;
    background: var(--g); color: #fff; box-shadow: 0 14px 22px -16px var(--sh);
  }
  .parea--door.parea--carsi { --g: linear-gradient(160deg, #ffb829 0%, #f47b00 100%); --sh: rgba(244, 123, 0, .9); --pos: 40% 30%; color: #2a1400; }
  .parea--door.parea--yemek { --g: linear-gradient(160deg, #ff6f43 0%, #dd3418 100%); --sh: rgba(221, 52, 24, .9); --pos: 62% 60%; }
  .parea--door.parea--usta { --g: linear-gradient(160deg, #23c483 0%, #0c8558 100%); --sh: rgba(12, 133, 88, .9); --pos: 66% 42%; }
  .parea--door:hover { color: #fff; }
  .parea--door.parea--carsi:hover { color: #2a1400; }
  [data-theme="dark"] .parea--door { box-shadow: none; }
  .parea--door::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 56%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  }
  .parea--door .parea__tx { position: relative; z-index: 1; display: block; min-width: 0; overflow-wrap: anywhere; }
  .parea--door .parea__name { display: block; font: 800 20px/1.05 var(--font-display); letter-spacing: -0.02em; }
  .parea--door .parea__lead { display: block; margin-top: 3px; font: 600 12.5px/1.3 var(--font-family); opacity: .92; }
  .parea--door .parea__img {
    position: absolute; z-index: -1; right: -12px; bottom: -12px; width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
    object-position: var(--pos, 50% 50%); box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
  }
  .parea--door .parea__live {
    position: absolute; z-index: 1; left: 10px; bottom: 10px; max-width: calc(100% - 20px); height: 22px; padding: 0 8px; border-radius: 11px;
    background: rgba(255, 255, 255, .94); color: #0d1524; font-size: 11px; font-weight: 700; line-height: 1; overflow: hidden; text-overflow: ellipsis;
  }
  .parea--door .parea__live::before { flex: none; background: #17b26a; }
  .parea--door .parea__live.is-hot { background: var(--carsi-900); color: #fff; }
  .parea--door .parea__live.is-hot::before { background: var(--accent-500); }
  /* Canlı sayı yoksa fotoğraf biraz büyür (v8 ziyaretçi). */
  .parea--door:not(:has(.parea__live)) .parea__img { right: -14px; bottom: -14px; width: 86px; height: 86px; }
  /* Esnaf: bölümler satır, bekleyen iş sayısı sağda büyük. */
  .parea--row {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 84px;
    padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--bg-surface); color: var(--text-main);
    box-shadow: 0 0 0 1px var(--border-color);
  }
  .parea--row:hover { color: var(--text-main); }
  .parea--row .parea__img { display: block; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
  .parea--row .parea__name { display: block; font: 700 18px/1.15 var(--font-display); letter-spacing: -0.015em; }
  .parea--row .parea__lead { display: block; margin-top: 3px; font: 400 13px/1.35 var(--font-family); color: var(--text-secondary); }
  .parea--row .parea__go { display: grid; place-items: center; color: var(--text-muted); }
  .parea__num { text-align: right; }
  .parea__num strong { display: block; font: 800 26px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .parea__num small { display: block; max-width: 15ch; margin-top: 3px; font: 500 12px/1.25 var(--font-family); color: var(--text-muted); }
  .parea--carsi .parea__num strong { color: var(--ph-c-ink); }
  .parea--yemek .parea__num strong { color: var(--ph-y-ink); }
  .parea--usta .parea__num strong { color: var(--ph-u-ink); }

  /* Müşteri: "Devam edenler". Süren sipariş, yoldaki usta ve teklif gelen talep yana kayan şeritte; kartın tonu işin bölümünden
     gelir. Tek iş varsa kart tam genişliktedir; iş yoksa bölüm başlığıyla birlikte gizlenir. */
  /* Boş şerit yer kaplamaz (alt boşluk kartlardadır). Başlık yalnız şeritte kart varken görünür; :has() tanımayan eski
     WebView'de başlık hiç çıkmaz, kartlar yine görünür. */
  .phome__now > .phome__head { display: none; }
  .phome__now:has(.phome__rail > *) > .phome__head { display: block; }
  .phome__rail {
    display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x proximity;
    scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .phome__rail::-webkit-scrollbar { display: none; }
  .phome__rail > * { flex: 0 0 88%; min-width: 0; margin-bottom: 18px; scroll-snap-align: start; }
  .phome__rail > :only-child { flex-basis: 100%; }
  .app-shell--m .phome__rail .faob, .app-shell--m .phome__rail .uajb {
    width: auto; max-width: none; margin: 0; min-height: 72px; padding: 12px 14px; gap: 8px 12px; border: 0; border-radius: 16px;
    box-shadow: none; color: var(--text-main); flex-wrap: wrap;
  }
  .app-shell--m .phome__rail .faob { --tone: var(--ph-y-ink); background: var(--ph-y-soft); }
  .app-shell--m .phome__rail .uajb { --tone: var(--ph-u-ink); background: var(--ph-u-soft); }
  .app-shell--m .phome__rail .faob__icon, .app-shell--m .phome__rail .uajb__icon, .phome__wait-ic {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-surface); color: var(--tone);
  }
  /* Büyük yazı ölçeğinde başlık en çok iki satır; eylem düğmesi küçülmez, yazı sütunu daralır. */
  .app-shell--m .phome__rail .faob__text b, .app-shell--m .phome__rail .uajb__text b {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 15px; font-weight: 700;
  }
  /* Yazıya en az 96 px kalmıyorsa eylem düğmesi alt satıra, sağa iner. */
  .app-shell--m .phome__rail .faob__text, .app-shell--m .phome__rail .uajb__text, .phome__wait-tx { flex: 1 1 96px; min-width: 0; }
  .app-shell--m .phome__rail .faob__text small, .app-shell--m .phome__rail .uajb__text small { font-size: 13px; color: var(--text-secondary); }
  .app-shell--m .phome__rail .faob__bar i { background: color-mix(in srgb, var(--tone) 22%, transparent); }
  .app-shell--m .phome__rail .faob__bar i.is-done { background: var(--tone); }
  .app-shell--m .phome__rail .faob__go, .app-shell--m .phome__rail .uajb__go, .phome__wait-go {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--bg-surface);
    flex: none; margin-left: auto; color: var(--tone); font: 700 13px/1 var(--font-family); white-space: nowrap;
  }
  .app-shell--m .phome__rail .faob__go .icon, .app-shell--m .phome__rail .uajb__go .icon { display: none; }
  .phome__wait {
    --tone: var(--ph-c-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    min-height: 72px; padding: 12px 14px; border-radius: 16px; background: var(--ph-c-soft); color: var(--text-main); text-decoration: none;
  }
  .phome__wait:hover { color: var(--text-main); text-decoration: none; }
  .phome__wait-ic .icon { width: 21px; height: 21px; }
  .phome__wait-tx b { display: block; font: 600 15px/1.3 var(--font-family); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phome__wait-tx span { display: block; margin-top: 2px; font: 400 13px/1.35 var(--font-family); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phome__wait .phome__wait-tx b { font-weight: 700; }

  /* Ziyaretçi: tek vaat. Ziyaretçi ve müşteri: platformdaki son açık talepler. */
  .phome__promo {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 10px; padding: 10px 16px;
    border-radius: 18px; color: #fff;
    background: radial-gradient(70% 160% at 0% 50%, rgba(242, 140, 0, .42) 0%, rgba(242, 140, 0, 0) 70%), var(--carsi-900);
  }
  [data-theme="dark"] .phome__promo { box-shadow: 0 0 0 1px var(--border-color); }
  .phome__promo-tx b { display: block; font: 700 15px/1.2 var(--font-family); }
  .phome__promo-tx span { display: block; margin-top: 2px; font: 400 13px/1.35 var(--font-family); color: rgba(255, 255, 255, .84); }
  .phome__promo strong { font: 800 34px/1 var(--font-display); letter-spacing: -0.03em; color: #ffb829; }
  /* Son açık talepler kalan yeri doldurur. Satırlar sütun halinde sarılır: sığmayan satır ikinci sütuna geçer ve kabın dışında
     kalır (yarım satır görünmez, sayfa kaymaz). Başlıkla bir satıra yer yoksa (container sorgusu) bölüm hiç görünmez. */
  .phome__feed { margin-top: 14px; display: flex; flex-direction: column; container-type: size; }
  @container (max-height: 104px) { .phome__feed-hd, .phome__feed-list { visibility: hidden; } }
  .phome__feed-hd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .phome__feed-hd h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-main); font: 700 16px/1.2 var(--font-family); letter-spacing: -0.01em; }
  .phome__feed-hd h2::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ph-live); }
  .phome__feed-hd a { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; font: 600 13px/1 var(--font-family); color: var(--m-link); text-decoration: none; }
  .phome__feed-list {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 8px 40px;
    margin: 0; padding: 0; list-style: none; overflow: hidden;
  }
  .phome__feed-list li {
    flex: none; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px;
    border-radius: 14px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-color);
  }
  /* Kayıt ve üye kartları (site ve uygulama): ziyaretçide yan yana iki fotoğraflı kart (müşteri, esnaf), üyede tek geniş kart.
     Kalan yüksekliğin tamamını kaplar (en az 190 px); fotoğraf kartı kaplar, yazı alttaki koyu geçişin üstündedir. Altında mağaza
     bağlantıları (site) ya da son talepler (uygulama) varsa yer paylaşılır. */
  .phome__join { flex: none; display: flex; flex-direction: column; margin-top: 14px; }
  .app-shell--m.app-shell--home .phome__body > .phome__join { flex: 1 1 0; min-height: 190px; }
  .phome__join--member { margin-top: 12px; }
  .pjoin--wide { flex: 1 1 auto; min-height: 190px; }
  .pjoin--wide .pjoin__tx { padding: 16px; gap: 6px; }
  .pjoin--wide .pjoin__tx b { max-width: 26ch; font-size: 19px; line-height: 1.25; }
  .pjoin--wide .pjoin__go { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .phome__join-title { flex: none; margin: 0 0 10px; color: var(--text-main); font: 700 16px/1.2 var(--font-family); letter-spacing: -0.01em; }
  .phome__join-grid { flex: 1 1 auto; min-height: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pjoin {
    position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 150px; overflow: hidden; border-radius: 20px;
    color: #fff; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(6, 25, 54, .55);
  }
  .pjoin:hover, .pjoin:focus-visible { color: #fff; text-decoration: none; }
  .pjoin img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .pjoin:active img { transform: scale(1.04); }
  .pjoin::before { content: ""; position: absolute; inset: 0; z-index: -1; }
  .pjoin--buyer::before { background: linear-gradient(180deg, rgba(6, 25, 54, 0) 25%, rgba(6, 25, 54, .62) 55%, rgba(6, 25, 54, .94) 100%); }
  .pjoin--seller::before { background: linear-gradient(180deg, rgba(60, 28, 0, 0) 25%, rgba(70, 34, 0, .62) 55%, rgba(48, 22, 0, .95) 100%); }
  .pjoin__tx { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px; }
  .pjoin__tx small { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); font: 600 11px/1.3 var(--font-family); letter-spacing: .02em; }
  .pjoin__tx b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
    font: 700 15px/1.25 var(--font-family); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  .pjoin__go {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 4px; padding: 0 12px;
    border-radius: 10px; font: 700 13px/1 var(--font-family);
  }
  .pjoin__go .icon { width: 15px; height: 15px; }
  .pjoin--buyer .pjoin__go { background: #f28c00; color: #fff; }
  .pjoin--seller .pjoin__go { background: #fff; color: #7a3d00; }
  .phome__join + .phome__feed, .phome__join + .phome__apps { margin-top: 12px; }
  /* Kısa ekran (640–700 px): karolar ve süren iş kartı sıkışır. */
  @media (max-height: 700px) {
    .parea--door { min-height: 104px; padding-bottom: 38px; }
    .phome__head { margin-top: 10px; }
    .phome__rail > * { margin-bottom: 10px; }
    .phome__search { margin-top: 10px; }
  }
  /* Sitede son talepler yerine mağaza bağlantıları: açık zeminde iki eşit düğme. Bileşenin koyu zemin görünümü burada ezilir
     (.phome ön eki bileşenin kapsamlı CSS'inden baskın gelsin diye). Bağlantı yoksa ya da PWA'da bölüm hiç görünmez. */
  .phome__apps { margin-top: 14px; }
  .phome__apps:not(:has(.hero-app-links)) { display: none; }
  .phome__apps h2 { margin: 0 0 8px; color: var(--text-main); font: 700 16px/1.2 var(--font-family); letter-spacing: -0.01em; }
  .phome .phome__apps .hero-app-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .phome .phome__apps .hero-app-links__btn {
    min-height: 56px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--bg-surface); color: var(--text-main);
    box-shadow: inset 0 0 0 1px var(--border-color); font-size: 15px;
  }
  .phome .phome__apps .hero-app-links__btn:hover { background: var(--bg-surface-hover); color: var(--text-main); }
  .phome .phome__apps .hero-app-links__store small { color: var(--text-muted); }
  @media (display-mode: standalone), (display-mode: fullscreen) { .phome__apps { display: none; } }
  html.is-standalone .phome__apps { display: none; }
  .phome__feed-badge {
    height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; white-space: nowrap;
    background: var(--ph-u-soft); color: var(--ph-u-ink); font: 600 12px/1 var(--font-family);
  }

  /* ------------------------------------------------------------ Hesabım (telefonda üst blok bölüm renginde) */
  .app-shell--m .hub { margin: calc(-1 * var(--spacing-4)) calc(-1 * var(--spacing-4)) 0; }
  .app-shell--m .hub__who { margin: 0; padding: 8px 16px 20px; border: 0; border-radius: 0; background: var(--m-top); color: #fff; }
  .app-shell--m .hub__who small { color: rgba(255, 255, 255, .72); }
  .app-shell--m .hub__av { background: rgba(255, 255, 255, .16); color: #fff; }
  .app-shell--m .hub__edit { color: #fff; background: rgba(255, 255, 255, .1); }
  .app-shell--m .hub__grp, .app-shell--m .hub__list, .app-shell--m .hub__ver { margin-left: 16px; margin-right: 16px; }
}

@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .aswitch__scrim, .aswitch__menu { animation: none; }
  .aswitch__chev, .parea, .pbar__ib { transition: none; }
}

/* ------------------------------------------------------------ Hesabım (/hesabim): masaüstünde de tek sütun okunur */
.hub { max-width: 640px; margin: 0 auto; padding-bottom: var(--spacing-6); }
.hub__who {
  display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 4px;
  border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface);
}
.hub__av {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary-700); font-size: 17px; font-weight: 700;
}
.hub__id { flex: 1; min-width: 0; line-height: 1.3; }
.hub__id b { display: block; font: 700 20px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub__id small { display: block; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub__edit {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-secondary); background: var(--bg-surface-subtle);
}
.hub__grp { margin: 0; padding: 20px 4px 8px; font: 600 12.5px/1.2 var(--font-family); letter-spacing: .01em; color: var(--text-muted); }
.hub__list {
  overflow: hidden; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
[data-theme="dark"] .hub__list { box-shadow: none; }
.hub__row {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 16px;
  border: 0; background: none; color: var(--text-main); font: 400 15px/1.3 var(--font-family); text-align: left; text-decoration: none;
  cursor: pointer;
}
.hub__row:hover { background: var(--bg-surface-hover); color: var(--text-main); text-decoration: none; }
.hub__row + .hub__row::before { content: ""; position: absolute; left: 62px; right: 0; top: 0; height: 1px; background: var(--border-color); }
.hub__mic {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, #17406f) 13%, var(--bg-surface)); color: var(--c, #17406f);
}
[data-theme="dark"] .hub__mic {
  background: color-mix(in srgb, var(--c, #8ab2e6) 28%, var(--bg-surface)); color: color-mix(in srgb, var(--c, #8ab2e6) 40%, #fff);
}
.hub__tx { flex: 1; min-width: 0; }
.hub__tx small { display: block; margin-top: 1px; font-size: 13px; color: var(--text-muted); }
.hub__val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hub__count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--accent-500); color: #241200; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.hub__chev { color: var(--text-muted); flex: none; }
.hub__switch { position: relative; width: 46px; height: 28px; flex: none; border-radius: 14px; background: var(--border-strong); transition: background-color .15s; }
.hub__switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease-out;
}
.hub__switch.is-on { background: var(--primary-500); }
.hub__switch.is-on::after { transform: translateX(18px); }
.hub__row--danger .hub__tx { color: var(--tint-danger-fg); }
.hub__ver { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--text-muted); }

/* Sayfaların telefon kuralları aşama aşama eklenir (PLAN.md). Sayfaya özgü kural sayfanın .razor.css'indedir; birden çok sayfanın
   kullandığı telefon kalıbı kendi aşamasının bölümüne yazılır (aynı anda çalışan aşamalar dosyada çakışmasın). */

/* ==================================================================== Aşama 2: esnaf ve usta sayfaları */
@media (max-width: 1023.98px) {
  /* Bölüm başlığı (SectionPageHead, sec-head--phone): usta paneli ve usta alt sayfalarında başlık üst çubukta (PhoneBar) ya da
     bölüm adında; bant üst çubuğun renginde ince şerit olarak kalır, içinde eylemler (iş kabulü, Profilim) ve ek içerik (sekmeler,
     durum rozetleri). Esnaf (Çarşı) sayfalarının şeridi SellerPageBand'in PhoneCompact kipidir. */
  .app-shell--m .sec-head.sec-head--phone {
    margin-bottom: var(--spacing-4); padding: 2px 0 14px;
    background: var(--m-bar); border-image-source: linear-gradient(var(--m-bar), var(--m-bar));
  }
  .app-shell--m .sec-head.sec-head--phone::before { display: none; }
  .app-shell--m .sec-head--phone .sec-head__back,
  .app-shell--m .sec-head--phone .sec-head__marks,
  .app-shell--m .sec-head--phone .sec-head__title,
  .app-shell--m .sec-head--phone .sec-head__sub { display: none; }
  .app-shell--m .sec-head--phone .sec-head__inner { gap: 10px; align-items: center; }
  .app-shell--m .sec-head--phone .sec-head__text:empty { display: none; }
  .app-shell--m .sec-head--phone .sec-head__actions { width: 100%; justify-content: space-between; }
  .app-shell--m .sec-head--phone .sec-head__meta { margin-top: 0; }
  /* Usta ol: tanıtım başlığı kalır; geri bağlantısı üst çubukta olduğu için bantta tekrarlanmaz. */
  .app-shell--m .uo-head .sec-head__back { display: none; }
  /* Usta paneli bandındaki sekmeler: alt menüde olmayanlar (Özet, Tekliflerim, Mesajlar) burada; hap düğmeler. */
  .app-shell--m .upn-head .upn-tabs { margin-top: 10px; }
  /* Esnaf ve usta sayılarındaki küçük kutular (StatTile): telefonda alçak, gölgesiz, ikişer. */
  .app-shell--m .upn-stats .stat-card, .app-shell--m .wallet-side .stat-card { min-height: 0; padding: 12px 14px; border-radius: 16px; box-shadow: none; }
  .app-shell--m .upn-stats .stat-card__icon, .app-shell--m .wallet-side .stat-card__icon { width: 28px; height: 28px; border-radius: 9px; }
  .app-shell--m .upn-stats .stat-card__value, .app-shell--m .wallet-side .stat-card__value { font-size: 20px; }
  .app-shell--m .upn-stats .stat-card__hint, .app-shell--m .wallet-side .stat-card__hint { font-size: 12px; }
}

/* ==================================================================== Aşama 3: Çarşı (müşteri) */
/* Yalnız telefonda çizilen parçalar (vitrinin güven şeridi, "Son talepleriniz", karşılaştırmanın özet bandı…): masaüstünde ve
   yönetim hesabının eski telefon kabuğunda görünmez; .hide-desktop yerine bu sınıf kullanılır çünkü o kabukta da gizli kalmalıdır. */
.m-only { display: none; }
@media (max-width: 1023.98px) {
  .app-shell--m .m-only { display: block; }
  /* Sayfaların kapsamlı (scoped) kuralları aynı özgüllükte ve bu dosyadan sonra yüklenir; gizleme her zaman geçerli olmalı. */
  .app-shell--m .m-off { display: none !important; }

  /* Bölüm başlık şeridi telefonda hiç çizilmez: başlık ve geri üst çubukta (PhoneBar), eylemler alt menüde ya da sayfanın içinde. */
  .app-shell--m .sec-head.sec-head--phone-off { display: none; }

  /* Liste araç bandı (telefon.html → Çarşı 3 .tools): üst çubuğun altına yapışık beyaz bant; arama her zaman görünür, sayaçlı süzgeç
     çipleri tek satırda yana kayar. Taleplerim, Gelen teklifler ve Açık talepler aynı kalıbı kullanır. */
  .app-shell--m .m-tools {
    position: sticky; top: calc(var(--safe-top) + 56px); z-index: 30;
    display: grid; gap: 12px; margin: calc(-1 * var(--spacing-4)) calc(-1 * var(--spacing-4)) 0; padding: 12px 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--border-color);
  }
  .app-shell--m .m-tools > * { margin-left: 16px; margin-right: 16px; }
  .app-shell--m .m-tools .search-box {
    max-width: none; min-height: 44px; padding: 0 6px 0 12px; border: 0; border-radius: 12px; background: var(--bg-surface-subtle);
    box-shadow: none;
  }
  .app-shell--m .m-tools .search-box input { min-height: 44px; font-size: 15px; background: transparent; }
  .app-shell--m .m-chips {
    display: flex; flex-wrap: nowrap; gap: 8px; margin-left: 0; margin-right: 0; padding: 0 16px; overflow-x: auto;
    scrollbar-width: none; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .app-shell--m .m-chips::-webkit-scrollbar { display: none; }
  .app-shell--m .m-chips .chip {
    flex: none; min-height: 44px; height: 44px; padding: 0 14px; gap: 6px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-secondary);
    font-size: 13px; font-weight: 600; white-space: nowrap;
  }
  .app-shell--m .m-chips .chip.active { border-color: var(--m-bar); background: var(--m-bar); color: #fff; }
  [data-theme="dark"] .app-shell--m .m-chips .chip.active { border-color: #eaf1fb; background: #eaf1fb; color: #0d1524; }
  /* Koyu temada seçili çip açık renktir; sayaç kabarcığı koyu yazıyla okunur. */
  [data-theme="dark"] .app-shell--m .m-chips .chip.active .my-demands__count,
  [data-theme="dark"] .app-shell--m .m-chips .chip.active .incoming__count { background: rgba(13, 21, 36, .12); color: #0d1524; }

  /* Gruplu liste: her grup tek yuvarlak kart, satırlar arasında simge kutusunun sağından başlayan çizgi (telefon.html .rows). */
  .app-shell--m .m-rows {
    overflow: hidden; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  }
  [data-theme="dark"] .app-shell--m .m-rows { box-shadow: none; }
  .app-shell--m .m-rows > * + * { position: relative; }
  .app-shell--m .m-rows > * + *::before { content: ""; position: absolute; left: 68px; right: 0; top: 0; height: 1px; background: var(--border-color); }

  /* Alıcının soru ayrıntısı: ince banttaki yazılı eylemler soldan dizilir (DemandDetails, dd-owner-band). */
  .app-shell--m .dd-owner-band.sec-head--phone .sec-head__actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  /* Açık talepler: teklif şartları esnaf için bilgidir; bantta kısa yazı olarak kalır (başlık üst çubukta). */
  .app-shell--m .explore-head.sec-head--phone .sec-head__sub { display: block; margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .72); }

  /* Gruplu liste başlığı (telefon.html .grp): "Bu hafta", "Diğer teklifler". */
  .app-shell--m .m-grp { margin: 0; padding: 20px 4px 8px; font: 600 12.5px/1.2 var(--font-family); letter-spacing: .01em; color: var(--text-muted); }
  .app-shell--m .m-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
  .app-shell--m .m-sec > b, .app-shell--m .m-sec > h2 { margin: 0; font: 700 18px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--text-main); }
  .app-shell--m .m-sec > a {
    display: inline-flex; align-items: center; min-height: 44px; color: var(--m-link); font-size: 13px; font-weight: 600; text-decoration: none;
  }
  .app-shell--m .m-sec > a::after { content: "\203A"; margin-left: 3px; font-size: 17px; line-height: 1; }

  /* Vitrin (/carsi) v8'de fotoğraflı açılış taşımaz: üst çubuk kehribar gradyandır ve arama hemen altındadır (aşağıda "Bölüm ön
     sayfaları"). Önceki saydam çubuk (fotoğrafın üstünde, kaydırınca renge dönen) kalktı. */
}

/* ==================================================================== Aşama 4: Yemek (müşteri) */
@media (max-width: 1023.98px) {
  /* Müşteri sayfalarının masaüstü başlık şeridi (FoodPageHead) telefonda yok: başlık ve geri üst çubuktadır (PhoneBar). Restoran
     paneli ve kurye aynı bileşeni kullanır; onlarda sınıf verilmediği için şerit kalır (7. aşama). */
  .app-shell--m .fph.fph--phone-off { display: none; }

  /* Alt menü ayrıntı ekranlarında da görünür (kullanıcı 2026-10-25: "alt sayfalara girince sürekli geri geri yapmak zorunda
     kalıyoruz"). Restoran menüsünün köz sepet çubuğu, dolu sepetin "Siparişi ver" şeridi menünün hemen üstünde yüzer. */
  .app-shell--m:has(.fc-summary__actions) .app-shell__content { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--m-fab-rise) + 96px); }
  /* Süren siparişin yüzen kartı: restoran menüsünde sepet çubuğunun üstünde; sepette "Siparişi ver" şeridi varken çıkmaz
     (kabuğun kaydet şeridi kuralıyla aynı). */
  .app-shell--m:has(.fr-cartbar) .live-strips { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--m-fab-rise) + 76px); }
  .app-shell--m:has(.fr-cartbar):has(.live-strips > *) .fr { padding-bottom: calc(176px + var(--m-fab-rise)); }
  .app-shell--m:has(.fc-summary__actions) .live-strips { display: none; }
}

/* ==================================================================== Aşama 5: Usta (müşteri) */
@media (max-width: 1023.98px) {
  /* Müşteri sayfalarının masaüstü başlık şeridi (SectionPageHead) telefonda yok: başlık ve geri üst çubuktadır (PhoneBar). Usta
     paneli ve öteki bölümler aynı bileşeni kullanır; onlarda sınıf verilmediği için şerit kalır. */
  .app-shell--m .sec-head.usta-phone-off { display: none; }
  /* Usta profilinin altta sabit "Teklif iste" çubuğu varken tabletteki sohbet düğmesi (ChatDock) çubuğun üstünde durur. */
  .app-shell--m:has(.upm-cta) .chat-dock--tablet { --dock-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 84px); }
  /* Profilin "Teklif iste" şeridi alt menünün üstünde yüzer; içerik şeridin altında kalmasın. */
  .app-shell--m:has(.upm-cta) .app-shell__content { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--m-fab-rise) + 96px); }
}

/* ==================================================================== Aşama 6: ortak sayfalar */
@media (max-width: 1023.98px) {
  /* Başlığı üst çubukta olan sayfalarda bölüm bandı yok (PhoneBar); birden çok eylemi olan sayfada bant yalnız eylem satırıdır. */
  .app-shell--m .sec-head.sec-head--phone-off, .app-shell--m .sec-wrap--phone-off { display: none; }
  .app-shell--m .sec-head.sec-head--phone-actions { padding: 0 0 12px; background: var(--m-top); border-image: none; }
  .app-shell--m .sec-head.sec-head--phone-actions::before { display: none; }
  .app-shell--m .sec-head--phone-actions .sec-head__text { display: none; }
  .app-shell--m .sec-head--phone-actions .sec-head__actions { gap: 8px; }
  .app-shell--m .sec-head.sec-head--phone-actions:not(:has(.sec-head__actions > *)) { display: none; }

  /* Sohbet (telefon.html → Ortak 2): sohbetin başlığı üst çubuktur (geri, kişi, konu, teklif/kişiler/harita, engelle); telefon üst
     çubuğu ve alt menü çizilmez, yazma alanı ekranın altındadır. Başlıktaki eylemler sohbet penceresinde kalır (işlev kaybı yok). */
  .app-shell--m:has(.chat-page .chat-window) { --topbar-height: 0px; --bottom-nav-height: 0px; }
  .app-shell--m:has(.chat-page .chat-window) .pbar,
  .app-shell--m:has(.chat-page .chat-window) .mobile-bottom-nav { display: none; }
  .app-shell--m .chat-page .chat-window__header {
    min-height: calc(var(--safe-top) + 60px); padding: calc(var(--safe-top) + 6px) 6px 6px 4px; gap: 10px;
    border-bottom: 0; background: var(--m-top); color: #fff;
  }
  .app-shell--m .chat-page .chat-window__header .btn-icon,
  .app-shell--m .chat-page .chat-window__header .btn-ghost { color: #fff; }
  .app-shell--m .chat-page .chat-window__header .btn-icon:hover,
  .app-shell--m .chat-page .chat-window__header .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .app-shell--m .chat-page .chat-window__header .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
  .app-shell--m .chat-page .chat-window__title .fw-bold { font-size: 17px; color: #fff; }
  .app-shell--m .chat-page .chat-window__title a { color: rgba(255, 255, 255, .7); }
  /* Teklif, kişiler ve harita başlığın altında etiketli ikinci satır: tek satırda adı ve konuyu sıkıştırıyordu. */
  .app-shell--m .chat-page .chat-window__header { flex-wrap: wrap; row-gap: 4px; }
  .app-shell--m .chat-page .chat-window__header .chat-actions {
    order: 10; flex: 1 0 100%; margin: 0; padding: 2px 0 2px 44px; gap: 6px; overflow-x: auto; scrollbar-width: none;
  }
  .app-shell--m .chat-page .chat-actions .chat-actions__btn {
    min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600;
  }
  .app-shell--m .chat-page .chat-actions .chat-actions__btn span.hide-mobile { display: inline !important; }
  /* Sohbet listesinde başlık üst çubukta; listenin kendi başlık satırı tekrar etmesin. */
  .app-shell--m .chat-page .conv-list__header > .row-between { display: none; }
}

/* ==================================================================== Aşama 7: restoran ve kurye */
@media (max-width: 1023.98px) {
  /* Restoran paneli başlık şeridi (FoodPanelHead → FoodPageHead.fph--panel): başlık üst çubukta (sayfanın PhoneBar'ı); şerit üst
     çubuğun renginde ince bant olarak kalır, içinde yalnız eylemler (haplar; sığmazsa alt satıra), şube seçimi ve ek içerik (durum
     rozeti). Panel gezinmesi (FoodManageNav) telefonda alt menüde ve panelin "Restoran yönetimi" listesindedir. Bantta gösterilecek
     bir şey yoksa bant çizilmez. Panelin ana sayfasında (fph--phone-title) restoranın adı bantta kalır. */
  .app-shell--m .fph.fph--panel {
    margin-bottom: 12px; padding: 2px 0 14px;
    background: var(--m-bar); border-image-source: linear-gradient(var(--m-bar), var(--m-bar));
  }
  .app-shell--m .fph.fph--panel::before { display: none; }
  .app-shell--m .fph--panel .fph__back,
  .app-shell--m .fph--panel .fph__area,
  .app-shell--m .fph--panel .fph__sub,
  .app-shell--m .fph--panel .fph__tabs,
  .app-shell--m .fph--panel:not(.fph--phone-title) .fph__title { display: none; }
  .app-shell--m .fph--panel .fph__inner { gap: 10px; align-items: center; }
  .app-shell--m .fph--panel:not(.fph--phone-title) .fph__text:not(:has(> :not(.fph__back, .fph__area, .fph__title, .fph__sub))) { display: none; }
  .app-shell--m .fph--panel:not(.fph--phone-title):not(:has(.fph__actions > *)):not(:has(.fph__text > :not(.fph__back, .fph__area, .fph__title, .fph__sub))) { display: none; }
  .app-shell--m .fph--panel .fph__text { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .app-shell--m .fph--panel .fph__text .badge { margin: 0; }
  .app-shell--m .fph--panel.fph--phone-title .fph__title { flex: 1 0 100%; margin: 4px 0 2px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
  .app-shell--m .fph--panel .fph__actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  /* Durum rozeti ve eylem aynı satırda (sipariş ayrıntısı: "Hazırlanıyor" · "Destek al"); şube seçimi tam satır kalır. */
  .app-shell--m .fph--panel:not(.fph--phone-title) .fph__text { flex: 1 1 0; }
  .app-shell--m .fph--panel:not(.fph--phone-title) .fph__actions:not(:has(.form-select)) { width: auto; min-width: 0; flex: 0 1 auto; }
  .app-shell--m .fph--panel .fph__actions .btn {
    flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  }
  .app-shell--m .fph--panel .fph__actions .btn-outline,
  .app-shell--m .fph--panel .fph__actions .btn-ghost { border-color: transparent; background: rgba(255, 255, 255, .12); color: #fff; }
  .app-shell--m .fph--panel .fph__actions .btn-primary {
    border-color: var(--m-cta, var(--yemek-ember)); background: var(--m-cta, var(--yemek-ember)); color: #fff;
  }
  .app-shell--m .fph--panel .fph__actions .form-select {
    flex: 1 1 auto; width: 100%; min-height: 44px; border-radius: 12px; font-size: 15px;
  }
  /* Sipariş zili bandı (FoodOrderBell) üst çubuğun altında kenardan kenara; panel şeridi onun hemen altından başlar. */
  .app-shell--m .fob ~ * .fph.fph--panel, .app-shell--m .fob ~ .fph.fph--panel { margin-top: calc(-1 * var(--spacing-3)); }

  /* Kurye ekranı (ADR-047, ADR-053): çalışma ekranının üst menüsü (WorkTopBar) telefonda sitenin üst çubuğu gibi bölüm renginde
     ve 56 px; "Menü" düğmesi çubuktaki haplar gibi. Alt menü (WorkBottomNav) sitenin yüzen cam alt menüsüdür (yukarıdaki
     .mobile-bottom-nav kuralları); vurgu rengi bölümün açık tonu. İşlev ve bağlantılar değişmez. */
  .app-shell--m .work-topbar { background: var(--m-bar); box-shadow: none; }
  .app-shell--m .work-topbar__inner { padding: 0 8px 0 16px; }
  .app-shell--m .work-topbar__brand .brand-logo__word { height: 22px; width: auto; }
  .app-shell--m .work-topbar__menu-btn {
    min-height: 40px; padding: 0 14px; border: 0; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600;
  }
  .app-shell--m .work-topbar__menu-btn:hover { background: rgba(255, 255, 255, .18); }
  .app-shell--m .work-topbar__dot { box-shadow: 0 0 0 2px var(--m-bar); }
  .app-shell--m .work-bottom-nav .nav-item.action-create { color: #fff; }
  /* Kurye sekme adları uzun ("Hazır paketler", "Şimdiki görev"): 360–390 px'te yan yana taşıyordu. Ad iki satıra sarar; simge ve
     etkin hap hep aynı yükseklikte durur (içerik üstten dizilir), etkin sekme hap, renk ve kalın yazıyla belli olur. */
  .app-shell--m .work-bottom-nav .nav-item { justify-content: flex-start; padding-top: 15px; }
  .app-shell--m .work-bottom-nav .nav-item .nav-label { max-width: 66px; white-space: normal; text-align: center; line-height: 1.1; }
  .app-shell--m .work-bottom-nav .nav-item::before { top: 11px; margin-top: 0; }
  .app-shell--m .work-bottom-nav .nav-item.active::after { display: none; }
  .app-shell--m .work-bottom-nav .nav-item .badge-dot { top: 5px; }
  .app-shell--m .work-bottom-nav--yemek .nav-item.action-create .create-icon-bubble {
    background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--m-cta) 62%, #fff) 0%, var(--m-cta) 58%, color-mix(in srgb, var(--m-cta) 82%, #000) 100%);
    color: var(--m-cta-ink);
  }
  .app-shell--m.app-shell--work .app-shell__content { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--spacing-6)); }
  /* Kurye kipindeki hesap sayfaları (ADR-063): sitenin telefon üst çubuğu çizilmez; sayfanın başlığı ve geri düğmesi kurye üst menüsünün
     altındaki satırdadır (work-pagebar), aynı bölüm renginde. Ortak sayfaların lacivert üst rengi (Hesabım'ın üst bloğu) de bu renge geçer. */
  .app-shell--m.app-shell--work.app-shell--work-inset { --m-top: var(--m-bar); }
  .app-shell--m .work-pagebar { display: block; background: var(--m-bar); color: #eaf1fb; }
}

/* ==================================================================== Aşama 8: giriş ve metin sayfaları */
@media (max-width: 1023.98px) {
}

/* ==================================================================== Tam mobil test (2026-10-30) düzeltmeleri */
@media (max-width: 1023.98px) {
  /* Çevrimdışı bandı telefonda üst çubuğun altında içerikle aynı akışta durur (yeni sürüm bandı gibi). Sabit (fixed) olduğu için
     sayfanın ilk ~48 px'ini örtüyordu: Taleplerim'in arama kutusu, Hesabım'daki ad satırı, Ürün ara'nın adım çubuğu. Sohbette üst
     çubuk yoktur; orada sabit kalır. */
  .app-shell--m:not(:has(.chat-page .chat-window)) .offline-banner { position: relative; top: auto; }
  /* Sohbette üst çubuk yoktur; sabit bant sohbet başlığının (geri düğmesi, kişi) üstüne biniyordu. Bant yazma alanının hemen
     üstüne iner: "mesajlarınız saklanır" bilgisi de yazarken görülür. Yükseklik yazma alanınınkidir (dokunma hedefi + iç boşluk). */
  .app-shell--m:has(.chat-page .chat-window) .offline-banner {
    top: auto; bottom: calc(var(--safe-bottom) + var(--min-touch-target) + 2 * var(--spacing-2) + 1px);
  }
}

/* ==================================================================== Cila: dokunma geri bildirimi (tam mobil test 2026-10-30)
   Dokunma vurgusu bütün sitede kapalıdır (design-system.css html) ve telefonda üzerine gelme (hover) yoktur: Hesabım satırları, bölüm
   menüsü satırları, alt menü sekmeleri ve üst çubuğun hapları basılınca hiçbir tepki vermiyordu. Basılan satır bir ton koyulaşır, alt
   menü simgesi ve haplar hafifçe küçülür (üst çubuğun yuvarlak düğmeleri ve bölüm kartları zaten böyleydi). Dokunmatik ekranda bir
   satıra dokunup geri dönünce üzerine gelme rengi satırda takılı kalmaz. Rozetteki sayı sabit genişliktedir (sayı değişince oynamaz). */
@media (max-width: 1023.98px) {
  .app-shell--m .hub__row { transition: background-color .12s ease-out; }
  .app-shell--m .hub__row:active { background: var(--bg-surface-hover); }
  .app-shell--m .aswitch__row { transition: background-color .12s ease-out; }
  .app-shell--m .aswitch__row:active { background: rgba(255, 255, 255, .12); }
  .app-shell--m .mobile-bottom-nav .nav-item:not(.action-create) .icon { transition: transform .12s ease-out; }
  .app-shell--m .mobile-bottom-nav .nav-item:not(.action-create):active .icon { transform: scale(.88); }
  .app-shell--m .mobile-bottom-nav .nav-item .badge-dot { font-variant-numeric: tabular-nums; }
  .app-shell--m :is(.pbar__pill, .pbar__avatar, .pbar__login, .pbar__wallet, .work-topbar__menu-btn) { transition: transform .12s ease-out, background-color .15s; }
  .app-shell--m :is(.pbar__pill, .pbar__avatar, .pbar__login, .pbar__wallet, .work-topbar__menu-btn):active { transform: scale(.96); }
}
@media (max-width: 1023.98px) and (hover: none) {
  .app-shell--m .hub__row:hover:not(:active) { background: none; }
  .app-shell--m .aswitch__row:hover:not(:active):not(.is-current) { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell--m .mobile-bottom-nav .nav-item .icon,
  .app-shell--m :is(.pbar__pill, .pbar__avatar, .pbar__login, .pbar__wallet, .work-topbar__menu-btn) { transition: none; }
  .app-shell--m .mobile-bottom-nav .nav-item:active .icon,
  .app-shell--m :is(.pbar__pill, .pbar__avatar, .pbar__login, .pbar__wallet, .work-topbar__menu-btn):active { transform: none; }
}

/* ==================================================================== Bölüm ön sayfaları (v8; docs/tasarim/telefon/anasayfa-v8.html →
   "bölüm sayfaları", ürün sahibinin onayı). /carsi, /yemek ve /usta'da (AppShell .app-shell--front) üst çubuk bölümün doygun renginde
   gradyandır: Çarşı kehribar (#ffb829 → #f47b00, üzerinde koyu yazı #2a1400), Yemek domates (#ff6f43 → #dd3418), Usta zümrüt
   (#1db878 → #0c8558). Gradyan çubuktan sayfanın arama bandına kesintisiz akar: çubuk ve band aynı gradyanı aynı boyda
   (--m-front-h = çubuk + 64 px arama bandı) çizer, band kendi payını çubuğun yüksekliği kadar yukarıdan alır. Gradyan dikeydir; üst
   ucu durum çubuğunun rengidir (AppShell.FrontTop*). İçerik beyaz ve sadedir; renk yalnız üst çubukta, seçili sekmede ve ortadaki ana
   düğmede. --m-top kenar halkalarında (rozet) kullanıldığı için gradyan değil düz renktir; bölüm menüsü bölümün koyu renginde açılır.
   Bölümün öteki sayfaları (alt sayfalar, panel) koyu çubukta kalır. Masaüstü değişmez. */
@media (max-width: 1023.98px) {
  .app-shell--m.app-shell--front {
    --m-front-h: calc(56px + var(--safe-top) + 64px);
    --m-front-g: linear-gradient(180deg, #ffb829 0%, #f47b00 100%);
    --m-front-top: #ffb829;
    --m-front-ink: #2a1400;
    --m-front-tint: rgba(42, 20, 0, .1);
    --m-front-badge: #0b1f38;
    --m-front-badge-ink: #fff;
    --m-top: #f8930f;
    --m-cta: #0b1f38;
    --m-cta-ink: #fff;
    --m-link: #b35f00;
  }
  .app-shell--m.app-shell--front.app-shell--area-yemek {
    --m-front-g: linear-gradient(180deg, #ff6f43 0%, #dd3418 100%);
    --m-front-top: #ff6f43;
    --m-front-ink: #fff;
    --m-front-tint: rgba(255, 255, 255, .18);
    --m-front-badge: #fff;
    --m-front-badge-ink: #cf4418;
    --m-top: #e84a26;
    --m-cta: #dd3418;
    --m-link: #cf4418;
  }
  .app-shell--m.app-shell--front.app-shell--area-usta {
    --m-front-g: linear-gradient(180deg, #1db878 0%, #0c8558 100%);
    --m-front-top: #1db878;
    --m-front-ink: #fff;
    --m-front-tint: rgba(255, 255, 255, .18);
    --m-front-badge: #fff;
    --m-front-badge-ink: #0c8558;
    --m-top: #14a56c;
    --m-cta: #0c8558;
    --m-link: #0c8558;
  }
  [data-theme="dark"] .app-shell--m.app-shell--front { --m-link: #ffb14a; }
  [data-theme="dark"] .app-shell--m.app-shell--front.app-shell--area-yemek { --m-link: #ff9a78; }
  [data-theme="dark"] .app-shell--m.app-shell--front.app-shell--area-usta { --m-link: var(--mint-400); }
  .app-shell--m.app-shell--front .app-shell__main { background: var(--bg-surface); }
  [data-theme="dark"] .app-shell--m.app-shell--front .app-shell__main { background: var(--bg-app); }

  /* Çubuk: gradyanın ilk payı; kaydırınca yapışık kalan çubuk aynı üst payı gösterir. */
  .app-shell--m.app-shell--front .pbar {
    background: var(--m-front-g) 0 0 / 100% var(--m-front-h) no-repeat, var(--m-front-top);
    color: var(--m-front-ink);
  }
  /* Sayfanın arama bandı (CarsiHome, FoodHome, UstaHome) bu sınıfı taşır: gradyanın çubuktan sonraki payı. */
  .app-shell.app-shell--m.app-shell--front .m-front-band.m-front-band {
    background: var(--m-front-g) 0 calc(-1 * (56px + var(--safe-top))) / 100% var(--m-front-h) no-repeat, var(--bg-surface);
  }
  [data-theme="dark"] .app-shell.app-shell--m.app-shell--front .m-front-band.m-front-band {
    background: var(--m-front-g) 0 calc(-1 * (56px + var(--safe-top))) / 100% var(--m-front-h) no-repeat, var(--bg-app);
  }
  /* Çubuktaki her öğe bölümün mürekkebinde (Çarşı kehribarında beyaz okunmaz): bölüm hapı, zil, rozet, kredi, giriş, geri, başlık. */
  .app-shell--m.app-shell--front :is(.pbar__ib, .pbar__wallet, .pbar__avatar, .pbar__pill) { background: var(--m-front-tint); color: var(--m-front-ink); }
  .app-shell--m.app-shell--front :is(.pbar__ib, .pbar__wallet, .pbar__avatar, .pbar__pill):hover { background: var(--m-front-tint); color: var(--m-front-ink); }
  .app-shell--m.app-shell--front .pbar__back { background: transparent; }
  .app-shell--m.app-shell--front :is(.pbar__title, .pbar__title small) { color: var(--m-front-ink); }
  .app-shell--m.app-shell--front .pbar__wallet.is-low { background: rgba(42, 20, 0, .16); color: var(--m-front-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
  .app-shell--m.app-shell--front .pbar__badge { background: var(--m-front-badge); color: var(--m-front-badge-ink); box-shadow: 0 0 0 2px var(--m-top); }
  .app-shell--m.app-shell--front .pbar__login { background: #fff; color: #2a1400; }
  .app-shell--m.app-shell--front .aswitch__btn { background: var(--m-front-tint); color: var(--m-front-ink); }
  .app-shell--m.app-shell--front .aswitch__btn:hover, .app-shell--m.app-shell--front .aswitch__btn.is-open { background: var(--m-front-tint); }
  .app-shell--m.app-shell--front .aswitch__chev { color: currentColor; opacity: .75; }
  .app-shell--m.app-shell--front .aswitch__img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
  .app-shell--m.app-shell--front .aswitch__menu { background: var(--m-bar); }
  /* Arama sayfanın kendi kutusundadır (çubuğun hemen altında); çubuktaki arama düğmesi yinelenmez. */
  .app-shell--m.app-shell--front .pbar__ib[data-testid="phone-search-toggle"] { display: none; }

  /* Bağlam satırı (v8 .ctx): bandın altında beyaz tek satır (son aramalar, Teslimat / Gel al ve adres, konum ve acil iş). */
  .app-shell.app-shell--m.app-shell--front .m-front-ctx.m-front-ctx { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); }
  [data-theme="dark"] .app-shell.app-shell--m.app-shell--front .m-front-ctx.m-front-ctx { background: var(--bg-app); }
}
