/* source: ui-dev3.css */
/* UI-DEV3 v1.0 — approved presentation; no business-state or API overrides. */
:root{--dev3-ivory:#f7f4ed;--dev3-forest:#33372e;--dev3-gold:#a67a39;--dev3-line:rgba(166,122,57,.22);--dev3-serif:"Songti TC","Noto Serif TC","PMingLiU",serif}
html.dev3 body>footer{background:#33372e!important;color:#ddd9ce!important}html.dev3 body>footer small{color:#b0af9f}html.dev3 body>footer .copyright{color:#c7c5b8}
html.dev3 body>header{height:88px;min-height:88px;padding:0 clamp(16px,5vw,80px);display:flex;justify-content:space-between;gap:16px;background:var(--dev3-ivory);border-bottom:1px solid var(--dev3-line);z-index:60}html.dev3 body>header .brand{gap:12px;min-width:0;font-size:20px;letter-spacing:1px;color:#282b24}html.dev3 body>header .brand small{font-size:10px;letter-spacing:1px;color:#9c845e;white-space:nowrap}html.dev3 body>header .seal{width:46px;height:46px;flex:none;border:1.5px solid #b99456;color:#a67a39;background:transparent}html.dev3 .header-tools{gap:12px;display:flex;align-items:center;flex:none}html.dev3 .header-tools .header-icon,html.dev3 .header-tools .menu-toggle{display:grid;place-items:center;width:46px;height:46px;min-width:46px;min-height:46px;padding:10px;border:1px solid rgba(179,137,70,.24);border-radius:50%;color:#936927;background:linear-gradient(125deg,#fffaf1,#f0d4a0);box-shadow:inset 0 1px 2px #fff9}html.dev3 .header-tools svg{width:25px;height:25px}html.dev3 .notification-count{right:-4px;top:-3px}html.dev3 .dev3-account-source{display:none!important}
html.dev3 .navigation-overlay{inset:8px 8px 8px auto!important;width:min(440px,calc(100% - 24px));height:calc(100dvh - 16px);max-height:none;max-width:none;margin:0!important;padding:0!important;border:1px solid #fff9;border-radius:30px;background:var(--dev3-ivory);color:#33291f;overflow-y:auto;box-shadow:-20px 0 80px #0003}html.dev3 .navigation-overlay::backdrop{background:#15191099;backdrop-filter:blur(6px)}html.dev3 .navigation-shell{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:28px 26px 36px;min-height:100%;width:100%;gap:0;background:radial-gradient(ellipse at 100% 10%,#f1dbb955,transparent 70%)}.dev3-menu-title{font:600 30px/1.4 var(--dev3-serif);margin:4px 54px 28px 0;color:#5d3e1c}html.dev3 .navigation-close{position:absolute!important;right:22px;top:24px;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #ddbc85;border-radius:50%;background:linear-gradient(130deg,#fffdf7,#f6e5c8);color:#99702e;font-size:30px;line-height:1}
html.dev3 #main-menu{display:flex!important;flex-direction:column;position:static;gap:0;width:100%;padding:0;margin:16px 0 20px;background:transparent;border:0;box-shadow:none}html.dev3 #main-menu>a:not(.dev3-account-source){display:flex;align-items:center;gap:17px;width:100%;min-height:67px;padding:16px 4px;border:0;border-bottom:1px solid var(--dev3-line);border-radius:0;background:none;color:#28291f;font-size:19px;font-family:inherit;text-align:left}html.dev3 #main-menu>a:not(.dev3-account-source)::after{content:'›';margin-left:auto;color:#ab8043;font-size:27px}html.dev3 #main-menu .dev3-nav-icon{color:#a67a39;width:27px;height:27px;flex:none}
.dev3-account-card{position:relative;isolation:isolate;display:flex;align-items:center;gap:16px;padding:23px 18px;border:1px solid #d9b779;border-radius:24px;background:linear-gradient(135deg,#fffdf7e6,#edcd94a6);box-shadow:inset 0 0 0 3px #fff7,0 8px 18px #9c753a1c;color:#47341f;overflow:hidden}.dev3-account-card::after{content:'›';margin-left:auto;color:#9d702f;font-size:30px}.dev3-account-avatar{width:54px;height:54px;display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#e6c478,#ac7c32);color:#fff9ef}.dev3-account-avatar svg{width:32px;height:32px}.dev3-account-copy strong{display:block;font-size:21px;font-weight:600}.dev3-account-copy small{display:block;font-size:14px;margin-top:3px;color:#8a642d}.dev3-preferences{border-top:1px solid var(--dev3-line);padding-top:20px;margin-top:auto}.dev3-preferences h3{font-size:17px;font-weight:500;color:#80602d;margin:0 0 10px}.dev3-preference-row{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:68px;border-bottom:1px solid var(--dev3-line);font-size:17px}.dev3-preference-row .language-control{display:block!important;margin:0}.dev3-preference-row #site-language{min-width:100px;min-height:43px;border:1px solid #dbc39d;border-radius:999px;background:#f2e4cb;color:#65502c;font-size:16px;padding:5px 15px}.dev3-preference-row .dev3-music-switch{position:relative;display:block;width:58px;min-width:58px;height:34px;min-height:34px;padding:0;background:#c6bda9;border:0;border-radius:999px;box-shadow:none}.dev3-preference-row .dev3-music-switch svg{display:none}.dev3-preference-row .dev3-music-switch::after{content:'';position:absolute;width:26px;height:26px;left:4px;top:4px;border-radius:50%;background:#fffaf0;box-shadow:0 1px 4px #6b492233;transition:transform .2s}.dev3-preference-row .dev3-music-switch[aria-pressed=true]{background:#b38d46}.dev3-preference-row .dev3-music-switch[aria-pressed=true]::after{transform:translateX(24px)}.dev3-menu-lotus{width:58px;height:44px;align-self:center;margin:30px auto 0;opacity:.55;color:#b99962}
html.dev3 .dev3-glass{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1px solid #cda56299!important;border-radius:999px!important;padding:12px 24px!important;background:linear-gradient(115deg,#fff9e1d9 0%,#efd49aab 39%,#eac16db3 67%,#fff3d3d4 100%)!important;color:var(--dev3-forest)!important;box-shadow:inset 0 2px 3px #fff, inset 0 -3px 5px #b5863960,0 9px 19px #ac824c2b!important;backdrop-filter:blur(14px) saturate(1.15);font-weight:500;text-shadow:0 1px #fff6;overflow:hidden;transition:box-shadow .18s,transform .18s}html.dev3 .dev3-glass::before{content:''!important;position:absolute!important;inset:3px!important;border:1px solid #fff9!important;border-radius:inherit!important;pointer-events:none;z-index:-1;background:linear-gradient(155deg,#fff7,transparent 45%,#ffefba33)!important}html.dev3 .dev3-glass:hover{box-shadow:inset 0 2px 3px #fff, inset 0 -3px 5px #b5863960,0 11px 24px #97703f42!important;transform:translateY(-1px)}html.dev3 .dev3-glass:active{transform:translateY(1px)}html.dev3 .dev3-glass:disabled{opacity:.4;cursor:default;transform:none}html.dev3 .dev3-glass[data-dev3-surface=dark]{color:#fff4d8!important;border-color:#f8d99a88!important;background:linear-gradient(120deg,#e9cf8e55,#c69a4d66 60%,#ffe2a16b)!important;text-shadow:0 1px 2px #171c13;box-shadow:inset 0 2px 3px #fff9,inset 0 -3px 5px #6d4c2370,0 8px 25px #0003!important}html.dev3 .dev3-glass.rail-arrow,html.dev3 .dev3-glass.dev3-calendar-arrow,html.dev3 .dev3-glass.back-top{width:48px;height:48px;min-width:48px;min-height:48px;padding:0!important;font-size:27px}html.dev3 .dev3-glass .theme-button-icon{background:none!important;box-shadow:none!important}.dev3-glass:focus-visible,.dev3-account-card:focus-visible,.dev3-calendar-dots button:focus-visible{outline:3px solid #8d692e;outline-offset:4px}
html.dev3 .home-about{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(30px,6vw,90px);background:radial-gradient(ellipse at 85% 85%,#f3dfbe66,transparent 65%),var(--dev3-ivory)}html.dev3 .home-about .portrait{position:relative;width:100%;height:auto;aspect-ratio:4/5;margin:0;border:3px solid #fff9;border-radius:36px;overflow:hidden;box-shadow:0 16px 34px #8b6b4024}html.dev3 .home-about .portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}html.dev3 .home-about figcaption{position:absolute;inset:auto 0 0;padding:60px 25px 25px;background:linear-gradient(transparent,#33372ebd);color:#fff9e8}html.dev3 .home-about figcaption span{font:30px/1.4 var(--dev3-serif)}html.dev3 .home-about figcaption small{display:block;color:#fff7;font-size:15px}html.dev3 .home-about h2{color:var(--dev3-forest);font:500 clamp(28px,3.2vw,45px)/1.6 var(--dev3-serif)}html.dev3 .home-about p:not(.eyebrow){font-size:17px;line-height:2.1;color:#756e60}html.dev3 .home-about .eyebrow{letter-spacing:5px;font-size:12px;color:#a67a39}.home-about .dev3-glass{margin-top:16px}
html.dev3 #education{display:flex;flex-direction:column;gap:36px;align-items:stretch;background:radial-gradient(ellipse at 90% 0%,#e9d5b25c,transparent 65%),var(--dev3-ivory)}.dev3-charity-copy{width:100%;max-width:1040px;margin:auto}.dev3-charity-copy h2{font:500 clamp(32px,4.5vw,56px)/1.45 var(--dev3-serif);color:var(--dev3-forest);margin-bottom:28px}.dev3-charity-copy>.eyebrow{letter-spacing:4px;font-size:13px}.dev3-points-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.dev3-points-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:205px;padding:25px 20px;border:1px solid #fff;border-radius:30px;background:linear-gradient(145deg,#fffaf2bb,#eed9b277);box-shadow:inset 0 0 0 1px #e6d1ab55,0 12px 24px #98734522;text-align:center;color:#65502c;font-size:18px}.dev3-points-card strong{font:500 clamp(36px,5vw,62px)/1.25 var(--dev3-serif);color:#9b6b27}.dev3-points-card span:last-child{padding:5px 16px;border:1px solid #fff8;border-radius:999px;background:#fff5}.dev3-charity-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 28px}.dev3-charity-categories>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:23px 10px;min-height:112px;border:1px solid #fff;border-radius:26px;background:linear-gradient(140deg,#fffaf2ad,#efddbc5c);box-shadow:0 8px 20px #a7885c17;color:#75613c;font-size:18px}.dev3-charity-categories span{color:#ad8747;font-size:27px}html.dev3 #education .muted{border-top:1px solid var(--dev3-line);padding-top:22px;font-size:15px;line-height:1.9}html.dev3 #education .dev3-charity-copy>a{display:flex;width:100%;font-size:20px;min-height:60px;margin:24px 0}
html.dev3 .home-v21 #cards{align-items:stretch}html.dev3 #cards .card{display:flex;flex-direction:column;border:1px solid #fff9;border-radius:28px;background:#fcf8f0;box-shadow:0 12px 26px #8b6b4021;overflow:hidden;align-self:stretch}html.dev3 #cards .poster-button{display:block;height:auto!important;min-height:0;aspect-ratio:auto;padding:0;overflow:hidden;background:#f3ead8}html.dev3 #cards .poster-button img{display:block;width:100%;height:auto!important;max-height:none;aspect-ratio:auto;object-fit:contain!important}html.dev3 #cards .poster-button>span{font-size:13px;background:#33372ee6;color:#fff2d5;padding:5px 12px}html.dev3 #cards .card-content{display:flex;flex:1;flex-direction:column;padding:25px 24px 12px;gap:9px}html.dev3 #cards .card-kicker{color:#9c7a44;font-size:13px;letter-spacing:1px}html.dev3 #cards h3{font:500 29px/1.4 var(--dev3-serif);color:var(--dev3-forest);margin:0}html.dev3 #cards .card-content>p{font-size:15px;line-height:1.8;min-height:55px;margin:0 0 6px;color:#746e5f}html.dev3 #cards .price{position:relative;margin-top:auto;padding:8px 0 12px;color:var(--dev3-forest);font:500 42px/1.4 var(--dev3-serif)}html.dev3 #cards .price small{font-size:15px;color:#55584b}html.dev3 #cards .price::after{content:'';width:44px;height:32px;position:absolute;right:0;top:15px;background:url('assets/dev3-lotus-original.svg') center/contain no-repeat;opacity:.5}html.dev3 #cards .deadline{font-size:14px;line-height:1.7;border-top:1px solid var(--dev3-line);padding:14px 0 0;margin:0;color:#6f6c5e}html.dev3 #cards .deadline::before{content:'▦';margin-right:7px;color:#af8d51;font-size:20px}html.dev3 #cards .public-activity-status{align-self:flex-start;margin:5px 0;font-size:14px;padding:5px 13px;border-radius:999px}html.dev3 #cards .detail-button{width:calc(100% - 36px);margin:10px 18px 24px;text-align:center;font-size:16px;min-height:54px}
html.dev3 #detail{width:min(820px,calc(100% - 28px));max-width:820px;max-height:calc(100dvh - 32px);padding:0!important;border:1px solid #fff9;border-radius:30px;background:var(--dev3-ivory);overflow:auto;scroll-padding-top:92px}html.dev3 #detail::backdrop,html.dev3 .dev3-fortune-pre::backdrop{background:#20271db0;backdrop-filter:blur(7px)}.dev3-modal-header{position:sticky;z-index:20;top:0;display:flex;align-items:center;gap:14px;min-height:84px;padding:18px 26px;border-bottom:1px solid var(--dev3-line);background:linear-gradient(120deg,#fffaf5f5,#f6ecdcf5);backdrop-filter:blur(18px)}.dev3-modal-header .dev3-modal-lotus{width:39px;height:32px;padding-right:14px;box-sizing:content-box;border-right:1px solid #d8bd8f;flex:none;color:#af894d}.dev3-modal-header h2{font:600 clamp(19px,2.5vw,27px)/1.4 var(--dev3-serif);letter-spacing:1px;margin:0!important;color:#4d3821;flex:1;padding:0!important}.dev3-modal-header button.close,.dev3-modal-header button.modal-close{position:static!important;display:grid;place-items:center;flex:none;width:42px;height:42px;min-height:42px;border:1px solid #d8b47a;border-radius:50%;padding:0!important;background:#fff8ed;color:#88622f;font-size:29px;line-height:1;box-shadow:0 3px 7px #98734520}html.dev3 #detail-body{padding:27px clamp(20px,4vw,44px) 35px}html.dev3 #detail-body>.eyebrow{font-size:14px;color:#a67a39;letter-spacing:2px;margin-bottom:20px}html.dev3 #detail .detail-poster{height:auto;max-height:none;display:block;padding:0;overflow:hidden;border-radius:23px;border:1px solid var(--dev3-line);background:#fffaf2;width:100%}html.dev3 #detail .detail-poster img{width:100%;height:auto;max-height:none;object-fit:contain!important;display:block}html.dev3 #detail .detail-poster span{display:block;padding:9px;color:#7c715f;font-size:14px}html.dev3 #detail-body>p{font-size:16px;line-height:1.9}html.dev3 #detail-body>.price{margin:25px 0;padding:22px 24px;border:1px solid #edddc3;border-radius:24px;background:linear-gradient(120deg,#f5ead8,#fff9f0);color:var(--dev3-forest);font:500 42px/1.4 var(--dev3-serif)}html.dev3 #detail-body>.price small{font:15px/1.7 sans-serif}html.dev3 #detail-body>h3{color:var(--dev3-forest);font-size:21px;margin:25px 0 15px}html.dev3 #detail-body>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;padding:0}html.dev3 #detail-body>ul>li{padding:17px 18px;border:1px solid #eadcc4;border-radius:20px;background:#f3eadc8a;font-size:16px}html.dev3 #detail-body>.dev3-deadline{padding:17px 20px;border-radius:20px;background:#eae6df8a;border:1px solid #e3dacb}html.dev3 #detail-body>a.dev3-glass{display:flex;width:100%;font-size:18px;min-height:58px;margin-top:24px}
html.dev3 .dev3-fortune-pre{width:min(820px,calc(100% - 26px));max-width:820px;max-height:calc(100dvh - 26px);padding:0!important;border:1px solid #fff;border-radius:30px;background:var(--dev3-ivory);scroll-padding-top:90px}html.dev3 .dev3-fortune-pre>.dev3-fortune-body{padding:23px clamp(18px,4vw,40px) 28px}.dev3-fortune-pre .sub{text-align:center;font-size:18px!important;margin-top:0}.dev3-fortune-pre .fortune-quota{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;border-radius:999px;background:#eedfc56b;border:1px solid #ead8b6;font-size:15px!important}.dev3-fortune-pre .fortune-quota strong{font-weight:500;color:var(--dev3-forest);font-size:16px}.dev3-fortune-pre .fortune-stage{border-radius:25px;box-shadow:0 12px 25px #77634724;border:2px solid #fff8;overflow:hidden}.dev3-fortune-pre .fortune-sound-controls{text-align:center}.dev3-fortune-pre .draw-button{display:flex!important;width:min(100%,530px);margin:20px auto;min-height:58px;font-size:20px!important}.dev3-fortune-pre .draw-button[hidden]{display:none!important}.dev3-fortune-pre .checkin-disclaimer{font-size:14px!important;line-height:1.85!important;text-align:center;color:#776f60;padding-top:18px;border-top:1px solid #dfc8a666}.dev3-fortune-pre .checkin-disclaimer+.checkin-disclaimer{border-top:0;padding-top:0}.dev3-fortune-pre .scene-caption{font-size:16px}.dev3-fortune-pre .fortune-sound-controls .dev3-glass{min-height:43px;padding:7px 20px!important;font-size:15px}
html.dev3 #daily-calendar{padding:65px clamp(20px,6vw,90px);background:radial-gradient(ellipse at 10% 20%,#eed8af44,transparent 65%),var(--dev3-ivory);border:0;border-radius:0;margin:0;max-width:none}html.dev3 .calendar-head{display:flex;justify-content:space-between;gap:32px;align-items:center;max-width:1100px;margin:0 auto 28px}html.dev3 .calendar-head h2{font:500 clamp(30px,4vw,48px)/1.4 var(--dev3-serif);color:var(--dev3-forest)}html.dev3 .calendar-head .eyebrow{font-size:12px;color:#a67a39}html.dev3 .calendar-date{display:flex;align-items:center;gap:23px;color:#514d42}html.dev3 .calendar-date>div:not(.dev3-date-tile){font-size:16px;line-height:1.7}html.dev3 .dev3-date-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;width:104px;min-width:104px;height:116px;border-radius:22px;border:1px solid #fff;box-shadow:0 7px 15px #b18b4530;background:linear-gradient(130deg,#fffdf9,#f9f0df)}html.dev3 .dev3-date-tile .dev3-month-cap{display:block;width:100%;text-align:center;padding:3px;background:linear-gradient(120deg,#f7e4ba,#e6c27f);font-size:16px;color:#715729;line-height:30px}html.dev3 .dev3-date-tile [data-calendar-day]{font:500 57px/1.35 var(--dev3-serif);color:var(--dev3-forest);background:none;border:0;padding:0;width:auto;height:auto;box-shadow:none}html.dev3 .calendar-grid{display:grid!important;grid-auto-flow:column;grid-auto-columns:100%;grid-template-columns:none!important;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;max-width:900px;margin:auto;padding:6px 0 20px;overscroll-behavior-x:contain;align-items:start}html.dev3 .calendar-grid::-webkit-scrollbar{display:none}html.dev3 .calendar-grid .calendar-note{position:relative;scroll-snap-align:start;min-width:0;width:100%;padding:30px clamp(20px,4vw,38px);border-radius:28px;border:1px solid #fff;background:linear-gradient(125deg,#fffdf8c4,#f8efe2ba);box-shadow:inset 0 0 0 1px #e9ddca66,0 9px 22px #92724b24;overflow:hidden}html.dev3 .calendar-note h3{color:var(--dev3-forest);font:500 clamp(25px,3vw,35px)/1.45 var(--dev3-serif);margin:10px 0}html.dev3 .calendar-note .sample-tag{font-size:13px;color:#957338;background:none;border:0;padding:0}.calendar-note .huangli-lunar{font-size:19px!important;color:#846531}.calendar-note .huangli-status{display:inline-block;background:#edcf9566;border:1px solid #e5cda633;border-radius:999px;padding:5px 15px;color:#876020;font-size:15px}.calendar-note .huangli-list{display:flex;align-items:center;gap:16px;border-radius:17px;border:0;padding:13px 16px;margin:14px 0;font-size:16px;line-height:1.7}.calendar-note .huangli-list.yi{background:#e4ead8b3}.calendar-note .huangli-list.ji{background:#e8e3dcb3}.calendar-note .huangli-list b{font-size:23px;min-width:30px;color:var(--dev3-forest)}.calendar-note .huangli-chong{font-size:14px!important;color:#817969}.calendar-note .huangli-details{border-top:1px solid var(--dev3-line);padding-top:16px;margin-top:20px}.calendar-note .huangli-details summary{color:#89662a;font-size:16px}.calendar-note .huangli-source-note{font-size:14px!important}.dev3-calendar-controls{display:flex;align-items:center;justify-content:center;gap:22px;margin:0 auto 18px;max-width:900px}.dev3-calendar-dots{display:flex;gap:10px}.dev3-calendar-dots button{width:9px;height:9px;min-height:9px;padding:0;border:0;border-radius:50%;background:#d1cabe}.dev3-calendar-dots button[aria-current=true]{background:var(--dev3-forest)}html.dev3 #daily-calendar>.hint,html.dev3 #daily-calendar>.calendar-swipe-hint{text-align:center;font-size:14px;max-width:900px;margin:10px auto;color:#8c8272}html.dev3 .fortune-row{max-width:900px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:30px auto 0;padding:28px 32px;border:1px solid #fff;border-radius:28px;background:linear-gradient(125deg,#fffdf8c4,#f6e5cb80);box-shadow:0 10px 24px #92724b20}html.dev3 .fortune-row h3{color:var(--dev3-forest);font:500 26px/1.5 var(--dev3-serif);margin:0 0 5px}html.dev3 .fortune-row p{font-size:15px;color:#867b69;margin:0}html.dev3 .fortune-row button{min-width:170px;font-size:18px}
@media(max-width:760px){html.dev3 body>header{height:76px;min-height:76px;padding:0 14px;gap:10px}html.dev3 body>header .brand{gap:8px;font-size:14px;letter-spacing:0}html.dev3 body>header .brand small{font-size:8px;letter-spacing:.3px}html.dev3 body>header .seal{width:35px;height:35px;font-size:23px}html.dev3 .header-tools{gap:8px}html.dev3 .header-tools .header-icon,html.dev3 .header-tools .menu-toggle{width:39px;height:39px;min-width:39px;min-height:39px;padding:8px}html.dev3 .header-tools svg{width:23px;height:23px}html.dev3 .navigation-shell{padding:25px 22px 28px}.dev3-menu-title{font-size:28px;margin-bottom:25px}.dev3-account-card{padding:18px 15px;gap:12px}.dev3-account-copy strong{font-size:19px}.dev3-account-copy small{font-size:13px}.dev3-account-avatar{width:47px;height:47px}html.dev3 #main-menu>a:not(.dev3-account-source){min-height:60px;padding:13px 3px;font-size:18px}html.dev3 .home-about{grid-template-columns:1fr;gap:34px;padding:55px 24px}.home-about .portrait{max-width:420px;justify-self:center}html.dev3 .home-about h2{font-size:29px}html.dev3 .home-about p:not(.eyebrow){font-size:16px}html.dev3 #education{padding:55px 22px}.dev3-points-grid{gap:11px}.dev3-points-card{min-height:178px;border-radius:25px;padding:19px 9px;font-size:15px}.dev3-points-card strong{font-size:40px}.dev3-points-card span:last-child{padding:5px 9px;font-size:14px}.dev3-charity-categories{gap:10px}.dev3-charity-categories>div{min-height:100px;border-radius:22px;font-size:15px;padding:17px 5px}.dev3-charity-copy h2{font-size:34px}.dev3-modal-header{padding:17px 17px;min-height:78px;gap:10px}.dev3-modal-header .dev3-modal-lotus{width:29px;height:27px;padding-right:10px}.dev3-modal-header h2{font-size:19px;letter-spacing:0}.dev3-modal-header button.close,.dev3-modal-header button.modal-close{width:36px;height:36px;min-height:36px;font-size:26px}html.dev3 #detail-body>ul{grid-template-columns:1fr}html.dev3 #detail-body>.price{font-size:37px;padding:18px}html.dev3 #detail-body>.price small{display:block;margin-top:5px}.dev3-fortune-pre .fortune-quota{font-size:13px!important;padding:12px 14px;gap:9px;border-radius:22px;flex-wrap:wrap}.dev3-fortune-pre .fortune-quota strong{font-size:14px}.dev3-fortune-pre .sub{font-size:17px!important}html.dev3 #daily-calendar{padding:50px 22px}html.dev3 .calendar-head{flex-direction:column;align-items:flex-start;gap:20px}.calendar-head h2{margin-bottom:0!important}html.dev3 .calendar-date{gap:20px}.calendar-note .huangli-list{padding:11px 13px;gap:13px;font-size:15px}.calendar-note .huangli-list b{font-size:22px}.calendar-note .huangli-lunar{font-size:18px!important}html.dev3 .fortune-row{flex-direction:column;align-items:stretch;padding:25px 23px;gap:20px}html.dev3 .fortune-row button{width:100%;align-self:center}html.dev3 #cards .card-content{padding:22px 21px 10px}.dev3-preference-row{font-size:16px}html.dev3 .dev3-glass{font-size:16px}html.dev3 .hero .actions .dev3-glass{font-size:17px}}
@media(prefers-reduced-motion:reduce){html.dev3 .dev3-glass,.dev3-preference-row .dev3-music-switch::after{transition:none!important}}

.dev3-preference-row .dev3-music-switch:disabled{opacity:.45;cursor:default}

html.dev3 #detail-body>.price{position:relative;padding-right:78px}html.dev3 #detail-body>.price::after{content:"";position:absolute;right:21px;top:25px;width:42px;height:34px;background:url("assets/dev3-lotus-original.svg") center/contain no-repeat;opacity:.5}
html.dev3 #detail-body>ul>li::before{content:"";display:block;width:30px;height:24px;margin-bottom:10px;background:url("assets/dev3-lotus-original.svg") center/contain no-repeat;opacity:.8}
@media(prefers-reduced-motion:reduce){html.dev3{scroll-behavior:auto!important}}
html.dev3 .dev3-glass{font-size:17px}html.dev3 .home-about .dev3-glass{font-size:18px;min-height:58px;min-width:min(330px,100%)}
@media(max-width:760px){html.dev3 .dev3-glass{font-size:16px}html.dev3 .home-about .dev3-glass{font-size:16px}}
html.dev3 #education .dev3-charity-copy h2{font:500 clamp(32px,4.5vw,56px)/1.45 var(--dev3-serif);color:var(--dev3-forest);margin-bottom:28px}html.dev3 .dev3-points-card>span:first-child{display:flex;align-items:center;justify-content:center;min-height:3.7em}html.dev3 .dev3-points-card>strong{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;font-weight:600}.dev3-charity-categories>div{min-height:136px;font-size:20px}.dev3-charity-categories span{font-size:34px}
@media(max-width:760px){html.dev3 #education .dev3-charity-copy h2{font-size:34px}.dev3-charity-categories>div{min-height:100px;font-size:15px}.dev3-charity-categories span{font-size:27px}}

.dev3-category-icon{display:grid;place-items:center}.dev3-category-icon svg,.dev3-category-icon img{display:block;width:40px;height:36px;color:#ad8747}@media(max-width:760px){.dev3-category-icon svg,.dev3-category-icon img{width:34px;height:30px}}

/* source: ui-dev3-premium.css */
/* Premium R2: shared presentation, retaining original controls and business data. */
html.dev3{--dev3-radius:24px;--dev3-shadow:0 8px 24px #6653320c;scrollbar-gutter:stable}
html.dev3 body{overflow-wrap:break-word}
html.dev3 body>header{box-sizing:border-box;height:88px!important;min-height:88px!important;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;align-items:center!important;flex-wrap:nowrap!important}
html.dev3 body>header .brand{display:flex!important;align-items:center!important;flex:0 1 auto;line-height:1.35!important;white-space:nowrap;min-width:0;width:auto!important}
html.dev3 body>header .brand>span:last-child{display:flex;flex-direction:column;justify-content:center;min-width:0;font-weight:600;font-size:inherit;letter-spacing:inherit}
html.dev3 body>header .brand small{display:block;line-height:1.5;min-height:1.5em;margin:4px 0 0}
html.dev3 body>header .seal{display:grid;place-items:center;box-sizing:border-box;border-radius:50%;margin:0;aspect-ratio:1;line-height:1}
html.dev3 body>header .header-tools{margin:0;flex:0 0 auto;align-items:center}
html.dev3 body>header .header-tools>a,html.dev3 body>header .header-tools>button{box-sizing:border-box;flex-shrink:0;transition:background .2s,transform .2s}
html.dev3 body>header .header-tools>a:active,html.dev3 body>header .header-tools>button:active{transform:scale(.95)}
html.dev3 .navigation-shell,html.dev3 .navigation-shell *{box-sizing:border-box}
html.dev3 .dev3-account-copy{min-width:0}
html.dev3 .dev3-account-copy small{white-space:normal;line-height:1.6}
html.dev3 .dev3-preferences{margin-top:16px}
html.dev3 .dev3-preference-row{flex-wrap:nowrap}
html.dev3 .dev3-preference-row>span{min-width:0}
html.dev3 .dev3-preference-row .language-control .sr-only{position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important}

/* Reuse original button handlers and their pressed/subscription state. */
html.dev3 .dev3-setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:68px;padding:12px 0;border-bottom:1px solid var(--dev3-line);text-align:left}
html.dev3 .dev3-setting-row[hidden]{display:none!important}
html.dev3 .dev3-setting-label{font:500 16px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;min-width:0}
html.dev3 button.dev3-ios-switch,html.dev3 .dev3-preference-row button.dev3-ios-switch{position:relative!important;display:inline-block!important;isolation:auto;flex:0 0 54px!important;width:54px!important;min-width:54px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border:1px solid #b9b6ad!important;border-radius:999px!important;background:#c7c5be!important;box-shadow:inset 0 1px 2px #5551!important;font-size:0!important;color:transparent!important;text-shadow:none!important;overflow:visible!important;cursor:pointer;transition:background .2s ease,border-color .2s ease}
html.dev3 button.dev3-ios-switch::before{display:none!important}
html.dev3 button.dev3-ios-switch::after{content:''!important;position:absolute!important;inset:3px auto auto 3px!important;display:block!important;width:24px!important;height:24px!important;border:0!important;border-radius:50%!important;background:#fffefa!important;box-shadow:0 2px 5px #0002!important;transform:none!important;transition:transform .2s ease!important;pointer-events:none}
html.dev3 button.dev3-ios-switch[aria-checked=true]{background:#b99b61!important;border-color:#a88b53!important}
html.dev3 button.dev3-ios-switch[aria-checked=true]::after{transform:translateX(22px)!important}
html.dev3 button.dev3-ios-switch:disabled{opacity:.45;cursor:default}
html.dev3 button.dev3-ios-switch:focus-visible{outline:3px solid #ab8749;outline-offset:4px}
html.dev3 .dev3-ios-switch>*{display:none!important}

/* Calendar keeps the original Hong Kong date and live almanac nodes. */
html.dev3 #daily-calendar{padding-inline:clamp(18px,5vw,96px)}
html.dev3 .calendar-head,html.dev3 .calendar-grid,html.dev3 .dev3-calendar-controls,html.dev3 .fortune-row{max-width:1280px}
html.dev3 .calendar-date{min-width:0;flex-shrink:0}
html.dev3 .dev3-calendar-dots{align-items:center;gap:9px;line-height:0;flex:0 0 auto}
html.dev3 .dev3-calendar-dots button{display:block!important;box-sizing:border-box;width:8px!important;min-width:8px!important;max-width:8px;height:8px!important;min-height:8px!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:50%!important;background:#d1cabe!important;font-size:0;flex:none;transform:none!important}
html.dev3 .dev3-calendar-dots button::before,html.dev3 .dev3-calendar-dots button::after{display:none!important}
html.dev3 .dev3-calendar-dots button[aria-current=true]{background:#8d713f!important}
html.dev3 .calendar-grid{scroll-padding-inline:0}

/* Original full-size lamp, background and photo animation; original document order. */
html.dev3 #education{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(30px,5vw,80px);align-items:center;background:radial-gradient(ellipse at 16% 50%,#f3e8d2,transparent 55%)}
html.dev3 #education>.kindness-lamp{width:auto;min-width:0;min-height:0;margin:0;align-self:center}
html.dev3 #education .education-reference{height:auto;min-height:0;transform:none;margin:0 auto 15px}
html.dev3 #education .dev3-charity-copy{min-width:0;max-width:none}
html.dev3 #education .dev3-charity-copy h2{font-size:clamp(30px,3.2vw,50px)}
html.dev3 #education .dev3-points-card{min-width:0;font-size:16px;padding:20px 12px;box-shadow:var(--dev3-shadow)}
html.dev3 #education .dev3-points-card strong{font-size:clamp(32px,3.5vw,52px)}
html.dev3 #education .dev3-charity-categories>div{font-size:16px;box-shadow:var(--dev3-shadow)}
html.dev3 .dev3-charity-enquiry-note{display:block;font-size:14px;line-height:1.8;color:#7b7264}

/* Status labels are spans, never buttons. */
html.dev3 .public-activity-status,html.dev3 .member-activity-state,html.dev3 .activity-status{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;min-height:0;padding:5px 12px!important;margin:8px 0;border:1px solid #d8dfd3!important;border-radius:999px!important;background:#edf2e9!important;color:#426044!important;font:500 14px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;box-shadow:none!important;cursor:default!important;position:static!important;inset:auto!important;transform:none!important;white-space:normal}
html.dev3 .public-activity-status::before,html.dev3 .member-activity-state::before{content:'';display:block;width:6px;height:6px;flex:none;border-radius:50%;background:#5d8c5d}
html.dev3 .public-activity-status[data-state=closed],html.dev3 .member-activity-state[data-state=closed],html.dev3 .public-activity-status[data-state=unknown],html.dev3 .member-activity-state[data-state=unknown]{background:#efeeea!important;border-color:#ddd9d0!important;color:#78756c!important}
html.dev3 [data-state=closed].public-activity-status::before,html.dev3 [data-state=closed].member-activity-state::before,html.dev3 [data-state=unknown].public-activity-status::before,html.dev3 [data-state=unknown].member-activity-state::before{background:#97958b}
html.dev3 #detail-body>.public-activity-status{display:flex!important;margin:24px 0 10px}
html.dev3 #detail-body>.public-activity-status+a.button{margin-top:0}
html.dev3 .activity-status:has(.gray){color:#78756c!important;background:#efeeea!important}
html.dev3 .activity-status:has(.yellow){color:#866b29!important;background:#f6eedb!important}

/* Shared member dialogs retain original title/close elements and handlers. */
html.dev3 .dev3-shared-dialog{padding:0!important;width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 28px);border:1px solid #fff;border-radius:28px;background:var(--dev3-ivory);overflow:auto}
html.dev3 .dev3-modal-header>button{position:static!important;display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;padding:7px!important;border:1px solid #d8b47a;border-radius:50%;background:#fff8ed;color:#88622f;font-size:28px;box-shadow:none}
html.dev3 .dev3-modal-header>button svg{width:22px;height:22px;stroke:currentColor;fill:none}
html.dev3 .dev3-shared-dialog>.header-inbox-body,html.dev3 .dev3-shared-dialog>.admin-popup-content,html.dev3 .dev3-shared-dialog>form{padding:24px}
html.dev3 .dev3-shared-dialog .header-inbox-item{border:1px solid var(--dev3-line);border-radius:18px;background:#fff9;padding:15px;margin-bottom:12px}
html.dev3 .dev3-shared-dialog .header-inbox-unread-dot{background:#ae8b4b}
html.dev3 .fortune-sound-controls{max-width:530px;margin:15px auto}
html.dev3 .chant-sound-controls{width:min(640px,100%);margin:24px auto 36px;padding:10px 22px;border:1px solid #d8bf822e;border-radius:24px;background:#ffffff08;text-align:left}
html.dev3 .chant-sound-controls p[role=status]{font-size:14px;line-height:1.7;margin:9px 0}
html.dev3 .practice-dedication{max-width:760px;margin:24px auto;border:1px solid #d7b56e55;border-radius:20px;background:#ffffff08;overflow:hidden;text-align:left}
html.dev3 .practice-dedication>summary{position:relative;display:flex;align-items:center;gap:12px;padding:18px 20px;list-style:none;color:inherit;font-size:17px;cursor:pointer}
html.dev3 .practice-dedication>summary::-webkit-details-marker{display:none}
html.dev3 .practice-dedication>summary::before{content:'';display:block;width:28px;height:24px;background:url('assets/dev3-lotus-original.svg') center/contain no-repeat;flex:none}
html.dev3 .practice-dedication>summary::after{content:'';display:block;width:8px;height:8px;margin-left:auto;border-right:1.5px solid #c5a361;border-bottom:1.5px solid #c5a361;transform:rotate(45deg);transition:transform .2s}
html.dev3 .practice-dedication[open]>summary::after{transform:rotate(225deg)}
html.dev3 .practice-dedication .dedication-content{padding:0 20px 20px;line-height:1.9}

/* R2 account sign-in: existing form IDs, fields and validation are retained. */
html.dev3 .dev3-auth-section{width:min(100%,600px);margin:0 auto;padding:54px 28px 70px;text-align:center;background:transparent}
html.dev3 .dev3-auth-section>.eyebrow{display:none}
html.dev3 .dev3-auth-seal{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 22px;border:1.5px solid #b99456;border-radius:50%;font:40px/1 var(--dev3-serif);color:var(--dev3-gold);background:transparent}
html.dev3 .dev3-auth-section>h1{font:600 clamp(28px,4vw,36px)/1.4 -apple-system,BlinkMacSystemFont,sans-serif;margin:0 0 28px;color:var(--dev3-forest)}
html.dev3 .dev3-auth-section .member-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 28px;border:1px solid #e6dfd2;border-radius:15px;background:#eae7e0;box-shadow:none}
html.dev3 .dev3-auth-section .member-tabs>button{min-width:0;min-height:42px;padding:8px 12px;border:0;border-radius:11px;background:transparent;color:#777266;box-shadow:none;font-size:16px}
html.dev3 .dev3-auth-section .member-tabs>button[aria-selected=true]{background:#fffdf8;color:#33372e;box-shadow:0 2px 5px #0000000d}
html.dev3 .dev3-auth-section .member-tabs>button::before,html.dev3 .dev3-auth-section .member-tabs>button::after{display:none!important}
html.dev3 .dev3-auth-section .auth-grid{display:block}
html.dev3 .dev3-auth-section .auth-panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left}
html.dev3 .dev3-auth-section .auth-panel[hidden]{display:none!important}
html.dev3 .dev3-auth-section form{display:flex;flex-direction:column;gap:18px}
html.dev3 .dev3-auth-section label{display:block;font-size:15px;font-weight:500;line-height:1.6;text-align:left}
html.dev3 .dev3-auth-section input:not([type=checkbox]),html.dev3 .dev3-auth-section select{box-sizing:border-box;width:100%;min-height:54px;border:1px solid #ded5c3;border-radius:16px;background:#fffaf2;color:#33372e;padding:12px 15px;font-size:17px;box-shadow:inset 0 1px 3px #a18d5a05}
html.dev3 .dev3-auth-section .phone-input-group{display:grid;grid-template-columns:minmax(115px,.85fr) minmax(0,1.15fr);gap:10px;align-items:start;margin-top:6px}
html.dev3 .dev3-auth-section .phone-input-group select{min-width:0;padding-inline:10px;font-size:15px}
html.dev3 .dev3-auth-section .phone-input-group input{min-width:0}
html.dev3 .dev3-auth-section button[type=submit]{width:100%;min-height:54px;font-size:17px;margin:4px 0 0}
html.dev3 .dev3-auth-section .login-divider{display:flex;align-items:center;gap:17px;margin:26px 0;color:#8b8375;font-size:14px}
html.dev3 .dev3-auth-section .login-divider::before,html.dev3 .dev3-auth-section .login-divider::after{content:'';height:1px;flex:1;background:#dfd7c7}
html.dev3 #passkey-login{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;padding:12px 18px;border:1px solid #d4bd8b;border-radius:999px;background:linear-gradient(130deg,#fffdf8d9,#f5ecdaaa);box-shadow:inset 0 1px 2px #fff;color:var(--dev3-forest);font-size:16px;line-height:1.5;transition:transform .18s,background .18s}
html.dev3 #passkey-login::before,html.dev3 #passkey-login::after{display:none!important}
html.dev3 #passkey-login:active{transform:scale(.98)}
html.dev3 .dev3-passkey-icon{width:26px;height:26px;flex:none}
html.dev3 .dev3-passkey-note{font-size:14px;line-height:1.7;color:#81796d;text-align:center;margin:12px 0 26px}
html.dev3 .dev3-auth-section #login-panel>.text-link{display:block;font-size:14px;line-height:1.8;text-align:center;color:#886b39}
html.dev3 .dev3-password-wrap{display:block;position:relative;margin-top:6px}
html.dev3 .dev3-password-wrap>input{padding-right:54px!important;margin:0!important}
html.dev3 .dev3-password-eye{position:absolute;inset:4px 5px 4px auto;display:grid;place-items:center;width:44px;min-width:44px;height:auto;min-height:44px;margin:0;padding:10px!important;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#8a774e;line-height:1}
html.dev3 .dev3-password-eye::before,html.dev3 .dev3-password-eye::after{display:none!important}
html.dev3 .dev3-password-eye svg{width:22px;height:22px}
html.dev3 .dev3-password-wrap>.password-visibility{font-size:0!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a774e' stroke-width='1.6'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/22px 22px no-repeat!important}
html.dev3 .dev3-auth-section .privacy-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px}
html.dev3 .dev3-auth-section .privacy-consent input{flex:none;margin-top:5px}
html.dev3 .dev3-auth-section .member-notice{font-size:14px;line-height:1.85;color:#807669}

/* Member data: style existing cards and rows without changing the figures. */
html.dev3 body.dev3-member{background:var(--dev3-ivory);color:#33372e}
html.dev3 .dev3-member main{width:min(1280px,100%);margin:auto;padding:36px clamp(18px,4vw,55px) 70px}
html.dev3 .dev3-member #app>h1{font:600 clamp(27px,3vw,38px)/1.4 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.5px}
html.dev3 .dev3-member #app>.card,html.dev3 .dev3-member .member-two-col>.card{padding:clamp(22px,3vw,34px);margin:22px 0;border:1px solid #e8e0d2;border-radius:26px;background:#fffdf8;box-shadow:var(--dev3-shadow)}
html.dev3 .dev3-member #app .card h2{font-size:22px;line-height:1.5;margin-top:0;letter-spacing:-.3px}
html.dev3 .dev3-member #app .sub,html.dev3 .dev3-member #app .hint{font-size:15px;line-height:1.8;color:#867e70}
html.dev3 .dev3-member .review-profile{background:linear-gradient(135deg,#fffdf8,#f5eddb)!important}
html.dev3 .dev3-member .profile-avatar{background:#e7d9bc;color:#715832;border:1px solid #d5bc8b;box-shadow:none}
html.dev3 .dev3-member .member-profile-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
html.dev3 .dev3-member .member-profile-name{font-size:26px!important;margin-top:22px}
html.dev3 .dev3-member .member-profile-details{font-size:14px;line-height:1.8;color:#877d6b}
html.dev3 .dev3-member .review-checkin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;margin-top:24px;background:transparent;border:0}
html.dev3 .review-checkin-summary>div{display:flex;flex-direction:column;gap:8px;padding:20px 12px;border:1px solid #e8dfcf;border-radius:20px;background:#fffaf1;text-align:center;min-width:0}
html.dev3 .review-checkin-summary small{font-size:14px;color:#8b7d64}
html.dev3 .review-checkin-summary strong{font-size:clamp(21px,3vw,32px);font-weight:600;color:#33372e}
html.dev3 .dev3-member .milestone-total{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;padding:12px 0 26px;background:transparent;border:0}
html.dev3 .dev3-member .milestone-total>strong{font:600 clamp(48px,7vw,76px)/1.1 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-2px;color:#33372e}
html.dev3 .dev3-member .milestone-total small{font-size:15px;color:#8b8170}
html.dev3 .dev3-member .stats-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html.dev3 .dev3-member .stat{padding:18px;border:1px solid #e7dfcf;border-radius:20px;background:#f8f4eb;min-width:0}
html.dev3 .dev3-member .stat small{font-size:14px;color:#82755f}
html.dev3 .dev3-member .stat strong{display:block;font-size:30px;line-height:1.5;color:#33372e}
html.dev3 .dev3-member .member-two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}
html.dev3 .dev3-member .member-two-col>.card{margin:0}
html.dev3 .dev3-member .row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border:0;border-bottom:1px solid #e7e0d3;min-width:0}
html.dev3 .dev3-member .row>*{min-width:0}
html.dev3 .dev3-member .big{font-size:clamp(42px,6vw,64px);font-weight:600;line-height:1.3;color:#33372e;margin:15px 0}
html.dev3 .dev3-member .actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}
html.dev3 .dev3-member .actions>*{max-width:100%;white-space:normal}
html.dev3 .dev3-member input,html.dev3 .dev3-member select,html.dev3 .dev3-member textarea{box-sizing:border-box;max-width:100%;width:100%;min-height:50px;padding:12px 15px;border:1px solid #ded4bf;border-radius:15px;background:#fffaf2;color:#33372e;font-size:16px}
html.dev3 .dev3-member label{display:block;line-height:1.8;font-size:15px;margin:14px 0}
html.dev3 .dev3-member .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html.dev3 .dev3-member .grid>*{min-width:0}
html.dev3 .dev3-member .range-total strong{font-size:42px}
html.dev3 .dev3-member .scripture-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:22px 0;border:0;border-bottom:1px solid #e7e0d3;border-radius:0;background:none}
html.dev3 .dev3-member .scripture-summary h3{margin:0;font-size:17px}
html.dev3 .dev3-member .scripture-summary .summary-number{font-size:24px;color:#33372e}
html.dev3 .dev3-member .scripture-summary small{font-size:14px;color:#8b8171}
html.dev3 .dev3-member .summary-track{grid-column:1/-1;height:3px;background:#ede5d5}
html.dev3 .dev3-member .summary-track>span{display:block;height:100%;background:#b89b63}
html.dev3 .dev3-member .dev3-share-card{text-align:center;max-width:680px;margin:24px auto!important}
html.dev3 .dev3-invite-qr{box-sizing:content-box;max-width:min(240px,calc(100% - 48px))!important;width:100%;height:auto;aspect-ratio:1;padding:24px;border:1px solid #e6decd;border-radius:20px;background:#fff;object-fit:contain}
html.dev3 .dev3-share-card .actions{justify-content:center}
html.dev3 .dev3-share-card input{font-size:14px;text-align:center}
html.dev3 .dev3-share-card small{display:block;font-size:14px;line-height:1.8;color:#867b68}
html.dev3 .member-activity-media{border-radius:22px;overflow:hidden;background:#f1eadc;text-align:left}
html.dev3 .member-activity-media img{display:block;width:100%;max-height:none;height:auto;object-fit:contain}
html.dev3 .member-activity-media .member-activity-state{margin:14px!important}
html.dev3 .push-onboarding{margin:20px 0;padding:22px;border:1px solid #e5d9bd;border-radius:23px;background:#fffaf0;box-shadow:none;font-size:15px}
html.dev3 .push-status{font-size:14px;line-height:1.8;color:#827864}
html.dev3 .member-push-panel>p.sub{display:none}

html.dev3 body>.back-top{position:fixed!important;inset:auto max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto!important;z-index:55;box-sizing:border-box;width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;padding:0!important}
html.dev3 body>.back-top[hidden]{display:none!important}
html.dev3 body>footer .brand>small{font-size:18px!important;line-height:1.6}
html.dev3 .dev3-glass{box-shadow:inset 0 1px 2px #fff9,0 5px 14px #886b3615!important}

@media(max-width:1000px){html.dev3 #education{grid-template-columns:1fr;gap:42px}html.dev3 #education>.kindness-lamp{width:min(100%,600px);justify-self:center}html.dev3 .dev3-member .stats-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html.dev3 body>header{height:76px!important;min-height:76px!important}html.dev3 body>header .brand{font-size:14px!important}html.dev3 .dev3-member .member-two-col{grid-template-columns:1fr;gap:18px}html.dev3 .dev3-member .review-checkin-summary{gap:8px}html.dev3 .review-checkin-summary>div{padding:16px 8px}html.dev3 .dev3-member .review-checkin-summary small{font-size:13px}html.dev3 .dev3-member .review-checkin-summary strong{font-size:21px}html.dev3 .dev3-member .member-checkin-actions{gap:8px;flex-wrap:wrap}html.dev3 .dev3-member .member-checkin-actions>*{font-size:14px;min-height:44px}html.dev3 .dev3-auth-section{padding:38px 22px 55px}html.dev3 .dev3-shared-dialog>.header-inbox-body,html.dev3 .dev3-shared-dialog>.admin-popup-content{padding:20px}html.dev3 .dev3-member .row{gap:12px}html.dev3 .dev3-member .scripture-summary{grid-template-columns:minmax(0,1fr) auto}html.dev3 .dev3-member .scripture-summary .summary-number{font-size:21px}html.dev3 #education{padding-inline:22px}html.dev3 .dev3-setting-row{min-height:62px}}
@media(max-width:374px){html.dev3 body>header{padding-inline:10px!important;gap:8px}html.dev3 body>header .brand{font-size:12px!important;gap:6px!important}html.dev3 body>header .brand small{font-size:7px!important;letter-spacing:0!important}html.dev3 body>header .seal{width:30px!important;height:30px!important;font-size:21px!important}html.dev3 body>header .header-tools{gap:6px}html.dev3 body>header .header-tools .header-icon,html.dev3 body>header .header-tools .menu-toggle{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:7px!important}html.dev3 .dev3-member .grid{grid-template-columns:1fr}html.dev3 .dev3-member .stats-preview{gap:9px}html.dev3 .dev3-member .stat{padding:15px 12px}html.dev3 .dev3-member .member-checkin-actions{width:100%}html.dev3 .dev3-member .review-checkin-summary{grid-template-columns:1fr}html.dev3 .dev3-auth-section .phone-input-group{grid-template-columns:minmax(105px,.85fr) minmax(0,1fr);gap:8px}html.dev3 .dev3-modal-header{gap:8px;padding-inline:13px}html.dev3 .dev3-modal-header h2{font-size:17px}html.dev3 .dev3-modal-header .dev3-modal-lotus{width:24px;padding-right:8px}html.dev3 .dev3-modal-header>button{width:34px;height:34px;min-height:34px}html.dev3 .dev3-charity-categories{gap:7px}html.dev3 #education .dev3-charity-categories>div{font-size:14px;padding-inline:4px}}
@media(prefers-reduced-motion:reduce){html.dev3 button.dev3-ios-switch,html.dev3 button.dev3-ios-switch::after,html.dev3 .practice-dedication>summary::after,html.dev3 #passkey-login{transition:none!important}}

/* v1.1.1: keep the original visibility handler, align its eye inside the input. */
html.dev3 .dev3-password-wrap>.password-visibility{transform:none!important;translate:none!important;box-shadow:none!important;border:0!important;filter:none!important;border-radius:12px!important;margin:0!important}
/* Original onboarding remains dismissible; one label and one switch share its header. */
html.dev3 .push-onboarding{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:10px 16px;max-width:1280px;margin:16px auto;padding:18px 22px}
html.dev3 .push-onboarding>strong{grid-column:1;grid-row:1;align-self:center;font-size:16px;line-height:1.5}
html.dev3 .push-onboarding>.dev3-setting-row{grid-column:2;grid-row:1;padding:0;min-height:32px;border:0;justify-content:flex-end}
html.dev3 .push-onboarding .dev3-setting-label{display:none}
html.dev3 .push-onboarding>p{grid-column:1/-1;margin:0;font-size:14px;line-height:1.8}
html.dev3 .push-onboarding>.push-later{grid-column:1/-1;justify-self:start;margin-top:4px;min-height:40px;font-size:14px}

/* source: ui-r3-refinement.css */
/* Premium UI R3. Reconstructed from approved text; not an exported reference PNG. */
html.dev3 #daily-calendar{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:64px clamp(20px,5vw,96px);overflow:visible}
html.dev3 #daily-calendar>.calendar-head,html.dev3 #daily-calendar>.calendar-grid,html.dev3 #daily-calendar>.dev3-calendar-controls,html.dev3 #daily-calendar>.fortune-row{margin-inline:auto;width:100%;box-sizing:border-box}
html.dev3 .home-v21 #home.hero .actions>a.button[href="#temple"]{background:linear-gradient(115deg,#fff4d355,#e1aa476e 48%,#fff0c66b)!important;border-color:#f7db9d9c!important;color:#fff6de!important;box-shadow:inset 0 1px 1px #fff9eab3,0 8px 28px #8f5e2538!important;backdrop-filter:blur(18px) saturate(1.25)}
html.dev3 body>footer .brand>small{font-size:16px!important}
html.dev3 body>header a#header-notifications{display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px;padding:10px!important;border-radius:50%;background:#f4eddc!important;color:#9b793d!important}
html.dev3 #header-notifications .notification-icon{display:flex;width:24px;height:24px;line-height:1;background:none}
html.dev3 #header-notifications .notification-icon svg{width:24px;height:24px;display:block}
html.dev3 #notification-count[hidden]{display:none!important}
html.dev3 #header-notifications .notification-count{position:absolute;right:-3px;top:-3px;min-width:18px;min-height:18px;font-size:11px;line-height:18px}
html.dev3 .r3-activity-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
html.dev3 .r3-activity-top .card-kicker{min-width:0;flex:1 1 120px}
html.dev3 .r3-activity-top .public-activity-status{margin:0 0 0 auto}
html.dev3 #cards>.card .card-content{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}
html.dev3 #cards .card-content>h3{color:#333e31;margin:6px 0 18px}
html.dev3 #cards .card-content>p{margin:0 0 20px;min-height:5.4em}
html.dev3 .r3-activity-item{display:flex;align-items:flex-start;gap:10px;margin:6px 0;font-size:16px;line-height:1.7}
html.dev3 .r3-activity-item::before{content:'🪷';font-size:17px;flex:none}
html.dev3 .price.r3-price{display:block!important;box-sizing:border-box;width:100%;max-width:100%;margin:14px 0 20px!important;padding:20px 22px!important;background:linear-gradient(125deg,#faf3e4,#f0e1c4)!important;border:1px solid #d8c39b!important;border-radius:22px;box-shadow:inset 0 1px #fffef7,0 6px 18px #87632d0b;color:#87632d}
html.dev3 .r3-price .r3-price-label{display:block;font-size:14px;font-weight:500;letter-spacing:.04em;color:#796541}
html.dev3 .r3-price .r3-price-amount{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-top:6px;line-height:1.15}
html.dev3 .r3-price .r3-price-amount strong{font:600 clamp(42px,4vw,58px)/1.15 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.045em;color:#755323}
html.dev3 .r3-price small{font:500 16px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;color:#876c40}
html.dev3 .r3-price .r3-price-note{font-size:14px;line-height:1.6;margin:14px 0 0;padding-top:12px;border-top:1px solid #d8c39b}
html.dev3 .deadline{display:flex!important;align-items:center;gap:12px;font-size:16px;line-height:1.65;margin:0 0 20px!important;padding:0!important;background:none!important;border:0!important}
html.dev3 .deadline::before{display:none!important}
html.dev3 .deadline>svg{width:28px;height:28px;flex:0 0 28px;color:#b89a63}
html.dev3 .deadline>div{display:flex;flex-direction:column;min-width:0}
html.dev3 .deadline small{color:#897857;font-size:14px}
html.dev3 .deadline span{color:#625b4c;font-size:16px;overflow-wrap:anywhere}
html.dev3 #cards .card-content>.r3-price{margin-top:auto!important}
html.dev3 #detail-body>.public-activity-status{margin:24px 0 10px auto!important}
html.dev3 #detail-body .detail-poster{width:100%!important;max-width:660px!important;margin-inline:auto;display:block}
html.dev3 #detail-body .detail-poster img,html.dev3 #cards .poster-button img{object-fit:contain!important;height:auto!important;width:100%}
html.dev3 .public-activity-status[data-state=closed],html.dev3 .member-activity-state[data-state=closed],html.dev3 .activity-status:has(.red){background:#f5e7e5!important;color:#9b615b!important;border-color:#e8ceca!important}
html.dev3 .public-activity-status[data-state=closed]::before,html.dev3 .member-activity-state[data-state=closed]::before,html.dev3 .review-signal.red{background:#b9776e!important}
html.dev3 .review-profile{background:linear-gradient(125deg,#fffdf6,#f6eddc)!important;border:1px solid #e2d2b3!important;padding:clamp(20px,3vw,32px)!important}
html.dev3 .r3-member-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:24px}
html.dev3 .r3-member-top>small{font-size:13px;letter-spacing:.08em;color:#927448}
html.dev3 .r3-member-top .member-checkin-actions{margin:0 0 0 auto}
html.dev3 .review-profile .profile-settings{min-height:44px!important;padding:10px 16px!important;font-size:15px!important;color:#705a34!important;border:1px solid #d8c39b!important;background:linear-gradient(135deg,#fffdf4e8,#efe2c59e)!important;box-shadow:inset 0 1px #fff,0 3px 9px #81642c12!important;white-space:nowrap}
html.dev3 .review-profile .member-profile-header{display:flex;align-items:center;justify-content:flex-start;gap:20px;margin:0 0 22px}
html.dev3 .review-profile .profile-avatar{width:78px;height:78px;min-width:78px;font-size:32px;background:linear-gradient(135deg,#f6e9ce,#dac18d);color:#806132;box-shadow:inset 0 1px #fff8}
html.dev3 .r3-member-identity{min-width:0}
html.dev3 .review-profile .member-profile-name{margin:0;font-size:clamp(23px,3vw,32px);line-height:1.4}
html.dev3 .r3-member-identity>p{margin:6px 0 0;font-size:14px;color:#82745c}
html.dev3 .review-profile .member-profile-details{padding:0 0 22px;margin:0;border-bottom:1px solid #e5d9c2}
html.dev3 .review-profile .member-profile-details p{margin:6px 0;font-size:15px;color:#766c5a}
html.dev3 .review-profile .review-checkin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
html.dev3 .review-profile .review-checkin-summary>div{padding:18px 10px;border:0;border-radius:18px;background:#f3e7cd;color:#87632d;text-align:center}
html.dev3 .review-profile .review-checkin-summary>div:nth-child(2){background:#f5e8dd;color:#b27d50}
html.dev3 .review-profile .review-checkin-summary>div:nth-child(3){background:#e7eee2;color:#52794f}
html.dev3 .review-profile .review-checkin-summary small{color:inherit;font-size:14px;display:block}
html.dev3 .review-profile .review-checkin-summary strong{color:inherit;font-size:clamp(22px,3vw,32px);display:block;margin-top:7px}
html.dev3 .review-profile>.profile-checkin{display:flex;width:100%;min-height:52px;margin:0;box-sizing:border-box}
html.dev3 .review-profile>.profile-checkin[data-checked=true]{background:linear-gradient(120deg,#f0f5ec,#dce9d5)!important;color:#52794f!important;border-color:#bccfb3!important;box-shadow:inset 0 1px #fff!important}
html.dev3 .r3-practice .milestone-total{background:#f3e7cd!important;color:#87632d!important;border:0!important;border-radius:20px;padding:24px!important}
html.dev3 .r3-practice .milestone-total>*{color:inherit!important}
html.dev3 .r3-practice .stats-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-block:14px}
html.dev3 .r3-practice .stats-preview>.stat{border:0!important;border-radius:20px;background:#e7eee2!important;color:#52794f!important;padding:22px!important;min-width:0}
html.dev3 .r3-practice .stats-preview>.stat:nth-child(2){background:#e8ecf3!important;color:#627d9f!important}
html.dev3 .r3-practice .stats-preview>.stat:nth-child(3){background:#ede7f3!important;color:#8a70a5!important}
html.dev3 .r3-practice .stats-preview>.stat:nth-child(4){background:#f5e8dd!important;color:#b27d50!important}
html.dev3 .r3-practice .stat>*{color:inherit!important}
html.dev3 .r3-practice .milestones{scrollbar-width:thin;scrollbar-color:#cbbb9b #f5f0e6;padding-bottom:12px;scroll-snap-type:x proximity}
html.dev3 .r3-practice .milestones::-webkit-scrollbar{height:4px}
html.dev3 .r3-practice .milestones::-webkit-scrollbar-thumb{background:#cbbb9b;border-radius:4px}
html.dev3 .r3-practice .milestones>span{scroll-snap-align:start}
html.dev3 .r3-monthly-wallet>.row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:20px!important;background:#fbf8f1;border:1px solid #e9e1d2!important;border-radius:20px}
html.dev3 .r3-wallet-copy{position:relative;padding-left:52px;min-width:0}
html.dev3 .r3-wallet-icon{position:absolute;left:0;top:0;width:40px;height:44px;font-size:28px;display:grid;place-items:center}
html.dev3 .r3-wallet-copy h3{margin:0 0 6px}
html.dev3 .r3-monthly-wallet>.row>a{min-width:60px;flex:none}
html.dev3 .r3-history-footer{border-top:1px solid #e5ddce;margin-top:24px;padding-top:24px}
html.dev3 .r3-history-footer>a{width:100%;box-sizing:border-box}
html.dev3 .r3-security>.row{padding-block:20px;border-bottom:1px solid #e8e1d3;align-items:center}
html.dev3 .r3-security>.r3-passkey-add{margin-top:24px;display:flex;width:100%;min-height:52px}
html.dev3 .r3-session-row{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px;padding-top:24px;border-top:1px solid #e3dac8}
html.dev3 .r3-session-row>span{font-weight:500;font-size:16px}
@media(max-width:600px){html.dev3 #daily-calendar{padding-block:48px}html.dev3 .review-profile .review-checkin-summary{gap:8px}html.dev3 .review-profile .review-checkin-summary>div{padding:16px 5px}html.dev3 .review-profile .review-checkin-summary small{font-size:13px}html.dev3 .r3-practice .stats-preview>.stat{padding:18px!important}html.dev3 .r3-monthly-wallet>.row{padding:16px!important;flex-wrap:wrap}html.dev3 .r3-wallet-copy{flex:1 1 160px}html.dev3 .r3-member-top{gap:10px}html.dev3 .review-profile .member-profile-header{gap:14px}html.dev3 .review-profile .profile-avatar{width:66px;height:66px;min-width:66px}html.dev3 .r3-activity-top{gap:8px}html.dev3 .r3-price .r3-price-amount strong{font-size:46px}}

/* source: ui-r4.css */
/* R4 scoped corrections. Preserve footer, backgrounds, forms, hidden/disabled and dedicated controls. */
html.dev3 .r4-activity-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 18px;min-width:0}
html.dev3 #cards .r4-activity-title>h3{margin:0;min-width:0;overflow-wrap:anywhere;flex:1}
html.dev3 #cards .r4-activity-title>.public-activity-status{flex:none;margin:0;white-space:nowrap}
html.dev3 .price.r3-price{position:relative;overflow:visible;padding:22px!important}
html.dev3 .price.r3-price::after{content:'';position:absolute;top:16px;right:18px;width:30px;height:30px;background:url('assets/dev3-lotus-original.svg') center/contain no-repeat;opacity:.65;pointer-events:none}
html.dev3 .r3-price-label{padding-right:42px}
html.dev3 .r3-price .r3-price-amount{align-items:baseline;flex-wrap:wrap;gap:8px}
html.dev3 #detail-body>.public-activity-status{margin:24px auto 10px!important;display:table!important}
html.dev3 .member-activity-media .member-activity-state{display:table;margin:16px auto}
html.dev3 .practice-dedication,html.dev3 .chant-sound-controls{box-sizing:border-box;width:min(640px,100%);max-width:640px;margin-inline:auto}
html.dev3 .practice-dedication{color:#fff8e8;background:linear-gradient(135deg,#302d27e8,#161c19e8);border-color:#c6a56866}
html.dev3 .practice-dedication>summary{color:#fff8e8}
html.dev3 .practice-dedication .dedication-content{color:#fff8e8;overflow-wrap:anywhere}
html.dev3 .review-profile,html.dev3 .r3-member-top{min-width:0;box-sizing:border-box}
html.dev3 .review-profile .profile-checkin{box-sizing:border-box;max-width:100%;min-width:0!important;width:100%;display:flex;justify-content:center;align-items:center;gap:10px;white-space:normal;text-align:center;margin-inline:0;flex-wrap:wrap}
html.dev3 .review-profile .member-checkin-actions{min-width:0;max-width:100%;box-sizing:border-box}
html.dev3 .r3-wallet-icon{color:#b18a46;width:40px;height:44px;border-radius:12px;background:#f6eddb;display:grid;place-items:center}
html.dev3 .r3-wallet-icon svg{width:27px;height:27px}
html.dev3 a.dev3-account-card,html.dev3 a.dev3-account-card *{text-decoration:none!important}
html.dev3 a.dev3-account-card:focus-visible{outline:3px solid #80602c;outline-offset:4px}
html.dev3 .dev3-preferences{border-top:0!important;margin-top:0!important;padding-top:0!important}
html.dev3 #main-menu{margin-bottom:0!important}
html.dev3 .dev3-preferences>h3{margin-top:14px}
html.dev3 .home-v21 #home.hero .actions>a.button[href="#temple"],html.dev3 .home-v21 #light-lamp{background:linear-gradient(155deg,#fff8d9 0%,#f3db9c 28%,#eac46f 65%,#bb8a36 100%)!important;color:#30230f!important;border-color:#f8e1a5!important;box-shadow:inset 0 2px 3px #fff9eac0,inset 0 -1px 2px #9d682b44,0 8px 22px #8f5e2540!important}
html.dev3 .practice a.dev3-glass,html.dev3 .deity-hero a.dev3-glass,html.dev3 .counter-actions>button.dev3-glass{background:linear-gradient(155deg,#fff8d9,#f3db9c 28%,#eac46f 65%,#bb8a36)!important;color:#30230f!important;min-height:44px;border-radius:999px!important;font-weight:600;gap:10px}
html.dev3 .r4-line-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html.dev3 .r4-record-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}
html.dev3 .r4-record-filters label{min-width:0}html.dev3 .r4-record-filters [hidden]{display:none!important}
html.dev3 .r4-record-filters input,html.dev3 .r4-record-filters select{box-sizing:border-box;width:100%;min-width:0}
html.dev3 .lamp-history-record{background:#fffaf0;border:1px solid #e3d4b8;border-radius:20px;padding:22px!important;margin:14px 0;overflow-wrap:anywhere;min-width:0}
html.dev3 .lamp-history-record h3{font-weight:650;color:#50351e}
html.dev3 .lamp-history-record p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:761px){html.dev3 #daily-calendar .calendar-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;overflow:visible!important;scroll-snap-type:none;gap:24px}
html.dev3 #daily-calendar .calendar-grid>article{width:auto!important;min-width:0!important;max-width:none!important;flex:none;box-sizing:border-box;overflow:visible;overflow-wrap:anywhere}
html.dev3 #daily-calendar .dev3-calendar-controls{display:none!important}}
@media(max-width:600px){html.dev3 .r4-activity-title{gap:8px}html.dev3 #cards .r4-activity-title>h3{font-size:22px}html.dev3 #cards .r4-activity-title>.public-activity-status{font-size:12px;padding:6px 8px}html.dev3 .r3-member-top{flex-direction:column;align-items:stretch}html.dev3 .r3-member-top .member-checkin-actions{width:100%;margin:0}}
html.dev3 .practice .chant-sound-controls:has(#background-music-toggle){width:min(640px,100%);max-width:640px;margin-inline:auto}
html.dev3 #cards .price.r3-price::after,html.dev3 #detail-body>.price.r3-price::after{right:18px;top:16px;width:30px;height:30px;pointer-events:none}
html.dev3 #cards .r4-activity-title>.public-activity-status{align-self:center}
html.dev3 body .review-profile>.profile-checkin{position:static!important;inset:auto!important;width:100%;max-width:100%;margin:0;transform:none}
/* R4 second batch: retain first-batch scope and all dedicated controls. */
html.dev3 .home-v21 #home.hero .actions>a.button[href="#temple"],html.dev3 .home-v21 #light-lamp{color:#3a2a16!important;font-weight:600!important;text-shadow:none!important;filter:none!important}
html.dev3 .home-v21 #home.hero .actions>a.button[href="#temple"] *,html.dev3 .home-v21 #light-lamp *{color:#3a2a16!important;text-shadow:none!important;filter:none!important}
html.dev3 .practice-dedication .dedication-verse{text-align:center!important;line-height:2.15;letter-spacing:0;font-size:clamp(17px,2.4vw,22px);margin:20px 0 28px;white-space:normal}
html.dev3 .r4-dedication-line{display:block;letter-spacing:0;white-space:normal;overflow-wrap:normal;word-break:normal}
html.dev3 .practice-dedication .dedication-content{padding:0 clamp(14px,3vw,28px) 24px}
html.dev3 .practice-dedication .dedication-content>p:not(.dedication-verse){font-size:15px!important;line-height:1.9;text-align:left;padding:14px 0 0;margin:12px 0;border-top:1px solid #c8aa6e33;color:#f4ecdc}
html.dev3 .practice-dedication .dedication-repeat{margin-inline-start:0}
html.dev3 .r4-data-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 30px;min-width:0}
html.dev3 .r4-overview-tile{border-radius:22px;padding:22px;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;background:#efe5d3;color:#775529}
html.dev3 .r4-overview-tile small{font-size:15px;line-height:1.5;font-weight:600}
html.dev3 .r4-overview-tile strong{display:block;font-size:clamp(25px,3vw,38px);font-weight:650;line-height:1.3;overflow-wrap:anywhere}
html.dev3 .r4-overview-tile span{font-size:14px;line-height:1.6}
html.dev3 .r4-overview-days{background:#e6ede2;color:#446044}
html.dev3 .r4-overview-scriptures{background:#e8e8f1;color:#5e5879}
html.dev3 .r4-overview-average{background:#f4e5db;color:#885a3d}
html.dev3 .r4-overview-latest{grid-column:1/-1;background:#fbf7ef;border:1px solid #e3d4b8}
html.dev3 .r4-overview-latest strong{font-size:22px}
html.dev3 .r3-monthly-wallet{box-sizing:border-box;width:100%;max-width:820px;margin-inline:auto!important}
html.dev3 .r3-monthly-wallet>.row{padding:16px!important;gap:16px;justify-content:flex-start;align-items:center;min-width:0}
html.dev3 .r3-monthly-wallet .r3-wallet-copy{flex:0 1 560px;min-width:0;padding-left:52px}
html.dev3 .r3-monthly-wallet .r3-wallet-copy h3{font-size:20px;margin:0 0 6px;overflow-wrap:anywhere}
html.dev3 .r3-monthly-wallet .activity-status-meta{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:7px;align-items:center}
html.dev3 .r3-monthly-wallet>.row>a{flex:none;margin-left:0}
html.dev3 .r4-calendar-title>h3{margin:0 0 8px}
html.dev3 .r4-calendar-date>.huangli-lunar{margin:0 0 14px;overflow-wrap:anywhere}
html.dev3 .r4-calendar-body{min-width:0;overflow-wrap:anywhere}
@media(min-width:761px){html.dev3 #daily-calendar .calendar-grid{align-items:stretch;grid-template-rows:auto auto minmax(0,1fr) auto}
html.dev3 #daily-calendar .calendar-grid>article{display:grid!important;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-self:stretch;min-width:0}
html.dev3 #daily-calendar .calendar-grid>article>.huangli-details{margin-top:18px;align-self:end}
html.dev3 #daily-calendar .calendar-grid>article *{max-width:100%;box-sizing:border-box}
html.dev3 #daily-calendar .r4-calendar-body>p,html.dev3 #daily-calendar .r4-calendar-body span{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:760px){html.dev3 .r4-data-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html.dev3 .r4-overview-tile{padding:18px 14px}html.dev3 .r3-monthly-wallet>.row{flex-wrap:wrap;gap:10px}html.dev3 .r3-monthly-wallet .r3-wallet-copy{flex:1 1 180px}html.dev3 .r3-monthly-wallet>.row>a{margin-left:52px}html.dev3 .practice-dedication .dedication-verse{font-size:18px;line-height:2.2;letter-spacing:0}}
html.dev3 .r3-monthly-wallet .activity-status-meta{flex-direction:row;justify-content:flex-start;align-items:center}
html.dev3 .r3-monthly-wallet .r3-wallet-copy>.activity-status,html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-status{margin:0}
@media(min-width:761px){html.dev3 .r3-monthly-wallet .r3-wallet-copy{flex:0 1 auto;width:auto;max-width:560px}}
html.dev3 .r3-monthly-wallet .activity-end-date{white-space:normal;overflow-wrap:anywhere;font-size:13px}
/* Third batch supersedes only the earlier placement and verse line-break rules. */
html.dev3 #detail-body>.r4-detail-classification{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;min-width:0}
html.dev3 #detail-body>.r4-detail-classification>.eyebrow{margin:0;min-width:0;flex:1;overflow-wrap:anywhere;font-size:13px;letter-spacing:.02em}
html.dev3 #detail-body>.r4-detail-classification>.public-activity-status{flex:none;align-self:center;margin:0!important;min-height:0;padding:4px 9px!important;font-size:12px!important;line-height:1.6!important;white-space:nowrap;gap:5px}
html.dev3 .r4-member-activity-title{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 7px}
html.dev3 .r3-monthly-wallet .r4-member-activity-title>h3{margin:0;min-width:0;overflow-wrap:anywhere}
html.dev3 .r3-monthly-wallet .r4-member-activity-title>.activity-status{margin:0;flex:none;white-space:nowrap;font-size:12px!important;padding:4px 8px!important}
html.dev3 .r4-lifetime-card .r4-data-overview{margin-bottom:0}
html.dev3 .r4-lifetime-recent>strong{display:block;color:#775529;font-size:23px;line-height:1.5;overflow-wrap:anywhere}
html.dev3 .r4-lifetime-recent>p{margin-bottom:0;color:#796b55}
html.dev3 .r4-selected-range{margin:0 0 12px;color:#796b55;line-height:1.7}
html.dev3 .practice-dedication .dedication-verse{font-size:clamp(15px,4vw,21px);line-height:2.3;letter-spacing:0;margin:20px 0 26px;white-space:normal}
html.dev3 .practice-dedication .r4-dedication-pair{display:flex;justify-content:center;align-items:baseline;gap:clamp(8px,2.2vw,16px);white-space:nowrap}
html.dev3 .practice-dedication .r4-dedication-pair>span{white-space:nowrap;letter-spacing:0}
@media(max-width:600px){html.dev3 .r4-member-activity-title{gap:7px}html.dev3 .r3-monthly-wallet .r4-member-activity-title>h3{font-size:18px}html.dev3 .r3-monthly-wallet .r4-member-activity-title>.activity-status{font-size:11px!important}}
/* Batch 4 structural fixes: desktop layout remains independently sized. */
html.dev3 .review-profile .r3-member-identity{flex:1;min-width:0}
html.dev3 .r4-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
html.dev3 .review-profile .r4-profile-heading>.member-profile-name{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
html.dev3 .review-profile .r4-profile-heading>.member-checkin-actions{flex:none;width:auto;margin:0;max-width:100%}
html.dev3 .review-profile .r4-profile-heading .profile-settings{position:static;min-width:44px;min-height:44px;margin:0;white-space:nowrap}
html.dev3 .r4-member-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-width:0}
html.dev3 .r4-member-detail-heading>h2{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
html.dev3 .r4-member-detail-heading>.member-activity-state{flex:none;align-self:center;margin:0!important;white-space:nowrap}
html.dev3 .r4-lamp-decoration{display:inline-block;margin-inline-end:8px;vertical-align:baseline;pointer-events:none}
/* Mobile proportion tuning is component-based, never document zoom or scaling. */
@media(max-width:760px),(max-width:960px) and (max-height:500px) and (pointer:coarse){
 html.dev3 body{font-size:16px;line-height:1.7}
 html.dev3 body>header{height:70px!important;min-height:70px!important;padding-inline:12px!important;gap:8px!important}
 html.dev3 body>header .brand{font-size:clamp(11px,3.4vw,14px)!important;gap:7px!important;min-width:0}
 html.dev3 body>header .seal{width:30px!important;height:30px!important;min-width:30px!important;font-size:21px!important}
 html.dev3 body>header .brand small{font-size:8px!important;letter-spacing:.2px}
 html.dev3 body>header .header-tools{gap:6px!important}
 html.dev3 body>header .header-tools .header-icon,html.dev3 body>header .header-tools .menu-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:10px!important}
 html.dev3 body>header .header-tools svg{width:21px!important;height:21px!important}
 html.dev3 body>header .header-tools .notification-count{min-width:18px;min-height:18px}
 /* Main page h1 uses the unchanged R3 source cascade on phones. */
 html.dev3 .home-v21 main>section h2,html.dev3 .calendar-head h2,html.dev3 .practice-heading h2{font-size:25px!important;line-height:1.45!important;letter-spacing:0!important}
 html.dev3 #app>section.card h2,html.dev3 .home-v21 #cards h3,html.dev3 .temple-grid h3,html.dev3 .navigation-shell h3,html.dev3 .dev3-modal-header h2,html.dev3 .admin-popup-header h2{font-size:20px!important;line-height:1.5!important}
 html.dev3 .review-profile .member-profile-name{font-size:20px!important;line-height:1.5!important;margin:0!important}
 html.dev3 .r4-profile-heading{gap:10px}
 html.dev3 .review-profile .member-profile-header{gap:12px;margin-bottom:18px;align-items:center}
 html.dev3 .review-profile .profile-avatar{width:52px!important;height:52px!important;min-width:52px!important;font-size:25px!important}
 html.dev3 .r3-member-top{margin-bottom:18px}
 html.dev3 .r3-member-top>small{font-size:12px}
 html.dev3 .review-profile .r4-profile-heading .profile-settings{font-size:16px!important;line-height:1.5!important;padding:8px 10px!important;min-height:44px!important}
 html.dev3 .home-v21 #home.hero{padding-inline:20px}
 html.dev3 .home-v21 .section-heading{margin-bottom:24px}
 html.dev3 .home-v21 .section-heading p:not(.eyebrow),html.dev3 .home-v21 .hero .lead,html.dev3 #app>.sub{font-size:16px!important;line-height:1.75!important}
 html.dev3 .home-v21 #daily-calendar{padding:44px 20px}
 html.dev3 .home-v21 .home-about{padding:44px 20px;gap:28px}
 html.dev3 .home-v21 #education{padding-block:44px;gap:28px}
 html.dev3 .home-v21 #cards .card{border-radius:24px;box-shadow:0 9px 20px #8b6b401a}
 html.dev3 .home-v21 #cards .card-content{padding:20px}
 html.dev3 .home-v21 #cards .card-content>p{font-size:16px!important;line-height:1.7}
 html.dev3 .price.r3-price{padding:18px!important;border-radius:19px}
 html.dev3 .price.r3-price .r3-price-amount strong{font-size:40px!important}
 html.dev3 .r3-price .r3-price-label,html.dev3 .r3-price small,html.dev3 .deadline span,html.dev3 .deadline small{font-size:14px!important}
 html.dev3 #app{box-sizing:border-box;width:100%;max-width:100%;padding:22px 16px;margin-inline:auto}
 html.dev3 #app>section.card,html.dev3 body .review-profile{box-sizing:border-box;padding:20px!important;border-radius:22px;margin-top:20px;margin-bottom:20px;box-shadow:0 6px 18px #8b6b400d;min-width:0}
 html.dev3 #app p,html.dev3 #app label{font-size:16px;line-height:1.75}
 html.dev3 #app .hint,html.dev3 #app small,html.dev3 #app .sub,html.dev3 .review-profile .member-profile-details p,html.dev3 .r3-member-identity>p,html.dev3 .r3-monthly-wallet .activity-end-date{font-size:14px!important;line-height:1.7}
 html.dev3 .review-profile .member-profile-details{padding-bottom:18px}
 html.dev3 .review-profile .review-checkin-summary{gap:8px;margin:18px 0}
 html.dev3 .review-profile .review-checkin-summary>div{padding:14px 6px;border-radius:16px}
 html.dev3 .review-profile .review-checkin-summary small{font-size:14px!important}
 html.dev3 .review-profile .review-checkin-summary strong{font-size:23px}
 html.dev3 .r4-data-overview{gap:10px;margin-block:16px 22px}
 html.dev3 .r4-overview-tile{padding:16px 12px;border-radius:18px}
 html.dev3 .r4-overview-tile small,html.dev3 .r4-overview-tile span{font-size:14px!important}
 html.dev3 .r4-overview-tile strong{font-size:27px}
 html.dev3 .r4-lifetime-recent>strong{font-size:20px}
 html.dev3 .r3-practice .milestone-total{padding:20px!important;border-radius:18px}
 html.dev3 .r3-practice .stats-preview{gap:10px}
 html.dev3 .r3-practice .stats-preview>.stat{padding:16px!important;border-radius:18px}
 html.dev3 .r3-monthly-wallet>.row{padding:14px!important;gap:10px;border-radius:18px;margin-block:10px}
 html.dev3 .r3-monthly-wallet .r3-wallet-copy{padding-left:44px;flex-basis:160px}
 html.dev3 .r3-wallet-icon{width:34px;height:38px;border-radius:10px}
 html.dev3 .r3-wallet-icon svg{width:23px;height:23px}
 html.dev3 .r3-monthly-wallet .r4-member-activity-title>h3{font-size:18px}
 html.dev3 .r4-member-activity-title{gap:7px}
 html.dev3 .r3-monthly-wallet .r4-member-activity-title>.activity-status,html.dev3 .r4-member-detail-heading>.member-activity-state{font-size:14px!important;padding:4px 8px!important}
 html.dev3 .r4-member-detail-heading{gap:10px;margin-bottom:16px}
 html.dev3 .r4-member-detail-heading>h2{font-size:20px!important}
 html.dev3 .r3-monthly-wallet>.row>a{margin-left:44px}
 html.dev3 .lamp-history-record{padding:18px!important;border-radius:18px}
 html.dev3 .lamp-history-record h3{font-size:20px}
 html.dev3 .practice{padding-block:44px}
 html.dev3 .practice-heading{margin-bottom:22px}
 html.dev3 .practice .counter-panel{padding:22px;border-radius:18px}
 html.dev3 .practice .counter-panel output{font-size:68px}
 html.dev3 .practice .count-stats{gap:14px}
 html.dev3 .practice .chant-sound-controls{padding:10px 18px;margin-block:20px 28px;border-radius:21px}
 html.dev3 .practice-dedication{margin-block:20px;border-radius:18px}
 html.dev3 .practice-dedication>summary{padding:14px 18px;font-size:18px!important;min-height:48px}
 html.dev3 .practice-dedication .dedication-content{padding:0 12px 20px}
 html.dev3 .practice-dedication .dedication-verse{font-size:clamp(15px,3.9vw,17px);line-height:2.2;margin-block:18px 22px}
 html.dev3 .practice-dedication .r4-dedication-pair{gap:8px}
 html.dev3 .practice-dedication .dedication-content>p:not(.dedication-verse){font-size:14px!important;line-height:1.9}
 html.dev3 .practice .membership-callout{padding:22px 18px;border-radius:18px}
 html.dev3 .practice .membership-callout p,html.dev3 .music-member-hint{font-size:14px!important;line-height:1.75}
 html.dev3 .deity-hero .deity-intro p{font-size:16px}
 html.dev3 .navigation-shell{padding:22px 20px 28px}
 html.dev3 .dev3-account-card{padding:16px 14px;border-radius:21px}
 html.dev3 .dev3-account-copy strong{font-size:18px}
 html.dev3 .dev3-account-copy small{font-size:14px}
 html.dev3 .dev3-setting-label,html.dev3 .dev3-preference-row>span{font-size:16px}
 html.dev3 .dev3-setting-row{min-height:60px;padding-block:10px}
 html.dev3 .dev3-modal-header,html.dev3 .admin-popup-header{min-height:72px;gap:10px;padding:16px 18px}
 html.dev3 .dev3-modal-lotus{width:30px;height:30px}
 html.dev3 .dev3-shared-dialog,html.dev3 #detail,html.dev3 .member-checkin-dialog{max-width:calc(100% - 24px);border-radius:24px}
 html.dev3 dialog input:not([type=checkbox]):not([type=radio]):not([type=range]),html.dev3 dialog select,html.dev3 dialog textarea,html.dev3 #app input:not([type=checkbox]):not([type=radio]):not([type=range]),html.dev3 #app select,html.dev3 #app textarea{font-size:16px!important;min-height:44px;box-sizing:border-box;max-width:100%;min-width:0}
 html.dev3 button:not(.dev3-ios-switch):not(.mala-touch),html.dev3 a.button,html.dev3 a.dev3-glass{min-height:44px;min-width:44px;box-sizing:border-box}
 html.dev3 .dev3-glass{font-size:16px!important;line-height:1.5!important;min-height:48px;padding:10px 18px!important;border-radius:999px!important;box-shadow:inset 0 2px 3px #fff9eac0,inset 0 -1px 2px #9d682b44,0 6px 16px #8f5e2530!important}
 html.dev3 .r4-line-icon{width:20px;height:20px}
 html.dev3 .theme-button-icon{font-size:20px}
 html.dev3 button.dev3-ios-switch::before{content:''!important;display:block!important;position:absolute;inset:-6px 0!important;background:transparent!important;border:0!important;border-radius:999px;pointer-events:auto}
 html.dev3 .motion-label{min-height:44px;display:flex;align-items:center;gap:8px}
 html.dev3 .back{display:inline-flex;align-items:center;min-height:44px}
 html.dev3 footer p,html.dev3 footer small{font-size:14px!important;line-height:1.7}
}
@media(max-width:760px),(max-width:960px) and (max-height:500px) and (pointer:coarse){
 html.dev3 .record-card .record-copy{padding:18px}
 html.dev3 .record-card .record-copy h3{font-size:20px;line-height:1.6;letter-spacing:0;margin-block:8px 14px}
 html.dev3 .record-card .record-copy p{font-size:16px;line-height:1.75}
 html.dev3 .record-card .record-copy small,html.dev3 .record-month{font-size:14px;line-height:1.7}
 html.dev3 .record-card .video-direct{font-size:16px;line-height:1.6;min-height:44px;display:inline-flex;align-items:center}
 html.dev3 dialog p:not(.eyebrow),html.dev3 dialog label{font-size:16px;line-height:1.75}
 html.dev3 dialog small,html.dev3 dialog .hint,html.dev3 #detail-body>.r4-detail-classification>.eyebrow{font-size:14px;line-height:1.7}
 html.dev3 #detail-body>.r4-detail-classification>.public-activity-status{font-size:14px!important}
}

/* Latest confirmed scope: member-home cards only, not member detail headings. */
html.dev3 .r3-monthly-wallet .r4-member-activity-title{flex-direction:column;align-items:flex-start;gap:7px}
@media(min-width:761px) and (max-width:960px) and (max-height:500px) and (pointer:coarse){html.dev3 .home-v21 #home.hero h1,html.dev3 body:not(.home-v21) main h1,html.dev3 #app>h1{font-size:26px!important;line-height:1.35!important;letter-spacing:0!important} html.dev3 .section-heading h2{font-size:25px!important;line-height:1.45!important;letter-spacing:0!important}}

/* Confirmed member-card metadata: equal badge geometry and separate date. */
html.dev3 .r3-monthly-wallet .activity-status-meta{flex-direction:column;align-items:flex-start;gap:7px}
html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-status{font-size:12px!important;padding:4px 8px!important;line-height:inherit}
html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-end-date{display:block;width:100%;white-space:normal;overflow-wrap:anywhere}
html.dev3 .dev3-menu-title{display:flex;align-items:center;gap:12px}
html.dev3 .dev3-menu-title>.dev3-menu-lotus{display:block;position:static;width:32px;height:32px;margin:0;opacity:1;flex:none}
html.dev3 .r3-practice>.actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}
html.dev3 .r3-practice>.actions>a{box-sizing:border-box;width:100%;min-width:0!important;max-width:100%;height:auto;min-height:48px;white-space:normal!important;overflow-wrap:anywhere;text-align:center;justify-content:center;line-height:1.45;padding:10px 12px!important}
@media(max-width:760px),(max-width:960px) and (max-height:500px) and (pointer:coarse){
 html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-status{font-size:14px!important}
 html.dev3 .r3-practice>.actions{gap:8px}
 html.dev3 .r3-practice>.actions>a{font-size:16px!important;padding:10px 8px!important;gap:6px}
 html.dev3 .r3-practice>.actions>a .theme-button-icon{width:18px;height:18px;min-width:18px;flex:none}
}
@media(max-width:380px){html.dev3 .r3-practice>.actions>a{font-size:14px!important}}

html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-status{white-space:nowrap;flex:none;max-width:100%}

html.dev3 .r3-monthly-wallet .activity-status-meta>.activity-status,html.dev3 .r3-monthly-wallet .r4-member-activity-title>.activity-status{line-height:1.5}

/* Fortune content keeps its own renderer; header uses the shared ivory shell and outline close. */
html.dev3 .fortune-dialog:has(>.dev3-modal-header){padding:0!important}
html.dev3 .fortune-dialog>.dev3-modal-header+div{padding:24px}
html.dev3 .fortune-dialog>.dev3-modal-header>.modal-close{background:#fff8ed!important;color:#88622f!important;border:1px solid #d8b47a!important;box-shadow:none!important}

/* Scoped lamp keyboard viewport protection. No page zoom/transform or scroll locking. */
html.dev3 .lamp-dedication-dialog.lamp-keyboard-active{position:fixed;top:calc(var(--lamp-viewport-top,0px) + 12px)!important;bottom:auto!important;margin:0 auto!important;max-height:calc(var(--lamp-viewport-height,100dvh) - 24px)!important;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:20px}
html.dev3 .lamp-dedication-dialog :is(input,textarea,select){font-size:16px!important;scroll-margin-block:20px}
/* Original decorative vector symbols, enlarged as one consistent family. */
html.dev3 .r3-monthly-wallet .r3-wallet-icon{width:52px;height:52px;min-width:52px;border-radius:15px;flex:none}
html.dev3 .r3-monthly-wallet .r3-wallet-icon svg{width:32px;height:32px}

html.dev3 .r3-monthly-wallet .r3-wallet-copy{padding-left:64px}
@media(max-width:760px){html.dev3 .r3-monthly-wallet>.row>a{margin-left:64px}}

/* User-confirmed plain member activity cards: no decorative icon or reserved gutter. */
html.dev3 .r3-monthly-wallet .r3-wallet-copy{padding-left:0}
@media(max-width:760px){html.dev3 .r3-monthly-wallet>.row>a{margin-left:0}}

/* Public activity detail only: registration state belongs beside the period label. */
html.dev3 #detail-body .deadline>div{flex:1;min-width:0}
html.dev3 #detail-body .r4-activity-period-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
html.dev3 #detail-body .r4-activity-period-heading>.public-activity-status{flex:none;margin:0!important;white-space:nowrap}

/* Confirmed footer typography; contact line and main brand remain unchanged. */
html.dev3 body>footer>small,html.dev3 body>footer>.copyright{font-size:11px!important}
html.dev3 body>footer>.brand>small{font-size:13px!important}
/* One size step (+2px) for homepage topic titles only; original breakpoints preserved. */
html.dev3 .home-v21 .home-topic .topic-heading h2{font-size:calc(clamp(30px,3.2vw,43px) + 2px)!important}
html.dev3 .home-v21 .home-topic .topic-heading h2 span{font-size:calc(clamp(22px,2.5vw,32px) + 2px)!important}
@media(max-width:800px){html.dev3 .home-v21 .home-topic .topic-heading h2{font-size:33px!important}}
@media(max-width:760px),(max-width:960px) and (max-height:500px) and (pointer:coarse){html.dev3 .home-v21 .home-topic .topic-heading h2{font-size:27px!important}}
@media(max-width:600px){html.dev3 .home-v21 .home-topic .topic-heading h2 span{font-size:25px!important}}

/* User-requested calendar helper size; only the two existing helper lines. */
html.dev3 #daily-calendar>.calendar-swipe-hint,html.dev3 #daily-calendar>p.hint{font-size:10px!important}
/* Compact mobile activity inclusions without changing desktop or other modal text. */
@media(max-width:760px){
 html.dev3 #detail-body>ul{gap:8px;margin-block:12px 16px}
 html.dev3 #detail-body>ul>li{margin:0!important;padding:12px 14px;line-height:1.55}
 html.dev3 #detail-body>ul>li::before{margin-bottom:6px}
}

/* Monthly member detail: one full-width centered status directly below its poster. */
html.dev3 .r4-member-activity-about .member-activity-media>.member-activity-state{display:flex!important;box-sizing:border-box;width:100%!important;max-width:100%;margin:0!important;padding:8px 12px!important;justify-content:center;text-align:center;border-radius:0!important}
/* Footer contact line only; preserve the 11px note/copyright and 13px author label. */
html.dev3 body>footer>p:not(.copyright){font-size:13px!important}

/* R4 consolidated REV-01..15. Earlier unrelated R4 decisions remain in force. */
/* REV-01 uses the unchanged R3 h1 cascade; REV-07 only the peer homepage topic headings. */
@media(max-width:760px){html.dev3 .home-v21 .home-topic .topic-heading h2{font-size:30px!important}}
/* REV-11: only the Chinese/main brand line, not the subtitle or Admin. */
html.dev3 body:not(.admin):not(.dev3-admin)>header>a.brand>span:nth-of-type(2){font-weight:400;letter-spacing:.5px}
/* REV-06 */
html.dev3 .dev3-charity-enquiry-note{font-size:13px!important;text-align:center}
/* REV-08: no fixed hero height. */
html.dev3 main#content>.temple-intro{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;box-sizing:border-box;padding:44px 24px;min-height:0;height:auto}
html.dev3 main#content>.temple-intro>*{margin:0;max-width:100%}
@media(max-width:1023px){html.dev3 main#content>.temple-intro{padding-block:36px}}
@media(max-width:767px){html.dev3 main#content>.temple-intro{padding-block:28px}}
html.dev3 .temple-suggestions>p{text-align:center}
/* REV-09 and REV-13: presentation only, original synchronisation logic untouched. */
html.dev3 p#storage-note{font-size:10px!important;text-align:center;white-space:normal;overflow-wrap:anywhere}
html.dev3 details.practice-dedication>.dedication-content>p:nth-of-type(2),html.dev3 details.practice-dedication>.dedication-content>p:nth-of-type(3){text-align:center}
/* REV-10: one outer gutter, 1200px maximum usable desktop content, no overflow masking. */
html.dev3 body.dev3-member{overflow-x:visible;--r4-page-gutter:32px;--r4-card-padding:24px}
html.dev3 body.dev3-member>main{box-sizing:border-box;width:100%;max-width:1264px;margin-inline:auto;padding:36px var(--r4-page-gutter) 70px}
html.dev3 body.dev3-member main #app{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0}
html.dev3 body.dev3-member main #app>.card,html.dev3 body.dev3-member main .member-two-col>.card{box-sizing:border-box;min-width:0;max-width:100%;padding:var(--r4-card-padding)!important}
html.dev3 body.dev3-member .r3-monthly-wallet{max-width:none;margin-inline:0}
html.dev3 body.dev3-member .r3-monthly-wallet>.row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}
html.dev3 body.dev3-member .r3-monthly-wallet .r3-wallet-copy{width:auto;max-width:none;min-width:0}
html.dev3 body.dev3-member .r3-monthly-wallet>.row>a{justify-self:end;margin-left:0!important;max-width:100%}
@media(max-width:1023px){html.dev3 body.dev3-member{--r4-page-gutter:24px;--r4-card-padding:24px}}
@media(max-width:767px){html.dev3 body.dev3-member{--r4-page-gutter:20px;--r4-card-padding:20px}}
@media(max-width:599px){html.dev3 body.dev3-member{--r4-page-gutter:16px;--r4-card-padding:16px}}
@media(max-width:374px){html.dev3 body.dev3-member{--r4-page-gutter:12px;--r4-card-padding:14px}html.dev3 body.dev3-member .r3-monthly-wallet>.row{grid-template-columns:minmax(0,1fr)}}
/* REV-07 peer homepage headings; REV-14 explicitly preserves the external calendar title. */
@media(max-width:760px){html.dev3 .home-v21 main>section:not(#daily-calendar) h2{font-size:30px!important}}

/* Final REV-14 R3: both real calendars use the same information hierarchy.
   Subgrid keeps collapsed rows aligned; expanded source content remains intrinsic. */
html.dev3 #daily-calendar .calendar-grid{align-items:stretch}
html.dev3 #daily-calendar .calendar-grid>article.calendar-note{display:grid!important;grid-template-rows:auto auto 1fr auto;gap:0;box-sizing:border-box;align-self:stretch;height:auto;min-height:0;padding:24px;border:1px solid #e8dcc6;border-radius:24px;background:linear-gradient(145deg,#fffdf6e8,#f7f0e5e8);box-shadow:0 10px 26px #6b512318;overflow-wrap:anywhere}
html.dev3 #daily-calendar .calendar-note .r4-calendar-title{margin:0 0 10px}
html.dev3 #daily-calendar .calendar-note h3{font-size:23px!important;font-weight:600;line-height:1.45;letter-spacing:0;margin:0}
html.dev3 #daily-calendar .calendar-note .huangli-lunar{font-size:16px!important;font-weight:500;line-height:1.65;margin:0 0 16px;min-height:0}
html.dev3 #daily-calendar .calendar-note .sample-tag,html.dev3 #daily-calendar .calendar-note .huangli-source-note{font-size:13px!important;font-weight:400;line-height:1.65}
html.dev3 #daily-calendar .calendar-note .sample-tag{display:inline-block;padding:0;margin:0 0 12px;background:transparent}
html.dev3 #daily-calendar .calendar-note .huangli-day-status{font-size:13px!important;line-height:1.6;gap:8px;margin:0 0 14px;min-height:0}
html.dev3 #daily-calendar .calendar-note .huangli-day-status>span{font-size:13px!important;font-weight:500;line-height:1.6}
html.dev3 #daily-calendar .calendar-note .huangli-list{font-size:16px!important;font-weight:400;line-height:1.75;gap:10px;margin:0 0 10px;min-height:0;align-items:flex-start}
html.dev3 #daily-calendar .calendar-note .huangli-list>b{font-size:16px!important;font-weight:600;line-height:28px;flex:0 0 auto;width:auto;min-width:28px;height:auto;min-height:28px;padding:0 6px;white-space:nowrap;margin:0}
html.dev3 #daily-calendar .calendar-note .huangli-list>span{font-size:16px!important;font-weight:400;line-height:1.75}
html.dev3 #daily-calendar .calendar-note :is(.huangli-chong,.huangli-term,.tibetan-neutral,.tibetan-day-note,.huangli-ganzhi){font-size:12px!important;font-weight:400;line-height:1.75;margin:10px 0 0}
html.dev3 #daily-calendar .calendar-note>.huangli-details{margin:16px 0 0;padding:0;border-top:1px solid #deccaa;align-self:end}
html.dev3 #daily-calendar .calendar-note .huangli-details>summary{box-sizing:border-box;font-size:12px!important;font-weight:500;line-height:1.6;min-height:44px;padding:12px 0;margin:0}
html.dev3 #daily-calendar .calendar-note .huangli-details>p:not(.huangli-source-note):not(.huangli-ganzhi){font-size:16px!important;line-height:1.75}
html.dev3 #daily-calendar .calendar-note .huangli-details a{font-size:13px!important;line-height:1.65}
@media(min-width:761px){html.dev3 #daily-calendar .calendar-grid{grid-template-rows:auto auto minmax(0,1fr) auto}html.dev3 #daily-calendar .calendar-grid>article.calendar-note{grid-row:span 4;grid-template-rows:subgrid}}
@media(max-width:650px){html.dev3 #daily-calendar .calendar-grid>article.calendar-note{padding:20px}}
@media(max-width:360px){html.dev3 #daily-calendar .calendar-grid>article.calendar-note{padding:18px 16px}}
/* REV-15 B: one pale-background Champagne button; no change to other glass. */
html.dev3 #member-rail>.membership-main>a.button.dev3-glass{box-sizing:border-box;height:48px;min-height:48px!important;padding:10px 24px!important;gap:8px;background:linear-gradient(155deg,#ffffff80,#f4dda28c 48%,#d5b77580)!important;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);color:#493e2b!important;font-size:16px!important;font-weight:500!important;line-height:1.5!important;text-shadow:none!important;border:1px solid #ffffffb8!important;border-radius:999px!important;box-shadow:inset 0 0 0 1px #d5b77570,inset 0 2px 2px #ffffffb3,0 5px 14px #80612d24!important}
html.dev3 #member-rail>.membership-main>a.button.dev3-glass *{font-weight:500!important;text-shadow:none!important;filter:none}
html.dev3 #member-rail>.membership-main>a.button.dev3-glass>.r4-account-person{display:block;width:21px;height:21px;flex:none}
/* REV-16 R2: only the two named dark-background Amber buttons. */
html.dev3 body.home-v21 :is(section#home.hero>.hero-copy>.actions>a.button.dev3-glass,button#light-lamp){background:linear-gradient(155deg,#fff4c899,#f7d57ccc 34%,#dbad48b8 70%,#f5d48ab3)!important;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);color:#35270f!important;font-size:16px!important;font-weight:500!important;line-height:1.5!important;text-shadow:none!important;border:1px solid #fff4c8bd!important;border-radius:999px!important;box-shadow:inset 0 0 0 1px #f7d57c99,inset 0 2px 3px #fff9e0c2,0 7px 20px #d9aa4840!important}
html.dev3 body.home-v21 :is(section#home.hero>.hero-copy>.actions>a.button.dev3-glass,button#light-lamp) *{color:inherit!important;font-weight:500!important;text-shadow:none!important}
html.dev3 body.home-v21 :is(section#home.hero>.hero-copy>.actions>a.button.dev3-glass,button#light-lamp)::before{background:linear-gradient(180deg,#fffbe5b8,#fff4c820)!important}
/* Unsupported filter fallback: readable opaque tints; geometry/actions unchanged. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 html.dev3 #member-rail>.membership-main>a.button.dev3-glass{background:linear-gradient(155deg,#fffaf0,#f4dda2,#dfc58c)!important}
 html.dev3 body.home-v21 :is(section#home.hero>.hero-copy>.actions>a.button.dev3-glass,button#light-lamp){background:linear-gradient(155deg,#fff4c8,#f7d57c,#dbad48,#f5d48a)!important}
}

/* R4 REV19: peer homepage topic headings only. Calendar, cards, modals and H1 are excluded. */
html.dev3 body.home-v21 .home-topic>.topic-heading h2{font-size:30px!important}
html.dev3 body.home-v21 .home-topic>.topic-heading h2 span{font-size:22px!important}
/* R4 REV21/22 R2: original carousel widths and scroll controls; shared intrinsic rows.
   Description row stretches to the longest real content; no fake text or fixed card height. */
html.dev3 body.home-v21 #cards{display:grid!important;grid-auto-flow:column;grid-auto-columns:min(340px,80vw);grid-template-columns:none!important;grid-template-rows:repeat(6,auto);row-gap:0;align-items:stretch}
html.dev3 body.home-v21 #cards>article.card{display:grid!important;grid-row:span 6;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;row-gap:0;min-width:0;width:auto;max-width:none;min-height:0;height:auto;margin:0!important}
html.dev3 body.home-v21 #cards>article.card>.poster-button{grid-column:1;grid-row:1;align-self:start;min-width:0;flex:none}
html.dev3 body.home-v21 #cards>article.card>.card-content{display:grid!important;grid-column:1;grid-row:2 / span 5;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;row-gap:0;column-gap:0;padding:24px!important;min-width:0}
html.dev3 body.home-v21 #cards .card-content>.card-kicker{margin:0 0 16px}
html.dev3 body.home-v21 #cards .card-content>.r4-activity-title{margin:0 0 20px!important}
html.dev3 body.home-v21 #cards .card-content>p{display:flex;flex-direction:column;gap:10px;margin:0 0 24px!important;line-height:1.25!important;min-height:0;align-self:stretch}
html.dev3 body.home-v21 #cards .card-content>p>.r3-activity-item{display:block;margin:0!important;line-height:1.25!important;min-width:0;overflow-wrap:anywhere}
html.dev3 body.home-v21 #cards .card-content>.price{margin:0 0 30px!important;align-self:stretch;min-width:0}
html.dev3 body.home-v21 #cards .r3-price-amount{min-width:0}
html.dev3 body.home-v21 #cards .r3-price-amount>strong{min-width:0;max-width:100%;overflow-wrap:anywhere}
html.dev3 body.home-v21 #cards .card-content>.detail-button{box-sizing:border-box;width:100%;max-width:100%;min-width:0!important;margin:0!important;align-self:stretch}
@supports not (grid-template-rows:subgrid){
 html.dev3 body.home-v21 #cards{display:flex!important}
 html.dev3 body.home-v21 #cards>article.card{display:flex!important;flex:0 0 min(340px,80vw);flex-direction:column}
 html.dev3 body.home-v21 #cards>article.card>.card-content{display:flex!important;flex:1;flex-direction:column}
 html.dev3 body.home-v21 #cards .card-content>p{flex:1}
}

html.dev3 body.home-v21 #cards .card-content>*{grid-column:1!important;grid-row:auto!important}

/* Observed login/register country selects were15px on mobile. Keep native input focus >=16px. */
@media(max-width:760px){html.dev3 #login-country,html.dev3 #register-country{font-size:16px!important}}

/* source: ui-r5.css */
/* R5 DS 2.0 — viewport adaptive presentation; approved R4 exceptions remain scoped. */
html.dev3.r5{--r5-paper:#f7f3e9;--r5-forest:#33372e;--r5-gold:#dcc38b;--r5-amber:#f5d48a;--r5-space:16px;--r5-pad:20px;--r5-radius:24px;--r5-gutter:16px;--r5-header:64px;--r5-card-title:20px;--r5-body:15px;--r5-page-title:32px;--r5-section:30px;--r5-subtitle:22px}
html.dev3.r5 body{background-color:var(--r5-paper);font-size:var(--r5-body)}
html.dev3.r5 *,html.dev3.r5 *::before,html.dev3.r5 *::after{box-sizing:border-box}
html.dev3.r5 :focus-visible{outline:3px solid #796033;outline-offset:4px}
html.dev3.r5 body>header{height:var(--r5-header)!important;min-height:var(--r5-header)!important;padding:8px var(--r5-gutter)!important;background:#f7f3e9f2!important;gap:12px}
html.dev3.r5 body>header>.brand{min-width:0;flex:0 1 auto}
html.dev3.r5 body>header>.brand>span:nth-of-type(2){font-weight:400;letter-spacing:.5px;min-width:0}
html.dev3.r5 body>header .header-tools{margin-left:auto;flex:none;gap:8px}
html.dev3.r5 body>header :is(.header-icon,.menu-toggle,.notification-icon){min-width:44px;min-height:44px}
html.dev3.r5 body>footer{background:#33372e!important}
html.dev3.r5 .navigation-overlay{inset:0 0 0 auto!important;width:85vw!important;max-width:440px!important;height:100dvh!important;max-height:100dvh!important;border-radius:var(--r5-radius) 0 0 var(--r5-radius);overscroll-behavior:contain}
html.dev3.r5 .navigation-shell{padding:24px 20px 32px;gap:0}
html.dev3.r5 .navigation-close{position:sticky;top:12px;align-self:flex-end;z-index:4;min-width:44px;min-height:44px}
html.dev3.r5 .dev3-menu-title{margin:0 54px 20px 0;font-size:24px}
html.dev3.r5 .dev3-account-card{background:linear-gradient(135deg,#fffaf0e8,#efd8a866);border:1px solid #dcc38b;margin-bottom:18px;border-radius:20px}
html.dev3.r5 .navigation-shell #main-menu a{min-height:48px}
html.dev3.r5 .navigation-shell #main-menu a[aria-current="page"]{background:#f0dfbd;border-radius:12px}
/* Header navigation is cloned from existing links only; the drawer keeps its original nodes/events. */
html.dev3.r5 .r5-desktop-nav{display:none}
html.dev3.r5 :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px!important;line-height:1.5;min-height:48px;border-radius:12px;background-color:#f7f4ed;border-color:#ddd4c2;max-width:100%}
html.dev3.r5 :is(input,textarea,select):focus-visible{outline:2px solid #94703b;outline-offset:2px}
html.dev3.r5 textarea{height:auto;min-height:112px;resize:vertical}
html.dev3.r5 label{line-height:1.6}
/* Filter-free modal ancestors and inputs retain native caret/IME geometry. */
html.dev3.r5 dialog[open]{overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate}
html.dev3.r5 dialog.r5-dialog{position:fixed!important;transform:none!important;scale:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;width:min(94vw,760px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(var(--r5-vvh,100dvh) * .92)!important;margin:auto!important;border-radius:var(--r5-radius);padding:0!important;overflow-y:auto!important;overflow-x:visible;scroll-padding-top:84px}
html.dev3.r5 dialog.r5-dialog>.dev3-modal-header,html.dev3.r5 dialog.r5-dialog>.admin-popup-header{position:sticky!important;top:0!important;z-index:5;display:flex;align-items:center;background:#fbf6ec!important;border-bottom:1px solid #e6d6b8;min-height:76px;margin:0!important;padding:16px 20px!important;gap:12px;border-radius:var(--r5-radius) var(--r5-radius) 0 0;transform:none!important;filter:none!important;backdrop-filter:none!important}
html.dev3.r5 dialog.r5-dialog>:not(.dev3-modal-header):not(.admin-popup-header):not(button):not(style):not(script){margin-left:var(--r5-pad);margin-right:var(--r5-pad)}
html.dev3.r5 dialog.r5-dialog>.dev3-modal-header>*{min-width:0}
html.dev3.r5 dialog.r5-dialog>.dev3-modal-header>h2,html.dev3.r5 dialog.r5-dialog>.admin-popup-header h2{font-size:20px!important;margin:0!important;line-height:1.4;flex:1;color:#4e321d}
html.dev3.r5 dialog.r5-dialog .dev3-modal-lotus{width:34px;height:34px;flex:none}
html.dev3.r5 dialog.r5-dialog :is(.modal-close,.close,.header-inbox-close,.admin-popup-close,.lamp-dialog-close){min-width:44px;min-height:44px;width:44px;height:44px;flex:none;border-radius:50%;background:#fff8ed!important;color:#704d26!important;border:1px solid #d8b47a!important;box-shadow:none!important}
html.dev3.r5 dialog.r5-dialog :is(input,textarea,select){transform:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;font-size:16px!important;scroll-margin:92px 0 24px;caret-color:auto}
html.dev3.r5 dialog.r5-dialog form{margin-block:20px 24px;min-width:0}
html.dev3.r5 dialog.r5-dialog .lamp-form-body{padding:0!important}
html.dev3.r5 dialog.r5-dialog.lamp-keyboard-active{top:var(--r5-vvtop,0px)!important;bottom:auto!important;max-height:calc(var(--r5-vvh,100dvh) - 16px)!important}
html.dev3.r5 .r5-scroll-locked{overscroll-behavior:none}
/* Common liquid glass retains three approved R4 material exceptions and dedicated controls. */
html.dev3.r5 :is(a.button,button.dev3-glass):not(.dev3-ios-switch):not(.push-toggle){border-radius:999px;min-height:44px;transition:box-shadow .2s,background-color .2s,transform .2s}
html.dev3.r5 :is(a.button,button.dev3-glass):not(:disabled):active{transform:translateY(2px) scale(.98)}
html.dev3.r5 :is(a.button,button.dev3-glass):disabled{cursor:not-allowed}
/* Public page rhythm; no shared h1/h2 override of R4 mobile title exceptions. */
html.dev3.r5 .home-v21{--home-pad:var(--r5-gutter)}
html.dev3.r5 .home-v21 .home-topic{padding-inline:var(--r5-gutter);margin-block:48px}
html.dev3.r5 .home-v21 .home-topic>.topic-heading h2{font-size:30px!important}
html.dev3.r5 .home-v21 .home-topic>.topic-heading h2 span{font-size:22px!important}
html.dev3.r5 .home-v21 #home.hero{min-height:0;padding:48px var(--r5-gutter);align-items:center}
html.dev3.r5 .home-v21 #home h1{font-size:36px;line-height:1.35}
html.dev3.r5 .home-v21 .hero-copy{min-width:0}
html.dev3.r5 .home-v21 #daily-calendar{padding-inline:var(--r5-gutter)}
html.dev3.r5 #daily-calendar .calendar-grid{gap:var(--r5-space)}
html.dev3.r5 #daily-calendar .calendar-grid>article.calendar-note{border-radius:var(--r5-radius);padding:var(--r5-pad)}
html.dev3.r5 .home-v21 #cards{column-gap:var(--r5-space)}
html.dev3.r5 .home-v21 #cards>article.card{border-radius:var(--r5-radius);box-shadow:0 10px 26px #6d512314}
html.dev3.r5 .home-v21 #cards .card-content{padding:24px!important}
html.dev3.r5 .home-v21 .member-rail .membership-tile{border-radius:var(--r5-radius)}
html.dev3.r5 .home-v21 .home-about{padding:48px var(--r5-gutter)}
html.dev3.r5 .home-v21 .home-about .portrait img{object-fit:contain}
html.dev3.r5 body.r5-about main{max-width:1120px;margin:auto}
html.dev3.r5 body.r5-about .about.section{gap:24px;padding:40px var(--r5-gutter)}
html.dev3.r5 body.r5-about .portrait img{height:auto;object-fit:contain;max-width:100%}
html.dev3.r5 body.r5-records .record-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--r5-space);width:100%;max-width:1280px;margin-inline:auto;overflow:visible}
html.dev3.r5 .record-gallery .record-card{min-width:0;width:auto;border-radius:var(--r5-radius)}
html.dev3.r5 .record-gallery .record-media{aspect-ratio:16/9;display:grid;place-items:center;background:#101713}
html.dev3.r5 .record-gallery video{width:100%;height:100%;object-fit:contain}
html.dev3.r5 .record-gallery .record-copy{padding:var(--r5-pad)}
html.dev3.r5 .r5-watch{display:flex;justify-content:center;align-items:center;width:100%;gap:8px;min-height:44px;border-radius:999px;background:linear-gradient(155deg,#fff7ddad,#f2d28ca8,#d4b275b3);color:#493719;border:1px solid #e6cb91;box-shadow:inset 0 1px 1px #fff,0 5px 14px #75582422;backdrop-filter:blur(18px);font-size:16px;text-decoration:none;padding:10px 16px}
html.dev3.r5 .temple-intro{background-image:radial-gradient(ellipse at bottom,#e8ddbd,transparent 65%);border-bottom:1px solid #e3d6bd}
html.dev3.r5 .deity-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--r5-space)!important;max-width:1280px;margin-inline:auto;padding:24px var(--r5-gutter)}
html.dev3.r5 .deity-grid>*{min-width:0;border-radius:var(--r5-radius);overflow:clip}
html.dev3.r5 .deity-grid img{width:100%;height:auto;object-fit:contain}
html.dev3.r5 .deity-grid :is(h2,h3){overflow-wrap:anywhere}
html.dev3.r5 .deity-grid .button{max-width:100%;white-space:normal}
/* Practice uses original image node in a responsive scene; original counter DOM stays intact. */
html.dev3.r5 .practice .mala-touch{max-width:100%;touch-action:none}
html.dev3.r5 .practice .chant-sound-controls,html.dev3.r5 .practice .practice-dedication{max-width:640px;width:100%}
html.dev3.r5 .practice .membership-callout{max-width:100%}
html.dev3.r5 .practice .actions{flex-wrap:wrap}
html.dev3.r5 body.r5-auth .dev3-auth-section{width:100%;max-width:520px;margin:32px auto 48px;padding:24px}
html.dev3.r5 body.r5-auth main{padding-inline:16px}
html.dev3.r5 body.r5-auth .dev3-auth-section :is(input,select){min-height:48px}
html.dev3.r5 body.r5-auth .dev3-auth-section .button,html.dev3.r5 body.r5-auth button[type=submit]{width:100%}
html.dev3.r5 body.r5-auth .dev3-auth-section .password-visibility{width:44px;min-height:44px}
/* Member gutters remain the exact R4 exception, while card arrangement is adaptive. */
html.dev3.r5 body.dev3-member #app{--r5-gap:16px}
html.dev3.r5 body.dev3-member #app>section.card{border-radius:var(--r5-radius);box-shadow:0 8px 24px #6b512311}
html.dev3.r5 body.dev3-member[data-dev3-route=home] #app{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--r5-gap)}
html.dev3.r5 body.dev3-member[data-dev3-route=home] #app>p,html.dev3.r5 body.dev3-member[data-dev3-route=home] #app>h1{margin:0}
html.dev3.r5 body.dev3-member[data-dev3-route=home] #app>section.card{margin:0}
html.dev3.r5 body.dev3-member .review-profile{background:linear-gradient(135deg,#fff9ecd9,#f1dfb9b8);border:1px solid #d9bd7c}
html.dev3.r5 body.dev3-member .r3-monthly-wallet .r3-wallet-copy{padding-left:0!important}
html.dev3.r5 body.dev3-member .r3-wallet-icon{display:none!important}
html.dev3.r5 body.dev3-member .r3-monthly-wallet .r4-member-activity-title{flex-direction:column;align-items:flex-start}
html.dev3.r5 body.dev3-member .r3-monthly-wallet .activity-status-meta{flex-direction:column;align-items:flex-start}
html.dev3.r5 body.dev3-member .r3-monthly-wallet>.row{margin-bottom:12px;border-radius:16px}
html.dev3.r5 .r5-bento-invite{background:#e8ecf3!important}
html.dev3.r5 .r5-bento-lamps{background:#f5e8dd!important}
html.dev3.r5 .r5-points-card{background:linear-gradient(130deg,#fff8e5,#f3e7cd)!important}
html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--r5-space)}
html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app>.card{margin:0}
html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app>:not(.card){grid-column:1/-1}
html.dev3.r5 body.dev3-member[data-dev3-route=invite] #app>.card{max-width:640px;margin-inline:auto}
html.dev3.r5 .dev3-invite-qr{width:180px;height:180px;max-width:100%;padding:12px;background:#fff;object-fit:contain}
html.dev3.r5 body.dev3-member[data-dev3-route=lamps] #app{padding:24px!important;border-radius:var(--r5-radius);background:#33372e;color:#fff8e9}
html.dev3.r5 body.dev3-member[data-dev3-route=lamps] #app>h1{color:#fff8e9}
html.dev3.r5 body.dev3-member[data-dev3-route=lamps] #app>.back{color:#f5d48a}
html.dev3.r5 .lamp-history-record{margin-bottom:16px!important;border-radius:20px}
html.dev3.r5 .r5-history-timeline>.data-row{border-left:2px solid #d6bd80;padding-left:20px;margin-left:8px;position:relative}
html.dev3.r5 .r5-history-timeline>.data-row::before{content:'';position:absolute;left:-6px;top:26px;width:10px;height:10px;border-radius:50%;background:#b38a3e}
html.dev3.r5 .r5-record-bar{height:7px;background:#eee7d8;border-radius:10px;margin:8px 0 12px;overflow:hidden}
html.dev3.r5 .r5-record-bar>span{display:block;height:100%;width:var(--r5-value);background:linear-gradient(90deg,#dcc38b,#ac843c);border-radius:inherit}
@media(min-width:768px){html.dev3.r5{--r5-space:20px;--r5-pad:24px;--r5-radius:28px;--r5-gutter:32px;--r5-header:72px;--r5-card-title:22px;--r5-body:16px;--r5-page-title:38px;--r5-section:34px;--r5-subtitle:24px}
 html.dev3.r5 .navigation-overlay{width:360px!important}
 html.dev3.r5 .home-v21 #home h1{font-size:44px}
 html.dev3.r5 .home-v21 .home-topic{margin-block:64px}
 html.dev3.r5 .home-v21 #cards{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:auto!important;grid-template-rows:none!important;gap:24px 20px;overflow:visible}
 html.dev3.r5 .home-v21 #cards>article.card{display:flex!important;flex-direction:column;grid-row:auto!important;grid-column:auto!important}
 html.dev3.r5 .home-v21 #cards>article.card>.card-content{display:flex!important;flex:1;flex-direction:column;grid-row:auto!important}
 html.dev3.r5 .home-v21 #cards .card-content>p{flex:1}
 html.dev3.r5 .home-v21 #cards+.topic-controls{display:none}
 html.dev3.r5 body.r5-records .record-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.dev3.r5 .home-v21 .member-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 html.dev3.r5 .home-v21 .member-rail>.membership-tile{width:auto;min-width:0;max-width:none}
 html.dev3.r5 .home-v21 .member-rail>.membership-main{grid-row:span 2}
 html.dev3.r5 .home-v21 .member-rail+.topic-controls{display:none}
 html.dev3.r5 .deity-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html.dev3.r5 .navigation-shell{padding:24px}
 html.dev3.r5 dialog.r5-dialog{width:640px!important;max-height:calc(var(--r5-vvh,100dvh) * .88)!important}
 html.dev3.r5 dialog.r5-dialog :is(.dev3-modal-header,.admin-popup-header) h2{font-size:22px!important}
 html.dev3.r5 body.r5-about .about.section{grid-template-columns:2fr 3fr;gap:32px}
 html.dev3.r5 body.r5-auth .dev3-auth-section{max-width:480px;padding:32px}
 html.dev3.r5 .dev3-invite-qr{width:220px;height:220px}
 html.dev3.r5 body.dev3-member[data-dev3-route=home] #app{grid-template-columns:repeat(2,minmax(0,1fr));--r5-gap:20px}
 html.dev3.r5 body.dev3-member[data-dev3-route=home] #app>:not(.review-profile):not(.r3-practice):not(.r5-bento-invite):not(.r5-bento-lamps){grid-column:1/-1}
 html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app>.card{min-width:0}
}
@media(min-width:1024px){html.dev3.r5{--r5-space:24px;--r5-pad:28px;--r5-radius:32px;--r5-gutter:48px;--r5-header:80px;--r5-card-title:24px;--r5-page-title:44px;--r5-section:40px;--r5-subtitle:28px}
 html.dev3.r5 .navigation-overlay{width:320px!important}
 html.dev3.r5 body>header{padding-inline:max(32px,calc((100vw - 1280px)/2))!important}
 html.dev3.r5 .home-v21{--home-pad:max(48px,calc((100vw - 1280px)/2))}
 html.dev3.r5 .home-v21 .home-topic,html.dev3.r5 .home-v21 #daily-calendar{padding-inline:var(--home-pad)}
 html.dev3.r5 .home-v21 #home.hero{padding:64px var(--home-pad)}
 html.dev3.r5 .home-v21 #home h1{font-size:56px}
 html.dev3.r5 .home-v21 #cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px}
 html.dev3.r5 .deity-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html.dev3.r5 dialog.r5-dialog{width:760px!important;max-height:calc(var(--r5-vvh,100dvh) * .85)!important}
 html.dev3.r5 dialog.r5-dialog :is(.dev3-modal-header,.admin-popup-header) h2{font-size:24px!important}
 html.dev3.r5 body.r5-auth .dev3-auth-section{max-width:520px;padding:40px}
 html.dev3.r5 body.r5-about .about.section{gap:48px}
 html.dev3.r5 .dev3-invite-qr{width:240px;height:240px}
 html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app{max-width:1120px;margin:auto}
}
@media(min-width:1280px){html.dev3.r5 .r5-desktop-nav{display:flex;gap:24px;align-items:center;margin-left:auto}html.dev3.r5 .r5-desktop-nav a{font-size:14px;min-height:44px;display:flex;align-items:center;text-decoration:none;color:#493e2b}html.dev3.r5 .r5-desktop-nav a[aria-current=page]{box-shadow:inset 0 -2px #b69651}}
@media(max-width:374px){html.dev3.r5 .deity-grid{grid-template-columns:minmax(0,1fr)!important}html.dev3.r5 body>header .brand small{font-size:9px}html.dev3.r5 .header-tools{gap:4px}html.dev3.r5 dialog.r5-dialog>.dev3-modal-header{padding:12px 14px!important;gap:8px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html.dev3.r5 .r5-watch{background:linear-gradient(155deg,#fff7dd,#f2d28c,#d4b275)}}
@media(prefers-reduced-motion:reduce){html.dev3.r5 *,html.dev3.r5 *::before,html.dev3.r5 *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Shared intrinsic rows align real title/content, prices and CTA across a row of cards. */
@media(min-width:768px){@supports(grid-template-rows:subgrid){
 html.dev3.r5 body.home-v21 #cards{grid-template-rows:repeat(6,auto)!important;row-gap:0!important;align-items:stretch}
 html.dev3.r5 body.home-v21 #cards>article.card{display:grid!important;grid-row:span 6!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:subgrid!important;row-gap:0!important;margin-bottom:24px!important}
 html.dev3.r5 body.home-v21 #cards>article.card>.card-content{display:grid!important;grid-column:1;grid-row:2/span 5!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:subgrid!important;gap:0!important}
}}

html.dev3.r5 body>header{position:sticky!important;top:0;z-index:40}
html.dev3.r5 .navigation-overlay{left:auto!important;right:0!important;margin-right:0!important}

html.dev3.r5 body>header nav.r5-desktop-nav{display:none!important}
@media(min-width:1280px){html.dev3.r5 body>header nav.r5-desktop-nav{display:flex!important}}

html.dev3.r5 body.r5-activities #cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;gap:16px;overflow:visible;width:100%;max-width:1280px;margin:auto}
html.dev3.r5 body.r5-activities #cards>.card{display:flex;flex-direction:column;min-width:0;width:auto;border-radius:var(--r5-radius)}
html.dev3.r5 body.r5-activities #cards .card-content{padding:24px;display:flex;flex-direction:column;flex:1;min-width:0}
html.dev3.r5 body.r5-activities #cards .card-content>p{line-height:1.25;display:flex;flex-direction:column;gap:10px;flex:1;margin-bottom:24px}
html.dev3.r5 body.r5-activities #cards .r4-activity-title{margin-bottom:20px}
html.dev3.r5 body.r5-activities #cards .price{margin-bottom:30px}
html.dev3.r5 body.r5-activities #cards .detail-button{max-width:100%;white-space:normal}
@media(min-width:768px){html.dev3.r5 body.r5-activities #cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}}
@media(min-width:1024px){html.dev3.r5 body.r5-activities #cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px}}

html.dev3.r5 .r5-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#f0e7d7;border-radius:22px;margin-bottom:20px}
html.dev3.r5 .r5-ledger-filters button{font-size:16px;min-width:0;padding:8px 4px;min-height:44px}
html.dev3.r5 .r5-ledger-filters button[aria-pressed=true]{background:#fff6df;border:1px solid #d6b36d;box-shadow:0 3px 10px #94703b22}
html.dev3.r5 .r5-ledger-earned{color:#426044}
html.dev3.r5 .r5-ledger-used{color:#405f89}
html.dev3.r5 .r5-ledger-other{color:#65513e}

/* Visual correction R1: preserve the R4 practice DOM, including image in its hero. */
@media(min-width:768px){
 html.dev3.r5 .r5-practice-restored .deity-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:40px max(24px,calc((100vw - 1120px)/2));align-items:center}
 html.dev3.r5 .r5-practice-restored .deity-hero .sacred-image{width:100%;max-width:440px;margin-inline:auto}
 html.dev3.r5 .r5-practice-restored .counter-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;max-width:1040px;margin-inline:auto}
 html.dev3.r5 .r5-practice-restored .counter-layout>*{min-width:0}
}
/* Uniform portrait frames replace conflicting legacy 16:9 horizontal feature rules. */
html.dev3.r5 .deity-grid>.deity.feature{grid-column:auto!important;display:flex!important;flex-direction:column!important;aspect-ratio:auto!important;width:100%;height:auto;align-items:stretch!important;overflow:hidden}
html.dev3.r5 .deity-grid>.deity.feature>img{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:3/4!important;max-height:none!important;min-height:0;object-fit:contain!important;object-position:center!important;flex:none;background:#10150f}
html.dev3.r5 .deity-grid>.deity.feature>.deity-card-body{display:flex!important;flex:1;flex-direction:column!important;align-self:stretch!important;padding:18px 16px!important;min-width:0}
html.dev3.r5 .deity-grid>.deity.feature .deity-card-copy{padding:0!important;min-width:0;align-self:stretch!important}
html.dev3.r5 .deity-grid>.deity.feature .deity-card-copy h2{font-size:clamp(18px,2.1vw,24px)!important;line-height:1.4;min-height:2.8em;margin:8px 0 12px!important;overflow-wrap:anywhere}
html.dev3.r5 .deity-grid>.deity.feature .deity-card-copy>span{font-size:14px;line-height:1.6}
/* Equal gutter reservation on both edges; content width is intrinsic, not 100% plus margins. */
html.dev3.r5 dialog.r5-dialog{scrollbar-gutter:stable both-edges}
html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog{background:#fffdf8!important}
html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog>.lamp-form-body{width:auto!important;max-width:none!important;margin-inline:24px!important;padding:0!important}
html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog>.lamp-form-body>form{width:100%;max-width:100%;margin:22px 0 24px!important}
html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog :is(input,select,textarea){width:100%;box-sizing:border-box}
/* Fix two implicit grid rows caused by the SVG inline baseline and unread badge. */
html.dev3.r5 body>header .header-tools #header-notifications{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:none;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;overflow:visible;line-height:1}
html.dev3.r5 #header-notifications>.notification-icon{display:flex!important;align-items:center;justify-content:center;width:24px;height:24px;line-height:1;filter:none}
html.dev3.r5 #header-notifications>.notification-icon>svg{display:block!important;width:24px!important;height:24px!important;flex:none}
html.dev3.r5 #header-notifications>.notification-count{position:absolute!important;top:-3px!important;right:-3px!important;min-width:18px;height:18px;padding:0 4px;font:600 10px/1 -apple-system,sans-serif;display:grid;place-items:center}
html.dev3.r5 #header-notifications>.notification-count[hidden]{display:none!important}
@media(max-width:374px){html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog>.lamp-form-body{margin-inline:16px!important}}

/* Keep restored counter actions readable in the iPad two-column layout. */
html.dev3.r5 .r5-practice-restored .counter-actions{display:flex;flex-wrap:wrap;gap:10px}
html.dev3.r5 .r5-practice-restored .counter-actions>button{flex:1 0 145px;white-space:nowrap;min-height:44px;padding-inline:12px}

/* Visual R2: use one inset layer and constrain native video intrinsic size. */
html.dev3.r5 dialog#detail.r5-dialog>#detail-body{width:auto!important;max-width:none!important;margin:0!important;padding:24px!important;box-sizing:border-box}
html.dev3.r5 .record-gallery .record-media{position:relative;display:block;min-width:0;min-height:0;aspect-ratio:16/9}
html.dev3.r5 .record-gallery .record-media>video{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:100%;aspect-ratio:auto!important;object-fit:contain}
html.dev3.r5 .record-gallery .record-copy{position:relative;clear:both}
@media(max-width:374px){html.dev3.r5 dialog#detail.r5-dialog>#detail-body{padding:16px!important}}
@media(min-width:768px){html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app.r5-settings-masonry{grid-auto-rows:1px;row-gap:0;align-items:start}html.dev3.r5 body.dev3-member[data-dev3-route=settings] #app.r5-settings-masonry>.card{align-self:start}}

/* Visual R3: readable native goal control; hide only the successfully enabled home prompt. */
html.dev3.r5 select#goal{color:#493719!important;background-color:#f4ead3!important;border:1px solid #c7ac71!important;box-shadow:inset 0 1px 0 #ffffffb3;color-scheme:light;text-shadow:none!important;opacity:1;min-height:48px}
html.dev3.r5 select#goal option{color:#493719;background:#fffaf0}
html.dev3.r5 body.dev3-member[data-dev3-route=home] .member-push-panel[data-push-enabled=true]{display:none!important}
/* Fortune alone uses the full available viewport; scene and result are edge-to-edge. */
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div{width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-stage{width:100%!important;max-width:none!important;margin-inline:0!important;border:0!important;border-radius:0!important}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-result-v5{width:100%;max-width:none;margin-inline:0}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-save-image>img{display:block;width:100%;max-width:100%;height:auto;margin-inline:0}

html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-quota{flex-wrap:wrap;min-width:0;gap:8px 16px}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .draw-button{width:min(530px,calc(100% - 32px))!important;box-sizing:border-box}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-history-item{box-sizing:border-box}

/* Visual R5: retain the dialog frame; a single modest inset protects text and controls. */
html.dev3.r5 dialog.r5-dialog{--r5-dialog-inset:20px;scrollbar-gutter:auto;overflow-x:hidden!important;clip-path:inset(0 round var(--r5-radius))}
html.dev3.r5 dialog.r5-dialog>:where(:not(.dev3-modal-header):not(.admin-popup-header):not(button):not(style):not(script)){margin-inline:0!important;padding-inline:var(--r5-dialog-inset)!important;max-width:100%;box-sizing:border-box}
html.dev3.r5 dialog#detail.r5-dialog>#detail-body,html.dev3.r5 dialog.lamp-dedication-dialog.r5-dialog>.lamp-form-body,html.dev3.r5 dialog.r5-dialog :is(.admin-popup-content,.modal-body){margin-inline:0!important;padding-inline:var(--r5-dialog-inset)!important;width:auto!important;max-width:100%!important;box-sizing:border-box}
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div{padding-inline:0!important}
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div>:not(.fortune-stage):not(.fortune-result-v5){margin-inline:var(--r5-dialog-inset)!important}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .draw-button{width:min(530px,calc(100% - 40px))!important;margin-inline:auto!important}
html.dev3.r5 dialog#detail.r5-dialog #detail-body>.detail-poster{display:flex!important;flex-direction:column;align-items:center;width:fit-content!important;max-width:100%!important;margin-inline:auto!important;border-radius:16px!important}
html.dev3.r5 dialog#detail.r5-dialog #detail-body>.detail-poster>img{width:auto!important;max-width:100%!important;height:auto!important;max-height:min(56dvh,440px)!important;object-fit:contain!important}
html.dev3.r5 dialog#detail.r5-dialog #detail-body>.detail-poster>span{align-self:stretch;text-align:center}
html.dev3.r5 .r4-member-activity-about .member-activity-media{width:fit-content;max-width:100%;margin-inline:auto}
html.dev3.r5 .r4-member-activity-about .member-activity-media>.activity-poster{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(56dvh,440px)!important;object-fit:contain}
@media(max-width:599px){html.dev3.r5 dialog.r5-dialog{--r5-dialog-inset:16px}html.dev3.r5 dialog.fortune-dialog.r5-dialog .draw-button{width:calc(100% - 32px)!important}}

/* Visual R6: readable inbox cards and drawers that grow with the display. */
html.dev3.r5 dialog.header-inbox-dialog.r5-dialog>.header-inbox-body{padding-block:20px!important}
html.dev3.r5 .header-inbox-body>.header-inbox-total{margin:0 0 14px;font-size:14px;line-height:1.5;color:#77684f}
html.dev3.r5 .header-inbox-body>.header-inbox-item{padding:0;margin:0 0 12px;border:1px solid #e6dbc5;border-radius:16px;background:#faf6ed;overflow-wrap:anywhere}
html.dev3.r5 .header-inbox-details>summary{min-height:64px;padding:16px;gap:12px;align-items:center}
html.dev3.r5 .header-inbox-details>summary .header-inbox-title{font-size:16px;line-height:1.6;min-width:0;font-weight:500}
html.dev3.r5 .header-inbox-details>summary .header-inbox-read-state{font-size:12px;line-height:1.5;padding:4px 10px;border-radius:99px;color:#4d6849;background:#e6eddf;align-self:center}
html.dev3.r5 .header-inbox-details>p,html.dev3.r5 .header-inbox-details>small,html.dev3.r5 .header-inbox-details>.header-inbox-item-footer{margin:0 16px 16px}
html.dev3.r5 .header-inbox-details>p{line-height:1.8;color:#4e5147}
html.dev3.r5 .header-inbox-details>small{font-size:12px}
@media(min-width:768px){html.dev3.r5 .navigation-overlay{width:400px!important;max-width:calc(100vw - 24px)!important}html.dev3.r5 .navigation-shell{padding:28px}}
@media(min-width:1024px){html.dev3.r5 .navigation-overlay{width:clamp(420px,32vw,560px)!important;max-width:calc(100vw - 32px)!important}html.dev3.r5 .navigation-shell{padding:32px}html.dev3.r5 .navigation-shell #main-menu a{min-height:60px}html.dev3.r5 .dev3-account-copy small{font-size:14px;line-height:1.65}}
/* New user-authorized decorative banners; original calendar data and nodes are untouched. */
html.dev3.r5 #daily-calendar .calendar-grid>article.calendar-note{grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden}
html.dev3.r5 #daily-calendar .calendar-note>.r5-calendar-art{display:block;width:calc(100% + 2 * var(--r5-pad));max-width:none;height:auto;aspect-ratio:3/1;object-fit:cover;margin:calc(-1 * var(--r5-pad)) calc(-1 * var(--r5-pad)) 20px;grid-row:1;align-self:start}
@media(min-width:761px){html.dev3.r5 #daily-calendar .calendar-grid{grid-template-rows:auto auto auto minmax(0,1fr) auto}html.dev3.r5 #daily-calendar .calendar-grid>article.calendar-note{grid-row:span 5;grid-template-rows:subgrid}}

/* Visual R7: dedicated account composition, preserving original forms and handlers. */
html.dev3.r5 body.r5-auth{background:#fcf4e7 url('assets/r5-account-landscape-v1.png') center/cover fixed no-repeat;color:#493719}
html.dev3.r5 body.r5-auth>header,html.dev3.r5 body.r5-auth>footer{display:none!important}
html.dev3.r5 body.r5-auth main#content{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:70px 24px 28px;max-width:none;margin:0;background:transparent}
html.dev3.r5 body.r5-auth .dev3-auth-section{width:100%;max-width:500px;margin:0 auto;padding:0!important;background:none}
html.dev3.r5 .r5-auth-tools{position:absolute;top:12px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
html.dev3.r5 .r5-auth-tools a{display:flex;align-items:center;min-height:44px;color:#765728;text-decoration:none;font-size:14px}
html.dev3.r5 .r5-auth-tools .language-control{display:block!important;margin-left:auto}
html.dev3.r5 .r5-auth-tools select{min-height:44px!important;border-radius:99px;font-size:14px!important;width:auto;padding:8px 14px;background:#fff9edb3}
html.dev3.r5 .r5-auth-heading{text-align:center;margin-bottom:22px}
html.dev3.r5 .r5-auth-home{display:table;margin:0 auto;text-decoration:none}
html.dev3.r5 .r5-auth-heading .dev3-auth-seal{width:68px;height:68px;font-size:46px;margin:0 auto 10px;background:#fff8e980;color:#9a6c23}
html.dev3.r5 .r5-auth-heading .r5-auth-brand{font-size:12px;letter-spacing:1px;margin:0 0 8px;color:#78541f}
html.dev3.r5 .r5-auth-heading h1{font-family:var(--dev3-serif);font-size:32px!important;line-height:1.4;letter-spacing:1px;font-weight:600;margin:0 0 6px;color:#28392d}
html.dev3.r5 .r5-auth-heading .r5-auth-subtitle{font-family:var(--dev3-serif);font-size:17px;letter-spacing:1px;margin:0;color:#624321}
html.dev3.r5 body.r5-auth #member-guest,html.dev3.r5 body.r5-auth #reset-panel,html.dev3.r5 body.r5-auth #member-unavailable{padding:24px;border:1px solid #ffffffed;border-radius:28px;background:linear-gradient(145deg,#fffcf4d9,#fff3e0b3);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);box-shadow:inset 0 0 0 1px #dfc39970,0 10px 32px #795a3121,0 2px 6px #795a3112;text-align:left}
html.dev3.r5 body.r5-auth .member-tabs{padding:3px;margin:0 0 18px;gap:3px;border:1px solid #e8d2b6;border-radius:99px;background:#f5e8d7a6;box-shadow:inset 0 1px 2px #fff9}
html.dev3.r5 body.r5-auth .member-tabs>button{border-radius:99px;min-height:42px;line-height:1.4;color:#5d4b34;font-size:16px;font-weight:500}
html.dev3.r5 body.r5-auth .member-tabs>button[aria-selected=true]{color:#493719;background:linear-gradient(160deg,#fff1bdc7,#dfb358db 62%,#f1d18cba);border:1px solid #fff0c4;box-shadow:inset 0 1px 3px #fff,0 2px 5px #a5752b33}
html.dev3.r5 body.r5-auth .auth-panel{padding:0!important;background:transparent;border:0;box-shadow:none}
html.dev3.r5 body.r5-auth #login-form,html.dev3.r5 body.r5-auth #register-form{gap:12px}
html.dev3.r5 body.r5-auth .auth-panel label{font-size:14px;line-height:1.6;color:#48331d}
html.dev3.r5 body.r5-auth .phone-input-group{grid-template-columns:132px minmax(0,1fr);gap:8px;margin-top:4px}
html.dev3.r5 body.r5-auth .auth-panel :is(input:not([type=checkbox]),select){height:46px;min-height:46px!important;padding:10px 12px;border:1px solid #d9bea0;border-radius:9px;background:#fffaf2a6;color:#493719;font-size:16px!important;line-height:1.5;box-shadow:inset 0 1px 3px #fff8}
html.dev3.r5 body.r5-auth .auth-panel input::placeholder{color:#817568;opacity:1}
html.dev3.r5 body.r5-auth .phone-status:empty{display:none}
html.dev3.r5 body.r5-auth .password-wrap{position:relative}
html.dev3.r5 body.r5-auth .password-wrap input{padding-left:42px!important;padding-right:44px!important}
html.dev3.r5 body.r5-auth .r5-auth-lock{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:20px;height:22px;color:#837361;pointer-events:none}
html.dev3.r5 body.r5-auth .r5-auth-lock svg{display:block;width:20px;height:22px}
html.dev3.r5 body.r5-auth .password-visibility{height:44px;min-height:44px;top:50%;transform:translateY(-50%);right:2px;background:transparent!important;color:#837361}
html.dev3.r5 body.r5-auth .r5-auth-forgot{align-self:flex-end;font-size:13px;line-height:1.6;color:#7a5527;margin-top:-4px;text-decoration:none;min-height:28px;display:flex;align-items:center}
html.dev3.r5 body.r5-auth button[type=submit]{position:relative;isolation:isolate;min-height:48px!important;font-size:16px!important;font-weight:500;color:#35432c!important;text-shadow:none!important;margin:2px 0 0;background:radial-gradient(ellipse at 22% 0%,#ffffffb3,transparent 50%),linear-gradient(150deg,#ffedb2b3,#e4b75dcd 58%,#f7db9db3)!important;border:1px solid #fff1c7!important;border-radius:99px;box-shadow:inset 0 2px 2px #ffffffd9,inset 0 -2px 3px #9d6c2833,0 0 0 1px #c69c5b80,0 6px 15px #9b6d2533;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%)}
html.dev3.r5 body.r5-auth button[type=submit]::after{content:'';position:absolute;inset:3px;border:1px solid #fff9;border-radius:inherit;pointer-events:none;display:block!important}
html.dev3.r5 body.r5-auth .login-divider{margin:14px 0;gap:12px;font-size:13px}
html.dev3.r5 body.r5-auth .login-divider::before,html.dev3.r5 body.r5-auth .login-divider::after{background:#d9bd96}
html.dev3.r5 body.r5-auth #passkey-login{display:grid;grid-template-columns:30px auto;column-gap:12px;row-gap:0;justify-content:center;align-items:center;min-height:60px;padding:9px 16px;border:1px solid #cda76d;border-radius:99px;color:#68451e;background:linear-gradient(135deg,#fffdf5bd,#f4dfb875);box-shadow:inset 0 1px 2px #fff;line-height:1.4;font-size:16px}
html.dev3.r5 body.r5-auth #passkey-login>.dev3-passkey-icon{grid-column:1;grid-row:1/3;width:30px;height:34px;color:#97691d}
html.dev3.r5 body.r5-auth #passkey-login::after{content:attr(data-passkey-caption)!important;display:block!important;grid-column:2;grid-row:2;font-size:12px;font-weight:400;color:#786b58;line-height:1.5}
html.dev3.r5 body.r5-auth .dev3-passkey-note{display:none}
html.dev3.r5 body.r5-auth .r5-auth-help{display:block;margin:16px 0 0;text-align:center;color:#765020;font-size:14px;line-height:1.8;text-decoration:none;min-height:32px}
html.dev3.r5 body.r5-auth .r5-auth-foot{text-align:center;font-family:var(--dev3-serif);font-size:15px;letter-spacing:1px;margin:16px 0 0;color:#765020}
html.dev3.r5 body.r5-auth #register-panel>h2{font-size:20px;margin:0 0 8px}
html.dev3.r5 body.r5-auth #register-panel>p{font-size:14px;line-height:1.7;margin-bottom:16px}
html.dev3.r5 body.r5-auth .privacy-consent{display:flex;align-items:flex-start;gap:8px;font-size:13px!important}
html.dev3.r5 body.r5-auth .privacy-consent input{flex:none;margin-top:4px}
html.dev3.r5 body.r5-auth #member-message:not([hidden]){border:1px solid #dec59c;background:#fff9e8e6;border-radius:12px;padding:12px 16px;margin:0 0 16px;font-size:14px;line-height:1.7}
html.dev3.r5 .calendar-date [data-calendar-month]{display:none}
@supports not (backdrop-filter:blur(1px)){html.dev3.r5 body.r5-auth #member-guest{background:#fff7e9}}
@media(max-width:599px){html.dev3.r5 body.r5-auth{background-attachment:scroll;background-position:center top}html.dev3.r5 body.r5-auth main#content{padding:64px 12px 24px;justify-content:flex-start}html.dev3.r5 body.r5-auth #member-guest{padding:18px 16px;border-radius:24px}html.dev3.r5 .r5-auth-tools{left:16px;right:16px;top:8px}html.dev3.r5 .r5-auth-heading h1{font-size:27px!important}html.dev3.r5 .r5-auth-heading .r5-auth-subtitle{font-size:16px}html.dev3.r5 .r5-auth-heading .dev3-auth-seal{width:60px;height:60px;font-size:40px}html.dev3.r5 body.r5-auth .phone-input-group{grid-template-columns:110px minmax(0,1fr)}html.dev3.r5 body.r5-auth .r5-auth-foot{font-size:14px}}

html.dev3.r5 body.r5-auth .dev3-auth-section .auth-panel label{margin:0}
html.dev3.r5 body.r5-auth .dev3-auth-section .auth-panel .phone-field{margin:0}
html.dev3.r5 body.r5-auth .dev3-auth-section .member-tabs{margin-bottom:18px}
html.dev3.r5 body.r5-auth .dev3-auth-section .member-tabs>button[aria-selected=true]{background:linear-gradient(160deg,#fff1bdc7,#dfb358db 62%,#f1d18cba)!important;color:#493719!important;box-shadow:inset 0 1px 3px #fff,0 2px 5px #a5752b33!important}
html.dev3.r5 body.r5-auth .dev3-auth-section .r5-auth-forgot{padding:0;min-height:32px;border:0;margin-top:-4px}
html.dev3.r5 body.r5-auth .dev3-auth-section .auth-panel .phone-input-group{margin-top:4px}
@media(max-width:599px){html.dev3.r5 body.r5-auth{background-image:url('assets/r5-account-landscape-mobile-v1.png');background-size:100% auto;background-position:center top;background-color:#fcf4e7}html.dev3.r5 body.r5-auth .phone-input-group{grid-template-columns:124px minmax(0,1fr)}}

html.dev3.r5 body.r5-auth #passkey-login:disabled::after{content:none!important}

/* Visual R8: retain native select options and values; present a compact flag + dial code. */
html.dev3.r5 body.r5-auth .phone-input-group{align-items:start!important;grid-template-columns:124px minmax(0,1fr)!important}
html.dev3.r5 body.r5-auth .r5-country-field{position:relative;height:48px;min-width:0;align-self:start;border:1px solid #d9bea0;border-radius:9px;background:#fffaf2a6;box-shadow:inset 0 1px 3px #fff8}
html.dev3.r5 body.r5-auth .r5-country-field select{position:absolute;inset:0;display:block;width:100%;height:48px!important;min-height:48px!important;margin:0!important;opacity:0;cursor:pointer;z-index:2}
html.dev3.r5 body.r5-auth .r5-country-display{display:flex;align-items:center;gap:8px;position:absolute;inset:0;padding:0 28px 0 12px;line-height:1;color:#493719;pointer-events:none;white-space:nowrap}
html.dev3.r5 body.r5-auth .r5-country-flag{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:20px;line-height:1}
html.dev3.r5 body.r5-auth .r5-country-code{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
html.dev3.r5 body.r5-auth .r5-country-field::after{content:'';position:absolute;right:12px;top:18px;width:8px;height:8px;border-right:1.5px solid #765728;border-bottom:1.5px solid #765728;transform:rotate(45deg);pointer-events:none}
html.dev3.r5 body.r5-auth .r5-country-field:focus-within{outline:2px solid #94703b;outline-offset:2px}
html.dev3.r5 body.r5-auth .phone-input-group>input{height:48px!important;min-height:48px!important;margin:0!important;align-self:start;box-sizing:border-box}
html.dev3.r5 body.r5-auth #passkey-login>.dev3-passkey-icon{width:32px;height:36px;overflow:visible;shape-rendering:geometricPrecision}
/* Keep scenery independent of form length, page scroll and keyboard viewport changes. */
html.dev3.r5 body.r5-auth{position:relative;isolation:isolate;background:#fcf4e7!important}
html.dev3.r5 body.r5-auth::before{content:'';position:fixed;top:0;left:0;width:100%;height:100vh;height:100lvh;z-index:-1;pointer-events:none;background:#fcf4e7 url('assets/r5-account-landscape-v1.png') center top/cover no-repeat}
@media(max-width:599px){html.dev3.r5 body.r5-auth::before{background-image:url('assets/r5-account-landscape-mobile-v1.png');background-size:100% auto;background-position:center top}}

/* Compact only the first three footer lines; keep approved sizes and copyright spacing. */
html.dev3.r5 body>footer>.brand{line-height:1.5;margin:0 0 6px}
html.dev3.r5 body>footer>.brand>small{line-height:1.5}
html.dev3.r5 body>footer>p:not(.copyright){line-height:1.5;margin:0 0 6px}
html.dev3.r5 body>footer>small{display:block;line-height:1.5;margin:0}

/* Visual R9: cover tall/narrow screens instead of ending the mobile image at its width-scaled height. */
@media(max-width:599px){html.dev3.r5 body.r5-auth::before{background-size:cover;background-position:center top}}

/* Visual R10: larger decorative emoji in a compact box, without enlarging button text. */
html.dev3.r5 body :is(button:not(.dev3-ios-switch),a.button,a.text-link,label.import-label) :is(.theme-button-icon,.button-emoji,.r5-button-emoji){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px;padding:0!important;margin:0!important;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:26px!important;line-height:1!important;vertical-align:middle;overflow:visible;pointer-events:none}
html.dev3.r5 body a.text-link .r5-button-emoji{margin-inline:3px!important}
@media(max-width:374px){html.dev3.r5 .r3-practice>.actions>a:has(.theme-button-icon),html.dev3.r5 .r3-practice>.actions>a:has(.r5-button-emoji){gap:6px}}

/* Visual R11: fill the original portrait frame without stretching the original photograph. */
html.dev3.r5 .home-v21 #about .portrait>img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;object-position:50% 42%}
/* Keep the original anchors and light/dark approved materials, with visible button boundaries. */
html.dev3.r5 #member-rail .r5-membership-action{display:inline-flex!important;width:fit-content;max-width:100%;min-height:48px;align-items:center;justify-content:center;align-self:flex-start;gap:10px;margin:0;text-decoration:none;border-bottom-style:solid;line-height:1.5;white-space:normal;text-align:center;font-size:16px;padding:10px 18px!important}
html.dev3.r5 #member-rail .membership-records>.r5-membership-action{color:#493e2b!important;text-shadow:none!important}
html.dev3.r5 #member-rail .membership-light>.r5-membership-action{color:#35270f!important;text-shadow:none!important;background:radial-gradient(ellipse at 25% 0%,#fff8d3b3,transparent 60%),linear-gradient(120deg,#fff4c8b3,#f7d57cbf 40%,#dbad48b8 75%,#f5d48ab3)!important;border:1px solid #fff1b9d9!important;box-shadow:inset 0 1px 2px #fff9,inset 0 -2px 3px #98722633,0 5px 16px #d5a74a26!important;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
@media(min-width:1024px){html.dev3.r5 .home-v21 #education{align-items:stretch}html.dev3.r5 .home-v21 #education>.kindness-lamp{width:100%;max-width:none;align-self:stretch;justify-self:stretch;display:flex;flex-direction:column;padding:32px 24px 28px;min-height:0;border-radius:240px 240px 12px 12px;clip-path:inset(0 round 240px 240px 12px 12px);-webkit-clip-path:inset(0 round 240px 240px 12px 12px)}html.dev3.r5 .home-v21 #education>.kindness-lamp>.education-reference{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:none;margin:0 0 24px}html.dev3.r5 .home-v21 #education>.kindness-lamp>#light-lamp{flex:none;align-self:center;max-width:100%}html.dev3.r5 .home-v21 #education>.kindness-lamp>.lamp-message{flex:none;margin-top:16px;margin-bottom:0}}

/* Apply the installed reference's press feedback only to the two revised controls. */
html.dev3.r5 #member-rail .r5-membership-action{touch-action:manipulation;transition:transform 120ms cubic-bezier(.23,1,.32,1),box-shadow 180ms ease}
html.dev3.r5 #member-rail .r5-membership-action:active{transform:translateY(1px) scale(.98)}
@media(hover:none){html.dev3.r5 #member-rail .r5-membership-action:hover:not(:active){transform:none}}
@media(prefers-reduced-motion:reduce){html.dev3.r5 #member-rail .r5-membership-action{transition:none}html.dev3.r5 #member-rail .r5-membership-action:active{transform:none}}

/* Visual R12: each card reserves the same bottom action position. */
html.dev3.r5 #member-rail>.membership-tile>a.button{margin-top:auto!important;margin-bottom:0!important;flex-shrink:0}
html.dev3.r5 #member-rail>.membership-tile>.r5-membership-action{min-height:48px;padding:8px 18px!important}

/* Visual R13: shared convex champagne glass. Alpha layers reveal the real backdrop. */
html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved){
 background:radial-gradient(ellipse at 18% 0%,#fffef3e6 0%,#fff9e647 35%,transparent 58%),radial-gradient(ellipse at 92% 100%,#fff8cba6,transparent 48%),linear-gradient(125deg,#fff9e88c,#efcf8c70 48%,#bca16a52 75%,#fff4cf80)!important;
 border-color:#f7e7c4d9!important;
 color:#344027!important;text-shadow:none!important;
 box-shadow:inset 0 1px 2px #fff,inset 0 -2px 3px #9d722b45,inset 0 0 0 3px #fff8,0 0 0 1px #c5a76a70,0 6px 14px #a777292e!important;
 backdrop-filter:blur(18px) saturate(160%)!important;-webkit-backdrop-filter:blur(18px) saturate(160%)!important;
 touch-action:manipulation;transition:box-shadow 180ms ease,transform 120ms ease;
}
html.dev3.r5 body .r5-liquid-control:focus-visible{outline:3px solid #79602b!important;outline-offset:4px!important}
html.dev3.r5 body .r5-liquid-control:not(:disabled):active{transform:translateY(1px) scale(.98)}
html.dev3.r5 body .r5-liquid-control:disabled{opacity:.48!important;cursor:not-allowed;transform:none!important;box-shadow:inset 0 1px 2px #fff8,0 0 0 1px #bfa87d66!important}
html.dev3.r5 body .r5-glass-tab[aria-selected="false"]{background:linear-gradient(135deg,#fff9ec55,#ecd9b333)!important;box-shadow:inset 0 1px 2px #fffb!important;color:#756b55!important}
html.dev3.r5 body .r5-glass-tab[aria-selected="true"]{background:radial-gradient(ellipse at 20% 0%,#fff9d9dd,transparent 65%),linear-gradient(125deg,#f8e4b4b3,#d1a650b3,#ffe6adb3)!important;color:#493719!important}
/* Existing image magnifiers, switch tracks and the three locked R4 tones stay intact. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved){background:linear-gradient(135deg,#fff7e5,#ead5a9)!important}}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved){background:linear-gradient(135deg,#fff7e5,#ead5a9)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@media(prefers-reduced-motion:reduce){html.dev3.r5 body .r5-liquid-control{transition:none!important}html.dev3.r5 body .r5-liquid-control:active{transform:none!important}}
@media(forced-colors:active){html.dev3.r5 body .r5-liquid-control{background:ButtonFace!important;color:ButtonText!important;border:1px solid ButtonText!important;box-shadow:none!important}}

/* Visual R14: a clear centre, convex rim and directional caustic highlights.
   The optical layer is decorative and does not intercept clicks or change sizing. */
html.dev3.r5 body .r5-glass-relative{position:relative}
html.dev3.r5 body .r5-liquid-control>.r5-glass-optics{display:block!important;position:absolute!important;inset:2px!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:inherit!important;border:1px solid #fff9!important;pointer-events:none!important;user-select:none;box-sizing:border-box;z-index:0;box-shadow:inset 1px 2px 2px #fffc,inset -1px -2px 2px #fff4,0 0 0 1px #c6a87755;
 background:radial-gradient(ellipse 28% 14% at 27% 0%,#fff 0%,#fff8 35%,transparent 100%),radial-gradient(ellipse 22% 16% at 86% 100%,#fffde2eb 0%,#fff6 35%,transparent 100%),radial-gradient(ellipse 5% 50% at 0% 40%,#fff9,transparent 100%);}
html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved):not(.r5-glass-tab){background:radial-gradient(ellipse at 25% 0%,#fffef3c2,transparent 48%),radial-gradient(ellipse at 88% 100%,#fff4c280,transparent 44%),linear-gradient(170deg,#fff7df66 0%,#e5c89452 38%,#b9a27b38 62%,#f4d39473 90%,#fff0bf99 100%)!important;}
/* Match the directional shadow across light and dark contexts; locked tones stay intact. */
html.dev3.r5 body :is(.r5-liquid-control.r5-liquid-control.r5-liquid-control,#light-lamp.r5-liquid-control,#member-rail .r5-liquid-control,#home .r5-liquid-control):not(:disabled):not(.r5-glass-tab){border-color:#fff4d2d9!important;box-shadow:inset 0 1px 2px #fffe,inset 0 -2px 3px #a2763d59,inset 0 0 0 3px #fff3,0 0 0 1px #c6a26880,0 3px 5px #aa7d3124,0 10px 17px -4px #a97c3e52!important;}
html.dev3.r5 body .r5-liquid-control:disabled>.r5-glass-optics{opacity:.35}
@media(max-width:599px){html.dev3.r5 body .r5-liquid-control>.r5-glass-optics{box-shadow:inset 1px 1px 2px #fffc,inset -1px -1px 2px #fff4,0 0 0 1px #c6a87755}}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved):not(.r5-glass-tab){background:linear-gradient(135deg,#fff7e5,#ead5a9)!important}html.dev3.r5 body .r5-liquid-control>.r5-glass-optics{background:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved):not(.r5-glass-tab){background:linear-gradient(135deg,#fff7e5,#ead5a9)!important}}
@media(forced-colors:active){html.dev3.r5 body .r5-liquid-control>.r5-glass-optics{display:none!important}html.dev3.r5 body .r5-liquid-control:not(.r5-glass-preserved):not(.r5-glass-tab){background:ButtonFace!important;box-shadow:none!important}}

/* R15: floating navigation needs a dependable light surface over any page section. */
html.dev3.r5 body button.back-top.back-top.r5-liquid-control{background:radial-gradient(ellipse at 28% 0%,#fffef0cc,transparent 58%),linear-gradient(155deg,#fff9e9f5,#f1dfb8ed 58%,#dfc38fed)!important;color:#26321f!important;text-shadow:0 1px 1px #fff9!important;font-weight:600;isolation:isolate}
html.dev3.r5 body button.back-top.back-top.r5-liquid-control:focus-visible{outline:3px solid #26321f!important;outline-offset:4px!important}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 body button.back-top.back-top.r5-liquid-control{background:#f4e4c3!important}}
@media(forced-colors:active){html.dev3.r5 body button.back-top.back-top.r5-liquid-control{background:ButtonFace!important;color:ButtonText!important;text-shadow:none!important}}

/* R16: user-selected #19 dark glass. Legacy R4 tones yield only in dark contexts. */
html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark{
 background:radial-gradient(ellipse 38% 34% at 14% 0%,#f9e8a24d,transparent 100%),radial-gradient(ellipse 24% 30% at 94% 100%,#e8b85c66,transparent 100%),linear-gradient(160deg,#62644773,#303a2be6 42%,#283225eb 67%,#66603d99)!important;
 color:#fff7df!important;text-shadow:0 1px 2px #10180dd9!important;
 border-color:#f9eac5bf!important;box-shadow:inset 0 1px 2px #fffbdacc,inset 0 -2px 3px #e6b95f80,inset 0 0 0 3px #fff2,0 0 0 1px #8a87588c,0 6px 16px #0005,0 3px 12px #e0b85b1a!important;
 backdrop-filter:blur(18px) saturate(145%)!important;-webkit-backdrop-filter:blur(18px) saturate(145%)!important;
}
html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark :not(.r5-glass-optics){color:#fff7df!important;text-shadow:0 1px 2px #10180dd9!important}
html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark::before{background:linear-gradient(180deg,#fff7d11f,transparent 55%,#eabd5226)!important;border-color:#fff4c955!important}
html.dev3.r5 body .r5-glass-on-dark>.r5-glass-optics{border-color:#fff4d799!important;background:radial-gradient(ellipse 28% 14% at 24% 0%,#fffef0f2,#fff8 32%,transparent 100%),radial-gradient(ellipse 24% 18% at 88% 100%,#ffdf84d9,#ffe2a047 42%,transparent 100%);box-shadow:inset 1px 1px 2px #fff9,inset -1px -2px 2px #f6ca7980,0 0 0 1px #e5d4a433}
html.dev3.r5 body .r5-glass-on-dark:focus-visible{outline:3px solid #fff5cf!important;outline-offset:4px!important}
/* Disabled remains visibly unavailable; native disabled and event rules are unchanged. */
html.dev3.r5 body .r5-glass-on-dark:disabled{opacity:.6!important}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark{background:#394330!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark{background:#394330!important}}
@media(forced-colors:active){html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark{background:ButtonFace!important;color:ButtonText!important;text-shadow:none!important;box-shadow:none!important}html.dev3.r5 :is(body,#home,#member-rail,#practice) .r5-liquid-control.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark.r5-glass-on-dark :not(.r5-glass-optics){color:ButtonText!important;text-shadow:none!important}}

/* Compact sync/login actions need space between their glyphs and the bright rim. */
html.dev3.r5 body .r5-glass-on-dark.r5-liquid-control{border-radius:999px!important}
html.dev3.r5 body .r5-glass-on-dark.r5-liquid-control:is(a.text-link:not(.button),button:not(.dev3-glass)){padding-inline:16px!important;box-sizing:border-box}

/* R17: keep the native goal picker, with a clear olive-glass closed field. */
html.dev3.r5 .practice select#goal{appearance:none;-webkit-appearance:none;color-scheme:dark;color:#fff7df!important;opacity:1;font-size:16px!important;font-weight:600;line-height:1.5;min-height:48px;min-width:148px;max-width:100%;padding:10px 38px 10px 16px!important;border-radius:14px;border:1px solid #e9dcafcc!important;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23fff7df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/14px 8px no-repeat,radial-gradient(ellipse at 15% 0%,#f8e7a233,transparent 65%),linear-gradient(160deg,#60624780,#303a2be6 45%,#283225eb 70%,#66603da6)!important;
 backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%);text-shadow:0 1px 2px #10180db3!important;box-shadow:inset 0 1px 1px #fff7d680,inset 0 -1px 2px #e6b95f66,0 0 0 1px #b8b18140,0 4px 10px #0003;cursor:pointer;vertical-align:middle;box-sizing:border-box}
html.dev3.r5 .practice select#goal option{color:#fff7df;background:#293324;font-size:16px}
html.dev3.r5 .practice select#goal:focus-visible{outline:3px solid #fff1b8!important;outline-offset:4px!important;box-shadow:inset 0 1px 2px #fff6,0 0 0 1px #293324,0 0 0 7px #11181080}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 .practice select#goal{background-color:#394330!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(forced-colors:active){html.dev3.r5 .practice select#goal{appearance:auto;-webkit-appearance:auto;background:Field!important;color:FieldText!important;border:1px solid FieldText!important;text-shadow:none!important;box-shadow:none}html.dev3.r5 .practice select#goal option{color:FieldText;background:Field}}

/* R18: deliberate label/control spacing; wrap as a group when room is limited. */
html.dev3.r5 .practice .r5-goal-row{display:flex;align-items:center;flex-wrap:wrap;column-gap:16px;row-gap:10px;width:100%;max-width:100%;margin:0;min-width:0}
html.dev3.r5 .practice .r5-goal-row>label{display:block;flex:0 0 auto;width:auto;min-height:0;margin:0!important;padding:0;line-height:1.5;white-space:nowrap}
html.dev3.r5 .practice .r5-goal-row>select#goal{flex:0 1 auto;margin:0!important;padding:10px 42px 10px 18px!important;border-radius:16px;max-width:100%}

/* R18: a non-interactive champagne glass surface for the existing detail price. */
html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price){background:radial-gradient(ellipse at 18% 0%,#fffef1d9,transparent 60%),radial-gradient(ellipse at 95% 100%,#ffe5a347,transparent 48%),linear-gradient(130deg,#fff8e68c,#ecd6a773 55%,#d9bd8461)!important;border:1px solid #fff2d2e6!important;box-shadow:inset 0 1px 2px #fffe,inset 0 -1px 2px #b3904d33,inset 0 0 0 3px #fff3,0 0 0 1px #c9b18580,0 8px 20px #9972381f;backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%)}
html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price)::before{content:'';position:absolute;inset:3px;border:1px solid #fff9;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse 30% 10% at 24% 0%,#fff9,transparent 100%)}
@media(prefers-reduced-transparency:reduce){html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price){background:#f4e7cb!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price){background:#f4e7cb!important}}
@media(forced-colors:active){html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price){background:Canvas!important;border:1px solid CanvasText!important;box-shadow:none}html.dev3.r5 :is(#detail-body>.price.r3-price,#cards .price.r3-price)::before{display:none}}
/* Separate target selection from its progress indicator without changing values. */
html.dev3.r5 .practice .r5-goal-row+progress#progress:not([hidden]){display:block;margin-top:16px!important}
@media(min-width:768px){html.dev3.r5 .practice .r5-goal-row+progress#progress:not([hidden]){margin-top:20px!important}}

/* Shared external-video action uses the same glass family on both public views. */
html.dev3.r5 a.video-direct.r5-watch{box-sizing:border-box;width:100%;max-width:100%;text-decoration:none!important}

/* R19 audit: shared member return actions, with original href and node retained. */
html.dev3.r5 body.dev3-member #app a.back.r5-liquid-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:fit-content;max-width:100%;min-height:48px;padding:10px 18px;border:1px solid #f7e7c4d9;border-radius:999px;line-height:1.5;font-size:16px;text-decoration:none;justify-self:start;align-self:start}
/* Tablet counter columns need room for the original icon and complete label. */
html.dev3.r5 .r5-practice-restored .counter-actions>button.r5-liquid-control{padding-inline:12px!important;gap:8px;min-width:0}
/* Longer English labels may wrap inside the same touch target on iPad columns. */
html.dev3.r5[lang=en] .r5-practice-restored .counter-actions>button.r5-liquid-control{white-space:normal}
/* Replace the legacy solid bell fill; badge colour/position and original icon stay intact. */
html.dev3.r5 body>header a#header-notifications.r5-liquid-control{background:radial-gradient(ellipse at 18% 0%,#fffef3c2,transparent 48%),radial-gradient(ellipse at 88% 100%,#fff4c280,transparent 44%),linear-gradient(170deg,#fff7df66,#e5c89452 38%,#b9a27b38 62%,#f4d39473 90%,#fff0bf99)!important;color:#344027!important}

/* R20: badge stays above optical highlights and remains legible at 1 / 99+. */
html.dev3.r5 body>header a#header-notifications{isolation:isolate}
html.dev3.r5 #header-notifications>.notification-icon{position:relative;z-index:1}
html.dev3.r5 #header-notifications>.notification-count{z-index:3!important;top:-4px!important;right:-4px!important;min-width:20px;height:20px;padding:0 5px;font:700 11px/1 -apple-system,BlinkMacSystemFont,sans-serif;box-sizing:border-box;white-space:nowrap;box-shadow:0 0 0 2px #f7f3e9}
/* Only the ledger surface returns to white; wallet and filter buttons keep their treatments. */
html.dev3.r5 body.dev3-member[data-dev3-route=points] #app>section.r5-points-ledger{background:#fff!important}
/* Reuse the existing brand seal/name, outside the QR quiet zone. */
html.dev3.r5 .dev3-share-card>.r20-invite-brand{display:flex;align-items:center;justify-content:center;gap:12px;width:fit-content;max-width:100%;margin:0 auto 24px;padding:0 0 20px;border-bottom:1px solid #e6d8bd;text-align:left;box-sizing:border-box}
html.dev3.r5 .r20-invite-brand>.seal{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:1px solid #b28b47;border-radius:50%;font:32px/1 var(--dev3-serif,serif);color:#a47b35;background:transparent}
html.dev3.r5 .r20-invite-brand>.r20-invite-name{display:block;min-width:0;font:500 clamp(18px,2.2vw,23px)/1.5 var(--dev3-serif,serif);color:#33372e;overflow-wrap:anywhere}
html.dev3.r5 .r20-invite-brand small{display:block;font:12px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;color:#8b6c3d;letter-spacing:.04em}

/* R21: light wish panels must not inherit the dark page foreground. */
html.dev3.r5 body.dev3-member[data-dev3-route=lamps] #app .lamp-history-record .lamp-history-wish{color:#111!important}

/* R22: readable supporting copy on light surfaces; keep dark contexts explicit. */
html.dev3.r5 :is(.swipe-hint,.topic-subtitle,.sacred-coming-copy p,.record-copy>small,.record-intro p){color:#626052!important}
html.dev3.r5 #education .muted,html.dev3.r5 #detail-body .muted{color:#655e50!important}
html.dev3.r5 body.dev3-member #app .card{color:#30372c}
html.dev3.r5 body.dev3-member #app .card :is(.hint,.sub,.empty,.activity-end-date),html.dev3.r5 body.dev3-member #app .r3-practice>small{color:#655f52!important}
html.dev3.r5 body.dev3-member #app .milestones>.off{color:#66685f!important}
/* Preserve the five metric colours, with stronger foregrounds on pastel cards. */
html.dev3.r5 body.dev3-member .stats-preview>.stat:nth-child(1){color:#41633e!important}
html.dev3.r5 body.dev3-member .stats-preview>.stat:nth-child(2){color:#486588!important}
html.dev3.r5 body.dev3-member .stats-preview>.stat:nth-child(3){color:#705286!important}
html.dev3.r5 body.dev3-member .stats-preview>.stat:nth-child(4),html.dev3.r5 body.dev3-member .review-checkin-summary>div:nth-child(2){color:#8a542e!important}
html.dev3.r5 body.dev3-member .stats-preview>.stat>:is(small,strong),html.dev3.r5 body.dev3-member .review-checkin-summary>div:nth-child(2)>:is(small,strong){color:inherit!important}
/* The poster viewer is dark even though its close control is outside a card. */
html.dev3.r5 #image-viewer .viewer-close.r5-liquid-control{color:#fff7df!important;background-color:#3b422f!important;background-image:radial-gradient(ellipse at 18% 0%,#fff5c24d,transparent 50%),linear-gradient(165deg,#747a6280,#303b2dba 62%,#a28b4d70)!important;text-shadow:0 1px 2px #10170fcc!important}
/* Caption text sits over a photo: use a stronger scrim and opaque light copy. */
html.dev3.r5 :is(#about,.about-section) .portrait figcaption{background:linear-gradient(transparent,#172018eb)!important}
html.dev3.r5 .portrait figcaption small{color:#fff7e8!important;text-shadow:0 1px 2px #172018}
html.dev3.r5 .record-media video{color:#fff7df}

/* R23: derive unread appearance from the original unread dot, never translated copy. */
html.dev3.r5 .header-inbox-details>summary:has(.header-inbox-unread-dot:not([hidden])) .header-inbox-read-state{color:#a52c24;background:#fce8e4}

/* R24: one shared horizontal centre for fortune content at every viewport. */
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div{text-align:center;box-sizing:border-box}
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div>:not(.fortune-stage):not(.fortune-result-v5){box-sizing:border-box;width:calc(100% - 2 * var(--r5-dialog-inset));margin-inline:auto!important;text-align:center}
html.dev3.r5 dialog.fortune-dialog.r5-dialog>.dev3-modal-header+div>.draw-button{width:min(530px,calc(100% - 2 * var(--r5-dialog-inset)))!important;justify-content:center}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-quota{justify-content:center;text-align:center;gap:8px 24px}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-sound-controls .dev3-setting-row{justify-content:center;gap:16px;width:fit-content;max-width:100%;margin-inline:auto;text-align:center;flex-wrap:wrap}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-sound-controls .dev3-setting-label{flex:0 1 auto;text-align:center}
html.dev3.r5 dialog.fortune-dialog.r5-dialog :is(.fortune-save-actions,.fortune-history){text-align:center}
html.dev3.r5 dialog.fortune-dialog.r5-dialog .fortune-save-actions{justify-content:center}
/* R24: homepage offerings remain one horizontal row at every breakpoint. */
html.dev3.r5 body.home-v21 #cards{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:88%!important;grid-template-rows:repeat(6,auto)!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
html.dev3.r5 body.home-v21 #cards>article.card{min-width:0;scroll-snap-align:start}
html.dev3.r5 body.home-v21 #cards+.topic-controls{display:flex!important}
@media(min-width:768px){html.dev3.r5 body.home-v21 #cards{grid-auto-columns:calc((100% - 20px) / 2)!important;column-gap:20px!important}}
@media(min-width:1024px){html.dev3.r5 body.home-v21 #cards{grid-auto-columns:calc((100% - 48px) / 3)!important;column-gap:24px!important}}

/* R26: switch tracks have a thumb, never a visible decorative emoji. */
html.dev3.r5 body button.dev3-ios-switch>:is(.theme-button-icon,.button-emoji,.r5-button-emoji){display:none!important}
/* Compact notification rows: min-height includes padding, rather than adding it. */
html.dev3.r5 dialog.header-inbox-dialog.r5-dialog>.header-inbox-body{padding-block:14px!important}
html.dev3.r5 .header-inbox-body>.header-inbox-total{margin-bottom:10px}
html.dev3.r5 .header-inbox-body>.header-inbox-item{margin-bottom:8px}
html.dev3.r5 .header-inbox-body>.header-inbox-item:last-child{margin-bottom:0}
html.dev3.r5 .header-inbox-details>summary{box-sizing:border-box;min-height:52px;padding:12px 14px;gap:10px}
html.dev3.r5 .header-inbox-details>summary .header-inbox-title{line-height:1.45}
/* Generic page details spacing must not create a blank strip above a notification. */
html.dev3.r5 .header-inbox-item>.header-inbox-details{margin:0}

/* R28: reveal only after presentation is ready; bootstrap has a 4s failure fallback.
   No JavaScript / failed bootstrap leaves the document visible. No entrance delay. */
html.dev3.r5[data-r5-boot=loading] body{visibility:hidden}
html.dev3.r5[data-r5-boot=loading]::after{content:"載入中…";position:fixed;inset:0;display:grid;place-items:center;background:#f7f3e9;color:#70542b;font:16px/1.5 system-ui;z-index:2147483647}
