/* Phone shell: one notice at a time, reachable controls and the same pencil edge. */
.dd-shell-mobile { --club-gutter: .9rem; }
body.dd-shell-mobile { font-size: 16px; background-size: auto, 850px auto, auto; }
.dd-shell-mobile .dd-frame-header { padding-block-start: 8px; background-size: auto 8px, auto 8px, 8px 8px, auto; }
.dd-shell-mobile .dd-frame-bar { min-height: 59px; gap: .55rem; }
.dd-shell-mobile .dd-frame-account { gap: .35rem; }
.dd-shell-mobile .club-brand-name { white-space: normal; }
.dd-shell-mobile .dd-frame-account > a.btn { padding-inline: .6rem; display: inline-flex; align-items: center; white-space: nowrap; }
.dd-shell-mobile .dd-frame-brand { gap: .28rem; font-size: clamp(.98rem, 4.15vw, 1.18rem); }
.dd-shell-mobile .club-brand-icon { width: 30px; height: 30px; }
.dd-shell-mobile .dd-frame-account > a[href*="/login"], .dd-shell-mobile .dd-frame-account > details > summary { min-height: 44px; padding-inline: .68rem; font-size: .88rem; }
.dd-shell-mobile .dd-frame-account .who { max-width: 22vw; }
.dd-shell-mobile .dd-frame-tabs a { min-height: 48px; padding-inline: .25rem; font-size: .77rem; line-height: 1.12; }
.dd-shell-mobile .dd-frame-tabs a.active, .dd-shell-mobile .dd-frame-tabs a[aria-current] { border-radius: 0; box-shadow: inset 0 2px var(--club-sage); }
.dd-shell-mobile .dd-frame-main { padding-block: 15px 29px; }
.dd-shell-mobile .dd-frame-footer { padding-bottom: 1rem; }
.dd-shell-mobile .club-footer { grid-template-columns: 1fr; gap: .95rem; }
.dd-shell-mobile .club-footer::before { height: 8px; background-size: auto, auto, 8px 8px; }
.dd-shell-mobile .club-footer-links { justify-content: start; gap: .15rem 1rem; padding: 0; }
.dd-shell-mobile .club-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.dd-shell-mobile h1 { font-size: 1.85rem; }
.dd-shell-mobile h2 { font-size: 1.35rem; }
.dd-shell-mobile .club-welcome-phone { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 16px; }
.dd-shell-mobile .club-welcome-copy { padding: .9rem 1rem 0; }
.dd-shell-mobile .club-welcome .view.hero h1 { font-size: clamp(1.65rem, 5.8vw, 2.1rem); }
.dd-shell-mobile .club-welcome .view.hero p { font-size: .94rem; }
.dd-shell-mobile .club-welcome-art img { height: clamp(96px, 28vw, 144px); object-fit: contain; mask-image: linear-gradient(to right, transparent 3%, #000 21%, #000 79%, transparent 97%); }
.dd-shell-mobile .club-welcome [data-view="next_meetup"] { padding: .55rem 1rem .75rem; border-top: 1px solid #e6e5d8; }
.dd-shell-mobile .club-next-line { margin: 0; }
.dd-shell-mobile .club-check-divider { margin: 17px 0; height: 5px; }
.dd-shell-mobile [data-view="month"], .dd-shell-mobile [data-view="past_tournaments"] { padding: .7rem; }
.dd-shell-mobile [data-view="month"] p { font-size: .87rem; }
.dd-shell-mobile [data-view="month"] :is(.cell, .day, .cal-day, [data-dd-cell]) { min-height: 46px; padding-inline: 2px; }
.dd-shell-mobile [data-view="month"] :is(.item, .cal-item, .cal-event, a[href*="/tournaments/"], a[href*="/meetups/"]):not([href*="/admin/"]) { font-size: .72rem; line-height: 1.25; padding-inline: .15rem; white-space: normal; }
.dd-shell-mobile [data-view="month"] :is(.btn, .cal-nav a, .calendar-nav a) { min-height: 44px; }
.dd-shell-mobile .club-archive-row { grid-template-columns: minmax(0, 1fr) auto; gap: .22rem .7rem; }
.dd-shell-mobile .club-archive-title { grid-column: 1 / -1; }
.dd-shell-mobile .club-archive-results { grid-column: 2; }
.dd-shell-mobile .club-archive-title a, .dd-shell-mobile .club-archive-results a { display: inline-flex; align-items: center; min-height: 44px; }
.dd-shell-mobile :is(.btn, button[type="submit"]:not(.link), select, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])) { min-height: 44px; }
.dd-shell-mobile :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { font-size: 1rem; }
.dd-shell-mobile .form fieldset, .dd-shell-mobile .form-view .form fieldset, .dd-shell-mobile .fields { grid-template-columns: minmax(0, 1fr); }
.dd-shell-mobile .form-view.settings .form fieldset, .dd-shell-mobile .fields { padding: .8rem .9rem; }
.dd-shell-mobile [data-view="player"] .field:has(input[name="cfc_id"]) { padding: .65rem .7rem; }
.dd-shell-mobile [data-view="player"] input[name="cfc_id"] { width: 100%; }
.dd-shell-mobile [data-view="player"] .club-cfc-note:not(:empty) { width: 100%; font-size: .95rem; }
.dd-shell-mobile .view.detail .page-head, .dd-shell-mobile .card-head { flex-wrap: wrap; gap: .4rem; }
.dd-shell-mobile .view.text:is([data-view="sign_in"], [data-view="signin"]) { padding-right: 5.5rem; background-size: 4.6rem auto; }
.dd-shell-mobile .view.list .table-wrap { max-width: 100%; overflow: auto; }

/* Event-facing, short tables become stacked entry slips. Keep the wide operator
   tables scrollable: their column headers stay aligned for comparison and export. */
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) :is(table, tbody) { display: block; min-width: 0; width: 100%; }
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .9rem; padding: .75rem .85rem; margin-bottom: .5rem; background: var(--club-white); border: 1px solid var(--club-edge); border-radius: 6px; box-shadow: var(--club-shadow); }
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) td { display: block; min-width: 0; max-width: 100%; padding: .08rem 0; border: 0; text-align: start; white-space: normal; overflow-wrap: anywhere; }
.dd-shell-mobile :is([data-view="entries"], [data-view="going"], [data-view="my_rsvp"], [data-view="players"], [data-view="cfc_players"], [data-view="payments"], [data-view="upcoming_registrations"], [data-view="my_rsvps"]) td[data-dd-field]::before { content: var(--club-cell-label, none); color: var(--club-muted); display: block; font: 650 .78rem/1.15 var(--font); font-variant-caps: all-small-caps; letter-spacing: .05em; }
.dd-shell-mobile td[data-dd-field="cfc_id"] { --club-cell-label: "CFC ID"; }
.dd-shell-mobile [data-view="players"] td[data-dd-field="cfc_note"] {
  --club-cell-label: "CFC check";
  flex-basis: 100%;
}
.dd-shell-mobile td[data-dd-field="players"] { --club-cell-label: "Players"; }
.dd-shell-mobile td[data-dd-field="player_count"] { --club-cell-label: "Players"; }
.dd-shell-mobile td[data-dd-field="section_name"] { --club-cell-label: "Section"; }
.dd-shell-mobile td[data-dd-field="fee"] { --club-cell-label: "Fee"; }
.dd-shell-mobile td[data-dd-field="total"] { --club-cell-label: "Total"; }
.dd-shell-mobile td[data-dd-field="amount"] { --club-cell-label: "Amount"; }
.dd-shell-mobile td[data-dd-field="refunded"] { --club-cell-label: "Refunded"; }
.dd-shell-mobile td[data-dd-field="provider"] { --club-cell-label: "Provider"; }
.dd-shell-mobile td[data-dd-field="captured_at"] { --club-cell-label: "Captured at"; }
.dd-shell-mobile td[data-dd-field="waitlisted"] { --club-cell-label: "Waitlisted"; }
.dd-shell-mobile td[data-dd-field="error"] { --club-cell-label: "Error"; }
.dd-shell-mobile .dd-support[data-support-ready] { bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px)); right: .8rem; }
.dd-shell-mobile .dd-support-panel:popover-open { inset: auto .7rem calc(7.15rem + env(safe-area-inset-bottom, 0px)) auto; max-height: calc(100dvh - 8.2rem - env(safe-area-inset-bottom, 0px)); width: min(22rem, calc(100vw - 1.4rem)); }
