:root { color-scheme: light; --ink: #18362e; --muted: #64756d; --line: #dae2d9; --paper: #fffefa; --accent: #255e47; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f5ee; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: wait; opacity: .6; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #8aa56f; outline-offset: 4px; }
.masthead { min-height: 83px; padding: 20px 5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 750; letter-spacing: 1.3px; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 31px; height: 34px; background: var(--ink); color: #f1f6e4; font-family: Georgia, serif; font-size: 23px; border-radius: 6px 6px 13px 6px; }
.wordmark-detail { color: var(--muted); font-weight: 500; }
.version { font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.version strong { margin-left: 8px; padding: 4px 7px; border: 1px solid #c5d2be; border-radius: 4px; color: var(--ink); }
main { max-width: 1450px; margin: auto; padding: 0 5%; }
.intro { padding: 53px 0 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #779a61; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -2px; margin: 22px 0 20px; }
.lede { max-width: 570px; color: var(--muted); line-height: 1.75; }
.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 24px; }
.input-panel, .output-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.input-panel { padding: 25px; }
.panel-heading, .output-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-heading h2 { margin: 0; font-size: 14px; font-weight: 650; }
.step { font-family: monospace; font-size: 10px; color: #73856c; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
form { margin-top: 27px; }
label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
input[type="text"] { width: 100%; padding: 11px 12px; border: 1px solid #cdd6ca; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; }
input::placeholder { color: #8b958c; }
.field-hint { margin: 6px 0 22px; color: var(--muted); font-size: 11px; }
.primary { width: 100%; border: 0; border-radius: 6px; background: var(--accent); color: white; padding: 12px 16px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.primary:hover { background: #1b4936; }
.form-note { margin: 11px 0 23px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sample-row { border-top: 1px solid var(--line); padding-top: 17px; display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 11px; color: var(--muted); }
.text-button { background: none; border: 0; padding: 0; font-size: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.import-panel { margin-top: 22px; font-size: 11px; color: var(--muted); }
.import-panel summary { cursor: pointer; color: var(--ink); }
.import-panel input { width: 100%; font-size: 11px; }
.output-heading { min-height: 71px; padding: 20px 24px; border-bottom: 1px solid var(--line); justify-content: space-between; }
.state { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; color: #64745d; background: #edf2e7; padding: 4px 8px; border-radius: 4px; }
.empty-state { min-height: 376px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; }
.document-icon { width: 43px; height: 54px; border: 1px solid #b4c5ab; background: #f6f8f0; border-radius: 5px; padding: 14px 9px; transform: rotate(-6deg); margin-bottom: 19px; }
.document-icon span { display: block; border-bottom: 1px solid #a8ba9f; margin-bottom: 7px; }
.document-icon span:last-child { width: 65%; }
.empty-state h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin: 0 0 7px; }
.empty-state p { font-size: 12px; color: var(--muted); }
.report-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 23px; font-size: 9px; color: #6e7c63; }
.report-features span::before { content: "✓"; padding-right: 5px; }
.status, .error { margin: 20px 24px; padding: 13px 15px; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.status { background: #edf2e7; }
.error { background: #fff1df; color: #714b18; border: 1px solid #ebd4b3; }
.report-toolbar { padding: 15px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
#report-meta { font-size: 11px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; }
.secondary { background: white; color: var(--ink); border: 1px solid #cdd6ca; border-radius: 5px; padding: 6px 10px; font-size: 11px; }
.secondary:hover { background: #edf2e7; }
.markdown { padding: 12px 28px 30px; color: #29382f; font-size: 14px; overflow-wrap: anywhere; }
.markdown h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.6px; }
.markdown h2 { font-size: 19px; margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.markdown h3 { font-size: 16px; }
.markdown table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 12px; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.markdown th { background: #eff3e9; }
.markdown tr:nth-child(even) { background: #f8faf4; }
.markdown pre { padding: 15px; background: #eff2eb; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown code { font-size: .87em; background: #edf1e7; padding: 2px 4px; border-radius: 3px; }
.markdown pre code { padding: 0; }
.markdown blockquote { border-left: 3px solid #9ab18b; margin-left: 0; padding-left: 18px; color: var(--muted); }
.markdown li { margin: 6px 0; }
.markdown img { max-width: 100%; }
footer { margin: 28px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
@media (min-width: 1300px) { .workspace { grid-template-columns: 360px minmax(0, 1fr); } }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; } .intro { padding-top: 32px; } .wordmark-detail { display: none; } .empty-state { min-height: 300px; } }
@media (max-width: 440px) { .version { font-size: 8px; } .masthead { padding-inline: 5%; gap: 5px; } .output-heading { padding: 18px; } .markdown { padding-inline: 18px; } .report-features { gap: 8px; } }
@media print {
  body { background: white; color: black; }
  .masthead, .intro, .input-panel, .output-heading, .report-toolbar, .status, .error, footer, #empty-state, noscript { display: none !important; }
  main { max-width: none; padding: 0; }
  .workspace { display: block; }
  .output-panel { border: none; overflow: visible; }
  .markdown { padding: 0; font-size: 10pt; }
  .markdown h1 { font-size: 22pt; }
  .markdown h2, .markdown h3 { break-after: avoid; }
  .markdown tr { break-inside: avoid; }
  .markdown thead { display: table-header-group; }
}
