/* ============================================================================
   Kernel Structures 閳?閺堫剙婀寸粋鑽ゅ殠濞村繗顫嶉崳?   缁?CSS閿涘本妫ゆ径鏍劥娓氭繆绂嗛敍娑欑箒閼瑰弶濡ч張顖烆棑閿涘本顢戦棃顫喘閸?   ========================================================================== */

:root {
  --bg: #0a0d12;
  --panel: #0e131b;
  --panel-2: #121924;
  --panel-3: #161f2c;
  --line: #1e2836;
  --line-2: #2a3647;
  --text: #d6dee9;
  --text-dim: #93a1b4;
  --muted: #67758a;
  --accent: #5aa2ff;
  --accent-dim: #2b5c99;
  --struct: #5aa2ff;
  --union: #b98cff;
  --enum: #e8b464;
  --added: #3ecf8e;
  --removed: #ff6b6b;
  --moved: #e8b464;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  --sans: "Segoe UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --radius: 8px;
  --fs-scale: 1;
  --zebra: rgba(255, 255, 255, .014);
  --hover: rgba(90, 162, 255, .07);
  --row-py: 5px;
  --code-bg: #0b1017;
  --code-fg: #c7d3e3;
  --code-cm: #5b6a80;
  --scroll: #26303f;
  --scroll-hover: #33415a;
  --sel: rgba(90, 162, 255, .3);
  --boot-1: #16233a;
  --boot-2: #0a0d12;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: calc(13px * var(--fs-scale));
  line-height: 1.5;
}

button, input, select { font: inherit; color: inherit; }

::selection { background: var(--sel); }

/* 缂佸棙绮撮崝銊︽蒋 */
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); background-clip: content-box; }

/* ============================ 妞よ埖鐖?============================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 8px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand__logo {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 8px rgba(0, 0, 0, .35);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: calc(13.5px * var(--fs-scale)); letter-spacing: .2px; }
.brand__text em { font-style: normal; font-size: calc(11px * var(--fs-scale)); color: var(--muted); }

.buildpick { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.buildpick__label { color: var(--muted); font-size: calc(11px * var(--fs-scale)); letter-spacing: .08em; text-transform: uppercase; }

select {
  appearance: none;
  max-width: min(46vw, 460px);
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b97a8'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 6px center / 16px,
    var(--panel-2);
  color: var(--text);
  font-size: calc(12.5px * var(--fs-scale));
  cursor: pointer;
}
select:hover { border-color: var(--line-2); }
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 360px;
  padding: 0 10px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.searchbox:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(90, 162, 255, .12); }
.searchbox svg { width: 15px; height: 15px; fill: var(--muted); flex-shrink: 0; }
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: calc(12.5px * var(--fs-scale));
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox kbd {
  flex-shrink: 0;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: calc(11px * var(--fs-scale));
}

/* ============================ 閺嬪嫬缂撴穱鈩冧紖閺?============================ */
.buildbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: calc(11.5px * var(--fs-scale));
  color: var(--text-dim);
  background: var(--panel-3);
  border: 1px solid transparent;
}
.chip--mono { font-family: var(--mono); color: var(--text); }
.chip--accent { color: var(--accent); background: rgba(90, 162, 255, .1); }
.buildbar .spacer { flex: 1; }

/* ============================ 娑撹缍嬬敮鍐ㄧ湰 ============================ */
.layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------------- 瀹革缚鏅堕崚妤勩€?---------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
  letter-spacing: .12em;
}

.structlist {
  flex: 1 1 auto;
  margin: 0;
  padding: 4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
}

.structlist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
  font-family: var(--mono);
  font-size: calc(12px * var(--fs-scale));
  color: var(--text-dim);
  white-space: nowrap;
}
.structlist li:hover { background: var(--panel-3); color: var(--text); }
.structlist li[aria-selected="true"] {
  background: rgba(90, 162, 255, .12);
  border-left-color: var(--accent);
  color: #fff;
}
.structlist .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--struct);
  opacity: .85;
}
.structlist .dot[data-k="U"] { background: var(--union); }
.structlist .dot[data-k="E"] { background: var(--enum); }
.structlist .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.structlist .size { color: var(--muted); font-size: calc(11px * var(--fs-scale)); }
.structlist mark { background: rgba(232, 180, 100, .3); color: var(--text); border-radius: 2px; }

.empty {
  padding: 16px 14px;
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale));
  line-height: 1.7;
}
.empty strong { color: var(--text-dim); font-weight: 600; }

/* ---------------- 閸欏厖鏅剁拠锔藉剰 ---------------- */
.detail {
  min-width: 0;
  overflow-y: auto;
  padding: 22px 26px 48px;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(90, 162, 255, .07), transparent 70%),
    var(--bg);
}

.detail__placeholder {
  max-width: 520px;
  margin: 12vh auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}
.detail__placeholder svg { width: 42px; height: 42px; fill: #24303f; margin-bottom: 10px; }
.detail__placeholder code {
  font-family: var(--mono);
  background: var(--panel-2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-dim);
}

.dhead { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.dhead__main { min-width: 0; flex: 1 1 320px; }

.dtitle {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  font-family: var(--mono);
  font-size: calc(26px * var(--fs-scale));
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  word-break: break-all;
}

.badge {
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: calc(10.5px * var(--fs-scale));
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--struct);
  background: rgba(90, 162, 255, .12);
  border: 1px solid rgba(90, 162, 255, .3);
}
.badge[data-k="U"] { color: var(--union); background: rgba(185, 140, 255, .12); border-color: rgba(185, 140, 255, .3); }
.badge[data-k="E"] { color: var(--enum); background: rgba(232, 180, 100, .12); border-color: rgba(232, 180, 100, .3); }

.dmeta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale));
}
.dmeta b { color: var(--text-dim); font-weight: 600; font-family: var(--mono); }

.dactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 1 auto; }
.dactions select { max-width: 250px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: calc(12px * var(--fs-scale));
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--panel-3); border-color: var(--line-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn--primary { color: var(--accent); border-color: var(--accent-dim); background: rgba(90, 162, 255, .12); }
.btn--primary:hover { background: rgba(90, 162, 255, .2); border-color: var(--accent); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 閻楀牊婀伴弶?*/
.versions { margin-top: 18px; }
.versions__label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
  letter-spacing: .12em;
}
.versions__list { display: flex; flex-wrap: wrap; gap: 6px; }
.versions__list.is-collapsed { max-height: 30px; overflow: hidden; }

.versions__more {
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: calc(11px * var(--fs-scale));
  cursor: pointer;
}
.versions__more:hover { color: var(--text-dim); border-color: var(--line-2); }

.vchip {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-size: calc(11.5px * var(--fs-scale));
  cursor: pointer;
  white-space: nowrap;
}
.vchip:hover { border-color: var(--line-2); color: var(--text); }
.vchip[aria-current="true"] { border-color: var(--accent); background: rgba(90, 162, 255, .14); color: var(--accent); }

/* 鐎涙顔岀粵娑⑩偓澶嬫蒋 */
.tablebar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin-top: 20px;
}
.tablebar input {
  flex: 1;
  max-width: 320px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--panel-2);
  outline: none;
  font-size: calc(12px * var(--fs-scale));
}
.tablebar input::placeholder { color: var(--muted); }
.tablebar input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(90, 162, 255, .1); }
.tablebar span { color: var(--muted); font-family: var(--mono); font-size: calc(11px * var(--fs-scale)); }
.tablebar + .tablewrap { margin-top: 8px; }

/* 鐎涙顔岀悰?*/
.tablewrap {
  margin-top: 20px;
  max-width: 1100px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--panel);
}

table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table--fields { min-width: 560px; }
.table--cmp { min-width: 620px; }

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
}

tbody td {
  padding: var(--row-py) 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--zebra); }
tbody tr:hover { background: var(--hover); }
tbody tr.row-add:hover { background: rgba(62, 207, 142, .1); }
tbody tr.row-del:hover { background: rgba(255, 107, 107, .1); }

td.off {
  color: var(--muted);
  font-family: var(--mono);
  font-size: calc(11.5px * var(--fs-scale));
  white-space: nowrap;
}
td.ty {
  font-family: var(--mono);
  font-size: calc(12px * var(--fs-scale));
  color: var(--text-dim);
  word-break: break-word;
}
td.nm {
  font-family: var(--mono);
  font-size: calc(12px * var(--fs-scale));
  color: var(--text);
  word-break: break-word;
}

a.typelink {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(90, 162, 255, .35);
  cursor: pointer;
}
a.typelink:hover { border-bottom-style: solid; }

.bits {
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(232, 180, 100, .14);
  color: var(--enum);
  font-size: calc(10.5px * var(--fs-scale));
}

tr.is-bit td.nm { color: var(--text-dim); padding-left: 30px; position: relative; }
tr.is-bit td.nm::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 7px; height: 1px;
  background: var(--line-2);
}
tr.is-bit td.off { color: var(--muted); }

/* 閺嬫矮濡囬崐?*/
td.val {
  font-family: var(--mono);
  color: var(--enum);
  font-size: calc(12px * var(--fs-scale));
  white-space: nowrap;
}
td.val small { color: var(--muted); margin-left: 6px; }

/* 閸掑洦宕查弸鍕紦閺冨墎娈戞潻鍥ㄦ诞 */
#detail.is-switching { opacity: .5; transition: opacity .15s ease; }

/* 鐎涙顔岄崝鐘烘祰娑?*/
.spinner {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  border: 2px solid rgba(120, 150, 190, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: vspin .8s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }

/* C 鐎规矮绠熸禒锝囩垳閸?*/
.codeblock {
  margin: 16px 0 0;
  max-width: 1100px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: calc(12px * var(--fs-scale));
  line-height: 1.65;
  overflow: auto;
  max-height: 460px;
  white-space: pre;
  tab-size: 4;
}
.codeblock .c { color: var(--code-cm); }

/* ============================ 閻楀牊婀扮€佃鐦?============================ */
.cmp {
  margin-top: 20px;
  max-width: 1100px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden auto;
  background: var(--panel);
}

.cmp__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: calc(12px * var(--fs-scale));
}
.cmp__head strong { font-family: var(--mono); color: var(--text); }
.cmp__stats { display: flex; gap: 10px; margin-left: auto; font-family: var(--mono); font-size: calc(11.5px * var(--fs-scale)); }
.cmp__stats .add { color: var(--added); }
.cmp__stats .del { color: var(--removed); }
.cmp__stats .mod { color: var(--moved); }

.cmp__empty { padding: 18px 14px; color: var(--muted); font-size: calc(12px * var(--fs-scale)); }

tr.row-add { background: rgba(62, 207, 142, .06); }
tr.row-del { background: rgba(255, 107, 107, .06); }
tr.row-mod { background: rgba(232, 180, 100, .05); }

tr.row-add td.nm::before { content: "+"; color: var(--added); margin-right: 6px; }
tr.row-del td.nm::before { content: "\2212"; color: var(--removed); margin-right: 6px; }
tr.row-mod td.nm::before { content: "~"; color: var(--moved); margin-right: 6px; }

td.delta { font-family: var(--mono); font-size: calc(11.5px * var(--fs-scale)); white-space: nowrap; }
td.delta.up { color: var(--moved); }
td.delta.down { color: var(--moved); }
td.delta.zero { color: var(--muted); }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: calc(11.5px * var(--fs-scale));
  cursor: pointer;
  user-select: none;
}
.toggle input { accent-color: var(--accent); }

/* ============================ 閻樿埖鈧焦鐖?/ 閹绘劗銇?============================ */
.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 28px;
  padding: 0 14px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(11px * var(--fs-scale));
  white-space: nowrap;
  overflow: hidden;
}
.statusbar .spacer { flex: 1; }
.statusbar a.footlink {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted #39465a;
}
.statusbar a.footlink:hover { color: var(--accent); border-bottom-color: var(--accent); }
.muted { color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-size: calc(12px * var(--fs-scale));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 10;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 閸濆秴绨插?============================ */
@media (max-width: 1100px) {
  .brand__text strong { white-space: nowrap; }
  .buildpick__label { display: none; }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; height: auto; flex-basis: auto; padding: 8px 12px; gap: 10px; }
  .buildpick { margin-left: 0; width: 100%; }
  .buildpick select { max-width: none; width: 100%; }
  .searchbox { flex: 1 1 100%; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(160px, 32vh) minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail { padding: 16px 14px 40px; }
  .dtitle { font-size: calc(21px * var(--fs-scale)); }
}

@media print {
  .topbar, .buildbar, .sidebar, .statusbar, .dactions { display: none; }
  body { overflow: visible; background: #fff; color: #000; }
  .detail { overflow: visible; }
}

/* 妫ｆ牗顐奸崝鐘烘祰閿涙艾鍙忛柌蹇曠处鐎涙绻樻惔?*/
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, var(--boot-1) 0%, var(--boot-2) 60%);
  transition: opacity .35s ease;
}
.boot.is-done { opacity: 0; }
.boot__inner { width: min(420px, 84vw); text-align: center; }
.boot__logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 12px 30px rgba(0,0,0,.5);
  margin-bottom: 16px;
}
.boot__title { font-size: calc(18px * var(--fs-scale)); font-weight: 650; letter-spacing: .2px; }
.boot__sub { margin-top: 6px; color: var(--muted); font-size: calc(12px * var(--fs-scale)); }
.boot__bar { margin: 22px 0 10px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.boot__bar > i {
  display: block; width: 0; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2f6fd0, #5aa2ff);
  transition: width .25s ease;
}
.boot__text { color: var(--text-dim); font-family: var(--mono); font-size: calc(11.5px * var(--fs-scale)); }
/* ============================ 澶栬闈㈡澘婊戝潡 ============================ */
.prefs__val {
  float: right;
  color: var(--text-dim);
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0;
}

.prefs__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 6px 0 2px;
  border-radius: 99px;
  background: var(--line-2);
  outline: none;
}
.prefs__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px var(--accent-dim);
  cursor: pointer;
}
.prefs__range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
  cursor: pointer;
}

/* ============================ 鎼滅储寤鸿 ============================ */
.searchbox { position: relative; }

.suggest {
  position: absolute;
  top: 38px;
  left: -1px;
  right: -1px;
  z-index: 70;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
  max-height: 340px;
  overflow-y: auto;
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.suggest__item:hover,
.suggest__item.is-active {
  background: var(--hover);
}

.suggest__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: calc(12.5px * var(--fs-scale));
}

.suggest__name mark {
  background: rgba(232, 180, 100, .28);
  color: inherit;
  border-radius: 2px;
}

.suggest__kind {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.suggest__hint {
  flex-shrink: 0;
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
}
/* ============================ 浏览历史 ============================ */
.histpop {
  position: fixed;
  z-index: 80;
  width: 304px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.histpop__head {
  padding: 6px 8px 8px;
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.histpop__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.histpop__item:hover { background: var(--hover); }

.histpop__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: calc(12.5px * var(--fs-scale));
}

.histpop__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale));
}

.histpop__empty { padding: 16px 10px; color: var(--muted); text-align: center; }

.btn[disabled] { opacity: .45; pointer-events: none; }