.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: #FFFFFF;
  color: var(--color-green);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  border-right: 1px solid var(--color-border);
  box-shadow: 2px 0 16px rgba(47, 64, 48, 0.05);
}

.sidebar-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 0.5rem 1.1rem 3rem;
  padding: 0.75rem 0.25rem;
}

.brand-frame {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: Georgia, serif;
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-coral-pale);
}

.brand-frame-left {
  left: -1.05rem;
}

.brand-frame-right {
  right: -1.05rem;
}

.brand-wheat {
  width: 6rem;
  height: auto;
  margin-bottom: 0.15rem;
}

.sidebar-brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--color-green);
}

.sidebar-brand-location {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(47, 64, 48, 0.7);
}

.brand-dot {
  color: var(--color-coral-dark);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  color: rgba(47, 64, 48, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link-icon {
  font-size: 0.55rem;
  color: var(--color-green);
}

.sidebar-link:hover {
  background-color: rgba(47, 64, 48, 0.08);
  color: var(--color-green);
}

.sidebar-link.active {
  background-color: rgba(47, 64, 48, 0.85);
  color: var(--color-cream);
  font-weight: 600;
}

.sidebar-link.active .sidebar-link-icon {
  color: var(--color-coral-pale);
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-hint {
  font-size: 0.75rem;
  color: rgba(47, 64, 48, 0.55);
  line-height: 1.4;
}

.app-main {
  flex: 1;
  padding: 2.5rem 3rem;
}

.app-content {
  max-width: 1100px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 2.1rem;
  margin-bottom: 0.15rem;
}

.page-subtitle {
  color: rgba(47, 64, 48, 0.6);
  font-size: 0.95rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-bar .form-control, .filter-bar .form-select {
  width: auto;
}

.filter-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(47, 64, 48, 0.55);
  font-weight: 600;
}

@media (max-width: 820px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 16px rgba(47, 64, 48, 0.05);
  }

  .sidebar-brand {
    margin-bottom: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .app-main {
    padding: 1.5rem;
  }
}
