/* The last five scenes share physical edges and carry the same evidence between views. */
.cl-station-desk, .cl-freight-desk, .cl-allocation, .cl-committee, .cl-source-book {
  --cl-navy: #102930;
  --cl-metal: #95bdbb;
  --cl-cream: #f4efe0;
  --cl-ink: #1b312f;
  --cl-gold: #e8c48a;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-size: 17px;
  text-align: left;
  line-height: 1.3;
  isolation: isolate;
}
.cl-station-desk *, .cl-freight-desk *, .cl-allocation *, .cl-committee *, .cl-source-book * { box-sizing: border-box; }
.cl-station-desk :is(p,h3,ol), .cl-freight-desk :is(p,h3), .cl-allocation :is(p,h3,ul),
.cl-committee :is(dl,dd,dt), .cl-source-book :is(p,ul) { margin: 0; }
.cl-station-desk h3, .cl-freight-desk h3, .cl-allocation h3 {
  color: inherit; font-size: 20px; line-height: 1.12; font-weight: 720; letter-spacing: -.025em;
}
.cl-station-desk :is(a:focus-visible), .cl-source-book a:focus-visible { outline: 3px solid #ebbd68; outline-offset: 4px; }

/* Engineering desk with a physical panel and its interrupted electronic record. */
.cl-station-desk {
  padding: 16px 22px 17px;
  color: #ecf4ee;
  background: linear-gradient(125deg, #243f44f7, #132a31fa 54%, #10252cf7);
  border: 1px solid #8b9f9c;
  border-bottom: 4px solid #526c6e;
  box-shadow: inset 0 1px #d2dddc52, 0 8px 16px #06151550;
  border-radius: 4px;
}
.cl-intro { color: #e5f3ef; font-size: 18px; font-weight: 600; }
.cl-plant-route { position: relative; margin: 13px 0 14px; padding: 0 0 13px; border-bottom: 1px solid #6d8f8e; }
.cl-stations { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; list-style: none; }
.cl-station { min-width: 0; position: relative; padding: 0 15px; border-inline-start: 1px solid #70929169; }
.cl-station:first-child { padding-inline-start: 0; border-inline-start: 0; }
.cl-station:last-child { padding-inline-end: 0; }
.cl-station p { margin-top: 5px; max-width: 245px; color: #d9e7e3; font-size: 16px; }
.cl-object-bed {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: 70px; margin-bottom: 12px; border-bottom: 2px solid #88a5a3;
  background: radial-gradient(ellipse 55% 16% at 50% 94%, #020b0bcc 3%, transparent 90%);
}
.cl-monitor {
  z-index: 2; position: relative; display: block; height: 60px; width: 104px;
  padding: 3px; border: 2px solid #a4b4ac; border-radius: 4px; background: #172326;
  box-shadow: 1px 3px 3px #000a, inset 1px 1px 1px #111;
  transform: translateY(-5px) perspective(400px) rotateY(calc(8deg * (1 - var(--act,1))));
}
.cl-monitor::after {
  position: absolute; bottom: -7px; left: 36%; width: 28%; height: 5px; content: "";
  background: linear-gradient(#657573,#b7c4bb); border-radius: 2px 2px 0 0;
}
.cl-monitor img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 48%; }
.cl-object { position: relative; display: block; width: 96px; height: 60px; }
.cl-object-production {
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, #56716c 15px 17px) 50% 90% / 90% 8px no-repeat,
    linear-gradient(90deg,#80908c,#d6cbb0 55%,#797e73) 50% 88% / 100% 3px no-repeat;
}
.cl-object-production :is(i,b,em) {
  position: absolute; left: 14%; bottom: 10px; width: 63%; height: 73%;
  background: repeating-linear-gradient(90deg,#9aa895 0 11px,#6d817a 12px 13px);
  border: 2px solid #d6dfc8; box-shadow: 3px 2px 0 #4c5b52;
  transform: skewY(-6deg);
}
.cl-object-production b { left: 24%; height: 69%; }
.cl-object-production em { left: 35%; height: 64%; background: linear-gradient(140deg,#c2c3ad,#a2b1a5 66%,#78857b); }
.cl-object-dispatch i {
  position: absolute; left: 17%; bottom: 15px; width: 56%; height: 36px;
  background: repeating-linear-gradient(90deg,#acae9d 0 17px,#7a887d 18px 20px);
  border: 2px solid #bdc6b7; box-shadow: 4px -2px 0 #63776c;
}
.cl-object-dispatch b {
  position: absolute; left: 6%; bottom: 9px; width: 87%; height: 7px;
  border: 1px solid #d4b87e; background: linear-gradient(#d3b377,#7b6949);
}
.cl-object-dispatch em, .cl-object-dispatch em::after {
  position: absolute; bottom: 2px; left: 17%; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid #1a2525; background: #8f9b94; box-shadow: 1px 1px 1px #000a;
}
.cl-object-dispatch em::after { content: ""; bottom: -2px; left: 53px; }
.cl-object-billing {
  width: 88px; height: 55px; margin-bottom: 3px; border: 1px solid #c3c8b8;
  background: linear-gradient(130deg,#e6e8d7,#f7f0da); color: #75837b;
  transform: perspective(350px) rotateX(12deg); box-shadow: 1px 3px 0 #a8b1a7, 1px 5px 3px #06191ad9;
}
.cl-object-billing i, .cl-object-billing b {
  position: absolute; left: 10%; right: 10%; height: 2px; top: 19%; background: #42645e;
}
.cl-object-billing b { width: 38%; top: 33%; height: 1px; }
.cl-object-billing em {
  position: absolute; top: 49%; left: 10%; right: 10%; bottom: 12%;
  background: repeating-linear-gradient(0deg,transparent 0 4px,#99a497 4px 5px);
}
.cl-transit-panel {
  position:absolute; top:32px; left:calc(9% + 77% * var(--act,1));
  width:44px; height:29px; pointer-events:none;
  border:2px solid #dfe3cd;
  background:repeating-linear-gradient(90deg,#aab3a3 0 13px,#6d8276 13px 14px);
  box-shadow:2px 3px 0 #4f6058, 3px 6px 6px #061a1999;
  transform:translateX(-50%) perspective(320px) rotateY(-13deg) skewY(-4deg);
  opacity:clamp(0,calc((1 - var(--act,1)) * 8),1);
}
.cl-electronic-line {
  position: absolute; pointer-events: none; left: 9%; right: 8%; top: 75px; height: 2px;
  background: linear-gradient(to right,#89d2c3 0 63%,transparent 63% 66%,#89d2c3 66% 100%);
  transform-origin: left; transform: scaleX(var(--act,1));
}
.cl-electronic-line::after {
  position: absolute; left: 63%; top: -4px; width: 3%; height: 10px; border: 1px dashed #efc582; content: "";
}
.cl-electronic-line i {
  display: block; position: absolute; left: calc(100% * var(--act,1)); top: -4px;
  width: 9px; height: 9px; transform: translateX(-50%); border: 1px solid #e1e9ce;
  background: #9fbcad; border-radius: 1px; opacity: calc(1 - var(--late,1));
}
.cl-station-checks { display: grid; grid-template-columns: 1.24fr 1fr; gap: 28px; }
.cl-station-checks h3 { margin-bottom: 3px; color: #9bd7cd; font-size: 17px; }
.cl-station-checks p { color: #e0e8e3; font-size: 16px; }

/* Invoice, quote and a conditional release record on a single evidence surface. */
.cl-freight-desk { color: #f4f6ed; }
.cl-freight-context, .cl-freight-question {
  padding: 8px 14px; background: #142d32f2; color: #edf5ee;
  width: fit-content; max-width: 100%; font-size: 17px;
}
.cl-freight-context { border-inline-start: 3px solid #a1cebf; }
.cl-freight-docs {
  display: grid; grid-template-columns: 1.03fr .98fr 1.1fr; gap: 17px; align-items: stretch;
  margin: 13px 5px 13px 0;
}
.cl-freight-doc {
  border: 1px solid #b7b9a8; border-radius: 2px;
  position: relative; color: var(--cl-ink); padding: 16px 20px 15px;
  box-shadow: 1px 3px #b7baab, 2px 5px #838c7f, 1px 9px 11px #08191966;
}
.cl-freight-doc :is(h3,strong,p,.cl-version-field,.cl-doc-rule,.cl-freight-line) { position: relative; z-index: 1; }
.cl-freight-doc h3 { font-size: 23px; }
.cl-freight-doc strong { display:block; font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.cl-freight-doc p { font-size: 16px; }
.cl-doc-rule, .cl-freight-line {
  margin: 11px 0; height: 2px;
  background: repeating-linear-gradient(90deg,#55776a 0 15px,transparent 15px 18px);
}
.cl-quote {
  background: linear-gradient(110deg,#f3ecd9,#e9e5d4);
  transform: translateX(calc(-32px * (1 - var(--act,1))));
}
.cl-release {
  background: linear-gradient(135deg,#d9e9dc,#c2d8cf);
  transform: translateY(calc(-19px * (1 - var(--act,1))));
}
.cl-release::after {
  position:absolute; inset: 6px; border:1px dashed #738e82; pointer-events:none; content:"";
}
.cl-invoice {
  background: linear-gradient(110deg,#faf7e9,#e7e3d1);
}
.cl-invoice .cl-freight-line { background:#36675f; }
.cl-freight-line i { display:block; width:100%; height:1px; background:#9fb9ab; position:absolute; top:3px; }
.cl-version-field { display:flex; gap:12px; justify-content:space-between; align-items:baseline; margin-top:12px; border-top:1px solid #93a297; padding-top:6px; font-size:14px; }
.cl-version-field b { color:#745128; font-weight:700; }
.cl-freight-question { border-inline-start:3px solid #d7aa70; }

/* Eight machined hour blocks on the planning mat. Each block has the same width. */
.cl-allocation {
  color: #e8efe8; padding: 17px 22px 14px; border: 1px solid #647c77; border-radius: 3px;
  background: linear-gradient(128deg,#233d40f9,#12292df7 63%,#182f30f7);
  box-shadow: inset 0 1px #b6cfc240, 1px 5px 0 #17282a, 0 9px 13px #06131668;
}
.cl-allocation-intro { font-size: 18px; }
.cl-allocation-intro strong { color: #d2ebca; }
.cl-rail {
  position: relative; display: flex; gap: 0; padding: 8px 0 20px; margin: 8px 0 0;
}
.cl-rail-group { flex: var(--units) 1 0; min-width: 0; text-align:left; }
.cl-group-1 { --group-color: #98c7ad; }
.cl-group-2 { --group-color: #aec9cd; }
.cl-group-3 { --group-color: #d6b781; }
.cl-group-4 { --group-color: #d2aa9a; }
.cl-hour-tiles { display:flex; height:35px; align-items:stretch; }
.cl-hour-tiles i {
  flex:1; margin-left:2px; position:relative;
  background: linear-gradient(172deg,#ffffff38,transparent 33%), var(--group-color);
  border:1px solid #d8e3d2; border-bottom:5px solid color-mix(in srgb,var(--group-color),#223f3a 45%);
  border-radius:2px; box-shadow:0 4px 4px #0005;
  transform:translateY(calc(-12px * (1 - var(--act,1))));
}
.cl-rail-group + .cl-rail-group .cl-hour-tiles i:first-child { margin-left:6px; }
.cl-hour-tiles i::after {
  position:absolute; inset:2px 7px auto; height:6px;
  background:repeating-linear-gradient(90deg,#344b463f 0 1px,transparent 1px 9px); content:"";
}
.cl-rail-group span { display:block; margin:4px 3px 0; color:var(--group-color); font-size:15px; line-height:1; font-weight:700; }
.cl-five-bracket {
  position:absolute; left:2px; bottom:6px; width:calc(62.5% - 3px); height:7px;
  border:1px solid #b3d3b6; border-top:0;
  clip-path:inset(0 calc(100% * (1 - var(--late,1))) 0 0);
}
.cl-work-list { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; padding:0; }
.cl-work { padding:9px 10px 11px; border-top:2px solid var(--group-color); background:#0b2022a1; }
.cl-allocation .cl-work h3 { font-size:18px; line-height:1.15; }
.cl-work-time { color:var(--group-color); margin-right:4px; font-variant-numeric:tabular-nums; }
.cl-work p { margin-top:6px; font-size:16px; }
.cl-allocation-foot { margin-top:10px !important; padding-top:9px; border-top:1px solid #66807b; font-size:15px; color:#d6e6dd; }
.cl-allocation-foot strong { color:#add1c3; margin-right:8px; }

/* Facing leaves of the Committee packet and the final source book. */
.cl-committee, .cl-source-book {
  width:96%; max-width:1070px; margin-inline:auto; border:1px solid #a6a496;
  color:#223b35; border-radius:3px 3px 6px 3px;
  background:linear-gradient(90deg,#e7e2cf 0,#f7f4e7 3.5%,#f3efe0 45%,#e2dcc9 49.4%,#b9b6a7 49.95%,#f5f0df 50.3%,#eee9d7 97%,#d5d0bd 100%);
  box-shadow:1px 3px #c0bdac,1px 5px #e0dccb,2px 7px #7d897a,2px 11px 15px #07151388;
}
.cl-committee { padding:14px 18px 12px; border-bottom:5px solid #708179; }
.cl-committee-leaves, .cl-index-spread {
  display:grid; grid-template-columns:1fr 1fr; column-gap:6%;
}
.cl-requests { min-width:0; padding: 1px 9px; }
.cl-requests > div { position:relative; padding:7px 0 8px 12px; border-bottom:1px solid #acb0a0; }
.cl-requests > div::before {
  position:absolute; left:0; top:13px; width:5px; height:5px; background:#638d7f; content:"";
}
.cl-requests dt { font-size:19px; font-weight:750; line-height:1.1; color:#173830; }
.cl-requests dd { margin-top:3px; color:#31433c; font-size:16px; }
.cl-requests-right > div:last-child { background:linear-gradient(90deg,#d2dfcb8c,transparent); }
.cl-requests-right > div:last-child::before { background:#ae793f; }
.cl-reassess {
  display:flex; flex-wrap:wrap; gap:7px 22px; align-items:baseline;
  margin:12px 9px 0; padding:8px 11px 9px; background:#24473e; color:#e3efe5;
}
.cl-reassess strong { margin-right:auto; font-size:16px; }
.cl-reassess span { font-size:14px; }
.cl-reassess b { margin-inline-start:3px; font-size:16px; color:#fff1c5; white-space:nowrap; }
.cl-reference-tab, .cl-index-tab {
  position:absolute; z-index:3; bottom:-16px; right:6%; height:22px; line-height:20px;
  padding-inline:14px; font-size:13px; font-weight:710; color:#48371e;
  background:linear-gradient(#caa66b,#eccb88 36%,#d6b77b);
  border:1px solid #9b8049; border-radius:0 0 4px 4px; box-shadow:0 2px 2px #3c291b66;
}
.cl-source-book { padding:13px 30px 14px; }
.cl-index-spread { position:relative; }
.cl-index-page { padding:0 1px; list-style:none; min-width:0; }
.cl-index-entry { padding:9px 2px 8px; border-bottom:1px solid #9ea899; }
.cl-index-entry a {
  display:inline-flex; align-items:baseline; gap:6px; color:#235649; font-size:19px;
  font-weight:720; line-height:1.15; text-decoration:underline; text-decoration-color:#82998c; text-underline-offset:3px;
}
.cl-index-entry a span { font-size:.66em; color:#637d6f; }
.cl-index-entry p { margin-top:3px; color:#34433c; font-size:16px; }
.cl-index-entry a:hover { color:#122b26; text-decoration-color:currentColor; }
.cl-source-book::after {
  position:absolute; z-index:2; inset:2px 50% 3px 2px; pointer-events:none; content:"";
  transform-origin:right center; backface-visibility:hidden;
  transform:perspective(950px) rotateY(calc(168deg * var(--act,1)));
  opacity:clamp(0,calc((1 - var(--act,1)) * 1.8),1);
  background:linear-gradient(90deg,#e8e2ca,#f7f3df 80%,#cfcdba); box-shadow:1px 3px 8px #554c3b66;
}

@media (max-width: 700px) {
  .cl-station-desk, .cl-allocation { padding-inline:12px; }
  .cl-station { padding-inline:8px; }
  .cl-freight-docs { gap:8px; }
  .cl-freight-doc { padding-inline:10px; }
  .cl-reassess { gap:6px 12px; }
}
html[data-motion="reduced"] .cl-transit-panel { display:none; }
html[data-motion="reduced"] .cl-source-book::after { display:none; }
html[data-motion="reduced"] :is(.cl-object-dispatch,.cl-hour-tiles i,.cl-monitor,.cl-freight-doc) { transform:none; }

