:root{--red:#D64F37;--cream:#F5E5C5;--cream2:#F4EEE2;--brown:#50371C;--terra:#D27C61;--mute:#7A5E3C;--line:#E3D3B3}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream2);color:var(--brown);font:16px/1.6 -apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}
main{max-width:480px;margin:0 auto;min-height:100vh;background:var(--cream2);padding-bottom:env(safe-area-inset-bottom)}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
.loading{padding:40px 20px;text-align:center;color:var(--mute)}
.top{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--cream);position:sticky;top:0;z-index:2}
.top .back{font-size:30px;line-height:1;text-decoration:none;padding:0 8px 4px 2px;color:var(--brown)}
.top .wordmark{height:34px;width:auto}
.hero-head{background:var(--cream);text-align:center;padding:28px 20px 26px;border-radius:0 0 28px 28px}
.hero-head .stamp{width:84px;height:84px;margin:0 auto 8px}
.hero-head .wordmark.big{width:180px;height:auto;margin:0 auto}
.tagline{margin:8px 0 0;font-size:15px;color:var(--mute);font-weight:500}
.tiles{display:flex;flex-direction:column;gap:12px;padding:20px 16px 4px}
.tile{display:flex;align-items:center;gap:12px;background:#fff;border-radius:16px;padding:10px 12px 10px 10px;text-decoration:none;box-shadow:0 1px 4px rgba(80,55,28,.12)}
.tile img{width:104px;height:68px;object-fit:cover;border-radius:10px;flex:0 0 auto}
.tile .t{display:flex;flex-direction:column;min-width:0;flex:1}
.tile em{font-style:normal;font-size:11px;font-weight:700;color:var(--red);letter-spacing:.08em}
.tile b{font-size:17px;line-height:1.3}
.tile small{white-space:pre-line;font-size:12px;color:var(--mute);line-height:1.4}
.tile i{font-style:normal;font-size:26px;color:var(--terra)}
.pad{padding:16px}
.actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.actions.pad{margin-top:8px}
.row{display:flex;gap:10px}
.row .btn{flex:1}
.btn{display:block;text-align:center;text-decoration:none;font:inherit;font-weight:700;border:0;border-radius:12px;padding:13px 14px;cursor:pointer;color:#fff}
.btn.primary{background:var(--red)}
.btn.secondary{background:var(--terra)}
.btn.link{background:transparent;color:var(--brown);font-weight:500;padding:8px 6px;text-decoration:underline;text-underline-offset:3px}
.foot{padding:18px 16px 28px;text-align:center;font-size:12px;color:var(--mute)}
.card .cover{width:100%;aspect-ratio:20/13;object-fit:cover}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--red);margin-top:2px}
.card h1,.share h1{margin:2px 0 4px;font-size:26px;line-height:1.25}
.sub{white-space:pre-line;margin:0;color:var(--mute);font-size:15px}
.bullets{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:16px}
.bullets li{display:flex;flex-direction:column;padding-left:16px;position:relative}
.bullets li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--red)}
.bullets b{font-size:15px}.bullets span{font-size:13px;color:var(--mute)}
.flavors{margin:16px 0 0;font-size:14px;font-weight:700}
.flavors span{font-weight:400;color:#8A7A66;margin-right:10px;font-size:13px}
.facts{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.facts div{display:flex;gap:10px;font-size:14px}
.facts dt{flex:0 0 4.5em;color:#8A7A66;font-size:13px}.facts dd{margin:0;flex:1;word-break:break-all}
.items{list-style:none;margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.items a{display:flex;align-items:center;gap:12px;text-decoration:none}
.items img{width:64px;height:64px;border-radius:12px;object-fit:cover;flex:0 0 auto}
.items span{display:flex;flex-direction:column}.items b{font-size:15px;line-height:1.35}.items small{font-size:12px;color:var(--mute);line-height:1.4}
.pager{display:flex;justify-content:center;gap:6px;padding:8px 12px 28px;flex-wrap:wrap}
.pager a{font-size:13px;text-decoration:none;padding:7px 12px;border-radius:999px;background:#fff;color:var(--mute)}
.pager a.on{background:var(--brown);color:#fff}
.share .sub{font-size:14px}
.flexhost{margin:16px -16px 0;background:#2C241C;padding:16px 0 4px;border-radius:0}
.status{min-height:1.6em;margin:14px 0 0;font-size:14px;line-height:1.55;padding:0}
.status:not(:empty){padding:10px 12px;border-radius:10px;background:#fff}
.status[data-level=warn]{border-left:4px solid var(--terra)}.status[data-level=error]{border-left:4px solid #b3261e}.status[data-level=ok]{border-left:4px solid #2e7d32}
.hero-head .person-name{margin:8px 0 0;font-size:28px;line-height:1.25;color:var(--brown)}
.hero-head .role{margin:4px 0 12px;font-size:14px;color:var(--mute);font-weight:500}
.hero-head .wordmark.big{width:150px}
.mail{margin:4px 0 0;text-align:center;font-size:14px}
.mail a{color:var(--brown);text-underline-offset:3px}
.brand-header{background:var(--cream);text-align:center;padding:24px 20px 20px}
.brand-header .stamp{width:88px;height:88px;margin:0 auto 8px}
.brand-header .wordmark{width:168px;height:auto;margin:0 auto}
.identity{display:flex;align-items:center;gap:14px}
.identity .portrait{width:88px;height:88px;border-radius:12px;object-fit:cover;flex:0 0 auto}
.identity .who{min-width:0;flex:1}
.identity h1{margin:0;font-size:28px;line-height:1.25}
.identity .role{margin:4px 0 0;font-size:14px;color:var(--mute);line-height:1.45}
hr.accent{border:0;height:2px;width:100%;background:var(--red);margin:16px 0 14px;opacity:.85}
.headline{margin:0 0 6px;font-size:18px;font-weight:700;line-height:1.4}
.card.profile .facts{margin-top:14px;padding-top:0;border-top:0}
.card.profile .actions{margin-top:18px}
.brand-header{position:relative}
.brand-header .back{position:absolute;left:8px;top:8px;font-size:30px;line-height:1;text-decoration:none;padding:4px 10px;color:var(--brown)}
/* Reference-style bubble cards (dark header + white body) */
.btn.primary{background:#50371C}
.btn.link{text-decoration:none;font-weight:500;text-align:center;color:#50371C}
.stage{background:#2C241C;min-height:100vh;padding:12px 16px 28px;display:flex;flex-direction:column;align-items:center}
.stage .back-light{align-self:flex-start;color:#F5E5C5;font-size:30px;line-height:1;text-decoration:none;padding:0 6px 10px;font-weight:400}
.bubble{width:100%;max-width:340px;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.35)}
.bubble-header{background:#50371C;padding:12px 14px 14px}
.logo-plate{display:inline-flex;align-items:center;background:#F5E5C5;border-radius:6px;padding:4px 8px}
.logo-plate img{height:22px;width:auto;display:block}
.bubble-header .h-title{margin:10px 0 0;color:#F8F0E4;font-size:16px;font-weight:700;line-height:1.35}
.id-row{margin-top:12px}
.id-row.has-photo{display:flex;align-items:center;gap:12px}
.id-row .portrait{width:64px;height:64px;border-radius:6px;object-fit:cover;flex:0 0 64px}
.id-row .who{min-width:0;flex:1}
.id-row h1{margin:0;font-size:22px;line-height:1.2;color:#F8F0E4;font-weight:700}
.id-row .role{margin:4px 0 0;font-size:12px;line-height:1.4;color:#D4C4A8}
.bubble-body{background:#fff;padding:0}
.bubble-body hr.accent{border:0;height:1px;background:#D64F37;margin:0;width:100%}
.bubble-body .inner{padding:16px 20px 20px}
.bubble-body .headline{margin:0;font-size:16px;font-weight:700;line-height:1.4;color:#50371C}
.bubble-body .desc{margin:6px 0 0;font-size:13px;color:#7A5E3C;line-height:1.55;white-space:pre-line}
.bubble-body .desc.lead{margin:0 0 4px}
.bubble-body .co{margin:16px 0 6px;font-size:19px;font-weight:700;color:#50371C;line-height:1.4}
.bubble-body .cline{margin:0;font-size:13px;color:#7A5E3C;line-height:1.6}
.bubble-body .cline a{color:inherit;text-decoration:none}
.bubble-body .actions{margin-top:20px}
.bubble-body .bullets{margin-top:12px;padding-top:0;border-top:0}
.stage .pager{padding:16px 0 8px}
.stage .pager a{background:#3F352C;color:#D4C4A8}
.stage .pager a.on{background:#F5E5C5;color:#50371C}
.share-page{min-height:100vh;background:#2C241C;color:#F8F0E4}
.share-page .top{background:#2C241C;color:#F8F0E4}
.share-page .top .back{color:#F5E5C5}
.share-page .top-label{font-weight:700;font-size:15px}
.share-page .share h1{display:none}
.share-page .sub{color:#D4C4A8}
.flexhost{background:#2C241C;margin:16px -16px 0}
body:has(.stage), body:has(.share-page){background:#2C241C}
main:has(.stage), main:has(.share-page){max-width:none;background:#2C241C}
.bubble-body .items{border-top:0;padding-top:0;margin-top:14px}
.bubble-body .logo-plate img{height:24px}
.bubble-header .header-stamp{display:block;width:48px;height:48px;border-radius:50%}
.bubble-body .bullets.compact{margin:14px 0 0;gap:10px}
.bubble-body .bullets.compact li span{display:block}
