.workbench-hero,
.workbench-hero[data-proof-state="hidden"] {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 28px;
}

.workbench-promise h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 5vw, 5.4rem);
}

.workbench-loop {
  max-width: 520px;
  margin-top: 24px;
}

.workbench-proof-stack:not([hidden]) {
  width: calc(100% - 56px);
  max-width: 650px;
  margin: 0 auto 50px;
  align-self: auto;
}

.front-check {
  min-width: 0;
  margin: 0 clamp(20px, 4vw, 60px) clamp(34px, 5vw, 64px);
  color: #192521;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.front-check *,
.front-check *::before,
.front-check *::after { box-sizing: border-box; }

.front-check-result {
  position: relative;
  min-width: 0;
  border: 1px solid #244639;
  background: #e5ece3;
  box-shadow: 7px 7px 0 #d4a868;
}

.front-check-result::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, #cbd8ca 49%, #fffdf7 50%);
  border-left: 1px solid #244639;
  border-bottom: 1px solid #244639;
  content: "";
}

.front-check-docket {
  display: flex;
  min-width: 0;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 48px 13px 22px;
  border-bottom: 1px solid #244639;
  color: #1e4e39;
  font: 750 0.64rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
}

.front-check-result-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  padding: clamp(22px, 3vw, 40px);
}

.front-check-eyebrow {
  margin: 0 0 9px;
  color: #2d644e;
  font: 800 0.68rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.front-check-result h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.front-check-result-body p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  color: #355046;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.55;
}

.front-check-release {
  display: grid;
  min-width: 150px;
  gap: 5px;
  padding: 15px;
  border: 1px solid #244639;
  background: #fdf9ef;
  box-shadow: 3px 3px 0 #244639;
  transform: rotate(1deg);
}

.front-check-release span,
.front-check-release small {
  font: 750 0.6rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.07em;
}

.front-check-release span { color: #2d644e; }
.front-check-release strong { font-size: 1.3rem; letter-spacing: -0.04em; }
.front-check-release small { color: #42554a; }

.front-check-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.77fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(32px, 4vw, 52px) 4px 25px;
}

.front-check-prompt h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.front-check-prompt > p:last-child {
  max-width: 370px;
  margin: 13px 0 0;
  color: #4b5149;
  font-size: 0.9rem;
  line-height: 1.5;
}

.front-check-actions { min-width: 0; }
.front-check-choices { display: grid; gap: 9px; }

.front-check-choices button {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 37px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid #34453b;
  background: #fffdf7;
  color: #192521;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.front-check-choice-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 0.73rem ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.front-check-choices strong,
.front-check-choices small { display: block; }
.front-check-choices strong { font-size: 0.98rem; }
.front-check-choices small { margin-top: 3px; color: #555a53; font-size: 0.78rem; line-height: 1.4; }
.front-check-choices b { font-size: 1.2rem; }

.front-check-choices button:hover,
.front-check-choices button[aria-pressed="true"] {
  background: #e5ece3;
  box-shadow: 4px 4px 0 #d4a868;
  transform: translate(-2px, -2px);
}

.front-check-choices button[aria-pressed="true"] { border-width: 2px; border-color: #1e6246; }
.front-check-choices button[aria-pressed="true"] .front-check-choice-number { background: #1e6246; color: white; }

.front-check-reveal {
  display: flex;
  width: 100%;
  min-height: 52px;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 17px;
  border: 1px solid #192521;
  background: #192521;
  color: white;
  cursor: pointer;
  font: 800 0.84rem/1.3 Inter, ui-sans-serif, sans-serif;
  text-align: left;
}

.front-check-reveal:disabled { cursor: default; opacity: 0.5; }
.front-check-reveal:not(:disabled):hover { background: #2d644e; }
.front-check-reveal span:last-child { font-size: 1.2rem; }
.front-check-status { min-height: 1.4em; margin: 9px 0 0; color: #59635a; font-size: 0.75rem; }

.front-check-evidence-trail { min-width: 0; }
.front-check-trail-heading {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 28px 0 17px;
  padding: 0 0 0 18px;
  border-left: 4px solid #2d644e;
}
.front-check-evidence-trail[data-open="false"] .front-check-trail-heading { display: none; }
.front-check-trail-heading span,
.front-check-next-folder > span,
.front-check-followup-label {
  color: #2d644e;
  font: 800 0.65rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.09em;
}
.front-check-trail-heading strong { font-size: clamp(1.18rem, 2vw, 1.6rem); letter-spacing: -0.04em; }
.front-check-trail-heading p { max-width: 740px; margin: 0; color: #47564b; font-size: 0.82rem; line-height: 1.5; }

.front-check-recorded[hidden] { display: none; }
.front-check-recorded {
  min-width: 0;
  margin-top: 5px;
  border: 1px solid #244639;
  background: #fffdf7;
  box-shadow: 7px 7px 0 #aac4ae;
  animation: front-check-open 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.front-check-recorded > header {
  display: flex;
  min-height: 53px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(20px, 3vw, 38px);
  border-bottom: 1px solid #244639;
}

.front-check-recorded > header p,
.front-check-recorded > header span {
  margin: 0;
  color: #2d644e;
  font: 800 0.66rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.07em;
}

.front-check-recorded > header span { transform: rotate(-8deg); text-align: center; }
.front-check-recorded-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.83fr); }
.front-check-finding { min-width: 0; padding: clamp(22px, 3vw, 38px); }
.front-check-finding h3 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2.4rem); letter-spacing: -0.045em; line-height: 1.12; }
.front-check-finding > p:last-child { max-width: 550px; margin: 16px 0 0; line-height: 1.55; color: #3a4e41; }
.front-check-evidence { display: grid; border-left: 1px solid #244639; }
.front-check-evidence > div { padding: 14px clamp(20px, 3vw, 38px); border-bottom: 1px solid #b9c9b9; }
.front-check-evidence > div:last-child { border-bottom: 0; }
.front-check-evidence span { display: block; margin-bottom: 5px; color: #2d644e; font: 800 0.62rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.08em; }
.front-check-evidence time { font-weight: 800; }
.front-check-evidence p { margin: 0; font-size: 0.83rem; line-height: 1.48; }
.front-check-limit { background: #f4eee0; }
.front-check-limit .front-check-missing-frame {
  display: grid;
  min-height: 48px;
  place-items: center;
  margin: 12px 0 0;
  border: 1px dashed #9e8b6b;
  color: #746043;
  background: repeating-linear-gradient(135deg, transparent 0 12px, #ece1cd 12px 13px);
  font-size: 0.61rem;
  text-align: center;
}

.front-check-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px clamp(20px, 3vw, 38px);
  border-top: 1px solid #244639;
}

.front-check-exits a,
.front-check-exits button {
  display: inline-flex;
  min-height: 45px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #244639;
  background: #fffdf7;
  color: #192521;
  cursor: pointer;
  font: 750 0.79rem/1.3 Inter, ui-sans-serif, sans-serif;
  text-decoration: none;
}

.front-check-exits .workbench-case-link { background: #1d312b; color: white; }
.front-check-exits .front-check-inspect-open { background: #d4a868; color: #192521; font-weight: 850; }
.front-check-exits a:hover,
.front-check-exits button:hover { background: #e5ece3; color: #192521; }
.front-check-inspection[hidden] { display: none; }
.front-check-inspection {
  min-width: 0;
  margin-top: 26px;
  border: 2px solid #244639;
  background: #f7f1e4;
  box-shadow: 8px 8px 0 #d4a868;
  animation: front-check-inspection-open 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.front-check-inspection-head {
  display: flex;
  min-width: 0;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 38px);
  border-bottom: 2px solid #244639;
  background: #e5ece3;
}
.front-check-inspection-head > div { min-width: 0; }
.front-check-inspection-head h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.front-check-inspection-head h3:focus { outline: 3px solid #326b87; outline-offset: 5px; }
.front-check-inspection-head > div > p:last-child { max-width: 680px; margin: 14px 0 0; color: #3a4e41; font-size: 0.91rem; line-height: 1.5; }
.front-check-inspection-clip {
  flex: 0 0 auto;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid #244639;
  border-radius: 50%;
  color: #244639;
  font: 900 0.63rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  transform: rotate(10deg);
}
.front-check-inspection-slips { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); padding: clamp(17px, 3vw, 35px); }
.front-check-inspection-slip {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(17px, 2.5vw, 29px);
  border: 1px solid #526858;
  background: #fffdf7;
  box-shadow: 4px 5px 0 #d3dbce;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.front-check-inspection-slip::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  border-left: 1px solid #526858;
  border-bottom: 1px solid #526858;
  background: linear-gradient(45deg, #e4e5d6 49%, #f7f1e4 50%);
  content: "";
}
.front-check-inspection-slip[data-revised="true"] { background: #eaf2e7; box-shadow: 4px 5px 0 #9ebda1; transform: translateY(-3px); }
.front-check-inspection-slip-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-right: 20px; }
.front-check-inspection-slip-head span,
.front-check-inspection-label,
.front-check-inspection-cost span { color: #35634c; font: 800 0.67rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.front-check-inspection-slip-head b { font: 900 1.1rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.front-check-inspection-slip h4 { margin: 22px 0 10px; font-size: clamp(1.35rem, 2.3vw, 2rem); letter-spacing: -0.045em; line-height: 1.08; }
.front-check-inspection-slip p { overflow-wrap: anywhere; }
.front-check-inspection-slip > p:not(.front-check-inspection-label) { margin: 8px 0 0; color: #35443b; font-size: 0.87rem; line-height: 1.48; }
.front-check-inspection-slip > p.front-check-inspection-call { margin: 0; color: #1c4e36; font-weight: 850; }
.front-check-inspection-label { display: block; margin: 21px 0 0; }
.front-check-inspection-cost { flex: 1 0 auto; margin: 22px 0 0; padding: 16px; border: 1px solid #c3bca9; background: #f5eee0; }
.front-check-inspection-cost p { margin: 8px 0 0; color: #443c32; font-size: 0.87rem; line-height: 1.48; }
.front-check-inspection-slip button { display: flex; width: 100%; min-height: 48px; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 10px 13px; border: 1px solid #244639; color: #fffdf7; background: #244639; cursor: pointer; font: 800 0.82rem/1.3 Inter, ui-sans-serif, sans-serif; text-align: left; }
.front-check-inspection-slip button:hover { background: #35634c; }
.front-check-inspection-foot { padding: 0 clamp(17px, 3vw, 35px) clamp(20px, 3vw, 34px); }
.front-check-inspection-foot > p:first-child { margin: 0; padding: 14px 17px; border-left: 4px solid #244639; color: #193d2c; background: #e5ece3; font-size: 0.87rem; font-weight: 800; line-height: 1.45; }
.front-check-inspection-foot > p:nth-child(2) { max-width: 820px; margin: 18px 0; color: #515345; font-size: 0.78rem; line-height: 1.5; }
.front-check-inspection-routes { display: flex; flex-wrap: wrap; gap: 8px; }
.front-check-inspection-routes a,
.front-check-inspection-routes button { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 12px; border: 1px solid #244639; color: #244639; background: #fffdf7; cursor: pointer; font: 800 0.78rem/1.3 Inter, ui-sans-serif, sans-serif; text-decoration: none; }
.front-check-inspection-routes a:hover,
.front-check-inspection-routes button:hover { background: #e5ece3; }
.front-check-next-folder {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin: 22px 0;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #244639;
  background: #e5ece3;
  box-shadow: 4px 4px 0 #c0d3bf;
}
.front-check-next-folder p { max-width: 650px; margin: 0; color: #344f3d; font-size: 0.86rem; line-height: 1.48; }
.front-check-next-folder button {
  display: flex;
  min-height: 48px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border: 1px solid #1d312b;
  color: #fffdf7;
  background: #1d312b;
  cursor: pointer;
  font: 800 0.82rem/1.3 Inter, ui-sans-serif, sans-serif;
  text-align: left;
}
.front-check-next-folder button:hover { background: #2d644e; }
.front-check-followup[hidden] { display: none; }
.front-check-followup {
  min-width: 0;
  margin: 28px 0 0;
  border: 2px solid #20394a;
  color: #172c38;
  background: #f4f8f8;
  box-shadow: 8px 8px 0 #9bb5bf;
  animation: front-check-inspection-open 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.front-check-followup-head {
  display: flex;
  min-width: 0;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 2px solid #20394a;
  color: #fffdf7;
  background: #20394a;
}
.front-check-followup-head > div { min-width: 0; }
.front-check-followup-head p { margin: 0 0 10px; color: #bedce6; font: 800 0.65rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.07em; }
.front-check-followup-head h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.8rem); letter-spacing: -0.055em; line-height: 1.08; }
.front-check-followup-head h3:focus { outline: 3px solid #d4a868; outline-offset: 5px; }
.front-check-followup-head > span {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #bedce6;
  border-radius: 50%;
  font: 800 0.63rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  transform: rotate(8deg);
}
.front-check-followup-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.front-check-followup-body > div { min-width: 0; padding: clamp(20px, 3vw, 34px); }
.front-check-followup-body > div > p:last-child { margin: 10px 0 0; font-size: 0.9rem; line-height: 1.55; }
.front-check-followup-evidence { border-left: 1px solid #809daa; background: #dbe8ea; }
.front-check-followup-evidence span { color: #244a5a; font: 800 0.65rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.09em; }
.front-check-followup-evidence strong { display: block; margin-top: 10px; font-size: clamp(1.25rem, 2vw, 1.8rem); letter-spacing: -0.045em; }
.front-check-followup footer { display: flex; flex-wrap: wrap; gap: 9px; padding: 17px clamp(20px, 3vw, 34px); border-top: 1px solid #809daa; }
.front-check-followup footer a { display: inline-flex; min-height: 45px; gap: 12px; align-items: center; justify-content: space-between; padding: 9px 13px; border: 1px solid #20394a; color: #20394a; background: #f4f8f8; font: 800 0.79rem/1.3 Inter, ui-sans-serif, sans-serif; text-decoration: none; }
.front-check-followup footer a:first-child { color: white; background: #20394a; }
.front-check-followup footer a:hover { color: white; background: #32677b; }
.front-check-skip { margin: 20px 0 0; font-size: 0.79rem; color: #555a53; }
.front-check-skip button { padding: 0; border: 0; background: none; color: #1e6246; cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.front-check :is(button, a):focus-visible { outline: 3px solid #326b87; outline-offset: 3px; }
.front-check-recorded h3:focus-visible { outline: 3px solid #326b87; outline-offset: 4px; }

.front-check-brief-context {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-left: 4px solid #2d644e;
  background: #e5ece3;
  color: #244639;
  font-size: 0.86rem;
  line-height: 1.45;
}

@keyframes front-check-open {
  from { transform: translateY(-12px) rotate(-0.4deg); box-shadow: 2px 2px 0 #aac4ae; }
  to { transform: translateY(0) rotate(0); box-shadow: 7px 7px 0 #aac4ae; }
}

@keyframes front-check-inspection-open {
  from { opacity: 0.5; transform: translateY(-10px) rotate(-0.3deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 780px) {
  .front-check-desk,
  .front-check-recorded-body { grid-template-columns: minmax(0, 1fr); }
  .front-check-desk { gap: 20px; }
  .front-check-evidence { border-left: 0; border-top: 1px solid #244639; }
  .front-check-result-body { grid-template-columns: minmax(0, 1fr); }
  .front-check-release { width: max-content; min-width: 0; }
  .front-check-inspection-slips { grid-template-columns: minmax(0, 1fr); }
  .front-check-followup-body { grid-template-columns: minmax(0, 1fr); }
  .front-check-followup-evidence { border-left: 0; border-top: 1px solid #809daa; }
}

@media (max-width: 640px) {
  .workbench-hero,
  .workbench-hero[data-proof-state="hidden"] { padding-bottom: 20px; }
  .workbench-promise h1 { font-size: clamp(2.55rem, 11vw, 3.5rem); line-height: 0.95; }
  .workbench-loop { margin-top: 20px; }
  .front-check { margin: 0 17px 42px; }
  .workbench-proof-stack:not([hidden]) { width: calc(100% - 34px); margin-bottom: 42px; }
  .front-check-docket { padding-left: 15px; font-size: 0.55rem; }
  .front-check-result-body { padding: 22px 17px 26px; }
  .front-check-result h2 { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
  .front-check-release { transform: none; }
  .front-check-desk { padding-top: 34px; }
  .front-check-choices button { min-height: 74px; }
  .front-check-exits { display: grid; }
  .front-check-exits a,
  .front-check-exits button { width: 100%; }
  .front-check-inspection-clip { width: 54px; height: 54px; font-size: 0.5rem; }
  .front-check-inspection-head { gap: 10px; }
  .front-check-inspection-routes { display: grid; }
  .front-check-inspection-routes a,
  .front-check-inspection-routes button { width: 100%; }
  .front-check-next-folder { justify-items: stretch; }
  .front-check-next-folder button { width: 100%; }
  .front-check-followup footer { display: grid; }
  .front-check-followup footer a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .front-check-recorded { animation: none; }
  .front-check-inspection { animation: none; }
  .front-check-followup { animation: none; }
  .front-check-inspection-slip { transition: none; }
  .front-check-choices button { transition: none; }
}
