/* Shared component contract. Module-specific layouts stay in their own stylesheets. */
.btn {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 11px;
  text-align: center;
  overflow-wrap: anywhere;
}
.btn svg {
  flex-shrink: 0;
}
.btn.small,
.btn.text-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.btn.text-btn {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.text-btn:hover {
  background: var(--soft);
}
.btn:hover {
  transform: none;
}
.btn:disabled:hover {
  background: inherit;
  transform: none;
}
.btn.primary:disabled:hover {
  background: var(--accent);
}
.icon-btn {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
}
.text-btn {
  min-height: 36px;
}
.app-shell .account-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  margin-inline-start: 4px;
}
.app-shell .page-heading {
  align-items: flex-start;
  gap: 20px;
}
.app-shell .page-heading > div:first-child {
  min-width: 0;
  flex: 1 1 280px;
}
.app-shell .page-heading h1 {
  overflow-wrap: anywhere;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.3;
}
.app-shell .heading-actions {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: 8px;
}
.app-shell .page-heading .heading-actions:empty {
  display: none;
}
.app-shell .page-heading .heading-actions .btn {
  min-height: 44px;
}
.section-heading {
  gap: 16px;
  flex-wrap: wrap;
}
.section-heading > * {
  min-width: 0;
}
.section-heading h2 {
  font-size: 20px;
}
.section-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  flex-shrink: 0;
}
.panel {
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
}
.panel > h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.panel p {
  line-height: 1.8;
}
.app-shell .stats {
  gap: 16px;
}
.app-shell .stat {
  min-width: 0;
  padding: 20px;
}
.app-shell .stat > span {
  padding-inline-end: 28px;
  line-height: 1.5;
}
.app-shell .stat > strong {
  font-weight: 700;
  font-size: 30px;
}
.app-shell .stat-icon {
  left: auto;
  right: auto;
  inset-inline-end: 18px;
  top: 20px;
}
.event-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.event-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.event-card-top {
  gap: 12px;
  margin-bottom: 18px;
}
.date-tile {
  flex-shrink: 0;
  width: 52px;
  height: 60px;
}
.event-card .pill {
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}
.event-card h3 {
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.event-card p {
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.event-card-bottom {
  margin-top: auto;
  gap: 12px;
  padding-top: 16px;
  font-size: 12px;
}
.event-card .progress-track {
  margin-top: 24px;
  margin-bottom: 0;
}
.event-card-bottom > svg {
  flex-shrink: 0;
}
.hall-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  align-items: start;
}
.hall-card-wrapper {
  min-width: 0;
}
.hall-card {
  display: block;
}
.hall-card-info {
  gap: 16px;
  padding: 20px;
}
.hall-card-info > div {
  min-width: 0;
}
.hall-card-info h3 {
  overflow-wrap: anywhere;
  font-size: 17px;
}
.round-action {
  flex-shrink: 0;
}
.hall-card-wrapper .hall-staff-link {
  width: 100%;
  margin-top: 8px;
}
.field {
  min-width: 0;
  gap: 8px;
  margin-bottom: 18px;
}
.field > span {
  line-height: 1.5;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-actions {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
    [type="color"]
  ),
select {
  min-height: 44px;
}
textarea {
  min-height: 96px;
  line-height: 1.7;
}
.check {
  min-height: 36px;
  font-size: 13px;
}
.settings-grid {
  align-items: start;
  gap: 20px;
}
.settings-grid .panel > .btn {
  margin-inline-end: 6px;
  margin-bottom: 8px;
}
.settings-grid h3 {
  font-size: 15px;
  margin-top: 24px;
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.theme-choice {
  width: auto;
  min-width: 0;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.theme-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.theme-choice small {
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  min-height: 36px;
  display: grid;
  place-items: center;
}
.theme-choice > span {
  width: 36px;
  height: 36px;
  margin-inline: auto;
}
.list-row {
  gap: 16px;
}
.list-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.list-row > .btn {
  flex-shrink: 0;
}
.table-actions {
  flex-wrap: wrap;
  align-items: center;
}
.table-wrap {
  min-width: 0;
  border-radius: 16px;
  scrollbar-width: thin;
}
th {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
}
td {
  line-height: 1.6;
}
td small {
  font-size: 12px;
}
dialog:not(.venue-3d-dialog) {
  padding: 26px;
  max-height: calc(100dvh - 40px);
}
.modal-head {
  gap: 16px;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.modal-head .icon-btn {
  flex-shrink: 0;
}
.modal-error {
  overflow-wrap: anywhere;
}
.empty-state {
  padding: 36px 24px;
  border-style: solid;
  background: var(--surface);
}
.empty-state h3 {
  font-size: 18px;
}
.empty-state p {
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.8;
}
@media (min-width: 961px) and (max-width: 1200px) {
  .app-shell .page-heading {
    flex-wrap: wrap;
  }
  .app-shell .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .app-shell .page-heading > div:first-child {
    flex: 0 1 auto;
  }
  .app-shell .heading-actions {
    width: 100%;
    flex: 1 1 100%;
  }
  .btn,
  .btn.small,
  .btn.text-btn,
  .icon-btn,
  .text-btn,
  .app-shell .account-button {
    min-height: 44px;
  }
  .btn.small,
  .btn.text-btn {
    font-size: 13px;
    padding: 10px 12px;
  }
  .icon-btn,
  .app-shell .account-button {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
  .panel {
    padding: 20px;
  }
  .event-card {
    padding: 20px;
  }
  .event-card h3 {
    font-size: 18px;
  }
  .app-shell .stat {
    padding: 16px;
  }
  .app-shell .stat > strong {
    font-size: 27px;
  }
  .app-shell .stat > small {
    font-size: 12px;
  }
  .app-shell .stat > span {
    padding-inline-end: 0;
  }
  .app-shell .stat-icon {
    position: static;
    margin-bottom: 12px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .list-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .list-row > span {
    flex: 1 1 160px;
  }
  .theme-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-choice:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .theme-choice:last-child > span {
    margin: 0;
  }
  .theme-choice:last-child small {
    min-height: 0;
  }
  .theme-choice small {
    font-size: 12px;
  }
  dialog:not(.venue-3d-dialog) {
    padding: 20px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .panel.table-wrap {
    padding: 4px 10px;
  }
  td,
  th {
    font-size: 13px;
  }
  .table-actions {
    gap: 8px;
  }
  .check {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .app-shell .heading-actions .btn {
    flex: 1 1 130px;
  }
  .app-shell .stats {
    gap: 8px;
  }
  .app-shell .stat {
    padding: 14px;
  }
}
