/* Map page */
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.map-frame { display: block; width: 100%; height: calc(100vh - 230px); min-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
@media (max-width: 760px) { .map-frame { height: calc(100vh - 290px); min-height: 360px; } }

/* Servers page: one row per feature, one column per server */
.mx-card { padding: 0; overflow: hidden; }
.mx-card > .tablewrap, .card.mx-card > .tablewrap:first-child { margin: 0; border-radius: var(--radius); }
.mx { width: 100%; }
.mx thead th { vertical-align: bottom; padding: 12px; }
.mx th.srv, .mx td.srv { text-align: center; width: 150px; min-width: 124px; }
.mx td { vertical-align: middle; }
.mx-server { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--text); }
.mx-sub { font-weight: 400; font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
.mx-label { min-width: 250px; }
.mx-name { font-weight: 600; }
.mx-detail { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.mx-detail code { font: inherit; white-space: nowrap; color: color-mix(in srgb, var(--text) 78%, var(--muted)); }
.mx tr.mx-group td, .mx tr.mx-group:hover td { background: color-mix(in srgb, var(--panel-2) 55%, transparent); color: var(--muted); font-size: 12px; font-weight: 600; padding: 7px 12px; }
.mx td.na { color: var(--muted); }
.mx-note { font-size: 11px; color: var(--warn); margin-top: 3px; white-space: nowrap; }
.mx-foot { color: var(--muted); font-size: 12.5px; margin: 10px 2px 0; max-width: 76ch; }
.mx-pick { display: none; margin-bottom: 12px; }
.sw { flex: none; position: relative; width: 40px; height: 22px; border-radius: 11px; border: 1.5px solid var(--muted); background: var(--panel); cursor: pointer; padding: 0; vertical-align: middle; transition: background .15s, border-color .15s; }
.sw span { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--text); transition: transform .15s, background .15s; }
.sw:not(:disabled):hover { border-color: var(--accent); }
.sw.on { background: var(--good); border-color: var(--good); }
.sw.on span { transform: translateX(18px); background: #fff; }
.sw:disabled { opacity: .35; cursor: not-allowed; border-style: dashed; }
.sw:disabled span { background: var(--muted); }
/* while a click is being saved */
.sw.busy:disabled { opacity: .6; cursor: progress; border-style: solid; }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a narrow screen has room for one server's column: the buttons above the table choose which */
@media (max-width: 720px) {
  .mx-pick { display: block; } .mx-pick .seg { flex-wrap: wrap; }
  .mx .srv { display: none; } .mx th.srv.pick, .mx td.srv.pick { display: table-cell; width: 104px; min-width: 104px; }
  .mx-label { min-width: 0; } .mx-sub { white-space: normal; }
}
