/* labmate.tools · Poster Check — same colour and type tokens as assets/styles.css */
:root {
  --paper: #F2EDDF;
  --frame: #FAF7EE;
  --ink: #1B2224;
  --teal: #17403D;
  --pass: #2E9E5B;
  --pass-dark: #1F7A45;
  --sample: #9CC7B6;
  --muted: #5B6466;
  --warn: #B4690E;
  --warn-dark: #7A4508;
  --warn-bg: #FCEFD9;
  --fail: #A3341F;
  --fail-dark: #8A2A18;
  --fail-bg: #F7E1DB;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: var(--teal); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.page { max-width: 1440px; margin: 0 auto; padding: 24px 56px 32px; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal); text-decoration: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 26px; display: flex; align-items: center; gap: 3px; }
.nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: .08em; flex-wrap: wrap; }
.crumbs { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; padding: 7px 0; border-bottom: 1px solid var(--ink); }
.crumbs a { text-decoration: none; }
.saved { color: var(--pass-dark); }

/* hero */
.hero { display: flex; gap: 28px; align-items: stretch; padding: 22px 0 20px; border-bottom: 1px dotted var(--ink); }
.fig { margin: 0; width: 210px; flex-shrink: 0; border: 1px solid var(--ink); background: var(--frame); display: flex; flex-direction: column; }
.fig svg { display: block; width: 100%; height: auto; padding: 10px 18px; flex-grow: 1; }
.fig figcaption { font-size: 10px; letter-spacing: .08em; padding: 5px 8px; border-top: 1px solid var(--ink); }
.hero-text { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero h1 { margin: 0; font-size: 52px; font-weight: 600; line-height: 1; }
.lede { margin: 0; font-size: 19px; font-style: italic; max-width: 680px; }
.flow { font-size: 12px; letter-spacing: .1em; margin-top: 6px; }
.facts { list-style: none; margin: 0; padding: 0 0 0 18px; width: 270px; flex-shrink: 0; align-self: center; border-left: 1px solid var(--ink); font-size: 11px; letter-spacing: .04em; line-height: 1.7; }

/* work area */
.work { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 40px; padding-top: 24px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.box { border: 1px solid var(--ink); background: var(--frame); }
.bar { margin: 0; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 400; letter-spacing: .12em; padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; }
.bar-note { color: var(--sample); }
.box-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .08em; min-width: 0; }
input, select, textarea { font-family: var(--mono); font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; padding: 9px 10px; width: 100%; min-height: 40px; }
textarea { resize: vertical; line-height: 1.5; font-family: var(--sans); font-size: 14px; }
input::placeholder { color: #8A9294; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, .drop:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; }
.grid2 { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.error { margin: 0; color: var(--fail-dark); font-size: 13px; }

.tabs { display: flex; width: fit-content; border: 1px solid var(--ink); flex-wrap: wrap; }
.tabs button { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; background: transparent; color: var(--ink); border: 0; padding: 9px 12px; cursor: pointer; min-height: 40px; }
.tabs button + button { border-left: 1px solid var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tabs button:disabled { opacity: .4; cursor: progress; }

/* 01 file */
.drop { position: relative; border: 1.5px dashed var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; background: transparent; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }
.drop-main { font-size: 14px; }
.drop-link { text-decoration: underline; }
.drop-sub { font-size: 11px; color: var(--muted); }
.drop.over, body.dragging .drop { background: #fff; border-color: var(--teal); }
.drop.busy { cursor: progress; }
.samples { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.samples-label, .unit-label { font-size: 11px; letter-spacing: .08em; }

.fileinfo { border-top: 1px dotted var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.file-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.file-meta { font-size: 11px; color: var(--muted); }
.facts-list { margin: 0; font-size: 12px; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--ink); }
.facts-list div:first-child { border-top: 1px dotted var(--ink); }
.facts-list dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* 02 sizes */
.unit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.unit-row .tabs button { padding: 7px 14px; min-height: 36px; }

/* 03 lookup */
.lookup { display: flex; align-items: flex-end; gap: 14px; }
.lookup .want { width: 170px; flex-shrink: 0; }
.lookup-arrow { font-size: 18px; padding-bottom: 8px; }
.lookup-out { display: flex; flex-direction: column; gap: 2px; }
.lookup-label { font-size: 11px; letter-spacing: .08em; }
.lookup-val { font-size: 34px; font-weight: 600; line-height: 1; }
.guide { border-collapse: collapse; font-size: 12px; width: 100%; }
.guide th { text-align: right; font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.guide th:first-child, .guide td:first-child { text-align: left; }
.guide td { text-align: right; padding: 7px 0; border-bottom: 1px dotted var(--ink); }
.guide td:last-child { font-weight: 600; }

/* output */
.output { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.status { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.status.empty { border: 1px dashed var(--ink); background: var(--frame); }
.status.busy { border: 1px dashed var(--ink); background: var(--frame); }
.status.pass { border: 1px solid var(--pass-dark); background: var(--frame); }
.status.warn { border: 1.5px solid var(--warn); background: var(--warn-bg); }
.status.fail { border: 1.5px solid var(--fail); background: var(--fail-bg); }
.status-title { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.status.pass .status-title { color: var(--pass-dark); }
.status.warn .status-title { color: var(--warn-dark); }
.status.fail .status-title { color: var(--fail-dark); }
.status p { margin: 0; font-size: 14px; line-height: 1.45; }
.status .act { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; min-height: 36px; margin-top: 2px; }
.status .act:hover { background: var(--teal); }

.stage-box { border: 1px solid var(--ink); background: var(--frame); padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.stage { display: flex; justify-content: center; line-height: 0; }
.stage > svg { display: block; width: 100%; height: auto; }
.legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; letter-spacing: .05em; }
.legend .bad { color: var(--fail-dark); }

.choice { display: flex; flex-direction: column; gap: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card { font: inherit; color: var(--ink); text-align: left; background: var(--frame); border: 1px dashed var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-width: 0; }
.choice-card[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 13px; background: #fff; }
.choice-title { font-size: 12px; letter-spacing: .08em; font-weight: 600; }
.choice-pic { display: block; line-height: 0; }
.choice-pic > svg { width: 100%; height: auto; display: block; }
.choice-text { font-size: 13px; line-height: 1.45; }
.bands-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 20px 220px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dotted var(--ink); font-size: 12px; }
.checks .lbl { letter-spacing: .06em; }
.checks .val { color: #3A4345; overflow-wrap: anywhere; }
.checks .word { text-align: right; font-size: 11px; letter-spacing: .1em; font-weight: 600; }
.checks .k-pass .word { color: var(--pass-dark); }
.checks .k-warn .word { color: var(--warn-dark); }
.checks .k-fail .word { color: var(--fail-dark); }
.checks .k-info .word { color: var(--muted); }
.checks li > span > svg { display: block; }

.note-box { border: 1px solid var(--ink); background: var(--frame); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.note-title { font-size: 11px; letter-spacing: .1em; }
.note-box p { margin: 0; font-size: 13px; line-height: 1.5; }

.primary, .secondary { font-family: var(--mono); letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center; width: 100%; cursor: pointer; border-radius: 0; text-align: left; text-decoration: none; }
.primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 16px; font-weight: 600; padding: 20px; min-height: 60px; }
.primary.small { font-size: 13px; padding: 13px 16px; min-height: 44px; }
.primary:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 13px; padding: 13px 16px; min-height: 44px; }
.secondary:hover { background: #fff; }
.primary:disabled, .secondary:disabled, .secondary[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.primary:disabled:hover { background: var(--ink); border-color: var(--ink); }
.linkish { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.email .box-body { gap: 10px; }

.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; border-top: 3px solid var(--ink); padding-top: 10px; margin-top: 32px; }

/* narrower screens */
@media (max-width: 1240px) {
  .work { grid-template-columns: 440px minmax(0, 1fr); gap: 28px; }
  .checks li { grid-template-columns: 20px 170px minmax(0, 1fr) 50px; }
}
@media (max-width: 980px) {
  .page { padding: 20px 24px 28px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .facts { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 16px 16px 24px; }
  .hero { flex-direction: column; gap: 14px; }
  .fig { width: 100%; max-width: 260px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .nav { gap: 16px; font-size: 12px; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .checks li { grid-template-columns: 20px minmax(0, 1fr) 50px; }
  .checks li > :first-child { grid-row: 1; grid-column: 1; }
  .checks .lbl { grid-row: 1; grid-column: 2; }
  .checks .word { grid-row: 1; grid-column: 3; }
  .checks .val { grid-row: 2; grid-column: 2 / 4; }
  .lookup { flex-wrap: wrap; }
  .stage-box { padding: 10px; }
}
