.rot-geometry,.geo-controls{--geo-paper:#fffef9;--geo-field:#96462f;--geo-probe:#695076;--geo-ink:#203f37;--geo-muted:#49645a;--geo-rule:#c2cdc3;min-width:0;font-variant-numeric:tabular-nums}
.geo-tabs{display:flex;flex-wrap:wrap;gap:.3rem;margin:.65rem 0}
.geo-tabs button{min-height:42px;border:1px solid var(--geo-rule);background:var(--geo-paper);color:var(--geo-ink);font-size:.88rem}
.geo-tabs button span{font:600 1.02rem Georgia,serif;margin-right:.15rem}
.geo-tabs button[aria-selected=true]{background:#214f45;color:white;border-color:#214f45}
.geo-status,.geo-probes{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .85rem;color:var(--geo-ink);background:#edf2ea;padding:.46rem .8rem;font-size:.91rem;line-height:1.4}
.geo-status{border:1px solid var(--geo-rule);border-bottom:0;border-radius:4px 4px 0 0}
.geo-probes{border:1px solid var(--geo-rule);border-top:0;border-radius:0 0 4px 4px;padding-top:.3rem}
.geo-probes label{font-size:.86rem;font-weight:650;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.geo-probes select{font-size:.88rem;font-weight:500;min-height:38px;color:var(--geo-ink);background:var(--geo-paper);color-scheme:light}
.geo-probes [data-geo-probe-note]{font-size:.82rem;color:var(--geo-muted)}
.rot-geometry [hidden]{display:none!important}
.geo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.73rem}
.geo-card{margin:0;min-width:0;padding:.7rem .85rem .8rem;border:1px solid var(--geo-rule);border-radius:5px;background:var(--geo-paper);color:var(--geo-ink);color-scheme:light}
.geo-card-title{display:flex;gap:.52rem;align-items:baseline;border-bottom:1px solid var(--geo-rule);padding-bottom:.35rem}
.geo-card-title>span{font:italic 1.17rem/1.1 Georgia,serif;color:#68512d}
.geo-card h4{font:600 1.1rem/1.25 Georgia,serif;margin:0;color:var(--geo-ink)}
.geo-plot{min-width:0}
.geo-plot svg{display:block;width:100%;height:auto;max-height:215px;overflow:visible}
.geo-plot svg text{fill:var(--geo-ink);font-family:system-ui,-apple-system,sans-serif;font-size:12px}
.geo-plot .label{font-size:13px;font-weight:600}.geo-plot .small{font-size:12px}.geo-plot .tiny{font-size:10.6px}
.geo-plot polyline{fill:none;stroke-linecap:round;stroke-linejoin:round}
.geo-plot .surface{fill:#eef2e9;stroke:#aebfb2;stroke-width:1}
.geo-plot .edge,.geo-plot .axis{stroke:#728a7c;stroke-width:1.25}
.geo-plot .grid{stroke:#c5d1c5;stroke-width:.84}.geo-plot .fine{stroke:#cbd7ca;stroke-width:.7}
.geo-plot .seam{stroke:#719687;stroke-width:1.2;stroke-dasharray:3 3}
.geo-plot .possible-path{stroke:#9baea0;stroke-width:1.7;stroke-dasharray:3 3}
.geo-plot .history{stroke:var(--geo-ink);stroke-width:2.3}
.geo-plot .state{fill:var(--geo-ink);stroke:#fffef9;stroke-width:1.6}
.geo-plot .base{fill:#647c6e;stroke:var(--geo-paper);stroke-width:.65}
.geo-plot .field-arrow{stroke:var(--geo-field);stroke-width:3.1}
.geo-plot .field-sample{stroke:#99604a;stroke-width:1.75}
.geo-plot .field-dot{fill:var(--geo-field);stroke:var(--geo-paper);stroke-width:1.1}
.geo-plot .probe-arrow{stroke:var(--geo-probe);stroke-width:2.6;stroke-dasharray:4 2}
.geo-plot .probe-dot{fill:var(--geo-probe);stroke:var(--geo-paper);stroke-width:1.1}
.geo-plot .zero{fill:none}
.geo-plot .fibre{fill:#f1f2ee;stroke:#aab9ae}.geo-plot .selected-sheet{stroke:#8d6549;stroke-width:1.5;fill:#f8f2e2}
.geo-plot .projection{stroke:#a2b1a5;stroke-dasharray:3 3}
.geo-plot .selected-projection{stroke:#856749;stroke-width:1.6;stroke-dasharray:3 2}
.geo-plot .slow{fill:#e6dfca;opacity:.85}
.geo-card figcaption{font-size:.88rem;line-height:1.47}
.geo-result{display:block;color:#204d41;font-weight:650}
.geo-card figcaption p{margin:.25rem 0 0;color:var(--geo-muted)}
.geo-card figcaption .geo-detail{border-top:1px solid var(--geo-rule);margin-top:.65rem;padding-top:.65rem}
.geo-grid.geo-focus{grid-template-columns:1fr}
.geo-focus .geo-card{display:grid;grid-template-columns:minmax(13rem,.9fr) minmax(14rem,1.1fr);gap:.45rem 1.3rem;align-items:center;padding:1rem}
.geo-focus .geo-card-title{grid-column:1 / -1}.geo-focus .geo-plot svg{max-height:280px}
@media(max-width:650px){
  .geo-grid{grid-template-columns:1fr;gap:.55rem}
  .geo-focus .geo-card{display:block;padding:.73rem .85rem}
  .geo-tabs button,.geo-probes select{min-height:44px}
  .geo-tabs{gap:.25rem}
}
@media print{
  .geo-tabs,.geo-probes{display:none!important}
  .geo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .geo-card{break-inside:avoid}
  .geo-plot svg{max-height:155px}
}

/* The same controls move beside the figures in the landscape workbench. */
@media screen {
  #geometry-tools .geo-tabs {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.24rem;
    margin:0 0 .45rem;
  }
  #geometry-tools .geo-tabs button {
    min-height:32px;
    padding:.24rem .33rem;
    font-size:.8rem;
    line-height:1.15;
  }
  #geometry-tools .geo-tabs button:first-child {grid-column:1/-1}
  #geometry-tools .geo-tabs button span {font-size:.92rem}
  #geometry-tools .geo-status,#geometry-tools .geo-probes {
    padding:.32rem .58rem;
    font-size:.8rem;
    line-height:1.3;
  }
  #geometry-tools .geo-status {gap:.15rem .65rem}
  #geometry-tools .geo-probes {gap:.2rem;padding-top:.15rem}
  #geometry-tools .geo-probes label {font-size:.8rem}
  #geometry-tools .geo-probes select {
    min-height:30px;
    padding:.2rem .35rem;
    max-width:100%;
    font-size:.82rem;
  }
  #geometry-tools [data-geo-probe-note] {font-size:.76rem}
  #geometry .geo-docked .geo-grid {gap:.48rem;margin-top:0}
  #geometry .geo-docked .geo-grid:not(.geo-focus) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-card {
    padding:.38rem .64rem .48rem;
  }
  #geometry .geo-docked .geo-card-title {
    gap:.42rem;
    align-items:baseline;
    padding-bottom:.18rem;
  }
  #geometry .geo-docked .geo-card-title h4 {font-size:1rem}
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-plot svg {
    height:clamp(124px,calc((100dvh - 412px) / 2),197px);
  }
  #geometry .geo-docked .geo-card figcaption {font-size:.82rem;line-height:1.35}
  #geometry .geo-docked .geo-focus .geo-plot svg {max-height:350px}
}
@media screen and (max-height:800px) {
  #geometry-tools .geo-tabs {
    grid-template-columns:3rem repeat(2,minmax(0,1fr));
    margin-bottom:.3rem;
  }
  #geometry-tools .geo-tabs button:first-child {grid-column:1;grid-row:1/span 2}
  #geometry-tools .geo-tabs button {padding-inline:.15rem}
  #geometry-tools .geo-tabs button span {margin-right:0}
  /* The workbench heading already names the stage and time above these controls. */
  #geometry-tools [data-geo-stage] {display:none}
  /* Focusing any object restores its extended caption and a larger figure. */
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-meaning {display:none}
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-plot .small {font-size:15px}
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-plot .tiny {font-size:13px}
}

@media screen and (min-height:801px) and (max-height:940px) {
  #geometry .geo-docked .geo-grid:not(.geo-focus) .geo-plot svg {height:clamp(150px,18dvh,170px)}
}
