:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#111827;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}.topbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px max(18px,calc((100vw - 760px)/2));background:#111827;color:white;box-shadow:0 2px 10px #0002}.eyebrow{font-size:11px;letter-spacing:.18em;opacity:.7}h1{font-size:22px;margin:2px 0 0}.icon-btn,.close-btn{border:0;border-radius:12px;padding:10px 13px;font-weight:700;cursor:pointer}.icon-btn[aria-pressed="true"]{background:#fbbf24;color:#111827}main{max-width:760px;margin:auto;padding:20px 16px 60px}.search-panel{background:white;padding:16px;border-radius:18px;box-shadow:0 4px 18px #1118270d}.search-panel label{display:block;font-weight:700;margin-bottom:8px}input{width:100%;font-size:18px;padding:14px 15px;border:1px solid #cbd5e1;border-radius:13px;outline:none}input:focus{border-color:#111827;box-shadow:0 0 0 3px #11182712}.meta{min-height:20px;margin-top:8px;color:#64748b;font-size:13px}.results{display:grid;gap:10px;margin-top:14px}.card{background:white;border:1px solid #e5e7eb;border-radius:16px;padding:15px;cursor:pointer;box-shadow:0 2px 8px #11182708}.card:active{transform:scale(.995)}.row{display:flex;justify-content:space-between;gap:12px}.term{font-size:19px;font-weight:800}.full{color:#475569;margin-top:2px}.definition{margin:10px 0 0;line-height:1.45}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.chip{font-size:11px;background:#eef2f7;padding:4px 7px;border-radius:999px}.star{border:0;background:transparent;font-size:24px;cursor:pointer;color:#94a3b8}.star.on{color:#eab308}.empty{text-align:center;color:#64748b;padding:36px 10px}dialog{width:min(680px,calc(100% - 24px));max-height:85vh;border:0;border-radius:20px;padding:20px;box-shadow:0 20px 70px #0005}dialog::backdrop{background:#11182799}dialog h2{margin:0 0 4px}.detail-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin:18px 0 5px}.related{display:flex;gap:7px;flex-wrap:wrap}.related button{border:1px solid #cbd5e1;background:white;border-radius:999px;padding:7px 10px;cursor:pointer}.close-btn{width:100%;margin-top:22px;background:#111827;color:white}@media(min-width:700px){.topbar{padding-top:22px;padding-bottom:22px}.card:hover{border-color:#94a3b8}}