#project-workspace > * { width: min(100% - 112px, 1360px); margin-inline: auto; }
#project-workspace > .back-link { width: max-content; margin-left: max(56px, calc((100% - 1360px)/2)); }
.project-title { row-gap: 16px; }
.project-title h1 { max-width: 22ch; }
.project-tabs a { text-decoration: none; flex: none; padding: 12px 17px; font-weight: 600; border-bottom: 3px solid transparent; }
.project-tabs a:hover, .project-tabs a[aria-selected="true"] { background: #f1e4d7; }
.project-tabs a[aria-selected="true"] { border-color: var(--ink); }
.project-tabs a:focus-visible { outline-offset: -4px; }
.project-alert:empty, .project-modal-error:empty { display: none; }
.project-alert:not(:empty) { margin-block: 12px; }
.project-panel { margin-block: 12px; }
.project-panel + .project-panel { margin-top: 12px; }
.project-panel summary, .project-form summary { cursor: pointer; font-weight: 630; }
.project-form > div.actions { margin-top: 12px; }
.project-space { margin-top: 12px; }
.project-overview-metrics { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; }
.project-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 12px; align-items: start; }
.project-card-grid .panel { height: 100%; }
.project-card-grid .panel-head { margin-bottom: 9px; }
.project-card-grid p { margin-block: 4px; }
.project-login { max-width: 640px; }
.project-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-block: 12px; }
.project-controls > label { min-width: min(200px,100%); }
.project-check { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 4px 0; }
.project-check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--ink); }
.project-list { padding-inline-start: 22px; line-height: 1.55; margin-block: 10px; }
.project-flag,.project-emphasis { color: #536704; }
.project-emphasis { padding-left: 5px; }
.project-condition { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.project-condition legend { padding-inline: 5px; max-width: 100%; font-size: .9rem; font-weight: 650; }
.project-nominations,.project-explanation { background: #f4f3dc; border: 1px solid var(--line); border-radius: 6px; padding: 13px; margin-block: 12px; }
.project-variant-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.project-variant { border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-width: 0; }
.project-variant .project-condition,.project-variant .project-expenses { margin-top: 12px; }
.project-result { margin-block: 15px; }
.project-result h3 { margin-bottom: 8px; }
.project-dialog { width: min(100% - 26px,780px); }
.project-dialog .project-modal-error:empty { display: none; }
.project-sheet { margin-block: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; }
.project-sheet + .project-check { margin-bottom: 12px; }
.project-print .table-scroll { overflow: visible; }
@media (max-width: 1100px) {
  #project-workspace > * { width: calc(100% - 72px); }
  #project-workspace > .back-link { margin-left: 36px; }
}
@media (max-width: 880px) {
  #project-workspace > * { width: calc(100% - 44px); }
  #project-workspace > .back-link { margin-left: 22px; }
}
@media (max-width: 735px) {
  .project-tabs a { padding-inline: 12px; font-size: .88rem; }
  .project-variant-grid { grid-template-columns: 1fr; }
  .project-overview-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  #project-workspace > * { width: calc(100% - 32px); }
  #project-workspace > .back-link { margin-left: 16px; }
  .project-tabs a { padding-inline: 4px; font-size: .82rem; text-align: center; }
}

.project-region { display: grid; align-content: start; gap: 5px; min-width: 0; }
.project-region-options { list-style: none; margin: 0; padding: 4px; max-height: 216px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.project-region-options li { padding: 6px 9px; border-radius: 4px; cursor: pointer; font-size: .9rem; }
.project-region-options li:hover, .project-region-options [aria-selected="true"] { background: #e9f4b9; }
.project-region > p { font-size: .84rem; }
.project-progress { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,210px); gap: 5px 16px; align-items: center; padding: 11px 13px; margin-block: 10px; background: #f4f3dc; border-radius: 6px; }
.project-progress progress { accent-color: #68781d; width: 100%; }
.project-progress span { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.project-diagram { margin: 20px 0 0; min-width: 0; }
.project-diagram-head h3 { font-size: 1.15rem; }
.project-diagram-head p { margin-top: 5px; max-width: 72ch; color: var(--muted); font-size: .9rem; }
.project-map-legend { display: flex; flex-wrap: wrap; gap: 6px 17px; color: #49576b; font-size: .81rem; margin-block: 12px; }
.project-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.project-map-legend .legend-critical { color: #953d18; }
.project-map-legend .legend-selected { color: #42631d; }
.legend-critical::before, .legend-selected::before { content: ''; width: 15px; border-top: 3px solid currentColor; }
.project-map-scroll { overflow: auto; max-height: min(670px,75dvh); border: 1px solid #bbc3ce; border-radius: 9px; background: #f9fbfe; }
.project-map { position: relative; width: var(--map-width); aspect-ratio: var(--map-ratio); }
.project-map-compact { width: min(100%,var(--map-width)); min-width: min(1200px,var(--map-width)); }
.project-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.project-lane { position: absolute; width: 100%; border-bottom: 1px solid #c8d0da; background: #fcfdff; }
.project-lane:nth-child(even) { background: #f0f3f8; }
.project-lane:last-of-type { border-bottom: 0; }
.project-lane strong { position: sticky; left: 0; z-index: 1; width: var(--lane-width); display: flex; align-items: center; height: 100%; padding: 8px 11px; background: #e4eaf3; border-right: 1px solid #c0cbd9; color: #33425a; font-size: .78rem; line-height: 1.25; overflow-wrap: anywhere; }
.project-flow { stroke: #536179; stroke-width: 1.65; stroke-linejoin: round; fill: none; }
.project-flow-critical { stroke: #a63b08; stroke-width: 2.8; }
.project-flow-selected { stroke: #4b731a; stroke-width: 2.8; }
.project-arrow-normal { fill: #536179; }
.project-arrow-critical { fill: #a63b08; }
.project-arrow-selected { fill: #4b731a; }
.project-flow-label { paint-order: stroke; stroke: #f9fbfe; stroke-width: 4px; stroke-linejoin: round; fill: #33425a; font: 600 11px var(--font); text-anchor: middle; }
.project-flow-caption { font-size: 13px; font-weight: 700; fill: #514021; }
.project-flow-gate path { fill: #ffedc3; stroke: #967125; stroke-width: 1.7; }
.project-flow-gate .project-flow-plus { fill: none; }
.project-flow-event { stroke-width: 2; }
.project-flow-event.start { fill: #e2f5e9; stroke: #327250; }
.project-flow-event.end { fill: #fbe4e0; stroke: #9f453d; stroke-width: 3; }
.project-node { position: absolute; display: grid; grid-auto-rows: max-content; align-content: center; gap: 3px; padding: 5px 6px; min-width: 0; overflow: hidden; text-align: left; background: #e9f0fa; border: 1px solid #7d93b0; border-radius: 8px; color: #23334a; line-height: 1.15; }
.project-node strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .78rem; line-height: 1.13; }
.project-node small, .project-node-date { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .66rem; color: #394d66; }
.project-node.is-critical { border: 2px solid #a34a24; background: #ffefe4; }
.project-node.is-critical small:last-child { color: #963b14; font-weight: 700; }
.project-node[data-state=complete] { background: #e4f1e7; }
.project-node[data-state=active] { background: #fff3d4; }
.project-node:hover, .project-node.is-highlighted { box-shadow: inset 0 0 0 2px #648527; }
.project-connections { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.project-connections ul { margin-top: 6px; padding-inline-start: 18px; }
.project-map-touch { display: none; margin-bottom: 8px; color: var(--muted); font-size: .81rem; }
@media (max-width: 1250px) { .project-map-touch { display: block; } }
.project-variant-heading { margin-bottom: 12px; }
.project-variant-focus { margin-block: 14px; padding: 1px 12px 12px; border-left: 3px solid #71852e; background: #f4f3dc; }
.project-evidence { border-top: 1px solid var(--line); margin-block: 9px; padding-block: 6px; }
.project-evidence summary { font-weight: 650; cursor: pointer; }
.project-evidence ul { overflow-wrap: anywhere; }
