.jr{--jr-ink:#302b40;--jr-muted:#686273;--jr-edge:#e4e0dc;--jr-paper:#fff;--jr-warm:#fbf8f1;--jr-soft:#f0e9f7;--jr-accent:#67517c;color:var(--jr-ink);width:min(100%,940px);margin:0 auto;padding:clamp(22px,4vh,50px) clamp(12px,3vw,40px) 56px;box-sizing:border-box;font:inherit;}
.jr *, .jr *::before,.jr *::after{box-sizing:border-box}
.jr h1,.jr h2,.jr h3,.jr p,.jr fieldset,.jr legend{margin:0}
.jr h1{font-size:clamp(29px,4.2vw,42px);line-height:1.3;text-align:center;letter-spacing:-.025em;font-weight:720;margin:0 0 clamp(24px,4vh,43px)}
.jr h2{font-size:clamp(23px,2.75vw,31px);line-height:1.4;font-weight:690}
.jr h3,.jr legend{font-weight:650;font-size:18px}
.jr button,.jr textarea,.jr input,.jr select{font:inherit}
.jr button{cursor:pointer;color:var(--jr-ink)}
.jr button:disabled{cursor:default;opacity:.52}
.jr :focus-visible{outline:3px solid #765a92;outline-offset:3px}
.jr .jr-card,.jr .jr-note{position:relative;background:#fff;border:1px solid var(--jr-edge);border-radius:23px;box-shadow:0 5px 0 #eeeae3;padding:clamp(22px,3.5vw,39px);margin:0 auto 20px}
.jr .jr-note{border-radius:20px 24px 24px 20px;padding:clamp(28px,5vw,56px) clamp(28px,5.5vw,72px);isolation:isolate}
.jr-note::before{content:"";position:absolute;left:16px;top:24px;bottom:24px;width:8px;background:radial-gradient(circle,#eae5de 3px,transparent 3.6px) center/8px 64px repeat-y;pointer-events:none}
.jr-note::after{content:"";position:absolute;right:clamp(24px,5vw,56px);top:0;background:#d6c3e6;width:19px;height:32px;clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%);pointer-events:none}
.jr .jr-meta,.jr .jr-muted,.jr .jr-date{color:var(--jr-muted);font-size:.93rem;line-height:1.6}
.jr .jr-note>.jr-meta{margin-bottom:12px;padding-right:20px}
.jr .jr-note h2{margin:0 0 14px}
.jr .jr-temporal{display:inline-block;border-radius:9px;background:#fbecda;padding:6px 11px;font-size:.91rem;font-weight:600;margin-bottom:21px}
.jr .jr-sentence{font:inherit;font-size:clamp(18px,2.5vw,24px);font-weight:650;line-height:1.8;margin:2px 0 12px}
.jr .jr-mood{background:linear-gradient(transparent 74%,#e4d1ed 74%)}
.jr .jr-energy{background:linear-gradient(transparent 74%,#dbe9c9 74%)}
.jr .jr-prose,.jr .jr-quote{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.09rem;line-height:1.8}
.jr .jr-tagline{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.jr .jr-tag{border-radius:10px;background:#f5f2ec;color:#5c5564;padding:4px 10px;font-size:.88rem}
.jr .jr-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.jr .jr-actions.end{justify-content:flex-end}
.jr .jr-btn,.jr .jr-chip,.jr .jr-short{background:#fff;border:1px solid var(--jr-edge);border-radius:13px;min-height:46px;padding:9px 19px;font-size:1rem;font-weight:600;line-height:1.4}
.jr .jr-btn.primary{background:var(--jr-ink);color:#fff;border-color:var(--jr-ink)}
.jr .jr-btn.danger{background:#914f52;color:#fff;border-color:#914f52}
.jr .jr-short{min-width:44px;padding:7px;font-size:.95rem}
.jr .jr-selectset,.jr .jr-options{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.jr .jr-chip{padding:8px 13px;border-radius:12px;font-weight:500;min-height:42px}
.jr .jr-chip[aria-pressed=true],.jr .jr-choice:has(input:checked){background:#eee7f4;border-color:#8a719b;color:#392d45}
.jr .jr-fields{display:grid;gap:23px}
.jr fieldset{border:0;padding:0;min-width:0}
.jr .jr-field{display:grid;gap:9px;font-weight:650}
.jr textarea,.jr input[type=text],.jr input[type=time],.jr select{width:100%;font-size:1rem;border:1px solid #ccc6ce;border-radius:12px;background:#fff;color:var(--jr-ink);padding:12px 14px;font-weight:450}
.jr textarea{resize:vertical;min-height:98px;line-height:1.65}
.jr details{border-top:1px solid var(--jr-edge);padding-top:15px}
.jr summary{cursor:pointer;font-weight:600;padding:5px 0;min-height:38px}
.jr .jr-list{display:grid;gap:14px}
.jr .jr-row{display:grid;grid-template-columns:minmax(112px,auto) minmax(0,1fr) auto 20px;align-items:center;gap:18px;width:100%;text-align:left;background:#fff;border:1px solid var(--jr-edge);border-radius:16px;padding:20px;box-shadow:0 3px 0 #eeeae3;min-height:94px}
.jr .jr-date{font-weight:650;background:#f0e9f6;border-radius:10px;text-align:center;padding:7px 9px}
.jr .jr-row strong{display:block;font-size:1.15rem}
.jr .jr-excerpt{display:block;color:var(--jr-muted);font-size:.92rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:4px;line-height:1.5}
.jr .jr-stamp{font-size:.88rem;color:var(--jr-muted);text-align:right}
.jr .jr-arrow{width:10px;height:10px;border:solid #686273;border-width:2px 2px 0 0;transform:rotate(45deg)}
.jr .jr-options.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.jr .jr-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--jr-edge);border-radius:12px;min-height:47px;padding:10px 13px;cursor:pointer}
.jr input[type=checkbox],.jr input[type=radio]{accent-color:var(--jr-ink);width:18px;height:18px;margin:0;flex:0 0 auto}
.jr .jr-people{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:16px 0 30px}
.jr .jr-person{appearance:none;position:relative;display:grid;justify-items:center;align-content:center;gap:9px;background:#fff;border:1px solid var(--jr-edge);border-radius:22px;min-height:178px;width:min(178px,44%);padding:18px 10px;box-shadow:0 4px 0 #eeeae3}
.jr .jr-person[aria-pressed=true]{outline:2px solid #806696;outline-offset:-1px}
.jr .jr-person strong{font-size:1.15rem}
.jr .jr-person span:last-child{font-size:.89rem;color:var(--jr-muted)}
.jr .jr-person .jr-tick{position:absolute;top:12px;right:13px;width:22px;height:22px;color:var(--jr-ink);border-radius:50%;font-weight:650}
.jr .jr-avatar{display:inline-grid;place-items:center;width:51px;height:51px;flex:0 0 auto;border-radius:18px;background:#e6efdf;color:#3e614b;font-size:1.25rem;font-weight:650}
.jr .jr-avatar.peer{background:#eee6f6;color:#6c5081}
.jr .jr-to{display:flex;align-items:center;gap:13px;margin-bottom:24px;font-size:1.05rem;font-weight:650}
.jr .jr-quote{border-left:4px solid #d6c2e5;padding-left:17px;margin:18px 0}
.jr .jr-quote p+p{margin-top:7px}
.jr .jr-paperfoot{margin-top:26px;font-size:.89rem;color:var(--jr-muted)}
.jr .jr-bubble{background:white;color:var(--jr-ink);border:1px solid var(--jr-edge);border-radius:18px 18px 5px 18px;padding:14px 20px;margin:12px 0 12px auto;width:fit-content;max-width:88%;line-height:1.7}
.jr .jr-bubble.in{margin-right:auto;margin-left:0;border-radius:18px 18px 18px 5px}
.jr .jr-section{margin:25px 0 11px;font-size:1.05rem}
.jr .jr-sep{border:0;border-top:1px solid var(--jr-edge);margin:20px 0}
.jr .jr-center{text-align:center}
.jr .jr-empty{padding:32px 10px;color:var(--jr-muted);text-align:center}
.jr .jr-error{color:#863f47;font-size:.95rem;text-align:center;margin-top:15px}
.jr .jr-dialog{border:1px solid var(--jr-edge);border-radius:24px;padding:0;color:var(--jr-ink);background:#fff;width:min(440px,calc(100% - 32px));box-shadow:0 18px 70px #302b402b}
.jr .jr-dialog::backdrop{background:#302b4055}
.jr .jr-dialog>div{padding:27px}
.jr .jr-dialog h2{font-size:1.45rem;margin-bottom:9px}
.jr .jr-dialog .jr-actions{justify-content:flex-end}
.jr .jr-savedpet{position:relative;display:flex;align-items:center;justify-content:center;width:144px;height:121px;margin:8px auto 19px;}
.jr .jr-savedline{display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;margin:-5px auto 22px;padding:6px 18px 6px 8px;background:#fff;border:1px solid var(--jr-edge);border-radius:16px;font-size:.93rem}
.jr .jr-savedline>span{display:inline-flex;max-width:45px;height:37px}
.jr .jr-savedline svg{width:45px;height:37px}
.jr .jr-savedpet>svg{width:136px;height:114px}
.jr .jr-petbubble{position:absolute;right:-23px;top:1px;padding:4px 9px;background:white;border-radius:11px 11px 11px 1px;box-shadow:0 2px 6px #302b4015;font-size:.82rem;white-space:nowrap;animation:jr-bubble .7s ease-out both}
@keyframes jr-bubble{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.jr .jr-row{grid-template-columns:1fr 22px;gap:8px 14px;padding:15px 18px}.jr .jr-row .jr-date{grid-column:1;justify-self:start;font-size:.81rem;padding:3px 8px}.jr .jr-row .jr-rowcopy{grid-column:1}.jr .jr-stamp{grid-column:1;text-align:left}.jr .jr-row .jr-arrow{grid-column:2;grid-row:1 / span 3}.jr .jr-person{min-height:150px}.jr .jr-actions.end{justify-content:flex-start}.jr .jr-note{padding-left:33px}.jr-note::before{left:12px}.jr .jr-bubble{max-width:94%}}
@media(prefers-reduced-motion:reduce){.jr .jr-petbubble{animation:none}}

.jr-reward{display:grid;justify-items:center;gap:2px;margin:0 auto 20px;position:relative}
.jr-reward-scene{display:block;width:min(100%,300px);height:auto;overflow:visible}
.jr-reward-caption{color:#665139;background:#fff6de;border-radius:99px;padding:4px 14px;font-size:.94rem;font-weight:650}
.jr-reward.compact{margin:0 auto 18px}.jr-reward.compact .jr-reward-scene{width:200px}
.jr-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.jr-flying-star,.jr-orbit,.jr-twinkles{opacity:0;pointer-events:none}
.jr-reward.arriving .jr-flying-star{animation:jr-shoot 1.45s both}
.jr-reward.arriving .jr-orbit{animation:jr-trail 1.5s both}
.jr-reward.arriving .jr-twinkles{transform-origin:160px 75px;animation:jr-shimmer 1.1s both}
.jr-reward.arriving .jr-wallet{transform-origin:239px 42px;animation:jr-pocket 1.6s both}
@keyframes jr-shoot{0%,10%{opacity:0;transform:translate(149px,108px) scale(.25) rotate(-25deg)}25%{opacity:1;transform:translate(149px,86px) scale(1.08) rotate(-8deg)}44%{transform:translate(158px,57px) scale(1) rotate(8deg)}59%{transform:translate(179px,37px) scale(.94) rotate(22deg)}71%{transform:translate(204px,31px) scale(.82) rotate(37deg)}85%{opacity:1;transform:translate(226px,40px) scale(.54) rotate(62deg)}91%,100%{opacity:0;transform:translate(229px,42px) scale(.1) rotate(72deg)}}
@keyframes jr-trail{0%,23%{opacity:0}55%{opacity:.5}100%{opacity:0}}
@keyframes jr-shimmer{0%,25%,100%{opacity:0;transform:scale(.5)}50%{opacity:.9;transform:scale(1)}}
@keyframes jr-pocket{0%,70%,100%{transform:none}81%{transform:scale(1.1)}92%{transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.jr-reward.arriving *{animation:none!important}}
.jr-reward.arriving .jr-new-total{animation:jr-credit-in 1.24s steps(1,end) both}
.jr-old-total{opacity:0}.jr-reward.arriving .jr-old-total{animation:jr-credit-out 1.24s steps(1,end) both}
@keyframes jr-credit-in{from{opacity:0}to{opacity:1}}
@keyframes jr-credit-out{from{opacity:1}to{opacity:0}}

.jr .jr-selectset input.jr-inline-input{width:11em;max-width:100%;min-height:42px;padding:8px 12px}
.jr .jr-word-entry{position:relative;display:inline-flex;max-width:100%}
.jr .jr-word-entry input.jr-inline-input{width:12em;padding-right:44px}
.jr .jr-add-word{position:absolute;inset:1px 1px 1px auto;min-height:0;width:40px;border:0;border-radius:10px;background:transparent;color:var(--jr-accent);font:inherit;font-size:1.25rem;cursor:pointer}
.jr .jr-inline-input:focus-visible,.jr .jr-add-word:focus-visible{outline:2px solid var(--jr-accent);outline-offset:1px}

.jr .jr-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.jr .jr-attachment{padding:11px 13px;min-width:0}
.jr .jr-attachment>span{display:grid;min-width:0;gap:4px}
.jr .jr-attachment strong{font-weight:600}
.jr .jr-attachment small{color:var(--jr-muted);font-size:.875rem;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr .jr-attachment:has(:disabled){background:#faf9f7;color:var(--jr-muted);cursor:default}
@media(max-width:600px){.jr .jr-attachments{grid-template-columns:minmax(0,1fr)}}
