:root{--bg:#fcfaf6;--paper:#ffffff;--ink:#3b3022;--muted:#776c5e;--line:#e9dfcc;--accent:#88621f;--pale:#faf3e4;--gold:#b48a3c;--danger:#a34236}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Thonburi,"Noto Sans Thai",Tahoma,sans-serif;font-size:15px;line-height:1.8}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}:focus-visible{outline:3px solid #b79755;outline-offset:4px}button,input,textarea,select{border-radius:10px}button{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:9px 17px}button:hover,.btn:hover{filter:brightness(.96)}.top{background:#ffffff;border-bottom:1px solid var(--line)}.nav-wrap{max-width:1200px;min-height:90px;margin:auto;display:flex;align-items:center;gap:44px;padding:15px 30px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;line-height:1.3;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:2.4px;font-weight:400;margin-top:4px}.brand-mark{background:var(--accent);color:#fff6d9;border-radius:50% 50% 12px 12px;width:40px;height:46px;display:grid;place-items:center;font-size:27px;font-weight:400}nav{display:flex;align-items:center;gap:30px;flex:1}nav a{color:var(--muted);padding:10px 0;position:relative}nav a.active{color:var(--ink);font-weight:700}nav a.active:after{content:'';height:2px;background:var(--gold);position:absolute;bottom:0;left:0;right:0}#account{display:flex;align-items:center;gap:12px;font-size:13px}.avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#f2e7ce;color:#88621f;font-size:15px}.account-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-button{border:0;background:none;padding:5px;font-size:12px;color:var(--muted)}main{max-width:1200px;min-height:70vh;margin:auto;padding:42px 30px 80px}.hero{border:1px solid #e5d3ad;background:#fffaf0;border-radius:24px;display:grid;grid-template-columns:1.45fr 1fr;overflow:hidden;position:relative;min-height:320px}.hero-copy{padding:44px 48px;z-index:1}.eyebrow{font-size:11px;letter-spacing:2px;color:#926a28;text-transform:uppercase}.hero h1{font-size:clamp(30px,4vw,46px);line-height:1.5;font-weight:500;margin:15px 0 12px;letter-spacing:-.6px}.hero p{color:#75664f;margin:0 0 25px;max-width:480px;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:10px 20px;background:var(--accent);color:white;font-size:14px;border:1px solid var(--accent);font-weight:500}.btn.secondary{background:var(--paper);color:var(--ink);border-color:var(--line)}.hero-art{position:relative;display:grid;place-items:center;min-height:270px;background:radial-gradient(circle at center,#fbfaf0 0,#fbfaf000 68%)}.sun{position:absolute;width:230px;height:230px;border:1px solid #dbc48f;border-radius:50%}.sun:before,.sun:after{content:'';position:absolute;border:1px solid #dbc48f;border-radius:50%;inset:-23px}.sun:after{inset:23px}.book{transform:rotate(-11deg);width:146px;height:194px;border-radius:6px 15px 15px 6px;background:#b7904b;box-shadow:8px 8px 0 #e9daba,10px 11px 22px #86632220;border-left:9px solid #8c682c;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#f1e6ba;gap:15px}.book span{font-size:33px}.book small{font-size:10px;letter-spacing:3px}.petal{width:25px;height:45px;border:1px solid #d4c185;border-radius:100% 0 100% 0;transform:rotate(-35deg)}.floating-note{position:absolute;bottom:47px;right:25px;z-index:2;padding:9px 17px;border:1px solid #dfdfc9;background:#fffdf2;box-shadow:0 4px 18px #8c682c0c;font-size:12px;border-radius:30px;transform:rotate(4deg)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:39px 0 20px;gap:20px}.section-head h2,.page-heading h1{margin:0;font-weight:500;font-size:25px}.section-head p,.page-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.section-label{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.card{border:1px solid var(--line);background:var(--paper);border-radius:17px;overflow:hidden;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #97703a14}.card-image{position:relative;aspect-ratio:4/3;overflow:hidden;background:#f4eee2}.card-image img{width:100%;height:100%;object-fit:cover;display:block}.visibility{display:inline-flex;gap:5px;align-items:center;font-size:11px;background:#fbf1da;color:#88621f;padding:3px 10px;border-radius:20px;white-space:nowrap}.visibility.private{background:#f0eade;color:#816b43}.card-image .visibility{position:absolute;top:13px;left:13px;background:#fffdf2ed}.card-content{padding:19px 21px}.card h3{font-size:18px;font-weight:500;line-height:1.6;margin:0 0 7px;overflow-wrap:anywhere}.excerpt{font-size:13px;color:var(--muted);margin:0 0 17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.byline{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.byline strong{display:block;font-weight:400;color:var(--ink);font-size:12px}.byline .avatar{height:29px;width:29px;font-size:12px}.empty{border:1px dashed #dacaab;background:#fffcf5;border-radius:18px;min-height:225px;padding:35px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.empty .empty-symbol{font-size:29px;color:var(--gold)}.empty h3{font-size:19px;font-weight:500;margin:10px 0 3px}.empty p{font-size:13px;color:var(--muted);max-width:500px;margin:0 0 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:28px}.stat{padding:21px 25px;background:var(--paper);border:1px solid var(--line);border-radius:14px}.stat b{font-size:29px;font-weight:500;display:block}.stat span{font-size:12px;color:var(--muted)}.auth-layout{max-width:900px;margin:20px auto;display:grid;grid-template-columns:1fr 1.1fr;border-radius:24px;overflow:hidden;border:1px solid var(--line);background:var(--paper)}.auth-story{background:#faf1de;padding:48px 35px;display:flex;flex-direction:column;justify-content:center}.auth-story h1{font-weight:500;font-size:32px;line-height:1.6}.auth-story p{font-size:14px;color:#75664f}.auth-form{padding:40px}.auth-form h2{font-size:23px;font-weight:500;margin:0 0 5px}.subtext{font-size:12px;color:var(--muted);margin:0 0 24px}label{display:block;margin:17px 0 7px;font-size:13px;font-weight:500}input:not([type=radio]):not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid #dfd2b9;background:#ffffff;padding:11px 13px;color:var(--ink);min-height:45px}input::placeholder,textarea::placeholder{color:#938877}textarea{resize:vertical;min-height:230px}.hint{display:block;color:var(--muted);font-size:11px;margin-top:5px}.full{width:100%;margin-top:24px}.auth-footer{margin:22px 0 0;text-align:center;font-size:12px;color:var(--muted)}.auth-footer a{color:var(--ink);text-decoration:underline}.error{padding:10px 13px;background:#fff0ea;color:#a14030;border:1px solid #efd2c7;border-radius:10px;font-size:13px;margin:16px 0}.error:empty{display:none}.editor{max-width:790px;margin:0 auto}.back{display:inline-block;font-size:12px;color:var(--muted);margin-bottom:23px}.editor-box{background:var(--paper);padding:30px;border:1px solid var(--line);border-radius:18px}.upload{border:1px dashed #d4ba85;background:#fdf8ec;border-radius:13px;overflow:hidden;padding:23px;text-align:center}.upload img{width:100%;max-height:350px;object-fit:contain;display:block;border-radius:8px;margin-bottom:15px}.upload .hint{margin-top:10px}.upload input[type=file]{border:0;background:transparent;font-size:12px;max-width:360px;margin:auto}.privacy-options{border:0;padding:0;margin:24px 0}.privacy-options legend{font-size:14px}.choice{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;font-weight:400;cursor:pointer}.choice:has(input:checked){border-color:#ac8540;background:#fff5de}.choice input{margin-top:6px;accent-color:var(--accent)}.choice strong{font-size:13px;font-weight:500}.choice small{display:block;color:var(--muted);font-size:11px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.actions .btn{margin:0}.save-note{font-size:11px;color:var(--muted);margin:15px 0 0}.detail{max-width:850px;margin:auto}.detail-cover{width:100%;max-height:560px;object-fit:contain;background:#f5efe4;border-radius:19px;display:block}.detail-content{max-width:730px;margin:30px auto}.detail h1{font-size:32px;line-height:1.6;font-weight:500;overflow-wrap:anywhere;margin:17px 0}.detail .body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;font-size:16px;margin:30px 0}.detail-tools{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:12px;flex-wrap:wrap}.danger{color:var(--danger);border-color:#e5c5ba}.private-note{padding:12px 16px;background:#f2ecdf;border-radius:10px;color:#897346;font-size:12px;margin:15px 0}.footer{max-width:1140px;margin:auto;border-top:1px solid var(--line);padding:24px 0 32px;display:flex;justify-content:space-between;gap:15px;color:#7f7465;font-size:11px}.footer a{color:var(--ink)}.loading{text-align:center;padding:70px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;padding:12px 22px;background:#6e511f;color:#fff;border-radius:12px;box-shadow:0 8px 30px #0002;z-index:20;font-size:13px}#toast:empty{display:none}.more{text-align:center;margin-top:28px}.skip{position:absolute;left:-1000px}.skip:focus{left:15px;top:10px;z-index:50;background:white;padding:10px}.password-row{display:flex;gap:7px}.password-row input{min-width:0}.password-row button{font-size:11px;white-space:nowrap}.check-line{display:flex;gap:8px;align-items:center;font-weight:400;font-size:12px}.check-line input{accent-color:var(--accent)}[hidden]{display:none!important}@media(max-width:900px){.nav-wrap{gap:25px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-name{display:none}.hero-copy{padding:32px}.hero-art{transform:scale(.85)}.auth-form{padding:30px}.footer{margin:0 30px}}@media(max-width:620px){.nav-wrap{padding:14px 20px;gap:14px;flex-wrap:wrap;min-height:unset}.brand{font-size:20px}.brand-mark{height:39px;width:34px;font-size:24px}nav{order:3;width:100%;gap:25px;font-size:13px}#account{margin-left:auto}#account .btn{padding:7px 12px;font-size:12px}main{padding:24px 20px 50px}.hero{grid-template-columns:1fr;min-height:unset}.hero-copy{padding:28px}.hero h1{font-size:30px}.hero-art{display:none}.hero p{font-size:13px}.section-head{margin-top:28px}.section-head h2{font-size:21px}.section-label{display:none}.grid{grid-template-columns:1fr;gap:18px}.card-image{aspect-ratio:4/3}.auth-layout{display:block;margin:0}.auth-story{padding:25px}.auth-story h1{font-size:25px;margin:8px 0}.auth-story p{margin:0}.auth-form{padding:25px}.stats{gap:8px}.stat{padding:13px}.stat b{font-size:24px}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.page-heading .btn{font-size:12px;padding:8px 12px;white-space:nowrap}.editor-box{padding:20px}.detail h1{font-size:26px}.footer{margin:0 20px;flex-direction:column;gap:5px}.detail .body{font-size:15px}.empty{padding:25px}.account-name{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:620px){nav{flex:0 0 100%}}
.social-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-top:1px solid var(--line);flex-wrap:wrap}.boon-button{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:8px 10px;background:transparent;border-color:transparent}.boon-button[aria-pressed=true]{background:#f9edcf;border-color:#c5a55f;color:#88621f}.boon-button b{font-weight:500}.boon-emoji{font-size:18px;line-height:1;display:inline-block}.comment-link{font-size:11px;color:var(--muted);padding:8px 0}.comments{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}.comments h2{font-size:21px;font-weight:500}.comment{background:#fcf7ed;padding:16px;border-radius:12px;margin:12px 0}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:10px 0 0}.comment .link-button{margin-left:auto}.comments textarea{min-height:100px;margin-bottom:12px}.comments .hint a{text-decoration:underline}.detail .social-bar{padding-left:0}
.admin-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.admin-row{display:flex;justify-content:space-between;align-items:start;gap:24px;padding:22px;border:1px solid var(--line);background:var(--paper);border-radius:14px;margin:14px 0}.admin-row p{font-size:13px;margin:6px 0}.admin-row small{font-size:11px;overflow-wrap:anywhere}.admin-row>div{min-width:0;flex:1;overflow-wrap:anywhere}.admin-excerpt{white-space:pre-wrap;max-height:120px;overflow:auto}.moderate-form{width:260px;flex-shrink:0}.moderate-form label{margin-top:0}.moderate-form button{margin-top:10px}.admin-row a{text-decoration:underline;font-size:13px}@media(max-width:620px){.admin-row{flex-direction:column}.moderate-form{width:100%}.admin-row>button{width:100%}}
img.avatar{object-fit:cover;display:block}.profile-photo .avatar{width:96px;height:96px;border:3px solid #e5d4ae}.profile-link{font-size:12px}.admin-row img.avatar{margin-bottom:10px}

/* Ivory and champagne gold finish */
.top{box-shadow:0 3px 20px #9b773508}.brand-mark{background:linear-gradient(145deg,#c8a45f,#88621f);box-shadow:inset 0 0 0 1px #e3ca92;color:#fffaf0}.hero{background:linear-gradient(115deg,#ffffff 12%,#fffaf0 60%,#f4e5c5);box-shadow:0 14px 45px #9c7b2f0b}.hero h1{color:#6f511f}.hero:after{content:"";position:absolute;inset:9px;border:1px solid #d8bd803f;border-radius:17px;pointer-events:none}.book{background:linear-gradient(125deg,#c7a66a,#957032);color:#fff5d8}.btn:not(.secondary){background:linear-gradient(125deg,#95702e,#78541c);border-color:#927031;box-shadow:0 4px 12px #95702e14}.card,.stat,.editor-box,.admin-row{box-shadow:0 5px 24px #70551e06}.auth-story{background:linear-gradient(145deg,#fffdf8,#f4e6c6)}.stat b{color:#906925}.profile-photo .avatar{box-shadow:0 0 0 5px #fcf7ec}



.ad-card{border:1px solid var(--gold)}.ad-image{width:100%;max-height:460px;object-fit:contain;background:var(--pale)}.ad-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}#ad-form{margin-bottom:32px}#ad-active{width:auto}

.home-news{margin-top:40px}.ad-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

.quota-panel{background:var(--pale);border:1px solid var(--line);border-radius:16px;padding:18px 22px;margin:0 0 24px}.quota-panel p{margin:7px 0}.quota-panel small{color:var(--muted)}#quota-count{font-weight:600}#quota-clock{font-variant-numeric:tabular-nums}

.text-only-card{background:linear-gradient(140deg,#fff,#faf3e4)}.text-post-label{padding:22px 24px 0}.text-only-card .excerpt{font-size:21px;line-height:1.8;font-weight:500;color:var(--ink);white-space:pre-wrap;-webkit-line-clamp:6;overflow-wrap:anywhere;min-height:110px}.text-only-detail .body{font-size:21px;line-height:1.9;overflow-wrap:anywhere}@media(max-width:600px){.text-only-card .excerpt,.text-only-detail .body{font-size:20px}}

/* Larger cover upload control, including the native file-picker button. */
#cover{font-size:18px;width:100%;max-width:100%}
#cover::file-selector-button{font:inherit;font-size:22px;font-weight:600;padding:14px 24px;min-height:54px;margin:0 12px 8px 0;border:1px solid var(--gold);border-radius:12px;background:var(--pale);color:var(--ink);cursor:pointer}
#cover::file-selector-button:hover{background:#f2e5c9}
#cover:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* Hide the browser's filename status while preserving the accessible input. */
#cover{color:transparent}
#cover::file-selector-button{color:var(--ink)}

.upload{position:relative}.cover-picker{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;font-size:22px!important;font-weight:600;padding:14px 24px;min-height:54px;border:1px solid var(--gold);border-radius:12px;background:var(--pale);color:var(--ink);cursor:pointer;margin:0 0 16px!important}.cover-picker:hover{background:#f2e5c9}.cover-picker span{font-size:28px}#cover.cover-file-input{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.upload:has(#cover:focus-visible) .cover-picker{outline:2px solid var(--accent);outline-offset:4px}

.calendar-box{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;margin:24px 0}.calendar-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.calendar-tools input{width:auto;max-width:190px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-grid button{min-width:0;padding:10px 2px;background:var(--bg);display:flex;flex-direction:column;align-items:center;gap:6px}.calendar-grid button.has-boon{background:var(--pale);border-color:var(--gold)}.calendar-grid button[aria-pressed=true]{background:var(--accent);color:white}.calendar-grid button[aria-current=date]{outline:2px solid var(--gold);outline-offset:1px}.calendar-weekday{text-align:center;color:var(--muted);padding:8px 0}.calendar-grid small{font-size:11px}.calendar-grid b{font-size:18px}@media(max-width:480px){.calendar-box{padding:12px}.calendar-grid{gap:4px}}





.boon-orb{display:inline-block;width:26px;height:26px;flex:0 0 26px;object-fit:contain;vertical-align:middle}

.brand-mark{width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:radial-gradient(ellipse at 30% 20%,#fff 0%,#e0f7ff 23%,#8dd8fa 56%,#36a6df 100%);border:1px solid #62bee9;box-shadow:inset 0 0 0 2px #d6f5ff99,inset -3px -5px 8px #1687c52b,0 2px 5px #3d9bc522;color:#fff;font-size:29px;text-shadow:0 1px 3px #176790,0 0 1px #176790;line-height:1;font-weight:400}

.brand-mark{background:#fff url("/brand-orb.jpg") center center/130% 123% no-repeat;border:0;box-shadow:none;color:#fff;text-shadow:0 1px 3px #39659e,0 0 2px #39659e}

.member-link{display:inline-flex;align-items:center;gap:9px;color:var(--ink)}.member-link:hover strong{text-decoration:underline}.card-author{padding:0 22px 18px;flex-wrap:wrap}.member-heading{display:flex;align-items:center;gap:22px;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px;margin:20px 0}.member-heading>.avatar{width:88px;height:88px;font-size:36px;flex-shrink:0}.member-heading h1{margin:0;font-size:28px;overflow-wrap:anywhere}.member-heading p{margin:6px 0;color:var(--muted)}

.notification-bell{position:relative;display:inline-flex;font-size:23px;padding:5px}.notification-bell span{position:absolute;top:-2px;right:-7px;background:#b54438;color:white;font-size:11px;line-height:18px;min-width:18px;text-align:center;border-radius:20px;padding:0 3px}.notification-row{padding:20px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:var(--paper)}.notification-row.unread{background:var(--pale);border-left:4px solid var(--gold)}.notification-row>a:last-child{display:block;margin-top:8px}.notification-row small{display:block;color:var(--muted);margin-top:5px}

.share-line-button{display:inline-flex;align-items:center;justify-content:center;gap:10px}.line-icon{display:inline-flex;position:relative;align-items:center;justify-content:center;width:34px;height:32px;flex:0 0 34px;border-radius:9px;background:#06c755;color:white;font-family:Arial,sans-serif;font-size:10px;font-weight:800;letter-spacing:-.4px;line-height:1}.line-icon:after{content:"";position:absolute;bottom:4px;left:14px;border-top:4px solid white;border-right:4px solid transparent}

.google-login{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:10px 18px;border:1px solid #747775;border-radius:6px;background:#fff;color:#1f1f1f;font-weight:600;text-decoration:none}.google-login:hover{background:#f5f7fa}.google-letter{font-family:Arial,sans-serif;font-weight:bold;font-size:24px;color:#4285f4}.auth-divider{text-align:center;color:#777;margin:22px 0}

.password-login{margin-top:24px;border:1px solid #e4dccb;border-radius:12px;padding:16px}.password-login summary{cursor:pointer;font-weight:600;color:#766138}.password-login[open] summary{margin-bottom:20px}.google-link-panel{margin-top:24px}.google-login{min-height:54px;font-size:17px}

.visibility.visibility-icon{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;width:26px;height:26px;padding:0;border-radius:50%}

.card-image .visibility-icon{top:auto;left:auto;right:10px;bottom:10px}.text-post-label:has(.visibility-icon){text-align:right}

.hero-word{display:inline-block;white-space:nowrap}.hero-letter{display:inline-block}.hero-button-alive{animation:hero-button-breathe 3.6s ease-in-out 1.5s infinite}.hero-button-alive:hover,.hero-button-alive:focus-visible{animation-play-state:paused}@keyframes hero-button-breathe{0%,100%{transform:translateY(0);box-shadow:0 4px 12px #b48a3c12}50%{transform:translateY(-3px);box-shadow:0 9px 20px #b48a3c30}}@media(prefers-reduced-motion:reduce){.hero-button-alive{animation:none!important}}

.feed-reveal-pending{opacity:0}.feed-reveal-pending:focus-within{opacity:1}@media(prefers-reduced-motion:reduce){.feed-reveal-pending{opacity:1}}

#navigation{flex-wrap:wrap;column-gap:22px;row-gap:0}.mission-tabs{display:flex;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:20px 0}.mission-search{margin:24px 0}.mission-search>div{display:flex;gap:10px}.mission-search input{margin:0;min-width:0;flex:1}.mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.mission-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;overflow-wrap:anywhere}.mission-card h2{font-size:22px}.mission-card .body{white-space:pre-wrap}.mission-status{display:inline-block;color:#88621f;background:#fbf3e3;border-radius:12px;padding:4px 12px;font-size:13px}.mission-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.mission-request{border-top:1px solid var(--line);padding:20px 0}.mission-request .body{font-size:16px;margin:12px 0}.mission-card .private-note p{white-space:pre-wrap}@media(max-width:620px){#navigation{gap:14px;font-size:12px;flex-wrap:nowrap;overflow-x:auto}#navigation a{white-space:nowrap}.mission-grid{grid-template-columns:1fr}.mission-card{padding:20px}.mission-tabs{font-size:13px;gap:14px}.mission-search>div{flex-wrap:wrap}}

.mission-cover{display:block;width:100%;max-height:340px;object-fit:contain;background:#faf7f0;border-radius:12px;margin-bottom:20px}.detail-mission-cover{max-height:620px}

.profile-detail-field{margin:20px 0}.detail-visibility{display:flex!important;align-items:center;gap:8px;font-size:14px!important}.detail-visibility input{width:auto!important;margin:0}.member-details dt{font-weight:600;margin-top:16px}.member-details dd{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Moving edge light preserves the existing button background and text. */
@property --boon-light-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.boon-light-ring{position:relative;isolation:isolate}
.boon-light-ring::after{content:"";position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#efd18b88 275deg,#fff8dc 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 3.8s linear infinite}
@keyframes boon-edge-light{to{--boon-light-angle:360deg}}
@media(prefers-reduced-motion:reduce){.boon-light-ring::after{animation:none;opacity:.55}}

/* Glass controls: tinted surfaces, inset reflections and accessible dark text. */
.btn.boon-light-ring,.boon-button{position:relative;isolation:isolate;-webkit-backdrop-filter:blur(14px) saturate(155%);backdrop-filter:blur(14px) saturate(155%);transition:transform .2s ease,box-shadow .25s ease,background .25s ease;min-height:44px}
.btn.boon-light-ring{color:#50370f;background:linear-gradient(155deg,#fff9e8eb 0%,#e5c47bbd 43%,#c49b4abf 70%,#f7e5b7db 100%);border:1px solid #d4b36ebf;border-radius:18px;box-shadow:inset 0 1px 1px #fff,inset 0 -2px 5px #8b621b29,0 7px 19px #8b621b22;text-shadow:0 1px 0 #ffffff73;font-weight:600}
.btn.boon-light-ring::before,.boon-button::before{content:"";position:absolute;inset:1px 2px auto;height:48%;border-radius:inherit;background:linear-gradient(180deg,#ffffff70,#ffffff00);pointer-events:none;z-index:-1}
.btn.boon-light-ring.hero-button-alive{animation:none}
.boon-button{border-radius:16px;background:linear-gradient(145deg,#ffffffed,#e1f3ffb8 50%,#c4e6f7ad);border:1px solid #a7cfe2b3;color:#214e67;box-shadow:inset 0 1px 1px #fff,inset 0 -1px 3px #82b8d329,0 3px 10px #42738c14}
.boon-button[aria-pressed=true]{color:#123f5b;background:linear-gradient(145deg,#effafff5,#afdfffcc 55%,#8fccebc9);border-color:#74b8d9;box-shadow:inset 0 1px 2px #fff,0 0 12px #65b9e647,0 3px 9px #3b8eb222}
.boon-button[aria-pressed=true] .boon-orb{filter:drop-shadow(0 0 4px #53b5ee88)}
@media(hover:hover){.btn.boon-light-ring:hover,.boon-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:inset 0 1px 2px #fff,0 8px 20px #688b9c30}}
.btn.boon-light-ring:active,.boon-button:active:not(:disabled){transform:scale(.97)}
.btn.boon-light-ring:focus-visible,.boon-button:focus-visible{outline:3px solid #287ca8;outline-offset:4px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.btn.boon-light-ring{background:linear-gradient(145deg,#f5e8c8,#ddbd79)}.boon-button{background:#e9f5fc}.boon-button[aria-pressed=true]{background:#c0e5f8}}
@media(prefers-reduced-motion:reduce){.btn.boon-light-ring,.boon-button{transition:none;transform:none!important}}

/* Soft layered elevation for post, announcement and mission cards. */
.card,.mission-card{box-shadow:0 1px 3px rgba(35,40,48,.055),0 7px 20px rgba(35,40,48,.065),0 20px 40px rgba(35,40,48,.025)}
@media(hover:hover){.card:hover,.mission-card:hover{box-shadow:0 2px 5px rgba(35,40,48,.06),0 10px 26px rgba(35,40,48,.085),0 24px 44px rgba(35,40,48,.03)}}

.upload.cover-dragging{outline:3px solid #b5924e;background:#fff7df}#cover-status{font-size:13px;color:var(--muted)}

/* Consistent glass design across registration, forms and action controls. */
:is(button,.btn,.google-login,.cover-picker):not(.boon-button){position:relative;isolation:isolate;min-height:44px;border-radius:18px;border:1px solid #d4b36ebf;color:#50370f;background:linear-gradient(155deg,#fff9e8eb 0%,#e5c47bbd 43%,#c49b4abf 70%,#f7e5b7db 100%);box-shadow:inset 0 1px 1px #fff,inset 0 -2px 5px #8b621b29,0 7px 19px #8b621b22;text-shadow:0 1px 0 #ffffff73;font-weight:600;-webkit-backdrop-filter:blur(14px) saturate(155%);backdrop-filter:blur(14px) saturate(155%);transition:transform .2s ease,box-shadow .25s ease}
:is(button,.btn,.google-login,.cover-picker):not(.boon-button)::before{content:"";position:absolute;inset:1px 2px auto;height:48%;border-radius:inherit;background:linear-gradient(180deg,#ffffff70,#ffffff00);pointer-events:none;z-index:-1}
:is(button,.btn,.google-login,.cover-picker):not(.boon-button):focus-visible{outline:3px solid #287ca8;outline-offset:4px}
:is(button,.btn,.google-login,.cover-picker):not(.boon-button):active:not(:disabled){transform:scale(.97)}
@media(hover:hover){:is(button,.btn,.google-login,.cover-picker):not(.boon-button):hover:not(:disabled){filter:none;box-shadow:inset 0 1px 2px #fff,0 8px 20px #8b621b30}}
.btn.secondary,.calendar-grid button:not([aria-pressed=true]){background:linear-gradient(155deg,#fffdf7f5,#f0e5cdd9);color:#66512a}
button.danger{color:#8b302a;border-color:#d6a29b;background:linear-gradient(155deg,#fff8f5f5,#f0c9c0db);box-shadow:inset 0 1px 1px white,0 5px 15px #8b302a16}
.calendar-grid button[aria-pressed=true]{color:#50370f;border-color:#93702e;box-shadow:inset 0 1px 2px white,0 0 0 2px #b7914855}
.calendar-grid button.has-boon:not([aria-pressed=true]){background:linear-gradient(145deg,#fff5d9,#e9d39e)}
button:disabled{opacity:.55;transform:none!important;box-shadow:inset 0 1px 1px #fff}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:is(button,.btn,.google-login,.cover-picker):not(.boon-button):not(.danger){background:linear-gradient(145deg,#f5e8c8,#ddbd79)}}
@media(prefers-reduced-motion:reduce){:is(button,.btn,.google-login,.cover-picker):not(.boon-button){transition:none;transform:none!important}}

/* Keep sign-out quiet beside the profile navigation. */
#logout,#logout:hover,#logout:active{background:transparent;border:1px solid transparent;border-radius:10px;box-shadow:none;color:var(--muted);text-shadow:none;font-weight:400;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#logout::before,#logout::after{content:none}
#logout:hover{color:var(--ink)}

/* Square feed covers and quiet administrator moderation action. */
.card-image{aspect-ratio:1/1}
button[data-hide-post],button[data-hide-post]:hover,button[data-hide-post]:active{background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--muted);text-shadow:none;font-weight:400;font-size:12px;padding:5px;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
button[data-hide-post]::before,button[data-hide-post]::after{content:none}
button[data-hide-post]:hover{color:var(--ink)}

/* Keep the cover, caption and author together without excess blank space. */
.card .card-content{padding:13px 18px 10px}
.card .card-content .excerpt{margin:0}
.card .card-author{padding:0 18px 13px}
.card.text-only-card .excerpt{min-height:0}
.card .social-bar{padding:12px 18px}

/* Override shared glass selectors for the low-emphasis moderation link. */
#main button[data-hide-post],#main button[data-hide-post]:hover,#main button[data-hide-post]:active{display:inline-block;min-height:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--muted);text-shadow:none;font-size:12px;font-weight:400;line-height:1.5;padding:5px 8px;margin:0 0 4px;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#main button[data-hide-post]::before,#main button[data-hide-post]::after{content:none}

.quick-comments{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 20px}#comment-form .quick-comments button{font-size:13px;padding:8px 12px;min-height:40px;white-space:normal;text-align:left;max-width:100%}

/* Silver glass for the three preset comments. */
#comment-form .quick-comments button{color:#39434f;border-color:#b8c1cbbb;background:linear-gradient(155deg,#fffffff2 0%,#e5e9efdb 43%,#bdc5cfcc 70%,#f1f4f8e8 100%);box-shadow:inset 0 1px 1px #fff,inset 0 -2px 5px #59667520,0 5px 14px #5361701c;text-shadow:0 1px 0 #ffffff99}
#comment-form .quick-comments button:hover:not(:disabled){box-shadow:inset 0 1px 2px #fff,0 7px 18px #53617028}

/* Quiet search action. */
#mission-search button,#mission-search button:hover,#mission-search button:active{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:none;text-shadow:none;font-weight:400;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#mission-search button::before,#mission-search button::after{content:none}

/* Gentle golden shimmer on the new-journal heading. */
.boon-moment-title{color:#806023;animation:boon-moment-float 5s ease-in-out infinite}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
.boon-moment-title{background:linear-gradient(110deg,#74511e 0%,#98702a 32%,#bc9545 44%,#e1bc69 50%,#aa8134 56%,#74511e 70%,#98702a 100%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:boon-moment-shimmer 6s ease-in-out infinite,boon-moment-float 5s ease-in-out infinite}
}
@keyframes boon-moment-shimmer{0%,100%{background-position:100% 50%}50%{background-position:0% 50%}}
@keyframes boon-moment-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.boon-moment-title{animation:none;transform:none;background:none;color:#806023;-webkit-text-fill-color:currentColor}}
@media(forced-colors:active){.boon-moment-title{background:none;color:CanvasText;-webkit-text-fill-color:currentColor;animation:none}}
.install-invite{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fffaf0}.install-invite p{margin:5px 0 0;color:var(--muted);font-size:13px}#install-help{flex-basis:100%;font-size:14px;line-height:1.8;color:var(--ink)}

#posts > .install-invite{grid-column:1 / -1;margin:4px 0}

.story-presets{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}#editor .story-presets button{min-height:34px;padding:6px 10px;font-size:12px;line-height:1.5;font-weight:400;color:#685a42;border:1px solid #d9d4ca;border-radius:20px;background:linear-gradient(145deg,#ffffffb3,#f8f6f080);box-shadow:inset 0 1px 0 #fff;text-shadow:none}#editor .story-presets button:hover{background:#fff9eb;box-shadow:inset 0 1px 0 #fff;border-color:#bba273}#editor .story-presets button::before{content:none}

#feed-order{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}#feed-order button{min-height:34px;padding:6px 11px;font-size:12px;font-weight:400;border-radius:18px;color:#746852;border:1px solid #ddd5c5;background:#ffffff80;box-shadow:none;text-shadow:none}#feed-order button::before{content:none}#feed-order button[aria-pressed=true]{background:#f6eddbb3;border-color:#b99b60;color:#624819;font-weight:600}#feed-order button:hover{box-shadow:none;background:#fff8e9}@media(max-width:620px){.section-head:has(#feed-order){flex-wrap:wrap;gap:12px}#feed-order{flex-basis:100%}}

#posts > .feed-news{grid-column:1 / -1;width:100%;min-width:0;margin:8px 0}

.line-direct-share{gap:10px;max-width:100%;white-space:normal}.line-direct-share svg{flex:0 0 24px}

/* Sharing controls retain distinct silver and light-green glass surfaces. */
#main .share-line-button{color:#414b56;border-color:#bac4cdbb;background:linear-gradient(155deg,#fffffff2,#e6ebefcf 45%,#c3ccd4b8 75%,#f4f7fae6);box-shadow:inset 0 1px 1px #fff,0 4px 12px #52617018;text-shadow:none}
.copy-symbol{flex:0 0 22px}
#main .line-direct-share{color:#245d3b;border-color:#a4cdb1c7;background:linear-gradient(155deg,#f5fff8f0,#d9f3e1cf 45%,#b6dfc4bd 75%,#edfff2e6);box-shadow:inset 0 1px 1px #fff,0 4px 12px #367b4c18;text-shadow:none}
#main .quiet-post-edit,#main #delete-post,#main .quiet-post-edit:hover,#main #delete-post:hover{min-height:32px;padding:5px 9px;font-size:12px;font-weight:400;line-height:1.5;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;text-shadow:none;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#main #delete-post{color:#94564c}
#main .quiet-post-edit::before,#main #delete-post::before{content:none}

#main .facebook-direct-share{gap:10px;max-width:100%;white-space:normal;color:#24558c;border-color:#a8c5e5c7;background:linear-gradient(155deg,#f5fafff0,#dcecfbcf 45%,#b9d5f0bd 75%,#eef6ffe6);box-shadow:inset 0 1px 1px #fff,0 4px 12px #386fa018;text-shadow:none}#main .facebook-direct-share svg{flex:0 0 24px;color:#377fc1}

/* Quiet comment deletion control. */
#main button[data-delete-comment],#main button[data-delete-comment]:hover,#main button[data-delete-comment]:active{min-height:0;padding:5px 7px;font-size:12px;font-weight:400;line-height:1.5;background:transparent;border:0;border-radius:6px;color:var(--muted);box-shadow:none;text-shadow:none;filter:none;transform:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#main button[data-delete-comment]::before,#main button[data-delete-comment]::after{content:none}

/* Center the daily Dhamma feed heading. */
.feed-dhamma > h2 { text-align: center; }

/* Quiet, aligned administration menu. */
#main .admin-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0 0 20px; }
#main .admin-menu > :is(a,button) { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; min-height:48px; margin:0; padding:10px 12px; border:1px solid rgba(135,182,205,.32); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(223,241,250,.58)); color:#527489; font-size:14px; font-weight:500; line-height:1.5; text-align:center; text-decoration:none; box-shadow:inset 0 1px 0 rgba(255,255,255,.8); transform:none; animation:none; }
#main .admin-menu > :is(a,button)::before,#main .admin-menu > :is(a,button)::after { display:none; }
#main .admin-menu > :is(a,button):hover,#main .admin-menu > button[aria-pressed="true"] { background:rgba(215,236,248,.75); border-color:rgba(111,166,197,.55); color:#365e76; box-shadow:none; transform:none; }
#main .admin-menu > :is(a,button):focus-visible { outline:2px solid #79afcc; outline-offset:3px; }
@media(min-width:760px){ #main .admin-menu { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Understated member moderation controls. */
#main .admin-row button:is([data-suspend-user],[data-role-id]) {
  width:auto; min-height:34px; padding:6px 12px; margin:6px 0;
  border:1px solid #dce3e7; border-radius:9px;
  background:rgba(247,249,250,.8); color:#65727a;
  font-size:13px; font-weight:400; line-height:1.5;
  box-shadow:none; backdrop-filter:none; transform:none; animation:none;
}
#main .admin-row button:is([data-suspend-user],[data-role-id])::before,
#main .admin-row button:is([data-suspend-user],[data-role-id])::after { display:none; }
#main .admin-row button:is([data-suspend-user],[data-role-id]):hover {
  background:#edf2f5; border-color:#bac9d1; color:#435762; box-shadow:none; transform:none;
}
#main .admin-row button:is([data-suspend-user],[data-role-id]):focus-visible { outline:2px solid #79afcc; outline-offset:3px; }
#main .admin-row .visibility { background:#f1f4f5; color:#6b777e; border:1px solid #e3e8eb; font-size:12px; padding:4px 9px; box-shadow:none; margin-right:8px; }

/* Compact social actions with familiar reaction and comment symbols. */
#main .social-bar { gap:8px; }
#main .social-bar .boon-button,#main .social-bar .comment-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:7px 5px; border:0; border-radius:8px; background:transparent; box-shadow:none; color:#6c7379; font-size:13px; font-weight:500; line-height:1.4; text-decoration:none; transform:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
#main .social-bar .boon-button::before,#main .social-bar .boon-button::after { display:none; }
#main .social-bar .boon-button[aria-pressed="true"] { color:#1877d2; background:transparent; box-shadow:none; }
#main .social-bar .boon-button:hover:not(:disabled),#main .social-bar .comment-link:hover { background:#edf4f8; transform:none; box-shadow:none; }
#main .boon-like-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:28px; height:28px; border-radius:50%; background:linear-gradient(145deg,#52baff,#1877e2); color:white; }
#main .boon-like-icon svg { width:19px; height:19px; }
#main .comment-link svg { width:25px; height:25px; flex-shrink:0; }
#main .social-bar b { font-size:12px; font-weight:400; }
@media(max-width:380px){ #main .card .social-bar { padding:9px 10px; gap:3px; } #main .social-bar .boon-button,#main .social-bar .comment-link { font-size:11px; gap:4px; } }

/* Reaction count above the action, in a clear glass circle. */
#main .social-bar { align-items:flex-end; }
#main .boon-action-group { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
#main .boon-reaction-summary { display:flex; align-items:center; gap:8px; padding:0 5px; color:#697078; }
#main .boon-reaction-summary b { font-size:14px; font-weight:400; }
#main .boon-like-icon { background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(239,243,245,.25)); color:inherit; border:1px solid rgba(190,200,208,.5); box-shadow:inset 0 1px 2px #fff,0 1px 3px #0000000a; font-size:17px; }

/* LINE share alongside comment and merit actions. */
#main .social-bar .feed-line-share { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:44px; padding:7px 5px; border-radius:8px; color:#6c7379; font-size:13px; font-weight:500; line-height:1.4; text-decoration:none; }
#main .feed-line-share svg { width:25px; height:25px; flex-shrink:0; }
#main .social-bar .feed-line-share:hover { background:#edf4f8; }
#main .social-bar .feed-line-share:focus-visible { outline:2px solid #79afcc; outline-offset:3px; }
@media(max-width:620px){
 #main .card .social-bar { padding:9px 10px; gap:3px; flex-wrap:nowrap; }
 #main .social-bar .boon-button,#main .social-bar .comment-link,#main .social-bar .feed-line-share { font-size:11px; gap:4px; padding:7px 3px; white-space:nowrap; }
 #main .social-bar .boon-orb { width:22px; height:22px; flex-basis:22px; }
 #main .comment-link svg,#main .feed-line-share svg { width:21px; height:21px; }
}

/* Keep all three feed actions inside the card at every width. */
#main .card .social-bar { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1.25fr) minmax(0,.65fr); align-items:end; gap:4px; padding:12px 12px; }
#main .card .boon-action-group { min-width:0; width:100%; }
#main .card .social-bar .boon-button,#main .card .social-bar .comment-link,#main .card .social-bar .feed-line-share { box-sizing:border-box; min-width:0; width:100%; padding:7px 2px; gap:5px; font-size:12px; white-space:normal; }
#main .card .social-bar .boon-button span,#main .card .social-bar .comment-link span,#main .card .social-bar .feed-line-share span { min-width:0; overflow-wrap:anywhere; }
#main .card .social-bar .boon-orb { width:22px; height:22px; flex-basis:22px; }
#main .card .social-bar .comment-link svg,#main .card .social-bar .feed-line-share svg { width:22px; height:22px; }
#main .card .boon-reaction-summary { margin-bottom:3px; }
@media(max-width:400px){
 #main .card .social-bar { padding:10px 8px; gap:2px; }
 #main .card .social-bar .boon-button,#main .card .social-bar .comment-link,#main .card .social-bar .feed-line-share { font-size:11px; gap:3px; }
 #main .card .social-bar .boon-orb { width:20px; height:20px; flex-basis:20px; }
 #main .card .social-bar .comment-link svg,#main .card .social-bar .feed-line-share svg { width:20px; height:20px; }
}

/* Blue notification bell: a gentle wiggle while unread notifications exist. */
#account .notification-bell { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; padding:8px; box-sizing:border-box; flex-shrink:0; border-radius:50%; background:#e0efff; color:#1672ef; text-decoration:none; }
.notification-bell-icon { width:26px; height:26px; display:block; transform-origin:50% 15%; }
.notification-bell.has-unread .notification-bell-icon { animation:notification-wiggle 4s ease-in-out infinite; }
#account .notification-bell:focus-visible { outline:2px solid #1672ef; outline-offset:4px; }
@keyframes notification-wiggle { 0%,28%,100% { transform:rotate(0); } 4%,12% { transform:rotate(14deg); } 8%,16% { transform:rotate(-12deg); } 20% { transform:rotate(7deg); } 24% { transform:rotate(-4deg); } }
@media(prefers-reduced-motion:reduce){ .notification-bell.has-unread .notification-bell-icon { animation:none; } }

/* User supplied bell artwork, preserving unread motion. */
#account .notification-bell { background:transparent; padding:2px; }
#account .notification-bell-icon { width:38px; height:38px; object-fit:contain; }

/* Keep post visibility on the image, away from the author profile. */
.detail-media{position:relative}
.detail-media>.visibility.visibility-icon{position:absolute;right:10px;bottom:10px;width:22px;height:22px;font-size:12px;background:#fffdf2ed;box-shadow:0 1px 4px #0002}

/* Text-only feed posts: small visibility badge at the lower right of the text. */
.text-only-card>a[data-nav]{display:flex;flex-direction:column}
.text-only-card>a[data-nav]>.text-post-label:has(.visibility-icon){order:2;padding:0 12px 10px;display:flex;justify-content:flex-end;line-height:1}
.text-only-card .text-post-label>.visibility-icon{width:22px;height:22px;font-size:12px}

/* Overlay text-post visibility on the trailing ellipsis instead of a separate row. */
.text-only-card>a[data-nav]{position:relative}
.text-only-card>a[data-nav]>.text-post-label:has(.visibility-icon){position:absolute;right:21px;bottom:36px;padding:0;z-index:1;background:#fbf7ed;border-radius:50%;line-height:1}
.text-only-card .text-post-label>.visibility-icon{width:22px;height:22px;font-size:12px;background:#fbf7ed}

/* Center announcement category badges closer to the cover. */
#main .ad-card .card-content { padding-top:7px; }
#main .ad-card .card-content > .visibility { display:table; width:fit-content; max-width:100%; margin:0 auto 6px; text-align:center; }

#main .section-head:has(#ranking-preview){flex-wrap:wrap}
#ranking-preview{flex:0 0 100%;order:1}#main .section-head #feed-order{order:2;margin-left:auto}
.ranking-panel{padding:14px;border:1px solid #e1e8ec;border-radius:16px;background:#ffffffa8;margin:8px 0 14px}
.ranking-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;margin-bottom:10px}.ranking-heading a{color:#587c92;font-size:12px}
.ranking-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ranking-member{display:flex;align-items:center;gap:8px;padding:10px 4px;min-width:0;border-bottom:1px solid #edf0f2;font-size:13px}.ranking-name{flex:1;min-width:0;overflow-wrap:anywhere}.ranking-number{color:#987a3b;min-width:20px;text-align:center}.ranking-count{white-space:nowrap;color:#627a88;font-size:12px}.ranking-panel small{display:block;color:#857e73;font-size:11px;margin-top:8px}
@media(max-width:700px){.ranking-top{grid-template-columns:1fr;gap:0}}

.game-invite{grid-column:1/-1;display:flex;gap:18px;padding:24px;background:linear-gradient(135deg,#edf7ff,#fbf6e9);border:1px solid #d7e5ed;border-radius:20px;margin:12px 0}.game-invite>span{font-size:38px}.game-invite p{font-size:13px;color:#76808a}.orb-game{max-width:620px;margin:auto}.orb-game h1{font-size:26px}.orb-game>p{font-size:13px}.game-hud{display:flex;justify-content:space-between;background:#203b37;color:#fff;padding:12px 16px;border-radius:14px 14px 0 0}#orb-canvas{display:block;width:100%;aspect-ratio:1;image-rendering:pixelated;border:6px solid #203b37;box-sizing:border-box}.game-controls{display:grid;grid-template-columns:repeat(3,56px);justify-content:center;gap:7px;margin:18px 0;touch-action:none;user-select:none}.game-controls button:first-child{grid-column:2}.game-controls button:nth-child(2){grid-column:1}#main .game-controls button{background:#e7f2f9;color:#39586e;border:1px solid #b9ccd9;border-radius:12px;box-shadow:0 3px 0 #a9bfcc;font-size:24px;min-height:48px;padding:3px}#game-message{min-height:2em}#game-stats{font-size:13px;padding:12px 0;color:#687f85}

#main #game-change-map { margin:0 0 12px; padding:7px 13px; min-height:38px; font-size:13px; border:1px solid #cbdde7; border-radius:10px; background:#edf5fa; color:#52758a; box-shadow:none; }

/* Tap the date to reveal the post time, without a prominent button. */
#main .post-date { display:inline-block; font-size:12px; color:var(--muted); }
#main .post-date summary { cursor:pointer; list-style:none; padding:5px 0; border-radius:4px; }
#main .post-date summary::-webkit-details-marker { display:none; }
#main .post-date summary:hover { color:#527b91; }
#main .post-date summary:focus-visible { outline:2px solid #79afcc; outline-offset:3px; }
#main .post-date time { display:block; font-size:11px; color:#627b88; padding-bottom:4px; }

.feedback-box{max-width:480px;margin:36px auto 18px;padding:0 20px;color:#74808a;font-size:12px}.feedback-box label{font-size:13px;margin-bottom:8px}.feedback-input{display:flex;align-items:center;gap:8px}.feedback-input textarea{min-height:64px;resize:vertical;font-size:13px;padding:10px;border:1px solid #dce5eb;background:#ffffffb8}.feedback-box small{font-size:11px}#site-feedback button{padding:9px;min-width:42px;min-height:42px;border:1px solid #dce7ee;background:#eef6fb;color:#65849a;border-radius:12px;box-shadow:none}#site-feedback button::before{display:none}.feedback-message{white-space:pre-wrap;overflow-wrap:anywhere}

/* A compact entry to the existing post editor, with a direct photo picker. */
.quick-composer{display:flex;align-items:center;gap:12px;padding:15px 18px;margin:0 0 22px;border:1px solid #e4e8eb;border-radius:18px;background:#fff;box-shadow:0 3px 14px #243b4b08}.quick-composer .avatar{width:44px;height:44px}.quick-composer-prompt{flex:1;min-width:0;background:#f6f7f8;border-radius:24px;padding:11px 16px;color:#787b7d;font-size:14px}.quick-composer-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex-shrink:0;margin:0;padding:5px;min-width:44px;min-height:44px;color:#668493;cursor:pointer}.quick-photo-label{font-size:10px}.quick-composer-photo:hover{color:#368ab6}.quick-composer:focus-within{border-color:#a6cadc}@media(max-width:400px){.quick-composer{padding:12px;gap:8px}.quick-composer-prompt{font-size:12px;padding:10px}.quick-composer .avatar{width:38px;height:38px}}

/* Keep the native photo input accessible without occupying composer space. */
.quick-composer { position:relative; }
#quick-cover.cover-file-input { position:absolute; width:1px; height:1px; padding:0; margin:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.quick-composer:has(#quick-cover:focus-visible) .quick-composer-photo { outline:2px solid #79afcc; outline-offset:3px; border-radius:8px; }
.quick-composer > a:first-child { flex-shrink:0; }

/* A focused single-page composer for the home feed shortcut. */
.compact-post{max-width:680px;margin:auto}.compact-post .page-heading{position:sticky;top:0;z-index:5;background:var(--bg);padding:12px 0;margin:0;align-items:center}.compact-post .page-heading h1{font-size:22px;margin:0}.compact-post .editor-box{padding:18px;border-radius:18px}.compact-author{display:flex;align-items:center;gap:10px;margin-bottom:12px}.compact-post #body{min-height:100px;border:0;background:transparent;margin:0 0 12px;padding:6px;font-size:16px}.compact-post label[for="body"],.compact-post label[for="cover"]:not(.cover-picker),.compact-post .story-presets,.compact-post .save-note,.compact-post .actions{display:none}.compact-post .upload{padding:10px;border:0;background:transparent}.compact-post .upload>.hint{display:none}.compact-post .cover-picker{font-size:13px!important;padding:7px 12px;min-height:38px;margin:0!important}.compact-post #cover-preview{max-width:180px;max-height:180px;margin:8px auto;display:block}.compact-post .privacy-options{margin:14px 0 0}.compact-post .privacy-options small{display:none}.compact-post .choice{padding:10px;font-size:13px}.compact-privacy-note{font-size:11px;color:#77818a}.quick-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.quick-photo-item{position:relative;aspect-ratio:1;overflow:hidden;border-radius:9px}.quick-photo-item img{width:100%;height:100%;object-fit:cover}#main .quick-photo-item button{position:absolute;right:4px;top:4px;padding:0;min-height:28px;width:28px;border-radius:50%;background:#ffffffde;color:#555;font-size:20px;box-shadow:none;border:0}#main #quick-post-submit{background:#e3f1fc;color:#3c7397;border:1px solid #bad6e9;box-shadow:none;padding:8px 20px;min-height:40px;font-size:14px}.compact-post #cover-status{font-size:11px}

#posts > #ranking-preview { grid-column:1 / -1; width:100%; min-width:0; order:0; margin:8px 0; }

/* Soft motion on the home composer prompt. */
.quick-composer-prompt{position:relative;overflow:hidden;isolation:isolate}
.quick-composer-prompt span{position:relative;z-index:1;display:inline-block;animation:composer-text-float 5s ease-in-out infinite}
.quick-composer-prompt::after{content:"";position:absolute;inset:-30% auto -30% -65%;width:45%;pointer-events:none;background:linear-gradient(105deg,transparent,rgba(255,255,255,.85),rgba(215,235,248,.3),transparent);transform:skewX(-15deg);animation:composer-light-pass 7s ease-in-out infinite}
@keyframes composer-text-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes composer-light-pass{0%,20%{left:-65%;opacity:0}30%{opacity:.8}65%{left:125%;opacity:0}100%{left:125%;opacity:0}}
@media(prefers-reduced-motion:reduce){.quick-composer-prompt span,.quick-composer-prompt::after{animation:none}.quick-composer-prompt::after{display:none}}

.quick-composer-prompt .composer-letter-text { animation:none; }
.quick-composer-prompt .composer-letter { display:inline-block; animation:none; }

/* Gentle photo-icon wiggle without moving its tap target. */
.quick-composer-photo svg { transform-origin:50% 65%; animation:composer-photo-wiggle 5s ease-in-out infinite; }
.quick-composer-photo{position:relative;isolation:isolate}
.quick-composer-photo svg{filter:drop-shadow(0 0 5px #a7e5ff);animation:composer-photo-wiggle 5s ease-in-out infinite,composer-photo-glow 3.6s ease-in-out infinite}
.quick-composer-photo::before{content:"✦";position:absolute;right:0;top:-3px;font-size:17px;line-height:1;color:#fff9da;text-shadow:0 0 3px #d4ab49,0 0 8px #8cdcff;pointer-events:none;animation:composer-photo-sparkle 3.6s ease-in-out infinite}
.quick-composer-photo::after{content:"➜";position:absolute;right:calc(100% + 1px);top:3px;font-size:23px;line-height:1;color:#58a6cf;text-shadow:0 0 6px #c7efff;background:#ffffffed;border-radius:50%;pointer-events:none;opacity:0;animation:composer-photo-pointer 10s ease-in-out infinite}
@keyframes composer-photo-glow{0%,100%{filter:drop-shadow(0 0 2px #a7e5ff66)}50%{filter:drop-shadow(0 0 7px #7ed5ff)}}
@keyframes composer-photo-sparkle{0%,65%,100%{opacity:0;transform:scale(.35) rotate(-20deg)}20%,42%{opacity:1;transform:scale(1.1) rotate(12deg)}30%{opacity:.55;transform:scale(.75)}}
@keyframes composer-photo-pointer{0%,55%,90%,100%{opacity:0;transform:translateX(-8px)}62%,76%,84%{opacity:1;transform:translateX(0)}69%,80%{opacity:.8;transform:translateX(-5px)}}
html.boon-loading-paused .quick-composer-photo svg,html.boon-loading-paused .quick-composer-photo::before,html.boon-loading-paused .quick-composer-photo::after{animation-play-state:paused}
@keyframes composer-photo-wiggle { 0%,30%,100% { transform:rotate(0) translateY(0); } 6% { transform:rotate(-7deg) translateY(-1px); } 12% { transform:rotate(7deg) translateY(-2px); } 18% { transform:rotate(-5deg) translateY(-1px); } 24% { transform:rotate(3deg) translateY(0); } }
@media(prefers-reduced-motion:reduce) { .quick-composer-photo svg { animation:none; transform:none; } }
@media(prefers-reduced-motion:reduce){.quick-composer-photo::before,.quick-composer-photo::after{display:none;animation:none}}

.profile-logout { margin-top:28px; padding-top:16px; border-top:1px solid var(--line); text-align:center; }
.profile-logout #logout { font-size:13px; padding:8px 16px; }

.journal-owner-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-width:0}.journal-owner-heading .avatar{width:46px;height:46px;flex-shrink:0}.journal-owner-text{min-width:0}.journal-owner-text .eyebrow{font-size:10px;letter-spacing:2px;margin:0 0 3px}.journal-owner-text strong{display:block;font-size:15px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}
@media(max-width:620px){.journal-owner-heading{gap:9px}.journal-owner-text .eyebrow{font-size:9px;letter-spacing:1.3px}.journal-owner-text strong{font-size:14px}}

/* Calendar and journal owner's introduction share a balanced row. */
#main .journal-page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:center}
.journal-heading-content{display:contents}
.journal-page-heading .journal-owner-heading{grid-column:1;grid-row:1;margin-bottom:0}
.journal-page-heading>.btn{grid-column:2;grid-row:1}
.journal-page-heading h1{grid-column:1 / -1;grid-row:2}
.journal-calendar-row{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}
#main .journal-calendar-row p{margin:0;min-width:0;flex:1;text-align:right;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.journal-calendar-row>.btn{flex-shrink:0}
@media(max-width:620px){#main .journal-calendar-row{gap:12px}#main .journal-calendar-row p{font-size:12px}#main .journal-calendar-row>.btn{padding:9px 12px;font-size:12px}}

#main .journal-calendar-row p { flex:0 1 auto; margin-left:auto; text-align:left; }

/* Subtle boundaries between writing, selected photos and the collage preview. */
#main .compact-post #body { border:1px solid #e5e1d8; border-radius:12px; background:#fdfcf9; padding:12px 14px; margin:4px 0 18px; }
#main .compact-post #body:focus { border-color:#b5ccd8; outline:2px solid #dcebf366; outline-offset:1px; }
.compact-post .quick-photo-list:not(:empty) { padding:0 0 16px; margin-bottom:14px; border-bottom:1px solid #e9e3d8; }
.compact-post #cover-preview { border:1px solid #e8e2d7; border-radius:10px; padding:3px; background:#fff; }

#main [data-delete-user]{background:#fff;border:1px solid #e1d7d7;color:#8a5353;box-shadow:none;font-size:.85rem;font-weight:400;padding:8px 14px;border-radius:10px;justify-self:start}

.profile-shortcuts{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}.profile-shortcuts .back{margin:0}.profile-shortcuts .profile-admin-link{color:#648393;font-size:.9rem;text-decoration:none}.profile-shortcuts .profile-admin-link:hover{text-decoration:underline}

#main .admin-member-details{margin:0;padding:0;border:0;background:transparent;box-shadow:none}#main .admin-member-details>summary{cursor:pointer;width:fit-content;color:inherit;padding:4px 0;background:transparent}#main .admin-member-actions{padding:6px 0 10px}#main .admin-member-actions [data-delete-user]{display:inline-flex;width:auto;min-height:32px;padding:4px 9px;font-size:.75rem;border-radius:6px;background:transparent;box-shadow:none}#main .admin-member-details>summary:focus-visible{outline:2px solid #9abaca;outline-offset:4px;border-radius:4px}

.coin-wallet{margin-top:24px;padding:22px;border:1px solid #e5dfd2;border-radius:20px;background:#fffdf7}.coin-balance{font-size:2rem;color:#937331;margin:12px 0}.coin-balance small{font-size:1rem}.coin-history{padding:0;list-style:none}.coin-history li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #eee9df}.coin-history small{display:block;font-size:.75rem;color:#85817a}.coin-history strong{white-space:nowrap}

#main .profile-coin-summary{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:0 0 24px;border:1px solid #f0dc97;border-radius:16px;background:#fffaf0;color:#826017;text-decoration:none;width:fit-content;max-width:100%;box-sizing:border-box} .yellow-coin-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;box-sizing:border-box;border:3px solid #edb62b;border-radius:50%;background:linear-gradient(135deg,#fff3a3,#ffd348 60%,#f4b823);color:#9e6909;font-size:25px;font-weight:700;box-shadow:inset 0 0 0 2px #fff2a2,0 2px 4px #cba52d22}.profile-coin-summary strong,.profile-coin-summary small,.profile-coin-label{display:block}.profile-coin-summary strong{font-size:1.25rem}.profile-coin-label{font-size:.85rem}.profile-coin-summary small{font-size:.75rem;color:#8d8061}#main .profile-coin-summary:focus-visible{outline:2px solid #b38a31;outline-offset:3px}#coin-wallet{scroll-margin-top:24px}

#account .account-avatar-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;line-height:0;text-decoration:none}#account .account-avatar-link:focus-visible{outline:2px solid #b38a31;outline-offset:4px}

.daily-coin-invite{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:22px;border:1px solid #ecd584;border-radius:20px;background:linear-gradient(120deg,#fffdf5,#fff3c9);margin:12px 0}.daily-coin-invite p{font-size:.9rem;margin:6px 0}.daily-coin-invite small{color:#8d8061}.daily-coin-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.daily-coin-actions a{font-size:.8rem;color:#806421}.daily-coin-status:empty{display:none}@media(max-width:600px){.daily-coin-invite{flex-wrap:wrap;padding:18px;gap:12px}.daily-coin-invite>div:not(.daily-coin-actions){flex:1;min-width:160px}.daily-coin-actions{width:100%;align-items:center}.daily-coin-actions button{width:100%}}

#coin-history-heading{scroll-margin-top:24px}#coin-history-heading:focus{outline:none}

/* Profile shortcuts must not inherit the mobile main-navigation flex basis. */
.profile-page{width:100%;min-width:0}.profile-page>.page-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.profile-page .profile-shortcuts{flex:0 1 auto;width:100%;max-width:100%;min-width:0}.profile-page .profile-shortcuts a{max-width:100%;overflow-wrap:anywhere}.profile-page .editor-box,.profile-page .coin-wallet{width:100%;min-width:0}.profile-page input,.profile-page textarea,.profile-page select{min-width:0;max-width:100%}@media(max-width:380px){.profile-page>.page-heading{grid-template-columns:minmax(0,1fr)}.profile-page .profile-shortcuts{gap:6px}}

#account .account-avatar-link{position:relative;margin-bottom:9px}#account .header-coin-badge{position:absolute;right:-8px;bottom:-8px;display:flex;align-items:center;gap:3px;padding:2px 5px 2px 2px;min-height:19px;border:1px solid #ebcf71;border-radius:12px;background:#fff7d7;color:#795609;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:0 1px 3px #75551818}#account .header-coin-badge[hidden]{display:none}#account .header-coin-icon{display:grid;place-items:center;width:14px;height:14px;flex:0 0 14px;border-radius:50%;border:1px solid #dcaa24;background:linear-gradient(135deg,#fff3a1,#ffce38);color:#92620b;font-size:10px;line-height:1}

#account .header-coin-badge{right:-7px;bottom:-8px;display:grid;place-items:center;min-width:25px;min-height:25px;padding:3px 5px;border:2px solid #dfb136;border-radius:50%;background:linear-gradient(135deg,#fff3a3,#ffd348 65%,#f4b823);color:#80570c;font-size:12px;line-height:1.2;box-shadow:inset 0 0 0 1px #fff2a2,0 1px 3px #75551818}#account .header-coin-value{display:block;text-align:center}

.profile-identity-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-width:0}.profile-identity-row .profile-photo{flex:0 0 auto}#main .profile-identity-row .profile-coin-summary{margin:0;min-width:0;gap:8px;padding:12px}.profile-identity-row .profile-coin-summary>span:last-child{min-width:0;overflow-wrap:anywhere}@media(max-width:480px){.profile-identity-row{gap:12px}.profile-identity-row .profile-photo .avatar{width:80px;height:80px}#main .profile-identity-row .profile-coin-summary{padding:10px;gap:7px}.profile-identity-row .yellow-coin-icon{width:32px;height:32px;flex-basis:32px;font-size:19px}.profile-identity-row .profile-coin-summary strong{font-size:1rem}.profile-identity-row .profile-coin-label{font-size:.75rem}.profile-identity-row .profile-coin-summary small{font-size:.65rem}}@media(max-width:350px){.profile-identity-row .profile-photo .avatar{width:64px;height:64px}.profile-identity-row{gap:8px}#main .profile-identity-row .profile-coin-summary{padding:8px;gap:5px}}

#main .profile-coin-number{width:auto;min-width:38px;height:auto;min-height:38px;aspect-ratio:1;flex:0 0 auto;padding:4px;font-size:14px;line-height:1.2;white-space:nowrap}

/* Balance the profile portrait with the adjacent coin card. */
.profile-identity-row .profile-photo .avatar{width:120px;height:120px;object-fit:cover}
@media(max-width:480px){.profile-identity-row .profile-photo .avatar{width:108px;height:108px}}
@media(max-width:350px){.profile-identity-row .profile-photo .avatar{width:88px;height:88px}}

.profile-photo-picker{position:relative;display:block;margin:0;cursor:pointer;padding:0}.profile-camera{position:absolute;right:0;bottom:21px;width:28px;height:28px;display:grid;place-items:center;background:#eef6fc;color:#567b90;border:1px solid #cbdde8;border-radius:50%;box-shadow:0 2px 5px #0001}.profile-photo-caption{display:block;text-align:center;font-size:11px;color:#6c8290;margin-top:7px}.profile-photo-picker:focus-within{outline:2px solid #97bbd0;outline-offset:5px;border-radius:12px}#main #profile-image.profile-photo-input{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Gentle shine on the account coin, without moving its number or tap target. */
#account .header-coin-badge{isolation:isolate;background-image:linear-gradient(115deg,transparent 30%,#fffbeebf 47%,transparent 64%),linear-gradient(135deg,#fff3a3,#ffd348 65%,#f4b823);background-size:260% 100%,100% 100%;background-position:150% 0,0 0;background-repeat:no-repeat;animation:header-coin-shine 5s ease-in-out infinite}
#account .header-coin-badge::before,#account .header-coin-badge::after{content:"";position:absolute;pointer-events:none;width:9px;height:9px;background:#fff9d5;filter:drop-shadow(0 0 2px #e9b940);clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);opacity:0;animation:header-coin-sparkle 4s ease-in-out infinite}
#account .header-coin-badge::before{top:-4px;right:1px}
#account .header-coin-badge::after{bottom:0;left:-4px;width:7px;height:7px;animation-delay:1.7s}
@keyframes header-coin-shine{0%,55%{background-position:150% 0,0 0}85%,100%{background-position:-100% 0,0 0}}
@keyframes header-coin-sparkle{0%,12%,48%,100%{opacity:0;transform:scale(.5) rotate(0deg)}28%{opacity:1;transform:scale(1.1) rotate(18deg)}}
@media(prefers-reduced-motion:reduce){#account .header-coin-badge{animation:none;background-position:150% 0,0 0}#account .header-coin-badge::before,#account .header-coin-badge::after{animation:none;opacity:0}}

.orb-game .game-ranking-highlight{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid #e6cd82;border-radius:14px;background:linear-gradient(120deg,#fffdf4,#fff1c7);color:#87621c;font-size:14px;font-weight:600;text-align:center;line-height:1.8;box-shadow:0 3px 14px #bd923416}.game-ranking-highlight>span{position:relative;z-index:1}.game-ranking-highlight::after{content:"";position:absolute;inset:0 auto 0 -60%;width:40%;background:linear-gradient(105deg,transparent,#fffdf5c9,transparent);transform:skewX(-18deg);pointer-events:none;animation:game-ranking-shine 5s ease-in-out infinite}.game-ranking-sparkle{flex:0 0 auto;color:#d8a637;animation:game-ranking-twinkle 3.5s ease-in-out infinite}.game-ranking-sparkle:last-child{animation-delay:1.4s}@keyframes game-ranking-shine{0%,55%{left:-60%}90%,100%{left:130%}}@keyframes game-ranking-twinkle{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}@media(prefers-reduced-motion:reduce){.game-ranking-highlight::after{animation:none;display:none}.game-ranking-sparkle{animation:none}}

.game-rank-trophy{display:inline-block;vertical-align:-3px;width:21px;height:21px;margin-left:3px;filter:drop-shadow(0 1px 1px #00000014)}.game-rank-trophy--gold{color:#d7a321}.game-rank-trophy--silver{color:#a2abb5}.game-rank-trophy--bronze{color:#b77a43}

/* Make an existing reaction unmistakable, including after feed reloads. */
#main .social-bar .boon-button[aria-pressed="true"]{color:#0866cc;font-weight:700}
#main .social-bar .boon-button[aria-pressed="true"] .boon-orb{filter:saturate(1.45) brightness(.9)}

.admin-member-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 20px}.admin-member-stats>div{padding:16px;border:1px solid #dbe8ef;border-radius:14px;background:#f4f9fc;color:#536f80;min-width:0}.admin-member-stats span{display:block;font-size:13px}.admin-member-stats strong{display:block;font-size:26px;font-weight:600;margin-top:5px;overflow-wrap:anywhere}.admin-member-stats small{font-size:11px;font-weight:400;color:#788993}

.traffic-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.traffic-stats>div{padding:16px 10px;text-align:center;border:1px solid #dbe8ef;border-radius:14px;background:#f4f9fc;color:#536f80}.traffic-stats span{font-size:13px}.traffic-stats strong{display:block;font-size:26px;overflow-wrap:anywhere}

#main .admin-member-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}#main .admin-member-actions [data-role-id]{display:inline-flex;width:auto;min-height:32px;padding:4px 9px;font-size:.75rem;font-weight:400;border-radius:6px;background:#f5f8fa;border:1px solid #dce3e8;color:#62747f;box-shadow:none}

.profile-detail-item{border:0;border-bottom:1px solid #e8e5df;padding:0;margin:0;background:transparent;box-shadow:none}.profile-detail-item>summary{display:flex;align-items:center;gap:13px;padding:18px 0;cursor:pointer;list-style:none}.profile-detail-item>summary::-webkit-details-marker{display:none}.detail-row-icon{width:25px;flex:0 0 25px;font-size:25px;text-align:center;color:#667985}.detail-row-text{flex:1;min-width:0}.detail-row-label{display:block;font-size:12px;color:#85817b}.detail-row-value{display:block;font-size:15px;font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap}.detail-row-privacy{display:block;font-size:11px;color:#7b8084;margin-top:3px}.detail-pencil{flex:0 0 22px;color:#78848c}.detail-edit-panel{padding:0 0 18px 38px}.detail-edit-panel .detail-visibility{display:flex;align-items:center;gap:8px}.detail-edit-panel .detail-visibility input{width:auto}.detail-edit-panel .hint{margin:4px 0}.profile-detail-item[open] .detail-pencil{color:#397aa0}.profile-detail-item>summary:focus-visible{outline:2px solid #a7c4d4;outline-offset:3px;border-radius:8px}

.profile-name-award-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.profile-name-block{min-width:0;flex:1;overflow-wrap:anywhere}.profile-name-block p{margin:8px 0}.posting-star-award{flex:0 1 145px;text-align:center;color:#996326;padding:10px 6px}.posting-star-medal{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 6px;border-radius:50%;background:linear-gradient(135deg,#ffc350,#f68570 55%,#e95bad);box-shadow:0 3px 10px #eaa26f28}.posting-star-award strong{display:block;font-size:11px;line-height:1.6;font-weight:500}.posting-star-award small{display:block;font-size:10px;color:#8b8276;margin-top:4px}@media(max-width:380px){.posting-star-award{flex-basis:116px}.profile-name-award-row{gap:8px}.posting-star-award strong{font-size:10px}}

.posting-award-orb{display:block;width:48px;height:48px;margin:0 auto 8px;object-fit:contain}.posting-orb-award{color:#537e98}

.admin-member-card{position:relative}.admin-member-number{position:absolute;top:16px;right:18px;min-width:28px;padding:2px 7px;border-radius:9px;background:#f1f6f9;color:#718694;font-size:12px;line-height:1.8;text-align:center;font-variant-numeric:tabular-nums;pointer-events:none}.admin-member-card>div{padding-right:32px}

.admin-member-email{overflow-wrap:anywhere;color:#74838c}

.detail-interaction-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:14px 0}.detail-interaction-row:empty{display:none}#main .detail-interaction-row>.social-bar{border:0;margin:0;padding:0;min-width:0}.detail-owner-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;min-width:0}#main .detail-owner-actions .quiet-post-edit{white-space:normal;text-align:center}@media(max-width:600px){.detail-owner-actions{flex-direction:column;align-items:flex-end;max-width:48%}#main .detail-owner-actions .quiet-post-edit,#main .detail-owner-actions #delete-post{font-size:11px;padding:5px 8px}.detail-interaction-row{gap:8px}}

#main .compact-comments{margin-top:0;padding:14px 0 18px;border-top:1px solid var(--line)}#main .compact-comments h2{font-size:16px;margin:0 0 12px;font-weight:600}.comment-compose-row{display:flex;align-items:center;gap:8px}#main .compact-comments #comment-body{flex:1;min-width:0;min-height:42px;max-height:160px;margin:0;padding:10px 14px;border:1px solid #e2e6e9;border-radius:22px;background:#f2f4f6;font-size:14px;line-height:1.5;resize:vertical}#main .compact-comments .comment-send{padding:8px 12px;min-height:40px;border-radius:20px;background:#e6f1f9;color:#347498;border:1px solid #cedfea;box-shadow:none;font-size:13px}#main .compact-comments .comment-send::before{display:none}#main .compact-comments .quick-comments{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}#main .compact-comments .quick-comments button{padding:4px 9px;min-height:30px;font-size:11px;border-radius:16px;background:#f6f7f8;border:1px solid #e2e6e9;color:#747d84;box-shadow:none}#main .compact-comments .quick-comments button::before{display:none}.compact-comments .quick-comment-hint{font-size:10px;margin:7px 0 3px}#main .compact-comments .comment{padding:10px 12px;margin:8px 0;border-radius:14px;background:#f3f5f6}#main .compact-comments .comment .byline{gap:7px;flex-wrap:wrap;font-size:11px}#main .compact-comments .comment .avatar{width:28px;height:28px}#main .compact-comments .comment p{font-size:14px;margin:5px 0;line-height:1.6;overflow-wrap:anywhere}#main .compact-comments .comment .link-button{font-size:10px;padding:2px 5px}.compact-comments+#comment-more{margin-top:8px}

#main .detail-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}#main .detail-tools>:is(.share-line-button,.line-direct-share,.facebook-direct-share){display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:0;min-height:40px;padding:8px 5px;font-size:12px;font-weight:500;line-height:1.4;border-radius:13px;white-space:normal;text-align:center}#main .detail-tools>:is(.share-line-button,.line-direct-share,.facebook-direct-share) svg{width:18px;height:18px;flex:0 0 18px}#main .detail-tools>:is(.share-line-button,.line-direct-share,.facebook-direct-share) span{min-width:0;overflow-wrap:anywhere}#main .compact-comments .quick-comment-hint{font-size:13px;margin:12px 0 8px}#main .compact-comments .quick-comments{gap:8px;margin:6px 0 16px}#main .compact-comments .quick-comments button{font-size:14px;min-height:42px;padding:9px 13px;line-height:1.5;white-space:normal;text-align:left}@media(max-width:360px){#main .detail-tools{gap:5px}#main .detail-tools>:is(.share-line-button,.line-direct-share,.facebook-direct-share){font-size:11px;gap:3px}}

/* Put the detail-page reaction action beside its count. */
#main .detail-interaction-row{align-items:flex-start;flex-wrap:wrap}
#main .detail-interaction-row>.social-bar{flex:0 1 auto;max-width:100%}
#main .detail-interaction-row .boon-action-group{display:flex;align-items:center;gap:10px;max-width:100%}
#main .detail-interaction-row .boon-reaction-summary{margin:0;flex-shrink:0}
#main .detail-interaction-row .boon-button{white-space:nowrap;min-width:0;padding:5px 2px}
#main .detail-interaction-row .detail-owner-actions{flex:0 1 145px}
@media(max-width:380px){#main .detail-interaction-row .boon-action-group{gap:6px}#main .detail-interaction-row .detail-owner-actions{flex-basis:100%;max-width:100%;flex-direction:row;justify-content:flex-end}}

#main .detail-interaction-row .boon-action-group{flex-direction:row;align-items:center;gap:14px}
#main .detail-interaction-row .boon-button{order:0}
#main .detail-interaction-row .boon-reaction-summary{order:1;padding:0;margin:0}

/* Compact profile heading: title and game shortcut share the first row. */
#main .profile-page>.page-heading{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:8px 12px;margin-bottom:16px}
#main .profile-page>.page-heading h1{font-size:clamp(20px,5.5vw,26px);line-height:1.4;margin:0;grid-column:1;grid-row:1}
#main .profile-page>.page-heading .profile-shortcuts{display:contents}
#main .profile-page>.page-heading .profile-shortcuts>a{padding:4px 0;margin:0;font-size:12px;line-height:1.6;min-width:0;max-width:100%;overflow-wrap:anywhere}
#main .profile-page>.page-heading .profile-shortcuts>a[href="/game"]{grid-column:2;grid-row:1;justify-self:end;text-align:right}
#main .profile-page>.page-heading .profile-shortcuts>.profile-admin-link{grid-column:1/-1;grid-row:2;justify-self:start;font-size:12px}
@media(max-width:380px){#main .profile-page>.page-heading{gap:6px 10px;margin-bottom:14px}#main .profile-page>.page-heading .profile-shortcuts>a[href="/game"]{font-size:11px}}

.coin-wallet-heading{display:flex;align-items:center;gap:10px}.wallet-gold-coin{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:2px solid #dba72c;border-radius:50%;background:linear-gradient(135deg,#fff1a0,#ffcf3c 60%,#e8a723);box-shadow:inset 0 0 0 2px #fff0a2,0 2px 5px #b6862426;color:#a06b0d;font-size:20px;line-height:1}.coin-wallet-title{color:#946c24}@supports(background-clip:text) or (-webkit-background-clip:text){.coin-wallet-title{background:linear-gradient(110deg,#8c6422 20%,#b88d3b 36%,#ffe9a1 48%,#a77929 60%,#8c6422 80%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:coin-wallet-title-shine 5s ease-in-out infinite}}@keyframes coin-wallet-title-shine{0%,20%{background-position:100% 50%}80%,100%{background-position:0% 50%}}@media(prefers-reduced-motion:reduce){.coin-wallet-title{animation:none;background:none;color:#946c24}}

.coin-count-value{display:inline-block;font-variant-numeric:tabular-nums}

#profile-coin-total,#profile-coin-icon-total,.header-coin-value{font-variant-numeric:tabular-nums}@supports(background-clip:text) or (-webkit-background-clip:text){.profile-coin-label,#profile-coin-total{background:linear-gradient(110deg,#805d1b 20%,#a77b2d 36%,#f9dc7d 48%,#a77929 60%,#805d1b 80%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:coin-wallet-title-shine 5s ease-in-out infinite}}@media(prefers-reduced-motion:reduce){.profile-coin-label,#profile-coin-total{animation:none;background:none;color:#826017}}

#main .daily-coin-invite{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px 12px;margin:8px 0;border-radius:14px}#main .daily-coin-invite>.yellow-coin-icon{width:36px;height:36px;font-size:18px;border-width:2px}#main .daily-coin-invite>.daily-coin-copy{min-width:0;flex:initial}#main .daily-coin-copy strong{display:block;font-size:12px;line-height:1.5}#main .daily-coin-copy p{font-size:11px;line-height:1.5;margin:3px 0}#main .daily-coin-copy small{display:block;font-size:10px;line-height:1.4}#main .daily-coin-actions{width:auto;min-width:68px;max-width:95px;align-items:center;gap:6px;padding-left:9px;border-left:1px dashed #dfc571}#main .daily-coin-actions button,#main .daily-coin-actions .btn{width:auto;min-width:60px;min-height:36px;padding:6px 9px;font-size:12px;line-height:1.4;border-radius:9px;background:#f4c343;border:1px solid #e5b437;color:#654908;box-shadow:none;text-shadow:none;white-space:normal}#main .daily-coin-actions button::before{display:none}#main .daily-coin-actions button:disabled{background:#f3ead2;color:#9b895c;opacity:1;cursor:default}#main .daily-coin-actions>a:not(.btn){font-size:9px;text-align:center;line-height:1.4}#main .daily-coin-status{overflow-wrap:anywhere}

/* Keep the comment label and count together on a single line. */
#main .card .social-bar{grid-template-columns:minmax(0,1.15fr) minmax(0,1.55fr) minmax(0,.65fr)}
#main .card .social-bar .comment-link{justify-content:center;gap:4px;white-space:nowrap;font-size:11px}
#main .card .social-bar .comment-link span{white-space:nowrap;overflow-wrap:normal;flex:0 0 auto}
#main .card .social-bar .comment-link b{flex:0 0 auto;margin:0;font-size:11px}
#main .card .social-bar .comment-link svg{width:20px;height:20px;flex:0 0 20px}
@media(max-width:380px){#main .card .social-bar .comment-link{gap:3px;font-size:10px}#main .card .social-bar .comment-link b{font-size:10px}#main .card .social-bar .comment-link svg{width:18px;height:18px;flex-basis:18px}}

/* Match the comment action to the merit action's type size. */
#main .card .social-bar .comment-link,#main .card .social-bar .comment-link b{font-size:12px}
@media(max-width:400px){#main .card .social-bar .comment-link,#main .card .social-bar .comment-link b{font-size:11px}}

/* Give the daily coupon title a full line beside its coin. */
#main .daily-coin-invite{grid-template-columns:36px minmax(0,1fr) auto;column-gap:8px;row-gap:3px}
#main .daily-coin-invite>.yellow-coin-icon{grid-column:1;grid-row:1/4;align-self:center}
#main .daily-coin-invite>.daily-coin-copy{display:contents}
#main .daily-coin-copy strong{grid-column:2/4;grid-row:1;white-space:nowrap;font-size:12px}
#main .daily-coin-copy>p:not(.daily-coin-status){grid-column:2;grid-row:2}
#main .daily-coin-copy>small{grid-column:2;grid-row:3}
#main .daily-coin-copy>.daily-coin-status:not(:empty){grid-column:2/4;grid-row:4}
#main .daily-coin-actions{grid-column:3;grid-row:2/4}
@media(max-width:350px){#main .daily-coin-invite{grid-template-columns:30px minmax(0,1fr) auto;column-gap:6px;padding:12px 9px}#main .daily-coin-invite>.yellow-coin-icon{width:30px;height:30px}#main .daily-coin-copy strong{font-size:11px}}

/* Reveal the English wordmark as the pen travels from J to N. */
.brand .brand-writing{position:relative;display:table;width:max-content;max-width:100%;overflow:visible}.brand-writing-text{display:block;clip-path:inset(0 0 0 0);animation:brand-write-letters 8s steps(7,end) infinite}.brand-writing-pen{position:absolute;left:0;bottom:2px;transform:translate(-2px,-1px);pointer-events:none;opacity:0;animation:brand-write-pen 8s linear infinite;filter:drop-shadow(0 1px 1px #937b4520)}@keyframes brand-write-letters{0%,8%{clip-path:inset(0 100% 0 0)}48%,94%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 100% 0 0)}}@keyframes brand-write-pen{0%,5%{left:0;opacity:0}8%{left:0;opacity:1;transform:translate(-2px,-1px) rotate(-5deg)}18%{left:25%;opacity:1;transform:translate(-2px,1px) rotate(4deg)}28%{left:50%;opacity:1;transform:translate(-2px,-1px) rotate(-5deg)}38%{left:75%;opacity:1;transform:translate(-2px,1px) rotate(4deg)}48%{left:100%;opacity:1;transform:translate(-2px,-1px) rotate(-5deg)}54%,100%{left:100%;opacity:0}}@media(prefers-reduced-motion:reduce){.brand-writing-text{animation:none;clip-path:none}.brand-writing-pen{display:none;animation:none}}

/* Reserve the expanded wordmark so nearby header controls remain stationary. */
.brand-thai{position:relative;display:block;white-space:nowrap}
.brand-thai::before{content:"จรดบุญ";visibility:hidden}
.brand-thai-letters{position:absolute;inset:0;display:flex;align-items:baseline}
.brand-thai-insert{display:inline-block;flex:none;width:0;opacity:0;overflow:hidden;white-space:nowrap;animation:brand-thai-write 8s ease-in-out infinite}
@keyframes brand-thai-write{
  0%,25%{width:0;opacity:0}
  40%,62.5%{width:.6em;opacity:1}
  77.5%,100%{width:0;opacity:0}
}
@media(prefers-reduced-motion:reduce){
 .brand-thai-insert{animation:none;width:0;opacity:0}
}

/* Quiet mission controls and compact share symbols. */
#main .detail .mission-card .mission-actions>:is(button,a.btn),#main #hide-mission{min-height:36px;padding:6px 12px;font-size:12px;font-weight:500;line-height:1.5;border:1px solid #d8c69b99;border-radius:11px;background:#fbf6e980;color:#8b713a;box-shadow:none;text-shadow:none;animation:none}
#main .detail .mission-card .mission-share-icons{display:flex;flex-wrap:nowrap;gap:9px;margin:16px 0 0}
#main .detail .mission-card .mission-share-icons>:is(button,a.btn){display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:9px;border-radius:12px;background:#f3f5f780;border-color:#bac4cd80;color:#65717c;box-shadow:none}
#main .detail .mission-card .mission-share-icons>.line-direct-share{color:#369368;background:#eaf8ef70;border-color:#abd1bb80}
#main .detail .mission-card .mission-share-icons>.facebook-direct-share{color:#4787b9;background:#eaf3fd70;border-color:#b1cce380}
#main .mission-share-icons> :is(button,a)>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#main .mission-share-icons svg{width:21px;height:21px;flex:none}
#main .mission-share-icons>:focus-visible{outline:2px solid #94733b;outline-offset:3px}

.month-summary-dialog{width:min(620px,94vw);max-height:90vh;overflow:auto;border:1px solid #dccba6;border-radius:20px;padding:22px;background:#fffdf8;color:#423b30}.month-summary-dialog::backdrop{background:#30281888}.summary-close{float:right}.summary-preview{width:100%;height:auto;border:1px solid #e4d8bc;border-radius:10px}.month-summary-dialog .check-line{display:flex;gap:10px;align-items:center}.month-summary-dialog input{width:auto}.month-summary-dialog .summary-status{font-size:14px}

/* Calm blue calendar controls; a gold image-export action. */
#main .calendar-box button:not(#cal-summary){background:linear-gradient(145deg,#ffffffdb,#eaf5fc99);color:#628298;border:1px solid #bfd7e699;box-shadow:none;text-shadow:none;font-weight:500;animation:none}
#main .calendar-box .calendar-grid button{border-radius:12px;padding:10px 2px;min-height:66px}
#main .calendar-box .calendar-grid button.has-boon{background:linear-gradient(145deg,#f4fbff,#d9edf9b3);border-color:#a9cfe2;color:#416e87}
#main .calendar-box .calendar-grid button[aria-pressed=true]{background:linear-gradient(145deg,#d9eefb,#b6d9ed);border-color:#78aac6;color:#264f68;box-shadow:0 0 0 2px #b6d9ed55}
#main .calendar-box .calendar-grid button[aria-current=date]{outline:2px solid #86b7d1;outline-offset:1px}
#main .calendar-box button:not(#cal-summary):hover{background:#dfedf6}
#main .calendar-box #cal-month{border-color:#c7dce9;background:#f8fcff;color:#537389}
#main #cal-summary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:62px;margin-top:16px;padding:16px 18px;border:1px solid #d6b968b3;border-radius:18px;background:linear-gradient(135deg,#fffdf2f2,#f7e7b9b3 60%,#f1d68b99);color:#886623;box-shadow:inset 0 1px 1px #fff,0 5px 16px #b8932f14;font-size:17px;font-weight:700;line-height:1.5;text-shadow:none}
#main #cal-summary svg{flex:0 0 27px}
#main #cal-summary:hover:not(:disabled){background:linear-gradient(135deg,#fff9e5,#f4dda2cc)}
#main #cal-summary:disabled{opacity:.5;cursor:wait}
@media(max-width:360px){#main #cal-summary{font-size:15px;gap:8px;padding:14px 10px}}
/* Compact month navigation within the calendar panel. */
#main .calendar-box .calendar-tools{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:center}
#main .calendar-tools label[for="cal-month"]{grid-column:1/3;grid-row:1;margin:0;font-size:12px;color:#718996}
#main .calendar-tools #cal-prev,#main .calendar-tools #cal-next{width:36px;height:36px;min-width:0;min-height:36px;padding:0;border-radius:11px;font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center;margin:0}
#main .calendar-tools #cal-prev{grid-column:1;grid-row:2}
#main .calendar-tools #cal-next{grid-column:3;grid-row:2}
#main .calendar-tools #cal-month{grid-column:2;grid-row:2;width:100%;min-width:0;max-width:none;box-sizing:border-box;height:38px;min-height:0;padding:5px 8px;margin:0;border-radius:10px;font-size:14px;text-align:center}
#main .calendar-tools #cal-today{grid-column:3;grid-row:1;justify-self:end;width:auto;min-width:48px;min-height:28px;padding:3px 6px;margin:0;font-size:11px;line-height:1.4;border-radius:9px;white-space:nowrap}

/* Keep Safari's native month field inside its grid track. */
#main .calendar-box .calendar-tools{grid-template-columns:36px minmax(0,1fr) 36px;column-gap:12px;row-gap:10px;width:100%;min-width:0}
#main .calendar-tools #cal-month{display:block;appearance:none;-webkit-appearance:none;min-inline-size:0;max-inline-size:100%;inline-size:100%;box-sizing:border-box;overflow:hidden;height:36px;padding:4px 2px;font-size:12px;line-height:26px}
#main .calendar-tools #cal-month::-webkit-date-and-time-value{min-width:0;text-align:center;margin:0}
#main .calendar-tools #cal-month::-webkit-datetime-edit{min-width:0;padding:0}
#main .calendar-tools #cal-pick{grid-column:1/3;grid-row:1;justify-self:start;width:auto;min-height:28px;padding:4px 10px;margin:0;border-radius:9px;font-size:12px;line-height:1.4;background:linear-gradient(145deg,#ffffffdb,#eaf5fc99);color:#628298;border:1px solid #bfd7e699;box-shadow:none}
#main .calendar-tools #cal-today{grid-column:2/4;justify-self:end;min-width:0}

.traffic-live{padding:20px;margin:16px 0;border:1px solid #b8dccc;border-radius:18px;background:#effaf5;color:#32785c}.traffic-live>strong{display:block;font-size:44px;line-height:1.4}.traffic-live small{display:block}.traffic-live p{font-size:12px;margin:10px 0 0}
#main strong>[data-stat-count]{display:inline;font:inherit;color:inherit;letter-spacing:inherit;font-variant-numeric:tabular-nums}
.support-entry>summary{cursor:pointer;color:#597e95;font-weight:600;padding:12px}.support-host{margin:12px 0;padding:14px;border:1px solid #c9dce8;border-radius:16px;background:#f8fcff}.support-thread{max-height:340px;overflow:auto;display:flex;flex-direction:column;gap:10px}.support-bubble{align-self:flex-end;background:#e4f0fa;border-radius:14px;padding:10px 13px;max-width:90%;overflow-wrap:anywhere}.support-bubble.support-admin{align-self:flex-start;background:#f6edda}.support-bubble p{white-space:pre-wrap;margin:5px 0;font-size:14px}.support-bubble strong{font-size:12px}.support-bubble small,.support-host>small{font-size:11px;color:#7b858d}.support-compose{margin-top:12px}.support-compose label{font-size:13px}.support-compose textarea{width:100%;box-sizing:border-box;min-height:70px;margin:6px 0}.support-status{font-size:12px}

.brand-mark .brand-letter{display:block;width:100%;height:100%;overflow:visible}.brand-letter text{font-family:Thonburi,"Noto Sans Thai",Tahoma,sans-serif;font-size:29px;font-weight:400;fill:#fff;filter:drop-shadow(0 1px 1px #39659e);text-shadow:none}

/* Restore the original blue letter glow without moving the centered glyph. */
.brand-letter text{filter:none;text-shadow:0 1px 3px #39659e,0 0 2px #39659e}

/* Slightly raised letter with a deeper blue glow. */
.brand-letter text{text-shadow:0 2px 4px #39659ecc,0 0 3px #39659e,0 0 5px #39659e66}

.mission-heading-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}#main .btn.volunteer-button{background:linear-gradient(145deg,#fff8f8ee,#f9d8d8a6);border:1px solid #d9a0a099;color:#a75c5c;box-shadow:inset 0 1px 1px #fff,0 3px 10px #c7686810;text-shadow:none}.mission-heading-actions .volunteer-button{font-size:14px}@media(max-width:400px){.mission-heading-actions .btn{font-size:11px;padding:9px 10px}}

.volunteer-button.boon-light-ring::after{background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#f3a6a688 275deg,#fff1f1 310deg,transparent 350deg)}

/* Translucent gold for the mission recruitment action. */
#main .mission-heading-actions .btn.boon-light-ring:not(.volunteer-button),.reflection-mini .reflection-open.btn.boon-light-ring,.reflection-dialog .reflection-save.btn.boon-light-ring,.reflection-dialog .reflection-share.btn.boon-light-ring,.reflection-dialog .vsv-copy.btn.boon-light-ring{background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;text-shadow:0 1px 0 #ffffff66}

.card-admin-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;flex-wrap:wrap}#main .card-admin-actions .link-button{background:transparent;border:0;box-shadow:none;font-size:11px;padding:5px;color:#817c72}#main .card-admin-actions [data-move-category]{margin-left:auto;color:#63849a}

/* Constrain uploaded publicity images to the mobile form content width. */
#main #publicity-form{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}#main #publicity-form>*{min-width:0;max-width:100%;box-sizing:border-box}#main #publicity-image-preview{display:block;width:100%;max-width:100%;min-width:0;height:auto;max-height:320px;object-fit:contain;object-position:center;margin:12px auto;border-radius:12px}#main #publicity-form input[type=file]{display:block;width:100%;min-width:0;overflow:hidden}
.coin-balance-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.coin-balance-actions .coin-balance{margin:18px 0}.reward-button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 8px;max-width:230px;padding:12px 14px;border-radius:15px!important}.reward-button small{grid-column:1/-1;font-size:10px;font-weight:400}#main .reward-button{background:linear-gradient(145deg,#f5fff9dd,#def1e699);border:1px solid #bedaca;color:#7d9d8a;font-size:12px;box-shadow:none;text-shadow:none}#main .reward-button:disabled{opacity:1;cursor:default}#main .reward-button.reward-ready{background:linear-gradient(145deg,#effff6,#bfe9d0b3);border-color:#80bea0;color:#28734e;box-shadow:0 4px 16px #449a6c18}.reward-celebration{max-width:min(420px,90vw);border:1px solid #dfca91;border-radius:24px;padding:30px;text-align:center;background:#fffdf4;color:#735c30;overflow:hidden}.reward-celebration::backdrop{background:#28382d88}.reward-gift{font-size:64px}.reward-spark{position:absolute;left:50%;top:35%;width:7px;height:7px;border-radius:50%;pointer-events:none}.reward-flying-coin{position:fixed;left:0;top:0;z-index:9999;width:22px;height:22px;border-radius:50%;background:#f6d36b;color:#997015;text-align:center;pointer-events:none}
/* Centered wallet balance and quiet celebratory bursts. */
#main #coin-wallet .coin-wallet-heading{justify-content:center;margin:0 0 12px}
#main #coin-wallet .coin-balance-actions{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin:0 0 18px}
#main #coin-wallet .coin-balance{position:relative;display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:10px;width:100%;min-width:0;margin:8px 0 2px;padding:12px 16px;font-size:clamp(44px,12vw,76px);line-height:1.2;text-align:center;font-variant-numeric:tabular-nums}
#main #coin-wallet .coin-count-value{min-width:0;overflow-wrap:anywhere}
#main #coin-wallet .coin-balance small{font-size:clamp(18px,4.5vw,26px);white-space:nowrap}
#main #coin-wallet .coin-balance::before,#main #coin-wallet .coin-balance::after{content:"";position:absolute;top:45%;width:3px;height:3px;border-radius:50%;background:#eac363;pointer-events:none;box-shadow:0 -12px #eac363,9px -9px #f1d897,12px 0 #eac363,9px 9px #f1d897,0 12px #eac363,-9px 9px #f1d897,-12px 0 #eac363,-9px -9px #f1d897;animation:wallet-mini-burst 4.8s ease-out infinite;opacity:0}
#main #coin-wallet .coin-balance::before{left:12px}
#main #coin-wallet .coin-balance::after{right:12px;animation-delay:2.4s}
@keyframes wallet-mini-burst{0%,55%,100%{opacity:0;transform:scale(.25)}65%{opacity:.8;transform:scale(.65)}90%{opacity:0;transform:scale(1.1)}}
#main #coin-wallet .reward-button{width:100%;max-width:340px;justify-content:center;grid-template-columns:auto auto;margin:0 auto;padding:12px 14px;text-align:center}
#main #coin-wallet .coin-reward-info{margin-top:14px}
#main #coin-wallet .coin-reward-info p{margin:10px 0;font-size:15px;line-height:1.7}
@media(prefers-reduced-motion:reduce){#main #coin-wallet .coin-balance::before,#main #coin-wallet .coin-balance::after{animation:none;display:none}}

#main #coin-wallet .reward-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}#main #coin-wallet .reward-button-label{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;line-height:1.5;text-align:center}#main #coin-wallet .reward-button-label>[aria-hidden]{flex-shrink:0}#main #coin-wallet .reward-button small{display:block;width:100%;text-align:center}

#main .reward-rules{margin:0 0 18px;width:100%}#main .reward-rules>summary{cursor:pointer;text-align:center;color:#668d79;font-size:13px;padding:8px;list-style-position:inside}#main .reward-rules[open]>summary{margin-bottom:10px}#main .reward-rules-content{padding:16px;border:1px solid #d9e6de;border-radius:14px;background:#f7fbf8;font-size:13px;line-height:1.85;overflow-wrap:anywhere}#main .reward-rules-content h4{font-size:15px;margin:8px 0 12px}#main .reward-rules-content p{margin:10px 0}#main .reward-rules-content ul{padding-left:22px}#main .reward-rules-content hr{border:0;border-top:1px solid #d9e6de;margin:18px 0}

#main .coin-history-all{display:block;width:max-content;max-width:100%;margin:12px auto 0;padding:6px;color:#8c743d;font-size:13px;text-align:center}.coin-history-page{min-width:0;width:100%}.coin-history-page h1{font-size:clamp(23px,6vw,32px)}.coin-history-page .coin-history li>span{min-width:0;overflow-wrap:anywhere}.coin-history-page .coin-history strong{flex-shrink:0;font-variant-numeric:tabular-nums}.coin-history-page .coin-history small{line-height:1.6;margin-top:4px}
/* Keep supplemental feed sections inside narrow mobile viewports. */
#posts>.feed-news,#posts>.ranking-panel,#posts>.game-invite,#posts>.install-invite,#posts>.daily-coin-invite{min-width:0;max-width:100%;box-sizing:border-box}#posts>.feed-news .grid{min-width:0}#posts>.feed-news img{max-width:100%}#install-invite{flex-wrap:wrap}#install-invite>div{min-width:0}#dismiss-install{margin-left:auto}#posts>.feed-news>.back{display:block;margin:12px 0 0;font-size:13px}
/* Jodboon Mini World V2 — small, touch-friendly controls and quiet personal goals. */
.game-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 10px}.game-toolbar>span{flex:1 1 150px;color:#587c69;font-weight:600}.game-toolbar button{font-size:12px;padding:8px 12px;min-height:44px}.game-personal,.game-summary{padding:16px 18px;border:1px solid #d8e3d4;background:#f5f8ee;border-radius:16px;margin:18px 0;font-size:14px}.game-personal p,.game-summary p{margin:7px 0}.game-personal small{color:#6e7f74}.game-existing-ranking{margin:20px 0}.game-existing-ranking>summary{cursor:pointer;color:#718678;font-size:14px}.orb-game .game-controls{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.orb-game .game-controls button{touch-action:none;-webkit-touch-callout:none;min-height:52px}.orb-game #game-start{display:block;margin:12px auto}.orb-game #game-start[hidden]{display:none}.orb-game #orb-canvas{image-rendering:pixelated;image-rendering:crisp-edges;outline-offset:3px}.orb-game .game-hud{font-size:14px;gap:8px}.orb-game{min-width:0}.game-summary[hidden]{display:none}
@media(max-width:420px){.orb-game h1{font-size:23px}.orb-game .game-hud{font-size:12px;padding:10px}.game-personal{padding:12px;font-size:13px}}

/* Prevent iOS text selection/callout on the game pad only. */
.orb-game .game-controls,.orb-game .game-controls *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:none}.orb-game .game-controls button{-webkit-tap-highlight-color:transparent}.orb-game .game-controls svg{pointer-events:none;display:block;margin:auto}

/* Full-width directional pad with larger mobile touch targets. */
#main .orb-game .game-controls button{width:100%;min-width:0;min-height:76px;height:clamp(76px,20vw,100px);padding:12px;border-radius:18px}.orb-game .game-controls svg{width:36px;height:36px}

/* Keep status and reward copy clear of fingers below the directional pad. */
#main .orb-game .game-controls{margin-bottom:64px}

/* Start beside sound, above the canvas; countdown begins only on explicit start. */
.orb-game .game-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center}.orb-game #game-theme{min-width:0}.orb-game #game-change-map{justify-self:end}.orb-game #game-sound{justify-self:start}#main .orb-game #game-start,#main .orb-game .game-login{margin:0;justify-self:end;max-width:100%;min-height:48px;padding:10px 18px;border:1px solid #dca5a0;border-radius:16px;background:linear-gradient(145deg,#fff8f5e6,#f4cbc5b3);color:#a44f48;box-shadow:inset 0 1px 2px #fff,0 4px 12px #bd77731a;font-size:14px;line-height:1.5}#main .orb-game #game-start[hidden]{display:none}
/* Journal photo chooser only; processing and other upload components stay unchanged. */
.journal-photo-heading{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}.journal-photo-heading label{margin:0!important}.journal-photo-heading small{font-size:12px;color:var(--muted)}#main .journal-upload{padding:0;border:0;background:transparent;box-shadow:none;min-width:0}#main .journal-upload .cover-picker{display:flex!important;flex-direction:column;gap:4px;width:100%;min-height:112px;margin:0!important;padding:12px;background:#fffefa;background-image:none;border:1px solid var(--line);border-radius:10px;box-shadow:none;animation:none;font-size:14px!important;font-weight:400;color:var(--muted);transform:none}#main .journal-upload .cover-picker span{font-size:14px}#main .journal-upload .cover-picker small{font-size:12px}#main .journal-upload .cover-picker:before,#main .journal-upload .cover-picker:after{display:none}#main .journal-upload .hint{display:block;margin-top:8px;font-size:12px}#main .journal-upload.has-selected .cover-picker{width:auto;min-height:44px;padding:6px 10px;border:0;background:transparent;align-items:flex-start}#main .journal-upload.has-selected #cover-preview{display:none!important}#main .journal-upload #cover-preview{max-width:100%;max-height:160px;object-fit:contain}#main .journal-upload .quick-photo-list{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px}#main .journal-upload .quick-photo-item{max-width:160px;min-width:0}#main .journal-upload .quick-photo-item button{width:44px;min-height:44px;height:44px;right:0;top:0;border-radius:0 8px 0 8px;background:#fffffff0;font-size:24px}#main .journal-upload #cover-reset{font-size:12px;padding:5px 8px;min-height:44px;background:transparent;border:0;box-shadow:none;color:var(--muted)}#main .journal-upload #cover-status:empty{display:none}.compact-post .journal-photo-heading label{display:block!important}#main .journal-upload .cover-picker:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Meditation Garden: private, quiet progress; intentionally separate from the coin wallet. */
.meditation-page{max-width:680px;margin:auto;min-width:0}.meditation-page h1{font-size:clamp(25px,6vw,34px)}.meditation-page h2{font-size:19px;margin:0 0 12px}.meditation-page>p,.meditation-page small{color:var(--muted)}.med-panel{padding:22px;border:1px solid #dce4d5;border-radius:18px;background:#fffef9;margin:18px 0;overflow-wrap:anywhere}.med-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.med-stats>div{text-align:center;background:#f0f6ee;border:1px solid #dce6d8;border-radius:14px;padding:12px 6px;min-width:0}.med-stats strong{display:block;font-size:clamp(22px,5vw,32px);color:#52745a;overflow-wrap:anywhere}.med-stats span,.med-stats small{font-size:12px}.med-streak{font-size:14px;color:#6d7d58}.med-actions,.med-shortcuts{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.med-clock{font-size:clamp(48px,13vw,76px);text-align:center;font-variant-numeric:tabular-nums;line-height:1.5;color:#52745a}#med-timer{text-align:center}#med-timer label{display:block}#med-duration{max-width:100%;margin:8px 12px 12px 0;padding:10px;min-height:44px}#med-timer .med-actions{justify-content:center}#med-timer>small{display:block;margin-top:16px;font-size:12px}.meditation-page progress{display:block;width:100%;height:12px;accent-color:#86a782;margin:10px 0}.med-unlocks{list-style:none;padding:0}.med-unlocks li{display:flex;gap:8px;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0e7}.med-history-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e8ebdf;font-size:13px}.med-history-row strong{white-space:nowrap}.med-private{font-size:12px;line-height:1.8}.med-complete{background:#f2f8ed}#med-error:not(:empty){padding:12px;color:var(--danger);border:1px solid #e8c8ba;border-radius:12px}#med-garden{width:100%;height:auto;display:block;image-rendering:pixelated;border-radius:12px;margin-bottom:12px}.my-activities{padding:16px;border:1px solid var(--line);border-radius:14px;margin:16px 0}.my-activities h2{font-size:18px;margin:0 0 10px}.med-shortcuts a{font-size:14px;min-height:44px;display:inline-flex;align-items:center}.med-feed-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e3e8dc;border-radius:12px;background:#fafcf7;margin:12px 0;font-size:13px}.med-feed-shortcut small,.med-world-link small{display:block;font-size:12px;color:var(--muted)}.med-feed-shortcut>a{white-space:nowrap;min-height:44px;display:flex;align-items:center;color:#63806a}.med-world-link{padding:12px;border:1px solid #e3e8dc;border-radius:12px}.meditation-page button{min-height:44px}.meditation-page details>summary{cursor:pointer}@media(max-width:420px){.med-panel{padding:16px}.med-feed-shortcut{flex-wrap:wrap}.med-stats{gap:6px}}

/* Meditation feed shortcut: readable, balanced mobile typography. */
.med-feed-shortcut{padding:18px 20px;gap:12px 20px;font-size:20px;line-height:1.55;flex-wrap:wrap}.med-feed-shortcut>span{min-width:0;flex:1 1 230px}.med-feed-shortcut strong{font-size:clamp(21px,5.5vw,25px);font-weight:700}.med-feed-shortcut small{font-size:16px;line-height:1.65;margin-top:4px}.med-feed-shortcut>a{font-size:18px;font-weight:600;line-height:1.5;min-height:44px}

/* Profile activity shortcuts: consistent spacing and touch targets. */
.my-activities{padding:20px;margin:20px 0}.my-activities h2{font-size:20px;line-height:1.5;margin:0 0 14px}.my-activities .med-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.my-activities .med-shortcuts a{display:flex;align-items:center;min-width:0;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fffefb;font-size:16px;line-height:1.5}.my-activities>.hint{margin:14px 0 0;font-size:13px;line-height:1.65}.my-activities .med-shortcuts a:hover{background:var(--pale)}@media(max-width:560px){.my-activities{padding:18px}.my-activities .med-shortcuts{grid-template-columns:1fr;gap:8px}}

/* Quiet motion is confined to the homepage meditation shortcut. */
.med-feed-shortcut{position:relative;isolation:isolate;overflow:hidden;background:#fcfcf7;border-color:#dfe5d8;box-shadow:inset 0 1px 0 #ffffffc9,0 2px 9px #63735406;transition:transform 150ms ease,border-color 150ms ease;cursor:pointer}
.med-feed-shortcut::before{content:"";position:absolute;inset:-12px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 18% 25%,#b9cfab26,transparent 65%),radial-gradient(ellipse at 88% 90%,#e6d5a626,transparent 62%);opacity:.7;animation:med-card-light 10s ease-in-out infinite}
.med-feed-shortcut>.med-card-copy{position:relative;z-index:1;pointer-events:none}.med-card-lotus{display:inline-block;transform-origin:center;animation:med-card-breathe 5s ease-in-out infinite}.med-card-lotus::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse,#d9debf40,transparent 70%);opacity:.6;animation:med-card-glow 5s ease-in-out infinite}
.med-card-botanical{position:absolute;right:4px;bottom:2px;width:170px;height:114px;color:#55765b;opacity:.07;pointer-events:none;z-index:0}
.med-feed-shortcut>a{gap:7px;position:static}.med-feed-shortcut>a::after{content:"";position:absolute;inset:0;z-index:2}.med-card-arrow{display:inline-block;animation:med-card-arrow 3.5s ease-in-out infinite}
.med-feed-shortcut:active{transform:scale(.995)}.med-feed-shortcut:focus-within{outline:2px solid #819a70;outline-offset:3px}.med-feed-shortcut>a:focus-visible{outline:none}
@media(hover:hover) and (pointer:fine){.med-feed-shortcut:hover{border-color:#c5d2bc}}
@keyframes med-card-light{0%,100%{transform:translate3d(0,0,0);opacity:.65}50%{transform:translate3d(3px,-2px,0);opacity:.85}}
@keyframes med-card-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@keyframes med-card-glow{0%,100%{opacity:.5}50%{opacity:.65}}
@keyframes med-card-arrow{0%,65%,100%{transform:translateX(0)}35%{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.med-feed-shortcut,.med-feed-shortcut::before,.med-card-lotus,.med-card-lotus::before,.med-card-arrow{animation:none!important;transition:none!important}.med-feed-shortcut:active{transform:none}}

/* Wallet explanatory copy: calm spacing without changing reward rules. */
#main #coin-wallet .coin-reward-info{margin:22px 0 20px;display:grid;gap:14px}
#main #coin-wallet .coin-reward-info p{margin:0;font-size:16px;line-height:1.8;overflow-wrap:break-word}
#main #coin-wallet .coin-rules{margin:0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#main #coin-wallet .coin-rules>summary{font-size:16px;font-weight:600;line-height:1.6;cursor:pointer;min-height:44px;padding:9px 0}
#main #coin-wallet .coin-rules p{margin:12px 0 0;font-size:14px;line-height:1.85}
#main #coin-wallet .coin-rules+p.hint{margin:16px 0 24px;font-size:13px;line-height:1.85}
#main #coin-wallet #coin-history-heading{margin-top:24px;margin-bottom:14px;line-height:1.6}

.med-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}.med-title-row h1{margin:0}.med-music{max-width:100%;min-width:0}.med-music-buttons{display:flex;gap:6px;flex-wrap:wrap}.med-music-buttons button{min-height:44px;padding:7px 10px;font-size:13px;background:#f5f8f0;border-color:#dce4d5;color:#52745a}.med-music>small{display:block;font-size:12px;margin-top:4px;line-height:1.5}

/* Centered meditation music header, with quiet decorative leaves. */
.med-title-row{position:relative;isolation:isolate;overflow:hidden;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:18px;padding:16px 8px;margin:18px 0 12px}
.med-title-row h1,.med-title-row .med-music{position:relative;z-index:1}.med-title-row .med-music{width:100%}.med-music-buttons{justify-content:center;gap:10px}
#main .med-title-row .med-music-buttons button{background:rgba(215,184,112,.15);background-image:none;border:1px solid rgba(183,148,73,.32);border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65);color:#80642c;font-size:15px;font-weight:500;min-height:46px;padding:9px 16px;animation:none;text-shadow:none;transition:background-color 150ms ease}
#main .med-title-row .med-music-buttons button::before,#main .med-title-row .med-music-buttons button::after{display:none}
.med-music>small{margin-top:10px;font-size:14px;line-height:1.6;text-align:center}.med-falling-leaves{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}.med-falling-leaves i{position:absolute;top:-14px;left:9%;width:9px;height:15px;border-radius:1px 80% 1px 80%;background:#b4bd8f;opacity:0;animation:med-leaf-fall 13s linear infinite}.med-falling-leaves i:nth-child(2){left:88%;width:7px;height:12px;animation-delay:-5s;animation-duration:15s;background:#c8b583}.med-falling-leaves i:nth-child(3){left:77%;width:6px;height:10px;animation-delay:-9s;animation-duration:17s}
@keyframes med-leaf-fall{0%{transform:translate3d(0,0,0) rotate(-15deg);opacity:0}15%{opacity:.22}75%{opacity:.16}100%{transform:translate3d(14px,230px,0) rotate(35deg);opacity:0}}
@media(hover:hover) and (pointer:fine){#main .med-title-row .med-music-buttons button:hover{background-color:rgba(215,184,112,.23)}}
@media(prefers-reduced-motion:reduce){.med-falling-leaves{display:none}#main .med-title-row .med-music-buttons button{transition:none}}

.med-guided{margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fffdf7}.med-guided summary{cursor:pointer;min-height:44px;padding:9px 0;color:#80642c;font-size:15px}.med-guided .hint{font-size:13px;line-height:1.7;margin:10px 0}.med-guided iframe{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0;border-radius:10px;background:#171b17}.med-guided a{display:inline-block;min-height:44px;padding-top:12px;font-size:14px;color:#63806a}

#main .med-guided{width:100%;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}#main #med-guided-player{width:100%;max-width:100%;min-width:0;overflow:hidden;border-radius:10px;background:#171b17}#main #med-guided-player iframe{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;min-height:200px;border:0;box-sizing:border-box}.med-guided summary{overflow-wrap:anywhere}

/* Compact timer above the guided audio player. */
#main #med-timer{padding:16px;margin:14px 0;border-radius:16px}#main #med-timer h2{font-size:20px;line-height:1.5;margin:0 0 12px}#main #med-timer label{font-size:14px;margin:0 0 6px}#main #med-duration{display:block;width:150px;max-width:100%;min-height:46px;margin:0 auto 12px;padding:8px 12px;font-size:16px;line-height:1.5}#main #med-start{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 24px;margin:0;border:1px solid #9bc7dc;border-radius:14px;background:linear-gradient(180deg,#f0faff,#d4ebf6);color:#285d78;font-size:17px;font-weight:600;box-shadow:inset 0 1px 0 #ffffffb3,0 2px 5px #5187a012;text-shadow:none;animation:none}#main #med-start::before,#main #med-start::after{display:none}#main #med-timer>small{margin-top:12px;font-size:12px;line-height:1.65}#main #med-timer .med-clock{font-size:clamp(44px,12vw,64px);line-height:1.3}

.med-rank-tabs{display:flex;gap:8px;margin:12px 0}.med-rank-tabs button{font-size:14px;padding:8px 14px;min-height:44px}.med-rank-tabs button[aria-pressed="true"]{background:#edf5e9;border-color:#a9bea0;color:#456448}.med-rank-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e6ebdf;min-width:0}.med-rank-place{width:26px;flex-shrink:0;text-align:center;font-weight:600;color:#927133}.med-rank-row img{width:36px;height:36px;object-fit:cover;border-radius:50%;flex-shrink:0}.med-rank-score{flex:1;min-width:0}.med-rank-score>div{display:flex;justify-content:space-between;gap:8px;font-size:14px}.med-rank-score strong{overflow-wrap:anywhere}.med-rank-score span{white-space:nowrap}.med-rank-score progress{height:10px;margin:7px 0 0}#med-rank-more{margin-top:12px;font-size:14px}

.med-native-audio{display:block;width:100%;max-width:420px;margin:12px auto 0;height:44px}.med-music #med-music-name{overflow-wrap:anywhere;padding:0 6px}.med-music-buttons button{max-width:100%}

/* Equal-width audio controls on mobile and desktop. */
#main .med-title-row .med-music-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:420px;margin:0 auto;align-items:stretch}#main .med-title-row .med-music-buttons button{width:100%;min-width:0;min-height:48px;margin:0;padding:10px 6px;font-size:clamp(12px,3.5vw,15px);line-height:1.5;white-space:nowrap;display:flex;align-items:center;justify-content:center}

#main .med-title-row{padding-top:6px}#main .med-title-row .med-balanced-title{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:0;text-align:center;line-height:1.5}#main .med-balanced-title>span[aria-hidden]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 1.25em;font-size:.78em}#main .med-balanced-title>span:not([aria-hidden]){white-space:nowrap}

/* Quiet translucent controls, scoped to Meditation Garden. */
#main .meditation-page button,#main .meditation-page a.btn,#main #med-timer #med-start,#main .med-title-row .med-music-buttons button{background:rgba(208,178,109,.12);background-image:none;border:1px solid rgba(172,145,84,.30);border-radius:13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6);color:#796337;text-shadow:none;font-weight:500;animation:none;min-height:44px;transition:background-color 150ms ease,border-color 150ms ease}
#main .meditation-page button::before,#main .meditation-page button::after,#main .meditation-page a.btn::before,#main .meditation-page a.btn::after{display:none}
#main .meditation-page #med-pause,#main .meditation-page .med-rank-tabs button[aria-pressed="true"],#main #med-timer #med-start{background:rgba(137,175,141,.13);background-image:none;border-color:rgba(105,148,112,.34);color:#4f7258;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
@media(hover:hover) and (pointer:fine){#main .meditation-page button:hover,#main .meditation-page a.btn:hover{filter:none;background-color:rgba(208,178,109,.20)}#main .meditation-page #med-pause:hover,#main #med-timer #med-start:hover,#main .meditation-page .med-rank-tabs button[aria-pressed="true"]:hover{background-color:rgba(137,175,141,.22)}}
@media(prefers-reduced-motion:reduce){#main .meditation-page button,#main .meditation-page a.btn{transition:none}}

/* The primary start action alone receives a polished gold highlight. */
#main #med-timer #med-start{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#fff7d7 0%,#e7ce8e 45%,#c9a34d 72%,#f3dfac 100%);border:1px solid #c6a45f;color:#654a19;font-weight:700;box-shadow:inset 0 1px 2px #fffbe9,0 4px 14px #b48a3c24;min-height:50px;padding:11px 26px}
#main #med-timer #med-start::after{content:"";display:block;position:absolute;inset:-30% auto -30% -65%;width:40%;background:linear-gradient(90deg,transparent,#fffdf58c,transparent);transform:translateX(0) skewX(-18deg);pointer-events:none;animation:med-start-shine 4.5s ease-in-out infinite}
@keyframes med-start-shine{0%,55%{transform:translateX(0) skewX(-18deg);opacity:0}62%{opacity:.7}88%{transform:translateX(460%) skewX(-18deg);opacity:0}100%{transform:translateX(460%) skewX(-18deg);opacity:0}}
@media(prefers-reduced-motion:reduce){#main #med-timer #med-start::after{animation:none;display:none}}

/* Translucent gold start button with a softly sparkling gold rim. */
#main #med-timer #med-start{background:rgba(226,194,122,.18);background-image:none;border:1px solid #c6a257;color:#79581e;box-shadow:inset 0 1px 0 #fffdf0b3,0 2px 8px #b48a3c12;overflow:hidden}
#main #med-timer #med-start::after{content:"";display:block;position:absolute;inset:0;width:auto;border:1px solid #eacb80;border-radius:inherit;background:transparent;transform:none;box-shadow:inset 0 0 3px #f8e8b7;opacity:.4;pointer-events:none;animation:med-start-rim 3.8s ease-in-out infinite}
#main #med-timer #med-start::before{content:"";display:block;position:absolute;top:-1px;left:12%;width:24%;height:2px;background:linear-gradient(90deg,transparent,#fff6ce,#dbb55f,transparent);pointer-events:none;opacity:0;animation:med-start-edge 4.8s ease-in-out infinite}
@keyframes med-start-rim{0%,100%{opacity:.25}50%{opacity:.85}}
@keyframes med-start-edge{0%,25%{opacity:0;transform:translateX(0)}45%{opacity:.9}75%,100%{opacity:0;transform:translateX(220%)}}
@media(prefers-reduced-motion:reduce){#main #med-timer #med-start::before{animation:none;display:none}#main #med-timer #med-start::after{animation:none;display:block;opacity:.4}}

/* Three fixed decorative orbs: no particle creation or animation JavaScript. */
.med-feed-shortcut .med-card-orbs{position:relative;display:inline-block;flex:0 0 38px;width:38px;height:38px;margin-left:4px;pointer-events:none}
.med-card-orbs i{position:absolute;left:8px;bottom:2px;width:24px;height:24px;border-radius:50%;border:1px solid rgba(139,196,223,.4);background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.95),rgba(225,247,255,.4) 24%,rgba(158,215,239,.3) 58%,rgba(218,245,255,.12) 76%);box-shadow:inset -2px -2px 4px #78b8d320,inset 1px 1px 3px #ffffffa8;opacity:0;animation:med-card-orb-rise 7.5s ease-in-out infinite;pointer-events:none}
.med-card-orbs i:nth-child(2){left:14px;width:19px;height:19px;animation-delay:-2.5s}.med-card-orbs i:nth-child(3){left:3px;width:21px;height:21px;animation-delay:-5s}
@keyframes med-card-orb-rise{0%{transform:translateY(5px) scale(.55);opacity:0}22%{opacity:.65}55%{opacity:.48}85%,100%{transform:translateY(-27px) scale(1.08);opacity:0}}
@media(prefers-reduced-motion:reduce){.med-card-orbs i{animation:none;display:none}.med-card-orbs i:first-child{display:block;opacity:.35;transform:none}}

/* Orbs emerge concentrically from one fixed center beside the CTA. */
.med-feed-shortcut .med-card-orbs{flex-basis:48px;width:48px;height:44px;margin-left:8px}
.med-feed-shortcut .med-card-orbs i,.med-feed-shortcut .med-card-orbs i:nth-child(2),.med-feed-shortcut .med-card-orbs i:nth-child(3){left:50%;top:50%;bottom:auto;width:52px;height:52px;transform-origin:center;border-color:rgba(135,196,225,.42);background:radial-gradient(circle at 34% 29%,rgba(255,255,255,.82),rgba(225,247,255,.22) 27%,rgba(152,214,241,.24) 65%,rgba(219,246,255,.12) 80%);animation-name:med-card-orb-emerge;animation-duration:9s;animation-timing-function:ease-out}
.med-feed-shortcut .med-card-orbs i:nth-child(2){animation-delay:-3s}.med-feed-shortcut .med-card-orbs i:nth-child(3){animation-delay:-6s}
@keyframes med-card-orb-emerge{0%{transform:translate(-50%,-50%) scale(.08);opacity:0}18%{opacity:.68}50%{opacity:.43}85%,100%{transform:translate(-50%,-50%) scale(1.12);opacity:0}}
@media(prefers-reduced-motion:reduce){.med-feed-shortcut .med-card-orbs i{animation:none;display:none}.med-feed-shortcut .med-card-orbs i:first-child{display:block;transform:translate(-50%,-50%) scale(.65);opacity:.3}}

/* Soft concentric orbs originate at the start button's exact center. */
#main #med-timer #med-start{position:relative;isolation:isolate;overflow:hidden}
.med-start-label{position:relative;z-index:1}.med-start-orbs{position:absolute;inset:0;pointer-events:none;z-index:0}.med-start-orbs i{position:absolute;left:50%;top:50%;width:74px;height:74px;border-radius:50%;border:1px solid rgba(152,197,218,.4);background:radial-gradient(circle at 35% 28%,#ffffffb0,rgba(215,241,250,.16) 40%,rgba(172,218,239,.22) 70%,transparent);opacity:0;transform-origin:center;animation:med-start-orb-bloom 6s ease-out infinite;pointer-events:none}.med-start-orbs i:nth-child(2){animation-delay:-2s}.med-start-orbs i:nth-child(3){animation-delay:-4s}
@keyframes med-start-orb-bloom{0%{transform:translate(-50%,-50%) scale(.04);opacity:0}18%{opacity:.55}55%{opacity:.3}90%,100%{transform:translate(-50%,-50%) scale(1.65);opacity:0}}
@media(prefers-reduced-motion:reduce){.med-start-orbs{display:none}.med-start-orbs i{animation:none}}

/* Bright translucent sky-blue primary meditation action. */
#main #med-timer #med-start{background:linear-gradient(145deg,rgba(223,248,255,.94),rgba(132,213,247,.72));border-color:#65bde4;color:#155b80;box-shadow:inset 0 1px 2px #ffffffd9,0 3px 10px #4dadd126;font-weight:700}
#main #med-timer #med-start::after{border-color:#92dcf7;box-shadow:inset 0 0 3px #dcf7ff}
#main #med-timer #med-start::before{background:linear-gradient(90deg,transparent,#f4fdff,#8edbfa,transparent)}
@media(hover:hover) and (pointer:fine){#main #med-timer #med-start:hover{background:linear-gradient(145deg,#e7faff,#a1e0fa);border-color:#49acd9}}

/* Luminous blue meditation invitation, confined to the feed card. */
.med-feed-shortcut>a{max-width:100%;gap:8px}.med-card-blue-cta{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 18px;min-height:48px;border-radius:28px;border:1px solid #95e5ff;background:linear-gradient(180deg,#49c9fa,#138ed2 65%,#35b9ed);color:#fff;font-weight:700;font-size:clamp(17px,4.8vw,21px);line-height:1.5;text-shadow:0 1px 2px #07517b80;box-shadow:inset 0 1px 2px #e8fcff,0 3px 15px #39b8ed38}
.med-cta-stars{position:absolute;inset:0;pointer-events:none}.med-cta-stars i{position:absolute;color:#fffbe1;text-shadow:0 0 5px #fff5c9;font-style:normal;font-size:18px;line-height:1;opacity:0;animation:med-cta-twinkle 4s ease-in-out infinite}.med-cta-stars i:nth-child(1){left:9px;top:-7px}.med-cta-stars i:nth-child(2){right:12px;top:6px;animation-delay:-1.4s;font-size:13px}.med-cta-stars i:nth-child(3){right:26px;bottom:-6px;animation-delay:-2.7s;font-size:16px}
@keyframes med-cta-twinkle{0%,100%{opacity:.12;transform:scale(.6)}45%{opacity:.95;transform:scale(1)}70%{opacity:.2;transform:scale(.75)}}
.med-feed-shortcut{border-color:#d7e3df;background-color:#fcfcf5;box-shadow:inset 0 1px 0 #fff,0 2px 10px #69a7bd0c}
@media(max-width:380px){.med-card-blue-cta{padding:10px 12px;gap:6px}.med-feed-shortcut .med-card-orbs{margin-left:0;flex-basis:38px;width:38px}}
@media(prefers-reduced-motion:reduce){.med-cta-stars i{animation:none;opacity:.4;transform:none}}

.admin-member-search{margin:20px 0 24px}.admin-member-search>label{display:block;margin-bottom:8px}.admin-member-search>div{display:flex;gap:8px}.admin-member-search input{flex:1;min-width:0;width:0;margin:0}.admin-member-search button{min-height:44px;flex-shrink:0}.admin-member-search small{display:block;margin-top:8px;color:var(--muted,#7d786d)}.admin-member-search[hidden]{display:none}

.med-feed-shortcut .med-card-copy{container-type:inline-size}.med-card-heading{display:flex;align-items:center;gap:8px;white-space:nowrap}.med-feed-shortcut .med-card-heading strong{font-size:clamp(15px,5.8cqw,25px);line-height:1.6}.med-card-heading .med-card-lotus{flex:none;font-size:clamp(16px,5.8cqw,24px)}

/* Blue single-line heading with quiet, decorative sparkles. */
.med-feed-shortcut .med-card-copy{flex-basis:100%}
.med-feed-shortcut .med-card-heading{gap:6px}
.med-feed-shortcut .med-card-heading strong{position:relative;display:inline-block;white-space:nowrap;font-size:clamp(16px,6.6cqw,30px);font-weight:800;color:#1671b8;text-shadow:0 1px 0 #fff,0 0 12px #70cfff28;line-height:1.65}
.med-heading-sparkles{position:absolute;inset:0;pointer-events:none}
.med-heading-sparkles i{position:absolute;font-style:normal;font-size:12px;color:#86d8ff;text-shadow:0 0 5px #b9edff;line-height:1;animation:med-cta-twinkle 4.8s ease-in-out infinite}
.med-heading-sparkles i:nth-child(1){left:8%;top:-3px}.med-heading-sparkles i:nth-child(2){left:53%;bottom:0;animation-delay:-1.6s;font-size:9px}.med-heading-sparkles i:nth-child(3){right:0;top:0;animation-delay:-3.2s}
@media(prefers-reduced-motion:reduce){.med-heading-sparkles i{animation:none;opacity:.45;transform:none}}

#main .med-title-row .med-balanced-title{font-size:clamp(16px,4.8vw,30px);gap:6px}

/* Original translucent blue crystal ornaments. */
#main .med-balanced-title>.med-title-orb{position:relative;display:inline-block;flex:0 0 1.05em;width:1.05em;height:1.05em;border-radius:50%;border:1px solid #8bd5f3;background:radial-gradient(circle at 30% 24%,#fff 0%,#effcffed 15%,#c6f0ffb3 36%,#72c9ed91 65%,#dffaff 88%);box-shadow:inset -2px -3px 5px #4da4d238,inset 2px 2px 4px #fff,0 0 10px #80d9ff55;animation:med-orb-breathe 5s ease-in-out infinite}
#main .med-title-orb::before{content:'';position:absolute;inset:-7px;border-radius:50%;background:radial-gradient(circle,#91dfff45,transparent 70%);opacity:.35;animation:med-orb-light 5s ease-in-out infinite}
#main .med-title-orb::after{content:'✦';position:absolute;right:-.18em;top:-.2em;font-size:.55em;line-height:1;color:#f5fdff;text-shadow:0 0 3px #39b7f2,0 0 6px #a2e7ff;animation:med-cta-twinkle 4.8s ease-in-out infinite}
#main .med-title-orb:last-child,#main .med-title-orb:last-child::before,#main .med-title-orb:last-child::after{animation-delay:-2.4s}
@keyframes med-orb-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@keyframes med-orb-light{0%,100%{opacity:.3;transform:scale(.95)}50%{opacity:.8;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){#main .med-balanced-title>.med-title-orb,#main .med-title-orb::before,#main .med-title-orb::after{animation:none;transform:none}}

#main .med-balanced-title>.med-title-orb{box-sizing:border-box;aspect-ratio:1;width:1.15em;height:1.15em;flex:0 0 1.15em;border-radius:50%;border-color:#77d9ff;background:radial-gradient(circle at 30% 25%,#fff 0%,#f0fdff 13%,#a5ebff 35%,#40bdf5 67%,#b8f2ff 94%);box-shadow:inset -2px -3px 5px #188ec44a,inset 2px 2px 5px #fff,0 0 9px #68d7ff88,0 0 17px #95e5ff45}
#main .med-title-orb::after{font-size:.65em;color:#fff;text-shadow:0 0 4px #fff,0 0 8px #67d6ff}

/* Matching invitation type and original crystal ornaments on the home card. */
.med-feed-shortcut .med-card-heading strong,.med-feed-shortcut .med-card-copy>small{font-size:clamp(16px,6.7cqw,22px)}
.med-feed-shortcut .med-card-heading{gap:5px}
.med-feed-crystal{position:relative;display:inline-block;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;aspect-ratio:1;border-radius:50%;border:1px solid #77d9ff;background:radial-gradient(circle at 30% 25%,#fff 0%,#f0fdff 13%,#a5ebff 35%,#40bdf5 67%,#b8f2ff 94%);box-shadow:inset -2px -3px 5px #188ec44a,inset 2px 2px 5px #fff,0 0 9px #68d7ff88;animation:med-orb-breathe 5s ease-in-out infinite}
.med-feed-crystal::before{content:'';position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,#91dfff45,transparent 70%);animation:med-orb-light 5s ease-in-out infinite}
.med-feed-crystal::after{content:'✦';position:absolute;right:-4px;top:-5px;font-size:11px;line-height:1;color:#fff;text-shadow:0 0 4px #fff,0 0 7px #35b7ef;animation:med-cta-twinkle 4.8s ease-in-out infinite}
.med-feed-crystal:last-child,.med-feed-crystal:last-child::before,.med-feed-crystal:last-child::after{animation-delay:-2.4s}
@media(prefers-reduced-motion:reduce){.med-feed-crystal,.med-feed-crystal::before,.med-feed-crystal::after{animation:none;transform:none}}

#med-garden.med-crystal-garden{image-rendering:auto;background:radial-gradient(ellipse at 50% 35%,#e9f8fc88,transparent 65%),#fbfcf7;border-radius:18px;margin:16px 0 10px;padding:10px;box-sizing:border-box}#med-garden svg{display:block;width:100%;height:auto;max-height:360px}.med-tree-caption{text-align:center;color:#61818c;font-size:14px;line-height:1.8}.med-crystal-garden>small{display:block;text-align:center;font-size:12px}.med-tree-orb{animation:med-tree-shine 7s ease-in-out infinite}@keyframes med-tree-shine{0%,100%{opacity:.72}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.med-tree-orb{animation:none}}

/* Home meditation invitation: gentle lift and staggered crystal sparkles. */
.med-feed-shortcut .med-card-blue-cta{isolation:isolate;animation:med-home-invite 4.8s ease-in-out infinite;border-color:#c6f5ff;box-shadow:inset 0 1px 3px #fff,0 3px 18px #32b9ed50}
.med-feed-shortcut .med-card-blue-cta::before{content:'';position:absolute;inset:-4px;border:1px solid #90e5ff;border-radius:inherit;box-shadow:0 0 12px #63d7ff66;pointer-events:none;z-index:-1;animation:med-home-halo 4.8s ease-in-out infinite}
.med-feed-shortcut .med-cta-stars i{color:#fff;text-shadow:0 0 4px #fff,0 0 9px #c5f6ff;animation:med-home-sparkle 4.2s ease-in-out infinite}
.med-feed-shortcut .med-cta-stars i:nth-child(1){left:12px;top:-5px;font-size:20px;animation-delay:-.6s}
.med-feed-shortcut .med-cta-stars i:nth-child(2){right:10px;top:3px;font-size:14px;animation-delay:-2s}
.med-feed-shortcut .med-cta-stars i:nth-child(3){right:30px;bottom:-5px;font-size:18px;animation-delay:-3.4s}
@keyframes med-home-invite{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes med-home-halo{0%,100%{opacity:.2;transform:scale(.99)}50%{opacity:.65;transform:scale(1.015)}}
@keyframes med-home-sparkle{0%,100%{opacity:.15;transform:scale(.65) rotate(-8deg)}45%{opacity:1;transform:scale(1.1) rotate(8deg)}75%{opacity:.25;transform:scale(.75) rotate(0)}}
.med-feed-shortcut>a:active .med-card-blue-cta{animation:none;transform:scale(.985)}
.med-feed-shortcut>a:focus-visible .med-card-blue-cta{outline:3px solid #257fae;outline-offset:5px}
@media(prefers-reduced-motion:reduce){.med-feed-shortcut .med-card-blue-cta,.med-feed-shortcut .med-card-blue-cta::before,.med-feed-shortcut .med-cta-stars i{animation:none;transform:none}.med-feed-shortcut .med-card-blue-cta::before{opacity:.35}.med-feed-shortcut .med-cta-stars i{opacity:.65}.med-feed-shortcut>a:active .med-card-blue-cta{transform:none}}
/* Locale controls and text expansion; no external font downloads. */
.language-picker{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-left:auto}.language-picker select{width:auto;max-width:140px;min-height:44px;margin:0;padding:6px 8px;background:#fffdf8}.language-picker>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[lang="zh-CN"] body{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif}
html:not([lang="th"]) #navigation{flex-wrap:wrap;gap:8px 20px}html:not([lang="th"]) #navigation a{white-space:normal;line-height:1.5}
html:not([lang="th"]) .med-card-heading{white-space:normal}html:not([lang="th"]) .med-feed-shortcut .med-card-heading strong{white-space:normal;font-size:clamp(18px,4.8vw,24px)}html:not([lang="th"]) #main .med-balanced-title>span:not([aria-hidden]){white-space:normal}html:not([lang="th"]) .med-card-blue-cta{white-space:normal}html:not([lang="th"]) .page-heading .btn{white-space:normal}html:not([lang="th"]) #main .med-title-row .med-music-buttons button{white-space:normal;font-size:14px}html:not([lang="th"]) .med-panel{overflow-wrap:break-word}
@media(max-width:620px){.language-picker{margin:0;order:4;width:100%;justify-content:flex-end}.language-picker select{max-width:135px}html:not([lang="th"]) #navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;font-size:14px;gap:6px 14px}}
/* Language utility belongs to authentication/settings, never primary navigation. */
.page-language{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 16px;min-width:0;flex-wrap:wrap}.page-language .language-picker{margin:0;width:auto;order:initial;gap:8px;font-size:13px}.page-language .language-picker>span{position:static;clip-path:none;width:auto;height:auto;overflow:visible}.page-language .language-picker select{min-height:44px;width:auto;max-width:160px;padding:6px 9px;background:#fffdf9;border:1px solid var(--line);border-radius:9px;box-shadow:none}.page-language .language-status{font-size:13px;color:var(--danger)}.profile-language{justify-content:space-between;padding:14px 16px;border:1px solid var(--line);border-radius:14px}.profile-language h2{margin:0;font-size:17px}.profile-language .language-picker>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(max-width:430px){.auth-layout .auth-form{min-width:0;padding:22px}.auth-form .google-login{white-space:normal;overflow-wrap:anywhere}.auth-layout .auth-story{min-width:0}.page-language{margin-bottom:12px}.profile-language{gap:8px}}

/* Keep profile account settings evenly spaced and the locale control aligned. */
.profile-page>.google-link-panel{margin:24px 0 0;padding:24px}
.profile-page>.google-link-panel h2{margin:0 0 12px;font-size:clamp(20px,4.8vw,24px);line-height:1.5}
.profile-page>.google-link-panel>p{margin:0;line-height:1.8}
.profile-page>.google-link-panel>p+p,.profile-page>.google-link-panel>form{margin-top:16px}
.profile-page>.profile-language{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;margin:24px 0 0;padding:18px 24px;width:100%}
.profile-page>.profile-language h2{line-height:1.5}
.profile-page>.profile-language .language-picker{justify-self:end}
.profile-page>.profile-language .language-picker select{min-width:116px;max-width:100%;margin:0}
.profile-page>.profile-language .language-status{grid-column:1/-1}
.profile-page>.profile-language .language-status:empty{display:none}
.profile-page>.profile-language+.coin-wallet{margin-top:24px}
@media(max-width:430px){.profile-page>.google-link-panel{margin-top:20px;padding:20px}.profile-page>.profile-language{margin-top:20px;padding:16px 20px;gap:10px 12px}.profile-page>.profile-language+.coin-wallet{margin-top:20px}}

/* Meditation Garden — original morning-pond presentation, scoped to this page. */
#main .med-morning{max-width:760px;margin:0 auto;color:#354a3c}
.med-morning>.back{display:inline-block;margin-bottom:16px;font-size:13px;color:#727a6e}
.med-morning .med-hero{position:relative;text-align:center;border-radius:24px 24px 0 0;overflow:hidden;padding:18px 0 0;background:#f8f6ee}
.med-morning .med-hero .eyebrow{position:relative;z-index:1;font-size:10px;letter-spacing:2px;padding:0 16px;color:#837049}
.med-morning .med-pond{display:block;width:100%;height:150px;pointer-events:none}
#main .med-morning .med-hero h1{margin:0;padding:6px 16px 18px;font-size:clamp(23px,5.4vw,34px);font-weight:600;line-height:1.5;color:#3e4c3b;background:var(--bg);text-shadow:none;overflow-wrap:break-word}
.med-morning .med-audio-section{max-width:540px;margin:0 auto}
.med-morning .med-music{display:block;width:100%;margin:0;padding:0}
.med-morning .med-music-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#main .med-morning .med-music-buttons button{margin:0;min-width:0;min-height:44px;padding:9px 12px;line-height:1.5;font-size:14px;border-radius:24px;background:#faf7ec;color:#705e37;border:1px solid #ddd2b5;box-shadow:none;white-space:normal}
.med-morning #med-music-name{display:block;margin:8px 0 0;padding:0 8px;line-height:1.5;font-size:13px;color:#777565;overflow-wrap:anywhere}
.med-morning .med-native-audio{width:100%;max-width:none;margin:8px 0 0;height:44px;border-radius:24px;background:#eef3ef;accent-color:#76b9ce;color-scheme:light}
.med-morning .med-quiet-copy{text-align:center;font-size:14px;line-height:1.7;color:#697b65;margin:18px 8px}
.med-morning .med-panel{padding:24px;border:1px solid #dce3d6;border-radius:22px;background:#fffefa;box-shadow:0 4px 18px #52654805;margin:20px 0}
.med-morning .med-panel h2{font-size:21px;font-weight:600;line-height:1.5;margin:0 0 14px;color:#3e503f}
.med-morning .med-panel p{font-size:14px;line-height:1.8}
#main .med-morning #med-timer{position:relative;isolation:isolate;overflow:hidden;padding:24px 20px;margin:0 0 24px;border-radius:24px;border-color:#bfcfb9;background:radial-gradient(ellipse at 0 100%,#ecf2e5,transparent 48%),radial-gradient(ellipse at 100% 100%,#eff6f3,transparent 48%),#fffefa;text-align:center;box-shadow:0 5px 20px #66775a08}
#main .med-morning #med-timer h2{font-size:clamp(22px,5.3vw,28px);margin:0 0 16px;color:#3e4c3b}
#main .med-morning #med-timer label{font-size:14px;margin:0 0 6px}
#main .med-morning #med-duration{width:164px;min-height:46px;margin:0 auto 14px;border:1px solid #d6d0bd;border-radius:14px;background:#fff;font-size:16px}
#main .med-morning #med-timer #med-start{min-height:52px;max-width:100%;padding:12px 30px;border-radius:28px;border:1px solid #78b6cb;background:#ccebf5;color:#24576c;box-shadow:inset 0 1px 0 #ffffffb3,0 3px 10px #71a7b618;font-size:19px;font-weight:600;line-height:1.5;white-space:normal;animation:none;transition:transform .15s,background-color .15s}
#main .med-morning #med-timer #med-start:hover{background:#bde3ef;filter:none}
#main .med-morning #med-timer #med-start:active{transform:scale(.98)}
#main .med-morning #med-start:before,#main .med-morning #med-start:after,.med-morning .med-start-orbs{display:none;animation:none}
#main .med-morning #med-timer>small{display:block;margin:14px auto 0;max-width:340px;line-height:1.6;font-size:12px;color:#767e6f}
.med-morning .med-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.med-morning .med-stats>div{padding:12px 4px;background:#f3f6ef;border:0;border-radius:14px;text-align:center}
.med-morning .med-stats strong{font-size:28px;color:#52745a;line-height:1.5}
.med-morning .med-stats small,.med-morning .med-stats span{font-size:12px}
.med-morning .med-streak{font-size:14px;margin:14px 0;color:#65785e}
.med-morning .med-personal-growth{padding-top:14px;border-top:1px solid #e6e9df;font-size:14px}
.med-morning .med-personal-growth>a,.med-morning .med-history-link{display:inline-flex;align-items:center;min-height:44px;color:#577665;font-size:14px}
.med-morning .med-personal .med-mission{padding:16px 0 0;margin:16px 0 0;border:0;border-top:1px solid #e6e9df;border-radius:0;box-shadow:none;background:none}
.med-morning .med-personal .med-mission h2{font-size:16px;margin-bottom:8px}
.med-morning progress{height:7px;accent-color:#96b497;border-radius:6px}
.med-morning .med-community{background:#f5f7f1}
.med-morning .med-tree-panel{text-align:center;background:transparent}
.med-morning .med-crystal-garden{max-width:280px;margin:0 auto}
.med-morning .med-tree-orb{animation:none}
.med-morning .med-ranking .med-rank-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
#main .med-morning .med-rank-tabs button{font-size:13px;padding:8px 14px;min-height:44px;background:#faf8f0;box-shadow:none}
.med-morning .med-rank-row{padding:12px 0;gap:10px}
.med-morning .med-rank-row img{width:36px;height:36px}
.med-morning .med-rank-score>div{gap:8px;flex-wrap:wrap;font-size:14px}
.med-morning .med-rank-score strong{overflow-wrap:anywhere}
.med-morning .med-rank-preview .med-rank-row:nth-child(n+4),.med-morning .med-history-preview .med-history-row:nth-child(n+4){display:none}
.med-morning .med-history-row{font-size:13px;gap:12px;padding:12px 0;flex-wrap:wrap;border-bottom:1px solid #eceee5}
.med-morning .med-statistics summary{min-height:44px;cursor:pointer;font-size:16px}
.med-morning .med-private{font-size:12px;line-height:1.8;color:#7a8175;text-align:center}
.med-morning #med-error:empty{display:none}
.med-morning .med-pond-mist{animation:med-morning-mist 12s ease-in-out infinite alternate;transform-origin:center}
@keyframes med-morning-mist{from{transform:translateX(-6px);opacity:.45}to{transform:translateX(6px);opacity:.7}}
@media(max-width:430px){#main:has(.med-morning){padding:20px 16px 48px}.med-morning>.back{margin-bottom:10px}.med-morning .med-hero{padding-top:14px}.med-morning .med-pond{height:100px}.med-morning .med-hero .eyebrow{font-size:9px;letter-spacing:1.4px}#main .med-morning .med-hero h1{padding:2px 8px 14px;font-size:23px}.med-morning .med-panel{padding:20px 16px;margin:16px 0}.med-morning .med-quiet-copy{margin:14px 0;font-size:13px}#main .med-morning #med-timer{padding:20px 14px;margin-bottom:20px}.med-morning .med-music-buttons{gap:8px}.med-morning .med-music-buttons button{font-size:13px}.med-morning .med-stats strong{font-size:25px}}
@media(prefers-reduced-motion:reduce){.med-morning .med-pond-mist{animation:none}#main .med-morning *,#main .med-morning *:before,#main .med-morning *:after{animation:none!important;transition:none!important}}
#main .med-morning #med-timer:before,#main .med-morning #med-timer:after{content:"";position:absolute;bottom:12px;width:28px;height:62px;border:1px solid #b8ccb4;border-radius:100% 0 100% 0;opacity:.26;pointer-events:none;z-index:-1}
#main .med-morning #med-timer:before{left:8px;transform:rotate(-24deg)}
#main .med-morning #med-timer:after{right:8px;transform:rotate(24deg) scaleX(-1)}
/* Consistent light audio controls, including iPhone Safari. */
.med-morning .med-native-audio[hidden]{display:none}
.med-light-player{display:grid;grid-template-columns:44px auto minmax(28px,1fr) auto 44px;align-items:center;gap:9px;padding:10px 12px;margin-top:12px;border:1px solid #e2e4d7;border-radius:28px;background:#fffef8;box-shadow:0 3px 14px #7485670a;color:#596754}
#main .med-morning .med-light-player button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:transparent;color:#66745c}
#main .med-morning .med-light-player .med-player-play{background:#c6e8f5;color:#275f78;font-size:20px}
.med-player-time,.med-player-remaining{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.med-light-player .med-player-seek{appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:44px;padding:0;margin:0;border:0;box-shadow:none;cursor:pointer;background:transparent}
.med-player-seek::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(to right,#85c2db var(--played,0%),#dce2d3 var(--played,0%))}
.med-player-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border-radius:50%;border:1px solid #c0dce5;background:#fff;box-shadow:0 1px 4px #648c9b30}
.med-player-seek::-moz-range-track{height:6px;border-radius:6px;background:#dce2d3}.med-player-seek::-moz-range-progress{height:6px;border-radius:6px;background:#85c2db}.med-player-seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:1px solid #c0dce5;background:#fff}
.med-player-mute.is-muted .med-volume-waves{opacity:.2}
@media(max-width:360px){.med-light-player{gap:5px;padding:8px}.med-player-time,.med-player-remaining{font-size:11px}}
#main .med-morning .med-light-player .med-player-seek{appearance:none;-webkit-appearance:none;min-width:0;width:100%;height:44px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
#main .med-morning #med-music-toggle{display:flex;align-items:center;justify-content:center;gap:7px}
.med-audio-icon{display:block;flex-shrink:0}

/* Personal journal: quiet reading layout, isolated from the public feed. */
#main.journal-view{max-width:960px;padding:28px 24px 72px;color:#443b2e}
.journal-view .jj-profile{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border:1px solid #e8e1d3;border-radius:24px;background:#fffefa;box-shadow:0 6px 24px #725d3210}
.jj-owner{display:flex;align-items:center;gap:16px;min-width:0;color:inherit;text-decoration:none}
.jj-owner>span:last-child{min-width:0}.jj-owner img,.jj-initial{width:64px;height:64px;flex:none;border-radius:50%;object-fit:cover;background:#f1ead9}.jj-initial{display:grid;place-items:center;font-size:28px;color:#786035}
.jj-owner small{display:block;font-size:11px;letter-spacing:.14em;color:#796947;line-height:1.6}.jj-owner strong{display:block;font-size:clamp(18px,3vw,25px);font-weight:600;overflow-wrap:anywhere;line-height:1.5}
.journal-view .jj-add{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 24px;border:1px solid #c5aa6e;border-radius:16px;background:#eddfb8;color:#4b3919;font-weight:600;font-size:18px;line-height:1.5;text-decoration:none;box-shadow:0 3px 10px #8366290d;flex-shrink:0;transition:background .15s}
.jj-add:active{background:#e2d09c}.jj-hero{position:relative;padding:42px 12px 32px;isolation:isolate;overflow:hidden}.jj-hero-copy{position:relative;z-index:1}.jj-hero h1{font-size:clamp(30px,5.5vw,46px);line-height:1.4;color:#725323;margin:0;font-weight:600;max-width:85%;overflow-wrap:anywhere}
.jj-divider{display:flex;align-items:center;gap:12px;color:#a58c52;width:230px;max-width:65%;margin:15px 0 24px}.jj-divider:before,.jj-divider:after{content:'';height:1px;background:#ded2b6;flex:1}.jj-divider svg{width:26px;height:24px}
.jj-calendar{display:inline-flex;gap:12px;align-items:center;min-height:48px;padding:10px 18px;border:1px solid #d6c59e;border-radius:15px;background:#fffdf7;color:#6b5631;text-decoration:none;line-height:1.5;font-size:16px}.jj-calendar svg{width:22px;height:22px;flex:none}.jj-calendar>span:last-child{font-size:26px;margin-left:12px}
.jj-botanical{position:absolute;width:230px;height:190px;right:5px;bottom:0;color:#8f9f7b;opacity:.16;z-index:0;transform:rotate(-10deg);pointer-events:none}.jj-botanical svg{width:100%;height:100%;stroke-width:.7;fill:#d9dfc5}
.jj-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 42px}.jj-stats>div{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid #e7e0d1;background:#fffefa;border-radius:20px;padding:24px;box-shadow:0 4px 15px #71592c07}.jj-stats>div:after{content:'';position:absolute;right:-16px;bottom:-25px;width:70px;height:100px;border:1px solid #e9e5d7;border-radius:80% 0 80% 0;transform:rotate(-25deg);pointer-events:none}.jj-stats dt{font-size:16px;line-height:1.6;color:#72664f;overflow-wrap:anywhere}.jj-stats dd{order:-1;font-size:42px;line-height:1.2;color:#806027;margin:0 0 12px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.jj-section-heading{display:flex;align-items:center;flex-wrap:wrap;column-gap:14px;margin:0 0 22px}.jj-section-heading h2{font-size:clamp(24px,4vw,30px);line-height:1.5;margin:0;color:#4f402a;font-weight:600}.jj-small-lotus{width:30px;height:28px;color:#a58c52}.jj-small-lotus svg{width:100%;height:100%}.jj-section-heading p{flex-basis:100%;margin:9px 0 0;color:#756b5d;font-size:15px;line-height:1.7}.jj-section-heading p[hidden]{display:none}
#main.journal-view #posts{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.jj-entry{border:1px solid #e8e1d5;border-radius:20px;background:#fffefa;overflow:hidden}.jj-entry-link{display:flex;align-items:center;gap:24px;padding:24px;color:inherit;text-decoration:none;min-width:0}.jj-thumbnail{width:150px;height:150px;object-fit:cover;border-radius:13px;flex:none}.jj-entry-copy{min-width:0;flex:1}.jj-entry time{display:block;font-size:14px;color:#786e60;line-height:1.5}.jj-entry h3{font-size:21px;font-weight:600;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.jj-entry-copy>p{font-size:16px;color:#746c60;line-height:1.8;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line}.jj-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;font-size:13px;line-height:1.6;color:#766039;background:#f4eddd}.jj-status.is-public{color:#506848;background:#edf1e7}.jj-entry-arrow{font-size:25px;color:#a79778}.jj-empty{text-align:center;padding:38px 22px;border:1px solid #e8e1d5;border-radius:22px;background:#fffefa}.jj-empty>svg{width:56px;height:48px;color:#ab925d}.jj-empty h2{font-size:24px;color:#69522f}.jj-empty p{line-height:1.8;color:#786e60;max-width:430px;margin:12px auto 24px}
.journal-view #load-more{min-height:48px;border:1px solid #d6c59e;background:#fffdf7;color:#6b5631;border-radius:14px;padding:12px 24px;font:inherit}.journal-view a:focus-visible,.journal-view button:focus-visible{outline:3px solid #81672f;outline-offset:4px}.journal-view .jj-entry-link:active{background:#faf6ec}
@media(hover:hover){.jj-entry:hover{border-color:#cdbb94}.jj-add:hover{background:#e7d5a6}}
@media(max-width:600px){#main.journal-view{padding:20px 16px 56px}.journal-view .jj-profile{padding:18px;gap:16px;flex-wrap:wrap}.jj-owner{gap:12px;flex:1 1 170px}.jj-owner img,.jj-initial{width:52px;height:52px}.journal-view .jj-add{font-size:16px;padding:11px 18px;min-height:48px}.jj-profile>.jj-add{flex:1 1 145px}.jj-hero{padding:30px 4px 26px}.jj-hero h1{max-width:100%}.jj-botanical{width:150px;height:140px;right:-20px;opacity:.10}.jj-stats{gap:8px;margin-bottom:32px}.jj-stats>div{padding:18px 12px;border-radius:16px}.jj-stats dd{font-size:34px;margin-bottom:10px}.jj-stats dt{font-size:14px}.jj-entry-link{padding:18px;gap:14px;align-items:flex-start;flex-wrap:wrap}.jj-thumbnail{width:88px;height:100px}.jj-entry h3{font-size:18px}.jj-entry-copy>p{font-size:15px}.jj-entry-arrow{display:none}.jj-entry-copy{flex:1 1 135px}.jj-entry time{font-size:13px}}
@media(max-width:350px){.jj-stats{grid-template-columns:minmax(0,1fr)}.jj-stats>div{flex-direction:row;align-items:center;gap:20px;padding:14px 18px}.jj-stats dd{min-width:40px;font-size:30px;margin:0}.jj-stats dt{font-size:15px}.jj-thumbnail{width:100%;height:160px}.jj-calendar{padding:10px 12px;font-size:15px}}
@media(prefers-reduced-motion:reduce){.journal-view *{animation:none!important;transition:none!important}}
@media(max-width:600px){.jj-profile>.jj-add{flex:1 0 100%}}

/* Gold journal accents: local CSS only; no timers or additional requests. */
.journal-view .jj-add,.journal-view .jj-calendar{position:relative;isolation:isolate;overflow:visible;background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;border-radius:22px;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;text-shadow:0 1px 0 #ffffff66;-webkit-backdrop-filter:blur(14px) saturate(155%);backdrop-filter:blur(14px) saturate(155%)}
.journal-view .jj-add:before,.journal-view .jj-calendar:before{content:'';position:absolute;inset:1px 2px auto;height:48%;border-radius:inherit;background:linear-gradient(180deg,#ffffff70,#ffffff00);pointer-events:none;z-index:-1}
.journal-view .jj-add:after,.journal-view .jj-calendar:after{content:'';position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#efd18b88 275deg,#fff8dc 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 3.8s linear infinite}
.jj-gold-name,.journal-view .jj-hero h1{color:#806022;background:linear-gradient(110deg,#72501b 0%,#aa7c27 32%,#826023 43%,#d1a749 50%,#826023 57%,#72501b 100%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:jj-name-lustre 7s ease-in-out infinite}
.jj-avatar-glow{display:inline-flex;position:relative;flex:none;border-radius:50%;box-shadow:0 0 0 2px #e5d5a566,0 0 16px #dbb75b25}
.jj-avatar-stars{position:absolute;inset:-7px;pointer-events:none}
.jj-avatar-stars i{position:absolute;width:12px;height:12px;background:linear-gradient(135deg,#fff9dd,#c6a04a);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);animation:jj-star-glint 5.4s ease-in-out infinite;opacity:.35}
.jj-avatar-stars i:nth-child(1){right:1px;top:0}.jj-avatar-stars i:nth-child(2){left:0;top:55%;width:9px;height:9px;animation-delay:1.6s}.jj-avatar-stars i:nth-child(3){right:6px;bottom:0;width:10px;height:10px;animation-delay:3.2s}
@keyframes jj-gold-sweep{0%,15%{transform:translateX(-65%);opacity:0}22%{opacity:.65}42%{transform:translateX(65%);opacity:0}100%{transform:translateX(65%);opacity:0}}
@keyframes jj-name-lustre{0%,20%{background-position:100% 50%}65%,100%{background-position:0% 50%}}
@keyframes jj-star-glint{0%,100%{opacity:.18;transform:scale(.65) rotate(0deg)}38%{opacity:.9;transform:scale(1.12) rotate(15deg)}65%{opacity:.22;transform:scale(.7) rotate(25deg)}}
@media(prefers-reduced-motion:reduce){.journal-view .jj-add:before,.journal-view .jj-add:after,.journal-view .jj-gold-name,.journal-view .jj-avatar-stars i{animation:none!important}.journal-view .jj-add:before{display:none}.jj-avatar-stars i{opacity:.5}}
@media(forced-colors:active){.jj-gold-name{-webkit-text-fill-color:currentColor;background:none}.jj-avatar-stars,.journal-view .jj-add:after{display:none}}

/* Center the journal title and calendar, sharing the gold action treatment. */
.journal-view .jj-hero-copy{text-align:center}
.journal-view .jj-hero h1{max-width:100%;margin-inline:auto}
.journal-view .jj-divider{margin-inline:auto}
.journal-view .jj-calendar{justify-content:center;max-width:100%;min-height:52px;font-weight:600}
.journal-view .jj-calendar>span:not(:last-child){min-width:0;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.journal-view .jj-calendar:before,.journal-view .jj-calendar:after,.journal-view .jj-hero h1{animation:none!important}}
@media(forced-colors:active){.journal-view .jj-hero h1{-webkit-text-fill-color:currentColor;background:none}.journal-view .jj-calendar:after{display:none}}

/* Full-width square journal photos, with the entry text below. */
.journal-view .jj-entry-link.has-image{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
.journal-view .jj-entry-link.has-image .jj-thumbnail{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover;object-position:center;flex:none}
.journal-view .jj-entry-link.has-image .jj-entry-copy{flex:none;width:100%}
.journal-view .jj-entry-link.has-image .jj-entry-arrow{display:none}

/* Centered journal counters with a gentle gold rim. */
.journal-view .jj-stats>div{align-items:center;justify-content:flex-start;text-align:center;padding:26px 16px;gap:0;min-height:174px;isolation:isolate;overflow:visible;box-shadow:inset 0 1px 0 #fff,0 5px 18px #b1944820}
.journal-view .jj-stats dd{font-size:clamp(32px,5vw,46px);line-height:1.25;margin:0 0 14px;min-width:0;max-width:100%;color:#8a682b}
.journal-view .jj-stats dt{font-size:16px;line-height:1.65;max-width:100%;text-wrap:balance}
.journal-view .jj-stats>div:after{content:'';position:absolute;inset:-1px;width:auto;height:auto;transform:none;border:0;border-radius:inherit;padding:2px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#e0bd6d88 275deg,#fff0bd 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:boon-edge-light 5.8s linear infinite;pointer-events:none}
.journal-view .jj-stats>div:nth-child(2):after{animation-delay:-1.9s}.journal-view .jj-stats>div:nth-child(3):after{animation-delay:-3.8s}
@media(max-width:600px){.journal-view .jj-stats>div{padding:22px 10px;min-height:168px}.journal-view .jj-stats dt{font-size:14px}}
@media(max-width:350px){.journal-view .jj-stats>div{flex-direction:column;min-height:0;padding:18px}.journal-view .jj-stats dt{font-size:15px}.journal-view .jj-stats dd{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.journal-view .jj-stats>div:after{animation:none;opacity:.6}}
@media(forced-colors:active){.journal-view .jj-stats>div:after{display:none}}

/* Journal photo chooser: soft gold and restrained, staggered motion. */
#main .journal-upload:not(.has-selected) .cover-picker{position:relative;isolation:isolate;overflow:visible;min-height:132px;gap:7px;padding:20px 14px;border:1px solid #d8bc78;border-radius:18px;background:linear-gradient(145deg,#fffdf2eb,#f9e9b699 55%,#efd38b80);color:#806125;box-shadow:inset 0 1px 1px #fff,0 5px 16px #bd96351a;font-weight:600}
#main .journal-upload:not(.has-selected) .cover-picker:after{display:block;content:'';position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#e7be6588 275deg,#fff4c7 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 4.8s linear infinite}
#main .journal-upload:not(.has-selected) .cover-picker svg{width:30px;height:30px;transform-origin:50% 70%;animation:jb-photo-wiggle 5.6s ease-in-out infinite}
#main .journal-upload:not(.has-selected) .cover-picker span{font-size:16px;animation:jb-photo-word-float 5.6s ease-in-out infinite}
#main .journal-upload:not(.has-selected) .cover-picker small{font-size:13px;color:#806e48;animation:jb-photo-word-float 5.6s .25s ease-in-out infinite}
@keyframes jb-photo-wiggle{0%,62%,100%{transform:rotate(0deg)}68%{transform:rotate(-8deg)}75%{transform:rotate(7deg)}82%{transform:rotate(-4deg)}89%{transform:rotate(0deg)}}
@keyframes jb-photo-word-float{0%,62%,100%{transform:translateY(0)}76%{transform:translateY(-2px)}90%{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#main .journal-upload .cover-picker:after,#main .journal-upload .cover-picker svg,#main .journal-upload .cover-picker span,#main .journal-upload .cover-picker small{animation:none!important;transform:none!important}}
@media(forced-colors:active){#main .journal-upload .cover-picker:after{display:none}}

/* Journal submit action: translucent pale gold, shared edge animation. */
#main #editor .actions>button[type="submit"]{position:relative;isolation:isolate;overflow:visible;background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#806125;border:1px solid #d9bc728c;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;text-shadow:0 1px 0 #ffffff66}
#main #editor .actions>button[type="submit"]:after{content:'';display:block;position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#efd18b88 275deg,#fff8dc 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 3.8s linear infinite}
#main #editor .actions>button[type="submit"]:disabled:after{animation:none;opacity:.35}
@media(prefers-reduced-motion:reduce){#main #editor .actions>button[type="submit"]:after{animation:none;opacity:.6}}
@media(forced-colors:active){#main #editor .actions>button[type="submit"]:after{display:none}}

/* Clear crystal ornaments for completion and community meditation headings. */
.med-orb-heading{display:flex;align-items:center;justify-content:center;gap:12px;text-align:center}
.med-orb-heading>span:not(.med-heading-crystal){min-width:0;overflow-wrap:anywhere}
.med-heading-crystal{display:inline-block;flex:0 0 22px;width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:1px solid #c0d6df;background:radial-gradient(circle at 30% 24%,#fff 0%,#fff 12%,#f5fcffb3 30%,#d9edf380 62%,#faffff 85%);box-shadow:inset 2px 2px 4px #fff,inset -2px -2px 4px #acc9d475,0 0 9px #d7edf480}

.med-community-periods{margin:18px 0;text-align:left}
.med-community-periods>summary{cursor:pointer;min-height:48px;padding:12px 16px;border:1px solid #dac58f;border-radius:15px;background:linear-gradient(145deg,#fffdf2,#f7edcf);color:#755823;line-height:1.6}
.med-community-periods>summary:focus-visible{outline:3px solid #977536;outline-offset:3px}
.med-period-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.med-period-totals>div{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 10px;border:1px solid #e8dfcb;border-radius:16px;background:#fffefa;min-width:0}
.med-period-totals strong{font-size:30px;color:#806125;margin:8px 0;overflow-wrap:anywhere;max-width:100%}
.med-community-periods>p{font-size:13px;line-height:1.7;color:#776d5a}

/* Compact writing area and centered journal form actions. */
#main #editor #body{width:100%;min-height:132px;height:132px;max-height:300px;resize:vertical;overflow-y:auto}
#main #editor .actions{justify-content:center;flex-wrap:wrap}

/* One centered, comfortably wide journal save action. */
#main #editor .actions>button[type="submit"]{min-width:min(220px,100%);max-width:100%;padding-inline:36px}

/* Clear selected reaction state without changing the action's dimensions. */
#main .social-bar .boon-button[aria-pressed="true"]{color:#154f8c;background:#e2effb;font-weight:800;box-shadow:inset 0 0 0 1.5px #87afd6}
#main .social-bar .boon-button[aria-pressed="true"]>span{font-weight:800}
#main .social-bar .boon-button[aria-pressed="true"]:hover:not(:disabled){color:#104274;background:#d4e7f9;box-shadow:inset 0 0 0 1.5px #709dc8}

/* Compact journal totals: circular numbers with captions underneath. */
.journal-view .jj-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 28px}
.journal-view .jj-stats>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.journal-view .jj-stats>div:after{display:none;animation:none}
.journal-view .jj-stats dd{display:grid;place-items:center;flex:none;width:min(88px,100%);aspect-ratio:1;margin:0 0 9px;padding:5px;border:1px solid #dfcea8;border-radius:50%;background:#fffdf6;color:#806027;font-size:clamp(20px,4.5vw,28px);font-weight:600;line-height:1;box-shadow:inset 0 1px 0 #fff;overflow-wrap:anywhere}
.journal-view .jj-stats dt{font-size:12px;line-height:1.6;font-weight:400;text-align:center;max-width:140px;text-wrap:balance}
@media(max-width:350px){.journal-view .jj-stats{gap:8px}.journal-view .jj-stats dd{width:min(72px,100%)}.journal-view .jj-stats dt{font-size:11px}}

/* Full-frame home feed; other routes retain their existing layouts. */
#main.fullframe-feed{max-width:740px;padding-left:20px;padding-right:20px}
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts),#main.fullframe-feed :is(#posts,#news-list,#publicity-posts) .feed-news>.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts) .card{border:1px solid #e7e3d9;border-radius:12px;box-shadow:none;background:#fff;transform:none;overflow:hidden;min-width:0}
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts) .card:hover{transform:none;box-shadow:none}
#main.fullframe-feed .card-author{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:16px 16px 6px;margin:0;border:0}
#main.fullframe-feed .card-author .member-link{min-width:0;max-width:100%;overflow-wrap:anywhere}
#main.fullframe-feed .card-author .member-link strong{font-size:15px}
#main.fullframe-feed .card-author .avatar{width:38px;height:38px}
#main.fullframe-feed .post-date{font-size:12px;color:#7c796f}
#main.fullframe-feed .card-content{padding:10px 16px 16px}
#main.fullframe-feed .card-content h3{font-size:17px;margin:0 0 6px}
#main.fullframe-feed .card-content .excerpt{font-size:15px;line-height:1.75;-webkit-line-clamp:3;white-space:pre-line;overflow-wrap:anywhere;margin:0}
#main.fullframe-feed .card-image{width:100%;aspect-ratio:auto;max-height:none;border-radius:0;background:#f6f4ee}
#main.fullframe-feed .card-image>img,#main.fullframe-feed .ad-image{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;border-radius:0;margin:0;background:#f6f4ee}
#main.fullframe-feed .text-post-label{padding:8px 16px 0}
#main.fullframe-feed .social-bar{padding:12px 16px;gap:8px;border-top:1px solid #eeeae2}
#main.fullframe-feed .card-admin-actions{padding:8px 16px;border-top:1px solid #f1eee7}
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.feed-news{margin:0;padding:12px 0;background:transparent;border:0}
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.feed-news>h2,#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.feed-news>.back{padding:0 16px}
@media(max-width:600px){#main.fullframe-feed{padding-left:16px;padding-right:16px}#main.fullframe-feed :is(#posts,#news-list,#publicity-posts){width:calc(100% + 32px);max-width:none;margin-left:-16px;margin-right:-16px;gap:12px}#main.fullframe-feed :is(#posts,#news-list,#publicity-posts) .card{border-radius:0;border-left:0;border-right:0}#main.fullframe-feed .card-image>img,#main.fullframe-feed .ad-image{max-height:none}#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.ranking-panel,#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.game-invite,#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.install-invite,#main.fullframe-feed :is(#posts,#news-list,#publicity-posts)>.daily-coin-invite{width:calc(100% - 32px);margin:8px 16px}#main.fullframe-feed .social-bar{padding:10px 12px;flex-wrap:wrap}}

/* Jodboon shared reaction picker, counts and short local effects. */
.jb-reaction-button{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;min-height:44px}
.jb-reaction-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;font-size:24px;line-height:1;flex:none}
.jb-reaction-orb{display:inline-block;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 4%,#e3faff 24%,#89d9ef 65%,#50a9d2);border:1px solid #83c1d9;box-shadow:inset -2px -2px 4px #fff9;position:relative}
.jb-reaction-orb:after{content:'✦';position:absolute;right:-5px;top:-7px;font-size:14px;color:#ad8431}
.jb-reaction-summary{position:relative;font-size:13px;color:#6d716d}
.jb-reaction-summary>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:36px;width:max-content}
.jb-reaction-summary>summary::-webkit-details-marker{display:none}
.jb-reaction-summary>summary>span{display:flex}.jb-reaction-summary .jb-reaction-icon{width:21px;font-size:19px}
.jb-reaction-summary>div{display:flex;flex-wrap:wrap;gap:8px 14px;padding:8px 0;max-width:280px}.jb-reaction-summary>div>span{display:inline-flex;gap:5px;align-items:center}
.jb-reaction-picker{position:fixed;z-index:10000;display:flex;justify-content:space-around;align-items:center;box-sizing:border-box;padding:8px 4px;background:#fffdf7;border:1px solid #e2dac5;border-radius:36px;box-shadow:0 8px 28px #57432426;animation:jb-reaction-open .18s ease-out}
.jb-reaction-picker>button{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:48px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;touch-action:none}
.jb-reaction-picker .jb-reaction-icon{font-size:29px;width:30px;height:30px;transition:transform .18s cubic-bezier(.2,.8,.3,1.3)}
.jb-reaction-picker button:hover .jb-reaction-icon,.jb-reaction-picker button:focus-visible .jb-reaction-icon,.jb-reaction-picker .jb-reaction-hover .jb-reaction-icon{transform:translateY(-5px) scale(1.18)}
.jb-reaction-tooltip{pointer-events:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:8px;background:#554f42;color:white;font-size:12px;white-space:nowrap;opacity:0}
.jb-reaction-picker button:hover .jb-reaction-tooltip,.jb-reaction-picker button:focus-visible .jb-reaction-tooltip,.jb-reaction-hover .jb-reaction-tooltip{opacity:1}
.jb-reaction-picker button:first-child .jb-reaction-tooltip{left:0;transform:none}.jb-reaction-picker button:last-child .jb-reaction-tooltip{left:auto;right:0;transform:none}
.jb-reaction-picker button[aria-pressed=true]{background:#eaf4f6}.jb-reaction-picker button:focus-visible,.jb-reaction-button:focus-visible,.jb-reaction-summary>summary:focus-visible{outline:2px solid #347a9d;outline-offset:3px}
.jb-reaction-effect{position:fixed;z-index:10001;pointer-events:none;color:#cba249}.jb-reaction-effect>span{position:absolute;font-size:20px;animation:jb-reaction-float 1s var(--delay) ease-out both}.jb-reaction-effect .jb-reaction-orb{width:17px;height:17px}
@keyframes jb-reaction-float{0%{transform:translate(-50%,0) scale(.5);opacity:0}20%{opacity:1}100%{transform:translate(calc(-50% + var(--dx)),-75px) scale(1.1);opacity:0}}
@keyframes jb-reaction-open{from{transform:translateY(5px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.jb-reaction-picker,.jb-reaction-effect>span{animation:none}.jb-reaction-effect{display:none}.jb-reaction-picker .jb-reaction-icon{transition:none}.jb-reaction-picker button .jb-reaction-icon{transform:none!important}}
.jb-reaction-picker>button{background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
.jb-reaction-picker>button:before,.jb-reaction-picker>button:after{display:none!important}
.jb-reaction-picker>button[aria-pressed=true]{background:#eaf4f6!important}
#main .social-bar .jb-reaction-button .jb-reaction-icon{font-size:23px;min-width:26px;margin-right:4px}
#main .social-bar .jb-reaction-button{min-height:44px}
.jb-reaction-effect-sadhu>span{color:#bd9239;text-shadow:0 0 9px #e9ce7a;animation-name:jb-reaction-bless}
@keyframes jb-reaction-bless{0%{transform:translate(-50%,0) scale(.4);opacity:0}25%{opacity:1}100%{transform:translate(calc(-50% + var(--dx)),-40px) scale(1.5);opacity:0}}

/* Classic clear blue orb for the anumodana picker, counts and effects. */
.jb-reaction-classic-orb{display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:middle;flex:none}
.jb-reaction-picker .jb-reaction-classic-orb{width:30px;height:30px}
.jb-reaction-summary .jb-reaction-classic-orb{width:19px;height:19px}
.jb-reaction-effect .jb-reaction-classic-orb{width:20px;height:20px}

/* Keep transient particles above the label and invisible when animation stops. */
.jb-reaction-effect{width:0;height:0}
.jb-reaction-effect>span{left:0;top:0;opacity:0;animation-duration:.75s}

/* Journal entries share the home feed's edge-to-edge mobile image treatment. */
#main.journal-view #posts{max-width:700px;margin-inline:auto}
#main.journal-view .jj-entry{border-radius:12px;box-shadow:none;background:#fff}
#main.journal-view .jj-entry-link{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0}
#main.journal-view .jj-entry-link .jj-thumbnail{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:0;flex:none}
#main.journal-view .jj-entry-copy{box-sizing:border-box;flex:none;width:100%;padding:16px}
#main.journal-view .jj-entry time{margin-bottom:8px}
#main.journal-view .jj-entry-arrow{display:none}
@media(max-width:600px){
 #main.journal-view #posts{width:calc(100% + 32px);max-width:none;margin-inline:-16px;gap:12px}
 #main.journal-view .jj-entry{border-radius:0;border-left:0;border-right:0}
}

/* Quick composer: optional phrase suggestions below the story. */
.compact-post .story-presets.quick-story-presets{display:flex;gap:8px;margin:2px 0 16px}.compact-post #editor .quick-story-presets button{min-height:44px;max-width:100%;white-space:normal;text-align:start;font-size:13px;background:#f5f8f6;border-color:#d8e3df;color:#47655c}.compact-post #editor .quick-story-presets button:focus-visible{outline:2px solid #528e98;outline-offset:2px}
/* Independent mini games hub and retreat kitchen. */
.jb-games,.jb-kitchen{max-width:850px;margin:0 auto;padding:16px}.jb-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.jb-game-card,.jb-kitchen-counter,.jb-kitchen-upgrade{padding:24px;border:1px solid #dddcca;border-radius:22px;background:#fffdf7}.jb-game-crystal{background:#edf6fa}.jb-game-kitchen{background:#fff3df}.jb-game-symbol,.jb-kitchen-hero>span{font-size:56px}.jb-game-card h2{font-size:24px}.jb-kitchen-hero{text-align:center;background:#f5ead7;padding:24px;border-radius:24px}.jb-kitchen-stats{display:flex;flex-wrap:wrap;gap:18px;margin:24px 0}.jb-kitchen-stats strong{display:block;font-size:26px}.jb-kitchen-counter{text-align:center}.jb-kitchen-ingredients{display:flex;gap:12px;justify-content:center;margin:24px 0}.jb-kitchen-ingredients button{flex:1;max-width:140px;min-width:0;min-height:90px;font-size:32px;border:2px solid #dbded3;background:#fafbf5;border-radius:16px}.jb-kitchen-ingredients button span{display:block;font-size:15px;overflow-wrap:anywhere}.jb-kitchen-ingredients button[aria-pressed=true]{border-color:#428780;background:#e3f1eb}.jb-kitchen button:focus-visible{outline:3px solid #377b85;outline-offset:3px}.jb-kitchen button{min-height:44px;white-space:normal}.jb-kitchen-upgrade{margin-top:20px}.jb-kitchen-recipe{font-size:22px}.jb-kitchen button:disabled{opacity:.5}@media(max-width:600px){.jb-games-grid{grid-template-columns:1fr}.jb-games,.jb-kitchen{padding:4px}.jb-kitchen-counter{padding:18px 12px}.jb-kitchen-ingredients{gap:6px}}
.jb-notifications{max-width:760px;margin:auto}.jb-notice-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.jb-notice-heading h1{margin:0;font-size:clamp(26px,5vw,36px)}.jb-notice-menu{position:relative}.jb-notice-menu summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid #ded9ca;border-radius:50%;color:#786a4e}.jb-notice-menu summary::-webkit-details-marker{display:none}.jb-notice-menu button{position:absolute;right:0;top:50px;width:240px;z-index:10;background:#fffdf8!important;color:#534b3b!important;box-shadow:0 8px 25px #4c443315!important;font-size:14px!important}.jb-notice-filters{display:flex;gap:10px;margin:22px 0}.jb-notice-filters button{min-height:44px;padding:8px 20px;border-radius:24px;background:transparent!important;color:#655e50!important;box-shadow:none!important;font-size:14px!important}.jb-notice-filters button[aria-pressed=true]{background:#ece4ce!important;border-color:#c5ae70}.jb-notice-group{font-size:15px;margin:22px 12px 8px}.jb-notice-row{display:flex;align-items:flex-start;gap:14px;padding:15px 12px;border-bottom:1px solid #e9e6dd;color:#4e4a40;text-decoration:none;border-radius:10px;transition:background .15s}.jb-notice-row.is-unread{background:#f0f3e9}.jb-notice-row:hover,.jb-notice-row:active{background:#e9eee3}.jb-notice-row:focus-visible,.jb-notice-menu summary:focus-visible{outline:2px solid #7b8d6f;outline-offset:2px}.jb-notice-avatar{position:relative;flex:0 0 52px;width:52px;height:52px}.jb-notice-avatar .avatar,.jb-notice-avatar img{width:52px!important;height:52px!important;border-radius:50%;object-fit:cover}.jb-notice-type{position:absolute;bottom:-2px;right:-2px;background:#e8dfc6;border:2px solid #fffdf7;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-size:13px}.jb-notice-copy{flex:1;min-width:0;overflow-wrap:anywhere}.jb-notice-copy>strong,.jb-notice-copy>span,.jb-notice-copy>time{display:block}.jb-notice-copy strong{font-weight:600;font-size:16px}.jb-notice-copy>span{font-size:15px;line-height:1.55}.jb-notice-copy time{font-size:12px;color:#777565;margin-top:5px}.jb-notice-dot{flex:0 0 8px;height:8px;border-radius:50%;background:#9b8347;margin-top:8px}.jb-notice-empty{text-align:center;padding:60px 20px;color:#777363}.jb-notice-empty>span{font-size:54px;color:#9eaf88}.jb-notice-empty h2{font-size:21px}.jb-notice-empty p{max-width:380px;margin:auto}.jb-notice-copy .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:375px){.jb-notice-row{gap:10px;padding:13px 8px}.jb-notice-avatar{flex-basis:48px;width:48px;height:48px}.jb-notice-avatar .avatar,.jb-notice-avatar img{width:48px!important;height:48px!important}}@media(prefers-reduced-motion:reduce){.jb-notice-row{transition:none}}

.med-live-community{padding:16px 18px;margin:18px 0;border-radius:16px;background:#eaf1e7;color:#435e4e}.med-live-community p{font-weight:600;font-size:clamp(18px,4vw,24px);margin:0 0 6px;overflow-wrap:anywhere}.med-live-community small{font-size:12px;line-height:1.6}

/* Bright blue meditation progress, including native Safari and Firefox. */
.meditation-page progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:10px;border:0;border-radius:999px;overflow:hidden;background:#e0f3fc;color:#29afea;accent-color:#29afea}
.meditation-page progress::-webkit-progress-bar{background:#e0f3fc;border-radius:999px}
.meditation-page progress::-webkit-progress-value{background:#29afea;border-radius:999px}
.meditation-page progress::-moz-progress-bar{background:#29afea;border-radius:999px}

/* Home feed: portrait images stop at width:height 9:16. */
#main.fullframe-feed :is(#posts,#news-list,#publicity-posts) .card{container-type:inline-size}
#main.fullframe-feed .card-image>img,#main.fullframe-feed .ad-image{height:auto;max-height:calc(100cqw * 16 / 9);object-fit:cover;object-position:center}

/* Keep the date at the right, while long author names wrap independently. */
#main.fullframe-feed .card-author{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:8px 12px}
#main.fullframe-feed .card-author .member-link{min-width:0;align-items:center}
#main.fullframe-feed .card-author .member-link .avatar{flex-shrink:0}
#main.fullframe-feed .card-author .member-link strong{min-width:0;white-space:normal;overflow-wrap:anywhere}
#main.fullframe-feed .card-author .post-date{justify-self:end;text-align:right;font-size:11px;line-height:1.5;margin:0;padding-top:6px}
#main.fullframe-feed .card-author .post-date summary{white-space:nowrap}
#main.fullframe-feed .card-author .post-date time{font-size:10px;max-width:110px;white-space:normal}
@media(max-width:375px){#main.fullframe-feed .card-author{column-gap:8px}}

.profile-page .profile-meditation-total{position:relative;margin-top:12px;padding-top:10px;border-top:1px solid #e8d9ad;color:#946b21;line-height:1.6;overflow-wrap:anywhere}.profile-page .profile-meditation-total>span:not(.profile-med-spark){display:block;font-size:11px}.profile-page .profile-meditation-total strong{font-size:16px;font-weight:700;color:#956814;text-shadow:0 0 9px #ebcc7850}.profile-page .profile-meditation-total small{color:#8b6a2d;font-size:11px}.profile-page .profile-med-spark{display:block;color:#c69935;font-size:17px}@media(prefers-reduced-motion:no-preference){.profile-page .profile-med-spark{animation:profile-med-shine 4s ease-in-out infinite}@keyframes profile-med-shine{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}}
/* Dhamma Journal: shared post infrastructure, distinct reading-first presentation. */
.dhamma-journal,.dhamma-editor{max-width:780px;margin:auto}.dhamma-journal .grid{grid-template-columns:minmax(0,1fr)}.dhamma-type{display:block;font-size:12px;font-weight:600;letter-spacing:.04em;color:#64765a;margin:0 0 8px}.dhamma-card{background:#fffdf7;border:1px solid #e5dfce;border-radius:18px;overflow:hidden}.dhamma-card .card-content{padding:22px}.dhamma-card .card-content>small{color:#847c6a;font-size:12px}.dhamma-card h3{font-size:22px;line-height:1.6;margin:10px 0}.dhamma-card .excerpt{font-size:16px;line-height:1.85;white-space:pre-line}.dhamma-source{display:flex;flex-wrap:wrap;gap:6px 12px;margin:12px 0;color:#7d7869;font-size:13px;overflow-wrap:anywhere}.dhamma-source a{color:#566f60}.dhamma-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.dhamma-stats>div{text-align:center;min-width:0}.dhamma-stats strong{display:grid;place-items:center;border:1px solid #dacfad;border-radius:50%;width:64px;height:64px;margin:0 auto 8px;font-size:24px;color:#8c703d;background:#faf6e9}.dhamma-stats span{font-size:13px;overflow-wrap:anywhere}.dhamma-search{margin:20px 0}.dhamma-search>div{display:flex;gap:10px}.dhamma-search input{min-width:0;flex:1}.dhamma-source-fields{border:1px solid #e4e0d3;border-radius:14px;padding:16px;margin:20px 0}.dhamma-source-fields select{width:100%;min-height:44px}.dhamma-editor #body{font-size:17px;line-height:1.9}.dhamma-editor .journal-upload{margin-top:12px}.member-content-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.member-content-tabs button{font-size:14px;min-height:44px;padding:8px 14px}.member-content-tabs button[aria-pressed=true]{background:#eee8d6;color:#725e30}.dhamma-report{font-size:13px;margin:16px 0}#navigation{overflow-x:auto;scrollbar-width:thin}#navigation>a{flex-shrink:0}@media(max-width:430px){.dhamma-card .card-content{padding:18px}.dhamma-search>div{flex-wrap:wrap}.dhamma-search input{flex-basis:100%}.dhamma-journal .page-heading{flex-wrap:wrap}}

/* Profile identity: name and lifetime meditation stay beneath the photo. */
.profile-page .profile-identity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;margin-bottom:24px}.profile-person-column,.profile-rewards-column{min-width:0}.profile-person-column .profile-photo{width:fit-content;margin:0 auto}.profile-person-column .profile-name-block{text-align:center;margin-top:10px}.profile-person-column .profile-name-block p{margin:0;font-size:17px;line-height:1.5}.profile-person-column .profile-meditation-total{margin-top:8px;padding-top:8px}.profile-person-column .profile-meditation-total strong,.profile-person-column .profile-meditation-total small{display:block}.profile-rewards-column .posting-star-award{margin:16px auto 0;max-width:145px}.profile-page .profile-rewards-column .profile-coin-summary{width:100%}

.dhamma-body-row{display:flex;align-items:flex-start;gap:16px}.dhamma-body-row>.body{flex:1;min-width:0;overflow-wrap:anywhere}.dhamma-body-row>.visibility.visibility-icon{position:static;flex:0 0 26px;margin:6px 0 0 auto}

.dhamma-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}.dhamma-card-heading .dhamma-type{margin:0}.dhamma-card-heading time{flex-shrink:0;text-align:right;font-size:12px;color:#847c6a}.dhamma-card .dhamma-author-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap}.dhamma-author-row .member-link{min-width:0;overflow-wrap:anywhere}.dhamma-author-row .member-link .avatar{flex-shrink:0}.dhamma-author-row .jj-status{flex-shrink:0;margin:0 0 0 auto;font-size:11px}

/* Separate profile links from the notification destination. */
.jb-notice-row{position:relative}.jb-notice-person,.jb-notice-destination{color:inherit;text-decoration:none}.jb-notice-person,.jb-notice-avatar{position:relative;z-index:1}.jb-notice-destination{display:block;font-size:15px;line-height:1.55}.jb-notice-destination::after{content:"";position:absolute;inset:0;border-radius:10px}.jb-notice-person:hover{text-decoration:underline}.jb-notice-person:focus-visible,.jb-notice-avatar:focus-visible{outline:2px solid #7b8d6f;outline-offset:3px}.jb-notice-destination:focus-visible{outline:none}.jb-notice-destination:focus-visible::after{outline:2px solid #7b8d6f;outline-offset:2px}

.jb-reactor-list{width:min(300px,calc(100vw - 64px));max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:8px;margin:8px 0}.jb-reactor-person{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px;color:inherit;text-decoration:none}.jb-reactor-person:hover{background:#f0f3e9}.jb-reactor-person>img{width:40px;height:40px;object-fit:cover;border-radius:50%}.jb-reactor-person>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.jb-reactor-person:focus-visible{outline:2px solid #347a9d}.jb-reactor-list>p:empty{display:none}

.jb-notice-avatar .jb-notice-type .jb-notice-orb{width:20px!important;height:20px!important;display:block;object-fit:contain}.jb-notice-type:has(.jb-notice-orb){background:#eefaff;border-color:#fffdf7}

.jb-publicity-video{display:block;width:100%;max-height:80vh;aspect-ratio:16/9;object-fit:contain;background:#101410;border-radius:0}.jb-publicity-video[hidden]{display:none}#publicity-video-preview{margin:12px 0;border-radius:14px}

/* Portrait-first announcement players; retain the full image without cropping. */
.jb-publicity-video{width:min(100%,50.625vh);aspect-ratio:9/16;max-height:none;margin-inline:auto;object-fit:contain}

.jb-featured-video{min-width:0}.jb-featured-video>h2{font-size:16px;color:var(--muted);margin:0;padding:14px 16px;background:var(--paper)}.jb-featured-video>.card{margin:0}

.jb-video-player{width:min(100%,50.625vh);margin-inline:auto;background:#f6f4ee}.jb-video-stage{position:relative}.jb-video-stage>.jb-publicity-video{width:100%;background:#f6f4ee;cursor:pointer}.jb-video-controls{position:absolute;inset:0;pointer-events:none}.jb-video-player .jb-video-controls button{position:absolute;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0!important;margin:0!important;background:rgba(0,0,0,.10)!important;color:rgba(255,255,255,.9)!important;border:1px solid rgba(255,255,255,.58)!important;box-shadow:none!important;border-radius:50%!important;pointer-events:auto;transition:opacity .15s}.jb-video-controls button svg{width:23px;height:23px;color:inherit;stroke-width:1.4}.jb-video-controls button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.jb-video-controls [data-video-action="sound"]{top:12px;right:12px;width:44px;height:44px;opacity:.8}.jb-video-controls [data-video-action="play"]{top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px}.jb-video-controls [data-video-action="play"] svg{width:32px;height:32px}.jb-video-player.is-playing [data-video-action="play"]{opacity:0}.jb-video-player.is-playing [data-video-action="play"]:focus-visible{opacity:1}.jb-video-controls button:focus-visible{outline:2px solid white;outline-offset:3px}.jb-video-controls [data-video-seek]{position:absolute;bottom:6px;left:12px;width:calc(100% - 24px);height:24px;min-height:24px;margin:0;padding:0;border:0;box-shadow:none;background:transparent;accent-color:rgba(255,255,255,.85);pointer-events:auto;opacity:.75}.jb-video-status{font-size:13px;color:#6b6352;padding:8px;margin:0}.jb-video-status:empty{display:none}@media(prefers-reduced-motion:reduce){.jb-video-controls button{transition:none}}

/* Consistency recognition: separate from post cards and reaction rankings. */
.consistent-card{min-width:0;width:100%;box-sizing:border-box;padding:24px;background:#fffdf8;border:1px solid #e6dfcf;border-radius:24px;color:#4e493b;box-shadow:0 5px 18px #5c4b2510}
.consistent-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.consistent-header>div{flex:1;min-width:0}.consistent-header h2{font-size:1.3rem;line-height:1.5;margin:0;color:#454334;overflow-wrap:anywhere}.consistent-lotus{width:46px;height:46px;flex-shrink:0;color:#b49751}.consistent-month{color:#92763a;margin:3px 0 0;font-size:.95rem}.consistent-all{display:inline-block;padding:10px 14px;border-radius:22px;background:#eef1e6;color:#51634b;font-size:.9rem;text-decoration:none}.consistent-subtitle{font-size:.95rem;color:#777365;line-height:1.6;margin:16px 0}.consistent-list{list-style:none;margin:0;padding:0}.consistent-row{display:flex;align-items:center;gap:12px;padding:15px 10px;border-bottom:1px solid #ede8de;min-width:0}.consistent-rank-1{background:#fbf5e5;border:1px solid #e6d5a5;border-radius:16px}.consistent-medal{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;color:#686252;font-weight:600;font-size:1rem}.consistent-rank-1 .consistent-medal{background:#ecdaab;border:1px solid #b6984d;color:#765919}.consistent-rank-2 .consistent-medal{background:#e9eae7;border:1px solid #b9beb9;color:#626b67}.consistent-rank-3 .consistent-medal{background:#eedccd;border:1px solid #c2a087;color:#8e6749}.consistent-person{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-decoration:none;color:inherit;padding:3px 0}.consistent-person .avatar{width:50px;height:50px;flex:0 0 50px;border-radius:50%;object-fit:cover}.consistent-person>span{min-width:0}.consistent-person strong{display:block;font-size:1rem;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.consistent-stats{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:.88rem;color:#777365;margin-top:4px}.consistent-card footer{background:#f0f2e9;border-radius:14px;padding:16px;font-size:.85rem;line-height:1.7;color:#64705a;margin-top:18px}.consistent-person:focus-visible,.consistent-all:focus-visible{outline:2px solid #8d793e;outline-offset:3px}
@media(max-width:430px){.consistent-card{padding:16px 12px;border-radius:18px}.consistent-header{gap:9px}.consistent-header h2{font-size:1.12rem}.consistent-lotus{width:32px;height:32px}.consistent-all{margin-left:auto}.consistent-row{gap:8px;padding:13px 5px}.consistent-person{gap:9px}.consistent-person .avatar{width:44px;height:44px;flex-basis:44px}.consistent-stats{gap:4px 10px}.consistent-card footer{padding:12px}}

/* Boon Room: lightweight 2D stage, scoped to this feature. */
.boon-room{max-width:1000px;margin:auto;color:#665c46}.br-status{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf8;border:1px solid #e6dfca;border-radius:22px;padding:12px 18px}.br-status h1{font-size:1.15rem;margin:0;color:#507487}.br-status h1 span{color:#72a66a}.br-status>span{font-size:.9rem}.boon-room #br-error{font-size:.85rem;min-height:1.3em;margin:6px}.br-stage{height:520px;position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(#f8f0dc 0 35%,#eee1c6 36%,#fffaf0 65%,#f0e6d2);border:1px solid #dfd0ad;isolation:isolate}.br-stage:before{content:'';position:absolute;inset:38% -40% -50%;background:repeating-linear-gradient(90deg,transparent 0 90px,#c6af8626 91px 92px),repeating-linear-gradient(0deg,transparent 0 65px,#c6af8626 66px 67px);transform:perspective(300px) rotateX(35deg)}.br-window{position:absolute;top:4%;width:20%;height:29%;border-radius:100px 100px 0 0;background:linear-gradient(#cee9f5,#fff);border:10px solid #fdf8e8;box-shadow:0 0 0 2px #dcc99d}.br-window-left{left:8%}.br-window-right{right:8%}.br-shrine{position:absolute;top:4%;left:37%;width:26%;height:30%;background:#fff8e6;border:2px solid #ddc48b;border-radius:70% 70% 14px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b99b55}.br-shrine span{font-size:72px;line-height:1}.br-shrine b{font-size:10px;letter-spacing:.2em}.br-plant{position:absolute;top:24%;font-size:52px}.br-plant-left{left:1%}.br-plant-right{right:1%}.br-cushion{position:absolute;top:48%;width:65px;height:25px;border-radius:50%;background:#fcf8e9;box-shadow:0 7px 0 #d5c5a3}.br-cushion-left{left:3%}.br-cushion-right{right:3%}.br-avatar{position:absolute;width:80px;transform:translate(-50%,-100%);transition:left .14s linear,top .14s linear;text-align:center;will-change:left,top}.br-avatar a{display:flex;justify-content:center;align-items:center;gap:3px;background:#fffffff0;border-radius:18px;padding:4px;color:#5d5a4a;font-size:10px;text-decoration:none;max-width:100%}.br-avatar a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.br-avatar a img{width:18px;height:18px;border-radius:50%;flex-shrink:0}.br-avatar a b{color:#6c9c6e;font-size:8px}.br-figure{height:84px;width:56px;position:relative;margin:auto;filter:drop-shadow(0 4px 2px #8f77422a)}.br-head{position:absolute;z-index:3;left:12px;top:1px;width:32px;height:34px;border-radius:45% 45% 48% 48%;background:#f4d4bb;border-top:7px solid #55483d;box-sizing:border-box}.br-head:before,.br-head:after{content:'';position:absolute;top:11px;width:3px;height:4px;border-radius:50%;background:#65554a}.br-head:before{left:7px}.br-head:after{right:7px}.br-head i{position:absolute;bottom:5px;left:13px;width:7px;height:3px;border-bottom:1px solid #a77966;border-radius:50%}.br-body{position:absolute;left:15px;top:32px;width:26px;height:29px;border-radius:10px 10px 6px 6px;background:#fffff7;border:1px solid #ded7bd;z-index:2}.br-arm{position:absolute;top:34px;width:10px;height:28px;border-radius:8px;background:#f4d4bb;transform-origin:top;z-index:1}.br-arm-l{left:8px;transform:rotate(12deg)}.br-arm-r{right:8px;transform:rotate(-12deg)}.br-leg{position:absolute;top:57px;width:10px;height:24px;background:#8aa6b7;border-radius:2px 2px 5px 5px;transform-origin:top}.br-leg-l{left:16px}.br-leg-r{right:16px}.br-avatar[data-template=man] .br-body{background:#7caac6}.br-avatar[data-template=woman] .br-body{background:#ead9c6}.br-avatar[data-template=woman] .br-head{border-top-width:10px;border-top-color:#594a40;box-shadow:none}.br-avatar[data-template=monk] .br-head{border-top:0}.br-avatar[data-template=monk] .br-body,.br-avatar[data-template=monk] .br-leg{background:#d8a05d}.br-walk .br-leg-l,.br-walk .br-arm-r{animation:br-walk .45s infinite alternate}.br-walk .br-leg-r,.br-walk .br-arm-l{animation:br-walk .45s infinite alternate-reverse}.br-wave .br-arm-r{animation:br-wave .5s infinite alternate}.br-avatar[data-direction=left] .br-figure{transform:rotate(-3deg)}.br-avatar[data-direction=right] .br-figure{transform:rotate(3deg)}.br-bubble{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:150px;background:#fffef9;border:1px solid #e3dccb;border-radius:14px;padding:8px;font-size:12px;overflow-wrap:anywhere;box-shadow:0 3px 8px #76694612}.br-controls{position:absolute;bottom:12px;left:12px;right:12px;display:flex;align-items:flex-end;justify-content:space-between;z-index:100;pointer-events:none}.br-controls button{pointer-events:auto}.br-joystick{display:grid;grid-template:repeat(3,32px)/repeat(3,32px);background:#d6e6ead9;border:2px solid white;border-radius:50%;padding:6px;box-shadow:0 3px 10px #6c899133}.br-joystick button{padding:0;border:0;background:transparent;color:#628b9b;touch-action:none;user-select:none;min-width:32px;min-height:32px}.br-joystick [data-dir=up]{grid-area:1/2}.br-joystick [data-dir=left]{grid-area:2/1}.br-joystick span{grid-area:2/2;background:#fff;border-radius:50%}.br-joystick [data-dir=right]{grid-area:2/3}.br-joystick [data-dir=down]{grid-area:3/2}.br-actions{display:flex;gap:8px}.br-actions button{background:#fffffff0;border:1px solid #d8e6e9;border-radius:50%;width:52px;height:52px;padding:4px;font-size:22px;color:#6095ad}.br-actions small{display:block;font-size:9px}.br-options{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:10px;font-size:12px}.br-options select{padding:6px;width:auto;font-size:12px}.br-emojis{padding:10px;background:white;border-radius:16px}.br-emojis button{padding:9px;font-size:22px;border:0;background:transparent}.br-chat{background:#fffefa;border:1px solid #e6dfcf;border-radius:22px;padding:16px;margin-top:8px}.br-chat header{display:flex;gap:7px;align-items:center}.br-chat header button{font-size:13px;padding:9px;background:#f3f3eb;border:0;border-radius:20px}.br-chat header button[aria-pressed=true]{background:#dff0f8;color:#48798d}.br-chat header [data-action=close]{margin-left:auto}.br-messages,.br-people{height:210px;overflow-y:auto;overscroll-behavior:contain;margin:10px 0}.br-message{display:flex;gap:9px;padding:8px 0;border-bottom:1px solid #f0ede4}.br-message>img,.br-compose img,.br-people img{width:30px;height:30px;border-radius:50%;object-fit:cover}.br-message>div{flex:1;min-width:0}.br-message a{font-size:13px;font-weight:600;color:#655d49}.br-message time{font-size:11px;color:#929488;margin-left:9px}.br-message p{font-size:14px;margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.br-message details{position:relative}.br-message summary{cursor:pointer;padding:4px 8px}.br-message details button{display:block;font-size:12px;margin:3px;padding:7px}.br-compose{display:flex;gap:8px;align-items:center}.br-compose input{min-width:0;flex:1;border-radius:25px;font-size:15px}.br-compose button{border-radius:25px;background:#d6edf7;color:#3d7189;padding:10px}.br-chat>small{display:block;font-size:11px;color:#8d8878;margin-top:8px}.br-people a{display:flex;gap:10px;align-items:center;padding:8px}.br-login{text-align:center;padding:40px}.br-avatars{position:absolute;inset:0}.boon-room button:focus-visible{outline:2px solid #6d9db4;outline-offset:2px}
@keyframes br-walk{from{rotate:-15deg}to{rotate:15deg}}@keyframes br-wave{from{transform:rotate(-115deg)}to{transform:rotate(-145deg)}}
@media(max-width:620px){.br-stage{height:470px}.br-status{padding:10px}.br-status h1{font-size:1rem}.br-actions{gap:5px}.br-actions button{width:44px;height:44px;font-size:19px}.br-joystick{grid-template:repeat(3,28px)/repeat(3,28px)}.br-joystick button{min-width:28px;min-height:28px}.br-chat{display:none}.br-chat.br-open{display:block;position:fixed;z-index:150;bottom:0;left:0;right:0;max-height:52dvh;overflow:auto;padding-bottom:max(16px,env(safe-area-inset-bottom));box-shadow:0 -5px 30px #756b4220}.br-messages,.br-people{height:20dvh}.br-options>small{flex-basis:100%}.br-avatar{width:68px}.br-status>span{font-size:12px}.br-window{border-width:6px}.br-shrine span{font-size:50px}.br-message details button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.br-avatar{transition:none}.br-figure *{animation:none!important}}
.boon-room button{background-image:none!important;box-shadow:none!important;text-shadow:none!important}.br-avatar{left:0;top:0;transition:transform .14s linear;will-change:transform}.br-figure{animation:br-idle 3s ease-in-out infinite}.br-walk .br-figure{animation:none}@keyframes br-idle{50%{translate:0 -1px}}.br-stage:focus-visible{outline:2px solid #81aebb;outline-offset:3px}@media(prefers-reduced-motion:reduce){.br-figure{animation:none}}
.boon-room .br-actions button{background:#ffffffed!important;border:1px solid #cde3ed!important;color:#5d93aa!important}.boon-room .br-joystick button{background:transparent!important;border:0!important}.boon-room .br-chat header button{background:#f0f2eb!important}.boon-room .br-chat header button[aria-pressed=true]{background:#dff0f8!important}.boon-room .br-compose button{background:#d6edf7!important}

/* Equal-size direction controls; chat stays visible below character settings. */
.boon-room .br-joystick{--br-key:40px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,var(--br-key));grid-template-rows:repeat(3,var(--br-key));width:calc(3 * var(--br-key));height:calc(3 * var(--br-key));padding:0;gap:0;border:0;outline:2px solid #fff;background:#dbe9ed;border-radius:50%;flex-shrink:0;overflow:hidden}
.boon-room .br-joystick button{box-sizing:border-box;display:grid;place-items:center;width:var(--br-key)!important;height:var(--br-key)!important;min-width:0!important;min-height:0!important;max-width:none;margin:0!important;padding:0!important;line-height:1!important;border-radius:50%;color:#618899!important;transform:none!important;appearance:none;-webkit-appearance:none}
.boon-room .br-joystick button svg{width:24px;height:24px;pointer-events:none}.boon-room .br-joystick button:active{background:#c0dce5!important}.boon-room .br-joystick>span{width:28px;height:28px;align-self:center;justify-self:center;box-shadow:0 2px 6px #6f8d9220;pointer-events:none}.br-controls{gap:10px}.boon-room .br-chat,.boon-room .br-chat.br-open{display:block;position:static;max-height:none;overflow:visible;margin-top:12px;padding:16px;border-radius:20px;box-shadow:none}.boon-room .br-chat header{flex-wrap:wrap}.boon-room .br-messages,.boon-room .br-people{height:220px}.boon-room .br-options{margin-bottom:0}
@media(max-width:620px){.boon-room .br-joystick{--br-key:36px}.boon-room .br-controls{left:10px;right:10px;bottom:14px;gap:8px}.boon-room .br-actions{gap:4px}.boon-room .br-actions button{width:44px;min-width:44px;height:48px;padding:3px!important}.boon-room .br-chat{padding:12px}.boon-room .br-chat header button{font-size:12px;padding:8px}.boon-room .br-compose{gap:6px}.boon-room .br-compose input{width:0}.boon-room .br-compose button{padding:8px!important;flex-shrink:0}}

/* Room cushions and a shared, seated meditation pose. */
.br-seat{transform:translate(-50%,-50%);width:19%;max-width:90px;height:27px;background:radial-gradient(ellipse at 40% 30%,#fffdf4,#eee1bc);border:1px solid #d9c899;box-shadow:0 6px 0 #d0bf97,0 9px 10px #8b774518}.br-sitting .br-figure{height:64px;animation:none}.br-sitting .br-head{top:1px}.br-sitting .br-body{top:31px;height:23px}.br-sitting .br-leg{top:49px;width:25px;height:11px;border-radius:50%;animation:none;rotate:0}.br-sitting .br-leg-l{left:7px;transform:rotate(12deg)}.br-sitting .br-leg-r{right:7px;transform:rotate(-12deg)}.br-sitting .br-arm{top:35px;height:22px;animation:none}.br-sitting .br-arm-l{left:8px;transform:rotate(-38deg)}.br-sitting .br-arm-r{right:8px;transform:rotate(38deg)}.boon-room [data-action=sit]{min-height:44px;padding:8px 18px!important;border:1px solid #bfdce8;background:#e3f3fa!important;color:#42768b!important;border-radius:24px;font-size:14px}.boon-room [data-action=sit][aria-pressed=true]{background:#d7e8da!important;color:#526e55!important}.br-options{align-items:center}

/* Relaxed closed eyelids only while meditating; standing retains open eyes. */
.boon-room .br-sitting .br-head::before,.boon-room .br-sitting .br-head::after{top:10px;width:6px;height:4px;box-sizing:border-box;background:transparent;border:0;border-bottom:1.5px solid #65554a;border-radius:0 0 50% 50%;visibility:visible}.boon-room .br-sitting .br-head::before{left:5px}.boon-room .br-sitting .br-head::after{right:5px}

/* Reuse the meditation guidance player directly under the live room header. */
.br-audio{margin:12px 0;padding:14px;border:0;border-radius:0;background:transparent}.br-audio .med-music{max-width:560px;margin:auto}.br-audio #med-music-name{text-align:center;margin-top:8px}.boon-room .br-audio .med-music-buttons button{background:#faf6e9!important;border:1px solid #dfd4b7;border-radius:24px;flex:1;min-width:0;padding:9px 6px!important;font-size:13px}.boon-room .br-audio .med-light-player button{padding:0!important;min-width:44px;background:transparent!important}.boon-room .br-audio .med-light-player .med-player-play{background:#c6e8f5!important}.br-audio .med-native-audio[hidden]{display:none}

/* Drag anywhere on the room floor; surrounding page remains scrollable. */
.boon-room .br-stage{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.boon-room .br-stage.br-dragging{cursor:grabbing}.boon-room .br-stage a{cursor:pointer}.boon-room .br-stage img{-webkit-user-drag:none}

/* Keep meditation action inside the room, above avatars. */
.boon-room .br-stage>[data-action=sit]{position:absolute;right:14px;bottom:14px;z-index:100;touch-action:manipulation;cursor:pointer;background:#e3f3faf5!important;max-width:calc(100% - 28px)}

.boon-room .br-stage>[data-action=status]{position:absolute;left:14px;bottom:14px;z-index:100;min-height:44px;max-width:45%;padding:8px 14px!important;border:1px solid #bfdce8;border-radius:24px;background:#e3f3faf5!important;color:#42768b!important;font-size:14px;touch-action:manipulation;cursor:pointer}.br-avatar-status{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:120px;max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #cee0e4;border-radius:12px;background:#f4fbffed;color:#4b6874;padding:6px 8px;font-size:11px;line-height:1.5;pointer-events:none}.br-avatar:has(.br-bubble:not([hidden])) .br-avatar-status{visibility:hidden}.br-status-dialog{width:calc(100% - 40px);max-width:380px;border:1px solid #ded5bd;border-radius:20px;padding:20px;background:#fffdf7;color:#665c46}.br-status-dialog::backdrop{background:#323d4155}.br-status-form input{width:100%;margin-top:12px}.br-status-form p{font-size:12px}.br-status-form>div{display:flex;justify-content:flex-end;gap:8px}.br-status-form button{min-height:44px;padding:8px 14px!important}.br-status-form small{display:block;margin-top:8px}

.br-meditation-time{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);width:max-content;max-width:130px;padding:5px 8px;border:1px solid #cbded4;border-radius:12px;background:#f1f8ef;color:#55735c;font-size:11px;line-height:1.5;pointer-events:none}.br-avatar:has(.br-meditation-time:not([hidden])) .br-avatar-status,.br-avatar:has(.br-meditation-time:not([hidden])) .br-bubble{bottom:calc(100% + 45px)}

/* Current member meditation time in the upper-right corner of the room. */
.boon-room .br-own-timer{position:absolute;top:12px;right:12px;z-index:100;max-width:calc(100% - 24px);padding:9px 12px;border:1px solid #c8ded7;border-radius:18px;background:#f4fbf3f5;color:#4f715b;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}.boon-room .br-own-timer[hidden]{display:none}

/* Shared meditation progress, community, garden, ranking and history below room chat. */
.br-meditation-panels{margin-top:24px;min-width:0}.br-meditation-panels .meditation-page{width:100%;max-width:none}.br-meditation-panels #med-timer-slot:empty,.br-meditation-panels #med-error:empty{display:none}

/* Character selection in the upper-left of the room. */
.boon-room .br-avatar-picker{position:absolute;top:0;left:6px;z-index:100;display:flex;flex-direction:column;gap:3px;max-width:36%;margin:0;padding:7px 9px;border:1px solid #d6e2dc;border-radius:14px;background:#fffdf5f2;color:#617267;font-size:11px;line-height:1.4;touch-action:manipulation}.boon-room .br-avatar-picker select{width:100%;min-width:0;min-height:44px;margin:0;padding:5px 18px 5px 6px;font-size:13px;border-radius:9px}.boon-room .br-own-timer{max-width:calc(60% - 24px)}

/* Compact, borderless character selector in the room corner. */
.boon-room .br-avatar-picker{padding:0;border:0;border-radius:0;background:transparent;gap:0;box-shadow:none}.boon-room .br-avatar-picker select{width:auto;max-width:100%;min-height:44px;padding:4px 18px 4px 4px;border:0;border-radius:0;background-color:transparent;box-shadow:none;font-size:12px;color:#617267}

/* Quick greetings wrap inside the chat frame, including narrow phones. */
.boon-room .br-quick-chat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;min-width:0;margin-top:10px}.boon-room .br-quick-chat button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:8px 5px!important;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:12px;border:1px solid #d4e4e8;border-radius:14px;background:#eef7f9!important;color:#527889!important}.boon-room .br-quick-chat button:disabled{opacity:.55;cursor:wait}

.boon-room .br-stage>[data-action=sit]{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;overflow:hidden}.boon-room [data-action=sit].br-holding::after{content:'';display:block;position:absolute;bottom:0;left:0;height:4px;background:#78b6bf;animation:br-hold-progress 2s linear forwards}@keyframes br-hold-progress{from{width:0}to{width:100%}}

.boon-room .br-stage>[data-action=sit]{max-width:calc(50% - 20px);white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* A clear blue crystal at the abdomen only in the seated meditation pose. */
.boon-room .br-sitting .br-body::after{content:"";position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);box-sizing:border-box;width:14px;height:14px;border:1px solid #72c8e7;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffff 0%,#eefcff 20%,#b5eaff 48%,#6ac6ed 77%,#379dcc 100%);box-shadow:inset -1px -1px 2px #3fa9d44d,inset 1px 1px 2px #ffffffb3,0 0 5px #9edff66b;pointer-events:none}

/* Restore normal page scrolling over the room while the current member meditates. */
.boon-room .br-stage.br-seated-scroll{touch-action:auto;cursor:default}

/* Keep elapsed meditation time on one horizontal line. */
.boon-room .br-own-timer{box-sizing:border-box;width:max-content;max-width:calc(100% - 24px);white-space:nowrap;overflow-wrap:normal;padding:7px 10px;border-radius:999px;font-variant-numeric:tabular-nums}@media(max-width:360px){.boon-room .br-own-timer{top:46px;font-size:12px}}

/* Character picker and elapsed time share one top row. */
.boon-room .br-top-row{position:absolute;top:0;left:6px;right:6px;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:4px;pointer-events:none}.boon-room .br-top-row .br-avatar-picker{position:static;flex:0 0 auto;max-width:none;pointer-events:auto}.boon-room .br-top-row .br-avatar-picker select{padding-right:2px;font-size:12px}.boon-room .br-top-row .br-own-timer{position:static;flex:0 1 auto;max-width:none;margin:0;padding:6px 8px;font-size:12px;white-space:nowrap}@media(max-width:360px){.boon-room .br-top-row .br-own-timer{font-size:11px;padding:6px 5px}.boon-room .br-top-row .br-avatar-picker select{font-size:11px}}

/* Compact mark-all-read action at the right of notification filters. */
.jb-notice-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.jb-notice-filters #notifications-read{margin-left:auto;flex:0 0 auto;min-height:44px;padding:7px 10px!important;font-size:12px;font-weight:500;background:transparent!important;background-image:none!important;box-shadow:none!important;border:0;color:#7a735f;white-space:nowrap}@media(max-width:375px){.jb-notice-filters{gap:5px}.jb-notice-filters [data-notice-filter]{padding:8px 10px!important;font-size:13px}}

.consistent-card>footer{white-space:pre-line;line-height:1.8;overflow-wrap:anywhere}

/* Shared ranking card spacing in the full-width mobile feed. */
#posts>.reaction-ranking-preview{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:600px){#main.fullframe-feed #posts>.reaction-ranking-preview{width:calc(100% - 32px);margin:8px 16px}}

#profile-rankings{margin:12px 0 0;min-width:0}.profile-rank-month{font-size:11px;color:#88806d;text-align:center;margin:0 0 6px}.profile-rank-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.profile-rank-award{display:flex;align-items:center;gap:7px;padding:7px 5px;border-radius:10px;background:#faf6e9;text-decoration:none;color:#57503e;min-width:0}.profile-rank-award>span:last-child{min-width:0;overflow-wrap:anywhere}.profile-rank-award strong,.profile-rank-award b{display:block}.profile-rank-award strong{font-size:11px;font-weight:500;line-height:1.45}.profile-rank-award b{font-size:14px;line-height:1.5;color:#92763a}.profile-rank-award small{display:none}.profile-rank-cup{font-size:20px;flex:0 0 24px;text-align:center}.profile-rank-award.rank-2{background:#f2f3ef}.profile-rank-award.rank-3{background:#faf0e8}.profile-rank-award:focus-visible{outline:2px solid #92763a;outline-offset:3px}
/* Community merit tree: lightweight vector garden, scoped to prevent meditation regressions. */
.merit-tree{--mt-sky:#e5f4f6;--mt-ink:#37594a;max-width:1100px;margin:20px auto;overflow:hidden;border:1px solid #dbe5d6;border-radius:28px;background:linear-gradient(155deg,#fffdf5,var(--mt-sky));color:var(--mt-ink);box-sizing:border-box;padding:24px 18px;text-align:center}.merit-tree *{box-sizing:border-box}.mt-heading h1,.mt-heading h2{color:inherit;font-size:clamp(26px,5vw,42px);margin:8px 0}.mt-heading p{font-size:16px;line-height:1.7;max-width:540px;margin:0 auto 10px}.mt-eyebrow{font-size:10px;letter-spacing:2px;color:#778569}.mt-heading>a{font-size:13px;color:inherit}.mt-layout{display:grid;grid-template-columns:1fr;gap:12px;min-width:0}.mt-progress{order:0;background:#ffffffb8;border:1px solid #e1e8db;border-radius:20px;margin:16px auto 0;padding:12px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;width:100%;max-width:420px;color:#365748}.mt-progress label{font-size:14px}.mt-progress strong{font-size:24px;color:#756034}.mt-progress progress{grid-column:1/-1;width:100%;height:10px;accent-color:#62bdd8}.mt-progress small,.mt-balance{grid-column:1/-1;font-size:12px;line-height:1.7}.mt-balance{color:#827140}.mt-scene{order:1;position:relative;width:100%;min-width:0;aspect-ratio:600/510;background:radial-gradient(ellipse at 45% 20%,#fff9d788,transparent 60%);isolation:isolate}.mt-art{position:absolute;inset:0}.mt-art svg{width:100%;height:100%;display:block}.mt-ground{position:absolute;inset:0;pointer-events:none}.mt-coin{pointer-events:auto;position:absolute;width:44px;height:44px;padding:0;display:grid;place-items:center;border:2px solid #dbaf4e;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff9b6,#f6d061 60%,#dfad35);box-shadow:0 3px 8px #bc944838;color:#fffde2;font-size:25px;cursor:pointer;animation:mt-drop .8s ease-out both;z-index:3;touch-action:manipulation}.mt-coin:hover{filter:brightness(1.08)}.mt-coin:disabled{opacity:.65;cursor:wait}.mt-coin:focus-visible,.mt-shake:focus-visible{outline:3px solid #2c799b;outline-offset:4px}.mt-level{position:absolute;bottom:0;left:0;right:0;font-size:11px;letter-spacing:.6px}.mt-actions{order:2;min-width:0}.mt-actions p{font-size:14px;line-height:1.6;margin:8px 0}.mt-shake{min-height:48px;padding:10px 28px;font-size:16px;max-width:100%}.mt-result{min-height:23px;color:#386780}.mt-retry{min-height:44px}.mt-stats{order:3;background:#ffffff86;border-radius:18px;padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:13px;min-width:0}.mt-stats h3,.mt-stats p{grid-column:1/-1;margin:4px 0 8px}.mt-stats h3{font-size:16px}.mt-stats strong{font-size:19px;grid-row:3}.mt-stats p{font-size:12px;line-height:1.7}.merit-tree footer{font-size:14px;line-height:1.9;margin:16px 0 0}.merit-tree footer small{font-size:12px}.mt-tree-sway{transform-origin:300px 435px}.mt-orb{animation:mt-float 5s ease-in-out infinite;animation-delay:0s}.mt-sparkles{opacity:.65}.mt-ready .mt-sparkles{animation:mt-glimmer 3s ease-in-out infinite}.mt-shaking .mt-tree-sway{animation:mt-shake .85s ease-in-out}.mt-visitor{display:none;position:absolute;left:0;top:35%;font-size:23px;pointer-events:none}.mt-event .mt-visitor{display:block;animation:mt-visit 6s ease-in-out forwards}.merit-tree[data-period=evening]{--mt-sky:#f7e4ce}.merit-tree[data-period=night]{--mt-sky:#25445a;--mt-ink:#f0f5df;background:linear-gradient(155deg,#344f64,#1b354a)}.merit-tree[data-period=night] .mt-stats{background:#213f52;color:#eef5df}.merit-tree[data-period=night] .mt-eyebrow{color:#cbdfd5}.merit-tree[data-period=night] .mt-result{color:#ddf7ff}.merit-tree[data-period=night] .mt-sparkles{opacity:1}.merit-tree[data-period=night] .mt-art{filter:brightness(1.08)}.mt-resting *,.mt-still *{animation-play-state:paused!important}.med-tree-panel:has(.merit-tree){padding:0;border:0;background:transparent;box-shadow:none}.med-tree-panel .merit-tree{margin:0}.merit-tree-page{max-width:1100px;margin:auto}.merit-tree-page>.back{display:inline-block;margin-bottom:12px}
@media(min-width:900px){.mt-layout{grid-template-columns:180px minmax(0,1fr) 190px;align-items:center;gap:8px}.mt-scene{grid-column:2;grid-row:1}.mt-progress{grid-column:3;grid-row:1;margin:0;padding:18px 12px;display:flex;flex-direction:column;gap:12px}.mt-progress strong{font-size:32px}.mt-progress progress{flex:none}.mt-stats{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;background:#ffffff8a}.mt-stats strong{font-size:24px}.mt-actions{grid-column:2;grid-row:2}}
@keyframes mt-float{50%{transform:translateY(-4px)}}@keyframes mt-glimmer{50%{opacity:1;transform:translateY(-3px)}}@keyframes mt-shake{20%,60%{transform:rotate(-1.8deg)}40%,80%{transform:rotate(1.8deg)}}@keyframes mt-drop{0%{transform:translateY(-150px);opacity:0}65%{transform:translateY(0);opacity:1}82%{transform:translateY(-12px)}100%{transform:translateY(0);opacity:1}}@keyframes mt-visit{0%{transform:translate(0,20px);opacity:0}20%{opacity:1}70%{opacity:1}100%{transform:translate(250px,-40px);opacity:0}}
@media(prefers-reduced-motion:reduce){.merit-tree *{animation:none!important;transition:none!important}.mt-visitor{display:none!important}}

.mt-orb:nth-child(2n){animation-delay:-2s}.mt-orb:nth-child(3n){animation-delay:-3s}
#main .merit-tree .mt-coin{position:absolute;display:grid;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:2px solid #dbaf4e;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff9b6,#f6d061 60%,#dfad35);color:#fffdf0;font-size:25px;line-height:1;box-shadow:0 3px 8px #bc944838;backdrop-filter:none;-webkit-backdrop-filter:none;text-shadow:none}
#main .merit-tree .mt-coin::before,#main .merit-tree .mt-coin::after{content:none}
#main .merit-tree .mt-shake{min-height:48px;padding:10px 28px;font-size:16px;margin:0}
.mt-progress progress{-webkit-appearance:none;appearance:none;border:0;border-radius:10px;background:#dde8df;overflow:hidden}.mt-progress progress::-webkit-progress-bar{background:#dde8df;border-radius:10px}.mt-progress progress::-webkit-progress-value{background:#68b9cf;border-radius:10px}.mt-progress progress::-moz-progress-bar{background:#68b9cf;border-radius:10px}
.mt-art svg{animation:mt-grow .7s ease-out}@keyframes mt-grow{from{opacity:.4;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.merit-tree[data-period=afternoon]{--mt-sky:#d5edf0}.merit-tree footer small{color:inherit}.mt-still *{animation:none!important}

/* Deep gold reward coins, with an engraved lotus face. */
#main .merit-tree .mt-coin{border-color:#8b5809;background:radial-gradient(circle at 32% 23%,#f4cc61 0%,#d99c24 38%,#b5750d 73%,#8b5405 100%);color:#ffe4a0;box-shadow:inset 0 1px 2px #fff0b6,inset 0 -3px 3px #78480499,0 3px 0 #80500d,0 5px 10px #a7752c38}
#main .merit-tree .mt-coin svg{display:block;width:36px;height:36px;filter:drop-shadow(0 1px 0 #794b0b)}
/* Compact daily blessing, confined to the existing right profile column. */
#profile-fortune{min-height:0;height:auto;margin-top:12px;padding-bottom:12px}.fortune-mini{padding:12px 8px;border:1px solid #e8d2aa;border-radius:18px;background:linear-gradient(155deg,#fffdf4,#fff0e9);text-align:center;color:#765334;box-shadow:0 3px 9px #a26b4210;min-width:0;overflow-wrap:anywhere}.fortune-mini h3{font-size:14px;line-height:1.5;margin:0;font-weight:600}.fortune-mini p{font-size:11px;line-height:1.6;margin:5px 0}.fortune-mini-art{height:82px}.fortune-mini-art svg{height:100%;width:auto;max-width:100%}.fortune-mini>strong{font-size:14px}.fortune-mini small{display:block;font-size:10px;line-height:1.6;margin-top:6px}.fortune-mini-title{max-height:3.3em;overflow:hidden}.fortune-mini-error:empty{display:none}
#main .fortune-mini button.fortune-open,.fortune-dialog button.fortune-save,.fortune-dialog button.fortune-share{min-height:44px;padding:8px 10px;border:1px solid #cd8294;border-radius:18px;background:linear-gradient(#f5c4cd,#db92a5);box-shadow:0 3px 6px #aa65721a;color:#603441;font-size:12px;line-height:1.5;white-space:normal;max-width:100%;text-shadow:none}#main .fortune-mini button.fortune-open{width:100%}#main .fortune-mini button.fortune-saved-link{min-height:44px;width:100%;padding:7px 2px;border:0;background:transparent;box-shadow:none;color:#78614b;font-size:11px;text-shadow:none}#main .fortune-mini button::before{content:none}
.fortune-dialog{width:calc(100% - 24px);max-width:450px;max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #e1c8a4;border-radius:24px;padding:16px 20px 22px;overflow:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#fffdf4,#fff2e8);color:#664b34;box-shadow:0 15px 60px #49362924;text-align:center}.fortune-dialog::backdrop{background:#3d30234d}.fortune-dialog-controls{display:flex;justify-content:space-between;gap:10px}.fortune-dialog .fortune-dialog-controls button{width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;background:#fffaf3;border:1px solid #ecdcc5;border-radius:50%;color:#815f44;font-size:22px;box-shadow:none;text-shadow:none}.fortune-dialog h2{font-size:23px;margin:3px 0 8px;line-height:1.5}.fortune-dialog p{font-size:15px;line-height:1.9;overflow-wrap:anywhere}.fortune-dialog .fortune-today{font-size:12px}.fortune-dialog-body{min-height:200px}.fortune-drawing{width:180px;height:230px;max-width:100%;margin:30px auto 0;padding-top:25px}.fortune-drawing svg{display:block;width:100%;height:100%;overflow:visible}.fortune-cylinder{transform-origin:90px 130px}.fortune-shaking .fortune-cylinder{animation:fortune-shake .38s ease-in-out 5}.fortune-shaking .fortune-sticks{animation:fortune-rattle .19s ease-in-out 10}.fortune-selected-stick{transform-origin:90px 80px}.fortune-reveal .fortune-selected-stick{animation:fortune-rise .55s ease-out forwards}.fortune-petals{animation:fortune-petals 3s ease-out 1}.fortune-number{display:block;font-size:22px;color:#9a703a}.fortune-paper{padding:20px 18px;border:1px solid #e6cfa8;border-radius:18px;background:#fff9eb;box-shadow:inset 0 0 25px #e8c99618}.fortune-lotus{display:block;font-size:46px;line-height:1.4}.fortune-paper h3{font-size:20px;line-height:1.6;margin:8px 0 15px}.fortune-paper h4{font-size:16px;margin:18px 0 4px;color:#9b7141}.fortune-paper small{display:block;font-size:11px;line-height:1.8;margin-top:10px}.fortune-special{border-color:#dcb77a;background:linear-gradient(155deg,#fffbee,#fff2e9);box-shadow:inset 0 0 22px #ecca8c26}.fortune-dialog .fortune-special-label{font-size:13px;color:#986838}.fortune-result-actions{display:flex;gap:10px;margin-top:16px}.fortune-result-actions button{flex:1;min-width:0}.fortune-dialog .fortune-action-status{font-size:12px;margin:8px 0 0}.fortune-action-status textarea{width:100%;min-height:150px;font:inherit;padding:10px}.fortune-saved-list{display:grid;gap:10px;margin:12px 0}.fortune-dialog .fortune-saved-list button{min-height:44px;background:#fff9ee;border:1px solid #e4ceb0;box-shadow:none;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:14px}.fortune-fade,.fortune-paper{animation:fortune-fade .25s ease-out}.fortune-mini button:focus-visible,.fortune-dialog button:focus-visible{outline:3px solid #775f95;outline-offset:3px}
@keyframes fortune-shake{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}@keyframes fortune-rattle{50%{transform:translateY(-3px)}}@keyframes fortune-rise{to{transform:translateY(-42px)}}@keyframes fortune-petals{from{transform:translateY(-10px);opacity:0}to{transform:translateY(0);opacity:.65}}@keyframes fortune-fade{from{opacity:.4}to{opacity:1}}
@media(max-width:350px){.fortune-mini{padding:10px 5px}.fortune-mini h3{font-size:13px}.fortune-dialog{padding:12px}.fortune-paper{padding:15px 12px}.fortune-result-actions{gap:6px}}
@media(prefers-reduced-motion:reduce){.fortune-mini *,.fortune-dialog *{animation:none!important;transition:none!important}.fortune-reveal .fortune-selected-stick{transform:translateY(-42px)}}

.profile-rank-award.meditation-rank small{display:block;font-size:10px;line-height:1.6;color:#756b55;margin-top:3px;overflow-wrap:anywhere}

.profile-details-fold{margin:24px 0 16px}.profile-details-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;list-style:none;font-size:clamp(20px,4.8vw,28px);font-weight:700;color:inherit}.profile-details-fold>summary::-webkit-details-marker{display:none}.profile-details-arrow{font-size:22px;flex-shrink:0;transform:rotate(-90deg)}.profile-details-fold[open]>summary .profile-details-arrow{transform:rotate(0)}.profile-details-fold>summary:focus-visible{outline:2px solid #92763a;outline-offset:4px;border-radius:8px}

/* Daily reflections: independent of the daily fortune card and draw. */
.reflection-mini{background:#fffbf1;border-color:#e2d0a9;margin-top:14px;width:100%;min-width:0}
.reflection-mini-heading{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.reflection-portrait{display:block;width:156px;height:156px;max-width:100%;object-fit:contain;border-radius:0;margin:12px auto;background:transparent}
.reflection-mini .reflection-portrait{width:62px;height:62px;margin:0;flex-shrink:0}
.reflection-mini-heading>div{min-width:0;flex:1 1 80px}.reflection-mini h3{color:#72502b}.reflection-mini p{overflow-wrap:anywhere}
.reflection-dialog .reflection-save,.reflection-dialog .reflection-share{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.reflection-dialog{background:#fffbf2;max-width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.reflection-dialog .reflection-close{min-width:44px;min-height:44px}.reflection-dialog .reflection-paper{background:#fff9eb}.reflection-dialog .reflection-message{font-size:clamp(21px,5.5vw,27px);line-height:1.85;overflow-wrap:anywhere;margin:18px 0;color:#44382c}.reflection-dialog .reflection-category{font-size:15px;color:#7e6746}.reflection-divider{color:#b59355}.reflection-action-status a{display:inline-block;min-height:44px;padding:8px;text-decoration:underline}.reflection-drawing{font-size:42px;padding:38px 0;animation:reflection-breathe 1.4s ease-in-out 1}.reflection-mini .reflection-status:empty{display:none}
@keyframes reflection-breathe{0%,100%{opacity:.65;transform:translateY(0)}50%{opacity:1;transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.reflection-drawing{animation:none}}
.reflection-dialog .fortune-dialog-controls{justify-content:flex-end}
.reflection-dialog .reflection-message{white-space:pre-wrap;text-align:center;font-size:clamp(18px,4.8vw,23px)}.reflection-dialog .reflection-source-date{font-size:13px;color:#7e6746}.reflection-dialog .reflection-teaching-title{font-size:21px;margin-bottom:6px}.reflection-dialog .fortune-dialog-controls{position:sticky;top:0;z-index:2;background:transparent;pointer-events:none}.reflection-dialog .fortune-dialog-controls button{pointer-events:auto}.reflection-action-status a{margin:3px 5px}
/* A single reflection insert follows the first two private dhamma entries. */
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu){margin:0;padding:22px;max-width:100%;text-align:center}
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu) .reflection-mini-heading{max-width:360px;margin:0 auto 10px;text-align:left;flex-wrap:nowrap}
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu) .reflection-mini-heading>div{flex:1}
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu) .reflection-portrait{width:72px;height:72px}
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu)>button{display:block;width:min(100%,340px);margin:8px auto}
:is(#dhamma-reflection,#home-reflection,#home-luangpor,#home-luangpu) h3{font-size:20px}

.reflection-dialog .reflection-body,.reflection-dialog .reflection-paper{text-align:center}

.reflection-mini .reflection-open.btn{min-height:44px;white-space:normal;overflow-wrap:anywhere}

.reflection-dialog .fortune-result-actions + .reflection-redraw{display:block;margin:20px auto 0;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}

.reflection-page{width:min(100%,440px);margin:24px auto}.reflection-page .reflection-mini{padding:28px 22px}.reflection-page .reflection-mini-heading{justify-content:center}.reflection-page .reflection-portrait{width:100px;height:100px}.reflection-page .reflection-open{display:block;width:100%;margin-top:20px}

.journal-story-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.journal-story-heading label{margin:0;min-width:0}.journal-story-heading .journal-collage-link{flex-shrink:0;min-height:44px;padding:8px 12px;font-size:13px;border-radius:14px}

#main .journal-story-heading .journal-collage-link{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#bcefff 0%,#66d4ff 45%,#39b9f3 75%,#99e5ff 100%);color:#073f62;border:1px solid #49b7e5;box-shadow:inset 0 1px 2px #ffffffdd,0 4px 14px #149dd433;font-weight:700;text-shadow:0 1px 0 #ffffff66}
#main .journal-story-heading .journal-collage-link::before{content:"✦";position:absolute;inset:auto 6px 1px auto;height:auto;background:none;color:#fff;font-size:12px;z-index:0;animation:collage-sparkle 3.8s ease-in-out infinite;pointer-events:none}
#main .journal-story-heading .journal-collage-link::after{content:"";position:absolute;inset:-30% auto -30% -65%;width:40%;padding:0;border:0;border-radius:0;background:linear-gradient(90deg,transparent,#ffffffaa,transparent);-webkit-mask:none;mask:none;transform:translateX(0) skewX(-18deg);animation:med-start-shine 4.5s ease-in-out infinite;pointer-events:none}
@keyframes collage-sparkle{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){#main .journal-story-heading .journal-collage-link::before{animation:none;opacity:.7}#main .journal-story-heading .journal-collage-link::after{animation:none;display:none}}

#main .journal-photo-heading{align-items:center;flex-wrap:wrap}#main #journal-top-save{margin-left:auto;min-height:44px;padding:8px 12px;font-size:13px;white-space:nowrap;border-radius:14px;background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512}

#main .text-only-card .text-post-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:0}#main .text-only-card .text-post-meta>.visibility-icon{position:static;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;min-width:26px;max-width:26px;min-height:26px;padding:0;margin:0;border-radius:50%;line-height:1;background:#fbf7ed}#main .text-only-card .text-post-label:empty{display:none}

.vsv-mini-filters{text-align:left;margin:12px 0}.vsv-mini-filters summary{min-height:44px;cursor:pointer}.vsv-mini-filters label{display:block}.vsv-mini-filters select{width:100%;min-height:44px}.reflection-dialog .vsv-quote{white-space:pre-wrap;text-align:center}.reflection-dialog details summary{min-height:44px;cursor:pointer}.reflection-dialog textarea{max-width:100%;width:100%}

.reflection-dialog .vsv-copy{display:block;margin:20px auto 0;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}

/* Meditation recognition: circular profiles drift left, with a pause control. */
.meditation-profile-strip{grid-column:1/-1;min-width:0;max-width:100%;padding:20px 0;border-block:1px solid var(--line);background:var(--paper);overflow:hidden}
.meditation-profile-strip header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 14px}
.meditation-profile-strip h2{font-size:18px;margin:0}.meditation-profile-strip header p{font-size:12px;color:var(--muted);margin:4px 0 0}
.meditation-profile-strip .meditation-strip-toggle{flex-shrink:0;min-height:44px;font-size:12px;padding:7px 12px}
.meditation-strip-window{overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
.meditation-strip-track{display:flex;width:max-content;animation:meditation-profile-drift var(--strip-duration,45s) linear infinite}
.meditation-strip-group{display:flex;gap:18px;padding:4px 9px 12px;margin:0;list-style:none}
.meditation-strip-person{width:100px;flex:0 0 100px;text-align:center}
.meditation-strip-person a{display:flex;flex-direction:column;align-items:center;gap:8px}
.meditation-strip-person img{width:82px;height:82px;object-fit:cover;border-radius:50%;border:2px solid #a68a49;padding:4px;background:#fff;box-shadow:0 3px 10px #ab8b3c14}
.meditation-strip-person strong{font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%}
.meditation-profile-strip>p{padding:0 18px;font-size:12px;margin:4px 0;color:var(--muted)}
.meditation-profile-strip[data-paused=true] .meditation-strip-track,.meditation-profile-strip:hover .meditation-strip-track,.meditation-profile-strip:focus-within .meditation-strip-track{animation-play-state:paused}
@keyframes meditation-profile-drift{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.meditation-strip-track{animation:none}.meditation-strip-group[aria-hidden=true]{display:none}.meditation-profile-strip .meditation-strip-toggle{display:none}}

/* Spacious, pale-gold publishing action, scoped to the news editor. */
#main #publicity-form button[type=submit]{display:flex;align-items:center;justify-content:center;width:100%;min-height:60px;margin:24px 0 4px;padding:16px 24px;border:1px solid #d9bc7299;border-radius:22px;background:linear-gradient(145deg,#fffef9,#fff8e4 52%,#f5e4b5cc);color:#8b6929;font-size:18px;font-weight:600;line-height:1.5;white-space:normal;text-align:center;text-shadow:0 1px 0 #ffffffaa;box-shadow:inset 0 2px 2px #fff,0 6px 18px #bd96351a}
#main #publicity-form button[type=submit]:focus-visible{outline:3px solid #287ca8;outline-offset:4px}
#main #publicity-form button[type=submit]:active:not(:disabled){transform:translateY(1px)}
#main #publicity-form input[type=datetime-local]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#main #publicity-form input[type=datetime-local]::-webkit-date-and-time-value{min-width:0;text-align:left}
#main #publicity-error:empty{display:none}

/* PWA UI stays within safe areas; the website logo is unchanged. */
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
@media(display-mode:standalone){.top{padding-top:env(safe-area-inset-top)}.footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}
.pwa-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-height:85dvh;overflow-y:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:24px 24px 0 0;padding:24px 24px max(24px,env(safe-area-inset-bottom));background:var(--paper);color:var(--ink);box-shadow:0 -10px 40px #0002}
.pwa-sheet::backdrop{background:#172a3b66}.pwa-sheet h2{font-size:23px;margin:10px 0}.pwa-sheet p{font-size:14px;overflow-wrap:anywhere}.pwa-sheet>img{display:block;border-radius:16px}.pwa-sheet .pwa-close{position:absolute;top:12px;right:12px;width:44px;height:44px;padding:0;font-size:26px;background:transparent;border:0}.pwa-sheet ol{list-style:none;padding:0;counter-reset:install}.pwa-sheet li{display:flex;align-items:center;gap:12px;margin:16px 0;font-size:14px}.pwa-step-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#e6f6fd;color:#167aa9;border-radius:12px;font-size:24px}.pwa-callout{padding:12px;background:#fff8e5;border-radius:12px}.pwa-sheet>.btn{width:100%;min-height:48px}.install-invite{grid-column:1/-1;max-width:100%;box-sizing:border-box;flex-wrap:wrap}.install-invite>div{min-width:0}.install-invite button{white-space:normal;min-height:44px}.install-invite[hidden],[data-pwa-install][hidden]{display:none!important}

.pwa-profile-card{margin:24px 0 0;padding:24px;border-radius:28px;background:#f2f2f2;color:#191919;max-width:100%;box-sizing:border-box}
.pwa-profile-heading{display:flex;align-items:center;gap:18px;min-width:0;margin-bottom:22px}.pwa-profile-heading>img{width:88px;height:88px;flex:0 0 88px;border-radius:20px}.pwa-profile-heading>div{min-width:0}.pwa-profile-heading h2{font-size:24px;line-height:1.35;margin:0 0 8px;font-weight:700}.pwa-profile-heading p{font-size:16px;line-height:1.6;color:#626262;margin:0;overflow-wrap:anywhere}
#main .pwa-profile-card .pwa-profile-action{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:60px;padding:16px 18px;border:0;border-radius:999px;background:#191919;color:#fff;font-size:18px;font-weight:600;line-height:1.5;white-space:normal;text-shadow:none;box-shadow:none}
#main .pwa-profile-action::before,#main .pwa-profile-action::after{content:none}.pwa-profile-action>span:first-child{font-size:28px;line-height:1}.pwa-profile-card[hidden]{display:none!important}
@media(max-width:380px){.pwa-profile-card{padding:20px 16px}.pwa-profile-heading{gap:12px}.pwa-profile-heading>img{width:68px;height:68px;flex-basis:68px}.pwa-profile-heading h2{font-size:21px}.pwa-profile-heading p{font-size:14px}#main .pwa-profile-card .pwa-profile-action{font-size:16px;padding:14px 12px}}

/* Match the Safari installation controls shown in iOS. */
.pwa-step-icon>img{display:block;width:30px;height:30px;object-fit:contain}.pwa-step-icon>img.pwa-icon-safari{width:36px;height:36px;border-radius:8px}

.posting-check{display:inline-block;color:#1686d9;font-family:Arial,sans-serif;font-weight:800;font-size:1.1em;line-height:1;vertical-align:baseline;margin-inline-start:2px}

.profile-bottom-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 24px;max-width:900px;margin:32px auto 12px;padding:12px 20px;text-align:center}.profile-bottom-links a{color:#817b70;font-size:14px;font-weight:400;text-decoration:none;line-height:1.6;padding:6px 0}.profile-bottom-links a:hover{text-decoration:underline;color:#625c52}.profile-bottom-links a:focus-visible{outline:2px solid #b5a179;outline-offset:4px;border-radius:3px}

.comment-owner-reaction,.comment-reaction-options{margin-top:8px;text-align:right;color:#76848c;font-size:13px}.comment-owner-reaction{display:flex;justify-content:flex-end;align-items:center;gap:6px}.comment-reaction-options summary{cursor:pointer;list-style:none;padding:6px}.comment-reaction-options>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;padding:6px 0}.comment-reaction-options button{min-width:40px;min-height:44px;padding:6px;border:1px solid transparent;background:transparent;border-radius:12px}.comment-reaction-options button[aria-pressed=true]{background:#e2f4ff;border-color:#92cbe8}

.profile-shortcuts>a.profile-calc-link{display:inline-flex;align-items:center;gap:7px;color:#946d2e;font-weight:650;font-size:14px;line-height:1.6;text-decoration:none;background:none;border:0;box-shadow:none;border-radius:0;padding:4px 0}.profile-calc-note{width:19px;height:19px;flex:0 0 19px;color:#ab8344}.profile-calc-link:hover span{text-decoration:underline}.profile-calc-link:focus-visible{outline:2px solid #ab8344;outline-offset:4px}

/* Keep the team workspace beside the existing back-office shortcut. */
#main .profile-page>.page-heading .profile-management-links{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
#main .profile-page .profile-management-links>a{display:inline-flex;align-items:center;gap:5px;margin:0;padding:6px 0;font-size:12px;line-height:1.6;text-decoration:none}
#main .profile-page .profile-management-links>.profile-team-link{padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#627684;font-weight:400}
#main .profile-page .profile-management-links>.profile-team-link:hover{background:transparent;text-decoration:underline}
#main .profile-page .profile-management-links>a:focus-visible{outline:2px solid #126fa8;outline-offset:3px}

/* Only Monk shortcut: same compact icon/text format as the account-book link. */
#main .profile-page>.page-heading .profile-shortcuts>a.profile-onlymonk-link{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-self:start;gap:7px;width:fit-content;max-width:100%;padding:7px 11px;margin:0;border:1px solid #d9c48c;border-radius:13px;background:linear-gradient(125deg,#fff9e9bf,#fffef85e 55%,#f5e6bb80);box-shadow:inset 0 1px #ffffffd9,0 2px 7px #b3913f12;color:#8d692a;font-size:13px;font-weight:650;line-height:1.6;text-decoration:none}
.profile-onlymonk-icon{width:19px;height:19px;flex:0 0 19px;color:#977234}
.profile-onlymonk-wordmark{white-space:nowrap;min-width:0}
.profile-onlymonk-stars{position:relative;display:inline-block;flex:0 0 12px;font-size:12px;color:#c49b36;text-shadow:0 0 5px #f0d998;animation:profile-onlymonk-twinkle 3.5s ease-in-out infinite}
.profile-onlymonk-stars::after{content:'✧';position:absolute;right:-4px;top:-6px;font-size:8px;color:#b58b2b}
.profile-onlymonk-link::before{content:'';position:absolute;z-index:-1;inset:-80% -45%;background:linear-gradient(110deg,transparent 40%,#fff9e475 47%,#ffffffb0 51%,transparent 59%);transform:translateX(-90%);pointer-events:none;animation:profile-onlymonk-sheen 7s ease-in-out infinite}
#main .profile-page>.page-heading .profile-shortcuts>a.profile-onlymonk-link:hover{border-color:#bea05a;box-shadow:0 2px 10px #b3913f24;color:#73521c}
.profile-onlymonk-link:focus-visible{outline:2px solid #ac8435;outline-offset:3px}
@keyframes profile-onlymonk-twinkle{0%,100%{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@keyframes profile-onlymonk-sheen{0%,35%{transform:translateX(-90%)}70%,100%{transform:translateX(90%)}}
@media(prefers-reduced-motion:reduce){.profile-onlymonk-stars,.profile-onlymonk-link::before{animation:none}.profile-onlymonk-link::before{opacity:.25;transform:none}}

.member-profile-hero{overflow:hidden;border:1px solid #e3ded1;border-radius:24px;background:#fff;margin:16px 0 28px;text-align:center}
.member-cover{position:relative;width:100%;height:clamp(160px,30vw,300px);background:#e3ede8}.member-cover>img{width:100%;height:100%;object-fit:cover;display:block}
.member-cover-edit{position:absolute;right:12px;bottom:12px;background:#fffc;color:#453e34;border:1px solid #fff;border-radius:18px;padding:9px 14px;font-size:13px;min-height:40px;cursor:pointer}
.member-centered-identity{position:relative;padding:0 20px 20px}.member-large-avatar{display:block;width:clamp(130px,24vw,190px);height:clamp(130px,24vw,190px);object-fit:cover;border-radius:50%;border:6px solid white;margin:-65px auto 12px;background:#eef4f4;box-shadow:0 3px 12px #0001}
.member-centered-identity h1{font-size:clamp(24px,5vw,36px);line-height:1.4;margin:8px 0 16px;overflow-wrap:anywhere;text-align:center}
.member-hero-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.member-dashboard-link{display:block;background:#e3f3fc;border:1px solid #b0d4e7;color:#276783;padding:12px 18px;border-radius:14px;text-decoration:none;font-weight:600}.member-edit-link{background:#f4f2ed;border:0;color:#6c6356;padding:12px 18px;border-radius:14px;text-decoration:none;font-size:14px}
.member-cover-status{margin:0 16px 12px;color:#805c3d}.member-cover-status:empty{display:none}
.merit-dashboard{max-width:900px;margin:auto}.merit-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.merit-summary-card{display:flex;flex-direction:column;gap:10px;padding:22px 14px;border:1px solid #e1d8c5;border-radius:20px;background:#fffdf7;text-align:center;text-decoration:none;color:#71603f}.merit-summary-card strong{font-size:30px;color:#467b8e;overflow-wrap:anywhere}.merit-summary-card small{color:#827b6f}@media(min-width:760px){.merit-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.member-profile-hero .member-cover{overflow:hidden}.member-profile-hero .member-cover .member-cover-edit{position:absolute;top:12px;right:12px;bottom:auto;left:auto;z-index:2;transform:none;margin:0;max-width:calc(100% - 24px);min-height:36px;padding:7px 11px;font-size:12px;line-height:1.4;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 2px 8px #0001;color:#534c40}

.profile-identity-row>.profile-person-column{grid-column:1/-1;width:100%}.profile-person-column .profile-rewards-column{width:100%;margin:18px 0 24px;text-align:center}.profile-person-column .profile-rewards-column .profile-coin-summary{max-width:440px;width:100%;margin:0 auto;justify-content:center;gap:14px;padding:16px}.profile-person-column .profile-rewards-column .profile-coin-summary strong{white-space:nowrap;font-size:1.25rem}.profile-person-column .profile-rewards-column .profile-coin-summary>span:last-child{overflow-wrap:normal}.profile-person-column .profile-rewards-column #profile-fortune{max-width:440px;margin:18px auto 0}

.profile-rewards-before-google{width:100%;margin:24px auto;text-align:center}.profile-rewards-before-google .profile-coin-summary{max-width:440px;width:100%;margin:0 auto;justify-content:center;gap:14px;padding:16px}.profile-rewards-before-google .profile-coin-summary strong{white-space:nowrap;font-size:1.25rem}.profile-rewards-before-google #profile-fortune{max-width:440px;margin:18px auto 0}

#main .profile-page .profile-rewards-before-google .profile-coin-summary{display:flex;width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;align-items:center;justify-content:center;gap:clamp(12px,4vw,28px);padding:22px 18px;border-radius:22px;background:linear-gradient(120deg,#fffdf6,#fff7e4);border:1px solid #e5d298}#main .profile-rewards-before-google .profile-coin-summary>span:last-child{min-width:0;text-align:center}#main .profile-rewards-before-google .profile-coin-summary strong{font-size:clamp(19px,4.5vw,28px);line-height:1.5;white-space:normal;overflow-wrap:anywhere}#main .profile-rewards-before-google .profile-coin-summary .yellow-coin-icon{flex-shrink:0}#main .profile-rewards-before-google .profile-coin-summary small{margin-top:6px;line-height:1.5}

/* Inline display-name editing */
#main .profile-name-block > p{display:flex;align-items:center;justify-content:center;gap:8px}
#main .profile-name-pencil{display:inline-flex;flex:0 0 36px;width:36px;height:36px;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#8a7755;cursor:pointer}
#main .profile-name-pencil:hover{background:#f6efdf}
#main .profile-name-pencil:focus-visible{outline:2px solid #3286aa;outline-offset:2px}
.profile-name-dialog{width:min(400px,calc(100vw - 40px));box-sizing:border-box;padding:24px;border:1px solid #ddcfb5;border-radius:22px;background:#fffcf6;color:#40382e}
.profile-name-dialog::backdrop{background:#0005}
.profile-name-dialog input{box-sizing:border-box;width:100%;margin-top:12px;padding:12px;border:1px solid #cbbd9d;border-radius:12px;font:inherit}
.profile-name-actions{display:flex;justify-content:flex-end;align-items:center;gap:20px;margin-top:18px}

/* Keep the display name centered; place its edit control in the card corner. */
#main #profile-form{position:relative}
#main #profile-form > .profile-name-pencil{position:absolute;top:12px;right:12px;width:44px;height:44px;z-index:2}
#main .profile-name-block > p{text-align:center;width:100%;gap:0}
#main .profile-name-block > p > strong{min-width:0;overflow-wrap:anywhere}
/* Three independent daily-teaching cards in reading order. */
.profile-page .profile-identity-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-page .profile-identity-row>.profile-person-column{grid-column:1/-1}
.lp-card{min-width:0;text-align:center}.lp-card .lp-history,.lp-card .lp-upload{display:block;margin:14px auto 0}.lp-portrait{display:block;width:96px;height:96px;object-fit:cover;border-radius:50%;margin:12px auto;border:2px solid #e3c987}.lp-portrait-placeholder{display:flex;align-items:center;justify-content:center;font-size:13px;background:#faf2dc;color:#89713e;padding:8px;box-sizing:border-box}.lp-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #d8be82;border-radius:24px;background:#fffcf3;color:#483c2b;text-align:center}.lp-dialog::backdrop{background:#0006}.lp-dialog h2{font-size:1.35rem;clear:both}.lp-close{float:right;background:transparent;border:0;color:#765c30;padding:10px;cursor:pointer}.lp-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;text-align:left;font-size:1.1rem}.lp-history-entry{border-top:1px solid #e4d5b4;padding:14px 0;text-align:left}.lp-history-entry summary{cursor:pointer}.lp-dialog .btn{max-width:100%}
@media(max-width:700px){.profile-page .profile-identity-row{grid-template-columns:minmax(0,1fr)}.lp-dialog{padding:18px}}

.lp-dialog .lp-text{font-size:18px;line-height:1.9;text-align:center}.lp-dialog>p{font-size:16px}

/* Match the Luang Pu card portrait dimensions. */
.lp-card .reflection-mini-heading > .lp-portrait{width:62px;height:62px;box-sizing:border-box;margin:0;flex-shrink:0}

/* Match the grandmother teaching dialog and its action controls. */
.lp-dialog .lp-portrait{width:156px;height:156px;margin:12px auto;box-sizing:border-box}.lp-dialog .lp-close{float:none}.lp-dialog .reflection-message{text-align:center}.lp-dialog .reflection-action-status a{display:inline-block;margin:12px 0;text-decoration:underline}

/* A softly shimmering gold redraw action, scoped to Luangpor. */
.reflection-dialog .reflection-redraw.lp-gold-redraw{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:14px 26px;margin:22px auto;border:1px solid #d8b35a;border-radius:22px;background:linear-gradient(135deg,#fffcecdd 0%,#ffe6a2d9 34%,#eac56bd9 66%,#fff3c9eb 100%);color:#654719;font-weight:700;box-shadow:inset 0 2px 2px #fffdf2,0 5px 18px #c99b3638;text-shadow:0 1px #fff9de;cursor:pointer}
.reflection-dialog .lp-gold-redraw::before{content:"";position:absolute;inset:-50% auto -50% -70%;width:35%;background:linear-gradient(90deg,transparent,#ffffffa6,transparent);transform:skewX(-22deg);animation:lp-gold-sheen 4.8s ease-in-out infinite;pointer-events:none;z-index:-1}
.reflection-dialog .lp-gold-redraw::after{content:"✦";color:#fffef1;text-shadow:0 0 5px #b67a10,0 0 10px #fff5b8;font-size:18px;animation:lp-gold-twinkle 2.8s ease-in-out infinite;pointer-events:none}
.reflection-dialog .lp-gold-redraw:hover{border-color:#bc8f32;box-shadow:inset 0 2px 2px #fffdf2,0 6px 22px #c99b3655}
.reflection-dialog .lp-gold-redraw:focus-visible{outline:3px solid #3286aa;outline-offset:4px}
@keyframes lp-gold-sheen{0%,35%{left:-70%}75%,100%{left:140%}}
@keyframes lp-gold-twinkle{0%,100%{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){.reflection-dialog .lp-gold-redraw::before,.reflection-dialog .lp-gold-redraw::after{animation:none}.reflection-dialog .lp-gold-redraw::before{display:none}}

#home-luangpor .reflection-mini-heading>.lp-portrait{width:72px;height:72px;margin:0;flex-shrink:0}

/* Guest sign-in and registration: translucent gold with gentle sparkle. */
:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"]){position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 18px;box-sizing:border-box;border:1px solid #d6ad50;border-radius:20px;background:linear-gradient(135deg,#fffcecdd,#ffe6a2dc 35%,#eac56bd9 68%,#fff3c9ed);color:#654719;font-weight:700;text-decoration:none;text-shadow:0 1px #fff9de;box-shadow:inset 0 2px 2px #fffdf2,0 5px 18px #c99b3638}
:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"])::before{content:"";position:absolute;inset:-50% auto -50% -70%;height:auto;width:35%;background:linear-gradient(90deg,transparent,#ffffffa6,transparent);transform:skewX(-22deg);animation:lp-gold-sheen 4.8s ease-in-out infinite;pointer-events:none;z-index:-1}
:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"])::after{content:"✦";flex:0 0 auto;color:#fffef1;text-shadow:0 0 5px #b67a10,0 0 10px #fff5b8;animation:lp-gold-twinkle 2.8s ease-in-out infinite;pointer-events:none}
:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"]):hover{border-color:#b98c30;box-shadow:inset 0 2px 2px #fffdf2,0 6px 22px #c99b3655}
:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"]):focus-visible{outline:3px solid #3286aa;outline-offset:4px}
#main .auth-layout .google-login{display:flex;width:100%}
@media(max-width:480px){#account a[href="/login"],#account a[href="/signup"]{padding:9px 10px;gap:5px;font-size:13px}}
@media(prefers-reduced-motion:reduce){:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"])::before,:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"])::after{animation:none}:is(#account a[href="/login"],#account a[href="/signup"],#main .auth-layout .google-login,#main a[href="/signup"],#main #auth-form button[type="submit"])::before{display:none}}

/* Save a teaching independently of coin rewards. */
button.dd-collect,.reflection-dialog button.dd-collect{display:block;flex-basis:100%;margin:12px auto;padding:13px 24px;min-height:48px;border:1px solid #c8afd8;border-radius:20px;background:linear-gradient(110deg,#ffe1ec,#fff0bf,#d8f2e4,#d9edff,#eadcff,#ffe1ec);background-size:220% 100%;color:#513e67;font:inherit;font-weight:600;box-shadow:0 3px 12px #b19bc522;animation:teaching-save-rainbow 8s linear infinite}
@keyframes teaching-save-rainbow{to{background-position:220% 50%}}
@media(prefers-reduced-motion:reduce){button.dd-collect,.reflection-dialog button.dd-collect{animation:none}}

#dhamma-reflection{grid-column:1/-1;text-align:center;padding:16px 0}
#main a.dhamma-combined-receive{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:18px 20px;border:1px solid #dac4db99;border-radius:24px;background:linear-gradient(115deg,#ffe4edbb,#fff2cdbb,#ddf5e8bb,#dceffbbb,#eadfffbb);color:#655270;font-size:clamp(15px,3.8vw,19px);font-weight:600;text-align:center;text-decoration:none;line-height:1.6;box-shadow:inset 0 1px 1px #fff,0 5px 18px #c7b3ce20;backdrop-filter:blur(8px)}
#main a.dhamma-combined-receive:hover{border-color:#baa1c6;background-color:#fff9}
#main a.dhamma-combined-receive:focus-visible{outline:3px solid #8e7db0;outline-offset:4px}

/* A quiet search action inside the journal input. */
#dhamma-search>div{position:relative;display:block}
#dhamma-search #dhamma-query{display:block;width:100%;min-height:50px;margin:0;padding-right:54px}
#main #dhamma-search .dhamma-search-icon{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;text-shadow:none;color:#8b816e}
#main #dhamma-search .dhamma-search-icon::before,#main #dhamma-search .dhamma-search-icon::after{display:none}
#main #dhamma-search .dhamma-search-icon:hover{background:#99886a0d;color:#655a48}
#main #dhamma-search .dhamma-search-icon:focus-visible{outline:2px solid #9e947f;outline-offset:0}
#dhamma-search .dhamma-search-icon svg{display:block;flex:none}

#main #dhamma-search .dhamma-search-icon{top:0;bottom:0;margin:auto 0;transform:none;animation:none;transition:color .15s,background-color .15s}

/* Emphasize only the main Google signup action. */
@property --signup-ring-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
#main#main .signup-focus .google-login{width:100%;min-height:64px;padding:18px 22px;font-size:clamp(18px,4.5vw,22px);border:1px solid #c99a36;border-radius:22px;background:linear-gradient(125deg,#fff8d8,#f6d573 45%,#ffe8a1 80%,#fff5cf);animation:signup-glow 3.5s ease-in-out infinite;overflow:visible}
#main#main .signup-focus .google-login::before{content:"";position:absolute;inset:-2px;width:auto;height:auto;padding:2px;border-radius:24px;background:conic-gradient(from var(--signup-ring-angle),#c99b4055,#ffe9a6 28%,#fff 37%,#d5a740 46%,#c99b4055 65%);transform:none;z-index:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:signup-orbit 4s linear infinite;pointer-events:none}
#main#main .signup-focus .google-login::after{animation:signup-sparkle 2.8s ease-in-out infinite}
@keyframes signup-orbit{to{--signup-ring-angle:360deg}}
@keyframes signup-glow{0%,100%{box-shadow:inset 0 2px 2px #fff9,0 5px 16px #c99b3630}50%{box-shadow:inset 0 2px 2px #fff,0 5px 25px #d5a52c65}}
@keyframes signup-sparkle{0%,100%{opacity:.6;transform:scale(.9)}50%{opacity:1;transform:scale(1.2)}}
@media(prefers-reduced-motion:reduce){#main#main .signup-focus .google-login,#main#main .signup-focus .google-login::before,#main#main .signup-focus .google-login::after{animation:none}#main#main .signup-focus .google-login::before{display:block}}

#main .signup-focus .signup-arrow{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:18px auto 0;color:#b58426;border:1px solid #e4c67d80;border-radius:50%;background:linear-gradient(135deg,#fff9eacc,#ffe8a688);box-shadow:0 3px 12px #bd923518;text-decoration:none}
#main .signup-focus .signup-arrow svg{display:block;animation:signup-arrow-bounce 1.6s ease-in-out infinite;pointer-events:none}
#main .signup-focus .signup-arrow:hover{color:#8d6113;background:#fff0c6}
#main .signup-focus .signup-arrow:focus-visible{outline:3px solid #967a40;outline-offset:4px}
@keyframes signup-arrow-bounce{0%,100%{transform:translateY(4px)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){#main .signup-focus .signup-arrow svg{animation:none}}

.jj-profile .jj-first-action{display:flex;flex-direction:column;align-items:center;gap:10px;flex:0 1 360px;min-width:0}
.jj-first-action>.jj-add{width:100%;text-align:center}
.jj-first-guide{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;text-align:center;color:#9b782e;text-decoration:none}
.jj-first-guide span{font-size:13px;line-height:1.6;color:#93836b}
.jj-first-guide svg{animation:signup-arrow-bounce 1.6s ease-in-out infinite;pointer-events:none}
.jj-first-guide:focus-visible{outline:2px solid #9b782e;outline-offset:4px;border-radius:8px}
@media(max-width:600px){.jj-profile .jj-first-action{flex:1 0 100%;width:100%}}
@media(prefers-reduced-motion:reduce){.jj-first-guide svg{animation:none}}

.editor-step-guide{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin:10px auto;text-align:center;color:#a07a2a;pointer-events:none}
.editor-step-guide[hidden]{display:none!important}
.editor-step-guide svg{animation:signup-arrow-bounce 1.6s ease-in-out infinite;flex:none}
.editor-step-guide small{font-size:12px;line-height:1.5;color:#93836b}
.editor-save-guide-wrap{display:flex;flex-direction:column;align-items:center;margin-left:auto}
.editor-save-guide-wrap #journal-top-save{margin-left:0}
.editor-save-guide-wrap .editor-step-guide{margin:8px 0 0}
@media(prefers-reduced-motion:reduce){.editor-step-guide svg{animation:none}}

/* Shared reveal styles, served externally for Content Security Policy. */

 .dhamma-reveal{border:1px solid #e9dcb9;border-radius:32px;background:radial-gradient(circle at 50% 38%,#effbff,#fffaf0 65%);color:#826b40;width:min(340px,calc(100vw - 40px));padding:36px 24px 28px;text-align:center;box-shadow:0 18px 65px #56462c20;overflow:hidden}
 .dhamma-reveal::backdrop{background:#35434b55;backdrop-filter:blur(3px)}
 .dhamma-reveal-stage{position:relative;height:150px;display:grid;place-items:center}
 .dhamma-reveal-orb{width:96px;height:96px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff 0 7%,#eefcff 16%,#b8eaff 43%,#6abfdf 72%,#d9f9ff 94%);box-shadow:inset -6px -8px 14px #418aaf44,inset 5px 6px 12px #fff,0 12px 28px #90cde04d;animation:dhamma-orb-shake .65s ease-in-out infinite}
 .dhamma-reveal-star{position:absolute;color:#c8a451;font-size:21px;animation:dhamma-orb-star .8s ease-in-out infinite alternate}.dhamma-reveal-star:nth-child(2){left:16%;top:24%;}.dhamma-reveal-star:nth-child(3){right:16%;top:18%;animation-delay:.25s}.dhamma-reveal-star:nth-child(4){right:22%;bottom:16%;animation-delay:.5s;font-size:14px}
 .dhamma-reveal p{font:inherit;margin:12px 0 0;line-height:1.7}
 @keyframes dhamma-orb-shake{0%,100%{transform:translate(-8px,0) rotate(-9deg)}50%{transform:translate(8px,-10px) rotate(9deg)}}
 @keyframes dhamma-orb-star{from{opacity:.3;transform:scale(.7)}to{opacity:1;transform:scale(1.15)}}
 @media(prefers-reduced-motion:reduce){.dhamma-reveal-orb,.dhamma-reveal-star{animation:none}}
 
.dhamma-reveal.is-paused .dhamma-reveal-orb,.dhamma-reveal.is-paused .dhamma-reveal-star{animation-play-state:paused}

/* Clear crystal spheres bloom outward from one center, like the meditation CTA. */
.dhamma-reveal-stage{height:190px}
.dhamma-reveal-orbs{position:absolute;inset:0;pointer-events:none}
.dhamma-reveal-orbs .dhamma-reveal-orb{position:absolute;left:50%;top:50%;width:100px;height:100px;border:2px solid #91d9f4;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff 0 8%,#f1fcffed 18%,#c0edffbd 45%,#6bbfdfb8 76%,#e6fbfff0 96%);box-shadow:inset -6px -8px 14px #367eaa55,inset 5px 6px 12px #fff,0 0 12px #90d9f040;opacity:0;transform-origin:center;animation:dhamma-orb-bloom 3s ease-out infinite}
.dhamma-reveal-orbs .dhamma-reveal-orb:nth-child(2){animation-delay:-1s}
.dhamma-reveal-orbs .dhamma-reveal-orb:nth-child(3){animation-delay:-2s}
@keyframes dhamma-orb-bloom{0%{transform:translate(-50%,-50%) scale(.12);opacity:0}15%{opacity:.95}55%{opacity:.82}80%{opacity:.48}100%{transform:translate(-50%,-50%) scale(1.65);opacity:0}}
@media(prefers-reduced-motion:reduce){.dhamma-reveal-orbs .dhamma-reveal-orb{animation:none;transform:translate(-50%,-50%);opacity:1}.dhamma-reveal-orbs .dhamma-reveal-orb:nth-child(n+2){display:none}}

/* Shared crystal loading indicator, removed as soon as page data is ready. */
#main .boon-loading{padding:30px 12px 40px;text-align:center;color:#89754d}
.boon-loading .dhamma-reveal-stage{width:min(240px,100%);height:180px;margin:0 auto}
.boon-loading p{margin:10px 0 0;font-size:15px;line-height:1.7}
html.boon-loading-paused .boon-loading .dhamma-reveal-orb{animation-play-state:paused}

/* Reveal the account/navigation header when the feed is pulled downward. */
header.top.scroll-profile-header{position:sticky;z-index:100;transition:transform .24s ease-out;transform:translateY(0)}
header.top.scroll-profile-header.scroll-profile-visible{transform:translateY(100%);box-shadow:0 5px 20px #78623c18}
@media(prefers-reduced-motion:reduce){header.top.scroll-profile-header{transition:none}}

.jb-flying-coin{position:fixed;left:0;top:0;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;border:2px solid #e4ba53;background:radial-gradient(circle at 30% 25%,#fff8d2,#f5d477 55%,#c79229);color:#9c711e;box-shadow:inset 0 0 0 2px #fff2af,0 0 12px #edcc6e88;font-size:17px;line-height:1;pointer-events:none;z-index:1100;opacity:0}
header.top.scroll-profile-header.coin-receiving{transform:translateY(100%)}

/* Give the teaching invitation breathing room between journal posts. */
#merit-teaching-invite,#dhamma-reflection{padding-block:18px}
@media(min-width:761px){#merit-teaching-invite,#dhamma-reflection{padding-block:24px}}

/* Show the actual generated cover beneath the selected photos. */
#main .journal-upload .journal-layout-preview{margin:18px 0 8px;padding:12px;border:1px solid #bda77d;border-radius:14px;background:#fffdf8}
#main .journal-upload .journal-layout-preview:not(:has(img:not([hidden]))){display:none}
#main .journal-upload .journal-layout-preview figcaption{text-align:center;font-size:13px;color:#8b7959;margin-bottom:10px}
#main .journal-upload .journal-layout-preview #cover-preview:not([hidden]){display:block!important;width:auto;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:0 auto;border-radius:8px}
#main .journal-upload .quick-photo-list:not(:empty){margin-top:14px}

/* Golden glow and decorative stars on merit save controls. */
#main#main .merit-save-sparkles{position:relative;isolation:isolate;overflow:visible;padding-right:34px;background:linear-gradient(135deg,#fffef4,#ffe9a6 55%,#f1d080);border-color:#c8a348;color:#795716;animation:merit-save-glow 2.8s ease-in-out infinite}
#main#main .merit-save-sparkles::before{content:"✦";position:absolute;inset:auto 9px auto auto;top:50%;height:auto;border-radius:0;background:none;color:#fffdf0;text-shadow:0 0 5px #bd8e29,0 0 10px #ffe9a4;font-size:19px;line-height:1;pointer-events:none;z-index:1;animation:merit-save-star 1.8s ease-in-out infinite}
#main#main .merit-save-sparkles::after{animation-duration:2.6s}
@keyframes merit-save-glow{0%,100%{box-shadow:inset 0 1px 2px #fff,0 0 8px var(--save-glow-soft,#e3bd6140)}50%{box-shadow:inset 0 1px 3px #fff,0 0 19px var(--save-glow-bright,#e3bd6170),0 4px 14px var(--save-glow-shadow,#c29a3930)}}
@keyframes merit-save-star{0%,100%{transform:translateY(-50%) scale(.7);opacity:.55}50%{transform:translateY(-50%) scale(1.15);opacity:1}}
#main#main .merit-save-sparkles:disabled,#main#main .merit-save-sparkles:disabled::before,#main#main .merit-save-sparkles:disabled::after,html.boon-loading-paused #main .merit-save-sparkles,html.boon-loading-paused #main .merit-save-sparkles::before,html.boon-loading-paused #main .merit-save-sparkles::after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#main#main .merit-save-sparkles,#main#main .merit-save-sparkles::before,#main#main .merit-save-sparkles::after{animation:none}#main#main .merit-save-sparkles::before{transform:translateY(-50%)}}

.med-own-avatar{display:flex;justify-content:center;align-items:end;min-height:138px;margin:-20px auto 16px;position:relative}
.med-own-avatar .br-avatar{position:relative;left:auto;top:auto;transform:none;width:100px;will-change:auto;transition:none}
.med-own-avatar .br-figure{zoom:1.4;animation:med-avatar-breathe 3.5s ease-in-out infinite}
.med-own-avatar .br-avatar.br-sitting .br-figure{animation:med-avatar-breathe 4.5s ease-in-out infinite}
.med-own-avatar .br-figure>i{transition:top .4s ease,height .4s ease,width .4s ease,transform .4s ease}
.med-own-avatar .br-avatar a{margin-top:12px;font-size:11px}
.med-own-avatar .br-sitting .br-head::before,.med-own-avatar .br-sitting .br-head::after{top:10px;width:6px;height:4px;background:transparent;border-bottom:1.5px solid #65554a;border-radius:0 0 50% 50%}
.med-own-avatar .br-sitting .br-head::before{left:5px}.med-own-avatar .br-sitting .br-head::after{right:5px}
.med-own-avatar .br-sitting .br-body::after{content:"";position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);width:14px;height:14px;border:1px solid #72c8e7;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#b5eaff 48%,#379dcc);box-shadow:0 0 6px #9edff6;pointer-events:none}
@keyframes med-avatar-breathe{0%,100%{translate:0 0}50%{translate:0 -2px}}
html.boon-loading-paused .med-own-avatar .br-figure{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.med-own-avatar .br-figure,.med-own-avatar .br-avatar.br-sitting .br-figure{animation:none}.med-own-avatar .br-figure>i{transition:none}}

/* Place the avatar within the garden artwork instead of adding another row. */
.med-morning .med-hero:has(.med-own-avatar) .eyebrow{visibility:hidden}
.med-morning .med-hero:has(.med-own-avatar) .med-pond{height:140px}
.med-morning .med-hero .med-own-avatar{position:absolute;top:4px;left:0;right:0;min-height:0;height:150px;margin:0;align-items:center;z-index:2;pointer-events:none}
.med-morning .med-hero .med-own-avatar a{pointer-events:auto}

/* Keep only the character in the meditation garden. */
.med-own-avatar .br-avatar a{display:none}

/* A quiet downward cue for the Dhamma writing field. */
.dhamma-writing-guide{display:flex;justify-content:center;color:#bd9846;height:38px;margin:0 0 6px;pointer-events:none}
.dhamma-writing-guide svg{animation:signup-arrow-bounce 1.6s ease-in-out infinite}
html.boon-loading-paused .dhamma-writing-guide svg{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.dhamma-writing-guide svg{animation:none}}

.dhamma-writing-guide-slot{height:44px}
.dhamma-save-guide-target{position:relative;display:inline-flex;align-items:center;margin-left:auto}
.dhamma-save-guide-target .dhamma-writing-guide.points-to-save{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%);width:32px;height:32px;margin:0}
.dhamma-writing-guide.points-to-save svg{animation:dhamma-point-save 1.6s ease-in-out infinite}
@keyframes dhamma-point-save{0%,100%{transform:translateX(-4px)}50%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){.dhamma-writing-guide.points-to-save svg{animation:none}}

.reading-coin-flight{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;padding:0;background:transparent;overflow:hidden;pointer-events:none}
.reading-coin-flight::backdrop{background:transparent;pointer-events:none}
.reading-coin-target{position:absolute;right:24px;top:max(20px,env(safe-area-inset-top));display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:24px;background:#fff8df;color:#987025;font-weight:700;box-shadow:0 0 18px #e9cb7b88}
.reading-coin-target img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.reading-coin{position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff9cf,#f3cf64 60%,#bb8525);border:2px solid #e0b851;color:#a5751d;box-shadow:0 0 14px #edd37e}
.dd-profile-link{display:flex;align-items:center;gap:6px}.dd-profile-link img{width:36px;height:36px;border-radius:50%;object-fit:cover}

/* Member milestone: aggregate count only. */
#main .member-progress{grid-column:1/-1;margin:24px 0;padding:clamp(22px,4vw,40px);border:1px solid #e9dfee;border-radius:30px;background:linear-gradient(125deg,#fff0f7,#fff 50%,#e9f8ff);box-shadow:0 8px 28px #677da514;text-align:center;color:#294a70;overflow:hidden}
#main .member-progress h2{margin:0 0 12px;color:#284b83;font-size:clamp(22px,3vw,32px);line-height:1.5}
#main .member-progress p{margin:12px 0;line-height:1.7;color:#536a80}
.member-progress-total{display:flex;flex-direction:column;gap:2px;margin:20px 0}.member-progress-total strong{font-size:clamp(42px,7vw,64px);line-height:1.2;color:#285b97;font-variant-numeric:tabular-nums}
.member-progress-meter{display:flex;align-items:center;gap:16px;margin:24px 0}.member-progress-track{position:relative;height:32px;flex:1;border-radius:999px;background:#e4ebf3;box-shadow:inset 0 2px 5px #354e7014;border:4px solid #fff}.member-progress-fill{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#66cfff,#a6a5ee,#f384b8);transition:width 1.2s ease;box-shadow:0 0 12px #ee95c150}.member-progress-percent{font-size:clamp(22px,4vw,32px);color:#285b97;min-width:75px}.member-progress-spark{position:absolute;right:8px;top:-18px;opacity:0;color:#bd8528;font-size:28px;pointer-events:none}
#main#main .member-progress .member-progress-cta{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:min(100%,540px);min-height:54px;margin-top:16px;padding:14px 22px;border:1px solid #edb3d3;border-radius:999px;background:linear-gradient(100deg,#ca4f9c,#f27eae);color:white;text-decoration:none;font-weight:700;font-size:18px;box-shadow:0 5px 14px #bd408a20;line-height:1.5;white-space:normal}
#main#main .member-progress .member-progress-cta:focus-visible{outline:3px solid #2876aa;outline-offset:4px}#main .member-progress.is-complete{border-color:#e4c690}#main .member-progress-status:empty{display:none}
@media(prefers-reduced-motion:reduce){.member-progress-fill{transition:none}}

#main#main .member-progress .member-progress-cta::before,#main#main .member-progress .member-progress-cta::after{content:none;display:none}

/* Soft motion; inactive offscreen and in hidden tabs. */
#main .member-progress-arrow{font-size:38px;line-height:1;margin:18px auto 0;color:#c45098;animation:member-arrow-bounce 1.6s ease-in-out infinite;pointer-events:none}
.member-progress-fill{position:relative;overflow:hidden;transition-duration:1.8s}
.member-progress-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 20%,#ffffffb0 48%,transparent 75%);transform:translateX(-100%);animation:member-meter-shine 3.2s ease-in-out infinite}
#main .member-progress .member-progress-cta{animation:member-button-glow 2.8s ease-in-out infinite}
.member-progress:not(.is-visible) *, .member-progress.is-page-hidden *,.member-progress:not(.is-visible) *::after,.member-progress.is-page-hidden *::after{animation-play-state:paused!important}
.member-progress-goal,.member-progress-percent,.member-progress-remaining{font-variant-numeric:tabular-nums}
@keyframes member-arrow-bounce{0%,100%{transform:translateY(-5px);opacity:.6}50%{transform:translateY(5px);opacity:1}}
@keyframes member-meter-shine{0%,20%{transform:translateX(-110%)}70%,100%{transform:translateX(110%)}}
@keyframes member-button-glow{0%,100%{box-shadow:0 5px 14px #bd408a20}50%{box-shadow:0 0 23px #e77dbb65}}
@media(prefers-reduced-motion:reduce){#main .member-progress *,#main .member-progress *::after{animation:none!important;transition:none!important}}

/* Gentle fireworks around the current member count. */
.member-progress-total{position:relative;isolation:isolate}
.member-count-fireworks{position:absolute;inset:0;pointer-events:none}
.member-count-fireworks i{position:absolute;left:50%;top:32%;font-style:normal;font-size:19px;color:#dca444;text-shadow:0 0 8px #f9d47c80;opacity:0;animation:member-count-burst 3.4s ease-out infinite}
.member-count-fireworks i:nth-child(1){--burst-x:-92px;--burst-y:-25px}
.member-count-fireworks i:nth-child(2){--burst-x:92px;--burst-y:-30px;animation-delay:.25s;color:#df7fb2}
.member-count-fireworks i:nth-child(3){--burst-x:-115px;--burst-y:12px;animation-delay:.5s;color:#64b9df}
.member-count-fireworks i:nth-child(4){--burst-x:115px;--burst-y:10px;animation-delay:.75s}
.member-count-fireworks i:nth-child(5){--burst-x:-70px;--burst-y:-45px;animation-delay:1s;color:#df7fb2}
.member-count-fireworks i:nth-child(6){--burst-x:65px;--burst-y:-48px;animation-delay:1.25s;color:#64b9df}
@keyframes member-count-burst{0%,12%{opacity:0;transform:translate(calc(var(--burst-x)*.65),calc(var(--burst-y)*.65)) scale(.2)}25%{opacity:1}55%{opacity:0;transform:translate(var(--burst-x),var(--burst-y)) scale(1.15) rotate(35deg)}100%{opacity:0;transform:translate(var(--burst-x),var(--burst-y)) scale(.4)}}
@media(prefers-reduced-motion:reduce){.member-count-fireworks{display:none}}

/* LINE community invitation beneath the support entry. */
#feedback-box .line-community-invite{display:flex;flex-direction:column;align-items:center;gap:10px;margin:18px auto 8px;text-align:center}
#feedback-box .line-community-arrow{color:#20965b;font-size:30px;line-height:1;animation:line-invite-arrow 1.8s ease-in-out infinite;pointer-events:none}
#feedback-box .line-community-button{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;box-sizing:border-box;padding:12px 26px;border:1px solid #98d6ad;border-radius:18px;background:#effaf2;color:#197143;font-size:17px;font-weight:700;line-height:1.5;text-decoration:none;box-shadow:0 3px 12px #35a65a12}
#feedback-box .line-community-button::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,#ffffffdd 50%,transparent 70%);transform:translateX(-120%);animation:line-invite-shimmer 3.6s ease-in-out infinite;pointer-events:none}
#feedback-box .line-community-button:focus-visible{outline:3px solid #218650;outline-offset:4px}
#feedback-box .line-community-invite small{font-size:12px;color:#6a7d70}
@keyframes line-invite-arrow{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
@keyframes line-invite-shimmer{0%,25%{transform:translateX(-120%)}70%,100%{transform:translateX(120%)}}
@media(prefers-reduced-motion:reduce){#feedback-box .line-community-arrow,#feedback-box .line-community-button::after{animation:none}}

#news-teaching-invite{grid-column:1/-1;padding-block:18px}
@media(min-width:761px){#news-teaching-invite{padding-block:24px}}

/* Separate practice-room entry; full navigation to the NAPPHRA module. */
.br-napphra-entry{display:flex;justify-content:flex-end;margin:12px 0 18px}
.br-napphra-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 20px;border:1px solid rgba(169,140,77,.35);border-radius:18px;background:rgba(218,194,136,.16);color:#796438;text-decoration:none;font:inherit;line-height:1.5}
.br-napphra-link:focus-visible{outline:2px solid #a98c4d;outline-offset:3px}
@media(hover:hover){.br-napphra-link:hover{background:rgba(218,194,136,.28)}}
@media(max-width:600px){.br-napphra-link{width:100%}.br-napphra-entry{margin:12px 0 16px}}

/* Compact live count and practice entry share one row. */
.br-status .br-live-summary{display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap}
.br-status .br-live-summary h1{font-size:16px}
.br-status #br-online{font-size:14px;color:#507487;font-variant-numeric:tabular-nums}
.br-status .br-napphra-link{width:auto;min-height:44px;padding:9px 14px;font-size:14px;gap:7px;white-space:nowrap}
@media(max-width:360px){.br-status{gap:8px;padding:9px}.br-status .br-live-summary{gap:6px}.br-status .br-live-summary h1{font-size:14px}.br-status .br-napphra-link{font-size:12px;padding:9px 10px}}

/* Centered translucent gold profile shortcuts. */
#main .profile-page>.page-heading .profile-shortcuts{display:contents;text-align:left}
#main .profile-page>.page-heading .profile-management-links{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
#main .profile-page>.page-heading .profile-shortcuts a.profile-onlymonk-link,
#main .profile-page>.page-heading .profile-shortcuts .trio-launch{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;max-width:100%;margin:0;padding:7px 11px;border:1px solid #d9c48c;border-radius:13px;background:linear-gradient(125deg,#fff9e9bf,#fffef85e 55%,#f5e6bb80);box-shadow:inset 0 1px #ffffffd9,0 2px 7px #b3913f12;color:#8d692a;font-family:inherit;font-size:13px;font-weight:650;line-height:1.6;text-align:center;text-decoration:none;white-space:normal;cursor:pointer}
#main .profile-page>.page-heading .profile-shortcuts a.profile-onlymonk-link:hover,#main .profile-page>.page-heading .profile-shortcuts .trio-launch:hover{border-color:#bea05a;color:#73521c;box-shadow:0 2px 10px #b3913f24}
#profile-trio-slot{display:inline-flex;max-width:100%}

#main .profile-page>.page-heading .profile-shortcuts a.back:not(.profile-onlymonk-link){background:none;border:0;border-radius:0;box-shadow:none;padding:4px 0;font-weight:400;text-decoration:none}
#main .profile-page>.page-heading .profile-shortcuts a.back:not(.profile-onlymonk-link):hover{text-decoration:underline;background:none;box-shadow:none}

#main .profile-page>.page-heading .profile-team-quote-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:8px 12px;min-width:0}
#main .profile-page>.page-heading .profile-team-quote-row>a{min-width:0;margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}

/* Align admin controls with the two-column menu. */
#main .profile-page>.page-heading .profile-management-links{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:8px 12px}
#main .profile-page>.page-heading .profile-management-links>.profile-admin-link{grid-column:1;min-width:0}
#main .profile-page>.page-heading .profile-management-links>#profile-trio-slot{grid-column:2;justify-self:start;min-width:0}
.merit-record-date{margin:14px 0 8px;padding:12px 14px;border:1px solid #d8c89c80;border-radius:16px;background:linear-gradient(135deg,#fffefb,#f6edcf33);color:#756238}.merit-record-date label{display:block;font-size:14px;margin:0 0 8px}.merit-date-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.merit-date-controls input[type=date]{width:auto;flex:1;min-width:140px;height:44px;padding:8px 10px;border:1px solid #d9cbac;border-radius:11px;background:#ffffff99;color:#655638;font-size:16px;box-sizing:border-box}.merit-record-date .merit-date-controls button{min-height:44px;padding:8px 12px;margin:0;border:1px solid #d8c38e;border-radius:11px;background:#f7edcf44;box-shadow:none;color:#78602c;font-size:14px;line-height:1.3}.merit-record-date small{display:block;font-size:12px;line-height:1.6;color:#887c63;margin-top:8px}.merit-date-controls input:focus-visible,.merit-date-controls button:focus-visible{outline:2px solid #b89950;outline-offset:2px}

/* Translucent gold filters on member profiles. */
#main .member-content-tabs{gap:10px;margin:20px 0 24px}
#main .member-content-tabs button{min-height:44px;padding:8px 16px;border:1px solid rgba(178,146,73,.38);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.6),rgba(239,216,160,.12));color:#78663c;box-shadow:inset 0 1px 0 #ffffff99;text-shadow:none;animation:none;transform:none;font-weight:500}
#main .member-content-tabs button[aria-pressed=true]{background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(231,202,130,.25));border-color:rgba(165,128,46,.65);color:#6c5525;font-weight:600}
#main .member-content-tabs button:hover{background:rgba(239,216,160,.22);box-shadow:inset 0 1px 0 #ffffff99;transform:none}
#main .member-content-tabs button:focus-visible{outline:2px solid #a58a50;outline-offset:3px}
#main .member-content-tabs button::before,#main .member-content-tabs button::after{display:none}

/* Rainbow invitation immediately after the first home feed post. */
#posts .feed-ladder-invite{grid-column:1/-1;padding:18px 16px;margin:4px 0 8px}
#main .feed-ladder-invite a{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,500px);min-height:56px;margin:auto;padding:15px 18px;border:1px solid #ffffffcc;border-radius:22px;background:linear-gradient(110deg,#ffd2e3,#ffe5af 28%,#c4f0df 52%,#c6e9ff 73%,#e6d1ff);color:#35445f;font-size:18px;font-weight:700;line-height:1.5;text-decoration:none;box-shadow:0 5px 16px #9696ba26,inset 0 1px 0 #fff;box-sizing:border-box}
#main .feed-ladder-invite a::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#ffffffaa 50%,transparent 75%);transform:translateX(-140%);animation:ladder-shimmer 5s ease-in-out infinite;z-index:-1}
.feed-ladder-invite .ladder-spark{color:#79529c;animation:ladder-sparkle 2.6s ease-in-out infinite;flex-shrink:0}.feed-ladder-invite .ladder-spark:nth-of-type(3){animation-delay:1.3s}
#main .feed-ladder-invite a:hover{border-color:#b8a5d6}#main .feed-ladder-invite a:focus-visible{outline:3px solid #7960ae;outline-offset:4px}
@keyframes ladder-shimmer{0%,35%{transform:translateX(-140%)}80%,100%{transform:translateX(140%)}}@keyframes ladder-sparkle{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.12)}}
@media(max-width:360px){#main .feed-ladder-invite a{gap:8px;padding:14px 12px;font-size:16px}}
@media(prefers-reduced-motion:reduce){#main .feed-ladder-invite a::before{display:none}.feed-ladder-invite .ladder-spark{animation:none}}

/* Quiet white-gold photo editor action. */
#main .journal-story-heading .journal-collage-link{background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(248,241,221,.38));color:#85734d;border:1px solid rgba(184,158,98,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.85);text-shadow:none;font-weight:500;animation:none}
#main .journal-story-heading .journal-collage-link::before,#main .journal-story-heading .journal-collage-link::after{display:none;animation:none}
#main .journal-story-heading .journal-collage-link:hover{background:rgba(248,241,221,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}

/* Preserve the entire Dhamma illustration, including portrait quote cards. */
#main .dhamma-card .card-image{aspect-ratio:auto;height:auto;max-height:none}
#main .dhamma-card .card-image>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}

.posting-check.posting-check-pending{color:#777f8b!important;cursor:pointer;padding:5px;touch-action:manipulation;text-shadow:none!important;-webkit-text-fill-color:currentColor}
.posting-check-pending:focus-visible{outline:2px solid #1686d9;outline-offset:2px;border-radius:6px}
html:is([data-theme=dark],[data-theme=fantasy]) .posting-check-pending{color:#b9c3d0!important}
.posting-rules-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #bbaa7d;border-radius:22px;background:#fffdf7;color:#302c23;box-shadow:0 16px 60px #0005;line-height:1.7}
.posting-rules-dialog::backdrop{background:#071426a8}.posting-rules-dialog h2{font-size:21px;margin-top:0;color:inherit}.posting-rules-dialog p,.posting-rules-dialog li{color:inherit}.posting-rules-dialog ul{padding-left:22px}.posting-rules-dialog form{text-align:right}.posting-rules-dialog button{min-height:44px}
html:is([data-theme=dark],[data-theme=fantasy]) .posting-rules-dialog{background:#16243b;color:#edf3ff;border-color:#c2ac71}
/* Compact preparation and server-backed timer above the room's audio player. */
html #main .boon-room .med-quiet-copy{font-size:13px!important;line-height:1.5;margin:8px 0 4px!important;text-align:center;color:inherit!important;opacity:.7;text-shadow:none!important}
html #main .boon-room #med-timer-slot{margin:0 0 12px}html #main .boon-room #med-timer-slot #med-timer{padding:8px 4px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;color:inherit!important}html #main .boon-room #med-timer :is(h2,label,p,small){font-size:13px!important;line-height:1.5;margin:4px 0!important;font-weight:400;text-shadow:none!important}html #main .boon-room #med-timer label{display:inline-block;margin-right:8px!important}html #main .boon-room #med-timer select{display:inline-block;width:auto;max-width:150px;margin:4px 6px;padding:5px 8px;min-height:34px;font-size:13px;border-radius:9px}html #main .boon-room #med-timer :is(#med-start,.med-actions button){min-height:34px;padding:6px 12px!important;font-size:13px!important;border-radius:12px!important;box-shadow:none!important}html #main .boon-room #med-timer .med-start-orbs{display:none}html #main .boon-room #med-timer .med-actions{justify-content:center;gap:8px;margin:6px 0}html #main .boon-room #med-timer .med-clock{font-size:22px!important;line-height:1.4;text-shadow:none}html #main .boon-room #med-timer>small{display:block;font-size:11px!important;opacity:.6}
/* Quiet translucent player replaces the reconnect hint in the meditation room. */
html #main .boon-room #med-timer>small{display:none!important}html #main .boon-room .med-light-player{background:#ffffff1a!important;border:1px solid #a9d3e64d!important;border-radius:16px!important;box-shadow:none!important;padding:8px 10px!important;margin:4px 0 12px;color:#365c74!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}html #main .boon-room .med-light-player .med-player-play{background:#ffffff29!important;border:1px solid #b4dbe544!important;box-shadow:none!important;color:#365c74!important;width:40px!important;height:40px!important;min-width:40px!important}html #main .boon-room .med-light-player :is(.med-player-time,.med-player-remaining,.med-player-mute){color:#365c74!important;font-size:12px!important}html #main .boon-room .med-player-seek::-webkit-slider-runnable-track{background:linear-gradient(to right,#73b5d6 var(--played,0%),#aed5e266 var(--played,0%))}html #main .boon-room .med-player-seek::-moz-range-track{background:#aed5e266}
/* Room playback is controlled by the compact player alone. */
html #main .boon-room .med-music-buttons{display:none!important}
/* Full-width blue-glass duration/start controls; keep active timers compact. */
html #main .boon-room .med-quiet-copy,html #main .boon-room #med-timer:has(#med-duration)>h2{display:none!important}
html #main .boon-room #med-timer-slot #med-timer:has(#med-duration){position:relative;isolation:isolate;display:grid;gap:12px;box-sizing:border-box;width:100%;padding:16px!important;margin:12px 0 16px!important;border:1px solid #91cbe799!important;border-radius:22px!important;background:linear-gradient(145deg,#f4fcff70,#bee8ff55)!important;box-shadow:inset 0 1px 0 #ffffffb3,0 4px 18px #5caada22!important;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
html #main .boon-room #med-timer:has(#med-duration)>label{display:block;margin:0!important;font-size:15px!important;text-align:left;color:#315f7a!important}
html #main .boon-room #med-timer #med-duration{box-sizing:border-box;display:block;width:100%;max-width:none;min-height:56px;margin:0;padding:12px 16px;font-size:20px;border:1px solid #8cc8e5!important;border-radius:16px;background:linear-gradient(145deg,#ffffff88,#d8f2ff66)!important;color:#245776!important;box-shadow:inset 0 1px 0 #fff9}
html #main .boon-room #med-timer-slot #med-timer #med-start{display:block;width:100%;min-height:56px;margin:0;padding:13px 18px!important;border:1px solid #71bce2!important;border-radius:16px!important;background:linear-gradient(130deg,#e6f8ff99,#a8ddfa88)!important;color:#245776!important;font-size:20px!important;font-weight:600;box-shadow:inset 0 1px 1px #fffc,0 3px 12px #62b4e82b!important}.boon-room #med-start .med-start-label{font-size:inherit;font-weight:inherit}
html #main .boon-room #med-timer-slot #med-timer:has(#med-duration)::after{content:'';display:block;position:absolute;inset:-2px;padding:2px;border-radius:inherit;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 235deg,#89d6ffb3 275deg,#ffffff 310deg,#8fdcff55 335deg,transparent 355deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 4.5s linear infinite;opacity:.85}
@media(prefers-reduced-motion:reduce){html #main .boon-room #med-timer-slot #med-timer:has(#med-duration)::after{animation:none!important}}
html #main .boon-room #med-timer #med-duration{height:56px!important;min-height:56px!important;-webkit-appearance:none;appearance:none;line-height:1.4;padding-right:38px;background-image:linear-gradient(45deg,transparent 50%,#4384a3 50%),linear-gradient(135deg,#4384a3 50%,transparent 50%),linear-gradient(145deg,#ffffff88,#d8f2ff66)!important;background-size:6px 6px,6px 6px,100% 100%!important;background-position:calc(100% - 21px) center,calc(100% - 15px) center,0 0!important;background-repeat:no-repeat!important}
/* Small joystick; room dimensions and movement bounds remain unchanged. */
html #main .boon-room .br-stage{touch-action:pan-y;cursor:default}
html #main .boon-room .br-stage:focus:not(:focus-visible){outline:none}
.boon-room .br-joystick{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);width:76px;height:76px;box-sizing:border-box;border:1px solid #a9d4e299;border-radius:50%;background:#e4f8ff30;box-shadow:inset 0 0 14px #f3fcff44;z-index:120;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;display:grid;place-items:center}
.boon-room .br-joystick span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid #b2daeab0;background:#dbf3ff88;color:#477d95;font-size:25px;transform:translate(var(--jx,0px),var(--jy,0px));pointer-events:none}
.boon-room .br-stage.br-seated-scroll .br-joystick{opacity:.35;cursor:default}
.boon-room .br-scroll-help{font-size:11px;line-height:1.7;text-align:center;margin:12px 8px 16px;color:inherit;opacity:.65}

/* Room controls share the existing theme toolbar; removed on room unmount. */
body>.theme-picker:has(.br-room-mode){display:flex;flex-wrap:nowrap;align-items:center;gap:6px;box-sizing:border-box;padding:6px 20px 0}
body>.theme-picker .br-room-mode{display:flex;align-items:center;gap:5px;min-width:0;margin:0 auto 0 0;white-space:nowrap;font:inherit;color:var(--muted)}
html body>.theme-picker .br-room-mode select{width:auto;max-width:80px;min-width:0;min-height:36px;margin:0;padding:4px 2px;font:inherit;color:var(--muted);background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
@media(max-width:600px){body>.theme-picker:has(.br-room-mode){padding:6px 12px 0;gap:4px;font-size:11px}body>.theme-picker:has(.br-room-mode)>label{font-size:11px}html body>.theme-picker:has(.br-room-mode) #site-theme{max-width:118px;font-size:11px}body>.theme-picker .br-room-mode{gap:3px}html body>.theme-picker .br-room-mode select{max-width:62px}}

/* Quiet live count below audio player and readable active countdown. */
html #main .boon-room .br-status{display:flex!important;justify-content:center!important;align-items:center!important;width:max-content;max-width:100%;box-sizing:border-box;margin:6px auto 12px!important;padding:5px 13px!important;min-height:32px;border:1px solid #a8d1e666!important;border-radius:18px!important;background:#e4f5ff33!important;box-shadow:none!important;color:inherit!important;gap:6px!important}
html #main .boon-room .br-status .br-live-summary{gap:6px!important;color:inherit!important}
html #main .boon-room .br-status :is(h1,#br-online){font-size:13px!important;margin:0!important;line-height:1.5;color:inherit!important}
html #main .boon-room #med-timer-slot #med-timer:has(#med-clock){padding:14px 8px 18px!important}
html #main .boon-room #med-timer-slot #med-timer #med-clock{font-size:clamp(48px,14vw,76px)!important;line-height:1.15;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.025em;margin:10px auto 12px;max-width:100%;color:inherit}

/* Balanced room heading, countdown and player spacing. */
html #main .boon-room.br-fantasy .fv-header{padding:8px 0 0;margin:0}
html #main .boon-room.br-fantasy .fv-title{margin:6px 0 18px!important;padding:0 4px!important}
html #main .boon-room.br-fantasy .fv-title h1{line-height:1.45;margin:0!important}
html #main .boon-room.br-fantasy .br-meditation-panels{margin-top:0!important}
html #main .boon-room #med-timer-slot:has(#med-clock){margin:0 0 14px!important}
html #main .boon-room #med-timer-slot #med-timer:has(#med-clock){padding:8px 6px 12px!important;display:flex;flex-direction:column;align-items:center;gap:8px}
html #main .boon-room #med-timer:has(#med-clock)>h2{margin:0!important;line-height:1.5}
html #main .boon-room #med-timer-slot #med-timer #med-clock{margin:0!important;line-height:1.15}
html #main .boon-room #med-timer:has(#med-clock)>p{margin:0!important;line-height:1.6}
html #main .boon-room #med-timer:has(#med-clock) .med-actions{margin:2px 0 0!important;gap:10px}

html #main .boon-room .med-light-player .med-player-next{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:40px;min-height:40px;padding:0!important;margin:0;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:inherit!important;touch-action:manipulation}
html #main .boon-room .med-light-player{gap:5px!important}
html #main .boon-room .med-light-player .med-player-seek{min-width:24px}

html #main .boon-room .med-light-player{grid-template-columns:40px auto minmax(24px,1fr) auto 32px 32px!important}html #main .boon-room .med-light-player :is(.med-player-mute,.med-player-next){width:32px!important;min-width:32px!important;padding:0!important}

/* Keep all six player controls in one row, next immediately after play. */
html #main .boon-room .med-light-player{display:grid!important;grid-template-columns:40px 32px auto minmax(12px,1fr) auto 32px!important;grid-template-rows:40px;align-items:center!important;gap:4px!important;box-sizing:border-box;width:100%;min-width:0}
html #main .boon-room .med-light-player>*{grid-row:1!important;min-width:0;box-sizing:border-box}
html #main .boon-room .med-light-player .med-player-seek{width:100%;min-width:0;margin:0}
html #main .boon-room .med-light-player :is(.med-player-time,.med-player-remaining){white-space:nowrap}

html #main .boon-room #med-music-name{display:block;width:100%;box-sizing:border-box;text-align:center;font-size:14px!important;line-height:1.6;padding:0 8px!important;margin:4px 0 8px!important;overflow-wrap:anywhere;color:inherit!important;text-shadow:none!important;font-weight:400}

/* Quiet room footer, matched actions and centered stronger joystick. */
html #main .boon-room :is(.fv-asset-note,.br-scroll-help,.br-options>small){display:none!important}
html #main .boon-room .br-stage>[data-action]{box-sizing:border-box;width:94px!important;max-width:calc((100% - 100px)/2)!important;min-height:48px!important;height:48px!important;padding:6px 8px!important;font-size:12px!important;line-height:1.4!important;border-radius:16px!important;display:flex;align-items:center;justify-content:center;bottom:14px!important;white-space:normal}
html #main .boon-room .br-stage>[data-action=status]{left:14px!important}
html #main .boon-room .br-stage>[data-action=sit]{right:14px!important}
html #main .boon-room [data-action=sit].br-holding::after{animation-duration:1s}
html #main .boon-room .br-joystick{display:flex!important;align-items:center;justify-content:center;bottom:9px;width:68px;height:68px;border-color:#5489aacc;background:#39799c66;box-shadow:inset 0 1px 8px #c5edff55,0 2px 8px #28546e30}
html #main .boon-room .br-joystick span{display:flex;align-items:center;justify-content:center;line-height:1;margin:0;padding:0;width:36px;height:36px;color:#214c69;background:#a5d9f2dd;border-color:#568fb6;font-family:Arial,sans-serif}
html #main .boon-room.br-fantasy .br-stage{background:transparent!important;box-shadow:none!important}
html #main .boon-room.br-fantasy .br-stage:after{background:linear-gradient(115deg,transparent 25%,#a9edff12 45%,transparent 65%);mask-image:linear-gradient(transparent,#000 18%,#000 78%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 78%,transparent)}

html #main .boon-room.br-fantasy{background-repeat:no-repeat;background-size:100% 100%;background-color:#cceafa}

/* Preserve the original garden proportions; fade only the image bottom. */
html #main .boon-room.br-fantasy{position:relative;background:linear-gradient(#e4f5ff70,#c9e9fa66),#cceafa!important}
html #main .boon-room.br-fantasy::before{content:'';position:absolute;top:0;left:0;right:0;width:100%;aspect-ratio:3/4;min-height:950px;z-index:-1;pointer-events:none;background:linear-gradient(#e4f5ff70,#c9e9fa66),url('/boon-avatar/garden.webp') center top/cover no-repeat;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 85%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 85%,transparent 100%)}

/* Blue-centered room scenes; the image alone fades at the bottom. */
html #main .boon-room.br-fantasy{--room-scene:url('/themes/world.webp');--room-scene-position:50% 65%}
html #main .boon-room.br-fantasy::before{background-image:linear-gradient(#e4f5ff99,#c9e9fa44),var(--room-scene);background-position:center,var(--room-scene-position);background-size:cover;filter:saturate(.8)}
html #main .boon-room[data-room-scene=falls]{--room-scene:url('/boon-avatar/garden.webp');--room-scene-position:58% center}
html #main .boon-room[data-room-scene=moon]{--room-scene:linear-gradient(#31559988,#387d9e88),url('/themes/world.webp');--room-scene-position:48% 65%}
html #main .boon-room[data-room-scene=sky]{--room-scene:radial-gradient(ellipse at 65% 24%,#ffffffee,transparent 38%),linear-gradient(160deg,#80c7ee,#c9edff 55%,#effaff);--room-scene-position:center}
html #main .boon-room[data-room-scene=aqua]{--room-scene:radial-gradient(ellipse at 30% 75%,#efffffbb,transparent 50%),linear-gradient(155deg,#a4daed,#bfeee9 55%,#82c9e5);--room-scene-position:center}
html #main .boon-room .fv-header{position:relative}
html #main .boon-room.br-fantasy .fv-title{padding-inline:38px!important}
html #main .boon-room .br-scene-switch{position:absolute;top:-8px;right:-3px;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0!important;border:1px solid #8ebfd566!important;border-radius:12px;background:#edfaff66!important;color:#356b85!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation}
html #main .boon-room .br-scene-switch:focus-visible{outline:2px solid #427e9f;outline-offset:2px}

html #main .boon-room .br-stage>[data-action=sit]{white-space:nowrap!important;font-size:11px!important;padding-inline:4px!important;letter-spacing:0}

/* Soft local mist keeps text readable without covering the scenery. */
html #main .boon-room.br-fantasy :is(.fv-title,#med-timer:has(#med-clock),#med-music-name){position:relative;isolation:isolate}
html #main .boon-room.br-fantasy :is(.fv-title,#med-timer:has(#med-clock),#med-music-name)::before{content:''!important;position:absolute;inset:-8px -6px;z-index:-1;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse at center,#f4fcffe0 0%,#edf9ffb8 40%,#e8f6ff66 65%,transparent 84%);filter:blur(9px);transform:none;translate:none;rotate:none;width:auto;height:auto;box-shadow:none;border:0;opacity:1}
html #main .boon-room.br-fantasy #med-timer:has(#med-clock)::before{inset:-10px -8px;background:radial-gradient(ellipse at 50% 40%,#f7fdffeb 0%,#edf9ffc4 42%,#e8f6ff66 67%,transparent 85%);filter:blur(13px)}
html #main .boon-room.br-fantasy :is(.fv-title h1,#med-clock,#med-timer>h2,#med-timer>p,#med-music-name){text-shadow:0 1px 2px #ffffffb3!important}

/* Four public member filters stay in one row in every theme. */
html #main .member-content-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:stretch;width:100%;margin:16px 0 22px}
html #main .member-content-tabs button{min-width:0;width:100%;min-height:44px;margin:0;padding:8px 3px!important;font-size:clamp(10px,2.8vw,14px)!important;line-height:1.4;white-space:nowrap;border:1px solid #d4c599!important;border-radius:12px!important;background:#fbf7eb!important;color:#685127!important;box-shadow:none!important;text-shadow:none!important}
html #main .member-content-tabs button[aria-pressed=true]{background:#ecdcab!important;color:#4e3c16!important;border-color:#a48942!important;font-weight:600}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-profile-hero{background:#172b42!important;border-color:#49617e!important;color:#edf5ff!important}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-profile-hero .member-centered-identity h1{color:#edf5ff!important;text-shadow:none!important}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-profile-hero .member-large-avatar{border-color:#263e58;background:#263e58}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-content-tabs button{background:#1a3049!important;color:#e0edfa!important;border-color:#4d6b8b!important}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-content-tabs button[aria-pressed=true]{background:#355778!important;color:#ffffff!important;border-color:#9ac8e8!important}
html #main .member-content-tabs button:focus-visible{outline:2px solid #65a9d4;outline-offset:3px}

/* Remove the two translucent side ribbons from the meditation banner. */
html #main .hc-meditation .hc-silk{display:none!important}

html #main .dc-root .dc-counts{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px;width:100%;box-sizing:border-box;margin:12px 0 18px;padding:0;color:var(--muted,#787369);font-size:12px!important;line-height:1.5;font-weight:400;text-align:center}html #main .dc-root .dc-counts>span{display:block;min-width:0;margin:0;padding:4px 0;white-space:nowrap;font-size:inherit!important;font-weight:400;background:none;border:0;box-shadow:none}

/* Feed entry shares the Dhamma journal draw CTA. */
.feed-dhamma-invite{grid-column:1/-1;padding:18px 16px;margin:4px 0 8px}

/* Gold glass shortcut for a journal memory. */
.detail-memory-action{display:flex;justify-content:space-between;margin:0 0 20px;gap:8px;align-items:center;flex-wrap:nowrap}.detail-memory-action>.back{margin:0;min-width:0;font-size:clamp(11px,3.2vw,15px);white-space:nowrap}
.detail-memory-action .memory-gold-button{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;min-height:36px;padding:7px 11px;border:1px solid #d4af5799;border-radius:13px;background:linear-gradient(125deg,#fffdf4dd,#f9e6a499 48%,#edca7580);color:#745019;font:inherit;font-size:clamp(11px,3.1vw,14px);font-weight:600;cursor:pointer;box-shadow:inset 0 1px 2px #fff,0 4px 18px #ba8b2630;backdrop-filter:blur(10px)}
.memory-gold-button:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 25%,#ffffffa8 48%,transparent 70%);transform:translateX(-120%);animation:memory-gold-shine 3.8s ease-in-out infinite;pointer-events:none}
.memory-gold-button .rm-orb{display:inline-block;position:relative;width:1.05em;height:1.05em;vertical-align:-.12em;flex:none;border-radius:50%;border:1px solid #8ac9edaa;background:radial-gradient(ellipse at 30% 24%,#ffffffed 0%,#ffffff66 15%,transparent 35%),radial-gradient(circle at 68% 75%,#b5eaff70,transparent 52%),radial-gradient(circle at 50% 45%,#e7faff33 30%,#a1dfff77 74%,#71bde1b3 100%);box-shadow:inset 0 0 4px #ffffffc9,inset -2px -3px 6px #6fbce84d,0 0 9px #90d9ff40}
.memory-gold-button:focus-visible{outline:3px solid #a77920;outline-offset:3px}.memory-gold-button:disabled{cursor:wait;opacity:.7}
@keyframes memory-gold-shine{0%,25%{transform:translateX(-120%)}75%,100%{transform:translateX(120%)}}@keyframes memory-gold-spark{50%{opacity:.45;transform:scale(.75)}}
@media(prefers-reduced-motion:reduce){.memory-gold-button:before,.memory-gold-button:after{animation:none}}

.deva-post-activity{margin:8px 16px 16px;padding:10px 12px;border:1px solid #bda36344;border-radius:12px;background:#c4a04b08;font-size:13px;color:inherit}.deva-post-activity>small{display:block;opacity:.8;margin-bottom:6px}.deva-post-activity>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:7px 0}.deva-post-activity a{display:inline-flex;gap:6px;align-items:center;color:inherit;text-decoration:none}.deva-post-activity img{border-radius:50%;object-fit:cover}.deva-post-activity>div>span{overflow-wrap:anywhere}

/* Compact public profile: home beside theme, edge-to-edge mobile hero. */
.profile-theme-home{display:none}
body:has(#main .member-profile-hero)>.theme-picker{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
body:has(#main .member-profile-hero) .profile-theme-home{display:inline-flex;align-items:center;min-height:44px;margin-right:auto;white-space:nowrap;font-size:13px;color:var(--muted)}
#main:has(.member-profile-hero)>a.back{display:none}
#main:has(.member-profile-hero){padding-top:12px}
html body .member-profile-hero .profile-social-counts{gap:16px;margin:8px 0 12px}
html body .member-profile-hero .profile-social-counts button strong{font-size:20px;font-weight:500}
html body .member-profile-hero .profile-social-counts button span{font-size:12px}
html body .member-profile-hero .profile-social-counts .profile-follow-button{background:transparent!important;border:1px solid #b49a6040!important;border-radius:12px!important}
html body .member-profile-hero .profile-social-counts .profile-follow-button svg{width:18px;height:18px}
@media(max-width:600px){
#main:has(.member-profile-hero){padding-left:12px;padding-right:12px}
#main>.member-profile-hero{width:calc(100% + 24px);max-width:none;margin:0 -12px 24px;border-left:0;border-right:0;border-radius:0}
body:has(#main .member-profile-hero)>.theme-picker{padding-left:12px;padding-right:12px;font-size:12px}
body:has(#main .member-profile-hero) #site-theme{min-width:0;max-width:145px;font-size:12px}
}

/* Deva comment identity: circular layered ring and clear bot attribution. */
#main .compact-comments .deva-comment .byline{display:flex;align-items:center;gap:6px 12px}
#main .deva-comment .deva-comment-author{display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%;line-height:1.5}
#main .deva-comment .deva-portrait-ring{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;padding:3px;border-radius:50%;background:linear-gradient(135deg,#66d7f2,#c4a2ef,#f2cf78);box-shadow:0 0 0 1px #c6a66c66}
#main .deva-comment .deva-portrait-ring img{display:block!important;width:34px!important;height:34px!important;max-width:none!important;object-fit:cover!important;border:2px solid #fff!important;border-radius:50%!important;margin:0!important}
#main .deva-comment .deva-author-name{display:inline;overflow-wrap:anywhere;font-size:13px;font-weight:500}
#main .deva-comment .deva-author-check,.deva-post-activity .deva-author-check{display:inline-block;margin-inline-start:6px;color:#1689cd;font-size:16px;font-weight:700;vertical-align:baseline}
#main .deva-comment .deva-comment-label{font-size:10px;white-space:nowrap;line-height:1.6}
#main .deva-comment .deva-comment-date{flex-basis:100%;font-size:10px;margin-top:2px}

.feed-comment-preview{margin:8px 16px 16px;padding:12px;border:1px solid #bda36344;border-radius:12px;background:#c4a04b08;color:inherit}.feed-comment-row{display:flex;align-items:flex-start;gap:8px;margin:8px 0}.feed-comment-row>div{min-width:0;flex:1}.feed-comment-row img{border-radius:50%;object-fit:cover;display:block}.feed-comment-name{color:inherit;text-decoration:none;font-weight:600;overflow-wrap:anywhere}.feed-comment-row small{display:block;font-size:11px;opacity:.7}.feed-comment-row p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.feed-comment-preview .deva-author-check{color:#1689cd;margin-inline-start:5px}.feed-comments-more{display:inline-block;margin-top:6px;color:inherit;font-size:12px}

#main .calendar-grid .calendar-merit-orb{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;max-width:100%;flex-shrink:0;font-size:12px;line-height:1;font-weight:600;color:#254e67;text-shadow:0 1px 1px #fff;border-radius:50%;margin:0 auto;isolation:isolate}#main .calendar-grid .calendar-merit-orb::before{z-index:-1}html:is([data-theme=dark],[data-theme=fantasy]) #main .calendar-grid .calendar-merit-orb{color:#f4fbff;text-shadow:0 1px 2px #163d59;background-color:#28516b}

.boon-loading .boon-load-progress{width:min(360px,100%);margin:18px auto 12px;color:#648fa5;font-size:12px;line-height:1.6;text-align:left}.boon-load-label,.boon-load-scale{display:flex;align-items:center;justify-content:space-between;gap:10px}.boon-load-label strong{font-size:25px;color:#278abd;font-variant-numeric:tabular-nums}.boon-load-progress progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:16px;margin:10px 0 6px;overflow:hidden;border:1px solid #acd9eb;border-radius:999px;background:#dceff8}.boon-load-progress progress::-webkit-progress-bar{background:#dceff8;border-radius:999px}.boon-load-progress progress::-webkit-progress-value{background:linear-gradient(100deg,#42d6df,#6292ff);border-radius:999px}.boon-load-progress progress::-moz-progress-bar{background:linear-gradient(100deg,#42d6df,#6292ff);border-radius:999px}.boon-load-scale{color:#799aab;font-size:11px}html:is([data-theme=dark],[data-theme=fantasy]) .boon-load-progress{color:#bedbea}html:is([data-theme=dark],[data-theme=fantasy]) .boon-load-label strong{color:#82d8ff}html:is([data-theme=dark],[data-theme=fantasy]) .boon-load-scale{color:#b8cfdf}

/* Compact loading panel, closer to the crystal. */
.boon-loading .boon-load-progress{width:min(252px,70%);margin:4px auto 4px;font-size:10px}.boon-loading .boon-load-label{gap:6px}.boon-loading .boon-load-label strong{font-size:18px}.boon-loading .boon-load-progress progress{height:11px;margin:7px 0 4px}.boon-loading .boon-load-scale{font-size:9px}.boon-loading .boon-load-progress+p{margin-top:6px}

html body #toast.toast-photo-limit{background:#fff1f1!important;color:#a82020!important;border:2px solid #dc4545!important;box-shadow:0 6px 24px #9b202024;max-width:calc(100vw - 32px);font-weight:600;opacity:1;transition:opacity .4s ease}html body #toast.toast-photo-limit.toast-fading{opacity:0}html:is([data-theme=dark],[data-theme=fantasy]) body #toast.toast-photo-limit{background:#391d25!important;color:#ffdddd!important;border-color:#ff8181!important}

.boon-loading-completion{box-sizing:border-box;padding:30px 12px 40px;text-align:center;color:#89754d}

/* Sequential loading fade: content stays hidden until loader has disappeared. */
html body #main.boon-content-wait{opacity:0!important;pointer-events:none!important}#main.boon-content-reveal{animation:boon-content-appear .25s ease-out both}@keyframes boon-content-appear{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){#main.boon-content-reveal{animation:none}}

/* Theme selection lives only in own profile settings; preserve member home navigation. */
body>.theme-picker:not(.theme-profile-settings)>label,body>.theme-picker:not(.theme-profile-settings)>#site-theme{display:none!important}body>.theme-picker:not(.theme-profile-settings):not(.theme-member-navigation):not(:has(.br-room-mode)){display:none!important}

.comment-feeling{margin-top:8px;font-size:12px}.comment-feeling summary{display:flex;align-items:center;gap:6px;cursor:pointer;min-height:36px}.comment-feeling>div{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0}.comment-feeling .jb-reaction-icon{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center}.comment-feeling img{width:22px!important;height:22px!important}.comment-feeling button{min-width:44px;min-height:44px;padding:7px!important;background:#c9a34e12!important;color:inherit!important;border:1px solid #bc9b6055!important;box-shadow:none!important}.comment-feeling button[aria-pressed=true]{outline:2px solid #389aca}.comment-feeling button::before,.comment-feeling button::after{display:none!important}

html body #main details.comment-feeling{position:static!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:8px 0 0!important;padding:0!important}html body #main .comment-feeling>div{position:static!important;display:flex!important;flex-wrap:wrap!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}html body #main .comment-feeling:not([open])>div{display:none!important}html body #main .comment-feeling button{flex:0 0 44px!important;width:44px!important}

#main .comment-feeling summary{flex-wrap:wrap}#main .comment-feeling summary>.jb-reaction-icon{width:auto;max-width:100%;height:auto;min-height:22px;flex-wrap:wrap;gap:4px;white-space:normal}

.feed-comment-preview[data-comments-url]{cursor:pointer}.feed-comment-preview[data-comments-url]:focus-visible{outline:2px solid #3e95bd;outline-offset:3px}

/* Gift administration entrance: scoped transparent gold. */
html body .admin-menu a.gift-admin-link{background:rgba(196,157,72,.10);border:1px solid rgba(184,144,60,.6);color:inherit;box-shadow:none;text-shadow:none;min-height:44px}
html body .admin-menu a.gift-admin-link:hover{background:rgba(196,157,72,.18)}
html body .admin-menu a.gift-admin-link:focus-visible{outline:3px solid #a78036;outline-offset:3px}

/* Short text posts on a white paper panel. */
html body #main .card.short-paper-post>a[data-nav]>.card-content{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:32px 24px!important;background:#fff!important;color:#3b352c!important;text-align:center!important;background-image:linear-gradient(110deg,#faf9f6 0%,#fff 25%,#fff 75%,#faf9f6 100%)!important}html body #main .card.short-paper-post .card-content>.excerpt{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;font-size:clamp(23px,5.5vw,32px)!important;font-weight:500;line-height:1.65!important;color:#3b352c!important;text-align:center!important;margin:0!important;white-space:pre-wrap;overflow-wrap:anywhere}html body #main .card.short-paper-post .card-content>h3{font-size:clamp(24px,5.8vw,34px)!important;line-height:1.5;color:#3b352c!important;text-align:center;margin:0 0 10px!important;overflow-wrap:anywhere}

html body #main .card.short-paper-dhamma>.card-content>a[data-nav]{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:32px 24px!important;background:linear-gradient(110deg,#faf9f6,#fff 25%,#fff 75%,#faf9f6)!important;color:#3b352c!important;text-align:center!important}html body #main .card.short-paper-dhamma>.card-content>a[data-nav]>.excerpt{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;font-size:clamp(23px,5.5vw,32px)!important;font-weight:500;line-height:1.65!important;color:#3b352c!important;text-align:center!important;margin:0!important;white-space:pre-wrap;overflow-wrap:anywhere}html body #main .card.short-paper-dhamma>.card-content>a[data-nav]>h3{font-size:clamp(24px,5.8vw,34px)!important;line-height:1.5;color:#3b352c!important;text-align:center;margin:0 0 10px!important;overflow-wrap:anywhere}

/* Soft ruled paper with a stable per-post pastel border. */
.card.paper-edge-0{--paper-edge:#cbb991}.card.paper-edge-1{--paper-edge:#a9cbd5}.card.paper-edge-2{--paper-edge:#c7b8d7}.card.paper-edge-3{--paper-edge:#b8cdb5}.card.paper-edge-4{--paper-edge:#d8bdb6}
html body #main .card.short-paper-post>a[data-nav]>.card-content,html body #main .card.short-paper-dhamma>.card-content>a[data-nav]{border:1px solid var(--paper-edge,#cbb991)!important;border-radius:8px;background-color:#fff!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(2.475rem - 1px),rgba(137,165,182,.13) calc(2.475rem - 1px),rgba(137,165,182,.13) 2.475rem)!important;box-shadow:none!important}

.dhamma-public-globe{text-align:right;padding:8px 2px 0;font-size:19px;line-height:1.5}html body #main .dhamma-pin-button{min-height:44px;padding:6px 10px!important;border:1px solid #bc9e6855!important;border-radius:12px;background:#c8a45012!important;color:inherit!important;font-size:12px!important;font-weight:400;box-shadow:none!important;text-shadow:none!important;white-space:nowrap}.dhamma-pin-button::before,.dhamma-pin-button::after{display:none!important}.dhamma-author-row{gap:10px}.dhamma-pin-button{margin-inline-start:auto}.dc-pinned{max-width:100%}.dc-pinned>p{font-size:13px;color:var(--muted)}.dc-tabs{flex-wrap:wrap}
.home-announcement{display:flex;align-items:center;gap:8px;max-width:1200px;margin:0 auto;padding:8px 20px;color:var(--muted);font-size:13px;min-height:38px}.announcement-track{flex:1;min-width:0;overflow:hidden}.announcement-text{display:inline-block;white-space:pre;animation:announcement-right 25s linear infinite}.home-announcement:hover .announcement-text,.home-announcement:focus-within .announcement-text,.home-announcement.is-paused .announcement-text{animation-play-state:paused}@keyframes announcement-right{from{transform:translateX(-100%)}to{transform:translateX(var(--travel,100vw))}}html body .home-announcement button,html body .announcement-dialog button,html body .announcement-manage{background:#c5a25212!important;border:1px solid #b59a6155!important;box-shadow:none!important;color:inherit!important;font-weight:400!important;text-shadow:none!important}.home-announcement button{min-width:44px;min-height:44px;padding:4px}.announcement-dialog{width:min(500px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #c9b783;border-radius:20px;background:#fffdf8;color:#413c32}.announcement-dialog::backdrop{background:#14213966}.announcement-dialog h2{font-size:21px}.announcement-dialog textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0;background:transparent;color:inherit}.announcement-dialog label{display:block}.announcement-dialog p{font-size:13px}.announcement-dialog form>div{display:flex;justify-content:flex-end;gap:10px}.announcement-dialog button{min-height:44px}html:is([data-theme=dark],[data-theme=fantasy]) .announcement-dialog{background:#192a3d;color:#edf4ff}html:is([data-theme=dark],[data-theme=fantasy]) .home-announcement{color:#dbe7f5}@media(prefers-reduced-motion:reduce){.announcement-text{animation:none;white-space:normal;overflow-wrap:anywhere}.home-announcement button{display:none}}@media(max-width:600px){.home-announcement{padding:4px 12px}}

/* Member management: readable account and gift information zones. */
.admin-member-card>div{padding-right:0;min-width:0;width:100%}
.admin-member-card>div>.avatar{margin-right:44px}
.admin-member-card .admin-member-details{margin:14px 0}
.member-info-zone{margin:16px 0;padding:16px;border:1px solid rgba(167,141,85,.25);border-radius:16px;background:rgba(167,141,85,.035);overflow-wrap:anywhere;line-height:1.7}
.member-info-zone h3{font-size:1rem;margin:0 0 12px;font-weight:600;color:inherit}
.member-info-zone p{margin:0 0 12px;font-size:.95rem;line-height:1.7}
.member-info-zone p:last-child{margin-bottom:0}
.member-field-label{display:block;font-size:.8rem;opacity:.72;margin-bottom:3px;font-weight:500}
.member-field-value{display:block;overflow-wrap:anywhere}
.member-info-zone .admin-member-email{color:inherit;margin-top:12px}
.member-info-zone details{border-top:1px solid rgba(167,141,85,.2);padding-top:10px;margin-top:12px;font-size:.9rem}
.member-info-zone summary{line-height:1.6;padding:5px 0;cursor:pointer}
.member-info-note{display:block;font-size:.75rem;line-height:1.7;opacity:.7;margin:12px 0}
.member-info-zone .member-gift-history{padding:12px 0;margin:0;border-bottom:1px solid rgba(167,141,85,.18);font-size:.85rem;line-height:1.9}
.member-gift-history:last-child{border-bottom:0}

/* Two balanced member information columns on desktop. */
.member-info-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:16px 0}
.member-info-columns>.member-info-zone{margin:0;min-width:0}
@media(min-width:900px){.member-info-columns{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.member-info-columns>.member-info-zone:only-child{grid-column:1/-1}}

.admin-member-search .member-sort-modes{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.member-sort-modes button{min-height:44px;padding:8px 14px;font-size:.85rem;background:rgba(182,148,65,.06);border:1px solid rgba(182,148,65,.3);color:inherit;box-shadow:none;border-radius:12px}
.member-sort-modes button[aria-pressed="true"]{background:rgba(182,148,65,.16);border-color:#b29452;font-weight:600}
.member-sort-modes button:focus-visible{outline:2px solid #3893b9;outline-offset:3px}

.dhamma-card .card-image{position:relative}
.dhamma-image-globe{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.9);font-size:20px;line-height:1;pointer-events:none}

.social-bar{position:relative}.post-view-count{position:absolute;right:16px;top:8px;color:var(--muted,#7c858b);font-size:12px;font-weight:400;line-height:1.5;opacity:.8;pointer-events:none}

/* Compact image captions in the home feed; keep full post text unchanged. */
#main.fullframe-feed .dhamma-card:has(.card-image)>.card-content{padding-bottom:8px}
#main.fullframe-feed .dhamma-card:has(.card-image) .dhamma-source:empty{display:none;margin:0}
#main.fullframe-feed .dhamma-card:has(.card-image) .card-content .excerpt{white-space:normal;margin-bottom:0;min-height:0}
#main.fullframe-feed .dhamma-card:has(.card-image) .dhamma-source:not(:empty){margin:6px 0 0}

#main .post-detail-byline{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#main .post-pencil-edit{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:auto;width:44px;height:44px;border:1px solid rgba(182,148,65,.3);border-radius:12px;background:rgba(182,148,65,.07);color:var(--ink);box-shadow:none}
#main .post-pencil-edit:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Compact guest actions beside the brand. */
html body #account:has(a[href="/login"]){gap:6px;flex-wrap:nowrap}
html body #account :is(a[href="/login"],a[href="/signup"]){min-height:44px;padding:7px 10px;font-size:12px;line-height:1.3;white-space:nowrap;border:1px solid rgba(182,148,65,.35);border-radius:12px;background:rgba(182,148,65,.08);color:var(--ink);font-weight:500;box-shadow:none;text-shadow:none}
html body #account :is(a[href="/login"],a[href="/signup"])::before,html body #account :is(a[href="/login"],a[href="/signup"])::after{display:none}
@media(max-width:900px){
.top .nav-wrap:has(#account a[href="/login"]){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:14px 12px}
.nav-wrap:has(#account a[href="/login"])>.brand{grid-column:1;grid-row:1;min-width:0}


.nav-wrap:has(#account a[href="/login"])>#account{grid-column:2;grid-row:1;margin:0}
.nav-wrap:has(#account a[href="/login"])>#navigation{grid-column:1/-1;grid-row:2;width:100%;min-width:0}
}
@media(max-width:360px){html body #account :is(a[href="/login"],a[href="/signup"]){font-size:11px;padding:6px}}

/* Quiet compact gold guest buttons with the journal edge animation. */
html body #account :is(a[href="/login"],a[href="/signup"]){position:relative;overflow:visible;min-height:32px;padding:5px 7px;font-size:11px;line-height:1.5;border-radius:10px;background:rgba(182,148,65,.045);border-color:rgba(182,148,65,.24);font-weight:400;box-shadow:none}
html body #account :is(a[href="/login"],a[href="/signup"])::before{display:block;content:"";position:absolute;inset:-6px 0;width:auto;height:auto;transform:none;background:none;animation:none;z-index:0}
html body #account :is(a[href="/login"],a[href="/signup"])::after{display:block;content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#efd18b66 275deg,#fff2c2 310deg,transparent 350deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:boon-edge-light 3.8s linear infinite;opacity:.65;text-shadow:none}
@media(max-width:360px){.top .nav-wrap:has(#account a[href="/login"]){padding-inline:8px;column-gap:4px}html body #account:has(a[href="/login"]){gap:5px}html body #account :is(a[href="/login"],a[href="/signup"]){padding-inline:5px;font-size:10px}}
@media(prefers-reduced-motion:reduce){html body #account :is(a[href="/login"],a[href="/signup"])::after{animation:none;opacity:.4}}

/* Compact heading row for a dhamma entry. */
#main:has(>.dhamma-detail){padding-top:16px}
#main .dhamma-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#main .dhamma-detail-top>.back{margin:0;min-height:44px;display:inline-flex;align-items:center;font-size:12px}
#main .dhamma-detail-top>.dhamma-type{margin:0 0 0 auto;flex-shrink:0;font-size:13px;font-weight:600;color:#98732d}
#main .dhamma-detail-top>.dhamma-type::after{content:' ✧';display:inline-block;color:#c99c42;animation:dhamma-label-sparkle 3s ease-in-out infinite}
#main .dhamma-detail>.detail-content{margin-top:8px}
#main .dhamma-detail .detail-content>h1{margin-top:8px}
html:is([data-theme=dark],[data-theme=fantasy]) #main .dhamma-detail-top>.dhamma-type{color:#e6ca85}
@keyframes dhamma-label-sparkle{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.1);text-shadow:0 0 5px #e9c97888}}
@media(prefers-reduced-motion:reduce){#main .dhamma-detail-top>.dhamma-type::after{animation:none}}

/* Keep Dharma card excerpts close to their cover on all journal lists. */
#main .dhamma-card:has(.card-image)>.card-content{padding-bottom:8px}
#main .dhamma-card:has(.card-image) .card-content .excerpt{white-space:normal;margin-bottom:0;min-height:0;line-height:1.7}
#main .dhamma-card:has(.card-image) .dhamma-source:empty{display:none;margin:0}
#main .dhamma-card:has(.card-image) .dhamma-source:not(:empty){margin:6px 0 0}

/* Quiet, compact readership label. */
.post-view-count{font-size:11px;max-width:calc(100% - 32px);overflow-wrap:anywhere;text-align:right}

/* Illustrated gold guest actions, with a moving rim. */
html body #account :is(a[href="/login"],a[href="/signup"]){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 9px;border-radius:999px;border:1px solid #c6a456;background:linear-gradient(160deg,#fff,#fffaf0 65%,#eee5cf);color:#4c2b10;font-weight:600;box-shadow:0 3px 9px #8894b326,inset 0 0 0 1px #ffffffb3}
html body #account a[href="/signup"]{background:linear-gradient(145deg,#fff6bb,#ffe680 55%,#edc34b);border-color:#d8b146}
html body #account .guest-auth-icon{display:block;width:18px;height:18px;flex:0 0 18px}
html body #account :is(a[href="/login"],a[href="/signup"])::after{inset:-2px;padding:2px;opacity:1;background:conic-gradient(from var(--boon-light-angle),transparent 0deg 245deg,#ffe680 280deg,#fff 310deg,transparent 345deg);animation:boon-edge-light 3.8s linear infinite}
html body #account :is(a[href="/login"],a[href="/signup"]):focus-visible{outline:2px solid #aa7f24;outline-offset:4px}
@media(max-width:380px){html body #account :is(a[href="/login"],a[href="/signup"]){padding-inline:5px;gap:3px;font-size:10px}html body #account .guest-auth-icon{width:14px;height:14px;flex-basis:14px}}
@media(prefers-reduced-motion:reduce){html body #account :is(a[href="/login"],a[href="/signup"])::after{animation:none}}

/* Compact guest buttons: larger labels without oversized padding. */
html body #account:has(a[href="/login"]){gap:4px;min-width:0}
html body #account :is(a[href="/login"],a[href="/signup"]){min-height:32px;padding:3px 5px;gap:3px;font-size:12px;line-height:1.4;box-shadow:inset 0 0 0 1px #ffffff80}
html body #account .guest-auth-icon{width:14px;height:14px;flex-basis:14px}
@media(max-width:380px){html body #account :is(a[href="/login"],a[href="/signup"]){font-size:11px;padding:3px;gap:2px}html body #account .guest-auth-icon{width:12px;height:12px;flex-basis:12px}}
@media(max-width:350px){.top .nav-wrap:has(#account a[href="/login"]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html body #account:has(a[href="/login"]){display:grid;grid-template-columns:1fr;gap:4px;justify-self:end}html body #account :is(a[href="/login"],a[href="/signup"]){min-height:30px;font-size:12px;padding:3px 7px;width:100%}}

/* Small guest actions leave the original logo unobstructed. */
html body #account:has(a[href="/login"]){display:flex;gap:4px;flex-wrap:nowrap;justify-self:end;width:auto}
html body #account :is(a[href="/login"],a[href="/signup"]){width:auto;min-height:26px;padding:2px 4px;gap:2px;font-size:10px;line-height:1.3;font-weight:500}
html body #account .guest-auth-icon{width:11px;height:11px;flex-basis:11px}
html body #account :is(a[href="/login"],a[href="/signup"])::before{inset:-9px 0}
@media(max-width:350px){.top .nav-wrap:has(#account a[href="/login"]){grid-template-columns:minmax(0,1fr) auto}html body #account:has(a[href="/login"]){gap:3px}html body #account :is(a[href="/login"],a[href="/signup"]){font-size:9px;padding-inline:3px}html body #account .guest-auth-icon{width:10px;height:10px;flex-basis:10px}}

/* Extra-small guest action visuals; retain the extended touch area. */
html body #account :is(a[href="/login"],a[href="/signup"]){min-height:22px;padding:1px 3px;gap:1px;font-size:9px;line-height:1.2}
html body #account .guest-auth-icon{width:9px;height:9px;flex-basis:9px}
html body #account :is(a[href="/login"],a[href="/signup"])::before{inset:-11px 0}

/* Detail interactions must reserve space for view counts instead of overlaying reactions. */
#main .detail .detail-content>.post-detail-byline{margin-bottom:8px}
#main .detail:not(.dhamma-detail) .detail-content>.body{margin:10px 0 14px;line-height:1.8}
#main .detail .detail-interaction-row{gap:8px;padding:8px 0 10px}
#main .detail .detail-interaction-row>.social-bar{display:flex;flex:1 0 100%;width:100%;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
#main .detail .detail-interaction-row .post-view-count{position:static;order:2;flex:0 1 auto;margin-left:auto;max-width:100%;text-align:right;white-space:normal;overflow-wrap:anywhere;font-size:11px}
#main .detail .detail-interaction-row .boon-action-group{flex:0 1 auto;flex-wrap:wrap}
#main .detail .detail-interaction-row .detail-owner-actions{flex:1 0 100%;max-width:100%;flex-direction:row;justify-content:flex-end;gap:8px}

/* Public member post list / grid controls. */
html #main .member-content-tabs:has(+.member-view-switch){margin-bottom:8px}
#main .member-view-switch{display:flex;justify-content:flex-end;gap:6px;margin:0 0 14px}
#main .member-view-switch button{display:grid;place-items:center;width:44px;min-height:44px;padding:9px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:12px;box-shadow:none}
#main .member-view-switch button[aria-pressed=true]{background:#b48a3c0d;border-color:#b48a3c66;color:var(--ink)}
#main .member-view-switch button::before,#main .member-view-switch button::after{display:none}
#main .member-view-switch button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#main .member-view-switch svg{width:24px;height:24px}
#main #member-posts.member-view-list{grid-template-columns:minmax(0,1fr)}
#main #member-posts.member-view-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#main #member-posts.member-view-grid .card{min-width:0;overflow:hidden}
#main #member-posts.member-view-grid .card-content{padding:12px;overflow-wrap:anywhere}
#main #member-posts.member-view-grid .card-image{aspect-ratio:1}
@media(max-width:600px){#main #member-posts.member-view-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#main #member-posts.member-view-grid .card-content{padding:8px;font-size:12px}#main #member-posts.member-view-grid .card h2{font-size:15px}}

/* Member grid uses only linked square thumbnails, like the personal journal. */
#main #member-posts .member-grid-tile{display:none}
#main #member-posts.member-view-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#main #member-posts.member-view-grid>.card{display:block;aspect-ratio:1;margin:0;padding:0;min-width:0;border-radius:6px;box-shadow:none;overflow:hidden}
#main #member-posts.member-view-grid>.card>:not(.member-grid-tile){display:none!important}
#main #member-posts.member-view-grid>.card>.member-grid-tile{display:flex;align-items:center;justify-content:center;width:100%;height:100%;aspect-ratio:1;overflow:hidden;background:linear-gradient(135deg,#f4e9d9,#e6e6fa);color:#4b4035;text-decoration:none}
#main #member-posts .member-grid-tile img{width:100%;height:100%;display:block;object-fit:cover}
#main #member-posts .member-grid-tile>span{padding:10px;text-align:center;font-size:clamp(10px,3vw,18px);line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
#main #member-posts .member-grid-tile:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}

/* Earned member badge: round blue seal with a white check. */
html body .posting-check:not(.posting-check-pending){display:inline-flex;align-items:center;justify-content:center;width:1.05em;height:1.05em;min-width:1.05em;padding:0;margin-inline-start:4px;border-radius:50%;background:#0866df;color:#fff;-webkit-text-fill-color:#fff;font-family:Arial,sans-serif;font-size:1em;font-weight:800;line-height:1;vertical-align:-.08em;text-shadow:none;box-shadow:none;flex-shrink:0}

/* Crisp, balanced verification check independent of the system font. */
html body .posting-check:not(.posting-check-pending){font-size:1em;color:transparent;-webkit-text-fill-color:transparent;position:relative}
html body .posting-check:not(.posting-check-pending)::after{content:"";position:absolute;inset:20%;background:#fff;clip-path:polygon(5% 48%,16% 37%,40% 61%,85% 16%,96% 27%,40% 83%);pointer-events:none}

/* Keep the earned badge close to the member name. */
html body .posting-check:not(.posting-check-pending){margin-inline-start:3px}

/* Preserve the pending gray check while reducing its gap after the name. */
html body .posting-check.posting-check-pending{margin-inline-start:3px;padding:5px 0;font-size:1.1em;vertical-align:baseline}

#main .dv-writing-intro .dv-legacy-editor-link{display:table;margin:8px 0 8px auto;padding:7px 12px;min-height:36px;border:1px solid #b48a3c66;border-radius:10px;background:#b48a3c0d;color:var(--ink);font-size:12px;line-height:1.5;text-decoration:none}#main .dv-legacy-editor-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

#main .dv-writing-intro:has(.dv-legacy-editor-link){padding-bottom:0}#main .dv-writing-intro .dv-legacy-editor-link{margin:4px 0 0 auto;padding:7px 12px;min-height:36px}#main .dv-heading:has(.dv-legacy-editor-link){gap:4px;margin-bottom:10px}#main .dv-heading:has(.dv-legacy-editor-link) .dv-heading-actions{margin-top:4px}

/* Long text-only feed preview: lightweight CSS background, full text on opening. */
#main .card:has(>.long-text-preview)>a:not(.long-text-preview):not(.member-grid-tile),#main .dhamma-card:has(>.long-text-preview)>.card-content>a,#main .dhamma-card:has(>.long-text-preview) .dhamma-source{display:none}
#main .card>.long-text-preview{display:flex;flex-direction:column;justify-content:center;gap:18px;min-height:300px;padding:28px 24px 20px;background:radial-gradient(ellipse at 15% 25%,#12658b88,transparent 35%),radial-gradient(ellipse at 90% 80%,#12658b77,transparent 38%),linear-gradient(145deg,#061322,#082d47 55%,#04101c);color:#fff;text-decoration:none;order:2}
#main .long-text-preview-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden;text-align:center;white-space:pre-line;overflow-wrap:anywhere;font-size:clamp(21px,5vw,32px);font-weight:600;line-height:1.65;color:#fff;-webkit-text-fill-color:#fff}
#main .long-text-read-more{align-self:flex-end;background:#fff;color:#172635;-webkit-text-fill-color:#172635;border-radius:7px;padding:7px 14px;font-size:15px;line-height:1.5}
#main .long-text-preview:focus-visible{outline:3px solid #83cfff;outline-offset:-3px}
#main #member-posts.member-view-grid>.card>.long-text-preview{display:none!important}

/* Subtle notebook treatment for Dharma text previews only. */
#main .dhamma-card>.long-text-preview{justify-content:flex-start;min-height:0;gap:10px;padding:18px 20px 14px;background-color:var(--paper,#fffdf8);background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,rgba(137,165,182,.14) 31px,rgba(137,165,182,.14) 32px);background-origin:content-box;color:var(--ink,#3b352c)}
#main .dhamma-card .long-text-preview-copy{font-size:clamp(18px,4.8vw,24px);font-weight:400;line-height:32px;text-align:center;color:inherit;-webkit-text-fill-color:currentColor}
#main .dhamma-card .long-text-read-more{background:#c8a45012;border:1px solid #bc9e6855;color:inherit;-webkit-text-fill-color:currentColor;font-size:12px;padding:5px 10px}
#main .dhamma-card>.long-text-preview:focus-visible{outline-color:#b79755}

/* Quiet reply controls for Dharma comments. */
.comment-reply-button,.comment-reply-cancel{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:5px 10px;font-size:12px;font-weight:400;color:inherit;background:#c8a45012;border:1px solid #bc9e6855;border-radius:9px;text-decoration:none;box-shadow:none}
.comment-reply-context{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;margin:0 0 8px;padding:6px 10px;border-left:2px solid #b79755;overflow-wrap:anywhere}.comment-reply-context[hidden]{display:none}.comment-reply-label{display:block;font-size:12px;color:var(--muted,#827868);overflow-wrap:anywhere}.comments .comment.is-comment-reply{margin-left:16px;padding-left:12px;border-left:1px solid #bc9e6844}.comment-reply-button:focus-visible,.comment-reply-cancel:focus-visible{outline:2px solid #b79755;outline-offset:3px}

/* Override inherited decorative button skins for reply controls only. */
#main .comment-reply-button,#main .comment-reply-cancel{background:#c8a45012!important;border:1px solid #bc9e6855!important;box-shadow:none!important;text-shadow:none!important;color:inherit!important;transform:none!important;font-size:12px!important;font-weight:400!important;border-radius:9px!important}.comment-reply-button::before,.comment-reply-button::after,.comment-reply-cancel::before,.comment-reply-cancel::after{display:none!important}

/* Override inherited decorative button skins for reply controls only. */
#main .comment-reply-button,#main .comment-reply-cancel{background:#c8a45012!important;border:1px solid #bc9e6855!important;box-shadow:none!important;text-shadow:none!important;color:inherit!important;transform:none!important;font-size:12px!important;font-weight:400!important;border-radius:9px!important}.comment-reply-button::before,.comment-reply-button::after,.comment-reply-cancel::before,.comment-reply-cancel::after{display:none!important}

/* Compact, indented Dharma replies with native accessible thread toggles. */
#main .dhamma-comment-threads #comment-list .comment{padding:0;margin:14px 0;background:transparent;border:0;border-radius:0;min-width:0}
#main .dhamma-comment-threads #comment-list .comment>.byline{gap:6px;font-size:11px;line-height:1.5}
#main .dhamma-comment-threads #comment-list .comment .member-link{font-size:13px}
#main .dhamma-comment-threads #comment-list .comment .avatar{width:32px;height:32px;flex-shrink:0}
#main .dhamma-comment-threads #comment-list .comment>p{margin:4px 0 2px 40px;line-height:1.65;font-size:14px}
#main .dhamma-comment-threads #comment-list .comment>.comment-reply-label{margin:2px 0 0 40px;font-size:11px}
#main .dhamma-comment-threads #comment-list .comment>.comment-feeling,#main .dhamma-comment-threads #comment-list .comment>.comment-reaction-options{margin-left:40px;margin-top:2px;margin-bottom:0}
#main .dhamma-comment-threads #comment-list .comment>.comment-reply-button{margin-left:40px;margin-top:0;background:transparent!important;border-color:transparent!important;padding:3px 0!important;min-height:44px;font-size:12px!important;color:var(--muted,#776c5e)!important}
#main .dhamma-comment-threads .comment-replies{margin:2px 0 0 40px;min-width:0}
#main .dhamma-comment-threads .comment-replies>summary{cursor:pointer;min-height:44px;align-content:center;font-size:12px;font-weight:500;line-height:1.5;color:var(--muted,#776c5e);overflow-wrap:anywhere}
#main .dhamma-comment-threads #comment-list .comment-reply-list>.comment{margin:8px 0 12px;padding:0;border:0}
#main .dhamma-comment-threads .comment-replies>summary:focus-visible{outline:2px solid #b79755;outline-offset:2px}
@media(max-width:360px){#main .dhamma-comment-threads .comment-replies{margin-left:28px}#main .dhamma-comment-threads #comment-list .comment>p,#main .dhamma-comment-threads #comment-list .comment>.comment-reply-label,#main .dhamma-comment-threads #comment-list .comment>.comment-feeling,#main .dhamma-comment-threads #comment-list .comment>.comment-reply-button{margin-left:36px}}

#main .dhamma-comment-threads .comment-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-left:40px;min-width:0}html body #main .dhamma-comment-threads .comment-action-row>details.comment-feeling{flex:0 1 auto;display:block!important;width:auto!important;max-width:100%!important;margin:0!important}#main .dhamma-comment-threads .comment-action-row>.comment-reply-button{margin:0!important;background:transparent!important;border-color:transparent!important;padding:3px 0!important;color:var(--muted,#776c5e)!important}@media(max-width:360px){#main .dhamma-comment-threads .comment-action-row{margin-left:36px}}

#main .dhamma-comment-threads .comment-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-left:40px;min-width:0}html body #main .dhamma-comment-threads .comment-action-row>details.comment-feeling{flex:0 1 auto;display:block!important;width:auto!important;max-width:100%!important;margin:0!important}#main .dhamma-comment-threads .comment-action-row>.comment-reply-button{margin:0!important;background:transparent!important;border-color:transparent!important;padding:3px 0!important;color:var(--muted,#776c5e)!important}@media(max-width:360px){#main .dhamma-comment-threads .comment-action-row{margin-left:36px}}

/* Reference spacing: avatar gutter, aligned copy, reply/count, then thread toggle. */
#main .dhamma-comment-threads #comment-list .comment{--comment-avatar:40px;--comment-gutter:50px;position:relative;padding:0 0 0 var(--comment-gutter);margin:18px 0 24px}
#main .dhamma-comment-threads #comment-list .comment>.byline{min-height:20px;gap:5px 8px;line-height:1.5;font-size:11px;margin:0}
#main .dhamma-comment-threads #comment-list .comment .member-link{font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
#main .dhamma-comment-threads #comment-list .comment>.byline .avatar{position:absolute;left:0;top:0;width:var(--comment-avatar);height:var(--comment-avatar);margin:0}
#main .dhamma-comment-threads #comment-list .comment>p{margin:2px 0 4px;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
#main .dhamma-comment-threads .comment-reply-mention{color:#39769f;font-weight:500}
#main .dhamma-comment-threads #comment-list .comment>.comment-action-row{margin:0;gap:6px 18px;min-height:44px}
#main .dhamma-comment-threads .comment-action-row>.comment-reply-button{order:0;font-size:12px!important;font-weight:600!important}
#main .dhamma-comment-threads .comment-action-row>.comment-feeling{order:1}
#main .dhamma-comment-threads .comment-action-row>.comment-reaction-options{order:2}
#main .dhamma-comment-threads .comment-action-row>.comment-feeling>summary{font-size:0;gap:5px;min-height:44px}
#main .dhamma-comment-threads .comment-action-row>.comment-feeling>summary>b{font-size:13px;font-weight:500;color:var(--muted,#776c5e)}
#main .dhamma-comment-threads #comment-list .comment>.comment-replies{margin:0}
#main .dhamma-comment-threads .comment-replies>summary{min-height:44px;padding:0;font-size:13px;line-height:1.5;font-weight:500}
#main .dhamma-comment-threads .comment-reply-list{padding-top:2px}
#main .dhamma-comment-threads #comment-list .comment-reply-list>.comment{--comment-avatar:30px;--comment-gutter:40px;margin:12px 0 20px;padding:0 0 0 var(--comment-gutter)}
html:is([data-theme=dark],[data-theme=fantasy]) #main .dhamma-comment-threads .comment-reply-mention{color:#9dc9ed}
@media(max-width:360px){#main .dhamma-comment-threads #comment-list .comment{--comment-avatar:34px;--comment-gutter:42px}#main .dhamma-comment-threads #comment-list .comment-reply-list>.comment{--comment-avatar:28px;--comment-gutter:34px}#main .dhamma-comment-threads #comment-list .comment>p{font-size:14px}}

/* Reply beside the selected comment, with a separate author tag. */
#main .dhamma-comment-threads #comment-form.is-inline-reply{margin:4px 0 12px;padding:0;min-width:0}
#main .dhamma-comment-threads #comment-form.is-inline-reply .comment-reply-context{margin:0 0 4px;padding:0;border:0;font-size:12px;line-height:1.5}
#main .dhamma-comment-threads #comment-form.is-inline-reply .comment-reply-cancel{border-color:transparent!important;background:transparent!important;min-height:44px;padding:3px 6px}
#main .dhamma-comment-threads #comment-form.is-inline-reply .quick-comments,#main .dhamma-comment-threads #comment-form.is-inline-reply .quick-comment-hint{display:none}
#main .dhamma-comment-threads #comment-form.is-inline-reply .comment-compose-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 6px;align-items:stretch}
#main .comment-compose-tag[hidden]{display:none}
#main .dhamma-comment-threads .comment-compose-tag{grid-column:1;grid-row:1;padding:9px 12px 2px;color:#39769f;background:#f2f4f6;border:1px solid #e2e6e9;border-bottom:0;border-radius:16px 16px 0 0;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
#main .dhamma-comment-threads #comment-form.is-inline-reply #comment-body{grid-column:1;grid-row:2;width:100%;min-height:62px;max-height:180px;border-top:0;border-radius:0 0 16px 16px;padding:4px 12px 10px;font-size:14px;line-height:1.5}
#main .dhamma-comment-threads #comment-form.is-inline-reply .comment-send{grid-column:2;grid-row:1/3;align-self:end;min-height:44px;padding:6px;font-size:13px}

/* Tighter comment rhythm; management action no longer wraps the author line. */
#main .dhamma-comment-threads #comment-list .comment{margin:8px 0 10px}
#main .dhamma-comment-threads #comment-list .comment>.byline{min-height:20px;gap:3px 6px}
#main .dhamma-comment-threads #comment-list .comment>p{margin:0 0 1px;line-height:1.55}
#main .dhamma-comment-threads #comment-list .comment>.comment-action-row{gap:0 12px;margin:0}
#main .dhamma-comment-threads #comment-list .comment-reply-list>.comment{margin:6px 0 10px}
#main .dhamma-comment-threads .comment-action-row>[data-delete-comment]{order:3;margin-left:auto;padding:3px 0;min-height:44px;font-size:10px;background:transparent!important;border:0!important;box-shadow:none!important;white-space:nowrap}
#main .dhamma-comment-threads .comment-replies{padding-top:0}

/* Reply action in the first-feed preview, including clearly identified bot comments. */
#main .feed-comment-row>div>.comment-reply-button{display:inline-flex;min-height:44px;margin:0 0 0 10px;vertical-align:middle;font-size:12px!important}
#main .feed-comment-row>div>.comment-feeling{display:inline-block!important;vertical-align:middle;width:auto!important;max-width:100%!important}
#main .dhamma-comment-threads #deva-comment-list .deva-comment{margin:10px 0;padding:10px 0;background:transparent}
#main .dhamma-comment-threads #deva-comment-list .comment-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0}
#main .dhamma-comment-threads #deva-comment-list .comment-reply-list>.comment{position:relative;margin:6px 0 10px;padding:0 0 0 36px;background:transparent;border:0}
#main .dhamma-comment-threads #deva-comment-list .comment-reply-list>.comment>.byline .avatar{position:absolute;left:0;top:0;width:28px;height:28px}
#main .dhamma-comment-threads #deva-comment-list .comment-reply-list>.comment>p{margin:2px 0 4px;font-size:14px;line-height:1.55}

.cosmetic-sale-label{display:block;font-size:12px;line-height:1.5;color:var(--ink)}.cosmetic-sale-label del{color:var(--muted);margin-right:5px}.cosmetic-sale-label strong{color:#a45224}.cosmetic-sale-label small{display:block;font-size:10px}html:is([data-theme=dark],[data-theme=fantasy]) .cosmetic-sale-label strong{color:#ffd38b}

/* Discreet meditation room version switch. */
.boon-room:has(>.br-room-mode-toggle){position:relative}
.boon-room:not(.br-fantasy):has(>.br-room-mode-toggle){padding-top:48px}
html body .boon-room>.br-room-mode-toggle{position:absolute;top:10px;left:12px;z-index:5;width:auto;min-width:0;min-height:26px;margin:0;padding:3px 9px;font-size:12px;line-height:18px;font-weight:400;color:var(--text,#51452f);background:rgba(190,155,73,.09)!important;border:1px solid rgba(176,143,66,.38);border-radius:8px;box-shadow:none!important;text-shadow:none;cursor:pointer}
html body .boon-room.br-fantasy>.br-room-mode-toggle{color:#224b63}
.boon-room>.br-room-mode-toggle:before{content:'';position:absolute;inset:-9px 0}
.boon-room>.br-room-mode-toggle:focus-visible{outline:2px solid #ad8b40;outline-offset:3px}

/* Meditation duration sits immediately above the member name. */
.boon-room .br-avatar>.br-meditation-time{position:relative;inset:auto;transform:none;translate:none;margin:0 auto 3px;padding:2px 7px;max-width:100%;box-sizing:border-box;z-index:5;white-space:nowrap}
.boon-room .br-avatar>.br-meditation-time[hidden]{display:none}

/* Stack member status above duration and name. */
.boon-room .br-avatar>.br-avatar-status{position:relative;inset:auto!important;transform:none;translate:none;margin:0 auto 3px;max-width:100%;width:max-content;box-sizing:border-box;overflow-wrap:anywhere;white-space:normal;z-index:5}
.boon-room .br-avatar>.br-avatar-status[hidden]{display:none}

/* Keep status and duration directly above the name even with cached room markup. */
.boon-room .br-avatar{display:flex;flex-direction:column;align-items:center}
.boon-room .br-avatar>.br-fantasy-art,.boon-room .br-avatar>.br-figure{order:0;flex-shrink:0}
.boon-room .br-avatar>.br-avatar-status{order:1;margin-bottom:2px;padding:2px 7px}
.boon-room .br-avatar>.br-meditation-time{order:2;margin-bottom:2px}
.boon-room .br-avatar>a{order:3;box-sizing:border-box;width:100%}

/* Readable sale badges within the existing aura/foot shop price frames. */
html body .au-shop .au-item h3{color:#fff6df;font-weight:700;text-shadow:none}
html body .au-shop .au-item>.au-price{color:#fff8e4;font-weight:600}
html body .au-shop .au-item .cosmetic-sale-label{color:#fff5df;font-weight:400;max-width:100%;overflow-wrap:anywhere}
html body .au-shop .au-item .cosmetic-sale-label del{color:#f1e4d5;text-decoration-thickness:1px;font-size:11px}
html body .au-shop .au-item .cosmetic-sale-label strong{display:inline-block;color:#3c290d;background:#ffe09a;border:1px solid #f7ce75;border-radius:5px;padding:1px 5px;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;box-sizing:border-box;max-width:100%;text-shadow:none}
html body .au-shop .au-item .cosmetic-sale-label small{color:#fff0d9;font-size:10px;line-height:1.5;margin:2px 0;font-weight:400}

/* Allow sale content its own row within fairy cards. */
html body .jb-fairies .jb-fairy-card{grid-template-rows:166px auto auto auto auto auto;min-width:0}
html body .jb-fairies .jb-fairy-price{display:flex;flex-wrap:wrap;box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:6px 4px;gap:3px;align-content:center;font-size:clamp(16px,3vw,23px)}
html body .jb-fairies .jb-fairy-price>.cosmetic-sale-label{flex:0 0 100%;width:100%;min-width:0;max-width:100%;font-size:11px;line-height:1.5;color:#58452c;overflow-wrap:anywhere}
html body .jb-fairies .jb-fairy-price .cosmetic-sale-label del{color:#716653;font-size:11px;margin-right:4px}
html body .jb-fairies .jb-fairy-price .cosmetic-sale-label strong{display:inline-block;color:#593607;background:#ffe09a;border:1px solid #d6ad55;border-radius:5px;padding:1px 4px;font-size:11px;white-space:nowrap}
html body .jb-fairies .jb-fairy-price .cosmetic-sale-label small{display:block;font-size:9px;line-height:1.4;color:#685a42;margin:2px 0;white-space:normal}
html body .jb-fairies .jb-fairy-card>:is(.jb-fairy-name,.jb-fairy-details,.jb-fairy-owned){box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
@media(max-width:700px){html body .jb-fairies .jb-fairy-card{grid-template-rows:110px auto auto auto auto auto}}

/* Orb sale badge sits above its existing price frame. */
html body .au-shop.dc-shop .au-item>.cosmetic-sale-label{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:2px 0 5px;text-align:center;line-height:1.5}
html body .au-shop.dc-shop .au-item>.cosmetic-sale-label small{color:#f1e7ff}
html body .au-shop.dc-shop .au-item>.au-rank{color:#ffe8ae}
html body .au-shop.dc-shop .au-item>small{color:#eee8ff}

html body .posting-check.posting-check-official:not(.posting-check-pending){background:#dc2626}

html body .profile-name-block .th-official-anumodana{display:block;max-width:100%;min-height:44px;margin:8px 0 0;padding:8px 12px;border:1px solid #b4945366;border-radius:12px;background:#b4945314;color:inherit;font:inherit;font-size:14px;box-shadow:none;white-space:normal;cursor:pointer}
.th-official-anumodana:focus-visible{outline:2px solid #ad8b40;outline-offset:3px}.th-official-anumodana:disabled{opacity:.65;cursor:wait}.profile-name-block .th-official-result{font-size:12px;line-height:1.5;margin:5px 0}

html body .profile-name-block .th-official-anumodana{margin:8px auto 0;color:inherit}

/* Public visibility marker at the bottom right of post content. */
html body .detail .detail-visibility-host{position:relative;padding-bottom:46px;box-sizing:border-box}
html body .detail .fn-paper.detail-visibility-host{padding-bottom:0}
html body .detail .fn-paper.detail-visibility-host .fn-paper-text{padding-bottom:46px;box-sizing:border-box}
html body .detail .detail-visibility-host>.visibility-icon{position:absolute;inset:auto 12px 12px auto;margin:0;transform:none;z-index:3}

/* Public profile cover inside the account profile card. */
#main .profile-with-cover .profile-settings-cover{height:clamp(170px,32vw,280px);border-radius:18px;overflow:hidden}
#main .profile-with-cover .profile-settings-cover .member-cover-edit{position:absolute;left:auto;z-index:2;margin:0;transform:none;top:10px;right:10px;bottom:auto;min-height:44px;max-width:calc(100% - 20px);background:rgba(255,248,225,.94);color:#594921;border:1px solid #c5aa70;box-shadow:none}
#main .profile-with-cover .member-cover-edit:focus-visible{outline:3px solid #57a9dc;outline-offset:3px}
#main .profile-with-cover .profile-cover-portrait{position:relative;margin:-52px auto 0;width:fit-content;max-width:100%}
#main .profile-with-cover .profile-photo .avatar{width:160px;height:160px;object-fit:cover}
#main .profile-with-cover .profile-name-block>p{font-size:clamp(22px,5vw,32px);overflow-wrap:anywhere}
#main .profile-with-cover .profile-social{margin:12px 0 20px}
#main .profile-with-cover .member-cover-status:not(:empty){position:relative;z-index:4;background:var(--bg,#fffdf7);padding:8px;margin:0}

#main .jb-profile-fairy .jb-profile-fairy-send{display:block;margin:10px auto 0;max-width:100%;min-height:44px;padding:10px 16px;border:1px solid #b69a60;border-radius:18px;background:rgba(202,164,78,.1);color:inherit;font:inherit;line-height:1.5;white-space:normal;box-shadow:none;cursor:pointer}#main .jb-profile-fairy-send:focus-visible{outline:3px solid #57a9dc;outline-offset:3px}#main .jb-profile-fairy-send:disabled{opacity:.55;cursor:default}#main .jb-profile-fairy [role="status"]{display:block;margin-top:8px;font-size:.85em;overflow-wrap:anywhere}

#main .jb-profile-fairy .jb-fairy-scene-switch{position:absolute;right:10px;top:10px;z-index:2;display:grid;place-items:center;width:44px;min-height:44px;padding:8px;border:1px solid #b69a6070;border-radius:12px;background:#fff8dfbb;color:#594921;box-shadow:none}#main .jb-fairy-scene-switch:focus-visible{outline:3px solid #57a9dc;outline-offset:3px}#main .jb-profile-fairy progress{width:100%;max-width:320px;height:12px;accent-color:#9d803c}#main .jb-profile-fairy .jb-fairy-send-report{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}

#main .jb-profile-fairy .jb-fairy-music{position:absolute;left:10px;top:10px;right:auto;z-index:2;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;margin:0;font-size:0;background:rgba(202,164,78,.08);border:1px solid rgba(182,144,61,.35);border-radius:12px;box-shadow:none;transform:none;color:#594921}
#main .jb-fairy-music::before{content:'';display:block;width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='black'/%3E%3Cpath d='m16 9 6 6m0-6-6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
#main .jb-fairy-music[aria-pressed="true"]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='black'/%3E%3Cpath d='M16 8q4 4 0 8m3-11q7 7 0 14' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}

#main .jb-profile-fairy .jb-fairy-music,#main .jb-profile-fairy .jb-fairy-scene-switch{box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:10px;border-radius:12px;border:1px solid rgba(182,144,61,.35);background:rgba(255,248,225,.28);box-shadow:none;color:#594921}
#main .jb-profile-fairy .jb-fairy-music::before{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:22px;height:22px;margin:0}

/* Breathing room below private Dhamma post images. */
#main .dhamma-card .dhamma-author-row:has(>.jj-status.is-private){display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;padding:18px 20px;margin:0}
#main .dhamma-card .dhamma-author-row:has(>.jj-status.is-private) .member-link{display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%}
#main .dhamma-card .dhamma-author-row:has(>.jj-status.is-private) .member-link>.avatar{flex-shrink:0}
#main .dhamma-card .dhamma-author-row:has(>.jj-status.is-private) .member-link strong{min-width:0;overflow-wrap:anywhere;line-height:1.5}
#main .dhamma-card .dhamma-author-row>.jj-status.is-private{flex:0 0 auto;margin:0 0 0 auto;padding:5px 12px;line-height:1.6}

.jb-comment-popup{position:fixed;top:calc(env(safe-area-inset-top,0px) + 14px);right:16px;width:min(350px,calc(100vw - 32px));z-index:10050;border:1px solid var(--line,#d9ceaf);border-radius:16px;background:var(--paper,#fff);color:var(--ink,#352f26);box-shadow:0 6px 24px #0002;padding:16px 38px 16px 14px}.jb-comment-popup>a{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}.jb-comment-popup img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}.jb-comment-popup a>span{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.jb-comment-popup strong,.jb-comment-popup a>span>span{display:block}.jb-comment-popup .jb-comment-popup-close{position:absolute;right:0;top:0;width:36px;min-height:44px;padding:0;border:0;background:transparent;color:inherit;font-size:22px;box-shadow:none}.jb-comment-popup a:focus-visible{outline:2px solid #b79755;outline-offset:4px}

/* White ruled paper for ordinary merit notes, including private previews. */
html body #main textarea.journal-white-paper,html body #main .body.journal-white-paper,html body #main .journal-private-paper .jj-entry-copy>p,html body #main .journal-private-paper .card-content,html body #main .journal-private-paper>.long-text-preview{background-color:#fff!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,rgba(115,125,135,.18) 31px,rgba(115,125,135,.18) 32px)!important;background-origin:content-box;background-clip:padding-box;color:#3b352c!important;-webkit-text-fill-color:#3b352c;line-height:32px!important;text-shadow:none}
html body #main textarea.journal-white-paper,html body #main .body.journal-white-paper{padding:16px 18px!important;border:1px solid #e6e2da;border-radius:14px;min-height:192px;white-space:pre-wrap;overflow-wrap:anywhere}
html body #main textarea.journal-white-paper::placeholder{color:#8c8982;-webkit-text-fill-color:#8c8982}
html body #main .journal-private-paper .long-text-preview-copy,html body #main .journal-private-paper .excerpt{line-height:32px!important;color:#3b352c!important;-webkit-text-fill-color:#3b352c}

#main .journal-layout-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0 16px}#main .journal-layout-controls[hidden]{display:none}#main .journal-layout-controls button{min-height:44px;padding:8px 14px;background:rgba(202,164,78,.08);border:1px solid #b69a6070;border-radius:14px;color:inherit;box-shadow:none}#main .journal-layout-controls button[aria-pressed="true"]{background:rgba(202,164,78,.2);border-color:#a38446}#main .journal-layout-controls button:focus-visible{outline:3px solid #57a9dc;outline-offset:3px}
/* Referral v1.1 compact home card: content may grow for enlarged type. */
#main .member-progress{margin:12px 0;padding:16px;border-radius:24px;overflow:visible;background:linear-gradient(120deg,#fff0f7,#fff 50%,#eaf6ff)}
#main .member-progress h2{font-size:clamp(17px,4.4vw,23px);line-height:1.4;margin:0 0 4px}
#main .member-progress p{margin:4px 0;line-height:1.4;font-size:13px}
#main .member-progress-total{margin:8px 0;gap:0}#main .member-progress-total strong{font-size:40px;line-height:1.1}#main .member-progress-total>span{font-size:12px}
#main .member-progress-meter{margin:8px 0;gap:10px}#main .member-progress-track{height:16px;border-width:2px}#main .member-progress-percent{font-size:17px;min-width:54px}
#main#main .member-progress .member-progress-cta{display:flex;flex-direction:column;gap:2px;width:100%;min-height:54px;margin-top:9px;padding:8px 12px;border-radius:16px;background:linear-gradient(100deg,#c74d99,#ed7eac);border-color:#d88ab7;color:#fff;font-size:16px;box-shadow:none;animation:none}
#main .member-progress-cta small{font-size:11px;font-weight:400}#main .member-progress-fill::after{animation:none}
html:is([data-theme=dark],[data-theme=fantasy]) #main .member-progress{background:linear-gradient(120deg,#38273e,#20374b);color:#e8eafa;border-color:#715476}html:is([data-theme=dark],[data-theme=fantasy]) #main .member-progress :is(h2,p,strong,.member-progress-percent){color:#e2e9fa}
@media(max-width:360px){#main .member-progress{padding:12px}#main .member-progress h2{font-size:16px}}
#main .member-progress{padding:12px}#main .member-progress-total{margin:6px 0}#main .member-progress-meter{margin:6px 0}

/* Compact game introduction and transparent gold sound control. */
#main .orb-game>.back{display:inline-block;margin:0 0 12px}
#main .orb-game>.eyebrow{margin:0 0 8px;line-height:1.5}
#main .orb-game>h1{margin:0 0 10px;line-height:1.35}
#main .orb-game>h1+p{margin:0 0 14px;line-height:1.65}
#main .orb-game>.game-toolbar{margin:0 0 12px;gap:10px 12px}
#main .orb-game #game-sound{background:rgba(191,151,65,.12);border:1px solid rgba(169,132,54,.55);color:inherit;box-shadow:none;text-shadow:none;min-height:44px}
#main .orb-game #game-sound::before,#main .orb-game #game-sound::after{display:none}
#main .orb-game #game-sound:focus-visible{outline:2px solid #b18b3c;outline-offset:3px}

#main .jj-book-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:620px;margin:0 auto}
#main .jj-book-actions>.jj-calendar{display:flex;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:64px;padding:12px 10px;gap:8px;background:rgba(191,151,65,.10);border:1px solid rgba(169,132,54,.48);border-radius:18px;color:inherit;box-shadow:none;text-shadow:none;font-size:clamp(13px,3.5vw,16px);line-height:1.5;text-decoration:none}
#main .jj-book-actions>.jj-calendar::before,#main .jj-book-actions>.jj-calendar::after{display:none}
#main .jj-book-actions .jj-calendar>span:last-child{margin-left:0;font-size:22px}
#main .jj-book-actions .jj-calendar>svg{width:20px;height:20px;flex-shrink:0}
#main .jj-book-actions .jj-calendar:focus-visible{outline:2px solid #b18b3c;outline-offset:3px}
@media(max-width:360px){#main .jj-book-actions{gap:8px}#main .jj-book-actions>.jj-calendar{padding:10px 6px;gap:5px}}
/* Invitation sparkle, traveling border light and intermittent pointing cue. */
@property --jb-invite-edge{syntax:'<angle>';initial-value:0deg;inherits:false}
#main#main .member-progress .member-progress-cta{position:relative;isolation:isolate;overflow:hidden;padding-inline:30px}
#main#main .member-progress .member-progress-cta::before{content:'';display:block;position:absolute;inset:0;padding:2px;border-radius:inherit;background:conic-gradient(from var(--jb-invite-edge),transparent 0% 68%,#ffe9a5 78%,#fff 84%,#ffcfec 90%,transparent 98%);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;pointer-events:none;animation:jb-invite-edge 4s linear infinite}
#main#main .member-progress .member-progress-cta::after{content:'✦';display:block;position:absolute;right:10px;top:5px;font-size:14px;color:#fff9cf;pointer-events:none;animation:jb-invite-sparkle 3s ease-in-out infinite}
#main .member-progress-cta .member-invite-arrow{position:absolute;left:5px;top:calc(50% - 11px);width:22px;height:22px;color:#fff5b4;pointer-events:none;opacity:0;animation:jb-invite-point 6s ease-in-out infinite}
.member-invite-arrow svg{display:block;width:100%;height:100%;filter:drop-shadow(0 1px 2px #a32f7055)}
@keyframes jb-invite-edge{to{--jb-invite-edge:360deg}}
@keyframes jb-invite-sparkle{0%,100%{opacity:.15;transform:scale(.7)}45%{opacity:1;transform:scale(1.15)}70%{opacity:.3;transform:scale(.85)}}
@keyframes jb-invite-point{0%,12%,82%,100%{opacity:0;transform:translateX(-10px)}22%,42%,62%{opacity:1;transform:translateX(2px)}32%,52%{opacity:1;transform:translateX(-3px)}72%{opacity:0;transform:translateX(6px)}}
#main .member-progress:not(.is-visible) .member-progress-cta::before,#main .member-progress:not(.is-visible) .member-progress-cta::after,#main .member-progress:not(.is-visible) .member-invite-arrow{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#main#main .member-progress .member-progress-cta::before,#main#main .member-progress .member-progress-cta::after,#main .member-progress-cta .member-invite-arrow{animation:none}#main .member-progress-cta .member-invite-arrow{opacity:0}#main#main .member-progress .member-progress-cta::after{opacity:.6}}



.profile-lifetime-summary{text-align:center;margin:18px 0;padding:16px 8px;border-top:1px solid #b99a4d44;border-bottom:1px solid #b99a4d44;line-height:1.6}.profile-lifetime-summary>span,.profile-lifetime-summary>strong,.profile-lifetime-summary>small{display:block}.profile-lifetime-summary>span{font-size:12px}.profile-lifetime-summary>strong{font-size:20px;color:#956814;font-weight:700}.profile-lifetime-summary>strong+span{margin-top:10px}.profile-lifetime-summary>small{font-size:12px;opacity:.75}[data-theme=dark] .profile-lifetime-summary>strong{color:#f1d993}[data-theme=fantasy] .profile-lifetime-summary>strong{color:#90671c}

/* Center the meditation leaderboard expansion control. */
#main #med-rank-expand:not([hidden]){display:block;width:fit-content;max-width:100%;min-height:44px;margin:18px auto 8px;padding:10px 22px;background:rgba(95,170,198,.10)!important;color:#35677d!important;border:1px solid rgba(78,142,166,.32)!important;border-radius:16px;box-shadow:none!important;text-shadow:none!important}
#main #med-rank-expand::before,#main #med-rank-expand::after{display:none!important}
#main #med-rank-expand:focus-visible{outline:3px solid #3395b7;outline-offset:3px}
[data-theme=dark] #main #med-rank-expand{background:rgba(132,195,218,.10)!important;color:#cae9f5!important;border-color:rgba(155,205,225,.35)!important}

/* Transparent gold profile save button only. */
#main #profile-form button[type="submit"]{background:rgba(201,163,67,.12)!important;border:1px solid rgba(174,137,47,.48)!important;color:#846321!important;box-shadow:none!important;text-shadow:none!important;min-height:48px;border-radius:18px;animation:none!important}
#main #profile-form button[type="submit"]::before,#main #profile-form button[type="submit"]::after{display:none!important}
#main #profile-form button[type="submit"]:hover{background:rgba(201,163,67,.19)!important}
#main #profile-form button[type="submit"]:focus-visible{outline:3px solid #b58c32;outline-offset:3px}
[data-theme=dark] #main #profile-form button[type="submit"]{color:#f0d998!important;border-color:rgba(224,194,116,.5)!important;background:rgba(224,194,116,.10)!important}

#editor .dhamma-video-upload{display:grid;gap:12px;margin:24px 0;padding:18px 0;border-block:1px solid rgba(190,152,65,.25)}
#editor .dhamma-video-upload [hidden]{display:none!important}
#editor .dhamma-video-upload video{width:100%;max-height:360px;border-radius:16px;background:#101820}
#editor .dhamma-video-upload button{min-height:48px;background:rgba(201,163,67,.1);border:1px solid rgba(174,137,47,.45);color:inherit;border-radius:16px;box-shadow:none}
#editor .dhamma-video-upload button:focus-visible{outline:2px solid #b89035;outline-offset:3px}
#editor .dhamma-video-upload p{margin:0}

/* Orb game statistics must use the active dark palette. */
html:is([data-theme=dark],[data-theme=fantasy]) #main .orb-game :is(.game-personal,.game-summary){background:var(--paper);border-color:var(--line);color:var(--ink)}
html:is([data-theme=dark],[data-theme=fantasy]) #main .orb-game :is(.game-personal,.game-summary) :is(strong,p,h2){color:var(--ink)}
html:is([data-theme=dark],[data-theme=fantasy]) #main .orb-game :is(.game-personal small,.game-existing-ranking>summary,.game-toolbar>span){color:var(--muted)}
html:is([data-theme=dark],[data-theme=fantasy]) #main .orb-game .game-summary a{color:var(--accent)}

/* Center the daily reward numeral independently of Thai text metrics. */
#main .daily-coin-invite>.yellow-coin-icon{display:grid;place-items:center;line-height:1;font-family:Arial,sans-serif;text-align:center;padding:0;letter-spacing:0;text-indent:0}

.traffic-online-members{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.traffic-online-members a{display:flex;align-items:center;gap:7px;min-height:44px;color:inherit;text-decoration:none;font-size:14px;font-weight:400}.traffic-online-members img{border-radius:50%;object-fit:cover}.traffic-online-members>small{flex-basis:100%}

.traffic-today-posters{margin:16px 0;padding:12px 4px;color:inherit}.traffic-today-posters h3{font-size:15px;margin:0 0 10px;font-weight:500}.traffic-today-posters>div{display:flex;flex-wrap:wrap;gap:8px 18px}.traffic-today-posters a{display:flex;align-items:baseline;gap:7px;min-height:32px;color:inherit;text-decoration:none;font-size:14px;max-width:100%}.traffic-today-posters a span{overflow-wrap:anywhere}.traffic-today-posters small{white-space:nowrap;font-size:12px;opacity:.8}

#main#main #journal-top-save{background:linear-gradient(135deg,#f2fcffb3,#bcecff80 55%,#83cde96b);border-color:#78bcd3;color:#235d78;--save-glow-soft:#70c8e340;--save-glow-bright:#70c8e370;--save-glow-shadow:#459dbd30}
#main#main #journal-top-save::before{color:#f5fdff;text-shadow:0 0 5px #439bbd,0 0 10px #c0efff}
#main#main #journal-top-save::after{background:conic-gradient(from var(--boon-light-angle),transparent 0deg 230deg,#8ed9f288 275deg,#effcff 310deg,transparent 350deg)}
html:is([data-theme=dark],[data-theme=fantasy]) #main#main #journal-top-save{background:linear-gradient(135deg,#427b9466,#296c8c66 55%,#18516c88);border-color:#80cbe3;color:#e1f7ff;text-shadow:none}

#editor .privacy-compact{margin-block:18px;padding:0;border:0;min-width:0}#editor .privacy-compact legend{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;font-size:inherit}#editor .privacy-icon-toggle{flex:0 0 44px;width:44px;height:44px;padding:4px;border:1px solid #c7a75a66;background:#d8b45b14;border-radius:12px;font-size:22px;line-height:1}#journal-privacy-choices[hidden]{display:none!important}#journal-privacy-choices:not([hidden]){display:grid;gap:12px;margin-top:12px}

.footer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 56px;column-gap:20px;row-gap:8px;align-items:center;padding:24px 0 28px}.footer>a:not(.footer-purpose){grid-column:1;grid-row:1;align-self:end}.footer>span{grid-column:1;grid-row:2;align-self:start;line-height:1.8}.footer .footer-purpose{position:static;grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;display:grid;place-items:center;width:56px;height:56px;border-radius:50%}.purpose-orb{display:grid;place-items:center;width:48px;height:48px;border:1px solid #8ecce3;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffffde,#c0eaf77a 50%,#6fbad25c);box-shadow:inset 0 0 8px #fff8}.purpose-orb>span{width:28px;height:28px;border:1px solid #94d2e8;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff,#d4f4ffb0 40%,#77c4dc88)}.jodboon-purpose{max-width:760px;margin:0 auto;padding:24px 12px 48px;color:var(--ink);overflow-wrap:anywhere}.jodboon-purpose h1{font-size:clamp(25px,5vw,36px);line-height:1.5;margin:28px 0 20px}.jodboon-purpose h2{font-size:clamp(20px,4vw,25px);line-height:1.6;margin:36px 0 14px;color:var(--accent)}.jodboon-purpose p{line-height:1.95;margin:0 0 18px}.jodboon-purpose hr{border:0;border-top:1px solid var(--line);margin:36px 0}

/* Keep all five primary destinations visible on narrow phones. */
@media(max-width:760px){
.top .nav-wrap #navigation{display:grid;grid-template-columns:.85fr 1.05fr 1.15fr 1.1fr .85fr;gap:0;width:100%;min-width:0;max-width:100%;flex:0 0 100%;overflow:visible;font-size:clamp(11px,3.05vw,14px)}
.top .nav-wrap #navigation>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 2px;line-height:1.5;text-align:center;white-space:normal;overflow-wrap:anywhere}
.top .nav-wrap #navigation>a.active::after{left:12%;right:12%}
}

/* Full post reading keeps the feed's centered, open paper layout. */
#main .detail.text-only-detail .body{margin:20px 0 24px;text-align:center;max-height:none;overflow:visible;-webkit-line-clamp:unset}
#main .detail .dv-reader{margin:0;width:100%;max-width:none;white-space:normal}
#main .detail .dv-reader .dv-page{border:0;border-radius:0;box-shadow:none;padding:16px 4px 24px;min-height:0;height:auto;max-height:none;overflow:visible;font-size:20px;line-height:1.8;text-align:center;background-origin:content-box}
#main .detail .dv-reader .dv-page.dv-lined{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,var(--dv-rule,#e4eaf0) 35px,var(--dv-rule,#e4eaf0) 36px)}
#main .detail .dv-reader .dv-page :is(p,h1,h2,h3,blockquote){text-align:center!important;line-height:36px;min-height:36px;margin:0 0 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;-webkit-line-clamp:unset}
#main .detail .dv-reader .dv-page blockquote{border:0;padding-inline:0}
#main .dhamma-detail .dhamma-body-row{display:block}
#main .dhamma-detail .dhamma-body-row>.body{margin:20px 0 24px}

/* Balanced spacing above the full dhamma reading. */
#main:has(>.dhamma-detail){padding-top:12px}
#main .dhamma-detail-top{margin-bottom:6px;gap:10px}
#main .dhamma-detail>.detail-content{margin-top:0}
#main .dhamma-detail .detail-content>.post-detail-byline{min-height:44px;margin:0 0 12px;row-gap:6px;column-gap:8px}
#main .dhamma-detail .detail-content>.body,#main .dhamma-detail .dhamma-body-row>.body{margin-top:0}
#main .dhamma-detail .dv-reader .dv-page{padding-top:8px}

/* Keep journal photo and author together. */
#main .detail:not(.dhamma-detail)>.detail-media+.detail-content{margin-top:10px}

/* Compact text-only posts with visibility inside the paper corner. */
#main .text-only-card>a[data-nav]>.text-post-label:has(.visibility-icon){right:12px;bottom:10px;background:transparent}
#main .text-only-card>.long-text-preview{position:relative;padding-bottom:42px}
#main .text-only-card .text-post-corner{position:absolute;right:12px;bottom:10px;line-height:1}
#main .text-only-card .text-post-corner>.visibility-icon{width:22px;height:22px;font-size:12px}
html body #main .card.text-only-card.short-paper-post>a[data-nav]>.card-content{min-height:120px;padding:20px 20px 36px!important}
#main.fullframe-feed .text-only-card .card-author{padding-bottom:10px}

/* Quiet comment actions; totals appear only after a reaction. */
html body #main .dhamma-comment-threads .comment-action-row>details.comment-feeling{flex:1 1 0!important;min-width:44px!important}
#main .comment-feeling>summary{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:8px;list-style:none;min-height:44px}
#main .comment-feeling>summary::-webkit-details-marker{display:none}
#main .comment-feeling-totals{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);font-weight:400}
#main .comment-feeling-totals b{font-size:12px;font-weight:400}
#main .comment-feeling-totals img{width:16px!important;height:16px!important}
#main .comment-feeling-trigger{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;color:var(--muted,#807b72)}
#main .comment-feeling-trigger.is-selected{color:#318eae}
#main .comment-feeling>summary:focus-visible{outline:2px solid #78b5cd;outline-offset:2px;border-radius:6px}
#main .dhamma-comment-threads .comment-action-row>.comment-reply-button{font-size:11px!important;font-weight:400!important;min-height:44px;padding:0!important}
#main .dhamma-comment-threads #comment-list .comment>.comment-action-row{gap:0 8px}

/* Feed previews are plain text; actions belong inside comments. */
#main .feed-comment-preview{margin:4px 16px 10px;padding:8px 10px}
#main .feed-comment-row{margin:4px 0;gap:8px}
#main .feed-comment-name{font-size:13px}
#main .feed-comments-more{margin-top:4px;font-size:11px}
#main .dhamma-comment-threads .comment-action-row>.comment-reply-button{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important;line-height:1.4;font-weight:400!important;padding:0 4px!important}

/* Compact horizontal reaction picker, anchored to the comment actions. */
#main .dhamma-comment-threads .comment-action-row{position:relative}
html body #main .dhamma-comment-threads .comment-action-row>.comment-feeling[open]>div{position:absolute!important;right:0;bottom:44px;z-index:20;display:flex!important;flex-flow:row nowrap!important;gap:2px;width:max-content!important;max-width:100%!important;overflow-x:auto;box-sizing:border-box!important;padding:4px!important;border:1px solid #bc9b6044;border-radius:20px;background:var(--paper,#fffdf8);box-shadow:0 3px 12px #0001}
html body #main .dhamma-comment-threads .comment-action-row>.comment-feeling>div>button{flex:0 0 30px!important;width:30px!important;min-width:30px!important;min-height:36px!important;height:36px!important;padding:3px!important;border:0!important;border-radius:50%;background:transparent!important;display:grid;place-items:center}
#main .dhamma-comment-threads .comment-feeling>div .jb-reaction-icon{width:20px;height:20px;font-size:20px;line-height:1}
#main .dhamma-comment-threads .comment-feeling>div img{width:20px!important;height:20px!important}

.comment-members-dialog{width:min(300px,calc(100vw - 40px));max-height:60vh;padding:12px;border:1px solid #bda36355;border-radius:14px;background:var(--paper,#fffdf8);color:var(--ink,#3b352c)}
.comment-members-dialog::backdrop{background:#0004}
.comment-members-dialog form{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px;font-size:13px}
.comment-members-dialog form button{background:transparent;border:0;color:inherit;width:36px;height:36px;padding:0;font-size:22px}
.comment-members-list{display:grid;gap:4px;font-size:12px}
.comment-members-list a{display:flex;align-items:center;gap:8px;padding:5px 0;color:inherit;text-decoration:none}
.comment-members-list img{border-radius:50%;object-fit:cover}.comment-members-list a span{flex:1;overflow-wrap:anywhere}.comment-members-list small{font-size:16px}
[data-feeling-members]:focus-visible{outline:2px solid #78b5cd;outline-offset:3px}

#main .feed-comment-copy{display:flex;align-items:baseline;gap:8px}
#main .feed-comment-copy>p{flex:1;min-width:0}
#main .feed-comment-reply-text{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:32px;padding:0 2px;font-size:11px;font-weight:400;line-height:1.4;color:var(--muted,#776c5e);background:transparent;border:0;box-shadow:none;text-decoration:none}
#main .feed-comment-reply-text:focus-visible{outline:2px solid #78b5cd;outline-offset:2px;border-radius:4px}

#main .dhamma-card-heading{align-items:center;gap:8px;margin-bottom:4px}
#main .dhamma-time-meta{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;flex-shrink:0;color:var(--muted,#847c6a);font-size:11px;line-height:1.4}
#main .dhamma-time-meta time{font-size:11px;color:inherit}
#main .dhamma-time-globe{font-size:12px;line-height:1}

#main.fullframe-feed .card-author.feed-author-compact{display:flex;align-items:center;gap:9px;padding:12px 16px 8px}
#main .feed-author-avatar{flex:none}#main .feed-author-avatar .avatar{width:36px;height:36px}
#main .feed-author-info{min-width:0;flex:1}#main .feed-author-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;line-height:1.4}
#main .feed-author-name strong{font-size:14px;overflow-wrap:anywhere}#main .feed-author-name a{color:inherit;text-decoration:none}
#main .feed-follow{background:transparent!important;border:0!important;box-shadow:none!important;padding:3px 0!important;font-size:12px!important;color:#2885ad!important;min-height:28px;line-height:1.3}
#main .feed-follow::before,#main .feed-follow::after{display:none!important}
#main .feed-author-time{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.5;color:var(--muted)}
#main.fullframe-feed .card:has(.feed-author-compact) .text-post-label,#main.fullframe-feed .card:has(.feed-author-compact) .text-post-corner,#main.fullframe-feed .card:has(.feed-author-compact) .card-image>.visibility,#main.fullframe-feed .card:has(.feed-author-compact) .dhamma-image-globe,#main.fullframe-feed .card:has(.feed-author-compact) .dhamma-time-meta{display:none!important}

#main.fullframe-feed .card-author.feed-author-compact{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:start;column-gap:9px}
#main .feed-author-compact .feed-author-time>span{display:inline-flex;align-items:center}
#main .feed-muted-globe{color:var(--muted,#807b72);opacity:.85;vertical-align:middle}
#main.fullframe-feed .feed-author-compact>.post-date{font-size:10px;padding-top:2px;line-height:1.5;color:var(--muted);font-weight:400}
#main.fullframe-feed .feed-author-compact>.post-date>time{display:block;font-size:10px;max-width:110px;font-weight:400;line-height:1.5}

/* Align feed totals and readership, then keep actions close beneath. */
#main.fullframe-feed .card .social-bar{padding:5px 12px 4px;gap:0 6px;align-items:center}
#main.fullframe-feed .card .social-bar>.boon-action-group{display:contents}
#main.fullframe-feed .card .social-bar .jb-reaction-summary{grid-column:1;grid-row:1;align-self:center}
#main.fullframe-feed .card .social-bar .jb-reaction-summary>summary{min-height:32px}
#main.fullframe-feed .card .social-bar>.post-view-count{position:static;grid-column:2/4;grid-row:1;align-self:center;justify-self:end;max-width:100%;margin:0;font-size:10px;line-height:1.4}
#main.fullframe-feed .card .social-bar .jb-reaction-button{grid-column:1;grid-row:2}
#main.fullframe-feed .card .social-bar>.comment-link{grid-column:2;grid-row:2}
#main.fullframe-feed .card .social-bar>.feed-line-share{grid-column:3;grid-row:2}
#main.fullframe-feed .feed-comment-preview{margin-top:2px;margin-bottom:8px}
#main .feed-comment-heading{display:flex;align-items:baseline;justify-content:space-between;gap:5px 8px;flex-wrap:wrap}
#main .feed-comment-heading>.feed-comment-name{min-width:0;overflow-wrap:anywhere}
#main .feed-comment-heading>.feed-bot-label{margin-left:auto;flex:none;font-size:9px;font-weight:400;line-height:1.4;color:var(--muted);opacity:.8}

#main .feed-author-time{flex-wrap:wrap;gap:3px 5px}
#main .feed-author-time>.feed-follow{min-height:24px;padding:0 2px!important;font-size:11px!important;line-height:1.4}
#main .feed-author-name{row-gap:0}
#main.fullframe-feed .card-author.feed-author-compact{padding-top:10px;padding-bottom:6px}

#main .detail-author-identity{min-width:0;flex:1}
#main .detail-author-meta{display:flex;align-items:center;gap:4px;margin:1px 0 0 38px;font-size:11px;line-height:1.4;color:var(--muted)}
#main .detail-author-meta>span{display:inline-flex;align-items:center}
#main .detail .detail-content>.body,#main .detail .dhamma-body-row>.body{margin-bottom:8px}
#main .detail .dv-reader .dv-page{padding-bottom:8px}
#main .detail .detail-interaction-row{padding:5px 0 6px;gap:4px}
#main .detail .detail-interaction-row>.social-bar{flex-wrap:nowrap;gap:4px;align-items:center}
#main .detail .detail-interaction-row .boon-action-group{gap:6px;flex-wrap:nowrap;min-width:0}
#main .detail .detail-interaction-row .post-view-count{flex:0 0 auto;font-size:10px;white-space:nowrap;margin-left:auto}
#main .detail .detail-interaction-row .boon-button{font-size:11px;padding:4px 2px;gap:4px}
#main .detail .detail-interaction-row .boon-orb{width:20px;height:20px;flex-basis:20px}

/* Keep detail identity on two close lines beside the avatar. */
#main .detail-author-identity{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;row-gap:0;align-items:center}
#main .detail-author-identity>.member-link{display:contents}
#main .detail-author-identity>.member-link>.avatar{grid-column:1;grid-row:1/3;width:30px;height:30px;align-self:start}
#main .detail-author-identity>.member-link>strong{grid-column:2;grid-row:1;font-size:14px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
#main .detail-author-identity>.detail-author-meta{grid-column:2;grid-row:2;margin:0;font-size:10px;line-height:1.35}
#main .detail .detail-content>.post-detail-byline{align-items:center;row-gap:4px;margin-bottom:6px}
#main .detail .dv-reader .dv-page{padding-top:4px}

/* Match the detail date to the quiet relative time and shrink edit control. */
#main .detail .post-detail-byline>.post-date{font-size:10px;line-height:1.35;font-weight:400;flex-shrink:0}
#main .detail .post-detail-byline>.post-date summary,#main .detail .post-detail-byline>.post-date time{font-size:10px;line-height:1.35;font-weight:400}
#main .detail .post-detail-byline>.post-pencil-edit{width:30px;height:30px;min-width:30px;min-height:30px;border-radius:8px;margin-left:2px;padding:0}
#main .detail .post-detail-byline>.post-pencil-edit svg{width:15px;height:15px}

#main .feed-date-type{display:flex;flex-direction:column;align-items:flex-end;gap:1px;align-self:start;padding-top:2px}
#main.fullframe-feed .feed-author-compact .feed-date-type>.post-date{padding:0;margin:0;font-size:10px;line-height:1.4;color:var(--muted)}
#main .feed-dhamma-label{font-size:10px;line-height:1.4;font-weight:400;color:var(--muted)}
#main.fullframe-feed .dhamma-card:has(.feed-author-compact)>.card-content>.dhamma-card-heading{display:none}
#main.fullframe-feed .dhamma-card:has(.feed-author-compact)>.card-content{padding-top:2px;padding-bottom:8px}
#main.fullframe-feed .dhamma-card:has(.feed-author-compact)>.card-author{padding-bottom:5px}
#main.fullframe-feed .dhamma-card:has(>.long-text-preview):has(.feed-author-compact)>.card-content:has(>.dhamma-card-heading){padding-top:0;padding-bottom:0}

/* Understated transparent gold for ranking pagination. */
html body #main :is(#consistent-more,#ranking-more) button{background:rgba(190,155,73,.08)!important;background-image:none!important;border:1px solid rgba(170,137,63,.35)!important;color:#806735!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;transform:none!important;min-height:44px;padding:9px 22px;border-radius:14px;font-size:14px;font-weight:500}
html body #main :is(#consistent-more,#ranking-more) button::before,html body #main :is(#consistent-more,#ranking-more) button::after{display:none!important}
html body #main :is(#consistent-more,#ranking-more) button:hover:not(:disabled){background:rgba(190,155,73,.14)!important}
html body #main :is(#consistent-more,#ranking-more) button:focus-visible{outline:2px solid #aa8945;outline-offset:3px}
html:is([data-theme=dark],[data-theme=fantasy]) body #main :is(#consistent-more,#ranking-more) button{background:rgba(218,182,103,.09)!important;border-color:rgba(218,182,103,.38)!important;color:#e2c98f!important}

#posts>.pwa-feed-card{grid-column:1/-1;margin:16px 0}.pwa-feed-card[hidden]{display:none!important}
.journal-layout-preview #cover-preview{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.journal-layout-preview #cover-preview:active{cursor:grabbing}.journal-layout-preview>small{display:block;text-align:center;margin-top:10px;font-size:12px;line-height:1.6;color:inherit}

.journal-pan-stage{position:relative;width:100%}.journal-pan-arrows{position:absolute;inset:0;pointer-events:none;display:none}.can-pan .journal-pan-arrows{display:block}.journal-pan-arrows svg{position:absolute;width:36px;height:58px;fill:none;stroke:#27b8f3;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #ffffffdd);animation:journalPanUp 5s ease-in-out infinite}.journal-pan-arrows .pan-arrow-up{right:6%;top:18%}.journal-pan-arrows .pan-arrow-down{left:6%;bottom:18%;animation-name:journalPanDown}.journal-pan-stage.is-dragging .journal-pan-arrows{visibility:hidden}@keyframes journalPanUp{0%,55%,100%{opacity:0;transform:translateY(8px)}12%,32%{opacity:1}38%{opacity:1;transform:translateY(-10px)}50%{opacity:0;transform:translateY(-10px)}}@keyframes journalPanDown{0%,55%,100%{opacity:0;transform:translateY(-8px)}12%,32%{opacity:1}38%{opacity:1;transform:translateY(10px)}50%{opacity:0;transform:translateY(10px)}}@media(prefers-reduced-motion:reduce){.journal-pan-arrows svg{animation:none;opacity:.65}}
/* Compact only the own-profile theme and title area. */
body:has(#main .profile-page)>.theme-picker{margin-top:0;margin-bottom:0;padding-top:4px;padding-bottom:0}
#main:has(>.profile-page){padding-top:12px}
#main .profile-page>.page-heading{margin-top:0;margin-bottom:10px;row-gap:6px}
#main .profile-page>.page-heading>h1{margin-top:0;margin-bottom:0;line-height:1.4}

body>.theme-picker.theme-profile-settings{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;max-width:790px;box-sizing:border-box;margin:0 auto;padding:8px 20px 0}body>.theme-profile-settings .profile-inline-title{font-size:18px;line-height:1.4;font-weight:500;margin:0 auto 0 0;white-space:nowrap}body>.theme-profile-settings>label{font-size:11px;white-space:nowrap}body>.theme-profile-settings>#site-theme{font-size:11px;width:auto;min-width:0;max-width:120px}body>.theme-profile-settings>.profile-theme-home{display:none}#main:has(>.profile-page){padding-top:8px}#main .profile-page>.page-heading:not(:has(a)){display:none}
/* Balanced profile title row and cover spacing. */
body>.theme-picker.theme-profile-settings{padding-top:12px;padding-bottom:8px;min-height:52px}
body>.theme-profile-settings .profile-inline-title{line-height:1.5}
#main:has(>.profile-page){padding-top:8px}
#main .profile-page>.page-heading{margin-top:0;margin-bottom:12px;row-gap:8px}
#main .profile-page>.page-heading:empty{display:none}

.traffic-today-posters h3{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}.traffic-today-posters .traffic-posters-summary{font-size:12px;font-weight:500;white-space:nowrap;opacity:.85}
/* Gentle guide for sharing Khun Yai teachings. */
.fortune-result-actions:has(>.reflection-share){padding-top:32px}
.fortune-result-actions>.reflection-share{position:relative}
.fortune-result-actions>.reflection-share::before{content:"";position:absolute;top:auto;right:auto;left:50%;bottom:calc(100% + 8px);width:30px;height:34px;z-index:1;border-radius:0;pointer-events:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M16 3v29M5 21l11 12 11-12' fill='none' stroke='%235acdf5' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");animation:khunyaiShareGuide 4s ease-in-out infinite}
.fortune-result-actions>.reflection-share:disabled::before{display:none}
@keyframes khunyaiShareGuide{0%,65%,100%{opacity:0;transform:translate(-50%,-6px)}15%,40%{opacity:1}30%,50%{transform:translate(-50%,2px)}58%{opacity:0}}
@media(prefers-reduced-motion:reduce){.fortune-result-actions>.reflection-share::before{animation:none;opacity:.7;transform:translateX(-50%)}}

.detail-owner-actions .detail-post-status{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:40px;margin-right:auto;font-size:21px;flex-shrink:0}

#main .profile-page>.page-heading .profile-shortcuts .profile-analytics-button{grid-column:2;justify-self:start;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;min-height:44px;margin:0;padding:7px 11px;border:1px solid #d9c48c;border-radius:13px;background:#d7a34b12;box-shadow:none;color:var(--text,#8d692a);font-family:inherit;font-size:13px;font-weight:650;line-height:1.6;text-align:center;text-decoration:none;white-space:normal}#main .profile-analytics-button:focus-visible{outline:3px solid #b89349;outline-offset:3px}

.med-feed-shortcut.chant-feed-shortcut{display:block;padding:12px 14px;border:0;background:transparent;box-shadow:none;min-height:0}.chant-feed-shortcut>a{display:block;width:100%;padding:0;margin:0;background:none;border:0;box-shadow:none}.chant-feed-shortcut img{display:block;width:100%;height:auto;object-fit:contain}.chant-feed-shortcut::before,.chant-feed-shortcut::after{display:none}
/* Fill the empty left cell beside analytics with the later-loaded OnlyMonk link. */
#main .profile-page>.page-heading:has(.profile-analytics-button){grid-auto-flow:row dense}
#main .profile-page>.page-heading:has(.profile-analytics-button) .profile-onlymonk-link{grid-column:1;align-self:center}

/* Scoped, presentation-only notebook. Existing forms and event handlers remain intact. */
.jb-notebook{--ink:#51300e;--gold:#d2a448;position:relative;color:var(--ink);isolation:isolate;padding:0 4px 42px;margin:12px auto 0;max-width:1050px;min-width:0}
.jb-notebook:before{content:"";position:absolute;inset:-12px -16px 0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 6% 5%,#f5dcec88,transparent 40%),radial-gradient(ellipse at 95% 5%,#c9d8fc77,transparent 38%),radial-gradient(ellipse at 50% 100%,#ffe8a46b,transparent 35%);border-radius:40px}
.jb-notebook-header{position:relative;display:flex;align-items:center;min-height:112px;padding:8px 120px 24px 14px;margin-bottom:22px}
.jb-notebook-header h1{font-size:clamp(25px,4.5vw,42px);font-weight:700;line-height:1.4;letter-spacing:0;margin:0;color:#573005;text-shadow:0 2px #fff7d6}
.jb-quill{width:112px;height:98px;object-fit:contain;flex:none;margin-left:10px;filter:drop-shadow(0 3px 3px #af791b30)}
.jb-header-lotus{position:absolute;width:115px;height:115px;right:-8px;top:0;opacity:.85;pointer-events:none;transform:rotate(12deg)}
.jb-profile-book{position:relative;border:3px solid #c99727;border-radius:34px;padding:54px 9px 12px;background:linear-gradient(115deg,#fff8dd,#fffdf4 35%,#f5e6c3);box-shadow:0 0 0 2px #fff0af,inset 0 0 0 3px #fff8e7,inset 0 0 0 5px #e2c27e,0 5px 0 #e6b54e,0 8px 0 #986322,0 12px 20px #75502024}
.jb-profile-book:before{content:"";position:absolute;inset:10px;border:1px solid #d4ad63;border-radius:24px;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.6%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20opacity%3D%22.12%22%20filter%3D%22url%28%23n%29%22%2F%3E%3C%2Fsvg%3E');pointer-events:none}
.jb-rings{position:absolute;top:-25px;left:8%;right:8%;display:flex;justify-content:space-between;z-index:4;pointer-events:none}
.jb-rings i{width:19px;height:57px;border-radius:50% 50% 45% 45%;border:1px solid #a56c15;background:linear-gradient(90deg,#7c470b 0%,#d49a23 15%,#fff1a3 38%,#fffbe0 48%,#eabc50 58%,#a9660c 90%);box-shadow:3px 4px 4px #75410a55,inset 1px 0 2px #fff4ca;position:relative}
.jb-rings i:after{content:"";position:absolute;left:-4px;right:-4px;bottom:-4px;height:16px;border-radius:50%;border:2px solid #eac565;box-shadow:0 2px 2px #6c431c44;z-index:-1;background:#6e431d}
.jb-book-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:0;position:relative;padding:0 4px;isolation:isolate}
.jb-book-tabs a{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;min-height:108px;padding:35px 4px 12px;text-align:center;text-decoration:none;color:#4b2a14!important;font-size:clamp(13px,2.4vw,25px);font-weight:700;line-height:1.35;border:1px solid #e3bb52;border-bottom:0;border-radius:38px 38px 0 0;background:radial-gradient(ellipse at 30% 0,#fffccb,#ffe567 70%);box-shadow:inset 0 3px 2px #fffcec,inset 3px 0 5px #fff6c0,inset -3px 0 5px #c08e1c35;transition:filter .15s}
.jb-book-tabs a:nth-child(2){border-color:#e8a0c5;background:radial-gradient(ellipse at 30% 0,#ffe5f4,#f5a8cf 75%);box-shadow:inset 0 3px 2px #fff7fc,inset 3px 0 5px #fff2fb,inset -3px 0 5px #ba47732b}
.jb-book-tabs a:nth-child(3){border-color:#73c9eb;background:radial-gradient(ellipse at 30% 0,#e7faff,#94d9f4 75%);box-shadow:inset 0 3px 2px #f5ffff,inset 3px 0 5px #e7f9ff,inset -3px 0 5px #1281ac30}
.jb-book-tabs a:before{content:"";position:absolute;inset:7px 6px 0;border:1px dashed #ffffffc9;border-bottom:0;border-radius:31px 31px 0 0;pointer-events:none}
.jb-book-tabs a[aria-current=page]{min-height:117px;z-index:2;filter:saturate(1.08)}
.jb-book-tabs a[aria-current=page]:after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:22px;background:linear-gradient(transparent,#fffaf0);pointer-events:none;z-index:3}
.jb-book-tabs a img{position:absolute;top:-29px;left:50%;transform:translateX(-50%);width:62px;height:62px;filter:drop-shadow(0 2px 2px #fff) drop-shadow(0 0 5px #fff9);pointer-events:none}
.jb-book-tabs a:hover{filter:brightness(1.035)}.jb-book-tabs a:focus-visible{outline:3px solid #80600b;outline-offset:3px;z-index:5}
.jb-book-paper{position:relative;isolation:isolate;background:#fffcf3 url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.6%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20opacity%3D%22.12%22%20filter%3D%22url%28%23n%29%22%2F%3E%3C%2Fsvg%3E');border:1px solid #dbb76d;border-radius:27px 27px 40px 27px;padding:23px 22px 115px;box-shadow:0 -4px 0 #fffdf6,0 -6px 0 #e5d3ae,0 3px 0 #e4ce97,0 7px 8px #99703725;color:#513718}
.jb-book-paper:before{content:"";position:absolute;inset:7px;z-index:-1;border:1px solid #e1c18a;border-radius:22px 22px 34px 22px;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d4a341%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M5%2094V30Q4%205%2029%205H94M14%2070V31Q14%2013%2035%2014H70M8%2038C45%2049%2046%200%2023%2011C8%2018%2029%2042%2032%2020M37%209Q50%2035%2073%2018%22%2F%3E%3Cpath%20d%3D%22M18%2063Q48%2047%2038%2032Q28%2044%2018%2063M50%2017Q68%2041%2085%2026Q68%2023%2050%2017%22%20fill%3D%22%23e4bd67%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') top left/62px 62px no-repeat,radial-gradient(ellipse at 50% 0,#fff9d866,transparent 45%);pointer-events:none}
.jb-book-paper:after{content:"";position:absolute;right:10px;top:10px;width:60px;height:60px;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d4a341%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M5%2094V30Q4%205%2029%205H94M14%2070V31Q14%2013%2035%2014H70M8%2038C45%2049%2046%200%2023%2011C8%2018%2029%2042%2032%2020M37%209Q50%2035%2073%2018%22%2F%3E%3Cpath%20d%3D%22M18%2063Q48%2047%2038%2032Q28%2044%2018%2063M50%2017Q68%2041%2085%2026Q68%2023%2050%2017%22%20fill%3D%22%23e4bd67%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center/contain no-repeat;transform:scaleX(-1);pointer-events:none;z-index:-1}
.jb-paper-heading{position:relative;text-align:center;margin:0 auto 24px;max-width:90%;color:#573009}.jb-paper-heading>img{display:block;width:55px;height:55px;margin:0 auto 4px;filter:drop-shadow(0 0 9px #ffe894)}
.jb-paper-heading h2{display:table;position:relative;margin:0 auto;padding:7px 28px;border:1px solid #ddae46;outline:1px solid #f7dd91;outline-offset:3px;border-radius:20px;font-size:clamp(20px,3.2vw,32px);line-height:1.4;background:linear-gradient(110deg,#fff5c6,#efd078 45%,#fff1bd 75%,#eac15f);box-shadow:inset 0 0 0 2px #fff3be,0 3px 5px #a47c2620;color:#563009}
.jb-paper-heading h2:before,.jb-paper-heading h2:after{content:'✧';position:absolute;top:50%;transform:translateY(-50%);font-size:18px;color:#c18d27}.jb-paper-heading h2:before{left:5px}.jb-paper-heading h2:after{right:5px}
.jb-book-content{position:relative;z-index:1;min-width:0}.jb-book-content>*{max-width:100%;box-sizing:border-box}.jb-book-content #profile-form{margin-top:0}.jb-book-content .editor-box{background:rgba(255,255,255,.54)}
.jb-paper-landscape{position:absolute;bottom:8px;left:8px;right:8px;height:130px;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20190%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22t%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d9aa39%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fff5da%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22c%22%3E%3Cstop%20stop-color%3D%22%23fff%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23f5effa%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f6e7d6%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23t%29%22%20opacity%3D%22.55%22%3E%3Cpath%20d%3D%22M240%20150V118H253V95L263%2087L270%2035L277%2087L287%2095V118H300V150ZM320%20150V105H330V90L340%2075L350%2090V105H360V150ZM135%20150V115H150V80L160%2062L170%2080V115H185V150ZM60%20150V85H70V65L80%2010L90%2065V85H100V150ZM465%20150V100H480V70L490%2020L500%2070V100H515V150Z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22url%28%23c%29%22%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%22145%22%20rx%3D%22110%22%20ry%3D%2237%22%2F%3E%3Cellipse%20cx%3D%22105%22%20cy%3D%22135%22%20rx%3D%2247%22%20ry%3D%2226%22%2F%3E%3Cellipse%20cx%3D%22175%22%20cy%3D%22165%22%20rx%3D%22100%22%20ry%3D%2235%22%2F%3E%3Cellipse%20cx%3D%22430%22%20cy%3D%22168%22%20rx%3D%22120%22%20ry%3D%2243%22%2F%3E%3Cellipse%20cx%3D%22520%22%20cy%3D%22130%22%20rx%3D%2265%22%20ry%3D%2242%22%2F%3E%3Cellipse%20cx%3D%22580%22%20cy%3D%22145%22%20rx%3D%2280%22%20ry%3D%2245%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center bottom/100% 100% no-repeat;pointer-events:none;z-index:-1;border-radius:0 0 30px 20px;overflow:hidden}
.jb-page-fold{position:absolute;right:0;bottom:0;width:74px;height:74px;border-radius:32px 0 38px 0;background:linear-gradient(135deg,transparent 10%,#fffdf4 38%,#fff2b7 47%,#d6a645 51%,#fff6d6 67%,#c58e2c 97%);box-shadow:-5px -4px 9px #b38a3525;pointer-events:none;z-index:2}
.jb-footer-lotus{position:absolute;width:100px;height:100px;left:-23px;bottom:-40px;pointer-events:none;z-index:3;transform:rotate(-18deg);filter:drop-shadow(0 3px 5px #dbacb022)}
.profile-page:has(.jb-notebook)>.page-heading>h1{display:none}body:has(.jb-notebook)>.theme-picker .profile-inline-title{display:none}
@media(max-width:600px){.jb-notebook{padding-left:0;padding-right:0;margin-top:4px}.jb-notebook-header{min-height:88px;padding:0 54px 22px 4px;margin-bottom:17px}.jb-notebook-header h1{font-size:clamp(23px,6vw,30px)}.jb-quill{width:70px;height:70px;margin-left:2px}.jb-header-lotus{width:67px;height:67px;right:-10px;top:5px}.jb-profile-book{padding:43px 5px 9px;border-radius:25px}.jb-rings{top:-18px;left:7%;right:7%}.jb-rings i{width:13px;height:39px}.jb-rings i:after{height:12px;left:-3px;right:-3px}.jb-book-tabs{padding:0 1px}.jb-book-tabs a{min-height:77px;border-radius:25px 25px 0 0;padding:25px 2px 9px;font-size:clamp(11px,3.4vw,17px);white-space:nowrap}.jb-book-tabs a[aria-current=page]{min-height:83px}.jb-book-tabs a:before{inset:5px 4px 0;border-radius:20px 20px 0 0}.jb-book-tabs a img{width:42px;height:42px;top:-21px}.jb-book-paper{padding:19px 11px 80px;border-radius:22px 22px 30px 22px}.jb-book-paper:before{inset:5px;background-size:42px 42px,auto}.jb-book-paper:after{width:40px;height:40px;top:7px;right:7px}.jb-paper-heading{margin-bottom:19px;max-width:95%}.jb-paper-heading>img{width:42px;height:42px}.jb-paper-heading h2{font-size:23px;padding:5px 23px}.jb-paper-landscape{height:90px}.jb-page-fold{width:51px;height:51px}.jb-footer-lotus{width:75px;height:75px;left:-13px;bottom:-30px}.jb-book-content #profile-form{padding:12px}.jb-book-content .profile-identity-row{min-width:0}}
@media(prefers-reduced-motion:reduce){.jb-book-tabs a{transition:none}}
/* Preserve layout of settings panels previously targeted as direct children. */
.jb-book-content>.google-link-panel{margin:24px 0 0;padding:24px}.jb-book-content>.google-link-panel h2{margin:0 0 12px;font-size:clamp(20px,4.8vw,24px);line-height:1.5}.jb-book-content>.google-link-panel>p{margin:0;line-height:1.8}.jb-book-content>.google-link-panel>p+p,.jb-book-content>.google-link-panel>form{margin-top:16px}
.jb-book-content>.profile-language{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;margin:24px 0 0;padding:18px 24px;width:100%}.jb-book-content>.profile-language .language-picker{justify-self:end}.jb-book-content>.profile-language .language-picker select{min-width:116px;max-width:100%;margin:0}.jb-book-content>.profile-language .language-status{grid-column:1/-1}.jb-book-content>.profile-language .language-status:empty{display:none}.jb-book-content>.profile-language+.coin-wallet{margin-top:24px}
.jb-notebook-header:after{content:'✦ · ✧';position:absolute;right:15%;top:0;letter-spacing:14px;color:#fff9de;text-shadow:0 0 6px #eabb5a;font-size:18px;pointer-events:none}
@media(max-width:430px){.jb-book-content>.google-link-panel{margin-top:20px;padding:20px}.jb-book-content>.profile-language{margin-top:20px;padding:16px 20px;gap:10px 12px}}

/* Compact divider tabs; centered clear blue orb. */
.jb-book-tabs a{min-height:78px;padding:22px 4px 8px;line-height:1.25}
.jb-book-tabs a[aria-current=page]{min-height:85px}
.jb-book-tabs a img{width:48px;height:48px;top:-25px}
@media(max-width:600px){.jb-book-tabs a{min-height:61px;padding:19px 2px 7px;line-height:1.25}.jb-book-tabs a[aria-current=page]{min-height:67px}.jb-book-tabs a img{width:36px;height:36px;top:-19px}}

/* Mobile notebook: edge-to-edge tabs, retain only the inner paper frame. */
@media(max-width:600px){
 #main .jb-notebook{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:0;padding-right:0}
 #main .jb-notebook:before{left:0;right:0;border-radius:0}
 #main .jb-profile-book{border:0;border-radius:0;box-shadow:none;padding-left:0;padding-right:0;background:transparent}
 #main .jb-profile-book:before{display:none}
 #main .jb-book-tabs{padding-left:0;padding-right:0}
 #main .jb-book-paper{border:0;box-shadow:none;border-radius:20px 20px 24px 24px}
 #main .jb-book-paper:before{inset:3px;border:1px solid #d4ad63}
 #main .jb-footer-lotus{left:0}
 #main .jb-header-lotus{right:0}
}
@media(max-width:600px){#main .jb-header-lotus{right:8px}#main .jb-footer-lotus{left:10px}}

/* Profile journal tabs: show identity and entries without the standalone dashboard. */
.jb-notebook .jb-book-content .jj-hero,
.jb-notebook .jb-book-content .jj-stats,
.jb-notebook .jb-book-content .jj-section-heading,
.jb-notebook .jb-book-content #dhamma-search,
.jb-notebook .jb-book-content>p:has(>a[href="/merit-month"]){display:none!important}

/* Remove the notebook masthead and rings; keep the three category tabs. */
#main .jb-notebook-header,#main .jb-rings{display:none!important}
#main .jb-notebook{margin-top:0}
#main .jb-profile-book{padding-top:28px}
@media(max-width:600px){#main .jb-profile-book{padding-top:22px}}

/* Equal tab heights keep all icons and labels on the same baseline. */
#main .jb-book-tabs a,#main .jb-book-tabs a[aria-current=page]{min-height:64px;height:64px;padding:18px 4px 6px;line-height:1.25}
#main .jb-book-tabs a img{width:42px;height:42px;top:-22px;object-fit:contain}
@media(max-width:600px){
 #main .jb-profile-book{padding-top:19px}
 #main .jb-book-tabs a,#main .jb-book-tabs a[aria-current=page]{min-height:50px;height:50px;padding:15px 2px 5px}
 #main .jb-book-tabs a img{width:32px;height:32px;top:-17px}
}

/* Compact profile journal identity with a direct photo picker. */
.jb-notebook #dhamma-reflection,.jb-notebook .jj-first-action{display:none!important}
.jb-notebook .jj-profile{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center;gap:10px!important}
.jb-notebook .jj-profile .jj-owner{min-width:0}.jb-notebook .jj-profile .jj-owner>span:last-child{min-width:0}.jb-notebook .jj-profile .jj-owner small{overflow-wrap:anywhere}.jb-notebook .jj-profile .jj-gold-name{overflow-wrap:anywhere}
.jb-notebook .jb-profile-photo-upload{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;padding:7px;border:1px solid #cfb36c66;border-radius:12px;background:#d7a34b0d;color:#648c9b;box-shadow:none;cursor:pointer}
.jb-profile-photo-upload svg{animation:jb-photo-wiggle 3.6s ease-in-out infinite;transform-origin:50% 70%}
.jb-profile-photo-upload:focus-visible{outline:2px solid #9e7b2a;outline-offset:3px}
@keyframes jb-photo-wiggle{0%,65%,100%{transform:rotate(0)}72%{transform:rotate(-9deg)}79%{transform:rotate(8deg)}86%{transform:rotate(-5deg)}93%{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.jb-profile-photo-upload svg{animation:none}}

/* Balanced spacing within profile notebook headings and identity cards. */
#main .jb-book-paper{padding-top:16px}
#main .jb-paper-heading{margin-bottom:12px}
#main .jb-paper-heading>img{margin-bottom:6px}
#main .jb-book-content>.dc-tabs{margin:0 0 16px;padding:0;min-height:44px}
#main .jb-book-content .jj-profile{margin-top:0;margin-bottom:18px}
#main .jb-book-content .dhamma-journal{margin-top:0;padding-top:0}
@media(max-width:600px){
 #main .jb-book-paper{padding-top:12px}
 #main .jb-paper-heading{margin-bottom:10px}
 #main .jb-book-content>.dc-tabs{margin-bottom:14px}
 #main .jb-book-content .jj-profile{margin-bottom:18px}
}

/* Compact the standalone merit journal overview without changing profile tabs. */
#main.journal-view>.jj-hero{padding:18px 4px 16px}
#main.journal-view>.jj-hero .jj-divider{margin-top:9px;margin-bottom:14px}
#main.journal-view>.jj-hero .jj-book-actions{gap:10px}
#main.journal-view>.jj-hero .jj-book-actions>.jj-calendar{min-height:56px;padding:8px 10px}
#main.journal-view>.jj-stats{margin:0 0 20px}
#main.journal-view>.jj-stats dd{margin-bottom:7px}
@media(max-width:600px){
 #main.journal-view>.jj-hero{padding-top:16px;padding-bottom:14px}
 #main.journal-view>.jj-stats{margin-bottom:18px}
}

/* Balanced standalone dhamma journal overview spacing. */
#main>.dhamma-journal>.jj-hero{padding:18px 4px 16px}
#main>.dhamma-journal>.jj-hero .jj-hero-copy>p{margin:8px 0 0;line-height:1.6}
#main>.dhamma-journal>.jj-hero .jj-divider{margin-top:12px;margin-bottom:14px}
#main>.dhamma-journal>.jj-hero .jj-calendar{min-height:52px;padding:8px 16px}
#main>.dhamma-journal>.jj-stats{margin:0 0 16px}
#main>.dhamma-journal>.jj-stats dd{margin-bottom:7px}
#main>.dhamma-journal>.dhamma-search{margin:12px 0 16px}
#main>.dhamma-journal>.dhamma-search>label{display:block;margin-bottom:6px;line-height:1.5}
@media(max-width:600px){#main>.dhamma-journal>.jj-hero{padding-top:16px;padding-bottom:14px}}

/* Cream notebook keeps its own readable palette inside dark/fantasy themes. */
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper{--ink:#45341e;--text:#45341e;--muted:#695a44;--paper:#fffaf0;--gold:#876014;--line:#cabb9a;--accent:#276278;--pale:#f4ecd9;color:#45341e;color-scheme:light}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper :is(.jb-paper-heading h2,.profile-photo-caption,.profile-photo-caption small,.profile-social,.profile-social-counts button,.profile-social-counts strong,.profile-social-counts span,.profile-page label,.hint,.profile-rank-month,.profile-lifetime-summary strong){color:#634a23!important;-webkit-text-fill-color:currentColor}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper :is(label,.profile-social-bio,.profile-social-status){color:#51432e;-webkit-text-fill-color:currentColor}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper .profile-social .profile-social-actions>:is(a,button){color:#634a23!important;background:#c79a3412!important;border-color:#a78749!important;-webkit-text-fill-color:currentColor}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper .profile-meditation-total{background:#fff7e6;color:#51432e}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper .profile-meditation-total :is(span,strong,small){color:#634a23!important;-webkit-text-fill-color:currentColor}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper :is(.profile-rank-award,.profile-lifetime-summary){color:#51432e}
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper :is(.profile-rank-award b,.profile-rank-award strong){color:#765319}
/* Dark fields retain a dark surface and light input text. */
html:is([data-theme=dark],[data-theme=fantasy]) #main .jb-book-paper :is(input:not([type=checkbox]):not([type=file]),textarea,select){background:#101e34;color:#edf3ff;-webkit-text-fill-color:#edf3ff;color-scheme:dark}

/* Remove the leftover outer panel and decorative wash around the notebook. */
#main .profile-page:has(.jb-notebook){background:transparent!important;border:0!important;box-shadow:none!important;padding-bottom:0}
#main .jb-notebook{padding-bottom:0}
#main .jb-notebook:before{display:none}
#main .jb-footer-lotus{display:none}
#main .jb-profile-book{padding-bottom:0}

/* Dark mode: warm brown paper with high-contrast cream text. */
html[data-theme=dark] #main .jb-book-paper{--ink:#fff3dd;--text:#fff3dd;--muted:#ddcbb0;--paper:#34271f;--gold:#f5d58e;--line:#8f7450;--accent:#bce7f6;--pale:#443326;background-color:#291f19;color:#fff3dd;color-scheme:dark}
html[data-theme=dark] #main .jb-book-content .editor-box{background:#34271f;border-color:#8f7450}
html[data-theme=dark] #main .jb-book-paper :is(.profile-photo-caption,.profile-photo-caption small,.profile-social,.profile-social-counts button,.profile-social-counts strong,.profile-social-counts span,.hint,.profile-rank-month,.profile-lifetime-summary strong){color:#f5dfb4!important;-webkit-text-fill-color:currentColor}
html[data-theme=dark] #main .jb-book-paper :is(label,.profile-social-bio,.profile-social-status,.profile-name-block,.profile-name-block strong,.profile-lifetime-summary,.profile-lifetime-summary small){color:#fff0d6!important;-webkit-text-fill-color:currentColor}
html[data-theme=dark] #main .jb-book-paper .profile-social .profile-social-actions>:is(a,button){color:#ffe4ad!important;background:#efca7812!important;border-color:#a78955!important}
html[data-theme=dark] #main .jb-book-paper .profile-meditation-total{background:#443226;color:#fff0d6}
html[data-theme=dark] #main .jb-book-paper .profile-meditation-total :is(span,strong,small){color:#ffe4ad!important;-webkit-text-fill-color:currentColor}
html[data-theme=dark] #main .jb-book-paper .profile-rank-award{background:#443326;color:#fff0d6;border-color:#8f7450}
html[data-theme=dark] #main .jb-book-paper .profile-rank-award :is(b,strong,small){color:#f5dfb4}
html[data-theme=dark] #main .jb-book-paper :is(.jj-profile,.jj-entry,.card,.jj-empty){background:#34271f;color:#fff3dd;border-color:#8f7450}
html[data-theme=dark] #main .jb-book-paper :is(.jj-gold-name,.jj-owner,.jj-owner small,.dhamma-type,.card-content,.card-content h3,.card-content p,.excerpt,.jj-entry-copy p,.jj-entry-copy h3,.jj-entry time,.dhamma-source){color:#fff0d6!important;-webkit-text-fill-color:currentColor;background-clip:initial}
html[data-theme=dark] #main .jb-book-paper .jj-gold-name{background:none;color:#ffda84!important}
html[data-theme=dark] #main .jb-book-paper .jb-profile-photo-upload{background:#443326;color:#c6edfa;border-color:#a78955}
/* Keep dark lettering on the light gold title plaque. */
html[data-theme=dark] #main .jb-book-paper .jb-paper-heading h2{color:#573009!important;-webkit-text-fill-color:#573009}
html[data-theme=dark] #main .jb-book-paper:before{background-color:transparent}
html[data-theme=dark] #main .jb-paper-landscape{opacity:.3}

/* Dhamma category controls match the dark brown notebook paper. */
html[data-theme=dark] #main .jb-notebook .dc-tabs{background:#2d211be6;border-color:#806641}
html[data-theme=dark] #main .jb-notebook .dc-tabs button{background:#3b2b21;color:#f4e4cc;-webkit-text-fill-color:#f4e4cc;border-color:#806641;background-image:none;box-shadow:none}
html[data-theme=dark] #main .jb-notebook .dc-tabs button[aria-pressed=true]{background:#59412a;color:#ffe4a6;-webkit-text-fill-color:#ffe4a6;border-color:#c2a15f}
html[data-theme=dark] #main .jb-notebook .dc-tabs button:focus-visible{outline:2px solid #f5d58e;outline-offset:3px}

/* Bring the LINE invitation directly below the profile notebook. */
#main:has(>.profile-page){padding-bottom:14px}
body:has(#main>.profile-page) #feedback-box{margin-top:8px}
body:has(#main>.profile-page) #feedback-box .line-community-invite{margin-top:0}

/* Dark notebook dividers: coordinated warm brown shades. */
html[data-theme=dark] #main .jb-book-tabs a{color:#fff0d4!important;-webkit-text-fill-color:#fff0d4;border-color:#a18450;box-shadow:inset 0 1px 0 #e7c98655,inset 1px 0 3px #e7c98622;filter:none;text-shadow:none}
html[data-theme=dark] #main .jb-book-tabs a:nth-child(1){background:linear-gradient(155deg,#715336,#503824)}
html[data-theme=dark] #main .jb-book-tabs a:nth-child(2){background:linear-gradient(155deg,#59402d,#3d2b20)}
html[data-theme=dark] #main .jb-book-tabs a:nth-child(3){background:linear-gradient(155deg,#443126,#2d211a)}
html[data-theme=dark] #main .jb-book-tabs a:before{border-color:#d9bb7966}
html[data-theme=dark] #main .jb-book-tabs a[aria-current=page]{color:#ffe4a6!important;-webkit-text-fill-color:#ffe4a6;border-color:#e7c77e;box-shadow:inset 0 2px 0 #e7c77e,inset 0 0 12px #d1a45318}
html[data-theme=dark] #main .jb-book-tabs a[aria-current=page]:after{background:linear-gradient(transparent,#291f19)}
html[data-theme=dark] #main .jb-book-tabs a:focus-visible{outline-color:#ffe1a0}

/* Settings: omit the repeated gold gear and tighten the title-to-cover spacing. */
#main .profile-page .jb-paper-heading>img{display:none}
#main .profile-page .jb-book-paper{padding-top:18px}
#main .profile-page .jb-paper-heading{margin-bottom:16px}
@media(max-width:600px){#main .profile-page .jb-book-paper{padding-top:16px}#main .profile-page .jb-paper-heading{margin-bottom:14px}}

/* Compact dark-mode profile management area while retaining touch targets. */
html[data-theme=dark] body>.theme-picker.theme-profile-settings.theme-profile-settings{min-height:40px;padding-top:4px;padding-bottom:4px}
html[data-theme=dark] body #main:has(>.profile-page){padding-top:4px}
html[data-theme=dark] body #main .profile-page>.page-heading{margin:0 0 12px;gap:6px 12px}
html[data-theme=dark] body #main .profile-page>.page-heading :is(.profile-management-links,.profile-team-quote-row){row-gap:6px}
html[data-theme=dark] body #main .profile-page>.page-heading .profile-shortcuts :is(a,button){line-height:1.4}
html[data-theme=dark] body #main .profile-page>.page-heading .profile-shortcuts>a.back:not(.profile-onlymonk-link){display:flex;align-items:center;min-height:44px;padding:4px 0}

/* Tighten only the chant banner's vertical spacing between feed posts. */
#main .med-feed-shortcut.chant-feed-shortcut{margin-block:0;padding-block:4px}

/* Keep garden text readable against its night sky, independent of site theme. */
#main .merit-tree[data-period=night] .mt-heading,
#main .merit-tree[data-period=night] .mt-heading :is(h1,h2,p,a),
#main .merit-tree[data-period=night] .mt-actions p,
#main .merit-tree[data-period=night] footer,
#main .merit-tree[data-period=night] footer small{color:#f4f7ee!important;opacity:1}
#main .merit-tree[data-period=night] .mt-eyebrow{color:#d9e9e4!important}
#main .merit-tree[data-period=night] .mt-progress{background:#edf3ed;color:#294538}
#main .merit-tree[data-period=night] .mt-progress :is(label,small,span){color:#294538!important}
#main .merit-tree[data-period=night] .mt-progress strong{color:#70531c!important}
#main .merit-tree[data-period=night] .mt-shake{color:#fff0bd!important;background:#e8bf591a;border:1px solid #d5b977;box-shadow:none}
#main .merit-tree[data-period=night] .mt-shake:disabled{color:#e4e8df!important;opacity:1;background:#ffffff0a;border-color:#8a9ca7}

/* Compact profile theme and management area across all themes. */
html body:has(#main .profile-page)>.theme-picker.theme-profile-settings.theme-profile-settings{min-height:44px;margin-block:0;padding-top:2px;padding-bottom:2px}
html body #main:has(>.profile-page){padding-top:2px}
html body #main .profile-page>.page-heading{margin:0 0 8px;gap:4px 12px;padding-block:0;align-items:center}
html body #main .profile-page>.page-heading :is(.profile-management-links,.profile-team-quote-row){row-gap:4px}
html body #main .profile-page>.page-heading .profile-management-links:not(:has(#profile-trio-slot)){grid-column:auto;grid-row:auto;display:flex}
html body #main .profile-page>.page-heading .profile-shortcuts a.back:not(.profile-onlymonk-link){display:flex;align-items:center;box-sizing:border-box;min-height:44px;padding-block:2px;line-height:1.4}

/* Photo -> caption -> save guidance, scoped to merit editor. */
#editor .merit-flow-guide{display:flex;align-items:center;justify-content:center;gap:8px;color:#3286a2;margin:12px 0 8px;pointer-events:none;line-height:1.5}
#editor .merit-flow-guide[hidden]{display:none}
#editor .merit-flow-guide svg{flex-shrink:0;animation:merit-guide-arrow 1.5s ease-in-out infinite}
#editor .merit-caption-guided [data-story-text]{animation:merit-caption-ring 1.8s ease-in-out infinite;outline-offset:3px}
#editor .merit-flow-save{flex-wrap:wrap}
#editor .merit-flow-save>.merit-flow-guide{flex-basis:100%}
@keyframes merit-guide-arrow{0%,100%{transform:translateY(-3px)}50%{transform:translateY(3px)}}
@keyframes merit-caption-ring{0%,100%{outline:2px solid transparent}50%{outline:2px solid #b49750}}
@media(prefers-reduced-motion:reduce){#editor .merit-flow-guide svg,#editor .merit-caption-guided [data-story-text]{animation:none}#editor .merit-caption-guided [data-story-text]{outline:2px solid #b49750}}

/* Quiet guest text links and an upward registration guide. */
html body #account:has(a[href="/signup"]){padding-bottom:26px}
html body #account :is(a[href="/login"],a[href="/signup"]),html body #account :is(a[href="/login"],a[href="/signup"]):hover{min-height:44px;padding:4px 6px;font-size:12px;line-height:1.4;background:none;border:0;border-radius:4px;box-shadow:none;text-shadow:none;color:var(--ink);font-weight:400;overflow:visible}
html body #account .guest-auth-icon{display:none}
html body #account :is(a[href="/login"],a[href="/signup"])::before,html body #account a[href="/login"]::after{display:none}
html body #account a[href="/signup"]::after{content:"";display:block;position:absolute;inset:auto auto -24px 50%;width:24px;height:24px;padding:0;border:0;border-radius:0;opacity:1;-webkit-mask:none;mask:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%234bbbea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 28V5M6 15 16 5l10 10'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none;animation:guest-signup-up 1.5s ease-in-out infinite;transform:translateX(-50%);text-shadow:none}
@keyframes guest-signup-up{0%,100%{transform:translate(-50%,3px)}50%{transform:translate(-50%,-2px)}}
@media(prefers-reduced-motion:reduce){html body #account a[href="/signup"]::after{animation:none}}

/* Override legacy two-ID gold selectors only for header guest links. */
html body #account#account :is(a[href="/login"],a[href="/signup"]){background:none;border:0;box-shadow:none;text-shadow:none;color:var(--ink);font-weight:400;min-height:44px;padding:4px 5px;font-size:12px;animation:none}
html body #account#account :is(a[href="/login"],a[href="/signup"])::before{display:none}
html body #account#account a[href="/login"]::after{display:none}
html body #account#account:has(a[href="/signup"]){padding-bottom:16px;gap:6px;flex-shrink:0}
@media(max-width:900px){
html body .top .nav-wrap:has(#account a[href="/signup"]){grid-template-columns:max-content minmax(0,1fr);column-gap:12px;align-items:center}
html body .nav-wrap:has(#account a[href="/signup"])>.brand{min-width:max-content}
html body .nav-wrap:has(#account a[href="/signup"])>#account{justify-self:end}
}
@media(max-width:380px){
html body .nav-wrap:has(#account a[href="/signup"])>.brand{font-size:18px;gap:6px}
html body #account#account :is(a[href="/login"],a[href="/signup"]){font-size:11px;padding-inline:2px}
html body #account#account:has(a[href="/signup"]){gap:4px}
html body .top .nav-wrap:has(#account a[href="/signup"]){column-gap:8px;padding-inline:8px}
}

/* Larger text-only guest actions with a gentle rainbow registration label. */
html body #account#account :is(a[href="/login"],a[href="/signup"]){font-size:15px;padding:2px 3px;font-weight:500}
html body #account#account:has(a[href="/signup"]){gap:6px;padding-bottom:10px}
html body #account#account a[href="/signup"]{color:#a53d91}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
html body #account#account a[href="/signup"]{background-image:linear-gradient(110deg,#bc3563,#976119,#27834e,#167b9f,#6451b0,#b23684,#bc3563);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:guest-rainbow-text 4s ease-in-out infinite}
}
@keyframes guest-rainbow-text{0%,100%{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.15)}}
@media(max-width:900px){html body .top .nav-wrap:has(#account a[href="/signup"]){column-gap:8px;row-gap:2px;padding-block:10px}html body .nav-wrap:has(#account a[href="/signup"])>#account{justify-self:start}}
@media(max-width:380px){html body #account#account :is(a[href="/login"],a[href="/signup"]){font-size:13px;padding-inline:2px}html body #account#account:has(a[href="/signup"]){gap:4px}}
@media(prefers-reduced-motion:reduce){html body #account#account a[href="/signup"]{animation:none;filter:none}}

/* Larger guest labels, aligned to the right edge. */
html body #account#account :is(a[href="/login"],a[href="/signup"]){font-size:17px}
@media(max-width:900px){html body .nav-wrap:has(#account a[href="/signup"])>#account{justify-self:end;margin-left:auto}}
@media(max-width:380px){html body #account#account :is(a[href="/login"],a[href="/signup"]){font-size:14px}}

/* One-time Android invitation in the existing website bell. */
.jb-notice-row.jb-campaign{display:flex;align-items:flex-start}.jb-campaign .jb-notice-copy{min-width:0;flex:1}.jb-campaign-body{white-space:pre-line;overflow-wrap:anywhere;margin:.6rem 0;line-height:1.7}.jb-campaign .jb-campaign-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;max-width:100%;padding:.5rem .85rem;border:1px solid rgba(170,130,40,.55);border-radius:10px;background:rgba(190,150,50,.10);color:inherit;box-shadow:none;text-decoration:none;overflow-wrap:anywhere}.jb-campaign-download:focus-visible{outline:2px solid currentColor;outline-offset:3px}.jb-campaign time{display:block;margin-top:.65rem}
