/* A quiet notebook with a visible first action, not a document dashboard. */
html, body { margin: 0; background: #f6f1e7; }
html[data-theme="dark"], html[data-theme="dark"] body { background: #171b16; }
.fieldNotes { background: var(--paper); }
.fieldNotes[data-theme="dark"] { background: var(--paper); }
.reviewRibbon { padding: 7px 20px; color: #e9e7dd; background: #34392f; font: 12px/1.4 ui-sans-serif, system-ui, sans-serif; text-align: center; }
.reviewRibbon span { margin-left: 12px; color: #c8cbbf; }
#boot-status { padding: 12px 20px; font: 14px/1.5 ui-sans-serif, system-ui, sans-serif; text-align: center; background: #dbe3bd; color: #25241f; }
#boot-status[hidden] { display: none; }
#boot-status a { display: inline-flex; min-height: 48px; align-items: center; padding-inline: 12px; font-weight: 700; }
.repairSrOnly { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fieldNotesHeader, .fieldNotesView, .fieldNotesFooter { width: min(100% - 64px, 1120px); }
.fieldNotesHeader { min-height: 88px; padding: 0; gap: 20px; flex-wrap: nowrap; }
.fieldNotesHeaderSide { gap: 16px; }
.fieldNotesBrand { font-size: 22px; gap: 9px; }
.fieldNotesBrand span { display: inline; }
.fieldNotesBrand img { width: 30px; height: 30px; }
.fieldNotesNav { gap: 8px; }
.fieldNotesNav a { padding: 0 14px; font-size: 14px; }
.fieldNotesThemeControl { border: none; background: transparent; }
.fieldNotes main { min-height: calc(100svh - 224px); }
.repairHome { padding: 26px 0 48px; }
.repairWelcome { margin-bottom: 32px; }
.fieldNotes .repairWelcome h1 { max-width: 960px; margin: 0; font: 400 clamp(32px, 3.3vw, 46px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: pretty; }
.repairWelcome p { margin: 14px 0 0; color: var(--muted); font: 17px/1.5 var(--sans); }
.repairCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.repairCard { min-width: 0; }
.fieldNotes .repairCardLink { display: flex; flex-direction: column; height: 100%; border-radius: 14px; }
.repairArt { display: grid; align-items: center; overflow: hidden; background: var(--blush); border-radius: 12px; aspect-ratio: 3/2; }
.repairCard:nth-child(2) .repairArt { background: var(--sage); }
.repairCard:nth-child(3) .repairArt { background: var(--paper-deep); }
.fieldNotes .repairArt img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fieldNotes[data-theme="dark"] .repairArt img { mix-blend-mode: normal; }
.fieldNotes .repairCard h2 { margin: 20px 0 9px; font: 400 27px/1.12 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.repairCard p { margin: 0 0 14px; color: var(--muted); font: 16px/1.5 var(--sans); }
.repairVerb { display: inline-flex; gap: 14px; align-items: center; align-self: start; margin-top: auto; min-height: 48px; color: var(--ink); font: 650 15px/1.4 var(--sans); }
.repairVerb svg { width: 20px; height: 20px; }
.repairNoScript { max-width: 620px; margin: 32px 0 0; color: var(--muted); font: 15px/1.6 var(--sans); }
.fieldNotesFooter { padding-block: 24px 32px; justify-content: space-between; align-items: center; font-size: 13px; }
.repairSignoff { font: italic 16px/1.5 var(--serif); }
.fieldNotesFooter .repairReferences { min-height: 48px; font-size: 13px; font-weight: 500; color: var(--muted); }
/* A plain account first; attribution is expandable, never discarded. */
.fieldNotes .editorialArticle { width: min(100% - 64px, 960px); padding-top: 4px; }
.editorialReturn { margin: 0 0 18px; min-height: 48px; font-size: 14px; }
.repairOpening { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; margin-bottom: 32px; }
.editorialArticleHeader { margin: 0; }
.fieldNotes .editorialArticleHeader h1 { font: 400 clamp(34px, 3.2vw, 45px)/1.08 var(--serif); letter-spacing: -.025em; text-wrap: pretty; }
.repairPoint { margin: 18px 0 12px; font: 18px/1.5 var(--sans); color: var(--ink); }
.repairLimit { margin: 0 0 12px; font: 14px/1.5 var(--sans); color: var(--muted); }
.repairCredits { color: var(--muted); font: 13px/1.5 var(--sans); }
.repairCredits summary { display: flex; flex-wrap: wrap; gap: 12px; min-height: 48px; align-items: center; width: fit-content; cursor: pointer; list-style: none; }
.repairCredits summary::-webkit-details-marker { display: none; }
.repairCredits summary::after { content: '+'; margin-left: 4px; font-size: 18px; }
.repairCredits[open] summary::after { content: '−'; }
.repairCredits .editorialByline { margin: 8px 0; }
.repairCredits .editorialPortrait { display: none; }
.repairCredits .editorialByline p { font-size: 14px; }
.repairCredits .editorialStatus { margin: 8px 0; font-size: 12px; gap: 12px; }
.repairCredits .editorialDeck { font: italic 16px/1.5 var(--serif); margin: 12px 0; }
.fieldNotes .repairOpening .editorialScene { margin: 0; }
.fieldNotes .repairOpening .editorialScene img { aspect-ratio: 3/2; height: auto; max-height: 290px; object-fit: contain; }
.editorialScene figcaption { margin-top: 8px; font: 13px/1.5 var(--sans); }
.fieldNotes .repairJump { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; margin-top: 10px; color: var(--paper); background: var(--ink); border-radius: 999px; font: 650 14px/1.4 var(--sans); }
.editorialProse, .editorialSources, .editorialRelated, .editorialArticleClose { width: min(100%, 680px); margin-inline: auto; }
.editorialProse { font: 19px/1.7 var(--serif); }
.editorialProse > p { margin: 0 0 24px; }
.repairExperiment { scroll-margin-top: 16px; margin-block: 30px; }
/* The complete specimen and its controls share one view. Reset is retained
   because the preserved story and source explicitly describe it. */
.repairExperiment .makeRoom { display: grid; grid-template-columns: minmax(0, 1fr) 192px; gap: 12px 22px; margin: 0; }
.makeRoom .roomIntro { grid-column: 1/-1; }
.makeRoom .roomIntro h3 { margin: 0 0 6px; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.makeRoom .roomIntro p { margin: 0; font: 15px/1.5 var(--sans); }
.makeRoom .roomStage { grid-column: 1; grid-row: 2/5; padding: 14px; border-radius: 12px; min-height: 330px; }
.makeRoom .roomSheet { padding: 18px; border-radius: 4px; box-shadow: 0 4px 14px #0000000d; }
.makeRoom .roomHeadingTag { display: block; width: fit-content; color: var(--ink); background: var(--blush); padding: 6px 10px; margin-bottom: 10px; max-height: 34px; font: 600 12px/1.3 var(--sans); border-radius: 4px; transition: none; }
.makeRoom .roomStage[data-labels="false"] .roomHeadingTag { display: none; }
.makeRoom .roomSampleTitle { font: 750 25px/1.05 var(--sans); letter-spacing: -.025em; }
.makeRoom .roomSampleHeading { font: 700 20px/1.1 var(--sans); letter-spacing: -.025em; }
.makeRoom .roomSampleStory { grid-template-columns: 1.2fr .8fr; gap: 12px; }
.makeRoom .roomSampleStory p { margin-top: 10px; font: 14px/1.4 var(--serif); }
.makeRoom .roomSampleStory img { max-height: 135px; }
.makeRoom .roomRule { height: 3px; background: var(--muted); margin: 14px 0; }
.makeRoom .roomSampleFoot { font-size: 12px; }
.makeRoom .roomMarginNote { display: none; }
.makeRoom .roomControls { grid-column: 2; grid-row: 2; display: grid; gap: 8px; margin: 0; align-content: start; }
.makeRoom .roomControls button { width: 100%; min-height: 48px; padding-inline: 10px; font-size: 13px; text-align: left; }
.makeRoom .roomControls button.roomReset { margin: 0; color: var(--muted); }
.makeRoom .roomResult { grid-column: 2; grid-row: 3; margin: 0; min-height: 0; font: 15px/1.5 var(--sans); }
.makeRoom .roomCaption { grid-column: 2; grid-row: 4; margin: 0; font: 12px/1.5 var(--sans); }
/* Two delivered parts stay visible next to the record, on phones too. */
.repairExperiment .receiptExperiment { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 22px; border-radius: 12px; }
.fieldNotes .repairExperiment .receiptExperiment h3 { margin: 0; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.receiptExperiment .receiptProvenance { grid-row: 2; margin: 0; padding: 0; color: var(--muted); background: none; font: 13px/1.5 var(--sans); }
.receiptExperiment .receiptIntro { margin: 0; font: 15px/1.5 var(--sans); }
.receiptExperiment .receiptControls { grid-row: 4; display: flex; margin: 0; gap: 8px; }
.receiptExperiment .receiptControls button { min-height: 48px; flex: 1; font-size: 13px; padding: 10px; }
.receiptExperiment .receiptStage { grid-template-columns: 1fr 1fr; margin: 0; gap: 16px; }
.fieldNotes .receiptExperiment .receiptStage h4 { margin: 0 0 10px; font: 650 14px/1.4 var(--sans); }
.receiptExperiment .receiptDelivered > div { min-height: 82px; padding: 12px; border-radius: 6px; }
.receiptExperiment .receiptDelivered p { font: 16px/1.4 var(--serif); margin-top: 6px; }
.receiptExperiment .receiptSaved ul { min-height: 0; display: grid; }
.receiptExperiment .receiptSaved li { min-height: 82px; display: flex; align-items: center; padding: 12px; font: 600 14px/1.5 var(--sans); border-radius: 6px; }
.receiptExperiment .receiptSaved li[data-receipt-saved="2"] { grid-row: 2; }
.receiptExperiment .receiptSaved li[data-receipt-saved="1"] { grid-row: 1; }
.receiptExperiment .receiptSaved li[hidden] { display: none; }
.receiptExperiment[data-mode="last"] .receiptSaved ul::before { content: 'No receipt for part 1'; display: flex; align-items: center; min-height: 82px; margin-bottom: 10px; padding: 12px; color: var(--orange-dark); background: color-mix(in srgb, var(--paper) 40%, transparent); border: 1px dashed var(--orange-dark); border-radius: 6px; font: 600 14px/1.5 var(--sans); }
.receiptExperiment .receiptSaved > p { margin: 0; font: 13px/1.5 var(--sans); }
.receiptExperiment .receiptSaved > p[data-receipt-missing] { margin-bottom: 6px; }
.receiptExperiment .receiptResult { margin: 0; min-height: 3em; font: 15px/1.5 var(--sans); }
.repairCrew { max-width: 560px; margin: 40px auto 0 !important; text-align: center; }
.repairCrew figcaption { font: 15px/1.5 var(--serif); color: var(--muted); }
.repairSources { max-width: 740px; padding-block: 40px; }
.repairSources h1 { margin-bottom: 20px; font: 400 42px/1.15 var(--serif); }
.repairSources p { font: 18px/1.6 var(--serif); margin-bottom: 20px; }
.repairSources section { margin-block: 36px; }
.repairSources h2 { font: 600 23px/1.3 var(--sans); margin-bottom: 12px; }
.repairSources a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 650; color: var(--orange-dark); }
@media (hover: hover) and (pointer: fine) {
  .repairCardLink:hover .repairVerb, .repairCardLink:hover h2 { color: var(--orange-dark); }
  .repairCardLink:hover .repairArt { box-shadow: 0 6px 20px #0000000a; }
  .fieldNotes .repairJump:hover { background: var(--orange-dark); color: var(--paper); }
}
@media (max-width: 760px) {
  .fieldNotesHeader, .fieldNotesView, .fieldNotesFooter, .fieldNotes .editorialArticle { width: calc(100% - 40px); }
  .fieldNotesHeader { min-height: 76px; gap: 8px; }
  .fieldNotesHeaderSide { gap: 8px; }
  .fieldNotesNav { gap: 4px; }
  .fieldNotesNav a { padding-inline: 10px; }
  .fieldNotesBrand { gap: 6px; font-size: 19px; }
  .fieldNotesBrand img { width: 26px; height: 26px; }
  .repairHome { padding-top: 22px; }
  .repairWelcome { margin-bottom: 28px; }
  .fieldNotes .repairWelcome h1 { max-width: 560px; font-size: 36px; }
  .repairCards { gap: 20px; }
  .fieldNotes .repairCard h2 { font-size: 23px; }
  .repairOpening { gap: 24px; }
  .fieldNotesFooter { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 600px) {
  .fieldNotesHeader { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 10px 0; }
  .fieldNotesBrand { justify-self: start; }
  .fieldNotesHeaderSide { justify-content: space-between; }
  .fieldNotesNav { gap: 8px; }
  .fieldNotesNav a { padding-inline: 14px; font-size: 14px; }
  .repairHome { padding-top: 22px; }
  .fieldNotes .repairWelcome h1 { font-size: 34px; max-width: 360px; }
  .repairWelcome p { font-size: 16px; margin-top: 12px; max-width: 330px; }
  .repairCards { grid-template-columns: 1fr; gap: 38px; }
  .fieldNotes .repairCard h2 { font-size: 28px; margin-top: 18px; }
  .repairCard p { margin-bottom: 6px; }
  .repairArt { aspect-ratio: 1.65; }
  .repairOpening { grid-template-columns: 1fr; gap: 20px; }
  .fieldNotes .editorialArticle { padding-top: 12px; }
  .editorialReturn { margin-bottom: 14px; }
  .fieldNotes .editorialArticleHeader h1 { font-size: 36px; }
  .repairPoint { font-size: 17px; margin-top: 16px; }
  .fieldNotes .repairOpening .editorialScene img { max-height: 230px; }
  .editorialProse { font-size: 18px; }
  .repairExperiment .makeRoom { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .makeRoom .roomIntro, .makeRoom .roomControls, .makeRoom .roomStage, .makeRoom .roomResult, .makeRoom .roomCaption { grid-column: 1; grid-row: auto; }
  .makeRoom .roomControls { grid-row: 2; grid-template-columns: 1fr 1fr; gap: 8px; }
  .makeRoom .roomControls button { text-align: center; }
  .makeRoom .roomControls button.roomReset { grid-column: 1/-1; width: fit-content; justify-self: end; padding: 0 14px; }
  .makeRoom .roomStage { min-height: 332px; padding: 12px; }
  .makeRoom .roomSheet { padding: 16px; }
  .makeRoom .roomSampleStory { grid-template-columns: 1.25fr .75fr; }
  .makeRoom .roomSampleTitle { font-size: 24px; }
  .makeRoom .roomSampleHeading { font-size: 19px; }
  .makeRoom .roomSampleStory img { max-height: 124px; }
  .makeRoom .roomResult { min-height: 4.5em; }
  .repairExperiment .receiptExperiment { padding: 18px 14px; }
  .receiptExperiment .receiptStage { gap: 10px; }
  .receiptExperiment .receiptDelivered > div, .receiptExperiment .receiptSaved li, .receiptExperiment[data-mode="last"] .receiptSaved ul::before { min-height: 108px; padding: 10px; }
  .receiptExperiment .receiptDelivered p { font-size: 15px; }
  .receiptExperiment .receiptSaved li, .receiptExperiment[data-mode="last"] .receiptSaved ul::before { font-size: 13px; }
  .receiptExperiment .receiptResult { min-height: 4.5em; }
  .fieldNotesFooter { align-items: flex-start; text-align: left; padding-top: 10px; }
  .repairSignoff { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .fieldNotes *, .fieldNotes *::before, .fieldNotes *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
