.ma-explorer {
  background:#152e29;
  color:#f0f1e5;
  --ma-rule:#50655b;
  --ma-glow:#d5af8b;
}
.ma-explorer .section-label { color:#c2cfc0; }
.ma-explorer .section-label i { background:#d39a78; }
.ma-heading { margin-top:1.2rem; display:grid; grid-template-columns:1.3fr .7fr; gap:clamp(2rem,6vw,7rem); align-items:end; }
.ma-heading h2 { max-width:17ch; }
.ma-heading h2 em { color:#c5d6c1; }
.ma-heading > p { font:400 1.06rem/1.6 var(--sans); color:#d5ddd0; max-width:47ch; margin:0; }
.ma-system-select { display:flex; gap:.25rem 1.5rem; flex-wrap:wrap; align-items:baseline; margin-top:clamp(1.5rem,3.6vw,3.5rem); }
.ma-system-select button { font:500 .97rem/1.25 var(--sans); min-height:44px; color:#c2d0c3; background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; padding:.65rem 0; }
.ma-system-select button[aria-pressed=true] { border-bottom-color:var(--ma-glow); color:#fff6df; }
.ma-system-select button:hover { text-decoration:underline; text-underline-offset:.26em; }
.ma-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-block:1px solid var(--ma-rule); margin-top:1rem; background-color:#17362f; background-image:linear-gradient(to right,#3150454d 1px,transparent 1px),linear-gradient(to bottom,#3150454d 1px,transparent 1px); background-size:18px 18px; padding:clamp(.75rem,1.8vw,1.65rem) 0; }
.ma-stage { --node-width:clamp(46px,5.2vw,82px); position:relative; isolation:isolate; min-width:0; padding:.55rem 0; display:flex; flex-direction:column; align-items:center; gap:.65rem; border:0; border-radius:0; background:transparent; font:500 1rem/1.2 var(--sans); color:#a8baad; }
.ma-node { box-sizing:border-box; display:grid; place-items:center; width:var(--node-width); aspect-ratio:1.22; border:1px solid #789185; color:#c4d1bc; background:#203c32; border-radius:2px; }
.ma-node svg { width:74%; height:81%; display:block; }
.ma-stage:not(:last-child)::before { content:""; position:absolute; z-index:-1; height:1px; width:100%; left:50%; top:calc(.55rem + var(--node-width) / 2.44); background:#96a89b; }
.ma-stage:not(:last-child)::after { content:""; position:absolute; z-index:-1; width:6px; height:6px; border-top:1px solid #b1c1af; border-right:1px solid #b1c1af; transform:rotate(45deg); right:0; top:calc(.55rem + var(--node-width) / 2.44 - 2.5px); }
.ma-stage:hover .ma-node { border-color:#e4eddf; }
.ma-stage[aria-selected=true] { color:#fff5e3; }
.ma-stage[aria-selected=true] .ma-node { color:#1c342b; border-color:#e9cba1; background:#d8bc96; }
.ma-stage:focus-visible { outline-offset:-3px; outline-color:#edb897; }
.ma-detail { border-bottom:1px solid var(--ma-rule); }
.ma-head { margin:1.3rem 0 1rem; display:flex; gap:1rem; justify-content:space-between; align-items:baseline; }
.ma-head h3 { font:400 clamp(1.8rem,2.9vw,3.2rem)/1.1 var(--serif); letter-spacing:-.04em; margin:0; }
.ma-head a { color:#ead2b0; font:500 .94rem/1.4 var(--sans); text-underline-offset:4px; }
.ma-ports { display:grid; grid-template-columns:.8fr .9fr 1.55fr; gap:clamp(1.2rem,3vw,4.5rem); margin:0; padding:0 0 1.4rem; }
.ma-ports dt { color:#b4c7b9; font:500 .75rem/1.4 var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.ma-ports dd { margin:.45rem 0 0; color:#edf0e4; font:400 1rem/1.48 var(--sans); }
@media (max-width:790px) {
  .ma-heading { grid-template-columns:1fr; gap:1rem; }
  .ma-heading > p { max-width:60ch; }
  .ma-ports { grid-template-columns:1fr 1fr; gap:1rem; }
  .ma-ports > div:last-child { grid-column:1/-1; }
}
@media (max-width:580px) {
  .ma-system-select { gap:0 .95rem; }
  .ma-system-select button { font-size:.9rem; }
  .ma-stage { font-size:.8125rem; --node-width:34px; gap:.55rem; }
  .ma-stage-label { display:block; overflow-wrap:anywhere; padding-inline:2px; }
  .ma-head { display:block; }
  .ma-head a { display:inline-block; margin-top:.55rem; }
}
@media (max-width:380px) {
  .ma-stage { font-size:.75rem; }
  .ma-stage:not(:last-child)::after { width:4px; height:4px; top:calc(.55rem + var(--node-width) / 2.44 - 1.5px); }
}
.ma-mobile-label { display:none; }
@media (max-width:580px) {
  .ma-stage-label { display:none; }
  .ma-mobile-label { display:block; }
}
.ma-operating-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem 1.6rem; padding:.75rem 0; border-bottom:1px solid var(--ma-rule); font:400 .875rem/1.3 var(--sans); }
.ma-checks { display:flex; flex-wrap:wrap; gap:.45rem; }
.ma-operating-controls button,.ma-deployment select { border-radius:2px; font:inherit; }
.ma-checks button { display:inline-flex; align-items:center; gap:.5rem; min-height:36px; padding:.35rem .7rem; background:transparent; color:#d5dfd2; border:1px solid #708677; }
.ma-checks button:hover,.ma-deployment select:hover { border-color:#c5d2bc; }
.ma-checks button[aria-pressed=true] { background:#344e40; border-color:#c2cbac; color:#f4f4e5; }
.ma-monitor-mark,.ma-failover-mark { display:inline-block; width:10px; height:10px; color:#c5d8c2; }
.ma-monitor-mark { border:1.5px solid currentColor; border-radius:50%; position:relative; }
.ma-monitor-mark::after { content:""; position:absolute; inset:2px; border-radius:50%; background:currentColor; }
.ma-failover-mark { height:7px; border-block:1.5px solid currentColor; }
.ma-deployment { display:flex; align-items:center; gap:.45rem; }
.ma-deployment label { color:#ccd8c9; }
.ma-deployment select { appearance:none; color:#edf1e4; background-color:#1f3930; background-image:linear-gradient(45deg,transparent 50%,#c3d4bd 50%),linear-gradient(135deg,#c3d4bd 50%,transparent 50%); background-position:calc(100% - 12px) 53%,calc(100% - 8px) 53%; background-size:4px 4px; background-repeat:no-repeat; border:1px solid #708677; padding:.35rem 1.8rem .35rem .55rem; min-height:36px; }
.ma-deployment option { background:#203b31; color:#f4f4e9; }
.ma-reset { margin-left:auto; border:0; background:transparent; color:#cfddce; text-decoration:underline; text-underline-offset:4px; padding:.45rem 0; min-height:36px; }
.ma-operating-notes { margin:0; }
.ma-operating-notes > div { display:grid; grid-template-columns:minmax(7rem,.6fr) 2.5fr; gap:1rem; align-items:baseline; border-top:1px solid var(--ma-rule); padding:.85rem 0; }
.ma-operating-notes[hidden],.ma-operating-notes > div[hidden] { display:none; }
.ma-operating-notes dt { color:#d1b69a; font:500 .75rem/1.4 var(--mono); letter-spacing:.055em; text-transform:uppercase; }
.ma-operating-notes dd { margin:0; color:#e2e9db; font:400 1rem/1.5 var(--sans); max-width:85ch; }
.ma-node { position:relative; }
.ma-strip[data-monitor=true] .ma-stage[aria-selected=true] .ma-node::before { content:""; position:absolute; right:-5px; top:-5px; width:9px; height:9px; border-radius:50%; background:#c1dac0; box-shadow:0 0 0 2px #16332b, inset 0 0 0 2px #456150; }
.ma-strip[data-failover=true] .ma-stage[aria-selected=true] .ma-node::after { content:""; position:absolute; left:8%; right:8%; height:3px; bottom:-5px; border-bottom:1px solid #dabfa3; border-inline:1px solid #dabfa3; }
.ma-pulse { display:none; }
@media(prefers-reduced-motion:no-preference) {
  .ma-stage[aria-selected=true]:not(:last-child) .ma-pulse { display:block; position:absolute; pointer-events:none; width:5px; height:2px; left:calc(50% + var(--node-width) / 2); top:calc(.55rem + var(--node-width) / 2.44 - .5px); background:#ead2af; opacity:0; animation:ma-transit 1.1s ease-in-out 1; }
  @keyframes ma-transit { 0%{opacity:0} 24%{opacity:.85} 82%{opacity:.85} 100%{left:calc(150% - var(--node-width) / 2);opacity:0} }
}
.ma-visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:650px) {
  .ma-operating-controls { gap:.25rem 1rem; }
  .ma-checks button,.ma-deployment select,.ma-reset { min-height:44px; }
  .ma-operating-notes > div { grid-template-columns:1fr; gap:.3rem; }
}
