:root{font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#202a38;background:#f7f8fc}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.shell{max-width:800px;padding:28px 20px 70px;margin:auto}
.site-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}
.eyebrow{font-size:11px;font-weight:750;letter-spacing:.18em;color:#526ee6;margin-bottom:8px}
h1{font-size:clamp(26px,5vw,38px);line-height:1.15;letter-spacing:-.03em;margin:0 0 10px}
.site-head p{color:#687487;font-size:14px;margin:0}
.share-button{border:0;border-radius:11px;background:#4869ed;color:white;padding:10px 16px;font-weight:600;white-space:nowrap}
.share-button:hover{background:#3156d8}
.toolbar{background:white;border:1px solid #e2e7f1;border-radius:16px;padding:17px;box-shadow:0 6px 22px #1a285c08}
.search-label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}
#search{width:100%;min-height:44px;padding:10px 14px;border:1px solid #cfd6e5;border-radius:10px;outline:none}
#search:focus,select:focus-visible,button:focus-visible{outline:2px solid #4869ed;outline-offset:2px}
.filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:13px}
.filters label{font-size:13px;color:#647085}
.filters select{border:1px solid #cfd6e5;background:#fff;padding:8px 10px;border-radius:9px;max-width:100%}
.filters select:not(:last-child){margin-right:12px}
.list-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:24px 2px 12px}
.list-head strong{font-size:17px}
#status{font-size:12px;color:#526789;text-align:right}
.word-list{display:grid;gap:11px}
.word-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;background:white;border:1px solid #e1e6f0;border-radius:14px;padding:16px 17px;box-shadow:0 2px 8px #1a285c06}
.word-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.word-title strong{font-size:20px;word-break:break-word}
.phonetic{color:#6c7587;font-size:13px}
.tags{font-size:12px;color:#4869ed;margin:5px 0}
.meaning{font-size:14px;line-height:1.6;color:#475366;white-space:pre-wrap;overflow-wrap:anywhere}
.speak{border:1px solid #cfd7f5;background:#eef2ff;color:#3655c8;border-radius:10px;padding:8px 12px;white-space:nowrap}
.speak:hover,.speak.active{background:#dce5ff}
.empty{background:#fff;border:1px solid #e1e6f0;border-radius:14px;padding:25px;text-align:center;color:#647085}
footer{text-align:center;font-size:12px;color:#8190a3;margin-top:28px}
dialog{border:1px solid #dce2ef;border-radius:16px;padding:20px;max-width:min(92vw,360px);width:100%;box-shadow:0 18px 45px #17214230}
dialog::backdrop{background:#111c3480}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.dialog-head h2{font-size:19px;margin:0}
#share-close{border:0;background:transparent;font-size:21px;padding:0 4px}
.share-qr{min-height:218px;display:grid;place-items:center}
.share-qr svg{max-width:100%;height:auto}
#share-note{font-size:13px;color:#687487;line-height:1.5}
#share-url{display:block;font-size:13px;overflow-wrap:anywhere;margin:11px 0}
@media(max-width:540px){.shell{padding:20px 13px 55px}.site-head{align-items:start}.site-head .share-button{padding:9px 11px;font-size:13px}.word-card{padding:13px}.word-title strong{font-size:18px}.filters select:not(:last-child){margin-right:5px}}

.meaning{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.meaning.expanded{display:block}
.expand{border:0;background:transparent;color:#4869ed;font-size:12px;padding:5px 0 0}
.expand:hover{text-decoration:underline}
