/* Public lookup shares the learning palette, with no repeating effects. */
.tcx-dictionary {
  margin: 34px 0; padding: clamp(18px, 3vw, 30px); border: 1.5px solid transparent; border-radius: 24px;
  background: linear-gradient(125deg, #073f35, #12574b 65%, #25495d) padding-box,
    linear-gradient(130deg, #88d7b2, #c3a4df, #91acc3) border-box;
  color: #eefaf3; box-shadow: 0 4px 0 #c9ddce, 0 12px 28px #123f3519; scroll-margin-top: 115px;
}
.tcx-dictionary-heading { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin: 0 0 20px; }
.tcx-dictionary-heading h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.tcx-dictionary-heading p { margin: 0; max-width: 700px; color: #d5eee1; line-height: 1.55; }
.tcx-dictionary-heading .tcx-dictionary-eyebrow { color: #9ee0bd; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.tcx-dictionary-mark { flex: 0 0 auto; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; border: 1px solid #8fd0b889; background: #ffffff0c; color: #bdecd5; font-size: 38px; }
.tcx-dictionary-form { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.tcx-dictionary-form label { flex: 1 1 auto; margin: 0; min-width: 0; display: grid; gap: 7px; color: #effff7; font-weight: 750; }
.tcx-dictionary-form input { box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 13px 16px; border: 1.5px solid #a5d1bc; border-radius: 15px; background: #fafffc; color: #164b3e; font: inherit; }
.tcx-dictionary-form input::placeholder { color: #61776d; opacity: 1; }
.tcx-dictionary-form button { min-height: 52px; min-width: 105px; padding: 13px 20px; border-radius: 15px; border: 1.5px solid #a7d6bc; background: #e3f5e8; color: #0d5040; font: inherit; font-weight: 800; cursor: pointer; }
.tcx-dictionary-form button:disabled { opacity: .65; cursor: wait; }
.tcx-dictionary-languages{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}.tcx-dictionary-languages label{display:grid;gap:7px;flex:1;min-width:180px;font-weight:700}.tcx-dictionary-languages select{min-height:48px;padding:10px;border:1px solid #a5d1bc;border-radius:12px;background:#fafffc;color:#164b3e;font:inherit}.tcx-dictionary-disclosure{font-size:13px;color:#d5eee1}.tcx-dictionary-disclosure label{display:flex;gap:8px;align-items:start}.tcx-dictionary-disclosure label[hidden]{display:none}.tcx-dictionary-segments{display:flex;gap:7px;flex-wrap:wrap;white-space:pre-wrap}.tcx-dictionary-segments>span{padding:6px 10px;border-radius:10px;overflow-wrap:anywhere;max-width:100%}.tcx-dictionary-segment-known{background:#e2f7e8;color:#124b3d}.tcx-dictionary-segment-unknown{background:#ffffff12;color:#e0f3e8}.tcx-dictionary-sentence>p{font-size:13px;color:#c3e4d2}.tcx-dictionary-translation:not(:empty){margin:16px 0;padding:20px;background:#edf9ef;color:#164b3e;border-radius:16px;overflow-wrap:anywhere}.tcx-dictionary-translation button{padding:9px 14px;border:1px solid #a2c6b1;border-radius:11px;background:#f1f8f1;color:#125c47;cursor:pointer}
.tcx-dictionary-status { min-height: 1.5em; margin: 13px 0 15px; color: #d4eddf; font-size: 14px; line-height: 1.5; }
.tcx-dictionary-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tcx-dictionary-word { padding: 19px; border: 1.5px solid transparent; border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f4faf5 60%, #edf1fb) padding-box,
    linear-gradient(125deg, #a3d1b8, #d1dfd5, #b5a0d0) border-box; color: #164b3e; min-width: 0; }
.tcx-dictionary-word-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.tcx-dictionary-word-head h3 { margin: 0; color: #133f36; font-size: 30px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.tcx-dictionary-tag { flex-shrink: 0; padding: 5px 9px; border: 1px solid #a9cbb8; background: #e7f4e9; color: #225d47; font-size: 11px; border-radius: 30px; font-weight: 750; }
.tcx-dictionary-word .tcx-dictionary-pinyin { margin: 3px 0 14px; color: #0c7059; font-weight: 750; line-height: 1.5; }
.tcx-dictionary-meanings { margin: 0; display: grid; gap: 9px; }
.tcx-dictionary-meanings div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 7px; }
.tcx-dictionary-meanings dt { color: #486452; font-size: 12px; font-weight: 800; padding-top: 2px; }
.tcx-dictionary-meanings dd { margin: 0; color: #254c3e; line-height: 1.5; overflow-wrap: anywhere; }
.tcx-dictionary-audio { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tcx-dictionary-audio button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; min-height: 42px; border: 1px solid #a2c6b1; border-radius: 11px; background: #f1f8f1; color: #125c47; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.tcx-dictionary-audio button[aria-pressed=true] { color: #fff; background: #116b54; border-color: #0d604b; }
.tcx-dictionary-credits { margin-top: 18px; border-top: 1px solid #b0d3c438; padding-top: 13px; color: #d1e9dd; font-size: 12px; line-height: 1.6; }
.tcx-dictionary-credits summary { cursor: pointer; font-weight: 750; }
.tcx-dictionary-credits a { display: inline-block; margin: 4px 14px 0 0; color: #d1eddc; text-decoration: underline; }
.tcx-dictionary :is(button, input, summary, a):focus-visible { outline: 3px solid #c4adf0; outline-offset: 3px; }
@media (max-width: 620px) {
  .tcx-dictionary-results { grid-template-columns: minmax(0, 1fr); }
  .tcx-dictionary-mark { display: none; }
  .tcx-dictionary-form { flex-wrap: wrap; }
  .tcx-dictionary-form label { flex-basis: 100%; }
  .tcx-dictionary-form button { width: 100%; }
  .tcx-dictionary-meanings div { grid-template-columns: 50px minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .tcx-dictionary, .tcx-dictionary-word, .tcx-dictionary-form input, .tcx-dictionary-form button, .tcx-dictionary-audio button { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .tcx-dictionary :is(h2, h3, p, dt, dd, span, label, a, summary) { color: CanvasText; }
  .tcx-dictionary-audio button[aria-pressed=true] { background: Highlight; color: HighlightText; }
}
