:root {
  --ink: #1b2430;
  --muted: #667487;
  --line: #d7dfe7;
  --paper: #eef3f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #fbfdff;
  --slate: #223548;
  --steel: #34506b;
  --amber: #4d89c7;
  --orange: #1f68ad;
  --sand: #dfe8f3;
  --green: #4f7a64;
  --shadow: 0 20px 48px rgba(24, 36, 50, 0.12);
  --radius: 22px;
  --section-shadow: 0 18px 36px rgba(19, 34, 55, 0.08);
  --shell-sidebar-width: clamp(210px, 14vw, 235px);
  --shell-sidebar-width-compact: clamp(190px, 18vw, 220px);
  --hero-min-height: 35vh;
  --hero-home-min-height: 35vh;
  --hero-padding-block: 28px;
  --hero-padding-inline: 32px;
  --hero-radius: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-y: scroll; }
[hidden] { display: none !important; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.16), transparent 18%),
    radial-gradient(circle at right 15%, rgba(77, 137, 199, 0.14), transparent 20%),
    linear-gradient(180deg, #e9f1f8 0%, #f8fbff 52%, #eef4fa 100%);
}
a { color: inherit; }
button {
  font: inherit;
  cursor: pointer;
}

.shell-page {
  width: min(1720px, calc(100% - 24px));
  margin: 12px auto;
  background: transparent;
  display: grid;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shell-header {
  position: sticky;
  top: 12px;
  width: var(--shell-sidebar-width);
  min-height: calc(100dvh - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  padding: 24px 14px 22px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: white;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%),
    linear-gradient(135deg, #132031, #22384d 48%, #1e5d96 100%);
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-top,
.status-row,
.shell-nav,
.cta-row,
.trade-actions,
.resource-actions,
.frame-actions,
.hub-actions,
.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-top { justify-content: flex-start; align-items: center; }
.status-row { margin-top: 18px; }
.shell-nav { margin-top: 18px; flex-direction: column; }
.top-actions { display: grid; gap: 10px; width: 100%; }
.cta-row { margin-top: 18px; }

.sidebar-utilities {
  margin-top: auto;
  padding-top: 18px;
}

.sidebar-settings-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-settings-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 180px;
  background: linear-gradient(160deg, #1c3248, #192c40);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.48);
  display: grid;
  gap: 6px;
  padding: 8px;
  z-index: 200;
}

.sidebar-settings-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.16s ease, background 0.16s ease;
}

.sidebar-settings-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.sidebar-settings-card.active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-settings-wrapper--down .sidebar-settings-panel {
  bottom: auto;
  top: calc(100% + 8px);
}

.sidebar-settings-panel-label {
  padding: 6px 14px 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

body[data-page-key]:not(.auth-verified) > * {
  visibility: hidden !important;
}

body[data-page-key]:not(.auth-verified)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.16), transparent 18%),
    radial-gradient(circle at right 15%, rgba(77, 137, 199, 0.14), transparent 20%),
    linear-gradient(180deg, #e9f1f8 0%, #f8fbff 52%, #eef4fa 100%);
  opacity: 0;
  animation: auth-loader-fade 140ms ease 320ms forwards;
}

body[data-page-key]:not(.auth-verified)::after {
  content: "Loading Aros...";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--section-shadow);
  color: #203650;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  animation: auth-loader-fade 140ms ease 420ms forwards;
}

@keyframes auth-loader-fade {
  to {
    opacity: 1;
  }
}

.header-search-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(168, 224, 255, 0.22);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.page-search-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: -4px;
}

.page-search-toolbar .header-search-button {
  min-width: 0;
}

.hero-search-anchor {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-search-button {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-search-button:hover,
.hero-search-button:focus-visible {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(8, 20, 34, 0.18);
}

.header-search-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-search-button:hover,
.header-search-button:focus-visible {
  border-color: rgba(168, 224, 255, 0.38);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 24, 42, 0.18);
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 34, 0.58);
  backdrop-filter: blur(8px);
}

.site-search-modal {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(78vh, 860px);
  margin: 72px auto 0;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.97));
  box-shadow: 0 28px 80px rgba(10, 22, 38, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.site-search-head h2,
.site-search-head p {
  margin: 0;
}

.site-search-head p {
  margin-top: 6px;
  color: var(--muted);
}

.site-search-close {
  border: 0;
  background: rgba(18, 31, 48, 0.06);
  color: #213650;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.site-search-input-wrap svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: #547396;
}

.site-search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #16263a;
  font: inherit;
  font-size: 1.05rem;
}

.site-search-results {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.site-search-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(245, 249, 253, 0.88);
  border: 1px solid rgba(27, 36, 48, 0.06);
  color: var(--muted);
}

.site-search-empty strong {
  color: #1a2f47;
}

.site-search-result {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.06);
  background: rgba(255,255,255,0.88);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 104, 173, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(238,246,255,0.98));
  box-shadow: 0 14px 26px rgba(19, 34, 55, 0.08);
}

.site-search-result-type,
.site-search-result-path {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-search-result strong {
  color: #16263a;
  font-size: 1.02rem;
}

body.search-open {
  overflow: hidden;
}

.site-search-target {
  position: relative;
  z-index: 2 !important;
  border-radius: 18px;
  box-shadow:
    0 0 0 3px rgba(168, 224, 255, 0.98),
    0 18px 42px rgba(8, 24, 44, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,247,255,0.98));
  animation: site-search-pulse 1.8s ease-in-out 3;
}

.site-search-target::after {
  content: "Search Result";
  position: absolute;
  top: -12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 71, 126, 0.24);
}

@keyframes site-search-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(168, 224, 255, 0.98),
      0 18px 42px rgba(8, 24, 44, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(168, 224, 255, 0.54),
      0 20px 46px rgba(8, 24, 44, 0.2);
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  height: 84px;
  width: auto;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(215, 101, 44, 0.28);
}

.shell-title {
  margin: 22px 0 0;
  font-size: clamp(1.9rem, 2.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.shell-subtitle {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 0.96rem;
}

.pill,
.trade-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.trade-tag {
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(31, 104, 173, 0.12);
  color: #215f97;
}

.nav-link,
.cta-link,
.resource-link,
.mini-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

button.nav-link,
button.resource-link,
button.mini-link,
button.cta-link {
  appearance: none;
  border: none;
}

.nav-link {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
}

.nav-link span:last-child {
  min-width: 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.nav-link.active,
.nav-link:hover { background: rgba(255, 255, 255, 0.18); }
.nav-link.active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link-break {
  position: relative;
  margin-top: 18px;
}

.nav-link-break::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: -10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.cta-link:hover,
.resource-link:hover,
.mini-link:hover,
.nav-link:hover { transform: translateY(-1px); }

.cta-primary,
.resource-link.primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(200, 138, 45, 0.24);
}

.cta-secondary,
.resource-link.secondary,
.mini-link {
  color: #24364a;
  background: white;
  border: 1px solid rgba(27, 36, 48, 0.12);
}

.resource-link.is-disabled,
.cta-link.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
  box-shadow: none;
}

.shell-main {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1380px;
  min-width: 0;
  justify-self: stretch;
  padding-top: 0;
}

.shell-main-centered {
  min-height: calc(100vh - 24px);
  align-content: center;
}

body[data-page-key="home"] .shell-main {
  width: 100%;
  max-width: 1380px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell-footer {
  margin-top: 18px;
  padding: 20px 28px 28px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(27, 36, 48, 0.08);
  width: min(1240px, 100%);
  justify-self: start;
  grid-column: 2;
}

.hero-grid,
.grid-2,
.trade-grid,
.resource-grid,
.launch-grid,
.hub-grid {
  display: grid;
  gap: 18px;
}

.hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trade-grid,
.resource-grid,
.launch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); }

.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-card,
.trade-card,
.resource-card,
.info-card,
.launch-card,
.hub-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--section-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trade-card,
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.card-linkable {
  cursor: pointer;
}

.card-linkable:focus-visible {
  outline: 3px solid rgba(31, 104, 173, 0.28);
  outline-offset: 4px;
}

.resource-actions {
  margin-top: auto;
  align-items: flex-end;
}

.resource-card:hover,
.resource-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 104, 173, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
  box-shadow: 0 22px 40px rgba(19, 34, 55, 0.12), 0 0 0 1px rgba(129, 205, 255, 0.2);
}

.quick-link-card {
  min-height: 210px;
}

.resource-card.quick-link-card:hover,
.resource-card.quick-link-card:focus-within {
  transform: none;
  border-color: rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  box-shadow: var(--section-shadow);
}

.quick-link-card .logo-chip {
  align-self: flex-start;
  min-height: 74px;
  min-width: 170px;
  max-width: 100%;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.quick-link-card .logo-chip img {
  max-height: 48px;
  max-width: 230px;
}

.quick-link-card .logo-chip.logo-card-light img,
.quick-link-card .logo-chip:has(img[alt="Sequoia"]) img {
  mix-blend-mode: normal;
}

.quick-link-card .logo-chip:hover,
.quick-link-card .logo-chip:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.quick-link-card .logo-chip:has(img[alt="Sequoia"]) {
  min-width: 240px;
}

.quick-link-card .logo-chip:has(img[alt="Sequoia"]) img {
  max-height: 104px;
  max-width: 300px;
}

.quick-link-card .logo-tesla-image img {
  max-height: 54px;
  max-width: 300px;
}

.intake-card {
  min-height: 170px;
}

.fpa-card-grid .resource-card:hover,
.fpa-card-grid .resource-card:focus-within {
  transform: none;
  border-color: rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  box-shadow: none;
}

.fpa-card-grid {
  align-items: stretch;
}

.fpa-card-grid .resource-card.fpa-resource-card {
  min-height: 0;
  gap: 18px;
  justify-content: flex-start;
}

.fpa-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpa-card-copy .resource-type,
.fpa-card-copy h3,
.fpa-card-copy p {
  margin: 0;
}

.fpa-card-grid .card-foot {
  margin-top: auto;
}

.fpa-card-grid .resource-actions.card-foot {
  align-items: flex-start;
}

.fpa-card-grid .logo-chip-wall.card-foot {
  gap: 12px;
  align-content: flex-end;
}

.fpa-card-grid .logo-chip.logo-card-chip {
  min-height: 48px;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 14px;
}

.fpa-card-grid .logo-chip.logo-wide.logo-card-chip {
  min-width: 146px;
}

.fpa-card-grid .logo-chip.logo-card-chip img {
  max-height: 30px;
  max-width: 124px;
}

.fpa-card-grid .logo-chip.logo-wide.logo-card-chip img {
  max-width: 152px;
}

.fpa-card-grid .resource-link.primary {
  min-width: 0;
}

.section-card h2,
.trade-card h2,
.resource-card h3,
.info-card h3,
.launch-card h3,
.hub-card h2,
.hub-card h3 {
  margin: 0 0 10px;
  color: #16263a;
}

.trade-card h2,
.hub-card h2 { font-size: 1.45rem; }

.section-card p,
.trade-card p,
.resource-card p,
.info-card p,
.launch-card p,
.hub-card p,
.frame-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-kicker,
.resource-type {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-kicker { color: #215f97; }
.resource-type { display: none; }

.check-list,
.next-list,
.resource-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #31465f;
  line-height: 1.7;
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 104, 173, 0.1), rgba(57, 123, 113, 0.1));
  border: 1px solid rgba(57, 123, 113, 0.16);
  color: #334558;
  line-height: 1.5;
  font-size: 0.95rem;
}

.section-band {
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  backdrop-filter: blur(12px);
}

.section-band.dark {
  color: white;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 32%),
    linear-gradient(135deg, #132031 0%, #20384d 55%, #1e5d96 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: var(--hero-min-height);
  padding: var(--hero-padding-block) var(--hero-padding-inline);
  border-radius: var(--hero-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hero-home {
  min-height: var(--hero-home-min-height);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -50px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 68%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .band-head {
  width: 100%;
  align-items: center;
  margin-bottom: 0;
}

.hero .hub-actions {
  justify-content: flex-start;
}

.hero-centered {
  justify-content: center;
  text-align: center;
}

.hero-centered .hero-copy,
.hero-centered .cta-row {
  width: 100%;
  justify-content: center;
}

.section-band.dark h2,
.section-band.dark h3,
.section-band.dark p,
.section-band.dark .section-kicker,
.section-band.dark .stat-label,
.section-band.dark .stat-value {
  color: white;
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.band-head h2,
.band-head h3 {
  margin: 0 0 8px;
  color: #16263a;
}

.band-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.platform-logo-heading {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.platform-logo-heading img {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 46px;
  object-fit: contain;
}

.platform-logo-heading img[alt="OpenSolar"] {
  max-width: 260px;
}

.platform-logo-heading img[alt="Aurora"] {
  max-width: 230px;
}

.platform-logo-heading img[alt="GoodLeap"] {
  max-width: 250px;
  max-height: 52px;
}

.hub-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-banner {
  background: linear-gradient(135deg, #16212d, #29445f 62%, #1f68ad);
  color: white;
}

.hero-banner::after {
  display: none;
}

.hero-banner h2,
.hero-banner h3,
.hero-banner p,
.hero-banner .stat-label,
.hero-banner .stat-value {
  color: white;
}

.hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 138px;
}

.hero-copy h2,
.hero-copy p {
  margin: 0;
  max-width: 640px;
}

.hero-copy h2 {
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-action-row {
  margin-top: 10px;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  min-height: 56px;
}

.hero-logo {
  display: block;
  max-height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.dual-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

.hub-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.logo-chip img {
  display: block;
  max-height: 36px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.logo-chip.logo-wide img {
  max-height: 36px;
  max-width: 180px;
}

.logo-wordmark-split {
  display: inline-grid;
  place-items: center;
}

.logo-wordmark-split > img {
  grid-area: 1 / 1;
}

.logo-wordmark-split .logo-word {
  filter: brightness(0) invert(1);
}

.logo-wordmark-opensolar .logo-mark {
  clip-path: inset(0 calc(100% - 40px) 0 0);
}

.logo-wordmark-opensolar .logo-word {
  clip-path: inset(0 0 0 40px);
}

.logo-wordmark-aurora .logo-mark {
  clip-path: inset(0 calc(100% - 42px) 0 0);
  filter: brightness(0) invert(1);
}

.logo-wordmark-aurora .logo-word {
  clip-path: inset(0 0 0 42px);
}

.logo-chip.logo-match img {
  max-height: 40px;
  max-width: 170px;
}

.logo-chip.logo-stretch img {
  max-height: 40px;
  max-width: 220px;
}

.logo-chip.logo-tight {
  min-width: 0;
  padding: 6px 8px;
}

.logo-chip:has(img[alt="Anlin"]) {
  padding-left: 16px;
  padding-right: 10px;
}

.logo-chip.logo-tight img {
  max-height: 40px;
  max-width: 240px;
}

.logo-chip img[alt="Anlin"] {
  max-height: 46px;
  max-width: 240px;
  transform: translateY(1px);
}

.logo-chip.logo-ava {
  min-width: 0;
  padding: 6px 8px;
}

.logo-chip.logo-ava img {
  max-height: 40px;
  max-width: 176px;
  transform: translateY(1px);
}

.logo-chip.logo-repcard img {
  max-height: 46px;
  max-width: 236px;
  transform: scale(1.18) translateY(1px);
  transform-origin: center;
}

.logo-chip.logo-timetree img {
  max-height: 44px;
  max-width: 220px;
  transform: scale(1.16) translate(-4px, 1px);
  transform-origin: center;
}

.logo-chip img[alt="Slack"] {
  max-height: 42px;
  transform: translateY(1px);
}

.logo-chip img[alt="OpenSolar"] {
  max-height: 32px;
  transform: translateY(1px);
}

.logo-chip img[alt="Aurora"] {
  max-height: 34px;
  transform: translateY(1px);
}

.logo-chip img[alt="EverBright"] {
  max-height: 33px;
  transform: translateY(1px);
}

.logo-chip img[alt="SMUD"] {
  max-height: 40px;
}

.logo-chip:has(img[alt="Tetra"]) {
  min-width: 172px;
  padding: 8px 14px;
}

.logo-chip img[alt="Tetra"] {
  height: 40px;
  width: auto;
  max-height: none;
  max-width: none;
  transform: translateY(1px);
  transform-origin: center;
}

.logo-chip:has(img[alt="Sequoia"]) {
  min-width: 198px;
}

.logo-chip img[alt="Sequoia"] {
  max-height: 56px;
  mix-blend-mode: screen;
  transform: translateY(1px);
}

.logo-chip:has(img[alt="Sequoia"]):hover,
.logo-chip:has(img[alt="Sequoia"]):focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.logo-chip.logo-home-depot,
.logo-chip.logo-simonton,
.logo-chip.logo-andersen {
  min-width: 0;
  padding: 8px 10px;
}

.logo-chip.logo-home-depot img {
  max-height: 46px;
  max-width: 150px;
  transform: scale(1.42);
  transform-origin: center;
}

.logo-chip.logo-simonton,
.logo-chip.logo-andersen {
  background: rgba(255, 255, 255, 0.94);
}

.logo-chip.logo-simonton img {
  max-height: 42px;
  max-width: 220px;
  transform: scale(1.08);
  transform-origin: center;
}

.logo-chip.logo-andersen img {
  max-height: 40px;
  max-width: 220px;
}

.logo-chip.logo-chatgpt,
.logo-chip.logo-claude {
  min-width: 0;
  padding: 8px 12px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-chip.logo-chatgpt {
  padding: 8px 14px;
}

.logo-chip.logo-chatgpt img {
  max-height: 36px;
  max-width: 180px;
  filter: invert(1);
  transform: scale(1);
  transform-origin: center;
}

.logo-chip.logo-claude img {
  max-height: 36px;
  max-width: 180px;
  transform: scale(1);
  transform-origin: center;
}

.logo-chip:hover,
.logo-chip:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.34), rgba(86, 160, 232, 0.24));
  border-color: rgba(129, 205, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.14), 0 14px 28px rgba(8, 24, 44, 0.34);
  transform: translateY(-2px) scale(1.02);
}

.hub-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.quick-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(34, 53, 72, 0.04);
  border: 1px solid rgba(34, 53, 72, 0.08);
}

.quick-card h3 {
  margin: 0 0 10px;
}

.quick-card p {
  margin: 0;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.home-hero-single {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
}

.home-hero-single > .home-spotlight {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-spotlight {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 30%),
    linear-gradient(135deg, #121a24 0%, #25384d 52%, #1f68ad 100%);
  color: white;
  min-height: 420px;
}

.home-spotlight-full {
  min-height: 0;
}

.home-hero-single > .home-spotlight::before,
.home-hero-single > .home-spotlight::after {
  display: none;
}

.home-spotlight-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-kicker {
  margin: 0;
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

.home-spotlight-centered h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
}

.home-spotlight-centered p {
  max-width: 760px;
}

.home-spotlight-centered .cta-row,
.home-spotlight-centered .hero-metrics {
  width: 100%;
}

.home-spotlight::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}

.home-spotlight::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,137,199,0.18), transparent 72%);
}

.home-spotlight > * {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-logo {
  display: block;
  max-width: min(460px, 100%);
  max-height: 110px;
  width: auto;
  height: auto;
  margin: 0 0 16px;
}

.home-spotlight h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-spotlight p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  font-size: 1.04rem;
}

.home-hero-actions {
  margin-top: 18px;
}

.home-welcome-hero {
  position: relative;
  overflow: hidden;
}

body[data-page-key="home"] .hero-search-anchor {
  display: none;
}

.home-welcome-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 22px;
  min-height: 0;
  padding: 26px 20px 16px;
}

.home-command-top {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-right: 190px;
}

.home-hero-search-button {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 3;
}

.home-welcome-card h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.45rem, 3.2vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-welcome-card p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
  font-size: 1.02rem;
}

.home-command-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 199, 71, 0.12);
  border: 1px solid rgba(255, 199, 71, 0.18);
  color: #ffd058;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-utility-button,
.home-icon-button,
.home-profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(168, 224, 255, 0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.home-utility-button,
.home-icon-button {
  appearance: none;
  cursor: pointer;
}

.home-utility-button {
  gap: 10px;
  min-width: 158px;
  padding: 0 16px;
}

.home-utility-button svg,
.home-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.home-icon-button {
  position: relative;
  width: 46px;
  padding: 0;
}

.home-icon-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff4d57;
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-profile-chip {
  width: 52px;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
}

.home-goal-card {
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10,24,42,0.98), rgba(9,23,40,0.96));
  border: 1px solid rgba(126, 170, 226, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(128, 183, 255, 0.04);
}

.home-goal-card-hero {
  background:
    linear-gradient(180deg, rgba(10,24,42,0.92), rgba(7,18,33,0.96)),
    radial-gradient(circle at top right, rgba(84, 162, 255, 0.12), transparent 28%);
  width: 100%;
  max-width: none;
}

.home-goal-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 16px;
}

.home-goal-title .resource-type,
.home-goal-title h2 {
  grid-column: 2;
}

.home-goal-title .resource-type {
  display: inline-flex;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

.goal-icon,
.metric-icon,
.card-heading-icon,
.focus-stat-icon,
.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.goal-icon {
  grid-row: 1 / span 2;
  width: 62px;
  height: 62px;
}

.goal-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-goal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.home-goal-head h2 {
  margin: 4px 0 0;
  color: white;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-goal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(540px, 100%);
}

.home-goal-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.home-goal-metric strong,
.home-goal-metric span {
  grid-column: 2;
}

.metric-icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
}

.metric-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-goal-metric strong {
  color: white;
  font-size: 1.1rem;
}

.home-goal-metric span {
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  font-size: 0.9rem;
}

.goal-progress-track {
  height: 14px;
  margin-top: 18px;
  background: rgba(255,255,255,0.09);
}

.home-goal-foot {
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}

.home-goal-foot strong {
  color: #54a2ff;
}

.welcome-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-status-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-status-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.card-heading-icon {
  width: 24px;
  height: 24px;
  color: #2a62c9;
}

.card-heading-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.home-status-value {
  color: #16263a;
  font-size: clamp(1.95rem, 2.65vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.home-status-subvalue {
  color: #d63636;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-status-callout {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,245,245,0.98), rgba(255,238,238,0.96));
  border: 1px solid rgba(214, 54, 54, 0.08);
}

.home-status-callout strong,
.home-status-callout-info strong {
  color: #16263a;
}

.home-status-callout span,
.home-status-callout-info span {
  color: var(--muted);
  line-height: 1.5;
}

.home-status-callout-info {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(241,247,255,0.98), rgba(232,241,255,0.96));
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.home-pipeline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-pipeline-row div {
  display: grid;
  gap: 4px;
}

.home-pipeline-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-pipeline-row strong {
  color: #16263a;
  font-size: 0.95rem;
}

.home-focus-card {
  justify-content: space-between;
}

.home-focus-copy {
  color: #11875f;
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 800;
}

.home-focus-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-focus-stat {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  text-align: center;
}

.home-focus-stat strong {
  color: #16263a;
  font-size: 1.3rem;
  line-height: 1;
}

.focus-stat-icon {
  width: 22px;
  height: 22px;
  color: #2a62c9;
}

.focus-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-focus-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.home-mini-updates {
  display: grid;
  gap: 12px;
}

.home-mini-update {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.home-mini-update:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-mini-update strong,
.home-mini-update p {
  margin: 0;
}

.home-mini-update p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.home-inline-link {
  color: #2d73d3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.home-training-list {
  display: grid;
  gap: 12px;
}

.home-training-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.home-training-item strong,
.home-training-item p {
  margin: 0;
}

.home-training-item p {
  margin-top: 4px;
  color: var(--muted);
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-resource-grid .resource-link {
  width: 100%;
  justify-content: flex-start;
}

.home-leaderboard-list {
  display: grid;
  gap: 12px;
}

.home-leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.home-leaderboard-item strong {
  color: #16263a;
  min-width: 16px;
}

.home-leaderboard-item span {
  flex: 1;
  color: #16263a;
  font-weight: 700;
}

.home-leaderboard-item em {
  color: #1b8b54;
  font-style: normal;
  font-weight: 800;
}

.home-leaderboard-item-active {
  background: linear-gradient(180deg, rgba(236,244,255,0.98), rgba(227,238,255,0.96));
  border-color: rgba(31, 104, 173, 0.12);
}

.home-leaderboard-item-active em {
  color: #145bc8;
}

.home-leaderboard-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-panel-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.compact-head {
  margin-bottom: 14px;
}

.compact-head h2 {
  margin: 0;
}

.title-stack-list {
  display: grid;
  gap: 8px;
}

.title-stack-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 0;
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: white;
  text-decoration: none;
  color: #16263a;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(19, 34, 55, 0.04);
}

.title-stack-item:hover,
.title-stack-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 104, 173, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
}

.bottom-review-grid {
  align-items: stretch;
}

.month-review-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.deal-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#1f68ad 0 50%, #dfe8f3 50% 100%);
  display: grid;
  place-items: center;
  margin-left: 12px;
}

.deal-ring-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.deal-ring-inner strong {
  color: #16263a;
  font-size: 1.2rem;
  line-height: 1;
}

.deal-ring-inner span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.month-review-copy {
  display: grid;
  gap: 10px;
}

.month-review-copy strong {
  color: #16263a;
  font-size: 1.05rem;
}

.month-review-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-notes-wrap {
  display: block;
}

.home-notes-wrap textarea {
  width: 100%;
  min-height: 190px;
  border-radius: 0;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 16px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.home-notes-wrap textarea:focus {
  outline: none;
  border-color: rgba(31, 104, 173, 0.32);
  box-shadow: 0 0 0 4px rgba(77, 137, 199, 0.12);
}

.home-trade-grid,
.home-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-trade-card {
  min-height: 0;
  padding: 24px;
}

.workflow-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 2px;
}

.workflow-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.workflow-icon-batteries {
  background: rgba(28, 154, 102, 0.1);
  color: #14935f;
}

.workflow-icon-solar {
  background: rgba(255, 170, 45, 0.14);
  color: #f29a1f;
}

.workflow-icon-windows {
  background: rgba(54, 118, 255, 0.1);
  color: #2664f6;
}

.workflow-icon-hvac {
  background: rgba(131, 79, 255, 0.1);
  color: #7c45ef;
}

.workflow-icon-roofing {
  background: rgba(255, 84, 84, 0.1);
  color: #ff4d57;
}

.home-trade-card .chooser-actions {
  margin-top: auto;
}

.home-command-copy {
  display: grid;
  gap: 10px;
}

.home-command-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.35rem, 3.1vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-command-copy p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.5;
  font-size: 1rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.dashboard-card-head,
.goal-bar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-card-head h3,
.goal-bar-head h2 {
  margin: 0;
  color: #16263a;
}

.goal-bar-head h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.resource-type-live {
  display: inline-flex;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.78);
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.1);
  color: #215f97;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.dashboard-chip-warn {
  background: rgba(191, 90, 36, 0.12);
  color: #a24b20;
}

.goal-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.goal-meta-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.goal-meta-pill strong {
  color: #16263a;
  font-size: 0.95rem;
}

.goal-meta-pill span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.08);
}

.goal-progress-track {
  height: 14px;
  background: rgba(255,255,255,0.09);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
}

.progress-fill-soft {
  background: linear-gradient(135deg, #295d92, #78a8de);
}

.two-column-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-dashboard-stack,
.workflow-band,
.bottom-dashboard-band,
.slim-leaderboard-band {
  margin: 0 22px;
}

.home-dashboard-stack,
.workflow-band,
.bottom-dashboard-band,
.slim-leaderboard-band {
  border-color: rgba(255,255,255,0.1);
  background: transparent;
  box-shadow: none;
}

.goal-bar-card {
  border-color: rgba(126, 170, 226, 0.2);
  background: linear-gradient(180deg, rgba(10,24,42,0.98), rgba(9,23,40,0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(128, 183, 255, 0.04);
}

.goal-bar-card h2,
.goal-bar-card strong,
.goal-bar-card .dashboard-chip {
  color: white;
}

.goal-bar-card .dashboard-chip {
  background: rgba(255,255,255,0.08);
}

.goal-meta-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.goal-meta-pill strong,
.goal-meta-pill span {
  color: white;
}

.goal-meta-pill span {
  color: rgba(255,255,255,0.72);
}

.goal-meta-pill-icon {
  position: relative;
  padding-left: 48px;
}

.goal-meta-pill-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(145, 191, 255, 0.72);
  transform: translateY(-50%);
}

.goal-foot-note {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}

.goal-foot-note strong {
  color: #54a2ff;
}

.dashboard-subvalue {
  color: #16263a;
  font-size: 0.98rem;
  font-weight: 800;
}

.status-callout {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(248, 250, 253, 0.92);
}

.status-callout strong {
  color: #16263a;
}

.status-callout span {
  color: var(--muted);
  line-height: 1.5;
}

.status-callout-warn {
  background: linear-gradient(180deg, rgba(255,245,245,0.98), rgba(255,239,239,0.95));
  border-color: rgba(188, 52, 52, 0.12);
}

.status-callout-warn strong {
  color: #c33d3d;
}

.status-callout-blue {
  background: linear-gradient(180deg, rgba(241,247,255,0.98), rgba(233,242,255,0.95));
  border-color: rgba(31, 104, 173, 0.12);
}

.status-callout-blue strong {
  color: #1f68ad;
}

.pipeline-line {
  position: relative;
  height: 26px;
}

.pipeline-line-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f68ad 0%, #3c7fe0 72%, rgba(27, 36, 48, 0.12) 72%);
}

.pipeline-line-dot {
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f68ad;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(17, 71, 126, 0.18);
}

.pipeline-dot-booked { left: 0; }
.pipeline-dot-pending { left: 47%; }
.pipeline-dot-closed { right: 27%; }

.pipeline-mini-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-mini-scale div {
  display: grid;
  gap: 4px;
}

.pipeline-mini-scale span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pipeline-mini-scale strong {
  color: #16263a;
  font-size: 0.95rem;
}

.dashboard-primary-value {
  color: #16263a;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
  max-width: 360px;
}

.dashboard-metric-list {
  display: grid;
  gap: 10px;
}

.dashboard-metric-list div {
  display: grid;
  gap: 4px;
}

.dashboard-metric-list strong {
  color: #16263a;
  font-size: 0.98rem;
}

.dashboard-metric-list span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.primary-focus-card {
  justify-content: space-between;
}

.focus-primary-copy strong {
  color: #145bc8;
  font-size: 1.8rem;
  line-height: 1.3;
}

.focus-stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-stat {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.focus-stat strong {
  color: #16263a;
  font-size: 1.3rem;
  line-height: 1;
}

.focus-stat span {
  color: #5e7188;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.news-panel-card {
  gap: 16px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.news-list-item:last-child {
  border-bottom: 0;
}

.news-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-list-item strong,
.news-list-item p {
  margin: 0;
}

.news-list-item p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.news-tag-urgent {
  background: rgba(188, 52, 52, 0.12);
  color: #a32828;
}

.news-tag-important {
  background: rgba(205, 138, 45, 0.14);
  color: #9b6218;
}

.news-tag-training {
  background: rgba(31, 104, 173, 0.1);
  color: #215f97;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.workflow-grid-clean .workflow-card {
  min-height: 200px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
}

.workflow-card p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 180px;
}

.workflow-icon {
  color: #1f68ad;
  font-size: 2rem;
  line-height: 1;
}

.workflow-button {
  min-width: 140px;
  box-shadow: none;
}

.workflow-button-batteries {
  background: linear-gradient(135deg, #bfead8, #9bdcbc);
  color: #116b48;
}

.workflow-button-solar {
  background: linear-gradient(135deg, #ffe4b8, #ffd395);
  color: #ba6b00;
}

.workflow-button-windows {
  background: linear-gradient(135deg, #dceaff, #bdd7ff);
  color: #145bc8;
}

.workflow-button-hvac {
  background: linear-gradient(135deg, #eadcff, #dac5ff);
  color: #6f27d6;
}

.workflow-button-roofing {
  background: linear-gradient(135deg, #ffd0d0, #ffb4b4);
  color: #d63e3e;
}

.workflow-button:hover,
.workflow-button:focus-visible {
  filter: brightness(1.02);
}

.bottom-ops-grid {
  align-items: start;
}

.training-list {
  display: grid;
  gap: 12px;
}

.training-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.training-list-item strong,
.training-list-item p {
  margin: 0;
}

.training-list-item p {
  margin-top: 4px;
  color: var(--muted);
}

.resource-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-button-grid .resource-link {
  width: 100%;
  justify-content: flex-start;
}

.bottom-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.leaderboard-panel-card {
  gap: 14px;
}

.leaderboard-summary-grid {
  margin: 0 0 8px;
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.leaderboard-list-item strong {
  color: #16263a;
  min-width: 16px;
}

.leaderboard-list-item span {
  color: #16263a;
  font-weight: 700;
}

.leaderboard-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
  color: white;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leaderboard-avatar-large {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}

.leaderboard-name-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-name-stack span,
.leaderboard-name-stack small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-name-stack small {
  color: #667487;
  font-size: 0.82rem;
}

.leaderboard-name-stack span small {
  display: inline;
  margin-left: 8px;
  color: #215f97;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-list-item em {
  color: #1b8b54;
  font-style: normal;
  font-weight: 800;
}

.leaderboard-list-item-active {
  background: linear-gradient(180deg, rgba(236,244,255,0.98), rgba(227,238,255,0.96));
  border-color: rgba(31, 104, 173, 0.12);
}

.leaderboard-list-item-active em {
  color: #145bc8;
}

.leaderboard-foot-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.leaderboard-profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
}

.leaderboard-profile-copy {
  display: grid;
  gap: 4px;
}

.leaderboard-profile-copy strong,
.leaderboard-profile-copy span {
  margin: 0;
}

.leaderboard-profile-copy span {
  color: #667487;
  font-size: 0.9rem;
}

.home-wide-button {
  width: 100%;
}

.home-inline-link {
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #145bc8;
  font-weight: 800;
}

.home-inline-link:hover,
.home-inline-link:focus-visible {
  background: transparent;
}

.home-side {
  display: grid;
  gap: 18px;
}

.home-note {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  min-height: 200px;
}

.home-note h3 {
  margin: 0 0 10px;
}

.trade-chooser {
  margin-top: 22px;
}

.chooser-head {
  margin-bottom: 16px;
}

.chooser-head h2 {
  margin: 0 0 8px;
}

.chooser-head p {
  margin: 0;
  color: var(--muted);
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chooser-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,247,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.chooser-card.priority {
  background: linear-gradient(135deg, #f3f8fe 0%, #e8f0fa 100%);
}

.chooser-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.chooser-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chooser-meta {
  margin: 14px 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #215f97;
}

.chooser-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.split-callout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(34, 53, 72, 0.08);
  box-shadow: var(--section-shadow);
}

.mini-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mini-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.aro-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #121a24 0%, #25384d 58%, #1f68ad 100%);
  color: white;
}

.aro-card::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}

.aro-card p,
.aro-card h2,
.aro-card .section-kicker {
  color: white;
}

.aro-logo {
  max-height: 74px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.hero-metrics,
.trade-rail,
.insight-grid {
  display: grid;
  gap: 14px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.metric-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}

.metric-value {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.trade-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rail-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  min-height: 180px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rail-card.priority {
  background: linear-gradient(135deg, #eff6ff, #dceaf9);
}

.rail-card:hover,
.rail-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 104, 173, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
  box-shadow: 0 22px 40px rgba(19, 34, 55, 0.12), 0 0 0 1px rgba(129, 205, 255, 0.18);
}

.rail-card.priority:hover,
.rail-card.priority:focus-within {
  background: linear-gradient(135deg, #f4f9ff, #e2eefb);
}

.rail-card h3,
.rail-card p {
  margin: 0;
}

.trade-rail .chooser-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  width: 100%;
}

.trade-rail .chooser-actions .resource-link {
  width: 100%;
}

.rail-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #215f97;
}

.insight-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.command-strip.hero-only {
  grid-template-columns: 1fr;
}

.command-strip > * {
  height: 100%;
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.signal-item h3,
.signal-item p {
  margin: 0;
}

.signal-item p {
  margin-top: 6px;
  color: var(--muted);
}

.stacked-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stacked-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 170px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.stacked-link strong,
.stacked-link span {
  display: block;
}

.stacked-link > div {
  display: grid;
  gap: 4px;
}

.stacked-link span {
  margin-top: 4px;
  color: var(--muted);
}

.stacked-link > strong:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(200, 138, 45, 0.24);
}

.stacked-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--section-shadow);
}

.finance-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finance-option-grid-stacked {
  grid-template-columns: 1fr;
}

.finance-option-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(242,247,252,0.97));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 18px 36px rgba(19, 34, 55, 0.08);
  display: grid;
  gap: 18px;
}

.finance-option-head h3 {
  margin-bottom: 8px;
}

.finance-option-head p {
  margin: 0;
}

.finance-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-detail-grid.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-detail-grid .resource-card {
  min-height: 0;
}

.logo-wall {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo-chip-wall {
  padding: 6px 0 0;
}

.logo-chip.logo-card-chip {
  min-height: 54px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-chip.logo-card-chip:hover,
.logo-chip.logo-card-chip:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.12), rgba(86, 160, 232, 0.09));
  border-color: rgba(129, 205, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.06), 0 8px 16px rgba(8, 24, 44, 0.12);
}

.logo-chip-wall-dark {
  padding: 10px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #16212d, #29445f 62%, #1f68ad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 28px rgba(16, 38, 62, 0.12);
}

.logo-chip-wall-dark .logo-chip.logo-card-chip {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-pill {
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(19, 34, 55, 0.06);
}

.logo-pill img {
  display: block;
  max-height: 34px;
  max-width: 160px;
  width: auto;
  height: auto;
}

.logo-pill.logo-pill-wide img {
  max-width: 200px;
}

.text-logo-badge {
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  color: #1f4f8c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(19, 34, 55, 0.06);
}

.compact-card-grid {
  gap: 14px;
}

.compact-card-grid .resource-card {
  padding: 22px 20px;
  gap: 10px;
}

.compact-card-grid .resource-card p {
  font-size: 1rem;
}

.compact-card-grid .logo-wall {
  gap: 10px;
}

.compact-card-grid .logo-pill,
.compact-card-grid .text-logo-badge {
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 16px;
}

.compact-card-grid .logo-pill img {
  max-height: 28px;
  max-width: 140px;
}

.compact-card-grid .logo-pill.logo-pill-wide img {
  max-width: 180px;
}

.adder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.travel-tool-grid {
  display: block;
}

.travel-tool-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.homeowner-card {
  max-width: none;
  grid-template-columns: minmax(220px, 0.78fr) minmax(320px, 1.22fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.94)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.06), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 16px 30px rgba(16, 38, 62, 0.06);
}

.homeowner-card .field-stack {
  gap: 8px;
}

.homeowner-card .adder-control-row {
  grid-template-columns: auto minmax(220px, 250px);
  align-self: end;
}

.payment-adder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.28fr);
  gap: 20px;
  align-items: start;
}

.payment-adder-list-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(24, 44, 68, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.96)),
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.07), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 18px 30px rgba(16, 38, 62, 0.06);
}

.payment-adder-list-head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 44, 68, 0.08);
}

.payment-adder-list-head h3,
.payment-adder-list-head p {
  margin: 0;
}

.travel-route-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 12px;
  align-items: end;
}

.travel-miles-input {
  min-height: 48px;
}

.travel-adder-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(24, 44, 68, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.96)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 20px 34px rgba(16, 38, 62, 0.08);
}

.travel-adder-header {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 44, 68, 0.08);
}

.travel-adder-title {
  color: #17314b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-adder-options {
  display: grid;
  gap: 12px;
}

.travel-tier-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #17314b;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 44, 68, 0.08);
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.travel-tier-option input {
  margin: 0;
}

.travel-tier-option strong {
  font-size: 0.98rem;
  font-weight: 400;
}

.travel-tier-option.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(238, 246, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 12px 24px rgba(17, 71, 126, 0.1);
  transform: translateY(-1px);
}

.travel-tier-option.is-active span,
.travel-tier-option.is-active strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.adder-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,254,0.94)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.05), transparent 34%);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 16px 34px rgba(19, 34, 55, 0.07);
}

.adder-panel-head {
  display: grid;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.adder-panel-head h3 {
  margin: 0;
  color: #17314b;
  font-size: 1.08rem;
}

.adder-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #26415d;
}

.field-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(39, 66, 96, 0.18);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}

.field-input-readonly {
  display: flex;
  align-items: center;
  color: #17314b;
  font-weight: 700;
}

.field-input:focus {
  outline: none;
  border-color: rgba(31, 104, 173, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 104, 173, 0.12);
}

.adder-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.adder-control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.adder-route-action {
  display: grid;
}

.adder-select {
  appearance: none;
}

.adder-actions .resource-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.58;
}

.adder-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(27, 36, 48, 0.08);
  color: #506277;
  font-size: 0.93rem;
  line-height: 1.55;
}

.adder-panel-results {
  align-content: start;
}

.adder-status-wrap {
  display: flex;
}

.adder-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.1);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #1f68ad;
  font-weight: 800;
}

.adder-status.alert {
  background: rgba(189, 78, 38, 0.12);
  color: #b44924;
}

.adder-status.success {
  background: rgba(56, 124, 89, 0.12);
  color: #2e6d4b;
}

.adder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.adder-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.adder-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #567089;
}

.adder-stat strong {
  font-size: 1rem;
  color: #1d2a3a;
}

.adder-thresholds,
.adder-checklist {
  display: grid;
  gap: 10px;
}

.adder-tier,
.adder-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(27, 36, 48, 0.07);
}

.adder-tier span {
  color: var(--muted);
}

.adder-check {
  color: #456078;
  font-weight: 700;
}

.adder-check.complete {
  background: rgba(56, 124, 89, 0.1);
  border-color: rgba(56, 124, 89, 0.18);
  color: #2e6d4b;
}

.adder-check-toggle {
  justify-content: flex-start;
  cursor: pointer;
}

.adder-check-toggle input {
  accent-color: #1f68ad;
}

.route-link {
  min-height: 48px;
}

#solar-manual-check {
  min-width: 150px;
}

.adder-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.adder-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.95)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.05), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 14px 28px rgba(16, 38, 62, 0.05);
}

.adder-summary-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 10px 20px rgba(16, 38, 62, 0.05);
}

.adder-summary-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55718a;
}

.adder-summary-card strong {
  font-size: 1.34rem;
  color: #16263a;
}

.adder-summary-card:last-child {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(236, 245, 255, 0.98));
  border-color: rgba(31, 104, 173, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 14px 28px rgba(17, 71, 126, 0.08);
}

.adder-selection-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,252,0.92));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.84),
    0 12px 22px rgba(16, 38, 62, 0.04);
}

.adder-selection-panel h3 {
  margin: 0;
}

.adder-sheet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(247, 250, 253, 0.94);
}

.adder-sheet-status {
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
  padding-left: 4px;
}

.saved-sheet-list {
  display: grid;
  gap: 10px;
}

.saved-sheet-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.saved-sheet-card-active {
  border-color: rgba(31, 104, 173, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.95));
}

.saved-sheet-card strong,
.saved-sheet-card span {
  display: block;
}

.saved-sheet-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.saved-sheet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-link-danger {
  color: #8d2e2e;
  border-color: rgba(141, 46, 46, 0.18);
  background: rgba(255, 247, 247, 0.96);
}

#solar-open-sheet-picker[aria-disabled="true"] {
  opacity: 0.62;
  box-shadow: none;
}

.sheet-picker-modal[hidden] {
  display: none !important;
}

.sheet-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sheet-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 25, 39, 0.44);
  backdrop-filter: blur(6px);
}

.sheet-picker-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(72vh, 680px);
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,248,252,0.97)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.07), transparent 30%);
  box-shadow: 0 28px 60px rgba(16, 38, 62, 0.22);
}

.sheet-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  flex-shrink: 0;
}

.sheet-picker-head h3,
.sheet-picker-head p {
  margin: 0;
}

.sheet-picker-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.adder-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adder-selection-pill,
.adder-selection-empty {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #244761;
  font-weight: 700;
}

.adder-selection-empty {
  color: var(--muted);
  background: rgba(255,255,255,0.72);
}

.adder-item {
  gap: 14px;
}

.adder-item.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 0.98));
  border-color: rgba(17, 71, 126, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 8px 18px rgba(17, 71, 126, 0.06);
  transform: translateY(-1px);
}

.adder-item.is-active .adder-row-text {
  color: #17314b;
  font-weight: 700;
}

.adder-list {
  display: grid;
  gap: 8px;
}

.adder-list-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}

.adder-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adder-group-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 12px 28px rgba(19, 34, 55, 0.04);
}

.adder-group-head h3 {
  margin: 0 0 6px;
  color: #17314b;
}

.adder-group-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.adder-group-card.is-selected {
  border-color: rgba(17, 71, 126, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.98)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.08), transparent 36%);
  box-shadow: 0 18px 34px rgba(19, 55, 93, 0.1);
}

.adder-group-card.is-muted {
  opacity: 0.7;
}

.adder-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
}

.adder-section-meta-stack {
  gap: 12px;
  align-items: stretch;
}

.adder-section-metric {
  display: grid;
  gap: 4px;
}

.adder-section-label {
  color: #4b647b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adder-section-value {
  color: #17314b;
  font-size: 0.98rem;
  font-weight: 700;
}

.adder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(27, 36, 48, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.adder-row-inline {
  justify-content: space-between;
  gap: 16px;
}

.adder-inline-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 112px;
}

.adder-row-check {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  cursor: pointer;
}

.adder-row-text {
  color: #1d2a3a;
  font-size: 1rem;
  line-height: 1.35;
}

.adder-row-auto {
  justify-content: space-between;
}

.adder-auto-value {
  color: #17314b;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.travel-adder-card .adder-row-auto {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 44, 68, 0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.travel-adder-card .adder-row-auto.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(237, 245, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 12px 24px rgba(17, 71, 126, 0.09);
}

.adder-group-card .adder-item.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 22px rgba(17, 71, 126, 0.1);
  transform: translateY(-1px);
}

.adder-group-card .adder-item.is-active .adder-row-text {
  color: #17314b;
  font-weight: 800;
}

.adder-item-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.adder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #264764;
  font-weight: 700;
  cursor: pointer;
}

.adder-check-input {
  accent-color: #1f68ad;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.adder-qty {
  width: 120px;
  min-width: 120px;
  min-height: 40px;
}

.adder-cost-output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.adder-cost-output {
  min-width: 112px;
  background: #ffffff;
  border: 1px solid rgba(27, 36, 48, 0.12);
  color: #17314b;
  font-weight: 800;
}

.adder-item.is-disabled {
  opacity: 0.45;
}

.adder-item.is-disabled .adder-row-check {
  cursor: not-allowed;
}

.adder-rate {
  color: #1d2f46;
  font-size: 0.96rem;
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.check-grid.single,
.docs-grid {
  grid-template-columns: 1fr;
}

.check-card,
.warranty-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.check-title {
  font-weight: 800;
  color: #1d2a3a;
}

.check-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.check-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31465f;
  font-weight: 600;
}

.check-card input[type="checkbox"] {
  accent-color: #1f68ad;
}

.logo-wordmark {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: white;
  min-width: 120px;
}

.logo-tesla-text,
.logo-tesla-image {
  min-width: 0;
  padding: 6px 10px;
  text-decoration: none;
}

.logo-tesla-image img {
  max-height: 24px;
  max-width: 176px;
}

.logo-wordmark-tesla {
  min-width: 0;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-weight: 800;
  line-height: 1;
}

.logo-tesla-text:hover,
.logo-tesla-text:focus-visible,
.logo-tesla-text .logo-wordmark-tesla,
.logo-tesla-image:hover,
.logo-tesla-image:focus-visible {
  text-decoration: none;
}

.warranty-logo {
  justify-self: start;
}

.route-link {
  gap: 10px;
}

.route-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.page-top-card,
.page-side-card {
  min-height: 200px;
  height: auto;
}

.page-top-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.hero.hero-col {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.command-strip.hero-only .page-top-card {
  min-height: 200px;
  height: 200px;
}

.page-top-card .hero-action-row {
  margin-top: auto;
}

.page-side-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.page-side-card > .card-copy {
  display: grid;
  gap: 10px;
}

.page-side-card .resource-list {
  margin-top: 8px;
  line-height: 1.5;
}

.page-side-card h3 {
  margin-bottom: 4px;
}

.stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(34, 53, 72, 0.08);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b6887;
}

.stat-value {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #223548;
}

.frame-page {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.frame-wrap { padding: 18px 22px 26px; }

.frame-page .shell-header {
  margin: 0;
}

.frame-page .shell-nav {
  margin-top: 18px;
  flex-direction: column;
  align-items: stretch;
}

.frame-page .shell-nav .nav-link {
  width: 100%;
}

.frame-wrap.wide {
  padding: 12px;
}

.frame-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-wrap.wide .frame-card {
  border-radius: 28px;
}

.frame-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,247,252,0.96));
  border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.frame-head h2 { margin: 0 0 6px; font-size: 1.6rem; }
.frame-head p { margin: 0; color: var(--muted); }

.portal-frame {
  width: 100%;
  height: calc(100vh - 242px);
  border: 0;
  display: block;
  background: white;
}

.frame-note {
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(19, 32, 51, 0.06);
  background: rgba(242,247,252,0.92);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-weight: 700;
  color: #223548;
}

.field-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}

.auth-field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.update-detail-textarea {
  min-height: 300px !important;
  line-height: 1.55;
  white-space: pre-wrap;
}

.quiz-question-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field-full {
  grid-column: 1 / -1;
}

.quiz-question-editor .auth-field textarea {
  min-height: 108px;
}

.live-list {
  display: grid;
  gap: 12px;
}

.live-list-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.live-list-card h3,
.live-list-card p {
  margin: 0;
}

.live-list-card h3 {
  margin-top: 8px;
  color: #16263a;
  font-size: 1rem;
}

.live-list-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.update-body-copy {
  white-space: pre-wrap;
}

.quiz-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quiz-question-toggle {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
}

.quiz-question-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quiz-question-card,
.quiz-question-note {
  padding: 12px;
  border-radius: 12px;
  background: rgba(31, 104, 173, 0.05);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.quiz-question-card strong,
.quiz-question-card p,
.quiz-question-card ul,
.quiz-question-note {
  margin: 0;
}

.quiz-question-card ul {
  padding-left: 18px;
  margin-top: 8px;
  color: #334558;
  line-height: 1.5;
}

.quiz-question-card p {
  margin-top: 8px;
}

.quiz-add-question-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.quiz-bulk-import-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(31, 104, 173, 0.04);
}

.quiz-attempt-panel {
  margin-top: 12px;
}

.quiz-take-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.quiz-take-question {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 12px;
  background: rgba(31, 104, 173, 0.04);
}

.quiz-take-question legend {
  padding: 0;
  color: #16263a;
  font-weight: 800;
}

.quiz-choice-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #334558;
  line-height: 1.45;
}

.quiz-choice-row input {
  margin-top: 4px;
}

.quiz-short-answer {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  border-radius: 10px;
  padding: 0 12px;
  background: white;
  color: #12243a;
  font: inherit;
}

.quiz-attempt-result {
  display: grid;
  gap: 8px;
}

.quiz-score-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.quiz-score-card.passed {
  background: rgba(79, 122, 100, 0.1);
  color: #22563d;
}

.quiz-score-card.needs-retake {
  background: rgba(180, 35, 24, 0.08);
  color: #8a1f17;
}

.quiz-score-card strong,
.quiz-score-card span {
  display: block;
}

.quiz-attempt-history {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-attempt-card {
  align-content: start;
}

.quiz-add-question-form .auth-field,
.quiz-bulk-import-form .auth-field {
  gap: 6px;
}

.quiz-add-question-form .auth-field input,
.quiz-add-question-form .auth-field textarea,
.quiz-bulk-import-form .auth-field textarea {
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.94rem;
}

.quiz-add-question-form .auth-field textarea {
  min-height: 78px;
}

.quiz-bulk-import-form .auth-field textarea {
  min-height: 230px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.quiz-bulk-preview {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.quiz-bulk-preview-head {
  color: #215f97;
  font-weight: 800;
}

.update-editor-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(10, 22, 38, 0.28);
}

.update-editor-dialog::backdrop {
  background: rgba(12, 22, 34, 0.58);
  backdrop-filter: blur(8px);
}

.update-editor-sheet {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.97));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.update-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.update-editor-head h2,
.update-editor-head p {
  margin: 0;
}

.update-editor-head p {
  margin-top: 6px;
  color: var(--muted);
}

.update-editor-textarea {
  width: 100%;
  min-height: min(70vh, 680px);
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 18px;
  font: inherit;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap;
}

.quiz-format-example {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(31, 104, 173, 0.04);
  color: #203650;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.sales-stat-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(20, 45, 70, 0.08);
}

.sales-stat-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.sales-stat-card strong {
  color: #12243a;
  font-size: 2rem;
  line-height: 1;
}

.sales-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.sales-action-card .band-head {
  margin-bottom: 12px;
}

.sales-action-card .band-head h2 {
  font-size: 1.25rem;
}

.sales-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.sales-form {
  margin-top: 16px;
}

.sales-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-form-row-three {
  grid-template-columns: minmax(0, 1fr) 86px 120px;
}

.sales-list {
  margin-top: 16px;
}

.sales-filter-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.sales-filter-field span {
  color: #203650;
  font-size: 0.86rem;
  font-weight: 800;
}

.sales-filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.9);
  color: #12243a;
  font: inherit;
}

.sales-filter-row,
.sales-card-actions,
.sales-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-form-actions {
  align-items: center;
}

.sales-form-actions .resource-link {
  flex: 1 1 180px;
}

.sales-filter-row {
  margin-top: 16px;
}

.sales-filter-row .mini-link,
.sales-card-actions .mini-link {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.sales-filter-row .mini-link.active {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 20px rgba(31, 104, 173, 0.2);
}

.sales-card-actions .mini-link.danger {
  color: #9f1d14;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.2);
}

.sales-card-actions .mini-link.danger:hover,
.sales-card-actions .mini-link.danger:focus-visible {
  color: #ffffff;
  background: #b42318;
  border-color: #b42318;
}

.sales-list-card {
  display: grid;
  gap: 8px;
}

.sales-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sales-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.sales-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sales-card-meta span,
.sales-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(53, 128, 197, 0.11);
  color: #244e78;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.sales-task-done {
  justify-self: start;
  margin-top: 2px;
}

.sales-queue-card {
  border-left: 4px solid rgba(31, 104, 173, 0.4);
}

.sales-stage-summary {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.sales-stage-row {
  display: grid;
  gap: 7px;
}

.sales-stage-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #203650;
  font-size: 0.9rem;
  font-weight: 800;
}

.sales-stage-row-head strong {
  color: #12243a;
}

.sales-stage-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.1);
}

.sales-stage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #2376bd, #48a0e2);
}

.sales-due-overdue {
  color: #b42318 !important;
}

.sales-due-today {
  color: #1f68ad !important;
}

.auth-feedback {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.admin-user-list {
  display: grid;
  gap: 16px;
}

.admin-user-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 10px 24px rgba(16, 30, 48, 0.06);
}

.admin-user-card-current {
  border-color: rgba(73, 140, 212, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(236, 245, 255, 0.96));
  box-shadow: 0 12px 28px rgba(20, 64, 112, 0.12), inset 0 0 0 1px rgba(113, 182, 255, 0.12);
}

.admin-user-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-user-head h3,
.admin-user-head p,
.admin-user-credentials {
  margin: 0;
}

.admin-user-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.admin-custom-access-mark {
  font-size: 0.85rem;
  color: #e07b00;
  font-weight: 700;
  cursor: default;
}

.admin-user-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-user-credentials {
  margin-top: 10px;
  color: var(--muted);
}

.admin-role-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-role-actions {
  display: flex;
  align-items: end;
}

.admin-role-actions .resource-link {
  width: 100%;
}

.admin-feedback {
  min-height: 20px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.admin-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-access-block {
  margin-top: 16px;
}

.admin-access-group-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-access-section {
  display: grid;
  gap: 10px;
}

.admin-access-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-access-section-label {
  color: #17335c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-access-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-access-toggle {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 104, 173, 0.14);
  background: rgba(31, 104, 173, 0.04);
  color: #215f97;
}

.admin-access-toggle.active {
  border-color: rgba(31, 104, 173, 0.28);
  background: rgba(31, 104, 173, 0.1);
  color: #17335c;
}

.admin-access-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-expand-link {
  min-height: 34px;
  padding: 7px 12px;
}

.admin-access-head {
  display: grid;
  gap: 4px;
}

.admin-access-head strong,
.admin-access-head span {
  margin: 0;
}

.admin-access-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-access-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.admin-access-item input {
  margin: 0;
}

.admin-access-section-dimmed {
  opacity: 0.42;
}

.admin-access-item-dimmed {
  opacity: 0.42;
}

.lead-intake-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.14), transparent 24%),
    radial-gradient(circle at right 18%, rgba(77, 137, 199, 0.12), transparent 24%),
    linear-gradient(180deg, #eaf2f9 0%, #f7fbff 54%, #edf4fb 100%);
}

.lead-intake-shell {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 18px;
}

.lead-intake-hero,
.lead-intake-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 18px 36px rgba(16, 30, 48, 0.08);
  border-radius: 22px;
}

.lead-intake-hero {
  padding: 18px 22px;
  display: grid;
  gap: 4px;
}

.lead-intake-hero-copy h1,
.lead-intake-hero-copy p {
  margin: 0;
}

.lead-intake-card {
  padding: 28px 30px;
  font-size: 1.05rem;
}

.lead-intake-form {
  margin-top: 20px;
}

.lead-intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-intake-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0;
}

.lead-intake-fieldset legend {
  padding: 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #17335c;
}

.lead-intake-choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-intake-interest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-intake-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.lead-intake-brand img {
  height: 112px;
  filter: brightness(0) saturate(100%);
}

.lead-intake-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.lead-intake-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.lead-intake-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lead-intake-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 104, 173, 0.12), rgba(77, 137, 199, 0.14));
  color: #1c4e7f;
  font-weight: 800;
  flex: 0 0 auto;
}

.lead-intake-upload-name {
  min-width: 0;
  color: #667487;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-intake-upload.has-file .lead-intake-upload-name {
  color: #1b2430;
}

.pac-container {
  z-index: 10000;
  border: 1px solid rgba(33, 95, 151, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(18, 38, 63, 0.16);
  font-family: inherit;
}

body[data-page-key="home"] .shell-main.command-home-main {
  display: grid;
  gap: 16px;
}

.command-home-hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding-block: 24px;
}

.hero.hero-home.command-home-hero {
  min-height: 200px;
  height: 200px;
}

.command-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -34px -74px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}

body[data-page-key="home"] .command-home-hero .hero-search-anchor {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  display: flex;
}

body[data-page-key="home"] .command-home-hero .hero-search-anchor .header-search-button {
  min-height: 44px;
  min-width: 132px;
  padding: 0 14px;
  border-radius: 14px;
  border-color: rgba(168, 224, 255, 0.2);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.command-home-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 190px;
}

.command-home-copy h1 {
  margin: 0;
  color: white;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1.5px;
}

.command-home-copy p {
  margin: 10px 0 0;
  color: #dce8f6;
  font-size: 17px;
}

.command-home-alert {
  margin-top: 14px;
  color: #ffd84a;
  font-weight: 900;
  font-size: 19px;
}

.command-home-goal {
  width: 100%;
  padding: 24px 28px 20px;
  border-radius: var(--hero-radius);
  background: #fff;
  border: 1px solid #e3e9f2;
  box-shadow: var(--section-shadow);
}

.command-home-goal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(160px, 0.55fr));
  gap: 22px;
  align-items: center;
}

.command-home-goal-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.command-home-goal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.command-home-goal-mark svg,
.command-home-goal-stat-icon svg {
  display: block;
}

.command-home-goal-mark {
  color: #2d7cff;
}

.command-home-goal-mark svg {
  width: 56px;
  height: 56px;
  fill: currentColor;
}

.command-home-goal-label {
  color: #51627a;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-home-goal-value {
  margin-top: 10px;
  color: #071b38;
  font-size: 46px;
  font-weight: 950;
  letter-spacing: -1.8px;
  line-height: 1;
}

.command-home-goal-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding-left: 25px;
  border-left: 1px solid #d7dfe7;
}

.command-home-goal-stat-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.command-home-goal-stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.command-home-goal-stat:nth-child(2) .command-home-goal-stat-icon {
  color: #8eb8ff;
}

.command-home-goal-stat:nth-child(3) .command-home-goal-stat-icon {
  color: #ff3f57;
}

.command-home-goal-stat:nth-child(4) .command-home-goal-stat-icon {
  color: #c3d8ff;
}

.command-home-goal-stat strong {
  display: block;
  color: #071b38;
  font-size: 28px;
}

.command-home-goal-stat span {
  display: block;
  color: #41516a;
}

.command-home-goal-bar {
  height: 16px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.command-home-goal-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2d7cff;
}

.command-home-goal-complete {
  margin-top: 12px;
  color: #071b38;
  font-size: 20px;
}

.command-home-goal-complete strong {
  color: #2d7cff;
}

.command-home-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.command-home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid #e3e9f2;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(7, 27, 56, 0.07);
}

.command-home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 42px;
  margin-bottom: 18px;
}

.command-home-card-head h2 {
  margin: 0;
  color: #071b38;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-home-card-value {
  min-height: 66px;
  margin-bottom: 10px;
  color: #1c2f4a;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1.05;
}

.command-home-card-sub {
  font-weight: 800;
  line-height: 1.35;
}

.command-home-card-sub-red {
  color: #f43f5e;
}

.command-home-mini-bar {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.command-home-mini-bar i {
  display: block;
  height: 100%;
  background: #2d7cff;
  border-radius: 999px;
}

.command-home-callout {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
}

.command-home-callout strong,
.command-home-callout span {
  display: block;
}

.command-home-callout span {
  margin-top: 4px;
  color: #66758d;
}

.command-home-callout-red {
  background: #fff0f3;
}

.command-home-callout-blue {
  background: #edf4ff;
}

.command-home-callout-blue strong {
  color: #0b58d0;
}

.command-home-pipeline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  color: #51627a;
  font-size: 13px;
}

.command-home-pipeline-row span {
  display: block;
}

.command-home-pipeline-row strong {
  display: block;
  color: #071b38;
  font-size: 17px;
}

.command-home-focus-title {
  min-height: 74px;
  margin-bottom: 20px;
  color: #078a58;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.command-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.command-home-metric-box {
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fff;
}

.command-home-metric-box strong {
  display: block;
  color: #071b38;
  font-size: 24px;
}

.command-home-metric-box span {
  display: block;
  color: #41516a;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: normal;
}

.command-home-full-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.command-home-updates {
  display: grid;
  gap: 13px;
}

.command-home-update {
  display: grid;
  grid-template-columns: 92px 1fr 20px;
  gap: 16px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid #e8edf4;
}

.command-home-update:first-child {
  padding-top: 0;
  border-top: 0;
}

.command-home-update strong,
.command-home-update p {
  margin: 0;
}

.command-home-update p {
  margin-top: 4px;
  color: #66758d;
  line-height: 1.45;
  font-size: 0.9rem;
}

.command-home-update-arrow {
  align-self: center;
  color: #203650;
  font-size: 1.35rem;
  font-weight: 700;
}

.command-home-workflow-band {
  margin-bottom: 0;
}

.command-home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.command-home-tile {
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: white;
}

.command-home-tile-icon {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.command-home-tile-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.command-home-tile-battery .command-home-tile-icon {
  color: #14935f;
}

.command-home-tile-solar .command-home-tile-icon {
  color: #f29a1f;
}

.command-home-tile-windows .command-home-tile-icon {
  color: #2664f6;
}

.command-home-tile-hvac .command-home-tile-icon {
  color: #7c45ef;
}

.command-home-tile-roof .command-home-tile-icon {
  color: #ff4d57;
}

.command-home-tile strong {
  display: block;
  color: #071b38;
  font-size: 17px;
}

.command-home-tile p {
  min-height: 44px;
  margin: 8px 0 0;
  color: #344661;
  font-size: 13px;
  line-height: 1.4;
}

.command-home-tile-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 900;
}

.command-home-tile-battery .command-home-tile-button {
  background: #d9f3e7;
  color: #08714b;
}

.command-home-tile-solar .command-home-tile-button {
  background: #ffecc8;
  color: #f07b00;
}

.command-home-tile-windows .command-home-tile-button {
  background: #dbe8ff;
  color: #0b58d0;
}

.command-home-tile-hvac .command-home-tile-button {
  background: #e8d8ff;
  color: #7135cc;
}

.command-home-tile-roof .command-home-tile-button {
  background: #ff6b75;
  color: white;
}

.command-home-daily-band {
  margin: 16px 0;
}

.command-home-daily-card {
  padding: 22px;
}

.command-home-daily-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.command-home-daily-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #ffffff;
  color: #071b38;
  text-decoration: none;
}

.command-home-daily-item strong,
.command-home-daily-item p,
.command-home-daily-item span {
  margin: 0;
}

.command-home-daily-item strong {
  font-size: 0.95rem;
}

.command-home-daily-item p,
.command-home-daily-item > span:not(.news-tag) {
  color: #66758d;
  font-size: 0.83rem;
  line-height: 1.35;
}

.command-home-daily-item.empty {
  grid-column: 1 / -1;
  min-height: 76px;
}

.command-home-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.command-home-performers-band {
  display: grid;
  gap: 14px;
}


.command-home-performers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.command-home-performer-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: #f8fafc;
}

.command-home-performer-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66758d;
}

.command-home-performer-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #071b38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-home-performer-value {
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: #078a58;
}

.sales-side-stack {
  display: grid;
  gap: 18px;
}

.sales-intake-card .band-head {
  margin-bottom: 10px;
}

.sales-intake-link-shell {
  display: grid;
  gap: 12px;
}

.sales-intake-link-label {
  color: #17335c;
  font-weight: 800;
}

.sales-intake-link-code {
  display: block;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(239, 246, 252, 0.9);
  color: #29445f;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sales-intake-logo-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sales-workspace-hero .band-head {
  margin-bottom: 10px;
}

.sales-workspace-hero .band-head h2 {
  color: #fff;
  margin-bottom: 0;
}

.sales-intake-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.sales-intake-logo:hover,
.sales-intake-logo:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.34), rgba(86, 160, 232, 0.24));
  border-color: rgba(129, 205, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.14), 0 14px 28px rgba(8, 24, 44, 0.34);
  transform: translateY(-2px) scale(1.02);
}

/* Sales three-column layout */
.sales-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.sales-col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.sales-col > .hub-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sales-col .sales-list {
  flex: 1;
}

.sales-add-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px dashed rgba(27, 36, 48, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sales-add-trigger:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--amber);
  color: var(--orange);
}

/* Sales modals */
.sales-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: none;
  border-radius: 22px;
  padding: 0;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(16, 30, 48, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,251,0.97));
}

.sales-modal::backdrop {
  background: rgba(14, 24, 36, 0.55);
  backdrop-filter: blur(3px);
}

.sales-modal-shell {
  padding: 26px 28px 28px;
  display: grid;
  gap: 20px;
}

.sales-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-modal-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.sales-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sales-modal-head .mini-link {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Deal intake form */
.deal-intake-section-head {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 10px;
  padding-bottom: 2px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.deal-intake-upload-note {
  margin: -8px 0 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.deal-required {
  color: #b42318 !important;
  font-weight: 900;
}

/* Admin Settings — profile expand dialog */
.admin-profile-dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(680px, 95vw);
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(18, 38, 63, 0.18);
}

.admin-profile-dialog::backdrop {
  background: rgba(12, 26, 46, 0.45);
  backdrop-filter: blur(2px);
}

.admin-profile-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px 30px;
  gap: 20px;
}

.admin-profile-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e8ef;
}

.admin-profile-dialog-head h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #12263f;
}

.admin-profile-dialog-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #667487;
}

.admin-settings-hero .band-head {
  align-items: start;
}

.admin-settings-hero .frame-actions {
  margin-left: auto;
}

.admin-settings-hero .resource-link.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-settings-hero .resource-link.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-profile-dialog-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #96a5b4;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.admin-profile-dialog-close:hover {
  color: #12263f;
  background: #f0f3f7;
}

/* Admin Settings — role column layout */
.admin-role-admin-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.admin-role-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-role-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-role-column-head {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #17335c;
  padding-bottom: 10px;
  border-bottom: 2px solid #d7dfe7;
}

.admin-role-column-empty {
  color: #96a5b4;
  font-size: 0.9rem;
  padding: 8px 0;
}

@media (max-width: 900px) {
  .admin-role-columns {
    grid-template-columns: 1fr;
  }
}

/* View-as banner (shown in sidebar when owner previews as a rep) */
.view-as-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.38);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.view-as-banner strong {
  font-weight: 800;
}

.view-as-exit {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.85;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: underline;
}

.view-as-exit:hover {
  opacity: 1;
}

/* Admin role fields layout */
.admin-role-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-role-fields-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.settings-profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 18px;
  background: rgba(239, 246, 252, 0.88);
}

.settings-profile-copy {
  display: grid;
  gap: 4px;
}

.settings-profile-copy strong,
.settings-profile-copy span {
  margin: 0;
}

.settings-profile-copy span {
  color: var(--muted);
}

.settings-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-link-card {
  margin-top: 18px;
}

.admin-goals-shell {
  display: grid;
  gap: 18px;
}

.admin-goals-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-goals-company {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-goals-list {
  display: grid;
  gap: 12px;
}

.admin-goals-section {
  display: grid;
  gap: 12px;
}

.admin-goals-section .band-head {
  margin-bottom: 0;
}

.admin-goals-section h3 {
  margin: 0;
  color: #071b38;
}

.admin-goal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.admin-goal-item.compact {
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 180px) auto;
  padding: 12px 14px;
}

.admin-goal-item strong,
.admin-goal-item span {
  display: block;
}

.admin-goal-item span {
  margin-top: 4px;
  color: var(--muted);
}

.leaderboard-clean-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(77, 137, 199, 0.16), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
  color: #071b38;
}

.leaderboard-clean-shell {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.leaderboard-clean-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.leaderboard-clean-brand img {
  height: clamp(96px, 11vw, 150px);
  width: auto;
}

.leaderboard-clean-hero {
  padding: 8px 0 22px;
}

.leaderboard-clean-hero h1 {
  margin: 0;
  color: #071b38;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.leaderboard-title-month {
  display: inline-block;
}

.leaderboard-title-dash {
  display: inline-block;
  transform: scaleX(1.7);
  transform-origin: center;
  margin: 0 0.16em 0 0.08em;
}

.leaderboard-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.leaderboard-clean-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(7, 27, 56, 0.08);
}

.leaderboard-clean-card-wide {
  grid-column: auto;
}

.leaderboard-clean-list {
  display: grid;
  gap: 8px;
}

.leaderboard-clean-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(108px, auto);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 8px;
  background: #fbfdff;
}

.leaderboard-clean-row.active {
  border-color: rgba(31, 104, 173, 0.25);
  background: #edf4ff;
}

.leaderboard-clean-row > strong {
  color: #215f97;
  font-size: 1.18rem;
}

.leaderboard-clean-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-clean-person span,
.leaderboard-clean-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-clean-person span {
  font-size: 1.2rem;
  font-weight: 900;
}

.leaderboard-clean-person small,
.leaderboard-clean-score small {
  color: #66758d;
  font-size: 0.76rem;
}

.leaderboard-clean-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.leaderboard-clean-score em,
.leaderboard-clean-row > em {
  color: #078a58;
  font-style: normal;
  font-size: 1.32rem;
  font-weight: 900;
}

.command-home-training-item {
  display: grid;
  grid-template-columns: 46px 1fr 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #edf1f6;
}

.command-home-training-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.command-home-training-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #0b58d0;
  color: white;
}

.command-home-training-icon.purple {
  background: #7c3aed;
}

.command-home-training-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.command-home-training-item strong,
.command-home-training-item p {
  margin: 0;
}

.command-home-training-item p {
  margin-top: 4px;
  color: #66758d;
}

.command-home-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-home-resource-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: white;
  color: #071b38;
  text-decoration: none;
  font-weight: 800;
}

.command-home-leaderboard {
  display: grid;
}

.command-home-leaderboard-row {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
}

.command-home-leaderboard-row.active {
  background: #edf4ff;
  border-radius: 8px;
  border-bottom: 0;
}

.command-home-leaderboard-row strong {
  color: #071b38;
}

.command-home-leaderboard-row em {
  font-style: normal;
  color: #078a58;
  font-weight: 900;
}

.command-home-leaderboard-row.active em {
  color: #0b58d0;
}

.command-home-leaderboard-note {
  margin: 14px 0 0;
  color: #66758d;
}

@media (max-width: 1100px) {
  .shell-page {
    width: min(100%, calc(100% - 14px));
    margin: 7px auto;
    grid-template-columns: var(--shell-sidebar-width-compact) minmax(0, 1fr);
  }

  .shell-header {
    width: var(--shell-sidebar-width-compact);
    min-height: calc(100dvh - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100dvh - 14px);
    padding: 24px 20px 22px;
    border-radius: 28px;
  }

  .shell-footer {
    grid-column: 1;
  }

  .shell-nav {
    flex-direction: column;
  }

  .sidebar-utilities {
    margin-top: auto;
    padding-top: 18px;
  }

  .header-search-button {
    min-height: 44px;
    padding: 0 14px;
  }

  .nav-link {
    width: auto;
    justify-content: center;
  }

  .hero-grid,
  .grid-2,
  .trade-grid,
  .resource-grid,
  .launch-grid,
  .hub-grid,
  .sales-action-grid,
  .sales-summary-grid,
  .sales-workspace-grid,
  .sales-three-grid,
  .workflow-grid,
  .hub-stats,
  .hub-resource-grid,
  .dashboard-grid,
  .home-hero,
  .chooser-grid,
  .split-callout,
  .admin-access-grid,
  .hero-metrics,
  .adder-stats,
  .adder-summary-grid,
  .adder-project-grid,
  .finance-option-grid,
  .finance-detail-grid,
  .check-grid,
  .trade-rail,
  .insight-grid,
  .command-strip,
  .adder-grid {
    grid-template-columns: 1fr;
  }

  .travel-tool-grid {
    display: block;
  }

  .travel-route-row {
    grid-template-columns: 1fr;
  }

  .homeowner-card {
    grid-template-columns: 1fr;
  }

  .homeowner-card .adder-control-row {
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .welcome-dashboard-grid,
  .month-review-card,
  .home-status-grid,
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }

  .payment-adder-grid {
    grid-template-columns: 1fr;
  }

  .adder-list-split {
    grid-template-columns: 1fr;
  }

  .adder-group-grid {
    grid-template-columns: 1fr;
  }

  .adder-inline-meta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .adder-section-meta {
    width: 100%;
    justify-content: space-between;
  }

  .adder-sheet-status {
    margin-left: 0;
    width: 100%;
    padding-left: 0;
  }

  .adder-section-meta-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .adder-row-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-top-card,
  .page-side-card {
    height: auto;
    min-height: 0;
  }

  .home-command-top {
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-meta-row,
  .two-column-dashboard,
  .workflow-grid,
  .bottom-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .command-home-status-row,
  .command-home-bottom-row,
  .command-home-performers-grid,
  .command-home-goal-grid,
  .admin-role-controls {
    grid-template-columns: 1fr;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor {
    position: static;
    margin-bottom: 16px;
  }

  .command-home-hero-top {
    padding-right: 0;
  }

  .command-home-goal-stat {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid #294668;
  }

  .command-home-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-mini-scale {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-profile-grid,
  .admin-goal-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 721px) {
  :root {
    --shell-sidebar-width-compact: 172px;
    --hero-radius: 22px;
  }

  .shell-page {
    width: min(100%, calc(100% - 12px));
    margin: 6px auto;
    gap: 12px;
    grid-template-columns: var(--shell-sidebar-width-compact) minmax(0, 1fr);
  }

  .shell-header {
    width: var(--shell-sidebar-width-compact);
    top: 6px;
    min-height: calc(100dvh - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 18px 10px 16px;
    border-radius: 22px;
  }

  .brand-mark img {
    height: 68px;
  }

  .shell-nav,
  .sidebar-utilities {
    gap: 8px;
  }

  .shell-nav {
    margin-top: 16px;
  }

  .nav-link {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 11px;
    gap: 8px;
    font-size: 0.92rem;
  }

  .nav-icon,
  .nav-icon svg {
    width: 17px;
    height: 17px;
  }

  .nav-link-break {
    margin-top: 13px;
  }

  .sidebar-utilities {
    padding-top: 12px;
  }

  body[data-page-key="home"] .shell-main.command-home-main {
    gap: 12px;
  }

  .hero.hero-home.command-home-hero,
  .command-home-hero {
    height: 156px;
    min-height: 156px;
    padding: 20px 24px;
    border-radius: 22px;
  }

  .command-home-copy h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  .command-home-copy p {
    margin-top: 8px;
    font-size: 15px;
  }

  .command-home-alert {
    margin-top: 12px;
    font-size: 16px;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor {
    top: 18px;
    right: 18px;
    position: absolute;
    margin-bottom: 0;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor .header-search-button {
    min-height: 40px;
    min-width: 112px;
    padding: 0 12px;
    border-radius: 13px;
  }

  .command-home-hero-top {
    padding-right: 150px;
  }

  .command-home-goal {
    padding: 20px 22px 18px;
    border-radius: 22px;
  }

  .command-home-goal-grid {
    gap: 12px;
  }

  .command-home-goal-main {
    gap: 12px;
  }

  .command-home-goal-mark,
  .command-home-goal-mark svg {
    width: 44px;
    height: 44px;
  }

  .command-home-goal-label {
    font-size: 0.82rem;
  }

  .command-home-goal-value {
    margin-top: 8px;
    font-size: 34px;
    letter-spacing: -0.9px;
  }

  .command-home-goal-stat {
    min-height: 54px;
    gap: 10px;
    padding-left: 14px;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid #d7dfe7;
  }

  .command-home-goal-stat-icon,
  .command-home-goal-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .command-home-goal-stat strong {
    font-size: 23px;
    line-height: 1;
  }

  .command-home-goal-stat span {
    font-size: 14px;
    line-height: 1.15;
  }

  .command-home-goal-bar {
    height: 12px;
    margin-top: 16px;
  }

  .command-home-goal-complete {
    margin-top: 10px;
    font-size: 18px;
  }

  .command-home-card {
    padding: 18px;
    border-radius: 14px;
  }

  .command-home-card-head {
    min-height: 34px;
    margin-bottom: 14px;
  }

  .command-home-card-value {
    min-height: 50px;
    font-size: 27px;
  }

  .command-home-callout {
    margin-top: 14px;
    padding: 14px;
  }

  .command-home-bottom-row,
  .command-home-status-row {
    gap: 12px;
  }

  .command-home-performers-grid {
    gap: 10px;
  }

  .command-home-performer-card {
    padding: 12px;
  }

  .command-home-performer-name {
    font-size: 1rem;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .command-home-status-row,
  .command-home-bottom-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-home-goal-grid {
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(88px, 0.5fr));
  }

  .command-home-performers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  :root {
    --shell-sidebar-width-compact: 150px;
  }

  .shell-header {
    padding-inline: 8px;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .hero.hero-home.command-home-hero,
  .command-home-hero {
    height: 148px;
    min-height: 148px;
    padding: 18px 20px;
  }

  .command-home-copy h1 {
    font-size: 30px;
  }

  .command-home-copy p,
  .command-home-alert {
    font-size: 14px;
  }

  .command-home-goal-grid {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(78px, 0.45fr));
  }

  .command-home-goal-value {
    font-size: 30px;
  }

  .command-home-goal-stat {
    align-items: flex-start;
    gap: 7px;
    padding-left: 10px;
  }

  .command-home-goal-stat strong {
    font-size: 20px;
  }

  .command-home-goal-stat span {
    font-size: 12px;
  }

  .command-home-status-row,
  .command-home-bottom-row {
    grid-template-columns: 1fr;
  }

  .command-home-performers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 721px) and (max-height: 820px) {
  .shell-header {
    padding: 12px 8px 10px;
  }

  .brand-mark img {
    height: 52px;
  }

  .shell-nav {
    margin-top: 10px;
    gap: 6px;
  }

  .sidebar-utilities {
    gap: 6px;
    padding-top: 8px;
  }

  .nav-link {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 10px;
    gap: 7px;
    font-size: 0.78rem;
  }

  .nav-icon,
  .nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .nav-link-break {
    margin-top: 8px;
  }

  .nav-link-break::before {
    top: -6px;
  }
}

@media (max-width: 1180px) and (min-width: 721px) and (orientation: landscape) {
  .shell-page {
    margin: 4px auto;
    gap: 10px;
  }

  .shell-header {
    top: 4px;
    min-height: calc(100svh - 8px);
    height: calc(100svh - 8px);
    max-height: calc(100svh - 8px);
    padding: 8px 7px;
    border-radius: 18px;
  }

  .brand-mark img {
    height: 40px;
  }

  .shell-nav {
    margin-top: 7px;
    gap: 4px;
  }

  .sidebar-utilities {
    gap: 4px;
    padding-top: 6px;
  }

  .nav-link {
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 9px;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .nav-icon,
  .nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .nav-link-break {
    margin-top: 6px;
  }

  .nav-link-break::before {
    top: -4px;
    left: -3px;
    right: -3px;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .leaderboard-clean-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-goals-company,
  .admin-goal-item.compact {
    grid-template-columns: 1fr;
  }

  .leaderboard-clean-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-clean-card {
    padding: 18px 14px;
  }

  .leaderboard-clean-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(92px, auto);
    min-height: 48px;
    padding: 10px;
  }

  .leaderboard-clean-person span {
    font-size: 1rem;
  }

  .admin-goals-company {
    display: grid;
    width: 100%;
  }

  .admin-goal-item.compact {
    align-items: stretch;
  }

  .leaderboard-clean-score {
    justify-items: start;
  }
}

@media (max-width: 1320px) and (min-width: 1101px) {
  .command-home-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 404 / Unauthorized page */
.unauth-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px;
}

.unauth-code {
  margin: 0;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line);
}

.unauth-heading {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 768px) {
  .hero {
    min-height: 40vh;
    padding: 24px 20px;
  }
}

@media (max-width: 720px) {
  .shell-page {
    width: min(100% - 12px, 100%);
    margin: 6px auto;
    grid-template-columns: 1fr;
  }
  .shell-header,
  .shell-footer { padding-left: 18px; padding-right: 18px; }
  .shell-header {
    width: 100%;
    min-height: 0;
  }
  .section-band { padding: 20px 18px; }
  .brand-mark img { height: 72px; }
  .shell-title { font-size: 2.1rem; }
  .frame-wrap { padding: 10px; }
  .portal-frame { height: calc(100vh - 276px); }
  .header-top {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-search-toolbar {
    justify-content: stretch;
    margin-bottom: 0;
  }
  .page-search-toolbar .header-search-button {
    width: 100%;
    justify-content: center;
  }
  .hero-search-anchor {
    margin-bottom: 14px;
  }

  .home-welcome-card {
    padding: 22px 18px 12px;
  }

  .deal-ring {
    margin-left: 0;
  }

  .home-focus-stats {
    grid-template-columns: 1fr;
  }

  .home-goal-metrics,
  .home-pipeline-row {
    grid-template-columns: 1fr;
  }

  .home-utility-button {
    flex: 1 1 220px;
  }

  .home-hero-search-button {
    position: static;
    margin-left: 0;
  }

  .hero-search-anchor .header-search-button {
    width: 100%;
    justify-content: center;
  }
  .site-search-modal {
    width: calc(100vw - 20px);
    margin-top: 12px;
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }
  .site-search-head {
    align-items: stretch;
    flex-direction: column;
  }
  .site-search-close {
    align-self: flex-start;
  }

  .focus-stat-list,
  .resource-button-grid {
    grid-template-columns: 1fr;
  }

  .home-command-shell,
  .home-goal-band {
    padding: 20px 18px;
  }

  .command-home-hero {
    padding: 22px 18px 16px;
  }

  .command-home-copy h1 {
    font-size: 34px;
  }

  .command-home-goal-value {
    font-size: 34px;
  }

  .dashboard-card {
    padding: 18px;
  }

  .training-list-item,
  .leaderboard-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-meta-row,
  .pipeline-mini-scale,
  .command-home-daily-list {
    grid-template-columns: 1fr;
  }

  .command-home-training-item {
    grid-template-columns: 1fr;
  }

  .quiz-question-editor {
    grid-template-columns: 1fr;
  }

  .quiz-attempt-history {
    grid-template-columns: 1fr;
  }

  .sales-form-row,
  .sales-form-row-three {
    grid-template-columns: 1fr;
  }

  .command-home-resource-grid {
    grid-template-columns: 1fr;
  }

  .lead-intake-grid,
  .lead-intake-interest-grid {
    grid-template-columns: 1fr;
  }

  .lead-intake-shell {
    width: min(100% - 18px, 820px);
    padding-top: 18px;
  }

  .lead-intake-hero,
  .lead-intake-card {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (min-width: 721px) and (max-width: 1180px) and (max-height: 900px) {
  .shell-page {
    width: calc(100% - 8px) !important;
    margin: 4px auto !important;
    gap: 8px !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
  }

  .shell-header {
    position: sticky !important;
    top: 4px !important;
    width: 150px !important;
    min-height: calc(100svh - 8px) !important;
    height: calc(100svh - 8px) !important;
    max-height: calc(100svh - 8px) !important;
    padding: 3px 8px 5px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .shell-header .brand-mark img {
    height: 30px !important;
  }

  .shell-nav {
    margin-top: 1px !important;
    gap: 2px !important;
  }

  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    margin-top: auto !important;
    padding-top: 4px !important;
    gap: 2px !important;
  }

  .shell-header .nav-link {
    min-height: 22px !important;
    padding: 3px 7px !important;
    border-radius: 7px !important;
    gap: 5px !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
  }

  .shell-header .nav-icon,
  .shell-header .nav-icon svg {
    width: 11px !important;
    height: 11px !important;
  }

  .shell-header .nav-link-break {
    margin-top: 1px !important;
  }

  .shell-header .nav-link-break::before {
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) and (max-height: 700px) {
  .shell-header {
    padding-block: 2px !important;
  }

  .shell-header .brand-mark img {
    height: 26px !important;
  }

  .shell-nav,
  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    gap: 1px !important;
  }

  .shell-header .nav-link {
    min-height: 19px !important;
    padding-block: 2px !important;
    font-size: 0.61rem !important;
  }
}

@media (pointer: coarse) and (min-width: 721px) and (max-width: 1180px) {
  .shell-page {
    width: calc(100% - 8px) !important;
    margin: 4px auto !important;
    gap: 8px !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }

  .shell-header {
    top: 4px !important;
    width: 118px !important;
    min-height: calc(100svh - 8px) !important;
    height: calc(100svh - 8px) !important;
    max-height: calc(100svh - 8px) !important;
    padding: 3px 6px 4px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .shell-header .header-top {
    min-height: 0 !important;
    line-height: 1 !important;
  }

  .shell-header .brand-mark img {
    height: 22px !important;
  }

  .shell-nav {
    margin-top: 0 !important;
    gap: 1px !important;
  }

  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    margin-top: auto !important;
    padding-top: 2px !important;
    gap: 1px !important;
  }

  .shell-header .nav-link {
    min-height: 20px !important;
    padding: 2px 5px !important;
    border-radius: 6px !important;
    gap: 4px !important;
    font-size: 0.49rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .shell-header .nav-icon,
  .shell-header .nav-icon svg {
    width: 9px !important;
    height: 9px !important;
  }

  .shell-header .nav-link-break {
    margin-top: 1px !important;
  }

  .shell-header .nav-link-break::before {
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
  }
}

html.aros-ipad .shell-page {
  width: calc(100% - 8px) !important;
  margin: 4px auto !important;
  gap: 8px !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
}

html.aros-ipad .shell-header {
  position: sticky !important;
  top: 4px !important;
  width: 160px !important;
  min-height: calc(100svh - 8px) !important;
  height: calc(100svh - 8px) !important;
  max-height: calc(100svh - 8px) !important;
  padding: 7px 8px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

html.aros-ipad .shell-header .header-top {
  min-height: 0 !important;
  line-height: 1 !important;
}

html.aros-ipad .shell-header .brand-mark img {
  height: 90px !important;
}

html.aros-ipad .shell-nav {
  margin-top: 12px !important;
  gap: 7px !important;
}

html.aros-ipad .top-actions.sidebar-utilities,
html.aros-ipad .sidebar-utilities {
  margin-top: auto !important;
  padding-top: 0 !important;
  gap: 7px !important;
}

html.aros-ipad .shell-header .nav-link {
  min-height: 38px !important;
  padding: 7px 11px !important;
  border-radius: 11px !important;
  gap: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html.aros-ipad .shell-header .nav-icon,
html.aros-ipad .shell-header .nav-icon svg {
  width: 17px !important;
  height: 17px !important;
}

html.aros-ipad .shell-header .nav-link-break {
  margin-top: 9px !important;
}

html.aros-ipad .shell-header .nav-link-break::before {
  top: -6px !important;
  left: -2px !important;
  right: -2px !important;
}
