/**
 * Phase 7 — Production mobile Release Studio contract (≤900px).
 * Unifies drawer insets, kills off-screen desktop pane width, hardens catalog/forms/splits.
 */
@media (max-width: 900px) {
  html.ui-v2,
  html.ui-v2 body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  html.ui-v2 .desktop-only { display: none !important; }
  html.ui-v2 .mobile-only { display: inline-flex !important; }

  /* Single content pane — remove desktop rails from layout flow */
  html.ui-v2 .editor-page.editor-ux-v2 .editor-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    gap: 0 !important;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
  }

  html.ui-v2 .editor-layout > .editor-context-panel,
  html.ui-v2 .editor-contextual-rail[data-rail-mode="steps"],
  html.ui-v2 .project-rail,
  html.ui-v2 .editor-layout > aside.editor-contextual-rail[data-rail-mode="steps"],
  html.ui-v2 .staff-tools-context {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Tracks rail only as sheet when open — never as side column / off-screen width */
  html.ui-v2 .editor-contextual-rail[data-rail-mode="tracks"]:not(.drawer-open) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  html.ui-v2 .editor-contextual-rail[data-rail-mode="tracks"].drawer-open,
  html.ui-v2 #editor-tracks-drawer.drawer-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: min(88dvh, calc(100dvh - 56px)) !important;
    z-index: 70 !important;
    transform: none !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18) !important;
    background: #fff !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  html.ui-v2 #editor-tracks-drawer.drawer-open .track-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  html.ui-v2 .editor-readiness-drawer {
    display: none !important;
  }

  html.ui-v2 .editor-readiness-drawer.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: min(60dvh, calc(100dvh - 72px)) !important;
    z-index: 70 !important;
    transform: translate3d(0, 0, 0) !important;
    border-radius: 16px 16px 0 0 !important;
    background: #fff !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  html.ui-v2 .editor-readiness-drawer:not(.open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    height: 0 !important;
  }

  html.ui-v2 .editor-readiness-drawer.open .readiness-drawer-body,
  html.ui-v2 .editor-readiness-drawer.open [data-readiness-root] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.ui-v2 .editor-mobile-drawer-backdrop:not(.hidden) {
    z-index: 65 !important;
  }

  /* Compact top context */
  html.ui-v2 .editor-topbar.editor-draft-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    min-height: 0;
  }

  html.ui-v2 .editor-topbar .editor-title {
    display: contents;
  }

  html.ui-v2 .editor-topbar .editor-title-copy {
    min-width: 0;
  }

  html.ui-v2 .editor-topbar .editor-title-copy h1 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html.ui-v2 .editor-topbar .editor-title-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
  }

  html.ui-v2 .editor-topbar .editor-title-org {
    font-size: 12px;
    color: var(--muted, #667085);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.ui-v2 .editor-topbar .editor-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: auto;
  }

  html.ui-v2 .editor-topbar .editor-actions .button-primary,
  html.ui-v2 .editor-topbar .editor-action-reason,
  html.ui-v2 .editor-topbar #editor-withdraw span {
    display: none !important;
  }

  html.ui-v2 .editor-topbar #autosave-state {
    font-size: 11px;
    max-width: 9rem;
    text-align: right;
  }

  /* Stepper — centered stage chips */
  html.ui-v2 .editor-mobile-stepper {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    scrollbar-width: none;
    background: #fff;
  }

  html.ui-v2 .editor-mobile-stepper::-webkit-scrollbar { display: none; }

  html.ui-v2 .editor-mobile-stepper .mobile-step {
    scroll-snap-align: center;
    flex: 0 0 auto;
    min-height: 52px;
    min-width: 76px;
    padding: 8px 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px;
    position: relative;
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step > span:first-child {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #edf0f3;
    font-size: 11px;
    font-weight: 750;
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step small {
    font-size: 11px;
    font-weight: 650;
    color: var(--muted, #667085);
    line-height: 1.15;
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step.active {
    border-color: var(--brand-orange, #f96302);
    background: color-mix(in srgb, var(--brand-orange, #f96302) 10%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-orange, #f96302) 35%, transparent);
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step.active > span:first-child {
    background: var(--brand-orange, #f96302);
    color: #fff;
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step.active small {
    color: var(--ink, #0b0f14);
  }

  html.ui-v2 .editor-mobile-stepper .mobile-step .step-blocker {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    display: grid;
    place-items: center;
  }

  /* Forms — phone-first */
  html.ui-v2 .inspector {
    border: 0 !important;
    background: transparent !important;
  }

  html.ui-v2 .inspector-body {
    padding: 14px 14px 28px !important;
    max-width: 100% !important;
  }

  html.ui-v2 .inspector .form-grid,
  html.ui-v2 .inspector .form-grid-2,
  html.ui-v2 .inspector .form-grid-3,
  html.ui-v2 .section-card .form-grid,
  html.ui-v2 .section-card .form-grid-2,
  html.ui-v2 .section-card .form-grid-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  html.ui-v2 .inspector .field > span:first-child,
  html.ui-v2 .inspector .field-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  html.ui-v2 .inspector .control,
  html.ui-v2 .inspector select.control,
  html.ui-v2 .inspector textarea.control,
  html.ui-v2 .inspector input.control,
  html.ui-v2 .mr-create-wizard .control,
  html.ui-v2 .mr-create-wizard input.control,
  html.ui-v2 .mr-create-wizard select.control {
    min-height: 48px;
    font-size: 16px !important; /* iOS zoom guard */
    border-radius: 12px;
  }

  html.ui-v2 .inspector textarea.control {
    min-height: 96px;
  }

  html.ui-v2 .inspector .button,
  html.ui-v2 .inspector .icon-button,
  html.ui-v2 .editor-bottom-bar .button {
    min-height: 44px;
    min-width: 44px;
  }

  html.ui-v2 .inspector .merphi-section-card,
  html.ui-v2 .inspector .inspector-section,
  html.ui-v2 .inspector .section-card {
    margin-bottom: 16px;
    padding: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  html.ui-v2 .inspector .section-title-row {
    margin-bottom: 14px;
  }

  html.ui-v2 .inspector .section-title-row h2,
  html.ui-v2 .inspector .section-title-row h3 {
    font-size: 17px;
    margin: 0 0 4px;
  }

  html.ui-v2 .merphi-choice-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html.ui-v2 .merphi-choice-card {
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  html.ui-v2 .merphi-choice-card strong {
    font-size: 15px;
  }

  /* Artwork / audio intake — tap-first */
  html.ui-v2 .artwork-drop,
  html.ui-v2 .cover-upload-zone,
  html.ui-v2 [data-audio-multi-drop],
  html.ui-v2 .dropzone {
    min-height: 132px;
    padding: 18px 16px !important;
    border-radius: 16px !important;
    text-align: center;
  }

  html.ui-v2 .artwork-drop .button,
  html.ui-v2 [data-audio-multi-drop] .button,
  html.ui-v2 .cover-upload-zone .button {
    width: 100%;
    justify-content: center;
  }

  /* Sticky dock — clear two-row phone chrome */
  html.ui-v2 .editor-bottom-bar.sticky-action-bar,
  html.ui-v2 .editor-bottom-bar.mr-editor-dock {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60 !important;
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-areas:
      "meta meta"
      "tracks primary";
    gap: 8px;
    align-items: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line, #e5e7eb);
    max-width: 100vw;
    box-shadow: 0 -10px 28px rgba(9, 10, 13, 0.08);
  }

  html.ui-v2 .editor-bottom-bar .autosave-state-mobile {
    grid-area: meta;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted, #667085);
    max-width: none;
  }

  html.ui-v2 .editor-bottom-bar .button-secondary.mobile-only[data-open-tracks-drawer] {
    grid-area: tracks;
    min-width: 0;
  }

  html.ui-v2 .editor-bottom-bar .button-primary,
  html.ui-v2 .editor-bottom-bar [data-open-readiness-drawer].button-primary,
  html.ui-v2 .editor-bottom-bar #editor-submit-mobile {
    grid-area: primary;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }

  html.ui-v2 .editor-bottom-bar .button-secondary.mobile-only[data-open-readiness-drawer]:not(.button-primary) {
    display: none !important;
  }

  html.ui-v2 .editor-page.editor-ux-v2 .editor-layout {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html.ui-v2 .autosave-state-mobile {
    font-size: 12px;
    color: var(--muted, #667085);
  }

  /* Splits containment — stack cards */
  html.ui-v2 .split-row.repeat-row,
  html.ui-v2 #split-rows .repeat-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
  }

  html.ui-v2 .split-row .field,
  html.ui-v2 .split-row .field.wide,
  html.ui-v2 .split-row .field.narrow {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  html.ui-v2 .split-total {
    width: 100%;
    margin-top: 8px;
  }

  /* Rights territories */
  html.ui-v2 .territory-desktop-panes,
  html.ui-v2 .territory-two-pane {
    display: block !important;
  }

  html.ui-v2 .territory-pane {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Catalog — phones one column; tablet may keep 2 */
  html.ui-v2 .catalog-toolbar,
  html.ui-v2 .catalog-filters-inline {
    flex-wrap: wrap;
  }

  html.ui-v2 .catalog-search,
  html.ui-v2 .catalog-toolbar .control {
    width: 100%;
    min-height: 48px;
  }

  html.ui-v2 .catalog-grid-title,
  html.ui-v2 .catalog-grid-card .catalog-title,
  html.ui-v2 .catalog-list-copy strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Rights: force mobile territory tabs / single pane */
  html.ui-v2 .territory-panes {
    grid-template-columns: 1fr !important;
  }

  html.ui-v2 .territory-mobile-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  html.ui-v2 .territory-pane {
    display: none !important;
  }

  html.ui-v2 .territory-workspace:not([data-territory-mobile-bound]) .territory-pane[data-territory-pane="pool"],
  html.ui-v2 .territory-pane.is-mobile-active {
    display: grid !important;
  }

  html.ui-v2 .territory-summary {
    position: sticky;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    padding: 10px 0;
    z-index: 2;
  }

  /* Drag/drop de-emphasized on coarse pointers */
  @media (pointer: coarse) {
    html.ui-v2 [data-audio-multi-drop] .drop-hint-desktop,
    html.ui-v2 .audio-intake-dnd-copy {
      display: none !important;
    }
  }

  /* Staff tools sheet */
  html.ui-v2 .staff-tools-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 72;
    max-height: min(70dvh, calc(100dvh - 56px));
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  html.ui-v2 .staff-tools-sheet.hidden,
  html.ui-v2 .staff-tools-sheet[hidden] {
    display: none !important;
  }

  html.ui-v2 .staff-tools-sheet > .staff-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #d0d5dd;
    margin: 8px auto 0;
  }

  html.ui-v2 .staff-tools-sheet > header,
  html.ui-v2 .editor-readiness-drawer > header,
  html.ui-v2 #editor-tracks-drawer .track-rail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    gap: 12px;
  }

  html.ui-v2 .staff-tools-sheet > header .icon-button,
  html.ui-v2 .editor-readiness-drawer > header .icon-button,
  html.ui-v2 [data-close-tracks-drawer],
  html.ui-v2 [data-close-readiness-drawer],
  html.ui-v2 [data-close-staff-tools-sheet] {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    touch-action: manipulation;
  }

  html.ui-v2 .staff-tools-sheet > header .icon-button svg,
  html.ui-v2 .editor-readiness-drawer > header .icon-button svg,
  html.ui-v2 [data-close-tracks-drawer] svg,
  html.ui-v2 [data-close-readiness-drawer] svg {
    width: 20px !important;
    height: 20px !important;
  }

  html.ui-v2 .staff-tools-sheet .staff-tools-panel {
    border: 0;
    padding: 0;
  }

  html.ui-v2 .staff-tools-sheet .staff-tools-panel > summary {
    display: none;
  }

  html.ui-v2 .staff-tools-sheet .staff-tools-body {
    display: block !important;
  }

  html.ui-v2 .staff-tools-sheet-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
  }

  html.ui-v2 .staff-tools-sheet [data-staff-sheet-body] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
  }

  /* Delivery / DSP cards */
  html.ui-v2 .dsp-destination-grid,
  html.ui-v2 .delivery-route-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Contributor cards */
  html.ui-v2 .credit-person-list .repeat-row,
  html.ui-v2 .credit-person-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  html.ui-v2 .credit-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  html.ui-v2 .credit-role-chips .tag,
  html.ui-v2 .credit-role-chips button {
    min-height: 44px;
  }

  /* —— Create release wizard (phone) —— */
  html.ui-v2 .modal.mr-mobile-wizard,
  html.ui-v2 #modal.mr-mobile-wizard,
  html.ui-v2 body.mr-mobile-wizard-open .modal,
  html.ui-v2 .modal-backdrop:has(.mr-mobile-wizard) .modal,
  html.ui-v2 .modal-backdrop:has(.mr-create-wizard) .modal {
    background: #f6f7f9;
  }

  html.ui-v2 .mr-mobile-wizard .modal-head,
  html.ui-v2 .modal.mr-mobile-wizard .modal-head {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px 16px calc(12px);
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  html.ui-v2 .mr-mobile-wizard .modal-head h2,
  html.ui-v2 .modal.mr-mobile-wizard .modal-head h2 {
    font-size: 20px;
    margin: 0;
  }

  html.ui-v2 .mr-create-wizard {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    min-height: 100%;
    padding: 0 !important;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-progress {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 4px 0 0;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-progress span {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-progress span.active {
    background: var(--brand-orange, #f96302);
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-step {
    display: grid;
    gap: 14px;
    padding: 4px 2px 24px;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-step-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-step-lead {
    margin: -4px 0 4px;
    color: var(--muted, #667085);
    font-size: 14px;
    line-height: 1.45;
  }

  html.ui-v2 .mr-create-wizard .field {
    display: grid;
    gap: 6px;
  }

  html.ui-v2 .mr-create-wizard .merphi-choice-grid {
    gap: 10px !important;
  }

  html.ui-v2 .mr-create-wizard .merphi-choice-card {
    min-height: 72px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  html.ui-v2 .mr-create-wizard .notice-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand-orange, #f96302) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-orange, #f96302) 22%, #e8e2da);
    font-size: 13px;
    line-height: 1.4;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-review-grid,
  html.ui-v2 .mr-create-wizard .key-value-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html.ui-v2 .mr-create-wizard .key-value {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  html.ui-v2 .mr-create-wizard .key-value small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted, #667085);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid !important;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: auto;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, #f6f7f9 18%);
    border-top: 0;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-footer .button {
    min-height: 48px;
    border-radius: 14px;
    justify-content: center;
  }

  html.ui-v2 .mr-create-wizard .mr-wizard-footer .button-primary {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-orange, #f96302) 28%, transparent);
  }

  html.ui-v2 #modal-body:has(.mr-create-wizard),
  html.ui-v2 .modal-body:has(.mr-create-wizard) {
    padding: 16px 16px 0 !important;
    background: #f6f7f9;
  }
}

@media (max-width: 767px) {
  html.ui-v2 .catalog-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  /* Catalog create / fill — phone entry points */
  html.ui-v2 .m2-workspace-page .m2-release-list {
    display: grid;
    gap: 10px;
  }

  html.ui-v2 .m2-release-row {
    border-radius: 14px !important;
    min-height: 92px !important;
  }

  html.ui-v2 .global-header .button-create-mobile,
  html.ui-v2 .header-create-compact,
  html.ui-v2 #global-create-release {
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }

  html.ui-v2 .m2-page-header .page-actions .button,
  html.ui-v2 .m2-catalog-transfer {
    min-height: 48px;
    border-radius: 14px;
  }

  html.ui-v2 .catalog-empty,
  html.ui-v2 .m2-empty,
  html.ui-v2 [data-catalog-empty] {
    padding: 28px 18px !important;
    text-align: center;
  }

  html.ui-v2 .catalog-empty .button,
  html.ui-v2 .m2-empty .button,
  html.ui-v2 [data-empty-create-release] {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  html.ui-v2 .editor-topbar .editor-title-org {
    max-width: 11rem;
  }
}

@media (min-width: 901px) {
  html.ui-v2 .staff-tools-sheet-trigger.mobile-staff-only {
    display: none !important;
  }
}

/* Landscape phone: keep single pane, shorter sheets */
@media (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  html.ui-v2 .editor-contextual-rail[data-rail-mode="tracks"].drawer-open,
  html.ui-v2 #editor-tracks-drawer.drawer-open,
  html.ui-v2 .editor-readiness-drawer.open,
  html.ui-v2 .staff-tools-sheet {
    max-height: 92dvh !important;
  }
}
