.by-strong {
  --by-ink: #1d1912;
  --by-muted: #6f6658;
  --by-paper: #fffaf0;
  --by-card: rgba(255, 251, 242, .94);
  --by-line: rgba(94, 77, 49, .16);
  --by-gold: #c89a45;
  --by-gold-2: #9b6d2f;
  --by-green: #246b58;
  --by-green-2: #164b3d;
  --by-blue: #245b78;
  --by-shadow: 0 18px 55px rgba(55, 38, 18, .13);
  --by-radius: 18px;
  color: var(--by-ink);
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 54px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.by-strong * {
  box-sizing: border-box;
}

.by-strong button,
.by-strong input {
  font: inherit;
}

.by-strong-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.by-strong-hero-panel,
.by-strong-mini-panel,
.by-strong-card {
  background: var(--by-card);
  border: 1px solid var(--by-line);
  box-shadow: var(--by-shadow);
  backdrop-filter: blur(12px);
}

.by-strong-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px;
  min-height: 260px;
  background:
    radial-gradient(circle at 92% 18%, rgba(200,154,69,.22), transparent 20rem),
    rgba(255, 251, 242, .94);
}

.by-strong-hero-panel::after {
  content: "א";
  position: absolute;
  right: 22px;
  top: -38px;
  font-family: "Times New Roman", serif;
  font-size: 210px;
  color: rgba(139, 99, 40, .10);
  pointer-events: none;
}

.by-strong-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(36, 107, 88, .18);
  background: rgba(36, 107, 88, .09);
  color: var(--by-green-2);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 18px;
}

.by-strong-hero-panel h1 {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: 0;
}

.by-strong-hero-panel p,
.by-strong-mini-panel p {
  margin: 18px 0 0;
  color: var(--by-muted);
  font-size: 17px;
  line-height: 1.6;
}

.by-strong-search {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(760px, 100%);
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(94, 77, 49, .14);
  border-radius: 14px;
  padding: 8px;
}

.by-strong-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--by-ink);
  padding: 13px 14px;
  outline: none;
}

.by-strong-search button,
.by-strong-result,
.by-strong-chip,
.by-strong-tab,
.by-strong-quick-list button {
  cursor: pointer;
}

.by-strong-search button {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--by-green), var(--by-green-2));
  color: white;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(36, 107, 88, .25);
}

.by-strong-mini-panel {
  border-radius: 24px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.by-strong-mini-title {
  color: var(--by-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.by-strong-quick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.by-strong-quick-list button {
  border: 1px solid var(--by-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--by-ink);
  padding: 11px 12px;
  text-align: left;
}

.by-strong-quick-list b {
  display: block;
  color: var(--by-green-2);
}

.by-strong-status {
  color: var(--by-muted);
  margin: 10px 0 14px;
}

.by-strong-results {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.by-strong-result {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--by-line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--by-ink);
  padding: 10px 12px;
  text-align: left;
}

.by-strong-result-hebrew {
  font-family: "Times New Roman", serif;
  font-size: 24px;
}

.by-strong-result small {
  grid-column: 1 / -1;
  color: var(--by-muted);
}

.by-strong-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
}

.by-strong-card {
  border-radius: var(--by-radius);
  padding: 22px;
  margin-bottom: 18px;
}

.by-strong-entry-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.by-strong-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.18)),
    radial-gradient(circle at 92% 18%, rgba(200,154,69,.24), transparent 18rem);
  pointer-events: none;
}

.by-strong-entry-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
}

.by-strong-hebrew-big {
  font-family: "Times New Roman", serif;
  font-size: clamp(54px, 10vw, 104px);
  line-height: 1;
  text-align: right;
  color: #21180e;
}

.by-strong-translit {
  margin: 8px 0 5px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
}

.by-strong-subline {
  color: var(--by-muted);
  font-size: 16px;
}

.by-strong-pills,
.by-strong-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.by-strong-pills {
  margin-top: 18px;
}

.by-strong-pill {
  border: 1px solid rgba(36, 107, 88, .14);
  border-radius: 999px;
  background: rgba(36, 107, 88, .08);
  color: var(--by-green-2);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.by-strong-pill.gold {
  background: rgba(200, 154, 69, .16);
  color: #6d4a17;
  border-color: rgba(200, 154, 69, .24);
}

.by-strong-stats {
  margin-top: 26px;
}

.by-strong-stat {
  min-width: 126px;
  border: 1px solid rgba(158, 121, 60, .18);
  background: rgba(255, 248, 235, .82);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.by-strong-stat b {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.by-strong-stat span {
  display: block;
  margin-top: 6px;
  color: var(--by-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.by-strong-notice {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 154, 69, .28);
  background: rgba(255, 243, 210, .62);
  color: #6f501b;
  line-height: 1.45;
  margin-bottom: 12px;
}

.by-strong-notice.ok {
  border-color: rgba(36, 107, 88, .22);
  background: rgba(222, 244, 235, .72);
  color: var(--by-green-2);
}

.by-strong-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.by-strong-tab {
  border: 1px solid var(--by-line);
  background: rgba(255,255,255,.6);
  border-radius: 999px;
  color: var(--by-muted);
  padding: 9px 12px;
  font-weight: 800;
}

.by-strong-tab.active {
  background: var(--by-green);
  color: white;
  border-color: transparent;
}

.by-strong-panel {
  display: none;
}

.by-strong-panel.active {
  display: block;
}

.by-strong-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.by-strong-section-title h2,
.by-strong-section-title h3,
.by-strong-visual-card h2 {
  margin: 0;
}

.by-strong-lex-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px 16px;
}

.by-strong-lex-key {
  color: var(--by-muted);
  font-weight: 850;
}

.by-strong-lex-val {
  line-height: 1.55;
}

.by-strong-definitions {
  white-space: pre-line;
}

.by-strong-side {
  position: sticky;
  top: 18px;
}

.by-strong-bar-list {
  display: grid;
  gap: 12px;
}

.by-strong-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.by-strong-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(83, 63, 31, .13);
}

.by-strong-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--by-gold-2), var(--by-gold));
  border-radius: inherit;
}

.by-strong-filter {
  width: 100%;
  border: 1px solid var(--by-line);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  padding: 12px;
  outline: none;
  margin-bottom: 14px;
}

.by-strong-verses {
  max-height: 620px;
  overflow: auto;
  padding-right: 5px;
}

.by-strong-verse {
  border: 1px solid rgba(94, 77, 49, .13);
  background: rgba(255,255,255,.58);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.by-strong-verse-ref {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--by-blue);
  font-weight: 900;
}

.by-strong-mark {
  border: 0;
  border-radius: 7px;
  background: rgba(200,154,69,.25);
  color: #21180e;
  padding: 2px 5px;
  cursor: pointer;
  font-weight: 850;
}

.by-strong-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 265px;
  overflow: auto;
  padding-right: 4px;
}

.by-strong-chip {
  border: 1px solid rgba(94, 77, 49, .12);
  background: rgba(255,255,255,.66);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--by-ink);
  font-size: 13px;
  font-weight: 760;
}

.by-strong-tree-stage {
  min-height: 300px;
  border: 1px solid rgba(94, 77, 49, .13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,246,224,.64));
  padding: 14px;
  overflow: hidden;
}

.by-strong-tree-svg {
  width: 100%;
  height: 300px;
  display: block;
}

.by-strong-tree-link {
  fill: none;
  stroke: rgba(36, 107, 88, .42);
  stroke-width: 4;
  stroke-linecap: round;
}

.by-strong-tree-node rect {
  fill: rgba(255,250,240,.94);
  stroke: rgba(36,107,88,.25);
  stroke-width: 1.5;
  rx: 12;
}

.by-strong-tree-node.root rect {
  fill: rgba(36,107,88,.12);
  stroke: rgba(36,107,88,.55);
}

.by-strong-tree-node text {
  text-anchor: middle;
  font-weight: 850;
  fill: var(--by-ink);
  font-size: 13px;
}

.by-strong-visual-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.by-strong-visual-icon {
  width: 110px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(36,107,88,.12), rgba(200,154,69,.18));
  border: 1px solid var(--by-line);
  font-size: 58px;
}

.by-strong-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 13, .42);
}

.by-strong-modal.open {
  display: grid;
}

.by-strong-modal-card {
  width: min(620px, 100%);
  border-radius: 18px;
  background: #17212a;
  color: #f8f0df;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  padding: 22px;
  position: relative;
}

.by-strong-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 850;
}

.by-strong-modal-hebrew {
  font-family: "Times New Roman", serif;
  text-align: right;
  font-size: 56px;
  color: #f3d892;
  margin: 14px 0 18px;
}

.by-strong-modal-card b {
  color: #f3d892;
}

@media (max-width: 980px) {
  .by-strong-hero-shell,
  .by-strong-workspace,
  .by-strong-entry-content,
  .by-strong-visual-card {
    grid-template-columns: 1fr;
  }

  .by-strong-side {
    position: static;
  }

  .by-strong-hebrew-big {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .by-strong {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .by-strong-hero-panel,
  .by-strong-mini-panel,
  .by-strong-card {
    border-radius: 14px;
    padding: 16px;
  }

  .by-strong-search,
  .by-strong-lex-grid,
  .by-strong-bar-row {
    grid-template-columns: 1fr;
  }

  .by-strong-search button {
    padding: 12px;
  }

  .by-strong-quick-list {
    grid-template-columns: 1fr;
  }
}
