.mlgov-studio{--red:#b42318;--yellow:#b54708;--green:#137333;--line:#d0d7de;--soft:#f6f8fa;max-width:1400px;margin:0 auto;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#1f2328}.mlgov-head{background:#fff;border:1px solid var(--line);padding:1rem;margin:1rem 0}.mlgov-head h2{margin:.1rem 0}.mlgov-doc-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.mlgov-doc-tabs a{border:1px solid var(--line);padding:.45rem .7rem;text-decoration:none;border-radius:999px;background:#fff}.mlgov-doc-tabs a.is-active{background:#1f2328;color:#fff}.mlgov-jump{position:sticky;top:0;z-index:10;background:#fff;border:1px solid var(--line);padding:.6rem;margin-bottom:1rem;box-shadow:0 1px 4px rgba(0,0,0,.06)}.mlgov-legend{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem;font-size:.9rem}.mlgov-legend span:before{content:"";display:inline-block;width:.8em;height:.8em;border-radius:50%;margin-right:.35em}.legend-draft:before{background:var(--red)}.legend-progress:before{background:#f4b400}.legend-complete:before{background:var(--green)}.mlgov-jump-link{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:.12rem;border:2px solid transparent;border-radius:.4rem;color:#fff;text-decoration:none;font-weight:700}.mlgov-jump-link.status-ocr_draft{background:var(--red)}.mlgov-jump-link.status-in_progress{background:#f4b400;color:#111}.mlgov-jump-link.status-complete{background:var(--green)}.mlgov-jump-link.is-current{border-color:#111;outline:3px solid #fff;box-shadow:0 0 0 2px #111}.mlgov-page{background:#fff;border:1px solid var(--line);padding:1rem;margin:1rem 0 2rem}.mlgov-page h2{border-bottom:1px solid var(--line);padding-bottom:.5rem}.mlgov-page h2 span{font-weight:400;color:#57606a}.mlgov-status{display:inline-block;padding:.25rem .55rem;border-radius:999px;color:#fff;font-size:.85rem}.mlgov-status.ocr_draft{background:var(--red)}.mlgov-status.in_progress{background:#f4b400;color:#111}.mlgov-status.complete{background:var(--green)}.mlgov-toolbar{border:1px solid var(--line);background:var(--soft);padding:.75rem;margin:.75rem 0}.mlgov-toolbar .button,.mlgov-unit .button{cursor:pointer}.mlgov-help{font-size:.9rem;color:#57606a}.mlgov-save-message,.mlgov-unit-message{margin-left:.5rem;font-weight:700}.mlgov-save-message.dirty{color:#b54708}.mlgov-save-message.saved,.mlgov-unit-message.saved{color:var(--green)}.mlgov-save-message.error,.mlgov-unit-message.error{color:var(--red)}.mlgov-layout{display:grid;grid-template-columns:minmax(280px,48%) 1fr;gap:1rem;align-items:start}.mlgov-scan{margin:0;position:sticky;top:4.5rem}.mlgov-scan img{width:100%;height:auto;border:1px solid var(--line);background:#fff}.mlgov-scan figcaption{font-size:.85rem;color:#57606a}.mlgov-transcription{display:grid;grid-template-columns:1fr minmax(160px,28%);gap:1rem}.mlgov-main,.mlgov-marginal,.mlgov-editorial{border:1px solid var(--line);padding:.7rem;background:#fff}.mlgov-main h3,.mlgov-marginal h3{margin-top:0}.mlgov-editable{white-space:pre-wrap;font-family:ui-serif,Georgia,serif;font-size:1rem;line-height:1.55;margin:0;min-height:5rem}.mlgov-editing .mlgov-editable{outline:2px dashed #0969da;background:#fffdf0;padding:.35rem}.mlgov-marginal .mlgov-editable{font-size:.9rem;color:#444}.mlgov-editorial{grid-column:1/-1;margin-top:1rem}.mlgov-units{margin-top:1rem;border-top:2px solid var(--line);padding-top:1rem}.mlgov-unit{border:1px solid var(--line);border-radius:.5rem;margin:.75rem 0;background:#fff}.mlgov-unit summary{padding:.75rem;background:var(--soft);cursor:pointer}.mlgov-unit-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding:.75rem}.mlgov-unit-field{display:flex;flex-direction:column;gap:.25rem}.mlgov-unit-field span{font-weight:700;font-size:.9rem}.mlgov-unit-field textarea{width:100%;min-height:7rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9rem;line-height:1.4}.mlgov-unit-actions{grid-column:1/-1;background:var(--soft);padding:.6rem}.mlgov-links{border-top:1px solid var(--line);padding:.75rem}.mlgov-links h4{margin-top:0}.mlgov-links li{margin:.4rem 0}.mlgov-links em{background:#eef6ff;padding:.12rem .35rem;border-radius:.25rem}.mlgov-add-link{display:grid;grid-template-columns:minmax(220px,2fr) minmax(180px,1fr) minmax(180px,1fr) auto;gap:.4rem;margin-top:.75rem}.mlgov-add-link select,.mlgov-add-link input{max-width:100%}.mlgov-delete-link{color:var(--red);border:0;background:0 0;cursor:pointer;text-decoration:underline}@media(max-width:900px){.mlgov-layout,.mlgov-transcription,.mlgov-unit-grid,.mlgov-add-link{grid-template-columns:1fr}.mlgov-scan{position:static}.mlgov-jump{position:static}.mlgov-unit-field textarea{min-height:5rem}}