:root {
  --bg:#faf6ef; --card:#fffefa; --card2:#f6fafb; --text:#304b5f; --sub:#586c79; --line:#cfdee4;
  --gold:#326d8a; --tint:#dceef7; --trim:#9bbdce; --deep:#28526b; --green:#397253; --red:#aa4356;
}
:root[data-house="melody"] {--text:#553745;--sub:#795c68;--line:#ead6dc;--card2:#fff7f9;--gold:#a04465;--tint:#f9dde7;--trim:#dcb5c1;--deep:#74334b}
:root[data-house="kitty"] {--text:#473d48;--sub:#715e61;--line:#ead5ce;--card2:#fff8f3;--gold:#a84247;--tint:#fbe2da;--trim:#d7ada7;--deep:#763637}
html {min-height:100%;background-color:var(--bg);background-image:linear-gradient(90deg,#e7d8c424 50%,transparent 50%),linear-gradient(#e7d8c427 50%,transparent 50%);background-size:26px 26px}
body {max-width:1000px;background:transparent;padding:0 20px 30px;font-family:Nunito,"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
.house-top,.house-brand,.house-switch,.house-switch button,.ticket-inner{display:flex;align-items:center}
.house-top{justify-content:space-between;gap:10px;padding:13px 0}.house-brand{gap:8px;font-size:18px;font-weight:800}.house-brand img{width:33px;height:33px;object-fit:contain}
.house-ticket{position:relative;isolation:isolate;overflow:hidden;background:var(--tint);border:1px solid var(--trim);border-radius:20px;box-shadow:0 3px 0 #dfd1bf}
.house-ticket:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#ffffff40 50%,transparent 50%),linear-gradient(#ffffff50 50%,transparent 50%);background-size:20px 20px;mask-image:linear-gradient(105deg,transparent 9%,black 92%)}
.ticket-inner{min-height:160px;padding:16px 7%;justify-content:space-between;gap:14px}.ticket-inner small{font-size:12px;color:var(--gold);font-weight:750}.ticket-inner h1{font-size:clamp(26px,4vw,44px);line-height:1.2;letter-spacing:-.04em;margin:5px 0}.ticket-inner img{width:28%;height:128px;object-fit:contain;filter:drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 3px 0 white)}
.house-switch{gap:6px;margin:14px 0 20px;flex-wrap:wrap}.house-switch button{gap:5px;min-height:38px;border-radius:20px;background:var(--card);padding:4px 12px;border:1px solid var(--line);color:var(--sub);font-family:inherit;cursor:pointer}.house-switch button[aria-pressed=true]{color:var(--deep);border-color:var(--gold);background:var(--tint);font-weight:750}.house-switch img{width:22px;height:22px;object-fit:contain}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.top{margin-bottom:9px}.top h2,#loginView h2{font-size:20px;margin:0}.top .sub{font-size:12px}
.card,.sheet{border-radius:16px;box-shadow:0 2px 0 #e7ddd0;padding:16px}.sheet .steps b{color:var(--deep)}.sheet{margin:3vh auto}
#loginView{max-width:440px;margin:22px auto}#loginView .sub{color:var(--sub);font-size:13px;margin:6px 0 14px}
.btn{cursor:pointer;min-height:38px}.btn.primary{background:var(--gold);color:white;border-color:var(--deep);box-shadow:0 2px 0 var(--deep)}.btn.danger{border-color:var(--line);background:var(--card)}.btn.ghost{color:var(--deep)}.chip.ok{color:#315e48;background:#e9f4ea;border-color:#b5d2bf}.chip.bad{background:#fff0ef;color:#8f384b;border-color:#e3bac0}.chip.wait{background:var(--tint);color:var(--deep);border-color:var(--trim)}
#addBox{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:8px}#addBox input{background:transparent;border:0}
#list .card{border-top:3px solid var(--trim)}.chead{border-bottom:1px dashed var(--line);padding-bottom:8px}.nm{color:var(--deep);overflow-wrap:anywhere}.sched{flex-wrap:wrap}.sched .sw{border:0;background:#a6adb0}.sw::after{background:#fff}.sched .sw.on{background:var(--gold)}.sw.on::after{background:#fff}
.logbox{color:var(--text);background:var(--card2)}.toast{background:var(--deep)}#mask{background:#332f3f82}#main>.card:last-child{margin-top:14px}
@media(max-width:600px){body{padding:0 12px 20px}.house-brand{font-size:15px}.house-top{padding:9px 0}.ticket-inner{min-height:113px;padding:10px 6%}.ticket-inner img{height:93px;width:33%}.house-switch{margin:11px 0 16px}.house-switch button{padding:4px 9px}.card{padding:13px}.row .v{max-width:70%}}
