/* Scoped to the authorized layout study; earlier scenes retain their approved CSS. */
#layouts .layout-svg {max-height:none;overflow:hidden}
#layouts .layout-grid {stroke:#6f6f6f;stroke-width:1;opacity:.55;fill:none}
#layouts .layout-grid>* {vector-effect:non-scaling-stroke}
#layouts .layout-artboard-reference {fill:#161616;stroke:#6f6f6f;stroke-width:1;vector-effect:non-scaling-stroke}
#layouts .layout-svg {aspect-ratio:8/5;width:100%;height:auto;background:#161616}
#layouts .layout-outline {fill:none;stroke:#6f6f6f;stroke-width:.65;opacity:.55}
#layouts .layout-outline path {fill:none;stroke:inherit}
#layouts [hidden] {display:none!important}
#layouts .layout-canvas-caption span+span {min-width:0;max-width:70%;overflow-wrap:anywhere}
#layouts .layout-figure figcaption span {color:var(--subtle);margin-left:8px}
#layouts .layout-selector {position:relative;z-index:2}
#layouts .layout-systems {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
#layouts .layout-systems button {display:flex;align-items:center;gap:12px;height:68px;min-width:0;border-bottom:2px solid transparent;font-size:1rem}
#layouts .layout-systems button[aria-pressed=true] {border-bottom-color:var(--accent)}
#layouts .layout-systems button>span {margin:0}
#layouts .layout-systems .system-label {font:500 clamp(.75rem,1.15vw,1.25rem) var(--font);color:inherit;white-space:nowrap}
#layouts .layout-systems .system-index {font:.625rem var(--font-technical)}
#layouts .layout-systems button i {margin:0;font-size:.75rem}
#layouts .picker-indicator {margin-left:auto;font-size:1.2rem;font-weight:400;color:var(--accent)}
#layouts .layout-systems button:hover {color:var(--fg)}
#layouts button:focus-visible {outline:2px solid var(--accent-light);outline-offset:4px}
#layouts .layout-selected-system {height:42px;padding-top:14px;font:.625rem var(--font-technical);letter-spacing:.05em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#layouts .layout-picker {position:absolute;top:100%;inset-inline:0;background:#0d1115;border:1px solid #161616;max-height:min(570px,58vh);overflow:auto;scroll-margin-top:100px}
#layouts .picker-topline {display:flex;align-items:center;gap:24px;padding:8px 20px;border-bottom:1px solid var(--border);font:.5625rem var(--font-technical);color:var(--muted)}
#layouts .picker-topline button {margin-left:auto;min-height:44px;min-width:44px;font-size:24px;color:var(--fg)}
#layouts .layout-gallery {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px;gap:1px}
#layouts .layout-gallery button {display:flex;flex-direction:column;text-align:left;min-width:0;padding:12px;border:1px solid transparent;color:var(--muted)}
#layouts .layout-gallery button:hover,#layouts .layout-gallery button[aria-pressed=true] {border-color:#ffffff;color:var(--fg);background:#161616}
#layouts .layout-gallery svg {width:100%;height:88px;fill:none;stroke:#b8b8b8;stroke-width:3;overflow:hidden}
#layouts .layout-gallery button>span {display:flex;gap:12px;margin-top:12px;min-height:28px;font:.5625rem/1.5 var(--font-technical)}
#layouts .layout-gallery small {color:var(--accent);font-size:.5625rem}
#layouts .layout-field-space {min-height:390px}
#layouts .layout-fields,#layouts .layout-system-fields {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 28px;align-items:start;padding-top:24px}
#layouts .study-field {display:flex;flex-wrap:wrap;gap:10px;min-width:0;color:var(--muted);font:.5625rem var(--font-technical)}
#layouts .study-field>span {flex:1;min-height:14px}
#layouts .study-field output {font-size:.5rem;color:var(--subtle)}
#layouts .study-field input,#layouts .study-field select {display:block;width:100%;min-width:0;height:44px;margin:0;padding:8px;color:var(--fg);border:1px solid var(--border);border-radius:0;background:#161616;font:.6875rem var(--font-technical)}
#layouts .study-field input[type=checkbox] {width:44px;accent-color:var(--accent)}
#layouts .study-field input[type=color] {padding:7px}
#layouts .layout-system-settings {margin-top:24px;border-top:1px solid var(--border)}
#layouts .layout-system-settings>p {padding-top:16px;font:.5625rem var(--font-technical);color:var(--subtle)}
#layouts .layout-system-fields {padding-top:16px}
@media(max-width:1100px){#layouts .layout-fields,#layouts .layout-system-fields {grid-template-columns:repeat(4,minmax(0,1fr))}#layouts .layout-field-space {min-height:460px}}
@media(max-width:700px){#layouts .layout-systems{gap:10px}#layouts .layout-systems button{gap:8px;font-size:.75rem}#layouts .system-long{display:none}#layouts .layout-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}#layouts .layout-fields,#layouts .layout-system-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}#layouts .layout-field-space{min-height:790px}#layouts .picker-topline{gap:10px;padding:6px 12px}#layouts .picker-topline>span:nth-child(2){display:none}#layouts .layout-gallery svg{height:68px}#layouts .layout-figure figcaption{font-size:.625rem}#layouts .layout-figure figcaption span{display:block;margin:6px 0 0}#layouts .layout-canvas-caption{font-size:.5rem}}
