:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --line: #e6e8f0;
  --line-soft: #eef0f6;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-soft: #eff4ff;
  --gold: #f0b429;
  --silver: #9aa4b2;
  --bronze: #c4703a;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --radius: 16px;
  --radius-sm: 11px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.8); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; display:grid; place-items:center; font-size: 15px; }
.brand small { display:block; font-weight: 600; font-size: 11px; color: var(--ink-mute); letter-spacing: 0; }
.modes { display: flex; gap: 6px; background: var(--line-soft); padding: 4px; border-radius: 12px; }
.modes button {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px;
  color: var(--ink-soft); padding: 8px 16px; border-radius: 9px; cursor: pointer; transition: .15s;
}
.modes button.active { background: var(--card); color: var(--brand-ink); box-shadow: var(--shadow); }

/* ---------- shell ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 14px 20px 80px; }
.hero { text-align: center; padding: 6px 0 14px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(26px, 4vw, 38px); margin: 0 0 2px;
}
.hero .byline { margin: 0 0 8px; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.hero .byline a { color: var(--brand-ink); text-decoration: none; font-weight: 700; }
.hero .byline a:hover { text-decoration: underline; }
.hero p#heroSub { color: var(--ink-soft); margin: 0 auto; max-width: 560px; font-size: 14.5px; }

/* ---------- search ---------- */
.searchrow { display: flex; justify-content: center; margin: 12px 0 4px; }
.search { position: relative; width: min(560px, 100%); }
.search input {
  width: 100%; font: inherit; font-size: 15.5px; padding: 15px 18px 15px 46px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: var(--shadow); outline: none; transition: .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  z-index: 30; max-height: 320px; overflow-y: auto;
}
.suggest.hide { display: none; }
.suggest button {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent;
  font: inherit; text-align: left; padding: 11px 14px; cursor: pointer;
}
.suggest button:hover { background: var(--brand-soft); }
.suggest .cat { margin-left: auto; font-size: 12px; color: var(--ink-mute); }

/* ---------- board ---------- */
.stage { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; margin-top: 20px; }
.stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.stage-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0 0 3px; display:flex; align-items:center; gap:9px; }
.stage-head p { margin: 0; color: var(--ink-soft); font-size: 13.5px; max-width: 52ch; }
.stage-head .btns { flex: none; flex-wrap: nowrap; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar-anchor {
  border: 2px solid var(--brand); border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg,#fff, #fbfcff); margin-bottom: 16px;
}
.pillar-anchor .av { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.pillar-anchor b { font-size: 16px; letter-spacing: -.01em; }
.pillar-anchor small { display: block; color: var(--brand-ink); font-size: 12.5px; font-weight: 600; }

.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; margin-bottom: 14px; background: #fdfdff; }
.cat h3 { font-size: 12.5px; text-transform: none; color: var(--ink-soft); font-weight: 700; margin: 8px 10px 8px; }
.tool {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 11px; cursor: pointer;
  transition: .12s; border: 1px solid transparent;
}
.tool:hover { background: var(--brand-soft); }
.tool .av { width: 30px; height: 30px; border-radius: 8px; background: var(--line-soft); color: var(--ink-soft); display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: none; }
.tool .nm { font-weight: 600; font-size: 14px; }
.tool .medal { margin-left: auto; font-size: 15px; opacity: .9; }
.tool .count { margin-left: auto; min-width: 30px; text-align: center; font-weight: 800; font-size: 12.5px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 3px 8px; }
.tool .count.zero { color: var(--ink-mute); background: var(--line-soft); }
.tool.none { cursor: default; }
.tool.none:hover { background: transparent; }
.tool.none .av { background: var(--line-soft); color: var(--ink-mute); }
.tool.none .nm { color: var(--ink-mute); font-weight: 600; font-size: 13px; font-style: italic; }
.tool.static { cursor: default; }
.tool.static:hover { background: transparent; }
.fielderr { color: #b4232a; font-size: 12.5px; font-weight: 600; margin: -6px 0 12px; }
.fielderr.hide { display: none; }
.tool.dim { opacity: .28; }
.tool.picked { background: var(--brand-soft); border-color: var(--brand); }
.tool.picked .av { background: var(--brand); color: #fff; }
.tool.focus { background: #fff7e6; border-color: var(--gold); }

/* ---------- explore chart ---------- */
.chart { display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px; align-items: start; }
.orgchart { min-height: 420px; display: grid; place-items: center; padding: 10px; }
.node-center {
  border: 2px solid var(--brand); background: linear-gradient(180deg,#fff,#f4f8ff); border-radius: 18px;
  padding: 16px 20px; text-align: center; box-shadow: var(--shadow); margin: 0 auto 8px; max-width: 260px;
}
.node-center .av { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color:#fff; display:grid; place-items:center; font-weight:800; margin: 0 auto 8px; }
.node-center b { font-size: 18px; }
.node-center small { display:block; color: var(--brand-ink); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.rel-block { margin-top: 18px; }
.rel-block h4 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display:flex; align-items:center; gap:8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px 7px 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip .av { width: 22px; height: 22px; border-radius: 6px; background: var(--line-soft); display:grid; place-items:center; font-size:10px; font-weight:700; color: var(--ink-soft); }
.chip.vs { border-style: dashed; }
.panel h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 4px; }
.panel .role { color: var(--brand-ink); font-weight: 700; font-size: 13px; }
.panel .desc { color: var(--ink-soft); font-size: 14px; margin: 10px 0 4px; }

/* ---------- build summary ---------- */
.buildbar { display:flex; align-items:center; gap:14px; flex-wrap: wrap; margin: 2px 0 6px; }
.progress { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.progress b { color: var(--brand-ink); font-weight: 800; }
.linkbtn { border:0; background:transparent; font:inherit; font-size:13px; font-weight:700; color: var(--ink-mute); cursor:pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--brand-ink); }
.reco { background: var(--brand-soft); border: 1px solid #dbe6ff; border-radius: 12px; padding: 12px 15px; margin: 0 0 14px; font-size: 13.5px; color: var(--brand-ink); }
.reco.hide { display: none; }
.reco b { font-weight: 800; }
.mut { opacity: .65; font-weight: 600; }

/* ---------- integration graph ---------- */
.graphwrap { position: relative; margin-top: 6px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.graphwrap .pillar { position: relative; z-index: 1; }
.pillar-anchor.hub { position: relative; z-index: 5; }
.cat.has-pick { border-color: #cdddff; background: #fbfcff; }
.cat.empty { border-style: dashed; background: #fcfcfe; }
.cat.flash { animation: flash .9s ease; }
@keyframes flash { 0%,100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 4px var(--brand); } }
.gaptag { font-size: 10px; font-weight: 800; color: var(--bronze); background: #fbeee4; border-radius: 6px; padding: 1px 6px; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }

/* ---------- diagram nodes (build) ---------- */
.pillars .kids { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; margin-left: 30px; }
.node {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 15px; border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; min-height: 68px; transition: .14s;
}
.node.filled { animation: pop .22s ease; }
@keyframes pop { 0% { transform: scale(.97); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }
.node:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.node.empty { border-style: dashed; background: #fcfdff; }
.node.empty .nlabel b { color: var(--ink-mute); font-weight: 700; }
.node.empty:hover { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.node.empty:hover .nlabel b { color: var(--brand-ink); }
.node .av.add { transition: .14s; }
.node.empty:hover .av.add { background: var(--brand); color: #fff; transform: scale(1.1); }
.node.more { min-height: 50px; padding: 8px 14px; border-radius: 12px; }
.node.more .av.add { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }
.node.more .nlabel b { font-size: 12.5px; }
.node.more .nlabel small { font-size: 10.5px; }
.node.filled { border-color: #cdddff; box-shadow: var(--shadow); }
.node .av { width: 34px; height: 34px; border-radius: 9px; background: var(--line-soft); color: var(--ink-soft); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.node .av.add { background: var(--brand-soft); color: var(--brand); font-size: 18px; font-weight: 500; }
.node.filled .av { background: var(--brand); color: #fff; }
.node .nlabel { flex: 1; min-width: 0; }
.node .nlabel b { font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .nlabel small { display: block; color: var(--ink-mute); font-size: 11.5px; font-weight: 600; }
.node .nswap, .node .nremove { border: 0; background: var(--line-soft); width: 24px; height: 24px; border-radius: 7px; cursor: pointer; color: var(--ink-soft); font-size: 12px; flex: none; }
.node .nswap:hover, .node .nremove:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* hub node (bigger, the anchor of each column) */
.node.hub { border-width: 2px; min-height: 70px; padding: 14px 16px; }
.node.hub.empty { border-color: #bcd0ff; background: linear-gradient(180deg,#fff,#f7faff); }
.node.hub.filled { border-color: var(--brand); background: linear-gradient(180deg,#fff,#f4f8ff); }
.node.hub .av { width: 42px; height: 42px; border-radius: 11px; font-size: 14px; }
.node.hub.empty .av { background: var(--brand-soft); color: var(--brand); }
.node.hub .nlabel b { font-size: 16px; }
.node.hub .nlabel small { color: var(--brand-ink); font-weight: 600; }

/* picker popover */
.picker { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 16px rgba(15,23,42,.08), 0 20px 50px rgba(15,23,42,.18); padding: 10px; max-height: 300px; overflow-y: auto; cursor: default; animation: pickerin .16s ease; }
@keyframes pickerin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.picker-search { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; margin-bottom: 8px; }
.picker-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.picker-list { display: flex; flex-direction: column; gap: 2px; }
.picker-opt { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 10px 11px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); }
.picker-opt:hover, .picker-opt:focus-visible { background: var(--brand-soft); color: var(--brand-ink); outline: none; }
.picker-opt:first-child { background: var(--line-soft); }
.picker-opt:first-child:hover { background: var(--brand-soft); }
.picker-opt .av { width: 26px; height: 26px; border-radius: 8px; background: var(--line-soft); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); flex: none; }
.picker-opt.other .av { background: var(--brand-soft); color: var(--brand); }

/* ---------- gaps panel ---------- */
.gaps { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.gaps.empty { text-align: center; }
.gaps-hint { color: var(--ink-soft); font-size: 14px; }
.gaps h4 { font-size: 13.5px; margin: 4px 0 10px; color: var(--ink); font-weight: 800; }
.gapchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gapchip { font-size: 12.5px; font-weight: 700; color: var(--bronze); background: #fbeee4; border: 1px dashed #e6c3a6; border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: .12s; }
.gapchip:hover { background: #f7e2d2; border-color: var(--bronze); }

/* ---------- accent button ---------- */
.btn.accent { background: linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; border-color: transparent; }
.btn.accent:hover { filter: brightness(1.06); color:#fff; }
.btn.wide { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal.hide { display: none; }
.modal-card { position: relative; background: var(--card); border-radius: 20px; box-shadow: 0 24px 70px rgba(15,23,42,.3); width: min(420px, 100%); padding: 28px; }
.modal-x { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 16px; color: var(--ink-mute); cursor: pointer; }
.modal-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.modal-sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 18px; }
.modal-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.modal-card label .opt { font-weight: 500; color: var(--ink-mute); }
.modal-card input { width: 100%; font: inherit; font-size: 14.5px; margin-top: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.modal-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.modal-fine { font-size: 11.5px; color: var(--ink-mute); margin: 10px 0 0; }
.thanks { text-align: center; padding: 8px 0; }
.thanks .tick { width: 52px; height: 52px; border-radius: 50%; background: #e7f7ee; color: #16a34a; display: grid; place-items: center; font-size: 26px; font-weight: 800; margin: 0 auto 12px; }
.thanks .tick.warn { background: #fbeee4; color: var(--bronze); }
.thanks h3 { margin: 0 0 6px; }
.thanks p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }

/* ---------- buttons ---------- */
.btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btns-main { display: flex; gap: 8px; flex-wrap: wrap; }
.btns-share { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.btn { font: inherit; font-weight: 700; font-size: 13.5px; border-radius: 12px; height: 42px; padding: 0 16px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: .12s; white-space: nowrap; }
.btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn svg { width: 15px; height: 15px; display: block; flex: none; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-ink); color:#fff; }
.btn.ghost { background: transparent; }
.btn.icon { width: 42px; padding: 0; justify-content: center; color: var(--ink-soft); border-radius: 12px; }
.btn.icon:hover { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand); }
.btn.icon svg { width: 16px; height: 16px; }
.btn.icon.ok { color: #16a34a; border-color: #16a34a; background: #e7f7ee; }

/* ---------- community ranking ---------- */
.community { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 26px; margin-top: 18px; }
.community h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.community .cmut { font-size: 13px; color: var(--ink-mute); font-weight: 600; font-family: var(--font-sans); }
.community p.cmut { max-width: 640px; margin: 6px 0 0; line-height: 1.5; }
.rank { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 12px; }
.rank .rk { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.rank li:first-child .rk { background: var(--gold); color: #fff; }
.rank .rn { font-weight: 700; font-size: 14px; min-width: 180px; }
.rank .rn small { display: block; color: var(--ink-mute); font-size: 11.5px; font-weight: 600; }
.rank .rb { flex: 1; height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.rank .rb i { display: block; height: 100%; background: linear-gradient(90deg,#2563eb,#7c3aed); border-radius: 999px; }
.rank .rv { font-weight: 800; font-size: 13px; color: var(--ink-soft); width: 34px; text-align: right; }
.community-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.community-head h3 { margin: 0 0 3px; }
.csub { font-size: 13px; font-weight: 800; color: var(--ink); margin: 20px 0 10px; text-transform: none; }
.community .placeholder { margin-top: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scard { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fdfdff; }
.scard-head { font-size: 12px; font-weight: 700; color: var(--ink-mute); margin-bottom: 9px; }
.scard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scard-chip { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 4px 9px; }
.scard-chip.more { background: var(--line-soft); color: var(--ink-soft); }

/* ---------- advisory end card ---------- */
.advisory { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg,#eef4ff,#f3eeff); border: 1px solid #dbe3ff; border-radius: 20px; padding: 22px 26px; margin-top: 18px; }
.advisory .adv-ico { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.advisory .adv-body { flex: 1; min-width: 240px; }
.advisory h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.advisory p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; max-width: 620px; }

/* ---------- role chips (hotel / vendor) ---------- */
.rolegroup { display: flex; gap: 8px; margin-bottom: 12px; }
.rolechip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: .12s; }
.rolechip input { position: absolute; opacity: 0; pointer-events: none; }
.rolechip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.catlist { max-height: 320px; overflow-y: auto; }

/* ---------- modal toggle ---------- */
.modal-card label.toggle { display: flex; align-items: flex-start; gap: 9px; background: var(--brand-soft); border-radius: 11px; padding: 11px 12px; font-weight: 600; color: var(--ink); }
.modal-card label.toggle input { width: auto; margin: 2px 0 0; flex: none; }
.modal-card label.toggle small { display: block; font-weight: 500; color: var(--ink-mute); margin-top: 2px; }

.footer { text-align: center; color: var(--ink-mute); font-size: 12.5px; margin-top: 26px; }
.watermark { display:none; }

/* export mode: show watermark, hide interactive chrome inside capture */
.exporting .watermark { display: flex; align-items:center; justify-content:center; gap:8px; padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--line-soft); color: var(--ink-mute); font-size: 12.5px; font-weight: 600; }
.exporting .tool { cursor: default; }
.exporting .node.more,
.exporting .nswap,
.exporting .nremove,
.exporting .btns,
.exporting .linkbtn,
.exporting .wire-pulse { display: none !important; }

/* travelling light on live connections */
.wire-pulse { filter: drop-shadow(0 0 5px rgba(37,99,235,.85)); }

/* ---------- operations band ---------- */
.opsband { margin-top: 38px; border-top: 1px dashed var(--line); padding-top: 20px; }
.ops-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ops-head b { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.ops-head small { color: var(--ink-mute); font-size: 12.5px; font-weight: 600; }
.ops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.ops-grid.sats { margin-top: 14px; }
.ops-sats-label { margin-top: 24px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.ops-grid.sats .node.empty { background: #fafbfd; }
.opsband.meter .ops-grid { margin-top: 16px; align-items: start; }
@media (max-width: 920px) {
  .ops-grid { grid-template-columns: 1fr; }
}

/* png preview modal */
.modal-card.preview-card { width: min(760px, 100%); }
.png-preview { border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 56vh; background: #fff; margin: 0 0 14px; }
.png-preview img { width: 100%; display: block; }

@media (max-width: 920px) {
  .pillars { grid-template-columns: 1fr; }
  .chart { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; }
  .modes button { padding: 8px 12px; }
  .stage-head { flex-direction: column; }
  .stage-head .btns { flex-wrap: wrap; }
  .btns { width: 100%; }
  .btns-main { width: 100%; }
  .btns-main .btn { flex: 1; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}
