.thai-dictionary{margin:24px 0 48px}.thai-dict-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.thai-dict-title h2{font-size:28px;margin:0 0 8px}.thai-dict-title p,.thai-dict-title>span{color:#bcb1ca}.thai-dict-tools{padding:20px;border:1px solid #4a3657;border-radius:16px;background:#211829;margin:20px 0}.thai-dict-tools label{display:block;margin-bottom:10px;font-weight:700}.thai-search-row{display:flex;gap:10px}.thai-search-row input{min-width:0;flex:1;background:#120e19;border:1px solid #72558a;border-radius:10px;padding:14px;color:#fff;font:inherit;font-size:16px}.thai-search-row button,.thai-filters button{background:#30213d;color:#e9dcf6;border:1px solid #74548e;border-radius:10px;padding:10px 16px;font:inherit;cursor:pointer;min-height:44px}.thai-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.thai-filters button[aria-pressed=true]{background:#c598ef;color:#22132e;border-color:#c598ef;font-weight:700}.thai-dictionary :focus-visible{outline:3px solid #d5b4fa;outline-offset:3px}.thai-reading-guide{padding:14px 18px;background:#191421;border-radius:10px;color:#cfc2dd;line-height:1.8}.thai-reading-guide summary,.thai-word summary{cursor:pointer;min-height:28px}.thai-dict-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.thai-word{padding:22px;background:#201727;border:1px solid #493551;border-radius:14px;overflow-wrap:anywhere}.thai-word-topic{font-size:14px;color:#c5a0e4}.thai-word h3{font-size:19px;margin:10px 0 12px;color:#f6effc}.thai-original{font-size:29px;line-height:1.65;margin:8px 0;color:#e3c6ff}.thai-reading{font-size:17px;color:#eee4f6;margin:8px 0 18px}.thai-reading span{font-size:14px;color:#b4a5c2;margin-right:8px}.thai-word details{font-size:16px;line-height:1.7;color:#c7b9d4;border-top:1px solid #493551;padding-top:12px}.thai-reference{font-size:14px;color:#ad9dbb;line-height:1.8;margin-top:24px}.thai-reference a{text-decoration:underline}.thai-no-results{grid-column:1/-1;padding:24px;border:1px dashed #74548e;border-radius:12px}#thaiResultCount{color:#cbb8dc;margin:20px 0 12px}@media(max-width:900px){.thai-dict-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.thai-dict-grid{grid-template-columns:1fr}.thai-dict-title{display:block}.thai-dict-title h2{font-size:25px}.thai-dict-tools{padding:14px}.thai-filters{gap:6px}.thai-filters button{padding:8px 11px;font-size:14px}.thai-word{padding:18px}.thai-original{font-size:28px}.thai-search-row button{padding:10px}.thai-dictionary{margin-top:16px}}

/* Compact dictionary: Korean meaning and reading lead each entry. */
.thai-dict-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.thai-word{padding:12px 14px;border-radius:10px;word-break:keep-all;overflow-wrap:anywhere}
.thai-word-topic{display:block;font-size:13px;line-height:1.4;color:#c7b6d8;margin:0 0 4px}
.thai-word h3{font-size:20px;line-height:1.4;font-weight:800;letter-spacing:-.025em;color:#fff;margin:0 0 6px}
.thai-reading{font-size:18px;line-height:1.45;color:#fff;margin:0 0 3px}
.thai-reading strong{font-weight:700}.thai-reading span{font-size:14px;color:#cabbd8;margin-right:5px}
.thai-original{font-size:21px;line-height:1.5;color:#cdb6e5;margin:0 0 5px}
.thai-word details{font-size:14px;line-height:1.55;color:#d9cbe5;padding-top:4px}
.thai-word summary{min-height:32px;display:list-item;align-content:center;padding:5px 0;box-sizing:border-box}
.thai-word details p{font-size:16px;line-height:1.65;margin:4px 0 2px;color:#eee6f6}
@media(max-width:1200px){.thai-dict-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.thai-dict-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.thai-dict-grid{grid-template-columns:1fr;gap:8px}.thai-word{padding:10px 13px}.thai-word h3{font-size:20px}.thai-reading{font-size:18px}.thai-original{font-size:20px}.thai-word summary{min-height:40px}.thai-word-topic{margin-bottom:3px}}
