/* Windows of the site: the Wiki (src/wiki/wiki-window.js), zones from hand to
   hand (src/zones/zone-share.js), My account (src/auth/cabinet.js), and the
   Live Sync people list and invitations. */

/* ---- the window frame --------------------------------------------------------- */

.site-win {
  position: fixed;
  inset: 0;
  z-index: 8600;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
  visibility: hidden;
}
.site-win.is-open { pointer-events: auto; visibility: visible; }
.site-win-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.site-win.is-open .site-win-backdrop { opacity: 1; }
.site-win-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(860px, 100%);
  height: min(660px, calc(100vh - 96px));
  color: var(--text, #e4eaf2);
  background:
    linear-gradient(180deg, rgba(110, 176, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(18, 28, 44, 0.96), rgba(8, 13, 22, 0.97));
  border: 1px solid rgba(120, 184, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 0.84, 0.24, 1);
  overflow: hidden;
}
.site-win.is-open .site-win-card { opacity: 1; transform: none; }
.site-win-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(120, 184, 255, 0.12);
}
.site-win-kicker {
  color: rgba(200, 169, 106, 0.85);
  font: 700 9px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.site-win-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  color: #eef6ff;
  font: 300 21px/1.15 "Segoe UI", "Bahnschrift", sans-serif;
}
.site-win-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: rgba(120, 184, 255, 0.06);
  border: 1px solid rgba(120, 184, 255, 0.14);
  border-radius: 7px;
}
.site-win-tabs button {
  height: 26px;
  padding: 0 12px;
  color: rgba(200, 220, 242, 0.62);
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 700 10px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-win-tabs button[aria-selected="true"] {
  color: #eaf4ff;
  background: linear-gradient(180deg, rgba(61, 139, 255, 0.34), rgba(61, 139, 255, 0.16));
  border-color: rgba(120, 184, 255, 0.45);
}
.site-win-close {
  width: 30px;
  height: 30px;
  color: rgba(200, 220, 242, 0.6);
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}
.site-win-close:hover { color: #fff; }
.site-win-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 18px 18px;
  overflow: auto;
}

/* ---- shared pieces ------------------------------------------------------------ */

.shop-search input,
.shop-field input,
.shop-field textarea,
.cab-role {
  width: 100%;
  padding: 8px 11px;
  color: #eaf4ff;
  background: rgba(4, 8, 14, 0.66);
  border: 1px solid rgba(120, 184, 255, 0.2);
  border-radius: 6px;
  font: 400 13px/1.3 "Segoe UI", sans-serif;
  outline: none;
  box-sizing: border-box;
}
.shop-search input:focus,
.shop-field input:focus,
.shop-field textarea:focus {
  border-color: rgba(110, 176, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.3);
}
.cab-role { width: auto; padding: 5px 8px; font-size: 12px; }
.shop-field { display: grid; gap: 5px; }
.shop-field > span {
  color: rgba(168, 190, 216, 0.66);
  font: 700 9px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.shop-form { display: grid; gap: 10px; max-width: 460px; }
.shop-hint { color: rgba(200, 220, 242, 0.66); font-size: 12.5px; line-height: 1.45; }
.shop-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.shop-empty { padding: 18px 4px; color: rgba(200, 220, 242, 0.55); font-size: 12.5px; }
.shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(120, 184, 255, 0.04);
  border: 1px solid rgba(120, 184, 255, 0.1);
  border-radius: 8px;
}
.shop-item.is-official { border-color: rgba(200, 169, 106, 0.35); background: rgba(200, 169, 106, 0.05); }
.shop-item-name { display: flex; align-items: center; gap: 8px; color: #eef6ff; font-size: 13.5px; font-weight: 600; }
.shop-item-meta { margin-top: 3px; color: rgba(168, 190, 216, 0.7); font-size: 11.5px; }
.shop-item-desc { margin-top: 5px; color: rgba(214, 230, 248, 0.8); font-size: 12px; line-height: 1.4; }
.shop-item-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.shop-badge {
  padding: 1px 6px;
  color: #f1dfb7;
  border: 1px solid rgba(200, 169, 106, 0.6);
  border-radius: 999px;
  font: 700 8.5px/1.5 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-btn {
  height: 28px;
  padding: 0 11px;
  color: #cfe0f2;
  background: rgba(120, 184, 255, 0.07);
  border: 1px solid rgba(120, 184, 255, 0.24);
  border-radius: 6px;
  font: 700 10.5px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.shop-btn:hover { background: rgba(120, 184, 255, 0.16); }
.shop-btn:disabled { opacity: 0.45; cursor: progress; }
.shop-btn--primary {
  color: #eaf4ff;
  background: linear-gradient(180deg, rgba(61, 139, 255, 0.46), rgba(61, 139, 255, 0.22));
  border-color: rgba(120, 184, 255, 0.7);
}
.shop-btn--danger { color: #ffd2cd; background: rgba(255, 95, 82, 0.08); border-color: rgba(255, 95, 82, 0.35); }
.shop-btn--danger:hover { background: rgba(255, 95, 82, 0.18); }
.shop-pick-head { display: flex; align-items: center; justify-content: space-between; color: rgba(168, 190, 216, 0.75); font-size: 11.5px; }
.shop-picks { display: grid; gap: 3px; max-height: 260px; overflow: auto; padding-right: 4px; }
.shop-pick { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.shop-pick:hover { background: rgba(120, 184, 255, 0.06); }
.shop-pick i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.shop-pick small { display: block; color: rgba(168, 190, 216, 0.6); font-size: 10.5px; }
.shop-publish { justify-self: start; height: 34px; padding: 0 18px; }
.shop-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  z-index: 9002;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 14px;
  color: #e9f1fb;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.97), rgba(12, 18, 30, 0.97));
  border: 1px solid rgba(120, 184, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 300ms ease;
}
.shop-toast[data-kind="warn"] { border-color: rgba(255, 143, 134, 0.5); }
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- My account ------------------------------------------------------------------ */

.cab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.cab-stat {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(120, 184, 255, 0.04);
  border: 1px solid rgba(120, 184, 255, 0.1);
  border-radius: 8px;
}
.cab-stat span {
  color: rgba(168, 190, 216, 0.66);
  font: 700 9px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cab-stat b { color: #eef6ff; font-size: 15px; font-weight: 600; }
.cab-h {
  margin: 6px 0 0;
  color: rgba(214, 230, 248, 0.9);
  font: 600 12px/1.3 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cab-perms { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: rgba(214, 230, 248, 0.86); font-size: 12.5px; }
.cab-note { min-height: 16px; color: #9fd0a5; font-size: 12px; }
.cab-note[data-kind="warn"] { color: #ff8f86; }
.cab-loading { color: rgba(200, 220, 242, 0.55); font-size: 12.5px; }
.account-menu-cab {
  height: 28px;
  color: #eaf4ff;
  background: rgba(61, 139, 255, 0.16);
  border: 1px solid rgba(120, 184, 255, 0.45);
  border-radius: 6px;
  font: 700 10.5px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.account-menu-cab:hover { background: rgba(61, 139, 255, 0.28); }

/* ---- Live Sync: people online, invitations ----------------------------------------- */

.sync-me { margin-bottom: 10px; color: rgba(214, 230, 248, 0.82); font-size: 12px; }
.sync-people li { gap: 6px; }
.sync-people .sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ae582;
  box-shadow: 0 0 6px rgba(122, 229, 130, 0.6);
}
.sync-people [data-invite] { margin-left: auto; padding: 2px 8px; font-size: 10px; letter-spacing: 0.06em; }
.sync-role { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #f1dfb7; }
.sync-empty { color: rgba(200, 220, 242, 0.5); font-size: 11.5px; }

/* Rooms and streams open right now, and what you open yourself. */
.sync-live li { gap: 7px; }
.sync-live .sync-peer-name em { display: block; margin: 2px 0 0; font-size: 9.5px; }
.sync-live [data-enter] { width: auto; margin-left: auto; padding: 0 10px; font: 700 10px/1 "Segoe UI", sans-serif; }
.sync-live-row.is-stream { border-color: rgba(255, 93, 93, 0.4); background: rgba(255, 93, 93, 0.06); }
.sync-live-row.is-stream [data-enter] { color: #ffe1e1; border-color: rgba(255, 93, 93, 0.6); background: rgba(255, 93, 93, 0.18); }
.sync-title-input {
  width: 100%;
  box-sizing: border-box;
  height: 28px;
  margin-bottom: 7px;
  padding: 0 9px;
  color: #e9f1fb;
  background: rgba(8, 14, 24, 0.7);
  border: 1px solid rgba(127, 167, 199, 0.35);
  border-radius: 6px;
  font-size: 12px;
}
.sync-check { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 9px; color: rgba(200, 220, 242, 0.7); font-size: 10.5px; line-height: 1.35; cursor: pointer; }
.sync-check input { margin: 1px 0 0; accent-color: #4da3ff; }
.sync-invite-dot.is-stream { background: #ff5d5d; }
.sync-invites {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 9700;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 32px));
}
.sync-invite {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  color: #e9f1fb;
  background: linear-gradient(165deg, rgba(10, 18, 30, 0.97), rgba(7, 12, 20, 0.97));
  border: 1px solid rgba(77, 163, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(2, 6, 12, 0.7), 0 0 18px rgba(61, 139, 255, 0.18);
  font-size: 12.5px;
  animation: auth-rise 300ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
  transition: opacity 220ms ease, transform 220ms ease;
}
.sync-invite.is-leaving { opacity: 0; transform: translateX(12px); }
.sync-invite--note { border-color: rgba(120, 184, 255, 0.25); box-shadow: 0 14px 30px rgba(2, 6, 12, 0.6); }
.sync-invite-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(168, 190, 216, 0.8);
  font: 700 9px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.3em;
}
.sync-invite-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 8px rgba(255, 93, 93, 0.8);
  animation: site-pulse 1.2s ease-in-out infinite;
}
.sync-invite-actions { display: flex; gap: 6px; }
.sync-invite-actions button { flex: 1; height: 30px; }
@keyframes site-pulse { 50% { opacity: 0.35; } }

@media (max-width: 620px) {
  .site-win { padding: 0; }
  .site-win-card { width: 100%; height: 100%; border-radius: 0; }
  .site-win-head { grid-template-columns: minmax(0, 1fr) auto; }
  .site-win-tabs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .shop-item { grid-template-columns: 1fr; }
  .shop-item-acts { justify-content: flex-start; }
}

/* Node Studio: the three ways to keep a map, said once. */
.mg-save-explain {
  margin-top: 6px;
  color: rgba(168, 190, 216, 0.66);
  font-size: 10.5px;
  line-height: 1.45;
}
.mg-save-explain b { color: rgba(214, 230, 248, 0.86); font-weight: 600; }

/* ---- the admin panel (src/admin/admin-panel.js) ------------------------------------- */

.adm-card { width: min(1180px, 100%); height: min(780px, calc(100vh - 64px)); }
.adm-note { min-height: 16px; color: #9fd0a5; font-size: 12px; }
.adm-note[data-kind="warn"] { color: #ff8f86; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-tools label { display: inline-flex; align-items: center; gap: 6px; color: rgba(168, 190, 216, 0.8); font-size: 12px; }
.adm-tools input[type="number"] { width: 58px; }
.adm-tools input,
.adm-search {
  padding: 6px 9px;
  color: #eaf4ff;
  background: rgba(4, 8, 14, 0.66);
  border: 1px solid rgba(120, 184, 255, 0.2);
  border-radius: 6px;
  font: 400 12.5px/1.3 "Segoe UI", sans-serif;
  outline: none;
}
.adm-del input[data-del="bbox"] { flex: 1 1 260px; min-width: 220px; }
/* Copernicus ids, pasted in place (a browser prompt closes when you switch tabs to copy). */
.adm-fresh-ids {
  display: grid;
  grid-template-columns: max-content minmax(0, 360px) max-content;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
}
.adm-fresh-ids label { color: #dcebff; font-size: 12px; font-weight: 600; }
.adm-fresh-ids label small { display: block; color: rgba(168, 190, 216, 0.62); font-size: 10.5px; font-weight: 400; }
.adm-fresh-ids input {
  min-width: 0;
  padding: 7px 9px;
  color: #eaf4ff;
  background: rgba(4, 8, 14, 0.66);
  border: 1px solid rgba(120, 184, 255, 0.2);
  border-radius: 6px;
  font: 400 12.5px/1.3 Consolas, "Segoe UI", monospace;
  outline: none;
}
.adm-fresh-ids input:focus { border-color: rgba(120, 184, 255, 0.6); }
.adm-fresh-ids input.is-bad { border-color: rgba(255, 95, 82, 0.7); }
@media (max-width: 720px) {
  .adm-fresh-ids { grid-template-columns: minmax(0, 1fr) max-content; }
  .adm-fresh-ids label { grid-column: 1 / -1; }
}
.adm-search { flex: 0 1 260px; }
.adm-back { justify-self: start; }
.cab-stat small { color: rgba(168, 190, 216, 0.66); font-size: 11px; }
.adm-bar { height: 4px; background: rgba(120, 184, 255, 0.12); border-radius: 2px; overflow: hidden; }
.adm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d8bff, #c8a96a); }
.adm-user.is-banned { border-color: rgba(255, 95, 82, 0.35); background: rgba(255, 95, 82, 0.05); }
.adm-badge-ban { color: #ffd2cd; border-color: rgba(255, 95, 82, 0.6); }
.adm-zooms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.adm-zooms span {
  padding: 1px 6px;
  color: rgba(168, 190, 216, 0.8);
  background: rgba(120, 184, 255, 0.06);
  border: 1px solid rgba(120, 184, 255, 0.14);
  border-radius: 4px;
  font-size: 10.5px;
}
.adm-zooms b { margin-left: 4px; color: #eaf4ff; font-weight: 600; }
.adm-table-wrap { max-height: 420px; overflow: auto; border: 1px solid rgba(120, 184, 255, 0.1); border-radius: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.adm-table th {
  position: sticky;
  top: 0;
  padding: 6px 8px;
  color: rgba(168, 190, 216, 0.75);
  background: rgba(14, 22, 36, 0.98);
  font-weight: 600;
  text-align: left;
}
.adm-table td { padding: 5px 8px; color: rgba(214, 230, 248, 0.86); border-top: 1px solid rgba(120, 184, 255, 0.06); vertical-align: top; }
.adm-table tr.is-admin td { color: #f1dfb7; }
.adm-table tr.is-warn td { color: #ffb3ab; }

/* ---- the Wiki: whole maps with their pages (src/wiki/wiki-window.js) ------------------- */

.wk-win { width: min(1040px, 100%); height: min(760px, calc(100vh - 80px)); }
.wk-bar { display: flex; gap: 8px; align-items: center; }
.wk-search { flex: 1; min-width: 0; }
.wk-search,
.wk-code {
  height: 32px;
  padding: 0 10px;
  color: #e9f1fb;
  background: rgba(4, 8, 15, 0.7);
  border: 1px solid rgba(120, 184, 255, 0.22);
  border-radius: 7px;
  font-size: 12.5px;
  outline: none;
}
.wk-code { width: 92px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.wk-search:focus,
.wk-code:focus { border-color: rgba(140, 196, 255, 0.7); }
.wk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wk-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(120, 184, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.7);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.wk-card:hover,
.wk-card:focus-visible { border-color: rgba(140, 196, 255, 0.55); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); outline: none; }
.wk-cover,
.wk-hero {
  aspect-ratio: 16 / 9;
  background: #0b1320 center / cover no-repeat;
}
.wk-cover.is-blank,
.wk-hero.is-blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--hue), 70%, 60%, 0.35), transparent 60%),
    linear-gradient(135deg, hsla(var(--hue), 45%, 22%, 1), hsla(calc(var(--hue) + 40), 45%, 12%, 1));
}
.wk-cover.is-blank span,
.wk-hero.is-blank span { color: rgba(255, 255, 255, 0.82); font: 700 34px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.08em; }
.wk-card-body { display: grid; gap: 5px; align-content: start; padding: 10px 12px 12px; }
.wk-card-body b { color: #f0f6ff; font-size: 13.5px; line-height: 1.3; }
.wk-card-sum { color: rgba(206, 222, 240, 0.75); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-card-body small { color: rgba(150, 175, 205, 0.6); font-size: 10.5px; }

/* Cards or rows: the switch beside the search. */
.wk-view {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  background: rgba(4, 8, 15, 0.6);
  border: 1px solid rgba(120, 184, 255, 0.22);
  border-radius: 8px;
}
.wk-view button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  padding: 0;
  color: rgba(206, 222, 240, 0.7);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.wk-view button svg { width: 16px; height: 16px; }
.wk-view button:hover { color: #fff; }
.wk-view button[aria-pressed="true"] { color: #06121f; background: linear-gradient(180deg, #a9d4ff, #6eb0ff); }

/* The rows: one line a map, every heading sorts. */
.wk-rows { display: grid; gap: 4px; }
.wk-rows-head,
.wk-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(90px, 150px) 58px 68px 92px 74px;
  align-items: center;
  gap: 12px;
}
.wk-rows-head { padding: 0 11px 5px; border-bottom: 1px solid rgba(120, 184, 255, 0.12); }
.wk-rh {
  justify-self: start;
  padding: 0;
  color: rgba(160, 184, 212, 0.72);
  background: none;
  border: 0;
  font: 700 9.5px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.wk-rh:hover,
.wk-rh.is-sorted { color: #9fccff; }
.wk-rh--plain { cursor: default; }
.wk-rh--plain:hover { color: rgba(160, 184, 212, 0.72); }
.wk-rh[data-dir="down"]::after { content: " ↓"; }
.wk-rh[data-dir="up"]::after { content: " ↑"; }
.wk-rows-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.wk-row {
  padding: 6px 10px;
  background: rgba(8, 14, 24, 0.6);
  border: 1px solid rgba(120, 184, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.wk-row:hover,
.wk-row:focus-visible { background: rgba(14, 24, 40, 0.88); border-color: rgba(140, 196, 255, 0.5); outline: none; }
.wk-row-cover { width: 72px; aspect-ratio: 16 / 9; background: #0b1320 center / cover no-repeat; border-radius: 5px; }
.wk-row-cover.is-blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--hue), 70%, 60%, 0.35), transparent 60%),
    linear-gradient(135deg, hsla(var(--hue), 45%, 22%, 1), hsla(calc(var(--hue) + 40), 45%, 12%, 1));
}
.wk-row-cover.is-blank span { color: rgba(255, 255, 255, 0.82); font: 700 13px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.06em; }
.wk-row-main { display: grid; gap: 2px; min-width: 0; }
.wk-row-main b,
.wk-row-main small,
.wk-row-author { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk-row-main b { color: #f0f6ff; font-size: 13px; font-weight: 600; }
.wk-row-main small { color: rgba(206, 222, 240, 0.68); font-size: 11.5px; }
.wk-row-author { color: rgba(214, 230, 248, 0.82); font-size: 12px; }
.wk-row-num,
.wk-row-when { color: rgba(170, 194, 222, 0.78); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-row-code { color: #9fe8d8; font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.08em; }
@media (max-width: 820px) {
  .wk-rows-head,
  .wk-row { grid-template-columns: 56px minmax(0, 1fr) 76px 66px; gap: 10px; }
  .wk-row-cover { width: 56px; }
  .wk-col-author,
  .wk-col-num,
  .wk-row-author,
  .wk-row-num { display: none; }
}
.wk-back { justify-self: start; padding: 4px 0; color: #9fccff; background: none; border: 0; font-size: 12px; cursor: pointer; }
.wk-back:hover { color: #fff; }
.wk-page { display: grid; gap: 14px; max-width: 760px; }
.wk-page .wk-hero { border-radius: 10px; border: 1px solid rgba(120, 184, 255, 0.16); }
.wk-page-head h2 { margin: 0; color: #f4f8ff; font: 650 22px/1.25 "Segoe UI", system-ui, sans-serif; }
.wk-lede { margin: 6px 0 0; color: rgba(214, 230, 248, 0.86); font-size: 14px; line-height: 1.5; }
.wk-facts { margin-top: 8px; color: rgba(160, 184, 212, 0.75); font-size: 11.5px; }
.wk-facts b { color: #dbe8f7; font-weight: 600; }
.wk-codechip { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.08em; color: #9fe8d8 !important; }
.wk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wk-sec { padding-top: 12px; border-top: 1px solid rgba(120, 184, 255, 0.12); }
.wk-sec h3 { margin: 0 0 6px; color: rgba(200, 169, 106, 0.9); font: 700 10px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; }
.wk-sec p { margin: 0 0 8px; color: rgba(222, 234, 248, 0.88); font-size: 13px; line-height: 1.6; }
.wk-files { margin: 0 0 6px; padding-left: 18px; color: rgba(214, 230, 248, 0.82); font-size: 12px; }
.wk-files small { color: rgba(150, 175, 205, 0.6); }
.wk-muted, .wk-muted p { color: rgba(160, 184, 212, 0.6) !important; font-size: 11.5px !important; }
.wk-flash {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 8px 14px;
  color: #eaf4ff;
  background: rgba(10, 18, 30, 0.96);
  border: 1px solid rgba(120, 184, 255, 0.35);
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.wk-flash.is-on { opacity: 1; transform: translate(-50%, 0); }

/* The page a map gets when it is published. */
.wk-form-win { width: min(720px, 100%); height: min(820px, calc(100vh - 60px)); }
.wk-form-cover { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: center; }
.wk-cover-pick .wk-hero { border-radius: 8px; border: 1px solid rgba(120, 184, 255, 0.2); }
.wk-cover-acts { display: grid; gap: 6px; justify-items: start; }
.wk-cover-acts small { color: rgba(160, 184, 212, 0.6); font-size: 11px; }

/* ---- zones from hand to hand (src/zones/zone-share.js) -------------------------------------- */

.zs-win { width: min(560px, 100%); height: auto; max-height: calc(100vh - 80px); }
.zs-to { display: grid; gap: 6px; }
.zs-code-opt { display: flex; align-items: center; gap: 7px; color: rgba(200, 220, 242, 0.72); font-size: 11.5px; cursor: pointer; }
.zs-code-opt input { accent-color: #4da3ff; }
.zs-search { height: 26px; width: 150px; padding: 0 8px; color: #e9f1fb; background: rgba(4, 8, 15, 0.7); border: 1px solid rgba(120, 184, 255, 0.2); border-radius: 6px; font-size: 11.5px; outline: none; }
.zs-picks .shop-pick i { width: 9px; height: 9px; flex: none; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.zs-picks .shop-pick span { display: grid; }
.zs-picks .shop-pick small { color: rgba(150, 175, 205, 0.6); font-size: 10.5px; }
.zs-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.zs-msg { margin-right: auto; color: #ffd2a8; font-size: 11.5px; }
.zs-area { display: flex; align-items: center; gap: 10px; }
.zs-area b { color: #dbe8f7; font-weight: 600; font-size: 12.5px; }
.zs-done { display: grid; gap: 10px; }
.zs-done small { color: rgba(160, 184, 212, 0.65); }
.zs-code-row { display: flex; align-items: center; gap: 10px; }
.zs-code { padding: 8px 14px; color: #cfe7ff; background: rgba(77, 163, 255, 0.08); border: 1px dashed rgba(77, 163, 255, 0.5); border-radius: 7px; font: 800 18px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.22em; user-select: all; }
.sync-invite-dot.is-zones { background: #5eead4; box-shadow: 0 0 8px rgba(94, 234, 212, 0.8); }
.zs-card-note i { color: rgba(214, 230, 248, 0.72); }

@media (max-width: 620px) {
  .wk-form-cover { grid-template-columns: 1fr; }
  .wk-bar { flex-wrap: wrap; }
}

/* ---- Node Studio: Map | Zones ----------------------------------------------------------------- */

.mg-lib-head .mg-lib-tabs { flex: 1; padding: 0; }
.mg-lib-tabs button { position: relative; }
.mg-lib-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  color: #04121a;
  background: #5eead4;
  font: 800 9.5px/16px "Segoe UI", sans-serif;
  font-style: normal;
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.6);
}
.mg-lib-badge[hidden] { display: none; }
.mg-openmap,
.mg-zshare { display: grid; gap: 7px; padding: 10px 0 2px; border-top: 1px solid rgba(120, 184, 255, 0.12); }
.mg-openmap .mg-code { padding: 0; border: 0; }
.mg-zcode-input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 9px;
  color: #eaf4ff;
  background: rgba(4, 8, 15, 0.7);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 6px;
  font: 700 12px ui-monospace, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  outline: none;
}
.mg-zshare .mg-code-row .mg-btn { height: 26px; }
.mg-inbox { display: grid; gap: 5px; }
.mg-inbox[hidden] { display: none; }
.mg-inbox-row { border-color: rgba(94, 234, 212, 0.3) !important; background: rgba(94, 234, 212, 0.05); }
.mg-inbox-row.is-ask { border-color: rgba(255, 209, 102, 0.35) !important; background: rgba(255, 209, 102, 0.05); }
.mg-inbox-row .mg-lib-name b { color: #eaf4ff; }
.mg-cloud { display: grid; gap: 5px; padding-top: 8px; border-top: 1px solid rgba(120, 184, 255, 0.12); }
.mg-public[hidden] { display: none; }
/* The site has the Wiki window: no public-map counter or reload in the panel. */
.mg-lib-head .mg-srv[hidden],
.mg-lib-head [data-act="maps-refresh"][hidden] { display: none; }

/* ---- Plans (src/auth/plans.js) ------------------------------------------------- */
/* No window plate (owner, 2026-10-19): three cards stand on the darkened map,
   the free level is one quiet line under them. Text is sized to be read. */

.plans .plans-scrim {
  background: radial-gradient(120% 90% at 50% 40%, rgba(4, 8, 15, 0.82), rgba(2, 4, 9, 0.94));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.plans.site-win { overflow-y: auto; place-items: start center; }
.plans-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  width: min(1120px, 100%);
  margin: auto 0;
  padding: 14px 8px 16px;
  color: #eaf2fb;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 340ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.plans.is-open .plans-stage { opacity: 1; transform: none; }
.plans-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: rgba(214, 230, 248, 0.75);
  background: rgba(120, 184, 255, 0.08);
  border: 1px solid rgba(120, 184, 255, 0.25);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.plans-close:hover { color: #fff; background: rgba(120, 184, 255, 0.18); }
.plans-head { display: grid; justify-items: center; gap: 10px; text-align: center; }
.plans-kicker {
  color: #e8c574;
  font: 700 11px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.plans-head h2 { margin: 0; color: #fff; font: 300 34px/1.1 "Segoe UI", "Bahnschrift", sans-serif; }
.plans-period {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  padding: 4px;
  background: rgba(10, 16, 27, 0.7);
  border: 1px solid rgba(120, 184, 255, 0.22);
  border-radius: 999px;
}
.plans-period button {
  height: 34px;
  padding: 0 18px;
  color: rgba(214, 230, 248, 0.7);
  background: none;
  border: 0;
  border-radius: 999px;
  font: 700 12px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.plans-period button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, rgba(61, 139, 255, 0.6), rgba(61, 139, 255, 0.32)); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.6); }
.plans-period small { margin-left: 6px; color: #f1d58f; font-size: 10.5px; letter-spacing: 0.04em; text-transform: none; }
.plans-body { display: grid; gap: 16px; width: 100%; }

.plans-reason,
.plans-status,
.plans-crypto {
  justify-self: center;
  width: min(760px, 100%);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.plans-reason { color: #f6e7c4; text-align: center; background: rgba(200, 169, 106, 0.1); border: 1px solid rgba(200, 169, 106, 0.4); }
.plans-status { color: #e4effb; background: rgba(120, 184, 255, 0.08); border: 1px solid rgba(120, 184, 255, 0.3); }
.plans-status--ok { border-color: rgba(94, 234, 160, 0.5); background: rgba(94, 234, 160, 0.08); }
.plans-status--warn { border-color: rgba(255, 143, 134, 0.55); background: rgba(255, 95, 82, 0.08); }
.plans-status a { color: #9fd0ff; }
.plans-status svg { width: 14px; height: 14px; color: #e8c574; vertical-align: -2px; }
.plans-crypto { display: grid; gap: 10px; color: #e4effb; background: rgba(10, 16, 27, 0.8); border: 1px solid rgba(120, 184, 255, 0.28); }
.plans-crypto-row { display: flex; flex-wrap: wrap; gap: 8px; }
.plans-crypto-row .plan-btn { flex: 1 1 150px; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  min-width: 0;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, rgba(20, 31, 49, 0.96), rgba(10, 16, 27, 0.96));
  border: 1px solid rgba(120, 184, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.plan.is-current { border-color: rgba(140, 196, 255, 0.7); }
.plan.is-focus { border-color: rgba(232, 197, 116, 0.85); box-shadow: 0 0 0 2px rgba(232, 197, 116, 0.25), 0 22px 50px rgba(0, 0, 0, 0.45); }
.plan-top { display: grid; gap: 6px; }
.plan-name {
  color: #fff;
  font: 700 15px/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.plan-line { color: rgba(214, 230, 248, 0.78); font-size: 14px; line-height: 1.4; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(120, 184, 255, 0.14); }
.plan-price b { color: #fff; font: 300 46px/1 "Segoe UI", "Bahnschrift", sans-serif; letter-spacing: -0.01em; }
.plan-price span { color: rgba(214, 230, 248, 0.7); font-size: 15px; }
.plan-price small { flex-basis: 100%; color: rgba(190, 210, 232, 0.72); font-size: 12.5px; }
.plan-plus {
  color: rgba(190, 210, 232, 0.75);
  font: 700 11px/1.2 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-adds { display: grid; align-content: start; gap: 11px; margin: -4px 0 0; padding: 0; list-style: none; }
.plan-adds li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  color: #e8f0f9;
  font-size: 14.5px;
  line-height: 1.5;
}
.plan-adds svg { width: 18px; height: 18px; margin-top: 2px; color: #6eb0ff; }
.plan-acts { display: grid; gap: 8px; padding-top: 6px; }
.plan-btn {
  height: 44px;
  padding: 0 16px;
  color: #dcebfb;
  background: rgba(120, 184, 255, 0.08);
  border: 1px solid rgba(120, 184, 255, 0.3);
  border-radius: 10px;
  font: 700 13px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.plan-btn:hover { background: rgba(120, 184, 255, 0.18); }
.plan-btn:active { transform: translateY(1px); }
.plan-btn:disabled { opacity: 0.45; cursor: progress; }
.plan-btn--primary { color: #fff; background: linear-gradient(180deg, #3d8bff, #2a6fdc); border-color: #7db6ff; }
.plan-btn--primary:hover { background: linear-gradient(180deg, #5299ff, #3279e6); }
.plan-btn--quiet { height: 36px; background: none; border-color: transparent; color: #9fd0ff; text-decoration: underline; text-underline-offset: 3px; }
.plan-btn--quiet:hover { background: rgba(120, 184, 255, 0.08); }
.plan-state {
  display: grid;
  place-items: center;
  height: 44px;
  color: rgba(190, 210, 232, 0.75);
  border: 1px dashed rgba(120, 184, 255, 0.25);
  border-radius: 10px;
  font: 700 12px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-state.is-current { color: #bfe0ff; border-style: solid; border-color: rgba(140, 196, 255, 0.6); background: rgba(61, 139, 255, 0.12); }

/* Generalissimo: as grand as it gets. */
.plan--generalissimo {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(232, 197, 116, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(44, 34, 15, 0.97), rgba(16, 13, 9, 0.97));
  border-color: rgba(232, 197, 116, 0.65);
  box-shadow: 0 0 0 1px rgba(232, 197, 116, 0.14), 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(232, 197, 116, 0.12), inset 0 1px 0 rgba(255, 236, 190, 0.2);
}
.plan--generalissimo .plan-name {
  background: linear-gradient(180deg, #fff3cf, #e8c574 55%, #b0852f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
  letter-spacing: 0.32em;
}
.plan--generalissimo .plan-line { color: #f1dfb7; font-style: italic; }
.plan--generalissimo .plan-price { border-bottom-color: rgba(232, 197, 116, 0.22); }
.plan--generalissimo .plan-price b { color: #fff3cf; }
.plan--generalissimo .plan-plus { color: rgba(241, 223, 183, 0.75); }
.plan--generalissimo .plan-adds li { color: #fbf1dc; }
.plan--generalissimo .plan-adds svg { color: #e8c574; }
.plan--generalissimo .plan-btn--primary { color: #2a1d05; background: linear-gradient(180deg, #fbe7ad, #d9ae55); border-color: #f3d58c; }
.plan--generalissimo .plan-btn--primary:hover { background: linear-gradient(180deg, #fff0c4, #e4bb62); }
.plan--generalissimo .plan-btn--quiet { color: #f1d58f; }
.plan-crest {
  position: absolute;
  top: -12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  color: #2a1d05;
  background: linear-gradient(180deg, #fbe7ad, #d9ae55);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  font: 800 10px/1.3 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}
.plan-crest svg { width: 10px; height: 10px; }

/* Member: one quiet line. */
.plans-member {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  max-width: 100%;
  padding: 6px 14px;
  color: rgba(190, 210, 232, 0.72);
  background: rgba(10, 16, 27, 0.6);
  border: 1px solid rgba(120, 184, 255, 0.14);
  border-radius: 999px;
  font-size: 12.5px;
}
.plans-member b { color: #dcebfb; font-weight: 700; letter-spacing: 0.04em; }
.plans-member-act {
  padding: 0;
  color: #9fd0ff;
  background: none;
  border: 0;
  font: 700 12.5px/1 "Segoe UI", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.plans-member-state { color: #bfe0ff; font-weight: 700; }
.plans-foot { justify-self: center; max-width: 760px; color: rgba(168, 190, 216, 0.66); font-size: 12px; line-height: 1.55; text-align: center; }
.plans-link {
  padding: 0;
  color: #9fd0ff;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 980px) {
  .plans-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; justify-self: center; width: 100%; row-gap: 24px; }
  .plans-head h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .plans-stage { padding-top: 56px; }
  .plan { padding: 22px 18px 18px; }
  .plan-price b { font-size: 38px; }
}

/* My account → Plan */
.cab-plan-src { display: grid; gap: 6px; }
.cab-plan-src .shop-item-acts a { text-decoration: none; }
.cab-badge {
  margin-left: 6px;
  padding: 1px 6px;
  color: rgba(241, 223, 183, 0.9);
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 999px;
  font: 700 8px/1.5 "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.cab-versions { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; }
.cab-versions li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(200, 220, 242, 0.8); font-size: 12px; }
.sync-role--pro,
.sync-role--command { color: #9fd0ff; }
.sync-role--generalissimo { color: #e8c574; text-shadow: 0 0 8px rgba(232, 197, 116, 0.45); }

/* ---- the reference map on the Wiki (wiki-window.js) ----------------------------- */

.wk-ref {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(232, 197, 116, 0.08), transparent 60%),
    rgba(8, 14, 24, 0.75);
  border: 1px solid rgba(232, 197, 116, 0.5);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(232, 197, 116, 0.08), 0 14px 34px rgba(0, 0, 0, 0.35);
}
.wk-ref-cover { min-height: 100%; aspect-ratio: 16 / 9; background: #0b1320 center / cover no-repeat; }
.wk-ref-cover.is-blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--hue), 70%, 60%, 0.35), transparent 60%),
    linear-gradient(135deg, hsla(var(--hue), 45%, 22%, 1), hsla(calc(var(--hue) + 40), 45%, 12%, 1));
}
.wk-ref-cover.is-blank span { color: rgba(255, 255, 255, 0.82); font: 700 34px/1 "Bahnschrift", "Segoe UI", sans-serif; }
.wk-ref-body { display: grid; align-content: center; gap: 6px; padding: 14px 18px; }
.wk-ref-kicker,
.wk-ref-badge {
  color: #e8c574;
  font: 700 9.5px/1.3 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wk-ref-badge { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border: 1px solid rgba(232, 197, 116, 0.5); border-radius: 999px; }
.wk-ref-body b { color: #fff; font: 600 18px/1.25 "Segoe UI", sans-serif; }
.wk-ref-sum { color: rgba(214, 228, 244, 0.85); font-size: 13px; line-height: 1.45; }
.wk-ref-body small { color: rgba(168, 190, 216, 0.7); font-size: 11px; }
.wk-ref-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wk-log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wk-log li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; color: rgba(214, 228, 244, 0.86); font-size: 12.5px; }
.wk-log time { color: rgba(168, 190, 216, 0.7); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .wk-ref { grid-template-columns: minmax(0, 1fr); }
}

/* ---- a Wiki map's Changes; Node Studio's "Save to Wiki" ---------------------------- */
.wk-log li { grid-template-columns: 34px 96px minmax(0, 1fr) auto; align-items: baseline; }
.wk-rev { color: #8cc4ff; font: 700 11px/1 ui-monospace, Consolas, monospace; }
.wk-rev-note small { color: rgba(168, 190, 216, 0.6); }
.wk-rev-now { color: #7ae582; font: 700 10px/1 "Segoe UI", sans-serif; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; }
.wk-rev-open {
  padding: 3px 9px;
  color: #cfe0f2;
  background: rgba(120, 184, 255, 0.08);
  border: 1px solid rgba(120, 184, 255, 0.25);
  border-radius: 6px;
  font: 700 10px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.wk-rev-open:hover { background: rgba(120, 184, 255, 0.18); }
.mg-commit-note {
  width: 100%;
  min-width: 280px;
  height: 32px;
  padding: 0 10px;
  color: #eaf4ff;
  background: rgba(4, 8, 15, 0.75);
  border: 1px solid rgba(120, 184, 255, 0.3);
  border-radius: 6px;
  font: 400 13px/1 "Segoe UI", sans-serif;
  outline: none;
  box-sizing: border-box;
}
.mg-commit-note:focus { border-color: rgba(140, 196, 255, 0.75); }
.mg-btn[data-act="map-commit"].has-changes { box-shadow: 0 0 0 1px rgba(232, 197, 116, 0.6), 0 0 12px rgba(232, 197, 116, 0.25); }

/* ---- Wiki: My maps, what a version holds, what goes into it (wiki-window.js) ---------- */
.wk-tabs { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; margin-bottom: 2px; background: rgba(4, 8, 15, 0.6); border: 1px solid rgba(120, 184, 255, 0.22); border-radius: 8px; }
.wk-tabs button { padding: 5px 14px; color: rgba(206, 222, 240, 0.75); background: none; border: 0; border-radius: 6px; font: 600 12px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.wk-tabs button:hover { color: #fff; }
.wk-tabs button[aria-selected="true"] { color: #06121f; background: linear-gradient(180deg, #a9d4ff, #6eb0ff); }
.wk-mine { display: grid; gap: 12px; max-width: 820px; }
.wk-local { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(8, 14, 24, 0.75); border: 1px solid rgba(120, 184, 255, 0.28); border-radius: 10px; }
.wk-local-body { display: grid; gap: 4px; min-width: 0; }
.wk-local-kicker { color: #8cc4ff; font: 700 9.5px/1.3 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.wk-local-body b { color: #f0f6ff; font-size: 14px; }
.wk-local-body small { color: rgba(160, 184, 212, 0.75); font-size: 11.5px; }
.wk-mine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wk-mine-head h3 { margin: 0; color: rgba(200, 169, 106, 0.9); font: 700 10px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; }
.wk-my-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wk-my { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(10, 18, 30, 0.7); border: 1px solid rgba(120, 184, 255, 0.16); border-radius: 10px; }
.wk-my-main { display: grid; gap: 3px; min-width: 0; }
.wk-my-main b { color: #f0f6ff; font-size: 13.5px; }
.wk-my-main small { color: rgba(160, 184, 212, 0.7); font-size: 11px; }
.wk-my-line { color: rgba(206, 222, 240, 0.72); font-size: 11.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-my-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wk-inside { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: rgba(222, 234, 248, 0.88); font-size: 12.5px; line-height: 1.5; }
.wk-rev-note { display: grid; gap: 2px; }
.wk-rev-diff { color: rgba(156, 214, 170, 0.85) !important; font-size: 11.5px; }
.wk-include { display: grid; gap: 4px; margin: 4px 0 0; padding: 10px 12px 8px; border: 1px solid rgba(120, 184, 255, 0.22); border-radius: 8px; }
.wk-include legend { padding: 0 6px; color: rgba(200, 169, 106, 0.9); font: 700 10px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.wk-inc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 0; color: #e4eef9; font-size: 12.5px; cursor: pointer; }
.wk-inc small { color: rgba(160, 184, 212, 0.7); font-size: 11px; text-align: right; }
.wk-inc.is-empty span { color: rgba(206, 222, 240, 0.55); }
.wk-inc--file { padding-left: 22px; font-size: 12px; }
.wk-inc input:disabled + span { opacity: 0.45; }
.wk-inc-files { display: grid; gap: 0; }
@media (max-width: 640px) {
  .wk-my { grid-template-columns: minmax(0, 1fr); }
  .wk-my-acts { justify-content: flex-start; }
  .wk-local { flex-direction: column; align-items: flex-start; }
}
