/* ── Cosmos Armory ────────────────────────────────────────────────
   Data-dense dashboard on an OLED-dark ground. Density first:
   12px labels, 8px gaps, sticky chrome, everything scannable.
   ---------------------------------------------------------------- */

:root {
  --bg:        #08090b;
  --bg-panel:  #0f1114;
  --bg-raise:  #15181d;
  --bg-hover:  #1b1f26;
  --line:      #23272f;
  --line-soft: #191d23;

  --tx:        #e7eaee;
  --tx-dim:    #949aa5;
  --tx-faint:  #646b76;

  --gold:      #e0a955;
  --gold-dim:  #8a6a34;
  --cyan:      #57b6d8;
  --green:     #6cc08b;
  --red:       #d9695f;
  --violet:    #9b8cd4;

  --r:   6px;
  --r-lg: 10px;
  --gap: 8px;

  --h-top:    52px;
  --w-side:   232px;
  --w-detail: 340px;

  --cell: 32px;               /* icon atlas cell size */
  --atlas: url("icons/atlas-0.png");

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
code, .mono { font-family: var(--mono); font-size: .85em; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262b33; border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #333a45; }

/* ── icon sprite ──────────────────────────────────────────────── */

.ico {
  width: var(--cell); height: var(--cell);
  flex: none;
  background-image: var(--atlas);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.ico.blank { background: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; }

/* ── top bar ──────────────────────────────────────────────────── */

.topbar {
  height: var(--h-top);
  display: flex; align-items: center; gap: 18px;
  padding: 0 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 20;
}

.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(145deg, var(--gold), #7d5a24);
  box-shadow: 0 0 14px rgba(224,169,85,.28);
}
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: -.2px; color: var(--tx-dim); white-space: nowrap; }
.brand-name b { color: var(--tx); font-weight: 700; }

.search { position: relative; flex: 1; max-width: 560px; }
.search-ico {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; fill: none; stroke: var(--tx-faint); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
#q {
  width: 100%; height: 34px;
  padding: 0 34px 0 33px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}
#q::placeholder { color: var(--tx-faint); }
#q:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(224,169,85,.10); }
#q::-webkit-search-cancel-button { display: none; }
.qclear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 4px;
  color: var(--tx-faint); font-size: 17px; line-height: 1;
}
.qclear:hover { background: var(--bg-hover); color: var(--tx); }

.tabs { display: flex; gap: 2px; background: var(--bg); padding: 3px; border-radius: var(--r); border: 1px solid var(--line); }
.tab {
  padding: 4px 14px; border-radius: 4px; font-size: 13px; font-weight: 500;
  color: var(--tx-dim); transition: background .12s, color .12s;
}
.tab:hover { color: var(--tx); }
.tab.is-on { background: var(--bg-raise); color: var(--gold); }

.topmeta { margin-left: auto; font-size: 12px; color: var(--tx-faint); font-family: var(--mono); white-space: nowrap; }
.topmeta b { color: var(--tx-dim); font-weight: 500; }

/* ── layout ───────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: var(--w-side) minmax(0, 1fr) var(--w-detail);
  height: calc(100% - var(--h-top));
}
/* Sets view drops the facet sidebar. The column count must drop with it —
   a display:none child would otherwise slide content into the 232px track. */
body.view-sets .layout { grid-template-columns: minmax(0, 1fr) var(--w-detail); }
body.view-sets .sidebar { display: none; }

/* ── sidebar ──────────────────────────────────────────────────── */

.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 4px 0 20px;
}
.fgroup { padding: 12px 12px 14px; border-bottom: 1px solid var(--line-soft); }
.fgroup h3 {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--tx-faint);
}
.mini-clear { font-size: 10px; color: var(--tx-faint); text-transform: none; letter-spacing: 0; }
.mini-clear:hover { color: var(--gold); }

.tree { display: flex; flex-direction: column; gap: 1px; }
.trow {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 4px 7px;
  border-radius: 4px; text-align: left;
  font-size: 12.5px; color: var(--tx-dim);
  transition: background .1s, color .1s;
}
.trow:hover { background: var(--bg-hover); color: var(--tx); }
.trow.is-on { background: rgba(224,169,85,.11); color: var(--gold); }
.trow.sub { padding-left: 20px; font-size: 12px; }
.trow .tw-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tw-c { font-family: var(--mono); font-size: 10.5px; color: var(--tx-faint); }
.trow.is-on .tw-c { color: var(--gold-dim); }
.caret { width: 9px; font-size: 8px; color: var(--tx-faint); transition: transform .14s; }
.caret.open { transform: rotate(90deg); }

.sel {
  width: 100%; height: 30px; padding: 0 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  outline: none; font-size: 12.5px;
}
.sel:focus { border-color: var(--gold-dim); }
.sel-sm { height: 26px; font-size: 12px; }

.segmented { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 2px; gap: 2px; }
.segmented button {
  flex: 1; padding: 4px 6px; border-radius: 4px;
  font-size: 12px; color: var(--tx-dim); transition: background .12s, color .12s;
}
.segmented button:hover { color: var(--tx); }
.segmented button.is-on { background: var(--bg-raise); color: var(--gold); }
.segmented.sm button { flex: none; padding: 3px 9px; font-size: 13px; }

.lvrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dash { color: var(--tx-faint); }
.num {
  width: 100%; height: 28px; padding: 0 7px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  outline: none; font-family: var(--mono); font-size: 12px; text-align: center;
}
.num:focus { border-color: var(--gold-dim); }
.lvout { font-family: var(--mono); font-size: 10.5px; color: var(--tx-faint); text-transform: none; letter-spacing: 0; }
.rng { width: 100%; accent-color: var(--gold); height: 3px; }

.chk { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; color: var(--tx-dim); cursor: pointer; }
.chk:hover { color: var(--tx); }
.chk input { accent-color: var(--gold); width: 13px; height: 13px; }

.reset {
  margin: 14px 12px 0; width: calc(100% - 24px); padding: 7px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 12px; color: var(--tx-dim);
}
.reset:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── content ──────────────────────────────────────────────────── */

.content { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }

.toolbar {
  height: 40px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx-faint); overflow: hidden; }
.crumb {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 20px;
  background: var(--bg-raise); border: 1px solid var(--line);
  color: var(--tx-dim); font-size: 11.5px; white-space: nowrap;
}
.crumb b { color: var(--gold); font-weight: 500; }
.crumb .x { color: var(--tx-faint); font-size: 13px; line-height: 1; }
.crumb:hover .x { color: var(--red); }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
body.view-sets .tools { display: none; }   /* sort/grid toggle don't apply to sets */
.sortwrap { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx-faint); }

.scroller { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; contain: strict; }
.sizer { position: absolute; top: 0; left: 0; width: 1px; pointer-events: none; }
.viewport { position: absolute; top: 0; left: 0; right: 0; }

/* grid mode */
.gridrow { position: absolute; left: 0; right: 0; display: flex; gap: var(--gap); padding: 0 12px; }

.card {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 5px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  transition: border-color .12s, background .12s, transform .12s;
}
.card:hover { background: var(--bg-raise); border-color: #2e343d; transform: translateY(-1px); }
.card.is-on { border-color: var(--gold); background: rgba(224,169,85,.07); }
.card .ico { transform: scale(1.25); margin: 3px 0 6px; }
.card .cname {
  font-size: 11px; line-height: 1.27; color: var(--tx-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; width: 100%;
  height: 28px;              /* exactly 2 lines, so the clamp can ellipsise */
  overflow-wrap: anywhere;
}
.card.is-on .cname { color: var(--tx); }
.card .clv { font-family: var(--mono); font-size: 9.5px; color: var(--tx-faint); }

/* list mode */
.lrow {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .1s;
  text-align: left;          /* buttons centre their text by default */
}
.lrow:hover { background: var(--bg-panel); }
.lrow.is-on { background: rgba(224,169,85,.09); box-shadow: inset 2px 0 0 var(--gold); }
.lrow .lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lrow .lkey { font-family: var(--mono); font-size: 10.5px; color: var(--tx-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 260px; }
.lrow .lkind { font-size: 11px; color: var(--tx-dim); flex: 0 0 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .llv, .lrow .lid { font-family: var(--mono); font-size: 11px; color: var(--tx-faint); text-align: right; }
.lrow .llv { flex: 0 0 40px; }
.lrow .lid { flex: 0 0 56px; }

.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--tx-faint); padding: 40px; }
.empty[hidden] { display: none; }   /* class display: would otherwise beat the UA [hidden] rule */
.empty h4 { margin: 0; color: var(--tx-dim); font-size: 15px; font-weight: 500; }
.empty p { margin: 0; font-size: 13px; max-width: 340px; }
.empty .sugg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.empty .sugg button {
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-panel); font-size: 11.5px; color: var(--tx-dim);
}
.empty .sugg button:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── detail panel ─────────────────────────────────────────────── */

.detail { background: var(--bg-panel); border-left: 1px solid var(--line); overflow-y: auto; }
.detail-empty { display: grid; place-content: center; justify-items: center; gap: 14px; height: 100%; padding: 30px; text-align: center; }
.detail-empty p { margin: 0; font-size: 12.5px; color: var(--tx-faint); max-width: 210px; line-height: 1.6; }
.de-ico { width: 42px; height: 42px; border-radius: 9px; border: 1px dashed var(--line); }

.dhead { padding: 16px 16px 13px; border-bottom: 1px solid var(--line); }
.dhead-top { display: flex; gap: 14px; align-items: flex-start; }
.dicowrap {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.dicowrap .ico { transform: scale(1.75); }
.dtitle { min-width: 0; padding-top: 2px; }
.dtitle h2 { margin: 0 0 5px; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.15px; }
.dsub { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1.5px 7px; border-radius: 4px;
  background: var(--bg-raise); border: 1px solid var(--line);
  font-size: 10.5px; color: var(--tx-dim); white-space: nowrap;
}
.chip.gold  { color: var(--gold);   border-color: rgba(224,169,85,.3);  background: rgba(224,169,85,.09); }
.chip.cyan  { color: var(--cyan);   border-color: rgba(87,182,216,.3);  background: rgba(87,182,216,.09); }
.chip.viol  { color: var(--violet); border-color: rgba(155,140,212,.3); background: rgba(155,140,212,.09); }
.chip.green { color: var(--green);  border-color: rgba(108,192,139,.3); background: rgba(108,192,139,.09); }

.dsec { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.dsec:last-child { border-bottom: 0; }
.dsec h4 {
  margin: 0 0 9px; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx-faint);
}
.ddesc { margin: 0; font-size: 12.5px; color: var(--tx-dim); line-height: 1.55; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12.5px; }
.kv dt { color: var(--tx-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--tx); text-align: right; }
.kv dd.pos { color: var(--green); }
.kv dd.hi  { color: var(--gold); }

.copyrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.copyrow:last-child { margin-bottom: 0; }
.copyrow .cl { font-size: 10.5px; color: var(--tx-faint); flex: 0 0 46px; }
.copybtn {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--mono); font-size: 11px; color: var(--cyan);
  transition: border-color .12s, color .12s;
}
.copybtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copybtn small { color: var(--tx-faint); font-family: var(--font); font-size: 9.5px; flex: none; }
.copybtn:hover { border-color: var(--cyan); }
.copybtn.done { color: var(--green); border-color: var(--green); }

/* GM command builder */
.gmrow { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.gmf { display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--tx-faint);
       text-transform: uppercase; letter-spacing: .06em; flex: 1; min-width: 58px; }
.gmrow .chk { padding: 0 0 5px; font-size: 11.5px; }
.num.sm { height: 26px; font-size: 11.5px; }

.cmdline {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px;
  background: #05060a; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .12s;
}
.cmdline code { color: var(--gold); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdline small { color: var(--tx-faint); font-size: 9.5px; flex: none; }
.cmdline:hover { border-color: var(--gold-dim); }
.cmdline.done { border-color: var(--green); }
.cmdline.done code { color: var(--green); }
.cmdline.fail, .copybtn.fail { border-color: var(--red); }

.gmnote { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--tx-faint); }
.gmnote code { color: var(--cyan); font-size: 10.5px; }
.gmnote.alt { margin-top: 11px; padding: 7px 9px; border-radius: var(--r);
              background: var(--bg-raise); border-left: 2px solid var(--violet); }
.gmnote.alt b { color: var(--tx-dim); font-weight: 500; }
.gmsplit { margin: 14px 0 8px; font-size: 10px; font-weight: 600; letter-spacing: .1em;
           text-transform: uppercase; color: var(--tx-faint);
           border-top: 1px solid var(--line-soft); padding-top: 11px; }

/* drop tables (item "dropped by" + monster "drops") */
.drops { display: flex; flex-direction: column; gap: 1px; }
.drow {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 4px 6px; border-radius: 4px;
  text-align: left; font-size: 12px; color: var(--tx-dim);
  transition: background .1s, color .1s;
}
.drow:hover { background: var(--bg-hover); color: var(--tx); }
.drow .ico.sm { transform: scale(.72); margin: -4px -5px; }
.drow .dname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow .dlv { flex: none; min-width: 24px; font-family: var(--mono); font-size: 10px;
             color: var(--tx-faint); text-align: right; }
.drow .dpct { flex: none; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.drow .dtag { flex: none; padding: 0 4px; border-radius: 3px; background: var(--bg-raise);
              font-family: var(--mono); font-size: 9.5px; color: var(--tx-faint); }

/* a spawn row is informational, not clickable - do not invite a click */
.drow.static { cursor: default; }
.drow.static:hover { background: none; color: var(--tx-dim); }
.drow .dname small { color: var(--tx-faint); font-size: 10.5px; }

.linkish { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.linkish:hover { color: var(--gold); }
.gmnote.spaced { margin-top: 9px; }
.chip .tier { font-family: var(--mono); font-size: 9.5px; color: var(--tx-faint); font-weight: 400; }

/* monster rows */
.mrow .rank { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--tx-faint); }
.mrow .rank.gold { background: var(--gold); }
.mrow .rank.viol { background: var(--violet); }
.mrow .rank.red  { background: var(--red); box-shadow: 0 0 6px rgba(217,105,95,.5); }
.mrow .mdrops { flex: 0 0 70px; font-family: var(--mono); font-size: 10.5px; color: var(--tx-faint); text-align: right; }

.dicowrap.mob {
  font-size: 19px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: -.5px;
  background: linear-gradient(150deg, var(--bg-raise), var(--bg));
}

/* monsters view keeps the level + "has drops" filters, drops the rest */
body.view-monsters [data-f="cat"],
body.view-monsters [data-f="job"],
body.view-monsters [data-f="sex"],
body.view-monsters [data-f="set"],
body.view-monsters [data-f="icon"] { display: none; }
body.view-monsters .tools .segmented { display: none; }

.members { display: flex; flex-wrap: wrap; gap: 6px; }
.member {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .12s;
}
.member:hover { border-color: var(--gold); }
.member.is-on { border-color: var(--gold); background: rgba(224,169,85,.1); }

.bonus { margin-bottom: 10px; }
.bonus:last-child { margin-bottom: 0; }
.bonus-h {
  display: inline-block; margin-bottom: 4px; padding: 1px 7px;
  border-radius: 4px; background: rgba(224,169,85,.11);
  font-size: 10px; font-weight: 600; color: var(--gold); letter-spacing: .03em;
}

/* ── sets view ────────────────────────────────────────────────── */

.setgrid { padding: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.setcard {
  background: var(--bg-panel); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 12px 13px;
  transition: border-color .12s;
}
.setcard:hover { border-color: #2e343d; }
.setcard h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 600; color: var(--tx); }
.setcard .smeta { font-family: var(--mono); font-size: 10.5px; color: var(--tx-faint); margin-bottom: 9px; }
.setcard .members { margin-bottom: 10px; }
.setcard .bonus-h { font-size: 9.5px; }
.setcard .kv { font-size: 11.5px; }
.setcard .kv dd { font-size: 11px; }

@media (max-width: 1200px) { :root { --w-detail: 300px; --w-side: 200px; } }
@media (max-width: 980px)  { .detail { display: none; } .layout { grid-template-columns: var(--w-side) minmax(0,1fr); } }


/* ── "Server & data" ────────────────────────────────────────────────
   One click from every page. An armory reading a different tree than the
   server is worse than no armory, so provenance is never more than a click
   away and the live rates sit beside it. */
.serverbtn {
  margin-left: 10px; padding: 3px 9px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--bg-raise);
  color: var(--tx-dim); font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.serverbtn:hover { color: var(--tx); border-color: var(--cyan); }

.modal {
  position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, .62);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(680px, 100%); max-height: 86vh; overflow: auto;
  padding: 22px 24px 24px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.modal-card h3 { margin: 0 0 14px; font-size: 15px; }
.modal-card h4 { margin: 0 0 7px; font-size: 11px; letter-spacing: .06em;
                 text-transform: uppercase; color: var(--tx-faint); }
.modal-card h4.spaced { margin-top: 20px; }
.modal-card code { font-family: var(--mono); font-size: 11px; color: var(--cyan);
                   word-break: break-all; }
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 26px; height: 26px;
  border-radius: 5px; color: var(--tx-faint); font-size: 19px; line-height: 1;
}
.modal-x:hover { background: var(--bg-hover); color: var(--tx); }

.notes { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55;
         color: var(--tx-dim); }
.notes li { margin-bottom: 7px; }
.notes li b { color: var(--tx); }
.gmnote.inline { display: inline; margin: 0; }
.kv.spaced { margin-top: 12px; }
