:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#eaf0ff;background:#101a2d}*{box-sizing:border-box}body{margin:0}main{max-width:620px;margin:auto;padding:calc(28px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom))}header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}small{font-size:11px;letter-spacing:.16em;color:#a5b4fc;font-weight:700}h1{font-size:23px;margin:10px 0 22px}header span,.muted{color:#aab9d1;font-size:14px}nav{display:flex;background:#1b2940;border-radius:14px;padding:4px;gap:4px}button{font:inherit;cursor:pointer;border:0}nav button{flex:1;background:transparent;color:#b6c4d9;padding:12px 4px;border-radius:10px;font-size:14px}nav button.active{background:#5266dc;color:white;font-weight:600}.card{background:#19263b;border:1px solid #33445e;border-radius:22px;margin-top:20px;padding:22px;min-height:390px}.card-top{display:flex;align-items:center;justify-content:space-between;color:#aab9d1;font-size:14px}.text-button{background:transparent;color:#bdcaff;padding:8px}.muted{margin:25px 0 8px}h2{font-size:36px;line-height:1.15;overflow-wrap:anywhere;margin:12px 0}.meaning{font-size:19px;line-height:1.6;margin:22px 0}.example{line-height:1.6;color:#c3d0e5;white-space:pre-line;font-size:15px}details{margin:20px 0;color:#c6d2ea;border-top:1px solid #33445e;padding-top:16px}summary{cursor:pointer}#memoryText{white-space:pre-line;line-height:1.6;margin-top:12px;font-size:14px}#actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}#actions button,.add{flex:1;min-width:120px;border-radius:12px;padding:15px 8px;background:#5266dc;color:white;font-weight:600}#actions .secondary{background:#263750;color:#e3ebfb}#actions .weak{background:#4b312b;color:#ffd0a3}.footer{text-align:center;color:#91a2bb;font-size:13px;margin-top:24px}dialog{width:min(92vw,520px);max-height:80vh;border:1px solid #43536b;border-radius:20px;background:#19263b;color:#eef4ff;padding:20px}dialog::backdrop{background:#000a}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{background:transparent;color:white;padding:10px}input{width:100%;padding:14px;border:1px solid #526681;border-radius:10px;background:#101a2d;color:white;font-size:16px}.result{padding:14px 0;border-bottom:1px solid #33445e}.result p{line-height:1.5;color:#c8d4e6}.add{padding:9px 14px;font-size:14px}.add:disabled{opacity:.55}#empty{line-height:1.7;color:#c4d0e2;margin-top:35px}
