.message-stack {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}

.message {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  font-size: 0.9rem;
}

.message.success {
  color: #155e52;
  background: #edf9f5;
  border-color: #8fc8ba;
}

.message.error {
  color: #8b1f1f;
  background: #fff4f4;
  border-color: #e4aaaa;
}

.error-summary-list {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.error-summary-list a {
  color: inherit;
  font-weight: 700;
}

.workspace-breadcrumb {
  flex-wrap: wrap;
}

.workspace-heading,
.section-heading,
.panel-heading,
.decision-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.workspace-heading h1 {
  overflow-wrap: anywhere;
}

.workspace-meta,
.tag-row,
.inline-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.workspace-meta {
  margin-top: 0.85rem;
}

.workspace-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.75rem 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.workspace-tabs a {
  flex: 0 0 auto;
  padding: 0.75rem 0.95rem;
  color: #4e5968;
  border-bottom: 3px solid transparent;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.workspace-tabs a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

.workspace-tabs a:focus-visible,
.button:focus-visible,
.inline-actions a:focus-visible {
  outline: 3px solid #0b4f46;
  outline-offset: 2px;
}

.section-heading {
  margin: 2rem 0 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-heading .muted {
  max-width: 48rem;
}

.record-context-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.record-context-nav strong {
  color: var(--ink);
}

.sample-page-heading,
.shipment-page-heading {
  margin-top: 0.75rem;
}

.shipment-page-heading {
  padding: 1.25rem;
  background: #f4f7fb;
  border: 1px solid #cbd8e8;
  border-left: 5px solid #52749e;
  border-radius: 12px;
}

.sample-next-step,
.shipment-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #e8f6f2, #fbfdfc);
  border: 1px solid #9bc9bd;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
}

.shipment-context-banner {
  background: linear-gradient(135deg, #eef3f9, #fbfcfe);
  border-color: #b8c9dc;
  border-left-color: #52749e;
}

.sample-next-step h3,
.sample-next-step p,
.shipment-context-banner p {
  margin: 0;
}

.sample-next-step h3 {
  margin-top: 0.2rem;
  font-size: 1.05rem;
}

.sample-next-step h3 + p {
  margin-top: 0.35rem;
  color: #47635f;
}

.sample-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.sample-route li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #7a8582;
  text-align: center;
  font-size: 0.75rem;
}

.sample-route li::before {
  position: absolute;
  z-index: 0;
  top: 0.9rem;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #d7dfdc;
  content: "";
}

.sample-route li:first-child::before {
  display: none;
}

.sample-route span {
  z-index: 1;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  background: #edf1ef;
  border: 2px solid #c8d1ce;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
}

.sample-route__complete::before,
.sample-route__current::before {
  background: #76aa9d !important;
}

.sample-route__complete span {
  color: #fff;
  background: #5c9486;
  border-color: #5c9486;
}

.sample-route__current {
  color: var(--ink) !important;
}

.sample-route__current span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sample-milestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.sample-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.55rem;
  min-width: 150px;
  padding: 0.9rem 1rem 0.9rem 0;
  color: var(--muted);
}

.sample-milestone::before {
  position: absolute;
  top: 1.35rem;
  right: 100%;
  width: calc(100% - 1rem);
  height: 2px;
  background: var(--line);
  content: "";
}

.sample-milestone:first-child::before {
  display: none;
}

.sample-milestone__marker {
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.05rem;
  background: #fff;
  border: 2px solid #aeb9b6;
  border-radius: 50%;
}

.sample-milestone div,
.sample-milestone span {
  display: block;
}

.sample-milestone div > span {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.sample-milestone--complete::before,
.sample-milestone--current::before {
  background: #76aa9d;
}

.sample-milestone--complete .sample-milestone__marker {
  background: #5c9486;
  border-color: #5c9486;
}

.sample-milestone--current {
  color: var(--ink);
}

.sample-milestone--current .sample-milestone__marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sample-audit-details > summary {
  cursor: pointer;
  font-size: 0.9rem;
}

.sample-table-frame td,
.sample-table-frame th {
  vertical-align: middle;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.request-summary {
  margin: 1rem 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.card-action {
  font-size: 0.78rem;
  font-weight: 750;
}

.shipment-card {
  background: #fbfcfe;
  border-color: #d5dfeb;
}

.request-card {
  background: #fffdf8;
  border-color: #eadfca;
}

.panel,
.truth-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(28 36 48 / 4%);
}

.section-block,
.document-card + .document-card,
.form-section + .form-section {
  margin-top: 1.25rem;
}

.panel h2,
.panel h3,
.truth-card h3 {
  margin-top: 0;
}

.panel-heading h3,
.decision-card__top h3 {
  margin-bottom: 0;
}

.truth-grid,
.package-grid,
.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.overview-files-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.9fr);
  align-items: start;
  gap: 1rem;
}

.overview-files-layout .truth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.garment-preview {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgb(28 36 48 / 5%);
}

.garment-preview > img,
.garment-preview__empty {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgb(30 95 85 / 5%), transparent 55%),
    #f2f6f5;
  object-fit: contain;
  place-items: center;
}

.garment-preview__empty span {
  display: grid;
  width: 5rem;
  height: 5rem;
  color: #76938c;
  border: 2px solid #a6bbb6;
  border-radius: 24px;
  place-items: center;
  font-size: 2.25rem;
}

.garment-preview figcaption {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.garment-preview figcaption strong {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.garment-preview figcaption small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.4;
}

.current-file-list {
  display: grid;
  gap: 0.75rem;
}

.current-file {
  padding: 0.9rem;
  background: #f8faf9;
  border: 1px solid #dfe7e4;
  border-radius: 10px;
}

.current-file__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.current-file__heading h3 {
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.current-file__heading p,
.current-file__source {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.current-file__source {
  margin-top: 0.55rem;
  color: #315a53;
  font-weight: 750;
}

.current-file__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.65rem;
  color: #66736f;
  font-size: 0.68rem;
}

.current-file__actions {
  margin-top: 0.8rem;
}

.current-file__actions .button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
}

.compact-readiness__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.compact-readiness__item {
  display: grid;
  grid-template-columns: 1.45rem 1fr;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 0.78rem;
}

.compact-readiness__item > span {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  place-items: center;
  font-weight: 850;
}

.compact-readiness__item--passed > span {
  color: #135c35;
  background: #dff5e8;
}

.compact-readiness__item--missing > span {
  color: #8b3e00;
  background: #fff0da;
}

.variant-option-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.compact-table th,
.compact-table td {
  padding: 0.55rem 0.7rem;
}

.text-button {
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.text-button--danger {
  color: #9f2d2d;
}

.document-sheet-preview th,
.document-sheet-preview td {
  max-width: 20rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-summary {
  margin: 1rem 0;
}

.status-card {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.status-card dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.status-card dd {
  margin: 0.35rem 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.truth-card__label {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.draft-note {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  color: #7a4b09;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.workspace-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.starter-banner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  color: #163e38;
  background: linear-gradient(135deg, #e5f6f1, #f9fbfa);
  border: 1px solid #a9d4c9;
  border-radius: 14px;
}

.starter-banner h2,
.starter-banner p {
  margin: 0;
}

.starter-banner h2 {
  font-size: 1.25rem;
}

.starter-banner p:not(.eyebrow) {
  margin-top: 0.4rem;
  color: #47635f;
  line-height: 1.45;
}

.starter-banner__visual {
  display: grid;
  grid-template-columns: repeat(2, 2.25rem);
  gap: 0.35rem;
}

.starter-banner__visual span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  background: #fff;
  border: 1px solid #b9ded5;
  border-radius: 8px;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 850;
}

.starter-banner__visual span:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.starter-seed-form {
  display: grid;
  gap: 0.45rem;
}

.starter-seed-form label {
  font-size: 0.76rem;
  font-weight: 800;
}

.starter-seed-form select {
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #94bfb5;
  border-radius: 7px;
  font: inherit;
}

.library-list {
  display: grid;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.library-record {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.library-record > span {
  display: flex;
  gap: 0.55rem;
}

.library-record small,
.compact-record span {
  color: var(--muted);
}

.library-record[href]:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.compact-record {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.empty-mini {
  display: grid;
  min-height: 130px;
  color: var(--muted);
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-mini span {
  color: var(--accent);
  font-size: 2rem;
}

.empty-mini p {
  margin: 0.35rem 0 0;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}

.panel-heading a,
.inline-actions a {
  color: var(--accent);
  font-weight: 700;
}

.metric-list,
.compact-list,
.detail-grid {
  margin: 1rem 0 0;
}

.metric-list > div,
.compact-list > div {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid #e8ebef;
}

.metric-list dt,
.compact-list dt,
.detail-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-list dd,
.compact-list dd,
.detail-grid dd {
  min-width: 0;
  margin: 0;
  font-weight: 680;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-grid > div {
  min-width: 0;
  padding: 0.85rem;
  background: var(--surface-soft);
  border-radius: 8px;
}

.detail-grid dt,
.detail-grid dd {
  text-align: left;
}

.detail-grid dd {
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.detail-grid__wide {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #174d45;
}

.button--secondary {
  color: var(--ink);
  background: #e5e9ed;
}

.button--secondary:hover {
  background: #d9dee3;
}

.button--compact {
  min-height: 34px;
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
}

.button--danger {
  color: #fff;
  background: #9f2d2d;
}

.button--danger:hover {
  background: #7f1d1d;
}

.notice {
  display: flex;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  color: #4d4230;
  background: #fff9e8;
  border: 1px solid #e5d49d;
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.notice strong {
  flex: 0 0 auto;
}

.notice--danger {
  color: #7f1d1d;
  background: #fff1f2;
  border-color: #fecdd3;
}

.state-pill,
.audience-label {
  display: inline-flex;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.25;
}

.state-pill {
  color: #194d45;
  background: var(--accent-soft);
  letter-spacing: 0.02em;
}

.state-pill--neutral,
.audience-label {
  color: #46505d;
  background: #e8ebef;
}

.state-pill--warning {
  color: #8a341b;
  background: #ffeadf;
}

.factory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.factory-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.factory-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.factory-summary strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.factory-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 1rem;
}

.factory-dashboard-column {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.factory-panel {
  min-width: 0;
  align-self: start;
}

.factory-record-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.factory-record {
  min-width: 0;
  padding: 0.9rem 1rem;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-left: 4px solid #9aa7a4;
  border-radius: 10px;
}

.factory-record--incoming {
  border-left-color: #2b78a0;
}

.factory-record--outgoing {
  border-left-color: var(--accent);
}

.factory-record--quote {
  border-left-color: #97713d;
}

.factory-record--overdue {
  background: #fff8f4;
  border-left-color: #b54b2d;
}

.factory-record__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.factory-record__top > div {
  min-width: 0;
}

.factory-record__top h3 {
  margin: 0.22rem 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.factory-record__top a {
  color: var(--ink);
}

.factory-record__top a:hover {
  color: var(--accent);
}

.factory-record__top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.factory-record__kicker,
.factory-record__context,
.factory-record__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.factory-record__kicker {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.factory-record > p:not(.factory-record__kicker) {
  margin-bottom: 0;
  line-height: 1.45;
}

.factory-record__date {
  font-weight: 800;
}

.quote-row:target {
  background: #f0f8f5;
  box-shadow: inset 4px 0 0 var(--accent);
}

.status-line,
.package-title,
.package-subject {
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.muted,
.helptext {
  color: var(--muted);
}

.muted {
  line-height: 1.5;
}

.helptext {
  font-size: 0.78rem;
}

.table-frame {
  box-shadow: none;
}

.document-card .table-frame {
  margin-top: 1rem;
}

.document-card table {
  min-width: 880px;
}

.wrap-cell,
.instruction-preview,
.text-preview {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hash {
  word-break: break-all;
}

.form-panel {
  max-width: 760px;
}

.authorization-form .form-panel {
  width: 100%;
  max-width: none;
}

.form-stack,
.form-field {
  display: grid;
  gap: 1rem;
}

.form-stack > div:not(.button-row),
.form-stack fieldset > div,
.form-row > div,
.form-field {
  gap: 0.4rem;
}

.form-stack > div:not(.button-row),
.form-stack fieldset > div,
.form-row > div {
  display: grid;
}

.form-stack > div > label,
.form-stack fieldset > div > label,
.form-row > div > label,
.form-field label,
.form-section legend {
  font-size: 0.84rem;
  font-weight: 750;
}

.form-stack > div > input:not([type="checkbox"], [type="radio"]),
.form-stack > div > select,
.form-stack > div > textarea,
.form-stack fieldset > div > input:not([type="checkbox"], [type="radio"]),
.form-stack fieldset > div > select,
.form-stack fieldset > div > textarea,
.form-row > div > input:not([type="checkbox"], [type="radio"]),
.form-row > div > select,
.form-row > div > textarea,
.form-field input:not([type="checkbox"], [type="radio"]),
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc7d1;
  border-radius: 7px;
  font: inherit;
}

.form-stack > div > textarea,
.form-stack fieldset > div > textarea,
.form-row > div > textarea,
.form-field textarea {
  resize: vertical;
}

.form-stack fieldset {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.form-stack fieldset legend {
  padding: 0 0.4rem;
  font-weight: 800;
}

.form-stack fieldset.section-block,
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.8rem;
}

.form-row {
  padding: 0.9rem;
  background: var(--surface-soft);
  border-radius: 8px;
}

.form-row input[type="checkbox"],
.form-stack fieldset input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.55rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.form-intro {
  max-width: 48rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
}

.form-field--checkbox > label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.form-field--checkbox input[type="checkbox"],
.form-field input[type="checkbox"],
.form-field input[type="radio"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  padding: 0;
}

.radio-list > div {
  display: grid;
  gap: 0.45rem;
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  background: var(--surface-soft);
  border-radius: 7px;
}

.radio-list input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

.form-stack > div > input:not([type="checkbox"], [type="radio"]):focus,
.form-stack > div > select:focus,
.form-stack > div > textarea:focus,
.form-stack fieldset > div > input:not([type="checkbox"], [type="radio"]):focus,
.form-stack fieldset > div > select:focus,
.form-stack fieldset > div > textarea:focus,
.form-row > div > input:not([type="checkbox"], [type="radio"]):focus,
.form-row > div > select:focus,
.form-row > div > textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid #0b4f46;
  outline-offset: 1px;
  border-color: var(--accent);
}

.errorlist {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: #9f2d2d;
  font-size: 0.8rem;
}

.confirmation-panel {
  max-width: 900px;
}

.confirmation-panel form {
  margin-top: 1.25rem;
}

.decision-list,
.document-list {
  display: grid;
  gap: 1rem;
}

.decision-card h3 {
  margin: 1rem 0;
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.decision-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-meta > div:nth-child(even) {
  padding-left: 1rem;
}

.incorporation-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.incorporation-list ul {
  margin-bottom: 0;
}

.package-grid__empty {
  grid-column: 1 / -1;
}

.package-card h3 a {
  color: var(--ink);
}

.form-section {
  min-width: 0;
}

fieldset.form-section {
  border: 1px solid var(--line);
}

.request-line-list {
  display: grid;
  gap: 1rem;
}

.request-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.request-line legend {
  padding: 0 0.35rem;
}

.request-line .checkbox-field {
  grid-column: 1 / -1;
}

.receipt-list {
  display: grid;
  gap: 1rem;
}

.receipt-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.receipt-line legend,
.receipt-line > p {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
}

.shipment-table td .muted {
  display: block;
  margin-top: 0.25rem;
}

.checkbox-list > div {
  display: grid;
  gap: 0.5rem;
}

.checkbox-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem;
  background: var(--surface-soft);
  border-radius: 7px;
  line-height: 1.4;
}

.checkbox-list input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.action-footer {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.snapshot-list,
.blocker-list,
.timeline-list {
  padding-left: 1.25rem;
}

.snapshot-list li + li,
.blocker-list li + li,
.timeline-list li + li {
  margin-top: 0.9rem;
}

.snapshot-list p,
.timeline-list p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.text-preview {
  line-height: 1.6;
}

.blocker-list {
  color: #8b1f1f;
}

.success-text {
  color: #155e52;
  font-weight: 700;
}

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1.4fr) minmax(120px, 0.8fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-list time,
.activity-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 1rem 0 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgb(255 255 255 / 12%) 0 18%, transparent 18.5%),
    linear-gradient(135deg, #153e38 0%, #0b6658 70%, #238776 100%);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgb(8 52 45 / 18%);
}

.guide-hero h1 {
  max-width: 780px;
  margin: 0.25rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.guide-hero .eyebrow {
  color: #b9f0e3;
}

.guide-hero__intro {
  max-width: 680px;
  margin-bottom: 1.4rem;
  color: #e2f3ef;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.guide-hero .button--secondary {
  color: #fff;
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 48%);
}

.guide-hero .button--secondary:hover {
  background: rgb(255 255 255 / 18%);
}

.guide-compass {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
}

.guide-compass::before,
.guide-compass::after {
  position: absolute;
  inset: 15%;
  content: "";
  border: 1px dashed rgb(255 255 255 / 25%);
  border-radius: 50%;
}

.guide-compass::after {
  inset: 32%;
  border-style: solid;
}

.guide-compass__center,
.guide-compass__item {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.guide-compass__center {
  inset: 36%;
  color: #123d37;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(4 41 35 / 25%);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-compass__item {
  gap: 0.2rem;
  color: #e8f7f3;
  font-size: 0.76rem;
  font-weight: 750;
}

.guide-compass__item span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  color: #123d37;
  background: #c9f2e8;
  border-radius: 10px;
  place-items: center;
  font-size: 1.1rem;
}

.guide-compass__item--files {
  top: -2%;
  left: 43%;
}

.guide-compass__item--decisions {
  top: 43%;
  right: -5%;
}

.guide-compass__item--samples {
  bottom: -2%;
  left: 40%;
}

.guide-compass__item--orders {
  top: 43%;
  left: -4%;
}

.guide-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 1rem 1.25rem;
  color: #5e3c08;
  background: #fff8e5;
  border: 1px solid #ecd28f;
  border-radius: 12px;
}

.guide-rule > span {
  color: #c17700;
  font-size: 1.6rem;
}

.guide-rule strong {
  display: block;
  margin-bottom: 0.2rem;
}

.guide-rule p {
  margin: 0;
}

.guide-overall {
  scroll-margin-top: 1rem;
}

.guide-lifecycle {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.guide-lifecycle article {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  padding: 1.1rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid #7395be;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(28 36 48 / 5%);
}

.guide-lifecycle article.guide-lifecycle__repeat {
  background: #f3faf8;
  border-top-color: #2f8d7b;
}

.guide-lifecycle article.guide-lifecycle__gate {
  background: #fff9ec;
  border-top-color: #d6902d;
}

.guide-lifecycle__number {
  position: absolute;
  top: -0.8rem;
  left: -0.35rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
  background: #203f3a;
  border: 3px solid var(--page);
  border-radius: 50%;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.guide-lifecycle__icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 0.8rem;
  color: #245e55;
  background: #e6f3f0;
  border-radius: 9px;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.guide-lifecycle article small {
  color: #55706b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-lifecycle article h3 {
  margin: 0.3rem 0 0.55rem;
  font-size: 1rem;
  line-height: 1.2;
}

.guide-lifecycle article p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.guide-lifecycle article > strong {
  margin-top: auto;
  padding-top: 0.7rem;
  color: #355a54;
  border-top: 1px solid #e1e8e6;
  font-size: 0.7rem;
  line-height: 1.35;
}

.guide-lifecycle__arrow {
  display: grid;
  flex: 0 0 1rem;
  align-self: center;
  color: #7c8a87;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.guide-development-loop {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  color: #fff;
  background: linear-gradient(120deg, #173d37, #245d54);
  border-radius: 12px;
}

.guide-development-loop__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.guide-development-loop__title > span {
  display: grid;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  color: #17443c;
  background: #bce8de;
  border-radius: 50%;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.guide-development-loop__title p {
  margin: 0.25rem 0 0;
  color: #c4d9d4;
  font-size: 0.76rem;
  line-height: 1.4;
}

.guide-development-loop__steps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.guide-development-loop__steps span {
  padding: 0.5rem 0.6rem;
  color: #e9f6f3;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.guide-development-loop__steps b {
  color: #a7cac2;
}

.guide-development-loop__return {
  font-size: 1.25rem;
}

.guide-workflow-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.guide-workflow-foundation article {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guide-workflow-foundation article > span {
  flex: 0 0 auto;
  padding: 0.35rem 0.45rem;
  color: #1f5d52;
  background: #e5f3ef;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.guide-workflow-foundation strong {
  font-size: 0.82rem;
}

.guide-workflow-foundation p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.guide-section {
  margin: clamp(3rem, 8vw, 6rem) 0;
}

.guide-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.guide-section__heading h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

.guide-section__heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.guide-journey,
.guide-client-flow {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: stretch;
  gap: 0.65rem;
}

.guide-journey article,
.guide-client-flow article {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgb(28 36 48 / 5%);
}

.guide-journey article {
  width: min(22vw, 260px);
}

.guide-journey h3,
.guide-client-flow h3 {
  margin: 0.7rem 0 0.45rem;
}

.guide-journey p,
.guide-client-flow p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.guide-journey a {
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-step,
.guide-client-flow article > span {
  position: absolute;
  top: -0.7rem;
  left: -0.45rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
  background: var(--accent);
  border: 3px solid #f7f5f0;
  border-radius: 50%;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.guide-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  background: #e8f5f1;
  border-radius: 12px;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.guide-arrow {
  display: grid;
  align-self: center;
  color: #7c8a87;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.guide-browser {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cdd5d3;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgb(25 43 39 / 10%);
}

.guide-browser__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  color: #dce9e6;
  background: #183c37;
  font-size: 0.8rem;
}

.guide-browser__bar i {
  width: 0.65rem;
  height: 0.65rem;
  background: #e2b55b;
  border-radius: 50%;
}

.guide-browser__bar i:nth-child(2) {
  background: #d8776e;
}

.guide-browser__bar i:nth-child(3) {
  margin-right: 0.4rem;
  background: #6cc5a9;
}

.guide-browser__tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0 0.65rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.guide-browser__tabs span {
  flex: 0 0 auto;
  padding: 0.75rem 0.6rem 0.6rem;
  color: #6c7775;
  border-bottom: 3px solid transparent;
  font-size: 0.68rem;
  font-weight: 750;
}

.guide-browser__tabs .is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-browser__body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.7fr);
  gap: 1rem;
  padding: 1.5rem;
  background: #f8faf9;
}

.guide-browser__primary,
.guide-browser__aside {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guide-browser__primary {
  border-left: 5px solid #2f8d7b;
}

.guide-browser__aside {
  color: #fff;
  background: #126b5c;
  border-color: #126b5c;
}

.guide-browser__primary small,
.guide-browser__aside small {
  color: #66817b;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-browser__aside small,
.guide-browser__aside span {
  color: #cfe9e3;
}

.guide-browser__primary strong,
.guide-browser__aside strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.guide-browser__primary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.guide-tab-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-tab-groups article {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
}

.guide-tab-groups p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.guide-color {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 2.7rem;
  background: #7395be;
  border-radius: 0.4rem;
}

.guide-color--make {
  background: #2f8d7b;
}

.guide-color--produce {
  background: #d6902d;
}

.guide-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-paths article {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid #2f8d7b;
  border-radius: 12px;
}

.guide-paths__label {
  margin-bottom: 1rem;
  color: #185e52;
  font-weight: 850;
}

.guide-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.guide-path span {
  padding: 0.38rem 0.5rem;
  color: #31504b;
  background: #e9f5f2;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 750;
}

.guide-path b {
  color: #75938d;
}

.guide-paths p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.guide-client-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.guide-client-screen {
  display: grid;
  gap: 0.35rem;
  min-height: 115px;
  padding: 1rem;
  color: #dbeeea;
  background: linear-gradient(145deg, #193f39, #23675b);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}

.guide-client-screen small {
  color: #a9d9cf;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.guide-client-screen i {
  align-self: end;
  color: #a9d9cf;
  font-size: 0.72rem;
  font-style: normal;
}

.guide-guardrails {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #192f2b;
  border-radius: 18px;
}

.guide-guardrails .eyebrow,
.guide-guardrails h2 {
  color: #fff;
}

.guide-guardrails > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.guide-guardrails article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.75rem;
  padding: 1rem;
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
}

.guide-guardrails article > span {
  grid-row: 1 / 3;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  color: #143b34;
  background: #b8e8dc;
  border-radius: 8px;
  place-items: center;
  font-weight: 900;
}

.guide-guardrails p {
  margin: 0;
  color: #c4d5d1;
  font-size: 0.8rem;
  line-height: 1.45;
}

.guide-first-day {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin: 4rem 0 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.guide-first-day h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.guide-first-day ol {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-first-day li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.guide-first-day li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-first-day li span {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem 0 clamp(3rem, 7vw, 5rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgb(255 255 255 / 12%) 0 18%, transparent 18.5%),
    linear-gradient(135deg, #153e38, #0b6658 72%, #238776);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgb(8 52 45 / 18%);
}

.quick-hero > div:first-child {
  max-width: 760px;
}

.quick-hero .eyebrow {
  color: #b9f0e3;
}

.quick-hero h1 {
  margin: 0.25rem 0 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
}

.quick-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #d7ece7;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.quick-hero .button-row {
  flex: 0 0 auto;
}

.quick-hero .button--secondary {
  color: #fff;
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 48%);
}

.quick-section {
  max-width: 1180px;
  margin: 0 auto clamp(3.5rem, 8vw, 6rem);
}

.quick-section__heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.quick-section__heading h2 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.quick-section__heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.swimlane-frame {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dfe7e4;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgb(28 36 48 / 7%);
  overscroll-behavior-inline: contain;
}

.swimlane-frame:focus-visible {
  outline: 3px solid #76b9aa;
  outline-offset: 3px;
}

.swimlane-scroll-hint {
  display: none;
}

.lifecycle-diagram {
  position: relative;
  width: 1178px;
  height: 760px;
  overflow: visible;
  background: #fff;
  isolation: isolate;
}

.lifecycle-phases {
  position: absolute;
  z-index: 7;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 150px repeat(6, minmax(0, 1fr));
  height: 80px;
  color: #fff;
  background: #193e38;
}

.lifecycle-phases > div {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0.85rem 0.9rem;
  border-right: 1px solid rgb(255 255 255 / 20%);
}

.lifecycle-phases > div:last-child {
  border-right: 0;
}

.lifecycle-phases span {
  margin-bottom: 0.28rem;
  color: #9dd6c9;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lifecycle-phases strong {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.lifecycle-phase-corner {
  position: sticky !important;
  z-index: 9;
  left: 0;
  color: #a9d8ce;
  background: #193e38;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lifecycle-lane {
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid #dbe5e2;
}

.lifecycle-lane::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), rgb(93 119 113 / 16%) 0);
  background-position: 150px 0;
  background-size: 171.333px 100%;
  content: "";
}

.lifecycle-lane--team {
  top: 80px;
  height: 140px;
  background-color: #edf8f5;
}

.lifecycle-lane--client {
  top: 220px;
  height: 140px;
  background-color: #f4f1fb;
}

.lifecycle-lane--factory {
  top: 360px;
  height: 180px;
  background-color: #fff8e9;
}

.lifecycle-lane--record {
  top: 540px;
  height: 170px;
  background-color: #f2f5f7;
}

.lifecycle-lane-labels {
  position: sticky;
  z-index: 8;
  left: 0;
  width: 150px;
  height: 630px;
  pointer-events: none;
  transform: translateY(80px);
}

.lifecycle-lane-label {
  position: absolute;
  left: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 150px;
  padding: 1rem;
  border-right: 1px solid #cbd9d5;
}

.lifecycle-lane-label > span {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.65rem;
  color: #fff;
  border-radius: 10px;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
}

.lifecycle-lane-label strong {
  color: #183d37;
  font-size: 0.8rem;
  line-height: 1.2;
}

.lifecycle-lane-label small {
  margin-top: 0.25rem;
  color: #58716c;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
}

.lifecycle-lane-label--team {
  top: 0;
  height: 140px;
  background: #dff2ed;
}

.lifecycle-lane-label--team > span {
  background: #2f8d7b;
}

.lifecycle-lane-label--client {
  top: 140px;
  height: 140px;
  background: #e9e3f5;
}

.lifecycle-lane-label--client > span {
  background: #7663a9;
}

.lifecycle-lane-label--factory {
  top: 280px;
  height: 180px;
  background: #f9ecd1;
}

.lifecycle-lane-label--factory > span {
  background: #a96e23;
}

.lifecycle-lane-label--record {
  top: 460px;
  height: 170px;
  background: #e4eaed;
}

.lifecycle-lane-label--record > span {
  background: #4f6471;
}

.lifecycle-connectors {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 1178px;
  height: 760px;
  overflow: visible;
  pointer-events: none;
}

.lifecycle-flow {
  fill: none;
  stroke: #286f63;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url("#lifecycle-arrow");
}

.lifecycle-flow--loop {
  stroke: #a96e23;
}

#lifecycle-arrow path {
  fill: #286f63;
}

.lifecycle-record-flow {
  fill: none;
  stroke: #70858e;
  stroke-width: 1.8;
  stroke-dasharray: 5 6;
  marker-end: url("#lifecycle-record-arrow");
}

#lifecycle-record-arrow path {
  fill: #70858e;
}

.lifecycle-start {
  position: absolute;
  z-index: 4;
  top: 272px;
  left: 106px;
  display: grid;
  width: 43px;
  height: 26px;
  color: #fff;
  background: #193e38;
  border-radius: 20px;
  place-items: center;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lifecycle-node {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 145px;
  height: 82px;
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 2px solid;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgb(34 54 50 / 10%);
}

.lifecycle-node strong {
  font-size: 0.72rem;
  line-height: 1.3;
}

.lifecycle-node small {
  margin-top: 0.3rem;
  color: #687773;
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.25;
}

.lifecycle-node--team {
  color: #184c43;
  border-color: #2f8d7b;
}

.lifecycle-node--client {
  color: #483b70;
  border-color: #7663a9;
}

.lifecycle-node--factory {
  color: #6f4517;
  border-color: #b27a30;
}

.lifecycle-node--decision {
  background: #fff;
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  text-align: center;
}

.node-client-goals {
  top: 246px;
  left: 165px;
  height: 78px;
}

.node-team-plan {
  top: 104px;
  left: 165px;
}

.node-team-define {
  top: 104px;
  left: 335px;
}

.node-team-authorize {
  top: 104px;
  left: 505px;
}

.node-team-review {
  top: 104px;
  left: 675px;
}

.node-team-ready {
  top: 104px;
  left: 845px;
}

.node-team-order {
  top: 104px;
  left: 1015px;
}

.node-client-decision {
  top: 246px;
  left: 675px;
  height: 78px;
}

.node-client-approve {
  top: 246px;
  left: 845px;
  height: 78px;
}

.node-client-receive {
  top: 246px;
  left: 1015px;
  height: 78px;
}

.node-factory-quote {
  top: 377px;
  left: 505px;
  height: 58px;
}

.node-factory-sample {
  top: 464px;
  left: 505px;
  height: 58px;
}

.node-factory-revise {
  top: 414px;
  left: 675px;
  height: 74px;
}

.node-factory-confirm {
  top: 414px;
  left: 845px;
  height: 74px;
}

.node-factory-produce {
  top: 414px;
  left: 1015px;
  height: 74px;
}

.lifecycle-flow-label {
  position: absolute;
  z-index: 5;
  padding: 0.15rem 0.35rem;
  color: #30594f;
  background: rgb(255 255 255 / 92%);
  border-radius: 10px;
  font-size: 0.56rem;
  font-weight: 900;
}

.lifecycle-flow-label--approved {
  top: 260px;
  left: 812px;
}

.lifecycle-flow-label--changes {
  top: 348px;
  left: 756px;
  color: #7a4a14;
}

.lifecycle-record {
  position: absolute;
  z-index: 4;
  top: 573px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 145px;
  height: 80px;
  padding: 0.65rem;
  color: #435861;
  background: #fff;
  border: 2px dashed #81959d;
  border-radius: 11px;
}

.lifecycle-record > span {
  display: grid;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
  background: #607681;
  border-radius: 8px;
  place-items: center;
  font-size: 0.7rem;
}

.lifecycle-record strong {
  font-size: 0.66rem;
  line-height: 1.25;
}

.node-record-plan {
  left: 165px;
}

.node-record-define {
  left: 335px;
}

.node-record-source {
  left: 505px;
}

.node-record-review {
  left: 675px;
}

.node-record-ready {
  left: 845px;
}

.node-record-close {
  left: 1015px;
  border-style: solid;
}

.lifecycle-legend {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 150px;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 50px;
  padding: 0 1rem;
  color: #526762;
  background: #fff;
  border-top: 1px solid #dbe5e2;
  font-size: 0.65rem;
  font-weight: 750;
}

.lifecycle-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lifecycle-legend i {
  display: inline-block;
  flex: 0 0 auto;
  font-style: normal;
}

.lifecycle-legend__solid {
  position: relative;
  width: 2rem;
  border-top: 3px solid #286f63;
}

.lifecycle-legend__solid::after {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #286f63;
  content: "";
}

.lifecycle-legend__dashed {
  width: 2rem;
  border-top: 2px dashed #70858e;
}

.lifecycle-legend__loop {
  display: grid !important;
  width: 1.45rem;
  height: 1.45rem;
  color: #fff;
  background: #a96e23;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.quick-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background: #192f2b;
  border-radius: 16px;
}

.quick-next .eyebrow,
.quick-next h2 {
  color: #fff;
}

.quick-next h2 {
  margin: 0.2rem 0 0.5rem;
}

.quick-next p:last-child {
  max-width: 720px;
  margin: 0;
  color: #c4d5d1;
}

.workflow-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-help-card {
  border-top: 5px solid #2f8d7b;
}

.workflow-help-card h2 {
  margin: 0.2rem 0 1rem;
  font-size: 1.25rem;
}

.workflow-help-card ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.25rem;
}

.workflow-help-card__note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  color: #315a53;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}

.workflow-help-card--wide {
  max-width: 720px;
}

.workflow-reminders {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background: #192f2b;
  border-radius: 16px;
}

.workflow-reminders .eyebrow,
.workflow-reminders h2 {
  color: #fff;
}

.workflow-reminders h2 {
  margin-top: 0.2rem;
}

.workflow-reminders ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-reminders li {
  padding-bottom: 0.85rem;
  color: #c4d5d1;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.workflow-reminders li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workflow-reminders strong {
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.handoff-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.handoff-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.handoff-steps strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
}

.client-handoff-form .form-panel {
  width: 100%;
  max-width: none;
}

.handoff-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.handoff-sample-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.handoff-sample-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, #fff);
}

.handoff-sample-card__select {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.handoff-sample-card__select input {
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
}

.handoff-review-summary {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.handoff-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.client-handoff-form textarea {
  min-height: 320px;
}

.client-handoff-summary {
  display: grid;
  gap: 1rem;
  border-left: 4px solid var(--accent);
}

.manual-email-draft {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.manual-email-draft__header {
  display: grid;
  gap: 0.45rem;
}

.manual-email-draft__header > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.5rem;
}

.manual-email-draft label {
  font-weight: 750;
}

.manual-email-draft textarea {
  width: 100%;
  min-height: 260px;
  padding: 0.75rem;
  color: var(--ink);
  border: 1px solid #bfc7d1;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .guide-lifecycle {
    padding: 0.8rem 0.3rem 1rem;
    overflow-x: auto;
  }

  .guide-lifecycle article {
    flex: 0 0 190px;
  }

  .guide-development-loop {
    grid-template-columns: 1fr;
  }

  .guide-development-loop__steps {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .handoff-steps,
  .handoff-compose-grid {
    grid-template-columns: 1fr;
  }

  .workspace-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .workspace-heading,
  .section-heading,
  .panel-heading,
  .decision-card__top {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-columns,
  .factory-summary,
  .factory-dashboard-grid,
  .overview-files-layout,
  .form-grid,
  .detail-grid,
  .decision-meta,
  .request-line,
  .receipt-line,
  .variant-option-lists {
    grid-template-columns: 1fr;
  }

  .factory-record__top {
    flex-direction: column;
  }

  .factory-record__top time {
    white-space: normal;
  }

  .overview-files-layout .truth-grid {
    grid-template-columns: 1fr;
  }

  .garment-preview {
    width: min(100%, 360px);
  }

  .starter-banner {
    grid-template-columns: 1fr;
  }

  .guide-hero,
  .guide-browser__body,
  .guide-tab-groups,
  .guide-paths,
  .guide-guardrails > div:last-child,
  .guide-first-day,
  .workflow-help-grid,
  .workflow-reminders {
    grid-template-columns: 1fr;
  }

  .quick-hero,
  .quick-next,
  .sample-next-step,
  .shipment-context-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-route {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    padding: 0.4rem 0.25rem 0.75rem;
    overflow-x: auto;
  }

  .sample-milestones {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    overflow: visible;
  }

  .sample-milestone {
    min-width: 0;
    padding: 0.45rem 0;
  }

  .sample-milestone::before {
    display: none;
  }

  .quick-hero .button-row {
    width: 100%;
  }

  .swimlane-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0.55rem;
    color: #315a53;
    font-size: 0.75rem;
    font-weight: 800;
  }

  .swimlane-scroll-hint span:last-child {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
    background: #287768;
    border-radius: 50%;
    place-items: center;
  }

  .guide-compass {
    width: min(82vw, 300px);
    margin: 1rem auto;
  }

  .guide-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-section__heading > p {
    text-align: left;
  }

  .guide-journey,
  .guide-client-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guide-lifecycle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    overflow: visible;
  }

  .guide-lifecycle__arrow {
    min-height: 1rem;
    transform: rotate(90deg);
  }

  .guide-development-loop,
  .guide-workflow-foundation {
    grid-template-columns: 1fr;
  }

  .guide-development-loop__steps {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .guide-development-loop__steps b {
    text-align: center;
    transform: rotate(90deg);
  }

  .guide-journey article {
    width: auto;
  }

  .guide-arrow {
    min-height: 1rem;
    transform: rotate(90deg);
  }

  .guide-browser__tabs {
    overflow-x: auto;
  }

  .detail-grid__wide {
    grid-column: auto;
  }

  .request-line .checkbox-field {
    grid-column: auto;
  }

  .receipt-line legend,
  .receipt-line > p {
    grid-column: auto;
  }

  .decision-meta > div:nth-child(even) {
    padding-left: 0;
  }

  .notice {
    flex-direction: column;
  }

  .button-row .button,
  .section-heading > .button,
  .workspace-heading > .button {
    width: 100%;
  }

  .activity-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media print {
  .site-header,
  .guide-hero .button-row {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .guide-hero {
    color: #153e38;
    background: #e8f5f1 !important;
    box-shadow: none;
    print-color-adjust: exact;
  }

  .guide-hero h1,
  .guide-hero .eyebrow,
  .guide-hero__intro {
    color: #153e38;
  }

  .guide-section,
  .guide-first-day {
    margin: 2rem 0;
  }

  .guide-browser,
  .guide-lifecycle article,
  .guide-development-loop,
  .guide-paths article,
  .guide-journey article,
  .guide-client-flow article,
  .guide-first-day {
    break-inside: avoid;
  }
}
