.more-hub-view {
  max-width: 1080px;
  margin: 0 auto;
}

.route-announcement {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.context-back {
  display: none;
}

.more-hub-title {
  margin-bottom: 18px;
}

.more-hub-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.more-hub-group {
  align-self: start;
  padding: 8px;
  overflow: hidden;
}

.more-hub-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px 13px;
}

.more-hub-heading .eyebrow {
  margin-bottom: 2px;
}

.more-hub-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.more-hub-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--forest);
  font-size: 17px;
}

.more-hub-group > button,
.more-hub-group > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 11px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.more-hub-group > [hidden] {
  display: none !important;
}

.quick-add-shell {
  pointer-events: none;
}

.quick-add-toggle,
.quick-add-panel.is-open {
  pointer-events: auto;
}

.quick-add-shell[aria-hidden="true"] {
  visibility: hidden;
}

.foundation-overlay,
#edit-modal.modal {
  z-index: 90;
}

.more-hub-group > button:hover,
.more-hub-group > button:focus-visible,
.more-hub-group > a:hover,
.more-hub-group > a:focus-visible {
  background: rgba(220, 235, 224, .48);
  outline: 2px solid transparent;
}

.more-hub-group > button span,
.more-hub-group > a span {
  min-width: 0;
}

.more-hub-group strong,
.more-hub-group small {
  display: block;
}

.more-hub-group strong {
  font-size: 13px;
  line-height: 1.3;
}

.more-hub-group small {
  margin-top: 3px;
  color: var(--muted);
  font: 500 10px/1.4 'DM Mono', monospace;
}

.more-hub-group b {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
}

.domain-hub-view {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.domain-hub-title {
  margin-bottom: 16px;
}

.money-home-grid,
.home-hub-grid,
.people-domain-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.domain-lead-card,
.money-month-card {
  padding: clamp(18px, 3vw, 28px);
}

.money-responsibility-card {
  grid-row: span 2;
}

.domain-lead-card h2,
.money-month-card h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.12;
}

.domain-lead-card > strong {
  display: block;
  margin: 12px 0 5px;
  color: var(--forest);
  font-size: clamp(25px, 5vw, 42px);
  line-height: 1.04;
}

.domain-lead-card > p:not(.eyebrow):not(.domain-status) {
  max-width: 54ch;
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.domain-status {
  width: fit-content;
  margin: 12px 0 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(231, 151, 113, .15);
  color: #7a3c25;
  font: 700 11px/1.2 'DM Mono', monospace;
}

.domain-destination {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.domain-destination:hover,
.domain-destination:focus-visible {
  border-color: rgba(35, 78, 66, .34);
  background: rgba(220, 235, 224, .46);
}

.domain-destination > span {
  min-width: 0;
}

.domain-destination strong,
.domain-destination small {
  display: block;
}

.domain-destination strong {
  font-size: 15px;
  line-height: 1.3;
}

.domain-destination small {
  margin-top: 4px;
  color: var(--muted);
  font: 500 11px/1.45 'DM Mono', monospace;
}

.domain-destination > em {
  margin-left: auto;
  color: var(--forest-2);
  font: 700 11px/1.3 'DM Mono', monospace;
  text-align: right;
}

.domain-destination > b {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
}

.domain-destination-primary {
  border-color: rgba(35, 78, 66, .22);
  background: rgba(220, 235, 224, .34);
}

.domain-destination-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.money-month-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.money-month-card dl div {
  min-width: 0;
}

.money-month-card dt {
  color: var(--muted);
  font: 600 9px/1.3 'DM Mono', monospace;
  text-transform: uppercase;
}

.money-month-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.people-domain-summary {
  margin-bottom: 18px;
}

.people-summary-card {
  padding: 18px;
}

.people-summary-card strong,
.people-summary-card span {
  display: block;
}

.people-summary-card strong {
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: 19px;
}

.people-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.route-fallback-notice {
  width: min(calc(100% - 32px), 760px);
  margin: 12px auto;
  padding: 11px 14px;
  border: 1px solid rgba(35, 78, 66, .16);
  border-radius: 12px;
  background: var(--mint);
  color: var(--forest-2);
  font-size: 12px;
}

.route-fallback-notice[hidden],
.domain-status[hidden],
.secondary-retry[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .app-shell,
  .app-shell.sidebar-is-collapsed {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    background: var(--paper) !important;
  }

  .sidebar,
  .sidebar.is-collapsed,
  .mobile-nav-toggle,
  .mobile-nav-close,
  .nav-scrim {
    display: none !important;
  }

  body.nav-open {
    overflow: auto;
  }

  .main-content {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  .calendar-layout,
  .money-columns,
  .foundation-columns,
  .connection-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .calendar-layout,
  .calendar-surface,
  .money-columns,
  .foundation-columns {
    min-width: 0;
    max-width: 100%;
  }

  .calendar-surface {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-title {
    flex-wrap: wrap;
    gap: 16px;
  }

  .mobile-quick-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 66px;
    padding: 5px max(4px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border-top: 1px solid rgba(20, 42, 37, .12);
    background: rgba(249, 247, 242, .94);
    box-shadow: 0 -10px 32px rgba(20, 42, 37, .08);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
  }

  .quick-nav-item {
    display: grid;
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 12px;
    color: #78897f;
  }

  .quick-nav-item span {
    min-height: 21px;
    line-height: 21px;
  }

  .quick-nav-item .cb-icon {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .quick-nav-item small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font: 800 10px/1.15 'Manrope', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-nav-item.is-active {
    color: var(--forest);
    background: rgba(220, 235, 224, .82);
  }

  .topbar {
    min-width: 0;
  }

  .topbar-heading {
    min-width: 0;
  }

  .context-back:not([hidden]) {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    gap: 3px;
    padding: 0 8px 0 2px;
    border-radius: 10px;
    color: var(--forest-2);
    font-size: 11px;
    font-weight: 800;
  }

  .context-back b {
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
  }

  .topbar-heading > div,
  .topbar-heading > section {
    min-width: 0;
  }

  .topbar h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app-refresh {
    display: none !important;
  }

  .topbar-actions .topbar-tool,
  .topbar-actions .notification-button,
  #current-profile {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  #current-profile {
    display: grid;
    place-items: center;
  }

  #current-profile #profile-name,
  #current-profile b {
    display: none;
  }

  .profile-menu {
    max-height: calc(100dvh - 100px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-actions .topbar-tool {
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .topbar-tool-label,
  .notification-button-label {
    display: none !important;
  }

  .quick-add-shell {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .more-hub-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-hub-view .page-title {
    margin-bottom: 14px;
  }
}

@media (max-width: 620px) {
  .more-hub-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .more-hub-group > button,
  .more-hub-group > a {
    min-height: 62px;
  }

  .money-home-grid,
  .home-hub-grid,
  .people-domain-summary,
  .domain-destination-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .money-responsibility-card {
    grid-row: auto;
  }

  .domain-lead-card,
  .money-month-card {
    padding: 17px;
  }

  .domain-lead-card > strong {
    margin-top: 9px;
    font-size: 27px;
  }

  .domain-lead-card > p:not(.eyebrow):not(.domain-status) {
    margin: 6px 0 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  .domain-destination {
    min-height: 68px;
    padding: 13px 14px;
  }

  .money-month-card dl {
    margin: 11px 0;
  }

  .money-month-card dd {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .quick-nav-item small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-nav-item,
  .domain-destination,
  .more-hub-group > button,
  .more-hub-group > a {
    transition: none !important;
  }
}
