.tool-audience { color: var(--muted); font-weight: 600; }
.tool-preview-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: center; padding: clamp(1rem,3vw,1.7rem); background: #f5eee3; border: 1px solid var(--line); border-radius: .7rem; }
.tool-preview-panel h2 { font-size: clamp(1.3rem,2.7vw,1.8rem); margin: 0; }
.tool-preview-panel p { margin: .4rem 0; }
.tool-preview-panel button { background: var(--portal-green); min-height: 44px; }
[data-tool] { --workbench-accent:#26554a; --result-rule:#c9d9d1; margin-block: .9rem 2rem; }
[data-tool] .tool-input, .tool-result-surface { min-width: 0; padding: clamp(.85rem,2.55vw,1.6rem); border-radius: .65rem; }
.tool-input { background: #fff; margin: 0 0 1rem; }
.tool-input > h2, .tool-result-surface > h2 { margin: 0 0 .7rem; font-size: clamp(1.4rem,2.5vw,1.9rem); }
[data-tool] .actions button { min-height: 40px; }
[data-tool] button:disabled { opacity: .65; cursor: default; }
.wish-context { grid-column: 1 / -1; background: #e4eee6; padding: .65rem 1rem; border-inline-start: .25rem solid var(--workbench-accent); margin: 0; }
.workspace-summary { border-block-start: .3rem solid var(--workbench-accent); padding-block-start: .75rem; }
.workspace-summary .actions, .result-actions { margin-block: 1rem; }
.wish-journey li { border-inline-start: .15rem solid #b9d0c2; padding: .35rem .55rem; }
.wish-journey small { color: #315b4e; }
.workspace-date { border-inline-start: .2rem solid #9ab4a4; padding-inline-start: .75rem; }
.saved-result-text { white-space: pre-wrap; }
.result-text-copy { position: fixed; inset: 0 auto auto -200vw; width: 32rem; }
.memory-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .15rem; margin-block: .75rem 1rem; }
.memory-calendar > div { min-width: 0; border: 1px solid #c9d9d1; background: white; padding: .2rem; min-height: 2.4rem; }
.memory-calendar a { display: block; overflow-wrap: anywhere; }
.memory-controls label:has(input[type="checkbox"]), .workspace-controls label:has(input[type="checkbox"]) { align-self: center; justify-content: start; }
.group-decision { margin-block: 1.2rem; }
@media print {
  .group-decision { display: block !important; }
  body.print-result main > :not([data-tool]), body.print-result [data-tool] > :not(.tool-result-surface),
  body.print-result .tool-result-surface > :not(.result), body.print-one .tool-result-surface > :not(.result),
  body.print-one [data-tool] > :not(.tool-result-surface), body.print-one main > :not([data-tool]),
  body.print-one .result > :not(.print-this) { display: none !important; }
  body.print-result [data-tool] { display: block; }
}
.tool-result-surface { background: #f4f8f2; border: 1px solid var(--result-rule); scroll-margin-block-start: 1rem; }
.tool-result-surface:focus-visible { outline: 2px solid var(--workbench-accent); outline-offset: .18rem; }
.tool-result-surface[data-state="example"] { background: #fbf6eb; }
.result-mode { display: inline-block; background: #fff; padding: .15rem .6rem; margin: 0 0 .7rem; border: 1px solid var(--result-rule); border-radius: .3rem; font-size: .85rem; font-weight: 700; }
.result-reading { margin-top: 1.4rem; padding-top: .65rem; border-top: 1px solid var(--result-rule); }
.result-reading p { margin-block: .45rem; }
.result-reading strong { color: #234e43; }
.workspace-controls { margin: 0 0 1rem; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap: .55rem; margin: 0 0 .85rem; }
.result-metrics > div { min-width: 0; background: white; padding: .55rem .65rem; border: 1px solid var(--result-rule); border-radius: .4rem; }
.result-metrics dt { font-size: .83rem; line-height: 1.3; }
.result-metrics dd { margin: .25rem 0 0; font-size: clamp(1rem,2.1vw,1.4rem); font-weight: 700; color: var(--workbench-accent); line-height: 1.25; font-variant-numeric: tabular-nums; }
.result-bars { margin: 1.2rem 0; }
.result-bars figcaption, .compass-result figcaption { font-weight: 700; margin-bottom: .55rem; }
.bar-row { margin-block: .45rem; }
.bar-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; font-variant-numeric: tabular-nums; font-size: .92rem; }
.bar-track { margin-top: .2rem; height: .6rem; background: #dce6df; border-radius: .25rem; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--workbench-accent); border-radius: inherit; }
.result-progress progress { width: min(100%,26rem); accent-color: var(--workbench-accent); }
.board { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.board > section { margin: 0; background: #eaf0e8; padding: .55rem .65rem; border-top: 3px solid #799889; border-radius: .45rem; }
.board article { margin-bottom: .55rem; }
.board .empty-column { border-top-width: 1px; }
.board .empty-column h3, .board .empty-column p { margin-block: .35rem; }
.discovery-results, .adaptation-options, .readiness-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .8rem; margin-block: .65rem; }
.discovery-results .panel > h3, .adaptation-options .panel > h3 { font-family: var(--font-heading); margin-top: 0; }
.discovery-results .result-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.discovery-results .result-metrics dd { font-size: 1rem; }
.compass-result { margin: 1rem 0; }
.compass-result svg { margin: auto; display: block; }
.pair-choices { display: grid; gap: .5rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.pair-choices button { min-height: 44px; border-radius: .4rem; }
.pair-choices button:nth-child(n+3) { background: white; color: var(--ink); border: 1px solid var(--result-rule); }
.rank-list li, .review-timeline li { padding: .5rem .75rem; margin-bottom: .55rem; border-left: 3px solid #779b89; border-radius: .25rem; background: white; }
.rank-list p, .review-timeline h3 { margin: .2rem 0; }
.readiness-board > section { margin: 0; padding: .65rem; border-radius: .4rem; border-top: 3px solid #799889; background: white; }
.readiness-board > [data-condition="missing"] { border-color:#b56748; }
.readiness-board > [data-condition="unknown"] { border-color:#a1854b; }
.readiness-board h3 { margin: .25rem 0; }
.sprint-timeline > section { margin: .65rem 0; border-left: 3px solid #779b89; }
.sprint-timeline h3, .sprint-timeline p { margin: .3rem 0; }
.sprint-timeline label:has(input[type="checkbox"]), .checklist-row label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .45rem; }
.checklist-phase { border-top: 1px solid var(--result-rule); margin: .85rem 0; padding: .35rem 0; }
.checklist-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .55rem; align-items: end; background: white; border-radius: .4rem; padding: .3rem .65rem; margin-bottom: .4rem; }
.checklist-row:has(input:checked) { background: #e9f2e7; }
.checklist-row button { margin-bottom: .65rem; }
.memory-page, .passport-stamp { margin-block: .65rem; }
.memory-page h3, .passport-stamp h3 { margin-top: .2rem; font-family: var(--font-heading); }
.memory-page h4, .memory-page h4 + p { margin-block: .35rem; }
.passport-year { border-top: 2px solid #82a195; margin-block: 1.3rem; }
.passport-stamp { border-style: dashed !important; }
.mobile-cell-caption { display: none; }
@media print {
  body.print-one main > :not([data-tool]),
  body.print-one [data-tool] > :not(.tool-result-surface),
  body.print-one .tool-result-surface > :not(.result) { display: none !important; }
  body.print-one .tool-result-surface { padding: 0; border: 0; background: white; }
}
@media (min-width: 1024px) {
  [data-tool-layout="split"] { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 1rem; align-items: start; }
  [data-tool-layout="split"] .tool-input .fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem .75rem; }
}
@media (max-width: 760px) {
  .tool-preview-panel { grid-template-columns: 1fr; }
  .checklist-row { grid-template-columns: minmax(0,1fr); gap: .1rem; align-items: start; }
  .checklist-row button { justify-self: start; margin-bottom: .25rem; }
  .tool-result-surface table, .tool-result-surface tbody { display: block; width: 100%; }
  .tool-result-surface tr { display: block; border: 1px solid var(--result-rule); background: #fff; margin: .55rem 0; border-radius: .4rem; }
  .tool-result-surface thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tool-result-surface td { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: .4rem; border: 0; border-bottom: 1px solid var(--result-rule); overflow-wrap: anywhere; }
  .tool-result-surface td:last-child { border: 0; }
  .mobile-cell-caption { display: inline; font-weight: 650; }
}
.worked-result-reading {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.worked-result-reading h3,
.tool-walkthrough h3 + :is(p, ul, div) {
  margin-top: 0;
}
.tool-walkthrough h3 {
  margin-top: 1.35rem;
}
