.lf-panel {
  --lf-surface: var(--surface);
  --lf-rule: var(--line);
  --lf-text: var(--ink);
  --lf-muted: var(--muted);
  --lf-lilac: var(--accent);
  --lf-mint: #526a57;
  color-scheme: light;
  box-sizing: border-box;
  width: min(92vw, 34rem);
  max-width: none;
  max-height: min(88dvh, 54rem);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lf-rule);
  border-radius: 14px;
  background: var(--lf-surface);
  color: var(--lf-text);
  font-family: inherit;
  box-shadow: 0 2rem 6rem #34202435;
}
.lf-panel::backdrop { background: #3027298c; backdrop-filter: blur(5px); }
.lf-panel *, .lf-panel *::before, .lf-panel *::after { box-sizing: border-box; }
.lf-panel [tabindex="-1"]:focus { outline: 0; }
.lf-panel-header {
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lf-rule);
  padding: 1rem 1.4rem;
}
.lf-panel-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; }
.lf-panel-tag svg { width: 1.15rem; height: 1.15rem; color: var(--lf-lilac); }
.lf-panel h2 { display: block; }
.lf-panel-body { padding: clamp(1.15rem, 4vw, 2rem); }
.lf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .65rem .95rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  transition: background-color .15s, filter .15s;
}
.lf-button:hover { filter: brightness(.96); }
.lf-panel :focus-visible { outline: 2px solid var(--lf-lilac); outline-offset: 3px; }
.lf-button svg { width: 1.05rem; height: 1.05rem; flex: none; }
.lf-icon { width: 2.4rem; min-height: 2.4rem; padding: 0; border-radius: 50%; background: #f1eae2; color: var(--lf-muted); }
.lf-icon:hover { color: white; background: var(--accent); }
.lf-primary { background: var(--lf-lilac); color: white; }
.lf-known { background: var(--lf-mint); color: white; }
.lf-secondary { background: #f7f0e8; border-color: var(--lf-rule); color: var(--lf-text); }
.lf-secondary[aria-pressed="true"] { color: var(--lf-lilac); }
.lf-secondary[aria-pressed="true"] svg { fill: #dcc9cf; }
.lf-wide, .lf-panel-actions .lf-button:only-child { width: 100%; }
.lf-removal { margin-top: 1.2rem; padding-top: .65rem; border-top: 1px solid var(--lf-rule); }
.lf-remove { min-height: 2.3rem; color: var(--lf-muted); background: transparent; font-size: .8rem; padding: .35rem 0; }
.lf-remove:hover { color: #8a3040; }
.lf-removal .lf-edit { color: var(--lf-lilac); margin-right: 1.4rem; }
.lf-removal .lf-edit:hover { color: var(--accent-deep); }
.lf-editor .lf-edit-heading { font-size: 1.25rem; margin: 0; }
.lf-edit-word { font: 1.75rem/1.3 Georgia, serif; overflow-wrap: anywhere; margin: .4rem 0 1.2rem; }
.lf-input-label { display: grid; gap: .35rem; margin-top: .8rem; color: var(--lf-muted); font-size: .875rem; }
.lf-input { border-radius: .5rem; padding: .6rem .8rem; border: 1px solid var(--lf-rule); background: #fffdfa; color: var(--lf-text); width: 100%; resize: vertical; font-family: inherit; font-size: 1rem; line-height: 1.6; }
.lf-inline-status { color: var(--lf-muted); font-size: .85rem; line-height: 1.6; }
.lf-inline-status:empty { display: none; }
.lf-lookup { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: -.5rem 0 1rem; }
.lf-lookup button:disabled { opacity: .6; cursor: wait; }
.lf-wide + .lf-wide { margin-top: .6rem; }
.lf-remove-question { margin: .55rem 0; font-size: .95rem; color: var(--lf-text); overflow-wrap: anywhere; }
.lf-removal .lf-panel-actions { margin-top: .7rem; }
.lf-danger { background: #953c4c; color: white; }
.lf-panel-actions { display: flex; gap: .7rem; margin-top: 1.65rem; }
.lf-panel-actions > .lf-button { flex: 1; }
.lf-word-header { padding-bottom: 1.3rem; }
.lf-part { display: inline-flex; color: var(--lf-lilac); background: var(--accent-wash); border: 1px solid #e2d2cf; border-radius: .35rem; padding: .14rem .55rem; font-size: .78rem; font-weight: 600; }
.lf-word-row { display: flex; align-items: center; gap: .7rem; margin: .75rem 0 .25rem; }
.lf-word { overflow-wrap: anywhere; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.12; letter-spacing: -.035em; }
.lf-pronounce { width: 2.1rem; min-height: 2.1rem; flex: none; }
.lf-ipa { color: var(--lf-muted); font-size: .9rem; }
.lf-answer { border-top: 1px solid var(--lf-rule); padding-top: 1.2rem; }
.lf-field-title { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--lf-muted); }
.lf-panel .lf-meaning { font-size: 1.1rem; line-height: 1.65; margin: .35rem 0 1.2rem; }
.lf-example { background: #f6efe6; border-left: 3px solid var(--lf-lilac); border-radius: 0 .5rem .5rem 0; padding: .9rem 1rem; }
.lf-panel .lf-sentence { color: var(--lf-text); font-family: var(--display); font-size: 1.2rem; line-height: 1.5; margin: .4rem 0 .25rem; }
.lf-panel .lf-translation { color: var(--lf-muted); font-size: .9rem; line-height: 1.7; margin: .25rem 0 0; }
.lf-source { display: flex; align-items: baseline; gap: .65rem; margin-top: 1.2rem; font-size: .85rem; color: var(--lf-muted); overflow-wrap: anywhere; }
.lf-source-label { color: var(--muted); flex: none; }
.lf-source a { text-decoration: underline; text-underline-offset: .2em; color: var(--lf-lilac); }
.lf-progress-label { color: var(--lf-muted); text-align: right; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lf-progress { appearance: none; display: block; width: 100%; height: .28rem; border-radius: 10rem; border: 0; background: #e8dfd5; margin: .45rem 0 1.6rem; }
.lf-progress::-webkit-progress-bar { background: #e8dfd5; border-radius: 10rem; }
.lf-progress::-webkit-progress-value { background: var(--lf-lilac); border-radius: 10rem; }
.lf-progress::-moz-progress-bar { background: var(--lf-lilac); border-radius: 10rem; }
.lf-panel .lf-prompt, .lf-panel .lf-empty { color: var(--lf-muted); font-size: .95rem; line-height: 1.7; }
.lf-panel .lf-prompt { border-top: 1px solid var(--lf-rule); padding-top: 1.2rem; margin: 0; }
.lf-summary { text-align: center; }
.lf-result-icon { width: 3.3rem; height: 3.3rem; margin: .25rem auto 1rem; padding: .65rem; border-radius: 50%; color: var(--lf-mint); background: #e4ebdf; }
.lf-summary h2 { color: var(--lf-text); font-size: 1.8rem; margin: 0; }
.lf-summary p { color: var(--lf-muted); font-size: 1rem; }
.lf-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.3rem; border: 1px solid var(--lf-rule); border-radius: .75rem; }
.lf-stats > div { display: grid; gap: .2rem; padding: .9rem; }
.lf-stats > div + div { border-left: 1px solid var(--lf-rule); }
.lf-stats strong { color: var(--lf-mint); font: 2.2rem/1.1 Georgia, serif; }
.lf-stats > div + div strong { color: var(--lf-lilac); }
.lf-stats span { font-size: .8rem; color: var(--lf-muted); }
@media(max-width: 26rem) {
  .lf-panel-actions { flex-wrap: wrap; }
  .lf-panel-actions > .lf-button { flex: 1 0 8rem; }
}

.lf-example-credit{display:inline-block;margin:8px 10px 0 0;font-size:12px;color:var(--accent);text-underline-offset:2px}

.lf-word { color: var(--accent); }
.lf-panel-header { background: #faf5ec; }
.lf-panel .lf-history { margin-top: 1.2rem; padding-top: .65rem; border-top: 1px solid var(--lf-rule); color: var(--lf-muted); font-size: .85rem; line-height: 1.75; }
.lf-history summary { cursor: pointer; color: var(--ink); min-height: 40px; padding-block: .45rem; font-weight: 600; }
.lf-history :is(ul,ol) { padding-left: 1.4rem; }
.lf-history li { border-bottom: 1px solid #eee6db; padding-block: .2rem; }
.lf-panel a { text-underline-offset: .24em; }
