.mc-sphere { display:grid; gap:1rem; color:var(--ink); }
.sphere-setup,.sphere-controls,.sphere-plan { display:flex; gap:1rem; align-items:end; flex-wrap:wrap; }
.sphere-plan { align-items:start; }
.mc-sphere label { display:grid; gap:.35rem; font-weight:600; }
.mc-sphere :is(input,select,button) { box-sizing:border-box; max-width:100%; min-height:44px; border:1px solid var(--border-soft); border-radius:.5rem; padding:.5rem .7rem; font:inherit; color:var(--ink); background:var(--surface); }
.mc-sphere button,.mc-sphere summary { cursor:pointer; }
.mc-sphere button:disabled { opacity:.55; cursor:default; }
.sphere-layer { flex:1 1 22rem; min-width:0; }
.sphere-layer canvas { display:block; max-width:25rem; width:100%; height:auto; image-rendering:pixelated; border:1px solid var(--border-soft); }
.sphere-plan>div:last-child { flex:1 1 13rem; min-width:0; }
.sphere-plan details { margin-top:1rem; }
.sphere-plan pre { white-space:pre-wrap; max-height:23rem; overflow:auto; }
.mc-sphere .sphere-total { margin:0; font-size:1.2rem; font-weight:650; }
.mc-sphere [hidden] { display:none; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply <id>. */
.tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 614px; }
@media (max-width: 668px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 668px; } }
@media (max-width: 659px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 642px; } }
@media (max-width: 612px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 714px; } }
@media (max-width: 420px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 754px; } }
@media (max-width: 403px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 726px; } }
@media (max-width: 375px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 698px; } }
@media (max-width: 344px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 709px; } }
@media (max-width: 324px) { .tool-view-placeholder[data-tool="minecraft-sphere-generator"] { min-height: 791px; } }
