/* Bridge. One text size, one line weight, monochrome. The only colour is the
   status circles. Technical values are set in the mono cut of the same family. */

/* ABC Areal is a licensed Dinamo typeface and is not published with this site.
   It is used when it's installed on the computer, or when a web-licensed copy
   is placed at fonts/ABCArealSuperfamilyVariable.ttf (ignored by git). */
@font-face {
  font-family: "Areal";
  src: local("ABC Areal Superfamily Variable"), local("ABCArealSuperfamilyVariable"),
       url("fonts/ABCArealSuperfamilyVariable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Areal Mono";
  src: local("ABC Areal Superfamily Variable"), local("ABCArealSuperfamilyVariable"),
       url("fonts/ABCArealSuperfamilyVariable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --size: 13px;
  --pad: 10px;              /* every card and box padding, and the gap between boxes */
  --line: 1px;              /* every stroke: wires, ports, icons, rules */
  --text: #111;
  --muted: #8c8c8c;
  --faint: #c6c6c6;
  --rule: #e2e2e2;
  --page: #fff;
  --panel: #f4f4f4;
  --card: #fff;
  --well: #f4f4f4;
  --ok: #1fbf5f;
  --busy: #f5a524;
  --err: #ef4444;
  --backdrop: rgba(255, 255, 255, .75);
  --drkm: 0;                /* ABC Areal's dark-mode axis evens out weight on dark backgrounds */
  --radius: 22px;
  color-scheme: light;
  --sans: "Areal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Areal Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #ececec;
    --muted: #858585;
    --faint: #4b4b4b;
    --rule: #2a2a2a;
    --page: #0b0b0b;
    --panel: #161616;
    --card: #1f1f1f;
    --well: #161616;
    --backdrop: rgba(0, 0, 0, .6);
    --drkm: 1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --text: #ececec;
  --muted: #858585;
  --faint: #4b4b4b;
  --rule: #2a2a2a;
  --page: #0b0b0b;
  --panel: #161616;
  --card: #1f1f1f;
  --well: #161616;
  --backdrop: rgba(0, 0, 0, .6);
  --drkm: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 var(--size)/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  font-variation-settings: "DRKM" var(--drkm);
  transition: background-color .25s, color .25s;
}
h1, h2, h3, p, dl, dd, ol { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.mono, .row > b, .activity .a-meta, .info dd { font-family: var(--mono); font-variation-settings: "MONO" 100, "DRKM" var(--drkm); letter-spacing: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 7px; border-bottom: var(--line) solid var(--rule); margin: 0 0 12px; }
.error::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--err); margin-right: 8px; }
:focus-visible { outline: var(--line) solid var(--text); outline-offset: 2px; }

/* ---------------------------------------------------------------- primitives */
.shell { max-width: 1480px; margin: 0 auto; padding: 16px; }
.panel { background: var(--panel); border-radius: var(--radius); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 var(--line) var(--rule); }
.sheet { padding: 20px 22px 24px; }
.sheet > .label:not(:first-child) { margin-top: 30px; }
.sheet p + p, .sheet p + .pill, .sheet .pill + .pill, .sheet .pill + p { margin-top: 10px; }

.pill {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 34px; padding: 7px 16px; border: 0; border-radius: 999px;
  background: var(--panel); text-align: left;
}
.sheet .pill { background: var(--card); }
input.pill { outline: none; }
input.pill:focus { box-shadow: inset 0 0 0 var(--line) var(--text); }
input.pill::placeholder { color: var(--faint); }
.pill-btn { cursor: pointer; }
.pill-btn:hover { box-shadow: inset 0 0 0 var(--line) var(--text); }
.pill-btn:disabled { color: var(--muted); cursor: default; }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.link:hover { color: var(--text); }

.tri { width: 0; height: 0; border: 5px solid transparent; flex: none; }
.tri.down { border-top: 7px solid var(--faint); border-bottom: 0; margin-top: 2px; }
.tri.right { border-left: 7px solid var(--faint); border-right: 0; }
.tri.left { border-right: 7px solid var(--faint); border-left: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); }
.dot.err { background: var(--err); }
.dot.busy { background: var(--busy); animation: throb 1s ease-in-out infinite; }
@keyframes throb { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border-radius: 999px; padding: 7px 18px; min-height: 34px; }
.wordmark { text-decoration: none; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 550; }
.bar-right { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bar-end { display: inline-flex; align-items: center; gap: 18px; min-width: 0; }
.theme { display: inline-flex; gap: 2px; background: var(--card); border-radius: 999px; padding: 2px; flex: none; }
.theme button { display: grid; place-items: center; width: 26px; height: 22px; border: 0; background: none; color: var(--muted); padding: 0; border-radius: 999px; cursor: pointer; }
.theme button:hover { color: var(--text); }
.theme svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; shape-rendering: geometricPrecision; }
.theme button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 var(--line) var(--text); }
#clock-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.select { position: relative; cursor: pointer; margin: 0; }
.select select { appearance: none; border: 0; background: none; width: 100%; outline: none; cursor: pointer; }
.account summary { display: flex; align-items: center; gap: 10px; width: 100%; list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.account summary span { flex: 1; }
.account img { width: 16px; height: 16px; border-radius: 50%; filter: grayscale(1); }
.account .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: inset 0 0 0 var(--line) var(--rule); min-width: 220px; }
.account .menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.account .menu button:hover { background: var(--panel); }

/* ---------------------------------------------------------------- sign in */
.signin { margin-top: 10px; }
.connect { padding: 56px 40px 32px; }
/* The start screen fills the window with the two cards in its middle. */
.signin .connect { min-height: calc(100vh - 82px); min-height: calc(100dvh - 82px); display: flex; flex-direction: column; justify-content: center; }
.pair { display: grid; grid-template-columns: minmax(0, 320px) minmax(60px, 180px) minmax(0, 320px); justify-content: center; align-items: center; }
.node.cnode { position: relative; left: auto; top: auto; width: auto; animation: rise .5s both; display: flex; flex-direction: column; }
.pair-wire { align-self: center; }
.connect .pill { background: var(--card); }
.cnode .box { display: grid; gap: var(--pad); padding: var(--pad); }
.cnode .box-title { padding: 0 6px; }
.cnode .pill { background: var(--card); }
.cnote { padding: 8px 10px 4px; }
/* Across the middle of the two cards, the ports on the middle of their sides. */
.pair-wire { position: relative; height: 0; border-top: var(--line) dashed var(--faint); margin: 0 -1px; }
.token-alt summary { list-style: none; cursor: pointer; padding-top: 4px; }
.token-alt summary::-webkit-details-marker { display: none; }
.token-alt summary:hover { color: var(--text); }
/* The ports sit on top of the cards' edges as whole dots, like the map's. */
.pair-wire { z-index: 2; }
.pair-wire::before, .pair-wire::after { content: ""; position: absolute; top: -5.5px; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 var(--line) var(--faint); }
.pair-wire::before { left: -5.5px; } .pair-wire::after { right: -5.5px; }
.pair-wire.ok { border-top-style: solid; border-top-color: var(--text); }
.pair-wire.ok::before, .pair-wire.ok::after { box-shadow: inset 0 0 0 var(--line) var(--text); }
.pair-wire .runner { position: absolute; top: -3.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); opacity: 0; }
.pair-wire.ok .runner { opacity: 1; animation: run 1.6s ease-in-out infinite; }
.pair-wire.busy .runner { opacity: 1; background: var(--busy); animation: run 1s linear infinite; }
@keyframes run { from { left: 0; } to { left: calc(100% - 6px); } }
.connect-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 820px; margin: 40px auto 0; padding-top: 14px; border-top: var(--line) solid var(--rule); }
.connect-foot .pill { width: auto; min-width: 180px; }
#signin-error { max-width: 820px; margin: 12px auto 0; }

/* ---------------------------------------------------------------- layout */
.app { display: grid; grid-template-columns: 180px minmax(0, 1fr) 270px; gap: 10px; align-items: start; }
.list { padding: 12px 8px; display: grid; }
.list a, .list button { display: block; text-align: left; text-decoration: none; border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.list a:hover, .list button:hover { background: var(--panel); }
.list button:disabled { color: var(--muted); }
#scan-status { grid-column: 1 / -1; }
#scan-status:not(:empty) { padding: 10px 14px 2px; border-top: var(--line) solid var(--rule); margin: 8px 6px 0; }

.stage { min-width: 0; }
.canvas-panel { padding: 16px; overflow: hidden; }
.canvas-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.badge.ok::before { background: var(--ok); }
.badge.busy::before { background: var(--busy); animation: throb 1s ease-in-out infinite; }
.badge.err::before { background: var(--err); }

.info { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 3px 12px; }
.info dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info dd a { text-decoration: none; }
.info dd a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- canvas */
.canvas-wrap { position: relative; width: 100%; overflow-x: auto; scrollbar-width: none; }
.canvas-wrap::-webkit-scrollbar { display: none; }
.canvas { position: relative; width: 900px; height: 500px; margin: 0 auto; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires-top { z-index: 3; }

.wire { fill: none; stroke: var(--text); stroke-width: var(--line); transition: stroke .4s; vector-effect: non-scaling-stroke; }
.wire.idle, .wire.faded { stroke: var(--faint); stroke-dasharray: 2 4; }
.wire.busy { stroke-dasharray: 4 4; animation: march .5s linear infinite; }
@keyframes march { to { stroke-dashoffset: -8; } }
.wire-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.port { fill: var(--card); stroke: var(--text); stroke-width: var(--line); vector-effect: non-scaling-stroke; }
.port.idle { stroke: var(--faint); }
.pulse-dot { fill: var(--busy); }
.pulse-dot.watch { fill: var(--ok); }
.spark { fill: var(--ok); }

.node {
  position: absolute; width: 260px; background: var(--card); border-radius: 18px; padding: var(--pad);
  transition: opacity .3s; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.node[data-node="source"] { left: 0; top: 40px; }
.node[data-node="check"] { left: 0; top: 290px; animation-delay: .06s; }
.node[data-node="export"] { left: 320px; top: 40px; animation-delay: .12s; }
.node[data-node="skip"] { left: 320px; top: 360px; animation-delay: .16s; }
.node[data-node="deploy"] { left: 640px; top: 40px; animation-delay: .2s; }
.node[data-node="live"] { left: 640px; top: 290px; animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.node.is-dim { opacity: .5; }
.node.flash .node-head .dot { animation: ping .9s ease-out; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ok); } 100% { box-shadow: 0 0 0 10px transparent; } }

.node-tag { position: absolute; top: -34px; left: 0; background: var(--card); padding: 3px 12px; border-radius: 999px; }
.node-head { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad) var(--pad); }
.node-head svg { width: 14px; height: 14px; stroke: var(--text); stroke-width: var(--line); fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; vector-effect: non-scaling-stroke; }
.node-head h3 { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.box { background: var(--well); border-radius: 12px; padding: var(--pad); }
/* Same as the card's own padding, so the boxes are evenly spaced inside it. */
.box + .box { margin-top: var(--pad); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 0; }
.row > span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.row > b { font-weight: 400; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .sep { color: var(--faint); margin: 0 4px; }
.box-title { color: var(--muted); padding: 2px 0; }
.meter { height: var(--line); background: var(--rule); overflow: hidden; margin: 7px 0 4px; }
.meter i { display: block; height: 100%; width: 35%; background: var(--text); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.site-link { text-decoration: none; }
.site-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- connection map */
.app.is-map { grid-template-columns: minmax(0, 1fr) 270px; }
.map-panel { padding: 16px; }
.map-hint { text-align: right; }
.map-actions { display: flex; align-items: center; gap: 16px; }
.map-actions .link { white-space: nowrap; }
.map-title { display: inline-flex; align-items: center; gap: 8px; }
.steps { display: inline-flex; gap: 3px; }
.steps .dot { width: 6px; height: 6px; }
.map { position: relative; padding: 10px 6px 6px; }
.map .wires { z-index: 0; }
/* Cards fit their content and are centred on each other, so each connection is level through their middles. */
.map-grid { position: relative; display: grid; grid-template-columns: minmax(0, 290px) minmax(90px, 1fr) minmax(0, 290px); gap: var(--pad) 0; align-items: center; justify-content: space-between; }
.map-col-title { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 2px; }
.mcell { min-width: 0; }
/* Cards keep their column's width; long values end in an ellipsis. */
.mnode .node-head h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnode { position: relative; left: auto; top: auto; width: auto; z-index: 1; }
.map:not(.entered) .mnode { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.map.entered .mnode { animation: none; }
.mnode.gh.new .node-head h3, .mnode.add .node-head h3 { color: var(--muted); }
.mnode.add .box { display: grid; gap: var(--pad); padding: var(--pad); }
.mnode.add .pill { background: var(--card); }
fieldset.seg.add-kind { margin: 0; display: flex; gap: 4px; }
fieldset.seg.add-kind label { margin: 0; flex: 1; min-width: 0; }
fieldset.seg.add-kind span { text-align: center; padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#link-progress { margin-top: 18px; }
#link-manage .info { margin-top: 16px; }
#link-manage .info .node-state { color: var(--text); }
.mnode.unlinked { opacity: .78; }
.mport { position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; border: var(--line) solid var(--text); background: var(--card); padding: 0; cursor: crosshair; z-index: 2; }
.mport.out { right: -6px; }
.mport.in { left: -6px; cursor: pointer; }
.mport:hover, .arming .mport.in { background: var(--text); }
.arming .mnode.gh.target { box-shadow: inset 0 0 0 var(--line) var(--text); cursor: pointer; }
.arming .mnode.gh:not(.target) { opacity: .45; }
.mnode.armed { box-shadow: inset 0 0 0 var(--line) var(--text); }
.mmid { display: flex; justify-content: center; align-items: center; min-width: 0; z-index: 1; }
.mlabel { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--card); border-radius: 999px; padding: 4px 11px; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; }
.mlabel.float { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.mlabel:hover { box-shadow: inset 0 0 0 var(--line) var(--text); }
.mnode.linked .node-head { cursor: pointer; }
#drag-wire { stroke-dasharray: 4 4; }
.runner-dot { fill: var(--ok); }
.runner-dot.busy { fill: var(--busy); }

/* ---------------------------------------------------------------- activity */
.activity { list-style: none; padding: 0; }
.activity li { position: relative; padding: 0 0 14px 20px; animation: rise .35s both; }
.activity li::before { content: ""; position: absolute; left: 3px; top: 15px; bottom: 1px; width: var(--line); background: var(--rule); }
.activity li:last-child::before { display: none; }
.activity li > .dot { position: absolute; left: 0; top: 6px; }
.activity .a-title { display: block; text-decoration: none; }
.activity a.a-title:hover { text-decoration: underline; }
.activity .a-meta { display: block; color: var(--muted); }
.activity li.pending { color: var(--muted); }

/* ---------------------------------------------------------------- dialogs, forms */
dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: var(--radius); padding: 0; background: var(--panel); color: var(--text); }
dialog[open] { animation: rise .25s both; }
dialog::backdrop { background: var(--backdrop); }
.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: var(--line) solid var(--rule); padding-bottom: 7px; margin-bottom: 4px; }
.dialog-head .label { border: 0; margin: 0; padding: 0; }
.dialog-foot { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 20px; }
.dialog-foot .pill { width: auto; min-width: 150px; }
dialog label { display: block; margin: 16px 0 6px; }
dialog p.muted { margin-top: 6px; }
label.check { display: flex; gap: 8px; align-items: center; }
fieldset.seg { border: 0; padding: 0; margin: 16px 0 0; }
fieldset.seg legend { padding: 0; margin-bottom: 6px; }
fieldset.seg label { display: inline-block; margin: 0 4px 0 0; cursor: pointer; }
fieldset.seg input { position: absolute; opacity: 0; pointer-events: none; }
fieldset.seg span { display: block; padding: 6px 16px; border-radius: 999px; background: var(--card); color: var(--muted); }
fieldset.seg input:checked + span { color: var(--text); box-shadow: inset 0 0 0 var(--line) var(--text); }
#connect-progress { margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 12px); opacity: 0; background: var(--card); box-shadow: inset 0 0 0 var(--line) var(--rule); padding: 7px 16px; border-radius: 999px; transition: .25s; pointer-events: none; z-index: 20; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .app { grid-template-columns: 180px minmax(0, 1fr); }
  .side { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { padding: 12px; }
  .bar { flex-wrap: wrap; border-radius: 18px; }
  .bar-end { width: 100%; justify-content: space-between; gap: 10px; }
  .connect { padding: 20px 12px; }
  .signin .connect { min-height: 0; }
  .pair { grid-template-columns: 1fr; }
  .pair-wire { justify-self: center; width: 0; height: 36px; border-top: 0; border-left: var(--line) dashed var(--faint); margin: 0; }
  .pair-wire.ok { border-left-style: solid; border-left-color: var(--text); }
  .pair-wire::before, .pair-wire::after { left: -5.5px; top: -5.5px; } .pair-wire::after { top: auto; bottom: -5.5px; right: auto; }
  .pair-wire .runner { left: -3.5px; top: 0; }
  @keyframes run { from { top: 0; } to { top: calc(100% - 6px); } }
  .connect-foot { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .pickers { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .list { grid-template-columns: 1fr 1fr; }
  .canvas-panel { padding: 12px; }
  /* Stack the flow vertically on phones. */
  .canvas { width: auto !important; height: auto !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .node { position: relative; left: auto !important; top: auto !important; width: 100% !important; }
  .node[data-node="skip"] { display: none; }
  .node + .node::before { content: ""; position: absolute; left: 50%; top: -22px; height: 22px; width: var(--line); background: var(--text); }
  .node.is-busy::before { background: repeating-linear-gradient(var(--busy) 0 4px, transparent 4px 8px); }
  .wires, .node-tag { display: none; }
  .app.is-map { grid-template-columns: 1fr; }
  .map-hint, .map-col-title, .map-grid > div:nth-child(2) { display: none; }
  .map-grid { grid-template-columns: 1fr; gap: 0; }
  .mcell:empty { display: none; }
  .mmid { min-height: 44px; position: relative; }
  .mmid:not(:empty)::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: var(--line); background: var(--text); }
  .mmid .mlabel { position: relative; }
  .mcell.fr + .mmid:empty + .mcell.gh { margin-top: var(--pad); }
  .map-grid > .mcell.gh { margin-bottom: 18px; }
  .mport.out { right: 50%; top: auto; bottom: -6px; margin: 0 -5.5px 0 0; }
  .mport.in { left: 50%; top: -6px; margin: 0 0 0 -5.5px; }
  .mlabel.float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.set-section { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
