:root {
  --color-brand-900: #1f3329;
  --color-brand-800: #305040;
  --color-brand-700: #406040;
  --color-brand-600: #508040;
  --color-brand-500: #609040;
  --color-brand-300: #90b050;
  --color-accent-600: #c9862f;
  --color-accent-500: #e0a040;
  --color-accent-400: #f0c040;
  --color-page-bg: #f6f7f2;
  --color-surface: #ffffff;
  --color-border: #d9dfd3;
  --color-border-strong: #c5d0bd;
  --color-text: #17231c;
  --color-text-muted: #59675d;
  --color-primary: var(--color-brand-800);
  --color-primary-hover: var(--color-brand-700);
  --color-primary-soft: #edf5e7;
  --color-focus-ring: rgba(96, 144, 64, 0.24);
  --shadow-panel: 0 16px 40px rgba(31, 51, 41, 0.1);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-page-bg);
}

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.brand-logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
}

p {
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.app-toast-region {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  pointer-events: none;
}

.app-toast {
  min-width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(31, 51, 41, 0.18);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  animation: app-toast-in 180ms ease-out forwards;
}

.app-toast.is-exiting {
  animation: app-toast-out 180ms ease-in forwards;
}

.app-toast[data-tone="success"] {
  border-color: #abefc6;
  color: #067647;
  background: #ecfdf3;
}

.app-toast[data-tone="error"] {
  border-color: #fecdca;
  color: #b42318;
  background: #fef3f2;
}

.app-toast[data-tone="neutral"] {
  border-color: var(--color-brand-900);
  color: #ffffff;
  background: var(--color-brand-900);
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 50px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes app-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, 50px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast,
  .app-toast.is-exiting {
    animation: none;
    transform: translate(-50%, 0);
  }
}
