@charset "UTF-8";

:root {
  --ink: #141414;
  --muted: #51514b;
  --paper: #f8f8f0;
  --surface: #fff;
  --soft: #efefe5;
  --yellow: #ffdc00;
  --blue: #3155ff;
  --orange: #ff741f;
  --green: #00bd78;
  --danger: #a51e17;
  --radius: 0px;
  --border: 2px solid var(--ink);
  --shadow: 3px 3px 0 var(--ink);
  --shadow-large: 5px 5px 0 var(--ink);
  --success-bg: #dcf4e7;
  --sample-bg: #fff0cf;
  --danger-bg: #ffe5df;
  --focus: 3px solid var(--blue);
  --mono: "Courier New", monospace;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: var(--focus); outline-offset: 5px; }
input:focus, textarea:focus, select:focus { outline: var(--focus); outline-offset: 3px; }
p { line-height: 1.6; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 900; }
h1 { font-size: clamp(40px, 4.7vw, 64px); line-height: 1.04; letter-spacing: -2px; margin-bottom: 24px; }
h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.8px; margin-bottom: 16px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.3px; margin-bottom: 12px; }
svg { display: block; }
.skip { position: fixed; z-index: 100; top: 12px; left: 12px; background: var(--yellow); border: var(--border); padding: 12px; box-shadow: var(--shadow); }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; white-space: nowrap; }
.shell { min-height: 100vh; }
.rail { min-height: 96px; padding: 20px max(5%, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 900; letter-spacing: -.7px; }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand-sub { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .8px; margin-top: 4px; }
.rail nav { display: flex; align-items: center; gap: 24px; }
.rail nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.rail nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.rail nav a:hover { color: var(--blue); }
.nav-count { min-width: 23px; min-height: 23px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--yellow); font: 700 11px var(--mono); }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1320px; width: 90%; margin: auto; min-height: 72px; border-bottom: 1px solid var(--ink); }
.project-title { min-height: 44px; text-align: left; padding: 10px 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.project-title span { margin-left: 12px; }
.save-state { color: var(--muted); font: 11px var(--mono); text-align: right; line-height: 1.5; }
.save-state::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--green); border: 1px solid var(--ink); margin-right: 8px; }
main { max-width: 1320px; width: 90%; margin: 0 auto; padding: 40px 0 64px; min-height: 65vh; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 40px; }
.eyebrow { font: 700 12px/1.5 var(--mono); letter-spacing: .8px; }
.page-head .eyebrow { display: inline-block; border: 1px solid var(--ink); padding: 6px 9px; background: var(--yellow); margin-bottom: 0; }
.head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 12px 20px; border: var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.4; transition: transform .12s, box-shadow .12s, background .12s; }
.button.primary, .button.accent { background: var(--yellow); box-shadow: var(--shadow); }
.button:hover:not(:disabled), .button:focus-visible:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.button.quiet { background: var(--paper); }
.button.danger { color: var(--danger); }
.intro { border-bottom: var(--border); padding-bottom: 32px; }
.intro h1 { max-width: 1000px; }
.intro h1 em { font-style: normal; background: var(--yellow); color: var(--ink); display: inline-block; max-width: 100%; margin-top: 8px; padding: 2px 8px 4px; line-height: 1.08; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.intro p { max-width: 700px; margin-bottom: 0; font-size: 16px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.15fr; padding: 26px 0; border-bottom: var(--border); margin-bottom: 40px; }
.stat { padding: 0 32px; border-right: 1px solid var(--ink); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat-value { font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -1.4px; }
.stat-value small { font-size: 24px; font-weight: 400; color: var(--muted); }
.stat p { font-size: 12px; margin: 10px 0 0; color: var(--muted); font-family: var(--mono); }
.warning { color: var(--danger); }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.section-label h2 { font-size: 22px; margin: 0; }
.section-label > span { font: 11px/1.5 var(--mono); color: var(--muted); }
.claim-list { display: grid; gap: 20px; }
.claim-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px; border: 1px solid var(--ink); background: var(--surface); }
.claim-number { font: 700 20px/1.3 var(--mono); }
.claim-card h3 { overflow-wrap: anywhere; font-size: 20px; }
.claim-card p { margin: 10px 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.claim-card p strong { font-size: 12px; text-transform: uppercase; color: var(--ink); margin-right: 5px; }
.claim-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--ink); background: var(--soft); font: 700 11px/1.4 var(--mono); }
.tag.sample, .tag.mock, .tag.stale { background: var(--sample-bg); }
.tag.observed, .tag.real { background: var(--success-bg); }
.tag.blocked { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.tag.neutral { background: var(--paper); font-weight: 400; }
.claim-tools { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 12px; border-top: 1px solid #b8b8ad; }
.claim-tools button { min-height: 44px; min-width: 44px; padding: 8px 10px; font-size: 16px; border: 1px solid transparent; }
.claim-tools button:first-child { margin-right: auto; font-size: 13px; font-weight: 700; padding-left: 0; }
.claim-tools button:hover:not(:disabled) { background: var(--yellow); border-color: var(--ink); }
.claim-tools button:first-child:hover:not(:disabled) { padding-left: 8px; }
.add-line { min-height: 52px; width: 100%; padding: 15px; border: 1px dashed var(--ink); margin-top: 20px; font-size: 14px; font-weight: 700; }
.add-line:hover:not(:disabled) { background: var(--yellow); border-style: solid; }
.desk-note { padding: 26px 24px; background: var(--blue); color: var(--surface); border: var(--border); box-shadow: var(--shadow); }
.desk-note .eyebrow { margin-bottom: 32px; font-size: 11px; color: var(--ink); background: var(--yellow); display: inline-block; padding: 5px 7px; border: 1px solid var(--ink); }
.desk-note h2 { color: var(--surface); font-size: 29px; letter-spacing: -.8px; line-height: 1.08; }
.desk-note p { font-size: 15px; line-height: 1.6; }
.desk-note .note-line { width: 45px; border-top: 2px solid var(--yellow); margin: 24px 0 16px; }
.desk-note small { font-size: 13px; line-height: 1.6; display: block; }
.side-help { padding: 28px 0 0; }
.side-help h3 { font-size: 19px; }
.side-help p { font-size: 14px; color: var(--muted); }
.text-button { display: inline-block; min-height: 44px; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; line-height: 1.5; }
.text-button:hover { color: var(--blue); }
.text-button span { margin-left: 7px; }
.side-help .text-button { display: block; }
.budget-track { height: 10px; border: 1px solid var(--ink); background: var(--surface); margin: 20px 0 12px; overflow: hidden; }
.budget-track span { height: 100%; display: block; background: var(--green); }
.budget-track.over span { background: var(--orange); }
.bottom-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: var(--border); }
.bottom-strip p { font-size: 13px; color: var(--muted); margin: 0; }
.empty { padding: 40px 28px; border: 1px dashed var(--ink); text-align: center; background: var(--surface); }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border: var(--border); background: var(--yellow); box-shadow: var(--shadow); margin: 0 auto 24px; font-size: 32px; font-weight: 800; }
.empty h2 { font-size: 28px; }
.empty p { font-size: 16px; max-width: 420px; color: var(--muted); margin: 0 auto 24px; }
.empty .text-button { display: block; margin: 14px auto 0; }
.sample-banner { border-left: 4px solid var(--orange); background: var(--sample-bg); padding: 14px 16px; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.export-options { position: relative; }
.export-options summary { list-style: none; cursor: pointer; }
.export-options summary::-webkit-details-marker { display: none; }
.export-menu { position: absolute; right: 0; top: 56px; z-index: 4; width: 230px; border: var(--border); padding: 8px; background: var(--surface); box-shadow: var(--shadow); }
.export-menu button { width: 100%; min-height: 44px; text-align: left; padding: 12px; font-size: 14px; }
.export-menu button:hover { background: var(--yellow); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: var(--border); padding: 24px max(5%, calc((100vw - 1320px) / 2)); }
.footer strong { font: 700 11px var(--mono); letter-spacing: .5px; }
.footer p { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 13px; }
.footer nav a { min-height: 44px; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; }
.footer [aria-current] { font-weight: 800; }
.notice { max-width: 1320px; width: 90%; margin: 24px auto 0; border: var(--border); background: var(--sample-bg); padding: 20px 24px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.6; }
.notice p { margin-bottom: 0; }
.notice button { margin-right: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); max-width: min(90vw, 600px); width: max-content; border: var(--border); background: var(--yellow); padding: 14px 20px; font-size: 13px; font-weight: 700; line-height: 1.5; box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.toast.visible { opacity: 1; }
.error { color: var(--danger); font-size: 13px; font-weight: 700; line-height: 1.5; margin: 12px 0 0; }
.error:empty { display: none; }
dialog { border: var(--border); background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 32px; width: min(640px, calc(100% - 32px)); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-large); }
dialog::backdrop { background: #14141480; }
dialog h2 { font-size: 34px; }
dialog p { font-size: 14px; color: var(--muted); }
dialog .eyebrow { font-size: 11px; color: var(--ink); }
.dialog-heading { margin-bottom: 24px; }
label { display: block; font-size: 14px; font-weight: 700; margin: 20px 0 8px; line-height: 1.5; }
input, textarea, select { display: block; width: 100%; min-height: 48px; padding: 12px; border: var(--border); border-radius: var(--radius); background: var(--surface); font-size: 16px; line-height: 1.5; min-width: 0; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.form-hint { font-size: 12px; margin-top: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 28px; }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.run-head .eyebrow { margin: 0; }
.run-stage { max-width: 1000px; margin: auto; padding: 32px; border: var(--border); background: var(--surface); }
.run-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.timer { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.timer.over { color: var(--danger); }
.timer-label { font: 12px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }
.run-step { font: 12px var(--mono); color: var(--muted); margin-bottom: 16px; }
.run-stage h1 { font-size: 36px; line-height: 1.1; letter-spacing: -1px; overflow-wrap: anywhere; }
.run-block { border-bottom: 1px solid #b8b8ad; padding: 24px 0; }
.run-block .eyebrow { margin-bottom: 10px; font-size: 11px; }
.run-block p { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.run-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.run-actions .skip-step { margin-left: auto; }
.run-context { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.report-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; border: var(--border); box-shadow: var(--shadow); background: var(--yellow); margin: 32px 0; }
.report-summary h2 { font-size: 28px; margin-bottom: 12px; }
.report-summary p { margin: 0; font-size: 15px; }
.report-summary .button { margin-top: 20px; background: var(--ink); color: var(--surface); }
.report-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--ink); padding: 28px 0; }
.report-row h3 { font-size: 23px; }
.report-row p { font-size: 15px; color: var(--muted); margin: 14px 0; overflow-wrap: anywhere; }
.report-row .observation { font-size: 16px; color: var(--ink); border-left: 4px solid var(--blue); padding-left: 16px; }
.report-row details { margin-top: 16px; }
.report-row summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.caption-note { font-size: 14px; line-height: 1.6; color: var(--muted); border-left: 4px solid var(--orange); padding-left: 20px; margin-top: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.guide-card { border-top: 3px solid var(--ink); padding: 24px 0 0; }
.guide-card .claim-number { display: inline-block; border: 1px solid var(--ink); background: var(--yellow); padding: 5px 8px; margin-bottom: 24px; font-size: 16px; }
.guide-card h3 { font-size: 24px; }
.guide-card p, .guide-body p { font-size: 16px; color: var(--muted); }
.guide-body { max-width: 780px; margin-top: 48px; }
.guide-body h2 { font-size: 28px; margin-top: 32px; }
.guide-body .button { margin-top: 16px; }
body.running .rail nav, body.running .project-title, body.running #import-button { pointer-events: none; opacity: .45; }

@media (max-width: 1000px) {
  .board-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  .claim-card { padding: 22px 18px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .desk-note { padding: 24px 20px; }
  .desk-note h2 { font-size: 25px; }
  .claim-tools { gap: 4px; }
  .guide-grid { gap: 24px; }
}

@media (max-width: 800px) {
  h1 { font-size: 48px; }
  .board-grid { grid-template-columns: 1fr; }
  .board-side { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .desk-note h2 { font-size: 28px; }
  .side-help { padding-top: 0; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 20px; }
  .guide-card .claim-number { align-self: start; }
  .guide-card p { grid-column: 2; }
  .footer { align-items: flex-start; }
  .footer nav { gap: 12px; }
}

@media (max-width: 550px) {
  .rail { min-height: auto; padding: 20px 5% 0; flex-wrap: wrap; gap: 20px; }
  .brand { font-size: 24px; }
  .brand svg { width: 40px; height: 40px; }
  .brand-sub { font-size: 10px; }
  .rail nav { width: 100%; justify-content: space-between; gap: 12px; }
  .rail nav a { font-size: 14px; min-height: 48px; }
  .topbar { min-height: 72px; gap: 12px; }
  .project-title { font-size: 13px; max-width: 55%; }
  .save-state { font-size: 10px; max-width: 42%; }
  main { padding-top: 28px; padding-bottom: 40px; }
  .page-head { gap: 16px; align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .page-head .eyebrow { font-size: 11px; }
  .head-actions { gap: 12px; width: 100%; }
  .head-actions > .button { flex: 1; }
  .button { min-height: 48px; padding: 12px 16px; font-size: 14px; gap: 12px; }
  h1 { font-size: clamp(34px, 9.8vw, 48px); line-height: 1.08; letter-spacing: -1.3px; }
  .intro { padding-bottom: 28px; }
  .intro h1 { margin-bottom: 24px; }
  .intro h1 em { padding: 0 4px 2px; }
  .intro p { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1.1fr 1.05fr; padding: 24px 0; margin-bottom: 32px; }
  .stat { padding: 0 12px; }
  .stat-value { font-size: 30px; letter-spacing: -1px; }
  .stat-value small { font-size: 18px; }
  .stat p { font-size: 10px; line-height: 1.6; margin-top: 8px; }
  .section-label h2 { font-size: 24px; }
  .section-label > span { font-size: 11px; }
  .claim-card { display: block; padding: 22px 18px; }
  .claim-card .claim-number { display: inline-block; margin-bottom: 14px; padding: 3px 6px; border: 1px solid var(--ink); background: var(--soft); font-size: 13px; }
  .claim-card h3 { font-size: 22px; }
  .claim-card p { font-size: 15px; }
  .claim-tools { gap: 2px; }
  .claim-tools button { min-width: 40px; padding: 6px; }
  .claim-tools button:first-child { font-size: 12px; }
  .claim-meta { gap: 7px; }
  .tag { font-size: 11px; }
  .board-side { display: block; }
  .desk-note { padding: 26px 24px; }
  .desk-note .eyebrow { margin-bottom: 24px; }
  .desk-note h2 { font-size: 32px; }
  .side-help { padding-top: 28px; }
  .side-help p { font-size: 15px; }
  .bottom-strip { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .bottom-strip p { font-size: 13px; }
  .export-menu { right: auto; left: 0; }
  .footer { flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .footer nav { width: 100%; justify-content: space-between; }
  .notice { padding: 18px; font-size: 14px; }
  .empty { padding: 32px 20px; }
  .empty h2 { font-size: 27px; }
  .empty p { font-size: 15px; }
  .empty .button { padding: 12px; }
  .sample-banner { font-size: 13px; }
  .toast { bottom: 16px; padding: 12px 16px; font-size: 12px; }
  dialog { padding: 24px 20px; width: calc(100% - 24px); }
  dialog h2 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions { gap: 12px; flex-wrap: wrap; }
  .dialog-actions .button { flex: 1; }
  .run-stage { padding: 24px 18px; }
  .run-head { align-items: flex-start; gap: 16px; }
  .run-head .eyebrow { font-size: 10px; max-width: 140px; }
  .run-stage h1 { font-size: 30px; line-height: 1.15; }
  .run-top { gap: 16px; align-items: flex-start; }
  .timer { font-size: 46px; }
  .timer-label { font-size: 10px; max-width: 150px; }
  .run-top .button { font-size: 12px; padding: 10px; }
  .run-actions { gap: 12px; align-items: stretch; }
  .run-actions .button { flex: 1; }
  .run-actions .skip-step { margin-left: 0; }
  .report-summary { padding: 24px 20px; align-items: flex-start; flex-direction: column; }
  .report-summary h2 { font-size: 26px; }
  .report-row { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .report-row .claim-number { font-size: 16px; }
  .report-row h3 { font-size: 22px; }
  .report-row .observation { padding-left: 12px; font-size: 15px; }
  .guide-grid { margin-top: 32px; gap: 24px; }
  .guide-card { display: block; }
  .guide-card .claim-number { margin-bottom: 20px; }
  .guide-card h3 { font-size: 26px; }
  .guide-body { margin-top: 32px; }
  .guide-body h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .button:hover:not(:disabled), .button:focus-visible:not(:disabled), .button:active:not(:disabled) { transform: none; }
}
