.study-plate.study-plate {
 --paper:#f6f5eb; --type:#223f36; --quiet:#4a6359; --positive:#17695a; --negative:#9a4c38; --highlight:#ad6b18;
 display:block; color-scheme:light; color:var(--type); background:var(--paper); border:1px solid #b4c3b5;
 border-radius:5px; padding:clamp(.6rem,1.4vw,1rem); margin:.75rem 0; box-sizing:border-box;
 min-width:0; max-width:100%; grid-column:1/-1; font: .92rem/1.4 system-ui,sans-serif; font-variant-numeric:tabular-nums;
}
.study-plate[hidden] {display:none!important}
.study-plate .study-title {font:1.23rem/1.25 Georgia,serif;color:var(--type)}
.study-plate .study-cap {display:flex;justify-content:space-between;align-items:center;gap:.4rem;flex-wrap:wrap;padding-bottom:.4rem;border-bottom:1px solid #b4c3b5}
.study-plate .study-view {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.6rem 1.2rem;align-items:center;padding-top:.45rem}
.study-plate .study-copy {min-width:0;overflow-wrap:anywhere}
.study-plate .study-copy strong {color:var(--type);font-weight:650}
.study-plate .study-copy span {display:block;color:var(--quiet);margin-top:.24rem}
.study-plate svg.study-drawing {display:block;width:100%;max-width:32rem;height:auto!important;min-height:0!important;margin:auto;background:transparent;overflow:visible}
.study-plate svg.study-drawing text {font:600 15px/1 system-ui,sans-serif;stroke:none}
.study-plate :is(button,select) {font:600 .86rem/1.25 system-ui;color:#223f36!important;background:#e5ece1!important;
  border:1px solid #82998d;border-radius:4px;min-height:38px;padding:.42rem .56rem;cursor:pointer;margin:0;width:auto;max-width:100%}
.study-plate button:hover,.study-plate button[aria-pressed=true]{background:#17695a!important;color:white!important}
.study-plate :is(button,select):focus-visible{outline:3px solid #ad6b18;outline-offset:2px}
.study-plate .study-controls {display:flex;gap:.36rem;align-items:center;flex-wrap:wrap;min-width:0}
.study-plate .study-row {display:flex;gap:.6rem;justify-content:space-between;padding:.3rem 0;border-bottom:1px solid #cbd4c8}
.study-plate .study-row:last-child {border-bottom:none}
.study-plate .study-row b {font-weight:650;color:var(--type)}
.study-plate .study-row[data-active=true] {background:#f6e2b8;box-shadow:inset 3px 0 #ad6b18;padding-left:.46rem}
@media (max-width:660px) {.study-plate :is(button,select){min-height:44px}}
@media print {.study-plate .study-controls,.study-plate[data-copy]{display:none!important}}

.study-selection {outline:2px solid #ad6b18;outline-offset:1px}
#local-workbench {grid-template-rows:auto; align-items:start}
@media(min-width:68rem){#local-workbench {grid-template-columns:minmax(15rem,1fr) minmax(21rem,1.4fr) minmax(18rem,1fr)}}
@media(max-width:68rem){#local-workbench {grid-template-columns:minmax(0,1fr)}}
#local-workbench .card, #tunnel-workbench .card {min-width:0; border-radius:4px; box-shadow:none}
#local-workbench .card h2,#tunnel-workbench h2 {font:1.08rem/1.28 Georgia,serif}
#local-workbench #graphWrap {height:auto;min-height:0}
#local-workbench #svg {background:#f6f5eb;height:auto;min-height:0}
#local-workbench .node circle {stroke:#17695a;fill:#d4e9dc}
#local-workbench .node.bad circle {stroke:#9a4c38;fill:#f2d6c7}
#local-workbench .node.warn circle {stroke:#ad6b18;fill:#f3dfad}
#local-workbench .node text {fill:#223f36}
#local-workbench .edge {stroke:#17695a;stroke-width:5;cursor:pointer}
#local-workbench .edge.bad {stroke:#9a4c38}
#local-workbench .edge.selected {stroke:#ad6b18;stroke-width:8}
#local-workbench .arrow {fill:#17695a}
#local-workbench .arrow.selected {fill:#ad6b18}
.study-plate .study-row {flex-wrap:wrap}
#local-workbench .study-plate {margin:0}
#local-workbench #svg .node text {font-size:16px}
#local-workbench #svg .node text.val {font-size:13px}
#tunnel-workbench .card-hd,#trial .selection,#example .inspector {border-top:2px solid #729c8b}
#example .study-plate {margin-top:1rem}
#schedule-model [data-interval="ex:Testing"], #schedule-model [data-interval="ex:CodeFreeze"] {box-shadow:inset 4px 0 #ad6b18}
#panelBase .study-plate {margin-bottom:1rem}


/* Give the staffing profile and signed cycles the full drawing width.
   The companion commentary remains directly below the active canvas. */
#canvasCard:has(button[data-tab="resources"][aria-pressed="true"]),
#canvasCard:has(button[data-tab="cohomology"][aria-pressed="true"]) {grid-column:1/-1}
#canvasCard:has(button:is([data-tab="resources"],[data-tab="cohomology"])[aria-pressed="true"]) + .card {grid-column:1/-1}
.study-plate p {color:#223f36}
