.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(144, 184, 255, 0.16);
}

.button-small {
  min-height: 2.5rem;
  padding: 0 1rem;
}

.button-wide {
  width: 100%;
}

.button-primary {
  background: linear-gradient(135deg, rgba(144, 184, 255, 0.95), rgba(191, 214, 255, 0.86));
  color: #08101f;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(120, 158, 219, 0.2);
}

.button-accent {
  background: linear-gradient(135deg, rgba(143, 230, 193, 0.96), rgba(240, 196, 138, 0.92));
  color: #08110f;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(101, 164, 140, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-strong);
  backdrop-filter: blur(12px);
}

.button-primary:hover,
.button-accent:hover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.field {
  display: grid;
  gap: 0.6rem;
}

.field span {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  min-height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  padding: 0.95rem 1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: rgba(144, 184, 255, 0.66);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 4px rgba(144, 184, 255, 0.12);
}

.field-inline input {
  min-width: min(24rem, 100%);
}

.notice {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.notice-muted {
  background: rgba(255, 255, 255, 0.03);
}

.notice-success {
  background: rgba(124, 198, 157, 0.12);
  border-color: rgba(124, 198, 157, 0.24);
  color: #d5f7e4;
}

.notice-error {
  background: rgba(255, 154, 144, 0.12);
  border-color: rgba(255, 154, 144, 0.24);
  color: #ffd6d1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
}

.status-pill-success {
  color: #cff4de;
  background: rgba(124, 198, 157, 0.12);
}

.status-pill-warning {
  color: #ffe7af;
  background: rgba(245, 210, 135, 0.12);
}

.status-pill-danger {
  color: #ffd3cf;
  background: rgba(255, 154, 144, 0.12);
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  z-index: 20;
}

.toast {
  min-width: 16rem;
  max-width: 24rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(11, 15, 22, 0.94);
  box-shadow: var(--shadow);
}

.stacked-form {
  display: grid;
  gap: var(--space-4);
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.1rem;
}

.detail-list li {
  list-style: disc;
}

.detail-list li::marker {
  color: var(--accent-secondary);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (max-width: 640px) {
  .panel-head {
    flex-direction: column;
  }

  .field-inline input {
    min-width: 100%;
  }
}
