/* Drafting is confined to the illustration: reading and decision surfaces stay quiet. */
.story-drawing {display:block;width:100%;height:auto;overflow:visible;color:hsl(var(--text));}
.story-drawing :is(path,rect,circle) {fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke;}
.story-drawing .drawing-line {stroke:hsl(var(--text-muted));}
.story-drawing .drawing-thread {stroke:hsl(var(--primary-400));}
.story-drawing .drawing-mesh {stroke:hsl(var(--text-muted) / .32);stroke-width:.7;}
.story-drawing .drawing-register {stroke:hsl(var(--text-muted) / .6);}
.story-drawing .drawing-boundary {stroke:hsl(var(--primary));fill:hsl(var(--primary-100));}
.story-drawing .drawing-dashed {stroke:hsl(var(--reference));stroke-dasharray:3 4;}
.story-drawing .drawing-point {fill:hsl(var(--text-strong));stroke:none;}
.story-drawing :is(.drawing-trace,.drawing-accent) {stroke:hsl(var(--primary));stroke-width:1.5;}
.story-drawing .drawing-selection {fill:hsl(var(--primary-200));stroke:hsl(var(--primary));}
.story-drawing text {fill:hsl(var(--text-muted));font:500 10px var(--font-mono,monospace);letter-spacing:.04em;}
.story-drawing .drawing-title {font-size:8px;letter-spacing:.045em;}
/* The theory sheets' drawing and its numbered legend, inside Ark's figure frame (js/pages/sheet.js):
   choosing a legend entry opens that point. Every label is 12px or more: the drawing keeps its full
   width (no max-height, which letterboxed it and shrank its labels below the frame's 12px floor). */
.story-plate {display:grid;gap:10px;}
.story-legend {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 14px;}
.story-legend .story-record {display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 0;border:0;background:none;color:hsl(var(--text-muted));font:500 13px/1.35 var(--font-sans,sans-serif);text-align:left;cursor:pointer;}
.story-legend .story-record::before {content:attr(data-diagram-number);color:hsl(var(--text-muted));font:500 12px/1.6 var(--font-mono,monospace);}
.story-legend .story-record:hover {color:hsl(var(--text-strong));}
.story-legend .story-record[aria-pressed="true"],.story-legend .story-record[aria-pressed="true"]::before {color:hsl(var(--reference));}
@media(min-width:901px){

 #scene .guided-page .lifecycle-boundary {padding:10px 14px;}

}

@media(min-width:901px) and (max-height:780px){
 #scene .guided-page {padding:26px;gap:10px;}

}
