/* Navigation depth shared by every route. */
.sidebar {
  background: linear-gradient(165deg, #15494a 0%, #103b43 48%, #0b3039 100%);
  box-shadow: inset -1px 0 0 rgba(202, 244, 222, .12), 7px 0 25px rgba(10, 42, 47, .16);
}

.sidebar-head {
  border-bottom: 1px solid rgba(199, 235, 217, .12);
  margin-bottom: 8px;
}

.sidebar .nav-group.collapsible-nav {
  padding: 6px 6px 9px;
  margin: 9px 0 18px;
  border: 1px solid rgba(198, 239, 218, .11);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(1, 34, 40, .25));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 3px 0 rgba(4, 31, 37, .34), 0 12px 22px rgba(2, 26, 32, .2);
}

.sidebar .collapsible-nav > summary {
  color: #beddd0;
  text-shadow: 0 1px 1px rgba(0, 16, 22, .45);
  transition: background .18s ease, color .18s ease;
}

.sidebar .collapsible-nav > summary:hover,
.sidebar .collapsible-nav > summary:focus-visible {
  background: rgba(211, 251, 227, .1);
  color: #f1fff4;
}

.sidebar .nav-group-content { padding-top: 8px; }

.sidebar .nav-button {
  margin: 3px 0;
  border: 1px solid rgba(198, 238, 218, .055);
  background: linear-gradient(165deg, rgba(237, 255, 246, .055), rgba(2, 39, 45, .075));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 3px 7px rgba(2, 25, 31, .12);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.sidebar .nav-button:hover,
.sidebar .nav-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(196, 247, 214, .22);
  background: linear-gradient(160deg, rgba(213, 252, 228, .17), rgba(84, 165, 140, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 4px 0 rgba(3, 28, 34, .27), 0 10px 16px rgba(2, 25, 31, .2);
}

.sidebar .nav-button.active,
.sidebar .nav-button.active:hover,
.sidebar .nav-button.active:focus-visible {
  transform: translateY(-2px);
  color: #123f39;
  border-color: #c9f6d5;
  background: linear-gradient(145deg, #d9fbd5 0%, #a9edbd 58%, #91dcac 100%);
  box-shadow: inset 0 1px 0 #f7fff5, 0 4px 0 #4b9a70, 0 11px 19px rgba(0, 24, 29, .32);
}

.sidebar .nav-new-view {
  border-color: rgba(180, 233, 198, .25);
  background: linear-gradient(160deg, rgba(228, 255, 234, .07), rgba(4, 42, 47, .11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 3px 6px rgba(0, 25, 30, .13);
}

.sidebar .nav-new-view:hover,
.sidebar .nav-new-view:focus-visible {
  border-color: rgba(191, 241, 207, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 0 rgba(5, 34, 37, .28), 0 9px 12px rgba(0, 22, 27, .2);
}

.sidebar :is(summary, button):focus-visible {
  outline: 2px solid #a8efbe;
  outline-offset: 2px;
}

/* Home surface depth, scoped so other pages keep their own layout. */
.welcome-banner-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .28fr);
  gap: 24px;
  min-height: 166px;
  border: 1px solid #b4d39d;
  border-bottom-color: #98be89;
  border-radius: 18px;
  background: linear-gradient(135deg, #e6f5cc 0%, #d4ecba 60%, #bfdfa6 100%);
  box-shadow: inset 0 1px 0 #faffef, 0 6px 0 #accb94, 0 20px 34px rgba(44, 98, 56, .18);
}

.welcome-banner-v2 .welcome-copy h1 { display: block; }

.welcome-banner-v2 .welcome-metric {
  grid-column: auto;
  border: 1px solid rgba(255, 255, 255, .85);
  border-bottom-color: #b4d49b;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(229, 248, 206, .65));
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(139, 183, 119, .75), 0 11px 20px rgba(49, 101, 53, .14);
}

.welcome-banner-v2 .welcome-metric:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 rgba(139, 183, 119, .75), 0 15px 24px rgba(49, 101, 53, .19);
}

.dashboard-summary-pair > .panel,
.dashboard-follow-grid > .panel {
  border: 1px solid #d0e4d3;
  border-bottom-color: #b8d4bc;
  background: linear-gradient(155deg, #fffefa 0%, #f9fcf6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 #d5e8d7, 0 16px 30px rgba(24, 70, 48, .13);
}

.dashboard-summary-pair .summary-icon {
  border-bottom-color: #aecfae;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #c2dec0, 0 8px 12px rgba(30, 83, 49, .12);
}

.dashboard-summary-pair .summary-tiles > .summary-tile {
  border-color: #d2e5d2;
  border-bottom-color: #b8d2b9;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #cce2cd, 0 9px 15px rgba(26, 72, 46, .11);
}

.dashboard-summary-pair .summary-tiles > .summary-tile:hover,
.dashboard-summary-pair .summary-tiles > .summary-tile:focus-visible {
  transform: translateY(-3px);
  border-color: #8ec5a2;
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 #b5d9c0, 0 17px 24px rgba(29, 93, 54, .2);
}

.dashboard-summary-pair .summary-tiles > .summary-tile:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(27, 79, 47, .14), 0 1px 0 #b5d9c0;
}

.dashboard-follow-grid .stage-item {
  border-bottom-color: #c6dac7;
  background: linear-gradient(155deg, #fbfef7, #edf5e8);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #cfe1cb, 0 9px 16px rgba(35, 75, 43, .12);
}

.dashboard-follow-grid .stage-item.focus-stage {
  border-bottom-color: #dfc3a6;
  background: linear-gradient(155deg, #fff7e9, #f8e9d8);
  box-shadow: inset 0 1px 0 #fffdf7, 0 3px 0 #e8cfaf, 0 9px 16px rgba(114, 72, 36, .13);
}

.dashboard-follow-grid .stage-item:hover,
.dashboard-follow-grid .stage-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 #c6ddc8, 0 16px 22px rgba(35, 75, 43, .19);
}

.dashboard-follow-grid .stage-item.focus-stage:hover,
.dashboard-follow-grid .stage-item.focus-stage:focus-visible {
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 #dfc5a6, 0 16px 22px rgba(103, 72, 39, .18);
}

.dashboard-priority-panel .priority-list { gap: 9px; }
.dashboard-priority-panel .priority-item,
.dashboard-activity .timeline-item {
  border: 1px solid #d9e9d7;
  border-bottom-color: #c1d8bf;
  border-radius: 11px;
  background: linear-gradient(150deg, #fffefa, #f4f9ef);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #d9e8d4, 0 8px 15px rgba(32, 77, 44, .09);
}

.dashboard-priority-panel .priority-item,
.dashboard-priority-panel .priority-item:first-child,
.dashboard-priority-panel .priority-item:last-child { padding: 10px 12px; }

.dashboard-priority-panel .priority-item:hover,
.dashboard-priority-panel .priority-item:focus-visible {
  transform: translateY(-2px);
  border-color: #a8cfb3;
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 #c5dfc8, 0 12px 19px rgba(31, 79, 48, .15);
}

.dashboard-activity #dashboard-meetings { display: grid; gap: 11px; }
.dashboard-activity .timeline-item { padding: 13px 15px; }

.dashboard-controls select {
  border-color: #c9e0cc;
  box-shadow: inset 0 1px 3px rgba(34, 78, 48, .08), 0 3px 0 #d9e9d8;
}

@media (max-width: 980px) {
  .welcome-banner-v2 { grid-template-columns: minmax(0, 1fr) 160px; }
  .welcome-banner-v2 .welcome-metric { grid-column: auto; flex-direction: column; }
}

@media (max-width: 900px) {
  .welcome-banner-v2 { grid-template-columns: 1fr; }
  .welcome-banner-v2 .welcome-metric { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .welcome-banner-v2 .welcome-metric strong { font-size: 30px; margin: 0; }
}

@media (max-width: 760px) {
  .welcome-banner-v2 { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .welcome-banner-v2 .welcome-metric { flex-direction: row; gap: 12px; padding: 10px 15px; }
  .welcome-banner-v2 .welcome-metric strong { font-size: 30px; margin: 0; }
  .dashboard-priority-panel .priority-item,
  .dashboard-priority-panel .priority-item:first-child,
  .dashboard-priority-panel .priority-item:last-child { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .nav-button:hover,
  .sidebar .nav-button:focus-visible,
  .sidebar .nav-button.active,
  .sidebar .nav-button.active:hover,
  .sidebar .nav-button.active:focus-visible,
  .dashboard-summary-pair .summary-tiles > .summary-tile:hover,
  .dashboard-summary-pair .summary-tiles > .summary-tile:focus-visible,
  .dashboard-follow-grid .stage-item:hover,
  .dashboard-follow-grid .stage-item:focus-visible,
  .dashboard-priority-panel .priority-item:hover,
  .dashboard-priority-panel .priority-item:focus-visible { transform: none; }
}
