:root {
  --bg: #08090c;
  --bg2: #0e1015;
  --panel: #12141a;
  --panel2: #171a21;
  --line: #23262f;
  --line2: #2e323d;
  --tx: #eef1f5;
  --tx2: #a3aab7;
  --tx3: #6c7382;
  --acc: #2ee6c5;
  --acc2: #3a8bff;
  --grad: linear-gradient(120deg, #2ee6c5 0%, #3a8bff 100%);
  --hi: #19f0c8;
  --bone: #e6dcc6;
  --muscle: #c4554a;
  --vessel: #e0473b;
  --nerve: #f0c419;
  --organ: #d48a7e;
  --font: "Segoe UI Variable Text", "Segoe UI", "Yu Gothic UI", "Meiryo UI", "Meiryo", sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", "Yu Gothic UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2e38; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; height: 100vh; }

/* ---- 左のメニュー ---- */
#rail { width: 200px; flex: none; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 18px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-d); letter-spacing: .22em; font-size: 12px; }
.brand-text b { font-weight: 700; color: var(--tx); }
.brand-text span { font-weight: 300; color: var(--tx2); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 10px; color: var(--tx2); transition: background .15s, color .15s; }
.nav-item svg { width: 22px; height: 22px; grid-row: 1 / 3; }
.nav-ja { font-size: 14px; font-weight: 600; }
.nav-en { font-size: 10px; letter-spacing: .16em; color: var(--tx3); text-transform: uppercase; }
.nav-item:hover { background: var(--panel); color: var(--tx); }
.nav-item.active { background: var(--panel2); color: var(--tx); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-item.active svg { color: var(--acc); }
.rail-foot { margin-top: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.ver { font-size: 11px; color: var(--tx3); letter-spacing: .08em; }
.credit-link { text-align: left; font-size: 11px; color: var(--tx3); text-decoration: underline; text-underline-offset: 3px; }
.credit-link:hover { color: var(--tx2); }

/* ---- 共通 ---- */
.view { display: none; flex: 1; min-width: 0; flex-direction: column; }
.view.active { display: flex; }
.topbar { height: 76px; flex: none; display: flex; align-items: center; gap: 28px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.title { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.title h1 { margin: 0; font-family: var(--font-d); font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.title .sub { font-size: 10px; letter-spacing: .28em; color: var(--tx3); }
.back { align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); color: var(--tx2); display: grid; place-items: center; margin-right: 2px; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--tx); border-color: var(--tx3); }

/* ---- レイヤー切替 ---- */
.layers { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.layer { position: relative; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 12px; border-radius: 20px; border: 1px solid var(--line2); color: var(--tx3); transition: all .15s; user-select: none; }
.layer .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; }
.layer svg { width: 20px; height: 20px; }
.layer .lname { font-weight: 600; font-size: 13px; white-space: nowrap; }
.layer .solo { white-space: nowrap; }
.layer .solo { font-size: 11px; padding: 3px 8px; border-radius: 10px; color: var(--tx3); border: 1px solid transparent; }
.layer .solo:hover { color: var(--tx); border-color: var(--line2); }
.layer.on { color: var(--tx); border-color: transparent; background: var(--panel2); }
.layer.on .dot { opacity: 1; background: var(--c); box-shadow: 0 0 10px var(--c); }
.layer.on svg { color: var(--c); }
.layer:hover { border-color: var(--line2); }
.layer-all { height: 40px; padding: 0 16px; border-radius: 20px; font-size: 12px; color: var(--tx2); border: 1px solid var(--line2); margin-left: 6px; }
.layer-all:hover { color: var(--tx); border-color: var(--tx3); }

/* ---- 3D 表示 ---- */
.stage { flex: 1; min-height: 0; display: flex; }
.viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 55% 45%, #1a1f2b 0%, #0d0f14 55%, #07080b 100%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; outline: none; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#labels { position: absolute; inset: 0; pointer-events: none; }
.lb { position: absolute; pointer-events: auto; height: 24px; line-height: 22px; padding: 0 10px; border-radius: 12px; font-size: 12px; white-space: nowrap; background: rgba(16, 18, 24, .86); border: 1px solid rgba(255, 255, 255, .12); color: var(--tx); backdrop-filter: blur(6px); cursor: pointer; transition: border-color .12s, background .12s, opacity .2s; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.lb:hover { border-color: var(--acc); background: rgba(22, 30, 34, .95); }
.lb.sel { background: var(--hi); color: #04110e; border-color: var(--hi); font-weight: 700; }
.lb .lt { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
#leaders line { stroke: rgba(255, 255, 255, .38); stroke-width: 1; }
#leaders line.sel { stroke: var(--hi); stroke-width: 1.5; }
#leaders circle { fill: #fff; }
#leaders circle.sel { fill: var(--hi); }
.labels-hidden #labels, .labels-hidden #leaders { opacity: 0; }

.regions { position: absolute; left: 20px; top: 20px; width: 150px; padding: 12px 8px 10px; border-radius: 14px; background: rgba(12, 14, 19, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 2; }
.panel-cap { font-size: 10px; letter-spacing: .24em; color: var(--tx3); padding: 0 10px 8px; }
.region { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--tx2); font-size: 13px; text-align: left; }
.region em { font-style: normal; font-size: 10px; color: var(--tx3); letter-spacing: .06em; }
.region:hover { background: rgba(255, 255, 255, .05); color: var(--tx); }
.region.active { background: var(--grad); color: #041014; font-weight: 700; }
.region.active em { color: rgba(4, 16, 20, .7); }
.side-switch { display: flex; margin: 10px 6px 2px; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.side-switch button { flex: 1; padding: 6px 0; font-size: 12px; color: var(--tx2); }
.side-switch button.on { background: var(--panel2); color: var(--tx); font-weight: 700; }
.hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 11px; color: var(--tx3); letter-spacing: .08em; pointer-events: none; white-space: nowrap; }
.note { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 8px 16px; border-radius: 18px; font-size: 12px; background: rgba(20, 22, 30, .9); border: 1px solid var(--line2); color: var(--tx2); z-index: 3; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg); z-index: 5; transition: opacity .5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading-mark { width: 56px; height: 56px; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--tx2); font-size: 13px; letter-spacing: .1em; }
.bar { width: 240px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* ---- 右パネル ---- */
.side { width: 340px; flex: none; display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--line); min-height: 0; }
#sel { padding: 22px 22px 20px; border-bottom: 1px solid var(--line); min-height: 132px; }
.sel-empty { color: var(--tx3); font-size: 12.5px; line-height: 1.8; }
.sel-layer { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--tx2); letter-spacing: .06em; }
.sel-layer i { width: 8px; height: 8px; border-radius: 50%; }
.sel-ja { font-family: var(--font-d); font-size: 22px; font-weight: 700; line-height: 1.35; margin: 8px 0 4px; }
.sel-en { font-size: 12px; color: var(--tx2); letter-spacing: .02em; }
.sel-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: var(--panel2); color: var(--tx2); border: 1px solid var(--line); }
.chip.ref { color: #f3c969; border-color: #4a3e1d; }
.sel-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn { font-size: 12px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line2); color: var(--tx2); }
.btn:hover { color: var(--tx); border-color: var(--tx3); }
.list-head { padding: 16px 22px 10px; }
.list-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.list-title em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--tx3); }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); color: var(--tx3); }
.search:focus-within { border-color: var(--acc); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 12.5px; }
.list { flex: 1; overflow-y: auto; padding: 4px 12px 24px; }
.grp { margin-top: 10px; }
.grp-h { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11px; letter-spacing: .1em; color: var(--tx2); background: var(--bg2); z-index: 1; }
.grp-h i { width: 7px; height: 7px; border-radius: 50%; }
.grp-h em { font-style: normal; color: var(--tx3); margin-left: auto; }
.it { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 7px; font-size: 12.5px; color: var(--tx2); line-height: 1.45; }
.it small { display: block; font-size: 10.5px; color: var(--tx3); }
.it:hover { background: var(--panel); color: var(--tx); }
.it.sel { background: rgba(25, 240, 200, .12); color: var(--hi); }
.it.off { opacity: .4; }
.empty { color: var(--tx3); font-size: 12px; padding: 14px 10px; }

/* ---- 疾患 ---- */
.dz { flex: 1; min-height: 0; overflow: hidden; display: flex; }
.dept-wrap { flex: 1; overflow-y: auto; padding: 36px 40px 48px; }
.dept-lead { color: var(--tx2); font-size: 13px; margin: 0 0 26px; }
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dept { position: relative; text-align: left; padding: 22px 22px 20px; min-height: 148px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.dept::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--dc) 0%, transparent 70%); opacity: .16; transition: opacity .2s; }
.dept:hover { transform: translateY(-2px); border-color: var(--line2); }
.dept:hover::after { opacity: .3; }
.dept-no { font-size: 11px; letter-spacing: .2em; color: var(--tx3); }
.dept-ja { font-family: var(--font-d); font-size: 20px; font-weight: 700; margin: 10px 0 4px; }
.dept-en { font-size: 10.5px; letter-spacing: .14em; color: var(--tx3); text-transform: uppercase; }
.dept-n { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--tx2); display: flex; align-items: center; gap: 8px; }
.dept-n i { width: 18px; height: 2px; background: var(--dc); border-radius: 2px; }
.dz-list { width: 320px; flex: none; overflow-y: auto; border-right: 1px solid var(--line); padding: 18px 12px 32px; background: var(--bg2); }
.dz-item { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 9px; color: var(--tx2); }
.dz-item b { display: block; font-size: 14px; font-weight: 600; color: inherit; }
.dz-item small { display: block; font-size: 11px; color: var(--tx3); margin-top: 2px; }
.dz-item:hover { background: var(--panel); color: var(--tx); }
.dz-item.active { background: var(--panel2); color: var(--tx); box-shadow: inset 3px 0 0 var(--dc); }
.dz-detail { flex: 1; overflow-y: auto; padding: 40px 56px 64px; }
.dz-detail-in { max-width: 860px; }
.dz-kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; color: var(--tx3); }
.dz-kicker i { width: 24px; height: 2px; background: var(--dc); }
.dz-name { font-family: var(--font-d); font-size: 34px; font-weight: 700; margin: 14px 0 4px; letter-spacing: .02em; line-height: 1.3; }
.dz-en { font-size: 13px; color: var(--tx2); }
.dz-summary { margin: 26px 0 8px; font-size: 15px; line-height: 2; color: var(--tx); padding-left: 18px; border-left: 2px solid var(--dc); }
.dz-sec { margin-top: 30px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.dz-sec h3 { margin: 0; font-size: 13px; color: var(--tx2); font-weight: 700; letter-spacing: .06em; }
.dz-sec h3 small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--tx3); font-weight: 400; margin-top: 4px; }
.dz-sec p { margin: 0; font-size: 14px; line-height: 1.95; color: #d6dbe3; }
.dz-sec ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.95; color: #d6dbe3; }
.dz-foot { margin-top: 40px; font-size: 11px; color: var(--tx3); }

.sheet-toggle { display: none; }
.hint-sp { display: none; }
#gl { touch-action: none; }

/* ---- スマホ（縦長の画面） ---- */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  html, body { font-size: 13px; }
  #app { flex-direction: column; height: 100dvh; }
  .hint-pc { display: none; }
  .hint-sp { display: inline; }

  /* 下のタブバー */
  #rail { order: 2; width: 100%; height: calc(58px + env(safe-area-inset-bottom)); flex-direction: row; align-items: stretch; padding: 0 6px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); }
  .brand { display: none; }
  .nav { flex-direction: row; flex: 1; gap: 0; }
  .nav-item { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 6px 0; border-radius: 0; background: none !important; }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-item .nav-en { display: none; }
  .nav-ja { font-size: 11px; }
  .nav-item.active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 2px; border-radius: 0 0 2px 2px; }
  .rail-foot { margin: 0; padding: 0 10px; justify-content: center; align-items: center; gap: 2px; }
  .ver { font-size: 9px; }
  .credit-link { font-size: 10px; }

  .view { order: 1; flex: 1; min-height: 0; }
  .topbar { height: auto; flex-wrap: wrap; gap: 8px; padding: 10px 12px 8px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .title { gap: 10px; }
  .title h1 { font-size: 19px; }
  .title .sub { font-size: 8.5px; letter-spacing: .2em; }

  /* レイヤー：横にスクロールできる列 */
  .layers { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .layers::-webkit-scrollbar { display: none; }
  .layer { height: 34px; padding: 0 4px 0 10px; gap: 6px; flex: none; }
  .layer svg { width: 17px; height: 17px; }
  .layer .lname { font-size: 12px; }
  .layer .solo { font-size: 10px; padding: 3px 6px; border-color: var(--line2); }
  .layer-all { height: 34px; padding: 0 12px; flex: none; margin-left: 2px; }

  /* 3D と下のシート */
  .stage { flex-direction: column; position: relative; }
  .viewport { flex: 1; min-height: 0; }
  .regions { left: 0; right: 0; top: 0; width: auto; padding: 8px 10px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .78); display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .regions::-webkit-scrollbar { display: none; }
  .panel-cap { display: none; }
  #regionList { display: flex; gap: 6px; }
  .region { width: auto; flex: none; padding: 7px 12px; border-radius: 16px; border: 1px solid var(--line2); white-space: nowrap; }
  .region em { display: none; }
  .region.active { border-color: transparent; }
  .side-switch { margin: 0; flex: none; }
  .side-switch button { padding: 6px 12px; }
  .hint { bottom: 8px; font-size: 10px; }
  .note { top: 54px; width: calc(100% - 24px); text-align: center; white-space: normal; }
  .lb { height: 22px; line-height: 20px; font-size: 11px; padding: 0 8px; max-width: 44vw; }

  .side { width: 100%; flex: none; border-left: 0; border-top: 1px solid var(--line); max-height: 38%; transition: max-height .25s; }
  .side.open { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78%; height: 78%; z-index: 6; box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); }
  #sel { padding: 10px 14px 8px; min-height: 0; border-bottom: 0; }
  .sel-empty { font-size: 11.5px; line-height: 1.6; }
  .sel-ja { font-size: 17px; margin: 4px 0 2px; }
  .sel-en { font-size: 11px; }
  .sel-meta { margin-top: 6px; }
  .sel-actions { margin-top: 8px; }
  .btn { padding: 6px 10px; }
  .sheet-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px 11px; border-top: 1px solid var(--line); color: var(--tx2); font-size: 12px; font-weight: 600; }
  .sheet-toggle i { width: 34px; height: 4px; border-radius: 4px; background: var(--line2); order: 3; margin-left: auto; }
  .sheet-toggle em { font-style: normal; font-weight: 400; color: var(--tx3); font-size: 11px; }
  .side:not(.open) .list-head, .side:not(.open) .list { display: none; }
  .side.open #sel { display: none; }
  .list-head { padding: 4px 14px 8px; }
  .list-title { display: none; }
  .list { padding: 0 8px 24px; }

  /* 疾患 */
  .dept-wrap { padding: 16px 12px 28px; }
  .dept-lead { margin-bottom: 14px; font-size: 12px; }
  .depts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dept { min-height: 112px; padding: 14px 14px 12px; }
  .dept-ja { font-size: 15px; margin: 6px 0 2px; }
  .dept-en { font-size: 8.5px; letter-spacing: .08em; }
  .dept-n { padding-top: 10px; font-size: 11px; }
  .dz { position: relative; }
  .dz-list { width: 100%; border-right: 0; padding: 8px 8px 24px; }
  .dz-detail { display: none; padding: 18px 16px 40px; }
  .dz.detail-open .dz-list { display: none; }
  .dz.detail-open .dz-detail { display: block; width: 100%; }
  .dz-name { font-size: 24px; }
  .dz-summary { font-size: 14px; line-height: 1.9; margin-top: 18px; }
  .dz-sec { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; padding-top: 16px; }
  .dz-sec p, .dz-sec ul { font-size: 13.5px; line-height: 1.9; }
  .modal-box { padding: 26px 20px 16px; max-height: 86dvh; overflow-y: auto; }
}

/* ---- Web版の公開 ---- */
.pub-box { width: min(720px, 94vw); }
.pub-lead { font-size: 13px; }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 14px; }
.pub-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--tx2); }
.pub-grid label.wide { grid-column: 1 / 3; }
.pub-grid input { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--tx); outline: none; font-size: 13px; }
.pub-grid input:focus { border-color: var(--acc); }
.pub-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.primary { background: var(--grad); color: #041014; border-color: transparent; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: default; }
.pub-open { margin-left: auto; font-size: 12px; color: var(--acc); }
.pub-status { margin-top: 14px; min-height: 44px; padding: 10px 12px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; color: var(--tx2); line-height: 1.7; white-space: pre-wrap; }
.pub-status.ok { color: var(--acc); border-color: rgba(46, 230, 197, .35); }
.pub-status.ng { color: #ff8a7a; border-color: rgba(255, 120, 100, .35); }
.pub-note { font-size: 11.5px !important; color: var(--tx3) !important; margin: 12px 0 0 !important; }

/* ---- モーダル ---- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(640px, 92vw); padding: 32px 36px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); }
.modal-box h2 { margin: 0 0 18px; font-size: 18px; }
.modal-box p { font-size: 13px; line-height: 1.85; color: var(--tx2); margin: 0 0 16px; }
.modal-box b { color: var(--tx); }
.modal-x { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--tx2); }
.modal-x svg { width: 18px; height: 18px; }
.modal-x:hover { background: var(--panel2); color: var(--tx); }
