/* LearnWithExamples – AI Example Engine widget. Brand tokens match the site; override --lwe-* to rebrand. */
.lwe-ai {
  --lwe-ink: #0A0F2C;
  --lwe-ink2: #141B41;
  --lwe-blue: #3857F1;
  --lwe-blue-d: #2038C9;
  --lwe-lime: #C6E82F;
  --lwe-lime-d: #A9CC12;
  --lwe-line: #E1E7F7;
  --lwe-muted: #5B6690;
  --lwe-soft: #E9EDFF;
  --lwe-wash: #F4F6FD;
  --lwe-good: #3F7A0A;
  --lwe-good-soft: #F0FAD2;
  --lwe-bad: #C2261C;
  --lwe-bad-soft: #FEE7E5;
  --lwe-warn: #B45309;
  --lwe-warn-soft: #FFF4E0;
  --lwe-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lwe-body: 'Lora', Georgia, serif;
  --lwe-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lwe-r: 18px;

  box-sizing: border-box;
  max-width: 880px;
  margin: 2rem auto;
  color: var(--lwe-ink);
  font-family: var(--lwe-body);
  font-size: 16.5px;
  line-height: 1.65;
}
.lwe-ai *, .lwe-ai *::before, .lwe-ai *::after { box-sizing: border-box; }
.lwe-ai.lwe-ai--detached { max-width: none; margin: 0; }
:where(.lwe-ai) :where(button, input, select) { font: inherit; color: inherit; margin: 0; }
.lwe-ai h2, .lwe-ai h3, .lwe-ai h4 { font-family: var(--lwe-display); letter-spacing: -.015em; color: inherit; margin: 0; }
.lwe-ai p { margin: 0; }
.lwe-ai__i { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.lwe-ai__i svg { width: 100%; height: 100%; }

/* ---------- head (normal pages) ---------- */
.lwe-ai__head { margin-bottom: 18px; }
.lwe-ai__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
  background: var(--lwe-ink); color: var(--lwe-lime); font-family: var(--lwe-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
}
.lwe-ai__title { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; margin-bottom: 8px; }
.lwe-ai--compact .lwe-ai__title { font-size: clamp(21px, 3vw, 25px); }
.lwe-ai__sub { color: var(--lwe-muted); max-width: 60ch; }

/* ---------- main card ---------- */
.lwe-ai__card-main {
  background: #fff; border: 1px solid var(--lwe-line); border-radius: calc(var(--lwe-r) + 6px);
  padding: clamp(14px, 2.4vw, 22px);
  box-shadow: 0 1px 2px rgba(10,15,44,.05), 0 18px 40px -22px rgba(10,15,44,.25);
}
.lwe-ai--hero .lwe-ai__card-main {
  border: 1px solid rgba(10,15,44,.08); border-radius: 26px; padding: clamp(16px, 2.6vw, 26px);
  box-shadow: 0 1px 1px rgba(10,15,44,.04), 0 2px 6px rgba(10,15,44,.04), 0 24px 60px -24px rgba(32,56,201,.35);
}
.lwe-ai--compact .lwe-ai__card-main { background: var(--lwe-wash); box-shadow: none; }

/* search bar */
.lwe-ai__bar {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  border: 2px solid var(--lwe-line); border-radius: 999px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.lwe-ai__bar:focus-within { border-color: var(--lwe-blue); box-shadow: 0 0 0 4px rgba(56,87,241,.14); }
.lwe-ai__bar-i { color: var(--lwe-blue); display: grid; place-items: center; cursor: text; }
.lwe-ai__bar-i .lwe-ai__i { width: 22px; height: 22px; }
.lwe-ai__topic {
  flex: 1 1 auto; min-width: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important;
  padding: 12px 6px !important; font-family: var(--lwe-display) !important; font-size: clamp(16px, 2vw, 19px) !important; color: var(--lwe-ink) !important;
}
.lwe-ai__topic::placeholder { color: #8C95B8; }
.lwe-ai__go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lwe-lime); color: var(--lwe-ink) !important; font-family: var(--lwe-display); font-weight: 700; font-size: 16px; line-height: 1;
  transition: background .15s, transform .15s;
}
.lwe-ai__go:hover { background: #d3f04a; }
.lwe-ai__go:active { transform: scale(.97); }
.lwe-ai__go:disabled { opacity: .7; cursor: progress; }
.lwe-ai.is-busy .lwe-ai__go .lwe-ai__i { animation: lwe-nudge 1s ease-in-out infinite; }
@keyframes lwe-nudge { 50% { transform: translateX(3px); } }

/* options */
.lwe-ai__opts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; padding: 0 4px; }
.lwe-ai__optgroup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lwe-ai__label { font-family: var(--lwe-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lwe-muted); }

.lwe-ai__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lwe-wash); border: 1px solid var(--lwe-line); }
.lwe-ai__seg button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  font-family: var(--lwe-display); font-weight: 600; font-size: 14px; color: var(--lwe-muted); transition: all .15s;
}
.lwe-ai__seg button:hover { color: var(--lwe-ink); }
.lwe-ai__seg button.is-on { background: var(--lwe-ink); color: #fff; box-shadow: 0 2px 6px rgba(10,15,44,.2); }

.lwe-ai__selwrap { position: relative; display: inline-flex; align-items: center; }
.lwe-ai__select {
  -webkit-appearance: none; appearance: none; padding: 8px 34px 8px 14px !important; border-radius: 999px !important;
  border: 1px solid var(--lwe-line) !important; background: var(--lwe-wash) !important; cursor: pointer;
  font-family: var(--lwe-display) !important; font-weight: 600; font-size: 14px !important; color: var(--lwe-ink) !important; height: auto !important;
}
.lwe-ai__selwrap .lwe-ai__i { position: absolute; right: 11px; pointer-events: none; color: var(--lwe-muted); width: 16px; height: 16px; }

.lwe-ai__with { margin-top: 14px; padding: 0 4px; display: grid; gap: 8px; }
.lwe-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .lwe-ai__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .lwe-ai__chips::-webkit-scrollbar { display: none; }
}
.lwe-ai__chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--lwe-line); background: #fff; font-family: var(--lwe-display); font-weight: 500; font-size: 14px; line-height: 1.2;
  transition: all .15s;
}
.lwe-ai__chip:hover { border-color: var(--lwe-blue); }
.lwe-ai__chip.is-on { background: var(--lwe-soft); border-color: var(--lwe-blue); color: var(--lwe-blue-d); box-shadow: inset 0 0 0 1px var(--lwe-blue); }
.lwe-ai__emoji { font-size: 15px; }
.lwe-ai__custom {
  flex: 0 0 auto; width: 140px; padding: 7px 13px !important; border-radius: 999px !important; border: 1px dashed #C5CDE8 !important;
  background: #fff !important; font-family: var(--lwe-display) !important; font-size: 14px !important; outline: none; height: auto !important;
}
.lwe-ai__custom:focus, .lwe-ai__custom.is-on { border-style: solid !important; border-color: var(--lwe-blue) !important; background: var(--lwe-soft) !important; }
.lwe-ai__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lwe-ai__ts:empty { display: none; }
.lwe-ai__ts { margin-top: 12px; }

.lwe-ai__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 14px 4px 0; border-top: 1px dashed var(--lwe-line); }
.lwe-ai__suggest .lwe-ai__label { margin-right: 4px; }
.lwe-ai__try {
  padding: 5px 12px; border-radius: 8px; border: 0; background: var(--lwe-wash); cursor: pointer;
  font-family: var(--lwe-mono); font-size: 12.5px; color: var(--lwe-ink2); transition: all .15s;
}
.lwe-ai__try:hover { background: var(--lwe-ink); color: var(--lwe-lime); }

/* ---------- hero sentence form ---------- */
.lwe-ai__sentence { font-family: var(--lwe-display); }
.lwe-ai__line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.lwe-ai__line + .lwe-ai__line { margin-top: 14px; }
.lwe-ai__word { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; color: var(--lwe-muted); letter-spacing: -.01em; }
.lwe-ai__topic--inline {
  flex: 1 1 260px; min-width: 0; padding: 4px 2px 8px !important; border: 0 !important; border-bottom: 2px dashed #C9D1EE !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: none;
  font-family: var(--lwe-display) !important; font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 600; color: var(--lwe-ink) !important; letter-spacing: -.01em;
  transition: border-color .15s;
}
.lwe-ai__topic--inline:focus { border-bottom-color: var(--lwe-blue) !important; border-bottom-style: solid !important; }
.lwe-ai__topic--inline::placeholder { color: #A7AFCC; font-weight: 500; }
.lwe-ai__pill { position: relative; display: inline-flex; align-items: center; }
.lwe-ai__grp { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.lwe-ai__pillsel {
  -webkit-appearance: none; appearance: none; cursor: pointer; height: auto !important;
  padding: 8px 36px 8px 14px !important; border-radius: 999px !important; border: 1px solid #D3DBFB !important;
  background: var(--lwe-soft) !important; color: var(--lwe-blue-d) !important; box-shadow: none !important;
  font-family: var(--lwe-display) !important; font-weight: 600 !important; font-size: clamp(16px, 1.8vw, 19px) !important; line-height: 1.3 !important;
  transition: border-color .15s, background .15s;
}
.lwe-ai__pillsel:hover { border-color: var(--lwe-blue) !important; }
.lwe-ai__pill .lwe-ai__i { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--lwe-blue); }
.lwe-ai__sentence .lwe-ai__custom { width: 170px; font-size: 16px !important; padding: 9px 14px !important; }
.lwe-ai__sentence .lwe-ai__custom[hidden] { display: none; }
.lwe-ai__sentence .lwe-ai__go { margin-left: auto; padding: 15px 24px; font-size: 17px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(140,180,0,.8); }
.lwe-ai__line--go { justify-content: space-between; margin-top: 20px !important; padding-top: 16px; border-top: 1px solid #EEF1FA; }
.lwe-ai__hint { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px var(--lwe-display); color: var(--lwe-muted); }
.lwe-ai__hint .lwe-ai__i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--lwe-lime); color: var(--lwe-ink); }
.lwe-ai--hero .lwe-ai__suggest { border-top-style: solid; border-top-color: #EEF1FA; margin-top: 18px; }
@media (max-width: 640px) {
  .lwe-ai__line--opts { gap: 8px; }
  .lwe-ai__sentence .lwe-ai__go { margin-left: 0; flex: 1 1 100%; justify-content: center; }
  .lwe-ai__hint { order: 2; width: 100%; justify-content: center; }
  .lwe-ai__topic--inline { flex-basis: 100%; }
}

/* ---------- output ---------- */
.lwe-ai__out:not(:empty) { margin-top: 18px; scroll-margin-top: 90px; }


.lwe-ai__loading { padding: 8px 0; }
.lwe-ai__loading-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--lwe-display); font-weight: 600; color: var(--lwe-ink2); }
.lwe-ai__spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lwe-soft); border-top-color: var(--lwe-blue); animation: lwe-spin .8s linear infinite; }
.lwe-ai__skel i {
  display: block; height: 64px; margin-bottom: 10px; border-radius: var(--lwe-r);
  background: linear-gradient(90deg, var(--lwe-wash) 25%, var(--lwe-soft) 50%, var(--lwe-wash) 75%); background-size: 200% 100%; animation: lwe-shimmer 1.3s infinite;
}
.lwe-ai__skel i:nth-child(2) { height: 120px; }
.lwe-ai__skel i:nth-child(3) { height: 90px; width: 80%; }
@keyframes lwe-spin { to { transform: rotate(360deg); } }
@keyframes lwe-shimmer { to { background-position: -200% 0; } }

.lwe-ai__error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: var(--lwe-r);
  background: var(--lwe-bad-soft); color: var(--lwe-bad); font-family: var(--lwe-display); font-weight: 500;
}
.lwe-ai__error p { flex: 1 1 200px; }
.lwe-ai--hero .lwe-ai__out > .lwe-ai__error { margin: -4px; }

.lwe-ai__result-h { margin-bottom: 18px; }
.lwe-ai__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lwe-ai__tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--lwe-mono); font-size: 11.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--lwe-wash); color: var(--lwe-ink2); border: 1px solid var(--lwe-line); }
.lwe-ai__tag.is-ai { background: var(--lwe-ink); color: var(--lwe-lime); border-color: var(--lwe-ink); }
.lwe-ai__result-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; }

.lwe-ai__card { padding: 18px 20px; margin-bottom: 12px; background: #fff; border: 1px solid var(--lwe-line); border-radius: var(--lwe-r); }
@keyframes lwe-in { from { opacity: 0; transform: translateY(6px); } }
.lwe-ai__card p + p { margin-top: 8px; }
.lwe-ai__card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lwe-ai__card-h .lwe-ai__i { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--lwe-soft); color: var(--lwe-blue); }
.lwe-ai__card-h h4 { font-family: var(--lwe-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lwe-muted); flex: 1; }

.lwe-ai__card.is-plain p { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; }
.lwe-ai__card.is-example { background: linear-gradient(135deg, var(--lwe-soft), #F7F8FF); border-color: #D3DBFB; }
.lwe-ai__card.is-example .lwe-ai__i { background: var(--lwe-blue); color: #fff; }
.lwe-ai__ex-title { font-family: var(--lwe-display); font-weight: 700; font-size: 18px; }

.lwe-ai__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.lwe-ai__steps li { position: relative; padding: 0 0 16px 42px; counter-increment: s; }
.lwe-ai__steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--lwe-mono); font-size: 13px; background: var(--lwe-ink); color: var(--lwe-lime);
}
.lwe-ai__steps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--lwe-line); }
.lwe-ai__steps li:last-child { padding-bottom: 0; }
.lwe-ai__steps strong { display: block; font-family: var(--lwe-display); font-size: 16.5px; margin-bottom: 2px; }

.lwe-ai__card.is-formula { background: var(--lwe-ink); border-color: var(--lwe-ink); }
.lwe-ai__card.is-formula h4 { color: rgba(255,255,255,.6); }
.lwe-ai__card.is-formula .lwe-ai__i { background: rgba(198,232,47,.15); color: var(--lwe-lime); }
.lwe-ai__formula { display: block; color: var(--lwe-lime); background: none; padding: 0; font-family: var(--lwe-mono); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.lwe-ai__duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.lwe-ai__duo .lwe-ai__card { margin-bottom: 0; }
.lwe-ai__card.is-mistake { background: var(--lwe-warn-soft); border-color: #F8DDB0; }
.lwe-ai__card.is-mistake .lwe-ai__i { background: #FDE5B8; color: var(--lwe-warn); }
.lwe-ai__card.is-remember { background: var(--lwe-good-soft); border-color: #DCEFA0; }
.lwe-ai__card.is-remember .lwe-ai__i { background: var(--lwe-lime); color: var(--lwe-ink); }

/* quiz */
.lwe-ai__card.is-quiz { border-color: var(--lwe-ink); box-shadow: 4px 4px 0 var(--lwe-ink); }
.lwe-ai__card.is-quiz .lwe-ai__i { background: var(--lwe-lime); color: var(--lwe-ink); }
.lwe-ai__qprog { font-family: var(--lwe-mono); font-size: 12px; color: var(--lwe-muted); }
.lwe-ai__quiz { margin: 0; padding: 0; list-style: none; }
.lwe-ai__q + .lwe-ai__q { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--lwe-line); }
.lwe-ai__qt { font-family: var(--lwe-display); font-weight: 600; font-size: 17px; margin-bottom: 10px !important; }
.lwe-ai__opts-q { display: grid; gap: 7px; }
@media (min-width: 640px) { .lwe-ai__opts-q { grid-template-columns: 1fr 1fr; } }
.lwe-ai__opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--lwe-line); border-radius: 12px; background: #fff; line-height: 1.45; font-size: 15.5px; transition: all .15s;
}
.lwe-ai__opt:hover:not(:disabled) { border-color: var(--lwe-blue); background: var(--lwe-wash); }
.lwe-ai__opt:disabled { cursor: default; }
.lwe-ai__letter { flex: 0 0 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-family: var(--lwe-mono); font-size: 12px; background: var(--lwe-wash); color: var(--lwe-muted); }
.lwe-ai__opt.is-right { background: var(--lwe-good-soft); border-color: #7FB51E; }
.lwe-ai__opt.is-right .lwe-ai__letter { background: var(--lwe-lime); color: var(--lwe-ink); }
.lwe-ai__opt.is-wrong { background: var(--lwe-bad-soft); border-color: #F19A93; }
.lwe-ai__opt.is-wrong .lwe-ai__letter { background: var(--lwe-bad); color: #fff; }
.lwe-ai__fb:empty { display: none; }
.lwe-ai__fb { margin-top: 10px !important; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.lwe-ai__fb.is-right { color: var(--lwe-good); background: var(--lwe-good-soft); }
.lwe-ai__fb.is-wrong { color: var(--lwe-bad); background: var(--lwe-bad-soft); }
.lwe-ai__score:empty { display: none; }
.lwe-ai__score { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-family: var(--lwe-display); font-weight: 500; background: var(--lwe-wash); }
.lwe-ai__score strong { font-size: 20px; }
.lwe-ai__score.is-perfect { background: var(--lwe-lime); }

/* related */
.lwe-ai__related { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lwe-ai__related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--lwe-wash); color: var(--lwe-ink) !important; text-decoration: none !important; font-family: var(--lwe-display); font-weight: 600; transition: all .15s;
}
.lwe-ai__related a:hover { background: var(--lwe-ink); color: #fff !important; }
.lwe-ai__related a .lwe-ai__i { color: var(--lwe-blue); transition: transform .15s; }
.lwe-ai__related a:hover .lwe-ai__i { color: var(--lwe-lime); transform: translateX(3px); }

/* actions */
.lwe-ai__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lwe-ai__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--lwe-line); background: #fff; font-family: var(--lwe-display); font-weight: 600; font-size: 14.5px; line-height: 1; transition: all .15s;
}
.lwe-ai__btn:hover { border-color: var(--lwe-ink); }
.lwe-ai__btn.is-primary { background: var(--lwe-ink); border-color: var(--lwe-ink); color: #fff; }
.lwe-ai__btn.is-primary:hover { background: var(--lwe-blue-d); border-color: var(--lwe-blue-d); }
.lwe-ai__error .lwe-ai__btn { background: #fff; border-color: #F19A93; color: var(--lwe-bad); }
.lwe-ai__note { margin-top: 14px !important; font-size: 13px; color: var(--lwe-muted); font-style: italic; }

/* streaming */
.lwe-ai__writing { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px !important; color: var(--lwe-muted); font-family: var(--lwe-display); font-size: 15px; }
.lwe-ai__dots { display: inline-flex; gap: 4px; }
.lwe-ai__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--lwe-blue); animation: lwe-blink 1.2s infinite both; }
.lwe-ai__dots i:nth-child(2) { animation-delay: .2s; }
.lwe-ai__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lwe-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* focus + motion */
.lwe-ai button:focus-visible, .lwe-ai a:focus-visible, .lwe-ai select:focus-visible, .lwe-ai__custom:focus-visible {
  outline: 2px solid var(--lwe-blue); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lwe-ai *, .lwe-ai *::before, .lwe-ai *::after { animation: none !important; transition: none !important; }
}

/* small screens */
@media (max-width: 520px) {
  .lwe-ai { font-size: 16px; }
  .lwe-ai__bar { flex-wrap: wrap; border-radius: 18px; padding: 6px; }
  .lwe-ai__bar-i { padding-left: 8px; }
  .lwe-ai__topic { flex-basis: calc(100% - 40px); }
  .lwe-ai__go { flex: 1 1 100%; justify-content: center; border-radius: 12px; }
  .lwe-ai__opts { gap: 10px; }
  .lwe-ai__optgroup { width: 100%; justify-content: space-between; }
  .lwe-ai__seg { flex: 1; justify-content: space-between; }
  .lwe-ai__seg button { flex: 1; padding: 8px 6px; }
  .lwe-ai__card { padding: 16px; }
  .lwe-ai__btn { flex: 1 1 auto; justify-content: center; }
}

/* Guard against theme article styles (e.g. Sinatra's .si-entry ul/ol bullets and margins) */
.lwe-ai :is(.lwe-ai__steps, .lwe-ai__quiz, .lwe-ai__related) { list-style: none; margin: 0; padding: 0; }
.lwe-ai :is(.lwe-ai__steps, .lwe-ai__quiz, .lwe-ai__related) > li { margin-bottom: 0; }
.lwe-ai :is(.lwe-ai__steps, .lwe-ai__quiz, .lwe-ai__related) > li::marker { content: none; }
