:root {
  --mm-ink: #193532;
  --mm-muted: #4c665f;
  --mm-teal: #086b60;
  --mm-line: #cbdcd6;
  --mm-paper: #fffefa;
}
.mm-screen {
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 28rem;
  background: #eef5f1; color: var(--mm-ink); font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.mm-screen :is(button, a, input, summary, [tabindex]):focus-visible { outline: 3px solid #117e86; outline-offset: 2px; }
.mm-header {
  display: flex; align-items: center; justify-content: space-between; flex: none; gap: 1rem;
  min-height: 4.35rem; padding: .52rem clamp(.85rem, 2.45vw, 2.45rem);
  background: var(--mm-paper); border-block-end: 1px solid var(--mm-line);
}
.mm-brand, .mm-header-actions, .mm-header-btn, .mm-private, .mm-map-actions, .mm-tool { display: flex; align-items: center; }
.mm-brand { min-inline-size: 0; gap: .74rem; }
.mm-brand h1 { margin: 0; font-size: clamp(1.03rem, 2vw, 1.35rem); font-weight: 740; line-height: 1.35; }
.mm-emblem { display: grid; place-items: center; flex: none; width: 2.72rem; height: 2.72rem; border-radius: .85rem; background: #eaf4ec; border: 1px solid #c8e1d2; }
.mm-emblem-svg { width: 2.12rem; height: 2.12rem; }
.mm-header-actions { gap: .4rem; }
.mm-header-btn, .mm-mobile-close {
  justify-content: center; gap: .37rem; min-height: 2.65rem; padding: .42rem .62rem;
  border: 1px solid transparent; border-radius: .55rem; background: transparent; color: #294a44; font-size: .91rem; font-weight: 630;
}
.mm-header-btn:hover, .mm-mobile-close:hover { background: #eaf4ee; border-color: #c1d7cc; }
.mm-private { gap: .3rem; margin-inline-end: .32rem; color: #386653; font-size: .84rem; font-weight: 640; }
.mm-private .icon { width: .99rem; height: .99rem; }
.mm-workbench {
  flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: clamp(14.2rem, 21vw, 18.3rem) minmax(0, 1fr);
  gap: clamp(.6rem, 1.1vw, 1.15rem); padding: clamp(.65rem, 1.2vw, 1.25rem);
}
.mm-sidebar, .mm-map { min-height: 0; min-inline-size: 0; border: 1px solid var(--mm-line); border-radius: 1rem; background: var(--mm-paper); }
.mm-sidebar { display: flex; flex-direction: column; overflow: hidden; }
.mm-side-top { position: relative; }
.mm-paper-book { background-position: center top; }
.mm-paper-lens { background-position: center bottom; }
.mm-side-top .mm-paper { border-block-end: 1px solid #e2dfd0; }
.mm-index-body { flex: none; padding: .82rem .95rem 0; }
.mm-index-body h2 { margin: 0 0 .62rem; font-size: 1.26rem; }
.mm-search {
  display: flex; align-items: center; gap: .39rem; min-height: 2.85rem; border-radius: .63rem; padding-inline: .56rem .3rem;
  background: #f6faf6; border: 1px solid #a9c6b8; color: var(--mm-teal);
}
.mm-search:focus-within { background: white; border-color: var(--mm-teal); box-shadow: 0 0 0 2px #a5d6c180; }
.mm-search .icon { width: 1.08rem; height: 1.08rem; }
.mm-search input { min-inline-size: 0; width: 100%; border: 0; outline: none !important; background: transparent; text-align: right; color: var(--mm-ink); font: inherit; font-size: .98rem; padding-block: .43rem; }
.mm-search input::placeholder { color: #62766e; }
.mm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mm-search button { display: grid; place-items: center; flex: none; min-width: 2rem; min-height: 2.45rem; background: transparent; border: 0; border-radius: .44rem; color: var(--mm-teal); }
.mm-list-title { margin-block: .93rem .32rem; color: #4e655d; font-weight: 690; font-size: .89rem; }
.mm-index-list { display: flex; flex-direction: column; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; gap: .18rem; padding: .12rem .68rem .55rem; }
.mm-index-entry {
  display: grid; grid-template-columns: .6rem minmax(0,1fr); align-items: center; gap: .46rem; width: 100%;
  padding: .46rem .4rem; min-height: 2.72rem; text-align: right; border: 1px solid transparent; border-radius: .56rem; background: transparent;
  color: var(--mm-ink); font-size: .96rem; font-weight: 610;
}
.mm-index-entry::before { content: ""; width: .57rem; height: .57rem; justify-self: center; border: 2px solid var(--branch, #6b8e84); background: #fff; border-radius: 50%; }
.mm-index-entry[aria-current="true"] { background: #e6f1e9; border-color: #bfd7c7; }
.mm-index-entry:hover { background: #eff5ef; }
.mm-index-entry .section-name { line-height: 1.42; }
.mm-index-copy { min-inline-size: 0; }
.mm-entry-parent { display: block; font-size: .8rem; margin-block-start: .12rem; font-weight: 500; color: #50675f; }
.mm-entry-parent .name-line { line-height: 1.27; }
.mm-index-empty { margin: .45rem; color: var(--mm-muted); font-size: .93rem; }
.mm-more { margin: .4rem; align-self: stretch; justify-content: center; }
.mm-source { display: flex; flex-wrap: wrap; align-items: center; flex: none; gap: .2rem .48rem; padding: .56rem .82rem; border-block-start: 1px solid #d8e3d9; color: #50655a; font-size: .79rem; }
.mm-source-line { width: .8rem; height: 2px; background: #489b8c; }
.mm-source span:last-child { margin-inline-start: auto; }
.mm-map { display: flex; flex-direction: column; overflow: hidden; }
.mm-map-head { display: flex; align-items: center; justify-content: space-between; flex: none; flex-wrap: wrap; gap: .54rem; padding: .8rem 1rem; border-block-end: 1px solid #d6e1d9; background: white; }
.mm-map-head h2 { margin: 0; font-size: clamp(1.18rem, 2.55vw, 1.68rem); font-weight: 720; line-height: 1.35; }
.mm-map-head p { margin: .18rem 0 0; color: var(--mm-muted); font-size: .9rem; }
.mm-map-actions { flex-wrap: wrap; gap: .44rem; }
.mm-tool {
  justify-content: center; gap: .38rem; min-height: 2.7rem; border: 1px solid #b3cbbd; border-radius: .62rem;
  padding: .37rem .75rem; color: #26534a; background: #f6faf6; font-weight: 650; font-size: .91rem;
}
.mm-tool:hover { background: #e3f1e8; border-color: #6da391; }
.mm-tool.mm-primary { color: #fff; background: #08695f; border-color: #08695f; }
.mm-tool.mm-primary:hover { background: #06594f; }
.mm-tool .icon { width: 1.07rem; height: 1.07rem; }
.mm-frame { position: relative; flex: 1 1 auto; min-height: 9.5rem; isolation: isolate; }
.mm-stage {
  position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; cursor: grab;
  background-color: #fcfcf7;
  background-image: radial-gradient(circle, #c5d3c8 .85px, transparent 1px);
  background-size: 18px 18px;
}
.mm-stage:focus-visible { outline-offset: -3px !important; }
.mm-stage[data-dragging="true"], .mm-stage[data-dragging="true"] * { cursor: grabbing; }
.mm-drawing, .mm-labels { position: absolute; inset: 0; width: 100%; height: 100%; direction: ltr; pointer-events: none; }
.mm-node {
  position: absolute; top: 0; left: 0; transform-origin: 0 0; margin: 0; padding: 8px 14px;
  display: flex; align-items: center; direction: rtl; text-align: right; pointer-events: auto;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif; border: 1.5px solid var(--branch); border-radius: 12px;
  color: #223b39; background: #fff; box-shadow: 0 2px 5px #34564a16; cursor: pointer;
}
.mm-node[aria-expanded][data-side="right"] { padding-right: 40px; }
.mm-node[aria-expanded][data-side="left"] { padding-left: 40px; }
.mm-node.mm-door { background: color-mix(in srgb, var(--branch) 9%, white); border-width: 2px; border-radius: 15px; }
.mm-node.mm-root { color: #fff; background: #195d57; border-color: #14524d; border-radius: 17px; box-shadow: 0 4px 10px #195d5733; }
.mm-node[aria-selected="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--branch); }
.mm-node:hover { box-shadow: 0 0 0 2px var(--branch); }
.mm-knot {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 21px; height: 21px; border: 1px solid var(--branch); color: var(--branch); background: white;
  border-radius: 50%; font: 700 16px/1 Arial, sans-serif;
}
.mm-node[data-side="right"] .mm-knot { right: 9px; }
.mm-node[data-side="left"] .mm-knot { left: 9px; }
.mm-node-text { display: block; flex: 1; min-inline-size: 0; width: 100%; text-align: right; }
.mm-node-text bdi { display: block; text-align: right; unicode-bidi: isolate; white-space: pre; }
.mm-node-text bdi + bdi { margin-top: 2px; }
.mm-node.mm-pin { padding: 2px 5px !important; text-align: center; border-radius: 7px; }
.mm-pin .mm-node-text bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.mm-zoom {
  position: absolute; z-index: 2; bottom: .75rem; inset-inline-start: .82rem; display: flex; align-items: center;
  gap: .05rem; padding: .16rem; background: #fffffff7; border: 1px solid #bbd0c3; border-radius: .79rem; box-shadow: 0 .26rem .65rem #2c4e4916;
}
.mm-zoom button, .mm-zoom output { display: grid; place-items: center; min-height: 2.6rem; }
.mm-zoom button { width: 2.62rem; border: 0; border-radius: .55rem; color: #205b51; background: transparent; font: 620 1.42rem/1 "Segoe UI",sans-serif; }
.mm-zoom button:hover { background: #eaf4ed; }
.mm-zoom output { min-width: 2.6rem; color: #405953; font-size: .86rem; font-variant-numeric: tabular-nums; }
.mm-zoom .mm-fit { border-inline-start: 1px solid #d5e1d8; border-radius: .32rem; }
.mm-overview {
  position: absolute; z-index: 2; bottom: .75rem; inset-inline-end: .82rem; width: min(9.7rem, 26%); overflow: hidden;
  border: 1px solid #c4d6cb; border-radius: .63rem; background: #fffffff5; color: #415f56; box-shadow: 0 .2rem .55rem #2c4e4910;
}
.mm-overview summary { cursor: pointer; font-size: .78rem; font-weight: 650; padding: .24rem .52rem; }
.mm-overview canvas { display: block; width: 100%; height: 4.55rem; touch-action: none; cursor: crosshair; }
.mm-map-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .7rem; flex: none; padding: .42rem .83rem; border-block-start: 1px solid #d2e0d5; background: #fff; }
#mm-path { min-width: 0; flex: 1 1 61%; display: flex; align-items: center; flex-wrap: wrap; column-gap: .32rem; row-gap: .12rem; max-height: 5rem; overflow-y: auto; font-size: .84rem; }
.mm-crumb { padding: .12rem .18rem; border: 0; border-radius: .3rem; background: transparent; text-align: right; color: #126454; max-width: 100%; text-decoration: underline; text-underline-offset: .17em; }
.mm-crumb .section-name, .mm-current .section-name { line-height: 1.25; }
.mm-current { color: #283e36; font-weight: 650; min-width: 0; }
.mm-crumb-divider, .mm-count { color: #4d6659; }
.mm-count { font-size: .8rem; font-variant-numeric: tabular-nums; }
.mm-mobile-index, .mm-mobile-close, .mm-shade { display: none; }
.mm-guide { position: fixed; padding: 0; width: min(31rem, calc(100% - 1.8rem)); max-height: min(90dvh, 45rem); max-height: min(90svh, 45rem); border: 1px solid #b8cdbd; border-radius: 1rem; overflow: auto; color: var(--mm-ink); background: var(--mm-paper); box-shadow: 0 1rem 4rem #173e3938; }
.mm-guide::backdrop { background: #173c3963; }
.mm-guide-body { padding: 1rem 1.2rem 1.2rem; }
.mm-guide-body h2 { font-size: 1.38rem; }
.mm-guide-body ul { margin: .75rem 0 1rem; padding-inline-start: 1.22rem; }
.mm-guide-body li { margin-block: .52rem; color: #405b51; }
.mm-guide-body b { color: var(--mm-ink); }
.mm-guide-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.mm-guide-bottom a, .legacy-mind-link { font-size: .91rem; color: #17655d; text-underline-offset: .2rem; }

#legacy-screen { min-height: 100vh; display: flex; flex: 1; flex-direction: column; }
#legacy-screen .masthead { background: #fffefa; border-color: #cbdcd6; }
#legacy-screen .hero { background: linear-gradient(112deg,#f8f2e7,#f8f7eb 43%,#e6f4ec); border-color: #c3d5c6; color: var(--mm-ink); box-shadow: 0 .6rem 1.5rem #51796118; }
#legacy-screen .legacy-art { flex: none; position: absolute; inset-inline-end: 1%; width: 43%; border-radius: .75rem; }
#legacy-screen .hero h1 { color: #214d43; }
#legacy-screen .hero-stats dd { color: #116e65; }
#legacy-screen .brand-icon { background: #e2f4e9; border-color: #b4d4bf; color: #166859; box-shadow: none; }
#legacy-screen .legacy-mind-link { display: inline-flex; align-items: center; text-decoration: none; }
#legacy-screen .revised-plate { display: grid; place-items: center; padding: .2rem; border-color: #c0d7c8; background: linear-gradient(135deg,#f9f7ee,#e4f2e9); }
.revised-plate svg { width: 100%; max-height: 100%; fill: none; stroke: #21666b; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.revised-plate .sheet { fill: #fbfcf1; }
.revised-plate .sheet-back, .revised-plate .turq-point, .revised-plate .turq-points { fill: #8ad6bf; }
.revised-plate .coral-points, .revised-plate .coral-point { fill: #e98d69; stroke: #a7553c; }
.revised-plate .crease { stroke: #69ac98; }
.revised-plate .rim { stroke: #397a9d; }
.mm-screen[data-focus="true"] { position: fixed; z-index: 100; inset: 0; }
.mm-screen[data-focus="true"] .mm-workbench { grid-template-columns: minmax(0,1fr); }
.mm-screen[data-focus="true"] .mm-sidebar { display: none; }
.mm-screen[data-focus="true"] .mm-mobile-index { display: flex; }
.mm-screen[data-focus="true"][data-drawer="true"] .mm-sidebar {
  display: flex; position: fixed; z-index: 8; inset-block: 0; inset-inline-start: 0;
  width: min(88vw,21rem); border-radius: 0; box-shadow: -.5rem 0 2.3rem #243a332b;
}
.mm-screen[data-focus="true"] .mm-shade:not([hidden]) {
  display: block; position: fixed; z-index: 7; inset: 0; width: 100%; height: 100%; border: 0; background: #203d365b;
}
.mm-screen[data-focus="true"] .mm-mobile-close {
  display: grid; place-items: center; position: absolute; inset-block-start: .35rem; inset-inline-end: .35rem;
  width: 2.7rem; background: #fffffff0; border: 1px solid #d1dcd2;
}
@media (max-width: 59rem) and (min-width: 48.01rem) {
  .mm-workbench { grid-template-columns: 13.7rem minmax(0,1fr); gap: .55rem; padding: .55rem; }
  .mm-map-head { padding: .55rem .75rem; }
  .mm-map-head p { font-size: .84rem; }
  .mm-index-entry { font-size: .91rem; }
}
@media (max-width: 48rem) {
  .mm-header { min-height: 3.6rem; padding: .35rem .65rem; gap: .44rem; }
  .mm-header-actions { gap: .12rem; }
  .mm-header-btn { min-width: 2.68rem; padding-inline: .42rem; }
  .mm-header-btn span { display: none; }
  .mm-brand { gap: .44rem; }
  .mm-emblem { width: 2.25rem; height: 2.25rem; }
  .mm-emblem-svg { width: 1.75rem; height: 1.75rem; }
  .mm-private { margin-inline-end: .16rem; font-size: .77rem; }
  .mm-workbench { grid-template-columns: minmax(0,1fr); padding: .4rem; }
  .mm-sidebar {
    display: none; position: fixed; z-index: 8; inset-block: 0; inset-inline-start: 0; width: min(88vw, 21rem);
    border-radius: 0; background: var(--mm-paper); box-shadow: -.5rem 0 2.3rem #243a332b;
  }
  .mm-screen[data-drawer="true"] .mm-sidebar { display: flex; }
  .mm-shade:not([hidden]) { display: block; position: fixed; z-index: 7; inset: 0; width: 100%; height: 100%; border: 0; background: #203d365b; }
  .mm-mobile-close { display: grid; place-items: center; position: absolute; inset-block-start: .35rem; inset-inline-end: .35rem; width: 2.7rem; background: #fffffff0; border: 1px solid #d1dcd2; }
  .mm-mobile-index { display: flex; }
  .mm-map-head { display: block; padding: .55rem .65rem; }
  .mm-map-head > div:first-child { position: relative; padding-inline-end: 5rem; }
  .mm-map-head p { font-size: .84rem; }
  .mm-map-actions { margin-block-start: .47rem; gap: .3rem; }
  .mm-map-actions .mm-tool { min-height: 2.52rem; padding: .32rem .48rem; font-size: .83rem; }
  .mm-map-actions .icon { width: .98rem; height: .98rem; }
  .mm-zoom { bottom: .5rem; inset-inline-start: .45rem; }
  .mm-overview { bottom: .5rem; inset-inline-end: .45rem; width: 6.3rem; }
  .mm-overview canvas { height: 3.4rem; }
  .mm-map-foot { padding: .32rem .52rem; }
  #legacy-screen .legacy-art { position: static; width: 33%; margin-inline-start: auto; }
  #legacy-screen .hero-copy { max-width: 66%; }
}
@media (max-width: 24rem) {
  .mm-private { display: none; }
  .mm-map-head > div:first-child { padding-inline-end: 3.8rem; }
  .mm-map-head > div:first-child::after { width: 3.5rem; }
  .mm-tool { gap: .23rem; }
  .mm-map-actions .mm-tool { padding-inline: .36rem; }
  .mm-map-actions .mm-tool .icon { display: none; }
  .mm-count { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) { .mm-screen *, .mm-screen *::before, .mm-screen *::after { scroll-behavior: auto; } }

/* Entry and shape-specific controls */
.tree-chooser { min-height:100vh; min-height:100dvh; background:#f6f8f3; color:#153c34; font-family:"Segoe UI",Tahoma,Arial,sans-serif; }
.tc-inner { width:min(1160px,94vw); margin:auto; padding:0 0 clamp(1.6rem,4vw,3.4rem); }
.tc-head,.tc-identity,.tc-access,.tc-facts { display:flex; align-items:center; }
.tc-head { justify-content:space-between; min-height:4.2rem; gap:1rem; }
.tc-identity { font-size:1rem; font-weight:750; gap:.6rem; }
.tc-symbol { width:34px;height:34px;padding:6px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;background:#176553;border-radius:10px; }
.tc-access { gap:.35rem; font-size:.81rem;color:#47665c; }
.tc-hero { display:grid; grid-template-columns:1fr .94fr; align-items:stretch; overflow:hidden; isolation:isolate; border:1px solid #dedfc9; border-radius:24px; background:#faf4e7; }
.tc-copy { align-self:center; padding:clamp(1.5rem,4.3vw,3.7rem); position:relative; z-index:1; }
.tc-copy h1 { margin:0; font-size:clamp(2.25rem,4.5vw,4.2rem); line-height:1.33; letter-spacing:-.045em; color:#164a3a; }
.tc-copy p { margin:.68rem 0 1.3rem; color:#43594d; max-width:31rem; font-size:clamp(1rem,1.4vw,1.22rem); line-height:1.75; }
.tc-facts { gap:.4rem 1.3rem;flex-wrap:wrap;color:#385a49; font-size:.89rem; }
.tc-facts b { font-weight:770;color:#245840; }
.tc-art { min-height:clamp(13rem,22vw,18.7rem); background-position:center 62%;background-repeat:no-repeat;background-size:cover; }
.tc-pick { margin-top:clamp(1.4rem,3vw,2.5rem); }
.tc-pick h2 { font-size:clamp(1.35rem,2.4vw,1.95rem); margin:0 0 .95rem; }
.tc-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.65rem,1.4vw,1.2rem); }
.tc-card { --accent:#007970;--tint:#e5f6f2;--soft:#a5d7cb;position:relative; display:flex;flex-direction:column; overflow:hidden;
  text-decoration:none;color:#1f4039;background:white; border:1px solid #cfdfd5;border-radius:18px; box-shadow:0 4px 14px #153e2c07; transition:transform .18s,border-color .18s; }
.tc-horizontal { --accent:#3b61a6;--tint:#edf2fd;--soft:#bbcef0; }
.tc-classification { --accent:#4e7639;--tint:#eff5e7;--soft:#bfd6ac; }
.tc-card:hover { transform:translateY(-3px);border-color:var(--accent); }
.tc-card:focus-visible,.mm-choose-link:focus-visible,.mm-direction a:focus-visible { outline:3px solid #077d84;outline-offset:3px; }
.tc-sample { display:block;width:100%;height:clamp(5.5rem,8.5vw,7rem);background:var(--tint);padding:.55rem 0; }
.tc-wires { fill:none;stroke:var(--accent);stroke-width:2.3;stroke-linecap:round; }
.tc-ends { fill:var(--soft);stroke:var(--accent);stroke-width:1.3; }
.tc-hub { fill:var(--accent);stroke:white;stroke-width:2; }
.tc-caption { display:grid;gap:.24rem;padding:1rem 1rem 1.15rem; }
.tc-caption strong {font-size:1.25rem;color:var(--accent);}
.tc-caption > span { color:#4d635c;line-height:1.6;font-size:.96rem; }
.mm-choose-link { text-decoration:none;border:1px solid #c3dcd0;background:#edf7f1;white-space:nowrap; }
.mm-direction { display:inline-flex;flex-wrap:wrap;gap:2px;padding:2px;margin-top:4px;background:#edf2fa;border:1px solid #d3deef;border-radius:8px; }
.mm-direction a { display:inline-flex;align-items:center;min-height:28px;padding:2px 8px;border-radius:6px;text-decoration:none;color:#405670;font-family:inherit;font-size:.84rem;font-weight:650;line-height:1.4; }
.mm-direction a[aria-current="true"] { background:white;color:#274d8c;box-shadow:0 1px 4px #354d7026; }
.mm-node.mm-pin { padding:3px 7px !important;border-radius:11px;border-width:1.5px;box-shadow:0 2px 6px #244c3d12; }
.mm-pin .mm-node-text bdi { white-space:pre;overflow:visible;text-overflow:clip; }
.mm-pin[data-bilingual="true"] .mm-node-text bdi {text-align:right;}
.mm-screen[data-layout="horizontal"] .mm-stage { background-color:#f6f8fd; }
.mm-screen [hidden],.tree-chooser[hidden],#mind-screen[hidden] { display:none !important; }
@media(max-width:700px) {
  .tc-inner { width:min(94%,38rem); }.tc-head { min-height:3.4rem; }.tc-hero { grid-template-columns:1.25fr .8fr;border-radius:16px; }
  .tc-copy {padding:1.06rem;}.tc-copy h1 {font-size:clamp(1.52rem,5.8vw,2.35rem);letter-spacing:-.025em;}
  .tc-copy p {font-size:.91rem;line-height:1.6;margin:.4rem 0 .68rem;}.tc-facts {font-size:.74rem;gap:.1rem .65rem;}
  .tc-art {min-height:10.8rem;background-size:cover;}.tc-grid {grid-template-columns:1fr;gap:.57rem;}.tc-pick {margin-top:1.15rem;}.tc-pick h2 { margin-bottom:.6rem; }
  .tc-card {display:grid;grid-template-columns:5.9rem minmax(0,1fr);align-items:stretch;border-radius:12px;}
  .tc-sample {height:100%;min-height:5.35rem; padding:.3rem;}.tc-caption {align-self:center;padding:.55rem .68rem .55rem .68rem;}
  .tc-caption strong {font-size:1.05rem;}.tc-caption > span {font-size:.83rem;}
  .mm-choose-link { font-size:.78rem;gap:.14rem;padding:3px 6px; }.mm-header {gap:.3rem;}
}
@media(max-height:530px) and (orientation:landscape) { .mm-screen {min-height:100dvh;} .mm-map-head { padding-block:.26rem; }.mm-map-head p {display:none;} }
@media(prefers-reduced-motion:reduce) { .tc-card {transition:none;}.tc-card:hover {transform:none;} }

/* The primary map and the optional detail view occupy different panes of the same drawing. */
.mm-frame { display:flex;direction:ltr; }
.mm-frame > .mm-stage { position:relative;inset:auto;flex:1 1 0;min-width:0;min-height:0; }
.mm-lens-panel { display:flex;flex-direction:column;flex:0 0 clamp(220px,35%,500px);min-width:0;min-height:0;direction:rtl;border-left:1px solid #a9cabe;background:#f5faf5; }
.mm-lens-head {display:flex;align-items:center;justify-content:space-between;padding:0 .65rem;min-height:31px;border-bottom:1px solid #d4e4da;background:#e9f4ed;}
.mm-lens-head h3 {margin:0;font-size:.88rem;color:#24574b;}
.mm-lens-head button {border:0;background:transparent;color:#285e50;font-size:1.2rem;cursor:pointer;}
.mm-lens-stage {position:relative;flex:1;min-height:0;overflow:hidden;background:#fefffc;touch-action:none;}
.mm-lens-stage canvas {position:absolute;inset:0;width:100%;height:100%;direction:ltr;}
.mm-navigation {display:flex;align-items:center;gap:.52rem;padding:.26rem .65rem;flex:none;min-height:43px;border-top:1px solid #d5e4db;background:#fff;}
.mm-navigation .mm-zoom,.mm-navigation .mm-overview {position:static;inset:auto;box-shadow:none;}
.mm-navigation .mm-zoom {padding:0 2px;gap:0;flex:none;border-color:#cddfd5;}
.mm-navigation .mm-zoom button,.mm-navigation .mm-zoom output {min-height:32px;}
.mm-navigation .mm-zoom button {width:32px;}
.mm-navigation .mm-overview {display:flex;align-items:center;min-width:72px;width:auto;margin-inline-start:auto;border-color:#d3dfd8;flex:none;}
.mm-navigation .mm-overview summary {min-height:31px;display:list-item;padding:.35rem .5rem;}
.mm-navigation .mm-overview[open] {display:grid;grid-template-columns:auto 7rem;align-items:center;}
.mm-navigation .mm-overview canvas {height:38px;width:7rem;}
.mm-nav-hint {font-size:.78rem;color:#496559;line-height:1.45;}
.mm-navigation .mm-lens-button {min-height:32px;padding:.2rem .5rem;font-size:.82rem;}
.mm-lens-button[aria-pressed="true"] {background:#1b6655;color:#fff;border-color:#175a4c;}
.mm-screen[data-layout="classification"] .mm-stage {background-color:#f7f8ff;background-image:radial-gradient(circle,#d8dcf0 .75px,transparent .9px);background-size:19px 19px;}
.mm-screen[data-layout="classification"] .mm-node {border-radius:8px;border-color:color-mix(in srgb,var(--branch) 42%,#ddd);border-top:3px solid var(--branch);background:#fff;box-shadow:0 2px 0 color-mix(in srgb,var(--branch) 19%,white),0 4px 8px #242e4b0f;}
.mm-screen[data-layout="classification"] .mm-root {background:#234e60;color:white;border-color:#234e60;}
.mm-screen[data-layout="classification"] .mm-door {background:color-mix(in srgb,var(--branch) 6%,white);}
.mm-screen .mm-pin.mm-root {color:#fff;background:#195d57;}
.mm-stage[data-detail="connected"] {background-size:22px 22px;}
.tc-hero {background:linear-gradient(115deg,#eaf6f3,#f9fbf3 78%);border-color:#cbded6;}
.tc-art {min-height:0;display:grid;place-items:center;padding:clamp(.55rem,1.6vw,1.6rem);background-image:none;}
.tc-diagram {width:100%;height:auto;overflow:visible;filter:drop-shadow(0 5px 7px #284c3b14);}
.diagram-lines {fill:none;stroke:#397e77;stroke-width:2.2;stroke-linejoin:round;}
.diagram-lines .science {stroke:#448e85;}.diagram-lines .engineering {stroke:#647bb6;}
.diagram-tag rect {fill:white;stroke:#8caaa0;stroke-width:1.5;}
.diagram-tag text {font:650 15px "Segoe UI",Tahoma,Arial,sans-serif;fill:#203f3e;}
.diagram-tag.root rect {fill:#185c55;stroke:#185c55;}.diagram-tag.root text {fill:white;}
.diagram-tag.science rect {stroke:#61a79b;fill:#f6fdfa;}.diagram-tag.engineering rect {stroke:#8e9fcd;fill:#f8faff;}
.tc-classification {--accent:#62549d;--tint:#f1effb;--soft:#d0cbed;}
@media(max-width:950px) { .mm-nav-hint {display:none;} }
@media(max-width:700px) {
  .tc-hero {grid-template-columns:1fr;}.tc-copy {padding:.9rem 1.05rem .3rem;}.tc-copy p{margin:.25rem 0 .5rem;}
  .tc-art {min-height:0;padding:.05rem 1rem .55rem;}.tc-diagram {max-height:128px;}
  .mm-frame:has(.mm-lens-panel:not([hidden])) {flex-direction:column;}
  .mm-lens-panel {flex-basis:43%;border-left:0;border-top:1px solid #a9cabe;}
  .mm-navigation {padding:.2rem .25rem;gap:.25rem;flex-wrap:wrap;}
  .mm-navigation .mm-overview[open] {grid-template-columns:auto 4.1rem;}.mm-navigation .mm-overview canvas{width:4.1rem;height:30px;}
  .mm-navigation .mm-zoom output {min-width:2rem;font-size:.76rem;}.mm-navigation .mm-zoom button {width:27px;}
  .mm-navigation .mm-lens-button {padding-inline:.35rem;font-size:.75rem;}.mm-lens-button .icon{width:.87rem;}
}
