:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #16253d;
  --muted: #566b88;
  --line: rgba(24, 45, 76, 0.15);
  --brand: #0f3d79;
  --brand-soft: #dce9f8;
  --brand-accent: #f2b35c;
  --ok: #157347;
  --bad: #a53232;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(12, 26, 45, 0.08);
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'IBM Plex Sans', Inter, system-ui, sans-serif;
  --font-display: var(--font-heading);
  --font-ui: var(--font-body);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f8fafd 0%, #eef3f9 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.shell-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.shell-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: #102848;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.brand.brand-lockup {
  display: inline-block;
  width: min(100%, 580px);
  height: 108px;
  letter-spacing: normal;
  text-transform: none;
  line-height: 0;
  border: none;
  border-radius: 0;
  background: url('logo-footer.png') left center / auto 70px no-repeat;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  text-indent: -9999px;
}

.brand.brand-lockup::before {
  content: none;
  display: none;
}

.brand-name {
  font-size: 0.81rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #102848;
  line-height: 1.06;
}

.brand-descriptor {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4f6583;
  line-height: 1.06;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible { color: #103865; }

.nav.nav-modern {
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.26rem 0.34rem;
  box-shadow: 0 10px 20px rgba(11, 24, 44, 0.06);
}

.nav.nav-modern > a,
.nav.nav-modern > details > summary {
  text-decoration: none;
  color: #48607f;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
}

.nav.nav-modern > a:hover,
.nav.nav-modern > a:focus-visible,
.nav.nav-modern > details > summary:hover,
.nav.nav-modern > details > summary:focus-visible,
.nav.nav-modern > details[open] > summary {
  color: #1d3f6b;
  background: rgba(29, 46, 73, 0.06);
}

.nav.nav-modern > a.is-current {
  color: #1d3f6b;
  background: rgba(29, 46, 73, 0.08);
}

.nav-modern .nav-explore {
  position: relative;
}

.nav-modern .nav-explore summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.nav-modern .nav-explore summary::-webkit-details-marker {
  display: none;
}

.nav-modern .nav-explore summary::after {
  content: "▾";
  font-size: 0.7rem;
  color: #577092;
}

.nav-modern .nav-explore-menu {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 0;
  min-width: 178px;
  display: grid;
  gap: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 24, 44, 0.1);
  padding: 0.34rem;
  z-index: 120;
}

.nav-modern .nav-explore-menu a {
  color: #355378;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.48rem 0.56rem;
}

.nav-modern .nav-explore-menu a:hover,
.nav-modern .nav-explore-menu a:focus-visible {
  color: #1d3f6b;
  background: rgba(29, 46, 73, 0.06);
}

.nav.nav-modern .nav-love-link {
  position: relative;
  border: 1px solid rgba(212, 85, 104, 0.45);
  border-radius: 999px;
  padding: 0.38rem 0.78rem 0.38rem 1.18rem;
  background: linear-gradient(120deg, rgba(255, 242, 245, 0.9), rgba(255, 248, 232, 0.9));
  color: #7f2c3c;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(212, 85, 104, 0.35);
  animation: nav-love-pulse 2.2s ease-out infinite;
}

.nav.nav-modern .nav-love-link::before {
  content: "♥";
  position: absolute;
  left: 0.52rem;
  top: 0.3rem;
  font-size: 0.72rem;
  color: #d45568;
  animation: nav-heart-beat 1.6s ease-in-out infinite;
}

.nav.nav-modern .nav-love-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%);
  animation: nav-love-shimmer 2.8s linear infinite;
  pointer-events: none;
}

.nav.nav-modern .nav-love-link:hover,
.nav.nav-modern .nav-love-link:focus-visible {
  border-color: rgba(212, 85, 104, 0.62);
  color: #6d2333;
  background: linear-gradient(120deg, rgba(255, 236, 241, 1), rgba(255, 244, 224, 1));
}

@keyframes nav-love-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 85, 104, 0.25); }
  70% { box-shadow: 0 0 0 8px rgba(212, 85, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 85, 104, 0); }
}

@keyframes nav-heart-beat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.94); }
}

@keyframes nav-love-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.shell-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.account-chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.66rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: #ffffff;
}

.account-chip:hover,
.account-chip:focus-visible {
  border-color: rgba(15, 61, 121, 0.45);
}

.avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f3058;
  background: linear-gradient(120deg, #deecff, #c6dbf8);
}

.account-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #1a365e;
  white-space: nowrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  padding: 0.68rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(100deg, #123f78, #1f558f);
  color: #f7fbff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line);
  color: #1c3f6d;
  background: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(15, 61, 121, 0.45);
  color: #0e345f;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-left: 0;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
}

/* ── Auth: shared wrap ── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(160deg, #f0f5fc 0%, #e8f0fa 100%);
}

/* ── Auth: split-screen (signup) ── */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-split-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #ffffff;
}

.auth-split-panel-bg {
  position: absolute;
  inset: 0;
  background-image: url('../signup-page.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.38) saturate(0.82);
  z-index: 0;
}

body.signup-page .auth-split-panel-bg {
  background-position: center center;
  filter: brightness(0.44) saturate(0.88);
}

.auth-split-panel-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(242,179,92,0.16), transparent 24%),
    linear-gradient(160deg, rgba(8,18,34,0.82) 0%, rgba(14,37,69,0.68) 100%);
  z-index: 1;
}

.auth-split-panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-split-panel-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 520px;
}

.auth-split-lockup-shell {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-split-lockup {
  display: block;
  width: min(420px, 100%);
  object-fit: contain;
}

.auth-split-eyebrow {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.auth-split-support {
  margin: 0.6rem 0 0;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.auth-split-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 150ms ease;
  margin-bottom: 1rem;
}

.auth-split-back:hover { color: rgba(255,255,255,0.95); }

.auth-split-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.auth-split-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.auth-split-proof {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 0;
  max-width: 44rem;
}

.auth-split-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}

.auth-split-proof-item svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand-accent);
}

.auth-split-proof-attribution {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.auth-split-footerline {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.auth-split-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  background: #ffffff;
  overflow-y: auto;
}

.auth-split-form-inner {
  width: 100%;
  max-width: 400px;
}

/* ── Auth: card (login) ── */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 150ms ease;
}

.auth-back-link:hover { color: var(--brand); }

.auth-card {
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid rgba(24, 45, 76, 0.12);
  border-radius: 24px;
  padding: 2.75rem 2.5rem 2.25rem;
  box-shadow: 0 4px 6px rgba(12, 26, 45, 0.04), 0 20px 48px rgba(12, 26, 45, 0.1);
}

/* ── Login: full-bleed immersive ── */
body.login-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  body.login-page { overflow: auto; }
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.login-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('../img/photo_architectural_detail.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.34) saturate(0.84);
}

body.login-page .login-bg-photo {
  background-position: center center;
}

.login-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,20,42,0.72) 0%, rgba(12,35,72,0.55) 100%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 1.75rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 150ms ease;
}

.login-back:hover { color: rgba(255,255,255,0.85); }

.login-lockup-shell {
  width: fit-content;
  max-width: min(100%, 380px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-lockup {
  display: block;
  width: min(340px, 100%);
  object-fit: contain;
}

.login-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}

.login-card-header {
  margin-bottom: 1.75rem;
}

.login-card .auth-brand-mark .brand-name {
  color: rgba(255,255,255,0.55);
}

.login-card h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.login-subtitle {
  margin: 0.55rem 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 34rem;
}

.login-card .auth-field label {
  color: rgba(255,255,255,0.7);
}

.login-card .auth-field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #ffffff;
}

.login-card .auth-field input::placeholder {
  color: rgba(255,255,255,0.3);
}

.login-card .auth-field input:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.login-card .pw-toggle {
  color: rgba(255,255,255,0.4);
}

.login-card .pw-toggle:hover {
  color: rgba(255,255,255,0.85);
}

.login-card .auth-submit {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,247,255,0.9) 100%);
  color: #0f3d79;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.login-card .auth-submit::before {
  background: none;
}

.login-card .auth-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  filter: none;
}

.login-card .auth-message.is-error {
  background: rgba(165,50,50,0.2);
  border-color: rgba(165,50,50,0.35);
  color: #ffb3b3;
}

.login-card-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
}

.login-card-footer a {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.login-card-footer a:hover { color: #ffffff; }

/* ── Auth Aux & Recovery ── */
.auth-aux {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.auth-aux--center {
  justify-content: center;
  margin-top: 1rem;
}

.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #a8c1e5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.auth-link-btn:hover {
  color: #ffffff;
}

.recovery-instruction {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 600px) {
  .login-wrap {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  .login-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .login-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Auth: responsive ── */
@media (max-width: 768px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-split-form-side {
    order: 1;
  }
  .auth-split-panel {
    order: 2;
    min-height: 320px;
    padding: 1.75rem;
  }
  .auth-split-lockup-shell {
    padding: 0.55rem 0.75rem;
  }
  .auth-split-lockup {
    width: min(280px, 100%);
  }
  .auth-split-headline {
    font-size: 1.9rem;
    margin-top: 1rem;
  }
  .auth-split-support {
    font-size: 0.92rem;
  }
  .auth-split-proof {
    margin-top: 1.35rem;
  }
  .auth-split-proof-item {
    font-size: 0.84rem;
    padding: 0.75rem 0.8rem;
  }
  .auth-split-footerline {
    margin-top: 1.25rem;
  }
  .login-top {
    align-items: flex-start;
  }
  .login-lockup-shell {
    padding: 0;
    max-width: 220px;
  }
  .login-lockup {
    width: 180px;
  }
  .login-subtitle {
    font-size: 0.9rem;
  }
  .auth-split-form-side {
    padding: 2rem 1.25rem;
  }

  .auth-split-form-inner {
    max-width: 480px;
  }

  .auth-trust {
    justify-content: flex-start;
    line-height: 1.55;
  }

  .auth-footer {
    text-align: left;
    line-height: 1.55;
  }
}

@media (max-width: 540px) {
  .auth-split-panel {
    min-height: 0;
    padding: 1.35rem 1rem 1.5rem;
  }

  .auth-split-panel-content {
    gap: 1rem;
  }

  .auth-split-headline {
    font-size: 1.7rem;
  }

  .auth-split-proof-item {
    align-items: flex-start;
  }

  .auth-split-form-side {
    padding: 1.5rem 1rem 1.75rem;
  }

  .auth-submit {
    min-height: 54px;
  }
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.auth-brand-mark .brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #102848;
}

.auth-brand-mark .brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.kicker {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #274f80;
  font-weight: 700;
}

.auth-card h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.1;
  color: #0e2240;
  letter-spacing: -0.01em;
}

.auth-card .auth-subtitle {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

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

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e3a5c;
  letter-spacing: 0.01em;
}

.auth-field-input-wrap {
  position: relative;
}

.auth-field input {
  width: 100%;
  border: 1.5px solid rgba(24, 45, 76, 0.18);
  border-radius: 10px;
  background: #fafcff;
  color: #0e2240;
  padding: 0.82rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  outline: none;
  -webkit-appearance: none;
}

.auth-field input:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 61, 121, 0.1);
}

.auth-field input.input-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(165, 50, 50, 0.1);
}

.auth-field input.input-valid {
  border-color: var(--ok);
}

.auth-field input[type="password"] {
  padding-right: 3rem;
}

.pw-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 150ms ease;
  line-height: 1;
}

.pw-toggle:hover { color: var(--brand); }

.pw-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  transition: color 200ms ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pw-hint.hint-ok { color: var(--ok); }

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 2px 8px rgba(15, 61, 121, 0.3), 0 1px 2px rgba(15, 61, 121, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 61, 121, 0.35), 0 2px 4px rgba(15, 61, 121, 0.2);
  filter: brightness(1.05);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.auth-submit .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-trust svg { flex-shrink: 0; }

.auth-message {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.auth-message.is-error {
  display: flex;
  background: #fdf2f2;
  border: 1px solid rgba(165, 50, 50, 0.2);
  color: #8b1a1a;
}

.auth-message.is-success {
  display: flex;
  background: #f0faf4;
  border: 1px solid rgba(21, 115, 71, 0.2);
  color: #0d5c35;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-pause-notice {
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: #7a5a00;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Legacy form-grid used in other platform pages — keep intact */
.form-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #264466;
  font-weight: 600;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #183459;
  padding: 0.72rem 0.75rem;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 61, 121, 0.08);
}

.form-grid textarea {
  resize: vertical;
  min-height: 88px;
}

.setup-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.8rem;
}

.setup-form-grid .span-2 {
  grid-column: 1 / -1;
}

.setup-sticky-actions {
  position: sticky;
  top: 82px;
  z-index: 6;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(32, 62, 101, 0.2);
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 8px 20px rgba(12, 33, 58, 0.08);
}

.setup-logo-preview-wrap {
  min-height: 0.5rem;
}

/* ── Setup wizard ── */
.setup-wizard-panel {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.setup-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid rgba(39,57,84,0.14);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13,26,45,0.07);
  overflow: hidden;
}

.setup-nav {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border-right: 1px solid rgba(39,57,84,0.12);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1rem;
}

.setup-nav-header {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(39,57,84,0.1);
  margin-bottom: 0.5rem;
}

.setup-nav-title {
  margin: 0;
  color: #0f2748;
  font-size: 1.02rem;
  line-height: 1.25;
}

.setup-nav-copy {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #5a7494;
  line-height: 1.4;
}

.setup-nav-counter {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.setup-nav-footer {
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(39,57,84,0.1);
  margin-top: 0.5rem;
}

.setup-body {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.25rem 1.5rem;
}

.setup-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.setup-steps-rail {
  display: block;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
  justify-content: center;
  transition: all 200ms ease;
  cursor: default;
}

.setup-steps-rail .setup-step {
  width: 100%;
  justify-content: flex-start;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.6rem 1.25rem;
  position: relative;
  flex: 0 0 auto;
}

.setup-steps-rail .setup-step.is-current {
  background: rgba(15,61,121,0.07);
  color: #0e2240;
  box-shadow: none;
}

.setup-steps-rail .setup-step.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #0f3d79;
  border-radius: 0 3px 3px 0;
}

.setup-steps-rail .setup-step.is-done {
  background: transparent;
  color: #2a4a6e;
}

.setup-steps-rail .setup-step.is-done:hover {
  background: rgba(15,61,121,0.04);
}

.setup-step.is-done {
  border-color: rgba(15,61,121,0.3);
  background: #eef4fc;
  color: var(--brand);
  cursor: pointer;
}

.setup-step.is-current {
  border-color: var(--brand);
  background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15,61,121,0.18);
}

.setup-step-num {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid currentColor;
}

.setup-step:not(.is-current) .setup-step-num {
  background: transparent;
}

.setup-step-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.setup-steps-rail .setup-step-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
  font-weight: 500;
}

.setup-steps-rail .setup-step.is-current .setup-step-label {
  color: #0e2240;
  font-weight: 600;
}

.setup-wizard-form {
  margin-top: 1.5rem;
  display: block;
}

.setup-body .setup-wizard-form {
  margin-top: 0;
}

.setup-step-pane {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
  animation: setup-fade 240ms ease;
}

.setup-step-pane.is-active {
  display: block;
}

@keyframes setup-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.setup-step-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #0e2240;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  padding: 0;
}

.setup-step-help {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.setup-step-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #1e3a5c;
  font-weight: 600;
}

.setup-step-grid label.span-2 {
  grid-column: 1 / -1;
}

.setup-step-grid input,
.setup-step-grid select,
.setup-step-grid textarea {
  width: 100%;
  border: 1.5px solid rgba(24,45,76,0.18);
  border-radius: 10px;
  background: #fafcff;
  color: #0e2240;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  outline: none;
}

.setup-step-grid input:focus,
.setup-step-grid select:focus,
.setup-step-grid textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15,61,121,0.1);
}

.setup-asset-materials {
  margin-top: 1.4rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(24,45,76,0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248,250,253,0.96), rgba(242,246,252,0.96));
}

.setup-asset-materials-copy h3 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: #0e2240;
  font-weight: 600;
}

.setup-materials-note {
  margin: 0.35rem 0 0;
  color: #5b6f8b;
  font-size: 0.86rem;
}

.setup-materials-note a,
.setup-materials-note .inline-link {
  font-weight: 700;
  color: #17467b;
  text-decoration: none;
}

.setup-materials-note a:hover,
.setup-materials-note a:focus-visible,
.setup-materials-note .inline-link:hover,
.setup-materials-note .inline-link:focus-visible {
  text-decoration: underline;
}

.setup-asset-materials-upload {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: #1e3a5c;
  font-size: 0.84rem;
  font-weight: 600;
}

.setup-asset-materials-upload input[type="file"] {
  width: 100%;
  border: 1.5px dashed rgba(24,45,76,0.22);
  border-radius: 12px;
  background: #fff;
  color: #173253;
  padding: 0.78rem 0.9rem;
  font: inherit;
}

.setup-asset-materials-upload input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 999px;
  margin-right: 0.7rem;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(100deg, #123f78, #1f558f);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.setup-asset-materials-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.setup-material-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(24,45,76,0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.7rem 0.8rem;
}

.setup-material-chip > div {
  min-width: 0;
}

.setup-material-chip strong {
  display: block;
  color: #173253;
  font-size: 0.9rem;
  line-height: 1.25;
}

.setup-material-chip span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.setup-material-chip .setup-material-chip-meta {
  text-align: right;
}

.setup-material-chip-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.setup-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setup-optional-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.setup-wizard-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.setup-wizard-actions [hidden] {
  display: none !important;
}

.setup-body .setup-wizard-actions {
  display: flex;
  justify-content: flex-end;
}

/* ── Setup success card (shown after wizard saves) ── */
.setup-success-panel {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 3rem 2.5rem 2.5rem;
  background:
    radial-gradient(700px 200px at 50% -20%, rgba(255, 198, 106, 0.18), transparent 60%),
    radial-gradient(700px 200px at 50% 110%, rgba(31, 108, 184, 0.12), transparent 60%),
    #ffffff;
  border: 1px solid rgba(15, 61, 121, 0.15);
  animation: setup-success-rise 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes setup-success-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.setup-success-mark {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #157347 0%, #1d9258 100%);
  color: #ffffff;
  box-shadow:
    0 12px 28px rgba(21, 115, 71, 0.3),
    0 2px 6px rgba(21, 115, 71, 0.2);
}

.setup-success-circle {
  opacity: 0.35;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  animation: setup-success-circle 600ms ease-out 100ms forwards;
}

.setup-success-check {
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: setup-success-check 380ms ease-out 500ms forwards;
}

@keyframes setup-success-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes setup-success-check {
  to { stroke-dashoffset: 0; }
}

.setup-success-panel .kicker {
  color: #157347;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.setup-success-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: #0e2240;
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 600;
}

.setup-success-recap {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: rgba(15, 61, 121, 0.06);
  border: 1px solid rgba(15, 61, 121, 0.12);
  border-radius: 999px;
  font-size: 0.92rem;
  color: #1f3a5c;
  margin: 0 auto 1.5rem;
  letter-spacing: 0.005em;
}

.setup-success-recap strong {
  color: #0e2240;
  font-weight: 700;
}

.setup-success-promise {
  font-size: 1rem;
  line-height: 1.55;
  color: #2a4566;
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.setup-success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.setup-success-edit {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(86, 107, 136, 0.3);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.setup-success-edit:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

@media (max-width: 600px) {
  .setup-success-panel { padding: 2rem 1.25rem 1.5rem; }
  .setup-success-mark { width: 72px; height: 72px; }
}

.setup-step-counter {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.setup-back-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .setup-steps { gap: 0.3rem; }
  .setup-step { padding: 0.4rem 0.5rem; font-size: 0.72rem; }
  .setup-step-label { display: none; }
  .setup-step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .setup-shell {
    grid-template-columns: 1fr;
  }
  .setup-nav {
    border-right: none;
    border-bottom: 1px solid rgba(39,57,84,0.12);
  }
  .setup-steps-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
  }
  .setup-steps-rail .setup-step {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(39,57,84,0.14);
    border-radius: 999px;
    background: #fff;
    width: auto;
  }
  .setup-steps-rail .setup-step::before {
    display: none !important;
  }
  .setup-body {
    padding: 1.5rem 1.25rem;
  }
}

.form-note { font-size: 0.8rem; color: var(--muted); }
.error { color: var(--bad); font-size: 0.85rem; min-height: 1.2rem; }
.success { color: var(--ok); font-size: 0.85rem; min-height: 1.2rem; }

.dashboard {
  padding: 1rem 0 2rem;
}

.workspace-context-bar {
  border: 1px solid rgba(39, 57, 84, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% -20%, rgba(255, 255, 255, 0.66), transparent 50%),
    linear-gradient(170deg, #f7f9fc 0%, #edf2f8 100%);
  box-shadow: 0 12px 26px rgba(13, 26, 45, 0.07);
  margin-bottom: 0.95rem;
  padding: 0.9rem 1rem;
}

.workspace-context-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
}

.workspace-context-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.workspace-context-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(39, 57, 84, 0.16);
  background: #fff;
  object-fit: contain;
  padding: 0.2rem;
  flex-shrink: 0;
}

.workspace-context-text {
  min-width: 0;
}

.workspace-context-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7594;
  font-weight: 700;
}

.workspace-context-text h2 {
  margin: 0.08rem 0 0.12rem;
  font-size: 1.04rem;
  line-height: 1.2;
  color: #1a365e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-context-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #4f6583;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-context-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.workspace-context-metrics > div {
  border: 1px solid rgba(39, 57, 84, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.55rem;
}

.workspace-context-metrics span {
  display: block;
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f85a4;
  font-weight: 700;
}

.workspace-context-metrics strong {
  display: block;
  margin-top: 0.16rem;
  color: #173b67;
  font-size: 0.86rem;
}

.workspace-context-edit {
  justify-self: end;
  white-space: nowrap;
}

/* ── Workspace status card ───────────────────────────────────────────────── */
.workspace-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.workspace-status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(39, 57, 84, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.workspace-status-item:hover {
  background: #fff;
  border-color: rgba(39, 57, 84, 0.24);
}

.workspace-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f7594;
}

.workspace-status-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3f5a;
}

.workspace-status-value.is-done {
  color: #1a7a4a;
}

.workspace-status-value.is-pending {
  color: #7a6020;
}

/* ── Sidebar toggle button in topbar ─────────────────────────────────────── */
.sidebar-nav-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #5a7494;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
  margin-right: 0.25rem;
}
.sidebar-nav-toggle:hover { background: rgba(29,46,73,0.07); color: #173b67; }
.sidebar-nav-toggle svg { display: block; }

.sidebar-collapse-toggle {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 72px;
  border: 1px solid rgba(39, 57, 84, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #edf3fc);
  color: #415d82;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(12, 27, 46, 0.16);
  z-index: 9;
  padding: 0;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
  color: #173b67;
  border-color: rgba(23, 59, 103, 0.34);
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
}

.shell-topbar .account-chip,
.shell-topbar .btn.btn-secondary {
  white-space: nowrap;
}

.shell-topbar .btn.btn-secondary {
  text-transform: none;
  letter-spacing: 0.01em;
}

/* ── Dashboard grid + sidebar ─────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 1.05rem;
  transition: grid-template-columns 0.24s cubic-bezier(0.4,0,0.2,1);
}
.dashboard-grid.sidebar-collapsed {
  grid-template-columns: 52px minmax(0, 1fr);
}
html.sidebar-pre-collapsed .dashboard-grid {
  grid-template-columns: 52px minmax(0, 1fr);
  transition: none;
}

.sidebar {
  background:
    radial-gradient(130% 100% at 0% -15%, rgba(255, 255, 255, 0.74), transparent 52%),
    linear-gradient(170deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(39, 57, 84, 0.17);
  border-radius: 16px;
  padding: 1rem 0.92rem 0.92rem;
  align-self: start;
  position: sticky;
  top: 88px;
  box-shadow:
    0 14px 34px rgba(13, 26, 45, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  max-height: calc(100vh - 104px);
  overflow: hidden;
  transition: padding 0.24s cubic-bezier(0.4,0,0.2,1);
}
.sidebar-inner {
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.sidebar-inner::-webkit-scrollbar-thumb { background: rgba(100,130,170,0.3); border-radius: 999px; }

/* Icon-only collapsed rail */
.dashboard-grid.sidebar-collapsed .sidebar {
  padding: 0.75rem 0;
  overflow: hidden;
}
.dashboard-grid.sidebar-collapsed .sidebar-inner {
  display: none;
}
.sidebar-icons {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.25rem;
}
.dashboard-grid.sidebar-collapsed .sidebar-icons {
  display: flex;
}
.sidebar-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a7494;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.sidebar-icon-btn:hover,
.sidebar-icon-btn.is-current { background: rgba(29,46,73,0.08); color: #173b67; }
.sidebar-icon-btn svg { display: block; flex-shrink: 0; }
.sidebar-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #132033;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 100;
}
.sidebar-icon-btn:hover[data-tooltip]::after { opacity: 1; }
.sidebar-icon-sep {
  width: 28px;
  height: 1px;
  background: rgba(39,57,84,0.15);
  margin: 0.2rem auto;
  flex-shrink: 0;
}

/* ── Mobile drawer ───────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,38,0.35);
  z-index: 49;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.is-open { display: block; }

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(210, 222, 238, 0.56);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8fa5c2, #6f88ab);
  border-radius: 999px;
  border: 2px solid rgba(210, 222, 238, 0.56);
}

.sidebar .kicker {
  margin: 0 0 0.38rem;
  color: #5a6f89;
  font-size: 0.64rem;
  letter-spacing: 0.115em;
}

.client-brief-empty {
  text-align: center;
  padding: 0.5rem 0.25rem;
}
.client-brief-empty h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.35rem 0 0.4rem;
  color: #0e2240;
}
.client-brief-empty-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.client-brief-cta {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.is-disabled-soft {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.client-brief-card {
  border: 1px solid rgba(68, 90, 121, 0.25);
  border-radius: 14px;
  background:
    radial-gradient(460px 120px at 0% -20%, rgba(233, 188, 119, 0.25), transparent 62%),
    linear-gradient(155deg, #f9fbfe, #edf2f8);
  padding: 0.74rem;
  margin-bottom: 0.82rem;
  box-shadow:
    0 8px 18px rgba(23, 38, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.client-brief-head {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.client-brief-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid rgba(19, 51, 87, 0.14);
  background: #ffffff;
}

.client-brief-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.61rem;
  color: #5c6f8a;
  font-weight: 700;
}

.client-brief-card h3 {
  margin: 0.16rem 0 0;
  color: #1e3556;
  font-size: 1rem;
  line-height: 1.15;
}

.client-brief-asset {
  margin: 0.58rem 0 0;
  font-size: 0.9rem;
  color: #274666;
  font-weight: 700;
}

.client-brief-meta {
  margin: 0.24rem 0 0;
  font-size: 0.8rem;
  color: #4c5f7a;
  line-height: 1.35;
}

.client-brief-grid {
  margin: 0.54rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.24rem;
}

.client-brief-grid div {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  border-top: 1px dashed rgba(59, 79, 107, 0.2);
  padding-top: 0.24rem;
}

.client-brief-grid dt {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.62rem;
  color: #637893;
  font-weight: 700;
}

.client-brief-grid dd {
  margin: 0;
  font-size: 0.76rem;
  color: #2d4667;
  text-align: right;
  font-weight: 600;
}

.sidebar .client-brief-edit-link {
  display: inline-flex;
  margin-top: 0.6rem;
  padding: 0.38rem 0.58rem;
  border-radius: 9px;
  border: 1px solid rgba(55, 82, 120, 0.24);
  background: rgba(237, 243, 251, 0.9);
  color: #1f3f66;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar .client-brief-edit-link:hover,
.sidebar .client-brief-edit-link:focus-visible {
  background: #e8f0fa;
  border-color: rgba(40, 71, 112, 0.36);
  color: #18375d;
}

.sidebar a {
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
  color: #294561;
  border-radius: 11px;
  padding: 0.58rem 0.66rem;
  margin-top: 0.38rem;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.24;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 180ms ease;
}

.sidebar a:hover,
.sidebar a:focus-visible,
.sidebar a.is-current {
  border-color: rgba(54, 80, 116, 0.28);
  background: rgba(229, 236, 246, 0.95);
  color: #1d3858;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.sidebar a.status-link::after {
  content: attr(data-status);
  float: right;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  margin-top: 0.01rem;
  font-weight: 700;
}

.sidebar a.status-link.status-complete::after {
  color: #2f4e7d;
  background: #edf2fb;
  border: 1px solid rgba(65, 92, 133, 0.22);
}

.sidebar a.status-link.status-pending::after {
  color: #6a5a2b;
  background: #f8f2e3;
  border: 1px solid rgba(164, 133, 65, 0.24);
}

.sidebar a.status-link[data-status="GENERATED"]::after,
.sidebar a.status-link[data-status="COMPLETED"]::after {
  color: #0f6a51;
  background: #e8f7ef;
  border-color: rgba(15, 106, 81, 0.22);
}

.sidebar a.status-link[data-status="REVIEWED"]::after {
  color: #315181;
  background: #edf2fb;
  border-color: rgba(66, 97, 145, 0.24);
}

.sidebar a.status-link[data-status="NOT GENERATED"]::after,
.sidebar a.status-link[data-status="LOCKED"]::after {
  color: #6f6250;
  background: #f5efe5;
  border-color: rgba(145, 121, 84, 0.24);
}

.sidebar a.requires-setup {
  opacity: 0.62;
}

.sidebar hr {
  border: 0;
  border-top: 1px solid rgba(69, 89, 118, 0.2);
  margin: 0.9rem 0;
}

.sidebar #user-name {
  color: #223b59;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.sidebar #user-email {
  color: #647990;
  font-size: 0.76rem;
}

.setup-locked-page .dashboard-grid > section {
  position: relative;
}

.setup-locked-page .dashboard-grid > section > *:not(.setup-gate-card) {
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

.setup-gate-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(15, 61, 121, 0.24);
  background: linear-gradient(165deg, #ffffff 0%, #f1f7ff 100%);
}

.workspace-group {
  margin-top: 0.44rem;
  border: 1px solid rgba(58, 80, 112, 0.2);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.78);
  overflow: hidden;
}

.workspace-group summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2c4765;
  padding: 0.56rem 0.68rem;
  position: relative;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, color 160ms ease;
}

.workspace-group summary:hover,
.workspace-group summary:focus-visible,
.workspace-group summary.is-current {
  background: rgba(228, 236, 247, 0.95);
  color: #1e3857;
}

.workspace-group summary::-webkit-details-marker {
  display: none;
}

.workspace-group summary::after {
  content: "▾";
  position: absolute;
  right: 0.68rem;
  top: 0.54rem;
  font-size: 0.76rem;
  color: #667b95;
}

.workspace-group[open] summary::after {
  transform: rotate(180deg);
}

.workspace-subnav {
  display: grid;
  padding: 0 0.42rem 0.46rem;
}

.workspace-subnav a {
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #3c5572;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.46rem 0.56rem;
  margin-top: 0.27rem;
  line-height: 1.28;
}

.workspace-subnav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.module-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.module-progress-chip {
  font-size: 0.56rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.19rem 0.38rem;
  border: 1px solid transparent;
  font-weight: 700;
}

.module-progress-chip.is-done {
  color: #0f6a51;
  background: #e8f7ef;
  border-color: rgba(15, 106, 81, 0.22);
}

.module-progress-chip.is-pending {
  color: #6f6250;
  background: #f5efe5;
  border-color: rgba(145, 121, 84, 0.24);
}

.module-progress-chip.module-progress-review.is-done {
  color: #315181;
  background: #edf2fb;
  border-color: rgba(66, 97, 145, 0.24);
}

.module-progress-chip.module-progress-review.is-pending {
  color: #6b7584;
  background: #eef1f5;
  border-color: rgba(101, 120, 145, 0.22);
}

.module-progress-chip.module-progress-analysis.is-done {
  color: #0f6a51;
  background: #e8f7ef;
  border-color: rgba(15, 106, 81, 0.22);
}

.module-progress-chip.module-progress-analysis.is-pending {
  color: #7b4f3a;
  background: #f8eee8;
  border-color: rgba(160, 104, 79, 0.24);
}

.status-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(15, 61, 121, 0.18);
  border-radius: 10px;
  background: #f8fbff;
  margin-bottom: 0.7rem;
}

.status-control-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3c5f86;
  margin-right: 0.2rem;
}

.status-control-pill {
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.2rem 0.42rem;
  border: 1px solid transparent;
}

.status-control-pill.is-done {
  color: #315181;
  background: #edf2fb;
  border-color: rgba(66, 97, 145, 0.24);
}

.status-control-pill.is-pending {
  color: #6f6250;
  background: #f5efe5;
  border-color: rgba(145, 121, 84, 0.24);
}

.status-compact-btn {
  padding: 0.26rem 0.48rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.workspace-subnav a:hover,
.workspace-subnav a:focus-visible,
.workspace-subnav a.is-current {
  border-color: rgba(58, 85, 120, 0.28);
  background: rgba(230, 238, 248, 0.96);
  color: #1f3858;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  color: #122844;
}

.onboarding-panel {
  margin-top: 0.8rem;
  border: 1px solid rgba(15, 61, 121, 0.2);
  border-radius: 12px;
  background: linear-gradient(165deg, #f8fbff, #eef5ff);
  padding: 0.8rem;
}

.onboarding-panel h3 {
  margin: 0.3rem 0 0;
  color: #173a66;
  font-size: 1.02rem;
}

.onboarding-steps {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.onboarding-progress-track {
  margin-top: 0.5rem;
  border: 1px solid #d6e1ef;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

.onboarding-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #114784, #1f6cb8);
  transition: width 180ms ease;
}

.onboarding-progress-percent {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #355a83;
  font-weight: 600;
}

/* ── Dossier Roadmap ── */
.bp-dossier-roadmap {
  margin-top: 1.8rem;
  padding: 1.5rem 0.75rem 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(214, 225, 239, 0.5);
}

.bp-roadmap-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.bp-roadmap-track::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dce6f2;
  z-index: -1;
}

.bp-roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  flex: 1;
}

.bp-roadmap-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #dce6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #5c7392;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.bp-roadmap-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa1b8;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Roadmap States */
.bp-roadmap-step.is-done .bp-roadmap-node {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: scale(1.05);
}

.bp-roadmap-step.is-done .bp-roadmap-label {
  color: var(--brand);
}

.bp-roadmap-step.is-current .bp-roadmap-node {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: bp-node-pulse 2.2s infinite;
  transform: scale(1.1);
  z-index: 5;
}

.bp-roadmap-step.is-current .bp-roadmap-label {
  color: var(--brand);
  font-weight: 800;
}

/* The Grand Reveal Node */
.bp-roadmap-step--final {
  flex: 0 0 auto;
  margin-left: 1rem;
}

.bp-roadmap-step--final .bp-roadmap-node {
  width: 48px;
  height: 48px;
  margin-top: -9px;
  border-width: 3px;
  font-size: 1.25rem;
  background: #f8fafc;
}

.bp-roadmap-step--final .bp-roadmap-label {
  font-size: 0.68rem;
}

.bp-roadmap-step--final.is-done .bp-roadmap-node {
  background: linear-gradient(135deg, var(--brand), #1a569d);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 61, 121, 0.28);
}

.bp-roadmap-step--final.is-ready .bp-roadmap-node {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: #ffffff;
  animation: bp-final-glow 2s infinite;
  transform: scale(1.15);
}

@keyframes bp-node-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 61, 121, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 61, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 61, 121, 0); }
}

@keyframes bp-final-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(242, 179, 92, 0.2), inset 0 0 0 0 rgba(242, 179, 92, 0); }
  50% { box-shadow: 0 0 28px rgba(242, 179, 92, 0.5), inset 0 0 8px rgba(242, 179, 92, 0.2); }
}

/* Progress Connector */
.bp-roadmap-progress-line {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background: var(--brand);
  z-index: 1;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}


.onboarding-step {
  width: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #23476f;
  padding: 0.55rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font: inherit;
  cursor: pointer;
}

.onboarding-step strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5c7392;
}

.onboarding-step.is-complete {
  border-color: rgba(21, 115, 71, 0.32);
  background: #f3fbf7;
}

.onboarding-step.is-complete strong {
  color: #0e6c42;
}

.how-hero-panel {
  background:
    radial-gradient(900px 280px at 0% -10%, rgba(255, 198, 106, 0.24), transparent 60%),
    radial-gradient(900px 280px at 100% 0%, rgba(31, 108, 184, 0.18), transparent 60%),
    #ffffff;
}

/* ── First-login welcome card ── */
.welcome-card {
  background:
    radial-gradient(700px 240px at 100% -20%, rgba(255, 198, 106, 0.28), transparent 60%),
    radial-gradient(700px 240px at 0% 110%, rgba(31, 108, 184, 0.16), transparent 60%),
    #ffffff;
  padding: 2.5rem 2.25rem 2rem;
  border: 1px solid rgba(15, 61, 121, 0.15);
  position: relative;
  overflow: hidden;
}

.welcome-card .kicker {
  color: var(--brand);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.welcome-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: #0e2240;
  margin: 0.4rem 0 0.85rem;
  line-height: 1.15;
  font-weight: 600;
}

.welcome-lead {
  font-size: 1.02rem;
  color: #2a4566;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  max-width: 56ch;
}

.welcome-promise {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 56ch;
}

.welcome-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.welcome-cta {
  background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(15,61,121,0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.welcome-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,61,121,0.32);
  filter: brightness(1.05);
}

.welcome-skip {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}

.welcome-skip:hover { color: var(--brand); }

.welcome-meta-row {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(15,61,121,0.12);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.welcome-meta-row li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.welcome-meta-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.how-progress-shell {
  margin-top: 0.85rem;
  border: 1px solid rgba(15, 61, 121, 0.18);
  border-radius: 14px;
  background: linear-gradient(160deg, #f8fbff, #edf4ff);
  padding: 0.75rem;
}

.how-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.how-progress-head p {
  margin: 0;
  color: #254a75;
  font-size: 0.92rem;
}

.how-progress-head strong {
  color: #103964;
  font-size: 1.05rem;
}

.how-step-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.52rem;
}

.how-step-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.66rem 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: start;
}

.how-step-row.is-done {
  border-color: rgba(21, 115, 71, 0.28);
  background: #f3fbf7;
}

/* ── Implementation Flow Flagship ── */
.how-step-row--flagship {
  border: 1px solid rgba(231, 193, 114, 0.45) !important;
  background: 
    radial-gradient(at 100% 0%, rgba(242, 179, 92, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff, #fffdf8) !important;
  box-shadow: 0 4px 15px rgba(231, 193, 114, 0.1);
  padding: 0.85rem 1rem !important;
}

.how-step-row--flagship h3 {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: #1a3a63;
}

.how-step-row--flagship .how-step-index {
  color: #8c6d1f !important;
}

.how-step-row--flagship .how-step-status {
  border-color: #f2e1c1 !important;
  background: #fff9ef !important;
  color: #8c6d1f !important;
  font-weight: 700;
}

.how-step-row--flagship.is-done {
  border-color: var(--brand) !important;
  background: #f3f9ff !important;
}

.how-step-row--flagship.is-done .how-step-status {
  border-color: var(--brand) !important;
  background: rgba(15, 61, 121, 0.08) !important;
  color: var(--brand) !important;
}


.how-step-index {
  margin: 0.02rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  color: #4a678d;
  font-weight: 700;
}

.how-step-row h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #133a68;
}

.how-step-row p {
  margin: 0.28rem 0 0;
  color: #3d5b80;
  font-size: 0.86rem;
}

.how-step-status {
  border: 1px solid #d3deed;
  border-radius: 999px;
  background: #f5f8fc;
  color: #47658a;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.52rem;
}

.how-step-actions {
  display: grid;
  justify-items: end;
  gap: 0.42rem;
}

.how-step-action-btn {
  font-size: 0.74rem;
  padding: 0.35rem 0.6rem;
  line-height: 1.15;
}

.how-step-row.is-done .how-step-status {
  border-color: rgba(21, 115, 71, 0.3);
  background: rgba(23, 144, 90, 0.12);
  color: #0b6c41;
}

body.walkthrough-open {
  overflow: hidden;
}

.walkthrough-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(8, 18, 32, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.walkthrough-sheet {
  width: min(880px, 100%);
  border: 1px solid rgba(25, 47, 77, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(760px 220px at 0% -5%, rgba(255, 197, 107, 0.25), transparent 62%),
    radial-gradient(760px 220px at 100% 0%, rgba(31, 108, 184, 0.17), transparent 62%),
    #ffffff;
  box-shadow: 0 30px 70px rgba(9, 18, 33, 0.34);
  padding: 1.2rem 1.2rem 1rem;
  position: relative;
}

.walkthrough-close {
  position: absolute;
  top: 0.52rem;
  right: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  width: 34px;
  height: 34px;
  color: #23476e;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.walkthrough-index {
  margin: 0.4rem 0 0;
  color: #466a94;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.walkthrough-state {
  margin: 0.72rem 0 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d3deed;
  border-radius: 999px;
  background: #f5f8fc;
  color: #47658a;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.52rem;
  font-weight: 700;
}

.walkthrough-state.is-done {
  border-color: rgba(21, 115, 71, 0.3);
  background: rgba(23, 144, 90, 0.12);
  color: #0b6c41;
}

.walkthrough-nav {
  margin-top: 1rem;
  border-top: 1px solid rgba(19, 43, 74, 0.12);
  padding-top: 0.8rem;
  display: flex;
  gap: 0.42rem;
  justify-content: flex-end;
}

.walkthrough-nav .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.bp-preview-open {
  overflow: hidden;
}

.bp-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(8, 18, 32, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bp-preview-modal[hidden] {
  display: none !important;
}

.bp-preview-sheet {
  width: min(1280px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(18, 43, 76, 0.34);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(9, 18, 33, 0.36);
  padding: 0.85rem 0.85rem 1rem;
  position: relative;
}

.bp-preview-close {
  position: absolute;
  top: 0.48rem;
  right: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  width: 34px;
  height: 34px;
  color: #23476e;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.bp-preview-download {
  position: absolute;
  top: 0.5rem;
  right: 3.25rem;
  z-index: 2;
  padding: 0.44rem 0.78rem;
  font-size: 0.76rem;
  line-height: 1;
}

.bp-preview-body {
  margin-top: 0;
  padding-top: 0.25rem;
}

.bp-preview-sheet .kicker,
.bp-preview-sheet > #bp-preview-title {
  display: none;
}

.bp-preview-body .module-report-sheet,
.bp-preview-body .bp-report-sheet {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #ffffff !important;
}

.material-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2210;
  background: rgba(8, 18, 32, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.material-preview-modal[hidden] {
  display: none !important;
}

.material-preview-sheet {
  width: min(1080px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(25, 47, 77, 0.34);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(9, 18, 33, 0.34);
  padding: 1rem 1rem 1rem;
  position: relative;
}

.material-preview-close {
  position: absolute;
  top: 0.48rem;
  right: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  width: 34px;
  height: 34px;
  color: #23476e;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.material-preview-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.material-preview-body {
  margin-top: 0.8rem;
}

.material-preview-shell {
  display: grid;
  gap: 0.85rem;
}

.material-preview-frame {
  width: 100%;
  min-height: min(72vh, 760px);
  border: 1px solid rgba(24,45,76,0.12);
  border-radius: 14px;
  background: #f8fbff;
  overflow: hidden;
}

.material-preview-frame img,
.material-preview-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  object-fit: contain;
  background: #f8fbff;
}

.material-preview-empty {
  padding: 1.25rem;
  border: 1px dashed rgba(24,45,76,0.18);
  border-radius: 14px;
  color: var(--muted);
  background: #f8fbff;
}

.material-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bp-material-card__actions .btn {
  flex: 1 1 auto;
}

.resources-coming-soon-wrap {
  position: relative;
}

.resources-coming-soon-wrap > *:not(.resources-coming-soon-overlay) {
  filter: blur(2px) saturate(0.85);
}

.resources-coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 1px solid rgba(20, 55, 93, 0.24);
  border-radius: 14px;
  background: rgba(244, 249, 255, 0.72);
  backdrop-filter: blur(5px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem;
}

.resources-coming-soon-overlay h3 {
  margin: 0;
  color: #123b6a;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.resources-coming-soon-overlay p {
  margin: 0;
  color: #2f537b;
  max-width: 56ch;
}

.credit-nudge {
  margin-top: 0.7rem;
  border: 1px solid rgba(15, 61, 121, 0.2);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.75rem;
}

.credit-nudge h3 {
  margin: 0;
  color: #133b67;
  font-size: 1rem;
}

.credit-nudge p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.billing-smart-next {
  margin-top: 0.85rem;
  border: 1px solid rgba(15, 61, 121, 0.2);
  border-radius: 12px;
  background: linear-gradient(165deg, #f8fbff, #eef5ff);
  padding: 0.82rem;
}

.billing-smart-next h3 {
  margin: 0.34rem 0 0;
  color: #133b67;
  font-size: 1.05rem;
}

.billing-quick-buys {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.billing-quick-buys button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #1e426e;
  padding: 0.38rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.billing-quick-buys button:hover,
.billing-quick-buys button:focus-visible {
  border-color: rgba(15, 61, 121, 0.42);
  color: #123a68;
}

.pricing-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem;
}

.price-card-pro {
  background: linear-gradient(180deg, #fffdf8 0%, #fff5e8 100%);
  border-color: rgba(210, 160, 79, 0.35);
}

.price-card.is-current-plan {
  border-color: rgba(15, 61, 121, 0.45);
  box-shadow: 0 0 0 2px rgba(15, 61, 121, 0.08);
}

.price-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #446284;
  font-weight: 700;
}

.price-card h3 {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: #122844;
}

.price-card h3 span {
  font-size: 0.92rem;
  color: #5a718f;
  margin-left: 0.18rem;
}

.price-sub {
  margin-top: 0.5rem;
  color: var(--muted);
}

.price-card ul {
  margin-top: 0.75rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: #284a73;
  font-size: 0.9rem;
}

.price-card li {
  position: relative;
  padding-left: 0.95rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #1b4b84;
}

.price-card .btn {
  margin-top: 0.9rem;
  width: 100%;
}

.btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.credit-summary {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.credit-summary article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 0.65rem;
}

.credit-summary .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.credit-summary strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  color: #113a68;
}

.advisory-packages {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.advisory-packages h3 {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  color: #132a49;
  font-size: 1.35rem;
}

.package-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.package-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.82rem;
}

.package-card h4 {
  margin: 0.3rem 0 0;
  color: #153b67;
  font-size: 1.02rem;
}

.package-price {
  margin: 0.52rem 0 0;
  color: #143b66;
  font-weight: 700;
  font-size: 1rem;
}

.package-price span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.package-card .btn {
  margin-top: 0.65rem;
  width: 100%;
}

.ledger-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 0.62rem 0.7rem;
}

.ledger-title {
  margin: 0;
  color: #173c69;
  font-weight: 700;
  font-size: 0.88rem;
}

.ledger-time {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.ledger-delta {
  margin: 0;
  color: #133c68;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.metrics {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 0.7rem;
}

.metric span {
  display: block;
}

.metric .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.metric .value { margin-top: 0.32rem; font-size: 0.95rem; font-weight: 700; color: #143a67; }

.resource-toolbar {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto;
}

.resource-toolbar input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #183459;
  padding: 0.7rem;
  font: inherit;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #2d4f77;
  padding: 0.4rem 0.62rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-weight: 700;
}

.chip.is-active {
  background: #1b4b84;
  border-color: #1b4b84;
  color: #f3f8ff;
}

.resource-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.resource-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #ffffff;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.resource-card:hover, a.resource-card:focus-visible {
  border-color: #a0b8d8;
  box-shadow: 0 2px 10px rgba(16,40,80,0.08);
}

.resource-card h3 { margin: 0.2rem 0 0; font-size: 1rem; color: #153b69; }
.resource-card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.resource-detail-hero .muted {
  max-width: 72ch;
}

.resource-subtitle {
  margin: 0.35rem 0 0;
  color: #163b66;
  font-size: 1.08rem;
}

.resource-content-list {
  margin: 0.72rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.34rem;
  color: #2b4a6f;
  font-size: 0.89rem;
}

.resource-actions {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.resource-playground {
  margin-top: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.52rem;
}

.resource-playground label {
  color: #23466d;
  font-size: 0.86rem;
  font-weight: 700;
}

.resource-playground textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #183459;
  padding: 0.72rem 0.75rem;
  resize: vertical;
  font: inherit;
}

.bp-doc-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.bp-decision-file-layout {
  display: grid;
  gap: 1rem;
}

.bp-hero-panel {
  padding-bottom: 1rem;
}

.bp-hero-secondary {
  margin: 0.3rem 0 0;
  color: #425f83;
  font-size: 0.93rem;
}

.bp-status-panel,
.bp-featured-panel,
.bp-documents-panel,
.bp-materials-panel,
.bp-advisory-panel {
  display: grid;
  gap: 0.65rem;
}

.bp-status-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.bp-status-copy h3,
.bp-featured-card h3,
.bp-advisory-panel h3,
.bp-materials-panel h3 {
  margin: 0;
  color: #12365f;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.bp-status-label {
  margin: 0.5rem 0 0;
  color: #173b67;
  font-weight: 700;
}

.bp-status-note {
  margin: 0.3rem 0 0;
  color: #4d6483;
  font-size: 0.92rem;
}

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

.bp-status-metric {
  border: 1px solid rgba(28, 58, 97, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.78rem 0.82rem;
  box-shadow: 0 8px 22px rgba(17, 39, 67, 0.04);
}

.bp-status-metric .label {
  display: block;
  margin: 0;
  color: #607390;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.bp-status-metric strong {
  display: block;
  margin-top: 0.28rem;
  color: #12365f;
  font-size: 0.92rem;
}

.bp-status-track {
  margin-top: 0.15rem;
}

.bp-status-actions {
  margin-top: 0.1rem;
}

.bp-featured-card {
  border: 1px solid rgba(28, 58, 97, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.bp-featured-card--final {
  border-color: rgba(23, 59, 103, 0.2);
  background:
    radial-gradient(circle at top right, rgba(231, 193, 114, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff, #f5f8fd);
  box-shadow: 0 14px 32px rgba(17, 39, 67, 0.08);
}

.bp-featured-card--ready,
.bp-featured-card--pending,
.bp-featured-card--setup {
  border-color: rgba(28, 58, 97, 0.14);
}

.bp-featured-copy {
  margin: 0;
  color: #3f5d81;
  font-size: 0.96rem;
  line-height: 1.55;
}

.bp-featured-count {
  margin: 0;
  color: #173b67;
  font-weight: 700;
}

.bp-featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bp-doc-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.62rem;
}

.bp-doc-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(28, 58, 97, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  padding: 0.96rem 1rem;
  box-shadow: 0 8px 20px rgba(17, 39, 67, 0.04);
}

.bp-doc-row.is-next-step {
  border-color: rgba(231, 193, 114, 0.48);
  background: linear-gradient(180deg, #fffdf7, #fff9ef);
}

.bp-doc-row.is-locked {
  background: linear-gradient(180deg, #f6f8fb, #f2f5f9);
  opacity: 0.9;
}

.bp-doc-row.is-generated {
  border-color: rgba(28, 58, 97, 0.18);
}

.bp-doc-sequence {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #173b67;
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.83rem;
}

.bp-doc-main {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.bp-doc-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bp-doc-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bp-doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bp-doc-badge--soft { background: #eef3fa; color: #35537a; }
.bp-doc-badge--accent { background: #173b67; color: #f8fbff; }
.bp-doc-badge--success { background: #e7f5ec; color: #1e6d49; }
.bp-doc-badge--muted { background: #eef1f5; color: #66768b; }

.bp-doc-status-pill {
  color: #4d6483;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-doc-main h3 {
  margin: 0;
  color: #12365f;
  font-size: 1.08rem;
  line-height: 1.22;
}

.bp-doc-description {
  margin: 0;
  color: #4d6483;
  font-size: 0.91rem;
  line-height: 1.45;
}

.bp-doc-meta {
  margin: 0;
  color: #6a7a91;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Dossier Flagship Card ── */
.bp-doc-row--flagship {
  border: 2px solid rgba(231, 193, 114, 0.4);
  background: 
    radial-gradient(at 100% 0%, rgba(242, 179, 92, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: 0 12px 30px rgba(231, 193, 114, 0.12), 0 4px 12px rgba(17, 39, 67, 0.05);
  margin-top: 1.5rem !important;
  padding: 1.5rem 1.25rem;
  grid-template-columns: 60px minmax(0, 1fr) auto;
}

.bp-doc-row--flagship .bp-doc-sequence {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
  font-size: 1.1rem;
  width: 52px;
  height: 52px;
}

.bp-doc-row--flagship .bp-doc-main {
  gap: 0.5rem;
}

.bp-doc-row--flagship h3 {
  font-size: 1.28rem;
  color: #1a3a63;
  font-weight: 700;
}

.bp-doc-row--flagship .bp-doc-description {
  font-size: 0.98rem;
  color: #2a4566;
  line-height: 1.5;
  max-width: 68ch;
}

.bp-doc-flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: #fff9ef;
  border: 1px solid #f2e1c1;
  border-radius: 8px;
  color: #8c6d1f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.bp-doc-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(184, 134, 11, 0.4);
  border-radius: 8px;
  color: #b8860b;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.bp-doc-row--flagship.is-locked {
  filter: grayscale(0.4);
  opacity: 0.9;
}

.bp-doc-row--flagship.is-generated {
  border-color: var(--brand);
  background: 
    radial-gradient(at 100% 0%, rgba(31, 108, 184, 0.1), transparent 50%),
    #ffffff;
}


.bp-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: flex-end;
}

.bp-doc-actions .btn {
  min-height: 40px;
}

.bp-material-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.bp-material-summary {
  color: #173b67;
  font-weight: 700;
  font-size: 0.92rem;
}

.bp-material-body {
  margin-top: 0.85rem;
}

.bp-material-empty-state {
  border: 1px dashed rgba(28, 58, 97, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f3f7fc);
  padding: 0.95rem;
  color: #4d6483;
}

.bp-material-empty-state strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #12365f;
}

.bp-material-empty-state p {
  margin: 0;
}

.bp-advisory-panel {
  background: linear-gradient(180deg, #fffdf7, #f7f2e6);
  border-color: rgba(231, 193, 114, 0.34);
}

.bp-advisory-credits {
  margin: 0;
  color: #7a5c15;
  font-weight: 700;
}

.bp-material-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.52rem;
}

.bp-material-card {
  border: 1px solid rgba(28, 58, 97, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 88px;
  box-shadow: 0 8px 22px rgba(17, 39, 67, 0.05);
}

.bp-material-card__thumb {
  background: linear-gradient(160deg, #edf3fa, #dfeaf8);
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bp-material-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-material-row__icon,
.bp-material-card__thumb-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.45rem;
  text-align: center;
  color: #173b67;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bp-material-card__body {
  padding: 0.78rem 0.88rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.bp-material-card__topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.bp-material-card__title-wrap {
  min-width: 0;
}

.bp-material-eyebrow,
.bp-material-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-material-eyebrow {
  margin: 0;
  color: #5b6f8b;
}

.bp-material-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #153b69;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-material-filename {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.bp-material-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.bp-material-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #34557b;
}

.bp-material-size {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.bp-material-date {
  color: #6a7a91;
  font-size: 0.76rem;
  font-weight: 600;
}

.bp-material-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.bp-material-card.is-empty {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfdff, #f2f6fb);
}

.bp-material-empty {
  padding: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.bp-doc-card {
  border: 1px solid rgba(28, 58, 97, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(17, 39, 67, 0.06);
  display: grid;
  gap: 0.5rem;
}

.bp-doc-card--report {
  min-height: 100%;
  border-top: 3px solid rgba(23, 59, 103, 0.24);
}

.bp-doc-card--master {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 52, 91, 0.16);
  background:
    radial-gradient(circle at top right, rgba(23, 59, 103, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f6f9fd);
  box-shadow: 0 16px 34px rgba(17, 39, 67, 0.08);
}

.bp-doc-card--master::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #173b67, #7c98be, #173b67);
}

.bp-doc-card--master .bp-doc-card__head {
  padding-top: 0.1rem;
}

.bp-doc-card--master h3 {
  font-size: 1.3rem;
}

.bp-doc-card--master .muted {
  color: #4a6789;
}

.bp-doc-card.is-empty {
  opacity: 0.58;
  background: #f2f6fc;
}

.workspace-subnav a.is-locked {
  border-color: rgba(146, 118, 78, 0.26);
  background: rgba(247, 242, 232, 0.75);
}

.bp-report-sheet {
  border: 1px solid rgba(17, 47, 84, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.1rem;
  box-shadow: 0 12px 28px rgba(10, 28, 52, 0.08);
}

.bp-report-head {
  border-bottom: 1px solid rgba(17, 47, 84, 0.16);
  padding-bottom: 0.66rem;
  margin-bottom: 0.78rem;
}

.bp-report-brand {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: #3c5f86;
  font-weight: 700;
}

.bp-report-brand-wrap,
.module-report-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bp-report-seal,
.module-report-seal {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(2, 4, 45, 0.12));
}

.bp-report-head h3 {
  margin: 0.34rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #102a48;
}

.bp-dossier-cover {
  border: 1px solid rgba(17, 47, 84, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 8%, rgba(231, 190, 124, 0.24), rgba(231, 190, 124, 0) 36%),
    linear-gradient(160deg, #112b4e 0%, #163a69 100%);
  padding: 1.15rem;
  color: #f4f8ff;
}

.bp-dossier-cover--fullpage {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  page-break-after: always;
}

.bp-dossier-cover--fullpage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bp-cover-image);
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  z-index: -2;
}

.bp-dossier-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: -2;
}

.bp-dossier-cover-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(218, 179, 113, 0.28), rgba(218, 179, 113, 0) 40%),
    linear-gradient(180deg, rgba(10, 26, 47, 0.48) 0%, rgba(10, 26, 47, 0.76) 75%, rgba(10, 26, 47, 0.88) 100%);
  z-index: -1;
}

.bp-dossier-cover-content {
  width: 100%;
}

.bp-dossier-cover-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: rgba(224, 236, 255, 0.76);
  font-weight: 700;
}

.bp-dossier-cover h4 {
  margin: 0.35rem 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.bp-dossier-cover-sub {
  margin: 0.5rem 0 0;
  color: rgba(236, 243, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bp-dossier-kpi-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.bp-dossier-kpi {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 0.18rem;
}

.bp-dossier-kpi span {
  color: rgba(220, 233, 252, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  font-weight: 700;
}

.bp-dossier-kpi strong {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.bp-dossier-toc {
  margin-top: 0.45rem !important;
}

.bp-dossier-module-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.75rem;
}

.bp-dossier-module-item {
  border: 1px solid rgba(17, 47, 84, 0.13);
  border-radius: 12px;
  padding: 0.82rem 0.9rem;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(14, 32, 57, 0.05);
}

.bp-dossier-module-eyebrow {
  margin: 0;
  color: #4f6b8f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.63rem;
  font-weight: 700;
}

.bp-dossier-module-item h4 {
  margin: 0.26rem 0 0;
  font-size: 1.04rem;
}

.bp-dossier-module-item p {
  margin: 0.42rem 0 0;
  line-height: 1.6;
}

.bp-dossier-module-item details {
  margin-top: 0.45rem;
}

.bp-dossier-module-item summary {
  cursor: pointer;
  color: #204a7d;
  font-weight: 700;
  font-size: 0.8rem;
}

.bp-dossier-module-detail-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.bp-dossier-minihead {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #173b67;
  font-weight: 700;
}

.bp-dossier-module-detail-grid ol,
.bp-dossier-module-detail-grid ul {
  margin-top: 0.36rem;
}

.bp-dossier-highlight {
  border: 1px solid rgba(190, 151, 88, 0.28);
  background: linear-gradient(145deg, #f8f1e6, #f4ecdf);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  color: #4d3f2a !important;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bp-dossier-pullquote {
  margin: 0.85rem 0 0;
  border-left: 4px solid #153b69;
  padding: 0.45rem 0 0.45rem 0.78rem;
  color: #1c3f6b;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.42;
}

.bp-dossier-cover-logo {
  margin: 0.6rem 0;
}

.bp-dossier-cover-logo img {
  max-width: 140px;
  max-height: 70px;
}

.bp-dossier-cover-confidential {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e7596;
}

.bp-dossier-headline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #112d52;
  margin: 0.5rem 0 0.72rem;
  line-height: 1.3;
}

.bp-dossier-posture {
  margin: 0.45rem 0 0.66rem;
  padding: 0.66rem 0.82rem;
  background: #eef3fa;
  border-left: 4px solid #153b69;
  font-size: 0.98rem;
  color: #112d52;
  border-radius: 8px;
}

.bp-dossier-posture-large {
  font-size: 1.08rem;
  margin: 0.5rem 0;
  padding: 0.72rem 0.9rem;
  background: #eef3fa;
  border-left: 4px solid #153b69;
  color: #112d52;
  border-radius: 8px;
}

.bp-dossier-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.bp-dossier-summary-grid h5 {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #173b67;
}

.bp-dossier-summary-grid ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.94rem;
  color: #2c4a6f;
  line-height: 1.65;
}

.bp-dossier-summary-grid li {
  margin: 0.2rem 0;
  line-height: 1.45;
}

.bp-dossier-cite {
  font-size: 0.78rem;
  color: #5e7596;
}

.bp-dossier-callout {
  margin: 0.9rem 0 0;
  padding: 0.72rem 0.9rem;
  background: #fbf6e8;
  border-left: 3px solid #b2841d;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4d3f2a;
  border-radius: 8px;
}

.bp-dossier-risk-table {
  width: 100%;
  margin-top: 0.72rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bp-dossier-risk-table th,
.bp-dossier-risk-table td {
  text-align: left;
  padding: 0.56rem 0.64rem;
  border-bottom: 1px solid rgba(2, 4, 45, 0.12);
  vertical-align: top;
  color: #2c4a6f;
}

.bp-dossier-risk-table th {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #173b67;
  background: #f3f7fc;
}

.bp-dossier-recommendation h5 {
  margin: 0.75rem 0 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #173b67;
}

.bp-dossier-appendix h5 {
  margin: 0.75rem 0 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #173b67;
}

.bp-dossier-version {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: #5e7596;
  font-style: italic;
}

@media (max-width: 720px) {
  .bp-dossier-summary-grid {
    grid-template-columns: 1fr;
  }
}

.bp-report-meta {
  margin: 0.2rem 0 0;
  font-size: 0.83rem;
  color: #345476;
}

.bp-report-section {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(18, 48, 86, 0.12);
}

.bp-dossier-cover + .bp-report-section {
  border-top: none;
  padding-top: 0.35rem;
}

.bp-report-section h4 {
  margin: 0;
  color: #143a67;
  font-size: 1.15rem;
  line-height: 1.3;
}

.bp-report-section p {
  margin: 0.55rem 0 0;
  color: #2b4a6e;
  font-size: 0.98rem;
  line-height: 1.68;
}

.bp-report-section ol,
.bp-report-section ul {
  margin: 0.65rem 0 0;
  padding-left: 1.03rem;
  display: grid;
  gap: 0.48rem;
  color: #27476c;
  font-size: 0.95rem;
  line-height: 1.62;
}

.bp-dossier-identity-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.bp-dossier-identity-meta {
  display: grid;
  gap: 0.22rem;
}

.bp-dossier-identity-meta p {
  margin: 0;
  font-size: 0.86rem;
}

.bp-dossier-company-logo {
  max-height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border: 1px solid rgba(17, 47, 84, 0.12);
  border-radius: 8px;
  padding: 0.22rem 0.34rem;
  background: #ffffff;
}

.bp-dossier-logo-empty {
  margin: 0;
  color: #5f7694;
  font-size: 0.8rem;
}

.bp-dossier-visual-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.bp-dossier-visual-card {
  margin: 0;
  border: 1px solid rgba(17, 47, 84, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.bp-dossier-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #eef3fa;
}

.bp-dossier-visual-card--feature {
  grid-column: 1 / -1;
}

.bp-dossier-visual-card--feature img {
  height: auto;
}

.bp-dossier-visual-card figcaption {
  padding: 0.44rem 0.52rem 0.5rem;
  display: grid;
  gap: 0.15rem;
}

.bp-dossier-visual-card figcaption strong {
  color: #173b67;
  font-size: 0.8rem;
}

.bp-dossier-visual-card figcaption span {
  color: #5d7797;
  font-size: 0.75rem;
}

.bp-dossier-visual-empty {
  margin: 0;
  padding: 0.56rem;
  border: 1px dashed rgba(17, 47, 84, 0.24);
  border-radius: 10px;
  color: #5c7594;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .bp-dossier-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bp-dossier-identity-row {
    flex-direction: column;
  }
  .bp-dossier-visual-grid {
    grid-template-columns: 1fr;
  }
  .bp-dossier-cover--fullpage {
    min-height: 72vh;
  }
  .bp-dossier-module-detail-grid {
    grid-template-columns: 1fr;
  }
  .bp-dossier-visual-card--feature img {
    height: auto;
  }
  .bp-report-section {
    margin-top: 0.95rem;
    padding-top: 0.7rem;
  }
}

@media print {
  .bp-report-sheet {
    box-shadow: none;
    border-radius: 0;
    border-color: rgba(18, 48, 86, 0.22);
    background: #fff;
  }
  .bp-report-section {
    page-break-inside: avoid;
  }
  .bp-dossier-risk-table tr {
    page-break-inside: avoid;
  }
  .bp-dossier-module-item {
    page-break-inside: avoid;
  }
}

.bp-report-footer {
  margin-top: 0.9rem;
  padding-top: 0.66rem;
  border-top: 1px solid rgba(17, 47, 84, 0.16);
}

.bp-report-footer p {
  margin: 0.3rem 0 0;
  font-size: 0.83rem;
  color: #355378;
}

body.public-report-only .shell-topbar,
body.public-report-only .workspace-footer,
body.public-report-only .sidebar,
body.public-report-only .bp-preview-modal {
  display: none !important;
}

body.public-report-only main.dashboard {
  padding: 1rem 0;
}

body.public-report-only .container {
  width: min(90%, calc(100% - 3rem));
  max-width: none;
  margin: 0 auto;
}

body.public-report-only .dashboard-grid {
  display: block;
  max-width: none;
  margin: 0;
}

body.public-report-only .dashboard-grid > section {
  display: block !important;
}

body.public-report-only .dashboard-grid > section > * {
  display: none !important;
}

body.public-report-only .dashboard-grid > section .bp-public-report-body {
  display: block !important;
}

.bp-public-report-body {
  margin: 0;
  padding: 0;
}

body.public-report-only .bp-public-report-body .bp-report-sheet {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.module-report-sheet {
  border: 1px solid rgba(2, 4, 45, 0.2);
  border-radius: 10px;
  background: #ffffff;
  padding: 0.95rem 1rem 0.9rem;
  box-shadow: 0 18px 42px rgba(2, 4, 45, 0.06);
  overflow: hidden;
}

.module-report-head {
  border-bottom: 1px solid rgba(2, 4, 45, 0.15);
  padding-bottom: 0.65rem;
  margin-bottom: 0.82rem;
  position: relative;
}

.module-report-letterhead-top {
  margin: -0.95rem -1rem 0.85rem;
  min-height: 44px;
  padding: 0.38rem 0.78rem;
  border-bottom: 1px solid rgba(212, 185, 128, 0.48);
  background:
    radial-gradient(120% 240% at 0% 0%, rgba(37, 90, 152, 0.35), transparent 42%),
    linear-gradient(120deg, #0a1222 0%, #0f1c34 54%, #142642 100%);
  position: relative;
  display: flex;
  align-items: center;
}

.module-report-letterhead-bottom {
  margin: 0.85rem -1rem -0.9rem;
  height: 28px;
  border-top: 1px solid rgba(212, 185, 128, 0.48);
  background:
    radial-gradient(120% 220% at 100% 100%, rgba(37, 90, 152, 0.32), transparent 42%),
    linear-gradient(120deg, #142642 0%, #0f1c34 46%, #0a1222 100%);
  position: relative;
}

.module-report-letterhead-top::after,
.module-report-letterhead-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 185, 128, 0.82) 18%, rgba(212, 185, 128, 0.82) 82%, transparent 100%);
}

.module-report-letterhead-top::after {
  bottom: 0;
}

.module-report-letterhead-bottom::after {
  top: 0;
}

.module-report-letterhead-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(1, 7, 18, 0.45));
}

.module-report-brand {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: #4c5f7f;
  font-weight: 700;
}

.module-report-brand-wrap--letterhead {
  justify-content: flex-end;
  align-items: center;
  margin-top: -0.1rem;
}

.module-report-wordmark {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.module-report-client-logo {
  max-height: 34px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(2, 4, 45, 0.12);
  border-radius: 8px;
  padding: 0.2rem 0.3rem;
  background: #ffffff;
}

.module-report-head h3 {
  margin: 0.36rem 0 0.42rem;
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.95vw, 1.55rem);
  color: #101e3a;
  line-height: 1.16;
}

.module-report-meta {
  margin: 0.2rem 0 0;
  font-size: 0.83rem;
  color: #334d70;
}

.module-report-section {
  margin-top: 0.7rem;
}

.module-report-section h4 {
  margin: 0;
  color: #0f2f56;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
}

.module-report-section p {
  margin: 0.34rem 0 0;
  color: #2b4669;
  font-size: 0.86rem;
}

.module-report-section ol,
.module-report-section ul {
  margin: 0.4rem 0 0;
  padding-left: 1.04rem;
  display: grid;
  gap: 0.25rem;
  color: #284365;
  font-size: 0.84rem;
}

.module-report-footer {
  margin-top: 0.95rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(2, 4, 45, 0.16);
}

.module-report-footer p {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  color: #355377;
}

.dm-header-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.18rem 0.7rem;
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: #2c4a6f;
}

.dm-header-meta div {
  display: contents;
}

.dm-header-meta dt {
  font-weight: 600;
  color: #173b67;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  align-self: center;
}

.dm-header-meta dd {
  margin: 0;
}

.dm-section {
  margin-top: 0.95rem;
}

.dm-section h4 {
  margin: 0 0 0.5rem;
  color: #173b67;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.dm-section p {
  margin: 0.4rem 0 0;
  color: #2c4a6f;
  line-height: 1.6;
  font-size: 0.92rem;
}

.dm-section p:first-of-type {
  margin-top: 0;
}

.dm-context-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.32rem;
}

.dm-context-list li {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(23, 59, 103, 0.16);
  border-left: 3px solid #173b67;
  border-radius: 3px;
  font-size: 0.88rem;
}

.dm-context-label {
  font-weight: 600;
  color: #173b67;
}

.dm-context-value {
  color: #2c4a6f;
}

.dm-context-interp {
  margin: 0.7rem 0 0;
  font-style: italic;
  color: #2c4a6f;
  line-height: 1.55;
}

.dm-list {
  margin: 0.45rem 0 0;
  padding-left: 1.4rem;
  color: #2c4a6f;
  font-size: 0.92rem;
  line-height: 1.6;
}

.dm-list li {
  margin: 0.32rem 0;
}

.dm-list li::marker {
  color: #173b67;
}

.dm-list--ordered {
  padding-left: 1.55rem;
}

.dm-module-note {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  border: 1px solid rgba(184, 197, 216, 0.42);
  border-left: 3px solid #b8c5d8;
  font-size: 0.86rem;
  color: #4d6989;
  font-style: italic;
}

.dm-footer p {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  color: #355377;
}

/* ── Flex Dossier Report Components (dr-*) ─────────────────────────── */

.dr-domain-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  padding: 0.6rem 1rem;
  background: #173b67;
  color: #ffffff;
  border-radius: 4px;
}

.dr-domain-divider__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  white-space: nowrap;
}

.dr-domain-divider__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dr-header-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.45rem 0.1rem;
  font-size: 0.8rem;
  color: #2c4a6f;
  border-bottom: 1px solid rgba(23, 59, 103, 0.14);
  margin-bottom: 0.25rem;
}

.dr-header-strip strong {
  font-weight: 700;
  color: #173b67;
  margin-right: 0.25rem;
}

/* Context table */
.dr-context-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

.dr-context-table thead th {
  padding: 0.35rem 0.65rem;
  background: #173b67;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.dr-context-table tbody tr:nth-child(even) {
  background: #f5f7fa;
}

.dr-context-table tbody tr:hover {
  background: #edf1f7;
}

.dr-context-table__label {
  padding: 0.38rem 0.65rem;
  font-weight: 600;
  color: #173b67;
  width: 38%;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 59, 103, 0.09);
}

.dr-context-table__value {
  padding: 0.38rem 0.65rem;
  color: #2c4a6f;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 59, 103, 0.09);
}

/* Callout box for contextInterpretation */
.dr-callout {
  margin: 0.85rem 0 0;
  padding: 0.7rem 1rem;
  background: #eef4fb;
  border-left: 4px solid #173b67;
  border-radius: 0 4px 4px 0;
  font-size: 0.91rem;
  color: #1a3556;
  line-height: 1.6;
  font-style: italic;
}

/* Finding cards */
.dr-findings-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.dr-finding-card {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem 0.65rem 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(23, 59, 103, 0.14);
  border-left: 4px solid #173b67;
  border-radius: 0 4px 4px 0;
}

.dr-finding-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: #173b67;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dr-finding-card p {
  margin: 0;
  font-size: 0.91rem;
  color: #2c4a6f;
  line-height: 1.6;
}

/* Action agenda table */
.dr-agenda-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.88rem;
}

.dr-agenda-table thead th {
  padding: 0.35rem 0.65rem;
  background: #173b67;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.dr-agenda-table__num {
  width: 2.2rem;
  padding: 0.45rem 0.65rem;
  text-align: center;
  color: #173b67;
  font-weight: 700;
  border-bottom: 1px solid rgba(23, 59, 103, 0.09);
  vertical-align: top;
}

.dr-agenda-table__text {
  padding: 0.45rem 0.65rem;
  color: #2c4a6f;
  line-height: 1.55;
  border-bottom: 1px solid rgba(23, 59, 103, 0.09);
  vertical-align: top;
}

.dr-agenda-table__badge {
  width: 7rem;
  padding: 0.45rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid rgba(23, 59, 103, 0.09);
  vertical-align: top;
}

.dr-agenda-table tbody tr:nth-child(even) {
  background: #f5f7fa;
}

.dr-agenda-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dr-agenda-badge--decision {
  background: #173b67;
  color: #ffffff;
}

.dr-agenda-badge--discussion {
  background: #b8860b;
  color: #ffffff;
}

.dr-agenda-badge--gate {
  background: #2d6a4f;
  color: #ffffff;
}

/* ── End dr-* components ────────────────────────────────────────────── */

.module-asset-context {
  margin: 0 0 0.8rem;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(23, 59, 103, 0.14);
  border-left: 3px solid #173b67;
  font-size: 0.88rem;
  color: #2c4a6f;
  font-style: italic;
}

.module-signal-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.module-signal {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(2, 4, 45, 0.12);
  border-left: 3px solid transparent;
  background: #ffffff;
}

.module-signal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}

.module-signal-text {
  color: #2c4a6f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.module-signal--strength {
  border-left-color: #2f7a4f;
  background: #f0f7f3;
}

.module-signal--strength .module-signal-label {
  background: #2f7a4f;
  color: #fff;
}

.module-signal--watch {
  border-left-color: #b2841d;
  background: #fbf6e8;
}

.module-signal--watch .module-signal-label {
  background: #b2841d;
  color: #fff;
}

.module-signal--risk {
  border-left-color: #b03a3a;
  background: #fbf0f0;
}

.module-signal--risk .module-signal-label {
  background: #b03a3a;
  color: #fff;
}

@media print {
  .module-report-sheet {
    box-shadow: none;
    page-break-inside: avoid;
  }
  .module-report-head h3 {
    font-size: 1.3rem;
  }
}

.module-report-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.module-report-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-mini-title {
  margin: 0 0 0.44rem;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5f7f;
}

.feas-kpi-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.feas-kpi-grid article {
  border: 1px solid rgba(2, 4, 45, 0.16);
  background: linear-gradient(165deg, #fcfcfb, #f5f6f7);
  border-radius: 6px;
  padding: 0.62rem 0.64rem 0.56rem;
}

.feas-kpi-grid .k {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6982;
  font-weight: 700;
}

.feas-kpi-grid .v {
  margin: 0.28rem 0 0;
  font-size: 1rem;
  color: #112744;
  font-weight: 700;
}

.feas-bars {
  margin-top: 0.52rem;
  display: grid;
  gap: 0.38rem;
}

.feas-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(110px, 2fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.feas-bar-row span {
  color: #223f63;
  font-size: 0.79rem;
  line-height: 1.3;
}

.feas-bar-row strong {
  color: #112b4d;
  font-size: 0.77rem;
  letter-spacing: 0.02em;
}

.feas-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e6ebf2;
  overflow: hidden;
  border: 1px solid rgba(2, 4, 45, 0.08);
}

.feas-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f2f56, #315f96);
}

.feas-bar-fill.is-gold {
  background: linear-gradient(90deg, #c8a56a, #dbc18f);
}

.feas-bar-fill.is-slate {
  background: linear-gradient(90deg, #5a6882, #7f8ba1);
}

.feas-bar-fill.is-positive {
  background: linear-gradient(90deg, #1e6a56, #3b9079);
}

.feas-bar-fill.is-negative {
  background: linear-gradient(90deg, #88533a, #b97a5f);
}

.feas-table-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.feas-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.feas-table th,
.feas-table td {
  border: 1px solid rgba(2, 4, 45, 0.12);
  padding: 0.45rem 0.46rem;
  text-align: left;
  font-size: 0.8rem;
  color: #1f3c61;
}

.feas-table thead th {
  background: #f4f6f9;
  color: #16365f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feas-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.module-coverage-list {
  display: grid;
  gap: 0.42rem;
}

.module-coverage-list li {
  list-style: none;
  margin: 0;
  padding: 0.46rem 0.5rem;
  border: 1px solid rgba(2, 4, 45, 0.12);
  background: #f7f9fc;
  color: #1f3f66;
}

.module-callout {
  margin-top: 0.56rem;
  border: 1px solid rgba(195, 154, 88, 0.35);
  background: linear-gradient(145deg, #f8f1e6, #f3ece0);
  border-radius: 6px;
  padding: 0.58rem 0.6rem;
}

.module-callout p {
  margin: 0;
  color: #4f3f27;
  font-size: 0.84rem;
}

.doctrine-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.doctrine-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.78rem;
}

.doctrine-card h3 {
  margin: 0;
  color: #153b69;
  font-size: 0.95rem;
}

.doctrine-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.phase-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.phase-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.82rem;
  display: grid;
  gap: 0.45rem;
}

.phase-index {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4f6685;
  font-weight: 700;
}

.phase-card h3 {
  margin: 0;
  color: #153b69;
  font-size: 0.98rem;
  line-height: 1.3;
}

.phase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.phase-card .btn {
  justify-self: start;
}

.memo-pack-output {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.memo-pack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.memo-pack-header h3 {
  margin: 0;
  color: #153b69;
  font-size: 1.08rem;
}

.memo-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #335375;
  background: #ffffff;
}

.memo-status.is-secured {
  border-color: #1f7a4d;
  color: #1f7a4d;
  background: #edf9f2;
}

.memo-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.memo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.78rem;
}

.alignment-document {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 1.85rem 2rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(15, 39, 73, 0.04), 0 8px 24px rgba(15, 39, 73, 0.05);
}

.alignment-cover {
  border-bottom: 2px solid #173b67;
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
}

.alignment-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #173b67;
  font-weight: 700;
}

.alignment-cover h3 {
  margin: 0.5rem 0 0.85rem;
  font-family: var(--font-display);
  color: #0f2748;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.alignment-meta {
  margin: 0.28rem 0 0;
  font-size: 0.86rem;
  color: #36577e;
  line-height: 1.5;
}

.alignment-section {
  padding: 1.05rem 0 1.1rem;
  border-bottom: 1px solid #e6ecf3;
}

.alignment-section:last-child {
  border-bottom: none;
  padding-bottom: 0.4rem;
}

.alignment-section h4 {
  margin: 0 0 0.55rem;
  color: #173b67;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0;
}

.alignment-section p {
  margin: 0.55rem 0 0;
  color: #2c4a6f;
  line-height: 1.62;
  font-size: 0.92rem;
}

.alignment-section p:first-child,
.alignment-section > p:first-of-type {
  margin-top: 0;
}

.alignment-section .memo-list {
  margin: 0.55rem 0 0;
  padding-left: 1.4rem;
  color: #2c4a6f;
  font-size: 0.92rem;
  line-height: 1.6;
}

.alignment-section .memo-list li {
  margin: 0.32rem 0;
  padding-left: 0.2rem;
}

.alignment-section .memo-list li::marker {
  color: #173b67;
}

.alignment-section .memo-list--ordered {
  padding-left: 1.55rem;
}

/* Same list treatment for the report-shell preview/share modal renderer. */
.bp-report-section .memo-list {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  color: #2c4a6f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bp-report-section .memo-list li {
  margin: 0.3rem 0;
}

.bp-report-section .memo-list li::marker {
  color: #173b67;
}

.bp-report-section .memo-list--ordered {
  padding-left: 1.5rem;
}

@media (max-width: 720px) {
  .alignment-document {
    padding: 1.2rem 1.1rem 1rem;
  }
  .alignment-cover h3 {
    font-size: 1.35rem;
  }
}

.memo-card h3 {
  margin: 0;
  color: #143b68;
  font-size: 0.9rem;
  line-height: 1.3;
}

.memo-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.52;
}

.module-directory {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.module-card {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.82rem;
}

.module-card h3 {
  margin: 0;
  color: #153b69;
  font-size: 0.94rem;
  line-height: 1.25;
}

.module-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: rgba(15, 61, 121, 0.35);
  box-shadow: 0 0 0 2px rgba(15, 61, 121, 0.08);
}
.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  color: #2d4f77;
}

.locked { opacity: 0.7; }
.locked .tag.plan { border-color: #d2a04f; color: #8f6525; }

.muted { color: var(--muted); }

.workspace-footer {
  margin: 0 0 1rem;
}

.workspace-footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border: 1px solid rgba(20, 44, 78, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(35, 83, 142, 0.12), transparent 45%),
    radial-gradient(120% 180% at 100% 0%, rgba(212, 185, 128, 0.18), transparent 46%),
    linear-gradient(140deg, #fdfefe, #f2f7fd);
  box-shadow: 0 16px 36px rgba(15, 40, 72, 0.12);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-footer-brand {
  display: inline-block;
  width: min(100%, 380px);
  height: 68px;
  text-decoration: none;
  color: transparent;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: url('logo-footer.png') left center / auto 62px no-repeat;
  overflow: hidden;
  text-indent: -9999px;
}

.workspace-footer-brand::before {
  content: none;
  display: none;
}

.workspace-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #466283;
  font-size: 0.8rem;
  font-weight: 600;
}

.workspace-footer-link {
  text-decoration: none;
  border: 1px solid rgba(19, 58, 104, 0.18);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: #1f4878;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
}

.workspace-footer-link:hover,
.workspace-footer-link:focus-visible {
  border-color: rgba(15, 61, 121, 0.45);
  color: #123a68;
}

#memo-generate-btn,
#bp-master-generate-btn,
#status-alignment-complete {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(110, 152, 220, 0.44);
  background:
    radial-gradient(120% 170% at 10% -25%, rgba(255, 255, 255, 0.32), transparent 48%),
    linear-gradient(132deg, #0f3f79 0%, #225b99 55%, #2d79be 100%);
  color: #f5f9ff;
  box-shadow:
    0 12px 26px rgba(15, 49, 94, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 190ms ease, box-shadow 220ms ease, filter 220ms ease;
}

#memo-generate-btn::before,
#bp-master-generate-btn::before,
#status-alignment-complete::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -55%;
  width: 52%;
  height: 320%;
  transform: rotate(18deg);
  background: linear-gradient(95deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: cbpShimmer 2.9s ease-in-out infinite;
  pointer-events: none;
}

#memo-generate-btn:hover,
#memo-generate-btn:focus-visible,
#bp-master-generate-btn:hover,
#bp-master-generate-btn:focus-visible,
#status-alignment-complete:hover,
#status-alignment-complete:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow:
    0 16px 32px rgba(15, 49, 94, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.generation-success-pulse {
  animation: cbpSuccessPulse 720ms ease;
}

@keyframes cbpShimmer {
  0% { transform: translateX(-140%) rotate(18deg); opacity: 0; }
  18% { opacity: 1; }
  40% { transform: translateX(230%) rotate(18deg); opacity: 0; }
  100% { transform: translateX(230%) rotate(18deg); opacity: 0; }
}

@keyframes cbpSuccessPulse {
  0% { box-shadow: 0 0 0 0 rgba(73, 166, 255, 0.32); }
  55% { box-shadow: 0 0 0 14px rgba(73, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(73, 166, 255, 0); }
}

.btn.is-processing,
.btn-primary.is-processing,
.btn-secondary.is-processing {
  position: relative;
  pointer-events: none;
  opacity: 0.96;
  filter: saturate(1.12);
}

.btn.is-processing::after,
.btn-primary.is-processing::after,
.btn-secondary.is-processing::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.52rem;
  animation: cbpSpin 0.75s linear infinite;
  vertical-align: -2px;
}

@keyframes cbpSpin {
  to { transform: rotate(360deg); }
}

.cbp-toast {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1600;
  max-width: 460px;
  border-radius: 14px;
  border: 1px solid rgba(109, 157, 227, 0.32);
  background:
    radial-gradient(115% 165% at -12% -25%, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(145deg, #102f59, #1a4f88 58%, #205e9c);
  color: #f3f8ff;
  box-shadow: 0 18px 42px rgba(9, 27, 51, 0.34);
  padding: 0.82rem 0.96rem;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 210ms cubic-bezier(.2,.7,.2,1), opacity 210ms ease;
}

.cbp-toast.is-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cbp-toast-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.2rem;
}

.cbp-toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(165, 220, 255, 0.22);
  border: 1px solid rgba(184, 227, 255, 0.42);
  font-size: 0.66rem;
}

.cbp-toast-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d7ebff;
  font-weight: 700;
}

.cbp-toast-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #f4f9ff;
}


/* -------------------------------------------------------------------------
   Canonical Brand Theme (CoworkingConsulting-Aligned)
   ------------------------------------------------------------------------- */
:root {
  --cc-navy: #02042d;
  --cc-charcoal: #1b1e23;
  --cc-gold: #d4b980;
  --cc-stone: #c8c8c8;
  --cc-offwhite: #f7f7f5;
  --cc-white: #ffffff;
  --cc-text-dark: #02042d;
  --cc-text-medium: #555555;
  --cc-border: #e0e0e0;

  --bg: var(--cc-offwhite);
  --bg-soft: #f0f0ed;
  --panel: var(--cc-white);
  --panel-soft: #fafaf8;
  --text: var(--cc-text-dark);
  --muted: #5a5c66;
  --line: rgba(2, 4, 45, 0.14);
  --brand: var(--cc-navy);
  --brand-soft: #ececf1;
  --brand-accent: var(--cc-gold);
  --ok: #127a5a;
  --radius: 6px;
  --shadow: 0 10px 26px rgba(2, 4, 45, 0.06);
}

body {
  background: linear-gradient(180deg, #fafaf8 0%, #f2f3f1 100%);
  color: var(--text);
}

.shell-topbar {
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(28, 72, 124, 0.28), transparent 44%),
    linear-gradient(130deg, #0a1222 0%, #0f1c34 55%, #142642 100%);
  border-bottom: 1px solid rgba(190, 210, 238, 0.2);
}

.brand.brand-lockup {
  border: none;
  border-radius: 0;
  background: url('logo-footer.png') left center / auto 72px no-repeat;
  box-shadow: none;
  overflow: hidden;
  text-indent: -9999px;
}

.brand.brand-lockup::before,
.workspace-footer-brand::before {
  content: none;
  display: none;
}

.nav.nav-modern {
  border-color: rgba(188, 209, 235, 0.2);
  padding: 0.28rem 0.32rem;
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(6, 14, 28, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(3, 10, 22, 0.34);
  backdrop-filter: blur(4px);
}

.nav.nav-modern > a,
.nav.nav-modern > details > summary {
  border-radius: 9px;
  color: #d7e3f5;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  border: 1px solid transparent;
}

.nav.nav-modern > a.is-current {
  background: linear-gradient(145deg, #edf4ff 0%, #d9e8ff 52%, #cdddf8 100%);
  color: #0f1e37;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 6px 16px rgba(6, 22, 44, 0.28);
}

.nav.nav-modern > a.is-current:hover,
.nav.nav-modern > a.is-current:focus-visible {
  color: #0b1730;
  background: linear-gradient(145deg, #f4f8ff 0%, #e3eeff 52%, #d8e6ff 100%);
  transform: translateY(-1px);
}

.nav.nav-modern > a:not(.is-current):hover,
.nav.nav-modern > a:not(.is-current):focus-visible,
.nav.nav-modern > details > summary:hover,
.nav.nav-modern > details > summary:focus-visible {
  background: rgba(220, 236, 255, 0.1);
  border-color: rgba(188, 209, 235, 0.34);
  color: #f3f8ff;
  transform: translateY(-1px);
}

.nav-modern .nav-explore-menu {
  border-radius: 12px;
  border-color: rgba(188, 209, 235, 0.26);
  background: linear-gradient(170deg, rgba(12, 24, 46, 0.97), rgba(11, 22, 41, 0.94));
  box-shadow: 0 16px 30px rgba(2, 8, 18, 0.42);
}

.nav-modern .nav-explore-menu a {
  border-radius: 8px;
  color: #dbe7f8;
}

.nav-modern .nav-explore-menu a:hover,
.nav-modern .nav-explore-menu a:focus-visible {
  background: rgba(220, 236, 255, 0.12);
  color: #ffffff;
}

.account-chip,
.shell-topbar .btn {
  border-radius: 8px;
}

.shell-topbar .account-chip,
.shell-topbar .btn.btn-secondary {
  border-color: rgba(188, 209, 235, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(8, 18, 34, 0.6);
  color: #dce8fa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(3, 10, 22, 0.3);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.shell-topbar .account-chip .account-label {
  color: #e5efff;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1;
}

.shell-topbar .account-chip:hover,
.shell-topbar .account-chip:focus-visible,
.shell-topbar .btn.btn-secondary:hover,
.shell-topbar .btn.btn-secondary:focus-visible {
  border-color: rgba(212, 185, 128, 0.52);
  color: #f5f9ff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(3, 10, 22, 0.38);
}

.shell-topbar .account-chip .account-avatar {
  background: linear-gradient(155deg, #dce9ff, #bfcee8);
  color: #0f1f39;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.shell-topbar .account-chip:hover .account-label,
.shell-topbar .account-chip:focus-visible .account-label {
  color: #ffffff;
}

.btn-primary {
  background: linear-gradient(130deg, #111632, #252b48);
}

.btn-secondary {
  border-color: rgba(2, 4, 45, 0.16);
  color: #252b43;
}

/* Chapter workspace header should use the lighter shell style */
body.workspace-enabled.manual-chapter-workspace .shell-topbar {
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(28, 72, 124, 0.28), transparent 44%),
    linear-gradient(130deg, #0a1222 0%, #0f1c34 55%, #142642 100%);
  border-bottom: 1px solid rgba(190, 210, 238, 0.2);
}

body.workspace-enabled.manual-chapter-workspace .nav.nav-modern {
  border: 1px solid rgba(24, 45, 76, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(11, 24, 44, 0.06);
  backdrop-filter: none;
}

body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > a,
body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > details > summary {
  color: #48607f;
  border-color: transparent;
  text-transform: none;
  letter-spacing: normal;
}

body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > a:hover,
body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > a:focus-visible,
body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > details > summary:hover,
body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > details > summary:focus-visible,
body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > details[open] > summary {
  color: #1d3f6b;
  background: rgba(29, 46, 73, 0.06);
  transform: none;
}

body.workspace-enabled.manual-chapter-workspace .nav.nav-modern > a.is-current {
  color: #1d3f6b;
  background: rgba(29, 46, 73, 0.08);
  border: 1px solid transparent;
  box-shadow: none;
}

body.workspace-enabled.manual-chapter-workspace .shell-topbar .account-chip,
body.workspace-enabled.manual-chapter-workspace .shell-topbar .btn.btn-secondary {
  border-color: rgba(24, 45, 76, 0.2);
  background: #ffffff;
  color: #16253d;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

body.workspace-enabled.manual-chapter-workspace .shell-topbar .account-chip .account-label {
  color: #16253d;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(2, 4, 45, 0.34);
  color: #171d34;
}

.sidebar {
  background:
    radial-gradient(130% 100% at 0% -15%, rgba(255, 255, 255, 0.7), transparent 52%),
    linear-gradient(170deg, #f8f8f6 0%, #efefec 100%);
  border-color: rgba(2, 4, 45, 0.12);
  border-radius: 10px;
}

.client-brief-card {
  background:
    radial-gradient(460px 120px at 0% -20%, rgba(212, 185, 128, 0.24), transparent 62%),
    linear-gradient(155deg, #fcfcfb, #f2f2ef);
  border-color: rgba(2, 4, 45, 0.14);
  border-radius: 8px;
}

.client-brief-logo,
.workspace-subnav a,
.workspace-group,
.sidebar a,
.status-control-bar,
.dashboard .btn,
.sidebar .btn {
  border-radius: 6px;
}

.workspace-group {
  border-color: rgba(2, 4, 45, 0.14);
  background: rgba(252, 252, 250, 0.9);
}

.workspace-group summary:hover,
.workspace-group summary:focus-visible,
.workspace-group summary.is-current {
  background: rgba(2, 4, 45, 0.06);
  color: #1f2540;
}

.workspace-subnav a:hover,
.workspace-subnav a:focus-visible,
.workspace-subnav a.is-current {
  border-color: rgba(2, 4, 45, 0.2);
  background: rgba(2, 4, 45, 0.05);
  color: #1c213a;
  box-shadow: none;
}

/* Status badges: restrained institutional style */
.sidebar a.status-link::after,
.module-progress-chip,
.status-control-pill {
  border-radius: 4px;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  padding: 0.14rem 0.32rem;
  font-weight: 700;
  border-width: 1px;
}

.sidebar a.status-link::after {
  border: 1px solid rgba(90, 102, 124, 0.2);
  background: #f6f7fa;
  color: #5b6474;
}

.sidebar a.status-link[data-status="REVIEWED"]::after,
.module-progress-chip.module-progress-review.is-done,
.status-control-pill.is-done {
  background: #f0f1f5;
  color: #3f465a;
  border-color: rgba(63, 70, 90, 0.2);
}

.sidebar a.status-link[data-status="GENERATED"]::after,
.sidebar a.status-link[data-status="COMPLETED"]::after,
.module-progress-chip.module-progress-analysis.is-done {
  background: #edf5f1;
  color: #0f6a51;
  border-color: rgba(15, 106, 81, 0.2);
}

.sidebar a.status-link[data-status="NOT GENERATED"]::after,
.sidebar a.status-link[data-status="LOCKED"]::after,
.sidebar a.status-link[data-status$="%"]::after,
.module-progress-chip.module-progress-analysis.is-pending,
.status-control-pill.is-pending {
  background: #f7f2e8;
  color: #6f5f49;
  border-color: rgba(146, 118, 78, 0.22);
}

.module-progress-chip {
  color: #5d6678;
  background: #f6f7fa;
  border-color: rgba(90, 102, 124, 0.2);
}

/* Gold action moments */
#memo-generate-btn,
#bp-master-generate-btn,
#status-alignment-complete {
  border-color: rgba(176, 138, 65, 0.45);
  background:
    radial-gradient(120% 170% at 10% -25%, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(132deg, #dbc190 0%, #d4b980 56%, #b69456 100%);
  color: #11141f;
}

.workspace-footer-inner {
  border: 1px solid rgba(190, 210, 238, 0.24);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(37, 87, 145, 0.24), transparent 46%),
    radial-gradient(120% 170% at 100% 0%, rgba(212, 185, 128, 0.2), transparent 44%),
    linear-gradient(130deg, #0a1222 0%, #0f1c34 55%, #142642 100%);
  box-shadow: 0 16px 36px rgba(3, 8, 18, 0.45);
}

.workspace-footer-meta {
  color: #c7d7ee;
}

.workspace-footer-link {
  border-color: rgba(188, 209, 235, 0.24);
  color: #dde9fb;
  background: rgba(9, 19, 37, 0.58);
}

.workspace-footer-link:hover,
.workspace-footer-link:focus-visible {
  border-color: rgba(212, 185, 128, 0.55);
  color: #ffffff;
}

@keyframes assetBlueprintPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 185, 128, 0.58);
    background: rgba(247, 242, 232, 0.9);
    border-color: rgba(176, 138, 65, 0.42);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(212, 185, 128, 0.06);
    background: rgba(245, 236, 220, 0.95);
    border-color: rgba(176, 138, 65, 0.58);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 185, 128, 0);
    background: rgba(247, 242, 232, 0.9);
    border-color: rgba(176, 138, 65, 0.42);
  }
}

.sidebar a.asset-blueprint-flash {
  animation: assetBlueprintPulse 0.95s ease-in-out 2;
}

.cbp-asset-spotlight-overlay {
  position: absolute;
  inset: auto;
  z-index: 2500;
  background: rgba(3, 6, 20, 0.68);
  border-radius: 8px;
}

.cbp-asset-spotlight-ring {
  position: absolute;
  z-index: 2501;
  border: 2px solid rgba(228, 193, 124, 0.98);
  border-radius: 6px;
  box-shadow:
    0 0 0 8px rgba(228, 193, 124, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.cbp-asset-spotlight-note {
  position: absolute;
  z-index: 2502;
  width: calc(100% - 14px);
  max-width: 320px;
  border: 1px solid rgba(228, 193, 124, 0.66);
  border-radius: 8px;
  background: linear-gradient(150deg, #0e1e3e, #11284d);
  color: #f4f7ff;
  padding: 0.8rem 0.9rem 0.75rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.cbp-asset-spotlight-note .kicker {
  margin: 0 0 0.25rem;
  color: #dfbe84;
}

.cbp-asset-spotlight-note h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #f4f7ff;
}

.cbp-asset-spotlight-note p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: #dbe7ff;
}

.cbp-asset-spotlight-close {
  position: absolute;
  top: 6px;
  right: 7px;
  border: 1px solid rgba(228, 193, 124, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cbp-asset-spotlight-close:hover,
.cbp-asset-spotlight-close:focus-visible {
  background: rgba(228, 193, 124, 0.2);
  border-color: rgba(228, 193, 124, 0.8);
}

.sidebar a.asset-blueprint-spotlight-target {
  position: relative;
  z-index: 2503;
  box-shadow: 0 0 0 2px rgba(228, 193, 124, 0.72);
  border-color: rgba(228, 193, 124, 0.85);
  background: #f9f4e7 !important;
  color: #122a4a !important;
  opacity: 1 !important;
}
/* ── Context Check Modal (shared across dashboard + manual) ── */
.cbp-modal-open {
  overflow: hidden;
}

.cbp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 28, 0.58);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cbp-modal-backdrop.is-open {
  display: flex;
  animation: cbp-modal-fade 180ms ease;
}

.cbp-modal-sheet {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid rgba(29, 46, 73, 0.26);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f1f6ff 100%);
  box-shadow: 0 22px 50px rgba(10, 20, 36, 0.32);
  padding: 1.1rem 1.1rem 1rem;
}

.cbp-modal-close {
  position: absolute;
  top: 0.48rem;
  right: 0.5rem;
  border: 1px solid rgba(29, 46, 73, 0.2);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  background: #ffffff;
  color: #1d2e49;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.cbp-modal-lead {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.62;
}

.cbp-modal-list {
  margin: 0.8rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.92rem;
}

@keyframes cbp-modal-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .workspace-context-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .workspace-context-edit { justify-self: start; }
  .sidebar-nav-toggle { display: flex; }
  .sidebar-collapse-toggle { display: none; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-height: 100vh;
    border-radius: 0 16px 16px 0;
    z-index: 50;
    overflow: hidden;
    padding: 1.25rem 1rem;
  }
  .sidebar.is-mobile-open { display: block; }
  .dashboard-grid.sidebar-collapsed .sidebar-icons { display: none; }
  .sidebar-inner { opacity: 1 !important; visibility: visible !important; position: static !important; pointer-events: auto !important; max-height: calc(100vh - 80px); overflow-y: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
  .credit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-grid { grid-template-columns: 1fr; }
  .doctrine-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .memo-grid { grid-template-columns: 1fr; }
  .module-directory { grid-template-columns: 1fr; }
  .bp-doc-grid { grid-template-columns: 1fr; }
  .bp-material-grid { grid-template-columns: 1fr; }
  .bp-material-card { grid-template-columns: 1fr; }
  .setup-form-grid { grid-template-columns: 1fr; }
  .setup-form-grid .span-2 { grid-column: auto; }
  .setup-sticky-actions { top: 70px; }
  .how-step-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .how-step-actions {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .container { width: min(1180px, calc(100% - 1rem)); }
  .nav { display: none; }
  .brand.brand-lockup { width: min(100%, 390px); height: 72px; background-size: auto 54px; }
  .brand-descriptor { display: none; }
  .account-label { display: none; }
  .account-chip { padding-right: 0.4rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .setup-sticky-actions { top: 58px; }
  .bp-doc-grid { grid-template-columns: 1fr; }
  .bp-material-grid { grid-template-columns: 1fr; }
  .bp-material-card { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .resource-toolbar { grid-template-columns: 1fr; }
  .module-report-grid.two-col { grid-template-columns: 1fr; }
  .feas-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feas-bar-row { grid-template-columns: minmax(62px, 1fr) minmax(120px, 2fr) auto; }
  .walkthrough-sheet {
    padding: 0.95rem 0.85rem 0.8rem;
  }
  .walkthrough-nav {
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .walkthrough-nav .btn {
    flex: 1 1 160px;
  }
  .workspace-footer-inner {
    width: min(1180px, calc(100% - 1rem));
    display: grid;
    justify-items: start;
    gap: 0.65rem;
  }
  .workspace-footer-brand {
    width: min(100%, 330px);
    height: 58px;
    background-size: auto 50px;
  }
}

/* 2.0 Manual Transformation Utilities */
.workspace-hidden {
  display: none !important;
}

.manual-dashboard-content {
  padding-top: 1.5rem !important;
}

.manual-dashboard-content .chapter-inner {
  display: block !important;
}

.manual-dashboard-content .chapter-shell {
  display: block !important;
  grid-template-columns: none !important;
}

.manual-dashboard-content .chapter-main {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.manual-dashboard-content .chapter-panel {
  margin-bottom: 1.25rem;
}
.manual-dashboard-content .chapter-progress-track {
  margin-bottom: 1.5rem;
}
.manual-dashboard-content .chapter-content {
  max-width: 860px;
}

.manual-reference-banner {
  background: #f0f5ff;
  border: 1px solid #c8d8f5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.manual-reference-banner .kicker {
  margin-bottom: 0.2rem;
}
.manual-reference-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.manual-reference-banner a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Flex Conversion Guide — Chapter nav ─────────────────────────────────── */
.guide-chapter-nav {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.guide-chapter-nav--top {
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-top: none;
  border-bottom: 1px solid var(--line);
  padding-top: 0;
  padding-bottom: 1.25rem;
}
.guide-chapter-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}
.guide-chapter-prev { text-align: left; }
.guide-chapter-next { text-align: right; }
.guide-chapter-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.12s;
  max-width: 220px;
}
.guide-chapter-link:hover { color: var(--brand); }
.guide-chapter-link.is-disabled {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}
.guide-chapter-link.is-done { color: var(--brand); font-weight: 600; }
.guide-chapter-link-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.guide-chapter-link.is-done .guide-chapter-link-label { color: var(--brand); }
.guide-chapter-link-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}
.guide-chapter-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 160px;
}
.guide-chapter-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.guide-chapter-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.guide-chapter-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.guide-chapter-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.3s ease;
}
@media (max-width: 640px) {
  .guide-chapter-nav-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .guide-chapter-position {
    grid-column: span 2;
    order: -1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
  }
}

/* ── Flex Conversion Guide — Journey filter ───────────────────────────────── */
.journey-filter-btn {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c8d5e8;
  background: #fff;
  color: #3a5272;
  font-size: 0.83rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.journey-filter-btn:hover {
  background: #eef4fe;
  border-color: #a0b8d8;
  color: #1d3a60;
}
.journey-filter-btn.is-active {
  background: #1d3a60;
  border-color: #1d3a60;
  color: #fff;
}
.journey-stage {
  transition: none;
}

/* ── Dossier Intake redesign ──────────────────────────────────────────────── */
.intake-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid rgba(39,57,84,0.14);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13,26,45,0.07);
  overflow: hidden;
}

/* Left nav */
.intake-nav {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border-right: 1px solid rgba(39,57,84,0.12);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1rem;
}

.intake-nav-header {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(39,57,84,0.1);
  margin-bottom: 0.5rem;
}

.intake-nav-counter {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.intake-steps {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.intake-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}

.intake-step:hover {
  background: rgba(15,61,121,0.04);
}

.intake-step.is-current {
  background: rgba(15,61,121,0.07);
}

.intake-step.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #0f3d79;
  border-radius: 0 3px 3px 0;
}

.intake-step-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #c8d5e4;
  background: #fff;
  color: var(--muted);
  transition: all 0.15s;
}

.intake-step.is-done .intake-step-indicator {
  background: #0f3d79;
  border-color: #0f3d79;
  color: #fff;
}

.intake-step.is-current .intake-step-indicator {
  background: #0f3d79;
  border-color: #0f3d79;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(15,61,121,0.15);
}

.intake-step-num {
  font-size: 0.72rem;
  font-weight: 700;
}

.intake-step-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a7494;
  transition: color 0.12s;
}

.intake-step.is-current .intake-step-label {
  color: #0e2240;
  font-weight: 600;
}

.intake-step.is-done .intake-step-label {
  color: #2a4a6e;
}

.intake-nav-footer {
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(39,57,84,0.1);
  margin-top: 0.5rem;
}

/* Right body */
.intake-body {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.25rem 1.5rem;
}

.intake-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Panes */
.intake-pane {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
  flex: 1;
  flex-direction: column;
  animation: intake-fade 220ms ease;
}

.intake-pane.is-active {
  display: flex;
}

@keyframes intake-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intake-pane-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.intake-pane-stage {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b88a8;
  margin: 0 0 0.4rem;
}

.intake-pane-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0e2240;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Questions within a pane */
.intake-questions {
  flex: 1;
  display: grid;
  gap: 1.25rem;
}

.intake-questions .setup-step-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}

.intake-questions .setup-step-grid label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a5c;
  gap: 0.45rem;
}

.intake-questions select {
  width: 100%;
  border: 1.5px solid rgba(24,45,76,0.18);
  border-radius: 10px;
  background: #fafcff;
  color: #0e2240;
  padding: 0.78rem 2.2rem 0.78rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a7494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}

.intake-questions select:focus {
  border-color: #0f3d79;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(15,61,121,0.1);
}

.intake-questions select option[value=""] {
  color: #8fa3b8;
}

/* Multi-select checkboxes */
.intake-questions input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0f3d79;
  cursor: pointer;
  flex-shrink: 0;
}

/* Actions bar */
.intake-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.intake-actions-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.intake-actions [hidden] { display: none !important; }

.intake-next-btn,
.intake-generate-btn {
  min-width: 160px;
  justify-content: center;
}

.intake-generate-btn {
  background: linear-gradient(135deg, #0a2d5e 0%, #1a5299 100%);
  box-shadow: 0 4px 14px rgba(10,45,94,0.22);
}

/* Responsive */
@media (max-width: 860px) {
  .intake-shell {
    grid-template-columns: 1fr;
  }
  .intake-nav {
    border-right: none;
    border-bottom: 1px solid rgba(39,57,84,0.12);
  }
  .intake-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
  }
  .intake-step {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(39,57,84,0.14);
    border-radius: 999px;
    background: #fff;
  }
  .intake-step.is-current {
    background: #0f3d79;
  }
  .intake-step.is-current .intake-step-label { color: #fff; }
  .intake-step.is-current::before { display: none; }
  .intake-body {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Demo mode toggle ─────────────────────────────────────────────────────── */
#intake-fill-demo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a8fa8;
  padding: 0.4rem 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.12s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
#intake-fill-demo:hover { color: #2a4a6e; }
#intake-fill-demo.is-demo-on { color: #0f3d79; }

.demo-toggle-dot {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #c8d5e4;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s;
}
.demo-toggle-dot::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.demo-toggle-dot.is-on {
  background: #0f3d79;
}
.demo-toggle-dot.is-on::after {
  transform: translateX(12px);
}

/* ── Flex Conversion Planning Guide — Dashboard feature card ─────────────── */
.guide-feature-card {
  border: 1px solid rgba(15, 61, 121, 0.15);
  background: linear-gradient(135deg, #f8faff 0%, #eef4fe 100%);
}
.guide-feature-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.guide-feature-card-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.guide-feature-card-copy {
  flex: 1;
  min-width: 0;
}
.guide-feature-card-copy h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.1rem;
}
.guide-feature-card-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 540px) {
  .guide-feature-card-inner { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FLEX CONVERSION PLANNING GUIDE — Index page
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero band */
.guide-index-hero {
  background: linear-gradient(135deg, #0b2d5e 0%, #0f3d79 100%);
  padding: 2.5rem 0 2rem;
  margin-bottom: 0;
}
.guide-index-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.guide-index-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f2b35c;
  margin: 0 0 0.45rem;
}
.guide-index-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.guide-index-lead {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin: 0;
  max-width: 52ch;
  line-height: 1.6;
}
.guide-index-overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 140px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.guide-index-overall-ring {
  position: relative;
  width: 64px;
  height: 64px;
}
.guide-index-overall-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.guide-index-overall-ring circle {
  fill: none;
  stroke-width: 5;
}
.guide-ring-track { stroke: rgba(255,255,255,0.15); }
.guide-ring-fill  { stroke: #f2b35c; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.guide-index-overall-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.guide-index-overall-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
@media (max-width: 600px) {
  .guide-index-hero-inner { grid-template-columns: 1fr; }
  .guide-index-overall { flex-direction: row; min-width: 0; width: 100%; justify-content: flex-start; }
}

/* Stage + chapter list */
.guide-index-body {
  padding: 1.5rem 0 2.5rem;
}
.guide-stage-block {
  margin-bottom: 0.5rem;
}
.guide-stage-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  transition: background 0.12s;
}
.guide-stage-header { border-bottom-color: transparent; }
.guide-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-stage-badge-1 { background: #e8f0fe; color: #1a4fa0; }
.guide-stage-badge-2 { background: #fef3e8; color: #a04a10; }
.guide-stage-badge-3 { background: #f0fce8; color: #2a6a10; }
.guide-stage-meta { min-width: 0; }
.guide-stage-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  display: block;
}
.guide-stage-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 0.05rem;
}
.guide-stage-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.guide-stage-progress-bar {
  width: 80px;
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.guide-stage-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.fill-1 { background: #1a4fa0; }
.fill-2 { background: #a04a10; }
.fill-3 { background: #2a6a10; }
.guide-stage-progress-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
/* Chapter rows */
.guide-chapter-list {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  display: block;
}
.guide-chapter-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: background 0.1s;
}
.guide-chapter-row:first-child { border-top: none; }
.guide-chapter-row:hover { background: #f8faff; }
.guide-chapter-row.is-done { background: #fafffe; }
.guide-chapter-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.guide-chapter-row.is-done .guide-chapter-num {
  background: #2a6a2d;
  border-color: #2a6a2d;
  color: #fff;
}
.guide-chapter-row.is-done .guide-chapter-num::after { content: '✓'; }
.guide-chapter-row.is-done .guide-chapter-num span { display: none; }
.guide-chapter-copy { min-width: 0; }
.guide-chapter-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  line-height: 1.25;
}
.guide-chapter-question {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}
.guide-chapter-row.is-done .guide-chapter-title { color: #1a4a1a; }
.guide-chapter-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-not-started { background: var(--bg-soft); color: var(--muted); }
.status-in-progress { background: #e8f0fe; color: #1a4fa0; }
.status-done        { background: #edf7ed; color: #2a6a2d; }

/* Continue reading CTA */
.guide-continue-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-continue-cta:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(15,61,121,0.1);
}
.guide-continue-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.guide-continue-meta { flex: 1; min-width: 0; }
.guide-continue-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  display: block;
}
.guide-continue-title {
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  margin-top: 0.1rem;
}
.guide-continue-arrow {
  color: var(--brand);
  font-size: 1.1rem;
  flex-shrink: 0;
}
