/* Shared presentation only. Existing form actions, fields, and state rules
   remain in the original templates/controllers. Error colors stay semantic. */
.bdp-app { --bdp-accent:var(--bdp-forest); --font-sans:var(--bdp-font); background:var(--bdp-canvas); color:var(--bdp-ink); font-family:var(--bdp-font); font-size:16px; line-height:24px; }
.bdp-app h1 { font-size:28px; line-height:1.3; font-weight:700; letter-spacing:-.03em; }
.bdp-app h2 { font-weight:700; letter-spacing:-.015em; }
.bdp-app :is(.text-indigo-600,.text-indigo-700,.text-blue-600,.text-blue-700,.text-violet-600,.text-violet-700) { color:var(--bdp-accent); }
.bdp-app :is(.bg-indigo-600,.bg-indigo-700,.bg-blue-600,.bg-blue-700,.bg-violet-600,.bg-violet-700) { background-color:var(--bdp-accent); }
.bdp-app :is(.bg-indigo-600,.bg-indigo-700,.bg-blue-600,.bg-blue-700,.bg-violet-600,.bg-violet-700):hover { background-color:#1c624b; }
.bdp-app :is(.bg-indigo-50,.bg-blue-50,.bg-violet-50) { background-color:#eff5f1; }
.bdp-app :is(.border-indigo-200,.border-blue-200,.border-violet-200) { border-color:#dce8df; }
.bdp-app :is(.bg-indigo-100,.bg-violet-100) { background-color:#e7f1e9; }
.bdp-app :is(.shadow-sm,.shadow-md,.shadow-lg,.shadow-xl) { box-shadow:none; }
.bdp-app :is(.border-gray-200,.border-gray-300,.border-slate-200) { border-color:var(--bdp-line); }
.bdp-app :is(.text-gray-900,.text-slate-900) { color:var(--bdp-ink); }
.bdp-app :is(.text-gray-500,.text-slate-500) { color:var(--bdp-muted); }
.bdp-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),.bdp-app textarea,.bdp-app select { border-radius:9px; border-color:#d8e1da; background-color:white; }
.bdp-app :is(input[type=checkbox],input[type=radio]) { accent-color:var(--bdp-accent); }
.bdp-app :is(input,textarea,select):focus-visible { outline:2px solid #a7ceba; outline-offset:2px; }
.bdp-app :is(a,button,summary):focus-visible { outline:3px solid #a7ceba; outline-offset:4px; }
.bdp-app :is(button,input[type=submit]) { cursor:pointer; }
.bdp-app :is(button,input[type=submit]):disabled { cursor:not-allowed; }
.bdp-app table { font-size:13px; }
.bdp-app th { font-weight:400; color:var(--bdp-muted); }
.bdp-app th,.bdp-app td { border-color:var(--bdp-line); }
.bdp-content > div[class*="max-w-"] { padding-top:30px; }
.bdp-content > .max-w-7xl { max-width:1180px; }
.bdp-content > .bg-white.border-t-4 { border-top-width:0; }
.bdp-content > .bg-white.border-t-4 [class~="w-40"] { width:104px; height:104px; }
.bdp-page-subtitle { font-size:13px; color:var(--bdp-muted); margin-top:8px; line-height:1.7; }
.bdp-app-header { background:white; border-bottom:1px solid var(--bdp-line); position:relative; z-index:40; }
.bdp-app-nav { display:flex; align-items:center; gap:34px; justify-content:space-between; max-width:1180px; margin:auto; min-height:76px; padding:14px 28px; }
.bdp-brand { display:inline-flex; align-items:center; gap:10px; color:#20332a; font-size:16px; font-weight:700; letter-spacing:-.025em; white-space:nowrap; }
.bdp-main-links { display:flex; align-items:center; gap:27px; font-size:13px; margin-right:auto; color:var(--bdp-muted); }
.bdp-main-links [aria-current=page] { color:var(--bdp-accent); font-weight:700; }
.bdp-public-nav { display:flex; align-items:center; justify-content:space-between; gap:22px; max-width:1180px; margin:auto; padding:20px 28px; }
.bdp-public-nav > div { display:flex; align-items:center; flex-wrap:wrap; gap:24px; font-size:13px; color:var(--bdp-muted); }
.bdp-primary-link { display:inline-flex; align-items:center; justify-content:center; background:var(--bdp-accent); color:white; font-size:13px; font-weight:400; padding:11px 18px; border-radius:9px; }
.bdp-account-menu { position:relative; margin-left:auto; }
.bdp-account-menu > summary { display:flex; align-items:center; gap:9px; cursor:pointer; font-size:12px; list-style:none; }
.bdp-account-menu > summary::-webkit-details-marker { display:none; }
.bdp-account-menu > summary > span:nth-child(2) { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.bdp-account-caption { color:var(--bdp-muted); font-size:11px; }
.bdp-account-panel { position:absolute; top:calc(100% + 18px); right:0; width:290px; max-width:calc(100vw - 32px); max-height:75vh; overflow-y:auto; padding:9px; background:white; border:1px solid var(--bdp-line); border-radius:12px; box-shadow:0 15px 50px #20332a14; }
.bdp-account-panel a,.bdp-account-panel button,.bdp-menu-current { display:block; width:100%; border-radius:7px; padding:10px 12px; font-size:12px; text-align:left; line-height:1.5; }
.bdp-account-panel a:hover,.bdp-account-panel button:hover { background:#f1f6f2; }
.bdp-menu-current { background:#eff5f1; font-weight:700; color:var(--bdp-accent); }
.bdp-menu-label { color:var(--bdp-muted); padding:7px 12px; font-size:10px; text-transform:uppercase; letter-spacing:.07em; }
.bdp-menu-divider { margin:7px 0; border-top:1px solid var(--bdp-line); }
.bdp-breadcrumbs { display:flex; flex-wrap:wrap; gap:10px; max-width:1180px; margin:0 auto; padding:18px 28px 0; font-size:12px; color:var(--bdp-muted); }
.bdp-breadcrumbs a:hover { color:var(--bdp-accent); }
.bdp-next-step { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:1124px; margin:26px auto 0; padding:15px 19px; border:1px solid #dce8df; border-radius:10px; background:#edf4ef; }
.bdp-next-step p { font-size:12px; line-height:1.8; max-width:850px; }
.bdp-next-step p > span { display:block; color:var(--bdp-accent); font-size:10px; font-weight:700; margin-bottom:3px; text-transform:uppercase; letter-spacing:.06em; }
.bdp-next-step > a { flex-shrink:0; font-size:12px; color:var(--bdp-accent); font-weight:400; }
.bdp-field-label { display:block; font-size:12px; font-weight:400; margin-bottom:8px; color:var(--bdp-ink); }
.bdp-auth-page { display:flex; flex-direction:column; align-items:center; padding:70px 20px; min-height:100vh; }
.bdp-auth-card { width:100%; max-width:440px; background:white; border:1px solid var(--bdp-line); border-radius:16px; padding:34px; margin-top:35px; }
.bdp-auth-card h1 { font-size:25px; margin-bottom:22px; }
.bdp-auth-card input:not([type=submit]) { min-height:44px; }
.bdp-auth-footer { font-size:12px; color:var(--bdp-muted); margin-top:24px; text-align:center; }
.bdp-questionnaire > header { display:flex; justify-content:space-between; align-items:center; max-width:760px; margin:auto; padding:24px; }
.bdp-questionnaire > header > span { font-size:12px; color:var(--bdp-muted); }
.bdp-onboarding-progress { height:3px; background:#e4eae6; max-width:712px; margin:0 auto 20px; }
.bdp-onboarding-progress > div { height:100%; background:var(--bdp-accent); transition:width .2s; }
.bdp-questionnaire h1 { font-size:27px; }
.bdp-product-review { max-width:1124px; margin:28px auto; }
.bdp-product-review [data-testid=product-review-panel] > div { position:static; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.bdp-product-review [data-testid=product-review-panel] > div > div:first-child,.bdp-product-review [data-testid=review-history] { grid-column:1 / -1; }
.bdp-product-review [data-testid=product-review-panel] > div > * { margin-top:0; }
.bdp-product-review [data-testid=review-history] { font-size:12px; }
.bdp-product-research { max-width:1180px; margin:30px auto; padding:0 28px; }
.bdp-product-research > summary { cursor:pointer; font-size:14px; font-weight:400; color:var(--bdp-muted); }
.bdp-product-research[open] > summary { margin-bottom:20px; }
.bdp-skip-link { position:fixed; left:16px; top:-100px; z-index:100; padding:12px 18px; background:white; color:#20332a; border:2px solid #27765d; border-radius:8px; }
.bdp-skip-link:focus { top:12px; }
.bdp-app .bg-gradient-to-r { background-image:none; background-color:white; color:var(--bdp-ink); border-bottom:1px solid var(--bdp-line); }
.bdp-app .bg-gradient-to-r :is(.text-white,.text-indigo-200) { color:var(--bdp-ink); }
.bdp-app .bg-gradient-to-r .text-indigo-100 { color:var(--bdp-muted); }
.bdp-app .bg-gradient-to-r :is(.bg-indigo-600,.bg-indigo-700,.bg-blue-600,.bg-blue-700).text-white { color:white; }
@media(max-width:900px) { .bdp-next-step { margin:20px 20px 0; } .bdp-app-nav { gap:22px; } .bdp-account-menu > summary > span:nth-child(2) { max-width:140px; } }
@media(max-width:650px) { .bdp-app-nav { padding:15px 18px; flex-wrap:wrap; gap:16px; } .bdp-brand { font-size:14px; } .bdp-brand > span { width:28px; height:28px; } .bdp-main-links { order:3; width:100%; margin:0; border-top:1px solid var(--bdp-line); padding-top:13px; gap:24px; } .bdp-account-menu > summary > span:nth-child(2) { max-width:105px; } .bdp-account-caption { display:none; } .bdp-next-step { flex-direction:column; gap:10px; align-items:flex-start; margin:16px 16px 0; } .bdp-app h1 { font-size:24px; } .bdp-auth-page { padding-top:40px; } .bdp-auth-card { padding:26px; } .bdp-product-review { margin:24px 16px; } .bdp-product-review [data-testid=product-review-panel] > div { grid-template-columns:1fr; } .bdp-product-research { padding:0 16px; } .bdp-breadcrumbs { padding:15px 18px 0; } }
@media(prefers-reduced-motion:reduce) { .bdp-app * { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
@media(max-width:650px) {
  .bdp-public-nav { flex-wrap:wrap; padding:18px; }
  .bdp-public-nav > div { width:100%; justify-content:space-between; gap:16px; }
  .bdp-account-menu > summary { display:grid; grid-template-columns:minmax(0,105px) 10px; gap:3px 8px; }
  .bdp-account-caption { display:block; grid-column:1; font-size:10px; }
  .bdp-account-menu > summary > span:nth-child(2) { grid-column:1; }
  .bdp-account-menu > summary > span:last-child { grid-column:2; grid-row:2; }
  .bdp-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),.bdp-app textarea,.bdp-app select { font-size:16px; }
}
.bdp-account-panel { z-index:50; }
/* Brand kit v1.0: use the supplied outlined artwork, never a typed substitute.
   208px desktop / 180px mobile; padding supplies 1/4-icon clear space. */
.bdp-brand { padding:11px; flex-shrink:0; }
.bdp-wordmark { display:block; width:208px; min-width:180px; height:auto; flex-shrink:0; }
.bdp-auth-page > .bdp-brand { margin-top:-11px; }
.bdp-app h1 { font-size:32px; line-height:38px; font-weight:700; }
.bdp-app h2 { font-weight:700; }
.bdp-app .bdp-field-label { font-size:12px; line-height:16px; font-weight:700; }
.bdp-app :is(p.text-sm,p.text-base) { font-size:16px; line-height:24px; }
.bdp-page-subtitle { color:var(--bdp-ink); font-size:16px; line-height:24px; }
.bdp-next-step p { color:var(--bdp-ink); font-size:16px; line-height:24px; }
.bdp-next-step p > span { font-size:12px; line-height:16px; font-weight:700; }
.bdp-menu-current { color:var(--bdp-ink); background:var(--bdp-detail); }
.bdp-questionnaire h1 { font-size:32px; line-height:38px; }
.bdp-questionnaire h2 { font-size:24px; line-height:30px; }
.bdp-footer-brand { display:inline-flex; padding:11px; margin:0 0 12px -11px; }
.bdp-app :is(.rw-subtitle,.rw-stage-heading > p,.rw-stage-footer > span,.rw-stage-footer p,.rw-eyebrow) { color:var(--bdp-ink); }
.bdp-app .rw-stage-heading h2 { font-size:32px; line-height:38px; font-weight:700; }
.bdp-app .rw-proposal ol { font-size:16px; line-height:24px; }
.bdp-app :is(.rw-subtitle,.rw-stage-heading > p:last-child,.rw-confirmation > p:not(.rw-eyebrow)) { font-size:16px; line-height:24px; }
.bdp-app .rw-stepper button.is-current span { background:var(--bdp-detail); color:var(--bdp-ink); border-color:var(--bdp-detail); }
.bdp-app .rw-confirm-icon { background:var(--bdp-detail); color:var(--bdp-ink); }
@media(max-width:650px) {
  .bdp-brand { padding:9px; }
  .bdp-wordmark { width:180px; }
  .bdp-app-nav { gap:12px; }
  .bdp-app h1,.bdp-questionnaire h1 { font-size:24px; line-height:30px; }
  .bdp-app .rw-stage-heading h2 { font-size:24px; line-height:30px; }
}
.bdp-app :is(.text-indigo-800,.text-indigo-900,.text-blue-900,.text-violet-900) { color:var(--bdp-ink); }
.bdp-app :is(.border-indigo-100,.border-indigo-300,.border-blue-100,.border-violet-100) { border-color:var(--bdp-line); }
.bdp-app :is(a,button,summary):focus-visible { outline:3px solid var(--bdp-forest); outline-offset:4px; }
.bdp-app :is(input,textarea,select):focus-visible { outline:2px solid var(--bdp-forest); outline-offset:2px; }
@media(max-width:850px) {
  .bdp-image-selection-layout { flex-direction:column; }
  .bdp-image-selection-layout > div { width:100%; position:static; }
}
@media(max-width:650px) {
  .bdp-content .flex.items-center.justify-between.mb-8 { flex-wrap:wrap; gap:18px; }
  .bdp-image-steps { width:100%; flex-wrap:wrap; }
  .bdp-image-steps > a { flex:1; min-width:90px; font-size:12px; padding:9px 6px; text-align:center; }
}
.bdp-app .rw-header h1,.bdp-app .rw-confirmation h2 { font-size:32px; line-height:38px; font-weight:700; }
.bdp-app .rw-review-heading h1 { font-size:24px; line-height:30px; font-weight:700; }
@media(max-width:650px) { .bdp-app .rw-header h1 { font-size:24px; line-height:30px; } }
@media(max-width:1100px) { .bdp-app footer .grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .bdp-app footer .grid { grid-template-columns:minmax(0,1fr); } }

.bdp-reuse h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; }
.bdp-reuse h2 { font-size: 1.25rem; font-weight: 700; }
.bdp-reuse p { margin: .65rem 0; color: var(--bdp-muted); }
.bdp-reuse-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bdp-reuse-intro { margin: 1.5rem 0; max-width: 48rem; }
.bdp-reuse-card { background: var(--bdp-white); border: 1px solid var(--bdp-line); border-radius: 1rem; padding: 1.5rem; margin: 1rem 0; }
.bdp-reuse-button { display: inline-block; background: var(--bdp-forest); color: var(--bdp-white) !important; padding: .7rem 1rem; border-radius: .5rem; font-weight: 700; text-decoration: none; }
.bdp-reuse-link, .bdp-reuse-card p a { color: var(--bdp-forest); text-decoration: underline; }
.bdp-reuse-label { font-size: .8rem; font-weight: 700; }
.bdp-reuse details { margin: 1.2rem 0; }
.bdp-reuse summary { cursor: pointer; font-weight: 700; color: var(--bdp-forest); }
.bdp-reuse ol { list-style: decimal; padding-left: 1.4rem; margin: 1rem 0; }
.bdp-reuse li { margin-bottom: .65rem; }
.bdp-reuse-table { overflow-x: auto; margin: 1rem 0; }
.bdp-reuse table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bdp-reuse th, .bdp-reuse td { border-bottom: 1px solid var(--bdp-line); text-align: left; padding: .65rem; vertical-align: top; min-width: 8rem; overflow-wrap: anywhere; }
.bdp-import-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--bdp-line); }
.bdp-import-row:last-child { border-bottom: 0; }
.bdp-import-row p { margin: .25rem 0; font-size: .875rem; }

/* Shared icon language and interaction polish across signed-in pages. */
.bdp-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.bdp-main-links a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 11px; border-radius: 8px; transition: background .15s, color .15s; }
.bdp-main-links { gap: 9px; }
.bdp-workspace-context { display:flex; flex-wrap:wrap; gap:6px 14px; max-width:1180px; margin:0 auto; padding:0 28px 14px; font-size:12px; color:var(--bdp-muted); }
.bdp-workspace-context strong { color:var(--bdp-forest); }
.bdp-workspace-context span { overflow-wrap:anywhere; }

@media(max-width:650px) {
  .bdp-workspace-context { padding:0 18px 14px; }
  .bdp-main-links { flex-wrap:wrap; gap:4px; }
  .bdp-main-links a { gap:5px; padding:9px 5px; font-size:12px; }
}
.bdp-main-links a:hover, .bdp-main-links a[aria-current=page] { background: #edf4ef; color: var(--bdp-forest); }
.bdp-account-panel a:has(.bdp-icon) { display: flex; gap: 9px; align-items: center; }
.bdp-app :is(button,a,input,textarea,summary):focus-visible { outline: 2px solid var(--bdp-forest); outline-offset: 3px; }
.bdp-app button:disabled { cursor: not-allowed; }
.bdp-icon-link { display: inline-flex; align-items: center; gap: 7px; }
.bdp-feedback-stack { max-width: 1184px; margin: 20px auto 0; padding: 0 28px; }
.bdp-feedback { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1px solid var(--bdp-line); border-left: 3px solid var(--bdp-forest); border-radius: 9px; color: var(--bdp-ink); background: white; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.bdp-feedback .bdp-icon { margin-top: 2px; color: var(--bdp-forest); }
.bdp-feedback-error { border-left-color: #a34737; }
.bdp-feedback-error .bdp-icon { color: #a34737; }
@media(max-width:600px) { .bdp-feedback-stack { padding: 0 20px; } }

/* Shared site rhythm and navigation. Keep the approved brand typography. */
.bdp-app { text-rendering: optimizeLegibility; }
.bdp-app :is(button,a,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
.bdp-app :is(p,li,td,h1,h2,h3) { overflow-wrap: break-word; }
.bdp-app-header .bdp-app-nav { max-width: 1240px; gap: 24px; }
.bdp-main-links { flex-wrap: wrap; }
.bdp-main-links a { min-height: 44px; white-space: nowrap; }
.bdp-account-menu > summary { min-height: 44px; }
.bdp-account-panel :is(a,button) { min-height: 44px; font-size: 13px; }
.bdp-menu-label,.bdp-next-step p > span { text-transform: none; letter-spacing: 0; font-size: 12px; }
.bdp-next-step { background: transparent; border: 0; border-left: 3px solid var(--bdp-forest); border-radius: 0; padding: 8px 18px; }
.bdp-next-step p { max-width: 72ch; font-size: 14px; line-height: 1.7; }
.bdp-next-step > a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.bdp-primary-link { min-height: 48px; padding: 13px 22px; font-size: 15px; font-weight: 700; border: 1px solid var(--bdp-forest); text-decoration: none; line-height: 1.4; }
.bdp-primary-link:hover { background: #1c5e48; color: white; }
.bdp-public-nav { max-width: 1240px; padding-top: 12px; padding-bottom: 12px; }
.bdp-public-nav > div > a { display: inline-flex; align-items: center; min-height: 44px; }
.bdp-public-nav > div { gap: 22px; font-size: 14px; }
.bdp-site-footer { background: var(--bdp-ink); color: white; margin-top: 0; }
.bdp-footer-inner { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 40px; max-width: 1184px; margin: auto; padding: 56px 28px; }
.bdp-footer-inner p { max-width: 30ch; color: #d2ded5; font-size: 14px; line-height: 1.8; }
.bdp-footer-inner nav h2 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: white; }
.bdp-footer-inner nav a { display: block; width: fit-content; padding: 7px 0; color: #d2ded5; font-size: 14px; }
.bdp-footer-inner nav a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.bdp-footer-bottom { max-width: 1128px; margin: auto; border-top: 1px solid #496052; padding: 22px 0; color: #d2ded5; font-size: 12px; }
.bdp-workspace-context { line-height: 1.7; }
.bdp-content table th { font-size: 12px; font-weight: 700; }
.bdp-content table td { line-height: 1.6; }
.bdp-content :is(textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])) { min-height: 44px; }
@media(max-width:1100px) {
  .bdp-app-header .bdp-app-nav { flex-wrap: wrap; gap: 12px; }
  .bdp-app-nav .bdp-main-links { order: 3; width: 100%; border-top: 1px solid var(--bdp-line); padding-top: 10px; gap: 8px; }
  .bdp-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .bdp-app-nav .bdp-main-links { justify-content: space-between; gap: 2px; }
  .bdp-main-links a { font-size: 12px; padding: 8px 6px; gap: 5px; }
  .bdp-main-links .bdp-icon { width: 16px; }
  .bdp-public-nav > div { gap: 8px 18px; justify-content: flex-start; }
  .bdp-public-nav > div .bdp-primary-link { margin-left: auto; }
  .bdp-footer-inner { padding: 40px 20px; gap: 32px 20px; }
  .bdp-footer-inner > div { grid-column: 1 / -1; }
  .bdp-footer-inner nav a { display: flex; align-items: center; min-height: 44px; }
  .bdp-footer-bottom { margin: 0 20px; }
}
.bdp-public-menu { display: none; position: relative; }
.bdp-public-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--bdp-line); border-radius: 8px; cursor: pointer; font-size: 14px; list-style: none; }
.bdp-public-menu > summary::-webkit-details-marker { display: none; }
@media(max-width:760px) {
  .bdp-public-nav { flex-wrap: nowrap; padding: 12px 16px; gap: 12px; }
  .bdp-public-nav > .bdp-public-links { display: none; }
  .bdp-public-menu { display: block; }
}
