/* Regole comuni per le azioni admin, giocatore e finestre di conferma. */
.btn { min-width: 0; max-width: 100%; min-height: 48px; line-height: 1.25; text-align: center; white-space: normal; overflow-wrap: break-word; }
.btn.sm, .btn.tiny { min-height: 44px; }
.btn.danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn.danger-outline:active { background: var(--danger-bg); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.stack > .btn, .modal > .btn { width: 100%; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; align-items: stretch; }
.actions > .btn { width: 100%; height: 100%; margin: 0; min-height: 48px; padding: 12px 16px; font-size: 1rem; }
.actions > select, .actions > .field { grid-column: 1 / -1; width: 100%; }
.actions:not(.actions--primary) > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.actions--primary > .btn:first-child, .actions--primary > .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
.actions > select ~ .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
.actions--stack { grid-template-columns: minmax(0, 1fr); }
.actions--compact > .btn { min-height: 44px; padding: 9px 12px; font-size: .9rem; }
.actions--compact { gap: 10px; }
.round-actions { border-top: 1px solid var(--line, var(--cream-3)); padding-top: 16px; }
.timer-actions { margin-top: 16px; }
.modal > .actions { width: 100%; }
.install-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.install-actions .btn { width: 100%; height: 100%; min-height: 44px; }
.proj-tools .btn { min-height: 44px; }
@media (hover: hover) {
  .btn.danger-outline:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
}
@media (max-width: 600px) {
  .actions:not(.actions--compact) { grid-template-columns: minmax(0, 1fr); }
  .admin-top > .btn { height: 100%; }
  .menu-item > .btn { width: 100%; }
}

/* Comandi di stato sempre nello stesso punto, anche su telefono. */
.status-control { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.status-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-actions > .btn { min-height: 48px; }
.status-actions > .btn:only-child { grid-column: 1 / -1; }
.registration-teams { display: grid; gap: 16px; }
.registration-team { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 16px; }
.registration-team-header { display: grid; gap: 12px; min-width: 0; }
.registration-team-header .teamcell { width: 100%; text-align: left; }
.registration-team-header .teamcell b { overflow-wrap: anywhere; }
.team-status { gap: 6px; }
.team-status .chip { white-space: normal; }
.team-players { display: grid; }
.team-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.team-player-details { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.team-player-details .phone { min-width: 0; font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
.team-player > .btn { width: 96px; padding: 10px; }
.team-actions { border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 360px) {
  .registration-team { padding: 12px; }
  .team-player { gap: 8px; }
  .team-player > .btn { width: 80px; }
  .status-actions > .btn { padding: 10px 8px; }
}

.admin .admin-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.admin .admin-top > img { width: 78px; height: auto; max-height: 60px; object-fit: contain; }
.admin-heading { min-width: 0; display: grid; gap: 4px; }
.admin-heading b { overflow-wrap: anywhere; font-size: .95rem; }
.admin .admin-top .admin-menu-button { width: auto; padding: 10px 14px; }
.admin .admin-top > .chip { grid-column: 1 / -1; justify-self: start; }
.publish-shortcut { display: grid; gap: 16px; border: 1px solid var(--gold); background: var(--card); }
.publish-shortcut h2 { margin-bottom: 8px; }
.publish-shortcut p { margin: 0; }
.publish-shortcut > .btn { width: 100%; }
@media (max-width: 360px) {
  .admin .admin-top { gap: 8px; }
  .admin .admin-top > img { width: 60px; }
  .admin-heading > span { font-size: .7rem; }
  .admin .admin-top .admin-menu-button { padding: 10px; }
}
.admin { --section-gap: 32px; position: relative; overflow-x: clip; min-height: 100dvh; }
.admin-section { min-height: calc(100dvh - 240px); touch-action: pan-y; }
.section-outgoing { position: absolute; z-index: 2; pointer-events: none; margin: 0; }
.profile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.profile-row > div { min-width: 0; overflow-wrap: anywhere; }
.profile-row p { margin: 6px 0 0; }
.profile-row > .btn { width: 132px; }
@media (max-width: 360px) { .profile-row { grid-template-columns: minmax(0, 1fr); } .profile-row > .btn { width: 100%; } }
.carousel-preview { position: absolute; pointer-events: none; margin: 0; contain: layout style; }
.admin-section { will-change: transform; backface-visibility: hidden; }
.report-archive { border-top: 1px solid var(--line); padding-top: 16px; }
.report-archive > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.report-archive-list { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.report-archive .profile-row > .btn { width: auto; min-width: 108px; }

.overview-access-card h2 { margin: 0; }
.overview-status-list { margin-top: 16px; }
.overview-status { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.overview-status:last-child { padding-bottom: 0; }
.overview-status-label { min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.overview-status-label .small { font-size: .8rem; line-height: 1.4; }
.overview-status > .chip { width: 100%; min-height: 30px; justify-content: center; text-align: center; }
.overview-status > .overview-status-toggle { min-height: 30px; font-family: inherit; cursor: pointer; transition: box-shadow .15s ease; }
.overview-status-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.overview-status-toggle:disabled { cursor: default; opacity: .65; }
@media (hover: hover) { .overview-status-toggle:not(:disabled):hover { box-shadow: 0 0 0 3px var(--line); } }
.venue-field { min-width: 0; }
.venue-field .field { margin-bottom: 0; }
.venue-field > .small { margin-top: 8px; display: block; line-height: 1.4; }
.venue-suggestions { border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; overflow: hidden; max-height: 260px; overflow-y: auto; }
.venue-suggestion { display: block; width: 100%; text-align: left; font: inherit; font-size: .9rem; color: var(--navy); background: var(--card); border: 0; border-bottom: 1px solid var(--line); padding: 12px; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; }
.venue-suggestion:last-child { border-bottom: 0; }
.venue-suggestion:hover, .venue-suggestion:focus-visible { background: var(--gold-soft); outline: 2px solid var(--gold); outline-offset: -2px; }
.hero .venue-directions { margin: 0 auto 16px; }

.hero .event-details { display: grid; gap: 10px; margin: 20px 0; }
.event-detail { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 1rem; line-height: 1.4; }
.event-detail > time, .event-detail > b { min-width: 0; overflow-wrap: anywhere; }
.event-detail > span { flex: 0 0 auto; }
.event-venue b { font-weight: 700; }
.venue-attribution { display: block; text-align: center; font-size: .75rem; line-height: 1.4; }
