.card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: #020617;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-primary-contrast, #020617);
  box-shadow: var(--shadow-sm);
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.input-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.input-group label {
  font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
  color: var(--color-text);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.input-group__help {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.table thead {
  background: rgba(56, 189, 248, 0.18);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(200%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.feedback {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feedback__launcher {
  box-shadow: var(--shadow-md);
}

.feedback__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.feedback__panel {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  width: min(30rem, calc(100vw - 2rem));
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  z-index: 1001;
}

.feedback__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.feedback__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

.feedback__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feedback__status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

.input-help {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.8);
  margin-top: 0.35rem;
}

.accordion {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.accordion__button {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.accordion__content--open {
  padding: 0.75rem 1rem;
}

.error-summary {
  border: 2px solid var(--color-danger);
  background: rgba(248, 113, 113, 0.1);
  color: var(--color-danger);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--color-primary);
  font-size: 0.75rem;
}
