/* ============================================================
   JemUniversity — shared styles: the nav bar and sign-in dialog on the homepage, the Training Portal
   (sidebar, the 3D bookcase, the book preview), the book page.
   (The 3D library keeps its own inline stylesheet in index.html.)
   White and blue, set in General Sans. 14 px root; nothing scales with the viewport.
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; }
html, body { margin: 0; }
:root {
  --navy: #0b2a5b; --cobalt: #1d4ed8; --royal: #2f6bff; --azure: #1a8cff; --sky: #5aa9ff; --ice: #9cc8ff;
  --white: #fff; --snow: #f6f9fe; --pale: #e4eefb; --mist: #eef3fb;
  --ink: var(--navy); --paper: var(--white); --field: var(--mist);
  --text: #0b2a5b; --muted: rgb(11 42 91 / .62); --faint: rgb(11 42 91 / .42);
  --line: rgb(11 42 91 / .1); --line-strong: rgb(11 42 91 / .18); --wash: rgb(11 42 91 / .05);
  --ok: #0f7b5f; --bad: #b4322e;
  --radius: .875rem; --radius-s: .625rem;
  --shadow: 0 1rem 2rem rgb(11 42 91 / .12), 0 .125rem .375rem rgb(11 42 91 / .06);
  --font: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  min-height: 100vh; min-height: 100svh;
  background: var(--snow); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.357rem;
  padding: .5rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cobalt); color: var(--white); font-weight: 600; font-size: .929rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--royal); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--wash); }
.btn--paper { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--paper:hover { background: var(--pale); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 2rem; padding: .3rem .75rem; font-size: .857rem; }
.btn svg { width: .7rem; height: .7rem; flex: none; }
.error { margin: .625rem 0 0; padding: .5rem .75rem; border-radius: .625rem; background: #fdecea; color: var(--bad); font-size: .857rem; font-weight: 500; }
.error:empty { display: none; }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: var(--pale); color: var(--ink); font-size: .714rem; font-weight: 600; white-space: nowrap; }
.pill--draft, .tag--draft { background: #fff3d6; color: #7a5200; }
.pill--live { background: #e4f5ee; color: var(--ok); }
.pill--done { background: var(--ok); color: var(--white); }
.pill--now { background: var(--cobalt); color: var(--white); }
.pill--pipe, .tag--pipe { background: var(--navy); color: var(--white); }
.pill--book { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- the nav bar on the homepage ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 2rem;
  color: var(--ink); font-family: var(--font);
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-solid { background: rgb(255 255 255 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.nav__mark { width: 1.5rem; height: 1.5rem; border-radius: .375rem; flex: none; }
.nav__word { font-weight: 500; font-size: 1rem; letter-spacing: -.02em; line-height: 1; }
.nav__word b { font-weight: 700; }
.nav__links { display: flex; gap: .125rem; }
.nav__links a { padding: .4rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .857rem; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.nav__links a:hover { background: rgb(255 255 255 / .7); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px var(--line); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav .btn { min-height: 2.143rem; padding: .4rem .9rem; font-size: .857rem; }
@media (max-width: 1023px) { .nav { padding: .625rem 1.25rem; } }
@media (max-width: 767px) {
  .nav { padding: .5rem .75rem; }
  .nav__links { display: none; }
  .nav .btn--ghost { display: none; }
}

/* ---- the sign-in dialog: one access code ---- */
.gate { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; max-height: none; }
.gate::backdrop { background: rgb(11 42 91 / .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate[open] { display: grid; place-items: center; min-height: 100svh; }
.gate__card {
  position: relative; width: calc(100% - 2rem); max-width: 22rem; margin: 1rem; padding: 1.75rem 1.5rem 1.375rem;
  background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font-family: var(--font); display: flex; flex-direction: column; gap: .4rem;
  animation: gate-in .32s cubic-bezier(.2,.9,.25,1);
}
@keyframes gate-in { from { opacity: 0; transform: translateY(.75rem) scale(.98); } to { opacity: 1; transform: none; } }
.gate__close { position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.gate__close:hover { background: var(--wash); color: var(--ink); }
.gate__close svg { width: .7rem; height: .7rem; }
.gate__mark { width: 2.25rem; height: 2.25rem; border-radius: .625rem; margin-bottom: .5rem; }
.gate__title { margin: 0; font-size: 1.286rem; line-height: 1.15; letter-spacing: -.03em; }
.gate__sub { margin: 0 0 .75rem; color: var(--muted); font-size: .857rem; }
.gate__label { font-size: .786rem; font-weight: 600; }
.gate__code {
  width: 100%; min-height: 3rem; padding: .4rem .875rem; margin-bottom: .625rem; border-radius: .625rem;
  border: 1.5px solid var(--line-strong); background: var(--snow); color: var(--ink);
  font: 600 1.5rem/1 var(--font); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums;
}
.gate__code::placeholder { color: var(--faint); letter-spacing: .3em; }
.gate__code:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: transparent; }
.gate__foot { margin: .75rem 0 0; color: var(--muted); font-size: .786rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .gate__card { animation: none; } .nav { transition: none; } }

/* ============================================================
   the Training Portal — a light workspace with the origami lab as a watermark
============================================================ */
.dash { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); isolation: isolate; }
.dash::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('../assets/lab.webp') center / cover no-repeat; opacity: .11;
}
.dash::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(246 249 254 / .25), rgb(246 249 254 / .75) 60%, rgb(246 249 254 / .9)); }

/* the sidebar */
.side {
  position: sticky; top: 0; align-self: start; height: 100svh; display: flex; flex-direction: column; gap: 1rem;
  padding: 1rem .875rem; background: rgb(255 255 255 / .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
}
.side__brand { display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem; text-decoration: none; }
.side__brand .nav__mark { width: 1.75rem; height: 1.75rem; border-radius: .4375rem; }
.side__brand .nav__word { font-size: 1rem; }
.side__kicker { display: block; margin-top: .1rem; color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side nav { display: flex; flex-direction: column; gap: .0625rem; overflow-y: auto; }
.side__h { margin: .75rem .625rem .25rem; color: var(--faint); font-size: .643rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.side a, .side__toggle {
  display: flex; align-items: center; gap: .625rem; min-height: 2.286rem; padding: .35rem .625rem; border: 0; border-radius: .5rem;
  background: transparent; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .929rem; cursor: pointer; text-align: left; width: 100%;
  transition: background-color .15s ease, color .15s ease;
}
.side a:hover, .side__toggle:hover { background: var(--wash); color: var(--ink); }
.side a[aria-current="page"] { background: var(--cobalt); color: var(--white); font-weight: 600; }
.side a[aria-current="page"] svg { color: var(--white); }
.side svg { width: 1rem; height: 1rem; flex: none; color: var(--cobalt); }
.side .sub { display: flex; flex-direction: column; gap: .0625rem; margin-left: .625rem; padding-left: .5rem; border-left: 1px solid var(--line); }
.side .sub a { min-height: 2rem; font-size: .857rem; line-height: 1.25; }
.side .sub a[aria-current="page"] { background: var(--pale); color: var(--ink); }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; }
.side__foot .btn { justify-content: flex-start; }
.side__note { margin: 0; padding: 0 .625rem; color: var(--faint); font-size: .714rem; }
/* the scrim behind the slide-in sidebar on small screens (out of flow, so it never takes a grid cell) */
.scrim { position: fixed; inset: 0; z-index: 35; background: rgb(11 42 91 / .3); opacity: 0; pointer-events: none; transition: opacity .25s ease; }

/* the main column */
.main { min-width: 0; padding: 1.25rem 2rem 4rem; }
.main__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.menu { display: none; }
.crumb { margin: 0; color: var(--muted); font-size: .786rem; font-weight: 500; }
.crumb b { color: var(--ink); font-weight: 600; }
.pagehead { margin-bottom: 1.25rem; }
.pagehead h1 { margin: 0; font-size: 1.714rem; line-height: 1.1; letter-spacing: -.03em; }
.pagehead p { margin: .35rem 0 0; max-width: 40rem; color: var(--muted); font-size: .929rem; }
.stats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.stat { display: inline-flex; align-items: baseline; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .714rem; color: var(--muted); font-weight: 500; }
.stat b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- the bookcase: a white lab cabinet seen a little from above-left; one shelf per department ---- */
.case { position: relative; margin-top: 1rem; padding: 0 .9rem; background: #fff; border-radius: .5rem; overflow: hidden; box-shadow: 0 1.75rem 3rem -1.25rem rgb(11 42 91 / .4), inset 0 0 0 1px var(--line); }
.case::before, .case::after { content: ''; position: absolute; top: 0; bottom: 0; width: .9rem; z-index: 4; pointer-events: none; }
.case::before { left: 0; background: linear-gradient(90deg, #ffffff, #f3f6fa 70%, #e4e9f1); }
.case::after { right: 0; background: linear-gradient(270deg, #ffffff, #f3f6fa 70%, #e9edf3); }
.case__crown, .case__foot { display: block; margin: 0 -.9rem; }
.case__crown { height: 1rem; background: linear-gradient(#ffffff, #f1f4f9); box-shadow: inset 0 -1px 0 var(--line); }
.case__foot { height: .9rem; background: linear-gradient(#f3f6fa, #e3e9f1); }
.case__row { position: relative; height: 10.5rem; overflow: hidden; }
.case__row--empty { height: 6rem; }
.row__back { position: absolute; inset: 0; background: linear-gradient(#d3dce8, #e6ecf4 30%, #f1f4f9 70%, #f6f8fb); }
/* the shelf board: its top face recedes up and to the right, its front lip is a white edge the books sit on */
.row__top { position: absolute; left: -3rem; right: -3rem; bottom: .5rem; height: 2.6rem; transform: skewX(-40deg); transform-origin: 0 100%; background: linear-gradient(#eef2f8, #fafbfd); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(11 42 91 / .06); }
.row__lip { position: absolute; left: 0; right: 0; bottom: 0; height: .5rem; z-index: 3; background: linear-gradient(#ffffff, #edf1f6); box-shadow: 0 2px 3px rgb(11 42 91 / .2), inset 0 -1px 0 rgb(11 42 91 / .12); }
.row__label { position: absolute; right: .9rem; top: .7rem; z-index: 3; display: inline-flex; align-items: baseline; gap: .5rem; padding: .25rem .6rem; border-radius: .375rem; background: rgb(255 255 255 / .88); color: var(--ink); font-size: .643rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(11 42 91 / .08); }
.row__label i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
a.row__label:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 6px rgb(11 42 91 / .12); }
.row__books { position: absolute; left: 1rem; right: 1rem; top: .75rem; bottom: .5rem; z-index: 2; display: flex; align-items: flex-end; gap: 2.5rem; padding-right: 1.5rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.row__books::-webkit-scrollbar { display: none; }
.row__empty { align-self: center; margin: 0 0 .5rem .25rem; color: var(--faint); font-size: .786rem; font-weight: 500; }

/* a topic is a pile: the first volume at the bottom, the last on top */
.stack { position: relative; flex: none; display: flex; flex-direction: column-reverse; align-items: flex-start; padding-top: 1.4rem; margin-right: 1.1rem; }
.stack__label { position: absolute; left: 0; bottom: 100%; margin-bottom: .1rem; white-space: nowrap; color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .02em; }

/* a book lying flat: the spine faces you, the cover on top, the pages at the end. With artwork the faces carry the
   generated spine and cover; without it the same book is drawn from the paper and blue. On hover the faces slide out
   while the link's hit area (.vol__hit) stays put, so the pointer never loses the book. */
.vol { --L: 10.5rem; --T: 1.9rem; --j: 0rem; position: relative; display: block; flex: none; width: var(--L); height: var(--T); margin-left: var(--j); color: var(--ink); text-decoration: none; cursor: pointer; }
.vol__hit { position: absolute; z-index: 4; inset: -1.5rem -1.6rem -.25rem -.4rem; }
.vol:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.vol.is-out { visibility: hidden; }
.vol__spine, .vol__top, .vol__end { transition: transform .3s cubic-bezier(.2,.9,.25,1), box-shadow .3s ease; }
.vol:hover .vol__spine, .vol:focus-visible .vol__spine { transform: translate(.5rem, -.15rem); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(11 42 91 / .22), inset 0 0 0 1px rgb(11 42 91 / .09), 0 .5rem .875rem -.25rem rgb(11 42 91 / .35); }
.vol:hover .vol__top, .vol:focus-visible .vol__top { transform: translate(.5rem, -.15rem) skewX(-40deg); }
.vol:hover .vol__end, .vol:focus-visible .vol__end { transform: translate(.5rem, -.15rem) skewY(-50deg); }
.vol__spine { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: .4rem; padding: 0 .4rem 0 .35rem; overflow: hidden; background: var(--paper); border-radius: 1px 2px 2px 1px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(11 42 91 / .22), inset 0 0 0 1px rgb(11 42 91 / .09); }
.vol__band { flex: none; min-width: 1rem; height: 1rem; display: grid; place-items: center; border-radius: .25rem; background: var(--band); color: var(--paper); font-size: .6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vol__band:empty { width: .3rem; min-width: 0; height: 68%; border-radius: 1px; }
.vol__title { flex: 1; min-width: 0; font-size: .786rem; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vol__mark { flex: none; width: .65rem; height: .65rem; background: var(--band); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.vol.is-done .vol__mark { background: var(--ok); }
.vol__top { position: absolute; left: 0; bottom: 100%; z-index: 1; width: var(--L); height: 1.3rem; transform: skewX(-40deg); transform-origin: 0 100%; overflow: hidden; background: linear-gradient(90deg, rgb(255 255 255 / .4), rgb(255 255 255 / 0) 45%), var(--paper); box-shadow: inset 0 0 0 1px rgb(11 42 91 / .09), inset 0 -1px 0 rgb(11 42 91 / .06); }
.vol__top::after { content: ''; position: absolute; right: 0; top: 0; width: .6rem; height: .6rem; background: var(--band); clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .9; }
.vol__end { position: absolute; left: 100%; top: 0; z-index: 1; width: 1.1rem; height: var(--T); transform: skewY(-50deg); transform-origin: 0 0; background: repeating-linear-gradient(90deg, #f8fafd 0 1px, #e3e9f1 1px 2px); box-shadow: inset 0 0 0 1px rgb(11 42 91 / .1); }
/* the generated artwork on the faces */
.vol__img { display: none; }
.vol.has-art .vol__img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.vol.has-art .vol__spine { padding: 0; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(11 42 91 / .14), inset 0 -1px 0 rgb(11 42 91 / .3); }
.vol.has-art .vol__spine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / 0) 35%, rgb(11 42 91 / 0) 70%, rgb(11 42 91 / .14)); pointer-events: none; }
.vol.has-art .vol__band, .vol.has-art .vol__title, .vol.has-art .vol__mark { display: none; }
.vol.has-art .vol__top { background: var(--paper); }
.vol.has-art .vol__top::after { content: none; }
.vol.has-art .vol__top .vol__img { filter: brightness(1.06); }
.vol.is-done.has-art .vol__spine::before { content: ''; position: absolute; right: .35rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; z-index: 1; }

/* ---- the preview: the pulled book in the middle of the screen, with a look inside ---- */
.peek { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; max-height: none; }
.peek::backdrop { background: rgb(11 42 91 / .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.peek[open] { display: grid; place-items: center; min-height: 100svh; }
.peek__card { position: relative; display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; width: min(54rem, calc(100% - 2rem)); margin: 1rem; padding: 1.75rem; background: var(--white); border-radius: 1rem; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-family: var(--font); color: var(--ink); opacity: 0; transition: opacity .25s ease .1s; }
.peek.is-in .peek__card { opacity: 1; }
.peek__cover { width: 13rem; align-self: start; perspective: 900px; }
.peek__cover .cover-card { visibility: hidden; }
.peek.is-in .peek__cover .cover-card { visibility: visible; transform: rotateY(-8deg); box-shadow: inset 4px 0 0 rgb(0 0 0 / .07), inset 0 0 0 1px rgb(11 42 91 / .08), 1rem 1.25rem 2.5rem -0.5rem rgb(11 42 91 / .35); }
.cover-card--peek { font-size: 1rem; }
.peek__body { min-width: 0; display: flex; flex-direction: column; gap: .25rem; transform: translateY(.5rem); transition: transform .4s cubic-bezier(.2,.9,.25,1) .1s; }
.peek.is-in .peek__body { transform: none; }
.peek__kicker { margin: 0; color: var(--muted); font-size: .786rem; font-weight: 600; }
.peek__title { margin: .125rem 0 0; font-size: 1.571rem; line-height: 1.1; letter-spacing: -.03em; }
.peek__sum { margin: .5rem 0 0; font-size: .929rem; line-height: 1.5; color: rgb(11 42 91 / .85); max-width: 36rem; }
.peek__pills { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.peek__h { margin: 1.25rem 0 .375rem; font-size: .643rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.peek__inside { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.peek__inside > li { padding: .625rem .75rem; border-radius: .625rem; background: var(--snow); box-shadow: inset 0 0 0 1px var(--line); font-size: .857rem; }
.peek__inside b { display: block; font-weight: 600; }
.peek__inside span { color: var(--muted); }
.peek__inside ol { margin: .25rem 0 0; padding-left: 1.125rem; color: var(--muted); }
.peek__inside .more { list-style: none; margin-left: -1.125rem; font-style: italic; }
.peek__empty { margin: 0; padding: .625rem .75rem; border-radius: .625rem; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .857rem; }
.peek__set { margin: 0; padding-left: 1.125rem; font-size: .857rem; color: var(--muted); display: flex; flex-direction: column; gap: .15rem; }
.peek__set li[aria-current] { color: var(--cobalt); font-weight: 600; }
.peek__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.flyer { position: fixed; left: 0; top: 0; z-index: 5; transform-origin: 0 0; pointer-events: none; perspective: 900px; }
.flyer .cover-card { width: 100%; height: 100%; aspect-ratio: auto; }
@media (max-width: 767px) {
  .peek__card { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .peek__cover { width: 8rem; margin: 0 auto; }
  .cover-card--peek { font-size: .65rem; }
}

/* a section inside a page */
.block { margin-top: 1.75rem; }
.block__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; }
.block__h h2 { margin: 0; font-size: 1.143rem; letter-spacing: -.02em; }
.block__h a { color: var(--cobalt); font-size: .857rem; font-weight: 600; text-decoration: none; }
.block__h a:hover { text-decoration: underline; }

/* the "continue" card */
.resume { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: .75rem 1rem .75rem .75rem; background: rgb(255 255 255 / .9); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.resume small { display: block; color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.resume b { display: block; margin-top: .125rem; font-size: 1rem; letter-spacing: -.02em; }
.resume .by { display: block; color: var(--muted); font-size: .786rem; }
.resume .meter { display: flex; align-items: center; gap: .5rem; margin-top: .375rem; font-size: .714rem; color: var(--muted); }
.meter__bar { flex: 1; max-width: 12rem; height: .3rem; border-radius: 999px; background: var(--pale); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cobalt); }

/* book cards (a shelf's books) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem; }
.card {
  display: grid; grid-template-columns: 3.75rem 1fr; gap: .875rem; padding: .875rem; align-items: start;
  background: rgb(255 255 255 / .9); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2,.9,.25,1), box-shadow .25s ease;
}
.card:hover { transform: translateY(-.125rem); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.card:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.card small { display: block; color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card b { display: block; margin-top: .2rem; font-size: .929rem; line-height: 1.3; letter-spacing: -.015em; }
.card .by { margin: .2rem 0 0; color: var(--muted); font-size: .786rem; line-height: 1.45; }
.card .meter { display: flex; align-items: center; gap: .4rem; font-size: .714rem; color: var(--muted); font-weight: 600; }
.card .meter .done { color: var(--ok); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; }

/* the front cover, drawn in CSS: on cards, the continue card, the preview and the book page */
.cover-card {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 170 / 240; padding: 10% 11%;
  background: var(--paper); color: var(--ink); border-radius: .25rem .625rem .625rem .25rem; overflow: hidden; text-align: left;
  box-shadow: inset 4px 0 0 rgb(0 0 0 / .07), inset 0 0 0 1px rgb(11 42 91 / .08), 0 .75rem 1.5rem rgb(11 42 91 / .16);
}
.cover-card::after { content: ''; position: absolute; top: 0; right: 0; width: 20%; aspect-ratio: 1; background: linear-gradient(225deg, var(--band) 50%, rgb(0 0 0 / .08) 50%, transparent 56%); }
.cover-card__img { display: none; }
.cover-card.has-art .cover-card__img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-card.has-art > :not(.cover-card__img) { visibility: hidden; }
.cover-card.has-art::after { content: none; }
.cover-card__kicker { font-size: .55em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; margin-bottom: .5em; max-width: 78%; }
.cover-card__title { font-weight: 700; font-size: 1.1em; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.cover-card__vol { margin-top: .5em; font-size: .6em; font-weight: 600; color: var(--band); }
.cover-card__imprint { margin-top: auto; font-size: .45em; font-weight: 800; line-height: 1.1; letter-spacing: .04em; color: var(--band); }
.cover-card--page { font-size: clamp(1rem, 1.6vw, 1.357rem); }
.cover-card--page .cover-card__title { font-size: 1.2em; }
.card__cover { font-size: .45rem; width: 3.75rem; }
.resume__cover { font-size: .45rem; width: 4rem; }

/* resources: documents and videos */
.list { display: flex; flex-direction: column; gap: .4rem; }
.row {
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .875rem; align-items: center; padding: .7rem .875rem;
  background: rgb(255 255 255 / .9); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.row:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 .5rem 1.25rem rgb(11 42 91 / .08); transform: translateY(-.0625rem); }
.row__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .625rem; background: var(--pale); color: var(--cobalt); }
.row__icon svg { width: 1.125rem; height: 1.125rem; }
.row b { display: block; font-size: .929rem; letter-spacing: -.01em; }
.row span { display: block; color: var(--muted); font-size: .786rem; margin-top: .1rem; }
.tabs { display: inline-flex; gap: .2rem; padding: .2rem; margin-bottom: 1.25rem; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tabs a { padding: .4rem .875rem; border-radius: 999px; text-decoration: none; font-size: .857rem; font-weight: 600; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.empty { padding: 2rem 1.25rem; text-align: center; background: rgb(255 255 255 / .8); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: .929rem; }
.empty svg { width: 2rem; height: 2rem; color: var(--cobalt); margin-bottom: .5rem; }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .2rem; }

@media (max-width: 1023px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(17rem, 86vw); transform: translateX(-104%); transition: transform .3s cubic-bezier(.2,.9,.25,1); background: rgb(255 255 255 / .96); box-shadow: var(--shadow); }
  .dash.menu-open .side { transform: none; }
  .dash.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .menu { display: inline-flex; }
  .main { padding: 1rem 1.25rem 4rem; }
  .resume { grid-template-columns: 3.5rem 1fr; }
  .resume .btn { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .main { padding: .875rem .75rem 4rem; }
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 2.25rem 1fr; }
  .row .pill { display: none; }
  .case__row { height: 9rem; }
  .row__books { gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .side, .card, .row, .vol, .peek__card, .peek__body { transition: none; } }

/* ============================================================
   the book page
============================================================ */
.page { position: relative; z-index: 1; min-height: 100svh; background: var(--snow); }
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.25rem; background: rgb(246 249 254 / .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar .nav__brand .nav__word { font-size: 1rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 .625rem 0 .4rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .857rem; color: var(--ink); }
.back:hover { background: var(--wash); }
.back svg { width: .75rem; height: .75rem; flex: none; }
.back__s { display: none; }
.who { display: flex; align-items: center; gap: .4rem; }

.module { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem; max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.aside { position: sticky; top: 4.25rem; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.meta { display: flex; flex-direction: column; gap: .4rem; font-size: .857rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
.chipline { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { display: inline-block; padding: .2rem .5rem; border-radius: 999px; background: var(--pale); color: var(--ink); font-size: .643rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.progress { display: flex; flex-direction: column; gap: .4rem; padding: .875rem; border-radius: .75rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .857rem; }
.progress__row b { font-size: 1.143rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress__bar { height: .4rem; border-radius: 999px; background: var(--pale); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cover-mark, var(--cobalt)); transition: width .4s cubic-bezier(.2,.9,.25,1); }
.progress__done { font-size: .786rem; color: var(--ok); font-weight: 600; }
.set { padding: .875rem; border-radius: .75rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.set__h { margin: 0 0 .4rem; font-size: .643rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.set__list { margin: 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: .3rem; font-size: .857rem; }
.set__list a { text-decoration: none; font-weight: 500; }
.set__list li[aria-current] a { font-weight: 700; color: var(--cobalt); }

.content { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.kicker { margin: 0 0 .4rem; color: var(--muted); font-size: .786rem; font-weight: 600; }
.title { margin: 0; font-weight: 600; font-size: clamp(1.714rem, 3vw, 2.286rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.intro { margin: .75rem 0 0; font-size: 1rem; line-height: 1.55; max-width: 38rem; color: rgb(11 42 91 / .85); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border-radius: .75rem; background: #fff8e6; color: #6b4600; box-shadow: inset 0 0 0 1px #f1d9a3; }
.notice svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: .125rem; }
.notice b { display: block; font-size: .929rem; }
.notice span { display: block; font-size: .857rem; margin-top: .1rem; }
.section__h { margin: 0 0 .75rem; font-weight: 600; font-size: 1.286rem; line-height: 1.1; letter-spacing: -.025em; display: flex; align-items: baseline; gap: .625rem; }
.section__h small { font-size: .643rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.prose p { margin: 0 0 .625rem; max-width: 38rem; font-size: .929rem; }
.prose ul { margin: 0 0 .625rem; padding-left: 1.125rem; max-width: 38rem; font-size: .929rem; }

.sop { padding: 1rem; border-radius: .875rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.sop__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem .875rem; margin-bottom: .75rem; }
.sop__title { margin: 0; font-weight: 600; font-size: 1rem; }
.sop__count { color: var(--muted); font-size: .786rem; font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.step { position: relative; }
.step label { display: grid; grid-template-columns: 1.5rem 1fr; gap: .625rem; align-items: start; padding: .6rem .7rem; border-radius: .625rem; cursor: pointer; transition: background-color .2s ease; }
.step label:hover { background: var(--wash); }
.step input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.step .box { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: .4rem; background: var(--snow); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .15s ease, box-shadow .15s ease; }
.step .box svg { width: .875rem; height: .875rem; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .2s cubic-bezier(.2,.9,.25,1); }
.step input:checked + label .box { background: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.step input:checked + label .box svg { opacity: 1; transform: scale(1); }
.step input:focus-visible + label { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.step__t { font-weight: 500; font-size: .929rem; }
.step input:checked + label .step__t { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }
.step__n { display: block; margin-top: .1rem; color: var(--muted); font-size: .786rem; }
.sop__foot { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; justify-content: space-between; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }

.complete { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.complete .ok { color: var(--ok); font-weight: 600; font-size: .857rem; }
.nav-mod { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.nav-mod a { display: flex; flex-direction: column; gap: .2rem; padding: .875rem 1rem; border-radius: .75rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; min-width: 0; }
.nav-mod a:hover { background: var(--pale); }
.nav-mod a:last-child { text-align: right; }
.nav-mod small { color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav-mod b { font-weight: 600; font-size: .929rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 20; transform: translate(-50%, 1rem); padding: .6rem 1rem; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .857rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.25,1); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1023px) { .module { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.75rem; } }
@media (max-width: 767px) {
  .bar { padding: .5rem .75rem; }
  .bar .nav__brand { display: none; }
  .back__t { display: none; }
  .back__s { display: inline; }
  .module { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem .75rem 4rem; }
  .aside { position: static; display: grid; grid-template-columns: 6.5rem 1fr; gap: .875rem; align-items: start; }
  .aside .progress, .aside .set { grid-column: 1 / -1; }
  .content { gap: 1.5rem; }
  .nav-mod { grid-template-columns: 1fr; }
  .nav-mod a:last-child { text-align: left; }
}

/* ============================================================
   interactive pipelines
============================================================ */
/* the card that points at a pipeline, in the book preview and on the book page */
.pipecard { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .875rem; align-items: center; margin-top: .875rem; padding: .75rem .875rem; border-radius: .75rem; background: var(--navy); color: var(--white); text-decoration: none; box-shadow: 0 .75rem 1.5rem -.75rem rgb(11 42 91 / .6); transition: transform .2s ease, box-shadow .2s ease; }
.pipecard:hover { transform: translateY(-.0625rem); box-shadow: 0 1rem 1.75rem -.75rem rgb(11 42 91 / .7); }
.pipecard--page { margin-top: 0; }
.pipecard__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .625rem; background: rgb(255 255 255 / .12); color: var(--ice); }
.pipecard__icon svg { width: 1.25rem; height: 1.25rem; }
.pipecard b { display: block; font-size: .929rem; letter-spacing: -.01em; }
.pipecard > span > span { display: block; margin-top: .1rem; color: rgb(255 255 255 / .72); font-size: .786rem; line-height: 1.4; }
.pipecard__go { width: .8rem; height: .8rem; color: var(--ice); }
/* the dashboard's pipeline list */
.pipe-cards { display: flex; flex-direction: column; gap: .75rem; }
.pipe-card { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.125rem; background: rgb(255 255 255 / .9); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2,.9,.25,1), box-shadow .25s ease; }
.pipe-card:hover { transform: translateY(-.125rem); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.pipe-card .pipecard__icon { background: var(--navy); color: var(--ice); }
.pipe-card small { display: block; color: var(--muted); font-size: .643rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pipe-card b { display: block; margin-top: .2rem; font-size: 1.071rem; letter-spacing: -.02em; }
.pipe-card .by { display: block; margin: .25rem 0 0; color: var(--muted); font-size: .857rem; max-width: 46rem; }
.pipe-card__runs { display: block; margin-top: .5rem; color: var(--cobalt); font-size: .786rem; font-weight: 600; }
@media (max-width: 767px) { .pipe-card { grid-template-columns: 2.5rem 1fr; } .pipe-card .btn { grid-column: 2; justify-self: start; } }

/* the pipeline page */
.pipe { max-width: 74rem; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.pipe__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pipe__head .intro { max-width: 44rem; }
.pipe__book { display: inline-flex; align-items: center; gap: .625rem; padding: .5rem .875rem; border-radius: .75rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-size: .857rem; }
.pipe__book-k { color: var(--muted); font-size: .714rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pipe__book svg { width: .7rem; height: .7rem; }
.runs { padding: 1rem 1.125rem; border-radius: var(--radius); background: rgb(255 255 255 / .9); box-shadow: inset 0 0 0 1px var(--line); }
.runs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.runs__head h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.runs__list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.runs__list:empty { display: none; }
.runchip { position: relative; display: flex; flex-direction: column; gap: .125rem; min-width: 11rem; max-width: 16rem; padding: .55rem .75rem .7rem; border: 0; border-radius: .625rem; background: var(--snow); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; }
.runchip b { font-size: .857rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runchip span { color: var(--muted); font-size: .714rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runchip__bar { position: absolute; left: 0; right: 0; bottom: 0; height: .25rem; background: var(--pale); }
.runchip__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cobalt); }
.runchip.is-on { background: var(--white); box-shadow: inset 0 0 0 2px var(--cobalt); }
.runchip.is-live .runchip__bar i { background: var(--ok); }
.runs__new { display: flex; gap: .5rem; flex-wrap: wrap; }
.runs__new input, .rename input, .report textarea { flex: 1; min-width: 12rem; min-height: 2.357rem; padding: .4rem .75rem; border-radius: .625rem; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: .929rem; }
.runs__new input:focus, .rename input:focus, .report textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: transparent; }

.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 1.125rem; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: 0 1rem 2rem -1rem rgb(11 42 91 / .7); }
.band__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .857rem; }
.band__row b { font-size: 1rem; letter-spacing: -.01em; }
.band__row span { color: rgb(255 255 255 / .7); }
.ramp { position: relative; height: .5rem; margin: .625rem 0 .5rem; border-radius: 999px; background: rgb(255 255 255 / .15); overflow: hidden; }
.ramp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--sky), var(--ice)); border-radius: inherit; transition: width .5s cubic-bezier(.2,.9,.25,1); }
.ramp s { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgb(11 42 91 / .55); }
.band__next { margin: 0; color: rgb(255 255 255 / .78); font-size: .857rem; }
.band__side { display: flex; align-items: center; gap: 1.25rem; }
.pts { text-align: right; }
.pts b { display: block; font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pts span { color: rgb(255 255 255 / .65); font-size: .643rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stamps { display: flex; flex-wrap: wrap; gap: .4rem; max-width: 22rem; justify-content: flex-end; }
.stamp { padding: .2rem .5rem; border: 1.5px dashed rgb(255 255 255 / .3); border-radius: .25rem; color: rgb(255 255 255 / .4); font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.stamp.is-on { border-style: solid; border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 45%, transparent); transform: rotate(-3deg); }
@media (max-width: 767px) { .band { grid-template-columns: 1fr; } .band__side { justify-content: space-between; } .stamps { justify-content: flex-start; } }

.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .625rem; }
.lane { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border-radius: var(--radius-s); background: rgb(255 255 255 / .9); box-shadow: inset 0 0 0 1px var(--line); border-top: 3px solid var(--c); }
.lane__head { display: grid; grid-template-columns: 1.5rem 1fr; gap: .4rem; align-items: start; }
.lane__head b { display: block; font-size: .857rem; line-height: 1.2; letter-spacing: -.01em; }
.lane__head span { display: block; margin-top: .15rem; color: var(--muted); font-size: .714rem; line-height: 1.35; }
.lane__n { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: .4rem; background: var(--c); color: #fff; font-size: .714rem; font-weight: 700; }
.lane__stamp { grid-column: 1 / -1; justify-self: start; padding: .15rem .45rem; border: 1.5px solid var(--c); border-radius: .25rem; color: var(--c); font-size: .6rem; font-weight: 800; letter-spacing: .1em; transform: rotate(-3deg); }
.lane__sq { display: flex; flex-direction: column; gap: .35rem; }
.sq { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; align-items: center; min-height: 2.5rem; padding: .35rem .45rem; border: 0; border-radius: .5rem; background: var(--snow); color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.sq:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 .375rem .75rem -.375rem rgb(11 42 91 / .3); }
.sq__id { font-size: .714rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c); }
.sq__t { font-size: .714rem; font-weight: 600; line-height: 1.2; }
.sq.is-done { background: #e4f5ee; box-shadow: inset 0 0 0 1px rgb(15 123 95 / .25); }
.sq.is-done .sq__id { color: var(--ok); }
.sq.is-done .sq__t { color: rgb(11 42 91 / .7); text-decoration: line-through; text-decoration-color: rgb(15 123 95 / .5); }
.sq.is-current { background: var(--cobalt); color: #fff; box-shadow: 0 .5rem 1rem -.5rem rgb(29 78 216 / .8); }
.sq.is-current .sq__id { color: var(--ice); }
.sq.is-locked { opacity: .62; }
.sq.is-view { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 1023px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .board { grid-template-columns: 1fr; } .lane__sq { flex-direction: row; flex-wrap: wrap; } .sq { flex: 1 1 10rem; } }

.pipe__grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1rem; align-items: start; }
.ticket { padding: 1.125rem 1.25rem 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); display: flex; flex-direction: column; gap: .875rem; }
.ticket__head { display: grid; grid-template-columns: auto 1fr auto; gap: .875rem; align-items: center; }
.ticket__id { min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem; display: grid; place-items: center; border-radius: .625rem; background: var(--c); color: #fff; font-size: .929rem; font-weight: 800; }
.ticket__ph { margin: 0; color: var(--muted); font-size: .714rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ticket__t { margin: .1rem 0 0; font-size: 1.286rem; line-height: 1.15; letter-spacing: -.025em; }
.ticket__text { margin: 0; font-size: .929rem; line-height: 1.55; color: rgb(11 42 91 / .85); max-width: 46rem; }
.ticket__issue { margin: 0; padding: .625rem .75rem; border-radius: .625rem; background: #fff3d6; color: #7a5200; font-size: .857rem; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.ticket__k { display: block; margin-bottom: .3rem; color: var(--faint); font-size: .643rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { padding: .2rem .55rem; border-radius: 999px; background: var(--pale); color: var(--ink); font-size: .714rem; font-weight: 600; }
.chip--sys { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ticket__checks .steps { gap: .2rem; }
.ticket__checks .step label { padding: .45rem .55rem; }
.ticket__checks .step input:disabled + label { cursor: default; }
.ticket__checks .step input:disabled + label:hover { background: transparent; }
.ticket__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.ticket__actions:empty { display: none; }
.rename, .report { flex-basis: 100%; display: flex; flex-direction: column; gap: .35rem; }
.rename > div { display: flex; gap: .5rem; }
.rename label, .report label { font-size: .786rem; font-weight: 600; }
.report textarea { resize: vertical; }
.feed { padding: 1rem 1.125rem; border-radius: var(--radius); background: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px var(--line); }
.feed__h { margin: 0 0 .625rem; font-size: .643rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.feed__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .786rem; }
.feed__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .35rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.feed__list li:last-child { border-bottom: 0; }
.feed__k { color: var(--muted); }
.feed__list b { font-weight: 700; }
.feed__list i { color: var(--muted); font-style: normal; }
.feed__list time { flex-basis: 100%; color: var(--faint); font-size: .643rem; }
@media (max-width: 1023px) { .pipe__grid { grid-template-columns: 1fr; } }
