:root {
  --app-bg-1: #f7efe2;
  --app-bg-2: #efe3cf;
  --app-accent: #a74a26;
  --app-accent-dark: #7d3118;
  --app-highlight: #c7912b;
  --app-text: #2f2117;
  --app-muted: #645448;
  --app-surface: #fffdfa;
  --app-border: #e6d5bc;
  --app-shadow: 0 18px 45px rgba(72, 33, 16, 0.2);
}

.app-body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--app-text);
  background:
    radial-gradient(900px 500px at -8% 0%, #f6ead8 0%, rgba(246, 234, 216, 0) 65%),
    radial-gradient(900px 500px at 108% 100%, #f1e3cd 0%, rgba(241, 227, 205, 0) 65%),
    linear-gradient(130deg, #fcf8f0 0%, #f8f1e3 45%, #fbf6ee 100%);
}

.site-topbar {
  padding: 12px 16px;
  background: linear-gradient(90deg, #f7c89c 0%, #f6c390 40%, #f8cda3 100%);
  border-bottom: 2px solid #d07a2f;
}

.site-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.site-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff9f2;
  border: 2px solid #bf742f;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(87, 45, 19, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  width: 94%;
  height: 94%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.08) saturate(1.02);
}

.site-brand-copy {
  min-width: 0;
}

.site-brand-title {
  margin: 0;
  color: #2f140b;
  font-size: clamp(1.28rem, 2vw, 2.92rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.site-brand-title span {
  color: #cf6b1e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.66);
}

.site-brand-sub {
  margin: 4px 0 0;
  color: #3f2f24;
  font-size: clamp(0.8rem, 0.92vw, 1.55rem);
  font-weight: 500;
}

.site-user-chip {
  margin-left: auto;
  background: #fef9f1;
  border: 3px solid #c77227;
  border-radius: 34px;
  padding: 8px 14px;
  min-width: 300px;
  box-shadow: 0 5px 12px rgba(80, 38, 18, 0.12);
}

.site-user-name {
  display: block;
  color: #26140e;
  font-weight: 700;
  font-size: clamp(0.86rem, 0.95vw, 1.45rem);
}

.site-user-actions {
  margin-top: 2px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-user-actions a {
  color: #b9631d;
  font-size: clamp(0.82rem, 0.9vw, 1.25rem);
  font-weight: 500;
  text-decoration: none;
}

.site-user-actions a:hover,
.site-user-actions a:focus {
  text-decoration: underline;
}

.site-logout-form {
  margin: 0;
}

.site-user-action-btn {
  border: 0;
  background: transparent;
  color: #b9631d;
  font-size: clamp(0.82rem, 0.9vw, 1.25rem);
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.site-user-action-btn:hover,
.site-user-action-btn:focus {
  text-decoration: underline;
  outline: none;
}

.app-body nav.navbar.legacy-secondary-nav,
.app-body nav.navbar.app-navbar {
  background: linear-gradient(90deg, #924021 0%, #7d3118 65%, #6e2814 100%) !important;
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 14px;
}

.app-body nav.navbar.legacy-secondary-nav.fixed-top {
  position: static;
  top: auto;
}

.app-body nav.navbar.legacy-secondary-nav a,
.app-body nav.navbar.legacy-secondary-nav .nav-link {
  color: #f8e1bd !important;
}

.app-page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}

.app-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.app-card-header {
  padding: 24px 24px 8px;
}

.app-card-body {
  padding: 10px 24px 24px;
}

.app-title {
  margin: 0;
  color: var(--app-text);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.15;
}

.app-subtitle {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: clamp(0.92rem, 1.1vw, 1rem);
}

.react-toast-host {
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 1700;
  width: min(420px, calc(100vw - 24px));
}

.react-toast {
  box-shadow: 0 8px 24px rgba(27, 17, 10, 0.2);
  border-radius: 10px;
}

@media (max-width: 560px) {
  .site-topbar {
    padding: 10px 12px;
  }

  .site-topbar-inner {
    gap: 10px;
    min-height: 58px;
    flex-wrap: nowrap;
  }

  .site-logo-wrap {
    width: 38px;
    height: 38px;
    border-width: 1px;
    box-shadow: none;
  }

  .site-brand-left {
    gap: 8px;
  }

  .site-brand-title {
    font-size: 1.75rem;
  }

  .site-brand-sub {
    display: none;
  }

  .site-user-chip {
    width: auto;
    min-width: 0;
    margin-left: auto;
    border-radius: 999px;
    border-width: 2px;
    padding: 4px 8px;
  }

  .site-user-name {
    display: none;
  }

  .site-user-actions {
    margin-top: 0;
    gap: 8px;
  }

  .app-page-shell {
    padding-top: 16px;
  }
}
