/* Desktop workspace and compact mobile navigation. */
body.app-v2 { padding-left: 224px; min-height: 100dvh; margin: 0; display: block; }
.app-v2 .app-sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; z-index: 1250; background: #e7e2d3; color: #334838; padding: 26px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid #d2dad4; }
.app-brand { display: flex; align-items: center; gap: 10px; color: #172019; text-decoration: none; padding: 0 6px 25px; }
.app-brand img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.app-brand-copy { display: flex; flex-direction: column; line-height: 1.25; font: 750 16px/1.2 var(--font-heading); letter-spacing: -.035em; color: #172019; }
.app-brand-copy small { display: block; color: #507058; font: 500 13px/1.5 var(--font-body); letter-spacing: .1em; margin-top: 5px; text-transform: uppercase; }
.app-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; }
.app-nav-label { color: #758e7b; text-transform: uppercase; letter-spacing: .13em; font-size: 13px; font-weight: 600; padding: 15px 12px 8px; }
.app-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 12px; border-radius: 9px; color: #3e5845; font-size: 15px; font-weight: 550; text-decoration: none; transition: color .15s,background .15s; }
.app-nav a:hover { background: #d1dad4; color: #172019; }
.app-nav a.active { background: #a6e36d; color: #e5dfce; font-weight: 700; box-shadow: 0 3px 16px rgba(0,0,0,0.304); }
.app-nav-icon { width: 20px; height: 20px; display: inline-flex; flex: 0 0 20px; }
.app-nav-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
.app-sidebar-footer { margin-top: auto; border-top: 1px solid #ccd5ce; padding: 18px 6px 0; color: #54775d; font-size: 13px; }
.app-sidebar-footer a { color: #344939; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.app-sidebar-footer strong { color: #212e24; font-size: 15px; display: block; }
.app-sidebar-footer p { margin: 4px 0; }
.app-shell-header { height: 72px; position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: rgba(234,229,216,0.929); backdrop-filter: blur(16px); border-bottom: 1px solid #28382c; }
.app-page-heading { min-width: 0; }
.app-page-heading small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8ba091; line-height: 1.3; display: block; margin-bottom: 3px; }
.app-page-heading h1 { font-size: 20px; margin: 0; font-weight: 750; letter-spacing: -.04em; }
.app-shell-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.app-shell-actions .btn { min-height: 38px; font-size: 14px; padding: 9px 14px; }
.app-user-chip { display: inline-flex; align-items: center; gap: 9px; color: #c4cfc6; font-size: 14px; text-decoration: none; }
.app-user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #21341d; color: #cbd5cd; font-weight: 700; }
.app-nav-toggle { display: none; }
.app-nav-backdrop, .app-mobile-nav { display: none; }
.app-v2 .main { padding: 0; min-height: calc(100dvh - 130px); background: transparent; width: 100%; }
.app-v2 .main > .container { width: 100%; max-width: 1600px; padding: 24px; margin: 0 auto; }
.app-v2 .footer { background: transparent; border-top: 1px solid #28382c; color: #839a89; font-size: 13px; padding: 16px 24px; }
.app-v2 .footer .container { max-width: 1600px; padding: 0; }
.app-v2 .footer-text { font-size: 13px; text-align: left; }
@media (min-width: 1700px) { .app-v2 .main > .container { padding: 28px 32px; } }
@media (max-width: 1100px) { .app-shell-header { padding: 0 22px; } .app-shell-actions { gap: 8px; } }
@media (max-width: 900px) {
  body.app-v2 { padding-left: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app-v2 .app-sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 264px; padding-top: 22px; }
  .app-v2 .app-sidebar.is-open { transform: translateX(0); box-shadow: 15px 0 60px rgba(243,240,232,0.552); }
  .app-nav-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 1240; background: rgba(57,50,30,0.651); backdrop-filter: blur(2px); border: 0; width: 100%; height: 100%; }
  .app-shell-header { height: 66px; padding: 0 16px; gap: 12px; }
  .app-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 44px; padding: 10px; border: 1px solid #2a3b2e; border-radius: 9px; background: #172019; color: #cbd4cd; }
  .app-nav-toggle svg { width: 20px; height: 20px; }
  .app-page-heading h1 { font-size: 18px; }
  .app-page-heading small { font-size: 13px; }
  .app-shell-actions .app-user-name, .app-shell-actions .app-user-chip > span:not(.app-user-avatar) { display: none; }
  .app-v2 .main > .container { padding: 18px 16px; }
  .app-mobile-nav { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgba(234,229,216,0.929); backdrop-filter: blur(16px); border-top: 1px solid #2a3c2f; box-shadow: 0 -4px 20px rgba(0,0,0,0.095); }
  .app-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 5px; color: #8a9f90; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 9px; }
  .app-mobile-nav a.active { color: #a6e36d; background: #21341d; }
  .app-mobile-nav svg { width: 20px; height: 20px; }
  .app-v2 .footer { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .app-shell-actions > .btn { display: none; }
  .app-shell-actions { gap: 5px; }
  .app-v2 .main > .container { padding: 16px 12px; }
}
/* Markup-specific shell details. */
.app-page-heading > span { display: block; font: 750 20px/1.2 var(--font-heading); letter-spacing: -.035em; color: var(--ink); }
.app-quick-search { display: inline-flex; align-items: center; gap: 8px; color: #9bad9f; font-size: 14px; min-height: 40px; padding: 8px 12px; text-decoration: none; }
.app-quick-search svg { width: 17px; height: 17px; }
.app-sidebar-close { display: none; }
.app-brand-copy strong { color: inherit; font-weight: 800; }
.app-brand-copy > span { font-size: 15px; color: #44604b; letter-spacing: .025em; font-weight: 500; margin-top: 2px; }
.app-sidebar-guide { margin-top: 35px; padding: 17px 13px; background: #d4dcd6; border: 1px solid #cdd6cf; border-radius: 12px; }
.app-sidebar-guide .app-nav-label { padding: 0; color: #4c6b53; font-size: 13px; letter-spacing: .08em; }
.app-sidebar-guide p { font: 650 17px/1.4 var(--font-heading); color: #21341d; letter-spacing: -.025em; margin: 5px 0 12px; }
.app-sidebar-guide a { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #a6e36d; min-height: 35px; text-decoration: none; }
.app-sidebar-guide svg { width: 16px; height: 16px; }
.app-sidebar-footer .app-nav { padding: 0; gap: 3px; }
.app-sidebar-footer .app-nav a { padding: 9px 7px; min-height: 40px; font-size: 13px; gap: 10px; }
.app-sidebar-footer .app-nav svg { width: 18px; height: 18px; }
.app-user { display: flex; gap: 8px; align-items: center; margin-top: 14px; border-top: 1px solid #ccd5ce; padding-top: 16px; }
.app-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #a6e36d; color: #d1d9d3; font-size: 14px; font-weight: 750; }
.app-user > span:nth-child(2) { flex: 1; min-width: 0; }
.app-user strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user small { display: block; font-size: 13px; color: #637968; white-space: nowrap; }
.app-signout { width: 30px; min-width: 30px; min-height: 36px; padding: 6px; border: 0; background: transparent; color: #4e6e56; cursor: pointer; }
.app-signout svg { width: 17px; height: 17px; }
.app-signout:hover { color: #172019; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #27382b; padding: 15px 24px; color: #819887; font-size: 13px; }
.app-v2 .skip-link { position: fixed; left: 240px; top: -80px; z-index: 2000; padding: 10px 18px; background: #a6e36d; color: #e7e2d3; border-radius: 8px; }
.app-v2 .skip-link:focus { top: 12px; }
body.app-v2.app-public { padding: 0; }
.app-public-header { display: flex; justify-content: space-between; align-items: center; padding: 25px clamp(20px,5vw,70px); border-bottom: 1px solid #27382b; background: #172019; }
.app-public-header .app-brand { padding: 0; }
.app-public-header .app-brand-copy { color: #e7e2d3; }
.app-public-header .app-brand-copy > span { color: #9fb0a3; }
.app-public .app-footer { padding-left: clamp(20px,5vw,70px); padding-right: clamp(20px,5vw,70px); }
@media (max-height: 760px) and (min-width: 901px) { .app-sidebar-guide { display: none; } }
@media (max-width: 900px) {
  .app-sidebar-close { display: grid; place-items: center; position: absolute; top: 16px; right: 10px; width: 35px; min-width: 35px; min-height: 40px; padding: 8px; background: transparent; border: 0; color: #496751; }
  .app-v2 .skip-link { left: 12px; }
  .app-page-heading > span { font-size: 18px; }
  .app-quick-search span { display: none; }
  .app-quick-search { width: 40px; padding: 10px; }
  .app-public-header { padding: 18px 20px; }
  .app-public-header .btn { font-size: 14px; }
  .app-footer { padding: 14px 16px; }
}
