/* Phone-specific interaction surfaces; desktop layouts remain in their components. */
.mobile-task-link { display: none; }
.sheet-grip { display: none; }
.mobile-filter-sheet { color: var(--text-primary); background: #0c140f; border: 1px solid #365340; }
.mobile-filter-sheet::backdrop { background: #000a; }
@media (max-width: 768px) {
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .header .header-nav { gap: 4px; justify-content: space-between; }
    .header .header-free { margin-right: 0; }
    .header .header-text-link { min-width: 44px; min-height: 44px; justify-content: center; font-size: 10px; }
    .header .header-workspace-link { padding-left: 6px; }
    .main-content :is(button, select, summary), .account-page :is(button, summary), .remix-page :is(button, summary) { min-height: 44px; }
    .main-content button { min-width: 44px; }
    .main-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select) { font-size: 16px; }
    .main-content :is(.pagination-link, .hero-text-link, .account-kit-download, .account-browse-link, .remix-back, .remix-secondary) { min-height: 44px; display: inline-flex; align-items: center; }
    .velocity-mode-btn, .velocity-period-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .saved-open { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; min-height: 48px; }
    .saved-dialog, .mobile-filter-sheet { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: min(88dvh, 760px); border-radius: 22px 22px 0 0; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
    .sheet-grip { display: flex; justify-content: center; align-items: center; width: 100%; height: 44px; padding: 0; border: 0 !important; background: transparent !important; touch-action: none; cursor: grab; }
    .sheet-grip::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: #647b6c; }
    .saved-dialog-heading h2, .mobile-filter-sheet h2 { font: 600 23px var(--font-sans); margin: 0; }
    .saved-dialog-heading button { min-width: 60px; min-height: 44px; }
    .mobile-filter-sheet [data-sheet-close] { padding: 8px 12px; border: 1px solid #365340; border-radius: 8px; background: #17271d; color: #c5ebd0; cursor: pointer; }
    :is(a, button, summary, select) { -webkit-tap-highlight-color: transparent; }
    .saved-dialog li { padding-block: 12px; }
    .saved-dialog li > a { min-height: 44px; display: flex; align-items: center; }
    .saved-dialog-actions button { flex: 1; }
    .mobile-filter-sheet .filters-row { display: flex !important; flex-direction: column; gap: 16px; margin-top: 20px; }
    .mobile-filter-sheet .filter-dropdown { flex: none; width: 100%; }
    .mobile-filter-sheet .filter-select { width: 100%; min-height: 48px; font-size: 16px; }
    .mobile-filter-sheet .btn-random-exe { display: none; }
    .mobile-filter-sheet .filter-chip { min-height: 44px; }
    .sheet-apply { width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 10px; background: #2bdf79; color: #041309; font: 600 14px var(--font-sans); }
    .mobile-task-link { position: fixed; display: flex; align-items: center; justify-content: center; gap: 8px; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 144px); min-height: 48px; background: #2bdf79; color: #041309; border: 1px solid #55df8b; border-radius: 24px; z-index: 110; font: 600 14px var(--font-sans); text-decoration: none; box-shadow: 0 4px 20px #0005; }
    .mobile-task-link[hidden] { display: none; }
    body.mobile-keyboard-open :is(.mobile-task-link, .saved-open, .saved-feedback) { visibility: hidden; }
    .research-tabs { gap: 8px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .research-tabs a { flex: 1 0 auto; justify-content: center; padding-inline: 10px; min-height: 48px; scroll-snap-align: start; }
    .platform-options label, .kit-steps-tab { min-height: 44px; padding: 10px; }
    .kit-steps-switch { display: flex; flex-wrap: wrap; }
    .kit-steps-tab { flex: 1 1 150px; white-space: normal; }
    .screenshots-scroll, .screenshots-container { scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
    .screenshot-item { scroll-snap-align: center; }
    .account-page { padding-inline: 0; }
    .account-tabs { position: sticky; top: var(--header-h, 108px); z-index: 5; background: #0c140f; padding: 6px; border: 1px solid #294032; border-radius: 10px; gap: 4px; }
    .account-tabs button { flex: 1; min-height: 48px; white-space: normal; }
    .account-kit-manage summary { min-height: 44px; align-items: center; color: #b6c5bb; }
    .account-page .account-settings .account-card { padding: 18px; }
    .account-actions { gap: 12px; }
    .remix-page { padding-inline: 0; }
    .remix-source > summary { min-height: 64px; padding: 14px; }
    .remix-source input[type=search], .remix-cloud input { min-height: 48px; }
    .remix-choice { min-height: 48px; align-items: center; padding: 12px !important; }
    .remix-choice :is(input[type=checkbox], input[type=radio]) { width: 20px; height: 20px; flex: 0 0 20px; }
    .remix-brief-body { max-height: none; overflow: visible; }
    .remix-brief { scroll-margin-top: calc(var(--header-h, 108px) + 16px); }
    .remix-download-area .btn-copy-prompt { min-height: 52px; }
    .remix-conflict-columns pre { max-height: 200px; overflow: auto; }
    #zone-build-kit { scroll-margin-top: calc(var(--header-h, 108px) + 16px); }
}
