:root{--top-base:78px}
@media(max-width:760px){:root{--top-base:112px}}
.missing-bar{
  height:var(--missing-h,38px);
  box-sizing:border-box;
  display:flex;
  align-items:center;
  padding:0 22px;
  font-size:.8125rem;
  line-height:1.4;
  color:#f2e2c4;
  overflow:hidden;
  background:linear-gradient(90deg,#6b4a12,#8a6518 45%,#6b4a12);
  border-bottom:1px solid #d8b45c80;
}
/* 内容用单行省略，避免长路径把布局撑坏 */
.missing-bar .mb-txt{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
/* 提示条出现时把 --top 撑高：默认按桌面单行 38px，
   JS 会实测真实高度写入 --missing-h 覆盖（移动端换行时高度不固定）。 */
:root[data-missing="1"]{--missing-h:38px;--top:calc(var(--top-base) + var(--missing-h))}
.missing-bar b{
  font-weight:600;
  color:#ffe9b0;
  word-break:break-all;
  padding:0 2px;
}
.missing-bar a{color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.missing-bar a:hover{color:#ffe9b0}
:root[data-theme="light"] .missing-bar{
  color:#4a3810;
  background:linear-gradient(90deg,#fdf3d8,#fbe9b8 45%,#fdf3d8);
  border-bottom:1px solid #c9a94e90;
}
:root[data-theme="light"] .missing-bar b{color:#7a4e06}
:root[data-theme="light"] .missing-bar a{color:#6b4a12}
:root[data-theme="light"] .missing-bar a:hover{color:#3d2a06}
@media(max-width:760px){
  /* 移动端：路径可能很长，单行省略会看不清，改为整块换行 */
  .missing-bar{
    height:auto;
    min-height:52px;
    display:block;
    padding:9px 16px;
    font-size:.75rem;
    line-height:1.55;
    overflow:visible;
  }
  .missing-bar .mb-txt{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
}
@media print{.missing-bar{display:none}}
/* The search container supplies the visible focus state; avoid a second inner outline. */
.search input:focus,.search input:focus-visible{outline:none;box-shadow:none}
