@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; }

    .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; }

    .toast-area,
    #toastArea {
        right: 12px !important;
        left: auto !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        max-width: calc(100vw - 24px);
        align-items: flex-end !important;
    }

    .mp-toast { max-width: calc(100vw - 24px); }

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

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

    .mp-logo { height: 32px; }

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

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

    .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; }
    .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 46px 16px 14px; }
    .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; }
}
