.er-masaq {
  margin: 0.65rem 0 0;
  border: 1px solid var(--sp-border, rgba(196, 163, 90, 0.28));
  border-radius: 12px;
  background: rgba(14, 26, 20, 0.72);
  padding: 0.55rem 0.7rem 0.7rem;
}

.er-masaq[hidden] {
  display: none;
}

.er-masaq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.er-search-dock .er-masaq,
.er-search-rel-focus.er-masaq {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  max-height: none;
}

.er-masaq-kicker {
  font-family: var(--sp-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4a35a;
}

.er-masaq-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.er-masaq-nav button {
  min-width: 2rem;
}

.er-masaq-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  direction: rtl;
  margin: 0.35rem 0 0.5rem;
}

.er-masaq-word {
  border: 1px solid rgba(196, 163, 90, 0.28);
  background: rgba(18, 34, 26, 0.7);
  color: #f3efe6;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-family: var(--sp-arabic, "Noto Naskh Arabic", serif);
  font-size: 1.15rem;
  line-height: 1.6;
  cursor: pointer;
}

.er-masaq-word:hover,
.er-masaq-word.is-on {
  border-color: rgba(196, 163, 90, 0.7);
  background: rgba(196, 163, 90, 0.16);
}

.er-masaq-hint {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: #9bb0a4;
}

.er-masaq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.er-masaq-table th,
.er-masaq-table td {
  border-top: 1px solid rgba(196, 163, 90, 0.18);
  padding: 0.28rem 0.35rem;
  text-align: left;
  vertical-align: top;
}

.er-masaq-table th {
  color: #c4a35a;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.er-masaq-table td.is-ar {
  font-family: var(--sp-arabic, "Noto Naskh Arabic", serif);
  font-size: 1rem;
  direction: rtl;
  text-align: right;
}

.er-masaq-tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 163, 90, 0.3);
  color: #e8efe9;
}

.jdw-btn.is-masaq-on,
.er-tbtn.is-masaq-on,
.sp-btn.is-masaq-on {
  border-color: rgba(196, 163, 90, 0.7);
  color: #f3efe6;
}
