/* Shared controls, compact navigation and the test use one type scale. */
body.bureau-update .bureau-button,
body.bureau-update .bureau-button:is(:hover, :focus-visible, :active) {
  min-height: 44px;
  border-radius: 6px;
  font: 600 14px/1.4 var(--bureau-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  transform: none;
}
body.bureau-update .bureau-button * { font: inherit !important; letter-spacing: 0 !important; }
body.bureau-update .bureau-button::before,
body.bureau-update .bureau-button::after { display: none !important; }
body.bureau-update .site-header {
  min-height: 60px;
  padding: 6px 28px !important;
  gap: 20px;
  background: #fafcfaf5;
  border-bottom: 1px solid var(--bureau-line);
  box-shadow: none;
}
body.bureau-update .site-header .brand { gap: 10px; }
body.bureau-update .site-header .brand img { width: 38px !important; height: 38px !important; }
body.bureau-update .site-header .brand span { font-size: 20px !important; line-height: 1.2; }
body.bureau-update .site-header .nav { align-items: center; gap: 4px; }
body.bureau-update .site-header .bureau-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #59665e;
  box-shadow: none;
  font: 600 13px/1.4 var(--bureau-font) !important;
  letter-spacing: 0 !important;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
body.bureau-update .site-header .bureau-nav-link span { font: inherit; }
body.bureau-update .site-header .bureau-nav-link:hover { background: #eaf0e9; color: #202822; }
body.bureau-update .site-header .bureau-nav-link:focus-visible { outline: 2px solid #508463; outline-offset: 2px; }
body.bureau-update .site-header .bureau-nav-ai { font-size: 12px !important; }
body.bureau-update .site-header .bureau-nav-link::before,
body.bureau-update .site-header .bureau-nav-link::after { display: none; }
body.bureau-update .hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
body.bureau-update .hero-actions > .bureau-button { flex: 0 1 auto; width: auto; }
body.bureau-update .hero-mini-counter {
  display: flex !important;
  flex-direction: row;
  flex: 1 0 100%;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 2px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body.bureau-update .hero-mini-counter strong { color: var(--bureau-accent) !important; font: 700 16px/1.5 var(--bureau-font) !important; }
body.bureau-update .hero-mini-counter span { color: var(--bureau-muted) !important; font: 400 12px/1.5 var(--bureau-font) !important; letter-spacing: 0 !important; text-transform: none; }

body.bureau-update .survival-widget.bureau-survival {
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  min-height: 80px !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bureau-line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body.bureau-update .bureau-survival .bureau-survival-score { display: grid; place-items: center; align-content: center; flex: 0 0 48px; height: 48px; border: 2px solid #bfd1c2; border-radius: 50%; background: #fff; }
body.bureau-update .bureau-survival #survivalScore { color: var(--bureau-accent); font: 600 16px/1 var(--bureau-font) !important; }
body.bureau-update .bureau-survival .bureau-survival-copy { display: block; flex: 1; min-width: 0; justify-items: stretch; text-align: left; }
body.bureau-update .bureau-survival .bureau-survival-copy > :is(h2, p) { width: 100%; justify-self: stretch; }
body.bureau-update .bureau-survival h2 { display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--bureau-ink); font: 600 14px/1.4 var(--bureau-font) !important; letter-spacing: 0 !important; text-transform: none; }
body.bureau-update .bureau-survival #survivalResultText { display: block !important; margin: 4px 0 0; color: var(--bureau-muted); font: 400 12px/1.5 var(--bureau-font) !important; }
.bureau-survival > .bureau-button { flex-shrink: 0; }

/* Scroll the content, not the close button; question rows grow with their text. */
body.bureau-update #survivalTestModal .bureau-test-panel {
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  min-height: 0;
  max-height: calc(100dvh - 32px);
  aspect-ratio: auto;
  padding: 0;
  overflow: clip;
  border: 1px solid var(--bureau-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bureau-ink);
  box-shadow: 0 24px 80px #15271d30;
  font: 400 14px/1.5 var(--bureau-font);
}
#survivalTestModal .bureau-test-panel * { box-sizing: border-box; font-family: var(--bureau-font) !important; letter-spacing: 0 !important; text-shadow: none !important; }
#survivalTestModal .bureau-test-panel [hidden] { display: none !important; }
.bureau-test-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--bureau-line); color: var(--bureau-muted); font-size: 13px; font-weight: 600; }
body.bureau-update #survivalTestModal .bureau-test-head .modal-close { position: static; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--bureau-line); border-radius: 4px; background: #fff; color: var(--bureau-muted); box-shadow: none; }
.bureau-test-head .modal-close svg { width: 18px; height: 18px; }
.bureau-test-scroll { min-height: 0; padding: 24px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
body.bureau-update #survivalTestModal .test-layout { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 188px; gap: 28px; padding: 0; align-items: start; }
body.bureau-update #survivalTestModal :is(.test-question-panel, .test-side-panel) { display: block; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.bureau-update #survivalTestModal .test-side-panel { border-left: 1px solid var(--bureau-line); padding-left: 20px; }
body.bureau-update #survivalTestModal :is(#introScreen, #questionScreen):not([hidden]) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; min-height: 0; }
body.bureau-update #survivalTestModal :is(#testTitle, #questionTitle, .result-panel > h2) { margin: 0; padding: 0; color: var(--bureau-ink); font-size: 24px !important; font-weight: 600 !important; line-height: 1.3 !important; text-transform: none !important; overflow-wrap: anywhere; }
body.bureau-update #survivalTestModal :is(#questionProgress, .result-panel > .eyebrow) { display: block; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--bureau-muted); font-size: 12px !important; font-weight: 400; line-height: 1.5; text-transform: none; }
body.bureau-update #survivalTestModal #questionProgress { color: var(--bureau-muted) !important; }
body.bureau-update #survivalTestModal :is(.intro-copy, .question-copy, .side-note) { margin: 0; color: var(--bureau-muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
body.bureau-update #survivalTestModal .answers { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; align-self: stretch; }
body.bureau-update #survivalTestModal .answer-button { position: static; display: block; min-height: 44px; height: auto; padding: 10px 14px; border: 1px solid #d3ddd5; border-radius: 5px; background: #fff; color: #303b33; font-size: 14px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; transform: none; box-shadow: none; opacity: 1; }
body.bureau-update #survivalTestModal .answer-button:hover:not(:disabled) { background: #f1f6f0; border-color: #7a9c83; }
body.bureau-update #survivalTestModal .answer-button:disabled:not(.is-selected) { color: #6a756c; background: #f8faf7; }
body.bureau-update #survivalTestModal .answer-button.is-selected { font-weight: 600; border-color: #759982; background: #edf5ee; }
body.bureau-update #survivalTestModal .answer-button.is-selected.is-negative { border-color: #d59c9a; background: #fdf2f1; }
body.bureau-update #survivalTestModal .answer-button.is-selected.is-neutral { border-color: #c7b77a; background: #fbf8ec; }
body.bureau-update #survivalTestModal :is(button, input):focus-visible { outline: 2px solid #508463; outline-offset: 2px; }
body.bureau-update #survivalTestModal .text-trap { margin: 0; gap: 10px; }
body.bureau-update #survivalTestModal .trap-input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8d1; border-radius: 5px; background: #fff; color: var(--bureau-ink); font-size: 16px; line-height: 1.4; }
body.bureau-update #survivalTestModal .feedback { display: none; position: static; min-height: 0; margin: 0; padding: 12px; border: 1px solid #d3ddd5; border-radius: 5px; background: #f2f7f1; }
body.bureau-update #survivalTestModal .feedback.is-visible { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 10px; }
body.bureau-update #survivalTestModal .feedback.is-negative { background: #fdf2f1; border-color: #e4b8b4; }
body.bureau-update #survivalTestModal .feedback.is-neutral { background: #fbf8ec; border-color: #ddd1a3; }
body.bureau-update #survivalTestModal .feedback .delta { min-width: 0; padding: 0; border: 0; border-radius: 0; font-size: 14px; line-height: 1.5; font-weight: 600; }
body.bureau-update #survivalTestModal .feedback-text { margin: 0; color: #303b33; font-size: 14px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
body.bureau-update #survivalTestModal .next-row { display: flex; position: static; min-height: 0; margin: 0; justify-content: flex-end; }
body.bureau-update #survivalTestModal .next-row::before { display: none; }
body.bureau-update #survivalTestModal .meter-head { font-size: 11px; line-height: 1.4; color: var(--bureau-muted); font-weight: 400; text-transform: none; }
body.bureau-update #survivalTestModal .track { height: 5px; border: 0; border-radius: 2px; background: #e7eee5; }
body.bureau-update #survivalTestModal .track-fill { background: #63916b; }
body.bureau-update #survivalTestModal .side-note { margin-top: 12px; font-size: 12px; }
body.bureau-update #survivalTestModal .last-reaction { min-height: 0; margin-top: 16px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--bureau-line); border-radius: 0; background: none; }
body.bureau-update #survivalTestModal .last-reaction span { font-size: 11px; font-weight: 400; text-transform: none; color: var(--bureau-muted); }
body.bureau-update #survivalTestModal .last-reaction strong { font-size: 13px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
body.bureau-update #survivalTestModal .result-panel.is-visible { display: grid; gap: 16px; max-height: none; overflow: visible; padding: 0; }
body.bureau-update #survivalTestModal .score-block { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: center; margin: 0; }
body.bureau-update #survivalTestModal .score-ring { width: 132px; height: 132px; padding: 5px; border: 0; border-radius: 50%; background: conic-gradient(var(--score-color, #63916b) var(--score-angle, 0deg), #e7eee5 0); box-shadow: none; }
body.bureau-update #survivalTestModal .score-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 100%; height: 100%; padding: 10px; border: 0; border-radius: 50%; background: #fff; color: var(--bureau-ink); }
body.bureau-update #survivalTestModal #finalScore { font-size: 32px; line-height: 1; font-weight: 600; }
body.bureau-update #survivalTestModal #scoreCaption { font-size: 10px; line-height: 1.35; text-align: center; color: var(--bureau-muted); }
body.bureau-update #survivalTestModal .verdict { padding: 0; border: 0; border-radius: 0; background: none; }
body.bureau-update #survivalTestModal #verdictTitle { margin: 0 0 8px; color: var(--bureau-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
body.bureau-update #survivalTestModal #verdictCopy { margin: 0; color: var(--bureau-muted); font-size: 14px; line-height: 1.5; }
body.bureau-update #survivalTestModal .audit-list { display: grid; gap: 0; max-height: none; overflow: visible; margin: 0; }
body.bureau-update #survivalTestModal .audit-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--bureau-line); border-radius: 0; background: none; }
body.bureau-update #survivalTestModal .audit-item strong { font-size: 14px; line-height: 1.5; }
body.bureau-update #survivalTestModal .audit-item p { margin: 0; font-size: 14px; line-height: 1.5; }
body.bureau-update #survivalTestModal .audit-item small { display: block; margin-top: 3px; color: var(--bureau-muted); font-size: 12px; line-height: 1.5; }
body.bureau-update #survivalTestModal .result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

@media (max-width: 960px) and (min-width: 761px) {
  body.bureau-update .site-header { padding-inline: 16px !important; gap: 10px; }
  body.bureau-update .site-header .brand span { font-size: 17px !important; }
  body.bureau-update .site-header .bureau-nav-link { padding-inline: 7px; font-size: 12px !important; }
}
@media (max-width: 760px) {
  body.bureau-update .site-header { min-height: 56px; padding: 6px 14px !important; }
  body.bureau-update .site-header .brand span { font-size: 17px !important; }
  body.bureau-update .site-header :is(.mobile-menu-button, .mobile-menu-close) { width: 44px; height: 44px; border-radius: 5px; }
  body.bureau-update .site-header .nav { align-items: stretch; gap: 8px; background: #fafcfb; }
  body.bureau-update .site-header .mobile-menu-head > span { font: 700 15px/1.4 var(--bureau-font) !important; letter-spacing: 0 !important; text-transform: none; }
  body.bureau-update .site-header .bureau-nav-link { width: 100%; min-height: 44px; justify-content: flex-start; font-size: 14px !important; }
  body.bureau-update #survivalTestModal .test-layout { grid-template-columns: 1fr; gap: 24px; }
  body.bureau-update #survivalTestModal .test-side-panel { border-left: 0; border-top: 1px solid var(--bureau-line); padding: 16px 0 0; }
}
@media (max-width: 540px) {
  body.bureau-update .hero-actions > .bureau-button { flex: 1 0 100%; }
  body.bureau-update .survival-widget.bureau-survival { flex-wrap: wrap; gap: 12px; }
  .bureau-survival > .bureau-button { margin-left: 60px; }
  body.bureau-update #survivalTestModal { padding: 0; }
  body.bureau-update #survivalTestModal .bureau-test-panel { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .bureau-test-head { padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  body.bureau-update #survivalTestModal .bureau-test-head .modal-close { width: 44px; height: 44px; }
  .bureau-test-scroll { padding: 20px 16px max(24px, env(safe-area-inset-bottom)); }
  body.bureau-update #survivalTestModal :is(#testTitle, #questionTitle, .result-panel > h2) { font-size: 21px !important; }
  body.bureau-update #survivalTestModal .score-block { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  body.bureau-update #survivalTestModal .verdict { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.bureau-update .bureau-nav-link, #survivalTestModal .track-fill { transition: none; }
}
