@font-face {
  font-family: Archivo;
  src: url("../public/fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cal;
  src: url("../public/fonts/CalSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --bg: #0b0e11;
  --panel: #12181c;
  --raised: #182126;
  --line: #35464e;
  --text: #f4f6f7;
  --muted: #afbcc4;
  --cyan: #48e0db;
  --orange: #ff643d;
  --amber: #edc17d;
  --radius: 7px;
  font-family: Archivo, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: dark;
}

/* Category board uses the existing Blueprint surfaces and type system. */
.category-board-page {
  max-width: 1576px;
  margin: auto;
  padding: 34px 32px 42px;
}
.cb-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.cb-heading h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.12;
}
.cb-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}
.cb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cb-setup-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  max-width: 1150px;
  margin: 42px auto;
}
.cb-field {
  display: grid;
  gap: 9px;
  font-size: 13px;
  margin: 0 0 20px;
}
.cb-field select,
.cb-field input:not([type="checkbox"]):not([type="radio"]),
.cb-perspective select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #607780;
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  min-width: 0;
}
.cb-field input::file-selector-button {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  margin-right: 12px;
}
.cb-library .cb-library-expand {
  display: none;
}
.cb-show-all {
  margin-top: 20px;
}
.cb-auto-drop {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 24px;
  margin-bottom: 20px;
  border: 2px dashed var(--cyan);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--cyan);
}
.cb-reset-notice {
  margin: 0;
  padding: 12px 20px;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
/* Keep the native select contract, including the fallback OS picker. */
.cb-organization {
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
}
.cb-organization-control {
  position: relative;
  display: block;
  min-width: 0;
}
.cb-organization select {
  appearance: none;
  min-height: 64px;
  padding: 16px 56px 16px 66px;
  border-radius: var(--radius);
  background: var(--raised);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.cb-organization select:hover,
.cb-organization select:focus-visible,
.cb-organization select:open {
  border-color: var(--cyan);
  background: var(--panel);
}
.cb-organization-icon,
.cb-organization-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 5px;
}
.cb-organization-icon {
  left: 12px;
  width: 40px;
  height: 40px;
  background: #152a2c;
}
.cb-organization-chevron {
  right: 12px;
  width: 30px;
  height: 30px;
}
.cb-organization-chevron .icon {
  width: 20px;
  height: 20px;
  transition: rotate 140ms ease;
}
.cb-organization-control:has(select:open) .cb-organization-chevron .icon {
  rotate: 180deg;
}
@supports (appearance: base-select) {
  .cb-organization select,
  .cb-organization select::picker(select) {
    appearance: base-select;
  }
  .cb-organization select::picker-icon {
    display: none;
  }
  .cb-organization select::picker(select) {
    margin-block: 8px;
    padding: 6px;
    border: 1px solid #607780;
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
  }
  .cb-organization option {
    min-height: 48px;
    padding: 12px 14px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
  }
  .cb-organization option:checked {
    background: #152a2c;
    color: var(--cyan);
  }
  .cb-organization option:hover,
  .cb-organization option:focus-visible {
    background: var(--raised);
    border-color: var(--cyan);
    outline: none;
  }
  .cb-organization option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--cyan);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-organization select,
  .cb-organization-chevron .icon {
    transition: none;
  }
}
@media (forced-colors: active) {
  .cb-organization select {
    appearance: auto;
    padding: 14px;
    border-color: ButtonText;
  }
  .cb-organization-icon,
  .cb-organization-chevron {
    display: none;
  }
}
.cb-people {
  border: 0;
  padding: 0;
  margin: 26px 0;
}
.cb-people legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.cb-people label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 8px;
  background: var(--panel);
}
.cb-people label:has(input:checked) {
  border-color: var(--cyan);
  background: #152a2c;
}
.cb-people input {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
}
.cb-people .icon {
  width: 25px;
  height: 25px;
}
.cb-setup-areas {
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}
.cb-area-choices {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  max-height: 270px;
  overflow: auto;
}
.cb-area-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
#board-start {
  width: 100%;
}
.cb-error {
  color: #ffab93;
  margin: 10px 0;
}
.cb-map-preview {
  background: var(--panel);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}
.cb-map-preview h2 {
  font-size: 19px;
  margin-bottom: 24px;
}
.cb-mini-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cb-mini-board > div {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 12px;
  min-height: 106px;
  border-radius: 4px;
}
.cb-mini-board .icon {
  width: 22px;
  height: 22px;
  display: block;
  margin-bottom: 12px;
}
.cb-mini-board strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}
.cb-scope-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cb-scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}
.cb-scope-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  padding: 8px 10px;
  min-height: 36px;
  font-size: 12px;
}
.cb-perspective {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  max-width: 250px;
}
.cb-perspective select {
  max-width: 190px;
}
.cb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
}
.cb-toolbar .cb-library-toggle-mobile {
  display: none;
}
.cb-view-notice .text-button {
  flex-shrink: 0;
  white-space: nowrap;
}
.cb-view-notice {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.cb-segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
  gap: 3px;
}
.cb-segmented button {
  background: none;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  padding: 11px 17px;
  min-height: 40px;
  font-size: 12px;
}
.cb-segmented button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cb-layout.with-library {
  grid-template-columns: 230px minmax(0, 1fr);
}
.cb-board-main {
  min-width: 0;
}
.cb-library {
  background: var(--panel);
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 15px;
  max-height: calc(100dvh - 30px);
  overflow: auto;
}
.cb-library[hidden] {
  display: none;
}
.cb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cb-section-head h2 {
  font-size: 18px;
}
.cb-section-head .text-button {
  min-height: 32px;
  padding: 6px;
}
#board-search {
  width: 100%;
  padding: 12px;
  margin: 14px 0 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.cb-library-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 53px;
  margin: 0 0 7px;
  padding: 11px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
  font-size: 12px;
}
.cb-library-item:hover {
  border-color: var(--cyan);
  background: var(--raised);
}
.cb-library-item .icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.cb-library-item > span:first-of-type {
  flex: 1;
  line-height: 1.4;
}
.cb-plus {
  font-size: 21px;
  color: var(--cyan);
}
.cb-key {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: -5px 0 12px;
}
.cb-key > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.cb-key .text-button {
  margin-left: auto;
  font-size: 11px;
}
.cb-current-key:before,
.cb-planned-key:before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 9px;
  border: 1px solid #609a96;
  background: #16312f;
}
.cb-planned-key:before {
  border-style: dashed;
  border-color: var(--cyan);
  background: transparent;
}
.cb-configure-key,
.cb-configure {
  color: #ffab93;
}
.cb-configure-key:before,
.cb-configure:after {
  content: "→";
}
#category-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cb-category {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 15px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.cb-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cb-category-head .icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.cb-category-head h2 {
  font-size: 18px;
  line-height: 1.25;
}
.cb-category-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 11px;
  align-items: center;
}
.cb-category-meta .text-button {
  font-size: 11px;
  min-height: 28px;
  padding: 0;
}
.cb-category-meta:has(> span:first-child:empty):has(> span:last-child:empty) {
  display: none;
}
.cb-concern {
  color: var(--amber);
}
.cb-records,
.cb-suggestions {
  display: grid;
  gap: 8px;
}
.cb-record {
  display: block;
  width: 100%;
  padding: 12px;
  background: #17302e;
  border: 1px solid #476e6b;
  border-radius: 4px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  animation: cb-placed 0.25s ease;
}
.cb-record.planned {
  border: 1px dashed #66b8b5;
  background: transparent;
}
.cb-record:hover {
  border-color: var(--cyan);
}
.cb-record-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  overflow-wrap: anywhere;
}
.cb-state-tag {
  color: var(--cyan);
  font-size: 10px;
  flex: none;
}
.cb-record-summary {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.cb-configure {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
}
.cb-suggestions {
  margin-top: 8px;
}
.cb-suggested {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  background: #101719;
  border: 1px dashed #53656b;
  border-radius: 4px;
  color: #bdcbd1;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}
.cb-suggested > span {
  font-size: 20px;
  color: var(--cyan);
}
.cb-suggested:hover {
  border-color: var(--cyan);
  background: #172b2d;
  color: var(--text);
}
.cb-category-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  margin-top: auto;
  min-height: 45px;
}
.cb-category-bottom .text-button {
  font-size: 11px;
  min-height: 36px;
}
.cb-pending {
  padding: 12px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: #15282b;
}
.cb-pending > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 8px;
}
.cb-pending .cb-actions {
  margin-top: 8px;
  flex-wrap: nowrap;
}
.cb-pending .secondary {
  font-size: 12px;
  flex: 1;
  padding: 10px 6px;
  min-height: 40px;
}
.cb-footnote {
  color: var(--muted);
  font-size: 11px;
  margin: 17px 0;
  line-height: 1.5;
}
.cb-deeper {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}
.cb-deeper .cb-actions {
  margin-top: 12px;
}
.cb-category.drag-eligible {
  border-color: var(--cyan);
  background: #122629;
}
.cb-category.drag-over {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  background: #173638;
}
.cb-review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.cb-review > p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.cb-review ol {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.cb-review li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cb-review h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.cb-review li p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}
.cb-review li span,
.cb-review small {
  font-size: 12px;
  color: var(--muted);
}
.cb-editor-context {
  margin-bottom: 22px;
  font-size: 13px;
}
.cb-editor-context strong {
  color: var(--cyan);
}
.cb-editor-context p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}
.cb-mfa-group {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  margin: 10px 0;
}
.cb-mfa-group summary {
  padding: 13px 0;
  font-size: 14px;
}
.cb-coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.cb-editor-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0;
}
.cb-editor-tools {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cb-editor-tools .text-button {
  justify-content: start;
}
.cb-detail-progress {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  margin: 0;
}
.cb-detail-progress[data-dirty="true"] {
  color: var(--cyan);
}
.cb-operating-detail {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.cb-operating-detail summary {
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
}
.cb-operating-detail .secondary {
  width: 100%;
}
.cb-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--panel);
}
.cb-next-step > div {
  min-width: 0;
}
.cb-next-step strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.cb-next-label {
  color: var(--cyan);
  font-size: 12px;
  margin-right: 12px;
}
.cb-next-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.cb-next-step button {
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .cb-next-step {
    align-items: start;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .cb-next-step button {
    min-height: 44px;
  }
}
#dialog.board-editor {
  width: min(600px, calc(100vw - 28px));
}
#dialog.board-editor .dialog-header {
  padding: 16px 22px;
}
#dialog.board-editor .dialog-header h2 {
  font-size: 25px;
  line-height: 1.2;
}
#dialog.board-editor .dialog-actions {
  padding: 12px 22px;
}
@keyframes cb-placed {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1260px) {
  .cb-layout.with-library {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 16px;
  }
  #category-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb-setup-layout {
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .category-board-page {
    padding: 18px 16px 28px;
  }
  .cb-heading {
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }
  .cb-setup-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 24px auto;
  }
  .cb-map-preview {
    padding: 18px;
  }
  .cb-mini-board > div {
    padding: 12px 8px;
    min-height: 90px;
  }
  .cb-mini-board strong {
    font-size: 11px;
  }
  .cb-layout.with-library {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .cb-board-main,
  .cb-library {
    width: 100%;
  }
  .cb-library {
    position: static;
    max-height: 265px;
    overflow: auto;
    padding: 14px;
  }
  .cb-toolbar .cb-library-toggle-desktop,
  .cb-library:not(.is-expanded) {
    display: none;
  }
  .cb-toolbar .cb-library-toggle-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .cb-library .cb-section-head h2 {
    display: block;
  }
  .cb-library .cb-library-expand {
    display: none;
  }
  .cb-library:not(.is-expanded) #board-library-content {
    display: none;
  }
  .cb-library:not(.is-expanded) .cb-section-head > button:last-child {
    display: none;
  }
  .cb-heading {
    gap: 10px;
    margin-bottom: 14px;
  }
  .cb-heading h1 {
    font-size: 27px;
  }
  .cb-heading .eyebrow {
    margin-bottom: 5px;
  }
  .cb-scope-bar {
    gap: 8px;
    padding: 10px 0;
  }
  .cb-scope-chips {
    flex-basis: 100%;
    flex-wrap: nowrap;
    overflow: auto;
  }
  .cb-scope-chip {
    flex-shrink: 0;
  }
  .cb-view-notice {
    align-items: start;
  }
  .cb-toolbar {
    margin: 10px 0;
    gap: 8px;
  }
  .cb-segmented button {
    padding: 8px 10px;
  }
  .cb-library-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 140px;
    overflow: auto;
    gap: 7px;
  }
  .cb-library-item {
    margin: 0;
    font-size: 11px;
  }
  .cb-toolbar {
    flex-wrap: wrap;
  }
  .cb-perspective {
    flex: 1;
    width: auto;
    max-width: none;
  }
  .cb-perspective select {
    max-width: none;
  }
  .cb-key {
    gap: 12px;
  }
  .cb-key .text-button {
    margin-left: 0;
  }
  .cb-category-head h2 {
    font-size: 17px;
  }
  .cb-review {
    padding: 18px;
  }
  .cb-review li {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 560px) {
  #category-board {
    grid-template-columns: 1fr;
  }
  .cb-heading .cb-actions {
    width: 100%;
  }
  .cb-heading .cb-actions button {
    flex: 1;
    font-size: 12px;
  }
  .cb-coverage-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .cb-mini-board {
    grid-template-columns: 1fr 1fr;
  }
  .cb-library-list {
    grid-template-columns: 1fr;
    max-height: 112px;
  }
  .cb-library {
    max-height: 245px;
  }
  .cb-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px), (max-height: 650px) {
  #dialog.board-editor {
    inset: 0;
    margin: 0;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  #dialog.board-editor .dialog-header {
    padding: 12px 16px;
  }
  #dialog.board-editor .dialog-header h2 {
    font-size: 21px;
  }
  #dialog.board-editor .dialog-body {
    padding: 15px 16px;
  }
  #dialog.board-editor .dialog-actions {
    padding: 9px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-record,
  .cb-category {
    animation: none;
    transition: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--cyan);
  text-underline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Cal, Archivo, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.55;
}
h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.875rem);
  line-height: 1.08;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
}
input {
  accent-color: var(--cyan);
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 15px;
  background: var(--orange);
  color: var(--bg);
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-button:hover {
  color: var(--text);
}
.text-button.accent {
  color: var(--cyan);
}
.header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
}
.brand img {
  width: 164px;
  height: auto;
  display: block;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  font-size: 1.1rem;
  font-weight: 600;
}
.steps {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0 0 0 auto;
  padding: 0;
  width: 490px;
}
.steps li {
  position: relative;
  flex: 1;
}
.steps li:after {
  content: "";
  height: 2px;
  background: var(--line);
  position: absolute;
  bottom: 7px;
  left: 14px;
  right: -10px;
  z-index: 0;
}
.steps li:last-child:after {
  display: none;
}
.steps button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0 12px 23px 0;
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 44px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.steps button:after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #788a95;
  bottom: 3px;
  left: 4px;
  transition: background 150ms;
}
.steps button[aria-current] {
  color: var(--cyan);
}
.steps button[aria-current]:after,
.steps .visited button:after {
  background: var(--cyan);
}
.steps .visited:after {
  background: var(--cyan);
  transition: background 180ms;
}
.help-button {
  padding: 8px;
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
}
.prototype-strip {
  font-size: 0.75rem;
  min-height: 29px;
  background: var(--panel);
  color: var(--muted);
  padding: 6px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.prototype-strip button {
  font: inherit;
  color: var(--muted);
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.environment {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100dvh - 206px);
}
.people-rail {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 30px 26px;
}
.sector-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}
.sector-select {
  width: 100%;
  padding: 14px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 50px;
}
.people-rail section {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 28px;
}
.people-rail h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.people-rail .hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 18px;
}
.person-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  margin: 9px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 54px;
  cursor: pointer;
}
.person-choice:has(input:checked) {
  border-color: var(--cyan);
  background: #142c30;
}
.person-choice:has(input:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.person-choice input {
  width: 20px;
  height: 20px;
  margin: 0 0 0 auto;
}
.person-choice .icon {
  width: 27px;
  height: 27px;
}
.question {
  padding: 0;
  margin: 0;
  border: 0;
}
.question legend {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.radio-stack {
  display: grid;
  gap: 8px;
}
.radio-stack label {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 49px;
  cursor: pointer;
}
.radio-stack label:has(input:checked) {
  background: #142c30;
  border-color: var(--cyan);
}
.radio-stack input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.rail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.rail-actions button {
  font-size: 0.8125rem;
}
.workspace {
  padding: 28px 30px 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.intro p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 70ch;
}
.canvas {
  margin-top: 46px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.canvas-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sample-tag {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.canvas-hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 9px;
}
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  min-height: 230px;
  flex: 1;
  gap: 24px;
}
.scope-group {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  min-width: 0;
}
.scope-group:last-child {
  border: 0;
  padding-right: 0;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.group-title span {
  color: var(--muted);
  font-weight: 400;
}
.block-list {
  display: grid;
  gap: 12px;
  align-content: start;
}
.scope-block {
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: #102326;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 16px;
  min-height: 64px;
  min-width: 0;
}
.scope-block > span {
  font-weight: 500;
  line-height: 1.35;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.scope-block .icon {
  width: 28px;
  height: 28px;
}
.scope-block button {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 9px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scope-block button .icon {
  width: 19px;
  height: 19px;
}
.scope-block button:hover {
  background: var(--raised);
}
.empty-group {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 22px 0;
  line-height: 1.6;
  max-width: 25ch;
}
.canvas.drag-over {
  outline: 2px dashed var(--cyan);
  outline-offset: 8px;
}
.library {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.library-heading h3 {
  font-size: 1.2rem;
}
.library-heading span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.library-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.add-block {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition:
    border-color 140ms,
    background 140ms,
    transform 140ms;
}
.add-block:hover {
  border-color: var(--cyan);
  background: var(--raised);
  transform: translateY(-2px);
}
.add-block strong {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}
.add-block small {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.75rem;
}
.more-blocks {
  margin-top: 12px;
}
.more-blocks summary {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 10px 0;
}
.more-blocks .library-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.inline-choice {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.inline-choice label {
  position: relative;
  cursor: pointer;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.inline-choice label:has(input:checked) {
  border-color: var(--cyan);
  background: #142c30;
}
.inline-choice input {
  margin: 0;
  width: 16px;
  height: 16px;
}
.entering {
  animation: block-in 180ms ease-out;
}
.revealed {
  animation: reveal 160ms ease-out;
}
@keyframes block-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.action-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 3;
  min-height: 94px;
}
.action-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.action-summary strong {
  font-size: 1.15rem;
}
.action-summary span {
  color: var(--muted);
  font-size: 0.875rem;
}
.action-controls {
  display: flex;
  gap: 14px;
  align-items: center;
}
.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 15px 22px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.primary {
  background: var(--orange);
  color: var(--bg);
}
.primary .icon {
  filter: brightness(0);
}
.primary:hover {
  background: #ff805f;
}
.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.secondary:hover {
  border-color: var(--muted);
  background: var(--raised);
}
.next {
  min-width: 285px;
}
.page {
  max-width: 1320px;
  margin: auto;
  padding: 38px 34px 44px;
  min-height: calc(100dvh - 206px);
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
}
.page-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 66ch;
  margin-top: 13px;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 38px;
}
.form-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.form-section:first-child {
  padding-top: 0;
  border: 0;
}
.form-section h2 {
  margin-bottom: 19px;
  font-size: 1.5rem;
}
.form-section p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.select-field {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}
.select-field select {
  display: block;
  margin-top: 9px;
  width: 100%;
  min-height: 49px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--text);
}
.aside-note {
  background: var(--panel);
  padding: 26px;
  border-radius: var(--radius);
  align-self: start;
}
.aside-note h2 {
  font-size: 1.5rem;
}
.aside-note p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.aside-note .suggestion {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 20px 0 10px;
}
.tier-list {
  display: grid;
  gap: 8px;
}
.tier-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: var(--radius);
  cursor: pointer;
}
.tier-option:has(input:checked) {
  border-color: var(--cyan);
  background: #142c30;
}
.tier-number {
  font-family: Cal, sans-serif;
  font-size: 1.6rem;
  color: var(--muted);
}
.tier-option strong {
  display: block;
  font-weight: 600;
}
.tier-option small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}
.tier-option input {
  width: 20px;
  height: 20px;
}
.insurance-box {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 24px;
}
.insurance-box h3 {
  font-size: 1.15rem;
}
.insurance-box p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.insurance-box ul {
  padding-left: 19px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.method-note {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 18px;
}
.protection-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}
.cap-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}
.cap-nav button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  min-height: 52px;
  text-align: left;
  padding: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.cap-nav button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
}
.cap-nav button:hover {
  background: var(--panel);
}
.state-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--muted);
}
.state-dot.gap,
.state-dot.partial {
  background: var(--amber);
}
.state-dot.meets {
  background: var(--cyan);
}
.cap-detail {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  min-width: 0;
}
.cap-detail h2 {
  font-size: 1.7rem;
}
.cap-description {
  color: var(--muted);
  margin: 12px 0 20px;
  max-width: 66ch;
}
.declaration-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.declaration-shortcuts button {
  min-height: 42px;
  font-size: 0.8125rem;
  padding: 10px 14px;
}
.criteria-list {
  border-top: 1px solid var(--line);
}
.criterion-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.criterion-row legend {
  float: left;
  max-width: 55%;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.criterion-row .inline-choice {
  margin-left: auto;
}
.status-panel {
  padding: 22px;
  background: var(--panel);
  margin-top: 24px;
  border-radius: var(--radius);
}
.status-label {
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--amber);
}
.status-label.meets {
  color: var(--cyan);
}
.status-label.unknown {
  color: var(--muted);
}
.status-panel p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 10px;
}
.scope-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
}
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.chip {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 4px;
  line-height: 1.3;
}
.chip.baseline {
  color: var(--amber);
}
.sources {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.8125rem;
}
.cap-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 18px;
}
.empty-message {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.plan-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-toolbar button {
  font-size: 0.875rem;
}
.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.plan-summary > div {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.plan-summary > div:last-child {
  border: 0;
}
.plan-summary strong {
  display: block;
  font-family: Cal, sans-serif;
  font-size: 2.25rem;
  margin-top: 8px;
}
.plan-summary span {
  color: var(--muted);
  font-size: 0.875rem;
}
.comparison {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: fit-content;
  margin: 24px 0;
}
.comparison button {
  background: none;
  border: 0;
  padding: 12px 18px;
  min-height: 48px;
  color: var(--muted);
  font-weight: 500;
}
.comparison button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--cyan);
}
.plan-context {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 12px 0 24px;
  line-height: 1.6;
}
.finding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.finding-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.finding h3 {
  font-size: 1.25rem;
}
.finding p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 80ch;
}
.finding-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.finding-actions button {
  font-size: 0.875rem;
}
.action-copy {
  margin-top: 10px !important;
  color: var(--text) !important;
}
.planned-label {
  color: var(--cyan);
  font-size: 0.8125rem;
  display: block;
  margin-top: 8px;
}
.plan-disclosure {
  margin-top: 30px;
  padding: 22px;
  background: var(--panel);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.plan-disclosure strong {
  color: var(--text);
}
.plan-disclosure p + p {
  margin-top: 10px;
}
.print-only {
  display: none;
}
.print-actions {
  margin-top: 30px;
}
.print-actions table {
  width: 100%;
  border-collapse: collapse;
}
.print-actions td,
.print-actions th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.app-footer button {
  font-size: 0.8125rem;
}
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 20px;
  z-index: 9;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
  font-size: 0.875rem;
}
.toast.error {
  border-color: var(--amber);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(620px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: rgb(0 0 0 / 0.75);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-header h2 {
  font-size: 1.7rem;
}
.dialog-close {
  border: 0;
  background: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dialog-body p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.dialog-body ul {
  color: var(--muted);
  font-size: 0.9375rem;
  padding-left: 20px;
  line-height: 1.7;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.file-input {
  display: none;
}
@media (min-width: 1600px) {
  .environment {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .workspace {
    padding: 40px 48px;
  }
  .people-rail {
    padding: 38px 30px;
  }
  .canvas {
    margin-top: 50px;
  }
  .columns {
    min-height: 300px;
  }
}
@media (max-width: 1150px) {
  .header {
    padding: 12px 22px;
  }
  .brand {
    gap: 16px;
  }
  .brand img {
    width: 140px;
  }
  .brand span {
    padding-left: 16px;
  }
  .steps {
    width: 430px;
  }
  .environment {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .people-rail {
    padding: 26px 18px;
  }
  .workspace {
    padding: 28px 24px;
  }
  .columns {
    gap: 14px;
  }
  .scope-group {
    padding-right: 14px;
  }
  .scope-block {
    padding: 8px;
    gap: 7px;
  }
  .scope-block .icon {
    width: 22px;
  }
  .scope-block > span {
    font-size: 0.8125rem;
  }
  .library-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-grid {
    gap: 24px;
  }
  .criterion-row {
    display: block;
  }
  .criterion-row legend {
    float: none;
    max-width: none;
    margin-bottom: 12px;
  }
  .criterion-row .inline-choice {
    margin: 0;
  }
  .page {
    padding: 32px 24px;
  }
  .finding {
    grid-template-columns: 1fr;
  }
  .finding-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 850px) {
  .header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }
  .brand {
    margin-right: auto;
  }
  .steps {
    order: 3;
    width: 100%;
    margin: 6px 0 0;
  }
  .steps button {
    font-size: 0.8125rem;
  }
  .prototype-strip {
    padding: 7px 20px;
  }
  .environment {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scope-group {
    border: 0;
    padding-right: 0;
  }
  .block-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-title {
    margin-bottom: 10px;
  }
  .scope-block > span {
    font-size: 0.875rem;
  }
  .canvas {
    margin-top: 30px;
  }
  .library-items,
  .more-blocks .library-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-heading {
    align-items: start;
  }
  .library-heading span {
    display: none;
  }
  .action-bar {
    padding: 16px 20px;
    gap: 16px;
  }
  .action-summary span {
    display: none;
  }
  .action-summary strong {
    font-size: 1rem;
  }
  .next {
    min-width: 0;
  }
  .primary,
  .secondary {
    padding: 13px 17px;
    font-size: 0.9375rem;
    gap: 12px;
  }
  .page-grid {
    grid-template-columns: 1fr;
  }
  .aside-note {
    order: -1;
  }
  .question-grid {
    gap: 20px;
  }
  .protection-layout {
    grid-template-columns: 1fr;
  }
  .cap-nav {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 14px;
    gap: 7px;
  }
  .cap-nav button {
    flex-shrink: 0;
    border: 1px solid var(--line);
    font-size: 0.875rem;
  }
  .cap-detail {
    padding-left: 0;
    border: 0;
  }
  .page-intro {
    flex-direction: column;
  }
  .plan-summary {
    gap: 18px;
  }
  .plan-summary strong {
    font-size: 1.8rem;
  }
  .page-intro p {
    font-size: 1rem;
  }
  .action-controls {
    gap: 8px;
  }
  .condition-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .brand img {
    width: 126px;
  }
  .brand span {
    font-size: 1rem;
  }
  .header {
    padding: 12px 18px;
  }
  .prototype-strip {
    padding: 8px 18px;
    line-height: 1.4;
  }
  .prototype-strip span {
    max-width: 29ch;
  }
  .environment {
    display: flex;
    flex-direction: column;
  }
  .people-rail {
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    order: 1;
  }
  .workspace {
    display: contents;
  }
  .intro {
    order: 0;
    padding: 26px 18px 0;
  }
  .intro h1 {
    font-size: 2.3rem;
  }
  .intro p {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  .people-rail section {
    margin-top: 22px;
    padding-top: 22px;
  }
  .people-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .person-choice {
    margin: 0;
    padding: 12px 10px;
    gap: 9px;
    font-size: 0.875rem;
  }
  .person-choice .icon {
    width: 21px;
  }
  .person-choice input {
    width: 18px;
    height: 18px;
  }
  .people-rail .radio-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .radio-stack label {
    padding: 12px 8px;
    gap: 7px;
    font-size: 0.875rem;
  }
  .canvas {
    order: 2;
    margin: 0;
    padding: 26px 18px;
    min-height: 0;
  }
  .canvas-heading h2 {
    font-size: 1.5rem;
  }
  .canvas-heading {
    gap: 12px;
  }
  .sample-tag {
    font-size: 0.75rem;
    padding-left: 12px;
  }
  .columns {
    margin-top: 24px;
  }
  .block-list {
    grid-template-columns: 1fr;
  }
  .scope-block {
    padding: 9px 12px;
    gap: 12px;
  }
  .empty-group {
    padding: 3px 0 10px;
    max-width: none;
  }
  .library-items,
  .more-blocks .library-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .add-block {
    padding: 13px;
    min-height: 100px;
  }
  .library {
    margin-top: 25px;
  }
  .action-bar {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    position: static;
  }
  .action-summary {
    width: 100%;
  }
  .action-summary span {
    display: inline;
    font-size: 0.8125rem;
  }
  .action-controls {
    width: 100%;
    justify-content: space-between;
  }
  .next {
    flex: 1;
  }
  .action-controls > .text-button {
    padding: 10px 12px;
  }
  .page {
    padding: 28px 18px;
  }
  .page-intro {
    margin-bottom: 28px;
  }
  .page h1 {
    font-size: 2.3rem;
  }
  .question-grid {
    grid-template-columns: 1fr;
  }
  .aside-note {
    padding: 20px;
  }
  .form-section {
    padding: 22px 0;
  }
  .plan-summary {
    gap: 10px;
  }
  .plan-summary > div {
    padding-right: 8px;
  }
  .plan-summary strong {
    font-size: 1.5rem;
  }
  .plan-summary span {
    font-size: 0.75rem;
  }
  .comparison {
    width: 100%;
  }
  .comparison button {
    flex: 1;
    padding: 12px 9px;
    font-size: 0.875rem;
  }
  .plan-toolbar {
    width: 100%;
  }
  .plan-toolbar button {
    flex: 1;
    padding: 12px;
    min-width: 0;
    gap: 8px;
    font-size: 0.8125rem;
  }
  .plan-toolbar .icon {
    width: 18px;
  }
  .finding-actions {
    flex-wrap: wrap;
  }
  .app-footer {
    flex-wrap: wrap;
  }
  .toast {
    bottom: 22px;
  }
  .status-panel {
    padding: 18px;
  }
  .tier-option {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 13px;
  }
  .criterion-row .inline-choice label {
    padding: 10px;
  }
  .print-only {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .add-block:hover {
    transform: none;
  }
}
@media print {
  @page {
    size: auto;
    margin: 15mm;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
    color-scheme: light !important;
    font-size: 10pt;
  }
  .header,
  .prototype-strip,
  .action-bar,
  .plan-toolbar,
  .comparison,
  .finding-actions,
  .app-footer,
  .toast,
  dialog,
  .skip-link {
    display: none !important;
  }
  .page {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  .page-intro {
    margin: 0 0 16pt;
    display: block;
  }
  .page h1 {
    font-size: 26pt;
  }
  h2 {
    font-size: 17pt;
  }
  h3 {
    font-size: 13pt;
  }
  p,
  .page-intro p,
  .finding p,
  .plan-context,
  .scope-label,
  .muted,
  .method-note,
  .plan-summary span {
    color: #333 !important;
    font-size: 10pt;
  }
  .plan-summary {
    gap: 16pt;
    margin: 14pt 0;
    padding-bottom: 14pt;
  }
  .plan-summary strong {
    font-size: 19pt;
  }
  .finding {
    display: block;
    padding: 12pt 0;
    break-inside: avoid;
  }
  .finding-heading {
    gap: 8pt;
    margin-bottom: 6pt;
  }
  .status-label,
  .status-label.meets,
  .status-label.unknown,
  .chip,
  .planned-label {
    color: #111 !important;
  }
  .chip {
    border-color: #777;
  }
  .plan-disclosure {
    background: #f3f3f3;
    color: #222;
    margin: 16pt 0;
    padding: 12pt;
  }
  .plan-disclosure strong {
    color: #111;
  }
  .print-only {
    display: block;
  }
  .print-actions {
    break-before: page;
  }
  .print-actions h2 {
    margin-bottom: 14pt;
  }
  table {
    font-size: 9pt;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  a {
    color: #111;
  }
  .print-scope {
    line-height: 1.7;
    margin: 12pt 0;
  }
  .print-sources {
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
  body:not(.printing) #app:before {
    content: "Use Print plan from the Your plan step for a complete report.";
    display: block;
    padding: 20pt;
    font-size: 14pt;
  }
  .icon {
    display: none !important;
  }
}
.coverage-map {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-bottom: 30px;
}
.coverage-map .canvas-heading {
  justify-content: space-between;
}
.coverage-map h2 {
  font-size: 1.5rem;
}
.map-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 22px;
}
.map-groups h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--muted);
}
.map-blocks {
  display: grid;
  gap: 10px;
}
.map-block {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 80px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  transition:
    border-color 150ms,
    background 150ms;
}
.map-block strong {
  font-size: 0.9375rem;
  display: block;
  font-weight: 600;
}
.map-block small {
  font-size: 0.8125rem;
  line-height: 1.5;
  display: block;
  margin-top: 7px;
  color: var(--muted);
}
.map-block.gap small {
  color: var(--amber);
}
.map-block.meets small {
  color: var(--cyan);
}
.map-block:hover,
.map-block[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--raised);
}
.finding-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 10px;
}
.finding-filter h2 {
  font-size: 1.5rem;
}
.sequence {
  margin: 26px 0 36px;
}
.sequence h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sequence-grid > div {
  border-top: 2px solid var(--line);
  padding-top: 14px;
}
.sequence-grid span {
  font-size: 0.8125rem;
  color: var(--cyan);
}
.sequence-grid h3 {
  margin: 8px 0;
  font-size: 1.125rem;
}
.sequence-grid p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 700px) {
  .map-groups,
  .sequence-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .map-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-block {
    padding: 12px;
    gap: 9px;
  }
  .map-block .icon {
    width: 21px;
  }
  .map-block strong {
    font-size: 0.8125rem;
  }
  .map-block small {
    font-size: 0.75rem;
  }
  .finding-filter {
    align-items: start;
  }
}
@media (max-width: 370px) {
  .map-blocks {
    grid-template-columns: 1fr;
  }
}
@media print {
  .coverage-map {
    break-inside: avoid;
    border-color: #777;
    margin-bottom: 16pt;
  }
  .coverage-map h2,
  .sequence h2,
  .finding-filter h2 {
    font-size: 16pt;
  }
  .coverage-map .canvas-heading > span,
  .finding-filter button {
    display: none;
  }
  .map-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12pt;
  }
  .map-blocks {
    display: grid;
    grid-template-columns: 1fr;
  }
  .map-block {
    border-color: #777;
    background: white;
    padding: 10pt;
    min-height: 0;
  }
  .map-block small,
  .map-block.meets small,
  .map-block.gap small {
    color: #222;
  }
  .map-block strong {
    font-size: 10pt;
  }
  .map-block small {
    font-size: 8pt;
  }
  .sequence {
    break-inside: avoid;
  }
  .sequence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sequence-grid span {
    color: #222;
  }
  .sequence-grid p {
    font-size: 9pt;
    color: #333;
  }
  .print-only ul {
    font-size: 9pt;
    line-height: 1.6;
    padding-left: 16pt;
  }
  .finding {
    break-inside: avoid;
  }
  .print-actions h2 {
    margin-top: 22pt;
  }
}

h2,
h3 {
  letter-spacing: 0;
}
.nav-state {
  font-size: 0.6875rem;
  flex-shrink: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 5px;
  border-radius: 3px;
}
.nav-state.gap {
  color: var(--amber);
}
.nav-state.meets {
  color: var(--cyan);
}
.scope-block .scope-name {
  flex: 1;
  text-align: left;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 5px 0;
  color: var(--text);
  border: 0;
  background: none;
  display: block;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.scope-name small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 3px;
}
.prototype-strip > div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.coverage-picker {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 24px 0;
}
.coverage-picker legend {
  font-weight: 600;
  padding: 0 6px;
}
.scope-checkboxes {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
}
.scope-checkboxes label {
  display: flex;
  align-items: start;
  gap: 8px;
  max-width: 100%;
  font-size: 0.875rem;
}
.scope-checkboxes input {
  margin-top: 3px;
  flex-shrink: 0;
}
.scope-verdicts,
.flow-list {
  list-style: none;
  padding: 0;
}
.scope-verdicts li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.scope-verdicts .status-label {
  margin: 6px 0;
  font-size: 0.875rem;
}
.scope-verdicts small,
.flow-list small,
.finding-details small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}
.flow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.flow-list li > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.select-field input:not([type="checkbox"]),
.select-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  padding: 12px;
  font: inherit;
  min-width: 0;
}
.select-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.select-field textarea {
  min-height: 90px;
  resize: vertical;
}
.dialog-error {
  color: var(--amber);
  overflow-wrap: anywhere;
}
.dialog-local-actions,
.scope-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.plan-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  gap: 18px;
}
.plan-action h3 {
  font-size: 1.125rem;
  margin: 12px 0 6px;
}
.plan-action p {
  margin: 6px 0;
}
.finding-details {
  margin: 18px 0;
  font-size: 0.875rem;
}
.finding-details section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.finding-details ul {
  padding-left: 20px;
}
.finding-details li {
  margin: 8px 0;
}
.finding-details h4 {
  font-size: 1rem;
}
.report-document table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  margin: 14px 0;
}
.report-document th,
.report-document td {
  border: 1px solid #bcc8cb;
  padding: 9px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.report-document th {
  font-weight: 600;
}
.report-document .report-criteria th:nth-child(1) {
  width: 43%;
}
.report-document .report-criteria th:nth-child(2),
.report-document .report-criteria th:nth-child(3) {
  width: 9%;
}
.report-document .report-criteria th:nth-child(4) {
  width: 39%;
}
.report-document .report-environment th:nth-child(1) {
  width: 18%;
}
.report-document .report-environment th:nth-child(2) {
  width: 16%;
}
.report-document .report-environment th:nth-child(3) {
  width: 66%;
}
.report-document .report-metadata th {
  width: 22%;
}
.report-document h2 {
  margin-top: 30px;
}
.report-document h3 {
  margin-top: 22px;
}
.report-document a {
  overflow-wrap: anywhere;
}
.report-document small {
  font-weight: 400;
}
.full-report {
  display: none;
}
@media (max-width: 600px) {
  .prototype-strip {
    align-items: start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .prototype-strip > div {
    gap: 12px;
  }
  .coverage-picker {
    padding: 14px;
  }
  .flow-list li,
  .plan-action {
    flex-wrap: wrap;
  }
  .scope-checkboxes {
    gap: 12px;
  }
  .scope-checkboxes label {
    font-size: 0.8125rem;
  }
  .dialog-local-actions button {
    flex: 1;
  }
}
@media print {
  .screen-plan {
    display: none !important;
  }
  .full-report {
    display: block !important;
  }
  .report-document {
    font-family: Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.5;
    color: #111;
  }
  .report-document h1 {
    font-size: 22pt;
  }
  .report-document h2 {
    font-size: 16pt;
    break-after: avoid;
  }
  .report-document h3 {
    font-size: 12pt;
    break-after: avoid;
  }
  .report-document header p,
  .report-document section p {
    color: #111;
  }
  .report-document table {
    font-size: 8pt;
  }
  .report-document .report-criteria th:nth-child(1) {
    width: 39%;
  }
  .report-document .report-criteria th:nth-child(2),
  .report-document .report-criteria th:nth-child(3) {
    width: 12%;
  }
  .report-document .report-criteria th:nth-child(4) {
    width: 37%;
  }
  .report-document .report-criteria thead th:nth-child(2),
  .report-document .report-criteria thead th:nth-child(3) {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .report-document th,
  .report-document td {
    padding: 4pt 5pt;
  }
  .report-document tr {
    break-inside: avoid;
  }
  .report-document a {
    color: #111;
    text-decoration: none;
  }
  .report-document li {
    margin: 8pt 0;
  }
  .report-finding {
    break-inside: auto;
  }
  .page {
    padding: 0;
  }
}
@media print {
  body.report-printing #app {
    display: none !important;
  }
  body.report-printing #print-report {
    display: block !important;
  }
  body.report-printing > .sr-only {
    display: none !important;
  }
}
/* Progressive overview, scoped layers and review workspaces. */
.overview-layout {
  display: grid;
  gap: 28px;
}
.protection-toolbar,
.section-heading,
.detail-invitation,
.scenario-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.protection-toolbar {
  margin-bottom: 24px;
}
.arrangement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.arrangement-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  min-height: 194px;
}
.arrangement-card:hover,
.arrangement-card.recorded {
  border-color: var(--cyan);
}
.arrangement-card strong {
  font-size: 19px;
}
.arrangement-card span,
.arrangement-card small {
  color: var(--muted);
  line-height: 1.55;
}
.arrangement-card small {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.quick-overview,
.next-decisions,
.detail-invitation {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.decision-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.decision-card h3 {
  margin: 16px 0 10px;
}
.decision-number {
  float: right;
  color: var(--cyan);
  font-size: 25px;
  font-weight: 700;
}
.decision-card .chip {
  max-width: calc(100% - 32px);
  white-space: normal;
}
.lens-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.lens-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 24px;
  padding: 10px 14px;
}
.lens-tabs button[aria-pressed="true"] {
  background: var(--cyan);
  color: #07181a;
  border-color: var(--cyan);
  font-weight: 700;
}
.map-capability {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.map-capability select {
  max-width: 100%;
}
.map-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.map-groups h3 {
  font-size: 14px;
  color: var(--muted);
}
.map-blocks {
  display: grid;
  gap: 12px;
}
.map-area {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.map-area .map-block {
  width: 100%;
  min-height: 86px;
  border-radius: 10px 10px 0 0;
  text-align: left;
}
.map-area .map-block small {
  white-space: normal;
}
.layer-link {
  padding: 8px 16px;
  min-height: 40px;
  font-size: 13px;
}
.map-area:has([aria-pressed="true"]) {
  border-color: var(--cyan);
}
.plan-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.plan-action,
.declaration-list article,
.review-list article,
.branch-list article,
.schedule-review article,
.evidence-review,
.comparison-diff article {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.plan-action {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.plan-action h3 {
  margin: 12px 0 6px;
}
.criterion-help {
  margin-bottom: 16px;
  padding: 12px;
  border-left: 2px solid var(--cyan);
  background: var(--bg);
}
.criterion-help dl,
.explanation dl {
  margin: 12px 0;
}
.criterion-help dt,
.explanation dt {
  font-weight: 700;
  margin-top: 12px;
}
.criterion-help dd,
.explanation dd {
  margin: 6px 0 16px;
  line-height: 1.6;
}
.criterion-help p,
.inspector-layer p {
  line-height: 1.6;
}
.cap-family h3 {
  color: var(--muted);
  font-size: 12px;
  margin: 20px 12px 8px;
}
.cap-nav .cap-family button {
  width: 100%;
}
.nav-state {
  font-size: 11px;
  margin-left: 8px;
  color: var(--muted);
}
.nav-state.gap {
  color: var(--orange);
}
.nav-state.meets {
  color: var(--cyan);
}
.question-queue {
  display: grid;
  gap: 8px;
}
.queue-item,
.inspector-finding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
}
.queue-item span {
  color: var(--muted);
}
.inspector-layer {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.inspector-finding {
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.explanation {
  margin-bottom: 28px;
}
.scenario-banner {
  background: var(--panel);
  border-bottom: 2px solid var(--orange);
  padding: 14px 28px;
  font-size: 14px;
}
.scenario-banner > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.comparison-diff p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
}
.dialog-header {
  position: sticky;
  top: -30px;
  margin-top: -30px;
  padding-top: 30px;
  background: var(--panel);
  z-index: 2;
}
.dialog-actions {
  position: sticky;
  bottom: 0;
  background: var(--panel);
  z-index: 2;
}

/* The guided workspace uses the same Firestorm surfaces and type system. */
@media screen {
  .header {
    min-height: 76px;
    padding: 13px 28px;
  }
  .brand img {
    width: 145px;
  }
  .brand,
  .brand span {
    gap: 20px;
  }
  .brand span {
    padding-left: 20px;
  }
  .project-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 28px;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
  }
  .project-identity,
  .project-controls,
  .project-name {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
  }
  .project-name {
    border: 0;
    background: none;
    padding: 7px 0;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    gap: 9px;
  }
  .project-name span {
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .project-bar .icon {
    width: 18px;
    height: 18px;
  }
  .candidate-label {
    color: var(--muted);
    font-size: 0.6875rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 5px 7px;
    white-space: nowrap;
  }
  .project-controls > .text-button {
    font-size: 0.8125rem;
    min-height: 32px;
  }
  .project-menu {
    position: relative;
    font-size: 0.8125rem;
  }
  .project-menu > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    list-style: none;
    color: var(--muted);
  }
  .project-menu > summary::-webkit-details-marker {
    display: none;
  }
  .project-menu-items {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 248px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--raised);
    z-index: 20;
  }
  .project-menu-items button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    background: none;
    border-radius: 4px;
    text-align: left;
    font-size: 0.8125rem;
  }
  .project-menu-items button:hover {
    background: var(--panel);
    color: var(--cyan);
  }
  .experience-environment {
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100dvh - 206px);
  }
  .experience-environment .people-rail {
    padding: 26px 22px;
  }
  .experience-environment .people-rail h2 {
    font-size: 1.4rem;
  }
  .experience-environment .people-rail section {
    margin-top: 24px;
    padding-top: 24px;
  }
  .experience-environment .person-choice {
    min-height: 52px;
    padding: 12px;
    margin-bottom: 8px;
    gap: 12px;
    font-size: 0.875rem;
  }
  .experience-environment .person-choice .icon {
    width: 23px;
  }
  .experience-environment .workspace {
    padding: 30px;
    min-width: 0;
  }
  .experience-environment .intro {
    padding: 0;
    margin-bottom: 26px;
  }
  .experience-environment h1,
  .experience-priorities h1,
  .experience-protection h1,
  .screen-plan h1 {
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.08;
  }
  .experience-environment .intro p,
  .experience-priorities .page-intro p,
  .experience-protection .page-intro p,
  .screen-plan .page-intro p {
    margin-top: 12px;
    font-size: 0.9375rem;
    max-width: 650px;
  }
  .environment-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
  }
  .environment-main {
    min-width: 0;
  }
  .experience-environment .canvas {
    margin: 0;
    padding: 22px;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
  }
  .experience-environment .canvas-heading h2 {
    font-size: 1.15rem;
  }
  .experience-environment .canvas-hint {
    margin-top: 8px;
    font-size: 0.8125rem;
  }
  .experience-environment .columns {
    margin-top: 22px;
    gap: 18px;
  }
  .experience-environment .scope-group {
    min-height: 0;
    padding-right: 16px;
  }
  .experience-environment .group-title {
    font-size: 0.8125rem;
    margin-bottom: 12px;
    gap: 8px;
  }
  .experience-environment .scope-block {
    padding: 10px;
    min-height: 56px;
    gap: 8px;
    background: var(--bg);
    border-color: var(--line);
  }
  .experience-environment .scope-name {
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .experience-environment .scope-block > .icon {
    width: 20px;
    height: 20px;
  }
  .experience-environment .scope-block > button:last-child {
    min-width: 26px;
    padding: 4px;
  }
  .experience-environment .scope-block > button:last-child .icon {
    width: 16px;
    height: 16px;
  }
  .experience-environment .empty-group {
    padding: 0;
    font-size: 0.8125rem;
  }
  .canvas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 14px;
    gap: 10px;
  }
  .canvas-empty > .icon {
    width: 34px;
    height: 34px;
  }
  .canvas-empty strong {
    font-size: 1.0625rem;
  }
  .canvas-empty p {
    max-width: 340px;
    color: var(--muted);
    font-size: 0.875rem;
  }
  .experience-environment .library {
    margin: 26px 0 0;
    border-top: 0;
    padding-top: 0;
  }
  .experience-environment .library-heading h3 {
    font-size: 1.125rem;
  }
  .library-search {
    display: flex;
    position: relative;
    align-items: center;
    margin: 16px 0 12px;
  }
  .library-search > .icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    pointer-events: none;
  }
  .library-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    padding: 12px 14px 12px 42px;
    font-size: 0.875rem;
  }
  .library-search input::placeholder {
    color: var(--muted);
  }
  .library-tabs,
  .arrangement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
  }
  .library-tabs button,
  .arrangement-filters button {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 9px 12px;
    min-height: 38px;
    background: none;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .library-tabs button[aria-pressed="true"],
  .arrangement-filters button[aria-pressed="true"] {
    border-color: var(--cyan);
    background: var(--raised);
    color: var(--cyan);
  }
  .experience-environment .library-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .experience-environment .add-block {
    min-height: 114px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--panel);
    transition:
      border-color 160ms,
      background 160ms,
      transform 160ms;
  }
  .experience-environment .add-block:hover {
    background: var(--raised);
    border-color: var(--cyan);
    transform: translateY(-2px);
  }
  .experience-environment .add-block strong {
    font-size: 0.875rem;
    line-height: 1.3;
  }
  .experience-environment .add-block small {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .experience-environment .more-blocks,
  .environment-facts {
    margin-top: 18px;
  }
  .environment-facts > summary,
  .experience-environment .more-blocks > summary {
    font-size: 0.8125rem;
    min-height: 38px;
  }
  .environment-insights,
  .priority-preview,
  .protection-preview {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    min-width: 0;
  }
  .environment-insights h2,
  .priority-preview h2,
  .protection-preview h2 {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .context-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .context-summary > div {
    flex: 1;
  }
  .context-summary strong {
    display: block;
    font-family: Cal, Archivo, sans-serif;
    font-size: 1.5rem;
  }
  .context-summary span {
    color: var(--muted);
    font-size: 0.75rem;
  }
  .context-signals {
    display: grid;
    gap: 18px;
    margin-top: 20px;
  }
  .context-signal {
    display: block;
    text-align: left;
  }
  .context-signal-heading {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
  }
  .context-signal-heading .chip {
    grid-column: 2;
    justify-self: start;
  }
  .context-signal > button {
    margin-top: 10px;
    font-size: 0.8125rem;
    padding: 5px 0;
  }
  .context-signal .icon {
    width: 21px;
    height: 21px;
  }
  .context-signal h3,
  .context-signal strong {
    font-size: 0.875rem;
    display: block;
    margin-bottom: 6px;
  }
  .context-signal p {
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .starter-examples {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .starter-examples p {
    color: var(--muted);
    font-size: 0.8125rem;
    margin: 6px 0 12px;
  }
  .starter-examples button {
    display: inline-flex;
    margin: 0 7px 8px 0;
    padding: 9px 12px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    font-size: 0.8125rem;
  }
  .starter-examples button:hover {
    border-color: var(--cyan);
  }
  .experience-priorities,
  .experience-protection,
  .page:has(.screen-plan) {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 40px;
  }
  .experience-priorities .page-intro,
  .experience-protection .page-intro,
  .screen-plan .page-intro {
    margin-bottom: 24px;
  }
  .target-builder {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 28px;
  }
  .target-builder h2,
  .target-builder legend {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .target-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
  .target-options .tier-option {
    display: flex;
    flex-direction: column;
    align-items: start;
    position: relative;
    padding: 17px;
    min-width: 0;
    min-height: 152px;
    gap: 12px;
    border-color: var(--line);
    background: var(--bg);
  }
  .target-options .tier-option:has(:checked) {
    border-color: var(--cyan);
    background: var(--raised);
  }
  .target-options .tier-option > input {
    position: absolute;
    top: 18px;
    right: 16px;
  }
  .target-options .tier-number {
    font-family: Cal, Archivo, sans-serif;
    color: var(--muted);
    font-size: 1.4rem;
  }
  .target-options .tier-option:has(:checked) .tier-number {
    color: var(--cyan);
  }
  .target-options .tier-option strong {
    font-size: 0.9375rem;
  }
  .target-options .tier-option small {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 7px;
  }
  .target-summary,
  .target-suggestion {
    margin-top: 18px;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .target-summary p,
  .target-suggestion p {
    color: var(--muted);
  }
  .target-suggestion > span,
  .target-suggestion > strong {
    display: block;
  }
  .target-suggestion > strong {
    font-family: Cal, Archivo, sans-serif;
    font-size: 1.5rem;
    margin-top: 5px;
  }
  .target-suggestion > button {
    margin-top: 14px;
  }
  .priority-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
  .priority-inputs h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  .consequence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .consequence-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }
  .consequence-card .select-field {
    font-size: 0.875rem;
  }
  .priority-inputs > details {
    padding: 22px 0;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .priority-inputs > details > summary {
    font-size: 1rem;
    font-weight: 600;
    min-height: 36px;
  }
  .priority-inputs details[open] > summary {
    margin-bottom: 18px;
  }
  .priority-preview p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 12px;
  }
  .priority-preview strong {
    color: var(--text);
  }
  .protection-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
  }
  .arrangements-panel,
  .arrangements-panel .quick-overview {
    min-width: 0;
  }
  .arrangements-panel h2 {
    font-size: 1.25rem;
  }
  .arrangements-panel > p,
  .arrangements-panel .quick-overview > p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 10px;
  }
  .arrangements-panel .arrangement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .arrangements-panel .arrangement-card {
    padding: 18px;
    min-height: 138px;
    border-radius: var(--radius);
    gap: 10px;
    transition:
      border-color 160ms,
      background 160ms,
      transform 160ms;
  }
  .arrangements-panel .arrangement-card:hover {
    transform: translateY(-2px);
    background: var(--raised);
  }
  .arrangements-panel .arrangement-card strong {
    font-size: 1rem;
  }
  .arrangements-panel .arrangement-card span,
  .arrangements-panel .arrangement-card small {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .assessment-progress {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .assessment-progress strong {
    color: var(--text);
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
  }
  .assessment-progress meter {
    width: 100%;
    height: 12px;
    margin: 8px 0;
  }
  .assessment-progress meter::-webkit-meter-bar {
    background: var(--line);
    border: 0;
  }
  .assessment-progress meter::-webkit-meter-optimum-value {
    background: var(--cyan);
  }
  .layer-preview-list {
    display: grid;
    gap: 0;
    margin: 10px 0 18px;
  }
  .layer-preview {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr) 7px;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 5px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--text);
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .layer-preview:hover {
    background: var(--raised);
  }
  .layer-preview strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
  }
  .layer-preview .icon {
    width: 19px;
    height: 19px;
  }
  .layer-preview small {
    color: var(--muted);
    display: block;
    font-size: 0.75rem;
    margin-top: 3px;
  }
  .layer-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    color: var(--muted);
  }
  .experience-protection .protection-toolbar .comparison {
    margin-bottom: 0;
  }
  .experience-protection .protection-toolbar {
    margin: 0 0 24px;
  }
  .arrangements-panel .detail-invitation {
    padding: 20px;
  }
  .overview-map > summary {
    padding: 18px 0;
    font-size: 0.875rem;
  }
  .next-guidance {
    padding-top: 16px;
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .next-guidance h3 {
    font-size: 1.0625rem;
    margin: 9px 0;
  }
  .next-guidance p {
    color: var(--muted);
  }
  .next-guidance button {
    margin-top: 12px;
    font-size: 0.8125rem;
  }
  .detail-invitation {
    padding: 22px 0;
    margin-top: 20px;
    border-top: 1px solid var(--line);
    align-items: start;
    gap: 18px;
  }
  .detail-invitation h2 {
    font-size: 1.0625rem;
  }
  .detail-invitation p {
    font-size: 0.8125rem;
  }
  .screen-plan .page-intro {
    align-items: start;
  }
  .screen-plan .plan-summary {
    padding: 18px 0;
    margin: 0 0 20px;
  }
  .screen-plan .plan-summary strong {
    font-size: 1.7rem;
    margin-top: 5px;
  }
  .screen-plan .plan-summary span {
    font-size: 0.8125rem;
  }
  .screen-plan .comparison {
    margin-bottom: 12px;
  }
  .screen-plan .plan-context {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .coverage-map:has(.architecture-board) {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    margin-bottom: 26px;
  }
  .coverage-map:has(.architecture-board) .canvas-heading h2 {
    font-size: 1.4rem;
  }
  .coverage-map:has(.architecture-board) .map-toolbar {
    margin-top: 20px;
  }
  .map-controls {
    margin: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .map-controls > summary {
    padding: 13px 0;
    color: var(--muted);
    font-size: 0.8125rem;
    min-height: 44px;
  }
  .map-controls > summary > span {
    display: inline-block;
    padding-left: 12px;
    color: var(--cyan);
  }
  .map-controls[open] {
    padding-bottom: 16px;
  }
  .architecture-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .architecture-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .architecture-legend [data-state="gap"],
  .layer-state[data-state="gap"],
  .layer-status[data-state="gap"] {
    color: var(--amber);
  }
  .architecture-legend [data-state="meets"],
  .layer-state[data-state="meets"],
  .layer-status[data-state="meets"] {
    color: var(--cyan);
  }
  .architecture-board.map-groups {
    gap: 18px;
    margin-top: 24px;
  }
  .architecture-board .map-groups h3 {
    font-family: Archivo, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .architecture-board .map-area {
    border-radius: var(--radius);
    background: var(--bg);
  }
  .architecture-board .map-block {
    min-height: 68px;
    padding: 14px;
    gap: 11px;
  }
  .architecture-board .map-block strong {
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
  }
  .architecture-board .map-block small {
    margin-top: 4px;
    font-size: 0.75rem;
  }
  .scope-layers {
    display: grid;
    gap: 0;
    padding: 4px 12px 8px;
    border-top: 1px solid var(--line);
  }
  .layer-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 8px 3px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .layer-cell:last-child {
    border-bottom: 0;
  }
  .layer-cell:hover {
    color: var(--text);
    background: var(--panel);
  }
  .layer-cell > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .layer-cell .icon {
    width: 15px;
    height: 15px;
  }
  .layer-state {
    text-align: right;
    font-size: 0.6875rem;
  }
  .layer-cell[data-state="gap"] .layer-state {
    color: var(--amber);
  }
  .layer-cell[data-state="meets"] .layer-state {
    color: var(--cyan);
  }
  .coverage-map .map-capability {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .coverage-map .map-capability select {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    color: var(--text);
    padding: 9px 12px;
    max-width: 100%;
    min-height: 38px;
  }
  .architecture-board .layer-link {
    padding: 9px 14px;
    font-size: 0.75rem;
    min-height: 38px;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }
  .screen-plan .next-decisions {
    border: 0;
    background: none;
    padding: 0;
    margin: 28px 0;
  }
  .screen-plan .next-decisions h2 {
    font-size: 1.25rem;
  }
  .screen-plan .decision-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .screen-plan .decision-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
  }
  .screen-plan .decision-number {
    position: static;
    font-size: 1.2rem;
  }
  .screen-plan .decision-card h3 {
    font-size: 1.0625rem;
    margin: 8px 0;
  }
  .screen-plan .decision-card p {
    font-size: 0.8125rem;
  }
  .screen-plan .decision-action {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .screen-plan .decision-content {
    min-width: 0;
  }
  .all-findings {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 28px 0;
  }
  .all-findings > summary {
    font-size: 1rem;
    font-weight: 600;
    min-height: 38px;
  }
  .all-findings .findings {
    margin-top: 12px;
  }
  .draft-feedback {
    display: block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px;
    margin: 20px 0;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  dialog .dialog-header {
    position: static;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0;
  }
  dialog .dialog-body {
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  dialog fieldset {
    min-width: 0;
  }
  dialog legend {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  dialog .dialog-header h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  dialog .dialog-actions {
    position: static;
    flex-shrink: 0;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  dialog > .draft-feedback {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 12px 0 0;
  }
  [data-answer-status] {
    flex: 1;
    line-height: 1.5;
  }
  [data-feedback-details] {
    flex: 0 0 auto;
    max-width: 110px;
    min-height: 44px;
    color: var(--cyan);
    font-size: 0.8125rem;
    text-align: left;
    white-space: normal;
  }
  .answer-detail {
    margin: 20px 0 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .answer-detail > summary {
    cursor: pointer;
    font-size: 0.9375rem;
  }
  .context-questions {
    display: grid;
    gap: 10px;
  }
  .context-questions button {
    display: block;
    text-align: left;
    white-space: normal;
  }
  .context-questions span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
  }
  dialog .dialog-error:not([hidden]) {
    padding: 12px;
    border-left: 3px solid var(--orange);
    color: var(--text);
    background: var(--bg);
  }
  dialog [aria-invalid="true"] {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
  }
  @media (max-width: 700px), (max-height: 700px) {
    dialog {
      max-height: calc(100dvh - 16px);
      padding: 14px;
    }
    dialog .dialog-header {
      gap: 10px;
      margin-bottom: 12px;
      max-height: 25dvh;
      overflow-y: auto;
    }
    dialog .dialog-header h2 {
      font-size: 1.25rem;
      line-height: 1.25;
    }
    dialog .dialog-actions {
      gap: 8px;
      margin-top: 10px;
    }
    dialog .dialog-actions button {
      font-size: 0.875rem;
      padding: 10px 12px;
    }
    dialog > .draft-feedback {
      gap: 8px;
      padding: 8px 10px;
      margin-top: 10px;
    }
  }
  @media (max-width: 700px) and (max-height: 700px) {
    dialog {
      inset: 0 auto auto 0;
      margin: 8px;
      width: calc(100dvw - 16px);
      max-width: calc(100dvw - 16px);
      height: calc(100dvh - 16px);
      border-radius: 8px;
    }
    dialog .dialog-body {
      flex: 1;
    }
    dialog > .draft-feedback {
      max-height: 20dvh;
      overflow-y: auto;
      align-items: flex-start;
    }
  }
  .declaration-metadata > summary {
    min-height: 42px;
    font-size: 0.875rem;
  }
  .unassigned-questions {
    margin-top: 24px;
  }
  .unassigned-questions > h3 {
    margin-bottom: 16px;
  }
  .question-group {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }
  .question-group > summary {
    min-height: 44px;
    font-weight: 600;
  }
  .question-group > summary .chip {
    margin-left: 8px;
  }
  .declaration-metadata[open] > summary {
    margin-bottom: 18px;
  }
  .inspector-selected {
    background: var(--raised);
    padding: 18px 12px;
    border-radius: var(--radius);
  }
  .toast {
    pointer-events: none;
  }
}
@media screen and (max-width: 1180px) {
  .environment-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .environment-insights {
    position: static;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
  .environment-insights > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .environment-insights .context-summary {
    border-bottom: 0;
  }
  .context-signals {
    margin-top: 0;
  }
  .environment-insights .starter-examples {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .target-options .tier-option {
    padding: 14px;
  }
  .priority-workbench,
  .protection-workbench {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }
}
@media screen and (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    padding: 12px 20px;
  }
  .steps {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }
  .brand {
    margin-right: auto;
  }
  .experience-environment {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .experience-environment .workspace {
    padding: 24px;
  }
  .experience-environment .columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .experience-environment .scope-group {
    border: 0;
    padding-right: 0;
  }
  .experience-environment .block-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .experience-environment .library-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .environment-insights {
    display: block;
  }
  .environment-insights .context-signals {
    margin-top: 18px;
  }
  .environment-insights .starter-examples {
    margin-top: 20px;
  }
  .priority-workbench,
  .protection-workbench {
    grid-template-columns: 1fr;
  }
  .priority-preview,
  .protection-preview {
    position: static;
  }
  .target-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .architecture-board .map-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 700px) {
  body {
    padding-bottom: 110px;
  }
  .header {
    padding: 12px 18px 8px;
    gap: 6px;
    min-height: 110px;
  }
  .brand {
    gap: 14px;
  }
  .brand img {
    width: 125px;
  }
  .brand span {
    font-size: 0.9375rem;
    padding-left: 14px;
  }
  .steps button {
    min-height: 40px;
    padding-bottom: 19px;
    font-size: 0.75rem;
  }
  .project-bar {
    padding: 5px 18px;
    min-height: 44px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .project-controls {
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .project-controls > .text-button {
    white-space: nowrap;
  }
  .project-menu summary {
    white-space: normal;
  }
  .project-identity,
  .project-controls {
    gap: 9px;
  }
  .project-name span {
    max-width: 130px;
  }
  .project-name > .icon:first-child,
  .candidate-label,
  .project-controls > .text-button > .icon {
    display: none;
  }
  .project-name,
  .project-controls > .text-button,
  .project-menu {
    font-size: 0.75rem;
  }
  .project-menu summary > .icon:first-child {
    display: none;
  }
  .project-menu-items {
    width: 235px;
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
  }
  .experience-environment {
    display: flex;
    flex-direction: column;
  }
  .experience-environment .workspace {
    display: contents;
  }
  .experience-environment .intro {
    order: 0;
    padding: 24px 18px 0;
    margin-bottom: 20px;
  }
  .experience-environment h1,
  .experience-priorities h1,
  .experience-protection h1,
  .screen-plan h1 {
    font-size: 2rem;
  }
  .experience-environment .people-rail {
    order: 1;
    padding: 20px 18px;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .experience-environment .people-rail section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .experience-environment .people-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .experience-environment .person-choice {
    margin-bottom: 0;
    min-width: 0;
    gap: 8px;
  }
  .environment-workbench {
    order: 2;
    display: block;
    padding: 22px 18px;
  }
  .experience-environment .canvas {
    padding: 18px;
  }
  .experience-environment .scope-group {
    border: 0;
  }
  .experience-environment .block-list {
    grid-template-columns: 1fr;
  }
  .experience-environment .scope-block {
    min-height: 52px;
  }
  .experience-environment .library-items {
    gap: 9px;
  }
  .experience-environment .add-block {
    min-height: 112px;
    padding: 13px;
  }
  .environment-insights {
    margin-top: 24px;
    padding: 20px;
  }
  .experience-priorities,
  .experience-protection,
  .page:has(.screen-plan) {
    padding: 24px 18px;
  }
  .target-builder {
    padding: 18px;
    margin-bottom: 24px;
  }
  .target-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .target-options .tier-option {
    flex-direction: row;
    align-items: start;
    min-height: 0;
    padding: 14px 42px 14px 14px;
  }
  .target-options .tier-option small {
    margin-top: 4px;
  }
  .target-options .tier-number {
    min-width: 24px;
    font-size: 1.25rem;
  }
  .target-options .tier-option > input {
    top: 18px;
    right: 14px;
  }
  .consequence-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .priority-workbench,
  .protection-workbench {
    gap: 22px;
  }
  .arrangements-panel .arrangement-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .arrangements-panel .arrangement-card {
    min-height: 0;
    padding: 16px;
    gap: 9px;
  }
  .protection-preview,
  .priority-preview {
    padding: 20px;
  }
  .detail-invitation {
    display: block;
  }
  .detail-invitation button {
    margin-top: 16px;
    width: 100%;
  }
  .screen-plan .page-intro {
    margin-bottom: 16px;
    gap: 0;
  }
  .screen-plan {
    display: flex;
    flex-direction: column;
  }
  .screen-plan > .plan-toolbar {
    margin: 0 0 22px;
  }
  .screen-plan .page-intro p {
    font-size: 0.875rem;
  }
  .screen-plan .plan-toolbar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .screen-plan .plan-toolbar button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .screen-plan .plan-toolbar .icon {
    width: 16px;
    height: 16px;
  }
  .screen-plan .plan-summary {
    padding: 15px 0;
    margin-bottom: 16px;
  }
  .screen-plan .plan-summary strong {
    font-size: 1.4rem;
  }
  .screen-plan .plan-summary span {
    font-size: 0.6875rem;
    line-height: 1.5;
  }
  .screen-plan .plan-context {
    margin-bottom: 18px;
    font-size: 0.75rem;
  }
  .screen-plan > .comparison {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .screen-plan > .comparison button {
    min-height: 44px;
    font-size: 0.8125rem;
    padding: 10px 8px;
  }
  .coverage-map:has(.architecture-board) .map-controls {
    margin: 10px 0;
  }
  .coverage-map:has(.architecture-board) .architecture-board {
    margin-top: 16px;
  }
  .coverage-map:has(.architecture-board) {
    padding: 18px;
    margin-bottom: 24px;
  }
  .coverage-map:has(.architecture-board) .canvas-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .coverage-map:has(.architecture-board) .canvas-heading h2 {
    font-size: 1.25rem;
  }
  .coverage-map:has(.architecture-board) .view-label {
    font-size: 0.75rem;
  }
  .coverage-map:has(.architecture-board) .map-toolbar {
    margin-top: 16px;
  }
  .architecture-board.map-groups {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .architecture-board .map-blocks {
    grid-template-columns: 1fr;
  }
  .architecture-board .map-block {
    padding: 14px;
  }
  .layer-cell {
    min-height: 44px;
  }
  .coverage-map:has(.architecture-board) .lens-tabs {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px;
    margin: 0 -3px 10px;
  }
  .coverage-map:has(.architecture-board) .lens-tabs button {
    padding: 9px 11px;
    font-size: 0.75rem;
    min-height: 36px;
    flex: 0 0 auto;
  }
  .coverage-map .map-capability {
    display: block;
  }
  .coverage-map .map-capability select {
    margin-top: 6px;
    width: 100%;
  }
  .coverage-map .map-explanation {
    margin-top: 12px;
    font-size: 0.75rem;
  }
  .architecture-legend {
    gap: 8px;
    font-size: 0.6875rem;
  }
  .screen-plan .decision-card {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }
  .screen-plan .decision-action {
    grid-column: 2;
    padding-top: 0;
    white-space: normal;
  }
  .screen-plan .next-decisions .section-heading {
    align-items: start;
  }
  .action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 94px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    z-index: 6;
  }
  .action-summary {
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .action-summary strong {
    font-size: 0.8125rem;
  }
  .action-summary span {
    font-size: 0.6875rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .action-controls {
    width: 100%;
    gap: 10px;
    justify-content: space-between;
  }
  .action-controls .primary,
  .action-controls .secondary {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 0.8125rem;
  }
  .action-controls > .text-button {
    padding: 8px 0;
    font-size: 0.8125rem;
  }
  .action-controls .next {
    flex: 1;
  }
  .toast {
    bottom: 124px;
    font-size: 0.8125rem;
  }
}
@media screen and (max-width: 360px) {
  .project-name span {
    max-width: 76px;
  }
  .project-menu summary > span {
    max-width: none;
    white-space: nowrap;
  }
  .experience-environment .people-options {
    grid-template-columns: 1fr;
  }
  .project-controls {
    gap: 8px;
  }
  .architecture-board {
    padding: 14px;
  }
}
@media print {
  .project-bar {
    display: none !important;
  }
}
@media (max-width: 1000px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .cap-nav .cap-family {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
  }
  .cap-family h3 {
    display: none;
  }
  .cap-nav .cap-family button {
    width: auto;
  }
}
@media (max-width: 650px) {
  .map-groups {
    grid-template-columns: 1fr;
  }
  .quick-overview,
  .next-decisions,
  .detail-invitation {
    padding: 18px;
  }
  .arrangement-grid {
    grid-template-columns: 1fr;
  }
  .plan-action {
    flex-direction: column;
    align-items: flex-start;
  }
  .scenario-banner {
    padding: 14px 18px;
  }
  .queue-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Guided decisions use the established surfaces and semantic accent colors. */
.starter-intro {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 24px;
}
.starter-intro h2 {
  font:
    600 30px/1.15 Cal,
    Archivo,
    sans-serif;
  max-width: 22ch;
  margin: 0 0 10px;
}
.starter-intro p {
  max-width: 65ch;
}
.starter-meta,
.plan-established {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.starter-choices {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}
.starter-choices label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.starter-context {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.context-prompt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.context-prompt strong,
.context-prompt span {
  grid-column: 1;
  overflow-wrap: anywhere;
}
.context-prompt span,
.decision-owner {
  color: var(--muted);
  font-size: 14px;
}
.context-prompt .icon {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.plan-established {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.plan-established strong {
  color: var(--text);
}
.assessment-change {
  padding: 20px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.assessment-change strong {
  color: var(--cyan);
}
.assessment-change p {
  margin: 8px 0;
}
.context-editor summary {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .starter-intro {
    padding: 18px;
  }
  .starter-intro h2 {
    font-size: 26px;
  }
  .plan-established {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }
}
.export-choice {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.export-choice h3 {
  margin: 0;
}
.layer-outcomes {
  padding: 12px;
}
.layer-outcomes li {
  padding: 5px 0;
}
@media screen and (max-width: 600px) {
  .experience-protection .page-intro {
    margin-bottom: 16px;
    gap: 10px;
  }
  .experience-protection h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  .experience-protection .page-intro p {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .experience-protection .protection-toolbar {
    margin-bottom: 16px;
    gap: 10px;
  }
  .experience-protection .starter-intro h2 {
    font-size: 1.375rem;
  }
  .starter-intro {
    margin-bottom: 16px;
  }
}

@media screen and (forced-colors: active) {
  :root {
    --bg: Canvas;
    --panel: Canvas;
    --raised: Canvas;
    --text: CanvasText;
    --muted: CanvasText;
    --line: CanvasText;
    --cyan: LinkText;
    --orange: Highlight;
    --amber: CanvasText;
  }
  .primary {
    forced-color-adjust: none;
    color: HighlightText;
    background: Highlight;
    border: 1px solid ButtonText;
  }
  .primary:hover {
    background: Highlight;
  }
  .primary .icon {
    background: transparent;
    filter: none;
    color: HighlightText;
  }
  .icon {
    forced-color-adjust: none;
    background: #12181c;
  }
  .cb-configure-key,
  .cb-configure,
  .cb-suggested,
  .cb-suggested:hover {
    color: ButtonText;
  }
  .cb-suggested,
  .cb-suggested:hover {
    background: ButtonFace;
    border-color: ButtonText;
  }
  .brand img {
    forced-color-adjust: none;
    background: #12181c;
  }
}

/* The visual builder is the entry point; the full assessment stays opt-in. */
.building {
  padding-bottom: 0;
}
.builder-header {
  justify-content: space-between;
}
.builder-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.builder-header .secondary {
  min-height: 44px;
  padding: 10px 16px;
  gap: 10px;
}
.builder-name {
  max-width: 250px;
  overflow-wrap: anywhere;
  text-align: left;
}
.builder-page {
  max-width: 1780px;
  margin: auto;
  padding: 36px 30px 20px;
}
.builder-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.builder-kicker {
  display: block;
  color: var(--cyan);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.builder-intro h1 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
}
.builder-intro p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}
.builder-review {
  flex-shrink: 0;
}
.builder-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.builder-layout.has-detail {
  grid-template-columns: 236px minmax(0, 1fr) 312px;
  gap: 20px;
}
.block-library {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 12px;
  position: sticky;
  top: 18px;
}
.library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.library-title h2 {
  font-size: 1.2rem;
}
.library-title .icon {
  width: 19px;
  height: 19px;
  opacity: 0.7;
}
.builder-sector {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.builder-sector select {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 9px;
  color: var(--text);
  font-size: 0.9rem;
}
.builder-tabs,
.placement-mode {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  gap: 3px;
}
.builder-tabs button,
.placement-mode button {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 6px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 3px;
  font-size: 0.83rem;
  color: var(--muted);
}
.builder-tabs button[aria-pressed="true"] {
  color: var(--text);
  background: var(--raised);
  border-color: var(--line);
}
.placement-mode {
  margin: 14px 0;
}
.placement-mode button[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}
.placement-mode button[data-builder-mode="planned"][aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
}
.library-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 14px 0;
}
.builder-search {
  display: block;
  margin-bottom: 12px;
}
.builder-search input {
  width: 100%;
  min-height: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.builder-search input::placeholder {
  color: var(--muted);
}
.builder-block-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  max-height: 490px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}
.library-block {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 49px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 10px;
  font-size: 0.84rem;
  line-height: 1.35;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.library-block > .icon:first-child {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.library-block > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.library-block > .icon:last-child {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.75;
  flex-shrink: 0;
}
.library-block:not(:disabled):hover {
  border-color: var(--cyan);
  background: var(--raised);
}
.library-block[draggable="true"] {
  cursor: grab;
}
.library-block.is-added {
  opacity: 1;
  color: var(--cyan);
  border-color: var(--line);
  background: var(--raised);
}
.library-expand {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 14px 0 6px;
  font-size: 0.78rem;
  background: transparent;
  border: 0;
  color: var(--cyan);
}
.library-expand .icon {
  width: 15px;
}
.library-footnote,
.library-empty {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}
.builder-workspace {
  min-width: 0;
}
.blueprint-board.canvas {
  padding: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  display: block;
}
.blueprint-board.canvas.drag-over {
  outline: 2px dashed var(--cyan);
  outline-offset: 5px;
  background: var(--raised);
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.board-heading > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.board-heading .icon {
  width: 18px;
  height: 18px;
}
.board-live {
  color: var(--muted);
  font-size: 0.73rem;
}
.blueprint-environment,
.blueprint-solutions {
  padding: 20px 24px 26px;
}
.board-section-title,
.board-section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.board-section-title {
  justify-content: space-between;
  margin-bottom: 18px;
}
.board-section-title h2 {
  font-size: 1.3rem;
}
.section-index {
  color: var(--muted);
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.board-count {
  font-size: 0.8rem;
  color: var(--muted);
}
.board-section-title .text-button {
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.board-section-title .icon {
  width: 16px;
  height: 16px;
}
.blueprint-empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 22px 12px;
}
.empty-blueprint-icon {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
}
.empty-blueprint-icon .icon {
  width: 34px;
  height: 34px;
}
.blueprint-empty h3 {
  font-size: 1.6rem;
}
.blueprint-empty p {
  margin: 12px 0 23px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.9rem;
}
.blueprint-empty > .text-button {
  margin-top: 14px;
  font-size: 0.82rem;
}
.quick-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.quick-blocks .secondary {
  min-height: 46px;
  padding: 10px 13px;
  font-size: 0.82rem;
  gap: 10px;
}
.quick-blocks .icon {
  width: 18px;
  height: 18px;
}
.quick-blocks .icon:last-child {
  width: 13px;
}
.environment-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.environment-group h3 {
  font-family: Archivo, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.environment-blocks {
  display: grid;
  gap: 9px;
}
.environment-block {
  width: 100%;
  padding: 16px 13px;
  min-height: 67px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.4;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.environment-block > .icon {
  flex-shrink: 0;
}
.environment-block > .icon:last-child {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  margin-left: auto;
}
.environment-block span {
  overflow-wrap: anywhere;
}
.environment-block:hover,
.environment-block.is-connected,
.environment-block.is-hover-connected {
  border-color: var(--cyan);
  background: var(--raised);
}
.environment-block.is-connected {
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.blueprint-solutions {
  border-top: 1px solid var(--line);
}
.solution-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.solution-lane {
  min-width: 0;
}
.solution-lane h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Archivo, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.solution-lane h3 > span:last-child {
  color: var(--muted);
  margin-left: auto;
}
.lane-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
}
.planned-lane .lane-dot {
  background: var(--amber);
}
.solution-blocks {
  display: grid;
  gap: 10px;
}
.solution-block {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 17px 13px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.solution-block:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.solution-block.is-selected {
  border-color: var(--cyan);
}
.solution-block.planned {
  border-style: dashed;
}
.solution-block.planned:hover,
.solution-block.planned.is-selected {
  border-color: var(--amber);
}
.solution-symbol {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
}
.solution-symbol .icon {
  width: 19px;
  height: 19px;
}
.solution-block > .icon:last-child {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
}
.solution-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.solution-copy strong {
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.solution-copy > span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.block-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.block-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.solution-block.gap .block-status {
  color: var(--amber);
}
.solution-block.meets .block-status {
  color: var(--cyan);
}
.solution-block.planned .block-status {
  color: var(--amber);
}
.solution-empty {
  padding: 25px 20px;
  width: 100%;
  min-height: 153px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  border: 1px dashed var(--line);
  background: transparent;
  border-radius: 5px;
}
.solution-empty:hover {
  border-color: var(--cyan);
  background: var(--bg);
}
.solution-empty > .icon {
  width: 20px;
  height: 20px;
}
.solution-empty strong {
  font-weight: 500;
  font-size: 0.83rem;
  line-height: 1.45;
}
.solution-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.blueprint-truth {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 20px;
}
.builder-suggestions {
  margin-top: 26px;
}
.suggestions-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.suggestions-heading h2 {
  font-size: 1.1rem;
}
.suggestions-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
}
.builder-suggestions > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.builder-suggestion {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 15px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.builder-suggestion:hover {
  border-color: var(--cyan);
}
.builder-suggestion > span:nth-child(2) {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 7px;
}
.builder-suggestion strong {
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
}
.builder-suggestion small {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.5;
}
.builder-suggestion > .icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.suggestion-icon {
  display: flex;
  flex-shrink: 0;
}
.suggestion-icon .icon {
  width: 21px;
  height: 21px;
}
.builder-deeper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 23px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--muted);
}
.builder-deeper .text-button {
  font-size: 0.73rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.block-detail {
  position: sticky;
  top: 18px;
  padding: 52px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
}
.detail-close {
  position: absolute;
  top: 4px;
  right: 10px;
}
.detail-eyebrow {
  font-size: 0.75rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 9px;
}
.block-detail h2 {
  font-size: 1.6rem;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.detail-scopes {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 12px 0 22px;
  overflow-wrap: anywhere;
}
.detail-all-scopes {
  margin: -12px 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
}
.detail-all-scopes summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--cyan);
  cursor: pointer;
}
.detail-all-scopes ul {
  max-height: 180px;
  overflow: auto;
  padding-left: 18px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.detail-all-scopes li {
  margin-bottom: 8px;
}
.feature-progress {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}
.feature-progress strong {
  font-weight: 500;
  color: var(--cyan);
}
.feature-progress > span {
  color: var(--muted);
}
.block-question {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.block-question legend {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.block-answers {
  display: flex;
  gap: 7px;
}
.block-answers label {
  flex: 1;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.8rem;
  cursor: pointer;
}
.block-answers label:has(:checked) {
  border-color: var(--cyan);
  color: var(--cyan);
}
.block-answers input {
  accent-color: var(--cyan);
  margin: 0;
  width: 14px;
  height: 14px;
}
.question-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 18px;
  font-size: 0.75rem;
  color: var(--muted);
}
.question-navigation .text-button {
  padding: 10px;
}
.context-reminder {
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 5px;
  margin: 18px 0;
  font-size: 0.8rem;
}
.context-reminder strong {
  font-weight: 500;
}
.context-reminder p {
  color: var(--muted);
  margin-top: 7px;
}
.context-reminder .text-button {
  font-size: 0.8rem;
  color: var(--cyan);
}
.context-reminder small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}
.detail-full {
  width: 100%;
  font-size: 0.83rem;
  gap: 10px;
  padding: 12px;
}
.block-detail > .text-button {
  font-size: 0.75rem;
}
.detail-note {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.55;
}
.builder-footer {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.75rem;
  color: var(--muted);
}
.builder-footer > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.builder-footer .text-button {
  font-size: 0.75rem;
}
@keyframes block-placed {
  from {
    opacity: 0.3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.block-enter {
  animation: block-placed 0.26s ease-out;
}
@media (max-width: 1250px) and (min-width: 760px) {
  .builder-layout.has-detail {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .has-detail .block-detail {
    grid-column: 2;
    grid-row: 1;
    position: relative;
  }
  .has-detail .builder-workspace {
    grid-column: 2;
  }
  .has-detail .block-library {
    grid-row: 1 / span 2;
  }
  .builder-layout {
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .solution-symbol {
    display: none;
  }
}
@media (max-width: 759px) {
  .builder-header {
    padding: 12px 16px;
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .builder-header .brand {
    gap: 12px;
  }
  .builder-header .brand img {
    width: 102px;
  }
  .builder-header .brand span {
    font-size: 0.9rem;
    padding-left: 12px;
  }
  .builder-header-actions {
    gap: 12px;
    margin-left: auto;
  }
  .builder-header-actions .builder-name {
    display: none;
  }
  .builder-header-actions .secondary {
    font-size: 0.8rem;
    padding: 8px 10px;
    gap: 8px;
  }
  .builder-header-actions .secondary .icon {
    width: 16px;
    height: 16px;
  }
  .builder-header .project-menu summary {
    font-size: 0.8rem;
  }
  .builder-header .project-menu {
    margin-left: 0;
  }
  .builder-page {
    padding: 24px 16px 16px;
  }
  .builder-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
  }
  .builder-intro h1 {
    font-size: 2.15rem;
  }
  .builder-intro p {
    font-size: 0.88rem;
    margin-top: 9px;
  }
  .builder-kicker {
    font-size: 0.72rem;
  }
  .builder-review {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.8rem;
  }
  .builder-review:disabled {
    display: none;
  }
  .builder-layout,
  .builder-layout.has-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .builder-workspace,
  .block-library,
  .block-detail {
    width: 100%;
  }
  .builder-workspace {
    order: 1;
  }
  .block-library {
    order: 2;
    position: static;
    padding: 18px;
  }
  .block-detail {
    order: 0;
    position: relative;
    padding: 50px 20px 22px;
  }
  .board-heading {
    padding: 14px;
    font-size: 0.8rem;
  }
  .board-live {
    display: none;
  }
  .blueprint-environment,
  .blueprint-solutions {
    padding: 12px 14px 18px;
  }
  .board-section-title {
    gap: 6px;
    margin-bottom: 12px;
  }
  .board-section-title > div {
    gap: 7px;
  }
  .board-section-title h2 {
    font-size: 1.12rem;
  }
  .board-section-title .text-button {
    font-size: 0.73rem;
    gap: 3px;
  }
  .section-index {
    display: none;
  }
  .blueprint-empty {
    min-height: 0;
    padding: 15px 0 5px;
  }
  .empty-blueprint-icon {
    display: none;
  }
  .blueprint-empty h3 {
    font-size: 1.25rem;
  }
  .blueprint-empty p {
    font-size: 0.8rem;
    margin: 10px 0 15px;
  }
  .quick-blocks {
    gap: 7px;
  }
  .quick-blocks .secondary {
    padding: 8px;
    font-size: 0.75rem;
    gap: 7px;
  }
  .quick-blocks .icon:last-child {
    display: none;
  }
  .environment-groups {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .environment-blocks {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
  .environment-block {
    padding: 12px 9px;
    gap: 8px;
    font-size: 0.8rem;
    min-height: 58px;
  }
  .environment-block > .icon:last-child {
    display: none;
  }
  .solution-lanes {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .solution-empty {
    min-height: 0;
    padding: 16px;
  }
  .solution-empty > .icon {
    display: none;
  }
  .builder-suggestions > div:last-child {
    grid-template-columns: 1fr;
  }
  .suggestions-heading > span {
    display: none;
  }
  .builder-deeper {
    gap: 10px;
    justify-content: flex-start;
    margin-top: 15px;
  }
  .builder-deeper > span {
    width: 100%;
  }
  .builder-block-list {
    grid-template-columns: 1fr 1fr;
    max-height: 380px;
  }
  .library-block {
    padding: 11px 9px;
    font-size: 0.77rem;
    gap: 8px;
  }
  .library-block > .icon:last-child {
    display: none;
  }
  .library-footnote {
    margin-top: 9px;
  }
  .builder-footer {
    padding: 15px 16px;
    flex-wrap: wrap;
    gap: 3px;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .block-enter {
    animation: none;
  }
  .solution-block,
  .environment-block,
  .library-block {
    transition: none;
  }
  .solution-block:hover {
    transform: none;
  }
}
@media print {
  .builder-page,
  .builder-header,
  .builder-footer {
    display: none !important;
  }
}
.builder-plan-review {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.builder-plan-review > p {
  font-size: 0.88rem;
  color: var(--muted);
}
.builder-plan-review .review-meaning {
  margin-top: 12px;
}
.builder-decision-list {
  margin: 24px 0;
  padding: 0 0 0 22px;
}
.builder-decision-list li {
  padding: 17px 0 17px 12px;
  border-top: 1px solid var(--line);
}
.builder-decision-list li::marker {
  color: var(--cyan);
}
.builder-decision-list h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.builder-decision-list span,
.builder-decision-list small {
  color: var(--muted);
  font-size: 0.75rem;
}
.builder-decision-list p {
  font-size: 0.86rem;
  margin: 9px 0;
}
.builder-decision-list .text-button {
  font-size: 0.8rem;
  color: var(--cyan);
}
.builder-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.builder-review-actions button {
  font-size: 0.83rem;
  padding: 12px 16px;
}
@media (max-width: 759px) {
  .builder-plan-review {
    padding: 14px;
  }
}

.answer-review ul {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.answer-review li + li {
  margin-top: 12px;
}
.answer-review li span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.answer-review .text-button {
  text-align: left;
  white-space: normal;
}

/* Presentation uses the same production projection as the board. */

.board-presentation {
  color: #0b0e11;
  font:
    15px/1.45 Archivo,
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.board-presentation * {
  box-sizing: border-box;
}
.presentation-slide {
  background: #f4f6f7;
  border: 1px solid #ccd3d7;
  margin: 18px 0;
  position: relative;
}
.presentation-slide header {
  background: #0b0e11;
  color: #f4f6f7;
  padding: 28px 36px 24px;
  border-top: 5px solid #ff643d;
}
.presentation-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.presentation-organization {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
.presentation-org-logo {
  max-width: 140px;
  max-height: 58px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}
.presentation-org-logo.logo-dark {
  background: #0b0e11;
}
.presentation-slide h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 14px 0;
}
.presentation-slide h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.presentation-slide p {
  margin: 6px 0;
}
.presentation-context,
.presentation-scope {
  color: #afbcc4;
  font-size: 13px;
}
.presentation-content {
  padding: 24px 36px;
}
.presentation-counts {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px !important;
}
.presentation-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.presentation-category {
  background: #fff;
  border: 1px solid #ccd3d7;
  border-radius: 6px;
  padding: 14px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
}
.presentation-category h3 {
  min-height: 44px;
}
.presentation-compact {
  padding: 10px 0;
  border-top: 1px solid #dce1e4;
}
.presentation-compact strong {
  display: block;
  font-size: 14px;
}
.presentation-state {
  display: block;
  font-size: 11px;
  color: #006b6b;
  font-weight: 700;
  margin: 3px 0;
}
.presentation-compact.planned {
  border-top-style: dashed;
}
.presentation-compact.planned .presentation-state {
  color: #805d0b;
}
.presentation-compact p {
  font-size: 12px;
  line-height: 1.35;
}
.presentation-category-note {
  font-size: 11px;
  color: #526169;
  margin-top: auto !important;
  padding-top: 8px;
}
.presentation-empty {
  color: #526169;
  font-size: 13px;
}
.presentation-slide footer {
  background: #0b0e11;
  color: #f4f6f7;
  padding: 16px 36px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px 24px;
  align-items: center;
}
.presentation-slide footer p {
  font-size: 12px;
  margin: 0;
}
.presentation-slide footer img {
  width: 120px;
  height: auto;
  grid-column: 2;
  grid-row: 1/3;
}
.presentation-footnote {
  font-size: 10px;
  color: #afbcc4;
}
.presentation-decisions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.presentation-decisions-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border: 1px solid #ccd3d7;
  background: #fff;
  border-radius: 6px;
  padding: 18px;
}
.presentation-number {
  white-space: nowrap;
  font-size: 23px;
  font-weight: 800;
  color: #006b6b;
}
.presentation-status {
  font-size: 12px;
  font-weight: 700;
  color: #006b6b;
}
.presentation-decisions-list h3 {
  margin: 4px 0 8px;
  font-size: 21px;
}
.presentation-decisions-list p {
  font-size: 15px;
}
.presentation-reason {
  color: #526169;
  font-size: 13px !important;
}
.presentation-decision-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #526169;
  font-size: 12px;
  margin-top: 10px;
}
.presentation-remaining {
  font-size: 12px;
  color: #526169;
}
.presentation-planned-list,
.presentation-environment-grid {
  display: grid;
  grid-template-columns: repeat(var(--slide-columns, 3), minmax(0, 1fr));
  gap: 20px;
}
[data-columns="1"] {
  --slide-columns: 1;
}
[data-columns="2"] {
  --slide-columns: 2;
}
.presentation-planned-list > section,
.presentation-environment-grid > section {
  border: 1px solid #ccd3d7;
  background: #fff;
  padding: 22px;
  border-radius: 6px;
}
.presentation-planned-list > section {
  border-top: 4px solid #ff643d;
}
.presentation-planned-list h3 {
  font-size: 24px;
  margin: 12px 0;
}
.presentation-empty-plan {
  grid-column: 1/-1;
}
.presentation-environment-grid h3 {
  font-size: 24px;
  color: #006b6b;
}
.presentation-environment-area {
  border-top: 1px solid #dce1e4;
  padding: 14px 0;
}
.presentation-environment-area strong {
  font-size: 18px;
}
.presentation-environment-area p {
  font-size: 13px;
}
.presentation-environment-area span,
.presentation-environment-area small {
  color: #526169;
  font-size: 11px;
}
.presentation-transcript {
  background: #fff;
  border: 1px solid #ccd3d7;
  color: #0b0e11;
  padding: 20px;
  margin: 20px 0;
}
.presentation-transcript summary {
  font-weight: 700;
  cursor: pointer;
}
.presentation-transcript section {
  margin: 20px 0;
}
.presentation-transcript li {
  margin: 10px 0;
}
.presentation-transcript a,
.presentation-slide a {
  color: #006b6b;
}
.presentation-record {
  margin-bottom: 16px;
}
.presentation-record p {
  font-size: 14px;
}
@media (max-width: 1000px) {
  .presentation-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .presentation-slide header,
  .presentation-content,
  .presentation-slide footer {
    padding: 20px;
  }
  .presentation-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .presentation-slide h2 {
    font-size: 27px;
  }
  .presentation-planned-list,
  .presentation-environment-grid {
    grid-template-columns: 1fr;
  }
  .presentation-decisions-list li {
    grid-template-columns: 28px 1fr;
    padding: 14px;
    gap: 10px;
  }
  .presentation-slide footer {
    grid-template-columns: 1fr;
  }
  .presentation-slide footer img {
    grid-column: 1;
    grid-row: auto;
    width: 110px;
  }
  .presentation-identity {
    flex-wrap: wrap;
  }
  .presentation-org-logo {
    max-height: 44px;
  }
  .presentation-category {
    min-height: 180px;
  }
}
@media (max-width: 380px) {
  .presentation-categories {
    grid-template-columns: 1fr;
  }
}
@page blueprint-slides {
  size: 320mm 180mm;
  margin: 0;
}
@media print {
  html,
  body {
    margin: 0;
    padding: 0;
    background: white;
    color-scheme: light;
  }
  .board-presentation {
    font-size: 9pt;
  }
  .presentation-slide {
    page: blueprint-slides;
    width: 320mm;
    height: 180mm;
    margin: 0;
    border: 0;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
    display: flex;
    flex-direction: column;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .presentation-slide:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }
  .presentation-slide header {
    padding: 5mm 10mm;
    border-top-width: 1.5mm;
    height: 39mm;
    flex-shrink: 0;
  }
  .presentation-slide h2 {
    font-size: 24pt;
    margin: 2mm 0;
  }
  .presentation-organization {
    font-size: 13pt;
    max-width: 240mm;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-context,
  .presentation-scope {
    font-size: 8pt;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-org-logo {
    max-height: 10mm;
    max-width: 35mm;
  }
  .presentation-content {
    padding: 4mm 10mm;
    flex: 1;
    min-height: 0;
  }
  .presentation-counts {
    font-size: 9pt;
    margin-bottom: 3mm !important;
  }
  .presentation-categories {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3mm;
  }
  .presentation-category {
    padding: 3mm;
    min-height: 0;
    height: 53mm;
  }
  .presentation-category h3 {
    font-size: 11pt;
    min-height: 8mm;
    max-height: 8mm;
    overflow: hidden;
    margin-bottom: 1mm;
    flex-shrink: 0;
  }
  .presentation-compact {
    padding: 1mm 0;
    flex-shrink: 0;
  }
  .presentation-compact strong {
    font-size: 8pt;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-state {
    font-size: 7pt;
    margin: 0;
  }
  .presentation-compact p {
    font-size: 7pt;
    line-height: 1.2;
    margin: 0.5mm 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .presentation-category-note {
    font-size: 6.5pt;
    line-height: 1.2;
    padding-top: 1mm;
    flex-shrink: 0;
  }
  .presentation-slide footer {
    padding: 3mm 10mm;
    flex-shrink: 0;
    gap: 1mm 5mm;
    height: 16mm;
  }
  .presentation-slide footer p {
    font-size: 8pt;
  }
  .presentation-footnote {
    font-size: 6.5pt;
  }
  .presentation-slide footer img {
    width: 28mm;
  }
  .presentation-decisions-list {
    gap: 3mm;
  }
  .presentation-decisions-list li {
    height: 32mm;
    overflow: hidden;
    padding: 3mm;
    grid-template-columns: 8mm 1fr;
    gap: 3mm;
    min-height: 30mm;
  }
  .presentation-decisions-list h3 {
    font-size: 13pt;
    margin: 1mm 0;
  }
  .presentation-decisions-list p {
    font-size: 9pt;
    margin: 1mm 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .presentation-reason {
    font-size: 8pt !important;
  }
  .presentation-status,
  .presentation-decision-meta,
  .presentation-remaining {
    font-size: 8pt;
  }
  .presentation-decision-meta {
    margin-top: 1mm;
    flex-wrap: nowrap;
  }
  .presentation-decision-meta span {
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-number {
    font-size: 16pt;
  }
  .presentation-planned-list,
  .presentation-environment-grid {
    gap: 4mm;
    grid-template-columns: repeat(var(--slide-columns, 3), minmax(0, 1fr));
  }
  .presentation-planned-list > section,
  .presentation-environment-grid > section {
    padding: 4mm;
    height: 100mm;
    overflow: hidden;
  }
  .presentation-planned-list h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .presentation-planned-list p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10pt;
  }
  .presentation-planned-list p.presentation-decision-meta {
    -webkit-line-clamp: 2;
  }
  .presentation-planned-list h3,
  .presentation-environment-grid h3 {
    font-size: 16pt;
  }
  .presentation-environment-area {
    height: 24mm;
    overflow: hidden;
    padding: 2mm 0;
  }
  .presentation-environment-area strong {
    font-size: 11pt;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-environment-area p {
    font-size: 8pt;
    margin: 1mm 0;
  }
  .presentation-environment-solution {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .presentation-environment-area span,
  .presentation-environment-area small {
    font-size: 7pt;
  }
  .presentation-transcript {
    display: none;
  }
}

.cb-presentation-canvas {
  margin: 22px 0;
  border: 1px solid var(--line);
  background: #f5f7f5;
}
.cb-presentation-canvas canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.cb-presentation-actions {
  margin: 20px 0;
}
.cb-placement-scopes {
  border: 0;
  padding: 0;
  margin: 10px 0;
  max-height: 180px;
  overflow: auto;
}
.cb-placement-scopes legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cb-placement-scopes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 9px 0;
}

/* Complete records use the selected paper and wrap imported text. */
.report-document {
  overflow-wrap: anywhere;
}
.configuration-annex pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media print {
  .configuration-annex pre {
    font-size: 8pt;
    line-height: 1.25;
  }
}

.cb-presentation-toolbar {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}
.cb-presentation-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cb-presentation-tabs [aria-pressed="true"] {
  background: var(--raised);
  border-color: var(--cyan);
  color: var(--cyan);
}
.cb-presentation-readable > .board-presentation > .presentation-slide {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: normal;
}
.cb-presentation-readable .presentation-transcript {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}
.cb-presentation-readable .presentation-transcript a {
  color: var(--cyan);
}
.presentation-workspace .cb-heading {
  align-items: flex-start;
}
@media (max-width: 759px) {
  .cb-presentation-canvas {
    display: none;
  }
  .cb-presentation-readable > .board-presentation > .presentation-slide {
    position: relative;
    width: auto;
    height: auto;
    margin: 18px 0;
    overflow: visible;
    clip-path: none;
  }
  .cb-presentation-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cb-presentation-toolbar .cb-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cb-presentation-tabs button {
    padding: 12px 8px;
    font-size: 12px;
  }
  .presentation-workspace .cb-heading .cb-actions {
    gap: 6px;
  }
}

.protection-guidance {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 18px 0;
}
.protection-guidance summary {
  cursor: pointer;
  font-weight: 600;
}
.protection-guidance p,
.protection-guidance li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.protection-guidance li {
  margin: 8px 0;
}
.protection-guidance ul {
  padding-left: 20px;
}
.protection-guidance details {
  margin-top: 14px;
}

.cb-logo-options {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cb-logo-options img {
  max-width: 140px;
  max-height: 70px;
  padding: 8px;
}
.cb-logo-options .logo-light {
  background: white;
}
.cb-logo-options .logo-dark {
  background: #0b0e11;
}

/* Presentation summaries adapt to the selected content. */
.presentation-categories[data-columns="1"] {
  grid-template-columns: 1fr;
}
.presentation-categories[data-density="sparse"] .presentation-category {
  min-height: 340px;
  padding: 22px;
}
.presentation-categories[data-density="sparse"] h3 {
  font-size: 24px;
  min-height: 48px;
}
.presentation-categories[data-density="sparse"] .presentation-compact {
  padding: 14px 0;
}
.presentation-categories[data-density="sparse"] .presentation-compact strong {
  font-size: 19px;
}
.presentation-categories[data-density="sparse"] .presentation-compact p {
  font-size: 15px;
  line-height: 1.45;
}
.presentation-categories[data-density="sparse"] .presentation-state {
  font-size: 13px;
}
.presentation-setup-note,
.presentation-detail-count {
  color: #526169;
  font-size: 11px !important;
}
.presentation-planned-list > section {
  display: flex;
  flex-direction: column;
}
.presentation-planned-list .presentation-decision-meta {
  margin-top: auto;
  padding-top: 18px;
}
.presentation-planned-list .presentation-features {
  font-size: 17px;
  line-height: 1.6;
}
.presentation-decisions-list[data-count="1"] li {
  min-height: 310px;
  padding: 30px;
}
.presentation-decisions-list[data-count="1"] h3 {
  font-size: 29px;
  margin: 12px 0 18px;
}
.presentation-decisions-list[data-count="1"] p {
  font-size: 20px;
}
.presentation-decisions-list[data-count="1"] .presentation-reason {
  font-size: 17px !important;
}
.presentation-decisions-list[data-count="1"] .presentation-decision-meta {
  margin-top: 24px;
  font-size: 14px;
}
.presentation-decisions-list[data-count="2"] li {
  min-height: 195px;
}
.presentation-decisions-list[data-count="2"] h3 {
  font-size: 24px;
}
@media (max-width: 650px) {
  .presentation-categories[data-density="sparse"] .presentation-category {
    padding: 16px;
    min-height: 260px;
  }
  .presentation-categories[data-density="sparse"] h3 {
    font-size: 20px;
  }
  .presentation-categories[data-density="sparse"] .presentation-compact strong {
    font-size: 16px;
  }
  .presentation-categories[data-density="sparse"] .presentation-compact p {
    font-size: 14px;
  }
  .presentation-decisions-list[data-count="1"] li {
    padding: 18px;
  }
  .presentation-decisions-list[data-count="1"] h3 {
    font-size: 24px;
  }
  .presentation-decisions-list[data-count="1"] p {
    font-size: 17px;
  }
}
@media print {
  .presentation-categories[data-density="sparse"] .presentation-category {
    height: 100mm;
    min-height: 0;
    padding: 4mm;
  }
  .presentation-categories[data-density="sparse"] h3 {
    font-size: 16pt;
    min-height: 12mm;
    max-height: 12mm;
  }
  .presentation-categories[data-density="sparse"] .presentation-compact {
    padding: 2mm 0;
  }
  .presentation-categories[data-density="sparse"] .presentation-compact strong {
    font-size: 12pt;
  }
  .presentation-categories[data-density="sparse"] .presentation-state {
    font-size: 9pt;
  }
  .presentation-categories[data-density="sparse"] .presentation-compact p {
    font-size: 10pt;
    line-height: 1.3;
    -webkit-line-clamp: 4;
  }
  .presentation-categories[data-density="sparse"]
    .presentation-unrecorded-list {
    font-size: 11pt;
    line-height: 1.45;
  }
  .presentation-categories[data-density="sparse"] .presentation-category-note {
    font-size: 8pt;
  }
  .presentation-setup-note,
  .presentation-detail-count {
    font-size: 7pt !important;
    line-height: 1.2 !important;
  }
  .presentation-decisions-list[data-count="1"] li {
    height: 100mm;
    min-height: 0;
    padding: 7mm;
  }
  .presentation-decisions-list[data-count="1"] h3 {
    font-size: 20pt;
    margin: 3mm 0 5mm;
  }
  .presentation-decisions-list[data-count="1"] p {
    font-size: 14pt;
    -webkit-line-clamp: 3;
  }
  .presentation-decisions-list[data-count="1"] .presentation-reason {
    font-size: 11pt !important;
  }
  .presentation-decisions-list[data-count="1"] .presentation-decision-meta {
    margin-top: 6mm;
    font-size: 10pt;
  }
  .presentation-decisions-list[data-count="2"] li {
    height: 48mm;
    min-height: 0;
    padding: 4mm;
  }
  .presentation-decisions-list[data-count="2"] h3 {
    font-size: 15pt;
  }
  .presentation-decisions-list[data-count="2"] p {
    font-size: 10pt;
  }
  .presentation-planned-list .presentation-features {
    font-size: 11pt;
    line-height: 1.45;
  }
  .presentation-planned-list .presentation-decision-meta {
    padding-top: 3mm;
  }
}

@media print {
  .presentation-categories[data-density="dense"] .presentation-category {
    padding: 2.5mm;
  }
  .presentation-categories[data-density="dense"] .presentation-compact {
    padding: 0.8mm 0;
  }
  .presentation-categories[data-density="dense"] .presentation-compact strong,
  .presentation-categories[data-density="dense"] .presentation-state {
    line-height: 1.2;
  }
  .presentation-categories[data-density="dense"] .presentation-compact p {
    line-height: 1.15;
  }
  .presentation-categories[data-density="dense"] .presentation-category-note {
    margin-bottom: 0;
    line-height: 1.2;
  }
}
