/* BuildRite design system: clear hierarchy, familiar controls, consistent feedback. */
:root {
  --br-ink: #102b39;
  --br-muted: #526873;
  --br-canvas: #f5f7f8;
  --br-surface: #fff;
  --br-border: #dce5e8;
  --br-accent: #ad5015;
  --br-action: #12384a;
  --br-radius: 18px;
  --br-control-radius: 11px;
  --br-panel-inset: clamp(1.25rem, 2.5vw, 2rem);
  --br-shadow: 0 12px 40px rgba(11, 37, 51, .055);
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { -webkit-font-smoothing: antialiased; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #d88734; outline-offset: 3px; }
:is(button, a, summary) { -webkit-tap-highlight-color: transparent; }
:is(.header, .app-header, .account-header, .legal-header) { min-height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--br-border); color: var(--br-ink); backdrop-filter: blur(14px); }
:is(.header, .app-header, .account-header, .legal-header) :is(.brand, .site-nav, .menu-toggle) { color: var(--br-ink); }
:is(.header, .app-header, .account-header, .legal-header) .site-nav .action { border: 0; border-radius: 10px; padding: .72rem 1rem; background: var(--br-action); color: #fff; }
:is(.header, .app-header, .account-header, .legal-header) .site-nav .action:hover { background: #25556a; color: #fff; }
.menu-toggle { border-radius: var(--br-control-radius); }
.site-nav { gap: clamp(.8rem, 2vw, 1.75rem); }
.site-nav a:not(.action) { padding-block: .5rem; }

/* Public site: product-led, with each section given a single job. */
.hero { min-height: min(740px, calc(100vh - 72px)); gap: clamp(2.5rem, 6vw, 7rem); padding-block: clamp(4rem, 8vw, 7rem); background: var(--br-canvas); background-image: none; }
.hero::after, .panel::before { display: none; }
.hero h1 { max-width: 720px; font-size: clamp(3.15rem, 6.1vw, 5.7rem); line-height: 1.04; letter-spacing: -.065em; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; font-size: clamp(1.1rem, 1.65vw, 1.3rem); line-height: 1.55; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; }
.primary, .dark-button { border-radius: var(--br-control-radius); padding: 1rem 1.25rem; background: var(--br-action); color: #fff; box-shadow: 0 8px 20px rgba(18, 56, 74, .12); }
.primary:hover, .dark-button:hover { background: #25556a; }
.secondary { color: var(--br-ink); }
.scope { display: block; max-width: 640px; line-height: 1.5; font-size: .88rem; }
.panel { overflow: hidden; border: 1px solid var(--br-border); border-radius: 20px; box-shadow: 0 24px 60px rgba(11,37,51,.10); }
.panel-head { padding: 1.35rem 1.5rem; }
.panel-head strong { font-size: 1.12rem; }
.chip { border-radius: 999px; }
.readiness { padding: 1.3rem 1.5rem; }
.rows li { padding: 1rem 1.5rem; }
.rows li strong { font-size: .95rem; }
.rows small { font-size: .8rem; }
.panel-foot { padding: 1rem 1.5rem; }
.strip { gap: 1px; background: #dbe5e8; color: var(--br-ink); }
.strip p { border: 0; background: #fff; font-size: .94rem; }
.strip span { color: var(--br-accent); }
.platform, .pricing, .principle { padding-block: clamp(5rem, 8vw, 8rem); }
.intro, .pricing-head { gap: clamp(2rem, 5vw, 6rem); margin-bottom: clamp(2rem, 4vw, 4rem); }
.intro h2, .pricing h2, .principle h2, .closing h2 { font-size: clamp(2.7rem, 5vw, 4.9rem); line-height: 1.06; letter-spacing: -.06em; }
.intro p, .pricing-head > p:last-child { line-height: 1.6; }
.features { gap: 1rem; border: 0; }
.features article { min-height: 230px; padding: clamp(1.5rem, 2.5vw, 2.2rem); border: 1px solid var(--br-border); border-radius: var(--br-radius); background: var(--br-surface); box-shadow: var(--br-shadow); }
.features h3 { margin: 2.6rem 0 .7rem; font-size: 1.3rem; letter-spacing: -.02em; }
.features p { font-size: 1rem; }
.pricing { background: var(--br-canvas); }
.pricing-card { min-height: 300px; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--br-border); border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
.pricing-card h3 { margin-top: 2.5rem; }
.pricing-card .price-status { font-size: 1rem; }
.principle { background: #102b39; }
.decision { gap: 1rem; margin-top: 3rem; }
.decision article { border-radius: var(--br-radius); background: rgba(255,255,255,.045); }
.decision .letter { border-radius: 10px; }
.closing { background: #eaf1f2; }

/* Project check: the form is the main object, not an editorial aside. */
.app-body { background: var(--br-canvas); color: var(--br-ink); }
.app-header { --site-nav-background: #fff; --site-nav-foreground: var(--br-ink); --site-nav-border: var(--br-border); }
.app-header .brand { color: var(--br-ink); }
.app-header .brand-mark { stroke: var(--br-ink); }
.app-shell { max-width: 850px; }
.app-intro { top: 7rem; }
.app-intro h1 { font-family: inherit; font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1.08; letter-spacing: -.055em; }
.checker-card { padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--br-border); border-radius: 22px; box-shadow: var(--br-shadow); }
.progress-row { margin-bottom: 2rem; }
.checker-card legend { font-family: inherit; font-size: clamp(1.8rem, 2.6vw, 2.7rem); font-weight: 760; letter-spacing: -.045em; }
.checker-card :is(input, select, textarea) { border-color: #b6c7cd; border-radius: var(--br-control-radius); background: #fff; }
.checker-card .question-grid label { border-radius: var(--br-control-radius); background: #f7fafb; }
.checker-card :is(.primary-action, .secondary-action) { border-radius: var(--br-control-radius); }
.result-card, .route-card, .route-lane, .scope-boundary { border-radius: 14px; }

/* Account: a quiet canvas around the project, with one high-contrast next action. */
.account-body { background: var(--br-canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.account-main { padding-top: 2rem; }
.account-label { color: var(--br-accent); letter-spacing: .12em; }
.auth-panel { border: 1px solid var(--br-border); border-radius: 20px; box-shadow: var(--br-shadow); }
.auth-panel :is(input, button) { border-radius: var(--br-control-radius); }
.account-button { border-radius: var(--br-control-radius); background: var(--br-action); }
.is-signed-in .account-main { padding-top: 1.25rem; }
.is-signed-in .dashboard-live { padding: 0; }
.dashboard-live__heading { align-items: center; }
.dashboard-live__heading .account-label { display: none; }
.dashboard-live__heading h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.dashboard-live__welcome { margin: .2rem 0 1.15rem; }
.dashboard-empty { border-radius: var(--br-radius); }
.project-list__item, .pending-invites { border: 1px solid var(--br-border); border-radius: 14px; }
.project-room { margin-top: .75rem; }
.room-hero { align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem); border: 0; border-radius: 20px; background: #102b39; }
.room-hero .account-label { color: #f1ab72; }
.room-hero h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.room-hero__status { border-radius: 999px; }
.room-overview { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .85rem; margin-top: .85rem; }
.room-next { min-height: 210px; padding: clamp(1.5rem, 3vw, 2.3rem); border: 0; border-radius: var(--br-radius); color: #fff; background: #23556b; }
.room-next .account-label { color: #ffd4ad; }
.room-next h4 { margin: .2rem 0 1rem; color: #fff; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.28; }
.room-next__link { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1rem; border-radius: 10px; background: #fff; color: #12384a; font-size: .95rem; text-decoration: none; }
.room-next__link:hover { background: #eaf3f5; }
.room-pulse { gap: .85rem; overflow: visible; border: 0; background: transparent; }
.room-pulse > div { padding: 1.2rem; border: 1px solid var(--br-border); border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
.room-pulse strong { font-size: clamp(1.7rem, 2.6vw, 2.25rem); letter-spacing: -.05em; }
.room-pulse span { font-size: .85rem; }
.room-pulse small { font-size: .75rem; }
.room-onsite { margin: .85rem 0; padding: clamp(1.4rem, 2.5vw, 2.1rem); border: 1px solid var(--br-border); border-radius: var(--br-radius); background: #fff; box-shadow: var(--br-shadow); }
.room-onsite__intro { max-width: 47rem; margin-bottom: 1.35rem; }
.room-onsite__intro .account-label { margin: 0 0 .45rem; }
.room-onsite__intro h4 { margin: 0 0 .45rem; font-size: clamp(1.55rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.room-onsite__intro p:last-child { margin: 0; color: #45606c; }
.room-onsite__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.room-onsite__card { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem; border: 1px solid var(--br-border); border-radius: 14px; background: #f7fafb; }
.room-onsite__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: 1rem; }
.room-onsite__top .account-label { margin: 0; }
.room-onsite__state { padding: .25rem .55rem; border-radius: 999px; background: #e6eef0; color: #254a58; font-size: .73rem; font-weight: 750; text-transform: capitalize; }
.room-onsite__card h5 { margin: 0 0 .55rem; font-size: 1.12rem; line-height: 1.25; }
.room-onsite__card p { flex: 1; margin: 0 0 1.1rem; color: #45606c; font-size: .91rem; line-height: 1.5; }
.room-onsite__card a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem .8rem; border-radius: 10px; background: #153746; color: #fff; font-weight: 800; text-decoration: none; }
.room-onsite__card a:hover, .room-onsite__card a:focus-visible { background: #23556b; }
.room-path { gap: .35rem; margin: .85rem 0; padding: 1.2rem; border: 1px solid var(--br-border); border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
.room-path h4 { padding: 0 .35rem .6rem; font-size: 1.1rem; }
.room-path__step { padding: .75rem .5rem; border: 0; border-radius: 12px; }
.room-path__step:hover, .room-path__step:focus-visible { background: #f1f6f7; }
.room-path__number { width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.room-path__step strong { font-size: .9rem; }
.room-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin: 1rem 0 .85rem; padding: .25rem; border: 1px solid var(--br-border); border-radius: 14px; background: #f0f5f6; }
.room-jump a { display: flex; align-items: center; justify-content: center; min-height: 52px; box-sizing: border-box; padding: .65rem; border: 0; border-radius: 10px; background: transparent; color: var(--br-ink); text-align: center; text-decoration: none; }
.room-jump a:hover, .room-jump a:focus-visible { background: #fff; box-shadow: 0 2px 9px rgba(11,37,51,.08); }
.room-local-guide { margin-top: .85rem; padding: clamp(1.4rem, 2.5vw, 2.1rem); border: 1px solid var(--br-border); border-radius: var(--br-radius); background: #fff; box-shadow: var(--br-shadow); }
.room-local-guide h4 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.035em; }
.room-local-guide__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.room-local-guide__grid article { padding: 1rem; border: 1px solid var(--br-border); border-radius: 12px; background: #f7fafb; }
.room-local-guide__grid h5 { margin: 0 0 .4rem; font-size: 1rem; }
.room-local-guide__grid p { margin: 0; color: #45606c; font-size: .9rem; }
.room-local-guide__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .35rem; }
.room-local-guide__links a { display: inline-flex; min-height: 44px; align-items: center; padding: .45rem 0; border: 0; color: var(--br-action); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.room-local-guide__links a:hover, .room-local-guide__links a:focus-visible { color: #ad5015; text-decoration-thickness: 2px; }
@media (max-width: 850px) { .room-onsite__grid { grid-template-columns: 1fr; } .room-onsite__card { padding: 1.1rem; } }
.workflow-section, .room-people { margin-top: .85rem; padding: clamp(1.4rem, 2.5vw, 2.1rem); border: 1px solid var(--br-border); border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
.workflow-section > h4, .room-people > h4 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.035em; }
.workflow-section > p { max-width: 780px; }
.workflow-card { border: 1px solid var(--br-border); border-radius: 14px; background: #fbfcfd; }
.workflow-status { border-radius: 999px; }
.room-disclosure { overflow: hidden; border-color: var(--br-border); border-radius: 12px; }
.room-disclosure[open] > summary { background: #f3f7f8; }
.file-summary__card { border-color: var(--br-border); border-radius: 14px; background: #f7fafb; }
.room-form :is(input, select, textarea), .evidence-form :is(input, select) { border-radius: var(--br-control-radius); }
.room-button { border-radius: var(--br-control-radius); }
.room-summary { gap: .5rem; border-radius: 14px; background: #f4f8f9; }

/* Legal pages should read like a document, not a promotional grid. */
.legal-body { background: var(--br-canvas); }
.legal-main { max-width: 920px; }
.legal-section { border-radius: var(--br-radius); }

@media (max-width: 1100px) {
  .room-overview { grid-template-columns: 1fr; }
  .room-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-intro { position: static; }
  .app-shell { gap: 1.35rem; padding-top: 1.5rem; }
  .app-intro h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .app-intro > p:not(.eyebrow) { margin: .7rem 0 0; font-size: 1rem; }
  .app-intro .back-link { display: none; }
  .hero { min-height: 0; }
}
@media (max-width: 700px) {
  .hero { gap: 2.5rem; padding-block: 3.5rem 4.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); letter-spacing: -.06em; }
  .hero-copy > p:not(.eyebrow) { font-size: 1.05rem; }
  .features { grid-template-columns: 1fr; }
  .features article { min-height: 0; }
  .features h3 { margin-top: 1.5rem; }
  .strip { grid-template-columns: 1fr; }
  .room-hero { align-items: flex-start; }
  .room-next { min-height: 0; }
  .room-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-pulse > div { min-height: 0; }
  .room-pulse > div:last-child { grid-column: 1 / -1; }
  .room-pulse small { display: none; }
  .room-path { grid-template-columns: 1fr; }
  .room-path__step { border: 0; }
  .room-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-local-guide__grid { grid-template-columns: 1fr; }
  .file-summary { grid-template-columns: 1fr; }
}
@media (max-width: 350px) { .room-pulse { grid-template-columns: 1fr; }.room-pulse > div:last-child { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .room-next { color: #102b39; background: #fff; border: 1px solid #dce5e8; } .room-next h4 { color: #102b39; } }

/* Shared page rhythm: fewer competing panels, consistent reading width and type. */
.hero { min-height: 0; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.hero h1 { font-size: clamp(3.1rem, 5.4vw, 5rem); line-height: 1.05; }
.hero-copy > p:not(.eyebrow) { line-height: 1.55; }
.platform, .pricing, .principle { padding-block: clamp(4rem, 6vw, 6rem); }
.intro h2, .pricing h2, .principle h2, .closing h2 { font-size: clamp(2.5rem, 4.5vw, 4.3rem); }
.features article { min-height: 0; }
.features h3 { margin-top: 1.7rem; }
.pricing-card { min-height: 0; }
.account-main h1, .legal-main h1 { font-family: inherit; font-size: clamp(2.3rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.account-intro, .legal-intro { max-width: 65ch; margin-bottom: 1.75rem; line-height: 1.55; }
.auth-panel, .dashboard-live, .legal-section { border-radius: 20px; }
.auth-panel { border-top: 1px solid var(--br-border); }
.legal-body { background: var(--br-canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.legal-main { width: min(900px, calc(100% - 2rem)); padding-block: clamp(2rem, 5vw, 4rem); }
.legal-section { margin-top: 1rem; padding: clamp(1.35rem, 3vw, 2rem); }
.room-local-guide__grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--br-border); }
.room-local-guide__grid article { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); padding: 1rem 0; border: 0; border-bottom: 1px solid var(--br-border); border-radius: 0; background: transparent; }
.room-local-guide__grid h5 { margin: 0; }
.room-local-guide__grid p { font-size: .95rem; }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .room-local-guide__grid article { grid-template-columns: 1fr; gap: .25rem; }
}

/* One type system across the public site, checker, account and legal pages. */
:root {
  --br-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --br-type-meta: .8125rem;
  --br-type-label: .875rem;
  --br-type-body: 1rem;
  --br-type-lead: 1.125rem;
  --br-type-card: 1.25rem;
  --br-type-section: clamp(2.25rem, 4.5vw, 4.25rem);
  --br-type-page: clamp(2.25rem, 4vw, 3.5rem);
}
body, .account-body, .legal-body { font-family: var(--br-font); font-size: var(--br-type-body); line-height: 1.55; }
:is(h1, h2, h3, h4, h5, h6, legend, .brand) { font-family: var(--br-font); }
:is(h1, h2, h3, h4, h5, h6, legend) { font-weight: 750; }
:is(input, select, textarea, button) { font-family: var(--br-font); }
:is(.eyebrow, .checker-title, .account-label, .legal-label, .lane-label, .micro, .features article > span, .pricing-card > span) {
  font-family: var(--br-font);
  font-size: var(--br-type-meta);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .1em;
}
.app-body .checker-title { max-width: none; margin: 0 0 1.25rem; font-size: var(--br-type-meta); line-height: 1.45; letter-spacing: .1em; }
.checker-card legend { font-family: var(--br-font); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 750; line-height: 1.18; letter-spacing: -.04em; }
.app-body .results-heading h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5rem); }
.intro h2, .pricing h2, .principle h2, .closing h2 { font-size: var(--br-type-section); }
.account-main h1, .legal-main h1 { font-size: var(--br-type-page); }
.account-main h2, .legal-main h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); }
.features h3, .pricing-card h3, .decision h3 { font-size: var(--br-type-card); }
.app-body label, .account-body :is(.auth-form label, .project-create-form label, .room-form label, .evidence-form label) { font-size: var(--br-type-body); }
.app-body :is(input, select, textarea), .account-body :is(input, select, textarea) { font-size: var(--br-type-body); }
:is(.scope, .pricing-note, .auth-fine-print, .policy-check, .field-help, .room-pulse small, .room-path__step small, .file-summary__card small, .rows small) { font-size: var(--br-type-label); }
:is(.progress-row, .room-jump a, .room-next__link, .room-onsite__card p, .room-local-guide__grid p, .route-card > a, .result-card a) { font-size: var(--br-type-body); }
.room-onsite__state, .workflow-status, .priority-badge, .action-status { font-size: var(--br-type-label); }
.app-footer, .legal-footer, footer { font-size: var(--br-type-label); }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .checker-card legend { font-size: clamp(1.875rem, 7vw, 2.25rem); }
  .intro h2, .pricing h2, .principle h2, .closing h2 { font-size: clamp(2.25rem, 8vw, 3rem); }
}

/* Matching single-line controls and a deliberate heading-to-field rhythm. */
:is(.checker-card, .account-main) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select) {
  box-sizing: border-box;
  height: var(--br-control-height);
  min-height: var(--br-control-height);
  border: 1px solid #a9bfca;
  border-radius: var(--br-control-radius);
  background-color: #fff;
  line-height: 1.25;
}
.checker-card .progress-row { margin-bottom: 2.75rem; }
.checker-card .form-step legend { margin-bottom: 3rem; }
.checker-card .form-step > label { margin-top: 1.75rem; }
.checker-card .form-step > legend + label,
.checker-card .form-step > .step-help + label { margin-top: 0; }
.checker-card .form-step > label + :is(input, select, textarea) { margin-top: .5rem; }
.checker-card .form-actions .button,
.account-main :is(.auth-form__row .account-button, .project-create-form > .account-button, .google-button, .room-form .account-button) {
  min-height: var(--br-control-height);
}

/* Interaction contract: one type size, height and curvature for actions. */
:root { --br-action-height: 3.25rem; }
:is(.primary, .dark-button, .account-button, .room-button, .google-button, .primary-action, .secondary-action, .form-actions .button, .room-next__link, .room-onsite__card a, .install-dialog button:not(.install-dialog__close)) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--br-action-height);
  padding: .75rem 1.1rem;
  border-radius: var(--br-control-radius);
  font-family: var(--br-font);
  font-size: var(--br-type-body);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
:is(.primary, .dark-button, .account-button, .primary-action, .room-onsite__card a, .install-dialog__primary) { border: 1px solid var(--br-action); background: var(--br-action); color: #fff; }
:is(.room-button, .google-button, .secondary-action, .room-next__link) { border: 1px solid #a9bfca; background: #fff; color: var(--br-ink); }
:is(.primary, .dark-button, .account-button, .primary-action, .room-onsite__card a, .install-dialog__primary):hover { background: #23556b; border-color: #23556b; }
:is(.room-button, .google-button, .secondary-action, .room-next__link):hover { background: #edf5f6; border-color: #6e939f; }
:is(.primary, .dark-button, .account-button, .room-button, .google-button, .primary-action, .secondary-action, .form-actions .button, .room-next__link, .room-onsite__card a, .install-dialog button:not(.install-dialog__close)):active { transform: translateY(1px); }
:is(button, .room-next__link, .room-onsite__card a):disabled { opacity: .55; cursor: not-allowed; }
.text-button { min-height: 44px; font-family: var(--br-font); font-size: var(--br-type-body); font-weight: 700; }
.install-dialog h2 { font-family: var(--br-font); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 750; line-height: 1.18; }

/* The project workspace shares one content edge and one heading scale. */
:is(.room-onsite, .room-local-guide, .workflow-section, .room-people) { padding: clamp(1.25rem, 3vw, 2rem); }
:is(.room-onsite__intro h4, .room-local-guide h4, .workflow-section > h4, .room-people > h4) { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
:is(.room-local-guide__grid h5, .room-local-guide__grid p) { font-size: var(--br-type-body); line-height: 1.5; }
.room-local-guide__grid h5 { font-weight: 700; }
@media (max-width: 700px) {
  .room-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-local-guide__grid article { grid-template-columns: 1fr; gap: .35rem; }
  .room-local-guide__links { display: grid; grid-template-columns: 1fr; gap: 0; }
  .room-local-guide__links a { border-bottom: 1px solid var(--br-border); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.primary, .dark-button, .account-button, .room-button, .google-button, .primary-action, .secondary-action, .form-actions .button, .room-next__link, .room-onsite__card a, .install-dialog button:not(.install-dialog__close)) { transition: none; }
}

/* Workspace continuation: the lower page has the same hierarchy and scale as the overview. */
.workflow-section, .room-people {
  margin-top: .9rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--br-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--br-shadow);
}
.workflow-eyebrow {
  margin: 0 0 .6rem !important;
  color: var(--br-accent) !important;
  font-size: var(--br-type-meta) !important;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.4;
}
.workflow-section > h4, .room-people > h4 {
  max-width: 24ch;
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.workflow-section > p:not(.workflow-eyebrow), .room-people__intro {
  max-width: 64ch;
  margin: 0 0 1.5rem !important;
  color: var(--br-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.workflow-section > a { display: inline-flex; margin-bottom: 1.25rem; color: var(--br-action); font-size: 1rem; font-weight: 700; text-underline-offset: .2em; }
.inspection-summary {
  display: grid;
  gap: .35rem;
  margin: 0 0 1.25rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 0;
  border-radius: 16px;
  background: #ecf4f5;
}
.inspection-summary strong { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; }
.inspection-summary p { max-width: 64ch; margin: .2rem 0 !important; font-size: 1rem; line-height: 1.5; }
.inspection-summary small { font-size: .875rem; line-height: 1.5; }
.workflow-empty { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--br-border); border-radius: 16px; background: #f7fafb; }
.workflow-empty__number { display: grid; flex: none; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: #e1ebee; color: var(--br-action); font-size: 1rem; font-weight: 800; }
.workflow-empty h5 { margin: 0 0 .25rem; font-size: 1.125rem; line-height: 1.3; }
.workflow-empty p { margin: 0; font-size: 1rem; }
.workflow-empty__link { flex: none; margin-left: auto; padding: .55rem .85rem; border: 0; border-radius: 10px; color: #fff; background: var(--br-action); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.workflow-empty__link:hover { background: #23556b; }
.room-disclosure { margin: .75rem 0; border: 1px solid var(--br-border); border-radius: 13px; background: #fff; }
.room-disclosure > summary { display: flex; align-items: center; min-height: 3.5rem; padding: .8rem 3rem .8rem 1.2rem; font-size: 1rem; line-height: 1.3; }
.room-disclosure > summary::after { top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; }
.room-disclosure:hover, .room-disclosure:focus-within { border-color: #92adb8; }
.room-disclosure[open] > summary { background: #f6f9fa; }
.room-disclosure > .room-form, .room-disclosure > .evidence-form { margin: 1.25rem; }
.room-form { gap: 1.25rem; border: 0; }
.room-form label, .evidence-form label { gap: .45rem; font-size: 1rem; }
.room-form h5, .room-form h4 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.room-form :is(input, select, textarea), .evidence-form :is(input, select) { border-color: #a9bfca; }
.evidence-form { gap: 1rem; padding: 1.25rem; border: 0; border-radius: 12px; background: #f7fafb; }
.file-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.35rem; }
.file-summary__card { min-height: 122px; padding: 1.15rem; border: 1px solid var(--br-border); border-radius: 14px; background: #f7fafb; }
.file-summary__card strong { color: var(--br-ink); font-size: 2rem; font-weight: 750; line-height: 1.1; }
.file-summary__card span { margin-top: .45rem; font-size: 1rem; }
.file-summary__card small { margin-top: .15rem; color: var(--br-muted); font-size: .875rem; line-height: 1.35; }
.workflow-footnote { margin-top: 1.35rem !important; padding-top: 1rem; border-top: 1px solid var(--br-border); font-size: .875rem !important; }
.workflow-card { margin: .75rem 0; padding: 1.35rem; border: 1px solid var(--br-border); border-radius: 15px; background: #fff; }
.workflow-card h5 { font-size: 1.2rem; }
.workflow-card p { font-size: 1rem; line-height: 1.5; }
.room-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.35rem; padding: 1.25rem; background: #f3f8f9; }
.room-summary dt { color: var(--br-muted); font-size: .875rem; }
.room-summary dd { margin: .2rem 0 0; font-size: 1rem; font-weight: 750; }
.room-people__title { margin: 1.75rem 0 .75rem; font-size: 1.15rem; }
.room-team { display: flex; flex-wrap: wrap; gap: .75rem; }
.room-team__member { display: flex; align-items: center; gap: .75rem; min-width: 11rem; padding: .65rem 1rem .65rem .65rem; border: 1px solid var(--br-border); border-radius: 999px; font-size: 1rem; }
.room-team__avatar { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; color: #fff; background: var(--br-action); font-size: .875rem; font-weight: 800; }
@media (max-width: 900px) { .file-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .room-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .workflow-section, .room-people { padding: 1.25rem; }
  .workflow-empty { align-items: flex-start; flex-wrap: wrap; }
  .workflow-empty__link { width: 100%; max-width: 100%; margin-left: 0; }
  .file-summary { gap: .55rem; }
  .file-summary__card { min-height: 0; padding: .9rem; }
  .room-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Project areas are visually separate, not four near-identical white cards. */
.workflow-section, .room-people {
  --section-pad: clamp(1.4rem, 3vw, 2.3rem);
  --section-accent: #35566b;
  --section-tint: #eef3f5;
  --section-line: #c9d7dd;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--section-pad);
  border: 1px solid var(--section-line);
  border-top: 6px solid var(--section-accent);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 43, 57, .065);
  overflow: hidden;
}
#project-checks { --section-accent: #985115; --section-tint: #fff3e5; --section-line: #e8c49b; }
.work-plan-compliance { border: 1px solid #b5ccdc; border-left: 4px solid #1f5d87; border-radius: 14px; padding: clamp(1rem, 3vw, 1.5rem); margin: 1.2rem 0 1.7rem; background: #f4f9fc; }
.work-plan-compliance h4 { margin: .2rem 0 .45rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.work-plan-compliance__intro, .work-plan-compliance__note { max-width: 70ch; line-height: 1.55; }
.council-contact { margin: 1.15rem 0; padding: 1rem; border: 1px solid #9bbbd0; border-radius: 12px; background: #fff; }
.council-contact h5 { margin: 0 0 .55rem; color: #173b59; font-size: 1.05rem; }
.council-contact__authority { margin: .2rem 0 .8rem; font-weight: 750; color: #173b59; }
.council-contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.council-contact__department { display: grid; gap: .4rem; align-content: start; padding: .85rem; border: 1px solid #c9dbe7; border-radius: 9px; background: #f4f9fc; }
.council-contact[hidden], .council-contact__department[hidden] { display: none; }
.council-contact__department h6 { margin: 0; font-size: .95rem; color: #173b59; }
.council-contact a { width: fit-content; color: #164d74; font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.council-contact__note { margin: .7rem 0 0; color: #37566c; font-size: .88rem; line-height: 1.5; }
.council-contact__response, .council-contact__responses { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #c9dbe7; }
.council-contact__response h6, .council-contact__responses h6 { margin: 0; font-size: 1rem; color: #173b59; }
.council-contact__responses p { white-space: pre-wrap; }
@media (max-width: 680px) { .council-contact__grid { grid-template-columns: 1fr; } }
.work-plan-compliance__group { margin-top: 1.2rem; }
.work-plan-compliance__group h5 { margin: 0 0 .55rem; font-size: 1rem; color: #173b59; }
.work-plan-compliance__group summary { padding: .65rem .2rem; cursor: pointer; font-weight: 700; color: #173b59; }
.work-plan-compliance__group summary:hover { color: #a44d2b; }
.work-plan-compliance__item { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .85rem 1rem; margin: .45rem 0; background: #fff; border: 1px solid #c9dbe7; border-radius: 10px; }
.work-plan-compliance__item strong { display: block; font-size: 1rem; }
.work-plan-compliance__item p { margin: .3rem 0 0; line-height: 1.5; }
.work-plan-compliance__item .room-button { flex: none; }
.work-plan-compliance__state { flex: none; font-weight: 700; color: #245475; }
.work-plan-compliance__note { margin: 1rem 0 0; font-size: .9rem; color: #37566c; }
.work-plan-compliance__sources { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.work-plan-compliance__sources a { color: #164d74; font-weight: 700; text-underline-offset: 3px; }
.permission-assessment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.permission-assessment label { display: grid; gap: .35rem; font-weight: 700; color: #173b59; }
.permission-assessment label[hidden] { display: none; }
.permission-assessment select { width: 100%; min-height: 2.8rem; border: 1px solid #9db8ca; border-radius: 8px; background: #fff; color: #173b59; padding: .55rem; font: inherit; }
.permission-assessment__result { grid-column: 1 / -1; background: #fff; border: 2px solid #6e9bb5; border-radius: 12px; padding: 1rem; }
.permission-assessment__result h5 { margin: 0 0 .5rem; font-size: 1.1rem; color: #173b59; }
.permission-assessment__result p { margin: .45rem 0; line-height: 1.5; }
.permission-assessment__statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .85rem; }
.permission-assessment__statuses > div { display: grid; gap: .25rem; padding: .75rem; border-radius: 8px; background: #eaf3fb; color: #173b59; }
.permission-assessment__statuses span { font-weight: 750; }
.permission-assessment__saved, .permission-assessment__form, .permission-assessment__record { margin-top: 1rem; padding: 1rem; border: 1px solid #b9d4e5; border-radius: 10px; background: #fff; }
.permission-assessment__saved p { margin: .4rem 0; }
.permission-assessment__form { display: grid; gap: .75rem; }
.permission-assessment__form h5 { margin: 0; font-size: 1.05rem; }
.permission-assessment__form label { display: grid; gap: .35rem; font-weight: 700; }
.permission-assessment__form :is(input, textarea) { width: 100%; border: 1px solid #9db8ca; border-radius: 8px; padding: .7rem; font: inherit; }
.permission-assessment__form textarea { min-height: 5rem; }
.permission-assessment__record .council-contact__response { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 680px) { .permission-assessment { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .permission-assessment__statuses { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .work-plan-compliance__item { display: block; } .work-plan-compliance__item .room-button, .work-plan-compliance__state { display: inline-block; margin-top: .7rem; } }
#project-stages { --section-accent: #205a80; --section-tint: #eaf4fb; --section-line: #b9d4e5; }
#project-files { --section-accent: #176b5e; --section-tint: #e8f5f0; --section-line: #aad3c5; }
#project-people { --section-accent: #604d7c; --section-tint: #f2eef8; --section-line: #cfc2df; }
.section-head {
  margin: calc(-1 * var(--section-pad)) calc(-1 * var(--section-pad)) 1.5rem;
  padding: clamp(1.4rem, 2.8vw, 2rem) var(--section-pad) clamp(1.35rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--section-line);
  background: var(--section-tint);
}
.section-head .workflow-eyebrow { color: var(--section-accent) !important; }
.section-head h4 {
  max-width: 32ch;
  margin: 0 0 .55rem;
  color: var(--br-ink);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.section-head__description {
  max-width: 62ch;
  margin: 0;
  color: #38525e;
  font-size: 1rem;
  line-height: 1.55;
}
.workflow-section > a { color: var(--section-accent); }
.workflow-section .room-disclosure { border-color: var(--section-line); }
.workflow-section .room-disclosure:hover, .workflow-section .room-disclosure:focus-within { border-color: var(--section-accent); }
.workflow-section .room-disclosure[open] > summary { background: var(--section-tint); }
#project-checks .inspection-summary { background: #fff8f0; border: 1px solid #efd6b7; }
#project-checks .inspection-summary .workflow-eyebrow { color: #985115 !important; }
#project-stages .workflow-empty { background: #f3f9fd; border-color: #c8dfed; }
#project-stages .workflow-empty__number { color: #205a80; background: #dcecf7; }
#project-stages .workflow-empty__link { background: #205a80; }
#project-files .workflow-empty { background: #f1faf6; border-color: #bfe1d4; }
#project-files .workflow-empty__number { color: #176b5e; background: #d5eee4; }
#project-files .workflow-empty__link { background: #176b5e; }
#project-files .file-summary__card { background: #f5fbf8; border-color: #c6e2d8; }
#project-people .room-summary { background: #f7f4fb; }
#project-people .room-team__avatar { background: #604d7c; }
.room-jump { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding: .5rem; background: #e8eef1; }
.room-jump a { min-height: 3.5rem; border: 1px solid transparent; border-top: 4px solid transparent; background: #fff; }
.room-jump a:nth-child(1) { border-top-color: #375b63; }
.room-jump a:nth-child(2) { border-top-color: #985115; }
.room-jump a:nth-child(3) { border-top-color: #205a80; }
.room-jump a:nth-child(4) { border-top-color: #176b5e; }
.room-jump a:nth-child(5) { border-top-color: #604d7c; }
.room-jump a:hover, .room-jump a:focus-visible { border-color: var(--br-action); border-top-width: 4px; background: #fff; }
@media (max-width: 600px) {
  .workflow-section, .room-people { --section-pad: 1.25rem; margin-top: 1.25rem; }
  .section-head { margin-bottom: 1.25rem; }
  .room-jump { gap: .4rem; }
  .room-jump a { padding: .55rem; }
}
#project-conversation { --section-accent: #375b63; --section-tint: #eaf3f4; --section-line: #b7d0d3; }
.room-discussion { margin: 1.15rem 0; }
.room-discussion > h5 { margin: 0 0 1rem; font-size: 1.18rem; }
.room-discussion--inline { border: 1px solid var(--section-line, var(--br-border)); border-radius: 12px; background: #fff; }
.room-discussion--inline > summary { min-height: 48px; padding: .75rem 1rem; cursor: pointer; font-weight: 700; }
.room-discussion--inline[open] > summary { border-bottom: 1px solid var(--section-line, var(--br-border)); }
.room-discussion--inline > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.room-list li > .room-discussion { flex-basis: 100%; width: 100%; margin: .35rem 0 0; }
.room-discussion__item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--br-border); }
.room-discussion__item strong { color: var(--br-ink); }
.room-discussion__item time { color: var(--br-muted); font-size: .875rem; }
.room-discussion__item p { grid-column: 1 / -1; margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.room-discussion__empty { color: var(--br-muted); }
.room-discussion__form { display: grid; gap: .75rem; margin-top: 1rem; }
.room-discussion__form label { display: grid; gap: .4rem; font-weight: 700; }
.room-discussion__form textarea { box-sizing: border-box; width: 100%; min-height: 5.5rem; padding: .8rem; border: 1px solid #a9bfca; border-radius: var(--br-control-radius); background: #fff; color: var(--br-ink); font: inherit; resize: vertical; }
.room-discussion__form .account-button { min-height: 52px; width: fit-content; padding: .7rem 1.3rem; }
@media (max-width: 760px) { .room-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .room-discussion__item { grid-template-columns: 1fr; } .room-discussion__item p { grid-column: 1; } }
.drawing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem; border: 1px solid #bfe1d4; border-radius: 12px; background: #f2faf7; }
.drawing-fields[hidden] { display: none; }
.drawing-fields label { display: grid; gap: .4rem; font-weight: 700; }
.drawing-fields label:nth-child(2) { grid-column: 1 / -1; }
.drawing-fields input { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; padding: .75rem; border: 1px solid #a9bfca; border-radius: var(--br-control-radius); background: #fff; color: var(--br-ink); font: inherit; }
.drawing-register { margin: 1.5rem 0; }
.drawing-register > h5 { margin: 0 0 .9rem; font-size: 1.25rem; }
.drawing-register__card { margin: .75rem 0; padding: 1.15rem; border: 1px solid #bfe1d4; border-radius: 14px; background: #f3faf7; }
.drawing-register__card > strong { display: block; color: var(--br-ink); font-size: 1.06rem; }
.drawing-register__card > p { margin: .45rem 0 1rem; color: var(--br-muted); }
.drawing-register__revision { margin: .6rem 0; padding: .85rem; border: 1px solid #c9ddd4; border-radius: 10px; background: #fff; }
.drawing-register__revision h6 { margin: 0; font-size: 1rem; }
.drawing-register__revision .room-list { margin-bottom: 0; }
@media (max-width: 600px) { .drawing-fields { grid-template-columns: 1fr; } .drawing-fields label:nth-child(2) { grid-column: 1; } }
/* Numbered work stages and Building Control checks remain separate tracks. */
.workflow-card--check { border-left: 5px solid #985115; background: #fffaf4; }
.workflow-card--stage { border-left: 5px solid #205a80; background: #f5faff; }
.workflow-card__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem 1rem; margin-bottom: .85rem; }
.workflow-number { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .75rem; border: 1px solid currentColor; border-radius: 9px; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.workflow-card--check .workflow-number { color: #854713; background: #fff1df; }
.workflow-card--stage .workflow-number { color: #205a80; background: #e9f4fb; }
.workflow-card__header .workflow-card__title { margin: 0; color: var(--br-ink); font-size: 1.2rem; line-height: 1.3; }
.workflow-card__header .workflow-status { margin: 0; padding: .45rem .7rem; border-radius: 999px; font-size: .875rem; font-weight: 750; text-transform: none; white-space: nowrap; }
.workflow-status--neutral { color: #34515c !important; background: #e9f0f2; }
.workflow-status--active { color: #205a80 !important; background: #e0eff8; }
.workflow-status--warning { color: #854713 !important; background: #fff0dc; }
.workflow-status--complete { color: #176b5e !important; background: #e1f2eb; }
.workflow-card__amount { font-weight: 700; }
#project-stages .workflow-empty__number { width: auto; min-width: 4.5rem; padding: 0 .65rem; border-radius: 10px; white-space: nowrap; }
@media (max-width: 700px) {
  .workflow-card__header { grid-template-columns: 1fr auto; }
  .workflow-card__header .workflow-card__title { grid-column: 1 / -1; grid-row: 2; }
  .workflow-card__header .workflow-status { grid-column: 2; grid-row: 1; white-space: normal; text-align: center; }
}

/* One project record: sibling areas share a surface, rhythm and progress rail. */
.room-jump--project {
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
}
.project-board {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid #cbdce2;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 43, 57, .065);
}
.project-board::before {
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: 2.08rem;
  width: 2px;
  background: #dce8ec;
  content: '';
}
.project-board > :is(.workflow-section, .room-people) {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(4.25rem, 5vw, 5.25rem);
  border: 0;
  border-top: 1px solid #dce8ec;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 6rem;
}
.project-board > :first-child { border-top: 0; }
.project-board > :is(.workflow-section, .room-people)::before {
  position: absolute;
  z-index: 1;
  top: 2.1rem;
  left: 1.68rem;
  width: .82rem;
  height: .82rem;
  box-sizing: border-box;
  border: 3px solid var(--section-accent);
  border-radius: 50%;
  background: #fff;
  content: '';
}
.project-board .section-head {
  margin: 0 0 1.5rem;
  padding: 0 0 1.3rem;
  border: 0;
  border-bottom: 1px solid #e2ebee;
  background: transparent;
}
.project-board .section-head h4 { max-width: none; }
.project-board .section-head__description { max-width: 68ch; }
.project-board + .room-local-guide { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 700px) {
  .project-board::before { left: 1.35rem; }
  .project-board > :is(.workflow-section, .room-people) {
    padding: 1.5rem 1rem 1.75rem 3rem;
  }
  .project-board > :is(.workflow-section, .room-people)::before { left: .95rem; top: 1.95rem; }
}

/* Project-specific oversight prompts replace the generic permissions glossary. */
.build-check-route, .build-check-suggestions { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #d5e3ed; border-radius: 14px; background: #f5f9fd; }
.build-check-route { margin: 1.25rem 0 1rem; }
.build-check-route > strong, .build-check-suggestions > strong { display: block; color: #19364e; font-size: 1.05rem; }
.build-check-route > p, .build-check-suggestions > p { max-width: 72ch; margin: .5rem 0 0; color: #455d6a; line-height: 1.55; }
.build-check-route__links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-top: 1rem; }
.build-check-route__links a { display: inline-flex; align-items: center; min-height: 40px; color: #174367; font-weight: 700; text-underline-offset: .2em; }
.build-check-suggestions { background: #fff; }
.build-check-suggestions__filter { display: grid; gap: .35rem; max-width: 19rem; margin-top: 1.1rem; color: #19364e; font-weight: 700; }
.build-check-suggestions__filter select { min-height: 46px; padding: .55rem .8rem; border: 1px solid #b9ccda; border-radius: 10px; background: #fff; color: #19364e; font: inherit; }
.build-check-suggestions__list { display: grid; gap: .65rem; margin-top: 1rem; }
.build-check-suggestions__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid #d5e3ed; border-radius: 11px; background: #f8fbfd; }
.build-check-suggestions__item strong { display: block; color: #19364e; }
.build-check-suggestions__item p { margin: .2rem 0 0; color: #455d6a; line-height: 1.45; }
.build-check-suggestions__item button { flex: 0 0 auto; }
@media (max-width: 620px) { .build-check-suggestions__item { align-items: stretch; flex-direction: column; } }
.room-local-guide--work { padding: clamp(1.5rem, 3vw, 2.5rem); }
.room-local-guide--work h4 { margin-bottom: .6rem; }
.room-local-guide__intro { max-width: 65ch; margin: 0 0 1.5rem; color: var(--br-muted); }
.room-local-guide--work .room-local-guide__grid { gap: 0; }
.room-local-guide--work .room-local-guide__grid article {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--br-border);
}
.room-local-guide__number { color: #985115; font-size: .95rem; font-weight: 800; }
.room-local-guide--work .room-local-guide__grid h5 { margin: 0 0 .4rem; font-size: 1.08rem; }
.room-local-guide--work .room-local-guide__grid p { max-width: 72ch; margin: 0; font-size: 1rem; }
.room-local-guide__action { display: grid; gap: .5rem; margin: 1.5rem 0 1rem; }
.room-local-guide__action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  padding: .65rem 1.15rem;
  border-radius: var(--br-control-radius);
  background: var(--br-action);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.room-local-guide__action a:hover, .room-local-guide__action a:focus-visible { background: #24465b; }
.room-local-guide__action p { max-width: 72ch; margin: 0; color: var(--br-muted); font-size: .9rem; }
@media (max-width: 600px) {
  .room-local-guide--work .room-local-guide__grid article { gap: .65rem; }
  .room-local-guide__action a { width: 100%; box-sizing: border-box; }
}

/* Signed-in project command centre. Every summary value is drawn from the project. */
.is-signed-in .account-main { width: min(1440px, calc(100% - clamp(1rem, 4vw, 4rem))); }
.is-signed-in .dashboard-live { padding: 0; }
.is-signed-in .account-header { --site-nav-background: #173552; --site-nav-foreground: #fff; --site-nav-border: #31516e; background: #173552; border-bottom-color: #31516e; }
.is-signed-in .account-header :is(.brand, .site-nav, .menu-toggle) { color: #fff; }
.is-signed-in .account-header .brand b { color: #dda071; }
.is-signed-in .account-header .site-nav .action { border: 1px solid #7897af; background: transparent; color: #fff; }
.is-signed-in .account-header .site-nav .action:hover { background: #2b4b69; }
.dashboard-live__heading { padding: .2rem 0; }
.dashboard-live__heading h2 { font-size: 1.25rem; }
.dashboard-live__welcome { margin: .1rem 0 .6rem; }
.project-room { margin-top: .75rem; }
.project-room .room-hero {
  min-height: 116px;
  box-sizing: border-box;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid #cfdce7;
  border-radius: 18px;
  background: #fff;
  color: var(--br-ink);
  box-shadow: var(--br-shadow);
}
.project-room .room-hero .account-label { color: #365975; }
.project-room .room-hero h3 { color: var(--br-ink); }
.project-room .room-hero p:last-child { color: var(--br-muted); }
.project-room .room-hero__status { background: #edf4fa; color: #194366; }
.project-room .room-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 1.2rem;
  padding: .25rem;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: none;
}
.project-room .room-path h4 { display: none; }
.project-room .room-path__step { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); align-items: center; gap: .75rem; min-height: 4.4rem; padding: .65rem .8rem; border: 0; }
.project-room .room-path__step:not(:last-child)::after { display: none; }
.project-room .room-path__step + .room-path__step { border-left: 1px solid #d8e3ed; border-radius: 0; }
.project-room .room-path__step.is-current { background: #edf5fd; }
.project-room .room-path__number { position: relative; z-index: 1; width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%; background: #e1e9f2; color: #496174; font-size: .95rem; }
.project-room .room-path__step.is-done .room-path__number, .project-room .room-path__step.is-current .room-path__number { background: #183f68; color: #fff; }
.project-room .room-path__step strong { color: #18324b; font-size: 1rem; }
.project-room .room-path__step small { font-size: .83rem; }
.project-room .room-overview { display: block; margin: 0; }
.project-dashboard__columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 1rem; }
.project-dashboard__primary, .project-dashboard__side { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.project-dashboard__panel, .project-dashboard__side .room-pulse, .project-dashboard__primary .room-next {
  border: 1px solid #d4e0eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 43, 57, .045);
}
.project-dashboard__primary .room-next { min-height: 200px; margin: 0; padding: clamp(1.3rem, 2.5vw, 2rem); background: #eff6ff; color: var(--br-ink); }
.project-dashboard__primary .room-next .account-label { color: #244b70; }
.project-dashboard__primary .room-next h4 { max-width: 28ch; color: var(--br-ink); font-size: clamp(1.45rem, 2.4vw, 2rem); }
.project-dashboard__primary .room-next__link { min-height: 52px; margin-top: .4rem; background: #a85428; color: #fff; font-size: 1rem; font-weight: 750; }
.project-dashboard__primary .room-next__link:hover, .project-dashboard__primary .room-next__link:focus-visible { background: #874019; color: #fff; }
.project-dashboard__side .room-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; }
.project-dashboard__side .room-pulse > div { min-width: 0; min-height: 145px; padding: 1.1rem; border: 0; border-radius: 0; box-shadow: none; }
.project-dashboard__side .room-pulse > div { display: flex; flex-direction: column; justify-content: center; }
.project-dashboard__side .room-pulse > div + div { border-left: 1px solid #dce7ef; }
.project-dashboard__side .room-pulse > div:last-child { grid-column: auto; }
.project-dashboard__side .room-pulse strong { color: #183f68; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.project-dashboard__side .room-pulse span { font-size: .88rem; }
.project-dashboard__side .room-pulse small { font-size: .78rem; }
.project-dashboard__panel { padding: clamp(1.2rem, 2vw, 1.6rem); }
.project-dashboard__panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .7rem; }
.project-room .project-dashboard__panel-head h4 { margin: 0; color: #18324b; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.project-dashboard__panel-head a, .project-dashboard__empty a { color: #174d82; font-weight: 700; text-decoration: none; }
.project-dashboard__panel-head a:hover, .project-dashboard__empty a:hover { text-decoration: underline; }
.project-dashboard__timeline-row { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .95rem .35rem; border-top: 1px solid #e0e8ef; color: var(--br-ink); text-decoration: none; }
.project-dashboard__timeline-row.is-current { margin-inline: -.4rem; padding-inline: .75rem; border-radius: 10px; background: #eef6ff; }
.project-dashboard__timeline-row:hover { background: #f3f8fc; }
.project-dashboard__timeline-number { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: #dce8f4; color: #173f69; font-weight: 800; }
.project-dashboard__timeline-row.is-current .project-dashboard__timeline-number { background: #183f68; color: #fff; }
.project-dashboard__timeline-row > span:nth-child(2) { display: grid; gap: .12rem; }
.project-dashboard__timeline-row strong { font-size: 1rem; }
.project-dashboard__timeline-row small { color: var(--br-muted); font-size: .85rem; }
.project-dashboard__status { padding: .3rem .55rem; border-radius: 999px; background: #e9f1f8; color: #234e73; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.project-dashboard__empty { padding: 1.15rem 0 .4rem; border-top: 1px solid #e0e8ef; }
.project-dashboard__empty p { max-width: 55ch; margin: .3rem 0 .65rem; }
.project-dashboard__doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.project-dashboard__doc-grid a { display: grid; gap: .35rem; min-width: 0; padding: 1rem; border: 1px solid #d8e4ed; border-radius: 10px; color: #18324b; text-decoration: none; }
.project-dashboard__doc-grid a:hover { border-color: #376b9b; background: #f5f9fd; }
.project-dashboard__doc-grid strong { font-size: .95rem; }
.project-dashboard__doc-grid span { color: var(--br-muted); font-size: .85rem; }
.project-dashboard__team-list > div { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem 0; border-top: 1px solid #e0e8ef; }
.project-dashboard__team-list strong { font-size: .95rem; }
.project-dashboard__identity { display: grid; gap: .15rem; min-width: 0; }
.project-dashboard__identity strong, .project-dashboard__identity small { overflow-wrap: anywhere; }
.project-dashboard__identity small { color: var(--br-muted); font-size: .83rem; }
.project-dashboard__avatar { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: #e1eaf4; color: #173f69; font-weight: 800; }
.project-dashboard__activity > a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #e0e8ef; color: var(--br-ink); text-decoration: none; }
.project-dashboard__activity > a:hover strong { text-decoration: underline; }
.project-dashboard__activity > a strong { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; font-weight: 650; }
.project-dashboard__activity > a small { flex: none; color: var(--br-muted); }
.project-dashboard__activity > p { margin: .5rem 0 0; }
.project-room .room-jump--project { margin-top: 1.5rem; }
@media (max-width: 980px) { .project-room .room-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-room .room-path__step:nth-of-type(3) { border-left: 0; } .project-room .room-path__step:nth-of-type(n+3) { border-top: 1px solid #d8e3ed; } .project-dashboard__columns { grid-template-columns: 1fr; } .project-dashboard__side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-dashboard__side .room-pulse { grid-column: 1 / -1; } }
@media (max-width: 650px) {
  .project-room .room-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-room .room-path__step::after { display: none; }
  .project-room .room-path__step:nth-of-type(3) { border-left: 0; }
  .project-room .room-path__step:nth-of-type(n+3) { border-top: 1px solid #d8e3ed; }
  .project-dashboard__side { grid-template-columns: 1fr; }
  .project-dashboard__side .room-pulse { grid-column: auto; }
  .project-dashboard__doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-dashboard__timeline-row { grid-template-columns: 2.7rem minmax(0, 1fr); }
  .project-dashboard__timeline-row .project-dashboard__status { grid-column: 2; justify-self: start; }
}
@media (max-width: 420px) { .project-dashboard__side .room-pulse { grid-template-columns: 1fr; } .project-dashboard__side .room-pulse > div { min-height: 0; } .project-dashboard__side .room-pulse > div + div { border-left: 0; border-top: 1px solid #dce7ef; } }
