:root {
  --heirloom-bg: #fbf9f5;
  --heirloom-surface: #ffffff;
  --heirloom-surface-soft: #f5f4ef;
  --heirloom-surface-mid: #efeee9;
  --heirloom-surface-strong: #e3e3dc;
  --heirloom-ink: #31332f;
  --heirloom-muted: #5e605b;
  --heirloom-outline: #b2b2ad;
  --heirloom-primary: #396764;
  --heirloom-primary-soft: #bbece8;
  --heirloom-primary-strong: #2c5a58;
  --heirloom-secondary: #4e6456;
  --heirloom-secondary-soft: #d0e8d7;
  --heirloom-secondary-ink: #2f4437;
  --heirloom-tertiary: #2d686b;
  --heirloom-tertiary-soft: #bdf8fc;
  --heirloom-shadow:
    0 18px 42px rgba(49, 51, 47, 0.14),
    0 2px 8px rgba(49, 51, 47, 0.05);
  --heirloom-shadow-soft:
    0 10px 20px rgba(49, 51, 47, 0.1),
    0 1px 4px rgba(49, 51, 47, 0.04);
  --heirloom-radius-lg: 24px;
  --heirloom-radius-md: 18px;
  --heirloom-radius-sm: 14px;
}

html {
  background: var(--heirloom-bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  min-height: max(884px, 100vh);
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(187, 236, 232, 0.45), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(208, 232, 215, 0.35), transparent 55%),
    var(--heirloom-bg);
  color: var(--heirloom-ink);
  padding-top: 4.9rem;
  overflow-x: hidden;
}

@supports (height: 100svh) {
  body {
    min-height: max(884px, 100svh);
  }

  .heirloom-app-shell {
    min-height: 100svh;
  }
}

body,
.heirloom-app {
  font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

::selection {
  background: var(--heirloom-primary-soft);
  color: var(--heirloom-primary-strong);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.heirloom-brand {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: -0.04em;
}

.heirloom-app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.heirloom-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(187, 236, 232, 0.45), transparent 38%),
    radial-gradient(circle at 80% 10%, rgba(208, 232, 215, 0.35), transparent 35%);
  opacity: 0.7;
}

.heirloom-page {
  position: relative;
  z-index: 1;
}

.heirloom-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(178, 178, 173, 0.28);
  box-shadow: 0 8px 20px rgba(49, 51, 47, 0.06);
  transition: opacity 220ms ease;
}

body.heirloom-navs-idle .heirloom-topbar,
body.heirloom-navs-idle .heirloom-bottomnav {
  opacity: 0.16;
}

.heirloom-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heirloom-logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.heirloom-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.85rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--heirloom-primary);
}

.heirloom-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--heirloom-primary);
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.heirloom-icon-button:hover {
  background: rgba(57, 103, 100, 0.08);
}

.heirloom-icon-button:active {
  transform: scale(0.94);
}

.heirloom-topbar__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 103, 100, 0.16);
  background: rgba(187, 236, 232, 0.7);
  color: var(--heirloom-primary-strong);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.heirloom-topbar__action:hover {
  background: rgba(187, 236, 232, 0.92);
  box-shadow: 0 8px 16px rgba(49, 51, 47, 0.1);
}

.heirloom-topbar__action:active {
  transform: scale(0.98);
}

.heirloom-topbar__action--ghost {
  background: transparent;
  color: var(--heirloom-muted);
  border-color: transparent;
  box-shadow: none;
}

.heirloom-topbar__action--ghost:hover {
  background: rgba(57, 103, 100, 0.08);
  color: var(--heirloom-primary);
  box-shadow: none;
}

.heirloom-google-photos-mark {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.heirloom-main {
  flex: 1 1 auto;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1.25rem 1rem 8rem;
}

.heirloom-section {
  margin-bottom: 2rem;
}

.heirloom-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
  margin-bottom: 1rem;
}

.heirloom-family-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
}

.heirloom-family-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(1.05rem, 1.3vw + 0.85rem, 1.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--heirloom-muted);
}

.heirloom-family-link {
  color: inherit;
  text-decoration: none;
}

.heirloom-family-link:hover .heirloom-family-title {
  color: var(--heirloom-primary);
}

.heirloom-section__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--heirloom-ink);
}

.heirloom-section__meta {
  font-size: 0.875rem;
  color: var(--heirloom-muted);
  white-space: nowrap;
}

.heirloom-searchbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.25rem 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(178, 178, 173, 0.22);
  box-shadow: var(--heirloom-shadow-soft);
}

.heirloom-searchbar .material-symbols-outlined {
  color: var(--heirloom-muted);
}

.heirloom-searchbar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--heirloom-ink);
  outline: none;
}

.heirloom-searchbar input::placeholder {
  color: var(--heirloom-muted);
}

.heirloom-searchbar__clear {
  color: var(--heirloom-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.heirloom-search-hint,
.heirloom-search-meta {
  margin: 0 0.25rem 1rem;
  color: var(--heirloom-muted);
  font-size: 0.9rem;
}

.heirloom-searchbar--sheet {
  margin: 1rem 0 0;
}

.heirloom-hero-card,
.heirloom-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--heirloom-radius-lg);
  background: var(--heirloom-surface);
  border: 1px solid rgba(178, 178, 173, 0.22);
  box-shadow: var(--heirloom-shadow);
}

.heirloom-hero-card {
  min-height: 22rem;
}

.heirloom-landing {
  padding: 0.5rem 0 1rem;
}

.heirloom-landing__copy {
  max-width: 38rem;
}

.heirloom-landing__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(187, 236, 232, 0.5);
  color: var(--heirloom-primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heirloom-landing__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--heirloom-ink);
}

.heirloom-landing__lead {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--heirloom-muted);
}

.heirloom-landing__grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.heirloom-landing__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(178, 178, 173, 0.18);
  box-shadow: var(--heirloom-shadow-soft);
}

.heirloom-landing__feature .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(187, 236, 232, 0.45);
  color: var(--heirloom-primary-strong);
  font-size: 1.25rem;
}

.heirloom-landing__feature h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-landing__feature p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--heirloom-muted);
}

.heirloom-landing__cta {
  min-width: 9.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.heirloom-landing__cta--primary {
  background: var(--heirloom-primary);
  color: #fff;
}

.heirloom-landing__cta--secondary {
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-ink);
}

.heirloom-social-login {
  margin-top: 1rem;
}

.heirloom-social-login__divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0 0.85rem;
  color: var(--heirloom-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heirloom-social-login__divider::before,
.heirloom-social-login__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(178, 178, 173, 0.45);
}

.heirloom-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(178, 178, 173, 0.5);
  background: rgba(255, 255, 255, 0.82);
  color: var(--heirloom-ink);
  font-weight: 800;
  box-shadow: var(--heirloom-shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.heirloom-google-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 103, 100, 0.22);
  box-shadow: 0 16px 36px rgba(49, 51, 47, 0.12);
}

.heirloom-google-btn:active {
  transform: translateY(0);
}

.heirloom-google-btn__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  padding: 0.22rem;
  background: #fff;
  border: 1px solid rgba(178, 178, 173, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.heirloom-google-btn__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.heirloom-landing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.heirloom-landing__visual {
  display: grid;
  gap: 0.9rem;
}

.heirloom-landing__visual .heirloom-hero-card {
  min-height: 0;
}

.heirloom-landing__story-card {
  overflow: hidden;
}

.heirloom-landing__overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  color: #fff;
  background: linear-gradient(to top, rgba(24, 28, 24, 0.72), rgba(24, 28, 24, 0.06) 60%, transparent);
}

.heirloom-landing__overlay-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.heirloom-landing__overlay-title {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.heirloom-landing__overlay-copy {
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.heirloom-landing__reaction-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.heirloom-landing__reaction-row span {
  font-size: 1.05rem;
}

.heirloom-landing__story-grid {
  display: grid;
  gap: 0.9rem;
}

.heirloom-landing__story-panel,
.heirloom-landing__quote-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(178, 178, 173, 0.18);
  box-shadow: var(--heirloom-shadow-soft);
}

.heirloom-landing__story-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 241, 0.95));
}

.heirloom-landing__quote-card {
  background: linear-gradient(180deg, rgba(187, 236, 232, 0.38), rgba(255, 255, 255, 0.96));
}

.heirloom-landing__story-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-landing__story-panel h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--heirloom-ink);
}

.heirloom-landing__story-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--heirloom-muted);
}

.heirloom-landing__story-list li {
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.heirloom-landing__story-list li:last-child {
  margin-bottom: 0;
}

.heirloom-landing__quote-card blockquote {
  margin: 0 0 0.65rem;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--heirloom-ink);
}

.heirloom-landing__quote-card p {
  color: var(--heirloom-muted);
  line-height: 1.55;
}

.heirloom-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--heirloom-surface-strong);
}

.heirloom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.heirloom-hero-card:hover .heirloom-media img,
.heirloom-card:hover .heirloom-media img {
  transform: scale(1.04);
}

.heirloom-photo-detail .heirloom-media img {
  object-fit: contain;
  transform: none;
  animation: none;
  transition: none;
  will-change: auto;
  backface-visibility: visible;
  border-top-left-radius: var(--heirloom-radius-lg);
  border-top-right-radius: var(--heirloom-radius-lg);
}

.heirloom-photo-detail:hover .heirloom-media img {
  transform: none;
}

.heirloom-photo-detail__media {
  isolation: isolate;
  transform: translateZ(0);
  overflow: visible;
}

.heirloom-photo-detail.heirloom-card {
  overflow: visible;
}

.heirloom-photo-detail--landscape .heirloom-photo-detail__media {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.heirloom-photo-detail--landscape .heirloom-photo-detail__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  transform: none;
  animation: none;
}

.heirloom-photo-detail--landscape .heirloom-photo-detail__media:hover img {
  transform: none;
}

.heirloom-photo-detail__body {
  visibility: visible;
}

.heirloom-photo-page {
  width: min(100%, 29rem);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding-bottom: 1.25rem;
}

.heirloom-photo-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.1rem 0.15rem 0.25rem;
}

.heirloom-photo-hero__copy {
  min-width: 0;
}

.heirloom-photo-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-photo-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.2rem, 10vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--heirloom-ink);
}

.heirloom-photo-hero__back {
  flex: 0 0 auto;
  align-self: center;
}

.heirloom-photo-stack {
  display: grid;
  gap: 1rem;
}

.heirloom-photo-card {
  overflow: hidden;
}

.heirloom-photo-card--media {
  display: grid;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
}

.heirloom-photo-card__body {
  display: grid;
  gap: 0.95rem;
}

.heirloom-photo-card__meta {
  display: grid;
  gap: 0.7rem;
}

.heirloom-photo-card__author {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-photo-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.heirloom-photo-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.heirloom-photo-card__fact .material-symbols-outlined {
  font-size: 1rem;
  color: var(--heirloom-primary);
}

.heirloom-photo-card__fact a {
  color: inherit;
  text-decoration: none;
}

.heirloom-photo-card__fact a:hover {
  color: var(--heirloom-primary);
}

.heirloom-photo-comment-form {
  display: grid;
  gap: 0.85rem;
}

.heirloom-photo-archive-form {
  display: flex;
  justify-content: flex-start;
}

.heirloom-hero-card .heirloom-media {
  aspect-ratio: 4 / 5;
}

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

.heirloom-grid .heirloom-card .heirloom-media {
  aspect-ratio: 1;
}

.heirloom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.05) 60%, transparent);
}

.heirloom-overlay--soft {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.04) 60%, transparent);
}

.heirloom-hero-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  color: #fff;
}

.heirloom-hero-copy p {
  margin: 0;
}

.heirloom-hero-copy__title {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.heirloom-hero-copy__byline {
  font-size: 0.92rem;
  opacity: 0.9;
}

.heirloom-card__body {
  padding: 1.25rem;
}

.heirloom-card__body p {
  margin-bottom: 0;
}

.upload-dropzone {
  position: relative;
  min-height: 190px;
  border: 1.5px dashed rgba(57, 103, 100, 0.24);
  border-radius: var(--heirloom-radius-lg);
  background:
    linear-gradient(180deg, rgba(187, 236, 232, 0.22), rgba(255, 255, 255, 0.68)),
    var(--heirloom-surface);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.upload-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone__label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 2rem 1.25rem;
  min-height: 190px;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone__icon {
  font-size: 2rem;
  color: var(--heirloom-primary);
}

.upload-dropzone__title {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.upload-dropzone__subtitle {
  max-width: 26rem;
  font-size: 0.95rem;
  color: var(--heirloom-muted);
}

.heirloom-caption-callout {
  padding: 0.9rem 1rem;
  border-radius: var(--heirloom-radius-md);
  background: rgba(187, 236, 232, 0.4);
  color: var(--heirloom-primary-strong);
  font-weight: 600;
}

.heirloom-detail-stack {
  display: grid;
  gap: 0.85rem;
}

.heirloom-detail-caption {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--heirloom-ink);
}

.heirloom-detail-caption--empty {
  color: var(--heirloom-muted);
  font-style: italic;
}

.heirloom-photo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(57, 103, 100, 0.12);
  border-radius: var(--heirloom-radius-lg);
  background:
    linear-gradient(135deg, rgba(187, 236, 232, 0.34), rgba(255, 255, 255, 0.92)),
    var(--heirloom-surface);
}

.heirloom-photo-facts__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 11.5rem;
  min-width: 0;
}

.heirloom-photo-facts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--heirloom-primary);
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.heirloom-photo-facts__icon .material-symbols-outlined {
  font-size: 1rem;
}

.heirloom-photo-facts__label {
  margin: 0 0 0.18rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-photo-facts__value {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-photo-facts__value--muted {
  font-weight: 600;
  color: var(--heirloom-muted);
}

.heirloom-photo-facts__link {
  color: inherit;
  text-decoration: none;
}

.heirloom-photo-facts__link:hover {
  color: var(--heirloom-primary);
}

.heirloom-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.heirloom-detail-tags {
  display: grid;
  gap: 0.85rem;
}

.heirloom-detail-tags__section {
  display: grid;
  gap: 0.5rem;
}

.heirloom-detail-tags__header {
  display: grid;
  gap: 0.15rem;
}

.heirloom-detail-tags__title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-detail-tags__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--heirloom-muted);
}

.heirloom-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.heirloom-tag:hover {
  color: var(--heirloom-primary);
}

.heirloom-tags-panel {
  border: 1px solid rgba(178, 178, 173, 0.22);
  border-radius: var(--heirloom-radius-lg);
  background: rgba(251, 249, 245, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  overflow: clip;
}

.heirloom-tags-panel[open] {
  background: rgba(255, 255, 255, 0.95);
}

.heirloom-tags-panel__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.heirloom-tags-panel__summary::-webkit-details-marker {
  display: none;
}

.heirloom-tags-panel__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-tags-panel__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--heirloom-ink);
}

.heirloom-tags-panel__chevron {
  color: var(--heirloom-muted);
  transition: transform 180ms ease;
}

.heirloom-tags-panel[open] .heirloom-tags-panel__chevron {
  transform: rotate(180deg);
}

.heirloom-tags-panel__body {
  padding: 0 1.05rem 1rem;
}

.heirloom-tags-panel__empty {
  color: var(--heirloom-muted);
  font-size: 0.92rem;
}

.heirloom-comment-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(57, 103, 100, 0.12);
  border-radius: var(--heirloom-radius-lg);
  background:
    linear-gradient(160deg, rgba(57, 103, 100, 0.08), rgba(255, 255, 255, 0.95) 40%, rgba(245, 244, 239, 0.92)),
    var(--heirloom-surface);
  box-shadow: var(--heirloom-shadow-soft);
}

.heirloom-comment-card::before {
  content: "";
  position: absolute;
  inset: auto -22% -42% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 236, 232, 0.5), transparent 68%);
  pointer-events: none;
}

.heirloom-comment-card__header,
.heirloom-comment-card__actions,
.heirloom-comment-thread {
  position: relative;
  z-index: 1;
}

.heirloom-comment-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.heirloom-comment-card__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-comment-card__count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(187, 236, 232, 0.34);
  color: var(--heirloom-primary-strong);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.heirloom-comment-card__count .material-symbols-outlined {
  font-size: 1rem;
}

.heirloom-comment-card .form-control {
  min-height: 8.25rem;
  resize: vertical;
  border-radius: 1rem;
  border-color: rgba(57, 103, 100, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.heirloom-comment-card .form-control:focus {
  border-color: rgba(57, 103, 100, 0.34);
  box-shadow: 0 0 0 0.24rem rgba(187, 236, 232, 0.34);
}

.heirloom-comment-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.heirloom-comment-card__button {
  border-radius: 999px;
  background: var(--heirloom-primary);
  color: #fff;
  font-weight: 800;
  padding-inline: 1.15rem;
  box-shadow: none;
}

.heirloom-comment-card__button:hover {
  color: #fff;
  filter: brightness(0.98);
}

.heirloom-comment-thread {
  display: grid;
  gap: 0.75rem;
}

.heirloom-comment-thread__item {
  padding: 0.95rem 1rem;
  border-radius: var(--heirloom-radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(178, 178, 173, 0.16);
}

.heirloom-comment-thread__item p {
  color: var(--heirloom-ink);
  line-height: 1.6;
}

.heirloom-comment-thread__item small {
  color: var(--heirloom-muted);
}

.heirloom-comment-thread__empty {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--heirloom-radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(178, 178, 173, 0.24);
  color: var(--heirloom-muted);
}

.heirloom-comment-thread__empty .material-symbols-outlined {
  font-size: 1rem;
  color: var(--heirloom-primary);
  margin-top: 0.08rem;
}

.heirloom-edit-details {
  border: 1px solid rgba(178, 178, 173, 0.22);
  border-radius: var(--heirloom-radius-lg);
  background: rgba(251, 249, 245, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.heirloom-edit-details[open] {
  background: rgba(255, 255, 255, 0.94);
}

.heirloom-edit-details__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.95rem;
  color: var(--heirloom-ink);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.heirloom-edit-details__summary::-webkit-details-marker {
  display: none;
}

.heirloom-edit-details__summary .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--heirloom-primary);
}

.heirloom-edit-details__panel {
  padding: 0 0.95rem 0.95rem;
}

.heirloom-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.heirloom-details-field {
  min-width: 0;
}

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

.heirloom-details-field .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-details-field .form-control,
.heirloom-details-field .form-select {
  border-radius: 0.9rem;
  border-color: rgba(178, 178, 173, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.heirloom-edit-details__save {
  border-radius: 999px;
  background: var(--heirloom-primary);
  color: #fff;
  font-weight: 800;
}

.heirloom-edit-details__save:hover {
  color: #fff;
  filter: brightness(0.98);
}

.heirloom-people-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.heirloom-people-picker > div {
  margin: 0;
}

.heirloom-people-picker > div label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(178, 178, 173, 0.24);
  border-radius: 999px;
  background: rgba(251, 249, 245, 0.92);
  color: var(--heirloom-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.heirloom-people-picker > div input {
  margin: 0;
  accent-color: var(--heirloom-primary);
}

.heirloom-people-picker > div:has(input:checked) label {
  border-color: rgba(57, 103, 100, 0.28);
  background: rgba(221, 245, 242, 0.95);
}

.heirloom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.heirloom-row + .heirloom-row {
  margin-top: 0.5rem;
}

.heirloom-post {
  display: grid;
  gap: 0.4rem;
  --feed-width-scale: 1;
  --feed-scroll-spacing: 0px;
  margin-bottom: calc(0.35rem + var(--feed-scroll-spacing));
}

.heirloom-post__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem;
}

.heirloom-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-secondary-ink);
}

.heirloom-avatar--primary {
  background: var(--heirloom-primary-soft);
  color: var(--heirloom-primary);
}

.heirloom-avatar--secondary {
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-secondary-ink);
}

.heirloom-avatar--tertiary {
  background: var(--heirloom-tertiary-soft);
  color: var(--heirloom-tertiary);
}

.heirloom-author {
  min-width: 0;
  flex: 1 1 auto;
}

.heirloom-author__name {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-author__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--heirloom-muted);
}

.heirloom-post__menu {
  border: 0;
  background: transparent;
  color: var(--heirloom-muted);
}

.heirloom-post__content {
  position: relative;
  border-radius: var(--heirloom-radius-lg);
  overflow: visible;
  background: var(--heirloom-surface);
  border: 1px solid rgba(178, 178, 173, 0.22);
  box-shadow: 0 24px 64px rgba(49, 51, 47, 0.16);
}

.heirloom-post__content--feed {
  background: transparent;
  overflow: visible;
}

@supports (dynamic-range-limit: standard) {
  .heirloom-post__content--feed,
  .heirloom-post--scroll-fade .heirloom-post__image-shell,
  .heirloom-post--scroll-fade .heirloom-post__image-frame,
  .heirloom-post--scroll-fade .heirloom-post__image-frame img {
    dynamic-range-limit: standard;
  }
}

.heirloom-post__image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: visible;
  max-height: 520px;
  background: transparent;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.heirloom-post__image-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--heirloom-radius-lg);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  contain: paint;
  background: var(--heirloom-surface-mid);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.heirloom-post__image img {
  border-radius: var(--heirloom-radius-lg);
  background: var(--heirloom-surface-mid);
}

.heirloom-post--scroll-fade {
  isolation: isolate;
}

.heirloom-post--scroll-fade .heirloom-post__image-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  opacity: 1;
  border-radius: var(--heirloom-radius-lg);
  background: var(--heirloom-surface-soft);
  box-shadow:
    0 22px 34px rgba(18, 21, 18, 0.18),
    0 8px 14px rgba(18, 21, 18, 0.12);
  transform: scale(var(--feed-width-scale));
  transform-origin: center center;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 2800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.heirloom-post--scroll-fade .heirloom-post__image-frame img {
  display: block;
  width: 100%;
  border-radius: 0;
  transform: translateZ(0) scale(1);
  transform-origin: center center;
  transition: transform 6400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.heirloom-post--scroll-fade .heirloom-post__image-frame img,
.heirloom-post--scroll-fade.is-scroll-focus .heirloom-post__image-frame img,
.heirloom-post--scroll-fade.is-scroll-focus-persist .heirloom-post__image-frame img {
  transform: translateZ(0) scale(1);
  transition: none;
  will-change: auto;
}

.heirloom-post--scroll-fade.is-scroll-focus .heirloom-post__image-shell {
  box-shadow:
    0 28px 48px rgba(18, 21, 18, 0.24),
    0 10px 18px rgba(18, 21, 18, 0.14);
}

.heirloom-media__comment-mark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.5rem;
  background: rgba(251, 249, 245, 0.72);
  color: var(--heirloom-primary-strong);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.heirloom-media__comment-mark .material-symbols-outlined {
  font-size: 0.82rem;
  line-height: 1;
}

[data-reaction-menu-trigger] {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

[data-reaction-menu-trigger][data-photo-url] {
  cursor: pointer;
}

[data-reaction-menu-trigger][data-photo-url]:focus-visible {
  outline: 2px solid rgba(57, 103, 100, 0.72);
  outline-offset: 4px;
}

[data-reaction-menu-trigger] img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.heirloom-reaction-cloud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.heirloom-reaction-bubble {
  position: absolute;
  left: var(--bubble-x, 50%);
  top: var(--bubble-y, 50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(251, 249, 245, 0.05);
  color: var(--heirloom-ink);
  font-size: 1.62rem;
  box-shadow:
    0 16px 30px rgba(49, 51, 47, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transform:
    translate3d(var(--bubble-drift-x, 0px), var(--bubble-drift-y, 0px), 0)
    translate(-50%, -50%)
    rotate(var(--bubble-rotate, 0deg))
    scale(calc(var(--bubble-scale, 1) * var(--scroll-bubble-scale, 1)));
  transform-origin: center center;
  animation: heirloom-reaction-float 6.5s ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  will-change: transform;
}

.heirloom-reaction-bubble__emoji {
  display: inline-block;
  font-size: 1.08em;
  transform-origin: center center;
}

.heirloom-reaction-bubble--detail {
  width: 4.75rem;
  height: 4.75rem;
  font-size: 2.05rem;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(251, 249, 245, 0.12);
  box-shadow:
    0 20px 38px rgba(49, 51, 47, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.2) inset;
}

.heirloom-reaction-bubble--feed {
  width: 3.55rem;
  height: 3.55rem;
  font-size: 1.62rem;
}

.heirloom-reaction-bubble[data-reaction-kind="love"] {
  background: rgba(255, 214, 224, 0.56);
}

.heirloom-reaction-bubble[data-reaction-kind="laugh"] {
  background: rgba(255, 239, 196, 0.6);
}

.heirloom-reaction-bubble[data-reaction-kind="wow"] {
  background: rgba(210, 240, 255, 0.58);
}

.heirloom-reaction-bubble[data-reaction-kind="care"] {
  background: rgba(219, 244, 227, 0.6);
}

.heirloom-reaction-bubble[data-reaction-kind="cheer"] {
  background: rgba(255, 224, 194, 0.58);
}

.heirloom-reaction-bubble[data-reaction-kind="smile"] {
  background: rgba(230, 241, 255, 0.58);
}

.heirloom-reaction-cloud .heirloom-reaction-bubble {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.heirloom-reaction-bubble.is-dragging {
  cursor: grabbing;
  box-shadow:
    0 24px 44px rgba(49, 51, 47, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  transition: box-shadow 120ms ease;
}

.heirloom-reaction-menu {
  position: fixed;
  z-index: 120;
  min-width: 15rem;
  padding: 0.8rem;
  border: 1px solid rgba(178, 178, 173, 0.22);
  border-radius: 1.2rem;
  background: rgba(251, 249, 245, 0.96);
  box-shadow: 0 28px 72px rgba(49, 51, 47, 0.22);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.heirloom-reaction-menu.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.heirloom-reaction-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.heirloom-reaction-menu__button {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem 0.45rem;
  border: 0;
  border-radius: 0.95rem;
  background: transparent;
  color: var(--heirloom-ink);
  font: inherit;
  cursor: pointer;
}

.heirloom-reaction-menu__button:hover {
  background: rgba(221, 245, 242, 0.82);
}

.heirloom-reaction-menu__button--more {
  border: 1px dashed rgba(57, 103, 100, 0.24);
}

.heirloom-reaction-menu__emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.heirloom-reaction-menu__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--heirloom-muted);
}

.heirloom-emoji-sheet {
  position: fixed;
  inset: 0;
  z-index: 125;
}

.heirloom-emoji-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 29, 27, 0.42);
}

.heirloom-emoji-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(26rem, calc(100vw - 1rem));
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 1.6rem;
  background: #fbf9f5;
  box-shadow: 0 28px 60px rgba(49, 51, 47, 0.22);
}

.heirloom-emoji-sheet__handle {
  width: 3rem;
  height: 0.3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(94, 96, 91, 0.28);
}

.heirloom-emoji-sheet__header {
  margin-bottom: 0.8rem;
}

.heirloom-emoji-sheet__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-emoji-sheet__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-emoji-sheet__picker {
  width: 100%;
  height: min(24rem, 60vh);
  --background: #fbf9f5;
  --border-color: rgba(178, 178, 173, 0.22);
  --button-hover-background: rgba(221, 245, 242, 0.82);
  --button-active-background: rgba(187, 236, 232, 0.65);
  --category-emoji-size: 1.2rem;
  --emoji-size: 1.5rem;
}

.heirloom-emoji-sheet__dismiss {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0rem));
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: var(--heirloom-muted);
  font-weight: 700;
}

.heirloom-reaction-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.heirloom-reaction-form {
  margin: 0;
}

.heirloom-reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(178, 178, 173, 0.24);
  border-radius: 999px;
  background: rgba(251, 249, 245, 0.92);
  box-shadow: 0 10px 24px rgba(49, 51, 47, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.heirloom-reaction-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 28px rgba(49, 51, 47, 0.14);
}

.heirloom-reaction-button.is-active {
  border-color: rgba(57, 103, 100, 0.28);
  background: rgba(221, 245, 242, 0.95);
}

.heirloom-reaction-button__emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.heirloom-photo-card .heirloom-reaction-picker {
  gap: 0.45rem;
}

.heirloom-photo-card .heirloom-reaction-button {
  width: 2.55rem;
  height: 2.55rem;
  box-shadow: 0 8px 18px rgba(49, 51, 47, 0.08);
}

.heirloom-photo-card .heirloom-reaction-button__emoji {
  font-size: 1.15rem;
}

.heirloom-media__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(49, 51, 47, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.heirloom-feed-group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.8rem 0.35rem;
  padding: 0;
  color: var(--heirloom-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.heirloom-feed-group-meta a {
  color: inherit;
  text-decoration: none;
}

.heirloom-feed-group-meta a:hover {
  text-decoration: underline;
}

.heirloom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.heirloom-chip,
.heirloom-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.heirloom-chip--action {
  cursor: pointer;
  font: inherit;
}

.heirloom-chip--action:hover {
  background: rgba(231, 244, 241, 0.92);
}

.heirloom-chip--love {
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-secondary-ink);
}

.heirloom-chip--neutral {
  background: var(--heirloom-surface-strong);
  color: var(--heirloom-muted);
}

.heirloom-action {
  background: transparent;
  color: var(--heirloom-muted);
  padding-inline: 0;
}

.heirloom-divider {
  height: 1px;
  background: rgba(178, 178, 173, 0.22);
}

@keyframes heirloom-photo-detail-zoom-out {
  0% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heirloom-photo-detail-zoom-out-landscape {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heirloom-reaction-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--bubble-rotate, 0deg) - 2deg)) scale(calc(var(--bubble-scale, 1) * var(--scroll-bubble-scale, 1)));
  }
  25% {
    transform: translate(-50%, calc(-50% - 0.2rem)) rotate(calc(var(--bubble-rotate, 0deg) + 1.25deg)) scale(calc(var(--bubble-scale, 1) * var(--scroll-bubble-scale, 1)));
  }
  50% {
    transform: translate(-50%, calc(-50% - 0.35rem)) rotate(calc(var(--bubble-rotate, 0deg) + 2deg)) scale(calc(var(--bubble-scale, 1) * var(--scroll-bubble-scale, 1)));
  }
  75% {
    transform: translate(-50%, calc(-50% - 0.15rem)) rotate(calc(var(--bubble-rotate, 0deg) + 0.75deg)) scale(calc(var(--bubble-scale, 1) * var(--scroll-bubble-scale, 1)));
  }
}

@keyframes heirloom-emoji-wobble {
  0% {
    transform: rotate(-7deg) scale(1);
  }
  50% {
    transform: rotate(7deg) scale(1.12);
  }
  100% {
    transform: rotate(-7deg) scale(1);
  }
}

.heirloom-post--scroll-fade.is-scroll-focus .heirloom-reaction-bubble__emoji,
.heirloom-post--scroll-fade.is-scroll-focus-persist .heirloom-reaction-bubble__emoji {
  animation: heirloom-emoji-wobble 2400ms ease-in-out infinite;
  animation-delay: var(--emoji-wobble-delay, 0ms);
}

.heirloom-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: auto;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.6rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0rem));
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(18px);
  box-shadow:
    0 -8px 22px rgba(49, 51, 47, 0.06),
    0 -1px 4px rgba(49, 51, 47, 0.04);
  overflow: visible;
  transition: opacity 220ms ease;
}

.heirloom-import-banner {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(26rem, calc(100vw - 2rem));
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(178, 178, 173, 0.26);
  box-shadow: 0 18px 40px rgba(49, 51, 47, 0.16);
}

.heirloom-import-banner__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-import-banner__copy {
  margin-top: 0.18rem;
  font-size: 0.88rem;
  color: var(--heirloom-ink);
}

.heirloom-import-banner__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.heirloom-uploadsheet[hidden] {
  display: none;
}

.heirloom-uploadsheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.heirloom-searchsheet[hidden] {
  display: none;
}

.heirloom-searchsheet {
  position: fixed;
  inset: 0;
  z-index: 72;
}

.heirloom-searchsheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 29, 27, 0.36);
}

.heirloom-searchsheet__panel {
  position: absolute;
  left: 50%;
  top: 5.25rem;
  transform: translateX(-50%);
  width: min(34rem, calc(100vw - 1.25rem));
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 1.6rem;
  background: #fbf9f5;
  box-shadow:
    0 20px 42px rgba(49, 51, 47, 0.2),
    0 2px 8px rgba(49, 51, 47, 0.06);
}

.heirloom-searchsheet__handle {
  width: 3rem;
  height: 0.3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(94, 96, 91, 0.28);
}

.heirloom-searchsheet__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-searchsheet__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-searchsheet__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.heirloom-searchsheet__dismiss {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: var(--heirloom-muted);
  font-weight: 700;
}

.heirloom-uploadsheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 29, 27, 0.36);
}

.heirloom-uploadsheet__panel {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(28rem, calc(100vw - 1.25rem));
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 1.6rem;
  background: #fbf9f5;
  box-shadow:
    0 20px 42px rgba(49, 51, 47, 0.2),
    0 2px 8px rgba(49, 51, 47, 0.06);
}

.heirloom-uploadsheet__handle {
  width: 3rem;
  height: 0.3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(94, 96, 91, 0.28);
}

.heirloom-uploadsheet__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-uploadsheet__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-uploadsheet__actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.heirloom-uploadchoice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(178, 178, 173, 0.22);
  border-radius: 1.2rem;
  background: var(--heirloom-surface);
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.heirloom-uploadchoice .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: rgba(57, 103, 100, 0.1);
  color: var(--heirloom-primary-strong);
  font-size: 1.35rem;
}

.heirloom-uploadchoice strong,
.heirloom-uploadchoice small {
  display: block;
}

.heirloom-uploadchoice strong {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-uploadchoice small {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: var(--heirloom-muted);
}

.heirloom-uploadchoice--google .material-symbols-outlined {
  background: rgba(74, 122, 118, 0.14);
}

.heirloom-uploadsheet__dismiss {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0rem));
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: var(--heirloom-muted);
  font-weight: 700;
}

.heirloom-navlink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 0;
  appearance: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--heirloom-muted);
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

.heirloom-navlink--featured {
  align-self: stretch;
  min-width: 7.5rem;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(180deg, #4a7a76, var(--heirloom-primary-strong));
  color: #fff;
  box-shadow:
    0 16px 30px rgba(57, 103, 100, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  flex-shrink: 0;
}

.heirloom-navlink:hover {
  color: var(--heirloom-primary);
}

.heirloom-navlink:active {
  transform: scale(0.96);
}

.heirloom-navlink.is-active {
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-ink);
}

.heirloom-navlink--featured:hover {
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(180deg, #568683, #2c5a58);
}

.heirloom-navlink--featured.is-active {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(180deg, #4a7a76, var(--heirloom-primary-strong));
  color: #fff;
}

.heirloom-navlink--featured .material-symbols-outlined {
  font-size: 1.95rem;
}

.heirloom-navlink--featured .heirloom-navlink__label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.heirloom-navlink__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.heirloom-navlink .material-symbols-outlined {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .heirloom-bottomnav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 720px);
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem calc(0.35rem + env(safe-area-inset-bottom, 0rem));
    border-radius: 1.4rem 1.4rem 0 0;
  }

  .heirloom-navlink {
    flex-direction: row;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.55rem 0.8rem;
  }

  .heirloom-navlink--featured {
    align-self: auto;
    min-width: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
  }

  .heirloom-bottomnav .heirloom-navlink__label {
    display: none;
  }
}

@media (min-width: 992px) {
  .heirloom-main {
    padding-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 4.45rem;
  }

  body.heirloom-sheet-open {
    overflow: hidden;
  }

  .heirloom-topbar {
    padding: 0.55rem 1rem;
  }

  .heirloom-main {
    width: min(100%, 100%);
    padding-inline: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .heirloom-grid {
    grid-template-columns: 1fr;
  }

  .heirloom-post--scroll-fade .heirloom-post__image {
    overflow: visible;
  }

  .heirloom-post--scroll-fade .heirloom-post__image-shell {
    background: var(--heirloom-surface-soft);
  }

  .heirloom-post--scroll-fade .heirloom-post__image-frame img {
    transform: translateZ(0) scale(1);
  }

  .heirloom-post--scroll-fade .heirloom-reaction-cloud {
    will-change: auto;
  }

  .heirloom-hero-copy {
    padding: 1rem;
  }

  .heirloom-bottomnav {
    position: fixed;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    transform: none;
    width: auto;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0rem));
    border-radius: 1.7rem;
    box-shadow:
      0 14px 26px rgba(49, 51, 47, 0.14),
      0 2px 8px rgba(49, 51, 47, 0.05);
  }

  .heirloom-navlink {
    min-width: 4.2rem;
    padding: 0.35rem 0.7rem 0.5rem;
    gap: 0.12rem;
  }

  .heirloom-navlink--featured {
    min-width: 6.8rem;
    padding: 0.9rem 1rem 0.8rem;
    box-shadow:
      0 14px 26px rgba(57, 103, 100, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .heirloom-import-banner {
    left: 0.8rem;
    right: 0.8rem;
    bottom: calc(5.8rem + env(safe-area-inset-bottom, 0rem));
    width: auto;
    padding: 0.85rem 0.9rem;
    border-radius: 1.1rem;
  }

  .heirloom-import-banner__copy {
    font-size: 0.82rem;
  }

  .heirloom-import-banner__action {
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
  }

  .heirloom-uploadsheet__panel {
    bottom: 0.45rem;
    width: calc(100vw - 0.8rem);
    border-bottom-left-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
  }

  .heirloom-searchsheet__panel {
    top: auto;
    bottom: 0.45rem;
    width: calc(100vw - 0.8rem);
    border-bottom-left-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
  }

  .heirloom-landing__title {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .heirloom-person-row {
    padding: 0.9rem;
  }
}

@keyframes heirloom-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heirloom-reveal {
  animation: heirloom-rise 0.7s ease both;
}

.heirloom-reveal--1 {
  animation-delay: 0.08s;
}

.heirloom-reveal--2 {
  animation-delay: 0.16s;
}

.heirloom-reveal--3 {
  animation-delay: 0.24s;
}

.heirloom-connect-panel {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--heirloom-surface-soft);
  border: 1px solid rgba(178, 178, 173, 0.28);
}

.heirloom-connect-provider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(234, 67, 53, 0.12);
  color: #d93025;
  font-weight: 900;
  font-size: 1.1rem;
}

.heirloom-connect-provider-mark--google {
  background: #fff;
  border: 1px solid rgba(178, 178, 173, 0.28);
  color: inherit;
  padding: 0.5rem;
}

.heirloom-connect-provider-mark--google svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 992px) {
  .heirloom-landing__actions {
    justify-content: flex-start;
  }

  .heirloom-landing__story-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

.heirloom-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--heirloom-surface-soft);
  border: 1px solid rgba(178, 178, 173, 0.24);
}

.heirloom-connect-row__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.heirloom-connect-row__details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.heirloom-connect-row .heirloom-chip {
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .heirloom-connect-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .heirloom-connect-row .heirloom-chip {
    margin-left: auto;
  }
}

.heirloom-profile-panel {
  border-color: rgba(178, 178, 173, 0.16);
  box-shadow: 0 22px 52px rgba(49, 51, 47, 0.1);
}

.heirloom-profile-panel--google,
.heirloom-profile-panel--connect,
.heirloom-profile-panel--invite {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 241, 0.96)),
    var(--heirloom-surface);
}

.heirloom-profile-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.heirloom-profile-panel__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-profile-panel__copy {
  max-width: 34rem;
  color: var(--heirloom-muted);
  line-height: 1.65;
}

.heirloom-action-form .form-group,
.heirloom-action-form .mb-3,
.heirloom-action-form .mb-2 {
  margin-bottom: 0.9rem !important;
}

.heirloom-action-form label {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-action-form .form-control,
.heirloom-action-form .form-select,
.heirloom-action-form textarea,
.heirloom-action-form input {
  min-height: 3.35rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(178, 178, 173, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.heirloom-action-form textarea.form-control {
  min-height: 7rem;
  padding-top: 0.95rem;
}

.heirloom-action-form .form-control:focus,
.heirloom-action-form .form-select:focus,
.heirloom-action-form textarea:focus,
.heirloom-action-form input:focus {
  border-color: rgba(57, 103, 100, 0.32);
  box-shadow: 0 0 0 4px rgba(187, 236, 232, 0.45);
}

.heirloom-action-button {
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a7a76, var(--heirloom-primary-strong));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(57, 103, 100, 0.18);
}

.heirloom-action-button:hover {
  color: #fff;
  filter: brightness(1.02);
}

.heirloom-action-button--disabled {
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-muted);
  box-shadow: none;
}

.heirloom-pill-button {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--heirloom-primary-soft);
  color: var(--heirloom-primary-strong);
  font-weight: 700;
}

.heirloom-profile-section {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(178, 178, 173, 0.18);
}

.heirloom-profile-section__title {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-person-row {
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  background: rgba(245, 244, 239, 0.9);
  border: 1px solid rgba(178, 178, 173, 0.16);
}

.heirloom-person-row__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-person-row__meta {
  display: block;
  margin-top: 0.18rem;
  color: var(--heirloom-muted);
}

.heirloom-person-row__note {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--heirloom-muted);
}

.heirloom-register-shell {
  padding-top: 0.5rem;
}

.heirloom-register-card {
  overflow: hidden;
  border-color: rgba(178, 178, 173, 0.14);
  box-shadow: 0 26px 72px rgba(49, 51, 47, 0.12);
}

.heirloom-register-hero {
  height: 100%;
  padding: 2rem 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(187, 236, 232, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(245, 244, 239, 0.94), rgba(255, 255, 255, 0.88));
}

.heirloom-register-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-register-hero__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2rem, 2vw + 1.2rem, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--heirloom-ink);
}

.heirloom-register-hero__copy {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: var(--heirloom-muted);
  line-height: 1.72;
  font-size: 1rem;
}

.heirloom-register-hero__invite {
  margin-top: 1.4rem;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(178, 178, 173, 0.14);
  backdrop-filter: blur(10px);
}

.heirloom-register-hero__invite-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-register-hero__invite-value {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-register-hero__invite-note {
  margin-top: 0.45rem;
  color: var(--heirloom-muted);
  line-height: 1.6;
}

.heirloom-register-formwrap {
  padding: 2rem 1.6rem;
}

.heirloom-import-live {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(57, 103, 100, 0.08);
  color: var(--heirloom-primary-strong);
  font-weight: 700;
}

@media (max-width: 767.98px), (pointer: coarse) {
  html,
  body {
    background: var(--heirloom-bg);
  }

  .heirloom-backdrop {
    display: none;
  }

  .heirloom-topbar,
  .heirloom-bottomnav {
    background: rgba(251, 249, 245, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .heirloom-card,
  .heirloom-post__content,
  .heirloom-hero-card {
    box-shadow:
      0 12px 26px rgba(49, 51, 47, 0.12),
      0 2px 6px rgba(49, 51, 47, 0.04);
  }

  .heirloom-reaction-bubble {
    animation: none;
    backdrop-filter: none;
  }

  .heirloom-media__comment-mark {
    background: rgba(251, 249, 245, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .heirloom-reaction-cloud {
    mix-blend-mode: normal;
  }

  .heirloom-reaction-bubble--feed {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.45rem;
  }

  .heirloom-reaction-bubble--detail {
    width: 4.45rem;
    height: 4.45rem;
    font-size: 1.95rem;
  }

  .heirloom-reveal,
  .heirloom-reveal--1,
  .heirloom-reveal--2,
  .heirloom-reveal--3 {
    animation: none;
  }

  .heirloom-media__badge {
    backdrop-filter: none;
  }

  .heirloom-person-row {
    padding: 0.9rem;
  }

  .heirloom-register-hero,
  .heirloom-register-formwrap {
    padding: 1.25rem 1rem;
  }
}

.heirloom-connections-page {
  width: min(100%, 29rem);
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  padding-bottom: 6.5rem;
}

.heirloom-connections-hero {
  padding: 0.1rem 0.15rem 0.25rem;
}

.heirloom-connections-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.45rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--heirloom-ink);
}

.heirloom-connections-lead {
  margin: 0.95rem 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--heirloom-muted);
}

.heirloom-connections-stack {
  display: grid;
  gap: 1rem;
}

.heirloom-connection-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: 2rem;
  border: 1px solid rgba(178, 178, 173, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 244, 239, 0.95)),
    var(--heirloom-surface);
  box-shadow: 0 18px 38px rgba(49, 51, 47, 0.1);
}

.heirloom-connection-card--story {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(108, 185, 184, 0.4), rgba(61, 105, 104, 0.88)),
    linear-gradient(135deg, #88cfc9, #4b756f);
  min-height: 12.5rem;
  color: #fff;
}

.heirloom-connection-card--invite::after,
.heirloom-connection-card--form::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 236, 232, 0.8), rgba(187, 236, 232, 0.08) 70%, transparent 71%);
  opacity: 0.5;
  pointer-events: none;
}

.heirloom-connection-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.heirloom-connection-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(57, 103, 100, 0.1);
  color: var(--heirloom-primary-strong);
  flex: 0 0 auto;
}

.heirloom-connection-card__icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.heirloom-connection-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-connection-card__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--heirloom-ink);
}

.heirloom-connection-card__copy {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: var(--heirloom-muted);
}

.heirloom-connections-link-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(178, 178, 173, 0.16);
}

.heirloom-connections-link-row__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.8rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--heirloom-muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heirloom-connections-link-row__input:focus {
  outline: none;
}

.heirloom-connections-link-row__button {
  flex: 0 0 auto;
  height: 2.8rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--heirloom-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(57, 103, 100, 0.18);
}

.heirloom-connections-link-row--create {
  background: transparent;
  border: 0;
  padding: 0;
}

.heirloom-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a7a76, var(--heirloom-primary-strong));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(57, 103, 100, 0.18);
}

.heirloom-cta-button--full {
  width: 100%;
}

.heirloom-cta-button .material-symbols-outlined {
  font-size: 1.1rem;
}

.heirloom-email-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.heirloom-email-form__field {
  display: grid;
  gap: 0.55rem;
}

.heirloom-email-form__field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-email-form__field .form-control,
.heirloom-email-form__field input {
  min-height: 3.2rem;
  padding-inline: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(178, 178, 173, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.heirloom-email-form__field .form-control:focus,
.heirloom-email-form__field input:focus {
  border-color: rgba(57, 103, 100, 0.32);
  box-shadow: 0 0 0 4px rgba(187, 236, 232, 0.42);
}

.heirloom-form-error {
  color: #b2544f;
  font-size: 0.88rem;
}

.heirloom-connections-section {
  display: grid;
  gap: 0.85rem;
}

.heirloom-connections-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.heirloom-connections-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--heirloom-ink);
}

.heirloom-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #f48b8a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.heirloom-connections-section__link {
  color: var(--heirloom-primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.heirloom-connection-list {
  display: grid;
  gap: 0.8rem;
}

.heirloom-connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(178, 178, 173, 0.16);
  box-shadow: 0 12px 26px rgba(49, 51, 47, 0.08);
}

.heirloom-connection-row--active {
  background: rgba(245, 244, 239, 0.92);
}

.heirloom-connection-row__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.heirloom-connection-row__avatar {
  width: 2.8rem;
  height: 2.8rem;
  font-size: 0.8rem;
  background: linear-gradient(180deg, #f4efe5, #e6e0d6);
  color: var(--heirloom-ink);
}

.heirloom-connection-row__copy {
  min-width: 0;
}

.heirloom-connection-row__name {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-connection-row__meta {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-connection-row__note {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--heirloom-muted);
}

.heirloom-connection-row__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.heirloom-connection-row__time {
  font-size: 0.72rem;
  color: var(--heirloom-muted);
}

.heirloom-connection-row__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  color: var(--heirloom-muted);
  font-size: 1.1rem;
  text-decoration: none;
}

.heirloom-chip--accept {
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-secondary-ink);
}

.heirloom-empty-state {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(245, 244, 239, 0.92);
  border: 1px solid rgba(178, 178, 173, 0.16);
  color: var(--heirloom-muted);
}

.heirloom-connections-bottomnav {
  position: fixed;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0rem));
  border-radius: 1.7rem;
  background: rgba(251, 249, 245, 0.98);
  backdrop-filter: none;
  box-shadow:
    0 14px 26px rgba(49, 51, 47, 0.14),
    0 2px 8px rgba(49, 51, 47, 0.05);
}

.heirloom-connections-bottomnav .heirloom-navlink {
  min-width: 4.2rem;
  padding: 0.35rem 0.7rem 0.5rem;
  gap: 0.12rem;
}

.heirloom-connections-bottomnav .heirloom-navlink.is-active {
  background: var(--heirloom-secondary-soft);
  color: var(--heirloom-ink);
}

.heirloom-profile-page {
  width: min(100%, 29rem);
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  padding-bottom: 1.25rem;
}

.heirloom-profile-hero {
  display: grid;
  gap: 0.95rem;
  padding: 0.1rem 0.15rem 0.25rem;
}

.heirloom-profile-hero__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heirloom-primary-strong);
}

.heirloom-profile-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.35rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--heirloom-ink);
}

.heirloom-profile-lead {
  margin: 0.95rem 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--heirloom-muted);
}

.heirloom-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.heirloom-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a7a76, var(--heirloom-primary-strong));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(57, 103, 100, 0.18);
}

.heirloom-cta-pill--soft {
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-ink);
  box-shadow: none;
}

.heirloom-cta-pill--disabled {
  background: var(--heirloom-surface-soft);
  color: var(--heirloom-muted);
  box-shadow: none;
}

.heirloom-profile-stack {
  display: grid;
  gap: 1rem;
}

.heirloom-profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1.05rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(178, 178, 173, 0.16);
  box-shadow: 0 12px 26px rgba(49, 51, 47, 0.08);
}

.heirloom-profile-summary__avatar {
  width: 3.2rem;
  height: 3.2rem;
}

.heirloom-profile-summary__avatar .material-symbols-outlined {
  font-size: 1.5rem;
}

.heirloom-profile-summary__name {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heirloom-ink);
}

.heirloom-profile-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.15rem;
  color: var(--heirloom-muted);
  font-size: 0.78rem;
}

.heirloom-profile-summary__meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  color: rgba(94, 96, 91, 0.65);
}

.heirloom-profile-summary__chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.heirloom-profile-panel {
  display: grid;
  gap: 1rem;
}

.heirloom-profile-panel__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.heirloom-profile-form {
  display: grid;
  gap: 0.95rem;
}

.heirloom-profile-form__actions {
  display: flex;
  justify-content: flex-end;
}

.heirloom-activity-list {
  display: grid;
  gap: 0.7rem;
}

.heirloom-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(245, 244, 239, 0.92);
  border: 1px solid rgba(178, 178, 173, 0.14);
}

.heirloom-activity-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heirloom-ink);
}

.heirloom-activity-item__meta {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heirloom-muted);
}

.heirloom-activity-item__time {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--heirloom-muted);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .heirloom-connections-bottomnav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 720px);
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem calc(0.35rem + env(safe-area-inset-bottom, 0rem));
    border-radius: 1.4rem 1.4rem 0 0;
  }

  .heirloom-connections-bottomnav .heirloom-navlink {
    flex-direction: row;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.55rem 0.8rem;
  }

  .heirloom-connections-bottomnav .heirloom-navlink__label {
    display: none;
  }

  .heirloom-profile-page {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .heirloom-connections-page {
    width: min(100%, 28.5rem);
  }

  .heirloom-connections-title {
    font-size: clamp(2.25rem, 13vw, 3.6rem);
  }

  .heirloom-connection-row {
    padding: 0.9rem;
  }

  .heirloom-connection-row__actions {
    gap: 0.5rem;
  }

  .heirloom-connections-bottomnav {
    left: 0.8rem;
    right: 0.8rem;
  }

  .heirloom-profile-title {
    font-size: clamp(2.15rem, 13vw, 3.6rem);
  }

  .heirloom-profile-summary {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .heirloom-profile-summary__chips {
    margin-top: 0.15rem;
  }

  .heirloom-activity-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .heirloom-photo-page {
    width: min(100%, 28.5rem);
  }

  .heirloom-photo-title {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
  }

  .heirloom-photo-hero {
    align-items: flex-start;
  }

  .heirloom-photo-hero__back {
    margin-top: 0.15rem;
  }

  .heirloom-photo-card__facts {
    gap: 0.45rem;
  }

  .heirloom-photo-card__fact {
    width: 100%;
    justify-content: flex-start;
  }

  .heirloom-comment-card__actions {
    justify-content: flex-start;
  }
}

/* Revenue Operating System */
body.ros-app {
  min-height: 100vh;
  padding-top: 4.5rem;
  background: #f6f7f9;
  color: #17212f;
}

body.ros-app,
.ros-app button,
.ros-app input {
  font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, sans-serif;
}

.ros-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #dfe4ea;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.ros-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #17212f;
  text-decoration: none;
}

.ros-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #17212f;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  line-height: 1;
}

.ros-mark--small {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.ros-title {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ros-topbar__nav,
.ros-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ros-topbar__nav a,
.ros-link-btn,
.ros-text-btn {
  border: 0;
  background: transparent;
  color: #5d6877;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.ros-topbar__nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
}

.ros-topbar__nav a:hover,
.ros-link-btn:hover,
.ros-text-btn:hover {
  color: #17212f;
  background: #eef2f6;
}

.ros-icon-btn,
.ros-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  border: 0;
  border-radius: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.ros-icon-btn {
  width: 2.55rem;
  background: #eef2f6;
  color: #17212f;
}

.ros-primary-btn {
  padding: 0 1rem;
  background: #1662c4;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(22, 98, 196, 0.18);
}

.ros-primary-btn:hover {
  color: #ffffff;
  background: #0f55b0;
}

.ros-primary-btn--small {
  min-height: 2.35rem;
  padding: 0 0.85rem;
}

.ros-main {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 1480px);
  margin: 0 auto;
  padding: 1rem 0;
}

.ros-workspace {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem;
}

.ros-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dfe4ea;
  border-radius: 0.8rem;
  background: #ffffff;
}

body.ros-has-sidebar {
  --ros-sidebar-width: 16.25rem;
  --ros-sidebar-collapsed-width: 4.85rem;
}

.ros-shell-sidebar {
  display: none;
}

.ros-sidebar__section {
  display: grid;
  gap: 0.4rem;
}

.ros-sidebar__label,
.ros-kicker,
.ros-panel__eyebrow {
  margin: 0;
  color: #697586;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ros-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.55rem;
  padding: 0 0.7rem;
  border-radius: 0.6rem;
  color: #4d5867;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.ros-sidebar__item:hover,
.ros-sidebar__item.is-active {
  background: #eef2f6;
  color: #17212f;
}

.ros-sidebar__item .material-symbols-outlined {
  font-size: 1.25rem;
}

.ros-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.2rem;
  color: #5d6877;
  font-size: 0.86rem;
}

.ros-source strong {
  color: #17212f;
  font-size: 0.76rem;
}

.ros-source.is-live strong {
  color: #107c41;
}

.ros-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ros-page {
  display: grid;
  gap: 1rem;
}

.ros-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.ros-page__header h1 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  font-weight: 800;
}

.ros-page__header--split {
  align-items: center;
}

.ros-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem 0.25rem;
}

.ros-command h1 {
  max-width: 48rem;
  margin: 0.2rem 0 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.ros-command__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.ros-modebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ros-segmented,
.ros-role-tabs,
.ros-year-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.ros-segmented {
  padding: 0.25rem;
  border: 1px solid #dfe4ea;
  border-radius: 0.75rem;
  background: #ffffff;
}

.ros-segmented a,
.ros-role-tabs a,
.ros-year-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 0.55rem;
  color: #4d5867;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ros-segmented a.is-active,
.ros-role-tabs a.is-active,
.ros-year-tabs a.is-active {
  background: #17212f;
  color: #ffffff;
}

.ros-role-tabs,
.ros-year-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.ros-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ros-role-card {
  min-height: 4.8rem;
  padding: 0.85rem;
  border: 1px solid #dfe4ea;
  border-radius: 0.75rem;
  background: #ffffff;
}

.ros-role-card span {
  display: block;
  color: #697586;
  font-size: 0.75rem;
  font-weight: 800;
}

.ros-role-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #17212f;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.ros-metrics,
.ros-grid {
  display: grid;
  gap: 1rem;
}

.ros-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ros-metrics--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ros-metric,
.ros-panel {
  border: 1px solid #dfe4ea;
  border-radius: 0.8rem;
  background: #ffffff;
}

.ros-metric {
  min-height: 6.4rem;
  padding: 1rem;
}

.ros-metric span {
  display: block;
  color: #697586;
  font-size: 0.82rem;
  font-weight: 700;
}

.ros-metric strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.ros-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  align-items: start;
}

.ros-grid--single {
  grid-template-columns: 1fr;
}

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

.ros-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.ros-panel--wide {
  grid-row: span 2;
}

.ros-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ros-panel h2,
.ros-account h3,
.ros-meeting h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.ros-panel h2 {
  margin-top: 0.18rem;
  font-size: 1.1rem;
}

.ros-account-list,
.ros-meeting-list,
.ros-task-list,
.ros-signal-list,
.ros-review-list {
  display: grid;
  gap: 0.55rem;
}

.ros-account,
.ros-meeting,
.ros-task,
.ros-signal,
.ros-review {
  border: 1px solid #e5eaf0;
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.ros-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.6fr);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
}

.ros-account__main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.ros-score {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 54%, transparent 56%),
    conic-gradient(#107c41 calc(var(--score) * 1%), #dde4ec 0);
}

.ros-score span {
  color: #17212f;
  font-size: 0.86rem;
  font-weight: 800;
}

.ros-account h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.ros-account p,
.ros-meeting p,
.ros-signal p,
.ros-review p {
  margin: 0.18rem 0 0;
  color: #697586;
  font-size: 0.85rem;
}

.ros-account__signal {
  display: grid;
  gap: 0.2rem;
  color: #4d5867;
  font-size: 0.85rem;
}

.ros-account__signal strong {
  color: #17212f;
}

.ros-meeting {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
}

.ros-meeting time {
  color: #1662c4;
  font-weight: 800;
}

.ros-meeting h3 {
  font-size: 0.95rem;
}

.ros-task {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem;
  cursor: pointer;
}

.ros-task input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: #1662c4;
}

.ros-task span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.ros-task strong,
.ros-review strong {
  color: #17212f;
  font-size: 0.9rem;
}

.ros-task small {
  color: #697586;
  font-size: 0.78rem;
}

.ros-signal {
  padding: 0.8rem;
}

.ros-signal span,
.ros-review span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 800;
}

.ros-review {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
}

.ros-review span {
  flex: 0 0 auto;
  background: #e9f3ff;
  color: #1662c4;
}

.ros-callout {
  margin: 0;
  padding: 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 0.7rem;
  background: #f1f7ff;
  color: #17212f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ros-filterbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(10rem, 0.5fr)) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.8rem;
  background: #FFFFFF;
}

.ros-filterbar label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.ros-filterbar label span {
  color: var(--qb-slate);
  font-size: 0.76rem;
  font-weight: 800;
}

.ros-filterbar input,
.ros-filterbar select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0 0.75rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.55rem;
  background: #FFFFFF;
  color: var(--qb-navy);
  font: inherit;
}

.ros-deal-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
  background: #FFFFFF;
}

.ros-deal-table__head,
.ros-deal-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) minmax(12rem, 1fr) 0.6fr minmax(8rem, 0.75fr) 0.55fr 0.45fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.09);
}

.ros-deal-table__head {
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ros-deal-row {
  color: var(--qb-slate);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.ros-deal-row:last-child {
  border-bottom: 0;
}

.ros-deal-row:hover {
  background: #F7FAF8;
}

.ros-deal-row strong,
.ros-deal-row em {
  display: block;
}

.ros-deal-row strong {
  color: var(--qb-navy);
  font-size: 0.95rem;
}

.ros-deal-row em {
  margin-top: 0.2rem;
  color: var(--qb-slate);
  font-style: normal;
}

.ros-account--link {
  color: inherit;
  text-decoration: none;
}

.ros-account--link:hover {
  border-color: rgba(20, 26, 42, 0.22);
  background: #F7FAF8;
}

.ros-deal-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
}

.ros-deal-plan article {
  min-height: 5.7rem;
  padding: 0.8rem;
  border-right: 1px solid var(--qb-border);
  background: #FFFFFF;
}

.ros-deal-plan article:last-child {
  border-right: 0;
}

.ros-deal-plan span,
.ros-note span {
  color: var(--qb-slate);
  font-size: 0.76rem;
  font-weight: 800;
}

.ros-deal-plan strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--qb-navy);
  font-size: 0.95rem;
  line-height: 1.25;
}

.ros-note {
  padding: 0.85rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.ros-note p {
  margin: 0.35rem 0 0;
  color: var(--qb-navy);
  line-height: 1.5;
}

.deal-worklist {
  gap: 0.85rem;
}

.deal-focus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.deal-focus-strip a {
  display: grid;
  gap: 0.25rem;
  min-height: 4.4rem;
  padding: 0.85rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #FFFFFF;
  color: var(--qb-slate);
  text-decoration: none;
}

.deal-focus-strip a:hover {
  border-color: rgba(20, 26, 42, 0.24);
  background: #F7FAF8;
}

.deal-focus-strip span,
.deal-stream-row__main span,
.deal-card__head p,
.deal-hero p,
.deal-now__primary p,
.deal-now__context span {
  margin: 0;
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deal-focus-strip strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.deal-filterbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(4, minmax(8rem, 0.45fr)) auto;
  gap: 0.55rem;
  align-items: center;
}

.deal-filterbar input,
.deal-filterbar select {
  min-height: 2.6rem;
  padding: 0 0.7rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.6rem;
  background: #FFFFFF;
  color: var(--qb-navy);
  font: inherit;
}

.account-filterbar {
  grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(8rem, 0.45fr)) auto;
}

.deal-stream {
  display: grid;
  gap: 0.55rem;
}

.deal-stream-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #FFFFFF;
  color: inherit;
  text-decoration: none;
}

.deal-stream-row:hover {
  border-color: rgba(20, 26, 42, 0.24);
  background: #F7FAF8;
}

.deal-stream-row__main strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
}

.deal-stream-row__main p {
  margin: 0.25rem 0 0;
  color: var(--qb-slate);
  font-size: 0.9rem;
}

.deal-stream-row__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
  color: var(--qb-slate);
  font-size: 0.86rem;
  font-weight: 800;
}

.deal-stream-row__meta em {
  justify-self: end;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #8a5a00;
  font-style: normal;
}

.deal-page {
  display: grid;
  gap: 1rem;
}

.sheet-workspace {
  gap: 1rem;
}

.sheet-report-form {
  display: grid;
  gap: 1rem;
}

.sheet-report-actions {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(12rem, 0.55fr) minmax(12rem, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #fbfcfd;
}

.sheet-report-actions[hidden] {
  display: none;
}

.opp-bulk-actions {
  grid-template-columns: auto minmax(9rem, 0.35fr) minmax(12rem, 0.5fr) minmax(12rem, 1fr) auto;
  padding: 0.55rem;
}

.opp-bulk-actions strong {
  color: var(--qb-navy);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.sheet-report-actions input,
.sheet-report-actions select {
  min-height: 2.45rem;
  padding: 0 0.7rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--qb-navy);
  font: inherit;
}

.sheet-select-row {
  grid-template-columns: auto minmax(0, 1fr) minmax(25rem, 0.9fr);
}

.account-column-picker {
  display: flex;
  justify-content: flex-end;
}

.account-column-picker details {
  position: relative;
}

.account-column-picker summary {
  min-height: 2.45rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--qb-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.account-column-picker summary::-webkit-details-marker {
  display: none;
}

.account-column-picker__panel {
  position: absolute;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  gap: 0.5rem;
  width: min(30rem, 88vw);
  margin-top: 0.45rem;
  padding: 0.7rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 1rem 2rem rgba(20, 26, 42, 0.14);
}

.account-column-picker__panel label {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--qb-navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-column-picker__panel input {
  flex: 0 0 auto;
}

.account-column-picker__panel button {
  grid-column: 1 / -1;
  justify-self: end;
}

.account-worklist-wrap {
  overflow-x: auto;
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #fff;
}

.account-worklist {
  min-width: 72rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.account-worklist th,
.account-worklist td {
  min-width: 8.5rem;
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.09);
  background: #fff;
  color: var(--qb-navy);
  text-align: left;
  vertical-align: middle;
}

.account-worklist th {
  background: #f4f6f8;
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-worklist tbody tr:hover td {
  background: #F7FAF8;
}

.account-worklist tbody tr:last-child td {
  border-bottom: 0;
}

.account-worklist__select {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 4.5rem !important;
  width: 4.5rem;
  background: inherit;
  text-align: center !important;
}

th.account-worklist__select {
  z-index: 5;
  background: #f4f6f8;
}

.account-worklist__column--account,
.account-worklist__cell--account {
  position: sticky;
  left: 4.5rem;
  z-index: 2;
  min-width: 19rem !important;
  background: inherit;
}

.account-worklist__column--account {
  z-index: 4;
  background: #f4f6f8;
}

.account-worklist__column a {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.account-worklist__column a:hover,
.account-worklist__column a.is-active {
  color: var(--qb-navy);
}

.account-worklist__column em {
  color: #174f8a;
  font-style: normal;
}

.account-worklist__cell {
  color: var(--qb-slate);
  font-size: 0.88rem;
  font-weight: 750;
}

.account-worklist__name {
  display: block;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.account-worklist__name:hover {
  color: #174f8a;
}

.account-worklist__cell--account span {
  display: block;
  margin-top: 0.25rem;
  color: var(--qb-slate);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.account-worklist__score {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #8a5a00;
  font-size: 0.88rem;
}

.account-worklist__empty {
  color: var(--qb-slate);
  font-weight: 800;
}

.opp-worklist {
  min-width: 76rem;
}

.opp-worklist .account-worklist__cell--account,
.opp-worklist .account-worklist__column--account {
  min-width: 18rem !important;
}

.opp-worklist__next {
  min-width: 18rem !important;
}

.opp-worklist__amount,
.opp-worklist__score {
  min-width: 7rem !important;
}

.opp-worklist__stage,
.opp-worklist__type,
.opp-worklist__owner {
  min-width: 10rem !important;
}

.opp-worklist__close {
  min-width: 8rem !important;
}

.opp-worklist__score .account-worklist__score {
  min-width: 3rem;
  background: #eaf4ff;
  color: #174f8a;
}

.deal-stream-row__select {
  display: grid;
  place-items: center;
  margin: 0;
}

.deal-stream-row__main a {
  color: inherit;
  text-decoration: none;
}

.deal-stream-row__main a:hover {
  color: #174f8a;
}

.sheet-create-form {
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.5fr) minmax(10rem, 0.7fr) minmax(9rem, 0.5fr) minmax(9rem, 0.5fr) auto;
}

.sheet-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.sheet-main-panel {
  min-width: 0;
}

.sheet-group-list {
  display: grid;
  gap: 0.5rem;
}

.sheet-group-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.sheet-group-row:hover,
.sheet-group-row.is-active {
  border-color: rgba(36, 112, 97, 0.45);
  background: #f4faf7;
}

.sheet-group-row strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.98rem;
}

.sheet-group-row span {
  color: var(--qb-slate);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.sheet-actions {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.sheet-action-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.7rem;
  background: #fbfcfd;
}

.sheet-action-box:has(select) {
  grid-template-columns: minmax(9rem, 1fr) minmax(8rem, 0.4fr) minmax(9rem, 0.55fr) minmax(4rem, 0.2fr) minmax(12rem, 1fr) minmax(8rem, 0.45fr) auto;
}

.sheet-action-box label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.sheet-action-box span {
  color: var(--qb-slate);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-action-box input,
.sheet-action-box textarea,
.sheet-action-box select,
.sheet-grid input,
.sheet-grid textarea,
.sheet-grid select {
  min-height: 2.35rem;
  width: 100%;
  border: 1px solid var(--qb-border);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--qb-navy);
  font: inherit;
}

.sheet-action-box input,
.sheet-action-box textarea,
.sheet-action-box select {
  padding: 0.45rem 0.65rem;
}

.sheet-ai-toggle input {
  min-height: auto;
  width: auto;
}

.sheet-column-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sheet-column-strip article {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.7rem;
  background: #fbfcfd;
}

.sheet-column-strip strong,
.sheet-column-strip span {
  display: block;
}

.sheet-column-strip strong {
  color: var(--qb-navy);
  font-size: 0.9rem;
}

.sheet-column-strip span {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-weight: 800;
}

.sheet-run-log {
  display: grid;
  gap: 0.65rem;
}

.sheet-workspace--redesign {
  display: grid;
  gap: 1rem;
}

.sheet-page-header {
  align-items: center;
}

.sheet-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.sheet-rail,
.sheet-workbench,
.sheet-flow__block,
.sheet-columns,
.sheet-empty {
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #fff;
}

.sheet-rail {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 0.9rem;
  padding: 0.85rem;
}

.sheet-workbench {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.9rem;
}

.sheet-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.sheet-section-head span {
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-section-head strong {
  color: var(--qb-navy);
  font-size: 0.82rem;
}

.sheet-new-group {
  display: grid;
  gap: 0.5rem;
}

.sheet-new-group input,
.sheet-new-group select,
.sheet-search-form input,
.sheet-column-form input,
.sheet-column-form select,
.sheet-column-form textarea {
  min-height: 2.35rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--qb-navy);
  font: inherit;
}

.sheet-group-row {
  border-radius: 0.55rem;
}

.sheet-group-row em {
  color: #35615a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.sheet-group-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.25rem 0.1rem 0.55rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.09);
}

.sheet-group-hero p,
.sheet-group-hero h2 {
  margin: 0;
}

.sheet-group-hero p {
  color: var(--qb-slate);
  font-size: 0.8rem;
  font-weight: 900;
}

.sheet-group-hero h2 {
  margin-top: 0.15rem;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.25rem;
}

.sheet-group-hero__meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--qb-slate);
  font-size: 0.82rem;
  font-weight: 800;
}

.sheet-flow {
  display: grid;
  grid-template-columns: minmax(16rem, 0.38fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.sheet-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}

.sheet-actions-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.sheet-flow__block,
.sheet-columns,
.sheet-run-log {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
}

.sheet-disclosure {
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
  background: #fff;
}

.sheet-disclosure > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.sheet-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sheet-disclosure > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--qb-border);
  border-radius: 999px;
  color: var(--qb-navy);
  font-weight: 900;
}

.sheet-disclosure[open] > summary::after {
  content: "-";
}

.sheet-disclosure > summary span {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
}

.sheet-disclosure > summary strong {
  margin-left: auto;
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-weight: 900;
}

.sheet-disclosure > form,
.sheet-disclosure > div {
  margin: 0 0.8rem 0.8rem;
}

.sheet-action-drawer {
  background: #fbfcfd;
}

.sheet-rail__new {
  background: #fbfcfd;
}

.sheet-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.sheet-column-builders,
.sheet-column-chooser {
  display: grid;
  gap: 0.55rem;
}

.sheet-column-chooser {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-template-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sheet-template-row button {
  min-height: 2.2rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(23, 79, 138, 0.22);
  border-radius: 999px;
  background: #f7fbff;
  color: #174f8a;
  font-size: 0.82rem;
  font-weight: 850;
}

.sheet-column-choice {
  min-width: 0;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
  background: #fff;
}

.sheet-column-choice > summary {
  display: flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.8rem;
  cursor: pointer;
  list-style: none;
}

.sheet-column-choice > summary::-webkit-details-marker {
  display: none;
}

.sheet-column-choice > summary span {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
}

.sheet-column-choice > summary em {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.sheet-column-choice[open] {
  border-color: rgba(23, 79, 138, 0.3);
  box-shadow: 0 0.6rem 1.4rem rgba(20, 26, 42, 0.08);
}

.sheet-column-choice[open] > summary {
  border-bottom: 1px solid rgba(20, 26, 42, 0.08);
}

.sheet-column-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
  padding: 0.75rem;
}

.sheet-column-form--ai {
  grid-template-columns: minmax(0, 1fr);
}

.sheet-column-form input,
.sheet-column-form select,
.sheet-column-form textarea,
.sheet-column-form button {
  min-width: 0;
  max-width: 100%;
}

.sheet-column-form button {
  justify-self: start;
}

.sheet-column-form label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.sheet-column-form label span {
  color: var(--qb-slate);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-column-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sheet-column-strip article.is-ai {
  border-color: rgba(23, 79, 138, 0.28);
  background: #f7fbff;
}

.sheet-grid-form {
  display: grid;
  gap: 0.55rem;
}

.sheet-grid-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.sheet-grid-toolbar span,
.sheet-grid-toolbar strong {
  display: block;
}

.sheet-grid-toolbar span {
  color: var(--qb-slate);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-grid-toolbar strong {
  color: var(--qb-navy);
  font-size: 0.95rem;
}

.sheet-grid th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.sheet-grid__ai-head {
  color: #174f8a !important;
}

.sheet-grid__ai-cell {
  background: #f7fbff;
}

.sheet-grid textarea[readonly] {
  color: #174f8a;
  font-weight: 750;
}

.sheet-run-list {
  display: grid;
  gap: 0.45rem;
}

.sheet-run-list article {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(20, 26, 42, 0.08);
}

.sheet-run-list article:first-child {
  border-top: 0;
}

.sheet-run-list strong,
.sheet-run-list span {
  display: block;
}

.sheet-run-list strong {
  color: var(--qb-navy);
  font-size: 0.9rem;
}

.sheet-run-list span,
.sheet-run-list em {
  color: var(--qb-slate);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.sheet-empty {
  padding: 1.25rem;
}

.sheet-empty h2 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.2rem;
}

.sheet-empty p {
  margin: 0.35rem 0 0;
  color: var(--qb-slate);
}

.sheet-candidates {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid #dfe7ee;
  border-radius: 0.75rem;
  background: #f8fbff;
}

.sheet-candidates__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.sheet-candidates label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  margin: 0;
}

.sheet-candidates strong,
.sheet-candidates em {
  display: block;
}

.sheet-candidates strong {
  color: var(--qb-navy);
  font-size: 0.9rem;
}

.sheet-candidates em {
  color: var(--qb-slate);
  font-size: 0.8rem;
  font-style: normal;
}

.sheet-grid-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--qb-border);
  border-radius: 0.75rem;
}

.sheet-grid {
  min-width: 62rem;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.sheet-grid th,
.sheet-grid td {
  min-width: 9rem;
  padding: 0.55rem;
  border-bottom: 1px solid var(--qb-border);
  border-right: 1px solid var(--qb-border);
  vertical-align: middle;
  color: var(--qb-navy);
  font-size: 0.86rem;
}

.sheet-grid th {
  background: #f4f6f8;
  color: var(--qb-slate);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-grid td:first-child,
.sheet-grid th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 14rem;
  background: #fff;
}

.sheet-grid th:first-child {
  z-index: 2;
  background: #f4f6f8;
}

.sheet-grid a {
  color: #174f8a;
  font-weight: 800;
  text-decoration: none;
}

.sheet-grid input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.sheet-grid__remove {
  min-width: 5rem;
  text-align: right;
}

.sheet-grid__remove button {
  border: 0;
  background: transparent;
  color: #a03b3b;
  font-weight: 800;
}

@media (max-width: 900px) {
  .sheet-create-form,
  .sheet-layout,
  .sheet-shell,
  .sheet-flow,
  .sheet-actions-row,
  .sheet-column-form,
  .sheet-column-form--ai,
  .sheet-column-chooser,
  .sheet-actions,
  .sheet-report-actions,
  .sheet-select-row,
  .sheet-column-strip,
  .sheet-candidates__rows,
  .account-column-picker__panel {
    grid-template-columns: 1fr;
  }

  .sheet-rail {
    position: static;
  }

  .sheet-action-box,
  .sheet-action-box:has(select) {
    grid-template-columns: 1fr;
  }
}

.deal-hero,
.deal-now,
.deal-card {
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background: #FFFFFF;
}

.deal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.65fr);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
}

.deal-back {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--qb-slate);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.deal-inline-link {
  color: inherit;
  text-decoration: none;
}

.deal-inline-link:hover {
  color: var(--qb-green);
}

.deal-hero h1 {
  margin: 0.2rem 0 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.9;
  font-weight: 800;
}

.deal-hero__subhead {
  display: block;
  margin-top: 0.55rem;
  color: var(--qb-slate);
  font-size: 1rem;
  font-weight: 700;
}

.deal-hero__summary {
  display: block;
  max-width: 54rem;
  margin-top: 0.85rem;
  color: var(--qb-navy);
  font-size: 1.06rem;
  line-height: 1.45;
  font-weight: 750;
}

.deal-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--qb-border);
  border-radius: 0.7rem;
}

.deal-hero__stats article {
  min-height: 5rem;
  padding: 0.75rem;
  border-right: 1px solid var(--qb-border);
}

.deal-hero__stats article:last-child {
  border-right: 0;
}

.deal-hero__stats span {
  display: block;
  color: var(--qb-slate);
  font-size: 0.72rem;
  font-weight: 800;
}

.deal-hero__stats strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.05;
}

.deal-stage-path {
  display: grid;
  grid-template-columns: repeat(9, minmax(7rem, 1fr));
  overflow-x: auto;
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background: #FFFFFF;
}

.deal-stage-path__item {
  min-height: 4.6rem;
  padding: 0.75rem;
  border-right: 1px solid var(--qb-border);
}

.deal-stage-path__item:last-child {
  border-right: 0;
}

.deal-stage-path__item span,
.deal-stage-path__item strong {
  display: block;
}

.deal-stage-path__item span {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-weight: 850;
}

.deal-stage-path__item strong {
  margin-top: 0.45rem;
  color: var(--qb-slate);
  font-size: 0.85rem;
  min-height: 1rem;
}

.deal-stage-path__item.is-complete {
  background: #F7FAF8;
}

.deal-stage-path__item.is-complete span::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--qb-green);
  vertical-align: 0.08rem;
}

.deal-stage-path__item.is-current {
  box-shadow: inset 0 -0.24rem 0 var(--qb-green);
}

.deal-stage-path__item.is-current span,
.deal-stage-path__item.is-current strong {
  color: var(--qb-navy);
}

.deal-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.55fr);
  overflow: hidden;
}

.deal-now__primary {
  padding: 1rem;
  background: #F7FAF8;
}

.deal-now__primary h2 {
  max-width: 58rem;
  margin: 0.35rem 0 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.deal-now__primary span {
  display: block;
  margin-top: 0.75rem;
  color: var(--qb-slate);
  font-size: 0.98rem;
  font-weight: 700;
}

.deal-now__context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--qb-border);
}

.deal-now__context div {
  min-height: 5rem;
  padding: 0.75rem;
  border-right: 1px solid var(--qb-border);
  border-bottom: 1px solid var(--qb-border);
}

.deal-now__context div:nth-child(2n) {
  border-right: 0;
}

.deal-now__context div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.deal-now__context strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--qb-navy);
  font-size: 0.95rem;
  line-height: 1.2;
}

.deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.35fr);
  gap: 1rem;
  align-items: start;
}

.deal-main,
.deal-side {
  display: grid;
  gap: 1rem;
}

.deal-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.deal-card--alert {
  border-color: rgba(239, 107, 90, 0.35);
  background: #FFF7F5;
}

.deal-card--notice {
  border-color: #BBDCC8;
  background: #F7FAF8;
}

.deal-card__head h2 {
  margin: 0.2rem 0 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
}

.deal-card > p {
  margin: 0;
  color: var(--qb-navy);
  line-height: 1.45;
}

.deal-card > span {
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 900;
}

.deal-procurement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.deal-procurement-meta span {
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 900;
}

.deal-import-form {
  display: grid;
  gap: 1rem;
}

.deal-import-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deal-import-source label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--qb-border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--qb-navy);
  font-weight: 800;
  cursor: pointer;
}

.deal-import-source input {
  accent-color: var(--qb-blue);
}

.deal-import-drop {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px dashed rgba(20, 26, 42, 0.22);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  cursor: pointer;
}

.deal-import-drop .material-symbols-outlined {
  color: #2563eb;
}

.deal-import-drop strong {
  color: #111827;
}

.deal-import-drop input {
  max-width: 100%;
}

.onboarding-page {
  display: grid;
  gap: 1rem;
}

.onboarding-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(20, 26, 42, 0.07);
}

.onboarding-hero h1 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.onboarding-hero span {
  display: block;
  max-width: 42rem;
  margin-top: 0.8rem;
  color: var(--qb-slate);
  line-height: 1.55;
}

.onboarding-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.onboarding-flow {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
}

.onboarding-flow__bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #E6EAF0;
}

.onboarding-flow__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qb-gold);
}

.onboarding-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.onboarding-flow-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  color: var(--qb-slate);
  text-decoration: none;
}

.onboarding-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(20, 26, 42, 0.08);
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-weight: 900;
}

.onboarding-flow-step strong {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-flow-step--done span {
  background: rgba(34, 160, 107, 0.16);
  color: var(--qb-green);
}

.onboarding-flow-step.is-active {
  background: rgba(20, 26, 42, 0.07);
  color: var(--qb-navy);
}

.onboarding-flow-step.is-active span {
  background: var(--qb-navy);
  color: #FFFFFF;
}

.onboarding-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.35fr);
  gap: 1rem;
  min-height: 21rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(20, 26, 42, 0.97), rgba(20, 26, 42, 0.82)),
    #141A2A;
  color: #FFFFFF;
}

.onboarding-screen__main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.9rem;
}

.onboarding-screen__main .ros-kicker {
  margin: 0;
  color: var(--qb-gold);
}

.onboarding-screen__main h2 {
  max-width: 42rem;
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
}

.onboarding-screen__main > span {
  max-width: 38rem;
  color: rgba(247, 244, 234, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.onboarding-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 54rem);
  margin-top: 0.25rem;
}

.onboarding-form label {
  display: grid;
  gap: 0.35rem;
}

.onboarding-form label > span,
.onboarding-checks label span {
  color: rgba(247, 244, 234, 0.72);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-form input,
.onboarding-form select,
.onboarding-form textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(247, 244, 234, 0.2);
  border-radius: 0.6rem;
  background: rgba(247, 244, 234, 0.08);
  color: #FFFFFF;
  padding: 0.65rem 0.75rem;
  outline: none;
}

.onboarding-form textarea {
  resize: vertical;
}

.onboarding-form input::placeholder,
.onboarding-form textarea::placeholder {
  color: rgba(247, 244, 234, 0.42);
}

.onboarding-form select option {
  color: var(--qb-navy);
}

.onboarding-form__wide,
.onboarding-checks,
.onboarding-form .ros-primary-btn {
  grid-column: 1 / -1;
}

.onboarding-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.onboarding-checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(247, 244, 234, 0.16);
  border-radius: 0.6rem;
  background: rgba(247, 244, 234, 0.06);
}

.onboarding-checks input {
  accent-color: var(--qb-gold);
}

.onboarding-screen__side {
  display: grid;
  align-content: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(247, 244, 234, 0.14);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(247, 244, 234, 0.06);
}

.onboarding-screen__side article {
  display: grid;
  align-content: space-between;
  min-height: 8rem;
  padding: 0.85rem;
  border-right: 1px solid rgba(247, 244, 234, 0.12);
  border-bottom: 1px solid rgba(247, 244, 234, 0.12);
}

.onboarding-screen__side article:nth-child(2n) {
  border-right: 0;
}

.onboarding-screen__side article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.onboarding-screen__side span {
  color: rgba(247, 244, 234, 0.62);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-screen__side strong {
  color: #FFFFFF;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.onboarding-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #FFFFFF;
}

.onboarding-strip article {
  display: grid;
  gap: 0.4rem;
  min-height: 6rem;
  padding: 0.9rem;
  border-right: 1px solid var(--qb-border);
}

.onboarding-strip article:last-child {
  border-right: 0;
}

.onboarding-strip span,
.onboarding-step p,
.onboarding-step em,
.onboarding-ai-list span {
  color: var(--qb-slate);
}

.onboarding-strip span {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-strip strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: 1rem;
}

.onboarding-steps,
.onboarding-ai-list {
  display: grid;
  gap: 0.7rem;
}

.onboarding-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(20, 26, 42, 0.1);
  border-radius: 0.7rem;
  background: #FFFFFF;
  text-decoration: none;
}

.onboarding-step:hover {
  border-color: rgba(20, 26, 42, 0.22);
}

.onboarding-step .material-symbols-outlined {
  color: var(--qb-slate);
}

.onboarding-step--done .material-symbols-outlined {
  color: var(--qb-green);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.onboarding-step--next .material-symbols-outlined {
  color: var(--qb-gold);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.onboarding-step strong,
.onboarding-ai-list strong {
  color: var(--qb-navy);
}

.onboarding-step p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.onboarding-step em {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.onboarding-ai-list article {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(20, 26, 42, 0.1);
  border-radius: 0.7rem;
  background: #FFFFFF;
}

.lead-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.lead-action-strip button,
.lead-action-strip a {
  min-height: 2.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(20, 26, 42, 0.12);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--qb-navy);
  font-weight: 800;
  text-decoration: none;
}

.lead-action-strip button[value="convert"] {
  border-color: var(--qb-blue);
  background: var(--qb-blue);
  color: #FFFFFF;
}

.district-news-list {
  display: grid;
  gap: 0.65rem;
}

.district-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.34fr);
  gap: 1rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--qb-border);
  border-radius: 8px;
  background: #FFFFFF;
}

.district-news span,
.district-news em {
  display: block;
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.district-news h3 {
  margin: 0.25rem 0 0;
  color: var(--qb-navy);
  font-size: 1rem;
  line-height: 1.25;
}

.district-news h3 a,
.district-news aside a {
  color: inherit;
  text-decoration: none;
}

.district-news h3 a:hover,
.district-news aside a:hover {
  text-decoration: underline;
}

.district-news p {
  margin: 0.35rem 0 0;
  color: var(--qb-slate);
}

.district-news aside {
  display: grid;
  gap: 0.35rem;
}

.district-news aside strong {
  color: var(--qb-navy);
  font-size: 0.88rem;
  line-height: 1.25;
}

.cleanup-row-actions,
.cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cleanup-row-actions {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 26, 42, 0.08);
}

.cleanup-row-actions button {
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(20, 26, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.cleanup-row-actions button[value="apply"] {
  background: var(--qb-blue);
  color: #fff;
  border-color: var(--qb-blue);
}

.deal-people,
.deal-list,
.deal-mini-list,
.deal-timeline {
  display: grid;
  gap: 0.55rem;
}

.deal-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-people article,
.deal-list article,
.deal-mini-list article,
.deal-mini-list a,
.deal-timeline article {
  border: 1px solid #e5eaf0;
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.deal-people article,
.deal-list article,
.deal-mini-list article,
.deal-mini-list a {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.deal-people strong,
.deal-list strong,
.deal-mini-list strong,
.deal-mini-list a,
.deal-timeline strong {
  color: var(--qb-navy);
  font-size: 0.94rem;
  line-height: 1.2;
}

.deal-people span,
.deal-list span,
.deal-mini-list span,
.deal-list p,
.deal-timeline p {
  margin: 0;
  color: var(--qb-slate);
  font-size: 0.84rem;
}

.deal-list span {
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #e9f3ff;
  color: #1662c4;
  font-weight: 900;
}

.deal-timeline article {
  display: grid;
  grid-template-columns: 2.25rem 3.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.75rem;
}

.deal-timeline article.is-stage,
.deal-timeline article.is-stage_change,
.deal-timeline article.is-pilot,
.deal-timeline article.is-proposal,
.deal-timeline article.is-quote,
.deal-timeline article.is-procurement,
.deal-timeline article.is-board,
.deal-timeline article.is-renewal,
.deal-timeline article.is-close {
  border-color: #BBDCC8;
  background: #F7FAF8;
}

.deal-timeline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--qb-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--qb-navy);
  font-size: 1.12rem;
}

.deal-timeline article.is-email .deal-timeline__icon {
  color: #1662c4;
}

.deal-timeline__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.deal-timeline__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--qb-border);
  border-radius: 999px;
  background: var(--qb-surface-soft);
  color: var(--qb-muted-strong);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.deal-timeline article.is-call .deal-timeline__icon,
.deal-timeline article.is-voicemail .deal-timeline__icon {
  color: var(--qb-green);
}

.deal-timeline article.is-gatekeeper .deal-timeline__icon {
  color: #8a5a00;
}

.deal-timeline article.is-quote .deal-timeline__icon,
.deal-timeline article.is-procurement .deal-timeline__icon {
  color: #5f3dc4;
}

.deal-timeline time {
  color: #1662c4;
  font-size: 0.8rem;
  font-weight: 900;
}

.deal-meddpicc {
  display: grid;
  gap: 0.45rem;
}

.deal-meddpicc div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--qb-border);
}

.deal-meddpicc div:last-child {
  border-bottom: 0;
}

.deal-meddpicc span,
.deal-meddpicc strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.deal-meddpicc span {
  color: var(--qb-navy);
}

.deal-meddpicc strong {
  color: var(--qb-slate);
}

.deal-meddpicc .is-complete strong {
  color: var(--qb-green);
}

.ros-finding-list,
.ros-action-list,
.ros-chip-list,
.ros-tag-list,
.ros-view-list,
.ros-goal-list {
  display: grid;
  gap: 0.55rem;
}

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

.ros-goal {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #e5eaf0;
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.ros-goal span {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-weight: 800;
}

.ros-goal strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.ros-goal p {
  margin: 0;
  color: var(--qb-slate);
  font-size: 0.82rem;
  font-weight: 700;
}

.ros-goal__track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ee;
}

.ros-goal__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qb-green);
}

.ros-compact-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
}

.ros-compact-metrics article {
  display: grid;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 0.75rem;
  border-right: 1px solid var(--qb-border);
  border-bottom: 1px solid var(--qb-border);
  background: #FFFFFF;
}

.ros-compact-metrics article:nth-child(2n) {
  border-right: 0;
}

.ros-compact-metrics article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ros-compact-metrics span,
.ros-coverage-list__head {
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ros-compact-metrics strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.ros-compact-metrics em {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.ros-coverage-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--qb-border);
  border-radius: 0.65rem;
  background: #FFFFFF;
}

.ros-coverage-list__head,
.ros-coverage-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem 4.25rem 4.25rem;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.7rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.09);
}

.ros-coverage-list article:last-child {
  border-bottom: 0;
}

.ros-coverage-list article strong {
  min-width: 0;
  overflow: hidden;
  color: var(--qb-navy);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ros-coverage-list article span {
  color: var(--qb-coral);
  font-weight: 900;
}

.ros-coverage-list article span.is-covered {
  color: var(--qb-green);
}

.forecast-owner-list .ros-coverage-list__head,
.forecast-owner-list article {
  grid-template-columns: minmax(0, 1.2fr) minmax(6rem, 0.9fr) 4.5rem 5rem 5rem;
}

.ros-finding,
.ros-action,
.ros-chip-card,
.ros-ask-box,
.ros-view-list a {
  border: 1px solid #e5eaf0;
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.ros-finding {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem;
}

.ros-finding > span,
.ros-action > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.55rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #e9f3ff;
  color: #1662c4;
  font-size: 0.72rem;
  font-weight: 800;
}

.ros-finding p,
.ros-action p {
  margin: 0;
  color: #4d5867;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ros-finding strong,
.ros-action strong {
  display: inline-flex;
  margin-top: 0.2rem;
  color: #17212f;
  font-size: 0.84rem;
}

.ros-action {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
}

.ros-action h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ros-chip-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ros-chip-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem;
}

.ros-chip-card strong {
  color: #17212f;
  font-size: 0.92rem;
}

.ros-chip-card span {
  color: #697586;
  font-size: 0.78rem;
}

.ros-ask-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem;
}

.ros-ask-box .material-symbols-outlined {
  color: #1662c4;
  font-size: 1.25rem;
}

.ros-ask-box p {
  margin: 0;
  color: #17212f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ros-tag-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ros-tag-list span,
.ros-view-list a {
  min-width: 0;
  color: #4d5867;
  font-size: 0.8rem;
  font-weight: 700;
}

.ros-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef2f6;
}

.ros-view-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ros-view-list a {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.ros-view-list a:hover {
  color: #17212f;
  background: #eef2f6;
}

@media (max-width: 1050px) {
  .ros-workspace,
  .ros-grid,
  .ros-grid--three {
    grid-template-columns: 1fr;
  }

  .ros-sidebar {
    position: static;
    grid-template-columns: 1fr;
  }

  .ros-content {
    order: -1;
  }

  .ros-sidebar__section:first-child {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ros-sidebar__label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.ros-app {
    padding-top: 4.25rem;
  }

  .ros-topbar {
    min-height: 4.25rem;
  }

  .ros-topbar__nav {
    display: none;
  }

  .ros-main {
    padding: 0.75rem;
  }

  .ros-command {
    display: grid;
  }

  .ros-command__actions {
    width: 100%;
  }

  .ros-command__actions .ros-primary-btn {
    flex: 1 1 auto;
  }

  .ros-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-metrics--compact,
  .ros-role-grid,
  .ros-chip-list,
  .ros-tag-list,
  .ros-view-list {
    grid-template-columns: 1fr;
  }

  .ros-modebar,
  .ros-segmented,
  .ros-role-tabs,
  .ros-year-tabs {
    width: 100%;
  }

  .ros-segmented a {
    flex: 1 1 0;
  }

  .ros-sidebar__section:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-account,
  .ros-finding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .ros-title {
    font-size: 1rem;
  }

  .ros-metrics {
    grid-template-columns: 1fr;
  }

  .ros-sidebar__section:first-child {
    grid-template-columns: 1fr;
  }
}

/* QuotaBell brand layer */
body.ros-app {
  --qb-navy: #141A2A;
  --qb-gold: #F2B84B;
  --qb-green: #22A06B;
  --qb-chalk: #F7F4EA;
  --qb-slate: #5D6B82;
  --qb-coral: #EF6B5A;
  --qb-border: #D9DEE8;
  --qb-panel: #FFFFFF;
  --qb-ink: #141A2A;
  background:
    linear-gradient(180deg, rgba(20, 26, 42, 0.04), transparent 20rem),
    var(--qb-chalk);
  color: var(--qb-ink);
}

body.ros-app,
.ros-app button,
.ros-app input {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

body.ros-app main.container {
  max-width: 1480px;
  width: min(calc(100% - 2rem), 1480px);
  padding-left: 0;
  padding-right: 0;
}

.ros-title,
.ros-command h1,
.ros-panel h2,
.ros-account h3,
.ros-meeting h3,
.ros-action h3 {
  font-family: "Manrope", "Inter", "Segoe UI", Tahoma, sans-serif;
}

.ros-sidebar__label,
.ros-kicker,
.ros-panel__eyebrow,
.ros-metric span {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  letter-spacing: 0.04em;
}

.ros-topbar {
  border-bottom-color: rgba(20, 26, 42, 0.14);
  background: rgba(247, 244, 234, 0.94);
}

.ros-brand,
.ros-title,
.ros-panel h2,
.ros-command h1,
.ros-account h3,
.ros-action h3,
.ros-task strong,
.ros-review strong,
.ros-chip-card strong,
.ros-ask-box p {
  color: var(--qb-navy);
}

.ros-mark {
  background: var(--qb-navy);
  color: var(--qb-gold);
}

.ros-mark .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.ros-mark--small .material-symbols-outlined {
  font-size: 1rem;
}

.ros-topbar__nav a,
.ros-link-btn,
.ros-text-btn,
.ros-sidebar__item,
.ros-segmented a,
.ros-role-tabs a,
.ros-year-tabs a,
.ros-source,
.ros-account__signal,
.ros-account p,
.ros-meeting p,
.ros-signal p,
.ros-review p,
.ros-finding p,
.ros-action p,
.ros-chip-card span,
.ros-tag-list span,
.ros-view-list a {
  color: var(--qb-slate);
}

.ros-topbar__nav a:hover,
.ros-link-btn:hover,
.ros-text-btn:hover,
.ros-sidebar__item:hover,
.ros-sidebar__item.is-active,
.ros-segmented a:hover,
.ros-role-tabs a:hover,
.ros-year-tabs a:hover,
.ros-view-list a:hover {
  color: var(--qb-navy);
  background: rgba(20, 26, 42, 0.07);
}

.ros-segmented a.is-active,
.ros-role-tabs a.is-active,
.ros-year-tabs a.is-active {
  background: var(--qb-navy);
  color: #FFFFFF;
}

.ros-primary-btn,
.ros-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  border-radius: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.ros-primary-btn {
  border: 1px solid rgba(20, 26, 42, 0.12);
  background: var(--qb-gold);
  color: var(--qb-navy);
  box-shadow: 0 10px 20px rgba(242, 184, 75, 0.24);
}

.ros-primary-btn:hover {
  background: #E7AA36;
  color: var(--qb-navy);
}

.ros-secondary-btn {
  padding: 0 1rem;
  border: 1px solid rgba(20, 26, 42, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: var(--qb-navy);
}

.ros-secondary-btn:hover {
  background: #FFFFFF;
}

.ros-icon-btn {
  background: rgba(20, 26, 42, 0.07);
  color: var(--qb-navy);
}

.ros-sidebar,
.ros-metric,
.ros-panel,
.ros-segmented,
.ros-role-card,
.ros-account,
.ros-meeting,
.ros-task,
.ros-signal,
.ros-review,
.ros-finding,
.ros-action,
.ros-chip-card,
.ros-ask-box,
.ros-view-list a {
  border-color: var(--qb-border);
  background: rgba(255, 255, 255, 0.82);
}

.ros-panel,
.ros-sidebar {
  box-shadow: 0 16px 36px rgba(20, 26, 42, 0.07);
}

.ros-lead {
  max-width: 56rem;
  margin: 0.85rem 0 0;
  color: var(--qb-slate);
  font-size: 1rem;
  line-height: 1.55;
}

.ros-callout {
  border-color: rgba(242, 184, 75, 0.45);
  background: rgba(242, 184, 75, 0.15);
  color: var(--qb-navy);
}

.ros-score {
  background:
    radial-gradient(circle at center, #FFFFFF 54%, transparent 56%),
    conic-gradient(var(--qb-green) calc(var(--score) * 1%), #DDE4EC 0);
}

.ros-source.is-live strong,
.ros-account__signal strong,
.ros-finding strong,
.ros-action strong {
  color: var(--qb-navy);
}

.ros-finding > span,
.ros-action > span,
.ros-review span {
  background: rgba(242, 184, 75, 0.18);
  color: #8A5A00;
}

.ros-action:nth-child(2) > span,
.ros-finding:nth-child(4) > span {
  background: rgba(239, 107, 90, 0.14);
  color: #A43A2E;
}

.ros-tag-list span {
  background: rgba(20, 26, 42, 0.07);
}

@media (max-width: 760px) {
  .ros-lead {
    font-size: 0.94rem;
  }
}

.qb-company-page {
  display: grid;
  gap: 1rem;
}

.qb-company-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 12rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(20, 26, 42, 0.12);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(20, 26, 42, 0.96), rgba(20, 26, 42, 0.72)),
    linear-gradient(90deg, rgba(34, 160, 107, 0.25), rgba(242, 184, 75, 0.16));
  color: #FFFFFF;
}

.qb-company-hero h1 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.9;
  font-weight: 800;
}

.qb-company-hero__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--qb-gold);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qb-company-section-grid,
.qb-company-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qb-company-section,
.qb-company-table {
  padding: 1rem;
  border: 1px solid rgba(20, 26, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(20, 26, 42, 0.08);
}

.qb-company-section__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(20, 26, 42, 0.1);
  background: #FFFFFF;
}

.qb-company-section__metrics div {
  display: grid;
  align-content: space-between;
  min-height: 7rem;
  padding: 0.8rem;
  border-right: 1px solid rgba(20, 26, 42, 0.1);
  border-bottom: 1px solid rgba(20, 26, 42, 0.1);
}

.qb-company-section__metrics div:nth-child(2n) {
  border-right: 0;
}

.qb-company-section__metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.qb-company-section__metrics span,
.qb-table__head {
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qb-company-section__metrics strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1;
}

.qb-company-section__metrics em {
  color: var(--qb-slate);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.qb-company-table--wide {
  grid-column: 1 / -1;
}

.qb-table {
  display: grid;
  border: 1px solid rgba(20, 26, 42, 0.1);
  background: #FFFFFF;
}

.qb-table__head,
.qb-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 0.45fr 0.75fr 0.75fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.09);
}

.qb-table__row:last-child {
  border-bottom: 0;
}

.qb-table__row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--qb-navy);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qb-table__row span {
  color: var(--qb-slate);
  font-size: 0.86rem;
  font-weight: 700;
}

.qb-table--calendar .qb-table__head,
.qb-table--calendar .qb-table__row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 0.5fr 0.6fr;
}

.qb-theater-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.qb-theater-header p {
  margin: 0;
  color: var(--qb-gold);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qb-theater-header h2 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .deal-focus-strip,
  .deal-hero,
  .deal-now,
  .deal-layout,
  .onboarding-hero,
  .onboarding-grid,
  .onboarding-screen {
    grid-template-columns: 1fr;
  }

  .onboarding-hero {
    display: grid;
  }

  .deal-now__context {
    border-top: 1px solid var(--qb-border);
    border-left: 0;
  }

  .deal-stream-row {
    grid-template-columns: 1fr;
  }

  .deal-stream-row__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-filterbar .ros-primary-btn {
    width: 100%;
  }

  .ros-deal-table__head {
    display: none;
  }

  .ros-deal-row {
    grid-template-columns: 1fr 1fr;
  }

  .ros-deal-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-deal-plan article:nth-child(2n) {
    border-right: 0;
  }

  .qb-company-section-grid,
  .qb-company-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .deal-focus-strip,
  .deal-filterbar,
  .deal-hero__stats,
  .deal-now__context,
  .deal-people,
  .deal-stream-row__meta,
  .onboarding-strip,
  .onboarding-flow__steps,
  .onboarding-screen__side {
    grid-template-columns: 1fr;
  }

  .deal-hero__stats article,
  .deal-now__context div,
  .onboarding-strip article,
  .onboarding-screen__side article {
    border-right: 0;
    border-bottom: 1px solid var(--qb-border);
  }

  .deal-hero__stats article:last-child,
  .deal-now__context div:last-child,
  .onboarding-strip article:last-child,
  .onboarding-screen__side article:last-child {
    border-bottom: 0;
  }

  .onboarding-screen__side article:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(247, 244, 234, 0.12);
  }

  .ros-page__header,
  .ros-page__header--split {
    display: grid;
  }

  .ros-filterbar,
  .ros-deal-row,
  .ros-deal-plan,
  .onboarding-form,
  .onboarding-checks {
    grid-template-columns: 1fr;
  }

  .ros-deal-plan article {
    border-right: 0;
    border-bottom: 1px solid var(--qb-border);
  }

  .ros-compact-metrics,
  .ros-goal-list,
  .ros-coverage-list__head,
  .ros-coverage-list article,
  .qb-company-section__metrics {
    grid-template-columns: 1fr;
  }

  .ros-compact-metrics article,
  .qb-company-section__metrics div {
    min-height: 6rem;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 26, 42, 0.1);
  }

  .ros-coverage-list__head span:not(:first-child) {
    display: none;
  }

  .qb-company-hero {
    display: grid;
  }

  .qb-table__head {
    display: none;
  }

  .qb-table__row,
  .qb-table--calendar .qb-table__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem;
  }
}

/* QuotaBell landing page */
.qb-main {
  width: 100%;
  overflow: hidden;
}

.qb-hero {
  position: relative;
  width: 100%;
  min-height: calc(88svh - 4.5rem);
  display: flex;
  align-items: center;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center right;
  isolation: isolate;
}

.qb-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 26, 42, 0.96) 0%, rgba(20, 26, 42, 0.84) 38%, rgba(20, 26, 42, 0.4) 72%, rgba(20, 26, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(20, 26, 42, 0.16), rgba(20, 26, 42, 0.72));
}

.qb-hero__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 1.25rem clamp(3rem, 6vw, 5rem);
}

.qb-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--qb-gold);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qb-hero h1,
.qb-section__header h2,
.qb-final h2 {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.qb-hero h1 {
  max-width: 56rem;
  color: #FFFFFF;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.94;
}

.qb-hero__lead {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  color: rgba(247, 244, 234, 0.86);
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.qb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.qb-hero__note {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.qb-hero__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.qb-hero__line span {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(247, 244, 234, 0.22);
  border-radius: 999px;
  background: rgba(247, 244, 234, 0.08);
  color: rgba(247, 244, 234, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.qb-section {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) 1.25rem;
}

.qb-section[id],
.qb-hero[id] {
  scroll-margin-top: 5.25rem;
}

.qb-section--intro {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.qb-section__header {
  max-width: 58rem;
}

.qb-section__header h2,
.qb-final h2 {
  color: var(--qb-navy);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

.qb-section__header p {
  margin: 1rem 0 0;
  color: var(--qb-slate);
  font-size: 1.02rem;
  line-height: 1.65;
}

.qb-audit-grid,
.qb-outcome-grid,
.qb-module-grid,
.qb-persona-grid,
.qb-signal-grid,
.qb-faq-grid,
.qb-stack-grid,
.qb-replace-list {
  display: grid;
  gap: 1rem;
}

.qb-section--trust {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.qb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: var(--qb-shadow-soft);
}

.qb-trust-card {
  display: grid;
  gap: 0.35rem;
  min-height: 6.2rem;
  padding: 1rem;
}

.qb-trust-card + .qb-trust-card {
  border-left: 1px solid rgba(16, 19, 24, 0.07);
}

.qb-trust-card span {
  color: var(--qb-ai);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.qb-trust-card strong {
  color: var(--qb-ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.34;
}

.qb-audit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-stack-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-stack-grid span {
  display: flex;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.9rem;
}

.qb-stat,
.qb-outcome,
.qb-module,
.qb-signal,
.qb-faq,
.qb-stack-grid span {
  border: 1px solid var(--qb-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(20, 26, 42, 0.06);
}

.qb-stat {
  min-height: 8rem;
  padding: 1.1rem;
}

.qb-stat span,
.qb-module span,
.qb-persona span,
.qb-signal span,
.qb-stack-grid span {
  color: var(--qb-slate);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qb-stat strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.qb-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.qb-proof__copy h2 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.qb-finding-list {
  display: grid;
  gap: 0.7rem;
}

.qb-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.qb-outcome-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qb-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qb-outcome {
  min-height: 12rem;
  padding: 1.2rem;
}

.qb-signal {
  min-height: 4.2rem;
  padding: 1rem;
}

.qb-outcome h3 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.qb-faq-section {
  padding-top: clamp(3.5rem, 6vw, 6rem);
}

.qb-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-faq {
  min-height: 13rem;
  padding: 1.2rem;
}

.qb-faq h3 {
  margin: 0;
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
}

.qb-outcome p,
.qb-persona p,
.qb-faq p {
  margin: 0.7rem 0 0;
  color: var(--qb-slate);
  font-size: 0.95rem;
  line-height: 1.55;
}

.qb-product-section {
  width: 100%;
  max-width: none;
  padding-left: max(1.25rem, calc((100vw - 1480px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - 1480px) / 2 + 1.25rem));
  background: var(--qb-navy);
}

.qb-product-section .qb-section__header h2 {
  color: #FFFFFF;
}

.qb-product-section .qb-section__header p {
  color: rgba(247, 244, 234, 0.75);
}

.qb-product-frame {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 234, 0.14);
  border-radius: 1.1rem;
  background: #F6F7F9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.qb-product-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(20, 26, 42, 0.12);
  background: #FFFFFF;
}

.qb-product-topbar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #D9DEE8;
}

.qb-product-topbar span:first-child {
  background: var(--qb-coral);
}

.qb-product-topbar span:nth-child(2) {
  background: var(--qb-gold);
}

.qb-product-topbar span:nth-child(3) {
  background: var(--qb-green);
}

.qb-product-topbar strong {
  margin-left: 0.5rem;
  color: var(--qb-slate);
  font-size: 0.82rem;
}

.qb-product-frame .ros-grid {
  padding: 1rem;
}

.qb-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-replace-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-module {
  display: grid;
  gap: 0.4rem;
  min-height: 7rem;
  padding: 1rem;
}

.qb-module strong {
  color: var(--qb-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
}

.qb-section--dark {
  width: 100%;
  max-width: none;
  padding-left: max(1.25rem, calc((100vw - 1480px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - 1480px) / 2 + 1.25rem));
  background: #111827;
}

.qb-section--dark .qb-section__header h2 {
  color: #FFFFFF;
}

.qb-persona-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.qb-persona {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid rgba(247, 244, 234, 0.14);
  border-radius: 0.85rem;
  background: rgba(247, 244, 234, 0.05);
}

.qb-persona p {
  color: rgba(247, 244, 234, 0.82);
}

.qb-final {
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 1.25rem;
  text-align: center;
}

.qb-final .qb-eyebrow {
  margin-bottom: 0;
}

@media (max-width: 1050px) {
  .qb-audit-grid,
  .qb-module-grid,
  .qb-persona-grid,
  .qb-signal-grid,
  .qb-faq-grid,
  .qb-stack-grid,
  .qb-replace-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qb-proof,
  .qb-section--split {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .qb-hero {
    min-height: auto;
    background-position: center;
  }

  .qb-hero__scrim {
    background:
      linear-gradient(180deg, rgba(20, 26, 42, 0.96), rgba(20, 26, 42, 0.82)),
      rgba(20, 26, 42, 0.72);
  }

  .qb-hero__inner {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .qb-hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .qb-hero__actions,
  .qb-hero__actions .ros-primary-btn,
  .qb-hero__actions .ros-secondary-btn {
    width: 100%;
  }

  .qb-audit-grid,
  .qb-outcome-grid,
  .qb-module-grid,
  .qb-persona-grid,
  .qb-signal-grid,
  .qb-faq-grid,
  .qb-stack-grid,
  .qb-replace-list {
    grid-template-columns: 1fr;
  }

  .qb-product-frame {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 0.85rem;
  }

  .qb-product-frame .ros-grid {
    padding: 0.75rem;
  }
}

/* QuotaBell UI Overhaul */
:root {
  --qb-bg: #f6f7f9;
  --qb-surface: #ffffff;
  --qb-surface-soft: #f9fafb;
  --qb-surface-raised: #ffffff;
  --qb-ink: #101318;
  --qb-muted: #657080;
  --qb-muted-strong: #3f4957;
  --qb-border: #dde2ea;
  --qb-border-strong: #c7ceda;
  --qb-primary: #111827;
  --qb-ai: #00a6a6;
  --qb-ai-soft: #dffafa;
  --qb-blue: #2563eb;
  --qb-green: #16a34a;
  --qb-gold: #f59e0b;
  --qb-amber: #f59e0b;
  --qb-red: #e5484d;
  --qb-coral: #ff5a5f;
  --qb-chalk: #f6f7f9;
  --qb-navy: #101318;
  --qb-slate: #657080;
  --qb-panel: #ffffff;
  --qb-shadow-soft: 0 8px 20px rgba(16, 19, 24, 0.06);
  --qb-shadow-raised: 0 18px 45px rgba(16, 19, 24, 0.1);
  --qb-focus-ring: 0 0 0 3px rgba(0, 166, 166, 0.2);
}

html {
  background: var(--qb-bg);
}

body.ros-app {
  min-height: 100vh;
  padding-top: 4.55rem;
  background:
    linear-gradient(rgba(16, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 24, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0, var(--qb-bg) 19rem);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--qb-ink);
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.ros-app .heirloom-backdrop {
  display: none;
}

body.ros-app,
.ros-app button,
.ros-app input,
.ros-app select,
.ros-app textarea {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

body.ros-app a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

body.ros-app main.container {
  width: min(calc(100% - 2rem), 1480px);
  max-width: 1480px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 1rem 0 3rem;
}

body.ros-app footer {
  border-color: rgba(16, 19, 24, 0.08) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--qb-muted);
  backdrop-filter: blur(16px);
}

.ros-topbar {
  min-height: 4.55rem;
  padding: 0.7rem max(1rem, calc((100vw - 1480px) / 2 + 1rem));
  border-bottom: 1px solid rgba(16, 19, 24, 0.09);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(16, 19, 24, 0.06);
  backdrop-filter: blur(20px) saturate(1.2);
}

.ros-brand {
  gap: 0.7rem;
  color: var(--qb-ink);
}

.ros-mark {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.72rem;
  background:
    linear-gradient(135deg, rgba(0, 166, 166, 0.85), rgba(17, 24, 39, 1) 56%),
    var(--qb-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.22);
}

.ros-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--qb-ai);
}

.ros-mark .material-symbols-outlined {
  position: relative;
  z-index: 1;
  font-size: 1.18rem;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

.ros-mark--small {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
}

.ros-mark--small .material-symbols-outlined {
  font-size: 0.98rem;
}

.ros-title {
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ros-topbar__nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.ros-topbar__actions {
  gap: 0.4rem;
}

.ros-topbar__nav a,
.ros-nav-menu summary,
.ros-link-btn,
.ros-text-btn {
  color: var(--qb-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.ros-topbar__nav a,
.ros-nav-menu summary {
  min-height: 2.35rem;
  padding: 0.55rem 0.72rem;
  border-radius: 0.65rem;
}

.ros-nav-menu {
  position: relative;
  flex: 0 0 auto;
}

.ros-nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  list-style: none;
}

.ros-nav-menu summary::-webkit-details-marker {
  display: none;
}

.ros-nav-menu summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.16rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.ros-nav-menu[open] summary::after {
  margin-top: 0.12rem;
  transform: rotate(225deg);
}

.ros-nav-menu__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(8.25rem, 1fr));
  gap: 0.2rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(16, 19, 24, 0.16);
}

.ros-nav-menu__panel a {
  justify-content: flex-start;
  min-height: 2.2rem;
}

.ros-topbar__nav a:hover,
.ros-nav-menu summary:hover,
.ros-nav-menu[open] summary,
.ros-link-btn:hover,
.ros-text-btn:hover {
  color: var(--qb-ink);
  background: rgba(16, 19, 24, 0.055);
}

.ros-icon-btn,
.ros-primary-btn,
.ros-secondary-btn,
.lead-action-strip button,
.lead-action-strip a,
.cleanup-row-actions button,
.deal-import-source label {
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.ros-icon-btn,
.ros-primary-btn,
.ros-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  border-radius: 0.72rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.ros-icon-btn {
  width: 2.55rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  background: #ffffff;
  color: var(--qb-ink);
  box-shadow: var(--qb-shadow-soft);
}

.ros-icon-btn:hover {
  color: var(--qb-ai);
  transform: translateY(-1px);
}

.ros-primary-btn {
  padding: 0 1rem;
  border: 1px solid rgba(0, 166, 166, 0.35);
  background: var(--qb-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.ros-primary-btn:hover {
  border-color: rgba(0, 166, 166, 0.72);
  background: #0b111d;
  color: #ffffff;
  transform: translateY(-1px);
}

.ros-primary-btn:active,
.ros-secondary-btn:active,
.ros-icon-btn:active {
  transform: translateY(0) scale(0.99);
}

.ros-primary-btn--small {
  min-height: 2.3rem;
}

.ros-secondary-btn {
  padding: 0 0.95rem;
  border: 1px solid rgba(16, 19, 24, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--qb-ink);
  box-shadow: var(--qb-shadow-soft);
}

.ros-secondary-btn:hover {
  border-color: rgba(0, 166, 166, 0.32);
  background: #ffffff;
  color: var(--qb-ink);
  transform: translateY(-1px);
}

.ros-page,
.deal-page,
.qb-company-page,
.deal-worklist {
  display: grid;
  gap: 1rem;
}

.ros-workspace {
  grid-template-columns: minmax(13rem, 0.18fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ros-sidebar {
  top: 5.35rem;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(16, 19, 24, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--qb-shadow-soft);
  backdrop-filter: blur(16px);
}

.ros-sidebar__section {
  gap: 0.3rem;
}

.ros-sidebar__label,
.ros-kicker,
.ros-panel__eyebrow,
.deal-focus-strip span,
.deal-stream-row__main span,
.deal-card__head p,
.deal-hero p,
.deal-now__primary p,
.deal-now__context span,
.qb-company-hero__eyebrow,
.qb-theater-header p,
.district-news span,
.district-news em,
.ros-compact-metrics span,
.ros-coverage-list__head,
.qb-company-section__metrics span,
.qb-table__head,
.qb-stat span,
.qb-module span,
.qb-persona span {
  color: var(--qb-muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.ros-sidebar__item {
  min-height: 2.45rem;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  color: var(--qb-muted-strong);
  font-size: 0.88rem;
  font-weight: 760;
}

.ros-sidebar__item .material-symbols-outlined {
  color: var(--qb-muted);
  font-size: 1.15rem;
}

.ros-sidebar__item:hover,
.ros-sidebar__item.is-active {
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
  color: var(--qb-ink);
  box-shadow: var(--qb-shadow-soft);
}

.ros-sidebar__item.is-active .material-symbols-outlined {
  color: var(--qb-ai);
  font-variation-settings: "FILL" 1, "wght" 620, "GRAD" 0, "opsz" 24;
}

.ros-source {
  min-height: 2.1rem;
  padding: 0.1rem 0.2rem;
  color: var(--qb-muted);
  font-size: 0.8rem;
}

.ros-source strong {
  color: var(--qb-ink);
  font-size: 0.74rem;
}

.ros-source.is-live strong {
  color: var(--qb-ai);
}

.ros-content {
  gap: 1rem;
}

.ros-command,
.deal-hero,
.qb-company-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.09);
  border-radius: 1.05rem;
  background:
    linear-gradient(135deg, rgba(16, 19, 24, 0.97), rgba(17, 24, 39, 0.9) 58%, rgba(0, 166, 166, 0.58)),
    var(--qb-primary);
  color: #ffffff;
  box-shadow: var(--qb-shadow-raised);
}

.ros-command::before,
.deal-hero::before,
.qb-company-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 72%);
}

.ros-command {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 12rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.ros-command > *,
.deal-hero > *,
.qb-company-hero > * {
  position: relative;
  z-index: 1;
}

.ros-command .ros-kicker,
.deal-hero p,
.qb-company-hero__eyebrow {
  color: rgba(223, 250, 250, 0.82);
}

.ros-command h1 {
  max-width: 54rem;
  margin: 0.28rem 0 0;
  color: #ffffff;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.ros-lead {
  max-width: 52rem;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  line-height: 1.55;
}

.ros-command__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ros-command .ros-secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.ros-command .ros-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ros-command .ros-primary-btn {
  border-color: rgba(0, 166, 166, 0.65);
  background: #ffffff;
  color: var(--qb-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.ros-page__header {
  min-height: 5.2rem;
  padding: 0.25rem 0.1rem;
}

.ros-page__header h1 {
  margin: 0.2rem 0 0;
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.ros-modebar {
  gap: 0.65rem;
}

.ros-segmented,
.ros-role-tabs,
.ros-year-tabs {
  gap: 0.28rem;
}

.ros-segmented,
.ros-role-tabs,
.ros-year-tabs {
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--qb-shadow-soft);
}

.ros-segmented a,
.ros-role-tabs a,
.ros-year-tabs a {
  min-height: 2.2rem;
  padding: 0 0.78rem;
  border-radius: 0.65rem;
  color: var(--qb-muted);
  font-size: 0.8rem;
  font-weight: 820;
}

.ros-segmented a:hover,
.ros-role-tabs a:hover,
.ros-year-tabs a:hover {
  color: var(--qb-ink);
  background: rgba(16, 19, 24, 0.055);
}

.ros-segmented a.is-active,
.ros-role-tabs a.is-active,
.ros-year-tabs a.is-active {
  background: var(--qb-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.ros-metrics,
.ros-role-grid,
.deal-focus-strip,
.onboarding-strip {
  gap: 0.65rem;
}

.ros-metric,
.ros-role-card,
.deal-focus-strip a,
.onboarding-strip article,
.qb-stat,
.qb-module,
.qb-persona {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--qb-shadow-soft);
}

.ros-metric::before,
.ros-role-card::before,
.qb-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--qb-ai), transparent);
}

.ros-metric,
.ros-role-card,
.deal-focus-strip a {
  min-height: 5.2rem;
  padding: 0.9rem;
}

.ros-metric span,
.ros-role-card span {
  color: var(--qb-muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ros-metric strong,
.ros-role-card strong,
.deal-focus-strip strong {
  margin-top: 0.35rem;
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 820;
  line-height: 1;
}

.ros-grid {
  grid-template-columns: minmax(0, 1.34fr) minmax(18rem, 0.66fr);
  gap: 1rem;
}

.ros-panel,
.deal-card,
.qb-company-section,
.qb-company-table {
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--qb-shadow-soft);
}

.ros-panel,
.deal-card {
  gap: 0.85rem;
  padding: 1rem;
}

.ros-panel__header,
.deal-card__head,
.qb-theater-header {
  align-items: flex-end;
}

.ros-panel h2,
.ros-account h3,
.ros-meeting h3,
.ros-action h3,
.deal-card__head h2,
.qb-theater-header h2 {
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 820;
  letter-spacing: 0;
}

.ros-panel h2,
.deal-card__head h2,
.qb-theater-header h2 {
  margin-top: 0.18rem;
  font-size: 1.08rem;
}

.ros-text-btn {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.58rem;
}

.ros-account,
.ros-meeting,
.ros-task,
.ros-signal,
.ros-review,
.ros-finding,
.ros-action,
.ros-chip-card,
.ros-ask-box,
.ros-view-list a,
.deal-stream-row,
.deal-people article,
.deal-list article,
.deal-mini-list article,
.deal-mini-list a,
.deal-timeline article,
.district-news,
.ros-goal {
  border: 1px solid rgba(16, 19, 24, 0.075);
  border-radius: 0.82rem;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 19, 24, 0.02);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.ros-account--link:hover,
.deal-stream-row:hover,
.ros-view-list a:hover,
.deal-mini-list a:hover,
.onboarding-step:hover {
  border-color: rgba(0, 166, 166, 0.32);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 19, 24, 0.08);
  transform: translateY(-2px);
}

.ros-account {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.52fr);
  padding: 0.82rem;
}

.ros-score {
  width: 3rem;
  height: 3rem;
  background:
    radial-gradient(circle at center, #ffffff 53%, transparent 56%),
    conic-gradient(var(--qb-ai) calc(var(--score) * 1%), #e3e8ef 0);
}

.ros-score span {
  color: var(--qb-ink);
  font-size: 0.82rem;
  font-weight: 820;
}

.ros-account h3,
.ros-meeting h3,
.ros-action h3 {
  font-size: 0.98rem;
}

.ros-account p,
.ros-meeting p,
.ros-signal p,
.ros-review p,
.ros-finding p,
.ros-action p,
.ros-chip-card span,
.deal-stream-row__main p,
.deal-people span,
.deal-list span,
.deal-mini-list span,
.deal-list p,
.deal-timeline p,
.district-news p,
.qb-company-section__metrics em,
.qb-table__row span {
  color: var(--qb-muted);
}

.ros-account__signal strong,
.ros-finding strong,
.ros-action strong,
.ros-task strong,
.ros-review strong,
.deal-stream-row__main strong,
.deal-people strong,
.deal-list strong,
.deal-mini-list strong,
.deal-mini-list a,
.deal-timeline strong,
.district-news aside strong,
.qb-table__row strong {
  color: var(--qb-ink);
}

.ros-review span,
.ros-finding > span,
.ros-action > span,
.deal-list span,
.deal-stream-row__meta em,
.deal-card > span,
.deal-procurement-meta span {
  min-height: 1.55rem;
  border: 1px solid rgba(0, 166, 166, 0.18);
  border-radius: 999px;
  background: var(--qb-ai-soft);
  color: #007a7a;
  font-size: 0.7rem;
  font-weight: 850;
}

.ros-action:nth-child(2) > span,
.ros-finding:nth-child(4) > span,
.deal-card--alert .deal-card__head p,
.deal-card--alert .deal-card__head h2 {
  color: var(--qb-red);
}

.ros-callout {
  border: 1px solid rgba(0, 166, 166, 0.16);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff, var(--qb-ai-soft));
  color: var(--qb-muted-strong);
}

.deal-filterbar,
.ros-filterbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(4, minmax(8rem, 0.45fr)) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--qb-shadow-soft);
}

.deal-filterbar input,
.deal-filterbar select,
.ros-filterbar input,
.ros-filterbar select {
  min-height: 2.55rem;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 0.7rem;
  background: #ffffff;
  color: var(--qb-ink);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.deal-filterbar input:focus,
.deal-filterbar select:focus,
.ros-filterbar input:focus,
.ros-filterbar select:focus {
  border-color: var(--qb-ai);
  box-shadow: var(--qb-focus-ring);
}

.deal-focus-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deal-focus-strip a {
  color: inherit;
  box-shadow: none;
}

.deal-focus-strip a::before {
  content: none;
}

.deal-focus-strip a:hover {
  border-color: rgba(16, 19, 24, 0.16);
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

.deal-stream {
  gap: 0.6rem;
}

.deal-stream-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: 1rem;
  padding: 0.95rem 1rem;
  overflow: hidden;
}

.deal-stream-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--qb-ai), transparent);
  opacity: 0.9;
}

.deal-stream-row__main strong {
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.deal-stream-row__main p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.deal-stream-row__meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--qb-muted);
  font-size: 0.8rem;
  font-weight: 780;
}

.deal-stream-row__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-stream-row__meta em {
  justify-self: end;
  padding: 0.25rem 0.55rem;
  font-style: normal;
}

.deal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.56fr);
  min-height: 13rem;
  align-items: end;
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.deal-back {
  width: fit-content;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.deal-back:hover {
  color: #ffffff;
}

.deal-hero h1 {
  margin: 0.25rem 0 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4.3vw, 3.3rem);
  line-height: 1;
}

.deal-hero__subhead,
.deal-hero > div > span:not(.deal-hero__summary) {
  display: block;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 740;
}

.deal-hero__summary {
  max-width: 56rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.45;
}

.deal-hero__stats {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.deal-hero__stats article {
  min-height: 5.2rem;
  border-right-color: rgba(255, 255, 255, 0.12);
}

.deal-hero__stats span {
  color: rgba(223, 250, 250, 0.76);
}

.deal-hero__stats strong {
  color: #ffffff;
  font-size: 1rem;
}

.deal-stage-path {
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--qb-shadow-soft);
}

.deal-stage-path__item {
  min-height: 4.4rem;
  border-right-color: rgba(16, 19, 24, 0.08);
  background: transparent;
}

.deal-stage-path__item span {
  color: var(--qb-muted-strong);
}

.deal-stage-path__item strong {
  color: var(--qb-muted);
}

.deal-stage-path__item.is-complete {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), transparent);
}

.deal-stage-path__item.is-current {
  background: linear-gradient(180deg, var(--qb-ai-soft), #ffffff);
  box-shadow: inset 0 -3px 0 var(--qb-ai);
}

.deal-stage-path__item.is-current span,
.deal-stage-path__item.is-current strong {
  color: var(--qb-ink);
}

.deal-stage-path__item.is-complete span::before {
  background: var(--qb-green);
}

.deal-now {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.54fr);
  overflow: hidden;
  border: 1px solid rgba(0, 166, 166, 0.18);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--qb-shadow-soft);
}

.deal-now__primary {
  position: relative;
  padding: 1.15rem;
  background:
    linear-gradient(90deg, var(--qb-ai-soft), rgba(255, 255, 255, 0.96));
}

.deal-now__primary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--qb-ai);
}

.deal-now__primary h2 {
  max-width: 58rem;
  margin-top: 0.35rem;
  color: var(--qb-ink);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  letter-spacing: 0;
}

.deal-now__primary span {
  margin-top: 0.65rem;
  color: var(--qb-muted-strong);
  font-size: 0.95rem;
}

.deal-now__context {
  border-left: 1px solid rgba(16, 19, 24, 0.08);
}

.deal-now__context div {
  min-height: 4.8rem;
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
}

.deal-now__context strong {
  color: var(--qb-ink);
  font-size: 0.92rem;
}

.deal-layout {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.35fr);
}

.deal-card--alert {
  border-color: rgba(229, 72, 77, 0.3);
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.deal-card--notice {
  border-color: rgba(0, 166, 166, 0.26);
  background: linear-gradient(180deg, #fff, var(--qb-ai-soft));
}

.deal-card > p {
  color: var(--qb-muted-strong);
}

.deal-procurement-meta {
  gap: 0.45rem;
}

.deal-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-people article,
.deal-list article,
.deal-mini-list article,
.deal-mini-list a {
  gap: 0.28rem;
  padding: 0.78rem;
}

.deal-mini-list a:hover {
  color: var(--qb-ink);
}

.deal-timeline article {
  grid-template-columns: 2.2rem 3.25rem minmax(0, 1fr);
}

.deal-timeline article.is-stage,
.deal-timeline article.is-stage_change,
.deal-timeline article.is-pilot,
.deal-timeline article.is-proposal,
.deal-timeline article.is-quote,
.deal-timeline article.is-procurement,
.deal-timeline article.is-board,
.deal-timeline article.is-renewal,
.deal-timeline article.is-close {
  border-color: rgba(0, 166, 166, 0.18);
  background: var(--qb-ai-soft);
}

.deal-timeline__icon {
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
  color: var(--qb-ai);
}

.deal-timeline time {
  color: var(--qb-muted-strong);
}

.deal-note-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
}

.deal-note-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.deal-note-form span {
  color: var(--qb-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deal-note-form input,
.deal-note-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 19, 24, 0.12);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--qb-ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.deal-note-form textarea {
  resize: vertical;
}

.deal-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.deal-row-actions button {
  min-height: 2rem;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--qb-ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
}

.deal-row-actions button:hover {
  border-color: rgba(0, 166, 166, 0.28);
  color: #007a7a;
}

.deal-meddpicc {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.deal-meddpicc div {
  padding: 0.58rem 0;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.deal-meddpicc span {
  color: var(--qb-ink);
}

.deal-meddpicc strong {
  color: var(--qb-muted);
}

.deal-meddpicc .is-complete strong {
  color: var(--qb-green);
}

.lead-action-strip button,
.lead-action-strip a,
.cleanup-row-actions button {
  min-height: 2.35rem;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 0.68rem;
  background: #ffffff;
  color: var(--qb-ink);
  font-size: 0.84rem;
}

.lead-action-strip button:hover,
.lead-action-strip a:hover,
.cleanup-row-actions button:hover {
  border-color: rgba(0, 166, 166, 0.3);
  box-shadow: var(--qb-shadow-soft);
  transform: translateY(-1px);
}

.lead-action-strip button[value="convert"],
.cleanup-row-actions button[value="apply"] {
  border-color: var(--qb-primary);
  background: var(--qb-primary);
  color: #ffffff;
}

.cleanup-row-actions {
  grid-column: 1 / -1;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(16, 19, 24, 0.08);
}

.deal-import-drop {
  border-color: rgba(0, 166, 166, 0.3);
  border-radius: 0.85rem;
  background: var(--qb-ai-soft);
}

.deal-import-drop .material-symbols-outlined {
  color: var(--qb-ai);
}

.deal-import-source label {
  border-color: rgba(16, 19, 24, 0.1);
  border-radius: 0.68rem;
}

.deal-import-source label:has(input:checked) {
  border-color: var(--qb-ai);
  background: var(--qb-ai-soft);
}

.district-news {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.32fr);
}

.district-news h3 {
  color: var(--qb-ink);
}

.district-news h3 a:hover,
.district-news aside a:hover {
  color: var(--qb-ai);
  text-decoration: none;
}

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

.ros-goal {
  padding: 0.85rem;
}

.ros-goal span {
  color: var(--qb-muted);
}

.ros-goal strong {
  color: var(--qb-ink);
  font-size: 1.18rem;
}

.ros-goal p {
  color: var(--qb-muted);
}

.ros-goal__track {
  height: 0.52rem;
  background: #e7ebf1;
}

.ros-goal__track span {
  background: linear-gradient(90deg, var(--qb-ai), var(--qb-green));
}

.ros-compact-metrics,
.ros-coverage-list,
.qb-company-section__metrics,
.qb-table {
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
}

.ros-compact-metrics article,
.qb-company-section__metrics div {
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
}

.ros-compact-metrics strong,
.qb-company-section__metrics strong {
  color: var(--qb-ink);
}

.ros-coverage-list__head,
.ros-coverage-list article,
.qb-table__head,
.qb-table__row {
  border-color: rgba(16, 19, 24, 0.08);
}

.ros-coverage-list article strong {
  color: var(--qb-ink);
}

.ros-coverage-list article span {
  color: var(--qb-red);
}

.ros-coverage-list article span.is-covered {
  color: var(--qb-green);
}

.qb-company-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 11rem;
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.qb-company-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
}

.qb-company-hero .ros-year-tabs {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.qb-company-hero .ros-year-tabs a {
  color: rgba(255, 255, 255, 0.74);
}

.qb-company-hero .ros-year-tabs a.is-active {
  background: #ffffff;
  color: var(--qb-primary);
}

.qb-company-section-grid,
.qb-company-tables {
  gap: 1rem;
}

.qb-company-section,
.qb-company-table {
  padding: 1rem;
}

.qb-table__row strong {
  font-size: 0.9rem;
}

.qb-main {
  background: #ffffff;
}

.qb-hero {
  min-height: calc(86svh - 4.55rem);
}

.qb-hero__scrim {
  background:
    linear-gradient(90deg, rgba(16, 19, 24, 0.96), rgba(16, 19, 24, 0.78) 42%, rgba(16, 19, 24, 0.3) 78%),
    linear-gradient(180deg, rgba(0, 166, 166, 0.18), rgba(16, 19, 24, 0.62));
}

.qb-eyebrow,
.qb-company-hero__eyebrow,
.qb-theater-header p {
  color: var(--qb-ai);
}

.qb-hero h1,
.qb-section__header h2,
.qb-final h2,
.qb-proof__copy h2 {
  letter-spacing: 0;
}

.qb-section__header h2,
.qb-final h2,
.qb-proof__copy h2,
.qb-outcome h3,
.qb-module strong {
  color: var(--qb-ink);
}

.qb-stat,
.qb-outcome,
.qb-module {
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
  box-shadow: var(--qb-shadow-soft);
}

.qb-product-section {
  background: var(--qb-primary);
}

.qb-section--dark {
  background: #0d121c;
}

.qb-section--dark .qb-persona {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.qb-section--dark .qb-persona span {
  color: rgba(226, 232, 240, 0.72);
}

.qb-section--dark .qb-persona p {
  color: #ffffff;
}

:where(.ros-app button, .ros-app a, .ros-app input, .ros-app select):focus-visible {
  outline: none;
  box-shadow: var(--qb-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  .ros-workspace,
  .ros-grid,
  .ros-grid--three,
  .deal-hero,
  .deal-now,
  .deal-layout,
  .onboarding-hero,
  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .ros-sidebar {
    position: static;
  }

  .ros-content {
    order: -1;
  }

  .deal-now__context {
    border-top: 1px solid rgba(16, 19, 24, 0.08);
    border-left: 0;
  }

  .deal-stream-row {
    grid-template-columns: 1fr;
  }

  .deal-filterbar,
  .ros-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-filterbar .ros-primary-btn,
  .ros-filterbar .ros-primary-btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  body.ros-app {
    padding-top: 7.25rem;
  }

  body.ros-app main.container {
    width: min(calc(100% - 1.2rem), 1480px);
    padding-top: 0.75rem;
  }

  .ros-topbar {
    min-height: 0;
    flex-wrap: wrap;
    padding: 0.65rem 0.75rem;
  }

  .ros-topbar__nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 0.16rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .ros-topbar__nav::-webkit-scrollbar {
    display: none;
  }

  .ros-topbar__nav a {
    flex: 0 0 auto;
    min-height: 2.15rem;
    padding: 0.45rem 0.54rem;
    font-size: 0.78rem;
  }

  .ros-nav-menu {
    flex: 0 0 auto;
  }

  .ros-nav-menu summary {
    min-height: 2.15rem;
    padding: 0.45rem 0.65rem;
  }

  .ros-nav-menu__panel {
    position: fixed;
    top: 6.65rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100vh - 7.35rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: auto;
  }

  .ros-topbar__actions {
    margin-left: auto;
  }

  .ros-title {
    font-size: 1rem;
  }

  .ros-command,
  .qb-company-hero {
    display: grid;
    min-height: 0;
  }

  .ros-command__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .ros-command__actions .ros-primary-btn,
  .ros-command__actions .ros-secondary-btn {
    flex: 1 1 auto;
  }

  .ros-sidebar__section:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ros-sidebar__label {
    grid-column: 1 / -1;
  }

  .ros-metrics,
  .ros-role-grid,
  .deal-focus-strip,
  .deal-filterbar,
  .ros-filterbar,
  .deal-hero__stats,
  .deal-now__context,
  .deal-people,
  .deal-stream-row__meta,
  .ros-compact-metrics,
  .ros-goal-list,
  .ros-coverage-list__head,
  .ros-coverage-list article,
  .qb-company-section__metrics,
  .qb-audit-grid,
  .qb-outcome-grid,
  .qb-module-grid,
  .qb-trust-grid,
  .qb-persona-grid,
  .qb-signal-grid,
  .qb-faq-grid,
  .qb-stack-grid,
  .qb-replace-list {
    grid-template-columns: 1fr;
  }

  .qb-trust-card + .qb-trust-card {
    border-top: 1px solid rgba(16, 19, 24, 0.07);
    border-left: 0;
  }

  .ros-segmented,
  .ros-role-tabs,
  .ros-year-tabs,
  .ros-modebar {
    width: 100%;
  }

  .ros-segmented a,
  .ros-role-tabs a,
  .ros-year-tabs a {
    flex: 1 1 auto;
  }

  .ros-account,
  .ros-finding,
  .district-news {
    grid-template-columns: 1fr;
  }

  .deal-hero__stats article,
  .deal-now__context div,
  .qb-company-section__metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  }

  .deal-hero__stats article:last-child,
  .deal-now__context div:last-child,
  .qb-company-section__metrics div:last-child {
    border-bottom: 0;
  }

  .qb-table__head {
    display: none;
  }

  .qb-table__row,
  .qb-table--calendar .qb-table__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem;
  }
}

@media (max-width: 520px) {
  body.ros-app main.container {
    width: min(calc(100% - 0.8rem), 1480px);
  }

  .ros-mark {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.65rem;
  }

  .ros-title {
    font-size: 0.95rem;
  }

  .ros-icon-btn {
    width: 2.25rem;
    min-height: 2.25rem;
  }

  .ros-command,
  .deal-hero,
  .deal-now__primary,
  .deal-card,
  .ros-panel,
  .qb-company-hero,
  .qb-company-section,
  .qb-company-table {
    border-radius: 0.85rem;
  }

  .ros-command {
    padding: 1rem;
  }

  .ros-command h1,
  .deal-hero h1,
  .qb-company-hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .qb-hero h1 {
    font-size: clamp(3rem, 14vw, 3.65rem);
  }

  .ros-command__actions .ros-primary-btn,
  .ros-command__actions .ros-secondary-btn,
  .qb-hero__actions .ros-primary-btn,
  .qb-hero__actions .ros-secondary-btn {
    min-height: 2.6rem;
    font-size: 0.84rem;
  }

  .deal-timeline article {
    grid-template-columns: 2.1rem minmax(0, 1fr);
  }

  .deal-timeline time {
    grid-column: 2;
    grid-row: 1;
  }

  .deal-timeline article > div {
    grid-column: 1 / -1;
  }
}

.rep-daily-layout,
.rep-main-grid,
.rep-context-grid {
  display: grid;
  gap: 1rem;
}

.rep-daily-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.72fr);
  align-items: stretch;
}

.rep-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.38fr);
}

.rep-context-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rep-focus-card,
.rep-command-box {
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--qb-shadow-soft);
}

.rep-focus-card {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem;
  border-color: rgba(0, 166, 166, 0.2);
  background:
    linear-gradient(135deg, rgba(223, 250, 250, 0.9), rgba(255, 255, 255, 0.96) 58%),
    #ffffff;
}

.rep-focus-card h2 {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
}

.rep-focus-card p {
  max-width: 54rem;
  margin: 0.7rem 0 0;
  color: var(--qb-muted-strong);
  font-size: 1rem;
  line-height: 1.5;
}

.rep-focus-card__foot,
.rep-command-box__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rep-focus-card__foot span {
  color: var(--qb-muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.rep-command-box {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.rep-command-box__form {
  display: grid;
  gap: 0.7rem;
}

.rep-command-box textarea {
  width: 100%;
  min-height: 7.25rem;
  resize: vertical;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 0.8rem;
  background: #f8fafc;
  color: var(--qb-ink);
  font: inherit;
  line-height: 1.45;
  padding: 0.85rem;
  outline: none;
}

.rep-command-box textarea:focus {
  border-color: var(--qb-ai);
  box-shadow: var(--qb-focus-ring);
}

.rep-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rep-prompt-chips button {
  min-height: 2rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.62rem;
  text-align: left;
}

.rep-prompt-chips button:hover {
  background: rgba(37, 99, 235, 0.12);
}

.rep-slate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.rep-slate-strip article,
.rep-skill-list article {
  display: grid;
  gap: 0.24rem;
  min-height: 4.7rem;
  padding: 0.78rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: var(--qb-shadow-soft);
}

.rep-slate-strip span,
.rep-skill-list span,
.rep-workflow-list em,
.rep-feed-item em {
  color: var(--qb-muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.rep-slate-strip strong,
.rep-skill-list strong {
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 820;
  line-height: 1;
}

.rep-slate-strip em,
.rep-skill-list em {
  color: var(--qb-muted-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.rep-feed-panel {
  min-width: 0;
}

.rep-action-feed,
.rep-side-stack,
.rep-workflow-list,
.rep-skill-list,
.rep-compact-list {
  display: grid;
  gap: 0.62rem;
}

.rep-feed-item {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 5.25rem;
  padding: 0.82rem;
  border: 1px solid rgba(16, 19, 24, 0.075);
  border-radius: 0.82rem;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(16, 19, 24, 0.02);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rep-feed-item:hover,
.rep-workflow-list a:hover,
.rep-compact-list a:hover {
  border-color: rgba(0, 166, 166, 0.32);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(16, 19, 24, 0.08);
  transform: translateY(-2px);
}

.rep-feed-item .material-symbols-outlined,
.rep-workflow-list .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.72rem;
  background: var(--qb-ai-soft);
  color: var(--qb-ai);
  font-size: 1.25rem;
}

.rep-feed-item strong,
.rep-compact-list strong,
.rep-workflow-list strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--qb-ink);
  font-weight: 840;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rep-feed-item p,
.rep-compact-list p {
  margin: 0.22rem 0 0;
  color: var(--qb-muted);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rep-feed-item b {
  justify-self: end;
  min-height: 1.9rem;
  padding: 0.35rem 0.58rem;
  border-radius: 0.58rem;
  background: var(--qb-primary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
}

.rep-workflow-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rep-workflow-list a {
  display: grid;
  gap: 0.34rem;
  min-height: 6.2rem;
  padding: 0.72rem;
  border: 1px solid rgba(16, 19, 24, 0.075);
  border-radius: 0.82rem;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

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

.rep-compact-list a,
.rep-compact-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.74rem;
  border: 1px solid rgba(16, 19, 24, 0.075);
  border-radius: 0.82rem;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rep-compact-list em {
  display: block;
  margin-top: 0.2rem;
  color: var(--qb-ink);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .rep-daily-layout,
  .rep-main-grid,
  .rep-context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rep-slate-strip,
  .rep-skill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rep-feed-item {
    grid-template-columns: 2.65rem minmax(0, 1fr);
  }

  .rep-feed-item b {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .rep-focus-card h2 {
    font-size: 1.55rem;
  }

  .rep-slate-strip,
  .rep-workflow-list,
  .rep-skill-list {
    grid-template-columns: 1fr;
  }
}

.ros-command.rep-hero {
  min-height: 7.25rem;
  align-items: center;
  border-color: rgba(16, 19, 24, 0.07);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--qb-ink);
  box-shadow: 0 10px 26px rgba(16, 19, 24, 0.055);
}

.ros-command.rep-hero::before {
  display: none;
}

.ros-command.rep-hero .ros-kicker {
  color: #64748b;
  letter-spacing: 0;
}

.ros-command.rep-hero h1 {
  color: var(--qb-ink);
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.ros-command.rep-hero .ros-lead {
  max-width: 44rem;
  margin-top: 0.42rem;
  color: #566274;
  font-size: 0.91rem;
  line-height: 1.45;
}

.ros-command.rep-hero .ros-secondary-btn {
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
  color: var(--qb-ink);
  box-shadow: none;
}

.ros-command.rep-hero .ros-primary-btn {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}

@media (min-width: 960px) {
  body.ros-has-sidebar .ros-command.rep-hero .ros-command__nav-action {
    display: none;
  }

  body.ros-has-sidebar .ros-command.rep-hero .ros-command__actions {
    flex: 0 0 auto;
  }
}

.rep-daily-layout,
.rep-main-grid,
.rep-context-grid {
  gap: 0.8rem;
}

.rep-focus-card,
.rep-command-box,
.rep-slate-strip article,
.rep-skill-list article,
.rep-feed-item,
.rep-workflow-list a,
.rep-compact-list a,
.rep-compact-list article {
  border-color: rgba(16, 19, 24, 0.07);
  border-radius: 0.78rem;
  box-shadow: none;
}

.rep-focus-card {
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid rgba(16, 19, 24, 0.075);
  background: #ffffff;
}

.rep-focus-card h2 {
  max-width: 42rem;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.08;
}

.rep-focus-card p {
  margin-top: 0.55rem;
  color: #526071;
  font-size: 0.94rem;
}

.rep-focus-card__foot {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 19, 24, 0.07);
}

.rep-command-box {
  gap: 0.7rem;
  padding: 0.9rem;
  background: #ffffff;
}

.rep-command-box textarea {
  min-height: 6rem;
  border-color: rgba(16, 19, 24, 0.08);
  border-radius: 0.7rem;
  background: #f9fafb;
  font-size: 0.92rem;
}

.rep-command-box__actions {
  gap: 0.55rem;
}

.rep-command-box__actions .ros-primary-btn,
.rep-command-box__actions .ros-secondary-btn,
.rep-focus-card__foot .ros-primary-btn {
  min-height: 2.35rem;
  border-radius: 0.62rem;
  box-shadow: none;
  font-size: 0.82rem;
}

.rep-prompt-chips {
  gap: 0.35rem;
}

.rep-prompt-chips button {
  min-height: 1.85rem;
  border-color: rgba(16, 19, 24, 0.08);
  background: #ffffff;
  color: #475569;
  font-size: 0.72rem;
}

.rep-prompt-chips button:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background: #f8fafc;
  color: #1d4ed8;
}

.rep-slate-strip {
  gap: 0.55rem;
}

.rep-slate-strip article,
.rep-skill-list article {
  min-height: 4.05rem;
  padding: 0.68rem 0.72rem;
  background: #ffffff;
}

.rep-slate-strip strong,
.rep-skill-list strong {
  font-size: 1.22rem;
}

.rep-slate-strip span,
.rep-skill-list span,
.rep-workflow-list em,
.rep-feed-item em {
  color: #6b7688;
  font-size: 0.64rem;
}

.rep-action-feed,
.rep-side-stack,
.rep-workflow-list,
.rep-skill-list,
.rep-compact-list {
  gap: 0.5rem;
}

.rep-feed-item {
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  min-height: 4.65rem;
  gap: 0.7rem;
  padding: 0.72rem;
}

.rep-feed-item .material-symbols-outlined,
.rep-workflow-list .material-symbols-outlined {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.08rem;
}

.rep-feed-item strong,
.rep-compact-list strong,
.rep-workflow-list strong {
  margin-top: 0.12rem;
  font-size: 0.91rem;
  font-weight: 820;
}

.rep-feed-item p,
.rep-compact-list p {
  font-size: 0.8rem;
  line-height: 1.32;
}

.rep-feed-item b {
  min-height: 1.65rem;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.68rem;
}

.rep-workflow-list a {
  min-height: 5.35rem;
  padding: 0.66rem;
}

.rep-workflow-list a:nth-child(3n + 2) .material-symbols-outlined {
  background: #ecfdf5;
  color: #16a34a;
}

.rep-workflow-list a:nth-child(3n) .material-symbols-outlined {
  background: #fff7ed;
  color: #ea580c;
}

.rep-compact-list a,
.rep-compact-list article {
  min-height: 4.7rem;
  padding: 0.66rem;
}

.rep-compact-list .ros-score {
  width: 2.5rem;
  height: 2.5rem;
}

.rep-compact-list em {
  color: #334155;
  font-size: 0.78rem;
}

.rep-feed-item:hover,
.rep-workflow-list a:hover,
.rep-compact-list a:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.055);
  transform: translateY(-1px);
}

.rep-intel-panel .district-news {
  box-shadow: none;
}

@media (max-width: 860px) {
  .ros-command.rep-hero {
    align-items: start;
  }

  .rep-feed-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
}

@media (min-width: 1181px) {
  body.ros-has-sidebar {
    padding-top: 0;
    background: #f5f6f8;
  }

  body.ros-has-sidebar .ros-topbar {
    display: none;
  }

  body.ros-has-sidebar main.container {
    width: calc(100% - var(--ros-sidebar-width) - 2rem);
    max-width: none;
    margin-top: 1rem !important;
    margin-right: 1rem;
    margin-bottom: 1.25rem !important;
    margin-left: calc(var(--ros-sidebar-width) + 1rem);
    transition: width 180ms ease, margin-left 180ms ease;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed main.container {
    width: calc(100% - var(--ros-sidebar-collapsed-width) - 2rem);
    margin-left: calc(var(--ros-sidebar-collapsed-width) + 1rem);
  }

  body.ros-has-sidebar footer {
    display: none;
  }

  body.ros-has-sidebar .ros-workspace {
    display: block;
  }

  body.ros-has-sidebar .ros-content {
    min-width: 0;
  }

  body.ros-has-sidebar .ros-sidebar {
    display: grid;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: var(--ros-sidebar-width);
    align-content: start;
    overflow: hidden auto;
    gap: 0.7rem;
    padding: 0.85rem 0.75rem;
    border: 0;
    border-right: 1px solid rgba(16, 19, 24, 0.08);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
      #ffffff;
    box-shadow: 10px 0 28px rgba(16, 19, 24, 0.04);
    backdrop-filter: blur(18px);
    transition: width 180ms ease, padding 180ms ease, box-shadow 180ms ease;
    scrollbar-width: thin;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar {
    width: var(--ros-sidebar-collapsed-width);
    padding: 0.58rem;
  }

  .ros-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 2.55rem;
    padding: 0 0.16rem 0.45rem;
    border-bottom: 1px solid rgba(16, 19, 24, 0.07);
  }

  .ros-sidebar__head > span {
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 860;
    letter-spacing: 0;
  }

  .ros-sidebar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    min-height: 2.05rem;
    flex: 0 0 auto;
    border: 1px solid rgba(16, 19, 24, 0.08);
    border-radius: 0.6rem;
    background: #ffffff;
    color: #64748b;
    box-shadow: none;
  }

  .ros-sidebar__toggle:hover {
    color: var(--qb-ink);
    background: #f8fafc;
  }

  .ros-sidebar__toggle .material-symbols-outlined {
    font-size: 1.18rem;
  }

  body.ros-has-sidebar .ros-sidebar__section {
    min-width: 0;
    gap: 0.22rem;
  }

  body.ros-has-sidebar .ros-sidebar__label {
    padding: 0.3rem 0.5rem 0.18rem;
    color: #94a3b8;
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  body.ros-has-sidebar .ros-sidebar__item {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    align-items: center;
    gap: 0.68rem;
    min-height: 2.4rem;
    padding: 0 0.6rem;
    border-radius: 0.68rem;
    white-space: nowrap;
  }

  body.ros-has-sidebar .ros-sidebar__item:hover {
    background: #f8fafc;
    box-shadow: none;
  }

  body.ros-has-sidebar .ros-sidebar__item.is-active {
    border-color: rgba(37, 99, 235, 0.14);
    background: #eef4ff;
    box-shadow: none;
    color: #172033;
  }

  body.ros-has-sidebar .ros-sidebar__item.is-active .material-symbols-outlined {
    color: #2563eb;
  }

  body.ros-has-sidebar .ros-source {
    min-height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.58rem;
  }

  body.ros-has-sidebar .ros-source.is-live {
    background: rgba(0, 166, 166, 0.06);
  }

  body.ros-has-sidebar .ros-sidebar__item span:last-child,
  body.ros-has-sidebar .ros-sidebar__label,
  body.ros-has-sidebar .ros-source span,
  body.ros-has-sidebar .ros-source strong,
  body.ros-has-sidebar .ros-sidebar__head > span {
    transition: opacity 120ms ease, transform 120ms ease;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__item span:last-child,
  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__label,
  body.ros-has-sidebar.ros-sidebar-collapsed .ros-source span,
  body.ros-has-sidebar.ros-sidebar-collapsed .ros-source strong,
  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__head > span {
    display: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.25rem);
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-source {
    justify-content: center;
    min-height: 0.55rem;
    padding: 0;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-source::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #cbd5e1;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-source.is-live::before {
    background: var(--qb-ai);
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__toggle {
    width: 100%;
  }

  body.ros-has-sidebar.ros-sidebar-collapsed .ros-sidebar__head {
    justify-content: center;
    padding-bottom: 0.4rem;
  }
}

@media (max-width: 959px) {
  .ros-shell-sidebar {
    display: none;
  }

  .ros-sidebar__toggle {
    display: none;
  }

  body.ros-has-sidebar .rep-floating-command {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

body.ros-has-sidebar .ros-content {
  gap: 0.72rem;
}

body.ros-has-sidebar .ros-command.rep-hero,
body.ros-has-sidebar .rep-focus-card,
body.ros-has-sidebar .rep-command-box,
body.ros-has-sidebar .ros-panel {
  border-color: rgba(15, 23, 42, 0.075);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body.ros-has-sidebar .ros-command.rep-hero {
  min-height: 5.8rem;
  padding: 0.95rem 1.05rem;
}

body.ros-has-sidebar .ros-command.rep-hero h1 {
  margin-top: 0.16rem;
  font-size: clamp(1.42rem, 2vw, 1.9rem);
}

body.ros-has-sidebar .ros-command.rep-hero .ros-lead {
  margin-top: 0.28rem;
  font-size: 0.86rem;
}

body.ros-has-sidebar .ros-modebar,
body.ros-has-sidebar .ros-year-tabs {
  padding: 0.22rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

body.ros-has-sidebar .ros-modebar {
  justify-content: space-between;
}

body.ros-has-sidebar .ros-segmented,
body.ros-has-sidebar .ros-role-tabs,
body.ros-has-sidebar .ros-year-tabs {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ros-has-sidebar .ros-segmented a,
body.ros-has-sidebar .ros-role-tabs a,
body.ros-has-sidebar .ros-year-tabs a {
  min-height: 2rem;
  border-radius: 0.58rem;
  font-size: 0.76rem;
}

body.ros-has-sidebar .ros-segmented a.is-active,
body.ros-has-sidebar .ros-role-tabs a.is-active,
body.ros-has-sidebar .ros-year-tabs a.is-active {
  box-shadow: none;
}

body.ros-has-sidebar .rep-daily-layout {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 25rem);
  gap: 0.72rem;
}

body.ros-has-sidebar .rep-focus-card {
  min-height: 10.7rem;
  padding: 0.95rem;
  border-color: rgba(15, 23, 42, 0.095);
}

body.ros-has-sidebar .rep-focus-card h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.78rem);
}

body.ros-has-sidebar .rep-focus-card p {
  margin-top: 0.42rem;
  font-size: 0.88rem;
}

body.ros-has-sidebar .rep-focus-card__foot {
  padding-top: 0.62rem;
}

body.ros-has-sidebar .rep-command-box {
  padding: 0.86rem;
}

body.ros-has-sidebar .rep-command-box textarea {
  min-height: 4.9rem;
}

body.ros-has-sidebar .rep-slate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.96);
}

body.ros-has-sidebar .rep-slate-strip article {
  min-height: 3.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.ros-has-sidebar .rep-slate-strip article + article {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-main-grid,
body.ros-has-sidebar .rep-context-grid {
  gap: 0.72rem;
}

body.ros-has-sidebar .ros-panel {
  padding: 0.86rem;
}

body.ros-has-sidebar .ros-panel__header {
  min-height: 2rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.ros-has-sidebar .ros-panel h2 {
  font-size: 1rem;
}

body.ros-has-sidebar .rep-action-feed,
body.ros-has-sidebar .rep-side-stack,
body.ros-has-sidebar .rep-workflow-list,
body.ros-has-sidebar .rep-skill-list,
body.ros-has-sidebar .rep-compact-list {
  gap: 0.42rem;
}

body.ros-has-sidebar .rep-feed-item,
body.ros-has-sidebar .rep-workflow-list a,
body.ros-has-sidebar .rep-compact-list a,
body.ros-has-sidebar .rep-compact-list article,
body.ros-has-sidebar .rep-skill-list article {
  border-color: rgba(15, 23, 42, 0.065);
  border-radius: 0.68rem;
  background: #ffffff;
}

body.ros-has-sidebar .rep-feed-item {
  min-height: 4.25rem;
  padding: 0.62rem;
}

body.ros-has-sidebar .rep-workflow-list a {
  min-height: 4.85rem;
}

body.ros-has-sidebar .rep-skill-list article {
  min-height: 3.85rem;
}

body.ros-has-sidebar .rep-compact-list a,
body.ros-has-sidebar .rep-compact-list article {
  min-height: 4.35rem;
}

body.ros-has-sidebar .ros-callout {
  border-color: rgba(0, 166, 166, 0.16);
  border-radius: 0.66rem;
  background: #f0fdfa;
  box-shadow: none;
}

body.ros-has-sidebar .ros-view-list a {
  box-shadow: none;
}

body.ros-has-sidebar .rep-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 0.9rem;
  align-items: start;
}

body.ros-has-sidebar .rep-workbench__main {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

body.ros-has-sidebar .rep-workbench__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.92rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-workbench__toolbar h2 {
  margin: 0.12rem 0 0;
  color: var(--qb-ink);
  font-size: 1.08rem;
  font-weight: 840;
  line-height: 1.1;
}

body.ros-has-sidebar .rep-workbench__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 760;
}

body.ros-has-sidebar .rep-workbench__status span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  min-height: 1.7rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.52rem;
  background: #f8fafc;
}

body.ros-has-sidebar .rep-workbench__status strong {
  color: var(--qb-ink);
  font-size: 0.94rem;
  font-weight: 850;
}

body.ros-has-sidebar .rep-workbench__aside {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
}

body.ros-has-sidebar .rep-workbench .rep-focus-card {
  min-height: 12.4rem;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0;
  background: #ffffff;
}

body.ros-has-sidebar .rep-workbench .rep-focus-card h2 {
  max-width: 42rem;
  font-size: clamp(1.55rem, 2.5vw, 2.12rem);
  line-height: 1.02;
}

body.ros-has-sidebar .rep-workbench .rep-focus-card__foot {
  margin-top: 1rem;
}

body.ros-has-sidebar .rep-workbench .rep-action-feed {
  gap: 0;
}

body.ros-has-sidebar .rep-workbench .rep-feed-item {
  min-height: 4.7rem;
  padding: 0.72rem 0.92rem;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 0;
  background: transparent;
}

body.ros-has-sidebar .rep-workbench .rep-feed-item:hover {
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

body.ros-has-sidebar .rep-workbench .rep-feed-item .material-symbols-outlined {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 1.06rem;
}

body.ros-has-sidebar .rep-workbench .rep-feed-item b {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #334155;
}

body.ros-has-sidebar .rep-workbench .rep-command-box,
body.ros-has-sidebar .rep-context-panel {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

body.ros-has-sidebar .rep-workbench .rep-command-box {
  padding: 0;
  border-color: rgba(15, 23, 42, 0.9);
  background: #101318;
  color: #ffffff;
}

body.ros-has-sidebar .rep-workbench .rep-command-box .ros-panel__header,
body.ros-has-sidebar .rep-context-panel .ros-panel__header {
  padding: 0.78rem 0.82rem 0.62rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.065);
}

body.ros-has-sidebar .rep-workbench .rep-command-box .ros-panel__header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.ros-has-sidebar .rep-workbench .rep-command-box h2,
body.ros-has-sidebar .rep-context-panel h2 {
  font-size: 1rem;
  line-height: 1.1;
}

body.ros-has-sidebar .rep-workbench .rep-command-box h2 {
  color: #ffffff;
}

body.ros-has-sidebar .rep-workbench .rep-command-box .ros-panel__eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

body.ros-has-sidebar .rep-workbench .rep-command-box__form {
  padding: 0.72rem 0.82rem 0;
}

body.ros-has-sidebar .rep-workbench .rep-command-box textarea {
  min-height: 4.8rem;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body.ros-has-sidebar .rep-workbench .rep-command-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.ros-has-sidebar .rep-workbench .rep-command-box__actions {
  justify-content: flex-start;
}

body.ros-has-sidebar .rep-workbench .rep-command-box__actions .ros-primary-btn {
  background: #ffffff;
  color: #101318;
}

body.ros-has-sidebar .rep-workbench .rep-command-box__actions .ros-secondary-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body.ros-has-sidebar .rep-workbench .rep-prompt-chips {
  padding: 0.66rem 0.82rem 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.ros-has-sidebar .rep-workbench .rep-prompt-chips button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

body.ros-has-sidebar .rep-context-panel .rep-workflow-list,
body.ros-has-sidebar .rep-context-panel .rep-skill-list {
  padding: 0.72rem;
}

body.ros-has-sidebar .rep-context-panel .rep-workflow-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ros-has-sidebar .rep-context-panel .rep-workflow-list a,
body.ros-has-sidebar .rep-context-panel .rep-assistant-run,
body.ros-has-sidebar .rep-context-panel .rep-skill-list article {
  min-height: 3.35rem;
  padding: 0.56rem;
  border-radius: 0.62rem;
  box-shadow: none;
}

body.ros-has-sidebar .rep-context-panel .rep-assistant-run {
  display: grid;
  gap: 0.34rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

body.ros-has-sidebar .rep-context-panel .rep-skill-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ros-has-sidebar .rep-context-panel .rep-skill-list article {
  align-items: start;
  grid-template-columns: 1fr;
}

body.ros-has-sidebar .rep-context-panel .rep-skill-list strong {
  justify-self: start;
  font-size: 1rem;
  grid-column: auto;
  grid-row: auto;
}

body.ros-has-sidebar .rep-context-panel .rep-skill-list em {
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  body.ros-has-sidebar .rep-workbench {
    grid-template-columns: 1fr;
  }

  body.ros-has-sidebar .rep-workbench__status {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.ros-has-sidebar .rep-workbench__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

  body.ros-has-sidebar .rep-ops-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr) minmax(17rem, 21rem);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
  background: #ffffff;
}

body.ros-has-sidebar .rep-queue-pane,
body.ros-has-sidebar .rep-detail-pane,
body.ros-has-sidebar .rep-inspector-pane {
  min-width: 0;
}

body.ros-has-sidebar .rep-queue-pane,
body.ros-has-sidebar .rep-inspector-pane {
  background: #f8fafc;
}

body.ros-has-sidebar .rep-detail-pane {
  background: #ffffff;
}

body.ros-has-sidebar .rep-detail-pane,
body.ros-has-sidebar .rep-inspector-pane {
  border-left: 1px solid rgba(15, 23, 42, 0.075);
}

body.ros-has-sidebar .rep-pane-head,
body.ros-has-sidebar .rep-detail-head,
body.ros-has-sidebar .rep-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

body.ros-has-sidebar .rep-pane-head {
  min-height: 4.1rem;
  padding: 0.82rem 0.82rem 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-pane-head h2,
body.ros-has-sidebar .rep-detail-head h2 {
  margin: 0.12rem 0 0;
  color: var(--qb-ink);
  line-height: 1.05;
}

body.ros-has-sidebar .rep-pane-head h2 {
  font-size: 1rem;
  font-weight: 850;
}

body.ros-has-sidebar .rep-queue-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-queue-status span {
  display: grid;
  gap: 0.08rem;
  min-height: 3.2rem;
  padding: 0.62rem 0.72rem;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

body.ros-has-sidebar .rep-queue-status strong {
  color: var(--qb-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

body.ros-has-sidebar .rep-queue-list {
  display: grid;
}

body.ros-has-sidebar .rep-queue-item {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.6rem;
  min-height: 5rem;
  padding: 0.72rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.065);
  color: inherit;
  text-decoration: none;
}

body.ros-has-sidebar .rep-queue-item:hover,
body.ros-has-sidebar .rep-queue-item.is-selected {
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

body.ros-has-sidebar .rep-queue-item.is-selected {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.ros-has-sidebar .rep-queue-item .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.52rem;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 1rem;
}

body.ros-has-sidebar .rep-queue-item em,
body.ros-has-sidebar .rep-object-row em {
  color: #64748b;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
}

body.ros-has-sidebar .rep-queue-item strong,
body.ros-has-sidebar .rep-object-row strong {
  display: block;
  margin-top: 0.16rem;
  color: var(--qb-ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.18;
}

body.ros-has-sidebar .rep-queue-item p,
body.ros-has-sidebar .rep-object-row p {
  margin: 0.22rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.32;
}

body.ros-has-sidebar .rep-detail-head {
  padding: 1rem 1.05rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-detail-head h2 {
  max-width: 42rem;
  font-size: clamp(1.52rem, 2.4vw, 2.08rem);
  font-weight: 850;
}

body.ros-has-sidebar .rep-detail-head p {
  max-width: 40rem;
  margin: 0.42rem 0 0;
  color: #526071;
  font-size: 0.94rem;
  line-height: 1.45;
}

body.ros-has-sidebar .rep-detail-meta {
  padding: 0.65rem 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.065);
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 780;
}

body.ros-has-sidebar .rep-data-section {
  padding: 0.92rem 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.075);
}

body.ros-has-sidebar .rep-section-head {
  margin-bottom: 0.58rem;
}

body.ros-has-sidebar .rep-section-head h3 {
  margin: 0.08rem 0 0;
  color: var(--qb-ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.15;
}

body.ros-has-sidebar .rep-row-list {
  display: grid;
}

body.ros-has-sidebar .rep-object-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(11rem, 0.65fr);
  align-items: center;
  gap: 0.72rem;
  min-height: 4.15rem;
  padding: 0.58rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}

body.ros-has-sidebar .rep-object-row:first-child {
  border-top: 0;
}

body.ros-has-sidebar .rep-object-row:hover {
  color: inherit;
  text-decoration: none;
}

body.ros-has-sidebar .rep-object-row > em {
  justify-self: end;
  color: var(--qb-ink);
  font-weight: 790;
  text-align: right;
}

body.ros-has-sidebar .rep-inspector-pane {
  display: grid;
  align-content: start;
  gap: 0;
}

body.ros-has-sidebar .rep-inspector-pane .rep-context-panel {
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 0;
  box-shadow: none;
}

body.ros-has-sidebar .rep-inspector-pane .rep-context-panel {
  background: transparent;
}

body.ros-has-sidebar .rep-floating-command {
  position: fixed;
  right: max(1rem, calc((100vw - 1480px) / 2 + 1rem));
  bottom: 1.1rem;
  left: calc(var(--ros-sidebar-width) + 1rem);
  z-index: 75;
  width: auto;
  max-width: 44rem;
  margin-inline: auto;
  padding: 0.48rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(1.1);
}

body.ros-has-sidebar .rep-ops-layout {
  margin-bottom: 7.75rem;
}

body.ros-has-sidebar.ros-sidebar-collapsed .rep-floating-command {
  left: calc(var(--ros-sidebar-collapsed-width) + 1rem);
}

body.ros-has-sidebar .rep-floating-command__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.48rem;
  align-items: center;
}

body.ros-has-sidebar .rep-floating-command__form > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  background: #f1f5f9;
  color: #101318;
  font-size: 1.08rem;
}

body.ros-has-sidebar .rep-floating-command textarea {
  width: 100%;
  min-height: 2.35rem;
  max-height: 7rem;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--qb-ink);
  font: inherit;
  line-height: 1.35;
  padding: 0.42rem 0.2rem;
  outline: none;
}

body.ros-has-sidebar .rep-floating-command textarea::placeholder {
  color: #64748b;
}

body.ros-has-sidebar .rep-floating-command .ros-primary-btn {
  min-height: 2.35rem;
  border-radius: 0.74rem;
  box-shadow: none;
}

body.ros-has-sidebar .rep-floating-command .rep-prompt-chips {
  display: flex;
  gap: 0.32rem;
  flex-wrap: wrap;
  padding: 0.44rem 0.12rem 0.04rem 2.72rem;
}

body.ros-has-sidebar .rep-floating-command .rep-prompt-chips button {
  min-height: 1.72rem;
  border-color: rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
}

body.ros-has-sidebar .rep-command-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 0.46rem 0.1rem 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.82rem;
  background: #ffffff;
}

body.ros-has-sidebar .rep-command-result span {
  display: block;
  color: #0f766e;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

body.ros-has-sidebar .rep-command-result strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--qb-ink);
  font-size: 0.95rem;
  font-weight: 850;
}

body.ros-has-sidebar .rep-command-result p {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.42;
}

body.ros-has-sidebar .rep-command-result__sections {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.68rem;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

body.ros-has-sidebar .rep-command-result__sections article {
  display: grid;
  gap: 0.08rem;
}

body.ros-has-sidebar .rep-command-result__sections b {
  color: var(--qb-ink);
  font-size: 0.76rem;
  font-weight: 850;
}

body.ros-has-sidebar .rep-command-result__sections p {
  margin: 0;
  color: #526071;
  font-size: 0.79rem;
}

body.ros-has-sidebar .rep-command-result__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.66rem;
}

body.ros-has-sidebar .rep-command-result__sources span {
  display: inline-flex;
  align-items: center;
  min-height: 1.42rem;
  padding: 0.16rem 0.44rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

body.ros-has-sidebar .rep-command-result a {
  flex: 0 0 auto;
  min-height: 1.9rem;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.58rem;
  background: #ffffff;
  color: var(--qb-ink);
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1280px) {
  body.ros-has-sidebar .rep-ops-layout {
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  }

  body.ros-has-sidebar .rep-inspector-pane {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(15, 23, 42, 0.075);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  body.ros-has-sidebar .rep-ops-layout {
    grid-template-columns: 1fr;
  }

  body.ros-has-sidebar .rep-detail-pane,
  body.ros-has-sidebar .rep-inspector-pane {
    border-left: 0;
  }

  body.ros-has-sidebar .rep-inspector-pane {
    grid-template-columns: 1fr;
  }

  body.ros-has-sidebar .rep-object-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.ros-has-sidebar .rep-object-row > em {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  body.ros-has-sidebar .rep-floating-command {
    position: static;
    max-width: none;
    margin: 0.75rem 0;
    border-radius: 0.86rem;
    box-shadow: none;
  }

  body.ros-has-sidebar .rep-floating-command .rep-prompt-chips {
    padding-left: 0.1rem;
  }

  body.ros-has-sidebar .rep-command-result {
    align-items: flex-start;
    flex-direction: column;
  }

body.ros-has-sidebar .rep-ops-layout {
    margin-bottom: 0;
  }
}

/* QuotaBell static marketing refresh */
body.qb-landing {
  --qb-bg: #f5f5f7;
  --qb-surface: #ffffff;
  --qb-surface-soft: #fbfbfd;
  --qb-ink: #1d1d1f;
  --qb-muted: #6e6e73;
  --qb-muted-strong: #424245;
  --qb-border: rgba(0, 0, 0, 0.1);
  --qb-border-strong: rgba(0, 0, 0, 0.16);
  --qb-primary: #1d1d1f;
  --qb-ai: #0066cc;
  --qb-ai-soft: #e8f2ff;
  --qb-green: #2f7d4f;
  --qb-gold: #8a6f2a;
  --qb-coral: #b4533a;
  --qb-navy: #1d1d1f;
  --qb-slate: #6e6e73;
  --qb-chalk: #f5f5f7;
  --qb-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 44px rgba(0, 0, 0, 0.06);
  --qb-shadow-raised: 0 30px 80px rgba(0, 0, 0, 0.12);
  background: var(--qb-bg);
  color: var(--qb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  padding-top: 0;
}

body.qb-landing .ros-shell {
  background: var(--qb-bg);
}

body.qb-landing .ros-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: none;
}

body.qb-landing .ros-brand {
  gap: 0.48rem;
  color: var(--qb-ink);
  font-size: 0.92rem;
  font-weight: 650;
}

body.qb-landing .ros-mark {
  width: 1.82rem;
  height: 1.82rem;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

body.qb-landing .ros-mark .material-symbols-outlined {
  font-size: 1rem;
}

.ros-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ros-mark--logo {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

body.qb-landing .ros-mark > span {
  color: inherit;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

body.qb-landing .ros-topbar__nav {
  gap: 0.16rem;
}

body.qb-landing .ros-topbar__nav a {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  color: #515154;
  font-size: 0.78rem;
  font-weight: 520;
}

body.qb-landing .ros-topbar__nav a:hover {
  color: var(--qb-ink);
  background: rgba(0, 0, 0, 0.045);
}

body.qb-landing .ros-topbar__nav a::after,
body.qb-landing .ros-topbar__nav a.active::after {
  display: none;
}

body.qb-landing .qb-main {
  overflow: clip;
}

body.qb-landing .qb-hero {
  min-height: auto;
  padding: clamp(3rem, 5.2vw, 5.4rem) 0 clamp(1.5rem, 3.6vw, 2.9rem);
  background: transparent;
}

body.qb-landing .qb-hero__scrim {
  display: none;
}

body.qb-landing .qb-hero__inner,
body.qb-landing .qb-section,
body.qb-landing .qb-final {
  width: min(100%, 1180px);
  padding-left: clamp(1.2rem, 4vw, 2rem);
  padding-right: clamp(1.2rem, 4vw, 2rem);
}

body.qb-landing .qb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(24rem, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.8rem);
  justify-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

body.qb-landing .qb-hero__copy {
  max-width: 36rem;
}

body.qb-landing .qb-eyebrow,
body.qb-landing .ros-panel__eyebrow,
body.qb-landing .qb-trust-card span,
body.qb-landing .qb-stat span,
body.qb-landing .qb-module span,
body.qb-landing .qb-persona span,
body.qb-landing .qb-signal span,
body.qb-landing .qb-stack-grid span,
body.qb-landing .ros-finding > span,
body.qb-landing .ros-action > span {
  color: var(--qb-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.qb-landing .qb-hero h1 {
  max-width: 9.5ch;
  color: var(--qb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.98;
}

body.qb-landing .qb-hero__lead {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: var(--qb-muted-strong);
  font-size: clamp(1.12rem, 1.65vw, 1.38rem);
  font-weight: 420;
  line-height: 1.42;
}

body.qb-landing .qb-hero__body {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--qb-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
}

body.qb-landing .qb-hero__note {
  margin-top: 1.05rem;
  color: var(--qb-muted);
  font-size: 1rem;
  font-weight: 520;
}

body.qb-landing .qb-hero__line {
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 1.6rem;
}

body.qb-landing .qb-hero__line span {
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #3f3f46;
  font-size: 0.78rem;
  font-weight: 560;
}

body.qb-landing .qb-hero-mock {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 42rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--qb-shadow-soft);
}

body.qb-landing .qb-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.qb-landing .qb-mock-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.84);
}

body.qb-landing .qb-mock-card--wide {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.qb-landing .qb-mock-card h2 {
  margin: 0.25rem 0 0;
  color: var(--qb-ink);
  font-family: inherit;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.08;
}

body.qb-landing .qb-mock-card p,
body.qb-landing .qb-mock-card li,
body.qb-landing .qb-mock-card dd {
  color: var(--qb-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

body.qb-landing .qb-mock-card p {
  margin: 0.45rem 0 0;
}

body.qb-landing .qb-mock-card strong {
  flex: 0 0 auto;
  padding: 0.42rem 0.58rem;
  border-radius: 0.42rem;
  background: #edf7f0;
  color: var(--qb-green);
  font-size: 0.78rem;
  font-weight: 680;
}

body.qb-landing .qb-mock-label {
  display: inline-flex;
  color: var(--qb-muted);
  font-size: 0.74rem;
  font-weight: 650;
}

body.qb-landing .qb-mock-card ul,
body.qb-landing .qb-mock-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

body.qb-landing .qb-mock-card li {
  position: relative;
  padding-left: 0.8rem;
}

body.qb-landing .qb-mock-card li::before {
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #8e8e93;
  content: "";
}

body.qb-landing .qb-mock-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.5rem;
}

body.qb-landing .qb-mock-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.qb-landing .qb-mock-card dt {
  color: var(--qb-muted);
  font-size: 0.78rem;
  font-weight: 560;
}

body.qb-landing .qb-mock-card dd {
  margin: 0;
  color: var(--qb-ink);
  font-weight: 640;
  text-align: right;
}

body.qb-landing .qb-mock-next {
  border-color: rgba(0, 102, 204, 0.18);
  background: #f5faff;
}

body.qb-landing .qb-section {
  padding-top: clamp(3.6rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.6rem, 7vw, 6.5rem);
}

body.qb-landing .qb-section--trust {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

body.qb-landing .qb-section__header {
  max-width: 760px;
}

body.qb-landing .qb-section__header h2,
body.qb-landing .qb-final h2,
body.qb-landing .qb-proof__copy h2 {
  color: var(--qb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 5.4vw, 4.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.03;
}

body.qb-landing .qb-section__header p,
body.qb-landing .qb-outcome p,
body.qb-landing .qb-persona p,
body.qb-landing .qb-faq p,
body.qb-landing .ros-finding p,
body.qb-landing .ros-action p,
body.qb-landing .ros-account p {
  color: var(--qb-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

body.qb-landing .qb-trust-grid,
body.qb-landing .qb-stack-grid,
body.qb-landing .qb-outcome-grid,
body.qb-landing .qb-signal-grid,
body.qb-landing .qb-replace-list,
body.qb-landing .qb-persona-grid,
body.qb-landing .qb-faq-grid {
  gap: 0.75rem;
}

body.qb-landing .qb-trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  box-shadow: none;
}

body.qb-landing .qb-trust-card,
body.qb-landing .qb-stat,
body.qb-landing .qb-outcome,
body.qb-landing .qb-module,
body.qb-landing .qb-signal,
body.qb-landing .qb-faq,
body.qb-landing .qb-stack-grid span,
body.qb-landing .ros-panel,
body.qb-landing .ros-account,
body.qb-landing .ros-finding,
body.qb-landing .ros-action {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

body.qb-landing .qb-trust-card {
  min-height: 8.2rem;
  padding: 1.15rem;
}

body.qb-landing .qb-trust-card + .qb-trust-card {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

body.qb-landing .qb-trust-card strong,
body.qb-landing .qb-module strong,
body.qb-landing .ros-finding strong,
body.qb-landing .ros-action strong,
body.qb-landing .ros-account__signal strong {
  color: var(--qb-ink);
  font-weight: 650;
}

body.qb-landing .qb-stack-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.qb-landing .qb-stack-grid span,
body.qb-landing .qb-signal {
  min-height: 3.75rem;
  padding: 0.9rem 1rem;
}

body.qb-landing .qb-proof {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

body.qb-landing .qb-finding-list,
body.qb-landing .ros-action-list,
body.qb-landing .ros-account-list {
  gap: 0.6rem;
}

body.qb-landing .ros-finding,
body.qb-landing .ros-action {
  padding: 1rem;
}

body.qb-landing .qb-section--split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

body.qb-landing .qb-outcome,
body.qb-landing .qb-faq {
  min-height: 11.5rem;
  padding: 1.15rem;
}

body.qb-landing .qb-outcome h3,
body.qb-landing .qb-faq h3,
body.qb-landing .ros-panel h2,
body.qb-landing .ros-account h3,
body.qb-landing .ros-action h3 {
  color: var(--qb-ink);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0;
}

body.qb-landing .qb-product-section,
body.qb-landing .qb-section--dark {
  width: 100%;
  max-width: none;
  padding-left: max(clamp(1.2rem, 4vw, 2rem), calc((100vw - 1180px) / 2 + 2rem));
  padding-right: max(clamp(1.2rem, 4vw, 2rem), calc((100vw - 1180px) / 2 + 2rem));
  background: #1d1d1f;
}

body.qb-landing .qb-product-section .qb-section__header h2,
body.qb-landing .qb-section--dark .qb-section__header h2 {
  color: #f5f5f7;
}

body.qb-landing .qb-product-section .qb-section__header p,
body.qb-landing .qb-section--dark .qb-section__header p {
  color: rgba(245, 245, 247, 0.68);
}

body.qb-landing .qb-product-frame {
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.5rem;
  background: #f5f5f7;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

body.qb-landing .qb-product-topbar {
  min-height: 2.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

body.qb-landing .qb-product-topbar span {
  width: 0.64rem;
  height: 0.64rem;
  background: #d2d2d7;
}

body.qb-landing .qb-product-topbar span:first-child,
body.qb-landing .qb-product-topbar span:nth-child(2),
body.qb-landing .qb-product-topbar span:nth-child(3) {
  background: #d2d2d7;
}

body.qb-landing .qb-product-frame .ros-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 0.85rem;
  padding: 0.9rem;
}

body.qb-landing .ros-score {
  background: #f5f5f7;
  color: var(--qb-ink);
}

body.qb-landing .ros-account__signal {
  min-width: 11rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: #f5f5f7;
}

body.qb-landing .qb-replace-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.qb-landing .qb-replace-table {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

body.qb-landing .qb-replace-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
}

body.qb-landing .qb-replace-table strong {
  color: var(--qb-ink);
  font-size: 0.95rem;
  font-weight: 650;
}

body.qb-landing .qb-replace-table span {
  color: var(--qb-muted);
  font-size: 0.95rem;
}

body.qb-landing .qb-section--dark .qb-persona {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}

body.qb-landing .qb-section--dark .qb-persona span {
  color: rgba(245, 245, 247, 0.58);
}

body.qb-landing .qb-section--dark .qb-persona p {
  color: rgba(245, 245, 247, 0.82);
}

body.qb-landing .qb-final {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

body.qb-landing .qb-final p:not(.qb-eyebrow) {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--qb-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  body.qb-landing .qb-trust-grid,
  body.qb-landing .qb-stack-grid,
  body.qb-landing .qb-replace-list,
  body.qb-landing .qb-persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.qb-landing .qb-proof,
  body.qb-landing .qb-hero__inner,
  body.qb-landing .qb-section--split,
  body.qb-landing .qb-product-frame .ros-grid {
    grid-template-columns: 1fr;
  }

  body.qb-landing .qb-hero__copy,
  body.qb-landing .qb-hero-mock {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body.qb-landing .ros-topbar {
    padding: 0.55rem 0.8rem;
  }

  body.qb-landing .ros-topbar__nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 0;
    padding-bottom: 0.05rem;
  }

  body.qb-landing .ros-topbar__nav a {
    flex: 0 0 auto;
  }

  body.qb-landing .qb-hero {
    padding-top: 2.4rem;
    padding-bottom: 1.2rem;
  }

  body.qb-landing .qb-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  body.qb-landing .qb-hero__lead {
    font-size: 1.04rem;
  }

  body.qb-landing .qb-section {
    padding-top: 2.2rem;
    padding-bottom: 3.2rem;
  }

  body.qb-landing #why.qb-section {
    padding-top: 1rem;
  }

  body.qb-landing .qb-hero__body {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-top: 0.85rem;
  }

  body.qb-landing .qb-hero__line {
    display: none;
  }

  body.qb-landing .qb-hero-mock {
    gap: 0.45rem;
    margin-top: 0.2rem;
    padding: 0.48rem;
  }

  body.qb-landing .qb-mock-grid,
  body.qb-landing .qb-replace-table [role="row"] {
    grid-template-columns: 1fr;
  }

  body.qb-landing .qb-mock-grid {
    display: none;
  }

  body.qb-landing .qb-mock-card--wide {
    display: grid;
  }

  body.qb-landing .qb-mock-card {
    padding: 0.72rem;
  }

  body.qb-landing .qb-mock-card h2 {
    font-size: 1.18rem;
  }

  body.qb-landing .qb-mock-card--wide p {
    display: none;
  }

  body.qb-landing .qb-mock-card strong {
    width: fit-content;
    padding: 0.34rem 0.48rem;
  }

  body.qb-landing .qb-mock-next p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.qb-landing .qb-trust-grid,
  body.qb-landing .qb-stack-grid,
  body.qb-landing .qb-outcome-grid,
  body.qb-landing .qb-signal-grid,
  body.qb-landing .qb-replace-list,
  body.qb-landing .qb-persona-grid,
  body.qb-landing .qb-faq-grid {
    grid-template-columns: 1fr;
  }

  body.qb-landing .qb-trust-card + .qb-trust-card {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.qb-landing .ros-account {
    grid-template-columns: 1fr;
  }

  body.qb-landing .ros-account__signal {
    min-width: 0;
    width: 100%;
  }
}
