@font-face {
  font-family: Catamaran;
  src: url("assets/catamaran.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #071934;
  --navy-deep: #0b172c;
  --paper: #f8fafb;
  --white: #fff;
  --green: #00e27c;
  --green-soft: #e8f9ef;
  --green-dark: #156044;
  --yellow: #ffe600;
  --muted: #4d5d71;
  --line: #d4dce3;
  --soft: #eef2f5;
  --error: #8e2c28;
  --focus: #1767aa;
  font-family: Catamaran, "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.48;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .21em; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, h4, ul, ol, dl { margin: 0; }
p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.shell { width: min(100% - clamp(2rem, 7vw, 6rem), 1120px); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--yellow); z-index: 5; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header-row { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.brand img { width: 131px; height: auto; }
.header-link { text-decoration: none; font-weight: 700; font-size: .93rem; }
.header-link:hover { text-decoration: underline; }
.hero { background: var(--navy-deep); color: var(--paper); }
.hero-grid { padding-block: clamp(2.3rem, 4.4vw, 3.7rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.eyebrow { display: flex; gap: .6rem; align-items: center; font-size: .79rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; line-height: 1.34; }
.brand-mark { width: .71rem; height: .62rem; background: var(--yellow); clip-path: polygon(0 0,100% 0,50% 100%); flex: none; }
.hero h1 { margin: .9rem 0 1.05rem; font-size: clamp(2.8rem, 5.15vw, 4.5rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-copy > p:last-child { max-width: 38rem; color: #e0e7ee; font-size: clamp(1.04rem, 1.5vw, 1.19rem); line-height: 1.58; }
.start-card { display: grid; gap: .59rem; padding: 1.42rem; border: 1px solid #48566a; background: #13233b; }
.start-card h2 { font-size: 1.28rem; line-height: 1.2; margin-bottom: .31rem; }
.start-card .button { width: 100%; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; padding: .58rem .98rem; border: 1px solid transparent; font-size: .95rem; font-weight: 800; line-height: 1.24; text-decoration: none; text-align: center; }
.primary { background: var(--green); color: var(--navy); }
.primary:hover { background: #72edab; }
.outline { background: var(--white); border-color: #9aa9b9; }
.outline:hover, .quiet:hover { background: var(--soft); }
.quiet { background: transparent; }
.on-dark { background: transparent; border-color: #758298; color: var(--paper); }
.on-dark:hover { background: #203450; }
.example-action { justify-self: start; padding: .46rem 0 .3rem; color: var(--paper); font-weight: 800; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; min-height: 38px; }
.example-action:hover { color: var(--green); }
svg.icon { width: 1.12rem; height: 1.12rem; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.private-note { padding-top: .65rem; border-top: 1px solid #48566a; display: flex; align-items: center; gap: .5rem; color: #d0d9e3; font-size: .88rem; }
.private-note .icon { width: .94rem; height: .94rem; }
.hero-error { color: #ffdbd4; font-size: .95rem; }
.workspace { padding-block: clamp(1.75rem, 4vw, 3rem) 4rem; min-height: 425px; scroll-margin-top: 1.15rem; }
.project-header, .section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 1.5rem; }
.project-header { padding-bottom: 1.35rem; }
.project-copy { min-width: 0; }
.project-meta { color: var(--green-dark); letter-spacing: .09em; overflow-wrap: anywhere; }
.project-header h2 { font-size: clamp(1.7rem, 3.45vw, 2.65rem); font-weight: 800; letter-spacing: -.034em; line-height: 1.13; margin-top: .23rem; overflow-wrap: anywhere; }
.project-context { color: var(--muted); margin-top: .3rem; max-width: 52rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.tabs button { display: flex; gap: .47rem; align-items: center; justify-content: center; min-height: 51px; padding: .55rem .4rem; border: 0; border-bottom: 3px solid transparent; border-right: 1px solid var(--line); background: transparent; font-weight: 800; font-size: 1rem; text-align: center; }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--green-soft); border-bottom-color: #008a54; }
.tabs button:hover { background: var(--soft); }
.tabs button[aria-selected="true"]:hover { background: #d5f5e4; }
.tabs button:focus-visible { outline-offset: -4px; }
[role="tabpanel"] { margin-top: 1.55rem; }
.section-head { margin-bottom: 1.07rem; }
.section-head h3, .data-block h3 { font-size: clamp(1.38rem, 2.4vw, 1.92rem); font-weight: 800; line-height: 1.13; letter-spacing: -.025em; }
.section-head p, .data-block > p { margin-top: .3rem; color: var(--muted); max-width: 66ch; }
.mode-switch { display: inline-flex; flex: none; font-weight: 800; border: 1px solid #a4b2c0; background: var(--white); align-self: center; }
.mode-switch button { border: 0; background: transparent; min-height: 40px; padding: .35rem .77rem; }
.mode-switch button + button { border-left: 1px solid #a4b2c0; }
.mode-switch button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.mode-switch button:not([aria-pressed="true"]):hover { background: var(--soft); }
.process-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.phase-list { list-style: none; padding: 0; background: var(--white); border: 1px solid var(--line); }
.phase-list > li + li { border-top: 1px solid var(--line); }
.phase-option { width: 100%; text-align: left; display: grid; grid-template-columns: 2rem minmax(0,1fr) 1rem; align-items: center; gap: .74rem; min-height: 67px; padding: .7rem .85rem; border: 0; border-left: 4px solid transparent; background: transparent; }
.phase-option:hover { background: var(--soft); }
.phase-option[aria-current="step"] { background: var(--green-soft); border-left-color: #008a54; }
.phase-option:focus-visible { outline-offset: -4px; }
.phase-index { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--soft); color: var(--navy); font-size: .85rem; font-weight: 800; }
.phase-option[aria-current="step"] .phase-index { background: var(--navy); color: var(--white); }
.phase-option strong, .phase-option small { display: block; overflow-wrap: anywhere; }
.phase-option strong { line-height: 1.2; font-size: 1.06rem; }
.phase-option small { margin-top: .15rem; color: var(--muted); font-size: .87rem; line-height: 1.22; }
.phase-option > .icon { transform: rotate(-90deg); width: .9rem; }
.inspector { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); padding: clamp(1rem, 2.4vw, 1.6rem); min-width: 0; }
.inspector h4, .data-block h4 { font-size: 1.31rem; font-weight: 800; line-height: 1.2; margin: .25rem 0 .35rem; }
.inspector-title { letter-spacing: .09em; color: var(--green-dark); }
.inspector p + p { margin-top: .5rem; }
.detail-list { display: grid; gap: .65rem; margin-top: .95rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.detail-list dt { font-weight: 800; font-size: .9rem; }
.detail-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.detail-actions { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: .45rem .65rem; }
.callout { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid #c3a800; background: #fff9d5; }
.callout b { display: block; margin-bottom: .1rem; }
.callout p + p { margin-top: .42rem; }
.parallel-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin-top: .8rem; }
.parallel-paths div { background: var(--soft); padding: .7rem; }
.parallel-paths b { display: block; }
.parallel-paths p { font-size: .91rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.chip { color: var(--green-dark); background: var(--green-soft); display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .48rem; font-size: .85rem; font-weight: 750; }
.chip .icon { width: .85rem; height: .85rem; }
.filter-bar { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: .7rem 1rem; margin-bottom: .9rem; padding: 1rem; border: 1px solid var(--line); background: var(--white); }
.field { display: grid; align-content: start; gap: .26rem; min-width: 0; font-weight: 800; }
.field small, .muted { color: var(--muted); font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea, .duration-input { width: 100%; background-color: #fff; color: var(--navy); border: 1px solid #98a8b8; border-radius: 0; padding: .48rem .62rem; min-height: 43px; font-size: 1rem; font-weight: 550; }
.field textarea { resize: vertical; min-height: 5.6rem; }
.field select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23071934' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-position: right .65rem center; background-repeat: no-repeat; background-size: .7rem; }
.task-list { display: grid; gap: .45rem; }
.task-item, .record-item { background: var(--white); border: 1px solid var(--line); }
.task-item summary, .record-item summary, .role-editor summary, .table-note summary { cursor: pointer; min-height: 45px; padding: .68rem .9rem; font-weight: 800; }
.task-item summary:hover, .record-item summary:hover { background: var(--soft); }
.task-item summary small, .record-item summary small { color: var(--muted); font-size: .88rem; font-weight: 600; padding-left: .45rem; }
.task-item > div, .record-item > div { padding: .3rem .9rem .9rem 1.95rem; }
.task-item p, .record-item p { white-space: pre-wrap; }
.empty { background: var(--white); border: 1px dashed #a4b2c0; color: var(--muted); padding: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-bottom: .95rem; }
.stat { display: grid; padding: .72rem .9rem; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.stat dt { font-size: .9rem; color: var(--muted); font-weight: 750; line-height: 1.2; }
.stat dd { margin: .2rem 0 0; font-size: clamp(1.17rem,2.1vw,1.65rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.chart { border: 1px solid var(--line); background: var(--white); padding: .55rem .95rem; }
.chart-row { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0,1fr); align-items: center; gap: .75rem; padding: .48rem 0; border-bottom: 1px solid var(--line); }
.chart-row:last-child { border-bottom: 0; }
.chart-label b, .chart-label small { display: block; overflow-wrap: anywhere; }
.chart-label small { color: var(--muted); line-height: 1.2; font-size: .88rem; }
.track { display: block; height: 1.4rem; background: repeating-linear-gradient(90deg, var(--soft) 0, var(--soft) calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%); position: relative; }
.bar { position: absolute; inset-block: .18rem; background: var(--navy); }
.bar.parallel { background: #128459; }
.bar.wait { background: repeating-linear-gradient(135deg, #a17800 0,#a17800 2px,#fff0a4 2px,#fff0a4 6px); }
.bar.point { width: .58rem; height: .58rem; inset-block: .41rem; transform: translateX(-50%) rotate(45deg); background: #0d8051; }
.table-note { margin-top: .65rem; }
.table-note summary { padding-left: 0; }
.data-grid { display: grid; gap: .85rem; }
.data-block { background: var(--white); border: 1px solid var(--line); padding: clamp(.9rem, 2.5vw, 1.25rem); min-width: 0; }
.data-block h3 + .form-grid, .data-block p + .form-grid, .data-block p + .table-scroll { margin-top: .85rem; }
.form-grid { display: grid; gap: .78rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.span { grid-column: 1 / -1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .48rem .55rem; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
th { font-weight: 800; }
thead { background: var(--soft); }
.duration-input { max-width: 5.8rem; }
.role-editor { margin-top: 1rem; border: 1px solid var(--line); }
.role-editor .form-grid { padding: .35rem .9rem .9rem; }
.check { display: flex; gap: .5rem; margin-top: .9rem; align-items: baseline; font-weight: 700; }
.check input { accent-color: var(--navy); }
.data-actions { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-top: .9rem; }
.error { background: #fff1ef; color: var(--error); border-left: 3px solid #a33e37; margin: .6rem 0; padding: .55rem .7rem; }
.site-footer { background: var(--navy-deep); color: var(--paper); }
.footer-row { padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.3rem; align-items: center; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .94rem; }
.footer-row a:hover { color: var(--green); }
dialog { color: var(--navy); width: min(36rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 1px solid #a3b2c1; border-top: 4px solid var(--green); padding: 0; overflow: auto; }
dialog::backdrop { background: #071934bd; }
.dialog-inner { padding: clamp(1rem,4vw,1.75rem); position: relative; }
.dialog-inner h2 { font-size: clamp(1.65rem,4vw,2.1rem); letter-spacing: -.025em; line-height: 1.12; margin: .34rem 2.5rem .35rem 0; }
.dialog-copy { color: var(--muted); margin-bottom: .9rem; }
.close { background: var(--soft); border: 1px solid transparent; width: 42px; height: 42px; display: grid; place-items: center; position: absolute; top: .7rem; right: .7rem; }
.close:hover { border-color: #9ca9b8; }
.dialog-actions { margin-top: 1rem; display: flex; gap: .45rem; justify-content: end; flex-wrap: wrap; }
.status-toast { position: fixed; bottom: 1rem; right: clamp(.7rem,4vw,2rem); max-width: min(27rem,calc(100% - 1.4rem)); z-index: 4; }
.status-toast:not(:empty) { background: var(--navy); color: var(--white); padding: .65rem .95rem; box-shadow: 0 2px 10px #07193442; border-left: 4px solid var(--green); }
@media (max-width: 830px) {
  .hero-grid { gap: 1.8rem; grid-template-columns: minmax(0,1fr) minmax(265px,.8fr); }
  .hero h1 { font-size: clamp(2.6rem,6.35vw,3.7rem); }
}
@media (max-width: 650px) {
  .header-row { min-height: 65px; }
  .brand img { width: 106px; }
  .hero-grid, .process-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.3rem; }
  .hero h1 { margin-block: .74rem .78rem; font-size: clamp(2.5rem,9.2vw,3.75rem); }
  .start-card { padding: 1rem; }
  .project-header, .section-head { align-items: start; flex-direction: column; }
  .mode-switch { align-self: start; }
  .tabs button { display: grid; justify-items: center; gap: .18rem; font-size: .87rem; min-height: 59px; overflow-wrap: anywhere; }
  .chart-row { grid-template-columns: minmax(0,1fr); gap: .32rem; }
}
@media (max-width: 410px) {
  .form-grid, .filter-bar, .parallel-paths { grid-template-columns: 1fr; }
  .stats { gap: .35rem; }
  .stat { padding: .55rem .45rem; }
  .project-actions .button { padding-inline: .61rem; }
}
@media print {
  .hero, .site-footer, .project-actions, .tabs, .mode-switch, .detail-actions, .data-actions, #status, dialog, button:not(.phase-option) { display: none !important; }
  .shell { width: 100%; }
  .workspace { padding: .6rem 0; }
  .site-header { border-bottom: 1px solid #aaa; }
  .header-row { min-height: 0; }
  .inspector, .data-block, .task-item { break-inside: avoid; }
  .chart, .phase-list { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.back-phases { display: none; }
.task-toolbar { margin-bottom: .85rem; }
.matrix { border: 1px solid var(--line); background: var(--white); }
.matrix caption { text-align: left; padding: .75rem .85rem; font-weight: 800; }
.matrix table { min-width: 660px; }
.matrix th, .matrix td { text-align: center; line-height: 1.25; }
.matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); max-width: 150px; min-width: 110px; }
.matrix-count { min-width: 40px; min-height: 40px; border: 1px solid #88bca4; background: var(--green-soft); font-weight: 850; }
.matrix-count:hover { background: #d2f3e1; }
.chart-axis { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0,1fr); align-items: center; gap: .75rem; padding: .45rem 0 .55rem; border-bottom: 1px solid var(--line); font-weight: 750; font-size: .85rem; color: var(--muted); }
.chart-axis div { display: flex; justify-content: space-between; position: relative; }
.chart-axis div span:not(:first-child):not(:last-child) { position: absolute; transform: translateX(-50%); }
.chart-axis div span:nth-child(2) { left: 25%; }
.chart-axis div span:nth-child(3) { left: 50%; }
.chart-axis div span:nth-child(4) { left: 75%; }
@media (max-width: 650px) {
  .back-phases { display: inline-flex; }
  .chart-axis { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 500px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { display: flex; min-height: 46px; gap: .44rem; font-size: .95rem; }
  .tabs button:nth-child(2) { border-right: 0; }
  .tabs button:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
}

