@import url('data:text/css,');
:root{--green:#28664e;--deep:#204a3b;--mint:#e7efe6;--yellow:#f4c965;--paper:#faf9f3;--ink:#293f36;--muted:#657267;--line:#dfe5da;--red:#a84432;--radius:24px;font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:18px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #bd8400}button{cursor:pointer;min-height:46px;border:0;border-radius:13px;background:var(--green);color:white;padding:11px 20px;font-weight:700;transition:transform .15s,background .15s}button:hover{background:var(--deep);transform:translateY(-1px)}button:disabled{opacity:.5;cursor:wait;transform:none}button.secondary{background:white;color:var(--green);border:1px solid var(--line)}button.soft{background:var(--mint);color:var(--green)}button.danger{background:#f8e9e4;color:var(--red)}button.small{font-size:.85rem;padding:8px 13px;min-height:44px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#fffef9;padding:30px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line);position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;color:var(--deep);font-weight:900;line-height:1.45;letter-spacing:.02em}.brand b{font-size:1.05rem}.brand small{display:block;font-size:.66rem;letter-spacing:.12em;color:var(--muted)}.brand-icon{width:49px;height:49px;background:var(--green);color:white;display:grid;place-items:center;border-radius:17px;font-size:1.6rem}.nav{display:grid;gap:8px;margin:36px 0}.nav button{background:none;color:var(--muted);text-align:left;font-weight:500;padding:13px 15px}.nav button.active{background:var(--mint);color:var(--deep);font-weight:800}.nav button span{display:inline-block;width:32px}.side-bottom{margin-top:auto;padding:18px 8px;border-top:1px dashed var(--line);font-size:.78rem;line-height:1.8;color:var(--muted)}.main{min-width:0;padding:0 40px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:96px;border-bottom:1px solid var(--line);margin-bottom:32px;font-size:.85rem}.profile{display:flex;gap:12px;align-items:center}.avatar{width:44px;height:44px;border-radius:50%;background:#f5d893;display:grid;place-items:center;font-size:1.4rem}.muted{color:var(--muted)}.caption,.eyebrow{font-size:.78rem;color:var(--muted);line-height:1.7}.eyebrow{letter-spacing:.09em;font-weight:700}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.page-title{margin:0 0 8px;font-size:1.8rem;letter-spacing:.01em}.subtitle{color:var(--muted);margin:0 0 25px;line-height:1.7}.hero{background:#e8eee1;border:1px solid #dce6d5;border-radius:30px;padding:32px 36px;position:relative;overflow:hidden;display:grid;grid-template-columns:1.25fr 1fr;min-height:260px;margin-bottom:24px}.hero h1{font-size:2.25rem;line-height:1.5;margin:12px 0}.hero p{color:#526452;line-height:1.8;margin-bottom:0}.hero-art{position:relative;min-height:200px;display:grid;place-items:center}.tree{position:relative;width:125px;height:145px;border-radius:58% 58% 45% 45%;background:#76a87a;box-shadow:58px 30px 0 -7px #aec69b,-55px 35px 0 -17px #477c56;z-index:1;transform:rotate(-4deg)}.tree:before{content:'';position:absolute;width:17px;height:95px;background:#a57b55;bottom:-45px;left:56px;border-radius:9px}.tree:after{content:'˘ ◡ ˘';color:#244b34;position:absolute;top:60px;left:25px;letter-spacing:3px;font-size:24px}.sun{position:absolute;width:62px;height:62px;background:#efc25d;border-radius:50%;right:20px;top:3px}.ground{position:absolute;width:290px;height:45px;background:#cedcbc;border-radius:50%;bottom:0}.floatcoin{position:absolute;border:5px solid #e5af38;background:#f8d978;border-radius:50%;width:49px;height:49px;display:grid;place-items:center;color:#8b6822;font-weight:900;z-index:2;bottom:20px;right:30px;transform:rotate(15deg)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px 25px}.stat.primary{background:var(--green);color:white;border-color:var(--green)}.stat .label{font-size:.85rem;margin-bottom:10px}.stat .number{font-weight:850;font-size:2rem;line-height:1.3}.stat .caption{margin-top:9px}.stat.primary .caption{color:#dbe8da}.coin{display:inline-grid;place-items:center;background:#f5d078;border:2px solid #e2b84f;color:#745719;width:25px;height:25px;border-radius:50%;font-size:.75rem;margin-right:5px;font-weight:800}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 18px;gap:12px}.section-head h2{font-size:1.3rem;margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.filters button{background:transparent;color:var(--muted);border:1px solid var(--line);font-size:.85rem;padding:9px 17px}.filters button.active{background:var(--green);border-color:var(--green);color:white}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product{border:1px solid var(--line);border-radius:22px;background:white;overflow:hidden;display:flex;flex-direction:column}.product-image{height:175px;display:grid;place-items:center;font-size:4.4rem;background:#efeee3;position:relative}.product:nth-child(3n+2) .product-image{background:#e9eee4}.product:nth-child(3n) .product-image{background:#f5ead9}.product-image img{width:100%;height:100%;object-fit:contain}.product-image .badge{position:absolute;left:12px;top:12px}.product-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}.product-body h3{font-size:1.05rem;margin:0}.product-body p{font-size:.82rem;color:var(--muted);line-height:1.7;margin:0}.product-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:12px}.price{color:var(--green);font-weight:850;font-size:1.2rem}.badge{display:inline-block;font-size:.7rem;border-radius:8px;padding:5px 9px;background:#fffdf5;color:#5e6759;border:1px solid #e4e8de}.badge.green{background:var(--mint);color:var(--green)}.panel{border:1px solid var(--line);border-radius:22px;background:white;padding:24px;margin:16px 0}.empty{padding:45px 20px;text-align:center;color:var(--muted);line-height:1.9;background:white;border:1px dashed var(--line);border-radius:22px}.notice{padding:14px 18px;border-radius:15px;background:#fbefcf;color:#71571e;font-size:.85rem;line-height:1.8;margin:15px 0}.notice.error{background:#f9e9e4;color:var(--red)}.notice.info{background:#e8efe9;color:var(--green)}.item{padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;justify-content:space-between;align-items:center}.item:last-child{border-bottom:0}.item h3{font-size:1rem;margin:0 0 7px}.item p{margin:0;font-size:.82rem;color:var(--muted);line-height:1.7;white-space:pre-line}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:8px;margin:12px 0}.field label{font-size:.85rem;font-weight:700}.field.full{grid-column:1/-1}input,textarea,select{background:white;color:var(--ink);border:1px solid #ccd6ca;border-radius:12px;padding:12px;width:100%;min-height:48px}textarea{min-height:100px;resize:vertical}.check{display:flex;gap:9px;align-items:center;min-height:44px;font-size:.9rem}.check input{width:20px;min-height:20px;accent-color:var(--green)}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:.82rem}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-weight:600;background:#f5f7f1}td input[type=number]{width:110px}td input[type=checkbox]{width:22px;min-height:22px}dialog{border:0;border-radius:25px;max-width:650px;width:calc(100% - 30px);padding:28px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#1a342b80;backdrop-filter:blur(3px)}dialog h2{margin:0 0 15px;font-size:1.4rem}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{background:#e6eede;padding:60px;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font-size:2.7rem;line-height:1.5}.login-art .hero-art{min-height:260px;margin:20px}.login-form{padding:50px;max-width:550px;margin:auto;width:100%}.login-form h2{font-size:1.8rem}.loading{padding:100px 20px;text-align:center}.fullbutton{width:100%;margin-top:15px}.code-input{letter-spacing:.13em;font-size:1.25rem;font-family:monospace;text-transform:uppercase}.print-sheet{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--deep);color:white;border-radius:15px;padding:15px 22px;z-index:1000;max-width:90vw;box-shadow:0 6px 30px #0002;display:none;font-size:.9rem}.positive{color:var(--green);font-weight:800}.negative{color:var(--red);font-weight:800}.feature-links{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.feature-links button{background:white;color:var(--green);border:1px solid var(--line);padding:22px 10px}.feature-links button b{display:block;font-size:1.5rem;margin-bottom:8px}.security-note{font-size:.75rem;color:var(--muted);line-height:1.9;margin-top:25px}.mobile-brand{display:none}.nowrap{white-space:nowrap}
@media(min-width:1550px){.main{max-width:1420px;width:100%;margin:auto}.products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.main{padding:0 25px 30px}.sidebar{padding:25px 13px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:26px}.hero h1{font-size:1.9rem}.hero-art{transform:scale(.85)}.stat{padding:20px}.login-art{padding:40px}}
@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;border-right:0;padding:18px 18px 0}.brand small{font-size:.65rem}.sidebar .nav{display:flex;overflow:auto;margin:18px 0 0;gap:5px;padding-bottom:10px}.nav button{white-space:nowrap;padding:10px 12px;font-size:.82rem}.nav button span{width:25px}.side-bottom{display:none}.main{padding:0 18px 30px}.topbar{min-height:78px;margin-bottom:20px}.topbar .welcome{display:none}.profile{gap:8px;font-size:.8rem}.hero{grid-template-columns:1fr;min-height:0;padding:25px}.hero h1{font-size:1.7rem;position:relative;z-index:2}.hero-art{position:absolute;width:150px;height:150px;min-height:0;right:-25px;bottom:-25px;transform:scale(.62);opacity:.35}.hero p{max-width:85%;position:relative;z-index:2;font-size:.9rem}.stats{gap:10px;grid-template-columns:1fr 1fr}.stats .stat:first-child{grid-column:1/-1}.stat{padding:20px}.stat.primary{display:grid;grid-template-columns:1fr auto;align-items:center}.stat.primary .caption{grid-column:1/-1}.stat .number{font-size:1.65rem}.products{gap:12px}.product-image{height:135px;font-size:3.4rem}.product-body{padding:14px;gap:9px}.product-body h3{font-size:.95rem}.product-foot{align-items:flex-start;gap:8px;flex-direction:column}.product-foot button{width:100%}.price{font-size:1.05rem}.badge{font-size:.68rem}.page-title{font-size:1.6rem}.form-grid{grid-template-columns:1fr}.panel{padding:18px}.item{align-items:flex-start;flex-wrap:wrap}.login{display:block}.login-art{padding:25px}.login-art h1{font-size:1.8rem;margin-bottom:0}.login-art .hero-art,.login-art .security-note{display:none}.login-form{padding:25px}.feature-links{gap:9px}.feature-links button{font-size:.8rem;padding:16px 5px}.topbar select{max-width:140px;font-size:.8rem}.filters{gap:7px}.filters button{padding:8px 12px}.form-grid .field.full{grid-column:auto}}
@media(max-width:350px){.products{grid-template-columns:1fr}.product-foot{flex-direction:row;align-items:center}.product-foot button{width:auto}.main{padding:0 12px 25px}.topbar{flex-wrap:wrap;padding:10px 0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4;margin:10mm}body{background:white;font-size:12pt}.shell,.login,#toast,dialog{display:none!important}.print-sheet{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:53mm;gap:2mm}.ticket{border:1px dashed #666;padding:4mm;break-inside:avoid;text-align:center}.ticket h3{font-size:13pt;margin:0 0 3mm}.ticket .ticket-code{font-size:14pt;font-family:monospace;font-weight:bold;margin:3mm 0}.ticket p{font-size:10pt;line-height:1.5;margin:1mm}.ticket:nth-child(10n){break-after:page}}

/* Management-only hover panel; touch and keyboard users can toggle it. */
.managed-product{position:relative;overflow:visible}.managed-product.insights-visible{z-index:20}.managed-product .product-image{border-radius:22px 22px 0 0;overflow:hidden}.product-insights{position:relative}.insight-toggle{width:100%;margin-top:6px}.insight-panel{position:absolute;top:100%;left:0;width:clamp(280px,34vw,440px);max-width:calc(100vw - 48px);max-height:65vh;overflow:auto;z-index:30;background:#fff;border:1px solid #a9c7b4;border-radius:18px;padding:20px;box-shadow:0 12px 36px #163c2a30;color:var(--ink);font-size:1rem;line-height:1.6}.insight-panel[hidden]{display:none}.insight-panel h4{margin:0 0 12px;font-size:1rem}.insight-panel h4:not(:first-child){margin-top:18px}.insight-panel p{font-size:.9rem;line-height:1.6;overflow-wrap:anywhere}.insight-panel dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px;margin:12px 0;font-size:.9rem}.insight-panel dt{color:var(--muted)}.insight-panel dd{margin:0;overflow-wrap:anywhere}.insight-delivery,.insight-description{white-space:pre-line}.insight-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.insight-counts div{background:#eef5ed;border-radius:10px;padding:10px;font-size:.88rem}.insight-counts strong{display:block;font-size:1.4rem;color:var(--green)}.insight-orders{padding-left:18px;margin:8px 0;font-size:.9rem}.insight-orders li{margin-bottom:9px}.insight-orders small{display:block;color:var(--muted);font-size:.88rem}.products .managed-product:last-child .insight-panel{left:auto;right:0}
@media(max-width:760px){.insight-panel{position:static;width:100%;max-width:100%;max-height:65vh;margin-top:10px;padding:14px}.insight-panel dl{grid-template-columns:85px minmax(0,1fr)}}

.announcement-preview{white-space:pre-wrap;overflow-wrap:anywhere}.card-user-list{max-height:260px;overflow:auto;margin:14px 0;border:1px solid var(--line);padding:10px;border-radius:12px}.card-user-list [hidden]{display:none}.credential-ticket{text-align:left}.credential-ticket b{font-family:monospace;font-size:12pt}.credential-url{overflow-wrap:anywhere;font-size:8pt!important;line-height:1.3!important}@media print{.credential-sheet{grid-auto-rows:65mm}.credential-ticket:nth-child(10n){break-after:auto}.credential-ticket:nth-child(8n){break-after:page}}

.credential-qr{width:30mm;height:30mm;float:right;margin:0 0 2mm 3mm;background:#fff}.credential-qr svg{width:100%;height:100%;display:block}.credential-url{clear:both}@media print{.credential-sheet{grid-auto-rows:83mm}.credential-ticket:nth-child(8n){break-after:auto}.credential-ticket:nth-child(6n){break-after:page}}

.credential-ticket{position:relative;padding:4mm;font-size:10pt}.credential-ticket h3{font-size:13pt;margin:0 0 2mm}.credential-ticket>strong{font-size:11pt}.credential-ticket p{font-size:10pt;line-height:1.35;margin:2mm 0}.credential-person{padding-right:32mm;min-height:32mm}.credential-ticket .credential-qr{position:absolute;top:18mm;right:4mm;width:28mm;height:28mm;float:none;margin:0}.credential-ticket .credential-url{font-size:8pt;line-height:1.3;overflow-wrap:anywhere}.credential-ticket b{overflow-wrap:anywhere}

.redemption-status{font-weight:700!important;font-size:.88rem!important;line-height:1.6!important}.redemption-status.available{color:#28664e!important}.redemption-status.unavailable{color:#9d382a!important}.product-foot [data-buy]{min-height:52px;font-size:1rem;padding:13px 18px}


/* Constrain portrait photos: intrinsic grid sizing must not cover redemption controls. */
.product-image{height:150px;min-height:0;flex:0 0 150px;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate}.product-image img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;z-index:0}.product-image .badge{z-index:1}.product-body{position:relative;min-width:0}.product-foot{gap:10px;flex-wrap:wrap}.product-foot [data-buy]{flex:1 0 auto}@media(max-width:760px){.product-image{height:120px;flex-basis:120px}}

.honor-badge{display:inline-block;font-size:.75rem;font-weight:700;color:#74511c;background:#fff0bf;border:1px solid #eacb79;border-radius:999px;padding:3px 9px;vertical-align:middle;line-height:1.5}.store-section{margin:24px 0;padding:20px;border:2px solid #b9d6bd;border-radius:24px}.auction-section{background:#fbf5eb;border-color:#d9b9e2}.auction-section .section-head h2{color:#704c79}.auction-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.auction-recent ol{list-style:none;padding:0}.auction-recent li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:10px 0;border-bottom:1px solid #e8ddeb}.auction-recent small{width:100%;color:var(--muted)}.title-setting-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:12px 0}.donation-record{padding:16px 0;border-bottom:1px solid #d9e4d9}@media(max-width:760px){.store-section{padding:12px}.title-setting-row{grid-template-columns:1fr}.welcome{white-space:normal}}

/* Keep every navigation item reachable on short desktop viewports. */
@media(min-width:761px){.sidebar{height:100vh;height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin}.sidebar>.brand,.sidebar>.nav,.sidebar>.side-bottom{flex-shrink:0}.sidebar .nav{grid-auto-rows:minmax(46px,auto)}}
