/* Base Reset & Body */

html {
  overflow-y: scroll;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
}

/* Main Content Wrapper */

.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Flash Messages */

.flash-toast {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  z-index: 500;
  max-width: calc(100vw - 2rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: flash-in 0.22s ease forwards, flash-out 0.3s ease 3s forwards;
}

.flash-toast--notice {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.flash-toast--alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.flash-toast svg {
  flex-shrink: 0;
}

@keyframes flash-in {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes flash-out {
  to { opacity: 0; transform: translateX(-50%) translateY(-0.5rem); }
}

/* Breadcrumb */

.breadcrumb {
  font-size: 0.82rem;
  color: #6c757d;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #1976d2;
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #bdbdbd;
  font-size: 0.9rem;
}

/* Page Header */

.page-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.page-header h1 {
  margin: 0.25rem 0 0;
  font-size: 1.65rem;
  font-weight: 750;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .app-main {
    padding: 1.25rem 1rem 2.5rem;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }
}
