/* The route stays in place while a separate sheet reveals the selected stage. */
.goal-path-open { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 0; text-align: left; color: var(--accent); border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; }
.goal-path-open > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-path-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#goal-path-slot { margin-block: 20px 28px; }
.goals-view:has(.goal-path-page:not([hidden])) { overflow: hidden; padding: 0; }
.goal-path-page { container: goal-path / inline-size; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.goal-path-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; width: calc(100% - 64px); max-width: 1120px; margin: 32px auto 40px; }
.goal-path-heading > div { min-width: 0; }
.goal-path-heading h1 { font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.goal-path-heading h1:focus { outline: none; }
.goal-path-heading p { font-size: 14px; line-height: 1.6; margin: 8px 0 0; overflow-wrap: anywhere; }
.goal-path-heading .action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; }
.goal-path-heading .action-button .icon { width: 16px; height: 16px; }
.goal-path-back { display: inline-flex; align-items: center; gap: 8px; padding-inline: 8px; border-radius: var(--radius-small); }
.goal-path-back .icon { width: 18px; height: 18px; }
.goal-path-notice { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.goal-path-notice:has(> :not([hidden])) { padding-bottom: 16px; }
.goal-path-notice > p { margin: 0; font-size: 13px; }
.goal-path-scene { width: 100%; max-width: 1184px; margin-inline: auto; padding-bottom: 48px; }
.goal-path-toolbar { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin: 0 32px 8px; }
.goal-path-summary { display: block; margin-top: 8px; color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.goal-path-navigation { display: flex; align-items: center; gap: 4px; }
.goal-path-navigation .icon { width: 18px; height: 18px; }
.goal-path-navigation [aria-disabled='true'] { opacity: .35; cursor: default; }
.goal-path-viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; overflow-anchor: none; scroll-padding-inline: 24px; }
.goal-path-viewport:focus-visible { outline-offset: -4px; }
.goal-path-viewport[data-start='false'] { mask-image: linear-gradient(to right, transparent, #000 16px); }
.goal-path-viewport[data-end='false'] { mask-image: linear-gradient(to left, transparent, #000 16px); }
.goal-path-viewport[data-start='false'][data-end='false'] { mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.goal-path-map { position: relative; width: max-content; min-width: 100%; padding: 12px 32px 24px; }
.goal-path-map > .entity-muted { padding: 24px 0; font-size: 14px; margin: 0; }
.goal-path-levels { position: relative; display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; }
.goal-path-level { position: relative; flex: 0 0 200px; width: 200px; }
.goal-path-level:not(:last-child)::after { content: ''; position: absolute; top: 38px; left: calc(50% + 28px); width: calc(100% - 56px); height: 1px; background: var(--border); pointer-events: none; }
.goal-path-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; min-height: 160px; padding: 16px; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--text); cursor: pointer; text-align: center; }
.goal-path-node:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.goal-path-marker { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 50%; background: var(--background); color: var(--text-secondary); font-size: 16px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.goal-path-marker > .icon { width: 20px; height: 20px; }
.goal-path-node[data-status='active'] .goal-path-marker { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.goal-path-node[data-status='completed'] .goal-path-marker { background: var(--surface-hover); color: var(--text); border-color: transparent; }
.goal-path-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 168px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.goal-path-state { font-size: 12px; line-height: 1.6; color: var(--text-secondary); margin-top: 6px; }
.goal-path-node[data-status='active'] .goal-path-state { color: var(--accent); }
.goal-path-selection { position: absolute; top: 0; left: 0; pointer-events: none; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); opacity: 0; transition: transform 200ms var(--ease-out), opacity var(--duration-fast) ease; }
.goal-path-selection[data-visible='true'] { opacity: 1; }
.goal-stage-slot { margin: 16px 32px 0; }
.goal-path-details { width: 100%; max-width: 900px; margin: 0 auto; padding: 24px; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top center; transition: transform 200ms var(--ease-out), opacity var(--duration-fast) var(--ease-out), visibility 0s linear 200ms; }
.goal-path-details[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.goal-stage-heading { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.goal-stage-heading h2 { flex: 1; min-width: 0; margin: 4px 12px 0 0; font-size: 18px; font-weight: 500; line-height: 1.45; }
.goal-stage-heading .icon-button, .goal-stage-task-heading .icon-button { width: 32px; height: 32px; padding: 0; }
.goal-stage-heading .icon, .goal-stage-task-heading .icon { width: 16px; height: 16px; }
.goal-stage-state { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin: 6px 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.goal-stage-state[data-status='active'] { color: var(--accent); }
.goal-stage-state .icon { width: 14px; height: 14px; }
.goal-stage-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; }
.goal-stage-overview { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.goal-stage-description { font-size: 14px; line-height: 1.65; margin: 0; color: var(--text-secondary); white-space: pre-wrap; }
.goal-stage-columns-single { grid-template-columns: minmax(0, 1fr); }
.goal-stage-columns-single .goal-stage-overview { display: none; }
.goal-stage-task-heading { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-top: -4px; }
.goal-stage-task-heading h3 { font-size: 13px; line-height: 1.5; font-weight: 500; margin: 0; }
.goal-stage-task-heading .icon-button { margin-left: auto; }
.goal-stage-progress { margin-left: auto; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.goal-stage-progress:not([hidden]) + .icon-button { margin-left: 0; }
.goal-stage-tasks { list-style: none; padding: 0; margin: 4px 0 0; }
.goal-stage-tasks > li + li { border-top: 1px solid var(--border); }
.goal-stage-task { display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%; min-height: 44px; padding: 10px 4px; border: 0; border-radius: var(--radius-small); background: transparent; font-size: 13px; line-height: 1.6; }
.goal-stage-task .icon { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.goal-stage-task[data-done='true'] { color: var(--text-secondary); }
.goal-stage-task[data-done='true'] .icon { color: var(--accent); }
.goal-stage-empty { margin: 12px 0 0; font-size: 13px; color: var(--text-secondary); }
.goal-stage-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: auto; font-size: 13px; }
.goal-stage-primary .icon { width: 16px; height: 16px; }
.goal-stage-form { max-width: 520px; margin-inline: auto; }
.goal-stage-form .creation-field { margin-bottom: 16px; font-size: 13px; }
.goal-stage-form textarea, .goal-stage-form input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--background); color: var(--text); font: inherit; line-height: 1.5; caret-color: var(--accent); }
.goal-stage-form textarea { resize: vertical; }
.goal-stage-form > .text-button { margin-left: 12px; min-height: 44px; }
.goal-path-page button:disabled { cursor: wait; }
.goal-path-scene[data-motion='false'] .goal-path-details, .goal-path-scene[data-motion='false'] .goal-path-selection { transition: none; }
@media (hover: hover) and (pointer: fine) {
  .goal-path-back:hover, .goal-path-open:hover, .goal-stage-task:hover { background: var(--surface-hover); }
  .goal-path-node:hover .goal-path-marker { transform: translateY(-2px); }
  .goal-path-node:active .goal-path-marker { transform: scale(.96); }
}
@container goal-path (max-width: 640px) {
  .goal-path-heading { width: calc(100% - 40px); gap: 16px; flex-wrap: wrap; margin-block: 20px; }
  .goal-path-heading h1 { font-size: 24px; }
  .goal-path-heading p { font-size: 13px; }
  .goal-path-heading .action-button { padding-inline: 12px; }
  .goal-path-toolbar { margin-inline: 20px; margin-bottom: 0; }
  .goal-path-map { padding-inline: 20px; }
  .goal-path-level { flex-basis: 164px; width: 164px; }
  .goal-path-node { min-height: 152px; padding: 12px 12px 16px; }
  .goal-path-marker { margin-bottom: 12px; }
  .goal-path-notice { padding-inline: 20px; }
  .goal-stage-slot { margin-inline: 16px; margin-top: 8px; }
  .goal-path-details { padding: 16px; }
  .goal-stage-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 4px; margin-bottom: 16px; }
  .goal-stage-heading h2 { grid-column: 1; grid-row: 1; margin: 8px 8px 0 0; font-size: 16px; }
  .goal-stage-heading .menu-anchor { grid-column: 2; grid-row: 1; }
  .goal-stage-heading > .icon-button { grid-column: 3; grid-row: 1; }
  .goal-stage-state { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
  .goal-stage-heading .icon-button, .goal-stage-task-heading .icon-button { width: 44px; height: 44px; }
  .goal-stage-columns { display: flex; flex-direction: column; gap: 16px; }
  .goal-stage-overview { display: contents; }
  .goal-stage-description { font-size: 13px; }
  .goal-stage-task-section { order: 1; }
  .goal-stage-primary { order: 2; align-self: flex-start; }
  .goal-stage-form input, .goal-stage-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-path-marker, .goal-path-selection { transition: none; }
  .goal-path-details, .goal-path-details[data-open='true'] { transform: none; transition: opacity 100ms linear; }
}
@media (forced-colors: active) {
  .goal-path-marker { border-color: ButtonText; }
  .goal-path-node[data-status='active'] .goal-path-marker { background: Highlight; color: HighlightText; border-color: Highlight; forced-color-adjust: none; }
  .goal-path-selection { border: 2px solid Highlight; }
  .goal-path-level::after { background: CanvasText; }
}


/* Shared raised level treatment and explicit selection, in either orientation. */
.goal-path-selection { display: none; }
.goal-path-marker { position: relative; isolation: isolate; width: 68px; height: 60px; margin-bottom: 20px; font-size: 20px; background: var(--surface-hover); color: var(--text-secondary); box-shadow: 0 6px 0 var(--border); transform-origin: center; transition: transform 200ms var(--ease-out); }
.goal-path-marker::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out); }
.goal-path-marker > span, .goal-path-marker > .icon { position: relative; z-index: 1; }
.goal-path-marker > .icon { width: 24px; height: 24px; }
.goal-path-node[data-status='active'] .goal-path-marker { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 62%, var(--background)); }
.goal-path-node[data-status='completed'] .goal-path-marker { background: var(--surface-hover); color: var(--text); border-color: var(--border); box-shadow: 0 6px 0 var(--border); }
.goal-path-node[aria-expanded='true'] .goal-path-marker { transform: scale(1.14); }
.goal-path-node[aria-expanded='true'] .goal-path-marker::before { opacity: .13; }
.goal-path-node:focus-visible { outline: none; }
.goal-path-node:focus-visible .goal-path-marker { outline: 2px solid var(--focus); outline-offset: 7px; }
.goal-path-scene[data-motion='false'] .goal-path-marker, .goal-path-scene[data-motion='false'] .goal-path-marker::before { transition: none; }
.goal-path-level:not(:last-child)::after { display: none; }
.goal-path-bridge { position: absolute; z-index: 0; top: 46px; left: calc(50% + 44px); width: calc(100% - 88px); height: 32px; margin-top: -16px; overflow: visible; pointer-events: none; }
.goal-path-bridge path { fill: none; stroke: var(--border); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.goal-path-line { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.goal-path-line path { fill: none; stroke: var(--border); stroke-width: 8px; stroke-linecap: round; }
.goal-stage-title-text { display: inline; }
.goal-path-page { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.goal-path-scene { --path-wide: 0; --path-context-side: 0; position: relative; max-width: none; min-height: 0; width: 100%; }
.goal-path-heading { display: block; }
.goal-path-heading > div { overflow-wrap: anywhere; }
#goal-stage-add, #goal-path-orientation { flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .goal-path-node:not([aria-expanded='true']):hover .goal-path-marker { transform: translateY(-2px); }
  .goal-path-node[aria-expanded='true']:hover .goal-path-marker { transform: scale(1.14); }
  .goal-path-node:not([aria-expanded='true']):active .goal-path-marker { transform: translateY(3px) scale(.98); }
  .goal-path-node[aria-expanded='true']:active .goal-path-marker { transform: translateY(3px) scale(1.1); }
}

/* Default: the winding vertical route reaches the main application header. */
.goal-path-page[data-orientation='vertical'] .goal-path-scene { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 0; flex: 1; padding-bottom: 0; }
.goal-path-page[data-orientation='vertical'] .goal-path-scene:is([data-panel='open'], [data-panel='closing']) { grid-template-rows: minmax(0, 1fr) min(340px, 48%); }
.goal-path-page[data-orientation='vertical'] .goal-path-toolbar { display: none; }
.goal-path-page[data-orientation='vertical'] .goal-path-summary { display: none; }
.goal-path-page[data-orientation='vertical'] .goal-path-viewport { grid-row: 1; grid-column: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; scrollbar-gutter: stable both-edges; overscroll-behavior: contain; mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.goal-path-page[data-orientation='vertical'] .goal-path-heading { width: calc(100% - 40px); max-width: none; margin: 24px 20px 28px; }
.goal-path-page[data-orientation='vertical'] .goal-path-map { --path-scale: .7; position: relative; width: min(360px, 100%); min-width: 0; max-width: 360px; margin-inline: auto; padding: 32px 0; display: flex; flex-direction: column; justify-content: flex-end; }
.goal-path-page[data-orientation='vertical'] .goal-path-levels { display: flex; flex-direction: column-reverse; justify-content: normal; flex-shrink: 0; }
.goal-path-page[data-orientation='vertical'] .goal-path-level { display: flex; justify-content: center; width: 100%; height: 184px; flex: 0 0 184px; }
.goal-path-page[data-orientation='vertical'] .goal-path-node { flex: 0 0 200px; width: 200px; min-height: 176px; left: calc(var(--path-offset) * var(--path-scale)); }
.goal-path-page[data-orientation='vertical'] :is(.goal-path-label, .goal-path-state) { background: var(--background); padding-inline: 4px; }
.goal-path-page[data-orientation='vertical'] .goal-stage-slot { position: relative; grid-row: 2; grid-column: 1; min-height: 0; margin: 0; overflow: hidden; }
.goal-path-page[data-orientation='vertical'] .goal-path-details { position: absolute; top: 8px; left: 50%; width: calc(100% - 32px); max-width: 480px; height: calc(100% - 16px); max-height: none; padding: 16px; overflow: hidden; transform: translateX(-50%) translateY(8px); clip-path: inset(100% 0 0 0 round 16px); }
.goal-path-page[data-orientation='vertical'] .goal-path-details[data-open='true'] { transform: translateX(-50%) translateY(0); clip-path: inset(0 0 0 0 round 16px); }
.goal-path-page[data-orientation='vertical'] .goal-stage-body { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.goal-path-page[data-orientation='vertical'] .goal-stage-heading { flex-shrink: 0; margin-bottom: 16px; }
.goal-path-page[data-orientation='vertical'] .goal-stage-heading h2 { overflow: hidden; white-space: nowrap; }
.goal-path-page[data-orientation='vertical'] .goal-stage-title-text { display: block; width: max-content; transform: translateX(0); transition: transform var(--duration-fast) var(--ease-out); }
.goal-path-page[data-orientation='vertical'] .goal-stage-heading h2[data-overflow='true'] { mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
.goal-path-page[data-orientation='vertical'] :is(.goal-stage-content, .goal-stage-form) { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 4px; }
.goal-path-page[data-orientation='vertical'] .goal-stage-columns { display: flex; flex-direction: column; gap: 16px; }
.goal-path-page[data-orientation='vertical'] .goal-stage-overview { display: contents; }
.goal-path-page[data-orientation='vertical'] .goal-stage-task-section { order: 1; }
.goal-path-page[data-orientation='vertical'] .goal-stage-primary { order: 2; align-self: flex-start; }

/* The admin's alternate view retains the horizontal composition. */
.goal-path-page[data-orientation='horizontal'] { overflow-y: auto; }
.goal-path-page[data-orientation='horizontal'] .goal-path-scene { display: flex; flex-direction: column; height: auto; min-height: 100%; padding-bottom: 48px; }
.goal-path-page[data-orientation='horizontal'] .goal-path-heading { width: calc(100% - 64px); max-width: 1120px; margin: 32px auto 24px; }
.goal-path-page[data-orientation='horizontal'] .goal-path-toolbar { width: calc(100% - 64px); max-width: 900px; margin: 0 auto 8px; }
.goal-path-page[data-orientation='horizontal'] .goal-path-viewport { flex-shrink: 0; scrollbar-width: none; }
.goal-path-page[data-orientation='horizontal'] .goal-path-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.goal-path-page[data-orientation='horizontal'] .goal-path-node { min-height: 184px; }

@media (min-width: 761px) {
  .goal-path-page[data-orientation='vertical'] .goal-path-scene { --path-context-side: 1; }
  .goal-path-page[data-orientation='vertical'] .goal-path-scene > .goal-path-heading { position: absolute; z-index: 2; top: 32px; left: 32px; width: min(200px, max(120px, calc(50% - 352px))); margin: 0; }
  .goal-path-page[data-orientation='vertical'] .goal-path-map { width: min(280px, calc(100% - 200px)); max-width: 280px; margin-right: 20px; margin-left: auto; }
}
@container goal-path (min-width: 980px) {
  .goal-path-page[data-orientation='vertical'] .goal-path-scene, .goal-path-page[data-orientation='vertical'] .goal-path-scene:is([data-panel='open'], [data-panel='closing']) { --path-wide: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .goal-path-page[data-orientation='vertical'] .goal-path-viewport { grid-column: 1 / -1; }
  .goal-path-page[data-orientation='vertical'] .goal-path-map { width: min(280px, calc(50% - 32px)); max-width: 280px; margin-right: 0; margin-left: max(16px, calc(50% - 304px)); }
  .goal-path-page[data-orientation='vertical'] .goal-stage-slot { grid-column: 2; grid-row: 1; overflow: visible; pointer-events: none; z-index: 1; }
  .goal-path-page[data-orientation='vertical'] .goal-path-details { top: 24px; left: 1px; width: min(360px, calc(100% - 25px)); max-width: none; height: min(480px, calc(100% - 48px)); padding: 20px; pointer-events: auto; transform: translateX(-8px); clip-path: inset(0 100% 0 0 round 16px); }
  .goal-path-page[data-orientation='vertical'] .goal-path-details[data-open='true'] { transform: translateX(0); clip-path: inset(0 0 0 0 round 16px); }
}
@container goal-path (min-width: 980px) {
  .goal-path-page[data-orientation='vertical'] .goal-path-scene { --path-context-side: 1; }
  .goal-path-page[data-orientation='vertical'] .goal-path-scene > .goal-path-heading { position: absolute; z-index: 2; top: 32px; left: 32px; width: calc(50% - 352px); margin: 0; }
}
@container goal-path (max-width: 640px) {
  .goal-path-bridge { top: 42px; }
  .goal-path-page[data-orientation='horizontal'] .goal-path-heading { width: calc(100% - 40px); margin-block: 24px; }
  .goal-path-page[data-orientation='horizontal'] .goal-path-toolbar { width: calc(100% - 32px); }
  .goal-path-page[data-orientation='horizontal'] .goal-path-node { min-height: 176px; }
}
@media (max-width: 760px) { #goal-path-orientation { display: none; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .goal-path-page[data-orientation='vertical'] .goal-stage-heading h2[data-overflow='true']:is(:hover, :focus-visible) { mask-image: linear-gradient(to right, transparent, #000 6px, #000); }
  .goal-path-page[data-orientation='vertical'] .goal-stage-heading h2[data-overflow='true']:is(:hover, :focus-visible) .goal-stage-title-text { transform: translateX(var(--title-shift)); transition: transform var(--title-travel) linear 450ms; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-path-marker, .goal-path-marker::before, .goal-stage-title-text { transition: none; }
  .goal-path-node:not([aria-expanded='true']):hover .goal-path-marker { transform: none; }
  .goal-path-page[data-orientation='vertical'] .goal-path-details, .goal-path-page[data-orientation='vertical'] .goal-path-details[data-open='true'] { transform: translateX(-50%); clip-path: none; }
  @container goal-path (min-width: 980px) { .goal-path-page[data-orientation='vertical'] .goal-path-details, .goal-path-page[data-orientation='vertical'] .goal-path-details[data-open='true'] { transform: none; } }
}
@media (forced-colors: active) {
  .goal-path-bridge path, .goal-path-line path { stroke: CanvasText; }
  .goal-path-marker::before { display: none; }
  .goal-path-node[aria-expanded='true'] .goal-path-marker { outline: 2px solid Highlight; outline-offset: 5px; }
}

.focus-overview { margin-bottom: var(--space-4); }
.focus-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.focus-heading h2 { font-size: 15px; font-weight: 500; margin: 0; }
.focus-heading > span { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.focus-overview meter { display: block; width: 100%; height: 4px; margin: var(--space-3) 0 var(--space-1); accent-color: var(--accent); }
.focus-overview meter::-webkit-meter-bar { background: var(--surface-hover); border: 0; border-radius: 8px; }
.focus-overview meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 8px; }
.focus-overview[data-over-limit='true'] .focus-heading > span { color: var(--error); }
.focus-overview[data-over-limit='true'] meter::-webkit-meter-optimum-value { background: var(--error); }
.focus-note { margin: var(--space-2) 0 0; font-size: 12px; max-width: 65ch; color: var(--text-secondary); }
.focus-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.focus-footer .text-button { min-height: 32px; font-size: 12px; color: var(--text-secondary); }
.focus-footer .text-button:hover:not(:disabled) { color: var(--text); }
.focus-discuss { display: inline-flex; align-items: center; gap: var(--space-1); }
.focus-discuss .icon { width: 14px; height: 14px; }
.focus-footer button:disabled { opacity: .5; }
@media (max-width: 760px) { .focus-footer .text-button { min-height: 44px; } }
