/* Your Journal: mood buttons and journal shelf as downward grids (30 Nov 2026) */
html body #cjMoods.cj-moods{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;flex-wrap:wrap!important;-webkit-mask-image:none!important;mask-image:none!important;padding:4px 0!important;height:auto!important}
html body #cjMoods .cj-mood{--t:#e6cf96;position:relative;overflow:hidden;isolation:isolate;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  width:auto!important;min-width:0!important;height:auto!important;min-height:104px;padding:14px 6px 12px!important;border-radius:20px!important;
  background:linear-gradient(170deg,#18271e,#0f1a14)!important;border:1px solid color-mix(in srgb,var(--t) 30%,transparent)!important;color:#f4efe2!important;
  font:650 14px/1.2 var(--sans,inherit)!important;letter-spacing:-.01em;text-align:center;cursor:pointer;flex:none!important;
  box-shadow:0 10px 26px -18px var(--t);animation:cjIn .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i)*.045s);
  transition:transform .2s ease,border-color .2s,box-shadow .2s}
html body #cjMoods .cj-mood::before{content:"";position:absolute;inset:auto 10% 34% 10%;height:62%;border-radius:50%;z-index:-1;background:radial-gradient(circle,color-mix(in srgb,var(--t) 30%,transparent),transparent 70%)}
html body #cjMoods .cj-mood-e{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;font-size:28px;line-height:1;
  background:color-mix(in srgb,var(--t) 16%,#0d1912);border:1px solid color-mix(in srgb,var(--t) 40%,transparent);box-shadow:0 6px 18px -6px var(--t);transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
html body #cjMoods .cj-mood-l{display:block;padding:0 2px}
html body #cjMoods .cj-mood:hover{transform:translateY(-3px);border-color:var(--t)!important}
html body #cjMoods .cj-mood:hover .cj-mood-e{transform:scale(1.12) rotate(-6deg)}
html body #cjMoods .cj-mood:active{transform:scale(.95)}
html body #cjMoods .cj-mood[aria-pressed=true]{background:linear-gradient(160deg,color-mix(in srgb,var(--t) 35%,#1a2a20),#13221a)!important;border-color:var(--t)!important;color:#fff!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--t) 45%,transparent),0 14px 30px -12px var(--t)}
html body #cjMoods .cj-mood[aria-pressed=true] .cj-mood-e{transform:scale(1.15);animation:cjPop .5s cubic-bezier(.3,1.6,.5,1)}
html body #cjMoods .cj-mood[aria-pressed=true]::after{content:"✓";position:absolute;top:8px;right:9px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:800;color:#111;background:var(--t)}
html body #cjMoods .cj-mood:nth-child(1){--t:#ffd166}
html body #cjMoods .cj-mood:nth-child(2){--t:#f4c27a}
html body #cjMoods .cj-mood:nth-child(3){--t:#ffcf5c}
html body #cjMoods .cj-mood:nth-child(4){--t:#7ed6a0}
html body #cjMoods .cj-mood:nth-child(5){--t:#9fb6ff}
html body #cjMoods .cj-mood:nth-child(6){--t:#8fd3e8}
html body #cjMoods .cj-mood:nth-child(7){--t:#8fb3d9}
html body #cjMoods .cj-mood:nth-child(8){--t:#b6a6ff}
html body #cjMoods .cj-mood:nth-child(9){--t:#9be07a}
html body #cjMoods .cj-mood:nth-child(10){--t:#e6cf96}
html body #cjMoods .cj-mood:nth-child(11){--t:#ffb36b}
html body .cj-suggest:not(:empty){margin-top:16px!important;padding:16px 18px;border-radius:18px;border:1px solid #e6cf9655;background:linear-gradient(160deg,#1c2a20,#121d16);line-height:1.35;animation:cjIn .45s ease both}
html body .cj-suggest .cj-btn{margin:10px 0 0!important;display:inline-flex}

/* Journal shelf */
html body #cjShelf.cj-shelf{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important;flex-wrap:wrap!important;-webkit-mask-image:none!important;mask-image:none!important;height:auto!important;padding:4px 0!important}
html body #cjShelf .cj-book{width:auto!important;height:auto!important;min-width:0!important;flex:none!important;aspect-ratio:3/4!important;border-radius:20px!important;
  border:1px solid #ffffff1f!important;box-shadow:0 18px 34px -18px #000,0 0 0 1px #00000040;animation:cjIn .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(.1s + var(--i)*.06s)}
html body #cjShelf .cj-book img{transition:transform .6s ease}
html body #cjShelf .cj-book:hover img{transform:scale(1.06)}
html body #cjShelf .cj-book::after{background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.82))!important}
html body #cjShelf .cj-book-t{padding:12px 12px 14px!important}
html body #cjShelf .cj-book-t b{font-size:1.28rem!important;line-height:1.05;margin-bottom:4px;text-shadow:0 2px 8px #000a}
html body #cjShelf .cj-book-t span{display:block;font-size:.78rem!important;line-height:1.3;opacity:.92}
html body #cjShelf .cj-book-e{top:10px!important;right:10px!important;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-size:1.3rem!important;background:#0007;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid #ffffff33}
html body #cjShelf .cj-book:active{transform:scale(.97)}

@media(min-width:640px){
  html body #cjMoods.cj-moods{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body #cjShelf.cj-shelf{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(min-width:1000px){
  html body #cjMoods.cj-moods{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body #cjShelf.cj-shelf{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
  html body #cjShelf .cj-book-t b{font-size:1.5rem!important}
}
@keyframes cjIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cjPop{0%{transform:scale(.8)}60%{transform:scale(1.25)}100%{transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){html body #cjMoods *,html body #cjMoods .cj-mood,html body #cjShelf .cj-book,html body #cjShelf img{animation:none!important;transition:none!important}}
html body #cjShelf .cj-book-t b{white-space:normal!important;overflow-wrap:anywhere;font-size:1.15rem!important}
html body #cjShelf .cj-book-t span{white-space:normal!important}
html body #cjMoods .cj-mood:nth-child(11){grid-column:span 2;flex-direction:row;gap:14px;font-size:15px!important}
@media(min-width:1000px){html body #cjShelf .cj-book-t b{font-size:1.45rem!important}}
html body #cjMoods .cj-mood:nth-child(11)::before{inset:12% 55% 12% 8%;height:auto}

/* Wisdom cards: vertical 2-column grid on phones, no sideways swiping */
html body #cjWisGrid.cj-wisgrid,html body #cjWisGrid.cx-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important;flex-wrap:wrap!important;scroll-snap-type:none!important;padding:2px 0!important}
html body #cjWisGrid>a{flex:none!important;width:auto!important;margin:0!important;display:flex!important;flex-direction:column;border-radius:18px!important;background:linear-gradient(170deg,#18271e,#0f1a14)!important;border:1px solid #e6cf9633!important;
  box-shadow:0 12px 26px -18px #000;animation:cjIn .5s cubic-bezier(.2,.8,.2,1) both;transition:transform .2s,border-color .2s}
html body #cjWisGrid>a:hover{transform:translateY(-3px);border-color:#e6cf96!important}
html body #cjWisGrid>a:active{transform:scale(.97)}
html body #cjWisGrid img{aspect-ratio:3/2;object-fit:cover;background:#f3ecd9}
html body #cjWisGrid>a>div{padding:10px 11px 12px!important;line-height:1.3}
html body #cjWisGrid b{display:block;font-size:1.08rem!important;line-height:1.15;color:#f4efe2;margin-bottom:3px}
html body #cjWisGrid b+br{display:none}
html body #cjWisGrid>a>div>span{display:block;font-size:.8rem;color:#c9cfc3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html body #cjWisGrid>a.cj-wis-more{display:none!important}
html body #cjWisGrid.cj-wis-collapsed>a:nth-child(n+9){display:none!important}
html body #cjWisGrid+.cx-hint,html body .cj-sec .cx-hint{display:none!important}
html body .cj-wis-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin-top:14px;border-radius:16px;border:1px solid #e6cf9677;background:linear-gradient(160deg,#1c2a20,#121d16);color:#e6cf96;font:700 15px/1.2 var(--sans,inherit);cursor:pointer}
html body .cj-wis-toggle:active{transform:scale(.98)}
@media(min-width:640px){html body #cjWisGrid.cj-wisgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1000px){html body #cjWisGrid.cj-wisgrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}html body #cjWisGrid.cj-wis-collapsed>a:nth-child(n+9){display:flex!important}html body .cj-wis-toggle{display:none}}

/* Writing on phones: wider page, roomier lines, Save always in reach */
@media screen and (max-width:760px){
  html body .cj-desk .cj-paper{border-width:22px!important;border-image-slice:24% fill;margin:0 -8px}
  html body .cj-desk .cj-pin{padding:14px 12px!important}
  html body .cj-desk .cj-f{margin-bottom:20px}
  html body .cj-desk .cj-f label{font-size:1.02rem;line-height:1.3}
  html body .cj-desk .cj-f textarea{font-size:1.6rem;min-height:3.6em;padding:6px 8px}
  html body .cj-desk .cj-bar{margin:0 -4px 14px;padding:10px;border-radius:18px;
    background:rgba(16,26,20,.92);border:1px solid #e6cf9644;box-shadow:0 12px 30px -12px #000}
  html body .cj-desk .cj-bar>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%}
  html body .cj-desk .cj-bar .cj-btn{min-height:46px;width:100%;justify-content:center}
  html body .cj-desk .cj-bar #cjBack{width:100%;min-height:42px}
}
@media screen and (max-width:760px){
  html body .cj-desk:not([hidden]) #cjSave{position:fixed;right:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:70;width:auto!important;min-height:52px;padding:0 20px;border-radius:999px;
    box-shadow:0 12px 28px -8px #000,0 0 0 4px #e6cf9633;font-weight:800;animation:cjIn .4s ease both}
  html body .cj-desk:not([hidden]) #cjSave::before{content:"💾 "}
  html body .cj-desk .cj-pin{padding-bottom:80px!important}
}
