.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible { outline: 2px solid #0F6B5A; outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: #0A0A08; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #3A3A35; }
.btn-secondary { background: #fff; border-color: #CFCEC5; color: #0A0A08; }
.btn-secondary:hover { background: #EFEEE7; }
.btn-danger { background: #E04822; color: #fff; }
.btn-danger:hover { background: #B83619; }
.btn-ghost { background: transparent; color: #3A3A35; }
.btn-ghost:hover { background: #EFEEE7; color: #0A0A08; }
.btn-ghost-danger { background: transparent; color: #B83619; }
.btn-ghost-danger:hover { background: #FBE6DF; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.8125rem; }
.btn-icon { width: 2rem; height: 2rem; padding: 0; font-size: 1.25rem; line-height: 1; }

.kbd {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  padding: 0 0.3rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  line-height: 1.1rem;
  opacity: 0.8;
}

@media (hover: none) {
  .kbd { display: none; }
}

.checkbox { width: 1rem; height: 1rem; accent-color: #0A0A08; cursor: pointer; }
.checkbox:disabled { cursor: not-allowed; }

.data-table__row:hover { background: #F7F6F1; }
.data-table__row[data-selected="true"] { background: #FBF3DF; }

.selection-bar {
  position: sticky;
  top: 0.5rem;
  z-index: 10;
  border: 1px solid #E5E4DD;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 32px rgba(10, 10, 8, 0.10), 0 2px 8px rgba(10, 10, 8, 0.06);
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #CFCEC5;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  color: #0A0A08;
  cursor: pointer;
}
.choice input { accent-color: #0A0A08; }
.choice:has(input:checked) { border-color: #0A0A08; background: #F7F6F1; }

.event-preview {
  border: 1px solid #E2D9C8;
  border-radius: 4px;
  background: #FAF6EF;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #2B2A26;
}
.event-preview__names { margin: 0; font: 400 2.25rem/1.15 'Cormorant Garamond', 'Amiri', serif; }
.event-preview__names--ar { margin-top: 0.25rem; font: 1.6rem/1.3 'Amiri', serif; }
.event-preview__amp { font-style: italic; color: #7A2E3A; }
.event-preview__rule { width: 40px; height: 1px; margin: 0.9rem auto; background: #C9BBA3; }
.event-preview__meta { margin: 0.35rem 0 0; font: 1.05rem/1.4 'Cormorant Garamond', 'Amiri', serif; color: #5E594F; }

.field { display: block; }
.field-label { display: block; margin-bottom: 0.25rem; font-size: 0.8125rem; font-weight: 500; color: #3A3A35; }

.field-input {
  width: 100%;
  border: 1px solid #CFCEC5;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #0A0A08;
}

.field-input:focus { outline: none; border-color: #0F6B5A; box-shadow: 0 0 0 3px rgba(15, 107, 90, 0.15); }
.field-input--compact { width: auto; min-width: 9rem; padding: 0.3rem 0.5rem; }

.nav-link {
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3A3A35;
  white-space: nowrap;
}

.nav-link:hover { background: #EFEEE7; color: #0A0A08; }
.nav-link.is-active { background: #0A0A08; color: #fff; }

.app-alert { border-radius: 0.5rem; padding: 0.6rem 0.75rem; font-size: 0.875rem; }
.app-alert[data-tone="error"] { background: #FBE6DF; color: #8A2A12; }
.app-alert[data-tone="success"] { background: #E3F1EC; color: #0B4F42; }
.app-alert[data-tone="info"] { background: #EFEEE7; color: #3A3A35; }

.hall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  border-bottom: 1px solid #E5E4DD;
  padding: 0.6rem 0.75rem;
}
.toggle { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: #3A3A35; white-space: nowrap; cursor: pointer; }
.toggle[data-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.125rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge[data-status="approved"] { background: #E3F1EC; color: #0B4F42; }
.status-badge[data-status="pending"] { background: #FBF0D9; color: #7A4F00; }
.status-badge[data-status="declined"] { background: #FBE6DF; color: #8A2A12; }

.stat-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stat-card__link:focus-visible { outline: 2px solid #0F6B5A; outline-offset: 2px; }
.stat-card[data-linked="true"] { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.stat-card[data-linked="true"]:hover { border-color: #CFCEC5; box-shadow: 0 4px 16px rgba(10, 10, 8, 0.08); }

.hall-editor__plan { max-height: calc(100vh - 170px); }
