body[data-step='2'].hasSelection .layout{grid-template-columns:202px minmax(0,1fr) 336px}
body[data-step='2'].hasSelection.focusCanvas .layout{grid-template-columns:minmax(0,1fr) 336px}
body[data-step='2'] .inspector{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 96px);overflow:auto;padding:16px 16px 20px}
body[data-step='2'] .inspector>.eyebrow{display:none}
body[data-step='2'] #newGroup{display:none!important}
#directForm .directHead{display:flex;align-items:center;justify-content:space-between;gap:8px}
#directForm h3{font-size:17px;margin:2px 0 6px}#directProgress{font-size:11px;color:var(--muted);white-space:nowrap}
#directForm .directPair{font-size:12px;margin:0 0 13px;color:var(--muted)}.directPair b{font-weight:500;color:var(--ink);margin-left:8px}
#directForm fieldset{padding:0;margin:0 0 13px;border:0;min-width:0}#directForm legend{font-size:13px;font-weight:600;margin-bottom:6px;padding:0}#directForm legend span{font-size:11px;font-weight:400;color:var(--muted)}
.directChoices{display:grid;gap:5px}.directChoices.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
#directForm label.directChoice{display:flex;align-items:flex-start;gap:8px;margin:0;padding:7px 9px;border:1px solid var(--line);border-radius:5px;cursor:pointer;font-size:13px;line-height:1.4}
#directForm .directChoice:hover{background:var(--paper)}#directForm .directChoice:has(input:checked){border-color:var(--green);background:#edf0e7}
#directForm .directChoice:focus-within{outline:2px solid var(--warm);outline-offset:2px}
#directForm input[type=radio]{display:inline-block;flex:0 0 13px;width:13px;min-height:0;height:13px;margin:3px 0 0;accent-color:var(--green)}
.directChoice b{font-weight:500}.directChoice small{display:block;font-size:11px;color:var(--muted);margin-top:2px;line-height:1.4}
#directForm .directHint{font-size:11px;line-height:1.45;color:var(--muted);margin:6px 0 0}
#directForm .directNote{display:block;margin:12px 0 0;font-size:12px}#directForm textarea{min-height:52px;font-size:12px;margin-top:5px}
#directForm label.directConfirm{display:flex;align-items:flex-start;gap:7px;margin:10px 0;font-size:12px;line-height:1.5}#directForm .directConfirm input{flex:0 0 auto;margin-top:3px}
#directForm #relationFormError{font-size:12px;color:#9b3d28;margin:5px 0}#directForm #relationFormError:empty{display:none}
#directForm .directActions{display:flex;gap:7px;position:sticky;bottom:0;background:#fffefb;padding:8px 0 12px;border-top:1px solid var(--line);z-index:1}
.directActions button{font-size:12px;min-height:36px}.directActions .primary{flex:1}
#directForm .directMore{margin-top:12px;padding-top:10px}.directMore summary{font-size:12px}.directMore p{font-size:11px!important}
#directForm #gEvidence{display:flex;flex-wrap:wrap;gap:8px}#directForm #gEvidence label{margin:0;font-size:12px;display:flex;align-items:center;gap:4px}
#directForm .directMore>a{display:inline-block;margin-top:12px}#deleteDirect{margin-top:12px;width:100%}
#groups .groupRow span{white-space:normal}#groups .groupRow small{font-size:11px;display:block;margin-top:4px}
.correspondence{padding:0 0 12px;margin-bottom:13px;border-bottom:1px solid var(--line)}
.correspondenceTitle{display:flex;justify-content:space-between;font-size:12px}.correspondenceTitle small{color:var(--muted);font-size:10px}
.correspondenceValue{display:flex;align-items:center;gap:8px;margin:4px 0}.correspondenceValue strong{font-size:18px;font-weight:500}
.relationSketch{width:90px;height:30px;flex:none}#directForm .correspondence .directPair{margin:0;font-size:12px}
.relationSketch,.subtypeSketch{background:transparent;touch-action:auto}
#directForm .memberHint{font-size:11px;color:var(--muted);margin:5px 0}
.paperExample{font-size:12px;margin:6px 0 0}.paperExample summary{color:var(--green);cursor:pointer;width:fit-content;padding:3px 0}
.paperExampleContent{margin-top:8px}.paperExampleContent>p{font-size:12px!important;line-height:1.5;margin:6px 0}.paperExampleContent>small{display:block;font-size:10px;line-height:1.5;color:var(--muted)}
.paperCrop{width:100%;height:auto;display:block;overflow:hidden;background:var(--paper)}.exampleEpochs{display:flex;justify-content:space-around}
#directForm .subtypeChoices .directChoice>span{flex:1;min-width:0}.subtypeSketch{display:block;width:100%;max-width:235px;height:58px;margin:4px 0 0}
.subtypeSketch .kept{fill:#a8b79a;stroke:#52634b;stroke-width:1.5}.subtypeSketch .removed{fill:#ece9e1;stroke:#706a5f;stroke-width:1.5;stroke-dasharray:3 2}.subtypeSketch .added{fill:#dfb394;stroke:#a26640;stroke-width:1.5}.diagramArrow{fill:none;stroke:#706a5f;stroke-width:1.2}
#directForm .diagramLegend{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted);margin:0 0 7px}.diagramLegend i{display:inline-block;width:10px;height:9px;margin-left:4px}.diagramLegend .kept{background:#a8b79a;border:1px solid #52634b}.diagramLegend .removed{background:#ece9e1;border:1px dashed #706a5f}.diagramLegend .added{background:#dfb394;border:1px solid #a26640}
.selectionExamples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:10px 0}.selectionExamples>div{min-width:0}.selectionExamples b,.selectionExamples span{display:block;font-size:12px}.selectionExamples span{font-size:11px;color:var(--muted);margin-top:4px}
#directForm .directActions{position:sticky;bottom:0}.fieldGuide .selectionExamples{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.selectionExamples{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1200px){body[data-step='2'].hasSelection .layout{grid-template-columns:155px minmax(0,1fr) 312px}body[data-step='2'].hasSelection.focusCanvas .layout{grid-template-columns:minmax(0,1fr) 312px}}
@media(max-width:900px){body[data-step='2'].hasSelection .layout{display:block}body[data-step='2'] .inspector{position:static;max-height:none;overflow:visible;padding-bottom:40px}#directForm .directActions{position:static}}

/* Optional observation layer; one collapsed line in the main workflow. */
#directForm .roofDetails{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 0;margin:12px 0}
#directForm .roofDetails>summary{font-size:13px;cursor:pointer;color:var(--ink)}
#roofSummary{float:right;color:var(--muted);font-size:12px;font-weight:400}
#directForm .roofDetails[open]>summary{margin-bottom:12px}
#directForm .roofDetails fieldset{margin-bottom:10px}
#directForm .roofDetails>label{font-size:12px;margin:0}
#directForm .roofDetails input[type=checkbox]{width:13px;height:13px;flex:0 0 13px;margin:3px 0 0;accent-color:var(--green)}
#directForm .roofDetails .directChoice:has(input:disabled){opacity:.55;cursor:default}
