.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px max(16px, calc((100vw - var(--content-width)) / 2));
  background: var(--green);
  color: #fff;
}
.site-brand { color: #fff; font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 220px); overflow-x: auto; scrollbar-width: thin; }
.site-nav a { padding: 8px 10px; border-radius: 5px; color: #fff; font-size: .95rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #ffffff20; }
.global-search { position: relative; display: block; flex: 0 0 180px; }
.global-search input { width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid #ffffff90; border-radius: 5px; background: #fff; color: var(--ink); }
.global-search-results { position: absolute; top: calc(100% + 5px); left: 0; z-index: 8; display: grid; width: min(320px, 90vw); max-height: 60vh; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 5px 18px #0002; }
.global-search-results a, .global-search-results span { padding: 9px 10px; color: var(--ink); text-decoration: none; }
.global-search-results a:hover { background: var(--green-soft); }
.global-search-results[hidden] { display: none; }
.menu-toggle { display: none; }
.container { width: min(100% - 32px, var(--content-width)); margin: 0 auto; padding: 28px 0 48px; }
.hero { margin: 0 0 34px; padding: clamp(24px, 5vw, 54px); border-radius: var(--radius); background: var(--green-soft); }
.hero p { max-width: 66ch; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin-bottom: 6px; }
.page-intro { margin-bottom: 24px; }
.page-intro h1 { margin: 0 0 8px; }
.page-intro p { color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px max(16px, calc((100vw - var(--content-width)) / 2)); border-top: 1px solid var(--line); background: #fbfbf7; }
.site-footer p { margin: 0; }
.back-top { position: fixed; right: 16px; bottom: 16px; z-index: 4; }
.app-header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--green);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-icon { font-size: 20px; }
.brand-name { font-size: 17px; font-weight: 700; }
.header-note { color: #e2eddf; font-size: 13px; }
.app-shell { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { min-width: 0; padding: 24px 14px; border-right: 1px solid var(--line); background: #fbfbf7; }
.nav-label { margin: 0 10px 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}
.nav-button:hover, .nav-button[aria-current="page"] { background: #dce9d9; }
.nav-button > span, .nav-button > i { width: 18px; color: var(--green); text-align: center; }
.sidebar-note { margin: 26px 6px 0; padding: 13px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-main { min-width: 0; padding: 30px clamp(18px, 3.5vw, 48px) 52px; }
.dashboard-main > .container { width: min(100%, var(--content-width)); padding: 0; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 8px 16px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 15px; border: 1px solid #ffffff80; border-radius: 5px; background: transparent; color: #fff; }
  .menu-toggle::before { content: "☰"; margin-right: 8px; font-size: 1.15em; }
  .site-nav { order: 3; width: 100%; max-width: none; align-items: stretch; flex-direction: column; overflow: visible; padding-bottom: 8px; }
  .site-nav a { min-height: 44px; }
  .global-search { flex-basis: auto; }
  .global-search input { min-height: 48px; }
  .global-search-results { position: static; width: 100%; max-height: 40vh; }
  .site-nav[hidden] { display: none; }
}
@media (max-width: 760px) {
  .app-header { height: 58px; padding: 0 16px; }
  .header-note { display: none; }
  .app-shell { min-height: calc(100vh - 58px); grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 3; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-label, .sidebar-note { display: none; }
  .nav-list { display: flex; min-width: 0; max-width: 100%; overflow-x: auto; }
  .nav-button { width: auto; min-width: max-content; min-height: 40px; }
  .dashboard-main { padding: 23px 16px 38px; }
}
