#bilingual-vocabulary-search {
  color: #0f172a;
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

#bilingual-vocabulary-search * {
  box-sizing: border-box;
}

.bv-shell {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow: hidden;
}

.bv-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.bv-eyebrow {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.bv-title {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}

.bv-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 6px 0 0;
}

.bv-language {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  white-space: nowrap;
}

.bv-language button,
.bv-clear {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.bv-language button {
  background: transparent;
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.bv-language button[aria-pressed="true"] {
  background: #0f172a;
  color: #ffffff;
}

.bv-controls {
  background: #ffffff;
  border-bottom: 1px solid #dbe3ef;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1.4fr) auto minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
  padding: 18px 20px;
}

.bv-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bv-field span {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.bv-field input,
.bv-field select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font: inherit;
  height: 44px;
  outline: none;
  padding: 0 12px;
}

.bv-field input:focus,
.bv-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.bv-search,
.bv-clear {
  align-self: end;
  background: #0f172a;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  height: 44px;
  padding: 0 18px;
}

.bv-search:hover,
.bv-clear:hover {
  background: #1e293b;
}

.bv-summary {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 20px;
}

.bv-summary-label {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.bv-summary-value {
  font-weight: 700;
  margin: 3px 0 0;
}

.bv-total {
  text-align: right;
}

.bv-total strong {
  display: block;
  font-size: 26px;
}

.bv-error,
.bv-loading,
.bv-empty {
  padding: 26px 20px;
  text-align: center;
}

.bv-error {
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.bv-table-wrap {
  overflow-x: auto;
}

.bv-table {
  background: #ffffff;
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.bv-table th {
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
}

.bv-table td {
  border-top: 1px solid #e2e8f0;
  padding: 13px 14px;
  vertical-align: top;
}

.bv-primary {
  font-weight: 800;
}

.bv-muted {
  color: #64748b;
  font-size: 14px;
}

.bv-notes {
  color: #475569;
  font-size: 14px;
}

@media (max-width: 860px) {
  .bv-header,
  .bv-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .bv-controls {
    grid-template-columns: 1fr;
  }

  .bv-search,
  .bv-clear {
    width: 100%;
  }

  .bv-total {
    text-align: left;
  }
}
