.career-flow {
  --flow-accent: #286354;
  --flow-tint: #ebf4f0;
  margin: .05rem 0 1.15rem clamp(0rem, 3vw, 2.45rem);
  border: 1px solid #d2e1d8;
  border-radius: 1rem;
  background: #f8fcfa;
  min-width: 0;
}
.pantos-flow { --flow-accent: #375978; --flow-tint: #ecf2f8; border-color: #d4e0eb; background: #f8fbfd; }
.career-flow summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  padding: .85rem 2.75rem .85rem 1rem;
  min-height: 3.35rem;
  list-style: none;
  cursor: pointer;
  color: var(--flow-accent);
  font-weight: 820;
  position: relative;
}
.career-flow summary::-webkit-details-marker { display: none; }
.career-flow summary::after {
  content: "";
  position: absolute;
  inset: 50% 1.15rem auto auto;
  width: .53rem;
  height: .53rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
}
.career-flow[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.career-flow summary:hover { background: var(--flow-tint); border-radius: .95rem; }
.career-flow summary small { font-size: .86rem; color: #4a6463; font-weight: 560; }
.career-flow-content { padding: .85rem .95rem 1rem; border-top: 1px solid #d9e4df; }
.flow-stages { min-width: 0; border: 0; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .44rem; }
.flow-stages legend { color: #436659; font-size: .9rem; font-weight: 760; margin-bottom: .43rem; padding: 0; }
.flow-stages button {
  border: 1px solid #c3d7cf;
  padding: .46rem .65rem;
  color: #365b4e;
  background: #fdfefd;
  border-radius: .5rem;
  font-size: .89rem;
  font-weight: 690;
  min-height: 2.45rem;
}
.flow-stages button:hover, .fit-points button:hover { background: var(--flow-tint, #e9f4ed); }
.flow-stages button[aria-pressed="true"] { background: var(--flow-accent, #286354); color: #fff; border-color: var(--flow-accent, #286354); }
.pantos-flow .flow-stages button:not([aria-pressed="true"]) { color: #3d5b77; border-color: #c8d9e9; }
.pantos-flow .flow-stages button[data-parcel-route="reject"][aria-pressed="true"] { background: #934b2c; border-color: #934b2c; }
.flow-stage-layout { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(13rem, 1fr); align-items: stretch; gap: .78rem; }
.flow-figure { margin: 0; min-width: 0; border-radius: .7rem; background: #142a27; color: #d9f3e7; border: 1px solid #3f6158; overflow: hidden; }
.pantos-flow .flow-figure { background: #142537; color: #e8f1fe; border-color: #4e6884; }
.flow-figure-top, .flow-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .24rem .55rem; padding: .47rem .72rem; font-size: .87rem; }
.flow-figure-top { font-weight: 780; border-bottom: 1px solid #c4d8e62b; }
.flow-figure-top span:last-child { font-variant-numeric: tabular-nums; }
.flow-figure figcaption { color: #d4e8de; border-top: 1px solid #c4d8e62b; }
.pantos-flow .flow-figure figcaption { color: #d7e3f2; }
.flow-figure canvas { display: block; width: 100%; height: auto; }
.flow-readout {
  padding: .78rem .84rem .83rem;
  min-width: 0;
  background: var(--flow-tint);
  border: 1px solid #c4d8cf;
  border-left: 3px solid var(--flow-accent);
  border-radius: .7rem;
  color: #233d35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.pantos-flow .flow-readout { color: #293e59; border-color: #ccd9e6; border-left-color: var(--flow-accent); }
.flow-readout h3 { margin-bottom: .4rem; color: inherit; font-size: 1.11rem; font-weight: 820; line-height: 1.43; }
.flow-readout p, .flow-readout dd { font-size: .94rem; line-height: 1.62; }
.flow-readout dl { margin: .68rem 0 0; border-top: 1px solid #45685b2e; padding-top: .55rem; }
.flow-readout dt { color: var(--flow-accent); font-size: .86rem; font-weight: 820; margin-bottom: .16rem; }
.flow-readout dd { margin: 0; }
.parcel-options { margin: .83rem 0 .52rem; }
.parcel-result { padding: .48rem .67rem; background: #ebf2f8; border-radius: .52rem; color: #38536e; font-weight: 700; font-size: .9rem; }
.parcel-result[data-route="reject"] { background: #fcf0e7; color: #87452b; }

.fit-board { --flow-accent: #286354; --flow-tint: #eaf4ee; }
.fit-stages { margin: .25rem 0 .8rem; }
.fit-board .fit-layout { grid-template-columns: minmax(0, 1.65fr) minmax(14rem, 1fr); }
.fit-board .study-panel { display: grid; align-content: start; gap: .66rem; }
.fit-board .study-panel .study-options { margin: 0; }
.fit-point-groups { display: grid; gap: .62rem; }
.fit-point-group > p { margin: 0 0 .27rem; color: #365a4d; font-size: .85rem; font-weight: 780; }
.fit-point-group .fit-points button { min-height: 2.24rem; font-size: .88rem; }
.fit-stage-readout { margin: 0; }
.fit-tolerance {
  padding: .68rem .72rem;
  border: 1px solid #cadcd3;
  background: #fcfefc;
  border-radius: .68rem;
  color: #2d5045;
}
.fit-tolerance h4 { font-size: 1rem; font-weight: 820; }
.fit-tolerance p { font-size: .89rem; line-height: 1.53; margin: .29rem 0; }
.fit-tolerance dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .31rem; margin: .55rem 0; }
.fit-tolerance dl div { padding: .29rem .32rem; border-radius: .38rem; background: #eef6f0; }
.fit-tolerance dt { font-size: .78rem; font-weight: 720; }
.fit-tolerance dd { margin: .17rem 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; font-weight: 800; overflow-wrap: anywhere; }
.fit-tolerance [data-fit-instruction]:empty { display: none; }
.fit-board .canvas-label { background: #102f2b; color: #e3f5e9; border-color: #4d665e; }
.fit-board .canvas-label span:last-child { color: #153e32; background: #c0ebd5; }
.fit-board .fit-canvas { background: #102b28; align-self: start; }
.fit-board .study-readout h4 { font-size: 1.03rem; }
.fit-board .study-readout p { font-size: .92rem; }

.inspection-workbook { margin-top: .88rem; min-width: 0; border: 1px solid #acc6b8; border-radius: .73rem; background: #f6fbf8; overflow: hidden; }
.inspection-workbook[data-emphasis="true"] { border-color: #267158; box-shadow: 0 0 0 2px #4493743c; }
.inspection-workbook header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  padding: .73rem .83rem;
  background: #225443;
  color: #f3fbf4;
}
.inspection-workbook header h4 { font-size: 1.13rem; font-weight: 820; }
.inspection-workbook header p { font-size: .87rem; margin-top: .14rem; color: #d8f0e1; }
.inspection-workbook header .button { min-height: 2.4rem; background: #eff9f1; color: #204b3d; border: 1px solid #cee7d7; font-size: .88rem; }
.inspection-workbook header .button:hover { background: #d3efdf; }
.workbook-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #709883 #e3f0e8; }
.workbook-scroll:focus-visible { outline-offset: -3px; }
.workbook-scroll table { min-width: 50rem; border-collapse: separate; border-spacing: 0; width: 100%; text-align: right; font-size: .87rem; }
.workbook-scroll :is(th,td) { padding: .44rem .51rem; border-right: 1px solid #d3e3d8; border-bottom: 1px solid #d3e3d8; vertical-align: middle; }
.workbook-scroll :is(th,td):last-child { border-right: none; }
.workbook-scroll thead th { color: #285545; background: #e6f2ea; font-weight: 820; }
.workbook-scroll thead th[colspan] { background: #d4eadc; text-align: center; }
.workbook-scroll thead tr:first-child th:last-child, .workbook-scroll td:last-child { text-align: left; }
.workbook-scroll thead tr:first-child th:first-child, .workbook-scroll tbody th { text-align: left; }
.workbook-scroll tbody tr { background: #fdfffd; }
.workbook-scroll tbody tr:nth-child(even) { background: #f6faf7; }
.workbook-scroll tbody tr[data-selected="true"] { background: #e6f4eb; }
.workbook-scroll tbody th { white-space: nowrap; }
.workbook-scroll tbody th button { width: 100%; text-align: left; background: transparent; border: 0; padding: .2rem .08rem; font-weight: 790; color: #275241; }
.workbook-scroll tbody th button:hover { text-decoration: underline; }
.workbook-scroll input {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: #174c48;
  padding: .2rem .24rem;
  width: 4.45rem;
  min-height: 2.06rem;
  background: #fff;
  border: 1px solid #afcabd;
  border-radius: .27rem;
  text-align: right;
}
.workbook-scroll input[aria-invalid="true"] { border-color: #bc6745; background: #fff3eb; }
.workbook-scroll [data-judgment] { white-space: nowrap; font-weight: 760; }
.workbook-scroll [data-judgment="pass"] { color: #1a6c4a; }
.workbook-scroll [data-judgment="fail"], .workbook-scroll [data-judgment="invalid"] { color: #924528; }
.workbook-scroll [data-judgment="pending"] { color: #55675c; }
.inspection-workbook footer { padding: .55rem .75rem; color: #486257; font-size: .87rem; }
.inspection-workbook footer p:first-child { font-weight: 790; color: #255541; }
.inventory-resolution {
  position: relative;
  display: grid;
  gap: .62rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  counter-reset: resolution;
}
.inventory-resolution::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: .84rem;
  width: 1px;
  background: #8fbc9b85;
}
.inventory-resolution li {
  position: relative;
  display: grid;
  gap: .14rem;
  min-width: 0;
  padding: .54rem .65rem .58rem 2.44rem;
  border: 1px solid #b5d4b33f;
  border-radius: .6rem;
  background: #deefd20c;
  color: #e4efe3;
  counter-increment: resolution;
}
.inventory-resolution li::before {
  content: counter(resolution);
  position: absolute;
  left: .36rem;
  top: .58rem;
  width: 1rem;
  height: 1rem;
  padding: .02rem;
  border-radius: .18rem;
  border: 1px solid #b4dbb5;
  background: #d2eed6;
  color: #203d2b;
  text-align: center;
  font-size: .73rem;
  font-weight: 850;
  line-height: 1.1;
}
.inventory-resolution strong { font-size: .93rem; font-weight: 810; }
.inventory-resolution span { color: #d1e0cc; font-size: .87rem; line-height: 1.53; }
.stock-board-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .47rem; }
.stock-edit { padding: .33rem .51rem; min-height: 2.1rem; border: 1px solid #c8d9ca; border-radius: .42rem; background: #f0f7ec; color: #34553d; font-size: .81rem; font-weight: 770; }
.stock-edit:hover { background: #dfeedd; }
.count-form input[readonly] { background: #edf5eb; border-color: #d5e5d5; box-shadow: none; }
.memo-actions [hidden] { display: none; }

.skill-tags { margin: .58rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .42rem; list-style: none; }
.skill-tags li { display: block; padding: .34rem .61rem; background: #eaf3eb; color: #31543e; border: 1px solid #d2e3d6; border-radius: .43rem; font-size: .93rem; font-weight: 700; }

.award-media :is(img,.award-proof)[hidden] { display: none; }
.award-proof { max-width: 50rem; margin: 0 auto; display: grid; gap: .65rem; padding: .42rem; }
.award-proof figure { margin: 0; min-width: 0; border: 1px solid #cdded2; background: #fff; border-radius: .66rem; overflow: hidden; }
.award-proof figcaption { padding: .42rem .64rem; font-size: .9rem; font-weight: 770; color: #294f3d; background: #f2f8f4; border-bottom: 1px solid #dae7de; }
.award-proof .award-proof-row { border: 2px solid #0d7853; }
.award-proof-row figcaption { background: #d9eee3; }
.award-proof img { width: 100%; height: auto; max-height: unset; }
.award-media.media-zoomed .award-proof { width: max(100%, 1000px); max-width: none; }
.award-media.media-zoomed .award-proof img { width: 100%; }

@media (max-width: 740px) {
  .career-flow { margin-left: 0; }
  .flow-stage-layout, .fit-board .fit-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 440px) {
  .career-flow-content { padding-inline: .58rem; }
  .career-flow summary { padding-left: .66rem; }
  .career-flow summary small { flex-basis: 100%; }
  .flow-stages button { padding-inline: .49rem; }
}
@media print {
  .skill-tags li { border: 1px solid #c0c0c0; background: #fff; color: #111; }
}
