/* Standalone print edition. Inverse ink, quiet rules, unchanged geometry. */
html[data-theme]{
 --os-bg:#000;--os-text:#fff;--os-ink:#fff;--os-dim:#fff;
 --os-line:color-mix(in srgb,var(--os-text) 38%,transparent);--paper:var(--os-bg);
 background:var(--os-bg)!important;color:var(--os-text);color-scheme:dark;
}
:root[data-theme][data-theme][data-theme]{background:var(--os-bg)!important;}
html[data-theme=light]{--os-bg:#fff;--os-text:#000;--os-ink:#000;--os-dim:#000;color-scheme:light;}
body,main,.console,.workspace,.context,.narrative,.transport,.register,.instrument,.bezel,.edition-note,dialog{background:var(--os-bg);color:var(--os-text);box-shadow:none;}
body{font-family:Arial,Helvetica,sans-serif;}
.mast h1{font:700 clamp(32px,4vw,60px)/1 Arial,Helvetica,sans-serif;letter-spacing:-.035em;}
.mast h1 em{font-style:normal;}
.eyebrow,.library,.register,.transport,.bezel,.context,.instrument header,.hint,.geometry-tools,.edition-note,.instrument-footer,#ticker{font-family:Arial,Helvetica,sans-serif;}
.context h3,dialog h2{font-family:Arial,Helvetica,sans-serif;}
.narrative p{font-family:Arial,Helvetica,sans-serif;line-height:1.45;}
html[data-theme] .site-enclosure{
 --enclosure-ink:var(--os-text)!important;--enclosure-paper:var(--os-bg)!important;
 --enclosure-rule:var(--os-line)!important;--enclosure-bezel:var(--os-line)!important;
 color:var(--os-text);border-color:var(--os-line)!important;
}
.site-enclosure-nav,.site-enclosure-footer,.site-enclosure-fineprint{background:var(--os-bg)!important;color:var(--os-text)!important;}
.site-interference-field{display:none!important;}
button,select,input,.device,.site-enclosure-button{background:var(--os-bg);color:var(--os-text);border-color:var(--os-line);accent-color:var(--os-ink);}
.site-enclosure-nav :is(button,select){font-size:inherit;}
button.primary{background:var(--os-text);color:var(--os-bg);}
button:hover,button[aria-pressed=true]{border-color:var(--os-text);}
.expression{font-family:Arial,Helvetica,sans-serif;}
.context{background:var(--os-bg);}
/* CSS fullscreen remains inside the shared bezel, including iPhone fallback. */
.console.screen-takeover{
 top:calc(var(--enclosure-visible-top,0px) + var(--enclosure-top,34px) + var(--enclosure-edge,2px));
 right:var(--enclosure-edge,2px);bottom:calc(var(--enclosure-bottom,30px) + var(--enclosure-edge,2px));left:var(--enclosure-edge,2px);
 width:auto;height:calc(var(--enclosure-visible-height,100dvh) - var(--enclosure-top,34px) - var(--enclosure-bottom,30px) - 2 * var(--enclosure-edge,2px));
}
.console.screen-takeover .workspace{flex:1 1 240px;min-height:240px;}
.console.screen-takeover .drawing{min-height:120px;}
@media(max-width:850px){html[data-theme]{--os-line:color-mix(in srgb,var(--os-text) 20%,transparent);}main{padding:16px 10px;}.mast{margin-bottom:18px;}.instrument header{border-bottom-color:var(--os-line);}}
