@font-face{font-family:Lif;src:url(letur/KNYuanmoSCLif-Latina.ttf) format('truetype');font-display:swap}
:root{--ink:#242438;--muted:#575769;--line:#d5d3de;--purple:#5945a3;--lilac:#eae5ff;--sheet:#faf9fc;color:var(--ink);background:var(--sheet);font:100%/1.5 system-ui,-apple-system,"Helvetica Neue",sans-serif;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(1160px,calc(100% - 72px));margin-inline:auto}
button,input,textarea,select{font:inherit;color:inherit}
button,select{cursor:pointer}
button{border:0;background:none}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7356ce;outline-offset:3px}
[hidden]{display:none!important}
.mast{border-bottom:1px solid var(--line);background:white}
.mast-inner{min-height:65px;display:flex;align-items:center;gap:18px}
.brand{color:var(--ink);font:2rem/1 Lif,serif;text-decoration:none;font-feature-settings:"ss01"}
.rule{background:var(--line);height:23px;width:1px}
.mast-title,.backup-link,.plain,.secondary,.primary{font-size:.9375rem;font-weight:620}
.backup-link{margin-left:auto;display:flex;align-items:center;gap:8px;padding:10px 0}
.icon{width:19px;height:19px;display:inline-flex;flex:none}
.icon svg{width:100%;height:100%}
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:6%;align-items:center;padding:clamp(34px,5vw,70px) clamp(25px,5vw,70px);margin:32px 0 42px;border:1px solid #d4cfe4;border-radius:19px;background-color:#ece9f8;background-image:radial-gradient(#bbb5d4 0.75px,transparent .9px);background-size:10px 10px;isolation:isolate}
h1,h2,h3,p{margin:0}
h1,h2,h3,.example strong,.review-face{font-family:Lif,Georgia,serif;font-weight:400;overflow-wrap:anywhere}
h1{font-size:clamp(2.9rem,5.9vw,5.6rem);letter-spacing:-.045em;line-height:1.05}
.intro p{font-size:clamp(1rem,1.6vw,1.16rem);max-width:36ch;line-height:1.58;margin:18px 0 24px}
.primary,.secondary,.close{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:10px 16px;line-height:1.45;min-height:44px}
.primary{background:var(--ink);color:white}.primary:hover:enabled{background:#44405c}
.secondary,.close{background:white;border:1px solid var(--line)}.secondary:hover,.close:hover{background:#f0edf6}
.deck{position:relative;width:min(100%,380px);justify-self:center;margin:13px 0 7px;transform:rotate(-3deg)}
.paper,.back-paper{border:1.7px solid var(--ink);border-radius:11px}
.back-paper{position:absolute;inset:0}
.one{background:#f7bc94;transform:translate(4px,-5px) rotate(10deg)}
.two{background:#b9b0e8;transform:translate(2px,-3px) rotate(5deg)}
.example{position:relative;display:grid;grid-template-rows:auto 1fr auto;text-align:left;width:100%;min-height:212px;background:#fffef8;box-shadow:3px 4px var(--ink);padding:0;overflow:hidden;transition:transform .16s}
.example:hover{transform:translateY(-2px)}
.paper-top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #c6bed8;padding:11px 18px;font-size:.8rem;color:var(--muted)}
.paper-top>span:first-child{display:flex;align-items:center;gap:8px;font-weight:650;color:var(--ink)}
.dot{height:9px;width:9px;border-radius:50%;background:#9c88cf;border:1px solid var(--ink)}
.example strong{display:flex;align-items:center;justify-content:center;text-align:center;font-size:clamp(1.35rem,2.7vw,2rem);line-height:1.25;padding:20px;background:repeating-linear-gradient(transparent 0 26px,#e8e4ef 26px 27px)}
.example.flipped strong{font-size:1.22rem}
#example-hint{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:6px 15px 9px;font-size:.8rem;color:var(--muted)}
#example-hint .icon{width:15px;height:15px}
.library-head,.dialog-head,.entry-meta,.entry-actions,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
h2{font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.22;letter-spacing:-.025em}
#count{vertical-align:middle;font:600 .95rem/1.1 system-ui;background:var(--lilac);border-radius:24px;padding:3px 10px;margin-left:4px}
.tools{display:flex;gap:10px;margin:21px 0}
.search,.select{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;min-width:0}
.search{flex:1;padding:0 12px;gap:9px;color:var(--muted)}
.search input,.select select{width:100%;min-width:0;height:44px;border:0;background:transparent}
.select{position:relative;max-width:36%}
.select:after{content:"";position:absolute;right:15px;top:44%;width:7px;height:7px;border-right:1.7px solid;border-bottom:1.7px solid;transform:rotate(45deg);pointer-events:none}
.select select{appearance:none;padding:0 36px 0 13px;text-overflow:ellipsis}
#message:empty,.error:empty{display:none}
#message,.error{margin:12px 0;font-size:.95rem}
.error,.danger{color:#922d38}
.empty{padding:32px 20px;border:1px dashed #c0bacf;background:#fff;border-radius:12px;text-align:center}
.empty .empty-icon{margin:auto auto 11px;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--lilac);color:var(--purple)}
.empty .empty-icon svg{width:29px;height:29px}
.empty h3{font-size:1.4rem}.empty p,footer,.muted,.entry-meta{color:var(--muted)}.empty p{margin:3px auto 9px}
.plain{padding:6px 0;color:var(--purple);text-underline-offset:4px}.plain:hover,.backup-link:hover{text-decoration:underline}
#library-list.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:14px;align-items:start}
.entry{background:white;border:1px solid var(--line);border-top:4px solid var(--tab,#b6acd9);border-radius:9px;min-width:0;padding:17px 18px 9px;display:flex;flex-direction:column}
.entry-meta{font-size:.8125rem;align-items:start}.subject{font-weight:650;overflow-wrap:anywhere}.state{white-space:nowrap}
.entry h3{font-size:1.4rem;line-height:1.32;padding:16px 0;white-space:pre-wrap}
.answer,.review-text{white-space:pre-wrap;overflow-wrap:anywhere}
.answer{padding-bottom:14px}.entry-actions{border-top:1px solid #e8e6ed}.edit{color:var(--muted)}
footer{display:flex;align-items:center;gap:7px;margin:30px 0;font-size:.84rem}footer .icon{width:16px}
dialog{border:1px solid #b7b0c7;padding:clamp(19px,4vw,30px);border-radius:16px;width:min(550px,calc(100% - 26px));max-height:90dvh;background:var(--sheet);color:var(--ink);box-shadow:0 20px 90px #24243835}
dialog::backdrop{background:#24213675}
.dialog-head{margin-bottom:20px}
.close{padding:8px;width:42px}
dialog label{display:block;font-weight:650;margin:15px 0}
dialog label span,.muted{font-size:.875rem;font-weight:400;color:var(--muted)}
dialog input,dialog textarea{display:block;width:100%;margin-top:5px;border:1px solid #afaaba;border-radius:7px;background:white;padding:9px 11px}
dialog textarea{resize:vertical}
.actions{justify-content:flex-end;flex-wrap:wrap}.actions .danger{margin-right:auto;color:#922d38}
#copies .primary{margin-top:15px}hr{border:none;border-top:1px solid var(--line);margin:22px 0}
.round-meta{display:flex;justify-content:space-between;gap:12px;font-size:.88rem;color:var(--muted);overflow-wrap:anywhere}
progress{width:100%;accent-color:var(--purple);margin:10px 0}
.review-face{background:white;border:1px solid var(--line);border-top:5px solid #ad9bd9;border-radius:9px;margin:5px 0 17px;padding:20px;min-height:145px}
.review-face small{font:600 .82rem system-ui;color:var(--muted);display:block;margin-bottom:10px}
.review-text{font-size:1.55rem;line-height:1.4}.revealed .review-text{font:1.05rem/1.6 system-ui}
.review-face+.review-face{margin-top:-7px}.summary{font-size:1.05rem;margin:16px 0 24px}
@media(max-width:740px){.wrap{width:calc(100% - 32px)}.hero{gap:24px;padding:35px 23px}.example{min-height:170px}.paper-top{padding:8px 10px}.example strong{padding:12px}.intro p{margin:11px 0 16px}}
@media(max-width:580px){.mast-inner{min-height:55px;gap:10px}.brand{font-size:1.6rem}.hero{grid-template-columns:1fr;margin:18px 0 24px;gap:12px}.deck{width:min(83%,300px);margin:12px auto 5px}.example{min-height:145px}.intro p{max-width:40ch}.tools{flex-wrap:wrap;margin:14px 0}.search{flex-basis:100%}.select{flex:1;max-width:none}.library-head{gap:5px}.library-head .primary{padding:9px;font-size:.84rem}.library-head .icon{width:16px}.empty{padding:22px 12px}.backup-link{font-size:.85rem}.actions .primary,.actions .secondary{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
