*{box-sizing:border-box}
:root{--ink:#101828;--muted:#475467;--line:#E4E7EC;--bg:#fff;--soft:#F4F6F8;--accent:#0F766E;--accent-ink:#115E59}
body{margin:0;font-family:Inter,'Noto Sans TC','Noto Sans KR',system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
.wrap{max-width:640px;margin:0 auto;padding:12px 20px 40px;display:flex;flex-direction:column;gap:24px;min-height:100vh}
.stack{display:flex;flex-direction:column;gap:20px;flex:1}
h1,h2,h3{font-family:'Space Grotesk',Inter,'Noto Sans TC','Noto Sans KR',sans-serif;margin:0;line-height:1.2;letter-spacing:-.01em}
h1{font-size:32px}h2{font-size:20px}h3{font-size:17px}
p{margin:0}
a{color:var(--muted)}a:hover{color:var(--ink)}
.muted{color:var(--muted)}
.small{font-size:13px}
.warn-text{color:#93370D;font-weight:600}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.row.tight{gap:6px}
.between{justify-content:space-between}
.hidden{display:none !important}

/* Buttons */
button{font-family:inherit;cursor:pointer;min-height:44px;padding:0 16px;border-radius:10px;font-size:15px;font-weight:600;border:1px solid transparent;background:none;color:var(--ink)}
button:disabled{opacity:.45;cursor:not-allowed}
button.primary{background:var(--accent);color:#fff}
button.primary:hover{background:#115E59}
button.big{width:100%;min-height:52px;font-size:16px}
button.outline{border-color:var(--line);background:#fff}
button.outline:hover{border-color:#98A2B3}
button.text{padding:0 8px;color:var(--muted);font-weight:500}
button.text:hover{color:var(--ink)}
button.icon-btn{width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
button.back{display:inline-flex;align-items:center;gap:2px;padding-left:0}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Top bar */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:8px}
.brand{font-family:'Space Grotesk',Inter,sans-serif;font-size:18px;font-weight:700;padding:0}
select.lang{width:auto;min-height:44px;border:0;background:none;color:var(--muted);font-size:14px;padding:0 4px;cursor:pointer}

/* Forms */
label{font-size:14px;font-weight:500}
input,select{min-height:44px;border:1px solid #98A2B3;border-radius:10px;padding:0 12px;font-size:16px;font-family:inherit;color:var(--ink);background:#fff;width:100%}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid2 .field.narrow{max-width:100%}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:520px){.grid3{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}}
.check{display:flex;gap:10px;align-items:flex-start}
.check input{width:22px;height:22px;min-height:0;flex:none;margin:2px 0 0}
.check label{font-weight:400;color:#344054;font-size:14px}
.panel{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}

/* Home */
.hero{display:flex;flex-direction:column;gap:16px;padding-top:24px}
.hero h1{font-size:36px}
.searchbox{position:relative}
.searchbox svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--muted)}
.searchbox input{min-height:56px;padding-left:48px;border-radius:14px;font-size:17px;border-color:#D0D5DD;background:var(--soft)}
.searchbox input:focus{background:#fff}
.list{display:flex;flex-direction:column}
.item{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;min-height:64px;padding:12px 4px;border-radius:0;border-bottom:1px solid var(--line);font-weight:400}
.item:hover{background:var(--soft)}
.item-main{display:flex;flex-direction:column;min-width:0}
.item-main b{font-size:16px;font-weight:600}
.item-main .muted{font-size:14px}
.item svg{color:#98A2B3;flex:none}

/* Event */
.event-head{display:flex;flex-direction:column;gap:4px}
.seg{display:inline-flex;gap:4px;padding:4px;background:var(--soft);border-radius:12px;align-self:flex-start}
.seg button{min-height:40px;padding:0 14px;font-size:14px;color:var(--muted)}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(16,24,40,.08)}
.listing{display:flex;flex-direction:column;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.listing.is-done{opacity:.6}
.listing-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.listing-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.price{font-family:'Space Grotesk',Inter,sans-serif;font-size:22px;font-weight:700;white-space:nowrap}
.chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600}
.chip.sell{background:#E0F2F1;color:var(--accent-ink)}
.chip.buy{background:#E8EEFB;color:#1E3A8A}
.chip.meeting{background:#FFFAEB;color:#93370D}
.chip.done{background:var(--soft);color:#344054}
.chip.mine{background:var(--ink);color:#fff}
.empty{padding:24px 0}
.cta-bar{position:sticky;bottom:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,#fff 70%,rgba(255,255,255,0));display:flex;flex-direction:column;gap:8px}

/* Overflow menu */
details.menu{position:relative}
details.menu summary{list-style:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:var(--muted);cursor:pointer}
details.menu summary::-webkit-details-marker{display:none}
details.menu summary:hover{background:var(--soft)}
.menu-pop{position:absolute;left:0;top:48px;z-index:5;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(16,24,40,.12);padding:6px;display:flex;flex-direction:column}
.menu-item{justify-content:flex-start;text-align:left;font-weight:500;width:100%}
.menu-item:hover{background:var(--soft)}
.danger{color:#B42318}

/* Notes */
.note{border-radius:10px;padding:10px 14px;font-size:14px}
.note.err{background:#FEF3F2;color:#B42318}
.note.warn{background:#FFFAEB;color:#93370D}
.note.ok{background:#E0F2F1;color:var(--accent-ink)}
.note.info{background:var(--soft);color:var(--ink)}

footer{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:4px;padding-top:16px;border-top:1px solid var(--line)}
footer .text{min-height:32px;padding:0;font-size:13px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Show Day */
.showday{background:#101828;color:#fff;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:6px}
.event-head.showday{gap:6px}
.live{color:#FDB022;font-size:13px;font-weight:700;letter-spacing:.06em;margin:0}
.event-head .sub{color:var(--muted)}
.showday .sub{color:#D0D5DD}
.showday .warn-text{color:#FDB022}
.sd-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;min-height:60px;padding:10px 0;border-radius:0;border-bottom:1px solid #344054;color:#fff;font-weight:400}
.sd-item:last-child{border-bottom:0}
.sd-item .item-main span{color:#D0D5DD;font-size:14px}
.sd-count{flex:none;font-size:13px;font-weight:600;color:#101828;background:#FDB022;border-radius:999px;padding:4px 10px}
.list-title{font-size:15px;color:var(--muted);font-family:Inter,'Noto Sans TC','Noto Sans KR',sans-serif;font-weight:600;margin-top:20px}

/* Tabs and posts */
.small-search input{min-height:48px;font-size:16px}
.swap-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.swap-row>div{background:var(--soft);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column}
.swap-row svg{color:var(--accent)}
.mine-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.mine-row .item-main b{font-weight:500}
.outline-link{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:10px;font-weight:600;color:var(--ink);text-decoration:none}
details.collapse summary{cursor:pointer;font-weight:600;min-height:28px;display:flex;align-items:center}
button.outline{border-color:var(--line);background:#fff}

/* Bottom tab bar */
body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;padding:4px 2px;border-radius:0;font-size:11px;font-weight:500;color:var(--muted)}
.tabbar button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tabbar button.on{color:var(--accent)}
.cta-bar{bottom:calc(60px + env(safe-area-inset-bottom))}
@media (min-width:700px){.tabbar{left:50%;right:auto;transform:translateX(-50%);width:640px;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0}}

/* Multi-date concerts */
.dates{display:flex;gap:6px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.dates::-webkit-scrollbar{display:none}
.dates button{flex:none;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:14px;font-weight:500}
.dates button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.showday .dates button{background:transparent;border-color:#475467;color:#fff}
.showday .dates button.on{background:#fff;color:#101828;border-color:#fff}
fieldset.dates-field{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
fieldset.dates-field legend{font-size:14px;font-weight:500;padding:0;margin-bottom:6px}
fieldset.dates-field .row{flex-wrap:nowrap}
textarea{width:100%;border:1px solid #98A2B3;border-radius:10px;padding:10px 12px;font-size:16px;font-family:inherit;color:var(--ink);resize:vertical;min-height:96px}
textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Keep Netlify's badge above the bottom tab bar instead of covering it */
#nl-badge-frame{bottom:calc(72px + env(safe-area-inset-bottom)) !important}

/* Descriptions */
.desc{font-size:14px;color:#344054;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px}

/* Show Day box with posts inside (Seat swap, Buddies, Merch) */
.sd-posts{gap:0}
.sd-posts .listing{border-bottom-color:#344054}
.sd-posts .listing:last-child{border-bottom:0;padding-bottom:4px}
.sd-posts .muted,.sd-posts .small.muted{color:#D0D5DD}
.sd-posts .desc,.sd-posts p{color:#EAECF0}
.sd-posts h3{color:#fff}
.sd-posts .swap-row>div{background:#1D2939}
.sd-posts .swap-row svg{color:#FDB022}
.sd-posts button.outline{background:transparent;border-color:#475467;color:#fff}
.sd-posts details.menu summary{color:#D0D5DD}
.sd-posts details.menu summary:hover{background:#1D2939}
.sd-posts .menu-pop{color:var(--ink)}
.sd-posts .note.info{background:#1D2939;color:#fff}
.sd-posts .note.info b{color:#FDB022}
.sd-posts .price{color:#fff}

/* Per-tab concert lists */
.count-pill{flex:none;font-size:12px;font-weight:600;color:var(--accent-ink);background:#E0F2F1;border-radius:999px;padding:3px 9px}
.hero .sub{margin-top:-8px}
button.ghost-light{background:transparent;border:1px solid #475467;color:#FDA29B}
.event-head .row{margin-top:6px}

/* =====================================================================
   Cute theme (咕卡 / photocard-deco inspired), the default.
   Scoped to html[data-theme="cute"]. The base styles above are the Simple theme.
   ===================================================================== */
html[data-theme="cute"]{--ink:#3B2440; --muted:#6B4E72; --line:#F4D6E6; --bg:#FFF8FB; --soft:#FDEBF4;
  --accent:#C2306A; --accent-ink:#A3245A;
  --pink:#FFA9CB; --pink-deep:#F07FAE; --lilac:#E4D7FF; --blue:#D7ECFF; --mint:#D5F5E4; --butter:#FFF1A8;
  --holo:linear-gradient(135deg,#FFD9EC 0%,#EBDDFF 45%,#D4EEFF 100%);
  --cute-font:'Fredoka','Nunito','Noto Sans TC','Noto Sans KR',system-ui,sans-serif;}
html[data-theme="cute"] body{font-family:'Nunito','Noto Sans TC','Noto Sans KR',system-ui,sans-serif;color:var(--ink);
  background-color:var(--bg);
  background-image:radial-gradient(#F7CFE1 1.2px,transparent 1.4px),radial-gradient(#E4D7FF 1.2px,transparent 1.4px);
  background-size:26px 26px,26px 26px;background-position:0 0,13px 13px}
html[data-theme="cute"] h1,html[data-theme="cute"] h2,html[data-theme="cute"] h3,html[data-theme="cute"] .brand,html[data-theme="cute"] .price,html[data-theme="cute"] .stat b{font-family:var(--cute-font);letter-spacing:0}
html[data-theme="cute"] h1{font-size:32px;font-weight:700}
html[data-theme="cute"] a{color:var(--accent-ink)}
html[data-theme="cute"] a:hover{color:var(--ink)}
html[data-theme="cute"] .muted,html[data-theme="cute"] .event-head .sub{color:var(--muted)}
html[data-theme="cute"] .brand{color:var(--accent);font-size:20px;font-weight:700}
html[data-theme="cute"] .brand::after{content:" ♡";color:var(--pink-deep)}
html[data-theme="cute"] .hero{padding-top:18px}
html[data-theme="cute"] .hero h1{font-size:34px;position:relative;display:inline;background:linear-gradient(transparent 62%,var(--butter) 62%,var(--butter) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
html[data-theme="cute"] .hero h1::after{content:"✦";color:var(--pink-deep);font-size:22px;margin-left:6px;vertical-align:top}
html[data-theme="cute"] .hero .sub{margin-top:2px;font-weight:600}
html[data-theme="cute"] .hero .sub::before{content:"♡ ";color:var(--pink-deep)}
html[data-theme="cute"] button{border-radius:999px;font-family:'Nunito','Noto Sans TC','Noto Sans KR',sans-serif;font-weight:700}
html[data-theme="cute"] button.primary{background:var(--pink);color:var(--ink);box-shadow:0 3px 0 var(--pink-deep);transition:transform .1s,box-shadow .1s}
html[data-theme="cute"] button.primary:hover{background:#FF9BC2}
html[data-theme="cute"] button.primary:active{transform:translateY(2px);box-shadow:0 1px 0 var(--pink-deep)}
html[data-theme="cute"] button.outline{background:#fff;border:2px solid var(--line);color:var(--ink)}
html[data-theme="cute"] button.outline:hover{border-color:var(--pink)}
html[data-theme="cute"] button.text{color:var(--muted)}
html[data-theme="cute"] button.dashed,html[data-theme="cute"] button.text[data-act="openCreate"]{color:var(--accent-ink)}
html[data-theme="cute"] button:focus-visible,html[data-theme="cute"] input:focus-visible,html[data-theme="cute"] select:focus-visible,html[data-theme="cute"] summary:focus-visible,html[data-theme="cute"] textarea:focus-visible{outline:3px solid var(--pink-deep);outline-offset:2px}
html[data-theme="cute"] .danger{color:#B42318}
html[data-theme="cute"] input,html[data-theme="cute"] select,html[data-theme="cute"] textarea{border:2px solid #EFD0E0;border-radius:14px;background:#fff;color:var(--ink)}
html[data-theme="cute"] .searchbox input{border-radius:999px;border:2px solid #F3C6DA;background:#fff;box-shadow:0 4px 14px rgba(240,127,174,.12)}
html[data-theme="cute"] .searchbox svg{color:var(--pink-deep)}
html[data-theme="cute"] .list{gap:14px;padding-top:8px}
html[data-theme="cute"] .item,html[data-theme="cute"] .listing{position:relative;background:#fff;border:2px solid var(--line);border-radius:20px;box-shadow:0 4px 0 #F8E2EE}
html[data-theme="cute"] .item{padding:14px 16px;min-height:66px}
html[data-theme="cute"] .item:hover{background:#FFFAFD;border-color:var(--pink)}
html[data-theme="cute"] .item svg{color:var(--pink-deep)}
html[data-theme="cute"] .listing{padding:18px 16px 14px}
html[data-theme="cute"] .listing.is-done{opacity:.65}
html[data-theme="cute"] .item::before,html[data-theme="cute"] .listing::before{content:"";position:absolute;top:-9px;left:22px;width:58px;height:17px;border-radius:2px;transform:rotate(-5deg);opacity:.9;
  background:repeating-linear-gradient(45deg,#FFB8D5 0 6px,#FFE3EF 6px 12px)}
html[data-theme="cute"] .list>:nth-child(3n+2)::before{background:repeating-linear-gradient(45deg,#CDB8FF 0 6px,#EEE6FF 6px 12px);left:auto;right:26px;transform:rotate(4deg)}
html[data-theme="cute"] .list>:nth-child(3n+3)::before{background:repeating-linear-gradient(90deg,#A9D8FF 0 5px,#E2F1FF 5px 10px);transform:rotate(-2deg)}
html[data-theme="cute"] .list-title{color:var(--accent-ink);font-family:var(--cute-font);font-size:16px;margin-top:22px}
html[data-theme="cute"] .list-title::before{content:"✧ ";color:var(--pink-deep)}
html[data-theme="cute"] .chip{border-radius:999px;padding:3px 10px;font-weight:700}
html[data-theme="cute"] .chip.sell{background:var(--mint);color:#1F6B45}
html[data-theme="cute"] .chip.buy{background:var(--blue);color:#234E8C}
html[data-theme="cute"] .chip.meeting{background:var(--butter);color:#6E4A00}
html[data-theme="cute"] .chip.done{background:#EFE8F3;color:#5B4A63}
html[data-theme="cute"] .chip.mine{background:var(--lilac);color:#4B2A86}
html[data-theme="cute"] .count-pill{background:var(--lilac);color:#4B2A86}
html[data-theme="cute"] .price{color:var(--accent)}
html[data-theme="cute"] .desc{color:#4F3756}
html[data-theme="cute"] .swap-row>div{background:#F6F0FF;border-radius:14px}
html[data-theme="cute"] .swap-row svg{color:var(--pink-deep)}
html[data-theme="cute"] .seg{background:var(--soft);border-radius:999px}
html[data-theme="cute"] .seg button{color:var(--muted)}
html[data-theme="cute"] .seg button.on{background:#fff;color:var(--accent-ink);box-shadow:0 2px 0 var(--pink)}
html[data-theme="cute"] .dates button{border:2px solid var(--line);background:#fff;color:var(--ink)}
html[data-theme="cute"] .dates button.on{background:var(--pink);border-color:var(--pink);color:var(--ink)}
html[data-theme="cute"] .panel{border:2px dashed #F0BCD3;border-radius:22px;background:#fff;box-shadow:0 4px 0 #F8E2EE}
html[data-theme="cute"] .note.info{background:#F6F0FF;color:var(--ink)}
html[data-theme="cute"] .note.ok{background:var(--mint);color:#1F6B45}
html[data-theme="cute"] .note.warn{background:#FFF6CC;color:#6E4A00}
html[data-theme="cute"] .note.err{background:#FFE4EA;color:#9F1D3A}
html[data-theme="cute"] .showday,html[data-theme="cute"] .event-head.showday{background:var(--holo);color:var(--ink);border:2px solid #fff;border-radius:24px;
  box-shadow:0 6px 18px rgba(196,140,220,.25),inset 0 0 0 1px rgba(255,255,255,.6);position:relative}
html[data-theme="cute"] .showday::after{content:"✦ ✧";position:absolute;top:10px;right:16px;color:#fff;font-size:18px;letter-spacing:4px;text-shadow:0 0 6px rgba(240,127,174,.7)}
html[data-theme="cute"] .live{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;background:#fff;color:var(--accent);border-radius:999px;padding:4px 12px;font-size:12px;letter-spacing:.08em;box-shadow:0 2px 0 var(--pink)}
html[data-theme="cute"] .showday .sub,html[data-theme="cute"] .showday .item-main span,html[data-theme="cute"] .sd-item .item-main span{color:var(--muted)}
html[data-theme="cute"] .showday .warn-text{color:#8A3B00}
html[data-theme="cute"] .showday h1{color:var(--ink)}
html[data-theme="cute"] .sd-item{background:rgba(255,255,255,.75);border:0;border-radius:16px;margin-top:8px;padding:12px 14px;color:var(--ink)}
html[data-theme="cute"] .sd-item:last-child{border-bottom:0}
html[data-theme="cute"] .sd-item:hover{background:#fff}
html[data-theme="cute"] .sd-count{background:var(--butter);color:#5A3D00}
html[data-theme="cute"] .showday .dates button{background:rgba(255,255,255,.8);border-color:#fff;color:var(--ink)}
html[data-theme="cute"] .showday .dates button.on{background:var(--ink);border-color:var(--ink);color:#fff}
html[data-theme="cute"] button.ghost-light{background:#fff;border:2px solid #fff;color:#B42318}
html[data-theme="cute"] .sd-posts .listing{background:#fff;border-color:#fff}
html[data-theme="cute"] .sd-posts .muted,html[data-theme="cute"] .sd-posts .small.muted{color:var(--muted)}
html[data-theme="cute"] .sd-posts .desc,html[data-theme="cute"] .sd-posts p{color:#4F3756}
html[data-theme="cute"] .sd-posts h3,html[data-theme="cute"] .sd-posts .price{color:var(--ink)}
html[data-theme="cute"] .sd-posts .swap-row>div{background:#F6F0FF}
html[data-theme="cute"] .sd-posts button.outline{background:#fff;border-color:var(--line);color:var(--ink)}
html[data-theme="cute"] .sd-posts details.menu summary{color:var(--muted)}
html[data-theme="cute"] .sd-posts .note.info{background:#F6F0FF;color:var(--ink)}
html[data-theme="cute"] .sd-posts .note.info b{color:var(--accent)}
html[data-theme="cute"] details.menu summary{color:var(--muted)}
html[data-theme="cute"] details.menu summary:hover{background:var(--soft)}
html[data-theme="cute"] .menu-pop{border:2px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(196,140,220,.25)}
html[data-theme="cute"] .menu-item{border-radius:12px}
html[data-theme="cute"] .menu-item:hover{background:var(--soft)}
html[data-theme="cute"] body{padding-bottom:calc(140px + env(safe-area-inset-bottom))}
html[data-theme="cute"] .tabbar{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));padding:6px;border:2px solid var(--line);border-radius:26px;
  background:rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(196,140,220,.25)}
html[data-theme="cute"] .tabbar button{min-height:54px;border-radius:20px;color:var(--muted);font-weight:700}
html[data-theme="cute"] .tabbar button.on{color:var(--accent);background:var(--soft)}
html[data-theme="cute"] .cta-bar{bottom:calc(86px + env(safe-area-inset-bottom));background:none}
html[data-theme="cute"] .cta-bar button.big{box-shadow:0 4px 0 var(--pink-deep),0 8px 20px rgba(240,127,174,.3)}
html[data-theme="cute"] #nl-badge-frame{bottom:calc(92px + env(safe-area-inset-bottom)) !important}
@media (min-width:700px){html[data-theme="cute"] .tabbar{left:50%;right:auto;transform:translateX(-50%);width:616px;border-radius:26px;border-bottom:2px solid var(--line)}}
html[data-theme="cute"] footer{color:var(--muted);border-top:2px dashed var(--line)}
html[data-theme="cute"] footer p:first-child::before{content:"♡ ";color:var(--pink-deep)}
html[data-theme="cute"] .select.lang,html[data-theme="cute"] select.lang{color:var(--muted);border:0;background:none}

/* =====================================================================
   Night theme: dark, calm and easy on the eyes outside the venue
   ===================================================================== */
html[data-theme="night"]{--ink:#F4EEF8;--muted:#C2B6CF;--line:#3A3049;--bg:#14101C;--soft:#2A2238;--accent:#FF9EC4;--accent-ink:#FFB8D5;--surface:#211B2C}
html[data-theme="night"] body{background:var(--bg);color:var(--ink)}
html[data-theme="night"] a{color:var(--accent-ink)}
html[data-theme="night"] .muted,html[data-theme="night"] .event-head .sub{color:var(--muted)}
html[data-theme="night"] .warn-text{color:#FFD27A}
html[data-theme="night"] .brand{color:var(--accent-ink)}
html[data-theme="night"] button{color:var(--ink)}
html[data-theme="night"] button.primary{background:var(--accent);color:#2A1030}
html[data-theme="night"] button.primary:hover{background:#FFB3D1}
html[data-theme="night"] button.outline{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="night"] button.text,html[data-theme="night"] button.icon-btn{color:var(--muted)}
html[data-theme="night"] .danger{color:#FF9B8F}
html[data-theme="night"] input,html[data-theme="night"] select,html[data-theme="night"] textarea{background:var(--surface);border-color:#55476A;color:var(--ink)}
html[data-theme="night"] select.lang{background:none}
html[data-theme="night"] .searchbox input{background:var(--surface);border-color:#55476A}
html[data-theme="night"] .searchbox input:focus{background:var(--surface)}
html[data-theme="night"] .item:hover,html[data-theme="night"] details.menu summary:hover{background:var(--soft)}
html[data-theme="night"] .item svg{color:var(--muted)}
html[data-theme="night"] .panel{background:var(--surface);border-color:var(--line)}
html[data-theme="night"] .check label,html[data-theme="night"] .desc{color:#E2D8EC}
html[data-theme="night"] .seg{background:var(--soft)}
html[data-theme="night"] .seg button.on{background:#3A2F4C;color:var(--ink);box-shadow:none}
html[data-theme="night"] .dates button{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="night"] .dates button.on{background:var(--accent);border-color:var(--accent);color:#2A1030}
html[data-theme="night"] .chip.sell{background:#163B2C;color:#9BE7C0}
html[data-theme="night"] .chip.buy{background:#18304D;color:#A9D3FF}
html[data-theme="night"] .chip.meeting{background:#4A3810;color:#FFE08A}
html[data-theme="night"] .chip.done{background:#2E2838;color:#D6CCE0}
html[data-theme="night"] .chip.mine{background:#3C2C5E;color:#DCCBFF}
html[data-theme="night"] .count-pill{background:#3C2C5E;color:#DCCBFF}
html[data-theme="night"] .price{color:var(--accent-ink)}
html[data-theme="night"] .swap-row>div{background:var(--soft)}
html[data-theme="night"] .swap-row svg{color:var(--accent)}
html[data-theme="night"] .menu-pop{background:var(--surface);border-color:var(--line)}
html[data-theme="night"] .menu-item:hover{background:var(--soft)}
html[data-theme="night"] .note.info{background:var(--soft);color:var(--ink)}
html[data-theme="night"] .note.ok{background:#163B2C;color:#9BE7C0}
html[data-theme="night"] .note.warn{background:#4A3810;color:#FFE08A}
html[data-theme="night"] .note.err{background:#4A1A22;color:#FFB4B4}
html[data-theme="night"] .showday,html[data-theme="night"] .event-head.showday{background:linear-gradient(135deg,#3A2352 0%,#262A52 100%);border:1px solid #4E3D66}
html[data-theme="night"] .live{color:#FFD27A}
html[data-theme="night"] .sd-count{background:#FFD27A;color:#2A1A00}
html[data-theme="night"] .sd-item{border-bottom-color:#4E3D66}
html[data-theme="night"] .list-title{color:var(--muted)}
html[data-theme="night"] .mine-row,html[data-theme="night"] .listing,html[data-theme="night"] .item{border-bottom-color:var(--line)}
html[data-theme="night"] .outline-link{border-color:var(--line);color:var(--ink)}
html[data-theme="night"] .tabbar{background:rgba(20,16,28,.96);border-top-color:var(--line)}
html[data-theme="night"] .tabbar button{color:var(--muted)}
html[data-theme="night"] .tabbar button.on{color:var(--accent)}
html[data-theme="night"] .cta-bar{background:linear-gradient(to top,var(--bg) 70%,rgba(20,16,28,0))}
html[data-theme="night"] footer{border-top-color:var(--line)}
html[data-theme="night"] button:focus-visible,html[data-theme="night"] input:focus-visible,html[data-theme="night"] select:focus-visible,html[data-theme="night"] summary:focus-visible,html[data-theme="night"] textarea:focus-visible{outline-color:var(--accent)}
@media (min-width:700px){html[data-theme="night"] .tabbar{border-color:var(--line)}}

/* Theme picker on the Me page */
.theme-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-pick button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:76px;padding:10px 6px;border-radius:16px;border:2px solid var(--line);background:#fff;font-size:13px}
html[data-theme="night"] .theme-pick button{background:var(--surface)}
.theme-pick button.on{border-color:var(--accent)}
.swatch{width:28px;height:28px;border-radius:50%;border:2px solid rgba(0,0,0,.08)}
.swatch.cute{background:linear-gradient(135deg,#FFC2DC,#E6D6FF,#CDEBFF)}
.swatch.simple{background:linear-gradient(135deg,#fff 50%,#0F766E 50%)}
.swatch.night{background:linear-gradient(135deg,#14101C 50%,#FF9EC4 50%)}

/* Add to Home Screen card */
.install-card{display:grid;grid-template-columns:52px 1fr;gap:12px 14px;align-items:center;padding:16px;border-radius:20px;border:2px solid var(--line);background:#fff}
.install-card img{border-radius:14px;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.install-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.install-text b{font-size:16px}
.install-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.install-actions button.primary{flex:1 1 auto}
html[data-theme="cute"] .install-card{background:var(--holo);border:2px solid #fff;box-shadow:0 6px 18px rgba(196,140,220,.25)}
html[data-theme="cute"] .install-card b{font-family:var(--cute-font)}
html[data-theme="night"] .install-card{background:linear-gradient(135deg,#3A2352 0%,#262A52 100%);border-color:#4E3D66}

/* Tab-specific tools: filters, tags, match chips, stale posts, photos */
.filters{gap:10px}
.seg.seg-scroll{flex-wrap:nowrap;width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg.seg-scroll::-webkit-scrollbar{display:none}
.seg.seg-scroll button{flex:none;padding:0 12px;white-space:nowrap}
.sort select{min-height:40px;padding:0 10px;font-size:14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink)}
.chips-row{display:flex;flex-wrap:wrap;gap:6px}
.fchip{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);font-size:13px;font-weight:600;color:var(--ink)}
.fchip.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
fieldset.tag-pick{border:0;padding:0;margin:0}
fieldset.tag-pick legend{font-size:14px;font-weight:500;padding:0;margin-bottom:6px}
.fchip-check{position:relative;display:inline-flex}
.fchip-check input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.fchip-check span{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);font-size:13px;font-weight:600}
.fchip-check input:checked+span{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.fchip-check input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.chip.match{background:#FEF0C7;color:#7A2E0E}
.chip.deal{background:#E0F2F1;color:var(--accent-ink)}
.chip.stale{background:#FEE4E2;color:#912018}
.chip.tag{background:var(--soft);color:var(--muted)}
.listing.is-stale{opacity:.6}
.listing .time{margin-top:-4px}
.meet{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--muted)}
.stack-r{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.photo{flex:none;display:block;width:84px;height:84px;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
html[data-theme="cute"] .fchip,html[data-theme="cute"] .fchip-check span{border:2px solid var(--line);background:#fff;font-weight:700}
html[data-theme="cute"] .fchip.on,html[data-theme="cute"] .fchip-check input:checked+span{background:var(--pink);border-color:var(--pink);color:var(--ink)}
html[data-theme="cute"] .chip.match{background:var(--butter);color:#6E4A00}
html[data-theme="cute"] .chip.deal{background:var(--mint);color:#1F6B45}
html[data-theme="cute"] .chip.tag{background:var(--lilac);color:#4B2A86}
html[data-theme="cute"] .sort select{border:2px solid #EFD0E0;border-radius:999px;background:#fff}
html[data-theme="cute"] .photo{border:2px solid #fff;box-shadow:0 2px 0 var(--pink);transform:rotate(-2deg)}
html[data-theme="night"] .fchip,html[data-theme="night"] .fchip-check span{background:var(--surface);border-color:var(--line)}
html[data-theme="night"] .fchip.on,html[data-theme="night"] .fchip-check input:checked+span{background:var(--accent);border-color:var(--accent);color:#2A1030}
html[data-theme="night"] .chip.match{background:#4A3810;color:#FFE08A}
html[data-theme="night"] .chip.deal{background:#163B2C;color:#9BE7C0}
html[data-theme="night"] .chip.stale{background:#4A1A22;color:#FFB4B4}
html[data-theme="night"] .chip.tag{background:var(--soft);color:var(--muted)}
html[data-theme="night"] .sort select{background:var(--surface)}

/* Fan colours: artist name in a frame of the fandom colours (no images) */
.fan-name{--fan-bg:var(--bg);display:inline-block;max-width:100%;padding:1px 10px;border-radius:999px;border:2px solid transparent;
  background:linear-gradient(var(--fan-bg),var(--fan-bg)) padding-box,linear-gradient(135deg,var(--c1),var(--c2)) border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-main b{max-width:100%}
.sd-item .fan-name{--fan-bg:#fff;color:#101828}
.event-head h1 .fan-name{padding:2px 16px;border-width:3px}
.event-head.fan:not(.showday){padding:16px;border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 28%,var(--bg)),color-mix(in srgb,var(--c2) 22%,var(--bg)));border:1px solid color-mix(in srgb,var(--c1) 45%,var(--line))}
.event-head.fan:not(.showday) h1 .fan-name{--fan-bg:color-mix(in srgb,var(--c1) 12%,var(--bg))}
.event-head.showday h1 .fan-name{--fan-bg:#101828;color:#fff}
html[data-theme="cute"] .fan-name{--fan-bg:#fff}
html[data-theme="cute"] .event-head.showday h1 .fan-name{--fan-bg:#fff;color:var(--ink)}
html[data-theme="night"] .fan-name{--fan-bg:var(--surface)}
html[data-theme="night"] .sd-item .fan-name{--fan-bg:#2A2238;color:var(--ink)}
html[data-theme="night"] .event-head.fan:not(.showday){background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 22%,var(--surface)),color-mix(in srgb,var(--c2) 18%,var(--surface)))}
.past{margin-top:4px}
.past-toggle{min-height:32px;padding:0 4px;font-size:12px;color:var(--muted);font-weight:500}
.past-list .item{min-height:52px;padding:8px 4px;opacity:.75}

/* Profiles: animal avatars drawn with emoji (no image downloads) */
.avatar{flex:none;display:inline-grid;place-items:center;width:var(--s);height:var(--s);border-radius:50%;background:var(--av);font-size:calc(var(--s) * .6);line-height:1}
.author{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px 0 4px;margin-left:auto;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);max-width:50%}
.author span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.author:hover{background:var(--soft)}
.profile-head{display:flex;align-items:center;gap:16px}
.profile-head h1{font-size:26px}
.av-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px}
.av-pick{min-height:44px;padding:0;font-size:24px;border-radius:12px;border:2px solid transparent;background:var(--soft)}
.av-pick.on{border-color:var(--accent);background:var(--bg)}
.bg-pick{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;background:var(--av);border:2px solid var(--line)}
.bg-pick.on{outline:3px solid var(--accent);outline-offset:2px}
html[data-theme="cute"] .av-pick.on{border-color:var(--pink-deep);background:#fff}
html[data-theme="cute"] .bg-pick.on{outline-color:var(--pink-deep)}
/* Admin: all shows, artists, ratings */
input.search{margin:8px 0}
.listing.merge-from{outline:2px dashed var(--accent, #F05A9B);outline-offset:2px}
.listing summary{cursor:pointer;padding:4px 0}
input[type="color"]{width:44px;height:36px;padding:2px;border-radius:8px}
/* Seller ratings */
.stars{color:#F5A524;letter-spacing:1px;white-space:nowrap}
.score{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:600;color:#B54708;white-space:nowrap}
.rate-pick{display:flex;gap:4px}
.rate-pick label{cursor:pointer;font-size:26px;line-height:1;color:#D0D5DD}
.rate-pick input{position:absolute;opacity:0;pointer-events:none}
.rate-pick label.on{color:#F5A524}
.rate-pick input:focus-visible + span{outline:2px solid currentColor;outline-offset:2px}
.review{border-top:1px solid var(--line, #EAECF0);padding:10px 0}
.review:first-child{border-top:0}
/* Still available? and likes */
button.react{min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:14px;color:var(--ink);white-space:nowrap}
button.react.on{border-color:#F5A3C7;background:#FFF0F6;color:#C11574}
.react-n{font-size:14px;color:var(--muted);white-space:nowrap}
.chip.asked{background:#FFF6CC;color:#6E4A00}
html[data-theme="night"] button.react{background:transparent;color:inherit}
html[data-theme="night"] button.react.on{background:#4A1D35;color:#FFB3D1}
/* Notification bell */
.icon-btn.bell{position:relative;font-size:18px;line-height:1}
.bell .dot{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#E11D48;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.notif{gap:12px}
.notif-ic{font-size:20px;width:28px;text-align:center;flex:none}
.notif.is-new{background:#FFF7FB}
html[data-theme="night"] .notif.is-new{background:#3A1C2C}
/* Sign-in: Google button and human check */
button.google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%}
.g-logo{font-weight:800;font-family:Arial,sans-serif;color:#4285F4;font-size:18px}
.or{text-align:center;margin:4px 0}
.captcha{min-height:65px}
.pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}
.pager button[disabled]{opacity:.4}
.artist-group .chev-rot{display:inline-flex;transition:transform .15s}
.artist-group.open .chev-rot{transform:rotate(90deg)}
.sub-list{margin:6px 0 10px 14px;padding-left:10px;border-left:3px solid var(--line)}
button.google .g-logo{background:#fff;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}

.g-box{display:flex;justify-content:center;min-height:44px}
.icon-btn[data-act="reloadPage"]{font-size:20px;line-height:1}

.notif .who{display:block;margin-top:2px;color:var(--ink,inherit)}

.notif-wrap{display:flex;flex-direction:column;gap:2px}
.who{padding:0 14px 6px;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:center}
.who-name{padding:2px 4px;min-height:0;text-decoration:underline}

/* AI paste-to-post and alerts */
.ai-box{border:1px dashed var(--line,#d6d3e0);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.ai-box>summary{cursor:pointer;font-weight:700}
.ai-box[open]>summary{margin-bottom:6px}
.ai-box textarea{width:100%}
.ai-pick{cursor:pointer;display:inline-flex;align-items:center}
.alert-card{display:block;width:100%;text-align:center;margin:10px 0}
.note.ok{color:var(--accent-ink,#0b6b5f)}
