:root {
  --sidebar-width: 260px;
  --shell-navy: #172c43;
  --shell-amber: #fa8628;
  --brand-blue: #0878b7;
  font-family: "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html { scrollbar-gutter: stable; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 36px 20px 28px;
  overflow-y: auto;
  color: #f5f6f8;
  background: var(--shell-navy);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: inherit; text-decoration: none; }
.brand-mark { flex: 0 0 44px; width: 44px; height: 44px; color: var(--shell-amber); stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
img.brand-mark { display: block; object-fit: contain; padding: 4px; border-radius: 9px; background: white; }
.brand-name { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.8px; line-height: 1.25; }
.brand-subtitle { display: block; color: #c7d1db; font-size: 14px; letter-spacing: .6px; line-height: 1.9; }
.navigation { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 50px; }
.navigation a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c6d0dc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
}
.navigation a svg { flex: 0 0 20px; width: 20px; height: 20px; color: #c6d0dc; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navigation a:hover { color: white; background: #233d57; border-color: #425b73; }
.brand:focus-visible, .navigation a:focus-visible { outline: 3px solid var(--shell-amber); outline-offset: 3px; }
.navigation a[aria-current="page"] { color: white; background: #29425b; border-color: #496078; box-shadow: inset 3px 0 0 var(--shell-amber); }
.navigation a[aria-current="page"] svg { color: var(--shell-amber); }
.sidebar-bottom { margin-top: auto; padding: 55px 15px 0; }
.sidebar-flourish, .flourish { display: block; width: 28px; height: 2px; margin-bottom: 22px; background: var(--shell-amber); }
.sidebar-message, .sidebar-bottom > p { margin: 0 0 35px; color: #dce4ec; font-size: 24px; font-weight: 350; letter-spacing: -.35px; line-height: 1.5; }
.sidebar-message span, .sidebar-bottom > p span { color: var(--shell-amber); }
.preview-label, .preview-tag { display: flex; align-items: center; gap: 8px; color: #c5cfda; font-size: 14px; }
.preview-label > span { width: 6px; height: 6px; border-radius: 50%; background: #b0c3be; }
.main { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); padding: 0 40px; }

@media (max-width: 1000px) {
  .main { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; flex-basis: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px 24px; }
  .brand { padding: 0; }
  .navigation { flex-basis: 100%; margin-top: 18px; }
  .navigation a { min-height: 46px; padding: 12px 14px; }
  .sidebar-bottom { display: none; }
  .main { width: 100%; margin-left: 0; padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 560px) {
  .sidebar { padding: 17px 20px; }
  .brand-mark { flex-basis: 37px; width: 37px; height: 37px; }
  .brand-name { font-size: 24px; }
  .main { padding-right: 18px; padding-left: 18px; }
}

@media print {
  .reports-page .app-shell { display: block; min-height: 0; }
  .reports-page .sidebar, .reports-page .skip-link { display: none; }
  .reports-page .main { width: 100%; margin-left: 0; padding: 0; }
}
