.topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.box { border:1px solid #ddd; border-radius: 12px; padding:12px; background:#fff; }
table { border-collapse: collapse; width: 100% }
th, td { border: 1px solid #ddd; padding: 8px; vertical-align: top; }
th { background: #f5f5f5; text-align:left; }
.muted { color:#666; font-size: .95em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.right { text-align:right; }
.btnlink { display:inline-block; padding:8px 12px; border:1px solid #ddd; border-radius:10px; text-decoration:none; color:#111; background:#fff; cursor:pointer; }
.btnlink.primary { background:#111; color:#fff; border-color:#111; }
.hidden { display:none !important; }
input[type="text"] { width: 360px; max-width: 100%; padding:8px; border:1px solid #ddd; border-radius:8px; }

.wd-wrap { position: relative; }
.wd-label-input { width: 360px; max-width: 100%; }
.wd-dd {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.wd-item { padding: 8px 10px; cursor: pointer; }
.wd-item:hover { background: #f5f5f5; }
.wd-title { font-weight: 600; display:flex; justify-content:space-between; gap:10px; }
.wd-qid { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color:#555; }
.wd-meta { color:#666; font-size:.92em; margin-top:2px; }


 .btn:focus {
  outline: 0;
  box-shadow: 0 0 0 .25rem #ffb3b62f;
}