:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #141414; font-family: Inter, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #33465e; outline-offset: 3px; }
.bdr-hero { padding: 4.5rem 0 3.5rem; max-width: 54rem; }
.bdr-kicker { margin: 0; color: #63636a; font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.bdr-hero h1 { margin: 1.1rem 0 0; max-width: 50rem; font-size: clamp(2.75rem, 7vw, 5rem); letter-spacing: -.055em; line-height: .98; }
.bdr-deck { margin: 1.5rem 0 0; max-width: 48rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; color: #36363b; }
.bdr-hero-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.5rem; font-size: .9rem; }
.bdr-hero-links a, .bdr-design-note a { color: #33465e; text-decoration: underline; text-underline-offset: 4px; }
.bdr-shell { margin-bottom: 5rem; overflow: hidden; border: 2px solid #141414; border-radius: .9rem; box-shadow: 0 16px 50px rgba(20,20,20,.07); }
.bdr-shell-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: #141414; color: #fff; font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .04em; }
.bdr-input-panel, .bdr-progress, .bdr-results { padding: clamp(1.2rem, 4vw, 2.4rem); }
.bdr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.bdr-section-head h2, .bdr-design-note h2 { margin: .6rem 0 0; font-size: clamp(1.65rem, 4vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; }
.bdr-intro-note { max-width: 46rem; margin: 1rem 0 1.6rem; color: #63636a; font-size: .9rem; line-height: 1.6; }
.bdr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bdr-field { display: flex; min-width: 0; flex-direction: column; gap: .45rem; color: #303036; font-size: .82rem; }
.bdr-field > span, .bdr-upload > span { font-weight: 600; }
.bdr-field strong { color: #33465e; font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.bdr-field em { color: #76767d; font-size: .72rem; font-style: normal; font-weight: 400; }
.bdr-field-wide { grid-column: 1 / -1; }
.bdr-field input, .bdr-field select, .bdr-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d6d6da; border-radius: .5rem; background: #fff; padding: .8rem .9rem; color: #141414; line-height: 1.5; }
.bdr-field textarea { resize: vertical; }
.bdr-field input:focus, .bdr-field select:focus, .bdr-field textarea:focus { border-color: #33465e; }
.bdr-upload { display: grid; gap: .5rem; border: 1px dashed #bcbcc2; border-radius: .55rem; padding: 1rem; font-size: .82rem; }
.bdr-upload input { max-width: 100%; }
.bdr-upload small, .bdr-help { color: #717178; font-size: .72rem; line-height: 1.45; }
.bdr-advanced { margin-top: 1rem; border: 1px solid #dedee2; border-radius: .55rem; padding: 1rem; }
.bdr-advanced summary { cursor: pointer; font-size: .84rem; font-weight: 600; }
.bdr-advanced summary span { color: #77777e; font-size: .72rem; font-weight: 400; }
.bdr-advanced > p { max-width: 48rem; margin: .7rem 0 1rem; color: #696970; font-size: .78rem; line-height: 1.55; }
.bdr-run-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid #e6e6e9; }
.bdr-help { margin: .4rem 0 0; }
.bdr-button { display: inline-flex; align-items: center; justify-content: center; border-radius: .45rem; padding: .7rem 1rem; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: .15s ease; }
.bdr-button:disabled { cursor: not-allowed; opacity: .48; }
.bdr-button-primary { border: 1px solid #141414; background: #141414; color: #fff; }
.bdr-button-primary:hover:not(:disabled) { border-color: #33465e; background: #33465e; }
.bdr-button-secondary { border: 1px solid #141414; background: #fff; color: #141414; }
.bdr-button-secondary:hover:not(:disabled) { background: #f2f2f4; }
.bdr-status { min-height: 1.3rem; margin-top: 1rem; color: #63636a; font-size: .82rem; }
.bdr-status[data-error="true"] { color: #9b2c2c; }
.bdr-progress { border-top: 1px solid #e6e6e9; background: #fbfbfc; }
.bdr-progress ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.bdr-progress li { min-height: 3.5rem; border: 1px solid #e0e0e4; border-radius: .45rem; padding: .7rem; color: #75757c; font-size: .72rem; line-height: 1.4; }
.bdr-progress li::before { display: block; margin-bottom: .4rem; content: "○"; color: #98989f; }
.bdr-progress li[data-active="true"] { border-color: #33465e; background: #fff; color: #141414; }
.bdr-progress li[data-done="true"]::before { content: "●"; color: #33465e; }
.bdr-results { border-top: 1px solid #e6e6e9; }
.bdr-run-label { display: inline-flex; border-radius: 999px; background: #eef1f5; padding: .35rem .65rem; color: #33465e; font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.bdr-result-title { margin: .85rem 0 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; line-height: 1.02; }
.bdr-result-summary { max-width: 48rem; margin: 1rem 0 0; color: #414147; font-size: 1.05rem; line-height: 1.65; }
.bdr-route { display: grid; grid-template-columns: auto 1fr; gap: .9rem; margin-top: 1.5rem; border: 1px solid #d9d9dd; border-radius: .55rem; padding: 1rem; }
.bdr-route strong { align-self: start; border-radius: 999px; background: #141414; padding: .3rem .55rem; color: #fff; font-size: .7rem; text-transform: uppercase; }
.bdr-route p { margin: 0; font-size: .86rem; line-height: 1.55; }
.bdr-result-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.bdr-result-nav a { border: 1px solid #d8d8dc; border-radius: 999px; padding: .4rem .7rem; color: #33465e; font-size: .76rem; }
.bdr-result-section { padding: 2.2rem 0 0; scroll-margin-top: 5rem; }
.bdr-result-section > h3 { margin: .6rem 0 0; font-size: 1.55rem; letter-spacing: -.025em; }
.bdr-source-grid, .bdr-hypothesis-grid, .bdr-artifact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.bdr-card { min-width: 0; border: 1px solid #e0e0e4; border-radius: .55rem; padding: 1rem; }
.bdr-card h4 { margin: 0; font-size: .92rem; }
.bdr-card p { margin: .55rem 0 0; color: #4b4b51; font-size: .82rem; line-height: 1.55; }
.bdr-source-meta { color: #77777e !important; font-family: "JetBrains Mono", monospace; font-size: .65rem !important; overflow-wrap: anywhere; }
.bdr-source-meta a { color: #33465e; text-decoration: underline; text-underline-offset: 3px; }
.bdr-fact-list, .bdr-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.bdr-fact-list li, .bdr-list li { border-bottom: 1px solid #ededf0; padding: .8rem 0; font-size: .84rem; line-height: 1.55; }
.bdr-fact-kind, .bdr-confidence { display: inline-block; margin-right: .45rem; color: #6c6c73; font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.bdr-cites { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.bdr-cites a, .bdr-cites span { border-radius: 999px; background: #f0f0f2; padding: .2rem .42rem; color: #55555c; font-size: .62rem; }
.bdr-thesis { margin-top: 1rem; border-left: 3px solid #33465e; padding: .2rem 0 .2rem 1rem; font-size: 1rem; line-height: 1.65; }
.bdr-hypothesis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bdr-hypothesis-grid .bdr-card p strong { color: #141414; }
.bdr-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
.bdr-two-column h4 { margin: 0; font-size: .88rem; }
.bdr-artifact-grid details { min-width: 0; border: 1px solid #dedee2; border-radius: .55rem; padding: 1rem; }
.bdr-artifact-grid summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.bdr-artifact-edit { width: 100%; box-sizing: border-box; margin-top: .8rem; border: 1px solid #d5d5d9; border-radius: .4rem; padding: .7rem; color: #222; font-size: .8rem; line-height: 1.55; resize: vertical; }
.bdr-artifact-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.bdr-mini-button { border: 1px solid #c8c8cd; border-radius: .35rem; background: #fff; padding: .4rem .6rem; color: #33465e; font-size: .7rem; cursor: pointer; }
.bdr-sequence { margin: .8rem 0 0; padding: 0; list-style: none; }
.bdr-sequence li { display: grid; grid-template-columns: 3.3rem 5rem 1fr; gap: .5rem; border-top: 1px solid #ececef; padding: .65rem 0; font-size: .76rem; line-height: 1.45; }
.bdr-review-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.bdr-review-state { color: #63636a; font-size: .76rem; }
.bdr-simulation { margin-top: 1rem; border: 1px solid #cfd5dd; border-radius: .65rem; background: #f8f9fb; padding: 1.1rem; }
.bdr-postures { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.bdr-sim-check { margin-top: 1rem; }
.bdr-sim-output { margin-top: 1.2rem; border-top: 1px solid #d9dde3; padding-top: 1.2rem; }
.bdr-buyer-reply { border-left: 3px solid #141414; padding-left: 1rem; font-size: .92rem; line-height: 1.6; }
.bdr-change { display: grid; grid-template-columns: 9rem 1fr 1fr; gap: .8rem; border-top: 1px solid #dddfe4; padding: .85rem 0; font-size: .76rem; line-height: 1.5; }
.bdr-change strong { font-size: .72rem; }
.bdr-warning { margin-top: 1rem; border: 1px solid #ead8bd; border-radius: .45rem; background: #fffaf2; padding: .8rem; color: #654f2d; font-size: .77rem; line-height: 1.5; }
.bdr-result-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; border-top: 1px solid #e6e6e9; padding-top: 1rem; }
.bdr-design-note { max-width: 48rem; margin-bottom: 5rem; }
.bdr-design-note > p:not(.bdr-kicker), .bdr-design-note details p { color: #4a4a50; line-height: 1.7; }
.bdr-design-note details { margin-top: 1.2rem; border-top: 1px solid #e2e2e5; padding-top: 1rem; }
.bdr-design-note summary { cursor: pointer; font-weight: 600; }

/* The embedded task uses the GTM workspace's scale and spacing. */
.pursuit-embedded .bdr-shell { margin: 1.25rem 0 0; border: 1px solid #e5e5e5; border-radius: .5rem; box-shadow: none; }
.pursuit-embedded .bdr-input-panel, .pursuit-embedded .bdr-results, .pursuit-embedded .bdr-progress { padding: 1.25rem; }
.pursuit-embedded .bdr-section-head h2 { font-size: 1.1rem; letter-spacing: -.015em; }
.pursuit-embedded .bdr-result-title { font-size: 1.5rem; }
.pursuit-embedded .bdr-button { border-radius: .375rem; font-size: .875rem; padding: .65rem .85rem; }
.pursuit-embedded .bdr-result-section { scroll-margin-top: 5rem; }
.pursuit-embedded :is(input, textarea, select) { font-size: .875rem; }
.pursuit-embedded .bdr-button:disabled { opacity: .5; cursor: not-allowed; }
.agent-group { margin-top: 2rem; }
.agent-group > h3 { font-size: 1rem; font-weight: 600; }
.agent-tile h4 { margin: .65rem 0; font-size: 1.1rem; font-weight: 600; }

@media (max-width: 760px) {
  .bdr-route { grid-template-columns: 1fr; }
  .bdr-route strong { justify-self: start; }
  .bdr-hero { padding-top: 3rem; }
  .bdr-shell-bar span:last-child { display: none; }
  .bdr-section-head, .bdr-run-row { align-items: stretch; flex-direction: column; }
  .bdr-form-grid, .bdr-source-grid, .bdr-hypothesis-grid, .bdr-artifact-grid, .bdr-two-column { grid-template-columns: 1fr; }
  .bdr-field-wide { grid-column: auto; }
  .bdr-progress ol { grid-template-columns: 1fr; }
  .bdr-progress li { min-height: auto; }
  .bdr-change { grid-template-columns: 1fr; gap: .3rem; }
  .bdr-sequence li { grid-template-columns: 3rem 4.3rem 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header, .bdr-hero, .bdr-input-panel, .bdr-shell-bar, .bdr-result-nav, .bdr-result-actions, .bdr-design-note, footer, .bdr-sim-check, .bdr-postures { display: none !important; }
  main { max-width: none !important; padding: 0 !important; }
  .bdr-shell { border: 0; box-shadow: none; }
  .bdr-results { display: block !important; border: 0; padding: 0; }
  .bdr-card, .bdr-artifact-grid details, .bdr-simulation { break-inside: avoid; }
}
