/* Marketplace, account dashboard, event tickets and ticket passes. Builds on styles.css, system.css and home.css. */

.market-page { padding-bottom: 56px; min-height: 78vh; } /* reserves space while the page loads so the footer does not jump down */
.market-page h1 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.4vw, 40px); font-weight: 790; letter-spacing: -.04em; line-height: 1.08; }
.market-page h2, .market-page h3 { color: var(--navy); }

/* ---------- marketplace ---------- */
.market-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; margin: 6px 0 20px; }
.market-head p { max-width: 640px; margin: 8px 0 0; color: #51647c; font-size: 16px; }
.market-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.market-filters input[type="search"], .market-filters select {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.market-filters input[type="search"] { flex: 1 1 280px; }
.market-filters select { flex: 0 1 200px; }
@media (max-width: 560px) { .market-filters select { flex: 1 1 100%; } } /* on a phone the dropdown lines up with the search box above it */
.market-filters input:focus-visible, .market-filters select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.market-filters .filter-row { margin: 0; }
.market-count { min-height: 1.4em; margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 650; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.market-grid > li { display: flex; min-width: 0; }
.m-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgb(6 39 79 / 6%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.m-card:hover { transform: translateY(-3px); border-color: #c7d6e8; box-shadow: 0 14px 30px rgb(6 39 79 / 12%); }
.m-card-media { display: block; }
.m-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.m-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-card h3 { margin: 0; font-size: 17.5px; font-weight: 780; line-height: 1.22; letter-spacing: -.02em; }
.m-card h3 a { color: var(--navy); }
.m-card h3 a:hover { color: var(--blue); }
.m-sector { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.m-price { margin: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.m-price-lg { font-size: 26px; }
.m-seller { margin: auto 0 0; color: #51647c; font-size: 14px; }
.m-seller a { color: var(--blue); font-weight: 700; }
.m-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; padding: 28px; border: 1px dashed #b9c9dc; border-radius: 16px; background: #fff; color: #51647c; }
.m-empty p { margin: 0; font-size: 16px; }

/* Marketplace listing empty and loading states */
.market-page #market-grid > .m-empty { min-height: 190px; align-content: center; justify-items: center; gap: 14px; padding: clamp(22px, 4vw, 36px); border-style: solid; border-color: #d8e3ef; background: linear-gradient(145deg, #fff, #f5f8fc); text-align: center; }
.market-page #market-grid > .m-empty p { max-width: 44ch; color: #405670; font-size: 16px; line-height: 1.5; }
.market-page #market-grid > .m-empty .button { min-height: 44px; }
.market-page #market-grid > .biz-loading { grid-column: 1 / -1; min-height: 140px; display: grid; place-items: center; margin: 0; padding: 24px; border: 1px solid #d8e3ef; border-radius: 16px; background: #fff; color: #526477; }

/* Business profile loading and unavailable states */
.biz-page:not(.market-page) #business-detail > .biz-loading,
.biz-page:not(.market-page) #business-detail > .biz-missing { margin: 0 0 28px; padding: 28px; border: 1px solid #d8e3ef; border-radius: 16px; background: #f7f9fc; color: #405670; }
.biz-page:not(.market-page) #business-detail > .biz-missing a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.kind-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.kind-product { background: #e3eefb; color: #0b4a8f; }
.kind-service { background: #e0f5f3; color: #0a6b68; }

/* covers: a picture if there is one, otherwise a coloured panel with a line icon */
.cover { position: relative; display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #e8eef6; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* An event flier is shown whole, in its own shape, with blank space at the sides instead of cropping or stretching it. */
.cover.is-flier { background: #eef3f9; }
.cover.is-flier img { object-fit: contain; }
.ev-hero .cover.is-flier { aspect-ratio: auto; min-height: 220px; }
.ev-hero .cover.is-flier img { width: auto; max-width: 100%; height: auto; max-height: 560px; }
.cover.art { background: linear-gradient(145deg, #0a3d78, #0759a8 55%, #1576cf); color: rgb(255 255 255 / 92%); }
.cover-initial { font-size: 56px; font-weight: 820; letter-spacing: -.04em; opacity: .92; }
.cover-ico { width: 64px; height: 64px; stroke-width: 1.4; }
.cover.art[data-sector="agribusiness"] { background: linear-gradient(145deg, #0b5d3a, #198a55 60%, #3aa66f); }
.cover.art[data-sector="health-social-care"] { background: linear-gradient(145deg, #8a1f4a, #c23b6d 60%, #e0668d); }
.cover.art[data-sector="retail"] { background: linear-gradient(145deg, #7a3b00, #c26a10 60%, #e8a13a); }
.cover.art[data-sector="manufacturing"] { background: linear-gradient(145deg, #2c3a4d, #4c6179 60%, #6f87a1); }
.cover.art[data-sector="services"] { background: linear-gradient(145deg, #06274f, #0b4a8f 60%, #2a77c4); }
.cover.art[data-sector="finance"] { background: linear-gradient(145deg, #1d2b6b, #3b4fb3 60%, #6678d6); }
.cover.art[data-sector="technology"] { background: linear-gradient(145deg, #0a5a5c, #0ea9a6 60%, #4cc9c6); }
.cover.art[data-sector="education"] { background: linear-gradient(145deg, #5a2d8a, #8453c0 60%, #a98adb); }
.cover.art[data-sector="property"] { background: linear-gradient(145deg, #4a3a22, #8a6d3b 60%, #b9975b); }
.cover.art[data-sector="investment"] { background: linear-gradient(145deg, #0b3a2c, #137a55 60%, #f6bf18); }
.cover.art-event { background: linear-gradient(145deg, #031a37, #06274f 50%, #0a4a8c); }
.cover-date { position: absolute; top: 14px; left: 14px; display: grid; min-width: 54px; padding: 6px 10px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); text-align: center; line-height: 1.05; }
.cover-date small { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cover-date b { font-size: 22px; font-weight: 850; }

.m-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.m-detail-media .cover { border-radius: 18px; aspect-ratio: 5 / 4; }
.m-detail-body { display: grid; gap: 12px; }
.m-desc { margin: 0; color: #324a66; font-size: 16.5px; line-height: 1.6; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
#seller-contact { scroll-margin-top: 90px; }

/* ---------- pills and small things ---------- */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-block; margin: 0; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.pill-live, .pill-approved { background: #dff4e6; color: #0d6a35; }
.pill-wait, .pill-pending { background: #fff1c9; color: #7a5a00; }
.pill-rejected { background: #fde3e0; color: #9a2018; }
.pill-promo { background: var(--gold); color: var(--navy-deep); }
.promo-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-size: 10.5px; font-style: normal; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; vertical-align: .12em; }
.button-danger { border-color: #e6b8b3; color: #9a2018; background: #fff; }
.button-danger:hover { background: #fde3e0; }
.flash { margin: 0 0 14px; padding: 12px 16px; border: 1px solid #b9dfc6; border-radius: 12px; background: #e9f7ee; color: #0d6a35; font-weight: 700; }
.empty { padding: 24px; border: 1px dashed #b9c9dc; border-radius: 14px; background: #fff; color: #51647c; }

/* ---------- account ---------- */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; margin: 12px 0 28px; }
.auth-intro p { max-width: 520px; color: #51647c; font-size: 17px; }
.auth-points { display: grid; gap: 12px; max-width: 520px; margin: 18px 0 0; padding: 0; list-style: none; }
.auth-points li { padding: 14px 16px 14px 18px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #fff; color: #324a66; box-shadow: 0 4px 14px rgb(6 39 79 / 6%); }
.auth-points strong { color: var(--navy); }
.auth-card { display: grid; gap: 12px; }
.auth-tabs, .dash-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #e6edf6; }
.auth-tabs button, .dash-tabs button { flex: 1; min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #324a66; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 750; }
.auth-tabs button[aria-selected="true"], .dash-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgb(6 39 79 / 12%); }
.dk-password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; min-width: 0; }
.dk-password-control input { min-width: 0; }
.password-toggle { min-width: 76px; }
.password-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.dash-head p { margin: 6px 0 0; color: #51647c; }
.dash-tabs { max-width: 560px; margin-bottom: 20px; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.dash-bar p { margin: 0; color: #51647c; }
.dash-form { margin-bottom: 22px; }
.dash-form h2 { margin: 0; font-size: 21px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash-list { display: grid; gap: 16px; }
.dash-logout { background: #fff; }

.ticket-rows legend { padding: 0; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; margin-bottom: 8px; }
.ticket-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; margin-bottom: 4px; color: #4a5a6d; font-size: 13px; font-weight: 700; }
.ticket-row input { min-height: 44px; padding: 0 12px; border: 1px solid #b9c9dc; border-radius: 8px; font: inherit; }
.ticket-rows .button { justify-self: start; width: auto; }
.ticket-error { margin: 6px 0 0; color: #b3261e; font-size: 13.5px; font-weight: 650; }
.ticket-remove { border: 1px solid #d3dce8; border-radius: 8px; background: #fff; color: #51647c; cursor: pointer; font-size: 20px; }
.ticket-remove:hover { background: #f1f5fa; color: #9a2018; }

.ev-card { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgb(6 39 79 / 6%); }
.ev-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.ev-top h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.ev-top p { margin: 4px 0 0; color: #51647c; font-size: 14.5px; }
.ev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-stats div { display: grid; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.ev-stats b { color: var(--navy); font-size: 22px; font-weight: 820; }
.ev-stats span { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.ev-bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ev-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 64px 56px; align-items: center; gap: 10px; color: #324a66; }
.ev-bars .bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #e3eaf3; }
.ev-bars .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.ev-bars em { color: var(--muted); font-style: normal; text-align: right; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-details { border-top: 1px solid var(--line); padding-top: 10px; }
.ev-details summary { cursor: pointer; color: var(--blue); font-weight: 750; }
.checkin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.checkin input { flex: 1 1 240px; min-height: 42px; padding: 0 12px; border: 1px solid #b9c9dc; border-radius: 8px; font: inherit; }
.checkin-msg { flex-basis: 100%; margin: 0; font-weight: 700; }
.checkin-msg[data-kind="success"] { color: #0d6a35; }
.checkin-msg[data-kind="error"] { color: #b3261e; }
.attendees { overflow-x: auto; }
.attendees table { width: 100%; border-collapse: collapse; font-size: 14px; }
.attendees th, .attendees td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.attendees small { display: block; color: var(--muted); }
.attendees code, .pass-code code { font-size: 13px; }

.ls-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ls-media .cover { aspect-ratio: 1; border-radius: 12px; }
.ls-media .cover-ico { width: 38px; height: 38px; }
.ls-body h3 { margin: 6px 0 2px; font-size: 17px; }
.ls-body p { margin: 0; color: #51647c; font-size: 14px; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.msg-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.msg-top span, .msg-contact { color: var(--muted); font-size: 13.5px; }
.msg p { margin: 8px 0 0; color: #324a66; }

/* ---------- event page ---------- */
.preview-banner { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #f1dfa6; border-radius: 12px; background: #fff9e6; color: #5a4a14; font-weight: 700; }
.ev-page { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-areas: "hero side" "main side"; gap: 22px 32px; align-items: start; margin: 8px 0 28px; }
.ev-hero { position: relative; grid-area: hero; }
.ev-hero .cover { border-radius: 20px; aspect-ratio: 16 / 8; }
.ev-hero .cover-ico { width: 84px; height: 84px; }
.hero-pill { position: absolute; top: 14px; right: 14px; box-shadow: 0 4px 12px rgb(0 0 0 / 20%); }
.ev-main { grid-area: main; display: grid; gap: 12px; }
.ev-kind { margin: 0; color: #8a6a00; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ev-facts { display: grid; gap: 8px; margin: 4px 0; padding: 0; list-style: none; }
.ev-facts li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.ev-facts span { color: var(--muted); font-size: 13px; font-weight: 700; }
.ev-side { grid-area: side; position: sticky; top: 92px; }
.tk-panel { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.tk-panel h2 { margin: 0; font-size: 22px; }
.tk-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tk-row small { display: block; color: var(--muted); font-size: 12.5px; }
.tk-row strong { color: var(--navy); }
.tk-price { color: var(--navy); font-size: 18px; font-weight: 820; }
.tk-row select { min-height: 42px; padding: 0 8px; border: 1px solid #b9c9dc; border-radius: 8px; background: #fff; font: inherit; }
.tk-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--line); color: #324a66; font-weight: 700; }
.tk-total { color: var(--navy); font-size: 26px; font-weight: 850; }
.tk-buy { width: 100%; min-height: 52px; font-size: 16px; }

/* ---------- payment dialog ---------- */
.pay-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgb(3 26 55 / 45%); }
.pay-dialog::backdrop { background: rgb(3 26 55 / 55%); backdrop-filter: blur(2px); }
.pay-form { display: grid; gap: 14px; padding: 22px; }
.pay-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pay-head h2 { margin: 0; font-size: 21px; }
.pay-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f8; color: #324a66; cursor: pointer; font-size: 22px; line-height: 1; }
.pay-lines p { margin: 0; color: #324a66; font-weight: 650; }
.pay-lines p:first-child { color: var(--navy); font-size: 16px; font-weight: 800; }
.pay-test { padding: 10px 12px; border: 1px dashed #d8b13a; border-radius: 10px; background: #fff9e6; color: #5a4a14; font-size: 13.5px; }
.pay-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pay-options legend { margin-bottom: 6px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 700; }
.pay-option { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #b9c9dc; border-radius: 10px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--blue); background: #eef5fd; }
.pay-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fde3e0; }

/* ---------- tickets ---------- */
.tk-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; margin: 10px 0 24px; }
.tk-head p { max-width: 620px; margin: 8px 0 0; color: #51647c; }
.tk-head .pill { margin-bottom: 10px; }
.tk-meta { font-size: 14px; }
.tk-head-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.passes { display: grid; gap: 18px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #0a4a8c); color: #fff; box-shadow: var(--shadow); }
.pass::before, .pass::after { content: ""; position: absolute; left: calc(100% - 190px - 13px); width: 26px; height: 26px; border-radius: 50%; background: #f5f8fc; }
.pass::before { top: -13px; }
.pass::after { bottom: -13px; }
.pass-main { display: grid; gap: 4px; padding: 24px 28px; }
.pass-main p { margin: 0; color: #d1deed; }
.pass-main h2 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -.03em; }
.pass-kind { color: var(--gold) !important; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pass-name { margin-top: 10px !important; color: #fff !important; font-size: 18px; font-weight: 800; }
.pass-company { margin-top: 0 !important; color: #d1deed !important; font-size: 15px; font-weight: 650; }
.pass-code { font-size: 13.5px; }
.pass-code code { color: #fff; }
.pass-qr { display: grid; place-items: center; gap: 8px; padding: 18px; border-left: 2px dashed rgb(255 255 255 / 30%); background: #fff; }
.qr { width: 150px; height: 150px; color: var(--navy-deep); }
.qr svg { width: 100%; height: 100%; }
.qr code { font-size: 12px; word-break: break-all; }

@media (max-width: 980px) {
  .ev-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "side" "main"; }
  .ev-side { position: static; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .m-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .market-head .button { width: 100%; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-card-body { padding: 10px 12px 12px; }
  .m-card h3 { font-size: 15px; }
  .m-price { font-size: 16px; }
  .cover-ico { width: 44px; height: 44px; }
  .ls-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ls-actions { grid-column: 1 / -1; }
  .ev-stats b { font-size: 18px; }
  .ev-bars li { grid-template-columns: minmax(0, 1fr) 54px; }
  .ev-bars .bar, .ev-bars em { display: none; }
  .ticket-row { grid-template-columns: minmax(0, 1fr) 80px 80px 36px; }
  .ticket-head { grid-template-columns: minmax(0, 1fr) 80px 80px 36px; font-size: 11.5px; line-height: 1.2; }
  .tk-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .tk-row .tk-price { grid-column: 1; grid-row: 2; }
  .tk-row select { grid-column: 2; grid-row: 1 / 3; }
  .ev-facts li { grid-template-columns: 72px minmax(0, 1fr); }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass::before, .pass::after { display: none; }
  .pass-qr { border-left: 0; border-top: 2px dashed rgb(255 255 255 / 30%); }
  .pass-main { padding: 20px; }
}
@media print {
  .topbar, .side, .site-footer, .tk-head-actions, .crumbs, .ticker, .skip-link { display: none !important; }
  .shell { display: block; }
  .pass { break-inside: avoid; box-shadow: none; border: 1px solid #000; }
  body { background: #fff; }
}

/* Home page teaser: one compact row of four */
.market-strip .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.market-strip .cover { aspect-ratio: 16 / 10; }
.market-strip .cover-initial { font-size: 44px; }
.market-strip .m-card-body { padding: 12px 14px 14px; }
.market-strip .m-card h3 { font-size: 16px; }
@media (max-width: 1100px) { .market-strip .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.photo-credits { padding: 8px 0 0; color: #51647c; font-size: 13.5px; }
.photo-credits summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.photo-credits ul { display: grid; gap: 4px; padding-left: 18px; }
.photo-credits a { color: var(--blue); }

/* picture upload and small auth extras */
.upload-field input[type="file"] { padding: 10px; border: 1px dashed #9db3cd; border-radius: 10px; background: #f7fafd; font: inherit; }
.upload-preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.upload-preview img { width: auto; max-width: 220px; height: auto; max-height: 160px; border-radius: 10px; object-fit: contain; background: #eef3f9; border: 1px solid var(--line); }
.upload-status { min-height: 1.2em; margin: 0; color: #51647c; font-size: 13.5px; font-weight: 650; }
.upload-status[data-kind="busy"] { color: #1f5fa8; }
.upload-status[data-kind="ok"] { color: #1b6e3a; }
.upload-status[data-kind="error"] { color: #a32020; }
/* Picture drop area (event and listing forms) */
.upload-field.is-enhanced { position: relative; }
.upload-field.is-enhanced input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #9db3cd; border-radius: 14px; background: #f7fafd; color: #51647c; font-size: 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-drop strong { color: var(--navy); font-size: 16px; }
.upload-drop-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 24px; line-height: 1; }
.upload-drop:hover, .upload-drop.is-over { border-color: var(--blue); background: #eef5ff; }
.upload-field:focus-within .upload-drop { outline: 3px solid #9cc2ee; outline-offset: 2px; }
.upload-field.is-busy .upload-drop { opacity: .6; pointer-events: none; }
.upload-field.is-enhanced .upload-preview { display: grid; justify-items: start; gap: 10px; margin-top: 8px; }
.upload-field.is-enhanced .upload-preview img { width: 100%; max-width: 360px; max-height: none; aspect-ratio: 2 / 1; object-fit: contain; }
.upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-rows { margin-top: 22px; }
.ticket-rows > legend { margin-bottom: 12px; padding: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.auth-alt { margin: 0; }
.linklike { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; }
.dev-link:empty { display: none; }
.dev-link { display: grid; gap: 8px; justify-items: start; padding: 12px; border: 1px dashed #d8b13a; border-radius: 10px; background: #fff9e6; }
.dev-link p { margin: 0; color: #5a4a14; }

/* email verification, ticket lookup, notices */
.flash[data-kind="error"] { border-color: #e6b8b3; background: #fde3e0; color: #9a2018; }
#account-notice { margin: 4px 0 16px; }
.verify-banner { display: grid; gap: 10px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #f1dfa6; border-radius: 14px; background: #fff9e6; color: #5a4a14; }
.verify-banner p { margin: 0; }
.verify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.verify-actions span { font-weight: 700; }
.dash-tabs { max-width: 720px; }
.lookup { max-width: 560px; margin: 8px 0 28px; }
.lookup h2 { margin: 0 0 6px; font-size: 22px; }
.lookup > p { margin: 0 0 14px; color: #51647c; }
.order-row { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- inbox ---------- */
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 6px 0 14px; }
.inbox-gate { max-width: 560px; margin: 24px 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.inbox-gate p { color: #51647c; }
.tab-badge { display: inline-grid; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; place-items: center; border-radius: 999px; background: #d92d20; color: #fff; font-size: 11.5px; font-weight: 800; }
.inbox-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgb(6 39 79 / 6%); }
.conv-list { display: flex; flex-direction: column; overflow-y: auto; max-height: 640px; border-right: 1px solid var(--line); background: #fafcff; }
.conv { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.conv:hover, .conv.is-active { background: #eef4fc; }
.conv-body { display: grid; min-width: 0; }
.conv-body strong { color: var(--navy); font-size: 15px; }
.conv-preview { overflow: hidden; color: #64748b; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.conv-meta { display: grid; justify-items: end; gap: 6px; color: #64748b; font-size: 12px; }
.unread { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 800; }
.inbox-empty { display: grid; justify-items: start; align-content: center; gap: 8px; min-height: 240px; padding: 28px; color: #51647c; }
.inbox-empty p { margin: 0; }
.avatar { display: inline-grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; font-size: 15px; font-weight: 800; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-who { display: grid; min-width: 0; flex: 1; }
.thread-who a, .thread-who strong { color: var(--navy); font-weight: 800; }
.thread-who span { color: #64748b; font-size: 13px; }
.thread-actions { display: flex; gap: 14px; }
.back { display: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef2f8; color: var(--navy); cursor: pointer; font-size: 24px; line-height: 1; }
.bubbles { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 280px; max-height: 480px; padding: 18px; overflow-y: auto; background: #f7f9fc; }
.bubble { display: grid; max-width: min(78%, 520px); gap: 4px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(6 39 79 / 10%); }
.bubble.mine { align-self: flex-end; border-bottom-right-radius: 5px; background: #dff0ff; }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble p { margin: 0; color: #10233c; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-meta { display: flex; justify-content: flex-end; gap: 12px; color: #64748b; font-size: 11.5px; }
.bubble-meta .linklike { font-size: 11.5px; color: #64748b; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 11px 14px; border: 1px solid #b9c9dc; border-radius: 14px; font: inherit; font-size: 15.5px; resize: none; }
.composer textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.composer .dk-submit { min-height: 46px; }
.composer-note { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff9e6; color: #5a4a14; font-weight: 650; }
.thread > .dk-error { margin: 6px 16px 0; }
.people { display: grid; gap: 12px; }
.person { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.person-body h3 { margin: 0; font-size: 16.5px; }
.person-body h3 a { color: var(--navy); }
.person-body p { margin: 2px 0 0; color: #51647c; font-size: 14px; }
.person-note { font-style: italic; }
.person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.people-search input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; }
.people-search { margin-bottom: 8px; }
.req-section { margin-bottom: 26px; }
.req-section h2 { margin: 0 0 10px; font-size: 19px; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; transform: translateX(-50%); border-radius: 12px; background: var(--navy-deep); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgb(0 0 0 / 28%); }

/* member profile */
.profile { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; max-width: 760px; margin: 14px 0 30px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.profile .avatar { width: 88px; height: 88px; flex-basis: 88px; font-size: 30px; }
.profile-body { display: grid; gap: 6px; align-content: start; }
.profile-biz { margin: 0; color: var(--blue); font-weight: 800; }
.profile-headline { margin: 0; color: #324a66; font-size: 17px; }
.profile-loc { margin: 0; color: #64748b; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* profile & privacy, invite */
.vis-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.vis-options legend { margin-bottom: 8px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 700; }
.vis-option { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px; border: 1px solid #b9c9dc; border-radius: 12px; cursor: pointer; }
.vis-option:has(input:checked) { border-color: var(--blue); background: #eef5fd; }
.vis-option small { display: block; margin-top: 2px; color: #51647c; font-size: 13.5px; }
.blocked { margin-top: 24px; }
.blocked ul { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.blocked li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.invite-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 28px; max-width: 760px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.invite-main { display: grid; gap: 12px; }
.invite-main h2 { margin: 0; font-size: 22px; }
.invite-main p { margin: 0; color: #51647c; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #b9c9dc; border-radius: 8px; background: #f7fafd; font: inherit; font-size: 14px; }
.invite-count { font-weight: 700; color: var(--navy) !important; }
.invite-qr { width: 100%; max-width: 220px; justify-self: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy-deep); }
.invite-qr svg { display: block; width: 100%; height: auto; }
.invite-banner { margin: 0 0 12px; padding: 12px 16px; border: 1px solid #b9dfc6; border-radius: 12px; background: #e9f7ee; color: #0d6a35; font-weight: 700; }
.dash-tabs { flex-wrap: wrap; }

@media (max-width: 760px) {
  .inbox-split { display: block; min-height: 0; }
  .inbox-split .conv-list { max-height: none; border-right: 0; }
  .inbox-split .thread { display: none; }
  .inbox-split.has-thread .conv-list { display: none; }
  .inbox-split.has-thread .thread { display: flex; min-height: 70vh; }
  .back { display: inline-grid; place-items: center; }
  .bubbles { max-height: 55vh; }
  .person { grid-template-columns: 44px minmax(0, 1fr); }
  .person-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .profile { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .invite-card { grid-template-columns: minmax(0, 1fr); }
  .invite-qr { order: -1; }
}
@media (max-width: 640px) {
  .dash-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .dash-tabs button { flex: 0 0 auto; white-space: nowrap; }
}
@media print {
  .invite-card { border: 0; box-shadow: none; }
  .invite-main > *:not(h2):not(p:first-of-type) { display: none; }
}

.dash-tabs { max-width: 900px; }

/* stage 2: event tools, demo labels, chamber */
.ev-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; cursor: pointer; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; min-width: 260px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgb(6 39 79 / 18%); }
.cal-menu-list a { padding: 10px 12px; border-radius: 8px; color: var(--navy); font-weight: 700; }
.cal-menu-list a:hover { background: #eef4fc; }
.demo-note { margin: 0; padding: 10px 12px; border: 1px dashed #d8b13a; border-radius: 10px; background: #fff9e6; color: #5a4a14; font-size: 13.5px; font-weight: 650; }
.demo-banner { max-width: 620px; margin: 10px 0 0 !important; padding: 12px 14px; border: 1px solid #f1dfa6; border-radius: 12px; background: #fff9e6; color: #5a4a14 !important; font-weight: 700; }
.ext-ticket { display: grid; justify-items: start; gap: 10px; }
.ext-ticket p { margin: 0; color: #51647c; }
.chamber-pill { display: inline-block; align-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #e3eefb; color: #0b4a8f; font-size: 12px; font-weight: 800; }
.chamber-tick { margin: 4px 0; }

/* ---------- stage 3: community feed ---------- */
.composer-card { margin-bottom: 22px; }
.composer-card textarea { min-height: 96px; }
.feed { display: grid; gap: 16px; }
.feed-more-row { display: flex; justify-content: center; margin: 18px 0 8px; }
.post { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgb(6 39 79 / 6%); }
.post.is-boosted { border-color: #f1dfa6; background: linear-gradient(180deg, #fffdf5, #fff 40%); }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-who { display: grid; min-width: 0; flex: 1; }
.post-who strong { color: var(--navy); font-size: 15.5px; }
.post-who strong a { color: var(--navy); }
.post-who span { color: #64748b; font-size: 13px; }
.post-who .chamber-pill { margin: 0 0 0 8px; }
.post-text { margin: 0; color: #10233c; font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-img { width: 100%; max-height: 420px; border-radius: 14px; object-fit: cover; }
.react-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.react-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid #c9d6e6; border-radius: 999px; background: #fff; color: #324a66; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; }
.react-btn:hover { border-color: var(--blue); }
.react-btn[aria-pressed="true"] { border-color: var(--blue); background: #e3eefb; color: #0b4a8f; }
.react-n { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; border-radius: 999px; background: #fff; font-size: 12px; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.post-actions .linklike { font-size: 13.5px; }
.avatar-sm { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.comments { display: grid; gap: 10px; padding-top: 6px; }
.comments[hidden] { display: none; }
.comment-list { display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment-body { min-width: 0; padding: 8px 12px; border-radius: 14px; background: #f3f6fb; }
.comment-body p { margin: 0; color: #10233c; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-body a { color: var(--navy); }
.comment-meta { display: flex; gap: 14px; color: #64748b; font-size: 12px; }
.comment-meta .linklike { font-size: 12px; color: #64748b; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border: 1px solid #b9c9dc; border-radius: 999px; font: inherit; font-size: 15px; }
.community-strip { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--edge, #dce4ee); border-radius: 22px; background: #fff; }
.community-strip[hidden] { display: none; }
.community-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.community-list .post { height: 100%; box-shadow: none; }
.community-list .post-text { font-size: 15px; }
.community-list .post-img { max-height: 180px; }
.m-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 980px) { .community-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .post { padding: 14px; } .community-strip { padding: 14px; border-radius: 18px; } }

/* profile pictures */
.avatar.has-photo { overflow: hidden; background: #e3eefb; }
.avatar.has-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- chat: replies, ticks, day dividers ---------- */
.day-divider { align-self: center; margin: 6px 0; }
.day-divider span { padding: 4px 12px; border-radius: 999px; background: #e3eaf3; color: #51647c; font-size: 12px; font-weight: 700; }
.bubble .quote { display: grid; gap: 1px; padding: 6px 10px; border-left: 3px solid var(--blue); border-radius: 8px; background: rgb(6 39 79 / 6%); }
.bubble .quote strong { color: var(--blue); font-size: 12px; }
.bubble .quote span { color: #324a66; font-size: 13.5px; overflow-wrap: anywhere; }
.bubble.is-deleted { background: #eef1f5; }
.bubble .deleted-note { color: #64748b; font-size: 14.5px; font-style: italic; }
.bubble-meta { align-items: center; }
.bubble-actions { display: inline-flex; gap: 12px; margin-right: auto; opacity: 0; transition: opacity .15s; }
.bubble:hover .bubble-actions, .bubble:focus-within .bubble-actions { opacity: 1; }
@media (hover: none) { .bubble-actions { opacity: 1; } }
.tick { color: #8a99ad; font-size: 12.5px; font-weight: 800; letter-spacing: -2px; }
.tick.is-read { color: #1c7be0; }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); border-left: 4px solid var(--blue); background: #f0f6fd; }
.reply-bar[hidden] { display: none; }
.reply-bar div { display: grid; min-width: 0; }
.reply-bar strong { color: var(--blue); font-size: 12px; }
.reply-text { color: #324a66; font-size: 13.5px; overflow-wrap: anywhere; }

/* ---------- chat: pictures and voice messages ---------- */
.chat-img-link { display: block; }
.chat-img { display: block; width: 100%; max-width: 280px; max-height: 320px; border-radius: 12px; object-fit: cover; background: #e3eaf3; }
.voice { display: flex; align-items: center; gap: 8px; }
.voice audio { width: 230px; max-width: 100%; height: 40px; }
.voice-len { color: #64748b; font-size: 12px; }
.icon-btn { display: inline-grid; flex: 0 0 44px; width: 44px; height: 46px; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #324a66; cursor: pointer; }
.icon-btn:hover { background: #e3eefb; color: var(--blue); }
.icon-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.rec-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fff5f5; }
.rec-bar[hidden] { display: none; }
.rec-bar audio { flex: 1; min-width: 0; height: 40px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #d93025; animation: rec-pulse 1.1s ease-in-out infinite; }
.rec-time { margin-right: auto; color: #8a1c14; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
@media (max-width: 640px) { .composer { gap: 4px; padding: 10px 8px; } .icon-btn { flex-basis: 38px; width: 38px; } }

/* helpers for chat controls */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.icon-btn { position: relative; }
.icon-btn:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; }

/* ---------- polish: community column, pickers, action buttons ---------- */
.community-page #community-app { max-width: 760px; }
.community-page .inbox-head { margin-bottom: 14px; }
.community-page .inbox-head .dk-hint { max-width: 56ch; margin: 6px 0 0; font-size: 14.5px; color: #51647c; }
.upload-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; }
.upload-field input[type="file"]::file-selector-button:hover { background: var(--blue); }
.post-actions { gap: 4px 6px; padding-top: 10px; }
.post-actions .linklike { padding: 7px 12px; border-radius: 9px; background: #f1f5fa; color: #324a66; text-decoration: none; font-size: 13.5px; }
.post-actions .linklike:hover { background: #e3eefb; color: var(--blue); }
.post-actions .linklike:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.ev-actions .button { border: 1px solid #c9d6e6; }
.ev-actions .button-gold { border-color: transparent; }
.post.is-boosted .post-head .pill-promo { align-self: flex-start; }

/* "About you" step and tags */
.welcome-card { margin: 0 0 22px; padding: 22px; border: 1px solid #b9c9dc; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgb(6 39 79 / 8%); }
.welcome-card h2 { margin: 0 0 6px; color: var(--navy, #06274f); font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.welcome-lede { margin: 0 0 16px; color: #3b4f67; }
.about-group { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.about-group legend { padding: 0; margin: 0 0 8px; color: var(--navy, #06274f); font-weight: 750; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.about-chip { position: relative; display: inline-flex; cursor: pointer; }
.about-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.about-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #b9c9dc; border-radius: 999px; background: #fff; color: var(--navy, #06274f); font-size: 15px; font-weight: 650; }
.about-chip input:checked + span { border-color: var(--navy, #06274f); background: var(--navy, #06274f); color: #fff; }
.about-chip input:focus-visible + span { outline: 3px solid var(--navy, #06274f); outline-offset: 2px; box-shadow: 0 0 0 5px var(--gold, #f6bf18); }
.about-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.about-tags li { padding: 3px 10px; border-radius: 999px; background: #eef3f9; color: #26405e; font-size: 13px; font-weight: 650; }
.welcome-done .dash-actions { margin-top: 10px; }
@media (max-width: 480px) { .welcome-card { padding: 16px; } }
#dash-view.is-onboarding > :not(.dash-head):not(#onboard-root):not(#verify-banner) { display: none !important; }
.welcome-kicker { margin: 0 0 4px; color: #475569; font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.welcome-form select { width: 100%; }
.intro-list { display: grid; gap: 10px; margin: 14px 0 0; }
.intro-list div { padding: 10px 12px; border-radius: 12px; background: #f3f7fb; }
.intro-list dt { color: #475569; font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.intro-list dd { margin: 2px 0 0; color: var(--navy, #06274f); overflow-wrap: anywhere; }
.pay-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #eef5fd; color: #26405e; font-size: 14.5px; line-height: 1.45; }
.orders-h { margin: 18px 0 8px; color: var(--navy, #06274f); font-size: 17px; font-weight: 800; }
.orders-h:first-child { margin-top: 0; }
.order-state { color: #475569; font-size: 14.5px; }
.order-wait { border-color: #f0c64a; background: #fffaf0; }

/* Terms tickbox */
.terms-field label { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; font-weight: 600; line-height: 1.45; cursor: pointer; }
.terms-field input[type="checkbox"] { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--navy, #06274f); }
.terms-field a { color: var(--blue, #0759a8); text-decoration: underline; text-underline-offset: 2px; }

/* Business or individual */
.acct-choice { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.acct-choice legend { padding: 0; margin: 0 0 6px; color: var(--navy, #06274f); font-weight: 750; }
.acct-opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid #b9c9dc; border-radius: 12px; cursor: pointer; }
.acct-opt:has(input:checked) { border-color: var(--blue, #0759a8); background: #eef5fd; }
.acct-opt input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy, #06274f); }
.acct-opt small { display: block; margin-top: 2px; color: #51647c; font-size: 13.5px; }
form[data-acct="individual"] .biz-only, form[data-acct="business"] .ind-only { display: none !important; }

/* Spotlight date picker (account page) */
.spot-dialog { width: min(480px, calc(100% - 32px)); }
.spot-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-height: 300px; padding: 2px; overflow-y: auto; }
.spot-dow { color: #5b6b7d; font-size: 11px; font-weight: 700; text-align: center; }
.spot-day { position: relative; display: grid; aspect-ratio: 1; place-items: center; padding: 0; border: 1px solid #d5e0ee; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.spot-day small { position: absolute; top: 1px; left: 3px; color: #5b6b7d; font-size: 9px; font-weight: 700; }
.spot-day:hover:not(:disabled) { background: #eef4fb; }
.spot-day.is-full { background: #e6e9ee; color: #98a3b1; text-decoration: line-through; cursor: not-allowed; }
.spot-day.is-blocked { background: #f4f6f9; color: #b3bcc8; cursor: not-allowed; }
.spot-day.is-picked { border-color: var(--navy); background: var(--navy); color: #fff; }
.spot-day:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.spot-summary { margin: 8px 0 0; color: var(--navy); font-size: 13.6px; font-weight: 700; }

/* Account welcome step: Skip at the top of the long form, and a short reminder for members who came to do something specific */
.welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.welcome-head h2 { margin: 0; }
.welcome-compact { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.welcome-compact p { margin: 0; color: #324a66; }

/* Complimentary tickets (codes): the checkbox on a ticket row, the organiser's panel, and the buyer's "Have a code?" box */
.ticket-code-only { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #324a66; font-size: 14px; cursor: pointer; }
.ticket-code-only input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.promo-body { display: grid; gap: 14px; padding-top: 10px; }
.promo-switch { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); cursor: pointer; }
.promo-switch input { width: 20px; height: 20px; }
.promo-codes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promo-codes li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.promo-codes li.is-off { opacity: .7; }
.promo-codes code { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.promo-codes .promo-type { color: var(--muted); }
.promo-codes em { color: #9a2018; font-style: normal; font-weight: 700; }
.promo-actions { display: flex; gap: 8px; margin-left: auto; }
.promo-add { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.promo-add h4 { margin: 0; color: var(--navy); }
.promo-code-line, .tk-code-line { display: flex; gap: 8px; align-items: center; }
.promo-code-line input, .tk-code-line input { flex: 1 1 auto; min-width: 0; }
.tk-code-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tk-row--comp { border-color: #9ec9a8; background: #f1f8f2; }
.pass-comp { margin-top: 0 !important; color: #b7e4c0 !important; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .promo-actions { margin-left: 0; }
  .promo-code-line, .tk-code-line { flex-wrap: wrap; }
}

/* Quick pay buttons at checkout: one press chooses the way to pay and pays */
.tk-quickpay { display: grid; gap: 10px; margin-top: 4px; }
.tk-quick-title { margin: 0; font-weight: 700; }
.tk-quick { display: flex; align-items: center; min-height: 64px; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tk-quick:hover:not(:disabled) { border-color: var(--navy, #1f3a6e); box-shadow: 0 0 0 2px rgba(31, 58, 110, 0.12); }
.tk-quick:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }
.tk-quick:disabled { opacity: 0.55; cursor: not-allowed; }
.tk-quick img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.tk-quick span { display: grid; gap: 2px; }
.tk-quick strong { font-size: 16px; }
.tk-quick small { color: #4a5a70; font-size: 13.5px; line-height: 1.4; }
.tk-quick small:empty { display: none; }
.tk-qr { width: min(260px, 100%); margin: 6px auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tk-qr svg { display: block; width: 100%; height: auto; }
.tk-continue { display: block; text-align: center; text-decoration: none; }

/* Event form: choose how tickets are sold (open tickets, or tables and seats) */
.sell-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.sell-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #c9d3e0; border-radius: 12px; background: #fff; cursor: pointer; }
.sell-opt input { margin-top: 4px; flex: none; }
.sell-opt span { display: grid; gap: 2px; }
.sell-opt b { color: var(--navy); font-size: 15px; }
.sell-opt small { color: #4a5a6d; font-size: 13px; line-height: 1.35; }
.sell-opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgb(6 39 79 / .15); background: #f4f8fd; }
.sell-opt:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.sell-opt:has(input:focus-visible) { outline: 3px solid #d4a017; outline-offset: 2px; }
.sell-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #ecd9a0; color: #4a3a07; }
.table-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.table-setup .dk-hint { grid-column: 1 / -1; margin: 0; }
.ticket-rows.is-tables > .ticket-head, .ticket-rows.is-tables > #ticket-list, .ticket-rows.is-tables > #add-ticket-type,
.ticket-rows.is-tables > .dk-hint:not(.sell-note) { display: none; }
@media (max-width: 560px) { .sell-mode, .table-setup { grid-template-columns: 1fr; } }
.dk-field .sell-opt input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.sell-opt > span { min-width: 0; }

.ev-hero:empty { display: none; }

/* "i" help buttons beside form labels */
.field-head { display: flex; align-items: center; gap: 8px; }
.info-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1.5px solid var(--navy, #06274f); border-radius: 50%; background: #fff; color: var(--navy, #06274f); font: italic 700 15px/1 Georgia, "Times New Roman", serif; cursor: pointer; vertical-align: middle; }
.info-btn::after { content: ""; position: absolute; inset: -9px; } /* a 44px tap area around the small circle */
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--navy, #06274f); color: #fff; }
.info-btn:focus-visible { outline: 3px solid var(--gold, #d4a017); outline-offset: 2px; }
.info-panel { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid #d9c46b; border-left: 4px solid var(--gold, #d4a017); border-radius: 10px; background: #fffaf0; color: #3a2f08; font-size: 14.5px; line-height: 1.5; }
.info-panel p { margin: 0; }
.info-panel a { color: #0b4f9c; font-weight: 700; }
.form-help { margin: -4px 0 14px; }
.info-chip { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--navy, #06274f); border-radius: 50%; font: italic 700 12px/1 Georgia, serif; color: var(--navy, #06274f); vertical-align: middle; }

/* Delete my account (Profile & privacy tab) and its public page */
.danger-zone { margin: 36px 0 8px; padding: 20px; border: 1px solid #e6b8b3; border-radius: 14px; background: #fff8f7; }
.danger-zone h2 { margin: 0 0 6px; font-size: 20px; color: #9a2018; }
.danger-zone > p { margin: 0 0 12px; color: #3d4f66; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: #9a2018; padding: 8px 0; }
.danger-zone .dk-form { margin-top: 10px; max-width: 520px; }
.danger-zone #del-status { color: #9a2018; font-weight: 600; }
.del-steps { padding-left: 22px; line-height: 1.6; }
.del-steps li { margin: 6px 0; }

/* In mobile apps, hide point top-ups until platform billing is available. Detection: system.js sets html.dk-in-app. */
html.dk-in-app .pts-card[aria-labelledby="pts-topup-h"],
html.dk-in-app .pts-card[aria-labelledby="pts-topups-h"],
html.dk-in-app .pts-topup-prompt .button { display: none !important; }

/* iOS hides the points area and point-funded actions until StoreKit is implemented. */
html.dk-ios-app [data-dash="points"],
html.dk-ios-app #points-chip { display: none !important; }
.ios-app-note { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #b8cee5; border-left: 4px solid #174b78; border-radius: 10px; background: #f2f7fc; color: #193d5d; line-height: 1.55; }

/* Recent transactions card (Orders & tickets tab) */
.txn-card { background: #fff; border: 1px solid #dce4ee; border-radius: 14px; padding: 14px 16px 6px; }
.txn-card .orders-h { margin: 0 0 6px; }
.txn-list { list-style: none; margin: 0; padding: 0; }
.txn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1f6; }
.txn-row:first-child { border-top: 0; }
.txn-main { min-width: 0; display: grid; gap: 2px; }
.txn-main strong { color: var(--navy); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.txn-main small { color: #51647c; font-size: 12.5px; }
.txn-side { flex: none; display: grid; justify-items: end; gap: 3px; text-align: right; }
.txn-side b { color: var(--navy); font-size: 14px; font-weight: 800; white-space: nowrap; }
.txn-chip { font-style: normal; font-size: 11.5px; font-weight: 750; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.txn-ok { background: #e6f5ec; color: #17653a; }
.txn-wait { background: #fff3d6; color: #8a5a00; }

/* Phones: the account tabs run past the right edge, so fade that edge to show there is more to scroll to */
@media (max-width: 640px) {
  .dash-tabs { overflow-x: auto; scrollbar-width: none; padding-right: 30px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tabs button { flex: none; }
}

/* Notifications card (Profile & privacy tab) */
.push-card { margin: 24px 0 0; padding: 18px 20px; border: 1px solid #dce4ee; border-radius: 14px; background: #fff; }
.push-card h2 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.push-card p { margin: 0 0 10px; color: #324a66; font-size: 14.5px; }
.push-card .push-status { font-weight: 700; color: var(--navy); }
.push-card .push-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sign in with Apple (apple-signin.js) */
.apple-signin { margin: 0 0 16px; }
.apple-or { margin: 12px 0 0; text-align: center; color: #51647c; font-size: 13.5px; }
.apple-note:empty { display: none; }
.apple-note { margin: 10px 0 0; color: #7a2018; font-size: 14px; font-weight: 700; }
.apple-signup { display: grid; gap: 10px; padding: 16px; border: 1px solid #dce4ee; border-radius: 14px; background: #fff; }
.apple-signup h3, .apple-signup p { margin: 0; }
.apple-signup input[type=text] { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #b9c6d6; border-radius: 9px; font: inherit; }
.apple-choice { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.apple-choice input { margin-top: 3px; flex: none; }

/* Sign-in screen: the buttons come first. Email forms open when chosen. */
.auth-logo { display: none; }
.auth-card .apple-signin { margin: 0; }
.auth-card:not([data-mode="welcome"]):not([data-mode="login"]):not([data-mode="apple"]) .apple-signin,
.auth-card:not([data-mode="welcome"]) .auth-welcome,
.auth-card[data-mode="welcome"] .apple-or,
.auth-card:not([data-mode="login"]):not([data-mode="signup"]) .auth-back { display: none; }
.auth-welcome { display: grid; gap: 12px; text-align: center; }
.auth-choice { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #b9c6d6; border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
/* With no Apple button above it, email is the main choice. */
.apple-signin[hidden] + .auth-welcome .auth-choice { border-color: var(--gold); background: var(--gold); }
.auth-welcome .linklike, .auth-back { min-height: 44px; }
.auth-back { justify-self: start; }
.auth-browse { display: none; min-height: 44px; align-items: center; justify-content: center; color: var(--blue); font-weight: 700; }
.auth-small { margin: 0; color: #51647c; font-size: 13px; }
.auth-choice:focus-visible, .auth-back:focus-visible, .auth-browse:focus-visible { outline: 3px solid #f6bd16; outline-offset: 2px; }
/* Website on a narrow screen: heading, then the buttons, then what an account gives you. */
@media (max-width: 900px) {
  #auth-view:not(.is-app) .auth-grid { gap: 16px; }
  #auth-view:not(.is-app) .auth-intro { display: contents; }
  #auth-view:not(.is-app) .auth-intro > * { order: 1; margin-block: 0; }
  #auth-view:not(.is-app) .auth-card { order: 2; width: 100%; max-width: 480px; justify-self: center; }
  #auth-view:not(.is-app) .auth-points { order: 3; width: 100%; max-width: 480px; justify-self: center; margin-top: 8px; }
}
/* iPhone, iPad and Android apps: a centred welcome screen. */
#auth-view.is-app .auth-grid { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 20px; }
#auth-view.is-app .auth-intro { max-width: none; text-align: center; }
#auth-view.is-app .auth-intro h1 { max-width: none; margin-inline: auto; }
#auth-view.is-app .auth-intro p { margin-inline: auto; }
#auth-view.is-app .auth-logo { display: block; width: min(220px, 60%); height: auto; margin: 4px auto 18px; }
#auth-view.is-app .auth-points { display: none; }
/* "three things" refers to the list beside it, which the apps do not show */
#auth-view.is-app .auth-grid:not(:has(.auth-card[data-mode="login"])) #auth-lede { display: none; }
#auth-view.is-app .auth-browse { display: flex; }
#auth-view.is-app .lookup { margin-inline: auto; max-width: 420px; }
html.dk-signed-out .topbar-join { display: none; }
#main:has(#auth-view.is-app:not([hidden])) .crumbs { display: none; } /* works in Android too, which has no app class on the page */
#auth-view.is-app .auth-logo { box-sizing: content-box; padding: 8px 12px; border-radius: 14px; background: #fff; }
