/* Design tokens: "Masadaki dosyalar" (G). Values follow TASARIM-ENVANTERI.md; the only changes are
   the contrast corrections listed in DESIGN.md (G1): ink3, gutter and the terminal underline. */

@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-ext-800-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Rethink Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/rethink-sans-latin-800-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-code-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-code-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-code-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-code-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --desk: #e4eaee;
  --paper: #ffffff;
  --note: #fffdf4;
  --edge: #e6e9ec;
  --ink: #161b20;
  --ink2: #47505a;
  --ink3: #616a74;
  --gutter: #8a949d;
  --line: #c9d1d7;
  --grain: 0.09;
  --hl: #ffe070;
  --hl-ink: #161b20;
  --sheet-shadow:
    0 1px 1px rgba(22, 27, 32, 0.06), 0 8px 18px -8px rgba(22, 27, 32, 0.14),
    0 36px 70px -34px rgba(22, 27, 32, 0.34);
  --result-sheet-shadow:
    0 1px 1px rgba(22, 27, 32, 0.06), 0 10px 20px -10px rgba(22, 27, 32, 0.16),
    0 40px 80px -40px rgba(22, 27, 32, 0.36);
  --card-shadow: 0 1px 1px rgba(22, 27, 32, 0.05), 0 6px 14px -8px rgba(22, 27, 32, 0.18);
  --lift-shadow:
    0 2px 2px rgba(22, 27, 32, 0.06), 0 16px 30px -10px rgba(22, 27, 32, 0.2),
    0 60px 100px -40px rgba(22, 27, 32, 0.45);
  --result-lift-shadow: 0 2px 2px rgba(22, 27, 32, 0.06), 0 14px 28px -12px rgba(22, 27, 32, 0.3);
  --tag-shadow: 0 1px 1px rgba(22, 27, 32, 0.08), 0 10px 22px -8px rgba(22, 27, 32, 0.28);
  --result-tag-shadow: 0 1px 1px rgba(22, 27, 32, 0.08), 0 16px 30px -10px rgba(22, 27, 32, 0.3);
  --chip-shadow: 0 1px 1px rgba(22, 27, 32, 0.06), 0 6px 16px -8px rgba(22, 27, 32, 0.22);
  --btn-shadow: 0 10px 22px -10px rgba(22, 27, 32, 0.6);
  --receipt-shadow: drop-shadow(0 24px 30px rgba(22, 27, 32, 0.18));
  --sev-critical-hl: #ffb09f;
  --sev-critical-text: #b5300f;
  --sev-high-hl: #ffe070;
  --sev-high-text: #835800;
  --sev-medium-hl: #c3d6ff;
  --sev-medium-text: #2e54bf;
  --sev-low-hl: #e3e3dc;
  --sev-low-text: #555b60;
  --sev-info-hl: #e3e3dc;
  --sev-info-text: #555b60;
  --t-bg: #ffffff;
  --t-line: #c9d1d7;
  --t-text: #2c333a;
  --t-bright: #161b20;
  --t-dim: #616a74;
  --t-prompt: #2f7a4e;
  --t-hole: #e4eaee;
  --t-hole-shadow: inset 0 1px 2px rgba(22, 27, 32, 0.22);
  --t-btn: #e4eaee;
  --t-btn-dark: #161b20;
  --t-btn-ink: #ffffff;
  --t-badge: #ffb09f;
  --t-zero: #e3e3dc;
  --t-badge-ink: #161b20;
  --t-sel: #f3f6f8;
  --t-under: #8a949d;
  --t-shadow: var(--result-sheet-shadow);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --desk: #13181c;
  --paper: #1e252b;
  --note: #252d34;
  --edge: #2b343b;
  --ink: #eceff1;
  --ink2: #aeb7bf;
  --ink3: #8a949d;
  --gutter: #697782;
  --line: #36414a;
  --grain: 0.07;
  --hl: #f2d35a;
  --sheet-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --result-sheet-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  --card-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  --lift-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95);
  --result-lift-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9);
  --tag-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.8);
  --result-tag-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.9);
  --chip-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
  --btn-shadow: none;
  --receipt-shadow: drop-shadow(0 24px 30px rgba(22, 27, 32, 0.18));
  --sev-critical-hl: #ff9f8b;
  --sev-critical-text: #ff9f8b;
  --sev-high-hl: #f2d35a;
  --sev-high-text: #f2d35a;
  --sev-medium-hl: #a9c3ff;
  --sev-medium-text: #a9c3ff;
  --sev-low-hl: #c9c9c1;
  --sev-low-text: #c9c9c1;
  --sev-info-hl: #c9c9c1;
  --sev-info-text: #c9c9c1;
  --t-bg: #1e252b;
  --t-line: #36414a;
  --t-text: #c9d1d8;
  --t-bright: #eceff1;
  --t-dim: #8a949d;
  --t-prompt: #8fd0a8;
  --t-hole: #13181c;
  --t-hole-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  --t-btn: #13181c;
  --t-btn-dark: #eceff1;
  --t-btn-ink: #13181c;
  --t-badge: #ff9f8b;
  --t-zero: #c9c9c1;
  --t-sel: #252d34;
  --t-under: #697782;
}

/* Components of "Masadaki dosyalar" (G). No inline styles anywhere: the scan page forbids them (CSP).
   Hit areas are completed to 44 px with ::after so the drawn sizes stay as designed (DESIGN.md). */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--desk);
}
a,
button,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  font-family: 'Rethink Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--desk);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--grain);
}
.rel {
  position: relative;
}
.mono {
  font-family: 'Fira Code', ui-monospace, monospace;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus-visible {
  top: 12px;
}

:is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.hit {
  position: relative;
}
.hit::after {
  content: '';
  position: absolute;
  inset: -10px -4px;
}
.hit-s {
  position: relative;
}
.hit-s::after {
  content: '';
  position: absolute;
  inset: -5px;
}
.hit-m {
  position: relative;
}
.hit-m::after {
  content: '';
  position: absolute;
  inset: -1px;
}

/* top bar */
.top {
  position: relative;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 32px;
}
.top__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.top__id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 30px;
  font-size: 15.5px;
  font-weight: 600;
}
.nav a {
  color: var(--ink2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--chip-shadow);
}
.pill a {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--ink3);
  text-decoration: none;
  font-size: 13px;
}
.pill a[aria-current='true'] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.pill .hit::after {
  inset: -8px -2px;
}
.theme {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme.hit-s::after {
  inset: -7px;
}
.theme--sq {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--chip-shadow);
}
.theme--sq.hit-s::after {
  inset: -1px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
}
.btn--ghost {
  padding: 0 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--chip-shadow);
}
.btn--soft {
  padding: 0 26px;
  color: var(--ink);
  background: var(--desk);
  box-shadow: none;
}
.btn--lg {
  min-height: 58px;
  padding: 0 30px;
}
.btn--lg.btn--ghost {
  padding: 0 26px;
}
.btn--sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14.5px;
  border-radius: 12px;
}
.btn--sm.btn--ghost {
  padding: 0 16px;
}
.btn--sm.btn--solid {
  padding: 0 18px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* headings */
.h-hl {
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 0.1em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.h-hl--tight {
  padding: 0 0.08em;
}
.h1 {
  margin: 0;
  font-size: 80px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.h2--s {
  font-size: 48px;
}
.h-close {
  margin: 0;
  font-size: 92px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.055em;
  max-width: 10ch;
}
.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 44ch;
  text-wrap: pretty;
}
.lead--18 {
  font-size: 18px;
}
.small-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink3);
}
.small-note--15 {
  font-size: 15.5px;
}

.wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.wrap--col {
  display: flex;
  flex-direction: column;
}

/* hero */
.hero {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 48px;
}
.hero__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__stage {
  flex: 1 1 600px;
  min-width: 0;
  position: relative;
  height: 600px;
}

/* a sheet of paper that shows code */
.paper {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--sheet-shadow);
}
button.paper {
  cursor: pointer;
}
.paper__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--edge);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink3);
}
.paper__code {
  display: block;
  padding: 10px 0 16px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 26px;
}
.ln {
  display: flex;
}
.ln__n {
  flex: 0 0 40px;
  text-align: right;
  padding-right: 14px;
  color: var(--gutter);
}
.ln__t {
  white-space: pre;
  overflow: hidden;
}
.ln--hit .ln__n {
  color: var(--ink);
}
.ln--caret .ln__t {
  color: var(--ink);
  font-weight: 600;
}
.mark {
  border-radius: 3px;
  padding: 2px 3px;
  color: var(--hl-ink);
}
.sev-critical .mark,
.mark.sev-critical {
  background: var(--sev-critical-hl);
}
.sev-high .mark,
.mark.sev-high {
  background: var(--sev-high-hl);
}
.sev-medium .mark,
.mark.sev-medium {
  background: var(--sev-medium-hl);
}
.sev-low .mark,
.mark.sev-low {
  background: var(--sev-low-hl);
}
.sev-info .mark,
.mark.sev-info {
  background: var(--sev-info-hl);
}

.hp {
  position: absolute;
  max-width: 82%;
}
.hp--1 {
  left: 0;
  top: 70px;
  width: 430px;
  transform: rotate(-4deg);
  z-index: 1;
}
.hp--2 {
  left: 230px;
  top: 0;
  width: 400px;
  transform: rotate(3deg);
  z-index: 2;
}
.hp--3 {
  left: 80px;
  top: 230px;
  width: 470px;
  transform: rotate(-1deg);
  z-index: 3;
}
.hp.is-front {
  transform: rotate(0deg);
  z-index: 5;
}
.hp.is-front .paper {
  box-shadow: var(--lift-shadow);
}
.hp__tag {
  position: absolute;
  right: -86px;
  width: 190px;
  padding: 10px 12px 11px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--tag-shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.35;
}
.hp--1 .hp__tag {
  transform: rotate(3deg);
}
.hp--2 .hp__tag {
  transform: rotate(-2deg);
}
.hp--3 .hp__tag {
  transform: rotate(2deg);
}

.sev-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 12.5px;
}
.sev-label i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.sev-critical .sev-label,
.sev-label.sev-critical {
  color: var(--sev-critical-text);
}
.sev-high .sev-label,
.sev-label.sev-high {
  color: var(--sev-high-text);
}
.sev-medium .sev-label,
.sev-label.sev-medium {
  color: var(--sev-medium-text);
}
.sev-low .sev-label,
.sev-label.sev-low {
  color: var(--sev-low-text);
}
.sev-info .sev-label,
.sev-label.sev-info {
  color: var(--sev-info-text);
}
.sev-critical .sev-label i,
.sev-label.sev-critical i {
  background: var(--sev-critical-hl);
}
.sev-high .sev-label i,
.sev-label.sev-high i {
  background: var(--sev-high-hl);
}
.sev-medium .sev-label i,
.sev-label.sev-medium i {
  background: var(--sev-medium-hl);
}
.sev-low .sev-label i,
.sev-label.sev-low i {
  background: var(--sev-low-hl);
}
.sev-info .sev-label i,
.sev-label.sev-info i {
  background: var(--sev-info-hl);
}
.hp__tag .sev-label {
  font-size: 12px;
}
.hp__tag strong {
  font-weight: 600;
}

/* sample section */
.sec {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sec--far {
  padding-top: 152px;
}
.sec__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 64px;
}
.sec__head .h2 {
  max-width: 14ch;
}
.sec__head p {
  margin: 0;
  font-size: 18px;
  color: var(--ink2);
  max-width: 42ch;
}
.sample-card {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  border-radius: 6px;
}
.card-paper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--lift-shadow);
  position: relative;
}
.card-paper__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--edge);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink3);
}
.card-paper__head span:first-child {
  overflow-wrap: anywhere;
}
.card-paper__code {
  display: block;
  padding: 12px 0 14px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 25px;
  overflow: hidden;
}
.card-paper__code .ln__n {
  flex-basis: 42px;
}
.card-paper__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px dashed var(--edge);
}
.card-paper__title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-paper__more {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink2);
}
.card-paper__more strong {
  color: var(--ink);
}
.orig {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink3);
}
.orig b {
  font-weight: 600;
  color: var(--ink2);
}
.sample-foot {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink3);
}
.sample-foot a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
.sample-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 48px;
}

/* receipt */
.receipt-wrap {
  width: 100%;
  max-width: 380px;
  transform: rotate(1.5deg);
  filter: var(--receipt-shadow);
}
.receipt {
  background: var(--paper);
  padding: 32px 30px 26px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
  border-radius: 4px 4px 0 0;
}
.receipt__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.receipt__title {
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.receipt__sub {
  color: var(--ink3);
}
.receipt__rows {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed var(--line);
}
.row-dots {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.row-dots > i {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.row-dots > span:last-child {
  text-align: right;
}
.row-dots--b > span:last-child {
  font-weight: 700;
}
.receipt__out {
  padding: 14px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.receipt__out > i {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.receipt__out b {
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.receipt__foot {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ink3);
  font-size: 12px;
}
.receipt__note {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.receipt__note b {
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
}
.receipt__note span {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink2);
  overflow-wrap: anywhere;
}
.receipt__zig {
  display: block;
  width: 100%;
  height: 14px;
  fill: var(--paper);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 96px;
}
.split__text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.split__text .h2 {
  max-width: 13ch;
}
.split__text p {
  margin: 0;
}
.split__side {
  flex: 0 1 400px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* limits */
.limits {
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--sheet-shadow);
  padding: 56px 56px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
}
.limits__intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.limits__intro p {
  margin: 0;
  font-size: 17px;
  color: var(--ink2);
  max-width: 32ch;
}
.limits ul {
  flex: 999 1 560px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.limits li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 28px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.limits li b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.limits li span {
  font-size: 15.5px;
  color: var(--ink2);
}

.closing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
}
.closing .btn-row {
  padding-bottom: 12px;
}

.foot {
  position: relative;
  max-width: 1344px;
  margin: 0 auto;
  padding: 96px 32px 48px;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink3);
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.foot__links a {
  color: var(--ink2);
  text-decoration: none;
}

/* text pages */
.doc {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.doc__sheet {
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--sheet-shadow);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  transform: rotate(-0.3deg);
}
.doc__sheet h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc__sheet p,
.doc__sheet li {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 62ch;
}
.doc__sheet ul,
.doc__sheet ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc__sheet strong {
  color: var(--ink);
}
.doc__sheet a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
.doc__sheet code,
.code-inline {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--desk);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.placeholder {
  background: var(--note);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--ink2);
}
.note-card {
  max-width: 62ch;
  padding: 14px 20px 16px;
  border-radius: 12px;
  background: var(--note);
  box-shadow: var(--tag-shadow);
  transform: rotate(-0.4deg);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink2);
}
.note-card strong {
  color: var(--ink);
}
.note-card--s {
  max-width: 44ch;
  font-size: 15px;
  padding: 14px 18px 16px;
  transform: rotate(-0.6deg);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.rules-table caption {
  text-align: left;
  padding-bottom: 10px;
  color: var(--ink3);
}
.rules-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink3);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.rules-table td {
  padding: 9px 10px;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
  color: var(--ink2);
}
.rules-table td:first-child {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.rules-scroll {
  overflow-x: auto;
}

/* 404: the paper that fell off the desk */
.fallen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 96px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.fallen__paper {
  flex: 0 1 380px;
  transform: rotate(-9deg) translateY(24px);
}

/* drop page */
.drop-main {
  position: relative;
  max-width: 1344px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.drop-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 64px;
}
.drop-head .h2 {
  max-width: 16ch;
}
.drop-head p {
  margin: 0;
  font-size: 18px;
  color: var(--ink2);
  max-width: 42ch;
}
.dropsheet {
  position: relative;
  z-index: 2;
  min-height: 400px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--sheet-shadow);
  transform: rotate(-0.3deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 56px;
  border: 2px dashed var(--line);
}
.dropsheet__title {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.dropsheet__text {
  font-size: 17px;
  color: var(--ink2);
  max-width: 52ch;
}
.dropsheet__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dropsheet__out {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink3);
}
.dragframe {
  position: absolute;
  inset: 14px;
  border: 3px dashed var(--ink);
  border-radius: 10px;
  pointer-events: none;
  z-index: 5;
}
.dragframe[hidden] {
  display: none;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* scan view */
.scan-hero {
  max-width: 1344px;
  margin: 0 auto;
  padding: 56px 32px 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 96px;
}
.scan-hero__text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 24px;
}
.scan-hero__text .h2 {
  max-width: 12ch;
}
.scan-hero__text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 44ch;
}
.scan-hero__side {
  flex: 0 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.recent {
  width: 100%;
  max-width: 380px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink3);
}
.recent b {
  display: block;
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink2);
  padding-bottom: 4px;
}
.recent div {
  overflow-wrap: anywhere;
}

/* result app */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 760px;
  font-size: 15.5px;
  line-height: 1.5;
}
.app-top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 28px;
}
.app-top__l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.app-top__l h1,
.app-top__name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.app-top__l span {
  font-size: 14px;
  color: var(--ink3);
}
.app-top__r {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.app-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 8px 28px 24px;
}
.res-list {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 360px;
  height: 100%;
  overflow: auto;
  padding: 6px 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 15px;
  font: inherit;
  text-align: left;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--card-shadow);
  width: 100%;
}
.res-card[aria-current='true'] {
  box-shadow: var(--result-lift-shadow);
  transform: translateX(10px);
}
.res-card .sev-label {
  font-size: 12px;
}
.res-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.res-card__loc {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink3);
  overflow-wrap: anywhere;
}
.res-view {
  flex: 999 1 640px;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 6px 110px 24px 6px;
}
.sheet {
  position: relative;
  max-width: 860px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--result-sheet-shadow);
  transform: rotate(-0.4deg);
}
.sheet__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--edge);
}
.sheet__crumb {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.sheet__crumb span {
  color: var(--ink3);
}
.sheet__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet__nav .pos {
  font-size: 13.5px;
  color: var(--ink3);
  padding-right: 4px;
}
.btn-xs {
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--desk);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn-xs--dark {
  color: var(--paper);
  background: var(--ink);
}
.sheet__code {
  position: relative;
  padding: 16px 0 28px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 14px;
  line-height: 30px;
}
.sheet__scroll {
  overflow-x: auto;
}
.sheet__scroll:focus-visible {
  outline-offset: -2px;
}
.sheet__code .ln {
  min-width: max-content;
}
.sheet__code .ln__n {
  flex: 0 0 60px;
  padding-right: 22px;
  position: sticky;
  left: 0;
  background: var(--paper);
}
.sheet__code .ln__t {
  padding-right: 24px;
  overflow: visible;
}
.sheet__code .ln--hit .ln__n {
  font-weight: 600;
}
.sheet__code .mark {
  padding: 3px 4px;
}
.margin-note {
  position: absolute;
  right: -100px;
  width: 300px;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: var(--note);
  box-shadow: var(--result-tag-shadow);
  transform: rotate(1.6deg);
  font-family: 'Rethink Sans', system-ui, sans-serif;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.margin-note__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.margin-note p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink2);
}
.margin-note__do {
  font-size: 14.5px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.margin-note__do strong {
  color: var(--ink);
}
.margin-note__rule {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink3);
  overflow-wrap: anywhere;
}
.engine-text {
  font-size: 13.5px;
  color: var(--ink3);
}
.engine-text b {
  color: var(--ink2);
  font-weight: 600;
}
.sheet__context {
  padding: 0 26px 22px;
}

/* terminal paper */
.term {
  position: relative;
  flex: 0 0 auto;
  margin: 0 28px 22px;
  padding: 0 34px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--t-bg);
  color: var(--t-text);
  box-shadow: var(--t-shadow);
  transform: rotate(0.2deg);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.75;
}
.term--page {
  max-width: 1344px;
  margin: 0 auto 40px;
  width: calc(100% - 56px);
}
.term__holes {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 12px;
  overflow: hidden;
}
.term__holes--l {
  left: 0;
  border-right: 1.5px dashed var(--t-line);
}
.term__holes--r {
  right: 0;
  border-left: 1.5px dashed var(--t-line);
}
.term__holes i {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--t-hole);
  box-shadow: var(--t-hole-shadow);
}
.term__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 6px 10px 18px;
  border-bottom: 1.5px dashed var(--t-line);
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 13.5px;
}
.term__bar-l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.term__title {
  font-weight: 800;
  font-size: 15px;
  color: var(--t-bright);
}
.term__dim {
  color: var(--t-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.term__dim b {
  color: var(--t-bright);
  font-weight: 800;
}
.term__badge {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--t-badge);
  color: var(--t-badge-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.term__btns {
  display: flex;
  gap: 6px;
}
.term__btn {
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--t-bright);
  background: var(--t-btn);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.term__btn--dark {
  color: var(--t-btn-ink);
  background: var(--t-btn-dark);
}
.term__body {
  max-height: 300px;
  overflow: auto;
  padding: 12px 0 16px;
}
.term__body[hidden] {
  display: none;
}
.term__pre {
  margin: 0;
  padding: 0 18px;
  font: inherit;
  white-space: pre;
}
.term__prompt {
  color: var(--t-prompt);
}
.term__cmd {
  color: var(--t-bright);
  font-weight: 500;
}
.term__sel {
  background: var(--t-sel);
  border-radius: 4px;
}
.term__line {
  display: block;
  width: 100%;
  padding: 0 18px;
  font: inherit;
  line-height: 1.75;
  text-align: left;
  white-space: pre;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.term__line[aria-current='true'] {
  background: var(--t-sel);
}
.term__file {
  text-decoration: underline;
  text-decoration-color: var(--t-under);
  text-underline-offset: 3px;
  color: var(--t-bright);
  font-weight: 500;
}

/* states */
.states-live {
  margin: 0;
}
.progress-live {
  display: block;
}

@media (max-width: 1100px) {
  .hero__stage {
    height: 560px;
  }
  .hp {
    transform-origin: 50% 50%;
  }
}

@media (max-width: 1023px) {
  .h1 {
    font-size: 64px;
  }
  .h2 {
    font-size: 46px;
  }
  .h-close {
    font-size: 72px;
  }
  .app {
    height: auto;
    min-height: 0;
  }
  .app-main {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .res-list {
    max-width: none;
    height: auto;
    max-height: 320px;
    flex: 0 0 auto;
  }
  .res-view {
    height: auto;
    flex: 0 0 auto;
    padding: 6px 6px 24px;
    overflow: visible;
  }
  .margin-note {
    position: static;
    width: auto;
    margin: 0 26px 22px;
    transform: rotate(0.6deg);
  }
  .sheet__code {
    padding-bottom: 20px;
  }
  .limits {
    padding: 40px 32px 28px;
  }
  .doc__sheet {
    padding: 36px 32px;
  }
}

@media (max-width: 760px) {
  .top,
  .wrap,
  .scan-hero,
  .foot,
  .drop-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav {
    gap: 2px 18px;
    font-size: 15px;
  }
  .h1 {
    font-size: 44px;
    letter-spacing: -0.045em;
  }
  .h2 {
    font-size: 34px;
  }
  .h2--s {
    font-size: 32px;
  }
  .h-close {
    font-size: 48px;
    max-width: none;
  }
  .lead {
    font-size: 17px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 56px;
    gap: 40px;
  }
  .hero__stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hp {
    position: static;
    width: auto;
    max-width: none;
    transform: rotate(-0.8deg);
  }
  .hp--2 {
    transform: rotate(0.6deg);
  }
  .hp--3 {
    transform: rotate(-0.4deg);
  }
  .hp.is-front {
    transform: rotate(0);
  }
  .hp__tag {
    position: static;
    width: auto;
    transform: none;
    margin: 10px 0 0;
    box-shadow: var(--tag-shadow);
  }
  .sec {
    gap: 28px;
    padding-top: 32px;
  }
  .sec--far {
    padding-top: 88px;
  }
  .split {
    gap: 40px;
  }
  .limits {
    padding: 28px 20px 12px;
    gap: 20px;
  }
  .limits li b {
    font-size: 17px;
  }
  .closing {
    gap: 24px;
  }
  .btn {
    min-height: 54px;
    width: 100%;
  }
  .btn-row {
    width: 100%;
  }
  .btn--sm {
    width: auto;
  }
  .foot {
    padding-top: 72px;
  }
  .doc__sheet {
    padding: 28px 20px;
    transform: none;
  }
  .dropsheet {
    padding: 28px 20px;
    min-height: 0;
  }
  .dropsheet__title {
    font-size: 34px;
  }
  .scan-hero {
    padding-top: 32px;
    padding-bottom: 64px;
    gap: 40px;
  }
  .scan-hero__text {
    padding-top: 0;
  }
  .app-top {
    padding: 12px 16px;
  }
  .app-main {
    padding: 4px 16px 20px;
    gap: 20px;
  }
  .term {
    margin: 0 16px 18px;
    padding: 0 22px;
  }
  .term--page {
    width: calc(100% - 32px);
  }
  .term__holes {
    width: 18px;
  }
  .term__holes i {
    width: 8px;
    height: 8px;
  }
  .term__body {
    max-height: 260px;
  }
  .receipt {
    padding: 26px 22px 22px;
    font-size: 13px;
  }
  .fallen__paper {
    transform: rotate(-5deg);
    flex-basis: 100%;
  }
  .sheet__bar {
    padding: 14px 16px;
  }
  .sheet__code {
    font-size: 13px;
    line-height: 28px;
  }
  .sheet__code .ln__n {
    flex-basis: 44px;
    padding-right: 14px;
  }
  .margin-note {
    margin: 0 14px 18px;
  }
  .btn-xs {
    min-height: 44px;
    padding: 0 16px;
  }
  .btn--sm {
    min-height: 44px;
  }
  .theme--sq {
    width: 44px;
    height: 44px;
  }
  .term__btn {
    min-height: 44px;
  }
  .hit-s::after {
    inset: -5px;
  }
}

@media print {
  .grain,
  .top,
  .foot,
  .term,
  .res-list,
  .sheet__nav,
  .app-top__r {
    display: none;
  }
  .page,
  .app {
    height: auto;
    overflow: visible;
    background: #fff;
  }
  .res-view {
    overflow: visible;
    padding: 0;
  }
  .sheet,
  .margin-note {
    transform: none;
    box-shadow: none;
  }
  .margin-note {
    position: static;
    width: auto;
    margin: 12px;
  }
}

.brand-icon {
  display: flex;
}
.receipt__head--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  text-align: left;
  gap: 4px 16px;
}
.receipt__rows--gap {
  gap: 10px;
}
.partial-row {
  display: flex;
  flex-direction: column;
}
.partial-why {
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink3);
  overflow-wrap: anywhere;
}
.receipt-wrap--partial {
  max-width: 600px;
  transform: rotate(-0.4deg);
}
.app-receipt {
  position: relative;
  margin: 4px 28px 8px;
}
.app-receipt:empty {
  display: none;
}
.app-receipt .receipt-wrap {
  margin: 0;
}
.receipt__note button {
  align-self: flex-start;
}
.receipt .partial-more {
  margin-top: 8px;
}
.receipt button[aria-expanded] {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-top: 10px;
}
.res-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-group__sum {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.res-group__sum::-webkit-details-marker {
  display: none;
}
.res-list--big .res-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
}
.term__badge--zero {
  background: var(--t-zero);
}
.term__block-text {
  display: block;
}
.zero-lead {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

[tabindex='-1']:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}
.app--flow {
  height: auto;
  min-height: 0;
}
.app--flow .app-main {
  flex: 0 0 auto;
}
.app--flow .res-list {
  height: auto;
  max-height: 76vh;
}
.app--flow .res-view {
  height: auto;
  overflow: visible;
}

.small-note a,
.sample-foot a,
.doc__sheet a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.term__pre--gap {
  margin-top: 8px;
}
.term__fail {
  color: var(--sev-critical-text);
  font-weight: 600;
}
.receipt__title {
  margin: 0;
}

.app-back {
  display: none;
  align-self: flex-start;
}
@media (max-width: 760px) {
  .app[data-view='list'] .res-view,
  .app[data-view='list'] .app-back {
    display: none;
  }
  .app[data-view='detail'] .res-list,
  .app[data-view='detail'] .term {
    display: none;
  }
  .app[data-view='detail'] .app-back {
    display: inline-flex;
    margin: 0 0 12px 6px;
  }
  .app-top__l span {
    flex-basis: 100%;
  }
  .res-list {
    max-height: none;
  }
}

/* The highlight of a heading goes under the text of the whole heading, so a descender on the line above (the j of "proje") is not painted over. */
.h1,
.h2,
.h-close {
  isolation: isolate;
}
.h-hl {
  position: relative;
  z-index: -1;
}
.rules-table {
  min-width: 640px;
}

/* Hit areas of 44 px: the drawn size stays as designed, the area around it is added. */
.hit::after {
  inset: -11px -6px;
}
.pill .hit::after {
  inset: -8px -4px;
}
.brand.hit-s::after,
.brand-icon.hit-s::after {
  inset: -7px;
}
.receipt button.hit-s::after {
  inset: -9px -5px;
}

/* The design terminal body is 300 px of text with its padding outside it. */
.term__body {
  box-sizing: content-box;
}

/* The design gives these a width and a padding on the same box, so the width is the content width. */
.margin-note,
.hp__tag {
  box-sizing: content-box;
}

/* The screens that end a scan (an error, no papers) are laid out as the design draws them: a large heading, text and receipt side by side, centred. */
.scan-hero--wide {
  align-items: center;
  padding: 40px 32px 56px;
  gap: 48px 96px;
}
.scan-hero--wide .scan-hero__text {
  flex: 1 1 460px;
  gap: 24px;
  padding-top: 0;
}
.scan-hero--wide .scan-hero__text p.lead {
  font-size: 19px;
  max-width: 44ch;
}
.scan-hero--wide .scan-hero__side {
  flex: 0 1 400px;
  gap: 24px;
}
.scan-hero--zero {
  padding-top: 48px;
}
.zero-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 46ch;
}
.zero-body .zero-link,
.zero-link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.app-top__l .app-top__name {
  font-size: 21px;
  color: var(--ink);
}

/* a folder of several projects (ADR 0008): one folder of papers for each project, same paper, same shadows */
.projects {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 15.5px;
  line-height: 1.5;
}
.app-top__l .app-top__path {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.proj-desk {
  position: relative;
  padding: 8px 28px 28px;
}
.proj-lead {
  margin: 0 0 30px;
  max-width: 62ch;
  color: var(--ink2);
}
.proj-grid {
  list-style: none;
  margin: 0;
  padding: 14px 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 34px 30px;
}
.proj-grid__item {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 178px;
  padding: 30px 20px 18px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}
.proj-card::before,
.proj-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--card-shadow);
}
.proj-card::before {
  transform: rotate(-1.6deg) translate(-3px, 3px);
}
.proj-card::after {
  transform: rotate(1.2deg) translate(4px, 5px);
}
.proj-card--loose {
  background: var(--note);
}
.proj-card--loose::before {
  background: var(--note);
  transform: rotate(-3deg) translate(-5px, 4px);
}
.proj-card--loose::after {
  background: var(--note);
  transform: rotate(2.4deg) translate(6px, 6px);
}
.proj-card[aria-current='true'] {
  box-shadow: var(--result-lift-shadow);
  transform: translateY(-4px);
}
.proj-card--failed {
  cursor: default;
}
.proj-card__tab {
  position: absolute;
  top: -13px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 3px 12px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink2);
  background: var(--note);
  border-radius: 6px 6px 0 0;
  overflow-wrap: anywhere;
}
.proj-card__tab:empty {
  display: none;
}
.proj-card__path {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.proj-card__meta {
  font-size: 13.5px;
  color: var(--ink3);
}
.proj-card__sev {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
}
.proj-card__sev .sev-label {
  font-size: 12px;
}
.proj-card__sev--none {
  font-size: 13.5px;
  color: var(--ink3);
}
.proj-card__score {
  font-size: 14px;
  color: var(--ink3);
}
.proj-card__score b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proj-card__incomplete {
  margin-left: 10px;
  font-weight: 700;
  color: var(--sev-high-text);
}
.proj-card__why {
  font-size: 13px;
  color: var(--ink2);
  overflow-wrap: anywhere;
}
.proj-notes {
  padding: 0 28px 24px;
}
.proj-notes .receipt-wrap {
  margin: 0;
}
@media (max-width: 760px) {
  .proj-desk,
  .proj-notes {
    padding-left: 16px;
    padding-right: 16px;
  }
  .proj-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .projects .term {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* The turning ring shown while a folder is read and scanned (M4, a user decision, the one animation of the site).
   A thin ring in the ink colour, a plain steady turn; no gradient, glow, shadow or change of colour. With
   reduced motion it does not turn: it is a still ring, and the words beside it say what is happening. */
.gauge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
}
.gauge__ring {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: gauge-turn 1s linear infinite;
}
.gauge__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.gauge__note {
  flex-basis: 100%;
  margin: 0;
  font-size: 14.5px;
  color: var(--ink2);
}
@keyframes gauge-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gauge__ring {
    animation: none;
    border-color: var(--ink);
  }
}
/* How much will be read and what was left out (H4): plain lines under the sentence, one fact a line. */
.gauge__counts {
  flex-basis: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
  color: var(--ink2);
  overflow-wrap: anywhere;
}
.tl-1 { top: 42px; }
.tl-2 { top: 68px; }
.tl-3 { top: 94px; }
.tl-4 { top: 120px; }
.tl-5 { top: 146px; }
.tl-6 { top: 172px; }
.tl-7 { top: 198px; }
.tl-8 { top: 224px; }
.tl-9 { top: 250px; }
.tl-10 { top: 276px; }
.tl-11 { top: 302px; }
.tl-12 { top: 328px; }
.is-app .top, .is-app .foot { display: none; }
@media print {
:root[data-theme='dark'] {
  color-scheme: light;
  --desk: #e4eaee;
  --paper: #ffffff;
  --note: #fffdf4;
  --edge: #e6e9ec;
  --ink: #161b20;
  --ink2: #47505a;
  --ink3: #616a74;
  --gutter: #8a949d;
  --line: #c9d1d7;
  --grain: 0.09;
  --hl: #ffe070;
  --hl-ink: #161b20;
  --sheet-shadow:
    0 1px 1px rgba(22, 27, 32, 0.06), 0 8px 18px -8px rgba(22, 27, 32, 0.14),
    0 36px 70px -34px rgba(22, 27, 32, 0.34);
  --result-sheet-shadow:
    0 1px 1px rgba(22, 27, 32, 0.06), 0 10px 20px -10px rgba(22, 27, 32, 0.16),
    0 40px 80px -40px rgba(22, 27, 32, 0.36);
  --card-shadow: 0 1px 1px rgba(22, 27, 32, 0.05), 0 6px 14px -8px rgba(22, 27, 32, 0.18);
  --lift-shadow:
    0 2px 2px rgba(22, 27, 32, 0.06), 0 16px 30px -10px rgba(22, 27, 32, 0.2),
    0 60px 100px -40px rgba(22, 27, 32, 0.45);
  --result-lift-shadow: 0 2px 2px rgba(22, 27, 32, 0.06), 0 14px 28px -12px rgba(22, 27, 32, 0.3);
  --tag-shadow: 0 1px 1px rgba(22, 27, 32, 0.08), 0 10px 22px -8px rgba(22, 27, 32, 0.28);
  --result-tag-shadow: 0 1px 1px rgba(22, 27, 32, 0.08), 0 16px 30px -10px rgba(22, 27, 32, 0.3);
  --chip-shadow: 0 1px 1px rgba(22, 27, 32, 0.06), 0 6px 16px -8px rgba(22, 27, 32, 0.22);
  --btn-shadow: 0 10px 22px -10px rgba(22, 27, 32, 0.6);
  --receipt-shadow: drop-shadow(0 24px 30px rgba(22, 27, 32, 0.18));
  --sev-critical-hl: #ffb09f;
  --sev-critical-text: #b5300f;
  --sev-high-hl: #ffe070;
  --sev-high-text: #835800;
  --sev-medium-hl: #c3d6ff;
  --sev-medium-text: #2e54bf;
  --sev-low-hl: #e3e3dc;
  --sev-low-text: #555b60;
  --sev-info-hl: #e3e3dc;
  --sev-info-text: #555b60;
  --t-bg: #ffffff;
  --t-line: #c9d1d7;
  --t-text: #2c333a;
  --t-bright: #161b20;
  --t-dim: #616a74;
  --t-prompt: #2f7a4e;
  --t-hole: #e4eaee;
  --t-hole-shadow: inset 0 1px 2px rgba(22, 27, 32, 0.22);
  --t-btn: #e4eaee;
  --t-btn-dark: #161b20;
  --t-btn-ink: #ffffff;
  --t-badge: #ffb09f;
  --t-zero: #e3e3dc;
  --t-badge-ink: #161b20;
  --t-sel: #f3f6f8;
  --t-under: #8a949d;
  --t-shadow: var(--result-sheet-shadow);
}
}
