/* ==========================================================================
   天河落 THL (tianheluo.com) — 标杆级动效与高级组件样式表 (fx.css v3)
   核心亮点：
   1. Raycast 双层磨砂玻璃外框启动器 (.win) + Linear 地平线舞台弧光
   2. Vercel Geist 建筑十字准星结构节点 (+)
   3. Linear 级微光聚光灯 (1px 边缘高光追光 + 丝滑阻尼动效)
   4. Raycast Store 双栏精密排行榜
   ========================================================================== */

/* 1. 顶部 2px 极细信号进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-brand);
  box-shadow: 0 0 10px var(--glow-strong);
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* 2. 微妙深空星尘画布 */
.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* 4. Linear 风格克制环境光束 (.beams) */
.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beams i {
  position: absolute;
  top: -35%;
  width: 1.5px;
  height: 140%;
  transform: rotate(22deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), var(--blue-bright), transparent);
  opacity: 0;
  animation: beam 9s ease-in-out infinite;
}

.beams i:nth-child(1) { left: 16%; }
.beams i:nth-child(2) { left: 31%; animation-delay: 1.6s; height: 120%; }
.beams i:nth-child(3) { left: 46%; animation-delay: 3.2s; }
.beams i:nth-child(4) { left: 61%; animation-delay: 0.8s; height: 130%; }
.beams i:nth-child(5) { left: 76%; animation-delay: 4.0s; }
.beams i:nth-child(6) { left: 88%; animation-delay: 2.4s; height: 115%; }

@keyframes beam {
  0%, 100% { opacity: 0; transform: rotate(22deg) translateY(-8%); }
  45% { opacity: 0.55; }
  75% { opacity: 0.1; transform: rotate(22deg) translateY(8%); }
}

/* 5. Raycast / Linear 精密微缩键盘键帽 (kbd) */
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 21px;
  padding: 0 6px;
  border-radius: 5px;
  font: 500 11px/1 var(--mono);
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn kbd {
  margin-left: 4px;
  height: 20px;
  min-width: 20px;
  font-size: 11px;
}

/* 高反差纯白主按钮内的深色精致键帽 */
.btn.pri kbd {
  background: rgba(8, 9, 10, 0.1);
  border-color: rgba(8, 9, 10, 0.18);
  color: #06080E;
  box-shadow: none;
  font-weight: 700;
}

/* 6. 标题流光渐变 (h1 .shine) */
h1 {
  font-size: clamp(40px, 6.8vw, 72px);
  letter-spacing: -0.035em;
}

h1 .shine {
  background: var(--grad-shine);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to { background-position: -220% 0; }
}

/* ==================== 启动器命令窗口 (.win) — Raycast 双层玻璃外框 + Linear 地平线弧光 ==================== */
.win {
  position: relative;
  max-width: 760px;
  margin: 60px auto 0;
  border-radius: 16px;
  background: #0d0e11;
  /* Raycast 标志性 8px 半透明磨砂外框 (Double-Bezel Ring) */
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: 8px solid rgba(255, 255, 255, 0.03);
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 0 0 9px rgba(255, 255, 255, 0.06),
    0 -18px 80px -12px var(--glow),
    0 45px 110px -20px rgba(0, 0, 0, 0.92);
}

/* 窗口顶部极光高光折射细线 */
.win::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), var(--blue-bright), transparent);
  pointer-events: none;
  z-index: 3;
}

.win .in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
  font-size: 16.5px;
  min-height: 58px;
}

.win .in .mag {
  color: var(--mute);
  font-size: 15px;
  opacity: 0.85;
}

.win .in #typed {
  color: #ffffff;
  font-weight: 500;
}

.win .in #typed:not(:empty)::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-bright);
  margin-left: 3px;
  vertical-align: -3px;
  animation: bl 1s steps(1) infinite;
}

.win .in .ph { color: var(--dim); }

.win .list {
  padding: 8px 10px 10px;
  min-height: 244px;
}

.win .grp {
  padding: 6px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.win .it {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease;
}

.win .it:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #e4e4e7;
}

.win .it .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4e4e7;
  flex: none;
}

.win .it small {
  margin-left: auto;
  color: var(--dim);
  font-size: 11.5px;
  font-family: var(--mono);
}

/* Raycast 选中行高亮样式 */
.win .it.sel {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.win .it.sel .ic {
  background: var(--grad-brand);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--glow);
}

.win .it.sel small {
  color: #d4d4d8;
}

.win .it.hide { display: none; }

.win .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  color: var(--dim);
}

.win .foot .sp { flex: 1; }

/* 悬浮 Toast 提示框 (.toast) — Raycast HUD 风格 */
.toast {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translate(-50%, 12px) scale(0.96);
  opacity: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(18, 20, 24, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #34d399;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ==================== 跑马灯条 (.marq) — Linear 极简徽章流 ==================== */
.marq {
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  margin-top: 76px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marq .tr {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: mq 34s linear infinite;
}

.marq:hover .tr { animation-play-state: paused; }

.marq span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.marq span b {
  color: var(--blue-bright);
}

@keyframes mq { to { transform: translateX(-50%); } }

/* ==================== Bento 特性矩阵 (.bento / .bn) — Linear 产品卡质感 ==================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.bn {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 21, 35, 0.82) 0%, rgba(10, 14, 23, 0.96) 100%);
  border: 1px solid var(--line);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 16px 40px -20px rgba(0, 0, 0, 0.75);
  transition: border-color 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bn:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* Linear 标志性克制白光追光 (Subtle Luminance Spotlight) */
.bn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.065), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bn:hover::before { opacity: 1; }

.bn.a { grid-column: span 4; }
.bn.b { grid-column: span 2; }
.bn.c { grid-column: span 2; }
.bn.d { grid-column: span 4; }

.bn h3 {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2px;
  position: relative;
}

.bn p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.65;
  max-width: 450px;
  position: relative;
}

.bn .viz {
  position: relative;
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
  z-index: 1;
}

/* 事务回退进度条 (.undo) */
.undo {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  background: #06080E;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.undo kbd {
  animation: key-press 4s ease-in-out infinite;
}

@keyframes key-press {
  0%, 40%, 100% { transform: translateY(0); }
  45%, 55% { transform: translateY(1.5px); border-color: rgba(255, 255, 255, 0.28); color: #ffffff; }
}

.undo .bar {
  height: 8px;
  flex: 1;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.undo .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-brand);
  border-radius: 99px;
  animation: fill 4s ease-in-out infinite;
  transform-origin: left;
}

@keyframes fill {
  0% { transform: scaleX(0); }
  45%, 60% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* 预览对照表 (.tbl) */
.tbl {
  display: grid;
  gap: 6px;
  font: 12px var(--mono);
  color: var(--mute);
}

.tbl div {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 9px;
  background: #06080E;
  border: 1px solid var(--line);
}

.tbl div span:last-child {
  text-align: right;
  color: var(--dim);
}

.tbl b {
  color: #34d399;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
}

.reveal.in .tbl div {
  animation: rowin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal.in .tbl div:nth-child(2) { animation-delay: 0.15s; }
.reveal.in .tbl div:nth-child(3) { animation-delay: 0.3s; }

@keyframes rowin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 星轨反应堆 (.orbit) */
.orbit {
  position: relative;
  height: 136px;
  display: grid;
  place-items: center;
}

.orbit::before {
  content: "";
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.orbit::after {
  content: "THL";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px var(--glow);
  display: grid;
  place-items: center;
  font: 800 10px var(--mono);
  color: #ffffff;
}

.orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #121418;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  font-size: 15px;
  animation: orb 14s linear infinite;
}

.orbit span:nth-child(2) { animation-delay: -3.5s; }
.orbit span:nth-child(3) { animation-delay: -7s; }
.orbit span:nth-child(4) { animation-delay: -10.5s; }

@keyframes orb {
  from { transform: rotate(0) translateX(61px) rotate(0); }
  to { transform: rotate(360deg) translateX(61px) rotate(-360deg); }
}

/* ==================== 滚动淡入与卡片高光追光 (.reveal / .final) ==================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.card, .pc, .panel, .step {
  position: relative;
  overflow: hidden;
}

.card::before, .pc::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.055), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::before, .pc:hover::before, .panel:hover::before {
  opacity: 1;
}

.final {
  text-align: center;
  padding: 96px 0 52px;
  position: relative;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 55% at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}

.final > * { position: relative; }

/* ==================== 热门插件榜与下载统计 (Raycast Store 风格 .rank / .rk) ==================== */
.tag.dl {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.chip-sep {
  width: 1px;
  height: 18px;
  background: var(--line2);
  margin: 0 4px;
}

.rank {
  background: linear-gradient(180deg, rgba(15, 21, 35, 0.82) 0%, rgba(10, 14, 23, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 var(--rim), 0 16px 40px -20px rgba(0, 0, 0, 0.75);
}

.rank-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #06080E;
  border: 1px solid var(--line);
  margin: 0 0 14px;
}

.rank-tabs button {
  border: 0;
  background: transparent;
  color: var(--mute);
  height: 28px;
  padding: 0 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.16s ease;
}

.rank-tabs button:hover { color: var(--text); }

.rank-tabs button.on {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rank-note {
  grid-column: 1 / -1;
  color: var(--mute);
  font-size: 12.5px;
  margin: 2px 4px 10px;
}

.rank-body {
  display: grid;
  gap: 6px;
}

@media (min-width: 861px) {
  .rank[data-limit="10"] .rank-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }
}

.rk {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.rk:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.rk .no {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font: 600 12.5px var(--mono);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rk .no.top {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
}

.rk .nm {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.rk .nm b {
  font-size: 14.5px;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk .nm small { color: var(--dim); font-size: 12px; }

.rk .cnt {
  color: var(--mute);
  font: 500 12.5px var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pic {
  display: grid;
  place-items: center;
  border-radius: 22%;
  border: 1px solid;
  flex: none;
}

/* ==================== 页脚微信二维码与导航 GitHub 按钮 ==================== */
#foot .wx {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 188px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#foot .wx img {
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
  width: 104px;
  height: 104px;
  display: block;
}

#foot .wx span {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
}

.nav nav a.ghlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.nav nav a.ghlink:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.btn .ghi { flex: none; }

h1.pt {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  margin: 12px 0 12px;
  font-weight: 700;
}

/* ==================== 响应式与无障碍降级 ==================== */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bn.a, .bn.b, .bn.c, .bn.d { grid-column: auto; min-height: auto; }
}

/* 导航两行排布：品牌 + 搜索 + 下载在第一行，链接在第二行横向滑动（平板与手机共用，避免挤在一行） */
@media (max-width: 960px) {
  .nav .wrap { height: auto; flex-wrap: wrap; gap: 0; padding: 10px 14px 6px; }
  .nav .sp { display: none; }
  .brand { white-space: nowrap; flex: none; }
  .nav nav { order: 3; flex: 0 0 100%; margin: 8px -6px 0; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { white-space: nowrap; flex: none; }
  .nav .btn { margin-left: 8px; }
  .hud-open { margin-left: auto; }
}

@media (max-width: 700px) {
  .nav .btn { display: none; }
}

/* 平板宽度：GitHub 只留图标，文字不换行（文字仍在 DOM 里，屏幕阅读器可读） */
@media (min-width: 701px) and (max-width: 960px) {
  .brand, .nav nav a, .nav .btn { white-space: nowrap; }
  .nav nav a { padding: 7px 9px; }
  .nav nav a.ghlink { font-size: 0; padding: 7px 8px; }
  .nav nav a.ghlink .ghi { width: 16px; height: 16px; }
}

@media (max-width: 560px) {
  .nav nav a.ghlink { padding: 6px 8px; font-size: 0; }
  .nav nav a.ghlink .ghi { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tbl div { opacity: 1; }
}

/* ==================== v4 · 命令舱 HUD（Ctrl+K / "/"）与导航搜索按钮 ==================== */
.hud {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
  background: rgba(3, 5, 10, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: hud-in 0.14s ease-out;
}

.hud[hidden] {
  display: none;
}

@keyframes hud-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hud-box {
  width: min(620px, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--rim);
  overflow: hidden;
}

.hud-in {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: 16px var(--font);
  outline: none;
}

.hud-in::placeholder {
  color: var(--dim);
}

.hud-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  flex: 1;
}

.hud-list li {
  margin: 0;
}

.hud-it {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
}

.hud-it b {
  font-weight: 600;
  font-size: 15px;
}

.hud-it small {
  color: var(--mute);
  font-size: 12.5px;
}

.hud-it.on {
  background: rgba(63, 169, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(63, 169, 255, 0.25);
}

.hud-empty {
  padding: 22px;
  color: var(--dim);
  text-align: center;
}

.hud-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

.hud-foot kbd {
  font-size: 11px;
  margin-right: 3px;
}

.hud-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mute);
  font: 500 13px var(--font);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.hud-open:hover {
  color: var(--text);
  border-color: var(--line2);
}

.hud-open kbd {
  font-size: 10.5px;
  padding: 1px 5px;
}

@media (min-width: 701px) and (max-width: 960px) {
  .hud-open kbd { display: none; }
}

@media (max-width: 700px) {
  .hud-open span, .hud-open kbd { display: none; }
  .hud-open { margin-left: auto; padding: 0 8px; }
}
