/* Approved seven-day homepage/detail design, scoped to new components. */
.topbar .nav-links{margin-left:clamp(12px,3vw,70px);gap:clamp(14px,2.6vw,44px);flex:1;justify-content:center;min-width:0}
.pg-wallet-entry{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;border:1px solid #b59458;border-radius:30px;background:rgba(230,210,165,.035);padding:9px 16px;color:#e4c58d;font-size:14px;font-family:inherit;white-space:nowrap;cursor:pointer;position:relative;z-index:1}
.pg-wallet-entry b{font-weight:500}.pg-coin{font:20px Georgia,serif}.pg-wallet-topup{border-left:1px solid #ae8a4b66;padding-left:10px}
.pg-home{margin-top:24px;padding:21px 0 0;border-top:1px solid #b18a5140;color:#66503a}.pg-home-head{display:flex;align-items:center;gap:18px}.pg-home-head h2,.pg-page h2{font-size:22px;font-weight:500;letter-spacing:2px;margin:0;display:flex;align-items:center;gap:10px;white-space:nowrap}.pg-home svg,.pg-page h2 svg{width:18px;height:18px;fill:#b18b50;flex-shrink:0}.pg-home-head p{font-size:12px;line-height:1.7;margin:0;min-width:0;flex:1;overflow-wrap:anywhere}.pg-home-head .text-button{float:none;flex-shrink:0;font-size:12px}
.pg-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:24px 0 13px}.pg-day{text-align:center;position:relative;min-width:0}.pg-day:after{content:"";height:1px;background:#b28c5840;position:absolute;top:24px;left:calc(50% + 25px);width:calc(100% - 40px)}.pg-day:last-child:after{display:none}.pg-day i{width:46px;height:46px;margin:0 auto 9px;border:1px solid #b78e5666;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:19px;color:#907043;background:#fffaf366;position:relative;z-index:1}.pg-day.is-signed i{border-color:#a77a36;background:#fffaf2d9}.pg-day i b{width:12px;height:12px;border-radius:50%;background:#966523;outline:1px solid #b18548;outline-offset:4px}.pg-day.is-done i{color:#ad4a37;border-color:#ad4a3777}.pg-day.is-done i:before{content:"";position:absolute;inset:5px;border:1px solid #ad4a37;border-radius:50%}.pg-day.is-today i{box-shadow:0 0 0 5px #dfbd7133,0 0 0 8px #f4e2b125;border-color:#ad7d37}.pg-day>span,.pg-day>small{display:block;white-space:nowrap}.pg-day>span{font-size:14px;color:#4b3928}.pg-day>small{font-size:12px;margin-top:5px;color:#946c3c}.pg-day em{display:block;font-size:11px;font-style:normal;color:#98733f;margin-top:5px}
.pg-home-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:8px;font-size:12px;flex-wrap:wrap}.pg-home-foot small{font-size:11px;color:#94806c}.pg-sign{min-width:166px;border-radius:28px!important;background:linear-gradient(140deg,#fffaf3d9,#f0e0c966)!important;border:1px solid #b28a50!important;padding:10px 21px!important;color:#78552e!important;box-shadow:0 3px 7px #9b7b4320;font-size:15px!important}
.home-scene .bottom-grid{display:block}.home-scene .bottom-grid .wish-card{min-height:104px}.home-scene .bottom-grid .wish-card h2{float:left;margin-right:28px}.home-scene .bottom-grid .wish-card>p{max-width:75%;font-size:13px}.home-scene .bottom-grid .wish-card button{margin-top:-38px}
.pg-page{max-width:1460px;margin:auto;padding:0 12px 40px;color:#4c3825}.pg-back{float:none!important;padding:8px 0}.pg-hero{text-align:center;margin:0 0 26px}.pg-hero h1{font-size:46px;letter-spacing:7px;font-weight:500;margin:0 0 10px}.pg-hero h1 .seal{font-size:20px;letter-spacing:0;vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;width:34px;height:38px}.pg-hero p{font-size:18px;color:#96703e;letter-spacing:4px;margin:0}.pg-hero p i{display:inline-block;vertical-align:middle;width:36px;height:1px;background:#bf9a63;margin:0 14px}
.pg-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.pg-main,.pg-aside{display:grid;gap:18px;min-width:0}.pg-page .glass-panel{position:relative;padding:25px 28px;border:1px solid #fffaf5;border-radius:20px;background:linear-gradient(135deg,#fffcf5d4,#faf4e8aa);backdrop-filter:blur(8px);box-shadow:0 5px 15px #78552b12,inset 0 0 0 5px #fffdf977,inset 0 0 0 6px #b8966530}.pg-wish{display:flex;align-items:center;gap:24px;padding:21px 28px!important}.pg-wish>span{font-size:14px;letter-spacing:2px;white-space:nowrap;color:#967044;border-right:1px solid #b28a5140;padding-right:20px}.pg-wish>b{font-size:18px;font-weight:400;flex:1;overflow-wrap:anywhere}.pg-wish button{float:none;font-size:12px;flex-shrink:0}
.pg-section-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.pg-section-head>span:not(.pg-chip){font-size:12px;color:#8b7760}.pg-section-head>small{margin-left:auto;color:#967042;font-size:12px}.pg-legend{display:flex;gap:15px;margin-left:auto;font-size:12px;color:#8f765a}.pg-red{color:#a94a38!important}.pg-cycle .pg-days{padding:34px 0 0}.pg-cycle .pg-day i{width:44px;height:44px}.pg-chip{border:1px solid #b78c5833;background:#f6e9ce99;border-radius:8px;padding:4px 9px;font-size:12px;white-space:nowrap}
.pg-action-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px;margin-top:24px}.pg-action-intro{display:flex;gap:20px;align-items:center}.pg-action-intro>i{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:66px;height:66px;border:1px solid #b38a50;border-radius:50%;font-size:28px;font-style:normal;color:#a77a40}.pg-action-intro h3{font-size:23px;font-weight:500;letter-spacing:1px;margin:0 0 10px}.pg-action-intro p{font-size:15px;line-height:1.9;margin:0 0 7px}.pg-action-intro small{color:#8c7963;font-size:12px;line-height:1.8}.pg-task{position:relative;border:1px solid #c6a87733;background:#f4e7ce22;border-radius:10px;padding:16px 20px;margin-top:22px}.pg-task>span{font-size:13px;letter-spacing:2px}.pg-task p{font-size:15px;line-height:1.9;margin:7px 0}.pg-task button{float:right;font-size:12px}.pg-task small{font-size:11px;color:#9c8a73}.pg-page textarea,.pg-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #a48a6233;border-radius:8px;background:#fffdf775;color:#4c3825;padding:13px 15px;font-size:14px;line-height:1.8;font-family:inherit;resize:vertical;min-height:100px}.pg-page textarea:focus,.pg-dialog textarea:focus{outline:2px solid #b9925555;outline-offset:2px}.pg-page form>label{display:block;margin-bottom:8px;font-size:14px}.pg-note-count{text-align:right;font-size:11px;color:#9e8a74;margin-top:-24px;padding:0 10px 12px;position:relative;pointer-events:none}.pg-action-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.pg-action-buttons button{flex:1;white-space:nowrap;padding:11px 14px;font-size:13px}.pg-primary{background:linear-gradient(135deg,#b18b58,#82603a)!important;color:#fff8e8!important;border:1px solid #c8a06c!important;box-shadow:inset 0 1px #fff5,0 3px 6px #72502522}.pg-action-note{display:block;color:#9a8a74;font-size:11px;margin-top:12px;line-height:1.8}.pg-page button:disabled{opacity:.48;cursor:default}
.pg-history{margin-top:20px}.pg-history-row{display:grid;grid-template-columns:48px 62px 24px 150px minmax(0,1fr);gap:12px;align-items:center;padding:10px 4px;border-bottom:1px solid #b48e5625;font-size:12px;position:relative}.pg-history-row time{font-size:11px;color:#9a8973}.pg-history-row i{font-style:normal;font-size:17px;color:#ae8a53}.pg-history-row i.is-done{color:#ad4a37}.pg-history-row>b{font-weight:400;background:#b3967220;padding:4px 9px;border-radius:7px;color:#89785d;font-size:11px}.pg-history-row.is-today{background:#ead8b344;border-radius:8px}.pg-history-row p{margin:0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.pg-history-row small{color:#9b876e;display:block;margin-top:6px;overflow-wrap:anywhere}.pg-past{float:none;display:block;margin-top:14px}
.pg-aside{padding-top:24px}.pg-aside h2{font-size:22px}.pg-sign-result{display:flex;gap:20px;align-items:center;margin:30px 0}.pg-sign-seal{border:3px double #b28c53;border-radius:50%;width:105px;height:105px;display:flex;align-items:center;justify-content:center;font-size:19px;white-space:nowrap;flex-shrink:0;box-shadow:0 0 0 5px #ddc39922}.pg-sign-result strong{font-size:36px;font-weight:400;color:#986a2c;white-space:nowrap}.pg-sign-result strong small{font-size:13px}.pg-sign-result p{font-size:14px;white-space:nowrap}.pg-tomorrow{border-top:1px solid #b48e5633;padding-top:20px;font-size:14px;text-align:center;margin:0}.pg-counts>p{display:flex;justify-content:space-between;font-size:17px;margin:24px 0}.pg-counts b{font-weight:400}.pg-counts details{border-top:1px solid #b48e5633;padding-top:16px;font-size:13px;color:#8c6c43;text-align:center}.pg-counts details p{font-size:12px;line-height:1.9;text-align:left;color:#8e7b60}.pg-review{text-align:center}.pg-review>i{display:block;font-style:normal;color:#bc975c;font-size:40px;margin:25px 0 18px}.pg-review>p{font-size:16px;line-height:2;margin:0 0 25px}.pg-review button{width:100%;font-size:13px}.pg-unavailable{padding:25px;color:#947047;font-size:14px;line-height:1.8}
.pg-dialog{border:1px solid #c2a575;border-radius:20px;background:linear-gradient(130deg,#fffcf6f5,#f1e8d9f2);color:#5d422a;box-shadow:0 18px 80px #20160944;padding:28px;max-width:min(620px,90vw);max-height:85vh;overflow:auto;backdrop-filter:blur(18px)}.pg-dialog::backdrop{background:#26211670;backdrop-filter:blur(5px)}.pg-dialog>header{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:20px}.pg-dialog h2{font-size:25px;margin:0;font-weight:400;letter-spacing:3px}.pg-dialog button{cursor:pointer}.pg-dialog .pg-primary{padding:12px 22px;border-radius:9px}.pg-dialog>label{display:block;margin:18px 0 10px}.pg-dialog>textarea{display:block;margin-bottom:18px}.pg-choices{display:grid;gap:10px}.pg-choices button{text-align:left;padding:14px}.pg-choices b{display:block;font-size:16px;font-weight:400}.pg-choices span{display:block;margin-top:6px;font-size:12px}.pg-success{text-align:center;padding:10px 50px 24px}.pg-success>i{display:flex;align-items:center;justify-content:center;border:2px double #b48b50;width:74px;height:74px;border-radius:50%;margin:0 auto 20px;font:32px serif;color:#a8713d}.pg-success>strong{display:block;font-size:40px;font-weight:400;color:#9a6f35}.pg-success strong small{font-size:14px;margin-left:8px}.pg-success p{font-size:14px}.pg-dialog:has(.pg-success)>button{display:block;width:100%}.pg-review-text{white-space:pre-wrap;line-height:2;font-size:14px;margin:20px 0;max-height:50vh;overflow:auto;overflow-wrap:anywhere}
@media(max-width:1200px){.pg-layout{grid-template-columns:minmax(0,1fr) 280px;gap:14px}.pg-page .glass-panel{padding:23px}.pg-action-layout{grid-template-columns:1fr}.pg-history-row{grid-template-columns:45px 55px 18px minmax(0,1fr)}.pg-history-row>div{grid-column:2/-1}.pg-legend{margin-left:0}.pg-sign-result{gap:10px}.pg-sign-seal{width:80px;height:80px;font-size:16px}.pg-sign-result strong{font-size:30px}.pg-home-head{flex-wrap:wrap}.pg-home-head p{order:3;flex-basis:100%}.pg-home-head .text-button{margin-left:auto}.pg-home-foot small{flex-basis:100%}.topbar .nav-link{font-size:15px;letter-spacing:1px}.pg-wallet-entry{padding:8px 10px;font-size:12px}}
@media(max-width:800px){.pg-layout{grid-template-columns:1fr}.pg-aside{padding:0;grid-template-columns:1fr 1fr}.pg-review{grid-column:1/-1}.pg-hero{margin-top:15px}.pg-hero h1{font-size:36px}.pg-hero p{font-size:14px;letter-spacing:2px}.pg-page .pg-wish{flex-wrap:wrap;gap:12px}.pg-wish>b{font-size:15px;min-width:160px}.pg-days{gap:3px}.pg-day i{width:35px;height:35px;font-size:15px}.pg-day:after{top:18px;left:calc(50% + 18px);width:calc(100% - 28px)}.pg-cycle .pg-day i{width:35px;height:35px}.pg-day>span{font-size:12px}.pg-day>small{font-size:10px}.pg-home-foot{font-size:11px}.pg-home-foot .pg-sign{min-width:140px}.home-scene .bottom-grid .wish-card h2{float:none}.home-scene .bottom-grid .wish-card button{margin-top:12px;float:none}.topbar .pg-wallet-entry{margin-left:auto}.pg-wallet-entry .pg-coin,.pg-wallet-topup{display:none}.topbar .nav-links{gap:12px;margin-left:0}.pg-history-row{gap:7px}.pg-home{margin-top:15px}.pg-home-head h2{font-size:20px}}
@media(max-width:520px){.pg-page{padding:0 0 30px}.pg-page .glass-panel{padding:20px 16px;border-radius:16px}.pg-aside{grid-template-columns:1fr}.pg-review{grid-column:auto}.pg-home-foot{justify-content:center}.pg-home-foot>span{flex-basis:100%;text-align:center}.pg-home-foot small{text-align:center}.pg-action-intro{gap:12px}.pg-action-intro h3{font-size:20px}.pg-action-intro>i{width:50px;height:50px;font-size:22px}.pg-action-intro p{font-size:14px}.pg-history-row{grid-template-columns:38px 48px 18px minmax(0,1fr)}.pg-history-row>b{font-size:10px;padding:4px}.pg-section-head>small{margin-left:0}.pg-success{padding:10px 20px 20px}.pg-hero h1{font-size:30px}.pg-wish>span{padding-right:10px}.pg-home-head h2{font-size:18px}.pg-home-head p{font-size:11px}}
/* Wallet and purchase confirmations share the homepage's ivory / antique gold materials. */
.commerce-dialog{border-color:#b59768;background:linear-gradient(140deg,#fffdf6f7,#f1e8d8f5);color:#59432e;box-shadow:0 18px 70px #251a1140}.commerce-dialog h2{font-weight:400;letter-spacing:2px;color:#513822}.commerce-dialog button{background:#fffcf5a8;color:#7e5c32;border-color:#c6aa7d}.commerce-dialog footer [data-yes]{background:linear-gradient(135deg,#af8a56,#805c35);color:#fff8e6}.pg-wallet-dialog{width:530px;max-width:90vw;padding:28px 30px;border-radius:22px}.pg-wallet-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b28a5133;padding-bottom:12px}.pg-wallet-head h2{margin:0;font-size:25px}.pg-wallet-head button{border:0;background:none;font-size:24px;padding:0 4px}.pg-wallet-balance{text-align:center;padding:25px 0 18px;border-bottom:1px solid #b28a5133}.pg-wallet-balance>span{display:block;font-size:12px;color:#9d8562;letter-spacing:3px}.pg-wallet-balance>strong{display:block;font-size:44px;font-weight:400;letter-spacing:1px;color:#5c3d1f;margin:9px 0}.pg-wallet-balance small{font-size:14px}.pg-wallet-balance>p{font-size:12px;color:#9d8562;margin:0}.pg-wallet-dialog h3{font-size:17px;font-weight:400;letter-spacing:2px;margin:22px 0 14px}.pg-topups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.pg-topups button{padding:17px 10px;margin:0;display:grid;gap:9px;border-radius:11px;transition:background .15s,border-color .15s}.pg-topups button:hover{border-color:#a0783c;background:#f1e0be66}.pg-topups b{font-size:22px;font-weight:400}.pg-topups span{font-size:12px;color:#a17c48}.pg-wallet-payment-note{font-size:11px;color:#a08a6c;line-height:1.8}.pg-wallet-dialog details{border-top:1px solid #b28a512b;padding:17px 0}.pg-wallet-dialog summary{cursor:pointer;font-size:15px;letter-spacing:1px}.pg-wallet-dialog details article{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #b28a5122;padding:14px 0}.pg-wallet-dialog article b{display:block;font-size:14px;font-weight:400}.pg-wallet-dialog article small{display:block;margin-top:6px;font-size:11px;color:#9e886d}.pg-wallet-dialog article strong{font-size:20px;font-weight:400;color:#5e4b37}.pg-wallet-dialog article .pg-positive{color:#a67638}.pg-wallet-lots p{font-size:12px;display:flex;gap:12px}.pg-wallet-lots p span{margin-left:auto;color:#9e886d}.pg-wallet-orders article button{padding:5px 8px;font-size:12px}@media(max-width:520px){.pg-wallet-dialog{padding:22px 18px}.pg-topups{gap:8px}.pg-topups b{font-size:19px}}
/* The previous homepage used a fixed-height daily card; the integrated timeline needs natural height. */
.home-scene .home-today{height:auto;min-height:219px;overflow:visible}
@media(max-width:860px){.topbar .nav-links{flex:0 0 100%;order:3;width:100%;margin:0;gap:14px;justify-content:flex-start;overflow-x:auto}.topbar .pg-wallet-entry{margin-left:auto}.home-scene .home-today{min-height:0}.pg-page{min-width:0}}
.pg-action-intro>i svg{width:34px;height:34px}
