/* 2.8: editorial discovery, ticket wallet and compact operational surfaces. */
#tp-app[data-theme="light"]{--page:#f0eee8;--panel:#faf8f3;--panel-alt:#e7e4dc;--text:#20221f;--muted:#60645e;--line:#d7d6ce;--accent:#bf422b;--cyan:#006b80;--brand-border:var(--line)}
#tp-app[data-theme="dark"]{--page:#111312;--panel:#1b1e1c;--panel-alt:#272c29;--text:#f5f4ee;--muted:#b9c1b9;--line:#353e37;--accent:#ff815f;--cyan:#52d6e4;--brand-border:var(--line)}
#tp-app[data-theme]{font-size:15px;line-height:1.5}
#tp-app[data-theme] main{padding-top:24px;padding-bottom:110px}
#tp-app[data-theme] h1{font-size:clamp(28px,3.5vw,48px);letter-spacing:-.045em}
#tp-app[data-theme] h2{font-size:23px;letter-spacing:-.035em}
#tp-app[data-theme] header{min-height:76px;padding-top:8px;padding-bottom:8px}
#tp-app[data-theme] .brand{background:transparent!important;padding:0!important}
#tp-app[data-theme] .brand img.platform-logo{width:148px!important;height:58px!important;object-fit:contain!important}
#tp-app[data-theme] button,#tp-app[data-theme] .button{min-height:44px;border-radius:12px;background:#ed563b!important;color:#fff!important;font-weight:700}
#tp-app[data-theme] button:focus-visible,#tp-app[data-theme] a:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
#tp-app[data-theme] button:disabled{opacity:.45;cursor:not-allowed}
#tp-app[data-theme] .secondary,#tp-app[data-theme] .text-button,#tp-app[data-theme] .nav button,#tp-app[data-theme] .header-tools button{background:var(--panel-alt)!important;color:var(--text)!important}
#tp-app[data-theme] .text-button{background:transparent!important;color:var(--cyan)!important}
#tp-app[data-theme] .card{padding:20px;border-radius:18px!important}
#tp-app[data-theme] .discovery-toolbar{position:static;padding:0 0 16px!important;border:0!important}
#tp-app[data-theme] .discovery-categories{display:flex;gap:10px;border:0!important;overflow:auto;padding:0 0 12px;flex-wrap:nowrap}
#tp-app[data-theme] .discovery-categories button{background:var(--panel-alt)!important;color:var(--text)!important;white-space:nowrap;border-radius:30px;padding:10px 20px;border:0}
#tp-app[data-theme] .discovery-categories button.selected{background:var(--cyan)!important;color:var(--page)!important}
#tp-app[data-theme] .discovery-search{max-width:none;margin:0!important}
#tp-app[data-theme] .discovery-search input{border-radius:14px;min-height:50px;padding-left:18px}
#tp-app[data-theme] .discovery-top:empty{display:none}
#tp-app[data-theme] .discovery-hero{border-radius:24px;min-height:350px;margin-bottom:28px;background-image:linear-gradient(90deg,#000b,#0002),var(--hero-image);background-size:cover;background-position:center;color:#fff!important}
#tp-app[data-theme] .discovery-hero h1{font-size:clamp(38px,4.6vw,65px);color:#fff!important;max-width:620px}
#tp-app[data-theme] .discovery-hero h1 span{color:#fff!important}
#tp-app[data-theme] .discovery-hero p{color:#f0f0ea!important}
#tp-app[data-theme] .event-card{padding:0;box-shadow:none!important}
#tp-app[data-theme] .event-card .cover{aspect-ratio:16/10;object-fit:cover}
#tp-app[data-theme] .event-card .event-body{padding:18px}
#tp-app[data-theme] .featured-banner{border-radius:20px;min-height:260px;background:var(--panel)!important}
#tp-app[data-theme] .featured-banner .banner-caption{background:linear-gradient(transparent,#000d)!important;color:#fff!important}
#tp-app[data-theme] .section-heading{margin-top:24px;margin-bottom:16px}
#tp-app[data-theme] .bottom-nav{border-radius:22px 22px 0 0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;border-width:1px 0 0!important;padding:8px 8px max(8px,env(safe-area-inset-bottom))!important;box-shadow:0 -8px 25px #00000008}
#tp-app[data-theme] .bottom-nav button{min-width:0;background:transparent!important;color:var(--muted)!important;border-radius:12px;padding:8px 2px}
#tp-app[data-theme] .bottom-nav button.active{background:var(--panel-alt)!important;color:var(--cyan)!important}
#tp-app[data-theme] .ticket-counts{display:flex;gap:8px;margin-bottom:14px}
#tp-app[data-theme] .ticket-counts .card{flex:1;display:flex;align-items:baseline;justify-content:center;gap:8px;padding:12px 5px;margin:0;border:0!important;background:transparent!important}
#tp-app[data-theme] .ticket-counts strong{font-size:24px}
#tp-app[data-theme] .ticket-counts span{font-size:12px;color:var(--muted)}
#tp-app[data-theme] .ticket-tabs{border-radius:14px;padding:4px;margin-bottom:20px;display:flex}
#tp-app[data-theme] .ticket-tabs button{flex:1;background:transparent!important;color:var(--muted)!important;margin:0}
#tp-app[data-theme] .ticket-tabs button.selected{background:var(--panel)!important;color:var(--cyan)!important;box-shadow:0 2px 8px #0001}
#tp-app[data-theme] .booking-card{display:grid;grid-template-columns:180px 1fr;overflow:hidden;padding:0;gap:0}
#tp-app[data-theme] .booking-card .booking-art{height:100%;width:100%;object-fit:cover}
#tp-app[data-theme] .booking-card>div{padding:20px}
#tp-app[data-theme] .booking-card p{margin:8px 0;font-size:14px}
#tp-app[data-theme] .booking-card button{display:block;width:100%;margin-top:12px}
#tp-app[data-theme] .booking-row{padding:18px!important;background:var(--panel)!important;color:var(--text)!important;text-align:left}
#tp-app[data-theme] .booking-row strong{font-size:18px}
#tp-app[data-theme] .order-status{font-weight:850!important;letter-spacing:.035em;font-size:12px;padding:9px 14px;border-radius:24px;display:inline-block;margin:4px 0 10px;text-transform:uppercase}
#tp-app[data-theme] .status-preparing,#tp-app[data-theme] .status-accepted{background:#ffe078!important;color:#302400!important;border-color:#ebc444!important}
#tp-app[data-theme] .payment-status{display:inline-block;padding:5px 9px;background:var(--panel-alt);color:var(--text);border-radius:8px;font-size:12px;font-weight:700}
#tp-app[data-theme] .overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tp-app[data-theme] .overview-metrics .card{padding:18px;margin:0}
#tp-app[data-theme] .overview-metrics strong{font-size:28px}
#tp-app[data-theme] .overview-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#tp-app[data-theme] .overview-actions button{padding:16px 5px;background:var(--panel)!important;color:var(--cyan)!important;border:1px solid var(--line)!important;font-size:13px;border-radius:16px}
#tp-app[data-theme] .overview-order{padding:18px 0;border-top:1px solid var(--line)}
#tp-app[data-theme] .flow-tabs button{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)}
#tp-app[data-theme] .flow-tabs button.selected{background:var(--cyan)!important;color:var(--page)!important}
#tp-app[data-theme] .pagination{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}
#tp-app[data-theme] .connection-card{padding:18px;border-bottom:1px solid var(--line)}
@media(max-width:700px){#tp-app[data-theme] main{padding-left:16px;padding-right:16px}#tp-app[data-theme] .app-bar{min-height:68px;padding:6px 16px}#tp-app[data-theme] .app-bar .brand img{width:122px!important;height:50px!important}#tp-app[data-theme] .discovery-intro h1{font-size:32px}#tp-app[data-theme] .booking-card{grid-template-columns:1fr}#tp-app[data-theme] .booking-card .booking-art{aspect-ratio:16/8;height:auto;max-height:190px}#tp-app[data-theme] .booking-card>div{padding:18px}#tp-app[data-theme] .mobile-heading{margin:8px 0 16px}#tp-app[data-theme] .mobile-heading h1{font-size:28px}#tp-app[data-theme] .transaction-row summary{gap:12px}#tp-app[data-theme] .transaction-row .order-status{font-size:10px}#tp-app[data-theme] .discovery-hero{min-height:280px}}

#tp-app[data-theme] .brand img.platform-logo{object-fit:cover!important;height:84px!important}
@media(max-width:700px){#tp-app[data-theme] .app-bar .brand img.platform-logo{object-fit:cover!important;width:122px!important;height:68px!important}}
/* Resolve legacy theme rules at a single semantic-token boundary. */
#tp-app[data-theme][data-theme],#tp-app[data-theme][data-theme] main{background:var(--page)!important;color:var(--text)!important}
#tp-app[data-theme][data-theme] header,#tp-app[data-theme][data-theme] .bottom-nav{background:var(--page)!important;color:var(--text)!important;border-color:var(--line)!important}
#tp-app[data-theme][data-theme] .card,#tp-app[data-theme][data-theme] .ticket-information,#tp-app[data-theme][data-theme] .event-row,#tp-app[data-theme][data-theme] .overview-order{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
#tp-app[data-theme][data-theme] input,#tp-app[data-theme][data-theme] select,#tp-app[data-theme][data-theme] textarea{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
#tp-app[data-theme][data-theme] .overview-actions button:nth-child(n){background:var(--panel)!important;color:var(--cyan)!important;border-color:var(--line)!important}
#tp-app[data-theme][data-theme] .discovery-categories button{background:var(--panel-alt)!important;color:var(--text)!important}
#tp-app[data-theme][data-theme] .discovery-categories button.selected{background:var(--cyan)!important;color:var(--page)!important}
#tp-app[data-theme][data-theme] .bottom-nav button.active{background:var(--panel-alt)!important;color:var(--cyan)!important}

/* 2.8.1: neutral homepage branding; event artwork belongs to event cards. */
#tp-app[data-theme] .discovery-hero.platform-hero{--hero-image:none;background-image:linear-gradient(115deg,var(--panel) 0%,var(--panel) 58%,var(--panel-alt) 100%)!important;background-color:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:36px;min-height:340px;padding:42px;isolation:isolate}
#tp-app[data-theme] .platform-hero .hero-copy{position:relative;z-index:1}
#tp-app[data-theme] .platform-hero h1{font-size:clamp(34px,4.4vw,62px);color:var(--text)!important;max-width:720px}
#tp-app[data-theme] .platform-hero h1 span{color:var(--cyan)!important}
#tp-app[data-theme] .platform-hero p{color:var(--muted)!important;font-size:17px;max-width:520px}
#tp-app[data-theme] .platform-hero .eyebrow{color:var(--accent)!important;font-size:12px;letter-spacing:.1em}
#tp-app[data-theme] .hero-brand-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;color:var(--muted);font-size:13px;font-weight:650;text-align:center}
#tp-app[data-theme] .hero-ticket-mark{width:180px;height:180px;border-radius:44px;background:var(--page);border:1px solid var(--line);display:grid;place-items:center;box-shadow:18px 18px 0 -3px var(--panel-alt);transform:rotate(-9deg)}
#tp-app[data-theme] .hero-ticket-mark svg{width:108px;height:108px;color:var(--cyan);stroke-width:1.2}
#tp-app[data-theme] .sponsored-placement:empty{display:none}
@media(max-width:760px){#tp-app[data-theme] .discovery-hero.platform-hero{grid-template-columns:1fr;padding:26px;gap:0;min-height:280px}#tp-app[data-theme] .platform-hero h1{font-size:clamp(31px,6.5vw,46px)}#tp-app[data-theme] .hero-brand-art{display:none}#tp-app[data-theme] .platform-hero p{font-size:15px}}

#tp-app[data-theme] .homepage-promotion .sponsored-ad img{width:100%;height:auto;max-height:260px;object-fit:contain;background:var(--panel);border:1px solid var(--line)}
@media(max-width:760px){#tp-app[data-theme] .homepage-promotion .sponsored-ad img{max-height:160px}}
