.home-region-controls{background:#fff;color:#24342c;padding:12px;border-block:1px solid #aaa;font-family:"OGUK Gungsuh",serif;box-sizing:border-box}
.home-region-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.home-region-controls button{border:1px solid #929b96!important;background:transparent!important;color:#24342c!important;padding:8px 10px;font:inherit;border-radius:4px;min-height:44px;cursor:pointer}
.home-region-controls button[aria-pressed="true"]{border:2px solid #893586!important;background:#f8f1f8!important}
.home-region-controls .en,.demo-case-dock .en{display:block;font-size:12px;line-height:1.4;margin-top:3px;opacity:1}
.home-coordinate-fields{display:flex;align-items:end;gap:8px;max-width:580px}
.home-coordinate-fields label{flex:1;min-width:0;font-size:14px}
.home-coordinate-fields input{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:4px;border:1px solid #929b96;background:white;color:#172c22;padding:7px;font:16px Arial,sans-serif;border-radius:4px}
.home-coordinate-fields button{flex:none;font-size:13px}
.home-region-controls p{font-size:13px;line-height:1.5;margin:10px 0 0;color:#24342c!important;white-space:pre-line}
#homeRegionMessage:empty{display:none}
body .demo-case-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,1.2fr);align-items:stretch}
body .demo-case-row .demo-case-dock{display:flex;flex-direction:column;align-items:stretch;justify-content:start;width:auto;max-width:none;min-width:0;margin:0;border:1px solid #aaa;box-sizing:border-box}
body .demo-case-dock h3{margin:0;padding:10px 12px;font-size:17px;color:#24342c;background:#fff}
body .stage .demo-case-canvas{width:100%;height:340px;box-sizing:border-box;max-width:100%;flex:none;border:0;border-block:1px solid #ccc;cursor:grab}
body .demo-status-stack{height:auto;min-width:0;grid-template-rows:1fr 1fr}
body .demo-status-panel,body .demo-status-stack #boardInfo,body #homeRegionInfo{font:14px/1.7 "OGUK Gungsuh",serif;color:#24342c!important;background:#fff!important;padding:12px;border-color:#aaa;white-space:pre-line;overflow-wrap:anywhere;box-sizing:border-box;margin:0}
body #homeRegionInfo{min-height:112px}
#board:focus-visible,#homeRegionBoard:focus-visible{outline:3px solid #893586;outline-offset:-3px}
@media(max-width:700px){body .demo-case-row{grid-template-columns:minmax(0,1fr)}body .demo-status-stack{grid-template-rows:auto auto}body .stage .demo-case-canvas{height:300px}.home-region-controls{padding:8px}.home-region-actions{gap:5px}.home-region-actions button{flex:1 1 42%;font-size:13px}.home-coordinate-fields{gap:4px}.home-coordinate-fields label{font-size:12px}.home-coordinate-fields .en{font-size:9px}.home-coordinate-fields button{padding:7px 5px;font-size:12px}.home-coordinate-fields button .en{font-size:9px}}
body #homeRegionInfo,body .demo-case-dock h3,body .home-region-controls,body .home-region-controls :is(span,p,label,button){text-shadow:none!important;font-weight:400}
/* Scope these exceptions to the white board panels, preserving the site theme. */
html body#space-home :is(#homeRegionControls,#homeRegionDock),html body#space-home :is(#homeRegionControls,#homeRegionDock) *{color:#24342c!important;text-shadow:none!important;color-scheme:light}
html body#space-home :is(#homeRegionControls,#homeRegionDock,#homeCoordinateForm){background:#fff!important}
html body#space-home #homeRegionControls :is(button,input){background:transparent!important;color:#24342c!important;border:1px solid #929b96!important;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none}
html body#space-home #homeRegionControls button[aria-pressed="true"]{border:2px solid #893586!important;background:#f8f1f8!important;outline:none}
html body#space-home #homeRegionControls button:hover{background:#eef2ef!important;border-color:#52675a!important}
