/* The free builder uses the same type, ink and drawing rules as the main site. */
.tool-intro { padding-top: 30px; padding-bottom: 38px; }
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.tool-breadcrumb a { color: inherit; text-underline-offset: 3px; }
.tool-intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: start; }
.tool-intro h1 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.12; max-width: 24ch; }
.tool-intro-grid p { font-size: 17px; line-height: 1.55; }
.tool-intro-grid .tool-privacy { margin: 14px 0 17px; color: var(--muted); font-size: 13px; }
.tool-workspace { padding-bottom: 0; }
#report-editor { border: 1px solid var(--ink); min-width: 0; margin: 0; padding: 0; scroll-margin-top: 20px; }
.report-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 20px 24px; border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.report-toolbar h2 { font-size: 22px; }
.report-toolbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.report-toolbar .btn { min-height: 42px; padding: 9px 18px; }
.tool-status { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; max-width: 45ch; }
.report-feedback { padding: 11px 24px; border-bottom: 1px solid var(--line); background: var(--fill-soft); font-size: 13px; }
.review-checks summary { cursor: pointer; width: fit-content; }
.review-checks ul { margin: 10px 0 2px 18px; line-height: 1.7; }
.tool-message { color: var(--dykem); font-size: 13px; line-height: 1.5; }
.tool-message { grid-column: 1 / -1; }
.tool-message:empty { display: none; }
.tool-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; }
.report-fields { min-width: 0; padding: 28px 24px 24px; border-right: 1px solid var(--line); }
.editor-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.editor-heading h2 { font-size: 21px; }
.editor-heading .mono { font-size: 12px; color: var(--muted); }
.equipment-heading { padding-top: 28px; margin-top: 12px; margin-bottom: 7px; border-top: 1px solid var(--line); }
.section-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.report-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 13px; min-width: 0; }
.report-field > span { font-weight: 500; }
.report-field input, .report-field textarea, .report-field select { font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--white); border: 1px solid #a4aab2; border-radius: 0; padding: 10px 11px; width: 100%; min-width: 0; min-height: 44px; }
.report-field input:hover, .report-field textarea:hover, .report-field select:hover { border-color: var(--ink); }
.report-field textarea { resize: vertical; }
.report-field :focus-visible { outline: 2px solid var(--dykem); outline-offset: 2px; }
.report-field input[type=file] { color: var(--muted); font-size: 12px; padding: 7px; }
.report-field input::file-selector-button { font: inherit; font-weight: 500; color: var(--ink); background: var(--fill); padding: 6px 10px; border: 0; border-right: 1px solid var(--line); margin-right: 10px; cursor: pointer; }
.unit-editor { border: 1px solid var(--line); margin: 0 0 12px; scroll-margin-top: calc(var(--report-toolbar-height, 100px) + 16px); }
.unit-editor > summary { cursor: pointer; font-size: 16px; font-weight: 600; padding: 13px 16px; background: var(--fill-soft); overflow-wrap: anywhere; }
.unit-editor[open] > summary { border-bottom: 1px solid var(--line); }
.unit-body { padding: 20px 16px 4px; }
.small-button { font: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; min-height: 42px; padding: 9px 13px; cursor: pointer; border: 1px solid #a4aab2; background: var(--white); color: var(--ink); }
.small-button:hover { border-color: var(--ink); background: var(--fill); }
.unit-body > .small-button, .photo-editor .small-button { min-height: 40px; margin: 0 0 12px; padding: 4px 0; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.add-unit { width: 100%; text-align: left; padding-left: 16px; border-style: dashed; }
.photo-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-editor figure { min-width: 0; }
.photo-editor img { height: 140px; width: 100%; object-fit: contain; background: var(--fill-soft); border: 1px solid var(--line); margin-bottom: 8px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 20px; }
.draft-tools { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.draft-tools summary { cursor: pointer; font-weight: 500; }
.draft-tools p { margin-top: 14px; color: var(--muted); }
.draft-tools .report-actions { margin: 16px 0; gap: 10px; }
.draft-tools .report-field { margin-bottom: 0; }
.preview-panel { min-width: 0; padding: 26px 24px 20px; position: sticky; top: calc(var(--report-toolbar-height, 100px) + 12px); background: var(--fill-soft); align-self: start; scroll-margin-top: calc(var(--report-toolbar-height, 100px) + 16px); }
.preview-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.preview-heading h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.preview-heading span { color: var(--muted); font-size: 11px; }
.preview-scroll { max-height: calc(100dvh - var(--report-toolbar-height, 100px) - 130px); overflow: auto; scrollbar-gutter: stable; padding: 1px 5px 8px 1px; }
.preview-scroll:focus-visible { outline: 2px solid var(--dykem); outline-offset: 3px; }
.report-paper { padding: 28px 26px; background: var(--white); border: 1px solid var(--line); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.report-company { color: var(--dykem); font-weight: 600; padding-bottom: 0; }
.report-paper h2 { font-size: 29px; margin: 8px 0 18px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.report-paper h3 { font-size: 15px; margin: 22px 0 6px; }
.report-paper h4 { margin: 16px 0 4px; font-family: var(--font-cond); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.report-paper p { margin: 6px 0; }
.report-paper ul { padding-left: 16px; }
.report-paper li + li { margin-top: 8px; }
.preview-unit { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 2px; }
.preview-unit figure { margin: 16px 0; }
.preview-unit img { display: block; max-height: 220px; }
.preview-unit figcaption { font-size: 11px; color: var(--muted); margin-top: 5px; }
.preserve-lines { white-space: pre-wrap; }
.preview-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 12px; }
.preview-jump { display: none; }
.tool-help { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 48px; padding-bottom: 52px; }
.tool-help h2 { font-size: 24px; margin-top: 12px; }
.help-questions details { border-top: 1px solid var(--line); padding: 14px 0; }
.help-questions details:last-child { border-bottom: 1px solid var(--line); }
.help-questions summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.help-questions p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.help-questions a { text-underline-offset: 3px; }
.tool-next { border-top: 1px solid var(--line); padding: 48px 0 52px; background: var(--fill-soft); }
.tool-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.tool-next h2 { margin-top: 18px; font-size: 32px; }
.tool-next p { font-size: 16px; }
.tool-next .btn { padding-left: 18px; padding-right: 18px; }
.footer-description { font-size: 14px; margin-top: 6px; }
.footer-copyright { margin-top: 10px; }
button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 900px) {
  .tool-intro-grid { gap: 28px; }
  .tool-shell { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .report-fields, .preview-panel { padding-left: 18px; padding-right: 18px; }
  .field-grid { column-gap: 12px; }
  .report-paper { padding: 20px 18px; }
}
@media (max-width: 760px) {
  .tool-intro { padding-top: 24px; padding-bottom: 28px; }
  .tool-breadcrumb { margin-bottom: 20px; font-size: 12px; }
  .tool-intro-grid, .tool-shell, .tool-next-grid, .tool-help { grid-template-columns: 1fr; gap: 22px; }
  .tool-intro h1 { font-size: 30px; }
  .tool-intro-grid p { font-size: 16px; }
  .tool-intro-grid .tool-privacy { margin: 12px 0; }
  .report-toolbar { padding: 16px; grid-template-columns: 1fr; gap: 10px; }
  .report-toolbar h2 { font-size: 20px; }
  .report-toolbar-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .report-toolbar-actions > * { flex: 1; }
  .report-toolbar .btn { font-size: 12px; letter-spacing: .05em; padding-left: 10px; padding-right: 10px; }
  .report-feedback { padding: 12px 16px; }
  .report-fields { padding: 24px 16px 0; border-right: 0; }
  .report-field input, .report-field textarea, .report-field select { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .report-field { margin-bottom: 16px; }
  .unit-body { padding: 18px 12px 2px; }
  .preview-jump { display: inline; font-size: 12px; text-underline-offset: 3px; }
  .preview-panel { position: static; padding: 22px 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--report-toolbar-height, 140px) + 16px); }
  .preview-scroll { max-height: 65dvh; }
  .preview-heading h2 { font-size: 16px; }
  .report-paper { padding: 24px 20px; font-size: 13px; }
  .tool-help { padding-top: 32px; padding-bottom: 36px; gap: 20px; }
  .tool-help h2 { margin: 0; }
  .tool-next { padding: 36px 0; }
  .tool-next h2 { font-size: 30px; }
  .tool-next .report-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media print {
  .site-header, .site-footer, .tool-intro, .report-toolbar, .report-feedback, .report-fields, .preview-heading, .preview-note, .tool-help, .tool-next, body::after { display: none; }
  .tool-shell { display: block; }
  .tool-workspace, .preview-panel, .report-paper { padding: 0; border: 0; background: white; }
  #report-editor { border: 0; }
  .preview-panel { position: static; }
  .preview-scroll { max-height: none; overflow: visible; }
  .preview-unit { break-before: page; }
  .report-paper figure { break-inside: avoid; }
}

.preview-register > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }

/* The live content preview follows the document's hierarchy. */
.report-paper .report-company { padding-bottom: 16px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.report-paper .report-kicker { margin-top: 18px; color: var(--muted); font-size: 14px; }
.report-paper h2 { margin: 3px 0 12px; padding: 0; border: 0; font-size: 23px; line-height: 1.2; }
.report-paper .report-meta { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.report-paper .report-outcome { font-size: 13px; line-height: 1.6; }
.report-paper .report-actions { padding-top: 14px; border-top: 2px solid #8b5b1b; }
.preview-unit { border-top: 2px solid var(--ink); }

@font-face { font-family: "General Sans"; src: url("/assets/report-fonts/GeneralSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/report-fonts/GeneralSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
.report-paper, .report-paper h2, .report-paper h3, .report-paper h4 { font-family: "General Sans", var(--font-sans); }

.equipment-handoff { padding: 20px; margin-top: 24px; border: 1px solid var(--dykem); background: var(--fill-soft); scroll-margin-top: calc(var(--report-toolbar-height, 100px) + 16px); }
.equipment-handoff h2 { font-size: 20px; }
.equipment-handoff p { font-size: 13px; line-height: 1.5; margin: 10px 0 18px; }
.equipment-handoff .report-actions { gap: 12px; margin-top: 0; }
