@media (max-width: 767px) {
    .auth-shell,
    .auth-shell.shell-register {
        display: flex;
        flex-direction: column;
        width: min(100% - 28px, 560px);
        gap: 22px;
        align-items: stretch;
        padding: 22px 0 28px;
        min-height: 100vh;
    }

    .auth-card { order: -1; }

    .auth-hero h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .hero-copy { font-size: 14px; }

    .feature-grid,
    .form-grid { grid-template-columns: 1fr; }

    .span-2 { grid-column: auto; }

    .ad-satir,
    .sifre-satir {
        grid-column: 1 / -1;
        display: grid;
        gap: 10px;
    }

    .ad-satir { grid-template-columns: 128px 1fr 1fr; align-items: end; }
    .ad-satir .field:first-child label { white-space: nowrap; font-size: 11px; line-height: 1.2; }

    .sifre-satir { grid-template-columns: 1fr 1fr; }

    .ad-satir .field select,
    .ad-satir .field input { min-height: 44px; }

    .sifre-satir .field input { min-height: 44px; padding-right: 36px; font-size: 13px; }

    .phone-control { min-height: 44px; }
    .phone-prefix { min-height: 44px; display: inline-flex; align-items: center; }

    .auth-card { padding: 20px 16px 16px; border-radius: 18px; }

    .card-logo { padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; }

    .card-logo img { max-width: 200px; }

    .card-title { font-size: 22px; }

    .role-btn { min-height: 40px; font-size: 13px; }

    .site-altbar {
        height: auto;
        min-height: calc(44px + env(safe-area-inset-bottom));
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .site-altbar { flex-direction: column; gap: 4px; }
    .site-altbar p { white-space: normal; font-size: 11px; line-height: 1.35; }
    .site-altbar-sag { flex-wrap: wrap; row-gap: 4px; }
    body:has(.site-altbar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    #sidebar { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }

    .toast-area,
    #toastArea {
        right: 12px !important;
        left: 12px !important;
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
        max-width: none;
        align-items: stretch !important;
    }

    .mp-toast { width: 100%; max-width: none; }
    .mp-toast-head { min-height: 44px; }
    .mp-toast-kapat { width: 44px; height: 44px; }

    .mp-shell { padding: 16px 14px 28px; }

    .mp-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .mp-logo { height: 40px; }

    .mp-brand-office { padding-left: 10px; }

    main.flex-1 {
        padding: 12px !important;
    }

    .yonetim-actions { width: 100%; }
    .yonetim-actions form,
    .yonetim-actions button,
    .yonetim-actions select { width: 100%; min-height: 40px; }
    .gib-kimlik { width: 100%; }
    .gib-kimlik input,
    .gib-kimlik button { width: 100%; min-height: 40px; }
    .kdv1-form { grid-template-columns: 1fr; }
    .kdv1-actions { width: 100%; }
    .kdv1-actions button { width: 100%; min-height: 44px; }

    .takvim-only-mobile { display: inline-flex; }
    .takvim-app { position: relative; }
    .takvim-side {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: min(78vh, 640px);
        z-index: 46;
        border-right: 0;
        border-top: 1px solid #e2e8f0;
        border-radius: 18px 18px 0 0;
        transform: translateY(110%);
        transition: transform .22s ease;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .takvim-side.is-open { transform: none; }
    .takvim-main { padding: 8px; }
    .takvim-toolbar { gap: 6px; }
    .takvim-hello-title { font-size: 16px; }
    .takvim-monthnav { margin-left: 0; }
    .takvim-monthnav h1 { min-width: 108px; font-size: 16px; }
    .takvim-views { margin-left: 0; max-width: 100%; overflow-x: auto; }
    .takvim-views button { padding: 0 8px; }
    .takvim-pill span { display: none; }
    .takvim-cell { min-height: 58px; padding: 2px; }
    .takvim-chips, .takvim-more { display: none !important; }
    .takvim-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 16px;
        height: 16px;
        margin: 0 auto;
        border-radius: 99px;
        background: #f3e8ff;
        color: #6d28d9;
        font-size: 10px;
        font-weight: 800;
    }
    .takvim-count.is-holiday { background: #cffafe; color: #0e7490; }
    .takvim-year { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
    .takvim-week { min-width: 720px; }
    .takvim-board { overflow: auto; }
    .takvim-sheet-card {
        width: min(340px, calc(100vw - 24px));
        height: auto;
        max-height: min(70vh, 520px);
        padding: 14px;
        border-radius: 15px;
    }
    .takvim-modal-card {
        width: 100%;
        height: auto;
        max-height: min(86vh, 720px);
        border-radius: 18px 18px 0 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .dash { gap: 12px; }
    .dash-pair,
    .dash-charts,
    .dash-promos,
    .dash-bottom { grid-template-columns: 1fr; }
    .mod { padding: 14px; }
    .mod-line strong { font-size: 28px; }
    .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { min-height: 68px; }
    a.metric { -webkit-tap-highlight-color: transparent; }
    a.tag { display: inline-flex; align-items: center; min-height: 32px; }
    .chart { height: 148px; }
    .chart-plot.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .promo {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        min-height: 0;
    }
    .promo-art { display: none; }
    .promo h2 { font-size: 24px; }
    .deadline-row { grid-template-columns: 1fr 1fr; }
    .link-row > span:first-child { width: 32px; }

    .profile-menu-id { display: none; }
    .profile-menu-pop { width: min(220px, calc(100vw - 24px)); }
    .profil-grid { grid-template-columns: 1fr; }
    .profil .span-2 { grid-column: auto; }
    .profil-card { padding: 16px; }
    .profil-head h1 { font-size: 22px; }
    .profil-actions button { width: 100%; min-height: 44px; }
    .mp-shell { padding: 16px 14px calc(24px + env(safe-area-inset-bottom)); }
    .mp-user { flex-wrap: wrap; justify-content: flex-end; }

    .release-popup {
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .release-popup-card {
        width: 100%;
        max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
        border-radius: 16px;
    }
    .release-popup-head { padding: 16px 52px 16px 14px; }
    .release-popup-close { width: 44px; height: 44px; top: 8px; right: 8px; }
    .release-popup-head h2 { font-size: 18px; }
    .release-popup-body { padding: 12px 12px 6px; }
    #releasePopupItems p { font-size: 13px; }
    .release-popup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 12px;
    }
    .release-popup-actions button { width: 100%; min-height: 44px; }
    .release-popup-actions a { justify-content: center; min-height: 36px; }

    .bilgi { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .bilgi-ust h1 { font-size: 20px; }
    .bilgi-sekmeler { margin-top: 12px; }
    .bilgi-kutular, .bilgi-kota-grid, .bilgi-sifre-grid, .bilgi-form-grid, .bilgi-musavirler, .musavir-satir { grid-template-columns: 1fr; }
    .bilgi-kart-ust, .bilgi-satir-ust { flex-direction: column; }
    .bilgi-kart, .bilgi-musavir { padding: 14px; }
    .bilgi-kart-ust .bilgi-btn, .bilgi-satir-ust .bilgi-btn, .bilgi-actions .bilgi-btn, .bilgi-kart-alt .bilgi-btn { width: 100%; min-height: 44px; }
    .bilgi-kart-alt { flex-direction: column; align-items: stretch; }
    .bilgi-kart-alt form { margin-right: 0; order: 3; }
    .bilgi-kart-alt [data-gib-dogrula] { order: 1; }
    .bilgi-kart-alt > a { order: 2; }
    .bilgi-kart-alt form, .bilgi-actions { width: 100%; }
    .bilgi-kutu input, .bilgi-alan input { height: 44px; font-size: 16px; }
    .musavir-pencere {
        width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow: auto; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .musavir-satir-uzun .bilgi-etiket { min-height: 0; }
    .musavir-pencere .bilgi-alan { grid-template-rows: auto 44px auto; }
    .musavir-pencere .bilgi-alan input, .musavir-pencere .bilgi-pass, .musavir-pencere .bilgi-eye { height: 44px; }
    .musavir-kapat { width: 44px; height: 44px; }
    .musavir-kaydet .bilgi-btn { width: 100%; min-height: 44px; }
    .musavir-pencere.kvkk-pencere, .musavir-pencere.otp-pencere { width: calc(100vw - 16px); }
    .kvkk-metin { max-height: 42dvh; font-size: 14px; }
    .otp-kutular { gap: 6px; }
    .otp-kutular input { width: auto; max-width: none; height: 48px; font-size: 20px; }
    .otp-dogrula, .otp-yeniden { min-height: 44px; }
    .bilgi-hesap { min-height: 44px; }

    .panel-topbar {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .panel-topbar > div:first-child { flex: 1 1 100%; max-width: none; }
    .ust-araclar { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
    .ust-saglik { max-width: 100%; }
    .ust-saglik > button { height: auto; min-height: 44px; flex-wrap: wrap; row-gap: 4px; justify-content: flex-start; }
    .ust-bagli { height: 22px; padding: 0 8px; font-size: 11px; }
    .ust-lisans, .ust-kota { min-height: 36px; height: auto; white-space: normal; }
    .ust-lisans span { white-space: normal; }

    .ayar-link, .ayar-ana { min-height: 44px; }
    .ayar-grup-yer { grid-template-columns: 1fr; }
    .ayar-kart header, .ayar-ekle { flex-direction: column; align-items: stretch; }
    .ayar-kart input[type="email"], .ayar-kart input[type="tel"], .ayar-kart input[type="text"], .ayar-ekle input { height: 44px; font-size: 16px; }
    .ayar-kart button, .ayar-ekle button, .ayar-tehlike { width: 100%; min-height: 44px; }
    .ayar-kart { padding: 14px; }

    .lisans-grid, .lisans-form { grid-template-columns: 1fr; }
    .lisans-form button, .lisans-islemler button, .lisans-islemler form, .lisans-detay { width: 100%; min-height: 44px; }
    .lisans-form input, .lisans-islemler select { height: 44px; font-size: 16px; }
    .lisans-kart { padding: 14px; }
    .lisans-tablo td, .lisans-tablo th { white-space: normal; }

    .ilet-iki, .ilet-iki-kol, .ilet-ozet, .ilet-ekle, .ilet-servisler, .ilet-kural-grid { grid-template-columns: 1fr; }
    .ilet-sablon-satir, .ilet-alici-ust, .ilet-alici-arac, .ilet-ozet-serit { flex-direction: column; align-items: stretch; }
    .ilet-kanal-piller label, .ilet-gonder, .ilet-dosya-btn, .ilet-sablon-satir button { min-height: 44px; }
    .ilet-gonder, .ilet-sablon-satir button { width: 100%; }
    .ilet-baslik, .ilet-satir, .ilet-deneme, .ilet-eylem { flex-direction: column; align-items: stretch; }
    .ilet-baslik .ilet-switch, .ilet-satir .ilet-switch { margin-left: 0; align-self: flex-start; }
    .ilet-switch { width: 44px; height: 26px; }
    .ilet-koyu, .ilet-eylem .ilet-soluk { width: 100%; min-height: 44px; }
    .ilet-sekmeler a, .ilet-form button, .ilet-ekle button, .ilet-yesil, .ilet-soluk, .ilet-mor, .ilet-izin button, .ilet-süz button, .ilet-süz a { min-height: 44px; }
    .ilet-form input, .ilet-form select, .ilet-ekle input, .ilet-süz input, .ilet-süz select, .ilet-saat input { height: 44px; font-size: 16px; }
    .ilet-saat { max-width: none; }
    .ilet-izin, .ilet-dosya { flex-direction: column; align-items: stretch; }
    .ilet-dosya label { min-height: 44px; justify-content: center; }
    .ilet-kart { padding: 14px; }
    .ilet-ust h1 { font-size: 20px; }
    .ilet-detay, .gecmis-popup header button, .ilet-kalem, .gecmis-popup form > button[type="submit"] { min-height: 44px; }
    .ilet-kalem { width: 44px; height: 44px; }
    .gecmis-popup input, .gecmis-popup textarea { font-size: 16px; }
    .gecmis-popup { width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    .gecmis-icerik { max-height: 42dvh; }
    .wa-baslik { flex-direction: column; align-items: flex-start; }
    .wa-baslik .ilet-soluk { margin-left: 0; width: 100%; }
    #waBaglan, #waVazgec, #waGonder { width: 100%; }
    .wa-qr { width: min(240px, 72vw); height: auto; }
    .wa-eylem { justify-content: stretch; }

    main.fm-page { padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important; }
    .fm-top, .fm-toolbar, .fm-toolbar-row, .fm-search { flex-direction: column; align-items: stretch; }
    .fm-toolbar, .fm-menu, .fm-sync { margin-left: 0; width: 100%; }
    .fm-sync { flex-direction: column; align-items: stretch; gap: 6px; }
    .fm-sync-label { align-items: flex-start; }
    .fm-btn, .fm-manuel, .fm-search select { width: 100%; min-height: 44px; }
    .fm-search input, .fm-field input, .fm-field select, .fm-phone { font-size: 16px; min-height: 44px; }
    .fm-stats { grid-template-columns: 1fr 1fr; }
    .fm-metrics, .fm-splits, .fm-form, .fm-pair { grid-template-columns: 1fr; }
    .fm-menu-panel { left: 0; right: 0; width: auto; }
    .fm-modal { padding: 0; align-items: stretch; }
    .fm-dialog {
        width: 100%; height: 100%; max-height: 100dvh; border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .fm-dialog-head, .fm-x, .fm-btn-ghost, .fm-btn-dark { min-height: 44px; }
    .fm-chip { min-height: 44px; }
    .fm-act { width: 36px; height: 36px; }
}
