/* 2026-11-02: calm hierarchy on the approved forest / paper / amber foundation.
   No network assets; no changes to business tables, visibility or permission rules. */
:root { --ui-motion: 180ms; --ui-ease: cubic-bezier(.2,.7,.2,1); }
.sidebar { min-height: 0; }
.sidebar nav.nav-organized { position: relative; isolation: isolate; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #647565 transparent; padding: 12px 10px 20px; }
.sidebar .nav-section { margin-top: 12px; }
.sidebar .nav-section[hidden], .sidebar .nav-section-items[hidden], .sidebar .nav-highlight[hidden] { display: none; }
.sidebar .nav-section-toggle { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 6px 13px; border: 0; background: transparent; color: #b4c0af; text-align: left; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .6px; cursor: pointer; }
.sidebar .nav-section-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform var(--ui-motion) var(--ui-ease); margin-right: 4px; }
.sidebar .nav-section-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); }
.sidebar .nav-section-toggle:hover { color: #fff6e2; }
.sidebar .nav-section-toggle:focus-visible { outline: 2px solid #edc888; outline-offset: -2px; border-radius: 8px; }
.sidebar nav.nav-organized a, body.desktop-base-active .sidebar nav.nav-organized a { position: relative; z-index: 1; min-height: 44px; margin: 2px 0; padding: 9px 13px; border: 0; border-radius: 9px; transition: color var(--ui-motion), background-color var(--ui-motion); font-size: 13px; line-height: 1.6; }
.sidebar nav.nav-organized .nav-section-items a { padding-left: 19px; }
.sidebar nav.nav-organized a .icon { font-size: 16px; width: 22px; flex: 0 0 22px; text-align: center; }
.sidebar nav.nav-organized.has-nav-highlight a.active, body.desktop-base-active .sidebar nav.nav-organized.has-nav-highlight a.active { background: transparent; box-shadow: none; color: #fff1d6; }
.sidebar .nav-highlight { position: absolute; z-index: 0; top: 0; pointer-events: none; border-radius: 9px; background: #354a3f; box-shadow: inset 3px 0 #ec9b29; transition: transform var(--ui-motion) var(--ui-ease), height var(--ui-motion) var(--ui-ease); }
.sidebar .logo, body.desktop-base-active .sidebar .logo { padding-top: 24px; padding-bottom: 22px; }
.header h1, body.desktop-base-active .header h1 { font-size: 23px; letter-spacing: -.5px; font-weight: 650; }
.header .page-subtitle { margin-top: 4px; line-height: 1.5; }
.content h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.3px; }
.content h3 { font-size: 16px; line-height: 1.5; }
.content .table-wrap, .content .surface-panel, .desktop-base__panel { border-radius: 14px; box-shadow: 0 2px 6px rgba(35,54,49,.025); }
.content .table-wrap th { font-weight: 600; color: #687760; }
.content td { font-variant-numeric: tabular-nums; }
.content .page-filter-strip, .content .schedule-filter-strip { border-radius: 12px; gap: 10px; }
.content input:not([type="checkbox"]):not([type="radio"]), .content select, .modal input:not([type="checkbox"]):not([type="radio"]), .modal select, .modal textarea { border-radius: 8px; }
.btn { transition: background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion); }
.btn:disabled { opacity: .55; box-shadow: none; }
.content .card:hover { transform: none; }
.content .loading, .content .empty-state, .content .desktop-base__empty { line-height: 1.7; color: #687760; }
.modal { border: 1px solid #e0e4d6; border-radius: 18px; box-shadow: 0 20px 70px rgba(24,40,34,.18); }
.modal .modal-header { font-size: 18px; font-weight: 650; line-height: 1.5; }
.modal .modal-footer { gap: 8px; background: #faf9f5; }
.modal-close { min-width: 44px; min-height: 44px; border-radius: 8px; }
.workspace-menu .workspace-menu-section { grid-column: 1 / -1; min-width: 0; }
.workspace-menu-section h3 { font-size: 12px; font-weight: 600; color: #687760; margin: 6px 0 10px; }
.workspace-menu-section > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.workspace-menu-section .btn { white-space: normal; text-align: left; min-height: 48px; }
@media (max-width:768px) {
  .header h1, body.desktop-base-active .header h1 { font-size: 21px; }
  .sidebar .nav-section-toggle { min-height: 44px; }
  .modal .modal-header { font-size: 17px; }
  .content .table-wrap, .content .surface-panel { border-radius: 12px; }
  .bottom-bar a { transition: background-color var(--ui-motion), color var(--ui-motion); }
  .bottom-bar a.active:not(.mobile-workspace-primary) { background: #edf0e5; border-radius: 12px; }
}
/* Dedicated mobile entry keeps its own palette and routes; improve only hierarchy and targets. */
#app .topbar-title { font-size: 20px; letter-spacing: -.3px; }
#app .btn-m, #app .tabbar .tab { min-height: 44px; }
#app .tabbar .tab.active { background: var(--brand-light,#fff7ed); border-radius: 12px; }
#app .modal-sheet { border-radius: 18px 18px 0 0; }
#app .empty-state { line-height: 1.7; }
@media (prefers-reduced-motion:reduce) {
  :root { --ui-motion: 0ms; }
  .sidebar .nav-highlight, .sidebar .nav-section-toggle::after, .sidebar nav a, .btn, .bottom-bar a, #app .tabbar .tab { transition: none !important; }
}
