@font-face {
  font-family: 'GG Sans';
  src: url('/assets/fonts/gg-sans-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GG Sans';
  src: url('/assets/fonts/gg-sans-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GG Sans';
  src: url('/assets/fonts/gg-sans-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GG Sans';
  src: url('/assets/fonts/gg-sans-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Isolated Studio tokens: no existing website selectors or integrations are changed. */
/* Studio readability update: non-main-heading text gains 2pt (2.67px) from the original scale; main h1 sizes remain unchanged. */
:root { color-scheme: light; --ink: #181523; --muted: #686575; --line: #e5e5ec; --brand: #7040c4; --brand-soft: #f3eefb; --teal: #146759; --teal-soft: #edf6f2; --canvas: #f7f8fa; --white: #fff; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font:17.67px/1.6 Inter, Arial, sans-serif; letter-spacing: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Be Vietnam Pro', Inter, Arial, sans-serif; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size:calc(21px + 2.67px); font-weight: 650; }
h3 { font-size:calc(17px + 2.67px); font-weight: 650; }
p { margin-top: 12px; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font:inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button, input, select, textarea { border-radius: 6px; }
input, select, textarea { max-width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cfcdd7; background: white; color: var(--ink); }
input, textarea { width: 100%; }
textarea { resize: vertical; min-height: 72px; max-height: 220px; }
input::placeholder, textarea::placeholder { color: #777582; }
label { display: grid; gap: 6px; font-size:calc(13px + 2.67px); font-weight: 600; }
:focus-visible { outline: 3px solid #287fbe; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size:calc(12px + 2.67px); line-height: 1.6; }
.eyebrow { display: block; color: var(--muted); font-size:calc(11px + 2.67px); line-height: 1.4; font-weight: 700; }
.lead { font-size:calc(17px + 2.67px); color: var(--muted); max-width: 660px; line-height: 1.7; }
.tag { display: inline-flex; align-items: center; background: #f0f1f5; color: #595565; padding: 4px 8px; border-radius: 4px; font-size:calc(11px + 2.67px); line-height: 1.4; font-weight: 600; white-space: normal; }
.tag.teal { color: var(--teal); background: var(--teal-soft); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.button, .icon-button { min-height: 44px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; font-size:calc(13px + 2.67px); font-weight: 650; border: 1px solid var(--line); background: white; padding: 10px 16px; border-radius: 6px; text-align: center; }
.primary { background: var(--brand); color: white; border-color: var(--brand); }
.secondary:hover, .resource-row:hover { background: var(--canvas); border-color: #c9bddc; }
.primary:hover { background: #5e31ae; }
.icon-button { width: 44px; flex: 0 0 44px; padding: 10px; }
.text-button, .text-link { background: none; border: 0; color: var(--brand); font-size:calc(13px + 2.67px); font-weight: 650; display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; flex-basis: 16px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.full-width { width: 100%; }
.prototype-bar { min-height: 35px; background: #f1f0f6; padding: 3px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size:calc(11px + 2.67px); color: #605a6e; }
.prototype-bar .text-button { font-size:calc(11px + 2.67px); min-height: 29px; flex-shrink: 0; }
.studio-header { height: 60px; min-height: 60px; box-sizing: border-box; border-bottom: 1px solid var(--line); padding: 8px 24px; display: flex; align-items: center; gap: 18px; background: white; }
.brand { display: flex; flex: 0 0 auto; }
.brand img { width: 112px; height: auto; max-height: 43px; object-fit: contain; }
.header-divider { height: 23px; border-left: 1px solid var(--line); }
.studio-wordmark { font-weight: 650; font-size:calc(14px + 2.67px); }
.header-actions { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.public-main { width: min(1680px, calc(100% - clamp(64px, 8vw, 160px))); margin: 0 auto; padding: 44px 0 64px; }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-heading h1 { margin-top: 10px; }
.phase-control { flex: 0 0 auto; color: var(--muted); font-size:calc(11px + 2.67px); }
.phase-control select { font-size:calc(12px + 2.67px); font-weight: 500; padding: 9px; }
.public-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); gap: clamp(32px,4vw,72px); }
.section-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.workshop-title { font-size:calc(29px + 2.67px); }
.event-time { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size:calc(12px + 2.67px); }
.weekly-focus { background: var(--teal-soft); border-left: 3px solid #5b9c86; padding: 24px; margin-top: 24px; }
.weekly-focus .eyebrow { color: var(--teal); }
.weekly-focus h2 { margin-top: 10px; max-width: 450px; font-size:calc(24px + 2.67px); }
.weekly-focus p { color: #48635b; font-size:calc(14px + 2.67px); }
.weekly-focus .actions { margin-top: 20px; }
.section-block { margin-top: 32px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.home-aside { border-left: 1px solid var(--line); padding-left: 28px; }
.home-aside h2 { margin-top: 10px; }
.home-aside p { font-size:calc(13px + 2.67px); color: var(--muted); margin-bottom: 12px; }
.person-line { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person-line > div { min-width: 0; flex: 1; }
.person-line strong { display: block; font-size:calc(12px + 2.67px); overflow-wrap: anywhere; }
.person-line .muted { display: block; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; font-size:calc(11px + 2.67px); font-weight: 700; }
.color-0 { background: #e9e3f6; color: #633a95; }.color-1 { background: #e0f0e7; color: #2b6c55; }.color-2 { background: #e6ecf9; color: #4469a0; }.color-3 { background: #fae5ed; color: #9a446a; }.color-4 { background: #f4eed2; color: #756519; }
.journey { display: flex; list-style: none; padding: 0; gap: 14px; font-size:calc(11px + 2.67px); color: var(--muted); }
.journey li { border-top: 2px solid var(--line); padding-top: 8px; flex: 1; }
.journey .current { border-color: var(--brand); color: var(--brand); }
.resource-row { display: flex; align-items: center; gap: 15px; text-align: left; width: 100%; padding: 17px 0; background: white; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.resource-row > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.resource-row strong { font-size:calc(14px + 2.67px); }
.resource-row > svg { color: var(--muted); width: 16px; }
.resource-icon { display: grid; place-items: center; width: 46px; height: 52px; flex: 0 0 46px; border-radius: 5px; }
.tone-0 { background: var(--brand-soft); color: var(--brand); }.tone-1 { background: #e5f1ed; color: var(--teal); }.tone-2 { background: #f9e8ed; color: #a05572; }
.three-column { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.preview-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.preview-card h3 { margin-top: 14px; }.preview-card p { font-size:calc(13px + 2.67px); margin-bottom: 12px; }
.public-footer { border-top: 1px solid var(--line); padding: 24px 32px; display: flex; justify-content: space-between; gap: 20px; font-size:calc(12px + 2.67px); color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size:calc(12px + 2.67px); margin-bottom: 24px; min-height: 40px; }
.back-link svg { width: 17px; height: 17px; flex-basis: 17px; }
.event-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,420px); gap: clamp(36px,5vw,84px); align-items: start; }
.event-layout h1 { margin-top: 12px; }
.event-facts { display: grid; gap: 16px; padding: 24px 0; margin-top: 10px; border-bottom: 1px solid var(--line); }
.event-facts div { display: grid; gap: 3px; }.event-facts strong { font-size:calc(14px + 2.67px); font-weight: 550; }
.outcomes { padding-left: 20px; color: var(--muted); font-size:calc(14px + 2.67px); }.outcomes li { padding: 6px 0 6px 4px; }
.registration-panel { border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: var(--canvas); position: sticky; top: 24px; }
.registration-panel h2 { margin-top: 8px; }.registration-panel p { font-size:calc(13px + 2.67px); }
.event-management-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 0 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.event-management-toolbar > div:first-child { display: grid; gap: 3px; }
.event-management-toolbar strong { font-family: 'Be Vietnam Pro', Inter, Arial, sans-serif; font-size:calc(16px + 2.67px); }
.event-management-toolbar span { color: var(--muted); font-size:calc(12px + 2.67px); }
.event-management-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.event-management-actions .full-width { width: auto; }
.event-management-actions .button { min-height: 40px; padding: 8px 12px; }
@media(max-width:800px) { .event-management-toolbar { align-items: flex-start; flex-direction: column; }.event-management-actions { justify-content: flex-start; } }
#registration-form, .stack-form { display: grid; gap: 18px; margin-top: 22px; }
.checkbox-row { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.checkbox-row input { width: 17px; height: 17px; margin: 3px 0 0; flex: 0 0 17px; accent-color: var(--brand); }
.registration-skip { margin-top: 15px; }.registration-success > svg { color: var(--teal); width: 36px; height: 36px; }.registration-success .person-line { margin-top: 22px; }.registration-success .button { margin-top: 20px; }
.form-error { color: #a92e49; font-size:calc(13px + 2.67px); margin: 0; }
.workspace { display: grid; grid-template-columns: 256px minmax(0,1fr) 320px; min-height: calc(100dvh - 111px); width: 100%; max-width: none; margin: 0; }
.workspace-sidebar { background: var(--canvas); border-right: 1px solid var(--line); padding: 28px 22px; display: flex; flex-direction: column; }
.studio-label { padding: 0 10px; margin-bottom: 30px; }.studio-label h2 { font-size:calc(18px + 2.67px); margin-top: 16px; }.studio-label p { margin-top: 8px; }
.workspace-nav { display: grid; gap: 6px; }
.workspace-nav a { display: flex; gap: 11px; padding: 12px; align-items: center; min-height: 46px; font-size:calc(13px + 2.67px); color: #625b6e; border-radius: 6px; }
.workspace-nav a:hover { background: #eeecf3; }.workspace-nav a[aria-current] { background: #ece4f9; color: #6434ac; font-weight: 650; }
.nav-count { margin-left: auto; font-size:calc(10px + 2.67px); background: #ddd0f0; padding: 1px 6px; border-radius: 4px; }
.sidebar-bottom { margin-top: auto; padding: 48px 10px 0; }.sidebar-bottom p { margin-top: 8px; }
.workspace-main { min-width: 0; padding: 32px clamp(32px,3vw,58px) 48px; }
.workspace-main #panel { width: 100%; max-width: 1280px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.panel-heading h1 { font-size: 26px; margin-top: 8px; }.panel-heading p { font-size:calc(13px + 2.67px); max-width: 480px; margin-top: 8px; }.panel-heading .button { flex-shrink: 0; }
.workspace-main h2 { font-size:calc(18px + 2.67px); }.workspace-main .weekly-focus h2 { font-size:calc(24px + 2.67px); }.workspace-main .section-block { margin-top: 30px; }
.context-rail { border-left: 1px solid var(--line); padding: 32px 26px; }.context-rail .tags { margin: 16px 0 26px; }.context-rail hr { margin: 24px 0; }
.mobile-phase { display: none; }
.discussion-prompt { border-left: 2px solid #cbb7e7; padding: 2px 0 2px 20px; }.discussion-prompt p { font-size:calc(13px + 2.67px); margin: 8px 0; }
.filter-row { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.filter-row button { min-height: 38px; padding: 8px 12px; background: white; border: 1px solid transparent; color: var(--muted); font-size:calc(12px + 2.67px); }
.filter-row button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: #ddcfef; }
.question-card { padding: 22px 0; border-bottom: 1px solid var(--line); }.question-card p { font-size:calc(14px + 2.67px); }.question-card .person-line .tag { margin-left: auto; flex: 0 0 auto; }
.vote-button { display: inline-flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); padding: 5px 10px; min-height: 36px; font-size:calc(11px + 2.67px); color: var(--muted); margin-top: 14px; }.vote-button svg { width: 14px; height: 14px; flex-basis: 14px; }.vote-button[aria-pressed="true"] { color: var(--brand); border-color: #bb9adf; background: var(--brand-soft); }
.trainer-answer { margin-top: 16px; border-left: 2px solid #7faf9b; padding: 4px 14px; }.trainer-answer p { margin-top: 5px; font-size:calc(13px + 2.67px); }.trainer-answer .eyebrow { color: var(--teal); }
.composer { background: white; border-top: 1px solid var(--line); padding: 16px 0; margin-top: 20px; position: sticky; bottom: 0; z-index: 2; }
.compact-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size:calc(11px + 2.67px); color: var(--muted); }.compact-label select { font-size:calc(11px + 2.67px); padding: 6px 9px; max-width: calc(100% - 40px); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }.composer-row textarea { flex: 1; font-size:calc(14px + 2.67px); }.composer .small { display: block; margin-top: 7px; font-size:calc(10px + 2.67px); }
.challenge-brief { display: flex; gap: 22px; background: var(--teal-soft); border-radius: 6px; padding: 24px; }.challenge-number { font-size:calc(32px + 2.67px); font-weight: 700; color: #86afa2; }.challenge-brief h2 { margin-top: 10px; }.challenge-brief p { font-size:calc(14px + 2.67px); }
.challenge-brief > div { min-width: 0; }
.submission-card { border: 1px solid var(--line); padding: 20px; border-radius: 6px; margin-top: 12px; }.submission-card h3 { margin-top: 10px; }.submission-card p { font-size:calc(13px + 2.67px); }
.filter-select { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 20px; }.filter-select select { font-size:calc(12px + 2.67px); padding: 8px 10px; }
.thread-card { padding: 23px 0; border-top: 1px solid var(--line); }.thread-card p { font-size:calc(14px + 2.67px); }.thread-title { display: block; background: none; padding: 0; border: 0; margin-top: 16px; text-align: left; color: var(--ink); font-size:calc(17px + 2.67px); font-weight: 650; overflow-wrap: anywhere; }.thread-title:hover { color: var(--brand); }.thread-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; }.context-label { display: inline-flex; gap: 6px; color: var(--muted); font-size:calc(11px + 2.67px); align-items: center; }.context-label svg { width: 14px; height: 14px; flex-basis: 14px; }.thread-footer .text-link { white-space: nowrap; font-size:calc(12px + 2.67px); }
.resource-card { padding: 24px 0; border-bottom: 1px solid var(--line); }.resource-card h2 { margin-top: 8px; }.resource-card p { font-size:calc(13px + 2.67px); }.resource-card .tags { margin-top: 12px; }.search-label { margin-bottom: 10px; }
.notice { font-size:calc(12px + 2.67px); padding: 16px; background: var(--canvas); color: var(--muted); border-left: 2px solid #bcb8c5; margin-top: 24px; }
.empty-state { padding: 32px 16px; text-align: center; background: var(--canvas); margin: 16px 0; }.empty-state p { font-size:calc(13px + 2.67px); color: var(--muted); }.empty-state h2 { font-size:calc(18px + 2.67px); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(540px,calc(100% - 32px)); width: max-content; background: #24212c; color: white; padding: 14px 20px; box-shadow: 0 4px 20px #18152320; border-radius: 6px; z-index: 100; font-size:calc(13px + 2.67px); }
dialog { width: min(640px,calc(100% - 32px)); max-height: min(840px,calc(100dvh - 48px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); box-shadow: 0 20px 80px #18152330; }
dialog[open] { display: flex; flex-direction: column; }dialog::backdrop { background: #18152365; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 20px; flex-shrink: 0; }.dialog-header h2 { font-size:calc(18px + 2.67px); }
.dialog-content { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }.dialog-content.stack-form { margin-top: 0; }.dialog-context { display: flex; gap: 8px; align-items: center; padding: 12px 24px; color: var(--muted); background: var(--canvas); font-size:calc(12px + 2.67px); flex-shrink: 0; }
.resource-outline { margin: 24px 0 30px; }.resource-outline section { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }.resource-outline h3 { font-size:calc(15px + 2.67px); }.resource-outline p { font-size:calc(13px + 2.67px); margin-top: 5px; color: var(--muted); }.outline-number { color: var(--brand); font-size:calc(12px + 2.67px); font-weight: 700; padding-top: 2px; }
.message { display: flex; gap: 12px; margin-bottom: 22px; }.message > div { min-width: 0; }.message strong { font-size:calc(12px + 2.67px); }.message p { margin-top: 5px; padding: 12px 14px; border-radius: 0 6px 6px; background: var(--canvas); font-size:calc(14px + 2.67px); white-space: pre-wrap; }
.reply-form { padding: 16px 24px; margin: 0; flex-shrink: 0; }.conversation-dialog { min-height: 420px; }.conversation-dialog .dialog-content { flex: 1; }
@media(min-width:1500px) { .workspace-main { padding-inline: 56px; } }
@media(max-width:1150px) { .workspace { grid-template-columns: 196px minmax(0,1fr); }.context-rail { display: none; }.mobile-phase { display: block; margin: -8px 0 20px; }.mobile-phase .phase-control { display: flex; align-items: center; gap: 12px; }.event-layout { gap: 36px; grid-template-columns: minmax(0,1fr) 320px; }.public-layout { gap: 32px; } }
@media(max-width:800px) { .public-main { width: calc(100% - 40px); padding-top: 30px; }.public-layout, .event-layout { grid-template-columns: 1fr; gap: 32px; }.home-aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }.page-heading { flex-direction: column; gap: 20px; }.page-heading .phase-control { display: flex; gap: 12px; align-items: center; }.three-column { grid-template-columns: 1fr; }.registration-panel { position: static; }.event-layout .registration-panel { grid-row: 2; }.studio-header { padding-inline: 20px; gap: 14px; }.header-divider { display: none; }.studio-wordmark { font-size:calc(12px + 2.67px); }.public-footer { flex-direction: column; gap: 6px; }.panel-heading { flex-wrap: wrap; } }
@media(max-width:640px) {
  h1 { font-size: 28px; }.workshop-title { font-size:calc(25px + 2.67px); }.lead { font-size:calc(15px + 2.67px); }
  .prototype-bar { padding-inline: 16px; gap: 10px; }.prototype-detail { display: none; }
  .studio-header { min-height: 64px; gap: 10px; padding: 10px 16px; }.brand img { width: 85px; }.studio-wordmark { font-size:calc(11px + 2.67px); }.header-actions { gap: 8px; }.header-actions .button { font-size:calc(11px + 2.67px); padding: 8px 10px; min-height: 38px; }.header-actions .button svg { display: none; }.desktop-only { display: none; }
  .workspace { display: block; min-height: calc(100dvh - 99px); }.workspace-sidebar { display: contents; }.studio-label, .sidebar-bottom { display: none; }
  .workspace-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: white; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); min-height: 66px; }
  .workspace-nav a { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 2px; min-width: 0; font-size:calc(9px + 2.67px); line-height: 1.4; border-radius: 5px; }.workspace-nav a svg { width: 20px; height: 20px; }.nav-count { display: none; }.workspace-nav a[aria-current] { background: var(--brand-soft); }
  .workspace-main { padding: 24px 20px calc(90px + env(safe-area-inset-bottom)); }.panel-heading { margin-bottom: 22px; }.panel-heading h1 { font-size: 25px; }.panel-heading p { font-size:calc(12px + 2.67px); }
  .weekly-focus { padding: 20px; }.weekly-focus h2, .workspace-main .weekly-focus h2 { font-size:calc(21px + 2.67px); }.section-heading h2 { font-size:calc(17px + 2.67px); }.section-heading .text-link { font-size:calc(11px + 2.67px); }
  .composer { bottom: calc(66px + env(safe-area-inset-bottom)); padding: 12px 0; box-shadow: 0 -8px 12px white; }.composer textarea { min-height: 62px; }
  .question-card { padding: 20px 0; }.question-card .person-line { gap: 8px; }.question-card .person-line .small { font-size:calc(10px + 2.67px); }.question-card .tag { font-size:calc(9px + 2.67px); }
  .challenge-brief { padding: 20px; gap: 12px; }.challenge-number { font-size:calc(24px + 2.67px); }.challenge-brief h2 { font-size:calc(19px + 2.67px); }
  .thread-footer { align-items: start; }.context-label { max-width: 68%; }.filter-row { gap: 2px; }.filter-row button { padding-inline: 10px; font-size:calc(11px + 2.67px); }
  .resource-row { gap: 12px; }.resource-row strong { font-size:calc(13px + 2.67px); }.resource-row .small { font-size:calc(11px + 2.67px); }.resource-icon { width: 40px; flex-basis: 40px; height: 46px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); font-size:calc(12px + 2.67px); }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }.dialog-header { padding: 14px 18px; }.dialog-header h2 { font-size:calc(17px + 2.67px); }.dialog-content { padding: 20px; }.dialog-context { padding: 12px 20px; }
  .conversation-dialog { width: 100%; height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0; border: 0; border-radius: 0; }.reply-form { position: static; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: none; }.conversation-dialog .dialog-header { padding-top: max(14px,env(safe-area-inset-top)); }.message p { font-size:calc(13px + 2.67px); }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Event catalogue, event sharing and guided event-builder preview. */
.studio-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px, .72fr); gap: 48px; align-items: center; padding: 12px 0 38px; border-bottom: 1px solid var(--line); }
.studio-intro h1 { margin-top: 10px; }
.studio-journey { padding: 19px 20px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.studio-journey .journey { gap: 9px; font-size:calc(10px + 2.67px); }
.studio-journey .journey li { min-width: 0; }
.studio-journey p { margin: 11px 0 0; }
.event-catalog-section { margin-top: 38px; }
.event-catalog-section .section-heading { align-items: end; margin-bottom: 19px; }
.event-catalog-section .section-heading h2 { margin-top: 5px; }
.event-catalog-section .section-heading p { margin-top: 5px; font-size:calc(13px + 2.67px); }
.event-filter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size:calc(12px + 2.67px); }
.event-filter select { padding: 8px 10px; }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.event-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.event-card-art { display: block; position: relative; aspect-ratio: 1.86; overflow: hidden; background: linear-gradient(135deg,#251858,#7040c4 56%,#3b62dc); }
.event-card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-card-art picture { display: block; width: 100%; height: 100%; }
.event-art-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; gap: 8px; padding: 20px; color: #fff; background: radial-gradient(ellipse at 80% 5%,#a17ae6 0,transparent 40%),linear-gradient(135deg,#251858,#7040c4 60%,#315ed0); }
.event-art-placeholder.topic-worksheets { background: radial-gradient(ellipse at 78% 12%,#9b78df 0,transparent 40%),linear-gradient(135deg,#392267,#7b46be 58%,#5974d6); }
.event-art-placeholder.topic-interactive-video { background: radial-gradient(ellipse at 78% 12%,#8d8ce7 0,transparent 40%),linear-gradient(135deg,#252c67,#5657b6 58%,#3b90b8); }
.event-art-placeholder span { font-size:calc(10px + 2.67px); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.event-art-placeholder strong { max-width: 82%; font:650 22.67px/1.25 'Be Vietnam Pro',Inter,Arial,sans-serif; }
.event-status { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 4px; background: #fff; color: #4e2e86; font-size:calc(10px + 2.67px); font-weight: 700; }
.event-card-body { padding: 19px; }
.event-card-body h3 { margin-top: 8px; font-size:calc(17px + 2.67px); }
.event-card-body h3 a:hover { color: var(--brand); }
.event-card-body > p { margin-top: 8px; font-size:calc(12px + 2.67px); line-height: 1.55; }
.event-card-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 15px; color: var(--muted); font-size:calc(11px + 2.67px); }
.event-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-card-meta svg { width: 15px; height: 15px; flex-basis: 15px; }
.event-output { padding-top: 12px; border-top: 1px solid var(--line); }
.event-output strong { display: block; margin-bottom: 3px; color: var(--ink); font-size:calc(11px + 2.67px); }
.event-card-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.event-card-actions .button { min-height: 38px; padding: 8px 11px; font-size:calc(11px + 2.67px); }
.room-shortcut { color: var(--muted); font-size:calc(11px + 2.67px); padding: 7px 0; }
.room-shortcut:hover { color: var(--brand); text-decoration: underline; }
.ecosystem-strip { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 38px; padding: 19px; background: var(--canvas); border-radius: 7px; color: #494454; font-size:calc(12px + 2.67px); font-weight: 650; }
.ecosystem-strip b { display: inline-flex; color: var(--brand); }
.ecosystem-strip svg { width: 15px; height: 15px; }
.past-events { padding-top: 28px; border-top: 1px solid var(--line); }
.past-events .event-card { opacity: .92; }
.event-page-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.event-page-heading h1 { margin-top: 9px; }
.event-page-heading > .button { flex-shrink: 0; margin-top: 5px; }
.event-next-step { margin-top: 30px; padding: 23px; background: var(--canvas); border-radius: 7px; }
.event-next-step h2 { margin-top: 7px; }
.event-next-step .button { margin-top: 16px; }
.event-next-step p { font-size:calc(13px + 2.67px); }
.room-topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 28px; border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); font-size:calc(11px + 2.67px); }
.room-topbar > strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.room-topbar .button { min-height: 36px; padding: 7px 11px; font-size:calc(11px + 2.67px); }
.room-progress { margin: 0 0 28px; padding: 16px 18px 10px; background: var(--canvas); border-radius: 7px; }
.room-progress-top { display: flex; justify-content: space-between; gap: 12px; font-size:calc(12px + 2.67px); }
.room-progress-top span { color: var(--muted); }
.room-progress .journey { margin-top: 13px; }
.room-progress .journey .complete { border-color: var(--teal); color: var(--teal); }
.room-progress > p { margin: 6px 0 3px; }
.builder-main { width: min(1240px,calc(100% - 64px)); }
.builder-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.builder-heading h1 { margin-top: 8px; }
.builder-heading > .tag { margin-top: 6px; }
.builder-flow { display: flex; gap: 0; overflow-x: auto; margin: 27px 0 17px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.builder-flow span { flex: 1; min-width: 115px; padding: 0 10px 8px; font-size:calc(11px + 2.67px); white-space: nowrap; }
.builder-flow span:first-child { padding-left: 0; }
.builder-flow .current { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }
.builder-warning { padding: 13px 16px; background: #fbf5e7; border-left: 3px solid #c99830; color: #5b4b2d; font-size:calc(12px + 2.67px); }
.builder-warning strong { margin-right: 5px; }
.builder-published-edit-notice { display:flex; justify-content:space-between; gap:18px; align-items:center; margin:16px 0 2px; padding:16px 18px; border:1px solid var(--line); border-radius:12px; background:var(--brand-soft); }
.builder-published-edit-notice > div { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.builder-published-edit-notice strong { font-size:15px; }
.builder-published-edit-notice span { display:inline-flex; align-items:center; min-height:28px; padding:4px 9px; border-radius:999px; background:var(--white); color:var(--brand); font-size:12px; font-weight:700; }
.builder-published-edit-notice p { margin:0; color:var(--muted); font-size:13px; text-align:right; }
.builder-update-reason { display:grid; gap:7px; margin-top:18px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--canvas); }
.danger-text { color:#b13d45 !important; }
.event-builder-form { margin-top: 22px; }
.builder-columns { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; align-items: start; }
.builder-fields { min-width: 0; }
.builder-section { display: grid; gap: 17px; padding: 24px 0 29px; border-bottom: 1px solid var(--line); }
.builder-section:first-child { padding-top: 4px; }
.builder-section-heading { display: flex; gap: 13px; align-items: start; margin-bottom: 2px; }
.builder-section-heading > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size:calc(11px + 2.67px); font-weight: 700; }
.builder-section-heading h2 { font-size:calc(17px + 2.67px); }
.builder-section-heading p { margin-top: 3px; color: var(--muted); font-size:calc(11px + 2.67px); }
.builder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.builder-grid label { min-width: 0; }
.integration-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.integration-card > div strong { display: block; margin-top: 4px; font-size:calc(13px + 2.67px); }
.integration-card > div p { margin-top: 5px; color: var(--muted); font-size:calc(11px + 2.67px); }
.integration-card label { grid-column: 1 / -1; }
.integration-state { padding: 4px 7px; border-radius: 4px; background: #eeeef2; color: #686575; font-size:calc(10px + 2.67px); }
.integration-card .button { min-height: 38px; padding: 7px 10px; font-size:calc(10px + 2.67px); }
.upload-note { padding: 12px 14px; background: var(--canvas); color: var(--muted); font-size:calc(11px + 2.67px); }
.builder-media-preview { display: grid; grid-template-columns: minmax(0,220px) minmax(0,1fr); gap: 12px; align-items: center; color: var(--muted); font-size:calc(11px + 2.67px); }
.builder-media-preview img { width: 100%; max-height: 130px; object-fit: cover; border-radius: 5px; }
.builder-aside { min-width: 0; }
.builder-sticky { position: sticky; top: 20px; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.builder-sticky h2 { margin-top: 7px; font-size:calc(18px + 2.67px); }
.builder-checklist { margin: 19px 0 0; padding-left: 19px; color: #555162; font-size:calc(11px + 2.67px); }
.builder-checklist li { padding: 5px 0; }
.builder-controls { display: grid; gap: 9px; margin-top: 14px; }
.builder-controls .button { width: 100%; }
.builder-controls + p { margin-top: 11px; }
.permission-preview { display: grid; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; }
.permission-preview > div { display: grid; gap: 2px; }
.permission-preview strong { font-size:calc(12px + 2.67px); }
.permission-preview span, .permission-preview p { color: var(--muted); font-size:calc(11px + 2.67px); }
.permission-preview p { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.permission-preview .button { justify-self: start; min-height: 38px; font-size:calc(11px + 2.67px); }
.event-preview-card { padding: 20px; border: 1px solid var(--line); border-radius: 7px; }
.event-preview-card h2 { margin-top: 7px; }
.event-preview-card .event-facts { grid-template-columns: 1fr 1fr; gap: 12px; padding: 17px 0; }
.event-preview-card .event-next-step { margin-top: 14px; padding: 15px; }
.event-hero-media { margin: 4px 0 18px; overflow: hidden; border-radius: 8px; background: var(--canvas); aspect-ratio: 16 / 9; }
.event-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.embedded-video { width: 100%; overflow: hidden; border-radius: 7px; background: #111; aspect-ratio: 16 / 9; }
.embedded-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.embedded-video video { display: block; width: 100%; height: 100%; border: 0; background: #111; object-fit: contain; }
.event-resource-preview { display: grid; gap: 9px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-resource-preview h3 { font-size:calc(15px + 2.67px); }
.event-resource-preview p { margin: 0; font-size:calc(12px + 2.67px); }
.event-resource-preview h4 { margin: 5px 0 0; font-size:calc(13px + 2.67px); }
.event-resource-preview ol { margin: 0; padding-left: 20px; font-size:calc(12px + 2.67px); }
.event-resource-preview li { padding: 3px 0; }
.resource-link-preview { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--brand); font-size:calc(12px + 2.67px); overflow-wrap: anywhere; }
.resource-link-preview svg { width: 16px; height: 16px; flex-basis: 16px; }
.resource-preview-video, .preview-promo-video { display: block; width: 100%; max-height: 420px; background: #111; border-radius: 7px; }
.resource-preview-image { display: block; max-width: 100%; max-height: 360px; border-radius: 6px; object-fit: contain; }
.event-preview-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 18px; align-items: start; }
.event-preview-card { min-width: 0; }
.event-mobile-preview { position: sticky; top: 8px; }
.mobile-event-card { display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: stretch; overflow: hidden; width: 100%; min-height: 150px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.mobile-event-card > img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.mobile-event-card > .event-art-placeholder { position: relative; inset: auto; display: flex; width: 100%; min-height: 150px; justify-content: center; gap: 5px; padding: 8px; }
.mobile-event-card > .event-art-placeholder span { font-size:calc(7px + 2.67px); line-height: 1.25; letter-spacing: .04em; }
.mobile-event-card > .event-art-placeholder strong { max-width: none; font-size:calc(13px + 2.67px); line-height: 1.2; overflow-wrap: anywhere; }
.mobile-event-card-body { min-width: 0; padding: 11px; }
.mobile-event-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 4px; font-size:calc(13px + 2.67px); line-height: 1.27; }
.mobile-event-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; margin-top: 6px; color: var(--muted); font-size:calc(10px + 2.67px); }
.mobile-event-card .mobile-event-output { padding-top: 6px; border-top: 1px solid var(--line); }
.mobile-event-output strong { color: var(--ink); }
.mobile-card-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--brand); font-size:calc(10px + 2.67px); font-weight: 650; }
.event-preview-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.event-preview-section > ul { margin: 8px 0; padding-left: 19px; font-size:calc(12px + 2.67px); }
.event-preview-section > ul li { padding: 3px 0; }
.event-preview-section h3 { margin: 5px 0; font-size:calc(15px + 2.67px); }
.event-preview-section .event-resource-preview { padding-inline: 10px; }
.preview-banner { display: block; width: 100%; max-height: 250px; margin-top: 15px; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.preview-promo { margin-top: 13px; }
.resource-editor-intro { padding: 13px 15px; background: var(--canvas); border-radius: 6px; }
.resource-editor-intro strong { font-size:calc(13px + 2.67px); }
.resource-editor-intro p { margin-top: 4px; color: var(--muted); font-size:calc(11px + 2.67px); }
.kit-editor-list { display: grid; gap: 13px; }
.kit-editor-row { display: grid; gap: 13px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.kit-editor-row-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.kit-editor-row-top strong { font-size:calc(13px + 2.67px); }
.kit-editor-row .builder-grid { gap: 12px; }
.kit-editor-row .muted { font-size:calc(10px + 2.67px); font-weight: 400; }
.kit-public-toggle { align-self: end; min-height: 42px; padding: 10px 0; font-size:calc(11px + 2.67px); }
.kit-public-toggle input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; }
.kit-release { align-items: end; }
.kit-file-note { margin: -7px 0 0; color: var(--muted); font-size:calc(10px + 2.67px); overflow-wrap: anywhere; }
.builder-media-preview { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
.builder-media-preview figure { display: grid; gap: 6px; min-width: 0; margin: 0; }
.builder-media-preview img, .builder-media-preview video { width: 100%; max-height: 160px; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--canvas); object-fit: cover; }
.builder-media-preview figcaption { color: var(--muted); font-size:calc(10px + 2.67px); }
.builder-media-preview .embedded-video { grid-column: 1 / -1; }
.resource-row:disabled { background: white; }
.resource-locked { opacity: .86; }
.event-layout > article > .event-hero-media + .embedded-video { margin-bottom: 15px; }
.share-content > p { font-size:calc(12px + 2.67px); }
.share-preview { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 15px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.share-preview-art { display: grid; place-items: center; width: 132px; aspect-ratio: 1.45; overflow: hidden; border-radius: 4px; background: linear-gradient(135deg,#251858,#7040c4 60%,#3b62dc); color: #fff; text-align: center; font-size:calc(10px + 2.67px); }
.share-preview-art img { width: 100%; height: 100%; object-fit: cover; }
.share-preview h3 { margin-top: 4px; font-size:calc(13px + 2.67px); }
.share-preview p { margin-top: 4px; font-size:calc(10px + 2.67px); }
.share-domain { display: block; margin-top: 7px; color: var(--muted); font-size:calc(10px + 2.67px); }
.share-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.share-actions .button { min-height: 40px; padding: 9px 12px; font-size:calc(11px + 2.67px); }
.share-actions .full-width { width: 100%; }
.event-card[hidden] { display: none; }
@media(max-width:1050px) {
  .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .builder-columns { grid-template-columns: minmax(0,1fr) 270px; gap: 25px; }
  .studio-intro { gap: 27px; }
}
@media(max-width:800px) {
  .studio-intro { grid-template-columns: 1fr; gap: 20px; }
  .studio-journey { max-width: none; }
  .builder-main { width: calc(100% - 40px); }
  .builder-columns { grid-template-columns: 1fr; }
  .builder-aside { order: -1; }
  .builder-sticky { position: static; }
  .builder-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
}
@media(max-width:640px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-catalog-section .section-heading { align-items: start; flex-direction: column; }
  .event-filter { width: 100%; justify-content: space-between; }
  .event-filter select { flex: 1; max-width: 200px; }
  .studio-journey { padding: 15px 14px 10px; }
  .studio-journey .journey { gap: 6px; font-size:calc(8px + 2.67px); }
  .ecosystem-strip { gap: 8px; justify-content: flex-start; font-size:calc(10px + 2.67px); }
  .event-page-heading { align-items: start; }
  .event-page-heading > .button { min-height: 38px; padding: 8px 10px; font-size:calc(11px + 2.67px); }
  .room-topbar { padding-inline: 15px; gap: 7px; }
  .room-topbar .button { padding: 7px 8px; }
  .room-progress { margin: -5px 0 22px; padding: 13px 12px 9px; }
  .room-progress .journey { gap: 7px; font-size:calc(9px + 2.67px); }
  .builder-main { width: calc(100% - 32px); padding-top: 24px; }
  .builder-heading { gap: 10px; }
  .builder-heading h1 { font-size: 26px; }
  .builder-flow span { min-width: 105px; font-size:calc(10px + 2.67px); }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-section { gap: 14px; padding: 20px 0 23px; }
  .builder-section-heading { gap: 10px; }
  .builder-section-heading h2 { font-size:calc(16px + 2.67px); }
  .integration-card { grid-template-columns: minmax(0,1fr); }
  .integration-card label { grid-column: auto; }
  .integration-state { justify-self: start; }
  .builder-checklist { grid-template-columns: 1fr; }
  .share-preview { grid-template-columns: 94px minmax(0,1fr); gap: 10px; padding: 9px; }
  .share-preview-art { width: 94px; }
  .share-preview h3 { font-size:calc(11px + 2.67px); }
  .share-actions > a { flex: 1 1 calc(50% - 8px); }
}

@media(max-width:800px) {
  .event-preview-layout { grid-template-columns: 1fr; }
  .event-mobile-preview { position: static; }
  .mobile-event-card { width: min(360px,100%); }
}

@media(max-width:640px) {
  .event-hero-media { aspect-ratio: 4 / 3; }
  .preview-banner { aspect-ratio: 4 / 3; }
  .kit-editor-row { padding: 12px; }
  .kit-release { gap: 8px; }
  .builder-add-resource { width: 100%; }
}

/* App-like room navigation and lightweight route changes. */
::view-transition-old(root) { animation: studio-route-out 100ms ease both; }
::view-transition-new(root) { animation: studio-route-in 170ms ease both; }
@keyframes studio-route-out { to { opacity: .72; } }
@keyframes studio-route-in { from { opacity: .72; } to { opacity: 1; } }
@keyframes studio-panel-out { to { opacity: .76; transform: translateX(-5px); } }
@keyframes studio-panel-in { from { opacity: .76; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
@media(prefers-reduced-motion:no-preference) {
  #panel { view-transition-name: studio-panel; }
  ::view-transition-old(studio-panel) { animation: studio-panel-out 100ms ease both; }
  ::view-transition-new(studio-panel) { animation: studio-panel-in 160ms ease both; }
}
@media(prefers-reduced-motion:reduce) {
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(studio-panel), ::view-transition-new(studio-panel) { animation: none; }
}
.desktop-label { display: inline; }
.mobile-label { display: none; }
.room-topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; box-shadow: 0 4px 12px #1815230a; }
.room-back { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 40px; padding-right: 4px; color: var(--brand); font-size:calc(12px + 2.67px); font-weight: 650; }
.room-back svg { width: 17px; height: 17px; flex-basis: 17px; }
.room-event-link { min-width: 0; flex: 1; color: var(--ink); }
.room-event-link strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.room-invite { flex: 0 0 auto; }
.workspace-nav .nav-short { display: none; }
.share-event-compact svg { width: 16px; height: 16px; flex-basis: 16px; }
@media(max-width:640px) {
  .public-main { width: calc(100% - 32px); padding-top: 22px; padding-bottom: calc(42px + env(safe-area-inset-bottom)); }
  .studio-header { min-height: 60px; gap: 9px; padding: 8px 14px; }
  .brand img { width: 78px; }
  .header-builder .desktop-label { display: none; }
  .header-builder .mobile-label { display: inline; }
  .header-builder { white-space: nowrap; }
  .workspace-nav a { min-height: 48px; font-size:calc(10px + 2.67px); line-height: 1.3; border-radius: 7px; }
  .workspace-nav .nav-full { display: none; }
  .workspace-nav .nav-short { display: inline; }
  .event-grid { gap: 10px; }
  .event-card { display: grid; grid-template-columns: 94px minmax(0,1fr); border-radius: 9px; }
  .event-card-art { min-height: 150px; height: 100%; aspect-ratio: auto; }
  .event-art-placeholder { justify-content: center; gap: 5px; padding: 8px; }
  .event-art-placeholder span { font-size:calc(7px + 2.67px); line-height: 1.25; letter-spacing: .04em; }
  .event-art-placeholder strong { max-width: none; font-size:calc(13px + 2.67px); line-height: 1.2; overflow-wrap: anywhere; }
  .event-status { top: 6px; left: 6px; padding: 4px 6px; font-size:calc(9px + 2.67px); }
  .event-card-body { padding: 11px 11px 10px; }
  .event-card-body > .eyebrow { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:calc(9px + 2.67px); }
  .event-card-body h3 { margin-top: 4px; font-size:calc(13px + 2.67px); line-height: 1.27; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .event-card-body > p:not(.event-output) { display: none; }
  .event-card-meta { gap: 7px; margin-top: 7px; font-size:calc(10px + 2.67px); }
  .event-card-meta span:first-child { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .event-card-meta svg { width: 13px; height: 13px; flex-basis: 13px; }
  .event-output { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size:calc(10px + 2.67px); line-height: 1.35; }
  .event-output strong { display: inline; margin: 0 3px 0 0; font-size:calc(10px + 2.67px); }
  .event-card-actions { gap: 6px; flex-wrap: nowrap; margin-top: 7px; }
  .event-card-actions .button { min-height: 34px; padding: 6px 8px; font-size:calc(10px + 2.67px); }
  .event-card-actions .button.primary { flex: 1; }
  .event-card-actions .share-event-compact { width: 36px; min-width: 36px; padding: 6px; }
  .event-card-actions .room-shortcut { display: none; }
  .room-topbar { padding: 5px 12px; gap: 8px; min-height: 50px; }
  .room-back { gap: 3px; font-size:calc(11px + 2.67px); }
  .room-event-link strong { font-size:calc(10px + 2.67px); }
  .room-topbar .button { min-height: 38px; padding: 7px 8px; gap: 5px; }
  .room-topbar .button svg { width: 15px; height: 15px; flex-basis: 15px; }
  .back-link { margin-bottom: 14px; }
  .event-page-heading { gap: 10px; }
  .event-page-heading h1 { font-size: 24px; }
}

/* Publisher Studio rooms, inline conversation, larger media upload targets and themes. */
.room-directory { display: grid; gap: 8px; margin-top: 24px; }
.room-directory-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 6px; font-size:calc(16px + 2.67px); }
.room-directory-heading span { min-width: 27px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-align: center; font-size:calc(14px + 2.67px); }
.room-directory-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 8px; color: var(--muted); }
.room-directory-item:hover, .room-directory-item.is-current { background: var(--brand-soft); color: var(--ink); }
.room-live-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #2e9a76; box-shadow: 0 0 0 3px #2e9a7620; }
.room-directory-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.room-directory-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:calc(16px + 2.67px); }
.room-directory-copy small { color: var(--muted); font-size:calc(14px + 2.67px); }
.room-activity-count { min-width: 25px; padding: 0 6px; border-radius: 999px; background: var(--canvas); text-align: center; font-size:calc(14px + 2.67px); }
.room-directory > p { padding: 6px 10px; color: var(--muted); font-size:calc(14px + 2.67px); }
.mobile-room-strip { display: none; }
.room-event-link { display: block; }
.room-event-link span { display: block; margin-top: 1px; color: var(--muted); font-size:calc(14px + 2.67px); }
.room-event-link strong { font-size:calc(16px + 2.67px); }
.chat-room-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -8px 0 20px; color: var(--muted); font-size:calc(15px + 2.67px); }
.chat-room-status > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 650; }
.chat-room-status i { width: 9px; height: 9px; border-radius: 50%; background: #2e9a76; }
.chat-room-status > span:last-child { flex-basis: 100%; font-size:calc(14px + 2.67px); }
.chat-timeline { border-top: 1px solid var(--line); }
.thread-card { padding: 22px 0; scroll-margin-top: 90px; }
.chat-message { min-width: 0; }
.chat-message .person-line { gap: 10px; }
.chat-message .person-line strong { font-size:calc(17px + 2.67px); }
.chat-message .person-line .small { font-size:calc(15px + 2.67px); }
.chat-message-title { margin: 14px 0 0 45px; font-size:calc(21px + 2.67px); }
.chat-message-body { margin: 10px 0 0 45px; font-size:calc(19px + 2.67px); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.trainer-mention { color: var(--brand); font-weight: 700; }
.chat-link-preview { display: grid; grid-template-columns: 108px minmax(0,1fr); max-width: 540px; min-height: 98px; margin: 14px 0 0 45px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.chat-preview-art { display: grid; place-items: center; min-height: 98px; background: var(--brand-soft); color: var(--brand); }
.chat-preview-art img { width: 100%; height: 100%; object-fit: cover; }
.chat-preview-art svg { width: 30px; height: 30px; }
.chat-preview-copy { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 12px 14px; }
.chat-preview-copy strong { font-size:calc(17px + 2.67px); }
.chat-preview-copy span, .chat-preview-copy small { color: var(--muted); font-size:calc(14px + 2.67px); overflow-wrap: anywhere; }
.chat-preview-copy small { display: flex; align-items: center; gap: 5px; }
.chat-preview-copy small svg { width: 15px; height: 15px; }
.wistudi-flow-preview .chat-preview-art { background: #f0eaff; }
.embedded-video { max-width: 540px; margin: 14px 0 0 45px; }
.chat-attachments { display: grid; gap: 10px; width: min(100%, 560px); margin: 14px 0 0 45px; }
.chat-attachments img, .chat-attachments video { display: block; max-width: 100%; max-height: 380px; border-radius: 9px; background: #111; object-fit: contain; }
.chat-file-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.chat-file-card > span { display: grid; min-width: 0; flex: 1; gap: 2px; }
.chat-file-card strong { overflow-wrap: anywhere; font-size:calc(16px + 2.67px); }
.chat-file-card small { color: var(--muted); font-size:calc(14px + 2.67px); }
.related-context-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0 45px; font-size:calc(14px + 2.67px); }
.related-context-links > span { color: var(--muted); }
.related-context-links a { padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.thread-footer { justify-content: flex-start; margin: 13px 0 0 45px; gap: 16px; }
.thread-footer .text-link, .heart-button { min-height: 39px; font-size:calc(15px + 2.67px); }
.heart-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }
.heart-button svg { width: 17px; height: 17px; }
.heart-button.is-liked { color: #c93f68; border-color: #e3a3b7; background: #fff3f6; }
.chat-replies { display: grid; gap: 12px; margin: 16px 0 0 52px; padding-left: 17px; border-left: 2px solid var(--line); }
.chat-replies .chat-message-body, .chat-replies .chat-message-title, .chat-replies .chat-link-preview, .chat-replies .chat-attachments, .chat-replies .embedded-video { margin-left: 43px; }
.chat-replies .chat-message-body { font-size:calc(17px + 2.67px); }
.read-replies { justify-self: start; min-height: 40px; padding: 7px 12px; border: 0; background: none; color: var(--brand); font-size:calc(15px + 2.67px); font-weight: 650; }
.chat-composer { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 -8px 22px #1815230c; }
.chat-reply-composer { position: static; margin: 12px 0 0 52px; box-shadow: none; }
.chat-composer-context { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--muted); font-size:calc(15px + 2.67px); }
.chat-composer-context > span:first-child { margin-right: auto; }
.chat-kind-select { display: block; }
.chat-kind-select select { min-height: 42px; padding: 7px 10px; font-size:calc(14px + 2.67px); }
.chat-emoji-button { font-size:calc(23px + 2.67px); }
.chat-file-button { position: relative; font-size:calc(22px + 2.67px); }
.chat-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.chat-drop-hint { padding: 7px 0 5px; color: var(--muted); font-size:calc(14px + 2.67px); }
.chat-composer:focus-within, .chat-composer.is-dragging { border-color: #9c7bd2; box-shadow: 0 0 0 3px #7040c420; }
.chat-pending-files, .chat-related-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0; }
.chat-pending-files > span, .chat-related-chips > span { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--canvas); font-size:calc(14px + 2.67px); overflow-wrap: anywhere; }
.chat-pending-files button, .chat-related-chips button { border: 0; background: none; color: var(--muted); font-size:calc(18px + 2.67px); }
.chat-related-suggestion, .chat-mention-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); font-size:calc(15px + 2.67px); }
.chat-related-suggestion button, .chat-mention-suggestion button { border: 0; background: none; color: var(--brand); font-size:calc(15px + 2.67px); font-weight: 700; }
.chat-emoji-picker { margin: 6px 0 10px; }
emoji-picker { width: min(100%, 360px); height: 360px; --num-columns: 8; --emoji-size: 1.7rem; --background: var(--white); --border-color: var(--line); }
.emoji-fallback { display: flex; flex-wrap: wrap; gap: 5px; }
.emoji-fallback button { min-width: 43px; min-height: 43px; border: 1px solid var(--line); background: var(--white); font-size:calc(24px + 2.67px); }
.chat-emoji-picker p { color: var(--muted); font-size:calc(14px + 2.67px); }
.file-dropzone { display: flex; align-items: center; gap: 15px; min-height: 92px; padding: 16px; border: 2px dashed #b7a6d0; border-radius: 10px; background: #fbf9ff; cursor: pointer; transition: border-color .15s, background .15s; }
.file-dropzone:hover, .file-dropzone.is-dragging { border-color: var(--brand); background: var(--brand-soft); }
.file-dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.file-dropzone:focus-within { outline: 3px solid #287fbe; outline-offset: 3px; }
.file-dropzone-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size:calc(26px + 2.67px); }
.file-dropzone-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.file-dropzone-copy strong { font-size:calc(17px + 2.67px); }
.file-dropzone-copy small, .file-dropzone-meta { color: var(--muted); font-size:calc(15px + 2.67px); overflow-wrap: anywhere; }
.file-dropzone-button { min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--brand); font-size:calc(15px + 2.67px); font-weight: 700; }
.kit-file-field { display: grid; gap: 7px; }
.kit-file-field .field-label { font-size:calc(16px + 2.67px); font-weight: 600; }
.theme-toggle { min-width: 93px; }
.trainer-notifications { position: relative; z-index: 30; }
.trainer-notifications summary { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); list-style: none; cursor: pointer; }
.trainer-notifications summary::-webkit-details-marker { display: none; }
.trainer-notifications summary > span { position: absolute; top: -4px; right: -4px; min-width: 21px; min-height: 21px; padding: 0 4px; border-radius: 50%; background: var(--brand); color: white; text-align: center; font-size:calc(13px + 2.67px); }
.notification-popover { position: absolute; top: calc(100% + 10px); right: 0; display: grid; gap: 11px; width: min(340px, calc(100vw - 30px)); padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 40px #18152325; }
.notification-popover > strong { font-size:calc(16px + 2.67px); }
.notification-popover a, .notification-popover small { font-size:calc(15px + 2.67px); }
.notification-popover a { color: var(--brand); }

body[data-studio-theme="dark"] { color-scheme: dark; --ink: #f2f0f8; --muted: #b8b5c4; --line: #393744; --brand: #b99be9; --brand-soft: #30263f; --teal: #8fd2bb; --teal-soft: #1d332c; --canvas: #1b1a22; --white: #111016; background: var(--white); }
body[data-studio-theme="dark"] .studio-header,
body[data-studio-theme="dark"] .room-topbar,
body[data-studio-theme="dark"] .composer,
body[data-studio-theme="dark"] .chat-composer,
body[data-studio-theme="dark"] .trainer-notifications summary,
body[data-studio-theme="dark"] .notification-popover,
body[data-studio-theme="dark"] dialog,
body[data-studio-theme="dark"] input,
body[data-studio-theme="dark"] select,
body[data-studio-theme="dark"] textarea,
body[data-studio-theme="dark"] .workspace-nav,
body[data-studio-theme="dark"] .filter-row button,
body[data-studio-theme="dark"] .vote-button,
body[data-studio-theme="dark"] .resource-row,
body[data-studio-theme="dark"] .mobile-event-card,
body[data-studio-theme="dark"] .file-dropzone,
body[data-studio-theme="dark"] .file-dropzone-button,
body[data-studio-theme="dark"] .heart-button,
body[data-studio-theme="dark"] .emoji-fallback button { background-color: var(--white); color: var(--ink); }
body[data-studio-theme="dark"] .button:not(.primary), body[data-studio-theme="dark"] .icon-button:not(.primary) { background-color: var(--white); color: var(--ink); }
body[data-studio-theme="dark"] .kit-editor-row { background: var(--white); }
body[data-studio-theme="dark"] .event-art-placeholder { background-color: #252132; }
body[data-studio-theme="dark"] .room-directory-item:hover, body[data-studio-theme="dark"] .room-directory-item.is-current { background: var(--brand-soft); }
body[data-studio-theme="dark"] .chat-preview-art { background-color: #29223a; }
body[data-studio-theme="dark"] .file-dropzone { border-color: #75618f; }
body[data-studio-theme="dark"] .tag { background: #2a2832; color: #d2ceda; }
body[data-studio-theme="dark"] .tag.teal { background: var(--teal-soft); color: var(--teal); }
body[data-studio-theme="dark"] .heart-button.is-liked { background: #39202a; color: #ff9cb6; }
body[data-studio-theme="dark"] .weekly-focus p { color: var(--ink); }
body[data-studio-theme="dark"] .button.primary { background: #7040c4; border-color: #8b63d1; color: #fff; }
body[data-studio-theme="dark"] .button.primary:hover { background: #5e31ae; }
body[data-studio-theme="dark"] .workspace-nav a { color: var(--muted); }
body[data-studio-theme="dark"] .workspace-nav a[aria-current] { background: var(--brand-soft); color: var(--brand); }
body[data-studio-theme="dark"] .workspace-nav a:hover { background: var(--canvas); color: var(--ink); }

/* Global shell geometry: the 60px header owns the viewport top on every Studio route.
   The internal QA strip stays in document flow so it can never detach the product header.
   Crumb-aware offsets are applied only when a crumb bar is actually rendered. */
/* One Publisher Studio app shell is shared by Home, event discovery, My Events,
   event overview, each event workspace section and the Event Builder. */
.prototype-bar { position: relative; z-index: 65; }
.studio-header { position: sticky; top: 0; z-index: 60; }
.app-workspace { display: grid; grid-template-columns: 256px minmax(0,1fr); align-items: stretch; min-height: calc(100dvh - 60px); }
.app-workspace.has-context-rail { grid-template-columns: 256px minmax(0,1fr) 320px; }
.app-sidebar { position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); min-height: 440px; overflow-y: auto; padding: 26px 16px 20px; background: var(--canvas); border-right: 1px solid var(--line); }
.app-workspace.has-crumbbar .app-sidebar { top: 112px; height: calc(100dvh - 112px); }
.sidebar-studio-name { display: block; padding: 0 10px; font-family: 'Be Vietnam Pro',Inter,Arial,sans-serif; font-size: 19px; font-weight: 700; }
.global-navigation { display: grid; gap: 5px; margin: 22px 0 13px; }
.global-navigation a, .event-workspace-nav a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 10px 11px; border-radius: 7px; color: var(--muted); font-size: 16px; }
.global-navigation a:hover, .event-workspace-nav a:hover { color: var(--ink); background: var(--white); }
.global-navigation a[aria-current="page"], .event-workspace-nav a[aria-current="page"] { color: #6434ac; background: #ece4f9; font-weight: 650; }
.global-navigation svg, .event-workspace-nav svg { width: 19px; height: 19px; flex: 0 0 19px; }
.sidebar-create-event { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 6px 4px 0; padding: 9px 12px; border: 1px solid #d8c9ef; border-radius: 7px; color: var(--brand); background: var(--white); font-size: 15px; font-weight: 650; }
.sidebar-create-event:hover, .sidebar-create-event.is-current { background: var(--brand-soft); }
.sidebar-create-event svg { width: 18px; height: 18px; }
.sidebar-event-context { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--line); }
.sidebar-section-label { padding: 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-event-title { display: block; margin: 8px 9px 0; font-size: 15px; line-height: 1.45; font-weight: 650; }
.sidebar-event-context > p { margin: 4px 9px 14px; }
.event-workspace-nav { display: grid; gap: 4px; }
.event-workspace-nav a { min-height: 43px; font-size: 15px; }
.event-workspace-nav .nav-short { display: none; }
.app-sidebar .sidebar-bottom { display: grid; gap: 4px; padding: 28px 10px 0; }
.app-crumbbar { position: sticky; top: 60px; z-index: 50; min-height: 52px; }
.app-crumbbar .room-event-link { display: block; }
.app-crumbbar .room-invite { min-width: 94px; }
.app-crumb-title { min-width: 0; flex: 1; color: var(--ink); font-size: 16px; font-weight: 650; }
.mobile-event-navigation, .global-mobile-navigation { display: none; }
.workspace-main { min-width: 0; }
.app-workspace .context-rail { position: sticky; top: 60px; align-self: start; min-height: calc(100dvh - 60px); }
.app-workspace.has-crumbbar .context-rail { top: 112px; min-height: calc(100dvh - 112px); }
.app-page-heading { max-width: 980px; margin: 3px 0 31px; }
.app-page-heading h1 { margin-top: 4px; }
.app-page-heading .lead { margin-top: 8px; }
.home-discover-link { margin-top: 20px; }
.home-continue { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 29px 0 34px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.home-continue h2 { margin-top: 4px; font-size: 21px; }
.home-continue p { margin-top: 4px; }
.home-continue .button { flex: 0 0 auto; }
.home-empty { background: var(--teal-soft); border-color: transparent; }
.home-upcoming { margin-top: 32px; }
.home-upcoming .event-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.my-events-empty { max-width: 760px; margin: 38px auto; padding: 44px 26px; border-radius: 9px; }
.my-events-section { display:grid; gap:16px; margin-top:30px; }
.my-events-section + .my-events-section { margin-top:42px; }
.my-events-section .section-heading { align-items:end; }
.my-events-section .section-heading h2 { margin:4px 0 3px; }
.my-managed-event-card .event-card-body { display:flex; flex-direction:column; }
.my-managed-event-card .event-card-meta { margin-bottom:16px; }
.my-managed-event-actions { display:flex; gap:8px; margin-top:auto; padding-top:4px; }
.my-managed-event-actions .button { position:relative; z-index:3; flex:1 1 0; justify-content:center; }
.my-events-management-error { margin:4px 0 20px; }
body[data-studio-theme="dark"] .my-events-section .section-heading h2 { color:var(--ink); }
@media(max-width:640px) {
  .my-events-section { margin-top:24px; }
  .my-events-section + .my-events-section { margin-top:34px; }
  .my-events-section .section-heading { align-items:flex-start; flex-direction:column; }
  .my-managed-event-actions { display:grid; grid-template-columns:1fr; }
}
.empty-state-icon { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; margin-bottom: 13px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.empty-state-icon svg { width: 24px; height: 24px; }
.preview-state-note { margin: -11px 0 22px; padding: 12px 14px; border-left: 3px solid #c99830; background: #fbf5e7; color: #5b4b2d; font-size: 14px; }
.event-overview-page { max-width: 1400px; margin: 0 auto; }
.event-overview-page .event-page-heading { margin-bottom: 24px; }
.builder-main { width: auto; max-width: none; margin: 0; }
.builder-page { width: 100%; max-width: 1500px; margin: 0 auto; }
.builder-page .builder-heading { margin-bottom: 8px; }
.registration-success > .text-link { display: flex; width: fit-content; margin-top: 14px; }
.global-mobile-navigation a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
body[data-studio-theme="dark"] .app-sidebar,
body[data-studio-theme="dark"] .global-mobile-navigation { background: var(--white); color: var(--ink); }
body[data-studio-theme="dark"] .global-navigation a,
body[data-studio-theme="dark"] .event-workspace-nav a { color: var(--muted); }
body[data-studio-theme="dark"] .global-navigation a[aria-current="page"],
body[data-studio-theme="dark"] .event-workspace-nav a[aria-current="page"],
body[data-studio-theme="dark"] .global-mobile-navigation a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
body[data-studio-theme="dark"] .sidebar-create-event { background: var(--white); color: var(--brand); border-color: var(--line); }
body[data-studio-theme="dark"] .home-continue { background: var(--canvas); }

@media(max-width:1150px) {
  .app-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .app-workspace.has-context-rail { grid-template-columns: 220px minmax(0,1fr); }
  .app-workspace.has-context-rail > .context-rail { display: none; }
  .home-upcoming .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .prototype-bar { position: relative; }
  .studio-header { top: 0; }
  .app-crumbbar { top: 60px; }
  .app-workspace, .app-workspace.has-context-rail { display: block; min-height: calc(100dvh - 60px); }
  .app-workspace.has-crumbbar { min-height: calc(100dvh - 112px); }
  .app-workspace .app-sidebar { display: none; }
  .workspace-main { padding: 25px 26px calc(96px + env(safe-area-inset-bottom)); }
  .app-workspace .context-rail { display: none; }
  .mobile-event-navigation { position: sticky; top: 60px; z-index: 45; display: block; border-bottom: 1px solid var(--line); background: var(--white); }
  .mobile-event-navigation.has-crumbbar { top: 112px; }
  .mobile-event-navigation .event-workspace-nav { display: flex; gap: 3px; overflow-x: auto; padding: 4px 14px; scrollbar-width: thin; }
  .mobile-event-navigation .event-workspace-nav a { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; font-size: 14px; }
  .mobile-event-navigation .event-workspace-nav .nav-full { display: inline; }
  .mobile-event-navigation .event-workspace-nav .nav-short { display: none; }
  .global-mobile-navigation { position: fixed; inset: auto 0 0; z-index: 70; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; min-height: 64px; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .global-mobile-navigation a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 4px 1px; border-radius: 7px; color: var(--muted); font-size: 12px; line-height: 1.2; }
  .global-mobile-navigation svg { width: 19px; height: 19px; }
  .home-upcoming .event-grid { grid-template-columns: 1fr; }
  .home-continue { align-items: flex-start; flex-direction: column; }
  .builder-page { max-width: 800px; }
}
@media(max-width:640px) {
  .studio-header { top: 0; min-height: 60px; }
  .app-crumbbar { top: 60px; min-height: 49px; padding-inline: 12px; }
  .app-crumbbar .room-back { font-size: 13px; }
  .app-crumbbar .room-event-link strong { font-size: 14px; }
  .app-crumbbar .room-event-link span { font-size: 12px; }
  .app-crumbbar .room-invite { min-width: 40px; width: 40px; padding: 5px; }
  .app-crumbbar .room-invite span { display: none; }
  .app-crumbbar .app-crumb-title { font-size: 14px; }
  .mobile-event-navigation { top: 60px; }
  .mobile-event-navigation.has-crumbbar { top: 109px; }
  .mobile-event-navigation .event-workspace-nav { padding-inline: 9px; }
  .mobile-event-navigation .event-workspace-nav a { min-height: 42px; font-size: 13px; }
  .workspace-main { padding: 22px 16px calc(90px + env(safe-area-inset-bottom)); }
  .app-page-heading { margin-bottom: 24px; }
  .app-page-heading h1 { font-size: 29px; }
  .app-page-heading .lead { font-size: 16px; }
  .my-events-empty { margin: 22px 0; padding: 31px 16px; }
  .event-overview-page .event-page-heading { display: block; }
  .event-overview-page .event-layout { grid-template-columns: 1fr; }
  .event-overview-page .registration-panel { grid-row: auto; }
  .global-mobile-navigation { min-height: 60px; }
  .global-mobile-navigation a { font-size: 11px; }
  .global-mobile-navigation svg { width: 18px; height: 18px; }
  .composer { bottom: calc(60px + env(safe-area-inset-bottom)); }
}

@media(max-width:800px) {
  .workspace { grid-template-columns: 196px minmax(0,1fr); }
  .workspace-sidebar { min-width: 0; }
  .workspace-sidebar .room-directory { margin-inline: -8px; }
}
@media(max-width:640px) {
  .mobile-room-strip { position: sticky; top: 50px; z-index: 12; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--white); scrollbar-width: thin; }
  .mobile-room-strip .room-directory-heading, .mobile-room-strip > p { display: none; }
  .mobile-room-strip .room-directory-item { min-width: 205px; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); background: var(--canvas); }
  .mobile-room-strip .room-directory-copy strong { font-size:calc(16px + 2.67px); }
  .mobile-room-strip .room-directory-copy small { font-size:calc(13px + 2.67px); }
  .workspace-sidebar .room-directory { display: none; }
  .workspace-nav { grid-template-columns: repeat(var(--tab-count,5),minmax(0,1fr)); }
  .header-actions { gap: 7px; }
  .header-actions .theme-toggle { min-width: 42px; width: 42px; padding: 6px; }
  .header-actions .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .trainer-notifications summary { width: 40px; height: 40px; }
  .room-event-link span { font-size:calc(13px + 2.67px); }
  .room-event-link strong { font-size:calc(15px + 2.67px); }
  .chat-room-status { gap: 8px; font-size:calc(14px + 2.67px); }
  .chat-room-status > span:last-child { font-size:calc(14px + 2.67px); }
  .thread-card { padding: 18px 0; }
  .chat-message-title { margin-left: 0; font-size:calc(21px + 2.67px); }
  .chat-message-body { margin-left: 0; font-size:calc(19px + 2.67px); }
  .chat-link-preview, .embedded-video, .chat-attachments, .related-context-links { margin-left: 0; }
  .chat-link-preview { grid-template-columns: 86px minmax(0,1fr); }
  .chat-preview-art { min-height: 86px; }
  .chat-preview-copy { padding: 9px 10px; }
  .chat-preview-copy strong { font-size:calc(16px + 2.67px); }
  .chat-preview-copy span, .chat-preview-copy small { font-size:calc(13px + 2.67px); }
  .thread-footer { margin-left: 0; gap: 8px; flex-wrap: wrap; }
  .thread-footer .text-link, .heart-button { font-size:calc(14px + 2.67px); }
  .chat-replies { margin-left: 10px; padding-left: 12px; }
  .chat-replies .chat-message-body, .chat-replies .chat-message-title, .chat-replies .chat-link-preview, .chat-replies .chat-attachments, .chat-replies .embedded-video { margin-left: 0; }
  .chat-reply-composer { margin-left: 10px; }
  .chat-composer { position: sticky; bottom: calc(67px + env(safe-area-inset-bottom)); z-index: 5; margin: 12px -8px 0; padding: 10px; }
  .chat-composer-context { flex-wrap: wrap; }
  .chat-composer-context > span:first-child { flex-basis: 100%; }
  .chat-kind-select { flex: 1 1 40%; min-width: 0; }
  .chat-kind-select select { width: 100%; font-size:calc(13px + 2.67px); }
  .chat-drop-hint { font-size:calc(13px + 2.67px); }
  .file-dropzone { min-height: 86px; gap: 10px; padding: 12px; }
  .file-dropzone-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .file-dropzone-copy strong { font-size:calc(16px + 2.67px); }
  .file-dropzone-copy small, .file-dropzone-meta { font-size:calc(14px + 2.67px); }
  .file-dropzone-button { min-height: 40px; padding: 6px 9px; font-size:calc(14px + 2.67px); }
  .mobile-room-strip { top: 50px; }
}


/* Verified identity and event team tools */
[data-identity-mount] { display: flex; align-items: center; gap: 8px; }
.identity-signin, .identity-team { white-space: nowrap; }
.identity-profile {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); padding: 4px 12px 4px 5px; font: inherit; cursor: pointer;
}
.identity-profile:hover { background: var(--canvas); }
.identity-avatar {
  width: 31px; height: 31px; display: inline-grid; place-items: center; flex: 0 0 31px;
  border-radius: 50%; background: #e8def9; color: #563196; font-size: 12px; font-weight: 750;
}
.identity-profile-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.identity-dialog { width: min(780px, calc(100% - 36px)); max-width: 780px; background: var(--white); color: var(--ink); }
.identity-dialog .identity-content { display: grid; gap: 18px; }
.identity-dialog .dialog-header { background: var(--white); }
.identity-dialog .dialog-header h2 { margin-top: 3px; }
.identity-form { display: grid; gap: 14px; }
.identity-form .form-error { min-height: 20px; color: #a12d38; }
.identity-form .full-width { width: 100%; }
.identity-switch, .identity-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.identity-switch button, .identity-tabs button {
  min-height: 42px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font: inherit; cursor: pointer;
}
.identity-switch button[aria-pressed="true"], .identity-tabs button[aria-selected="true"] {
  color: var(--brand); border-bottom-color: var(--brand); font-weight: 700;
}
.identity-consent { display: flex; grid-template-columns: none; align-items: start; gap: 10px; font-weight: 450; }
.identity-consent input, .identity-setting input { width: 19px; min-width: 19px; height: 19px; margin: 3px 0 0; }
.identity-privacy, .identity-invite-note, .identity-session { padding: 12px 14px; background: var(--canvas); border-radius: 7px; color: var(--muted); font-size: 14px; }
.identity-invite-note { border-left: 3px solid var(--brand); color: var(--ink); }
.identity-section { display: grid; gap: 14px; }
.identity-section h3 { margin-top: 10px; }
.identity-list { list-style: none; padding: 0; margin: 0; display: grid; }
.identity-list li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.identity-list li > div:first-child { display: grid; min-width: 0; gap: 3px; }
.identity-list li span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.identity-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.identity-bootstrap { padding: 18px; border: 1px solid #d9caef; border-radius: 8px; background: var(--brand-soft); display: grid; gap: 12px; }
.identity-invite-result { display: grid; gap: 10px; padding: 14px; background: var(--canvas); border-radius: 7px; }
.identity-invite-result p { margin: 0; }
.identity-invite-result input { font-size: 13px; }
.identity-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.identity-event { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.identity-event-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.identity-event-heading > div { display: grid; gap: 4px; }
.identity-event-heading span { color: var(--muted); font-size: 14px; }
.identity-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-items: center; }
.identity-setting { display: flex; align-items: start; gap: 8px; font-size: 14px; font-weight: 500; }
.identity-settings-form > button, .identity-settings-form > .form-error { grid-column: 1 / -1; justify-self: start; }
.identity-roster { border-top: 1px solid var(--line); padding-top: 12px; }
.identity-roster summary { cursor: pointer; font-weight: 650; }
.identity-roster-list { display: grid; gap: 8px; margin-top: 12px; }
.identity-roster-list > div { display: grid; gap: 3px; padding: 10px; border-radius: 6px; background: var(--canvas); }
.identity-roster-list span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
body[data-studio-theme="dark"] .identity-dialog { background: #191720; color: #f4f1fa; border-color: #383440; }
body[data-studio-theme="dark"] .identity-dialog .dialog-header,
body[data-studio-theme="dark"] .identity-profile { background: #191720; color: #f4f1fa; border-color: #383440; }
body[data-studio-theme="dark"] .identity-privacy,
body[data-studio-theme="dark"] .identity-session,
body[data-studio-theme="dark"] .identity-roster-list > div,
body[data-studio-theme="dark"] .identity-invite-result { background: #24212c; color: #d7d2e0; }
body[data-studio-theme="dark"] .identity-bootstrap { background: #282033; border-color: #56406f; }
body[data-studio-theme="dark"] .identity-settings-form input,
body[data-studio-theme="dark"] .identity-dialog input,
body[data-studio-theme="dark"] .identity-dialog select { background: #201d27; color: #f4f1fa; border-color: #514c5a; }
@media (max-width: 740px) {
  .identity-profile-name { display: none; }
  .identity-profile { padding-right: 5px; }
  .identity-settings-form { grid-template-columns: 1fr; }
  .identity-settings-form > button, .identity-settings-form > .form-error { grid-column: auto; }
  .identity-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 20px); }
  .identity-dialog .dialog-content { padding: 16px; }
}


/* Preview-only role QA control */





@media (max-width:640px) {



}


/* Issue #34 UX implementation: Discovery, Overview, Builder and role-aware Build. */
.discover-controls { display:grid; gap:16px; margin:24px 0 28px; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--canvas); }
.discover-state-tabs { display:flex; gap:8px; overflow:auto; }
.discover-state-tabs button { min-height:42px; padding:8px 16px; border:1px solid var(--line); background:var(--white); color:var(--ink); font-weight:650; }
.discover-state-tabs button[aria-pressed="true"] { color:var(--brand); border-color:var(--brand); background:var(--brand-soft); }
.discover-filter-row { display:grid; grid-template-columns:minmax(210px,2fr) repeat(4,minmax(130px,1fr)); gap:12px; align-items:end; }
.event-card { position:relative; min-width:0; overflow:hidden; }
.event-card-main { display:block; height:100%; color:inherit; }
.event-card-main:focus-visible { outline-offset:-4px; border-radius:inherit; }
.event-card-art { display:block; position:relative; width:100%; aspect-ratio:16 / 9; overflow:hidden; background:var(--brand-soft); }
.event-card-art img { display:block; width:100%; height:100%; object-fit:cover; }
.event-card-main:hover .event-card-art img { transform:scale(1.015); transition:transform .2s ease; }
.event-card-body { padding:18px 18px 20px; }
.event-card-body h3 { margin-top:7px; }
.event-card-body p.muted { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:7px; }
.event-card-meta { display:flex; gap:18px; flex-wrap:wrap; margin-top:14px; color:var(--muted); }
.event-card-share { position:absolute; z-index:2; top:12px; right:12px; display:grid; place-items:center; width:42px; height:42px; padding:0; border:1px solid rgba(255,255,255,.7); border-radius:50%; color:#fff; background:rgba(24,21,35,.55); opacity:0; transition:opacity .15s ease, transform .15s ease; }
.event-card:hover .event-card-share, .event-card:focus-within .event-card-share { opacity:1; }
.event-card-share:hover { transform:scale(1.06); }
.event-card-share svg { width:19px; height:19px; }
.event-card-main:focus-visible + .event-card-share { opacity:1; }
.event-card:hover { transform:translateY(-2px); transition:transform .18s ease; }
.event-page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.event-heading-share { flex:0 0 auto; }
.event-hero-media { width:100%; aspect-ratio:32 / 9; max-height:360px; overflow:hidden; border-radius:12px; background:var(--canvas); }
.event-hero-media img { display:block; width:100%; height:100%; object-fit:cover; }
.event-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:24px 0; }
.event-facts > div { min-width:0; padding:13px 15px; border:1px solid var(--line); border-radius:9px; background:var(--white); }
.event-facts strong { display:block; margin-top:3px; }
.event-about-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:28px; align-items:start; margin:24px 0 32px; }
.event-about-grid:not(:has(.event-promo)) { grid-template-columns:1fr; }
.event-promo { min-width:0; overflow:hidden; border-radius:10px; }
.event-promo .embedded-video { width:100%; max-width:none; margin:0; aspect-ratio:16 / 9; }
.event-about { padding:8px 0; }
.event-about h2 { margin-top:5px; }
.event-layout { align-items:start; }
.registration-panel { position:sticky; top:24px; }
.registration-state h2 { margin-top:8px; }
.registration-countdown { padding:10px 12px; border-radius:8px; color:var(--teal); background:var(--teal-soft); font-weight:700; }
.cancel-registration { margin-top:14px; }
.public-activity-preview { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:28px 0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--canvas); }
.public-activity-preview h2 { margin-top:3px; }
.activity-counts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.activity-counts span { padding:4px 10px; border-radius:99px; background:var(--brand-soft); color:var(--brand); font-size:14px; font-weight:650; }
.room-access-gate { max-width:740px; margin:clamp(32px,8vh,90px) auto; padding:clamp(24px,5vw,52px); border:1px solid var(--line); border-radius:14px; background:var(--white); }
.room-access-gate h1 { margin-top:8px; }
.room-access-gate > .muted { margin-top:16px; }
.room-access-gate > .button { margin-top:20px; }
.event-registration-access-notice,
.room-registration-gate-notice { display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:13px 14px; border:1px solid color-mix(in srgb,var(--brand) 20%,var(--line)); border-radius:11px; background:var(--brand-soft); }
.event-registration-access-icon { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:9px; background:var(--white); color:var(--brand); box-shadow:0 1px 3px rgba(38,29,53,.08); }
.event-registration-access-icon svg { width:17px; height:17px; }
.event-registration-access-notice strong,
.room-registration-gate-notice strong { display:block; color:var(--ink); font-size:.9rem; line-height:1.35; }
.event-registration-access-notice p,
.room-registration-gate-notice p { margin:3px 0 0; color:var(--muted); font-size:.82rem; line-height:1.5; }
.room-registration-gate-notice { margin-top:22px; padding:16px; }
.room-registration-gate-notice .event-registration-access-icon { width:36px; height:36px; flex-basis:36px; }
.room-registration-gate-notice .event-registration-access-icon svg { width:19px; height:19px; }
.builder-flow { display:flex; gap:8px; overflow:auto; margin:22px 0; padding:4px; }
.builder-flow button { display:flex; align-items:center; gap:9px; min-height:46px; padding:7px 14px; border:1px solid var(--line); border-radius:9px; background:var(--white); color:var(--muted); white-space:nowrap; }
.builder-flow button span { display:inline-grid; place-items:center; width:27px; height:27px; border-radius:50%; background:var(--canvas); font-size:14px; }
.builder-flow button[aria-current="step"] { color:var(--brand); border-color:var(--brand); background:var(--brand-soft); }
.builder-flow button[aria-current="step"] span { color:white; background:var(--brand); }
[data-builder-step-section][hidden] { display:none !important; }
.builder-step-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:24px 0; padding-top:18px; border-top:1px solid var(--line); }
.access-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.builder-inline-note, .builder-validation-summary, .participation-policy-banner { padding:14px 16px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.builder-review-list { display:grid; gap:0; margin:0; }
.builder-review-list > div { display:grid; grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr); gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.builder-review-list dt { color:var(--muted); font-weight:650; }
.builder-review-list dd { margin:0; overflow-wrap:anywhere; }
.builder-validation-summary { margin-top:16px; }
.builder-validation-summary ul { margin:8px 0 0; padding-left:22px; }
.builder-validation-summary.is-ready { display:flex; gap:8px; flex-direction:column; color:var(--teal); background:var(--teal-soft); }
.builder-preview-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.builder-preview-tiles > div { display:grid; gap:5px; padding:14px; border:1px solid var(--line); border-radius:9px; }
.builder-preview-tiles span { color:var(--muted); font-size:15px; }
.build-dashboard-tools { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:18px 0; }
.build-challenge-list { display:grid; gap:14px; margin-top:20px; }
.build-challenge-admin-card, .learner-challenge-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:16px; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
.build-card-number, .challenge-number { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:var(--brand); background:var(--brand-soft); font-weight:750; }
.challenge-detail-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.build-card-main h2, .learner-challenge-card h2 { font-size:21px; }
.build-card-stats { display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; color:var(--muted); font-size:15px; }
.participation-policy-banner { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin:16px 0; }
.learner-challenge-card { align-items:center; }
.learner-challenge-status { display:inline-block; margin-top:8px; color:var(--teal); font-size:14px; font-weight:700; }
.challenge-detail-card { padding:clamp(18px,3vw,30px); border:1px solid var(--line); border-radius:13px; background:var(--white); }
.challenge-detail-card > h2 { margin-top:8px; }
.challenge-instructions, .challenge-criteria, .challenge-join-card, .challenge-submission-area { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.challenge-instructions h3, .challenge-criteria h3, .challenge-submission-area h3 { margin-bottom:8px; }
.challenge-criteria ul { display:grid; gap:8px; padding-left:22px; }
.challenge-join-card { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.mobile-event-card img { width:100%; aspect-ratio:16 / 9; object-fit:cover; }
@media (max-width:900px) {
  .discover-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .discover-filter-row label:first-child { grid-column:1 / -1; }
  .event-layout { grid-template-columns:minmax(0,1fr); }
  .registration-panel { position:static; }
}
@media (max-width:680px) {
  .discover-controls { padding:12px; }
  .discover-filter-row { grid-template-columns:minmax(0,1fr); }
  .discover-filter-row label:first-child { grid-column:auto; }
  .event-card-share { opacity:1; width:40px; height:40px; }
  .event-page-heading { display:block; }
  .event-heading-share { margin-top:12px; }
  .event-hero-media { aspect-ratio:16 / 9; max-height:none; }
  .event-about-grid { grid-template-columns:minmax(0,1fr); }
  .public-activity-preview { align-items:flex-start; flex-direction:column; }
  .access-settings-grid, .builder-preview-tiles { grid-template-columns:minmax(0,1fr); }
  .build-dashboard-tools { align-items:stretch; flex-direction:column; }
  .build-challenge-admin-card, .learner-challenge-card { grid-template-columns:auto minmax(0,1fr); }
  .build-challenge-admin-card > button, .learner-challenge-card > button { grid-column:1 / -1; width:100%; }
  .builder-review-list > div { grid-template-columns:minmax(0,1fr); gap:2px; }
}


/* 2026-09-21 completion pass: approved Publisher Studio states. */
.event-card-share {
  top:auto;
  bottom:12px;
  right:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:5px;
  background:rgba(24,21,35,.42);
  box-shadow:none;
}
.event-card-share:hover,
.event-card-share:focus-visible { background:rgba(24,21,35,.62); }

.vote-button[aria-pressed="true"] {
  color:var(--teal);
  border-color:var(--teal);
  background:var(--teal-soft);
}

.event-side-stack {
  position:sticky;
  top:24px;
  display:grid;
  gap:16px;
  align-self:start;
}
.event-side-stack .registration-panel { position:static; }
.public-activity-preview {
  display:block;
  margin:0;
  padding:18px;
  background:var(--white);
}
.public-activity-preview .activity-counts { margin:10px 0 14px; }
.public-activity-list { display:grid; gap:0; margin:6px 0 16px; border-top:1px solid var(--line); }
.public-activity-item { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 10px; padding:12px 0; border-bottom:1px solid var(--line); }
.public-activity-item .tag { align-self:start; grid-row:1 / span 2; }
.public-activity-item p { margin:0; font-size:14px; line-height:1.45; }
.public-activity-item small { color:var(--muted); }
.public-activity-preview .full-width { width:100%; justify-content:center; }
.public-build-challenges { margin-top:28px; }
.public-challenge-list { display:grid; gap:10px; margin-top:14px; }
.public-challenge-card { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:16px 0; border-top:1px solid var(--line); }
.public-challenge-card:first-child { border-top:0; }
.public-challenge-card h3 { margin-top:7px; }
.public-challenge-card p { margin-top:5px; color:var(--muted); }
.public-challenge-card .text-link { flex:0 0 auto; }

.room-rail-card { padding:0 0 20px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.room-rail-card:last-child { border-bottom:0; }
.your-event-card h2 { margin-top:5px; font-size:20px; }
.your-event-card > p { margin-top:7px; }
.room-rail-countdown { color:var(--teal); font-weight:750; }
.room-rail-actions { display:grid; gap:8px; margin-top:14px; }
.room-activity-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.room-activity-stats a { display:grid; gap:2px; min-width:0; padding:10px 8px; border:1px solid var(--line); border-radius:8px; color:inherit; text-align:center; }
.room-activity-stats strong { font-size:20px; }
.room-activity-stats span { color:var(--muted); font-size:12px; line-height:1.25; }

.question-answer-action { margin-top:14px; }
.compact-answer-composer { display:grid; gap:12px; margin-top:10px; padding:14px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.compact-answer-composer textarea { min-height:92px; }
.answer-attachments { padding-top:4px; }
.answer-attachments summary { cursor:pointer; color:var(--brand); font-size:14px; font-weight:650; }
.answer-attachments[open] { display:grid; gap:10px; }
.answer-attachments[open] summary { margin-bottom:8px; }
.question-feedback { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.question-feedback button { min-height:34px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--white); color:var(--muted); }
.question-feedback button[aria-pressed="true"] { color:var(--teal); border-color:var(--teal); background:var(--teal-soft); }
.question-followups { display:grid; gap:8px; margin-top:12px; padding-left:14px; border-left:2px solid var(--line); }
.question-followup { padding:8px 0; }
.question-followup p { margin-top:3px; }
.question-followup-form { display:grid; gap:10px; margin-top:12px; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--canvas); }

.wistudi-build-actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.challenge-submit-heading { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.builder-workflow-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }

.creation-filters { display:grid; grid-template-columns:minmax(240px,2fr) minmax(170px,.75fr); gap:12px; align-items:end; margin:24px 0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--canvas); }
.creation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.creation-card { display:flex; flex-direction:column; min-width:0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
.creation-card-meta { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.creation-card h2 { margin-top:14px; font-size:20px; }
.creation-card > p { margin-top:8px; color:var(--muted); }
.creation-source { display:grid; gap:3px; margin-top:16px; padding-top:13px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.creation-card .actions { margin-top:auto; padding-top:18px; }

body[data-studio-theme="dark"] .public-activity-preview,
body[data-studio-theme="dark"] .creation-card,
body[data-studio-theme="dark"] .question-feedback button { background:var(--white); }

@media(max-width:1050px) {
  .creation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .event-side-stack { position:static; }
}
@media(max-width:680px) {
  .event-card-share { bottom:8px; right:8px; width:36px; height:36px; }
  .public-challenge-card { align-items:flex-start; flex-direction:column; }
  .room-activity-stats { grid-template-columns:1fr; }
  .creation-filters, .creation-grid { grid-template-columns:minmax(0,1fr); }
  .builder-workflow-actions, .wistudi-build-actions { align-items:stretch; flex-direction:column; }
  .builder-workflow-actions .button, .wistudi-build-actions .button { width:100%; }
}


.event-card-hit-area { position:absolute; inset:0; z-index:1; border-radius:inherit; }
.event-card-hit-area:focus-visible { outline:3px solid var(--brand); outline-offset:-4px; }
.event-card-art, .event-card-body { position:relative; }
.event-card-share { z-index:3; }
.event-card-body { pointer-events:none; }


.event-host-profile-main { display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start; }
.event-host-profile-main > img, .person-photo { width:56px; height:56px; border-radius:50%; object-fit:cover; background:var(--canvas); }
.event-host-profile-main h2 { margin-top:3px; }
.event-host-profile-main p { margin-top:6px; }
.host-profile-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; }
.host-rail-bio { margin-top:10px; line-height:1.45; }

.identity-capability-list { display:grid; gap:10px; margin-top:12px; }
.identity-capability-row { display:grid; grid-template-columns:minmax(180px,1fr) minmax(260px,1fr); gap:14px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:7px; background:var(--canvas); }
.identity-capability-row > div:first-child { display:grid; gap:3px; }
.identity-capability-row span { color:var(--muted); font-size:13px; }
.identity-capability-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.identity-capability-actions .text-button { min-height:34px; padding:5px 8px; border:1px solid var(--line); border-radius:5px; }
.identity-capability-actions .text-button:disabled { opacity:.55; cursor:default; }
@media(max-width:680px) {
  .event-host-profile-main { grid-template-columns:1fr; }
  .identity-capability-row { grid-template-columns:1fr; }
  .identity-capability-actions { justify-content:flex-start; }
}


/* Event overview refresh: content column with a persistent, permission-aware right rail. */
.event-overview-page .event-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(318px,360px);
  align-items:start;
  gap:0;
}
.event-overview-content {
  min-width:0;
  padding-right:30px;
  border-right:1px solid var(--line);
}
.event-overview-content > .event-page-heading { margin:0 0 20px; }
/* Published event artwork contains creator-supplied text and must never be cropped.
   Let its intrinsic aspect ratio determine both the image and its enclosing card height. */
.event-overview-content > .event-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
}
.event-overview-content > .event-hero-media > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.event-hero-media::after {
  position:absolute;
  inset:0;
  content:"";
  background:linear-gradient(90deg,rgba(8,11,25,.78),rgba(8,11,25,.24) 56%,transparent 100%);
  pointer-events:none;
}
.event-hero-copy {
  position:absolute;
  z-index:1;
  left:clamp(18px,3vw,34px);
  bottom:clamp(18px,3vw,30px);
  display:grid;
  gap:4px;
  color:#fff;
}
.event-hero-copy span { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.event-hero-copy strong { max-width:400px; font-size:clamp(21px,2.6vw,32px); line-height:1.15; }
.event-facts {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:20px 0 30px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
}
.event-facts > .event-fact {
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-width:0;
  padding:15px 13px;
  border:0;
  border-radius:0;
  background:transparent;
}
.event-fact:nth-child(-n+3) { border-bottom:1px solid var(--line); }
.event-fact:not(:nth-child(3n)) { border-right:1px solid var(--line); }
.event-fact-icon-wrap {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--brand-soft);
}
.event-ui-icon { display:block; width:25px; height:25px; object-fit:contain; }
.event-fact-icon-wrap .avatar { width:25px; height:25px; font-size:11px; }
.event-fact-level {
  display:grid;
  place-items:center;
  min-width:28px;
  height:25px;
  padding:0 4px;
  border:1px solid color-mix(in srgb,var(--brand) 30%,transparent);
  border-radius:7px;
  color:var(--brand);
  font-size:11px;
  font-weight:800;
}
.event-fact-copy { display:grid; min-width:0; gap:3px; }
.event-fact-label { color:var(--muted); font-size:12px; font-weight:650; }
.event-fact-copy strong { margin:0; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.event-fact-copy small { color:var(--muted); font-size:11px; line-height:1.3; }
.event-about-grid { grid-template-columns:minmax(0,1.08fr) minmax(220px,.92fr); gap:22px; align-items:center; margin:0 0 28px; }
.event-about-grid:not(:has(.event-promo)) { padding:18px 0 24px; border-bottom:1px solid var(--line); }
.event-promo { border:1px solid var(--line); border-radius:12px; background:#090b14; }
.event-about { padding:0; }
.event-about h2 { margin:4px 0 9px; }
.event-about p + p { margin-top:12px; }
.event-outcomes { padding:25px 0 30px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.event-outcomes > .muted { margin-top:8px; }
.event-next-step {
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:22px;
  padding:15px 17px;
  border:1px solid color-mix(in srgb,var(--brand) 28%,var(--line));
  border-radius:10px;
  background:var(--brand-soft);
}
.event-next-step-icon { display:grid; place-items:center; width:34px; height:34px; color:var(--brand); }
.event-next-step-icon svg { width:24px; height:24px; }
.event-next-step .eyebrow { margin-bottom:3px; color:var(--muted); }
.event-next-step p { font-weight:650; }
.event-resource-section .section-heading h2 { display:flex; align-items:center; gap:10px; }
.event-resource-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:var(--brand-soft); }
.event-resource-icon .event-ui-icon { width:24px; height:24px; }
.event-side-stack {
  position:sticky;
  top:178px;
  display:grid;
  gap:14px;
  align-self:start;
  min-width:0;
  max-height:calc(100dvh - 194px);
  overflow:auto;
  padding:0 0 4px 26px;
  scrollbar-width:thin;
}
.event-side-stack .registration-panel,
.event-side-stack .creator-management-panel,
.event-side-stack .public-activity-preview {
  position:static;
  min-width:0;
  margin:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  box-shadow:0 8px 22px rgba(14,12,25,.07);
}
.event-side-stack .registration-panel h2,
.event-side-stack .creator-management-panel h2,
.event-side-stack .public-activity-preview h2 { margin:5px 0 9px; }
.event-side-stack .registration-panel .muted,
.event-side-stack .creator-management-panel .muted,
.event-side-stack .public-activity-preview .muted { line-height:1.45; }
.event-side-stack .registration-panel form { margin-top:16px; }
.event-side-stack .registration-panel form label { margin-top:12px; }
.event-side-stack .registration-panel .button.full-width,
.event-side-stack .creator-management-panel .button.full-width { width:100%; margin-top:12px; }
.registration-state.registered-state { display:grid; gap:10px; }
.registered-check {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  color:#fff;
  background:#2eaa82;
}
.registered-check svg { width:22px; height:22px; }
.event-registration-fact { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); font-size:14px; }
.event-registration-fact .event-ui-icon { flex:0 0 25px; }
.registration-countdown { margin:0; }
.event-manager-status {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 4px;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.event-manager-status span { color:var(--muted); }
.creator-management-panel > .button + .button { margin-top:10px; }
.event-preview-note { margin:12px 0; padding:10px 12px; border-radius:8px; background:var(--brand-soft); color:var(--muted); font-size:13px; }
.participant-preview-toolbar {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--brand) 30%,var(--line));
  border-radius:12px;
  background:var(--brand-soft);
}
.participant-preview-toolbar > div:first-child { display:grid; gap:3px; }
.participant-preview-actions { display:flex; flex-wrap:wrap; gap:8px; }
.participant-preview-actions .button { min-height:38px; padding:7px 10px; font-size:13px; }
.event-side-stack .public-activity-preview { display:block; }
.public-activity-preview > .eyebrow { color:var(--muted); }
.public-activity-preview h2 { font-size:20px; }
.event-activity-tabs {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin:14px 0 6px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--canvas);
}
.event-activity-tabs button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:6px 8px;
  border:1px solid transparent;
  border-radius:7px;
  color:var(--muted);
  background:transparent;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}
.event-activity-tabs button[aria-selected="true"] {
  border-color:color-mix(in srgb,var(--brand) 30%,var(--line));
  color:var(--ink);
  background:var(--brand-soft);
}
.event-activity-tabs button span { color:var(--muted); font-weight:700; }
.public-activity-list { display:grid; }
.public-activity-item {
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.activity-avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  color:var(--brand);
  background:var(--brand-soft);
  font-size:11px;
  font-weight:750;
}
.public-activity-copy { min-width:0; }
.public-activity-meta { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:12px; }
.public-activity-meta strong { color:var(--ink); font-size:13px; }
.public-activity-meta time { flex:0 0 auto; }
.public-activity-copy p { margin-top:3px; font-size:13px; line-height:1.4; }
.event-activity-empty { padding:14px 0; }
.activity-conversation-cta { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; }
.activity-conversation-cta svg { width:18px; height:18px; }
.event-activity-footnote { margin-top:10px; }
.event-side-stack .registration-panel .actions { display:grid; gap:9px; margin-top:14px; }
.event-side-stack .registration-panel .actions > * { width:100%; }
.event-side-stack .registration-panel .cancel-registration { width:auto; justify-self:center; margin-top:4px; }
.event-side-stack button:focus-visible,
.event-side-stack a:focus-visible { outline:3px solid color-mix(in srgb,var(--brand) 65%,white); outline-offset:2px; }

@media(max-width:1040px) {
  .event-overview-page .event-layout { grid-template-columns:minmax(0,1fr); }
  .event-overview-content { padding:0 0 25px; border-right:0; border-bottom:1px solid var(--line); }
  .event-side-stack {
    position:static;
    top:auto;
    grid-template-columns:minmax(0,1fr);
    max-height:none;
    overflow:visible;
    padding:24px 0 0;
    width:100%;
    max-width:720px;
    margin:0 auto;
  }
}
@media(max-width:760px) {
  .event-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-fact:not(:nth-child(3n)) { border-right:0; }
  .event-fact:nth-child(2n+1) { border-right:1px solid var(--line); }
  .event-fact:nth-child(n+3) { border-bottom:1px solid var(--line); }
  .event-fact:nth-last-child(-n+2) { border-bottom:0; }
  .event-about-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .event-page-heading { gap:12px; }
  .event-heading-share { min-width:42px; }
}
@media(max-width:520px) {
  .event-overview-content > .event-page-heading { display:block; }
  .event-overview-content .event-heading-share { margin-top:12px; }
  .event-overview-content > .event-hero-media { aspect-ratio:auto; min-height:0; }
  .event-facts { grid-template-columns:minmax(0,1fr); }
  .event-fact:not(:nth-child(3n)),
  .event-fact:nth-child(2n+1) { border-right:0; }
  .event-fact:nth-child(n+1) { border-bottom:1px solid var(--line); }
  .event-fact:last-child { border-bottom:0; }
  .participant-preview-actions { display:grid; grid-template-columns:1fr 1fr; }
  .participant-preview-actions .text-button { grid-column:1 / -1; justify-self:start; }
}

/* Compact room chat and questions composer: pinned across the workspace, aligned to the sidebar. */
.room-main.workspace-main { padding-bottom: 138px; }
.room-composer-dock { position:fixed; z-index:48; right:0; bottom:0; left:256px; padding:8px 18px max(8px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--white); box-shadow:0 -6px 18px #1815230b; }
.room-composer-form { position:relative; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--ink); font:14px/1.35 "gg sans","Noto Sans",Inter,system-ui,sans-serif; letter-spacing:.005em; }
.room-composer-row { display:flex; align-items:center; gap:7px; min-height:42px; width:100%; }
.room-composer-input { flex:1 1 auto; width:20px; min-width:100px; min-height:38px!important; max-height:112px; padding:9px 11px!important; resize:none; overflow-y:auto; border:0!important; border-radius:6px!important; outline:0; background:var(--canvas)!important; color:var(--ink)!important; font:14px/1.4 "gg sans","Noto Sans",Inter,system-ui,sans-serif!important; }
.room-composer-input:focus-visible { outline:2px solid #8660c4!important; outline-offset:1px; }
.room-composer-input::placeholder { color:var(--muted); opacity:.88; }
.chat-context-select { display:block; flex:0 1 164px; min-width:90px; max-width:200px; }
.chat-context-select select { display:block; width:100%; min-height:36px; overflow:hidden; padding:6px 26px 6px 7px; border:0; border-radius:5px; background:transparent; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font:13px/1.3 "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.chat-context-select select:hover { background:var(--canvas); color:var(--ink); }
.composer-reply-context { display:block; flex:0 1 180px; max-width:180px; overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.composer-tool-wrap { position:relative; display:flex; flex:0 0 auto; align-items:center; }
.composer-tool-button { display:inline-grid; place-items:center; width:34px; min-width:34px; min-height:36px; padding:3px; border:0; border-radius:5px; background:transparent; color:var(--muted); font:20px/1 "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.composer-tool-button:hover, .composer-tool-button[aria-expanded="true"] { background:var(--canvas); color:var(--ink); }
.composer-tool-button.gif-tool-button { font-size:11px; font-weight:800; letter-spacing:-.03em; }
.composer-send-button { display:inline-grid; flex:0 0 36px; place-items:center; width:36px; min-height:36px; padding:6px; border:0; border-radius:5px; background:var(--brand); color:#fff; }
.composer-send-button:hover { filter:brightness(.94); }
.composer-send-button svg { width:17px; height:17px; }
.composer-popover { position:absolute; z-index:52; bottom:calc(100% + 11px); left:0; width:min(360px,calc(100vw - 28px)); max-height:min(460px,calc(100dvh - 120px)); overflow:auto; padding:13px; border:1px solid var(--line); border-radius:9px; background:var(--white); color:var(--ink); box-shadow:0 12px 35px #16132025; font:13px/1.4 "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.emoji-popover, .gif-popover { right:0; left:auto; }
.emoji-popover { width:min(360px,calc(100vw - 28px)); padding:7px; overflow:hidden; }
.emoji-popover emoji-picker { display:block; width:100%; height:360px; --num-columns:8; --emoji-size:1.55rem; --background:var(--white); --border-color:transparent; }
.emoji-fallback { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:2px; }
.emoji-fallback button { min-width:0; min-height:38px; padding:2px; border:0; background:transparent; font-size:21px; }
.emoji-fallback button:hover { background:var(--canvas); }
.attachment-popover { display:grid; gap:8px; }
.chat-kind-select { display:grid; gap:4px; color:var(--muted); font-size:12px; font-weight:600; }
.chat-kind-select select, .composer-link-field input { width:100%; min-height:35px; padding:6px 9px; border:1px solid var(--line); background:var(--canvas); color:var(--ink); font:inherit; }
.composer-link-field { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:600; }
.composer-popover-action { justify-self:end; min-height:31px; padding:5px 11px; border:0; border-radius:5px; background:var(--brand); color:#fff; font:inherit; font-weight:650; }
.composer-popover-divider { border-top:1px solid var(--line); margin:3px 0; }
.composer-popover-label { color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.composer-resource-list { display:grid; gap:3px; max-height:146px; overflow:auto; }
.composer-resource-option { display:flex; align-items:center; gap:7px; min-height:32px; padding:5px 4px; border:0; border-radius:4px; background:transparent; color:var(--ink); text-align:left; font:inherit; }
.composer-resource-option:hover { background:var(--canvas); }
.composer-resource-option svg { width:15px; height:15px; flex-basis:15px; color:var(--brand); }
.composer-resource-option span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.composer-popover-note { color:var(--muted); font-size:12px; }
.composer-upload-unavailable { display:grid; justify-items:start; gap:2px; min-height:38px; padding:6px 4px; border:0; border-top:1px solid var(--line); background:transparent; color:var(--muted); text-align:left; font:inherit; }
.composer-upload-unavailable small { font-size:11px; }
.question-reference-chips, .chat-related-chips { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 5px; }
.question-reference-chips>span, .chat-related-chips>span { display:inline-flex; align-items:center; gap:5px; max-width:240px; padding:3px 7px; border-radius:4px; background:var(--brand-soft); color:var(--brand); font-size:11px; }
.question-reference-chips button, .chat-related-chips button { min-width:18px; min-height:18px; padding:0; border:0; background:transparent; color:inherit; font:inherit; }
.chat-related-suggestion, .chat-mention-suggestion { margin:5px 0; padding:6px 8px; font-size:12px; }
.room-composer-error { margin:2px 0 0; font-size:12px; }
.chat-message, .question-card { font-family:"gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.chat-message .person-line strong { font-size:14px; }
.chat-message .person-line .small { font-size:12px; }
.chat-message-title { margin-top:8px; font-size:16px; }
.chat-message-body { margin-top:7px; font-size:14px; line-height:1.5; }
.chat-message-time, .question-time { margin-left:4px; color:var(--muted); font-size:11px; white-space:nowrap; }
.chat-message .person-line>.chat-message-time { margin-left:auto; }
.chat-gif-preview { display:block; width:fit-content; max-width:min(360px,100%); margin:9px 0 0 45px; }
.chat-gif-preview img { display:block; max-width:100%; max-height:250px; border-radius:5px; object-fit:contain; }
.embedded-video { width:min(100%,540px); }
.timeline-day-divider { display:flex; align-items:center; gap:11px; margin:22px 0 2px; color:var(--muted); font:11px/1 "gg sans","Noto Sans",Inter,system-ui,sans-serif; font-weight:700; }
.timeline-day-divider::before, .timeline-day-divider::after { flex:1; content:""; border-top:1px solid var(--line); }
.question-card .person-line { flex-wrap:wrap; }
.question-card .question-time { margin-left:auto; }
.gif-popover { width:min(390px,calc(100vw - 28px)); padding:10px; }
.gif-search-field { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:600; }
.gif-search-field input { width:100%; min-height:35px; padding:6px 9px; }
.gif-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin-top:8px; }
.gif-result { min-width:0; min-height:76px; padding:0; overflow:hidden; border:0; border-radius:5px; background:var(--canvas); }
.gif-result img { display:block; width:100%; height:76px; object-fit:cover; }
.gif-result:hover { outline:2px solid var(--brand); }
.gif-result-title { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); }
.giphy-attribution { display:block; margin-top:7px; color:var(--muted); text-align:right; font-size:10px; }
body[data-studio-theme="dark"] .room-composer-dock { background:var(--white); box-shadow:0 -6px 18px #0007; }
@media(max-width:1150px) { .room-composer-dock { left:196px; } }
@media(max-width:800px) { .room-composer-dock { left:0; bottom:calc(64px + env(safe-area-inset-bottom)); padding-inline:12px; } .room-main.workspace-main { padding-bottom:calc(168px + env(safe-area-inset-bottom)); } }
@media(max-width:640px) {
  .room-composer-dock { bottom:calc(60px + env(safe-area-inset-bottom)); padding:6px 8px max(6px,env(safe-area-inset-bottom)); }
  .room-main.workspace-main { padding:22px 16px calc(166px + env(safe-area-inset-bottom)); }
  .room-composer-row { gap:4px; }
  .chat-context-select { flex-basis:100px; max-width:108px; }
  .chat-context-select select { padding:6px 18px 6px 4px; font-size:11px; }
  .question-context-select { flex-basis:82px; max-width:90px; }
  .room-composer-input { min-width:64px; padding-inline:7px!important; font-size:13px!important; }
  .composer-tool-button { width:30px; min-width:30px; }
  .composer-send-button { width:32px; flex-basis:32px; }
  .composer-reply-context { flex-basis:90px; max-width:90px; font-size:11px; }
  .chat-gif-preview { margin-left:0; }
}

/* Keep room tools, message context and active references in one compact dock row. */
.chat-related-chips, .question-reference-chips { flex:0 1 auto; flex-wrap:nowrap; gap:4px; min-width:0; max-width:clamp(70px,18vw,170px); margin:0; overflow:hidden; }
.chat-related-chips:empty { display:none; }
.chat-related-chips > span, .question-reference-chips > span { flex:0 1 auto; min-width:0; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.question-reference-chips[hidden] { display:none!important; }
@media(max-width:520px) { .chat-related-chips, .question-reference-chips { max-width:64px; } }
.thread-card, .question-card { padding-top:15px; padding-bottom:15px; }
.chat-message-title { margin-top:9px; font-size:18px; line-height:1.35; }
.chat-message-body, .question-card p { font-size:14px; line-height:1.5; }


/* Wistudi event chat: compact timeline, permission-aware conversation tools and branded previews. */
.chat-room-view { min-width:0; }
.chat-room-status { display:flex; align-items:center; gap:16px; min-height:40px; margin:0 0 12px; padding:6px 0; border-bottom:1px solid var(--line); color:var(--muted); font:12px/1.3 "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.chat-room-status > span:first-child { display:inline-flex; align-items:center; gap:7px; color:var(--teal); font-weight:650; }
.chat-room-status > span:first-child.is-closed { color:var(--muted); }
.chat-room-status i { width:7px; height:7px; border-radius:50%; background:#2e9a76; }
.chat-room-status .is-closed i { background:#a4a0ad; }
.chat-filter-select { margin-left:auto; }
.chat-filter-select select { min-height:30px; padding:4px 25px 4px 8px; border:1px solid var(--line); border-radius:5px; background:var(--white); color:var(--ink); font:12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.chat-room-view .pinned-challenge-cards { margin:10px 0 16px; }
.pinned-thread-section { margin:0 0 8px; padding:2px 12px 8px; border-left:2px solid #8b5cf6; background:color-mix(in srgb,var(--brand-soft) 45%,transparent); }
.pinned-thread-section > .eyebrow { padding:10px 0 0; color:var(--brand); font-size:10px; }
.pinned-thread-section .thread-card { padding-top:10px; padding-bottom:12px; }
.thread-card { position:relative; }
.thread-card.is-unread { border-left:2px solid var(--brand); padding-left:10px; }
.thread-card-tools { position:relative; z-index:2; display:flex; align-items:center; justify-content:flex-end; gap:8px; min-height:22px; margin-bottom:-22px; }
.thread-state-badge { display:inline-flex; align-items:center; min-height:18px; color:var(--muted); font:10px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.thread-state-badge.is-pinned { color:var(--brand); }
.thread-state-badge.is-unread { color:#2362c7; font-weight:700; }
.thread-pin-action, .thread-more-menu > summary { display:inline-flex; align-items:center; justify-content:center; min-height:25px; padding:2px 6px; border:0; border-radius:4px; background:transparent; color:var(--muted); font:12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; cursor:pointer; list-style:none; }
.thread-more-menu > summary::-webkit-details-marker { display:none; }
.thread-more-menu > summary { min-width:28px; font-size:15px; letter-spacing:1px; }
.thread-pin-action:hover, .thread-more-menu > summary:hover, .thread-more-menu[open] > summary { background:var(--brand-soft); color:var(--brand); }
.thread-more-menu { position:relative; }
.thread-more-popover { position:absolute; z-index:54; top:calc(100% + 4px); right:0; display:grid; min-width:170px; padding:5px; border:1px solid var(--line); border-radius:7px; background:var(--white); box-shadow:0 10px 28px #16132025; }
.thread-more-popover button { min-height:31px; padding:6px 9px; border:0; border-radius:4px; background:transparent; color:var(--ink); text-align:left; font:12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; cursor:pointer; }
.thread-more-popover button:hover { background:var(--canvas); }
.thread-more-popover .thread-delete-action { color:#bd3344; }
.thread-card-tools .thread-pin-action, .thread-card-tools .thread-more-menu { opacity:0; pointer-events:none; transition:opacity .12s ease; }
.thread-card:hover .thread-card-tools .thread-pin-action, .thread-card:hover .thread-card-tools .thread-more-menu,
.thread-card:focus-within .thread-card-tools .thread-pin-action, .thread-card:focus-within .thread-card-tools .thread-more-menu,
.thread-card.is-pinned .thread-card-tools .thread-pin-action { opacity:1; pointer-events:auto; }
.thread-footer { display:flex; align-items:center; gap:15px; }
.thread-footer .heart-button, .thread-footer .text-link { min-height:25px; padding:2px 0; border:0; border-radius:0; background:transparent; color:var(--muted); font:12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.thread-footer .heart-button { display:inline-flex; align-items:center; gap:5px; }
.thread-footer .heart-button svg { width:15px; height:15px; }
.thread-footer .heart-button.is-liked { color:#c93f68; }
.thread-footer .text-link:hover, .thread-footer .heart-button:hover { color:var(--brand); }
.thread-card.is-pinned { border-top-color:color-mix(in srgb,var(--brand) 38%,var(--line)); }
.wistudi-content-preview { display:block; width:min(100%,360px); margin:11px 0 0 45px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); }
.wistudi-preview-thumbnail { display:grid; place-items:center; width:100%; aspect-ratio:16/9; overflow:hidden; background:linear-gradient(135deg,#ede9fe,#dbeafe 55%,#dcfce7); }
.wistudi-content-preview-xp-video .wistudi-preview-thumbnail { background:linear-gradient(135deg,#ede9fe,#ddd6fe); }
.wistudi-content-preview-flow .wistudi-preview-thumbnail { background:linear-gradient(135deg,#dbeafe,#dcfce7); }
.wistudi-preview-thumbnail img { width:54px; height:54px; object-fit:contain; }
.wistudi-preview-copy { display:grid; gap:5px; padding:9px 11px 10px; }
.wistudi-preview-label { display:flex; align-items:center; gap:6px; color:var(--muted); font:10px "gg sans","Noto Sans",Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:.04em; }
.wistudi-preview-label img { width:17px; height:17px; object-fit:contain; }
.wistudi-preview-copy > strong { font:650 15px/1.3 "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.wistudi-preview-copy > small { overflow:hidden; color:var(--muted); font:11px/1.3 "gg sans","Noto Sans",Inter,system-ui,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.wistudi-preview-open { display:inline-flex; align-items:center; gap:5px; width:fit-content; margin-top:2px; color:var(--brand); font:650 12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; text-decoration:none; }
.wistudi-preview-open svg { width:14px; height:14px; }
.composer-feature-button, .composer-resource-button { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; gap:5px; min-height:36px; padding:3px 6px; border:0; border-radius:4px; background:transparent; color:var(--muted); font:12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; white-space:nowrap; cursor:pointer; }
.composer-feature-button:hover, .composer-resource-button:hover, .composer-resource-button[aria-expanded="true"] { background:var(--canvas); color:var(--ink); }
.composer-feature-button img, .composer-resource-button img { width:21px; height:21px; object-fit:contain; }
.composer-link-preview { display:grid; gap:4px; max-height:245px; margin:6px 0 2px 0; overflow:auto; }
.composer-link-preview[hidden] { display:none; }
.composer-link-preview-label { color:var(--muted); font:10px "gg sans","Noto Sans",Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:.04em; }
.composer-link-preview .wistudi-content-preview { width:min(100%,300px); margin:0; }
.composer-link-preview .wistudi-preview-thumbnail { aspect-ratio:16/9; }
.chat-kind-inline { flex:0 0 auto; }
.chat-kind-inline select { max-width:105px; min-height:32px; padding:4px 20px 4px 5px; border:0; border-radius:4px; background:transparent; color:var(--muted); font:11px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.chat-kind-inline select:hover { background:var(--canvas); color:var(--ink); }
.resource-popover { width:min(310px,calc(100vw - 26px)); }
.wistudi-feature-dialog-content { display:grid; gap:16px; }
.wistudi-feature-intro { display:grid; grid-template-columns:56px 1fr; align-items:start; gap:14px; }
.wistudi-feature-intro > img { width:48px; height:48px; object-fit:contain; }
.wistudi-feature-intro h3 { margin:4px 0; font:650 22px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.wistudi-feature-intro p { margin:5px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.wistudi-feature-link-field { display:grid; gap:6px; color:var(--ink); font:600 12px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.wistudi-feature-link-field input { width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--line); border-radius:5px; background:var(--canvas); color:var(--ink); font:13px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.participant-count-card > strong { display:block; margin-top:8px; font:650 22px "gg sans","Noto Sans",Inter,system-ui,sans-serif; }
.participant-count-card > span { display:block; margin-top:2px; }
@media(max-width:800px) {
  .thread-card-tools .thread-pin-action, .thread-card-tools .thread-more-menu { opacity:1; pointer-events:auto; }
  .wistudi-content-preview { margin-left:0; }
}
@media(max-width:640px) {
  .chat-room-status { gap:9px; }
  .chat-room-status > span:nth-child(2) { white-space:nowrap; }
  .composer-feature-button, .composer-resource-button { width:31px; min-width:31px; padding:2px; }
  .composer-feature-button span, .composer-resource-button span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .composer-feature-button img, .composer-resource-button img { width:22px; height:22px; }
  .chat-context-select, .chat-kind-inline { display:none; }
  .room-composer-row { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .room-composer-row::-webkit-scrollbar { display:none; }
  .room-composer-input { flex:1 1 auto; min-width:74px; }
  .thread-card-tools { margin-bottom:-18px; }
  .thread-footer { gap:12px; }
}

.chat-room-status { flex-wrap:nowrap; }

.composer-resource-button { width:auto; min-width:78px; }
@media(max-width:640px) { .composer-resource-button { width:31px; min-width:31px; } }

/* Event Chat composer: larger, single-row toolbar matching the Wistudi reference. */
.room-composer-dock:has(.room-composer-form[data-room-composer="chat"]) {
  padding: 8px 18px max(8px, env(safe-area-inset-bottom));
  border-top-color: transparent;
  background: transparent;
  box-shadow: none;
}
.room-composer-form[data-room-composer="chat"] {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, #7040c4 25%, var(--line));
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(112, 64, 196, .11);
}
.room-composer-form[data-room-composer="chat"] .room-composer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  width: 100%;
  flex-wrap: nowrap;
  overflow: visible;
}
.room-composer-form[data-room-composer="chat"] .composer-feature-button,
.room-composer-form[data-room-composer="chat"] .composer-resource-button {
  display: grid;
  flex: 0 0 108px;
  grid-template-rows: 28px 15px 12px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  width: 108px;
  min-width: 0;
  min-height: 68px;
  padding: 4px 6px;
  border: 0;
  border-radius: 9px;
  color: #4c1d95;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease;
}
.room-composer-form[data-room-composer="chat"] .composer-feature-button[data-feature="xp_video"] { background: #f0eafd; color: #5421b5; }
.room-composer-form[data-room-composer="chat"] .composer-feature-button[data-feature="flow"] { background: #e5f1ff; color: #1454c6; }
.room-composer-form[data-room-composer="chat"] .composer-resource-button[data-feature="resources"] { background: #e8f5ed; color: #167344; }
.room-composer-form[data-room-composer="chat"] .composer-feature-button:hover,
.room-composer-form[data-room-composer="chat"] .composer-resource-button:hover,
.room-composer-form[data-room-composer="chat"] .composer-resource-button[aria-expanded="true"] {
  filter: saturate(1.12) brightness(.98);
  transform: translateY(-1px);
}
.room-composer-form[data-room-composer="chat"] .composer-feature-button img,
.room-composer-form[data-room-composer="chat"] .composer-resource-button img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.room-composer-form[data-room-composer="chat"] .composer-feature-title {
  display: block;
  font: 650 11px/1.15 "gg sans", "Noto Sans", Inter, system-ui, sans-serif;
}
.room-composer-form[data-room-composer="chat"] .composer-feature-subtitle {
  display: block;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font: 10px/1.1 "gg sans", "Noto Sans", Inter, system-ui, sans-serif;
}
.room-composer-form[data-room-composer="chat"] .composer-toolbar-divider {
  display: block;
  flex: 0 0 1px;
  height: 44px;
  margin: 0 9px;
  background: var(--line);
}
.room-composer-form[data-room-composer="chat"] .room-composer-input {
  flex: 1 1 auto;
  min-width: 100px;
  min-height: 44px !important;
  max-height: 96px;
  padding: 10px 15px !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: var(--canvas) !important;
  font: 15px/1.4 "gg sans", "Noto Sans", Inter, system-ui, sans-serif !important;
}
.room-composer-form[data-room-composer="chat"] .room-composer-input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 56%, transparent) !important;
  outline-offset: 1px;
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button {
  width: 36px;
  min-width: 36px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button:hover,
.room-composer-form[data-room-composer="chat"] .composer-tool-button[aria-expanded="true"] {
  background: transparent;
  color: var(--brand);
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button svg { width: 22px; height: 22px; }
.room-composer-form[data-room-composer="chat"] .composer-tool-button.gif-tool-button {
  font: 700 14px/1 "gg sans", "Noto Sans", Inter, system-ui, sans-serif;
  letter-spacing: -.02em;
}
.room-composer-form[data-room-composer="chat"] .composer-send-button {
  flex: 0 0 60px;
  width: 60px;
  min-height: 44px;
  padding: 9px;
  border-radius: 8px;
  background: #6528d8;
}
.room-composer-form[data-room-composer="chat"] .composer-send-button svg { width: 21px; height: 21px; }
.room-composer-form[data-room-composer="chat"] .chat-related-chips {
  flex: 0 1 auto;
  max-width: clamp(60px, 15vw, 150px);
}
body[data-studio-theme="dark"] .room-composer-form[data-room-composer="chat"] {
  border-color: #594477;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
}
body[data-studio-theme="dark"] .room-composer-form[data-room-composer="chat"] .composer-feature-button[data-feature="xp_video"] { background: #2d2440; color: #d2baff; }
body[data-studio-theme="dark"] .room-composer-form[data-room-composer="chat"] .composer-feature-button[data-feature="flow"] { background: #202d42; color: #a8caff; }
body[data-studio-theme="dark"] .room-composer-form[data-room-composer="chat"] .composer-resource-button[data-feature="resources"] { background: #20352c; color: #a8e3bf; }

@media (max-width: 640px) {
  .room-composer-dock:has(.room-composer-form[data-room-composer="chat"]) {
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  }
  .room-composer-form[data-room-composer="chat"] { padding: 6px; border-radius: 12px; }
  .room-composer-form[data-room-composer="chat"] .room-composer-row { gap: 3px; min-height: 58px; }
  .room-composer-form[data-room-composer="chat"] .composer-feature-button,
  .room-composer-form[data-room-composer="chat"] .composer-resource-button {
    flex-basis: 56px;
    width: 56px;
    min-height: 56px;
    grid-template-rows: 25px 14px;
    padding: 3px 2px;
  }
  .room-composer-form[data-room-composer="chat"] .composer-feature-button img,
  .room-composer-form[data-room-composer="chat"] .composer-resource-button img { width: 23px; height: 23px; }
  .room-composer-form[data-room-composer="chat"] .composer-feature-title { font-size: 9.5px; }
  .room-composer-form[data-room-composer="chat"] .composer-feature-subtitle { display: none; }
  .room-composer-form[data-room-composer="chat"] .composer-toolbar-divider { height: 34px; margin: 0; }
  .room-composer-form[data-room-composer="chat"] .room-composer-input { min-width: 44px; padding-inline: 6px !important; font-size: 13px !important; }
  .room-composer-form[data-room-composer="chat"] .composer-tool-button { width: 26px; min-width: 26px; }
  .room-composer-form[data-room-composer="chat"] .composer-send-button { flex-basis: 38px; width: 38px; min-height: 40px; padding: 7px; }
  .room-composer-form[data-room-composer="chat"] .chat-related-chips { max-width: 64px; }
}
@media (max-width: 370px) {
  .room-composer-form[data-room-composer="chat"] .composer-feature-button,
  .room-composer-form[data-room-composer="chat"] .composer-resource-button { flex-basis: 43px; width: 43px; grid-template-rows: 21px 12px; min-height: 50px; }
  .room-composer-form[data-room-composer="chat"] .composer-feature-button img,
  .room-composer-form[data-room-composer="chat"] .composer-resource-button img { width: 19px; height: 19px; }
  .room-composer-form[data-room-composer="chat"] .composer-feature-title { font-size: 8.5px; }
  .room-composer-form[data-room-composer="chat"] .room-composer-row { gap: 2px; }
  .room-composer-form[data-room-composer="chat"] .composer-toolbar-divider { height: 30px; }
  .room-composer-form[data-room-composer="chat"] .composer-tool-button { width: 22px; min-width: 22px; }
  .room-composer-form[data-room-composer="chat"] .composer-send-button { flex-basis: 34px; width: 34px; min-height: 36px; padding: 6px; }
  .room-composer-form[data-room-composer="chat"] .room-composer-input { min-width: 38px; padding-inline: 5px !important; font-size: 12px !important; }
}

/* Keep the shared app header usable on phones while retaining identity and theme controls. */
@media(max-width:640px) {
  .studio-header { gap: 8px; padding-inline: 12px; }
  .studio-wordmark { display: none; }
  .header-actions { min-width: 0; gap: 6px; }
  [data-identity-mount] { min-width: 0; gap: 5px; }
  .header-actions .identity-signin { min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .header-actions .identity-team { min-height: 36px; padding: 6px 7px; gap: 0; font-size: 12px; }
  .identity-team .identity-avatar { display: none; }
  .identity-profile { width: 42px; min-width: 42px; min-height: 36px; padding: 5px; justify-content: center; gap: 0; }
  .identity-profile-name { display: none; }

}


/* Shared visual system: one quiet hierarchy, purposeful surfaces and GG Sans throughout. */
:root {
  --font-sans: 'GG Sans', Inter, Arial, sans-serif;
  --ink: #23212a;
  --muted: #706c79;
  --line: #e8e6ec;
  --canvas: #fbfafc;
  --white: #ffffff;
  --brand: #6841b5;
  --brand-deep: #58349f;
  --brand-soft: #f3effb;
  --teal-soft: #f0f8f5;
  --surface-raised: 0 12px 32px rgba(33, 26, 48, .08);
  --surface-float: 0 18px 48px rgba(33, 26, 48, .12);
  --ease-ui: 160ms cubic-bezier(.2, .75, .3, 1);
}
body {
  font: 16px/1.58 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--white);
}
h1, h2, h3, .sidebar-studio-name, .event-art-placeholder strong, .event-management-toolbar strong {
  font-family: var(--font-sans);
}
h1 { font-size: clamp(2rem, 2.5vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2 { line-height: 1.2; letter-spacing: -.022em; font-weight: 600; }
h3 { line-height: 1.28; letter-spacing: -.014em; font-weight: 600; }
button, input, textarea, select { font-family: var(--font-sans); }
.eyebrow, .sidebar-section-label { letter-spacing: .055em; font-weight: 600; }
.lead { font-size: 1.1rem; line-height: 1.62; }
.tag {
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.tag.teal { color: var(--teal); background: transparent; }
.button, .icon-button {
  min-height: 42px;
  border-color: #dfdbe5;
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: 0 1px 1px rgba(27, 22, 39, .02);
  transition: transform var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui), color var(--ease-ui);
}
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #cec8d9;
  box-shadow: 0 7px 16px rgba(39, 31, 57, .09);
}
.button.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, #744ac7 0%, var(--brand-deep) 100%);
  box-shadow: 0 8px 18px rgba(104, 65, 181, .2);
}
.button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #6841b5 0%, #4e2b91 100%);
  box-shadow: 0 11px 24px rgba(104, 65, 181, .27);
}
.text-button, .text-link { font-weight: 600; }
input, select, textarea {
  border-color: #dcd8e2;
  border-radius: 10px;
  background: #fff;
  transition: border-color var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui);
}
input:hover, select:hover, textarea:hover { border-color: #c9c3d2; }
input:focus, select:focus, textarea:focus {
  border-color: #8a68c9;
  box-shadow: 0 0 0 4px rgba(104, 65, 181, .12);
  outline: 0;
}
.studio-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.app-sidebar, .workspace-sidebar { background: #faf9fb; }
.global-navigation a, .event-workspace-nav a {
  border-radius: 9px;
  transition: color var(--ease-ui), background var(--ease-ui), transform var(--ease-ui);
}
.global-navigation a:hover, .event-workspace-nav a:hover {
  background: #fff;
  transform: translateX(2px);
}
.global-navigation a[aria-current="page"], .event-workspace-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}
.sidebar-create-event {
  border: 0;
  border-radius: 10px;
  background: var(--brand-soft);
}
.sidebar-create-event:hover, .sidebar-create-event.is-current {
  background: #e9e1f7;
  box-shadow: none;
}
.home-continue, .studio-journey, .registration-panel, .event-management-toolbar {
  border-color: var(--line);
  border-radius: 14px;
}
.home-continue {
  background: linear-gradient(135deg, #fbf9fe 0%, #f5f0fc 100%);
  box-shadow: 0 8px 22px rgba(60, 43, 85, .045);
}
.studio-intro { border-bottom: 0; padding-bottom: 22px; }
.studio-journey {
  border: 0;
  background: #faf8fd;
  box-shadow: inset 0 0 0 1px rgba(104, 65, 181, .09);
}
.event-grid { gap: 22px; }
.event-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(38, 29, 53, .07);
  transition: transform var(--ease-ui), box-shadow var(--ease-ui);
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--surface-raised);
}
.event-card-art { background: linear-gradient(135deg, #2d1b58, #7040c4 58%, #4166cd); }
.event-status {
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(31, 23, 48, .1);
  font-weight: 600;
}
.event-card-body { padding: 20px 21px 21px; }
.event-card-body > p { color: var(--muted); }
.event-card-meta { margin-top: 16px; }
.event-card-share {
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: transform var(--ease-ui), background var(--ease-ui);
}
.event-card-share:hover { transform: scale(1.04); }
.empty-state {
  background: transparent;
  border: 1px dashed #dcd7e5;
  border-radius: 14px;
  padding: 42px 24px;
}
.notice, .preview-state-note {
  background: transparent;
  border-left-color: #a387d6;
}
.builder-warning, .resource-editor-intro, .integration-card, .permission-preview {
  border-radius: 12px;
}
.builder-section {
  padding-top: 30px;
  padding-bottom: 30px;
}
.kit-editor-row, .share-preview, .chat-composer {
  border-color: #e4e0e9;
  border-radius: 14px;
}
.kit-editor-row { box-shadow: 0 3px 12px rgba(38, 29, 53, .035); }
.chat-composer {
  box-shadow: 0 -6px 24px rgba(36, 28, 52, .07);
}
.chat-composer:focus-within, .chat-composer.is-dragging {
  border-color: #9472cd;
  box-shadow: 0 0 0 4px rgba(104, 65, 181, .1), 0 -6px 24px rgba(36, 28, 52, .07);
}
.dialog { border-radius: 16px; box-shadow: var(--surface-float); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .event-grid { gap: 13px; }
  .event-card { border-radius: 12px; }
  .button, .icon-button { border-radius: 9px; }
}


/* Public-event refinement: a clearer path from discovery to registration. */
.event-grid {
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 24px;
}
.event-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(92, 73, 123, .08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 3px 16px rgba(38, 29, 53, .065);
}
.event-card:hover,
.event-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(104, 65, 181, .2);
  box-shadow: 0 15px 36px rgba(38, 29, 53, .13);
}
.event-card:focus-within {
  outline: 3px solid rgba(104, 65, 181, .22);
  outline-offset: 2px;
}
.event-card-art {
  aspect-ratio: 1.62;
}
.event-card-art::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(18, 12, 30, .2), transparent);
}
.event-card-art img {
  transition: transform 360ms cubic-bezier(.2, .75, .3, 1);
}
.event-card:hover .event-card-art img,
.event-card:focus-within .event-card-art img {
  transform: scale(1.035);
}
.event-status,
.event-card-share {
  z-index: 2;
}
.event-status {
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(53, 37, 76, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #4a2e7b;
  box-shadow: 0 5px 14px rgba(27, 18, 43, .12);
  font-size: .71rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 21px;
}
.event-card-context {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-card-context span {
  color: var(--muted);
}
.event-card-body h3 {
  margin: 9px 0 0;
  font-size: 1.12rem;
  line-height: 1.28;
}
.event-card-summary {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.event-card-meta {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(90, 75, 112, .1);
  font-size: .78rem;
}
.event-card-meta span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}
.event-card-hit-area:focus-visible {
  outline: 3px solid rgba(104, 65, 181, .5);
  outline-offset: -5px;
}
.event-layout {
  grid-template-columns: minmax(0, 1fr) minmax(336px, 390px);
  grid-template-areas:
    "intro rail"
    "details rail";
  gap: 30px clamp(42px, 5vw, 84px);
}
.event-overview-content {
  grid-area: intro;
  min-width: 0;
}
.event-overview-details {
  grid-area: details;
  min-width: 0;
}
.event-side-stack {
  display: grid;
  grid-area: rail;
  align-self: start;
  gap: 20px;
  min-width: 0;
}
.event-page-heading {
  gap: 24px;
  padding-bottom: 0;
  border: 0;
}
.event-page-heading .lead {
  max-width: 740px;
  color: var(--muted);
}
.event-hero-media {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: 0 12px 32px rgba(33, 26, 48, .08);
}
.event-hero-media img {
  display: block;
  width: 100%;
  max-height: 490px;
  object-fit: cover;
}
.event-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}
.event-fact {
  display: flex !important;
  min-width: 0;
  gap: 12px;
  padding: 13px 14px 13px 0;
}
.event-fact:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.event-fact-icon-wrap {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
}
.event-fact-icon-wrap .event-ui-icon,
.event-fact-icon-wrap .avatar {
  width: 22px;
  height: 22px;
}
.event-fact-copy {
  min-width: 0;
}
.event-fact-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.event-fact-copy strong {
  display: block;
  font-size: .94rem;
  line-height: 1.35;
}
.event-fact-copy small {
  color: var(--muted);
  font-size: .78rem;
}
.registration-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(92, 73, 123, .12);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(38, 29, 53, .1);
}
.registration-panel > :not(.registration-event-summary) {
  margin-right: 26px;
  margin-left: 26px;
}
.registration-panel > .registration-event-summary {
  margin: 0 0 23px;
}
.registration-event-summary {
  display: grid;
  gap: 8px;
  padding: 21px 26px 19px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fbf9ff, #f5f0fc);
}
.registration-event-status {
  color: var(--brand);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.registration-event-summary strong {
  font-size: 1rem;
  line-height: 1.3;
}
.registration-event-summary > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.registration-event-summary .event-ui-icon {
  width: 17px;
  height: 17px;
}
.registration-panel > .eyebrow {
  margin-top: 0;
}
.registration-panel h2 {
  margin-top: 7px;
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.registration-panel .registration-state {
  padding-bottom: 26px;
}
.registration-panel #registration-form,
.registration-panel .stack-form {
  margin-top: 19px;
  margin-bottom: 26px;
}
.registration-panel label {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
}
.registration-panel input {
  margin-top: 6px;
}
.registration-panel .text-button:last-child,
.registration-panel .cancel-registration {
  margin-bottom: 25px;
}
.public-activity-preview {
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(38, 29, 53, .05);
}
.event-about-grid {
  margin-top: 34px;
}
.event-outcomes,
.event-host-profile,
.event-resource-section,
.public-build-challenges {
  margin-top: 38px;
}
@media (max-width: 860px) {
  .event-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "rail"
      "details";
    gap: 25px;
  }
  .event-side-stack {
    gap: 16px;
  }
  .registration-panel {
    position: static;
  }
}
@media (max-width: 560px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .event-card {
    border-radius: 15px;
  }
  .event-card-art {
    aspect-ratio: 1.72;
  }
  .event-card-body {
    padding: 18px;
  }
  .event-page-heading {
    display: block;
  }
  .event-heading-share {
    margin-top: 16px;
  }
  .event-hero-media {
    margin-top: 21px;
    border-radius: 14px;
  }
  .event-facts {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }
  .event-fact,
  .event-fact:nth-child(even) {
    padding: 12px 0;
    border-left: 0;
  }
  .event-fact + .event-fact {
    border-top: 1px solid var(--line);
  }
  .registration-panel > :not(.registration-event-summary) {
    margin-right: 20px;
    margin-left: 20px;
  }
  .registration-event-summary {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* The visual-system rules are intentionally light-first; this final layer owns every dark surface. */
body[data-studio-theme="dark"] {
  --ink: #f5f2fa;
  --muted: #c3bdcf;
  --line: #3b3445;
  --canvas: #1b1821;
  --white: #141219;
  --brand: #c5a9f2;
  --brand-deep: #a381dc;
  --brand-soft: #342946;
  --teal: #9ad9c2;
  --teal-soft: #1d342c;
  --surface-raised: 0 16px 36px rgba(0, 0, 0, .33);
  --surface-float: 0 20px 48px rgba(0, 0, 0, .42);
  background: #100e14;
  color: var(--ink);
}
body[data-studio-theme="dark"] .studio-header,
body[data-studio-theme="dark"] .room-topbar {
  background: rgba(20, 18, 25, .9);
  border-color: var(--line);
}
body[data-studio-theme="dark"] .app-sidebar,
body[data-studio-theme="dark"] .workspace-sidebar,
body[data-studio-theme="dark"] .global-mobile-navigation,
body[data-studio-theme="dark"] .mobile-event-navigation,
body[data-studio-theme="dark"] .context-rail {
  background: #17141c;
  border-color: var(--line);
}
body[data-studio-theme="dark"] .global-navigation a:hover,
body[data-studio-theme="dark"] .event-workspace-nav a:hover {
  background: #24202a;
}
body[data-studio-theme="dark"] .global-navigation a[aria-current="page"],
body[data-studio-theme="dark"] .event-workspace-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: #dfd0fb;
}
body[data-studio-theme="dark"] .sidebar-create-event {
  background: var(--brand-soft);
  color: #dfd0fb;
}
body[data-studio-theme="dark"] .sidebar-create-event:hover,
body[data-studio-theme="dark"] .sidebar-create-event.is-current {
  background: #423353;
}
body[data-studio-theme="dark"] .event-card,
body[data-studio-theme="dark"] .registration-panel,
body[data-studio-theme="dark"] .studio-journey,
body[data-studio-theme="dark"] .home-continue,
body[data-studio-theme="dark"] .public-activity-preview,
body[data-studio-theme="dark"] .preview-card,
body[data-studio-theme="dark"] .event-management-toolbar,
body[data-studio-theme="dark"] .empty-state,
body[data-studio-theme="dark"] .builder-warning,
body[data-studio-theme="dark"] .resource-editor-intro,
body[data-studio-theme="dark"] .integration-card,
body[data-studio-theme="dark"] .permission-preview,
body[data-studio-theme="dark"] .kit-editor-row,
body[data-studio-theme="dark"] .chat-composer,
body[data-studio-theme="dark"] .builder-published-edit-notice,
body[data-studio-theme="dark"] .builder-update-reason,
body[data-studio-theme="dark"] .share-preview {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
body[data-studio-theme="dark"] .home-continue,
body[data-studio-theme="dark"] .studio-journey,
body[data-studio-theme="dark"] .registration-event-summary {
  background: linear-gradient(135deg, #201b29, #18141f);
}
body[data-studio-theme="dark"] .event-card {
  border-color: rgba(214, 198, 238, .12);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .28);
}
body[data-studio-theme="dark"] .event-card:hover,
body[data-studio-theme="dark"] .event-card:focus-within {
  border-color: rgba(211, 185, 247, .28);
  box-shadow: var(--surface-raised);
}
body[data-studio-theme="dark"] .event-card-context,
body[data-studio-theme="dark"] .registration-event-status {
  color: #d9c3fb;
}
body[data-studio-theme="dark"] .event-card-meta {
  border-color: var(--line);
}
body[data-studio-theme="dark"] .event-status {
  border-color: rgba(232, 220, 250, .12);
  background: rgba(31, 27, 40, .96);
  color: #e0cffc;
}
body[data-studio-theme="dark"] .event-card-share {
  border-color: rgba(232, 220, 250, .12);
  background: rgba(31, 27, 40, .9);
  color: var(--ink);
}
body[data-studio-theme="dark"] .event-fact-icon-wrap {
  background: var(--brand-soft);
}
body[data-studio-theme="dark"] .event-fact:nth-child(even),
body[data-studio-theme="dark"] .event-facts,
body[data-studio-theme="dark"] .registration-event-summary {
  border-color: var(--line);
}
body[data-studio-theme="dark"] input,
body[data-studio-theme="dark"] select,
body[data-studio-theme="dark"] textarea,
body[data-studio-theme="dark"] .button:not(.primary),
body[data-studio-theme="dark"] .icon-button:not(.primary),
body[data-studio-theme="dark"] .file-dropzone-button,
body[data-studio-theme="dark"] .emoji-fallback button {
  border-color: #4a414f;
  background: #211d27;
  color: var(--ink);
}
body[data-studio-theme="dark"] input::placeholder,
body[data-studio-theme="dark"] textarea::placeholder {
  color: #aaa1b4;
}
body[data-studio-theme="dark"] .button.primary {
  border-color: #b995ed;
  background: linear-gradient(135deg, #b897ec, #8a62c8);
  color: #191320;
}
body[data-studio-theme="dark"] .button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #d0b9f5, #9b72d5);
}
body[data-studio-theme="dark"] .event-hero-media {
  background: #211d27;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}
body[data-studio-theme="dark"] .registration-panel,
body[data-studio-theme="dark"] .public-activity-preview {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
body[data-studio-theme="dark"] .registration-panel label {
  color: var(--ink);
}
body[data-studio-theme="dark"] .event-registration-access-notice,
body[data-studio-theme="dark"] .room-registration-gate-notice {
  border-color: #4b3b60;
  background: #2d2438;
}
body[data-studio-theme="dark"] .event-registration-access-icon {
  background: #201927;
}
body[data-studio-theme="dark"] .event-art-placeholder {
  background-color: #272033;
}


/* Event management toolbar: compact Lucide icon controls */
.event-management-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(42, 34, 55, .045);
}
.event-management-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.event-management-toolbar .event-management-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: calc(12px + 2.67px);
}
.event-management-toolbar .event-management-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
}
.event-management-toolbar .event-management-status.is-upcoming {
  background: #e7f7ed;
  color: #177245;
}
.event-management-toolbar .event-management-status.is-live {
  background: #eee7fb;
  color: #6037a6;
}
.event-management-toolbar .event-management-status.is-ended {
  background: #f0eef3;
  color: #655f6f;
}
.event-management-toolbar .event-management-status.is-cancelled {
  background: #fdebed;
  color: #b4233f;
}
.event-management-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.event-management-icon-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #dfdbe6;
  border-radius: 13px;
  background: #fff;
  color: #56506a;
  box-shadow: 0 2px 8px rgba(37, 29, 50, .035);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui), color var(--ease-ui);
}
.event-management-icon-action:hover,
.event-management-icon-action:focus-visible {
  transform: translateY(-1px);
  border-color: #cfc8da;
  background: #fbf9fe;
  color: #433b57;
  box-shadow: 0 9px 20px rgba(45, 34, 64, .11);
}
.event-management-icon-action:focus-visible {
  outline: 3px solid rgba(112, 72, 190, .2);
  outline-offset: 2px;
}
.event-management-icon-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7650d7 0%, #6538bc 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(103, 59, 185, .24);
}
.event-management-icon-action.is-primary:hover,
.event-management-icon-action.is-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #8058df 0%, #5c31ad 100%);
  color: #fff;
  box-shadow: 0 13px 26px rgba(103, 59, 185, .3);
}
.event-management-icon-action.is-danger {
  border-color: #f5cfd6;
  background: #fff7f8;
  color: #cf2748;
}
.event-management-icon-action.is-danger:hover,
.event-management-icon-action.is-danger:focus-visible {
  border-color: #efb8c3;
  background: #fff0f2;
  color: #b51e3d;
}
.event-management-action-icon {
  width: 23px;
  height: 23px;
  pointer-events: none;
}
.event-management-icon-action::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 30;
  transform: translate(-50%, -4px);
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #241f2c;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease-ui), transform var(--ease-ui), visibility var(--ease-ui);
}
.event-management-icon-action:hover::after,
.event-management-icon-action:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
body[data-studio-theme="dark"] .event-management-icon-action {
  border-color: #4b4354;
  background: #211d27;
  color: #d9d1e3;
}
body[data-studio-theme="dark"] .event-management-icon-action:hover,
body[data-studio-theme="dark"] .event-management-icon-action:focus-visible {
  border-color: #62556f;
  background: #292330;
  color: #fff;
}
body[data-studio-theme="dark"] .event-management-icon-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #9b73e3 0%, #7246bd 100%);
  color: #fff;
}
body[data-studio-theme="dark"] .event-management-icon-action.is-danger {
  border-color: rgba(239, 124, 148, .34);
  background: rgba(113, 31, 50, .18);
  color: #ff9aae;
}
body[data-studio-theme="dark"] .event-management-toolbar .event-management-status.is-upcoming {
  background: rgba(48, 164, 101, .2);
  color: #8ce0ad;
}
body[data-studio-theme="dark"] .event-management-toolbar .event-management-status.is-live {
  background: rgba(158, 117, 226, .2);
  color: #d8bdfc;
}
body[data-studio-theme="dark"] .event-management-toolbar .event-management-status.is-ended {
  background: #29252f;
  color: #c7c0cf;
}
body[data-studio-theme="dark"] .event-management-toolbar .event-management-status.is-cancelled {
  background: rgba(201, 65, 91, .18);
  color: #ff9aad;
}
@media (max-width: 800px) {
  .event-management-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
  }
  .event-management-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* Event page detail card: compact Lucide icons, balanced 2x3 grid */
.event-overview-details {
  margin-top: 8px;
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(38, 28, 58, .065);
}

/* Match the specificity of the older event-facts rules so the icon column
   always reserves its own space instead of allowing text to overlap it. */
.event-facts > .event-fact {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 18px;
  min-width: 0;
  min-height: 108px;
  padding: 18px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.event-facts > .event-fact:nth-child(even) {
  padding-left: 24px;
  border-left: 0;
}
.event-facts > .event-fact:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.event-facts > .event-fact:nth-child(-n + 4) {
  border-bottom: 1px solid var(--line);
}
.event-fact-icon-wrap {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #f7f2ff 0%, #efe8fb 100%);
  color: #7042d2;
}
.event-detail-icon {
  width: 27px;
  height: 27px;
  pointer-events: none;
}
.event-fact-copy {
  display: block;
  min-width: 0;
}
.event-fact-label {
  display: block;
  margin-bottom: 5px;
  color: #6f7192;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.event-fact-copy strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.3;
  font-weight: 720;
  overflow-wrap: break-word;
  word-break: normal;
}
.event-fact-copy small {
  display: block;
  margin-top: 4px;
  color: #7a7c9b;
  font-size: 13px;
  line-height: 1.3;
}
body[data-studio-theme="dark"] .event-facts {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
body[data-studio-theme="dark"] .event-fact-icon-wrap {
  background: linear-gradient(145deg, #322742 0%, #2a2137 100%);
  color: #c09afa;
}
body[data-studio-theme="dark"] .event-fact-label,
body[data-studio-theme="dark"] .event-fact-copy small {
  color: var(--muted);
}

/* Once the main event layout is narrow, keep the facts compact rather than
   letting typography or icon tiles dominate the page. */
@media (max-width: 1100px) {
  .event-facts > .event-fact,
  .event-facts > .event-fact:nth-child(even) {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    min-height: 102px;
    padding: 16px 18px;
  }
  .event-fact-icon-wrap {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }
  .event-detail-icon {
    width: 25px;
    height: 25px;
  }
  .event-fact-copy strong {
    font-size: 16px;
  }
  .event-fact-label {
    font-size: 11px;
  }
  .event-fact-copy small {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .event-facts {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 17px;
  }
  .event-facts > .event-fact,
  .event-facts > .event-fact:nth-child(even),
  .event-facts > .event-fact:nth-child(odd) {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    min-height: 92px;
    padding: 15px 17px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .event-facts > .event-fact:last-child {
    border-bottom: 0;
  }
  .event-fact-icon-wrap {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }
  .event-detail-icon {
    width: 23px;
    height: 23px;
  }
  .event-fact-copy strong {
    font-size: 15px;
  }
  .event-fact-copy small {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .event-facts > .event-fact,
  .event-facts > .event-fact:nth-child(even),
  .event-facts > .event-fact:nth-child(odd) {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    min-height: 86px;
    padding: 13px 14px;
  }
  .event-fact-icon-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }
  .event-detail-icon {
    width: 21px;
    height: 21px;
  }
  .event-fact-label {
    margin-bottom: 3px;
    font-size: 10px;
  }
  .event-fact-copy strong {
    font-size: 14px;
  }
}

.identity-password-panel { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.identity-password-panel > p { margin-top: 6px; }


/* Global Studio navigation + event-page alignment pass */
.app-sidebar,
.workspace-sidebar {
  background: #17141c;
  color: #f6f2fa;
  border-color: #2b2531;
}
.app-sidebar .sidebar-studio-name,
.workspace-sidebar .sidebar-studio-name,
.app-sidebar .sidebar-event-title,
.workspace-sidebar .sidebar-event-title {
  color: #f7f3fb;
}
.app-sidebar .global-navigation a,
.app-sidebar .event-workspace-nav a,
.workspace-sidebar .global-navigation a,
.workspace-sidebar .event-workspace-nav a {
  color: #b8b0c1;
}
.app-sidebar .global-navigation a:hover,
.app-sidebar .event-workspace-nav a:hover,
.workspace-sidebar .global-navigation a:hover,
.workspace-sidebar .event-workspace-nav a:hover {
  color: #fff;
  background: #24202a;
}
.app-sidebar .global-navigation a[aria-current="page"],
.app-sidebar .event-workspace-nav a[aria-current="page"],
.workspace-sidebar .global-navigation a[aria-current="page"],
.workspace-sidebar .event-workspace-nav a[aria-current="page"] {
  color: #eadffc;
  background: rgba(112, 64, 196, .24);
  box-shadow: inset 3px 0 0 #9468dc;
}
.app-sidebar .sidebar-create-event,
.workspace-sidebar .sidebar-create-event {
  color: #dfcff7;
  background: #241d30;
  border: 1px solid #3a2c49;
}
.app-sidebar .sidebar-create-event:hover,
.app-sidebar .sidebar-create-event.is-current,
.workspace-sidebar .sidebar-create-event:hover,
.workspace-sidebar .sidebar-create-event.is-current {
  color: #fff;
  background: #30233f;
}
.app-sidebar .sidebar-event-context,
.workspace-sidebar .sidebar-event-context {
  border-color: #2f2935;
}
.app-sidebar .sidebar-section-label,
.workspace-sidebar .sidebar-section-label,
.app-sidebar .muted,
.workspace-sidebar .muted,
.app-sidebar .sidebar-bottom,
.workspace-sidebar .sidebar-bottom {
  color: #9f96aa;
}

/* Keep the desktop navigation scrollbar invisible until the user is interacting
   with the sidebar, then show a narrow rounded thumb without arrow buttons. */
.app-sidebar {
  scrollbar-width: none;
  scrollbar-color: rgba(210, 198, 224, .48) transparent;
}
.app-sidebar:hover,
.app-sidebar:focus-within {
  scrollbar-width: thin;
}
.app-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.app-sidebar:hover::-webkit-scrollbar,
.app-sidebar:focus-within::-webkit-scrollbar {
  width: 7px;
}
.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.app-sidebar::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(210, 198, 224, .42);
  background-clip: padding-box;
}
.app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(225, 215, 237, .68);
  background-clip: padding-box;
}
.app-sidebar::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* The event intro, hero banner and detail card share one exact content edge. */
.event-main .event-overview-page .event-layout {
  column-gap: 0;
  row-gap: 30px;
}
.event-main .event-overview-content {
  padding-right: 0;
  border-right: 0;
}
.event-main .event-overview-content > .event-page-heading,
.event-main .event-overview-content > .event-hero-media,
.event-main .event-overview-details {
  width: 100%;
  max-width: none;
}

/* Let the document own vertical scrolling. The right rail stays aligned with
   the event heading initially and becomes sticky just below the global header. */
.event-main .event-side-stack {
  position: sticky;
  top: 84px;
  max-height: none;
  overflow: visible;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--line);
  scrollbar-width: none;
}
.event-main .event-side-stack::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Registration rail: one consistent content axis inside the widget. */
.event-main .event-side-stack .registration-panel {
  overflow: hidden;
  padding: 0;
}
.event-main .registration-panel > .registration-event-summary {
  margin: 0 0 24px;
  padding: 20px 24px 19px;
}
.event-main .registration-panel > :not(.registration-event-summary) {
  margin-right: 24px;
  margin-left: 24px;
}
.event-main .registration-panel > .eyebrow {
  margin-top: 0;
}
.event-main .registration-panel h2 {
  margin-top: 6px;
  line-height: 1.3;
}
.event-main .registration-panel > #registration-form,
.event-main .registration-panel > .stack-form {
  margin-top: 20px;
  margin-bottom: 24px;
}
.event-main .registration-panel > .registration-state {
  margin-bottom: 24px;
}

/* Official Lucide calendar in the compact event summary, enlarged for clarity. */
.registration-event-summary .registration-event-date {
  display: flex;
  align-items: center;
  gap: 11px;
}
.registration-event-summary .registration-event-date > span {
  min-width: 0;
}
.registration-event-summary .registration-event-date .event-detail-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--brand);
  stroke-width: 1.9;
}

@media (max-width: 1040px) {
  .event-main .event-overview-page .event-layout {
    row-gap: 25px;
  }
  .event-main .event-side-stack {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 0 0;
    border-left: 0;
  }
}

@media (max-width: 800px) {
  .app-sidebar,
  .workspace-sidebar {
    scrollbar-width: none;
  }
}


/* Discover filters + shared header polish */
.discover-controls {
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(93, 74, 122, .1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(37, 28, 55, .07);
}
.discover-state-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.discover-state-tabs::-webkit-scrollbar { display: none; }
.discover-state-tabs button {
  min-height: 44px;
  padding: 9px 19px;
  border: 1px solid #ded9e6;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: color var(--ease-ui), background var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui), transform var(--ease-ui);
}
.discover-state-tabs button:hover {
  transform: translateY(-1px);
  border-color: #cbbfdc;
  background: #fbf9fe;
}
.discover-state-tabs button[aria-pressed="true"] {
  color: #6238ac;
  border-color: #9b77d8;
  background: #f3edfc;
  box-shadow: 0 5px 14px rgba(93, 57, 157, .1);
}

.discover-filter-row {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(145px, 1fr));
  gap: 14px;
  align-items: end;
}
.discover-search-field,
.discover-filter-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.discover-filter-label {
  display: block;
}
.discover-search-field input,
.discover-select-trigger {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ded9e6;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(36, 27, 52, .025);
  transition: border-color var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui);
}
.discover-search-field input {
  padding: 11px 18px;
}
.discover-search-field input:hover,
.discover-select-trigger:hover {
  border-color: #c9bddb;
}
.discover-search-field input:focus,
.discover-select-trigger:focus-visible,
.discover-select.is-open .discover-select-trigger {
  border-color: #8f68cf;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(104, 65, 181, .11), 0 5px 14px rgba(44, 32, 62, .06);
}
.discover-select {
  position: relative;
  min-width: 0;
}
.discover-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px 10px 18px;
  cursor: pointer;
  text-align: left;
}
.discover-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discover-select-trigger .studio-ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform var(--ease-ui);
}
.discover-select.is-open .discover-select-trigger .studio-ui-icon {
  transform: rotate(180deg);
}
.discover-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  max-height: 280px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #e1dce8;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(38, 28, 55, .16);
}
.discover-select-menu[hidden] {
  display: none;
}
.discover-select-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px 9px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.discover-select-menu button:hover,
.discover-select-menu button:focus-visible {
  background: #f5f0fb;
  outline: 0;
}
.discover-select-menu button[aria-selected="true"] {
  background: #efe7fb;
  color: #6438ad;
  font-weight: 650;
}
.discover-select-menu .studio-ui-icon,
.discover-option-spacer {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
  transition: color var(--ease-ui), background var(--ease-ui), transform var(--ease-ui);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: var(--brand-soft);
  color: var(--brand);
}
.theme-toggle:focus-visible {
  outline: 3px solid rgba(104, 65, 181, .18);
  outline-offset: 2px;
}
.theme-toggle .studio-ui-icon {
  width: 25px;
  height: 25px;
}

.header-actions .identity-signin {
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid #6841b5;
  border-radius: 999px;
  background: linear-gradient(135deg, #744ac7 0%, #5d34a8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(104, 65, 181, .22);
}
.header-actions .identity-signin:hover,
.header-actions .identity-signin:focus-visible {
  border-color: #5c33a6;
  background: linear-gradient(135deg, #6841b5 0%, #502a96 100%);
  color: #fff;
  box-shadow: 0 11px 24px rgba(104, 65, 181, .3);
}
.header-actions .identity-signin:focus-visible {
  outline: 3px solid rgba(104, 65, 181, .2);
  outline-offset: 2px;
}

body[data-studio-theme="dark"] .discover-controls {
  border-color: #393241;
  background: #17141c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
body[data-studio-theme="dark"] .discover-state-tabs button,
body[data-studio-theme="dark"] .discover-search-field input,
body[data-studio-theme="dark"] .discover-select-trigger {
  border-color: #463d50;
  background: #211d27;
}
body[data-studio-theme="dark"] .discover-state-tabs button:hover,
body[data-studio-theme="dark"] .discover-select-menu button:hover,
body[data-studio-theme="dark"] .discover-select-menu button:focus-visible {
  background: #2b2433;
}
body[data-studio-theme="dark"] .discover-state-tabs button[aria-pressed="true"],
body[data-studio-theme="dark"] .discover-select-menu button[aria-selected="true"] {
  border-color: #8e69cd;
  background: #352647;
  color: #d9c4f7;
}
body[data-studio-theme="dark"] .discover-select-menu {
  border-color: #463d50;
  background: #211d27;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

@media (max-width: 980px) {
  .discover-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discover-search-field {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .discover-controls {
    padding: 16px;
    border-radius: 18px;
  }
  .discover-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .discover-search-field {
    grid-column: auto;
  }
  .discover-state-tabs button {
    min-height: 40px;
    padding: 8px 15px;
  }
  .discover-search-field input,
  .discover-select-trigger {
    min-height: 46px;
  }
  .header-actions .identity-signin {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 12px;
  }
  .theme-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .theme-toggle .studio-ui-icon {
    width: 22px;
    height: 22px;
  }
}


/* Password authentication and recovery */
.identity-password-control {
  display: grid;
  gap: 7px;
}
.identity-password-input {
  position: relative;
  min-width: 0;
}
.identity-password-input input {
  width: 100%;
  padding-right: 52px;
}
.identity-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--ease-ui), background var(--ease-ui);
}
.identity-password-toggle:hover,
.identity-password-toggle:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
}
.identity-password-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 32%, transparent);
  outline-offset: 1px;
}
.identity-field-icon {
  width: 21px;
  height: 21px;
  pointer-events: none;
}
.identity-forgot-link {
  justify-self: end;
  margin-top: -4px;
  color: var(--brand);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
  text-decoration: none;
}
.identity-forgot-link:hover,
.identity-forgot-link:focus-visible {
  color: #5b32a6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.identity-forgot-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}
.identity-reset-actions .text-button {
  color: var(--brand);
  font-weight: 650;
}
.identity-reset-confirmation {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}
.identity-reset-content {
  gap: 16px;
}
.identity-reset-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: -4px;
}
body[data-studio-theme="dark"] .identity-password-toggle:hover,
body[data-studio-theme="dark"] .identity-password-toggle:focus-visible {
  background: #30263f;
}
@media (max-width: 560px) {
  .identity-reset-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Signed-in account header: avatar-only trigger with role-aware menu */
[data-identity-mount] {
  position: relative;
}
.identity-account-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.identity-avatar-button {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui), transform var(--ease-ui);
}
.identity-avatar-button:hover,
.identity-avatar-button[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: #e0d9ea;
  background: #f8f5fc;
  box-shadow: 0 7px 18px rgba(47, 34, 66, .09);
}
.identity-avatar-button:focus-visible {
  outline: 3px solid rgba(104, 65, 181, .2);
  outline-offset: 2px;
}
.identity-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #eee6fb 0%, #ddd0f5 100%);
  color: #563196;
  font-weight: 750;
}
.identity-avatar-header {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 13px;
}
.identity-avatar-menu {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-size: 13px;
}
.identity-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.identity-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: inherit;
}
.identity-account-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #e2dde9;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(35, 26, 48, .18);
}
.identity-account-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 8px 10px;
}
.identity-account-summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.identity-account-summary strong,
.identity-account-summary span,
.identity-account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity-account-summary strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.identity-account-summary span {
  color: var(--muted);
  font-size: 12px;
}
.identity-account-summary small {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.identity-account-menu-separator {
  height: 1px;
  margin: 6px 3px;
  background: var(--line);
}
.identity-account-menu > button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.identity-account-menu > button:hover,
.identity-account-menu > button:focus-visible {
  background: #f5f1fa;
  outline: 0;
}
.identity-account-menu > button .identity-field-icon {
  width: 19px;
  height: 19px;
  color: #6e6678;
}
.identity-account-menu > .identity-menu-signout {
  color: #b4233f;
}
.identity-account-menu > .identity-menu-signout .identity-field-icon {
  color: #c43a55;
}
body[data-studio-theme="dark"] .identity-avatar-button:hover,
body[data-studio-theme="dark"] .identity-avatar-button[aria-expanded="true"] {
  border-color: #4d4357;
  background: #26212d;
}
body[data-studio-theme="dark"] .identity-account-menu {
  border-color: #403747;
  background: #191720;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .42);
}
body[data-studio-theme="dark"] .identity-account-menu > button:hover,
body[data-studio-theme="dark"] .identity-account-menu > button:focus-visible {
  background: #29232f;
}
body[data-studio-theme="dark"] .identity-account-summary small {
  background: #332647;
  color: #d5bcf7;
}
@media (max-width: 680px) {
  .identity-avatar-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .identity-avatar-header {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .identity-account-menu {
    position: fixed;
    top: 66px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
  }
}

/* Manage Events and cross-event registrations */
.manage-events-header-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.registration-dashboard-coachmark {
  position: absolute;
  z-index: 160;
  top: calc(100% + 14px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 15px 42px 15px 16px;
  border-radius: 14px;
  background: #17141c;
  color: #fff;
  box-shadow: 0 16px 42px rgba(20, 16, 27, .28);
}
.registration-dashboard-coachmark::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 2px 0 0;
  background: #17141c;
}
.registration-dashboard-coachmark strong,
.registration-dashboard-coachmark span {
  position: relative;
  z-index: 1;
  display: block;
}
.registration-dashboard-coachmark strong {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.35;
}
.registration-dashboard-coachmark span {
  color: #c9c2d2;
  font-size: 12px;
  line-height: 1.48;
}
.registration-dashboard-coachmark-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d9d3e1;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.registration-dashboard-coachmark-close:hover,
.registration-dashboard-coachmark-close:focus-visible {
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: 0;
}
.manage-events-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #e1dbe9;
  border-radius: 999px;
  background: #fff;
  color: #4e4659;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(39, 29, 55, .045);
  transition: transform var(--ease-ui), border-color var(--ease-ui), background var(--ease-ui), color var(--ease-ui), box-shadow var(--ease-ui);
}
.manage-events-header-link:hover,
.manage-events-header-link:focus-visible {
  transform: translateY(-1px);
  border-color: #c9b9dc;
  background: #f8f3fd;
  color: #6238ac;
  box-shadow: 0 8px 18px rgba(69, 48, 99, .09);
}
.manage-events-header-link:focus-visible {
  outline: 3px solid rgba(104, 65, 181, .16);
  outline-offset: 2px;
}
.manage-events-header-link .event-management-action-icon {
  width: 19px;
  height: 19px;
}

.manage-events-main {
  width: min(1480px, 100%);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 60px) 80px;
}
.manage-events-page {
  display: grid;
  gap: 24px;
}
.manage-page-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.manage-page-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -.035em;
}
.manage-page-heading .lead {
  max-width: 760px;
  margin: 0;
}

.manage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(38, 29, 53, .05);
}
.manage-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 20px 22px;
}
.manage-summary > div + div {
  border-left: 1px solid var(--line);
}
.manage-summary strong {
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -.035em;
}
.manage-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.manage-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f3f8;
}
.manage-tabs a {
  min-width: 122px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.manage-tabs a:hover {
  color: var(--ink);
}
.manage-tabs a[aria-selected="true"] {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(41, 31, 54, .08);
}

.manage-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.manage-toolbar label {
  display: grid;
  flex: 1 1 200px;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.manage-toolbar input,
.manage-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ddd7e4;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.manage-toolbar input:focus,
.manage-toolbar select:focus {
  border-color: #9770d4;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(104, 65, 181, .1);
}
.manage-toolbar .manage-search {
  flex: 1 1 330px;
}
.manage-toolbar > .button {
  min-height: 44px;
  margin-left: auto;
}
.manage-registration-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(210px, 1fr) minmax(170px, .7fr) auto;
}
.manage-export .event-management-action-icon {
  width: 18px;
  height: 18px;
}

.manage-event-list {
  display: grid;
  gap: 12px;
}
.manage-event-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.1fr) minmax(110px, .65fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(40, 30, 54, .04);
  transition: transform var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui);
}
.manage-event-row:hover {
  transform: translateY(-1px);
  border-color: #d2c9dc;
  box-shadow: 0 10px 26px rgba(40, 30, 54, .075);
}
.manage-event-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.manage-event-main h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.3;
}
.manage-event-main h2 a {
  color: var(--ink);
  text-decoration: none;
}
.manage-event-main h2 a:hover,
.manage-event-main h2 a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manage-event-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.manage-event-metric,
.manage-event-form {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.manage-event-metric strong {
  font-size: 22px;
  line-height: 1;
}
.manage-event-metric span,
.manage-event-form span {
  color: var(--muted);
  font-size: 12px;
}
.manage-event-form strong {
  font-size: 12px;
}
.manage-event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.manage-event-actions .button.compact {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.manage-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #efedf2;
  color: #625b69;
  font-size: 11px;
  font-weight: 750;
  text-transform: capitalize;
}
.manage-status-upcoming,
.manage-status-registered {
  background: #e8f7ee;
  color: #176940;
}
.manage-status-live,
.manage-status-attended {
  background: #eee8fb;
  color: #6039a4;
}
.manage-status-cancelled {
  background: #fdecef;
  color: #b4233f;
}
.manage-status-past {
  background: #efedf2;
  color: #66606d;
}

.manage-room-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #efedf2;
  color: #625b69;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.manage-room-state-active {
  background: #e8f7ee;
  color: #176940;
}
.manage-room-state-conversations_left {
  background: #fff4d8;
  color: #815b12;
}
.manage-room-state-withdrawn,
.manage-room-state-closed {
  background: #efedf2;
  color: #66606d;
}
.manage-room-state-removed {
  background: #fdecef;
  color: #b4233f;
}
.manage-room-state-none {
  background: #f4f1f6;
  color: #746d79;
}

.manage-registration-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(38, 29, 53, .045);
}
.manage-registration-table {
  width: 100%;
  min-width: 990px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13px;
}
.manage-registration-table th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f5f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.manage-registration-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.manage-registration-table tbody tr:last-child td {
  border-bottom: 0;
}
.manage-registration-table tbody tr:hover {
  background: #fbf9fd;
}
.manage-registration-table td:first-child {
  min-width: 220px;
}
.manage-registration-table td:first-child strong,
.manage-registration-table td:first-child span {
  display: block;
}
.manage-registration-table td:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.manage-registration-table a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}
.manage-registration-table a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manage-registration-table .icon-button {
  width: 38px;
  height: 38px;
}
.manage-registration-table .event-management-action-icon {
  width: 18px;
  height: 18px;
}

.manage-empty {
  padding: 40px 28px;
  border: 1px dashed #d8d1df;
  border-radius: 17px;
  background: color-mix(in srgb, var(--white) 92%, var(--canvas));
  text-align: center;
}
.manage-empty h2 {
  margin: 0 0 7px;
  font-size: 18px;
}
.manage-empty p {
  margin: 0;
  color: var(--muted);
}
.manage-error {
  margin: 0;
}
.manage-access-required {
  max-width: 760px;
}

.registration-detail-dialog {
  display: grid;
  gap: 22px;
}
.registration-detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, .6fr) minmax(180px, 1fr);
  gap: 10px;
}
.registration-detail-meta > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.registration-detail-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.registration-detail-meta strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.registration-detail-dialog section {
  display: grid;
  gap: 8px;
}
.registration-detail-dialog section h3,
.registration-detail-dialog section p {
  margin: 0;
}
.registration-room-access {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px !important;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.registration-room-access .actions {
  justify-content: flex-end;
  margin: 0;
}
.room-membership-dialog label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.room-membership-dialog label small {
  font-weight: 500;
}
.room-membership-dialog textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.registration-detail-answers {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.registration-detail-answers > div {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1.5fr);
  gap: 16px;
  padding: 12px 14px;
}
.registration-detail-answers > div + div {
  border-top: 1px solid var(--line);
}
.registration-detail-answers dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.registration-detail-answers dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

body[data-studio-theme="dark"] .manage-events-header-link,
body[data-studio-theme="dark"] .manage-summary,
body[data-studio-theme="dark"] .manage-toolbar,
body[data-studio-theme="dark"] .manage-event-row,
body[data-studio-theme="dark"] .manage-registration-table-wrap {
  border-color: #403746;
  background: #19171f;
  color: var(--ink);
}
body[data-studio-theme="dark"] .manage-events-header-link {
  color: #d8d0e1;
}
body[data-studio-theme="dark"] .manage-events-header-link:hover,
body[data-studio-theme="dark"] .manage-events-header-link:focus-visible {
  border-color: #665476;
  background: #2a2231;
  color: #d8bdf8;
}
body[data-studio-theme="dark"] .manage-tabs {
  border-color: #403746;
  background: #151219;
}
body[data-studio-theme="dark"] .manage-tabs a[aria-selected="true"] {
  background: #27222d;
  color: #d3baf6;
}
body[data-studio-theme="dark"] .manage-toolbar input,
body[data-studio-theme="dark"] .manage-toolbar select {
  border-color: #4b4252;
  background: #211d27;
  color: var(--ink);
}
body[data-studio-theme="dark"] .manage-event-row:hover,
body[data-studio-theme="dark"] .manage-registration-table tbody tr:hover {
  background: #201c25;
}
body[data-studio-theme="dark"] .manage-registration-table th {
  border-color: #403746;
  background: #211d27;
}
body[data-studio-theme="dark"] .manage-empty {
  border-color: #44394c;
  background: #18151d;
}
body[data-studio-theme="dark"] .registration-detail-meta > div {
  background: #211d27;
}
body[data-studio-theme="dark"] .manage-status-upcoming,
body[data-studio-theme="dark"] .manage-status-registered {
  background: rgba(50, 162, 100, .2);
  color: #8cdead;
}
body[data-studio-theme="dark"] .manage-status-live,
body[data-studio-theme="dark"] .manage-status-attended {
  background: rgba(145, 100, 214, .22);
  color: #d2b8fa;
}
body[data-studio-theme="dark"] .manage-status-cancelled {
  background: rgba(193, 58, 84, .2);
  color: #ff9caf;
}
body[data-studio-theme="dark"] .manage-status-past {
  background: #2b2730;
  color: #c7c0cf;
}

@media (max-width: 1080px) {
  .manage-event-row {
    grid-template-columns: minmax(260px, 1.6fr) minmax(100px, .55fr) minmax(160px, .8fr);
  }
  .manage-event-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .manage-registration-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-registration-filters .manage-export {
    margin-left: 0;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .registration-dashboard-coachmark {
    position: fixed;
    top: 68px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
  }
  .registration-dashboard-coachmark::before {
    right: 76px;
  }
  .manage-events-main {
    padding: 24px 16px 92px;
  }
  .manage-events-header-link {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }
  .manage-events-header-link span {
    display: none;
  }
  .manage-events-header-link .event-management-action-icon {
    width: 20px;
    height: 20px;
  }
  .manage-summary {
    grid-template-columns: 1fr;
  }
  .manage-summary > div {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    padding: 14px 16px;
  }
  .manage-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .manage-summary strong {
    font-size: 24px;
  }
  .manage-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .manage-tabs a {
    min-width: 0;
  }
  .manage-toolbar,
  .manage-registration-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
  }
  .manage-toolbar label,
  .manage-toolbar .manage-search {
    min-width: 0;
  }
  .manage-toolbar > .button,
  .manage-registration-filters .manage-export {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .manage-event-row {
    grid-template-columns: minmax(0, 1fr) minmax(90px, .4fr);
    gap: 15px;
    padding: 17px;
  }
  .manage-event-main {
    grid-column: 1 / -1;
  }
  .manage-event-form {
    min-width: 0;
  }
  .manage-event-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-event-actions .button.compact {
    justify-content: center;
  }
  .registration-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .registration-detail-answers > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .manage-event-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .manage-event-metric,
  .manage-event-form {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
}


/* Registration form builder and participant fields */
.registration-extra-fields {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}
.registration-extra-fields label {
  display: grid;
  gap: 6px;
}
.registration-extra-fields input,
.registration-extra-fields select {
  width: 100%;
}
.registration-field-help {
  display: block;
  margin-top: 1px;
  line-height: 1.4;
}
.registration-other-role[hidden] {
  display: none;
}
.registration-marketing-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  margin: 18px 0 4px;
  padding: 13px 14px;
  border: 1px solid #dfd8e8;
  border-radius: 13px;
  background: #faf8fc;
  cursor: pointer;
}
.registration-marketing-consent > input {
  width: 18px !important;
  height: 18px;
  margin: 2px 0 0 !important;
}
.registration-marketing-consent > span {
  display: grid;
  gap: 3px;
}
.registration-marketing-consent strong {
  color: var(--ink);
  font-size: 13px;
}
.registration-marketing-consent small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.creator-management-panel .button .event-management-action-icon {
  width: 18px;
  height: 18px;
}

.registration-settings-modal {
  width: min(760px, calc(100vw - 30px));
  max-width: 760px;
}
.registration-settings-dialog {
  display: grid;
  gap: 22px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
}
.registration-settings-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.registration-settings-intro h3 {
  margin: 4px 0 0;
  font-size: 20px;
}
.registration-settings-dialog form {
  display: grid;
  gap: 24px;
}
.registration-settings-dialog form > section {
  display: grid;
  gap: 12px;
}
.registration-system-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.registration-system-fields > div {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}
.registration-system-fields strong {
  font-size: 13px;
}
.registration-system-fields span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.registration-settings-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.registration-settings-section-heading h3,
.registration-settings-section-heading p {
  margin: 0;
}
.registration-settings-section-heading p {
  margin-top: 4px;
  font-size: 12px;
}
.registration-preset-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.registration-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 15px;
  background: var(--white);
}
.registration-preset-row + .registration-preset-row {
  border-top: 1px solid var(--line);
}
.registration-preset-main,
.registration-preset-required,
.registration-required-toggle {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 !important;
  cursor: pointer;
}
.registration-preset-main > input,
.registration-preset-required > input,
.registration-required-toggle > input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  flex: 0 0 18px;
}
.registration-preset-main > span {
  display: grid;
  gap: 2px;
}
.registration-preset-main strong {
  color: var(--ink);
  font-size: 13px;
}
.registration-preset-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.registration-preset-required {
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 650 !important;
}
.registration-preset-required:has(input:disabled) {
  opacity: .45;
  cursor: default;
}
.registration-custom-fields {
  display: grid;
  gap: 12px;
}
.registration-custom-field {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.registration-custom-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.registration-custom-field-heading strong {
  font-size: 13px;
}
.registration-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.registration-required-toggle {
  min-height: 44px;
  padding: 0 8px 6px 0;
  color: var(--muted);
  font-size: 12px !important;
}
.registration-consent-lock {
  padding: 15px 16px;
  border: 1px solid #dcd1e9;
  border-radius: 14px;
  background: #f8f4fc;
}
.registration-consent-lock strong {
  color: #5f36aa;
  font-size: 13px;
}
.registration-consent-lock p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body[data-studio-theme="dark"] .registration-marketing-consent,
body[data-studio-theme="dark"] .registration-custom-field,
body[data-studio-theme="dark"] .registration-system-fields > div {
  border-color: #463c50;
  background: #211d27;
}
body[data-studio-theme="dark"] .registration-preset-list {
  border-color: #463c50;
}
body[data-studio-theme="dark"] .registration-preset-row {
  background: #19171f;
}
body[data-studio-theme="dark"] .registration-consent-lock {
  border-color: #514064;
  background: #2b2236;
}
body[data-studio-theme="dark"] .registration-consent-lock strong {
  color: #d2b7f5;
}

@media (max-width: 700px) {
  .registration-settings-modal {
    width: calc(100vw - 18px);
  }
  .registration-settings-dialog {
    max-height: 74vh;
  }
  .registration-settings-intro,
  .registration-settings-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .registration-system-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .registration-preset-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .registration-preset-required {
    padding-left: 28px;
  }
  .registration-custom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .registration-required-toggle {
    min-height: 32px;
    padding: 0;
  }
  .manage-event-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Platform consent audience and publisher event-promotion permission */
.marketing-audience-boundary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 20px;
  border: 1px solid #ddd3e9;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf8ff 0%, #f5effb 100%);
}
.marketing-audience-boundary h2 {
  margin: 4px 0 6px;
  font-size: 19px;
}
.marketing-audience-boundary p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.marketing-audience-lock {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #603a9e;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(49, 35, 72, .06);
}
.marketing-audience-lock svg {
  width: 15px;
  height: 15px;
}
.manage-audience-view-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f3f8;
}
.manage-audience-view-tabs button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.manage-audience-view-tabs button[aria-pressed="true"] {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 3px 9px rgba(41, 31, 54, .08);
}
.manage-audience-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(220px, 1fr) auto;
}
.marketing-audience-table {
  min-width: 920px;
}
.event-promotion-dialog {
  display: grid;
  gap: 20px;
}
.event-promotion-dialog h3 {
  margin: 5px 0 6px;
  font-size: 20px;
}
.event-promotion-toggle {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px !important;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
  cursor: pointer;
}
.event-promotion-toggle > input {
  width: 19px !important;
  height: 19px;
  margin: 2px 0 0 !important;
}
.event-promotion-toggle > span {
  display: grid;
  gap: 4px;
}
.event-promotion-toggle strong {
  color: var(--ink);
  font-size: 13px;
}
.event-promotion-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.event-promotion-boundary {
  padding: 14px 15px;
  border: 1px solid #ddd3e9;
  border-radius: 13px;
  background: #f8f4fc;
}
.event-promotion-boundary strong {
  color: #603a9e;
  font-size: 12px;
}
.event-promotion-boundary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
body[data-studio-theme="dark"] .marketing-audience-boundary,
body[data-studio-theme="dark"] .event-promotion-boundary {
  border-color: #514064;
  background: #2b2236;
}
body[data-studio-theme="dark"] .marketing-audience-lock {
  background: #211d27;
  color: #d2b7f5;
}
body[data-studio-theme="dark"] .manage-audience-view-tabs {
  border-color: #403746;
  background: #151219;
}
body[data-studio-theme="dark"] .manage-audience-view-tabs button[aria-pressed="true"] {
  background: #27222d;
  color: #d3baf6;
}
body[data-studio-theme="dark"] .event-promotion-toggle {
  border-color: #463c50;
  background: #211d27;
}
body[data-studio-theme="dark"] .event-promotion-boundary strong {
  color: #d2b7f5;
}

@media (max-width: 900px) {
  .manage-audience-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-audience-filters .manage-export {
    margin-left: 0;
    justify-self: start;
  }
}
@media (max-width: 700px) {
  .manage-tabs {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .marketing-audience-boundary {
    flex-direction: column;
  }
  .manage-audience-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .manage-audience-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .manage-audience-filters .manage-export {
    width: 100%;
    justify-content: center;
  }
}

/* Publisher Studio chat room refresh — 2026-09-24 */

/* Keep the existing application shell; only restyle the event chat surface. */
.room-main.workspace-main {
  padding: 16px 28px 132px;
  background: #f7f9fc;
}
.room-main.workspace-main #panel {
  width: 100%;
  max-width: none;
}
.context-rail {
  padding: 22px 20px 28px;
  background: var(--white);
  border-left: 1px solid #e4e8ef;
}

/* Quiet top controls. */
.chat-room-view {
  min-width: 0;
}
.chat-room-status {
  display: flex;
  justify-content: flex-end;
  min-height: 40px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.chat-filter-select {
  margin-left: auto;
}
.chat-filter-select select {
  min-height: 36px;
  padding: 0 34px 0 13px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background-color: var(--white);
  color: var(--ink);
  font: 500 13px/1 var(--font-sans);
}

/* Timeline and root conversation cards. */
.chat-timeline {
  display: grid;
  gap: 12px;
  border-top: 0;
}
.timeline-day-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  color: #777b8a;
  font: 650 12px/1 var(--font-sans);
}
.timeline-day-divider::before,
.timeline-day-divider::after {
  flex: 1;
  content: "";
  border-top: 1px solid #dfe4ec;
}
.thread-card {
  position: relative;
  margin: 0;
  padding: 14px 16px 15px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(24, 30, 45, .035);
  scroll-margin-top: 90px;
}
.thread-card.is-pinned {
  border-color: color-mix(in srgb, var(--brand) 30%, #e3e7ee);
  background: color-mix(in srgb, var(--brand-soft) 23%, var(--white));
}
.thread-card.is-unread {
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}
.pinned-thread-section {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.pinned-thread-section > .eyebrow {
  margin: 0 0 8px 2px;
  padding: 0;
}
.pinned-thread-section .thread-card {
  padding-top: 14px;
  padding-bottom: 15px;
}

/* Conversation identity and copy. */
.thread-card > .chat-message {
  min-width: 0;
}
.chat-message .person-line {
  align-items: flex-start;
  gap: 11px;
  padding-right: 36px;
}
.thread-card .avatar,
.chat-message-root .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 13px;
}
.chat-message .person-line > div {
  flex: 0 1 auto;
}
.chat-message .person-line strong {
  display: inline-block;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.chat-message .person-line .small,
.chat-message .person-line > .tag {
  display: none;
}
.chat-message-time,
.chat-message .person-line > .chat-message-time {
  margin: 1px 0 0 0;
  color: #9095a3;
  font-size: 11.5px;
  line-height: 18px;
  white-space: nowrap;
}
.chat-message-title {
  margin: 7px 0 0 51px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}
.chat-message-body {
  max-width: 820px;
  margin: 4px 0 0 51px;
  color: #3e4350;
  font-size: 14.5px;
  line-height: 1.48;
}
.chat-link-preview,
.embedded-video,
.chat-attachments,
.related-context-links,
.chat-gif-preview,
.wistudi-content-preview {
  margin-left: 51px;
}
.chat-link-preview {
  width: min(520px, calc(100% - 51px));
  border-radius: 9px;
}
.wistudi-content-preview {
  width: min(420px, calc(100% - 51px));
}

/* Compact reactions and reply controls. */
.thread-footer {
  justify-content: flex-start;
  gap: 8px;
  margin: 10px 0 0 51px;
}
.thread-footer .heart-button,
.thread-footer .text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #e8eaf0;
  border-radius: 999px;
  background: var(--white);
  color: #6f7481;
  font: 550 11.5px/1 var(--font-sans);
  text-decoration: none;
}
.thread-footer .heart-button:hover,
.thread-footer .text-link:hover {
  border-color: #d9cff7;
  background: #f7f3ff;
  color: var(--brand);
}
.thread-footer .heart-button.is-liked {
  border-color: #e6ddff;
  background: #f2edff;
  color: #6727da;
}
.thread-footer .heart-button svg,
.thread-footer .text-link svg {
  width: 15px;
  height: 15px;
}

/* Nested threaded replies. */
.chat-replies {
  display: grid;
  gap: 2px;
  margin: 12px 0 0 51px;
  padding: 8px 12px 9px 18px;
  border-left: 2px solid #d9e0eb;
  border-radius: 0 9px 9px 0;
  background: #f7f9fc;
}
.chat-replies .chat-message {
  padding: 6px 0;
}
.chat-replies .avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 11px;
}
.chat-replies .chat-message .person-line {
  gap: 9px;
  padding-right: 0;
}
.chat-replies .chat-message-body,
.chat-replies .chat-message-title,
.chat-replies .chat-link-preview,
.chat-replies .chat-attachments,
.chat-replies .embedded-video,
.chat-replies .chat-gif-preview,
.chat-replies .wistudi-content-preview {
  margin-left: 41px;
}
.chat-replies .chat-message-body {
  margin-top: 2px;
  font-size: 13.5px;
}
.read-replies {
  min-height: 30px;
  margin-top: 2px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: #6836dc;
  font: 650 11.5px/1.2 var(--font-sans);
}
.read-replies:hover {
  text-decoration: none;
  color: var(--brand-deep);
}

/* Three-dot conversation menu. */
.thread-card-tools {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 30px;
  margin: 0;
}
.thread-state-badge {
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f7f8fb;
  font-size: 10px;
}
.thread-more-menu {
  position: relative;
}
.thread-more-menu > summary {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #858b98;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}
.thread-more-menu > summary:hover,
.thread-more-menu[open] > summary {
  background: #f1ecff;
  color: #632bd0;
}
.thread-more-popover {
  top: calc(100% + 5px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #e1e5ec;
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(22, 28, 45, .13);
}
.thread-more-popover button {
  min-height: 37px;
  padding: 0 10px;
  border-radius: 7px;
  color: #343842;
  font: 550 13px/1 var(--font-sans);
}
.thread-more-popover button:hover {
  background: #f5f6f9;
}
.thread-more-popover .thread-delete-action {
  color: #df3f46;
}
.thread-more-popover .thread-delete-action:hover {
  background: #fff0f1;
}

/* Right event context rail. */
.room-rail-card {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #eceef2;
}
.room-rail-card:first-child {
  padding-top: 0;
}
.room-rail-card:last-child {
  border-bottom: 0;
}
.room-event-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #11131a;
}
.room-event-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.your-event-card > .eyebrow {
  color: #777b8a;
  font-size: 11px;
  font-weight: 650;
}
.your-event-card h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -.015em;
}
.room-event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #30343d;
  font-size: 12.5px;
}
.room-event-date svg {
  width: 17px;
  height: 17px;
}
.room-rail-countdown {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e6f7ef;
  color: #16845b;
  font-size: 11.5px;
  font-weight: 700;
}
.room-rail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.room-rail-actions .room-join-live {
  flex: 1 1 auto;
}
.room-rail-calendar {
  display: inline-flex;
  flex: 1 1 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e2dafc;
  border-radius: 8px;
  background: #faf8ff;
  color: #6332d4;
  font: 700 11.5px/1 var(--font-sans);
  cursor: pointer;
}
.room-rail-calendar:hover {
  border-color: #d5c7ff;
  background: #f4efff;
}
.room-rail-calendar svg {
  width: 17px;
  height: 17px;
}
.room-rail-icon-button,
.room-rail-more > summary {
  display: grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: var(--white);
  color: #4c515c;
  cursor: pointer;
  list-style: none;
}
.room-rail-icon-button:hover,
.room-rail-more > summary:hover,
.room-rail-more[open] > summary {
  background: #f7f8fa;
  border-color: #d7dbe3;
}
.room-rail-icon-button svg {
  width: 17px;
  height: 17px;
}
.room-rail-more {
  position: relative;
}
.room-rail-more > summary::-webkit-details-marker {
  display: none;
}
.room-rail-more-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 154px;
  padding: 6px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 28, 45, .12);
}
.room-rail-more-menu a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}
.room-rail-more-menu a:hover {
  background: #f5f6f9;
}
.room-rail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.room-rail-section-heading > svg {
  width: 16px;
  height: 16px;
  color: #252a34;
}
.room-activity-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
}
.room-activity-stats a {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.room-activity-stats a:first-child {
  padding-left: 0;
}
.room-activity-stats a:last-child {
  padding-right: 0;
}
.room-activity-stats a + a {
  border-left: 1px solid #eceef2;
}
.room-activity-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  background: #f1ebff;
  color: #6b35d5;
}
.room-activity-icon.is-blue {
  background: #edf5ff;
  color: #347fe8;
}
.room-activity-icon svg {
  width: 17px;
  height: 17px;
}
.room-activity-stats strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 19px;
}
.room-activity-stats span:not(.room-activity-icon) {
  color: #757b89;
  font-size: 10.5px;
  line-height: 1.28;
}
.room-host-card .eyebrow,
.participant-count-card .eyebrow {
  margin-bottom: 11px;
}
.room-host-row {
  gap: 10px;
}
.room-host-row .avatar,
.room-host-row .person-photo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.room-host-row strong {
  font-size: 12.5px;
}
.room-host-row .small {
  margin-top: 2px;
  font-size: 10.5px;
}
.host-rail-bio {
  margin-top: 9px;
}
.room-participant-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
}
.room-participant-icon {
  display: grid;
  place-items: center;
  color: #222833;
}
.room-participant-icon img,
.room-participant-icon svg {
  width: 20px;
  height: 20px;
}
.room-participant-row > div {
  display: grid;
  gap: 1px;
}
.room-participant-row strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 20px;
}
.room-participant-row .small {
  font-size: 10.5px;
}
.room-participant-arrow {
  display: grid;
  place-items: center;
}
.room-participant-arrow svg {
  width: 16px;
  height: 16px;
}

/* True application composer dock, flush to the sidebar and viewport edges. */
.room-composer-dock:has(.room-composer-form[data-room-composer="chat"]) {
  position: fixed;
  z-index: 48;
  left: 256px;
  right: 0;
  bottom: 0;
  min-height: 68px;
  padding: 9px 16px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid #dfe4ec;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -3px 12px rgba(20,27,43,.045);
  backdrop-filter: blur(12px);
}
.room-composer-form[data-room-composer="chat"] {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.room-composer-form[data-room-composer="chat"] .room-composer-row {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.composer-add-wrap {
  position: relative;
  flex: 0 0 auto;
}
.composer-add-button {
  display: grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #6934dd;
  color: #fff;
  font: 400 25px/1 var(--font-sans);
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, transform .15s ease;
}
.composer-add-button:hover,
.composer-add-button[aria-expanded="true"] {
  background: #5826c9;
}
.composer-add-button:active {
  transform: scale(.96);
}
.composer-add-menu {
  position: absolute;
  z-index: 90;
  left: 0;
  bottom: calc(100% + 10px);
  width: 164px;
  padding: 6px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(22,28,45,.13);
}
.composer-add-menu[hidden] {
  display: none;
}
.composer-add-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3d424d;
  font: 550 12px/1 var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.composer-add-option:hover {
  background: #f7f4ff;
  color: #6330ce;
}
.composer-add-option img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.composer-add-wrap > .attachment-popover {
  left: 0;
  bottom: calc(100% + 10px);
}
.room-composer-form[data-room-composer="chat"] .chat-related-chips {
  flex: 0 1 auto;
  max-width: 180px;
}
.room-composer-form[data-room-composer="chat"] .room-composer-input {
  flex: 1 1 auto;
  width: 20px;
  min-width: 120px;
  min-height: 42px !important;
  max-height: 112px;
  padding: 10px 12px !important;
  border: 1px solid #dce2eb !important;
  border-radius: 8px !important;
  outline: 0;
  background: #f8f9fc !important;
  color: var(--ink) !important;
  font: 14px/1.4 var(--font-sans) !important;
  resize: none;
}
.room-composer-form[data-room-composer="chat"] .room-composer-input:focus {
  border-color: #cdbcf6 !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(105,52,221,.07);
}
.room-composer-form[data-room-composer="chat"] .composer-tool-wrap {
  position: relative;
  flex: 0 0 auto;
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #454b56;
  font: 700 11px/1 var(--font-sans);
  cursor: pointer;
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button:hover,
.room-composer-form[data-room-composer="chat"] .composer-tool-button[aria-expanded="true"] {
  background: #f1f3f7;
  color: var(--ink);
}
.room-composer-form[data-room-composer="chat"] .composer-tool-button svg {
  width: 18px;
  height: 18px;
}
.room-composer-form[data-room-composer="chat"] .composer-send-button {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #6934dd;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
}
.room-composer-form[data-room-composer="chat"] .composer-send-button:hover {
  background: #5826c9;
  box-shadow: 0 4px 12px rgba(105,52,221,.18);
}
.room-composer-form[data-room-composer="chat"] .composer-link-preview,
.room-composer-form[data-room-composer="chat"] .room-composer-error {
  margin-left: 46px;
}

/* Dark mode keeps the same hierarchy without white-on-white regressions. */
body[data-studio-theme="dark"] .room-main.workspace-main {
  background: #17141c;
}
body[data-studio-theme="dark"] .thread-card,
body[data-studio-theme="dark"] .context-rail,
body[data-studio-theme="dark"] .room-composer-dock:has(.room-composer-form[data-room-composer="chat"]),
body[data-studio-theme="dark"] .thread-more-popover,
body[data-studio-theme="dark"] .composer-add-menu,
body[data-studio-theme="dark"] .room-rail-more-menu {
  border-color: #3c3544;
  background: #211d27;
}
body[data-studio-theme="dark"] .chat-replies,
body[data-studio-theme="dark"] .room-composer-form[data-room-composer="chat"] .room-composer-input {
  border-color: #41394a !important;
  background: #19161e !important;
}
body[data-studio-theme="dark"] .chat-message-body,
body[data-studio-theme="dark"] .thread-more-popover button,
body[data-studio-theme="dark"] .composer-add-option {
  color: #ded9e5;
}
body[data-studio-theme="dark"] .thread-footer .heart-button,
body[data-studio-theme="dark"] .thread-footer .text-link,
body[data-studio-theme="dark"] .room-rail-icon-button,
body[data-studio-theme="dark"] .room-rail-more > summary {
  border-color: #403846;
  background: #211d27;
}
body[data-studio-theme="dark"] .room-event-date,
body[data-studio-theme="dark"] .room-rail-section-heading > svg,
body[data-studio-theme="dark"] .room-participant-icon {
  color: #ded9e5;
}

/* Existing app shell collapses at these widths; keep chat aligned with it. */
@media (max-width: 1150px) {
  .room-composer-dock:has(.room-composer-form[data-room-composer="chat"]) {
    left: 196px;
  }
}
@media (max-width: 800px) {
  .room-main.workspace-main {
    padding: 18px 14px calc(154px + env(safe-area-inset-bottom));
  }
  .room-composer-dock:has(.room-composer-form[data-room-composer="chat"]) {
    left: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding-inline: 10px;
  }
  .chat-replies {
    margin-left: 12px;
    padding-left: 12px;
  }
  .thread-footer,
  .chat-message-title,
  .chat-message-body,
  .chat-link-preview,
  .embedded-video,
  .chat-attachments,
  .related-context-links,
  .chat-gif-preview,
  .wistudi-content-preview {
    margin-left: 0;
  }
  .chat-message .person-line {
    padding-right: 34px;
  }
}
@media (max-width: 520px) {
  .room-composer-form[data-room-composer="chat"] .room-composer-row {
    gap: 4px;
  }
  .composer-add-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .room-composer-form[data-room-composer="chat"] .composer-tool-button {
    width: 30px;
    min-width: 30px;
  }
  .room-composer-form[data-room-composer="chat"] .composer-send-button {
    width: 38px;
    min-width: 38px;
    flex-basis: 38px;
    height: 38px;
  }
  .room-composer-form[data-room-composer="chat"] .chat-related-chips {
    display: none;
  }
  .thread-card {
    padding: 12px;
  }
  .thread-card .avatar,
  .chat-message-root .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}


/* Inline thread replies and non-disruptive reactions — 2026-09-24 */

/* Host identity stays visible beside the author without reintroducing chat-kind labels. */
.chat-host-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0e8ff;
  color: #6b32d6;
  font: 700 10.5px/1 var(--font-sans);
  vertical-align: 1px;
}
body[data-studio-theme="dark"] .chat-host-badge {
  background: #392850;
  color: #d6b8ff;
}

/* Reactions are intentionally bare icons, not pill/button wrappers. */
.thread-footer {
  align-items: center;
  gap: 14px;
}
.thread-footer .heart-button,
.thread-footer .thread-reply-button {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777d89;
  font: 600 11.5px/1 var(--font-sans);
  box-shadow: none;
  cursor: pointer;
}
.thread-footer .heart-button:hover,
.thread-footer .thread-reply-button:hover {
  border: 0;
  background: transparent;
  color: #343a45;
}
.thread-footer .heart-button:disabled,
.thread-footer .thread-reply-button:disabled {
  opacity: .5;
  cursor: default;
}
.thread-footer .heart-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
  transition: fill 140ms ease, color 140ms ease, transform 140ms ease;
}
.thread-footer .heart-button.is-liked {
  border: 0;
  background: transparent;
  color: #df3348;
}
.thread-footer .heart-button.is-liked svg {
  fill: #ef4057;
  color: #ef4057;
  transform: scale(1.05);
}
.thread-footer .thread-reply-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  transition: fill 140ms ease, color 140ms ease, transform 140ms ease;
}
.thread-footer .thread-reply-button.is-active {
  color: #b78100;
}
.thread-footer .thread-reply-button.is-active svg {
  fill: #f4c43d;
  color: #d39a00;
  transform: scale(1.05);
}
.thread-heart-count,
.thread-reply-count {
  min-width: 8px;
  color: currentColor;
  font-size: 11px;
  font-weight: 650;
}
body[data-studio-theme="dark"] .thread-footer .heart-button,
body[data-studio-theme="dark"] .thread-footer .thread-reply-button {
  border: 0;
  background: transparent;
  color: #aaa5b2;
}
body[data-studio-theme="dark"] .thread-footer .heart-button.is-liked {
  color: #ff5a6f;
}
body[data-studio-theme="dark"] .thread-footer .thread-reply-button.is-active {
  color: #f4c43d;
}

/* Inline reply field sits inside the selected conversation. */
.inline-reply-slot {
  margin: 10px 0 0 51px;
}
.inline-reply-slot:empty {
  display: none;
}
.inline-reply-composer {
  position: relative;
  width: min(100%, 760px);
  margin: 0;
}
.inline-reply-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(24, 30, 45, .035);
}
.inline-reply-row:focus-within {
  border-color: #cbb9f7;
  box-shadow: 0 0 0 3px rgba(105, 52, 221, .07);
}
.inline-reply-input {
  flex: 1 1 auto;
  min-width: 90px;
  min-height: 34px;
  max-height: 110px;
  padding: 7px 3px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 14px/1.4 var(--font-sans);
}
.inline-reply-input::placeholder {
  color: #989da9;
}
.inline-reply-composer .composer-tool-wrap {
  position: relative;
  flex: 0 0 auto;
}
.inline-reply-tool {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #555b66;
  font: 800 10.5px/1 var(--font-sans);
  cursor: pointer;
}
.inline-reply-tool:hover,
.inline-reply-tool[aria-expanded="true"] {
  background: #f1f3f7;
  color: #2e333c;
}
.inline-reply-tool svg {
  width: 22px;
  height: 22px;
}
.inline-reply-send {
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-width: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #6934dd;
  color: #fff;
  cursor: pointer;
}
.inline-reply-send:hover {
  background: #5826c9;
}
.inline-reply-send svg {
  width: 18px;
  height: 18px;
}
.inline-reply-composer .room-composer-error {
  margin: 5px 0 0 10px;
}
body[data-studio-theme="dark"] .inline-reply-row {
  border-color: #41394a;
  background: #211d27;
}
body[data-studio-theme="dark"] .inline-reply-tool:hover,
body[data-studio-theme="dark"] .inline-reply-tool[aria-expanded="true"] {
  background: #302936;
}

/* Emoji chooser: roughly double the previous visual size. */
.emoji-popover {
  width: min(430px, calc(100vw - 28px));
}
.emoji-popover emoji-picker,
.chat-emoji-picker emoji-picker {
  width: 100%;
  height: 430px;
  --num-columns: 5;
  --emoji-size: 3rem;
}
.emoji-fallback {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.emoji-fallback button {
  min-width: 58px;
  min-height: 58px;
  font-size: 42px;
  line-height: 1;
}

/* Keep reply UI compact on phones while remaining in-thread. */
@media (max-width: 800px) {
  .inline-reply-slot {
    margin-left: 0;
  }
}
@media (max-width: 520px) {
  .inline-reply-row {
    gap: 3px;
    padding-left: 8px;
  }
  .inline-reply-tool {
    width: 30px;
    min-width: 30px;
  }
  .inline-reply-send {
    width: 34px;
    min-width: 34px;
  }
  .emoji-popover emoji-picker,
  .chat-emoji-picker emoji-picker {
    height: 380px;
    --num-columns: 4;
    --emoji-size: 2.75rem;
  }
}


/* Registration verification gate and header icon — 2026-09-24 */

/* Registrations lives only in the header: supplied calendar artwork, no pill/wrapper. */
.header-actions {
  gap: 12px;
}
.manage-events-header-wrap {
  flex: 0 0 auto;
}
.manage-events-header-link.registration-header-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  text-decoration: none;
  transition: opacity var(--ease-ui), transform var(--ease-ui);
}
.manage-events-header-link.registration-header-icon:hover,
.manage-events-header-link.registration-header-icon:focus-visible {
  transform: translateY(-1px);
  border: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  opacity: .82;
}
.manage-events-header-link.registration-header-icon:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 3px;
  border-radius: 7px;
}
.registration-header-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.header-action-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  margin: 0 5px 0 3px;
  background: var(--line);
}
body[data-studio-theme="dark"] .manage-events-header-link.registration-header-icon,
body[data-studio-theme="dark"] .manage-events-header-link.registration-header-icon:hover,
body[data-studio-theme="dark"] .manage-events-header-link.registration-header-icon:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* The room stays genuinely locked until the emailed code is confirmed. */
.room-access-gate {
  width: min(740px, calc(100% - 32px));
}
.room-registration-reveal {
  margin-top: 20px;
}
.room-registration-code-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.room-registration-code-form[hidden] {
  display: none !important;
}
.room-registration-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}
.room-registration-code-row input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: 650 16px/1.2 var(--font-sans);
  letter-spacing: .11em;
}
.room-registration-code-row input::placeholder {
  letter-spacing: 0;
  font-weight: 500;
}
.room-registration-code-row input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.room-registration-code-row .button {
  min-width: 170px;
  margin: 0;
  white-space: nowrap;
}
.room-registration-code-error {
  margin: 0;
  color: #b4233f;
  font-size: 12px;
  line-height: 1.4;
}
.room-registration-code-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.room-registration-code-help .text-button {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.registration-pending-state .actions {
  margin-top: 18px;
}
.registration-verification-warning {
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 9px;
  background: #fff5e6;
  color: #8a5b00;
  font-size: 12px;
  line-height: 1.45;
}
body[data-studio-theme="dark"] .room-registration-code-row input {
  border-color: #463d50;
  background: #211d27;
  color: var(--ink);
}
body[data-studio-theme="dark"] .registration-verification-warning {
  background: #3b2c15;
  color: #ffd98b;
}

@media (max-width: 680px) {
  .header-actions {
    gap: 8px;
  }
  .manage-events-header-link.registration-header-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .registration-header-icon img {
    width: 31px;
    height: 31px;
  }
  .header-action-divider {
    height: 26px;
    margin-inline: 2px;
  }
}
@media (max-width: 520px) {
  .room-access-gate {
    width: calc(100% - 20px);
    padding: 22px 18px;
  }
  .room-registration-code-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }
  .room-registration-code-row .button {
    min-width: 0;
    padding-inline: 11px;
    font-size: 12px;
  }
  .room-registration-code-row input {
    padding-inline: 10px;
    font-size: 15px;
  }
  .room-registration-code-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}


/* Event Builder refresh — clean stepper and rail draft — 2026-09-24 */

.builder-page {
  max-width: 1360px;
}

.builder-page .builder-heading {
  margin: 0;
}
.builder-heading h1 {
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.builder-heading .lead {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Clear four-step journey inspired by the cleaner reference layout. */
.builder-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  margin: 34px 0 34px;
  padding: 0 4px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.builder-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: color-mix(in srgb, var(--line) 92%, transparent);
}
.builder-flow button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color var(--ease-ui), transform var(--ease-ui);
}
.builder-flow button:hover {
  color: var(--ink);
}
.builder-flow button:focus-visible {
  outline: 0;
}
.builder-flow button:focus-visible > span {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.builder-flow button > span {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  min-width: 41px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--canvas) 88%, var(--white));
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  box-shadow: 0 2px 7px rgba(42, 32, 57, .025);
  transition: border-color var(--ease-ui), background var(--ease-ui), color var(--ease-ui), box-shadow var(--ease-ui), transform var(--ease-ui);
}
.builder-flow button > strong {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  white-space: normal;
}
.builder-flow button[aria-current="step"] {
  color: var(--brand);
}
.builder-flow button[aria-current="step"] > span {
  border-color: transparent;
  background: linear-gradient(135deg, #8059df 0%, #6841b5 100%);
  color: #fff;
  box-shadow: 0 7px 18px rgba(104, 65, 181, .22);
}
.builder-flow button[aria-current="step"] > strong {
  font-weight: 750;
}

/* Remove the old banner/draft visual weight; content starts directly below the journey. */
.event-builder-form {
  margin-top: 0;
}
.builder-columns {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(34px, 4vw, 52px);
}
.builder-section:first-child {
  padding-top: 0;
}

/* Modern right rail. */
.builder-sticky {
  top: 24px;
  padding: 24px 24px 22px;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 15px 38px rgba(37, 28, 52, .075);
}
.builder-sticky > .eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
  text-transform: none;
}
.builder-sticky h2 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.builder-checklist {
  margin: 20px 0 0;
  padding-left: 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.builder-checklist li {
  padding: 5px 0;
}
.builder-sticky hr {
  margin: 20px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
}
.builder-sticky > p.muted.small {
  margin: 0;
  line-height: 1.55;
}

/* Only one saved event draft is surfaced, quietly, inside the rail. */
.builder-saved-draft-rail {
  display: grid;
  gap: 9px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.builder-saved-draft-rail[hidden] {
  display: none !important;
}
.builder-saved-draft-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.builder-saved-draft-copy > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: .01em;
}
.builder-saved-draft-copy > strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-saved-draft-copy > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.builder-draft-open {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.builder-draft-open:hover {
  color: #56309c;
}
.builder-draft-open:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}
.builder-draft-open .event-management-action-icon {
  width: 16px;
  height: 16px;
}

/* Keep edit-state information useful without turning it into another large strip. */
.builder-published-edit-notice {
  margin: -14px 0 30px;
  border-radius: 13px;
}

body[data-studio-theme="dark"] .builder-sticky {
  border-color: #3d3545;
  background: #191720;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}
body[data-studio-theme="dark"] .builder-flow button > span {
  border-color: #443b4d;
  background: #211d27;
}
body[data-studio-theme="dark"] .builder-flow::before {
  background: #443b4d;
}
body[data-studio-theme="dark"] .builder-draft-open:hover {
  color: #d7c0f7;
}

@media (max-width: 1050px) {
  .builder-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .builder-flow {
    margin: 28px 0 30px;
    padding-bottom: 24px;
  }
  .builder-flow button > strong {
    font-size: 12px;
  }
  .builder-columns {
    grid-template-columns: 1fr;
  }
  .builder-aside {
    order: 0;
  }
  .builder-sticky {
    position: static;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .builder-heading h1 {
    font-size: 30px;
  }
  .builder-heading .lead {
    font-size: 14px;
  }
  .builder-flow {
    margin-top: 26px;
    padding-inline: 0;
  }
  .builder-flow::before {
    top: 18px;
  }
  .builder-flow button {
    gap: 7px;
    padding-inline: 3px;
  }
  .builder-flow button > span {
    width: 37px;
    height: 37px;
    min-width: 37px;
    font-size: 13px;
  }
  .builder-flow button > strong {
    font-size: 11px;
    line-height: 1.25;
  }
  .builder-sticky {
    padding: 20px;
    border-radius: 14px;
  }
}


/* Five-step Event Builder + artwork workflow refinements — 2026-09-24 */

/* Five equal steps. No purple selected panel or filled active circle. */
.builder-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.builder-flow::before {
  left: 10%;
  right: 10%;
}
.builder-flow button,
.builder-flow button:hover,
.builder-flow button[aria-current="step"] {
  background: transparent !important;
  color: var(--muted);
  box-shadow: none !important;
}
.builder-flow button[aria-current="step"] {
  color: var(--ink);
}
.builder-flow button > span,
.builder-flow button[aria-current="step"] > span {
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
  background: color-mix(in srgb, var(--canvas) 88%, var(--white));
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(42, 32, 57, .035);
}
.builder-flow button > strong,
.builder-flow button[aria-current="step"] > strong {
  color: inherit;
  font-weight: 600;
}
.builder-flow button[aria-current="step"] > strong {
  font-weight: 700;
}

/* Give every Event Builder field a subtle lifted surface. */
#event-builder-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#event-builder-form select,
#event-builder-form textarea {
  border: 1px solid color-mix(in srgb, var(--line) 94%, #c8c3d2);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(35, 27, 50, .055);
  transition: border-color var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui);
}
#event-builder-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
#event-builder-form select:focus,
#event-builder-form textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  outline: 0;
  box-shadow: 0 4px 13px rgba(35, 27, 50, .065), 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}

.builder-custom-duration {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.builder-custom-duration > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.builder-custom-duration[hidden] {
  display: none !important;
}

/* Right rail typography is deliberately larger and easier to scan. */
.builder-sticky > .eyebrow {
  font-size: 15px;
}
.builder-sticky h2 {
  font-size: 24px;
}
.builder-checklist {
  font-size: 16px;
  line-height: 1.5;
}
.builder-checklist li {
  padding: 6px 0;
}
.builder-sticky > p.muted.small {
  font-size: 14px;
}
.builder-saved-draft-copy {
  gap: 5px;
}
.builder-saved-draft-copy > strong {
  font-size: 16px;
  line-height: 1.42;
}
.builder-saved-draft-copy > small {
  font-size: 13px;
}
.builder-saved-draft-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff2b8;
  color: #7b5d00 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
}
.builder-draft-open {
  margin-top: 2px;
  font-size: 14px;
}

/* Artwork and promotion step. */
.builder-artwork-section {
  gap: 20px;
}
.event-artwork-surface {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--canvas) 42%, var(--white));
  box-shadow: 0 8px 24px rgba(35, 27, 50, .035);
}
.event-artwork-surface-heading {
  margin-bottom: 14px;
}
.event-artwork-surface-heading h3,
.event-artwork-card-heading h3,
.event-promo-video-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 750;
}
.event-artwork-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
}
.event-artwork-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--line) 93%, transparent);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(35, 27, 50, .045);
}
.event-artwork-card-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}
.event-artwork-card-heading > span {
  color: var(--muted);
  font-size: 13px;
}
.event-artwork-dropzone {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 9%, var(--line));
  border-radius: 13px;
  background:
    radial-gradient(circle at 78% 30%, rgba(104, 65, 181, .07) 0 34px, transparent 35px),
    linear-gradient(145deg, rgba(104, 65, 181, .035), rgba(104, 65, 181, .08));
  cursor: pointer;
  isolation: isolate;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.event-artwork-dropzone.is-banner {
  aspect-ratio: 32 / 9;
  min-height: 145px;
}
.event-artwork-dropzone.is-listing {
  aspect-ratio: 16 / 9;
  min-height: 145px;
}
.event-artwork-dropzone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: -42%;
  height: 70%;
  border-radius: 50% 50% 0 0;
  background: rgba(104, 65, 181, .06);
  transform: rotate(-4deg);
}
.event-artwork-dropzone:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 7%, transparent), 0 7px 20px rgba(74, 46, 123, .06);
}
.event-artwork-dropzone.is-dragging {
  border-color: color-mix(in srgb, var(--brand) 68%, var(--line));
  background:
    radial-gradient(circle at 78% 30%, rgba(104, 65, 181, .12) 0 34px, transparent 35px),
    linear-gradient(145deg, rgba(104, 65, 181, .08), rgba(104, 65, 181, .15));
  box-shadow: 0 0 0 4px rgba(104, 65, 181, .08), 0 12px 28px rgba(74, 46, 123, .12);
  transform: translateY(-2px);
}
.event-artwork-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.event-artwork-placeholder {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px;
  color: var(--brand);
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}
.event-artwork-placeholder strong {
  font-size: 14px;
}
.event-artwork-placeholder small {
  color: var(--muted);
  font-size: 12px;
}
.event-artwork-plus {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(104, 65, 181, .09);
  transition: transform 180ms ease, background 180ms ease;
}
.event-artwork-plus svg {
  width: 25px;
  height: 25px;
}
.event-artwork-dropzone:hover .event-artwork-plus {
  transform: scale(1.05);
}
.event-artwork-dropzone.is-dragging .event-artwork-placeholder {
  opacity: .18;
  transform: scale(.97);
}
.event-artwork-dropzone.is-dragging .event-artwork-plus {
  transform: translateY(-4px) scale(1.08);
  background: rgba(104, 65, 181, .14);
}
.event-artwork-drag-label {
  position: absolute;
  z-index: 3;
  opacity: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  transform: translateY(7px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.event-artwork-dropzone.is-dragging .event-artwork-drag-label {
  opacity: 1;
  transform: translateY(0);
}
.event-artwork-dropzone > img[data-artwork-preview] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-artwork-dropzone.has-media .event-artwork-placeholder {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: flex;
  width: auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 17, 27, .7);
  color: #fff;
  opacity: 0;
  backdrop-filter: blur(6px);
}
.event-artwork-dropzone.has-media:hover .event-artwork-placeholder,
.event-artwork-dropzone.has-media:focus-within .event-artwork-placeholder {
  opacity: 1;
}
.event-artwork-dropzone.has-media .event-artwork-plus {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,.14);
}
.event-artwork-dropzone.has-media .event-artwork-plus svg {
  width: 14px;
  height: 14px;
}
.event-artwork-dropzone.has-media .event-artwork-placeholder small {
  display: none;
}

/* Promo video: URL stays visible; upload is direct, inline, and shows real transfer progress. */
.event-promo-video-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 93%, transparent);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(35, 27, 50, .045);
}
.event-promo-video-copy h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.event-promo-video-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.optional-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}
.event-promo-video-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.promo-video-link-field {
  position: relative;
}
.promo-video-link-field input {
  width: 100%;
  min-height: 44px;
  padding-right: 46px !important;
}
.promo-video-insert {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  transform: translateY(-50%);
  cursor: pointer;
}
.promo-video-insert:hover {
  background: var(--brand-soft);
}
.promo-video-insert svg {
  width: 18px;
  height: 18px;
}
.promo-video-upload-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(35, 27, 50, .05);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.promo-video-upload-button:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  color: var(--brand);
}
.promo-video-upload-button svg {
  width: 18px;
  height: 18px;
}
.promo-video-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.promo-upload-progress {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-soft) 35%, var(--canvas));
}
.promo-upload-progress[hidden] {
  display: none !important;
}
.promo-upload-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.promo-upload-progress-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-upload-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, var(--canvas));
}
.promo-upload-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 120ms linear;
}
.promo-upload-progress > small {
  color: var(--muted);
  font-size: 11px;
}
.promo-upload-progress[data-state="complete"] .promo-upload-track > span {
  background: #1f9d70;
}
.promo-upload-progress[data-state="error"] {
  background: #fff0f1;
}
.promo-upload-progress[data-state="error"] .promo-upload-track > span {
  background: #d54750;
}
.builder-promo-video-preview {
  overflow: hidden;
  border-radius: 11px;
}
.builder-promo-video-preview[hidden] {
  display: none !important;
}
.builder-promo-video-preview iframe,
.builder-promo-video-preview video {
  display: block;
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 11px;
  background: #111;
}

/* Dark-mode parity. */
body[data-studio-theme="dark"] #event-builder-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body[data-studio-theme="dark"] #event-builder-form select,
body[data-studio-theme="dark"] #event-builder-form textarea,
body[data-studio-theme="dark"] .event-artwork-card,
body[data-studio-theme="dark"] .event-promo-video-card {
  border-color: #403747;
  background: #211d27;
  box-shadow: 0 5px 16px rgba(0,0,0,.14);
}
body[data-studio-theme="dark"] .event-artwork-surface {
  border-color: #3d3545;
  background: #191720;
}
body[data-studio-theme="dark"] .event-artwork-dropzone {
  border-color: #4a3d58;
  background:
    radial-gradient(circle at 78% 30%, rgba(162, 123, 225, .08) 0 34px, transparent 35px),
    linear-gradient(145deg, rgba(104, 65, 181, .09), rgba(104, 65, 181, .13));
}
body[data-studio-theme="dark"] .builder-saved-draft-label {
  background: #493e16;
  color: #ffe58c !important;
}

@media (max-width: 900px) {
  .builder-flow {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .builder-flow::before {
    left: 60px;
    right: 60px;
  }
  .event-artwork-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .event-artwork-surface {
    padding: 14px;
  }
  .event-artwork-card {
    padding: 12px;
  }
  .event-promo-video-card {
    padding: 14px;
  }
  .event-promo-video-controls {
    grid-template-columns: 1fr;
  }
  .promo-video-upload-button {
    width: 100%;
  }
}


/* Audience Continuity Stage 2 — multi-room navigation — 2026-09-24 */

/* Desktop My rooms accordion. Current room is the only expanded workspace. */
.sidebar-my-rooms {
  display: grid;
  gap: 10px;
}
.sidebar-my-rooms-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sidebar-my-rooms-heading > span:last-child {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 0;
}
.sidebar-room-list {
  display: grid;
  gap: 5px;
}
.sidebar-room {
  min-width: 0;
  border-radius: 10px;
}
.sidebar-room.is-current {
  padding: 9px 7px 7px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--white));
}
.sidebar-room-current-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px;
  padding: 0 4px;
}
.sidebar-room-current-line > a {
  min-width: 0;
  color: var(--ink);
}
.sidebar-room-current-line strong,
.sidebar-room-copy strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}
.sidebar-room-current-line strong {
  white-space: normal;
}
.sidebar-room-copy strong {
  white-space: nowrap;
}
.sidebar-room-chevron {
  color: var(--brand);
  font-size: 17px;
  line-height: 1.05;
}
.sidebar-room-status {
  display: block;
  margin: 4px 6px 7px 21px;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-room-role,
.room-switcher-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}
.sidebar-room.is-current .event-workspace-nav {
  gap: 2px;
  margin-top: 4px;
}
.sidebar-room.is-current .event-workspace-nav a {
  min-height: 38px;
  padding: 8px 9px 8px 22px;
  border-radius: 8px;
  font-size: 13px;
}
.sidebar-room.is-current .event-workspace-nav svg {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.sidebar-room.is-collapsed {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  padding: 7px 8px;
  color: var(--muted);
}
.sidebar-room.is-collapsed:hover {
  background: var(--white);
  color: var(--ink);
}
.sidebar-room-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.sidebar-room-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-view-all-rooms {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 3px 8px 0 21px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.sidebar-view-all-rooms svg {
  width: 14px;
  height: 14px;
}
.mobile-room-switcher-trigger {
  display: none;
}
.room-switcher-scrim,
.room-switcher-sheet {
  display: none;
}

body[data-studio-theme="dark"] .sidebar-room.is-current {
  border-color: #4e3d63;
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--white));
}
body[data-studio-theme="dark"] .sidebar-room.is-collapsed:hover {
  background: var(--white);
}

@media (max-width: 800px) {
  .desktop-room-event-link {
    display: none !important;
  }
  .mobile-room-switcher-trigger {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .mobile-room-switcher-trigger:hover,
  .mobile-room-switcher-trigger[aria-expanded="true"] {
    background: var(--brand-soft);
  }
  .mobile-room-switcher-trigger > span:first-child {
    display: grid;
    min-width: 0;
    gap: 1px;
  }
  .mobile-room-switcher-trigger strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-room-switcher-trigger small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-room-switcher-caret {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 18px;
    line-height: 1;
  }
  .app-crumbbar .crumb-room-switcher {
    max-width: min(54vw, 360px);
  }
  .mobile-event-navigation .standalone-room-switcher {
    width: calc(100% - 18px);
    margin: 7px 9px 2px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    background: var(--canvas);
  }
  .room-switcher-scrim {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    background: rgba(15, 18, 26, .42);
    backdrop-filter: blur(2px);
  }
  .room-switcher-sheet {
    position: fixed;
    z-index: 95;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    max-height: min(82dvh, 720px);
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--white);
    box-shadow: 0 -20px 54px rgba(21, 18, 29, .22);
  }
  .room-switcher-grabber {
    width: 42px;
    height: 4px;
    margin: 0 auto 1px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 34%, transparent);
  }
  .room-switcher-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .room-switcher-sheet-header .eyebrow {
    font-size: 10px;
  }
  .room-switcher-sheet-header h2 {
    margin: 2px 0 0;
    font-size: 22px;
  }
  .room-switcher-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .room-switcher-search {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .room-switcher-search input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--canvas);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
  }
  .room-switcher-search input:focus {
    outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent);
    border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  }
  .room-switcher-results {
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    overscroll-behavior: contain;
  }
  .room-switcher-group + .room-switcher-group {
    margin-top: 18px;
  }
  .room-switcher-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px 7px;
  }
  .room-switcher-group-heading strong {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  .room-switcher-group-heading span {
    color: var(--muted);
    font-size: 11px;
  }
  .room-switcher-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 11px;
    color: var(--ink);
  }
  .room-switcher-item:hover,
  .room-switcher-item.is-current {
    background: var(--brand-soft);
  }
  .room-switcher-item + .room-switcher-item {
    margin-top: 3px;
  }
  .room-switcher-item-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
  }
  .room-switcher-item-copy strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .room-switcher-item-copy small {
    color: var(--muted);
    font-size: 11px;
  }
  .room-switcher-check {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
  }
  .room-switcher-check svg {
    width: 15px;
    height: 15px;
  }
  .room-switcher-view-all {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
  }
  .room-switcher-view-all svg {
    width: 16px;
    height: 16px;
  }
  .room-switcher-empty {
    display: grid;
    gap: 4px;
    padding: 28px 12px;
    color: var(--muted);
    text-align: center;
  }
  .room-switcher-empty strong {
    color: var(--ink);
  }
  body[data-studio-theme="dark"] .mobile-event-navigation .standalone-room-switcher,
  body[data-studio-theme="dark"] .room-switcher-close,
  body[data-studio-theme="dark"] .room-switcher-search input {
    background: var(--canvas);
  }
}

@media (max-width: 480px) {
  .app-crumbbar .room-back span {
    display: none;
  }
  .app-crumbbar .room-back {
    width: 38px;
    min-width: 38px;
    justify-content: center;
  }
  .app-crumbbar .crumb-room-switcher {
    max-width: none;
  }
  .room-switcher-sheet {
    padding-inline: 13px;
  }
}


/* Audience Continuity Stage 3 — room navigation preferences — 2026-09-24 */

.sidebar-room-current-line {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}
.sidebar-room.is-collapsed {
  grid-template-columns: minmax(0, 1fr) auto;
}
.sidebar-room-link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: inherit;
}
.sidebar-room-flags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}
.sidebar-room-muted {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  color: var(--muted);
}
.sidebar-room-muted svg {
  width: 14px;
  height: 14px;
}
.sidebar-hidden-count {
  color: var(--muted);
  font-weight: 550;
}
.room-preference-menu {
  position: relative;
  z-index: 7;
}
.room-preference-menu > summary {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 800 16px/1 var(--font-sans);
  letter-spacing: 1px;
  list-style: none;
  cursor: pointer;
}
.room-preference-menu > summary::-webkit-details-marker {
  display: none;
}
.room-preference-menu > summary:hover,
.room-preference-menu[open] > summary {
  background: var(--brand-soft);
  color: var(--brand);
}
.room-preference-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 20, 31, .14);
}
.room-preference-popover button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1.25 var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.room-preference-popover button:hover {
  background: var(--canvas);
  color: var(--brand);
}

/* Keep preference controls above the full-card hit area in My events. */
.event-card-art > .room-preference-menu {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
}
.event-card-art > .room-preference-menu > summary {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding-bottom: 7px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.94);
  color: #4f465c;
  box-shadow: 0 4px 13px rgba(25,20,31,.12);
}
.event-card-art > .room-preference-menu > summary:hover,
.event-card-art > .room-preference-menu[open] > summary {
  background: #fff;
  color: var(--brand);
}
.event-card-art > .room-preference-menu .room-preference-popover {
  min-width: 194px;
}
body[data-studio-theme="dark"] .room-preference-popover {
  border-color: #433b4b;
  background: var(--white);
}
body[data-studio-theme="dark"] .event-card-art > .room-preference-menu > summary {
  border-color: rgba(255,255,255,.16);
  background: rgba(31,27,38,.94);
  color: #e9e3ef;
}

@media (max-width: 800px) {
  .room-switcher-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 0;
  }
  .room-switcher-item-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 58px;
    padding: 9px 7px 9px 10px;
    color: var(--ink);
    border-radius: 11px;
  }
  .room-switcher-item.is-current,
  .room-switcher-item:hover {
    background: var(--brand-soft);
  }
  .room-switcher-item.is-current .room-switcher-item-link,
  .room-switcher-item:hover .room-switcher-item-link {
    background: transparent;
  }
  .room-switcher-item > .room-preference-menu {
    align-self: center;
    margin-right: 6px;
  }
  .room-switcher-item > .room-preference-menu > summary {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .room-switcher-item > .room-preference-menu .room-preference-popover {
    right: 0;
    min-width: 196px;
  }
}


/* Audience Continuity Stage 4 — participant room membership — 2026-09-24 */

.room-menu-divider {
  display: block;
  height: 1px;
  margin: 5px 3px;
  background: var(--line);
}
.room-preference-popover button.is-danger,
.room-rail-more-menu button.is-danger {
  color: #a92e35;
}
.room-preference-popover button.is-danger:hover,
.room-rail-more-menu button.is-danger:hover {
  background: #fff1f2;
  color: #8f2229;
}

.my-event-card-actions {
  position: relative;
  z-index: 5;
  display: flex;
  pointer-events: auto;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.my-event-card-actions .button {
  min-height: 36px;
  padding: 7px 11px;
}
.event-card.is-withdrawn .event-card-art img,
.event-card.is-withdrawn .event-art-placeholder {
  filter: saturate(.72);
}
.event-card.is-withdrawn .event-status {
  background: rgba(45, 42, 50, .84);
}

.conversation-paused-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 22px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-soft) 48%, var(--white));
}
.conversation-paused-notice > div {
  display: grid;
  gap: 2px;
}
.conversation-paused-notice strong {
  font-size: 13px;
}
.conversation-paused-notice span {
  color: var(--muted);
  font-size: 12px;
}

.room-membership-dialog-shell {
  width: min(560px, calc(100vw - 28px));
}
.room-membership-dialog {
  display: grid;
  gap: 16px;
}
.room-membership-dialog > p {
  margin: 0;
  line-height: 1.55;
}
.room-membership-impact {
  display: grid;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.room-membership-impact > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.room-membership-impact svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--brand);
}
.room-membership-dialog .actions {
  justify-content: flex-end;
  margin-top: 2px;
}
.room-withdrawn-gate,
.conversation-paused-gate {
  max-width: 720px;
}
.room-withdrawn-gate .actions,
.conversation-paused-gate .actions {
  justify-content: center;
}

.my-work-main {
  max-width: 1080px;
}
.my-work-page {
  display: grid;
  gap: 20px;
}
.my-work-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.my-work-back svg {
  width: 16px;
  height: 16px;
}
.my-work-membership-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--white));
}
.my-work-membership-note strong {
  font-size: 14px;
}
.my-work-membership-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.my-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.my-work-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.my-work-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(28, 23, 34, .06);
}
.my-work-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.my-work-card h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.3;
}
.my-work-card p {
  margin: 0;
  line-height: 1.55;
}
.my-work-reflection {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--canvas);
}
.my-work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 11px;
}
.my-work-card .text-link {
  width: fit-content;
}
.my-work-empty {
  max-width: 720px;
}

.room-rail-more-menu .room-menu-divider {
  margin: 4px 8px;
}
.room-rail-more-menu button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.room-rail-more-menu button:hover {
  background: var(--canvas);
}

body[data-studio-theme="dark"] .room-preference-popover button.is-danger:hover,
body[data-studio-theme="dark"] .room-rail-more-menu button.is-danger:hover {
  background: rgba(169,46,53,.14);
}
body[data-studio-theme="dark"] .conversation-paused-notice,
body[data-studio-theme="dark"] .my-work-membership-note {
  background: color-mix(in srgb, var(--brand-soft) 34%, var(--white));
}
body[data-studio-theme="dark"] .my-work-card,
body[data-studio-theme="dark"] .room-membership-impact {
  background: var(--white);
}

@media (max-width: 800px) {
  .conversation-paused-notice {
    margin: 12px 12px 0;
    align-items: flex-start;
  }
  .my-work-main {
    padding-bottom: 82px;
  }
  .my-work-card {
    padding: 15px;
  }
}


/* Audience Continuity Stage 8 — creator invitation UX — 2026-09-25 */

.manage-registration-invite-table {
  min-width: 1260px;
}
.manage-registration-invite-table .manage-select-cell {
  width: 46px;
  min-width: 46px;
  padding-left: 13px;
  padding-right: 8px;
  text-align: center;
}
.manage-registration-invite-table .manage-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.manage-registration-invite-table .manage-select-cell input:disabled {
  cursor: default;
  opacity: .34;
}
.manage-registration-invite-table td:first-child {
  width: 46px;
  min-width: 46px;
}
.manage-registration-invite-table td:nth-child(2) {
  min-width: 220px;
}
.manage-registration-invite-table td:nth-child(2) strong,
.manage-registration-invite-table td:nth-child(2) span {
  display: block;
}
.manage-registration-invite-table td:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.manage-registration-invite-table tbody tr {
  transition: background .14s ease, box-shadow .14s ease;
}
.manage-registration-invite-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--white));
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--brand) 70%, transparent);
}
.manage-registration-invite-table tbody tr.is-selection-disabled {
  opacity: .62;
}
.manage-registration-invite-table tbody tr.is-selection-disabled:hover {
  background: var(--white);
}

.manage-selection-bar {
  position: sticky;
  z-index: 8;
  top: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-soft) 34%, var(--white));
  box-shadow: 0 7px 20px rgba(29, 23, 37, .06);
}
.manage-selection-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.manage-selection-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}
.manage-selection-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-selection-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.manage-row-action-cell {
  width: 46px;
  min-width: 46px;
  text-align: right;
}
.manage-row-menu {
  position: relative;
  display: inline-block;
}
.manage-row-menu > summary {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 800 18px/1 var(--font-sans);
  letter-spacing: 1px;
  list-style: none;
  cursor: pointer;
}
.manage-row-menu > summary::-webkit-details-marker {
  display: none;
}
.manage-row-menu > summary:hover,
.manage-row-menu[open] > summary {
  background: var(--brand-soft);
  color: var(--brand);
}
.manage-row-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 206px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 20, 31, .14);
}
.manage-row-popover button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1.25 var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.manage-row-popover button:hover {
  background: var(--canvas);
  color: var(--brand);
}
.manage-row-popover button.is-danger {
  color: #a92e35;
}
.manage-row-popover button.is-danger:hover {
  background: color-mix(in srgb, #a92e35 9%, var(--white));
  color: #92232a;
}

.creator-invite-dialog-shell {
  width: min(620px, calc(100vw - 28px));
}
.creator-invite-dialog {
  display: grid;
  gap: 14px;
}
.creator-invite-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.creator-invite-intro h3 {
  margin: 3px 0 4px;
  font-size: 20px;
  line-height: 1.25;
}
.creator-invite-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.creator-invite-skipped {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.creator-invite-note {
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--white));
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.creator-invite-target-list {
  display: grid;
  gap: 7px;
  max-height: min(420px, 56vh);
  overflow: auto;
  padding: 1px;
}
.creator-invite-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.creator-invite-target.is-available:hover {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 5px 15px rgba(29, 23, 37, .05);
}
.creator-invite-target.is-disabled {
  background: color-mix(in srgb, var(--canvas) 65%, var(--white));
}
.creator-invite-target-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.creator-invite-target-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-invite-target-main > span {
  color: var(--muted);
  font-size: 11.5px;
}
.creator-invite-target-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.creator-invite-target-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 5px 8px;
}
.creator-invite-capacity {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
}
.creator-invite-capacity.is-open {
  background: color-mix(in srgb, #2e9a76 11%, var(--white));
  color: #23775c;
}
.creator-invite-capacity.is-full {
  background: color-mix(in srgb, #b43c4e 9%, var(--white));
  color: #9a3141;
}
.creator-invite-target-action {
  min-width: 82px;
  min-height: 32px;
  padding: 6px 10px;
}
.creator-invite-target-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.creator-invite-capacity-link {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: auto;
  padding: 1px 0;
  color: var(--brand);
  font-size: 10.5px;
}
.creator-invite-empty {
  display: grid;
  gap: 4px;
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--canvas) 68%, var(--white));
  text-align: center;
}
.creator-invite-empty strong {
  font-size: 13px;
}
.creator-invite-empty span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.creator-invite-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.chat-reply-item {
  position: relative;
}
.chat-reply-tools {
  position: absolute;
  z-index: 5;
  top: 4px;
  right: 0;
}
.chat-reply-tools .thread-more-menu > summary {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.chat-reply-item:hover .chat-reply-tools .thread-more-menu > summary,
.chat-reply-item:focus-within .chat-reply-tools .thread-more-menu > summary,
.chat-reply-tools .thread-more-menu[open] > summary {
  opacity: 1;
  pointer-events: auto;
}

body[data-studio-theme="dark"] .manage-selection-bar,
body[data-studio-theme="dark"] .creator-invite-note {
  background: color-mix(in srgb, var(--brand-soft) 23%, var(--white));
}
body[data-studio-theme="dark"] .manage-registration-invite-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--white));
}
body[data-studio-theme="dark"] .manage-row-popover,
body[data-studio-theme="dark"] .creator-invite-target,
body[data-studio-theme="dark"] .creator-invite-empty {
  background: var(--white);
}
body[data-studio-theme="dark"] .creator-invite-target.is-disabled {
  background: color-mix(in srgb, var(--canvas) 58%, var(--white));
}
body[data-studio-theme="dark"] .creator-invite-capacity.is-open {
  background: color-mix(in srgb, #2e9a76 18%, var(--white));
  color: #8bd7ba;
}
body[data-studio-theme="dark"] .creator-invite-capacity.is-full {
  background: color-mix(in srgb, #b43c4e 18%, var(--white));
  color: #f0a0ad;
}
body[data-studio-theme="dark"] .manage-row-popover button.is-danger:hover {
  background: color-mix(in srgb, #a92e35 16%, var(--white));
}

@media (max-width: 800px) {
  .manage-selection-bar {
    top: 66px;
  }
  .creator-invite-target-list {
    max-height: 52vh;
  }
}
@media (max-width: 640px) {
  .manage-selection-bar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 11px;
  }
  .manage-selection-copy {
    width: 100%;
  }
  .manage-selection-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .creator-invite-dialog-shell {
    width: min(100vw - 18px, 620px);
  }
  .creator-invite-dialog {
    gap: 11px;
  }
  .creator-invite-intro {
    gap: 10px;
    flex-direction: column;
  }
  .creator-invite-target {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px;
  }
  .creator-invite-target-main strong {
    white-space: normal;
  }
  .creator-invite-target-side {
    width: 100%;
    grid-template-columns: auto minmax(90px, auto);
    justify-content: space-between;
    justify-items: start;
  }
  .creator-invite-target-side .creator-invite-target-action,
  .creator-invite-target-side .creator-invite-target-state {
    justify-self: end;
  }
  .creator-invite-capacity-link {
    justify-self: start;
  }
  .chat-reply-tools .thread-more-menu > summary {
    opacity: 1;
    pointer-events: auto;
  }
}


/* Audience Continuity Stage 8 — creator invitation UX — 2026-09-25 */

.manage-registration-invite-table {
  min-width: 1260px;
}
.manage-registration-invite-table .manage-select-cell {
  width: 46px;
  min-width: 46px;
  padding-left: 13px;
  padding-right: 8px;
  text-align: center;
}
.manage-registration-invite-table .manage-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.manage-registration-invite-table .manage-select-cell input:disabled {
  cursor: default;
  opacity: .34;
}
.manage-registration-invite-table td:first-child {
  width: 46px;
  min-width: 46px;
}
.manage-registration-invite-table td:nth-child(2) {
  min-width: 220px;
}
.manage-registration-invite-table td:nth-child(3) {
  min-width: 220px;
  overflow-wrap: anywhere;
}
.manage-registration-invite-table td:nth-child(2) strong,
.manage-registration-invite-table td:nth-child(2) span {
  display: block;
}
.manage-registration-invite-table td:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.manage-registration-invite-table tbody tr {
  transition: background .14s ease, box-shadow .14s ease;
}
.manage-registration-invite-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--white));
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--brand) 70%, transparent);
}
.manage-registration-invite-table tbody tr.is-selection-disabled {
  opacity: .62;
}
.manage-registration-invite-table tbody tr.is-selection-disabled:hover {
  background: var(--white);
}

.manage-selection-bar {
  position: sticky;
  z-index: 8;
  top: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-soft) 34%, var(--white));
  box-shadow: 0 7px 20px rgba(29, 23, 37, .06);
}
.manage-selection-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.manage-selection-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}
.manage-selection-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-selection-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.manage-row-action-cell {
  width: 46px;
  min-width: 46px;
  text-align: right;
}
.manage-row-menu {
  position: relative;
  display: inline-block;
}
.manage-row-menu > summary {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 800 18px/1 var(--font-sans);
  letter-spacing: 1px;
  list-style: none;
  cursor: pointer;
}
.manage-row-menu > summary::-webkit-details-marker {
  display: none;
}
.manage-row-menu > summary:hover,
.manage-row-menu[open] > summary {
  background: var(--brand-soft);
  color: var(--brand);
}
.manage-row-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 206px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 20, 31, .14);
}
.manage-row-popover button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1.25 var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.manage-row-popover button:hover {
  background: var(--canvas);
  color: var(--brand);
}
.manage-row-popover button.is-danger {
  color: #a92e35;
}
.manage-row-popover button.is-danger:hover {
  background: color-mix(in srgb, #a92e35 9%, var(--white));
  color: #92232a;
}

.creator-invite-dialog-shell {
  width: min(620px, calc(100vw - 28px));
}
.creator-invite-dialog {
  display: grid;
  gap: 14px;
}
.creator-invite-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.creator-invite-intro h3 {
  margin: 3px 0 4px;
  font-size: 20px;
  line-height: 1.25;
}
.creator-invite-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.creator-invite-skipped {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.creator-invite-note {
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--white));
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.creator-invite-target-list {
  display: grid;
  gap: 7px;
  max-height: min(420px, 56vh);
  overflow: auto;
  padding: 1px;
}
.creator-invite-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.creator-invite-target.is-available:hover {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 5px 15px rgba(29, 23, 37, .05);
}
.creator-invite-target.is-disabled {
  background: color-mix(in srgb, var(--canvas) 65%, var(--white));
}
.creator-invite-target-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.creator-invite-target-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-invite-target-main > span {
  color: var(--muted);
  font-size: 11.5px;
}
.creator-invite-target-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.creator-invite-target-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 5px 8px;
}
.creator-invite-capacity {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
}
.creator-invite-capacity.is-open {
  background: color-mix(in srgb, #2e9a76 11%, var(--white));
  color: #23775c;
}
.creator-invite-capacity.is-full {
  background: color-mix(in srgb, #b43c4e 9%, var(--white));
  color: #9a3141;
}
.creator-invite-target-action {
  min-width: 82px;
  min-height: 32px;
  padding: 6px 10px;
}
.creator-invite-target-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.creator-invite-capacity-link {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: auto;
  padding: 1px 0;
  color: var(--brand);
  font-size: 10.5px;
}
.creator-invite-empty {
  display: grid;
  gap: 4px;
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--canvas) 68%, var(--white));
  text-align: center;
}
.creator-invite-empty strong {
  font-size: 13px;
}
.creator-invite-empty span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.creator-invite-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.chat-reply-item {
  position: relative;
}
.chat-reply-tools {
  position: absolute;
  z-index: 5;
  top: 4px;
  right: 0;
}
.chat-reply-tools .thread-more-menu > summary {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.chat-reply-item:hover .chat-reply-tools .thread-more-menu > summary,
.chat-reply-item:focus-within .chat-reply-tools .thread-more-menu > summary,
.chat-reply-tools .thread-more-menu[open] > summary {
  opacity: 1;
  pointer-events: auto;
}

body[data-studio-theme="dark"] .manage-selection-bar,
body[data-studio-theme="dark"] .creator-invite-note {
  background: color-mix(in srgb, var(--brand-soft) 23%, var(--white));
}
body[data-studio-theme="dark"] .manage-registration-invite-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--white));
}
body[data-studio-theme="dark"] .manage-row-popover,
body[data-studio-theme="dark"] .creator-invite-target,
body[data-studio-theme="dark"] .creator-invite-empty {
  background: var(--white);
}
body[data-studio-theme="dark"] .creator-invite-target.is-disabled {
  background: color-mix(in srgb, var(--canvas) 58%, var(--white));
}
body[data-studio-theme="dark"] .creator-invite-capacity.is-open {
  background: color-mix(in srgb, #2e9a76 18%, var(--white));
  color: #8bd7ba;
}
body[data-studio-theme="dark"] .creator-invite-capacity.is-full {
  background: color-mix(in srgb, #b43c4e 18%, var(--white));
  color: #f0a0ad;
}
body[data-studio-theme="dark"] .manage-row-popover button.is-danger:hover {
  background: color-mix(in srgb, #a92e35 16%, var(--white));
}

@media (max-width: 800px) {
  .manage-selection-bar {
    top: 66px;
  }
  .creator-invite-target-list {
    max-height: 52vh;
  }
}
@media (max-width: 640px) {
  .manage-selection-bar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 11px;
  }
  .manage-selection-copy {
    width: 100%;
  }
  .manage-selection-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .creator-invite-dialog-shell {
    width: min(100vw - 18px, 620px);
  }
  .creator-invite-dialog {
    gap: 11px;
  }
  .creator-invite-intro {
    gap: 10px;
    flex-direction: column;
  }
  .creator-invite-target {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px;
  }
  .creator-invite-target-main strong {
    white-space: normal;
  }
  .creator-invite-target-side {
    width: 100%;
    grid-template-columns: auto minmax(90px, auto);
    justify-content: space-between;
    justify-items: start;
  }
  .creator-invite-target-side .creator-invite-target-action,
  .creator-invite-target-side .creator-invite-target-state {
    justify-self: end;
  }
  .creator-invite-capacity-link {
    justify-self: start;
  }
  .chat-reply-tools .thread-more-menu > summary {
    opacity: 1;
    pointer-events: auto;
  }
}


/* Stage 9 — participant invitation UX */
.participant-invitations-section{display:grid;gap:18px}
.participant-invitation-list{display:grid;gap:14px}
.participant-invitation-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid color-mix(in srgb,var(--line) 78%,transparent);border-radius:22px;background:var(--surface);box-shadow:0 10px 30px rgba(15,23,42,.05)}
.participant-invitation-card.is-signed{max-width:820px;padding:28px;border-radius:26px;box-shadow:0 20px 54px rgba(15,23,42,.09)}
.participant-invitation-card-main{min-width:0}
.participant-invitation-card h2{margin:8px 0 7px;font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.25}
.participant-invitation-card p{margin:4px 0}
.participant-invitation-kicker{display:flex;align-items:center;gap:7px;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.participant-invitation-kicker svg{width:16px;height:16px}
.participant-invitation-meta{font-size:.92rem;color:var(--text)}
.participant-invitation-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.participant-invitation-availability{display:inline-flex;align-items:center;margin-top:10px;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:750;background:color-mix(in srgb,var(--surface-2) 78%,transparent);color:var(--muted)}
.participant-invitation-availability.is-available{background:rgba(16,185,129,.1);color:#047857}
.participant-invitation-availability.is-full{background:rgba(245,158,11,.12);color:#a16207}
.participant-invitation-availability.is-unavailable{background:rgba(148,163,184,.13);color:var(--muted)}
.signed-invitation-landing{max-width:980px;margin:0 auto;padding:34px 0 64px}
.signed-invitation-landing .app-page-heading{margin-bottom:22px}
.signed-invitation-security,.participant-invitation-capacity-note{display:flex;align-items:flex-start;gap:9px;margin:16px 0 0;color:var(--muted);font-size:.84rem;line-height:1.5}
.signed-invitation-security svg,.participant-invitation-capacity-note svg{width:16px;height:16px;flex:0 0 auto;margin-top:2px}
.participant-invitation-loading{max-width:720px;padding:42px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.participant-invitation-detail,.participant-invitation-requirements,.participant-invitation-create{display:grid;gap:20px}
.participant-invitation-detail .lead{margin:0}
.participant-invitation-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.participant-invitation-detail-grid>div{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.participant-invitation-detail-grid dt{font-size:.75rem;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.participant-invitation-detail-grid dd{margin:5px 0 0;font-weight:650}
.participant-invitation-requirements-note{padding:14px 16px;border-radius:14px;background:rgba(99,102,241,.08)}
.participant-invitation-requirements-note p{margin:5px 0 0;color:var(--muted)}
.registration-invite-action{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.registration-invite-action h3,.registration-invite-action p{margin:0}
.registration-invite-action p{margin-top:4px}
.participant-invitation-create select{width:100%}
.private-chat-invitations{display:grid;gap:10px;margin:14px 0 4px}
.private-chat-invitation{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 15px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:16px;background:color-mix(in srgb,var(--surface-2) 82%,var(--surface));box-shadow:0 6px 18px rgba(15,23,42,.035)}
.private-chat-invitation.is-accepted{background:color-mix(in srgb,rgba(16,185,129,.08) 55%,var(--surface))}
.private-chat-invitation-copy{display:grid;gap:3px;min-width:0}
.private-chat-invitation-copy>strong{font-size:.94rem;line-height:1.3;color:var(--text)}
.private-chat-invitation-copy>span,.private-chat-invitation-copy>small{font-size:.8rem;line-height:1.35;color:var(--muted)}
.private-chat-invitation-copy .participant-invitation-kicker{margin-bottom:2px;font-size:.68rem}
.private-chat-invitation-status{font-weight:700}
.private-chat-invitation-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.private-chat-invitation-actions .button.compact{min-height:34px;padding:7px 11px;font-size:.78rem}
[data-studio-theme="dark"] .participant-invitation-card{box-shadow:0 12px 34px rgba(0,0,0,.22)}
[data-studio-theme="dark"] .participant-invitation-availability.is-available{color:#6ee7b7}
[data-studio-theme="dark"] .participant-invitation-availability.is-full{color:#fbbf24}

@media (max-width:720px){
  .participant-invitation-card,.participant-invitation-card.is-signed{align-items:stretch;flex-direction:column;padding:19px;border-radius:19px;gap:17px}
  .participant-invitation-actions{width:100%}
  .participant-invitation-actions .button{flex:1}
  .private-chat-invitation{align-items:stretch;flex-direction:column;gap:12px;padding:13px}
  .private-chat-invitation-actions{width:100%}
  .private-chat-invitation-actions .button{flex:1}
  .participant-invitation-detail-grid{grid-template-columns:1fr}
  .registration-invite-action{align-items:stretch;flex-direction:column}
  .signed-invitation-landing{padding-top:20px}
}

/* Stage 11 — participant progress and completion */
.event-progress-compact { display:grid; gap:8px; margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.event-progress-compact-heading { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:7px; font-size:13px; }
.event-progress-compact-heading strong { font-size:13px; }
.event-progress-compact-heading > span:last-child { color:var(--muted); justify-self:end; }
.progress-status-dot { width:8px; height:8px; border-radius:50%; background:var(--muted); }
[data-progress-status="in_progress"] .progress-status-dot { background:var(--brand); }
[data-progress-status="completed"] .progress-status-dot { background:var(--teal); }
.progress-meter { width:100%; height:7px; border-radius:999px; background:var(--canvas); overflow:hidden; }
.progress-meter > span { display:block; height:100%; border-radius:inherit; background:var(--brand); transition:width .25s ease; }
[data-progress-status="completed"] .progress-meter > span { background:var(--teal); }
.progress-meter.compact { width:110px; height:6px; }
.participant-progress-card { display:grid; gap:12px; }
.participant-progress-card h2 { margin:2px 0 0; font-size:20px; }
.participant-progress-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.participant-progress-percent { font-size:20px; font-variant-numeric:tabular-nums; }
.participant-progress-requirements { display:grid; gap:7px; margin:2px 0 0; padding:0; list-style:none; }
.participant-progress-requirements li { display:grid; grid-template-columns:20px 1fr; gap:7px; align-items:start; font-size:13px; color:var(--muted); }
.participant-progress-requirements li.is-complete { color:var(--text); }
.participant-progress-requirements li.is-complete > span:first-child { color:var(--teal); font-weight:800; }
.progress-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:18px 0; border:1px solid var(--line); border-radius:12px; background:var(--white); overflow:hidden; }
.progress-summary > div { display:grid; gap:3px; padding:16px 18px; }
.progress-summary > div + div { border-left:1px solid var(--line); }
.progress-summary strong { font-size:24px; line-height:1; font-variant-numeric:tabular-nums; }
.progress-summary span { color:var(--muted); font-size:13px; }
.manage-progress-toolbar { grid-template-columns:minmax(220px,1fr) auto; }
.manage-progress-status { display:flex; align-items:center; gap:12px; }
.progress-status-badge { display:inline-flex; align-items:center; min-height:26px; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:700; background:var(--canvas); color:var(--muted); white-space:nowrap; }
.progress-status-badge.is-in_progress { background:var(--brand-soft); color:var(--brand); }
.progress-status-badge.is-completed { background:var(--teal-soft); color:var(--teal); }
.completion-settings-dialog { display:grid; gap:18px; min-width:min(660px,calc(100vw - 48px)); }
.completion-settings-intro { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.completion-settings-intro h3 { margin:3px 0 5px; }
.completion-mode-note { padding:13px 14px; border:1px solid var(--line); border-radius:10px; background:var(--canvas); }
.completion-mode-note p { margin:4px 0 0; }
.completion-requirements { display:grid; gap:9px; }
.completion-settings-section-heading { display:flex; justify-content:space-between; gap:12px; margin-bottom:3px; }
.completion-settings-section-heading h3 { margin:0; }
.completion-settings-section-heading p { margin:4px 0 0; }
.completion-requirement-option { display:grid !important; grid-template-columns:18px 1fr; gap:11px; align-items:start; padding:12px 13px; border:1px solid var(--line); border-radius:10px; background:var(--white); cursor:pointer; }
.completion-requirement-option input { margin-top:3px; }
.completion-requirement-option span { display:grid; gap:2px; }
.completion-requirement-option small { color:var(--muted); text-transform:capitalize; }
body[data-studio-theme="dark"] .progress-summary,
body[data-studio-theme="dark"] .completion-requirement-option { background:var(--panel); }
body[data-studio-theme="dark"] .progress-meter,
body[data-studio-theme="dark"] .completion-mode-note { background:var(--panel-soft,var(--canvas)); }
@media (max-width: 760px) {
  .progress-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .progress-summary > div:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .progress-summary > div:nth-child(4) { border-top:1px solid var(--line); }
  .manage-progress-toolbar { grid-template-columns:1fr; }
  .manage-progress-toolbar .button { width:100%; }
  .manage-progress-status { align-items:flex-start; flex-direction:column; gap:7px; }
  .progress-meter.compact { width:100%; }
  .completion-settings-dialog { min-width:0; }
  .completion-settings-intro { flex-direction:column; }
}

/* Stage 11 main participant progress: remains visible when the context rail collapses. */
.participant-progress-main {
  display:grid;
  gap:12px;
  margin:0 0 18px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
}
.participant-progress-main-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.participant-progress-main-heading h2 {
  margin:2px 0 0;
  font-size:20px;
}
.participant-progress-main-heading > strong {
  font-size:22px;
  line-height:1.15;
  font-variant-numeric:tabular-nums;
}
.participant-progress-main-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
}
.participant-progress-main-list > span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:13px;
}
.participant-progress-main-list > span.is-complete {
  color:var(--text);
}
.participant-progress-main-list > span.is-complete b {
  color:var(--teal);
}
body[data-studio-theme="dark"] .participant-progress-main {
  background:var(--panel);
}
@media (max-width:760px) {
  .participant-progress-main {
    margin-bottom:14px;
    padding:14px;
  }
  .participant-progress-main-heading > strong {
    font-size:20px;
  }
  .participant-progress-main-list {
    display:grid;
    gap:7px;
  }
}


/* First-time Studio profile onboarding */
.identity-dialog[data-view="onboarding"] {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
}
.identity-onboarding-header {
  padding-bottom: 18px;
}
.identity-onboarding-content {
  padding-top: 22px;
}
.identity-onboarding-intro {
  margin: 0 0 22px;
  color: var(--muted, #6f6b78);
  line-height: 1.55;
}
.identity-onboarding-form {
  gap: 18px;
}
.identity-profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 4px 0 12px;
}
.identity-profile-avatar-circle {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border: 2px dashed rgba(111, 70, 214, .34);
  border-radius: 50%;
  padding: 6px;
  background: rgba(111, 70, 214, .035);
}
.identity-profile-avatar-circle > img,
.identity-profile-avatar-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, #faf9ff, #f0ebff);
  color: #746e82;
}
.identity-profile-avatar-placeholder svg {
  width: 42px;
  height: 42px;
}
.identity-profile-avatar-plus {
  position: absolute;
  right: -2px;
  bottom: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #6d3fd3;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(78, 48, 151, .24);
}
.identity-profile-avatar-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.identity-profile-avatar-copy > strong {
  font-size: 16px;
}
.identity-profile-avatar-copy > span {
  color: var(--muted, #6f6b78);
  line-height: 1.45;
}
.identity-profile-avatar-copy > small {
  color: var(--muted, #777381);
}
.identity-profile-avatar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  cursor: pointer;
}
.identity-profile-avatar-button svg {
  width: 18px;
  height: 18px;
}
.identity-profile-avatar-button[aria-busy="true"] {
  opacity: .65;
  pointer-events: none;
}
.identity-form [data-consent-submit]:disabled {
  opacity: .52;
  cursor: not-allowed;
}
@media (max-width: 620px) {
  .identity-profile-avatar-upload {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}


/* Studio UI refinement — share, event navigation and managed cards — 2026-09-28 */

/* Share is a focused public-link workflow rather than a social-sharing sheet. */
.share-event-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(27, 20, 38, .22);
}
.share-event-dialog::backdrop {
  background: rgba(24, 18, 31, .42);
  backdrop-filter: blur(2px);
}
.share-event-dialog .dialog-header {
  padding: 24px 28px 18px;
  border-bottom: 0;
}
.share-event-dialog .dialog-header h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -.025em;
}
.share-event-dialog .dialog-header .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  background: var(--canvas);
  box-shadow: none;
}
.share-event-dialog .share-content {
  display: grid;
  gap: 22px;
  padding: 0 28px 28px;
}
.share-event-dialog .share-intro {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.share-event-dialog .share-preview {
  display: grid;
  grid-template-columns: minmax(210px, 268px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 19px;
  background: color-mix(in srgb, var(--canvas) 54%, var(--white));
  box-shadow: 0 8px 24px rgba(36, 28, 49, .055);
}
.share-event-dialog .share-preview-art {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #251858, #7040c4 60%, #3b62dc);
  color: #fff;
  text-align: center;
  font-size: 13px;
}
.share-event-dialog .share-preview-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-event-dialog .share-preview-copy {
  min-width: 0;
}
.share-event-dialog .share-preview-brand {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.share-event-dialog .share-preview h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.28;
}
.share-event-dialog .share-preview p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.share-link-section {
  display: grid;
  gap: 10px;
}
.share-link-heading h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.share-link-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.share-link-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  gap: 8px;
  align-items: stretch;
}
.share-link-value {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid #ded9e6;
  border-radius: 13px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-link-icon-button {
  display: grid;
  width: 46px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #ded9e6;
  border-radius: 13px;
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
  transition: transform var(--ease-ui), border-color var(--ease-ui), background var(--ease-ui), box-shadow var(--ease-ui);
}
.share-link-icon-button:hover,
.share-link-icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 36%, #ded9e6);
  background: var(--brand-soft);
  box-shadow: 0 7px 18px rgba(55, 39, 79, .08);
}
.share-link-icon-button svg {
  width: 19px;
  height: 19px;
}
.share-access-note {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 15px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-soft) 68%, var(--white));
  color: var(--muted);
}
.share-access-note svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--brand);
}
.share-access-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.share-primary-copy {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

/* Event banner artwork should display unmodified; the old left-to-right veil
   made uploaded artwork look faded. */
.event-hero-media::after {
  content: none !important;
  background: none !important;
}

/* Keep expanded My rooms navigation inside the dark navigation system instead
   of drawing a second light card within the sidebar. */
.app-sidebar .sidebar-room.is-current,
.workspace-sidebar .sidebar-room.is-current,
body[data-studio-theme="dark"] .app-sidebar .sidebar-room.is-current,
body[data-studio-theme="dark"] .workspace-sidebar .sidebar-room.is-current {
  padding: 7px 0 5px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.app-sidebar .sidebar-room-current-line,
.workspace-sidebar .sidebar-room-current-line {
  padding-inline: 8px 5px;
}
.app-sidebar .sidebar-room-current-line > a,
.workspace-sidebar .sidebar-room-current-line > a {
  color: #f7f3fb;
}
.app-sidebar .sidebar-room-status,
.workspace-sidebar .sidebar-room-status {
  color: #9f96aa;
}
.app-sidebar .sidebar-room-chevron,
.workspace-sidebar .sidebar-room-chevron,
.app-sidebar .sidebar-view-all-rooms,
.workspace-sidebar .sidebar-view-all-rooms {
  color: #b992ed;
}
.app-sidebar .sidebar-room-role,
.workspace-sidebar .sidebar-room-role,
.app-sidebar .sidebar-my-rooms-heading > span:last-child,
.workspace-sidebar .sidebar-my-rooms-heading > span:last-child {
  background: rgba(112, 64, 196, .24);
  color: #dfcff7;
}
.app-sidebar .sidebar-room.is-collapsed,
.workspace-sidebar .sidebar-room.is-collapsed {
  color: #a99fb4;
}
.app-sidebar .sidebar-room.is-collapsed:hover,
.workspace-sidebar .sidebar-room.is-collapsed:hover,
body[data-studio-theme="dark"] .app-sidebar .sidebar-room.is-collapsed:hover,
body[data-studio-theme="dark"] .workspace-sidebar .sidebar-room.is-collapsed:hover {
  background: #24202a;
  color: #fff;
}
.app-sidebar .sidebar-room-copy small,
.workspace-sidebar .sidebar-room-copy small {
  color: #8f8799;
}

/* The sidebar remains scrollable without exposing a visual scrollbar. */
.app-sidebar,
.app-sidebar:hover,
.app-sidebar:focus-within {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}
.app-sidebar::-webkit-scrollbar,
.app-sidebar:hover::-webkit-scrollbar,
.app-sidebar:focus-within::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Managed event cards use one clear destination: the card opens the event;
   management actions remain explicit and sit above the card hit area. */
.my-managed-event-card {
  position: relative;
  cursor: pointer;
}
.my-managed-event-card .event-card-art,
.my-managed-event-card .event-card-body {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.my-managed-event-card .event-card-hit-area {
  z-index: 1;
}
.my-managed-event-card .room-preference-menu,
.my-managed-event-card .room-preference-menu *,
.my-managed-event-actions,
.my-managed-event-actions * {
  pointer-events: auto;
}
.my-managed-event-card .room-preference-menu {
  position: relative;
  z-index: 4;
}
.my-managed-event-actions {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}
.my-managed-event-actions .my-managed-registrations {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}
.my-managed-event-actions .my-managed-event-edit {
  display: grid;
  width: 46px;
  min-width: 46px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
}
.my-managed-event-edit .event-management-action-icon {
  width: 18px;
  height: 18px;
}
.my-managed-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 36px rgba(38, 29, 53, .11);
}
.my-managed-event-card {
  transition: transform var(--ease-ui), box-shadow var(--ease-ui), border-color var(--ease-ui);
}

@media (max-width: 640px) {
  .share-event-dialog {
    width: min(100vw - 20px, 900px);
    border-radius: 20px;
  }
  .share-event-dialog .dialog-header {
    padding: 20px 20px 15px;
  }
  .share-event-dialog .share-content {
    gap: 18px;
    padding: 0 20px 22px;
  }
  .share-event-dialog .share-preview {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }
  .share-event-dialog .share-preview-art {
    width: 100%;
  }
  .share-link-control {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 6px;
  }
  .share-link-icon-button {
    width: 44px;
    height: 46px;
  }
  .my-managed-event-actions {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
}


/* Stage 3 secure verification-link states */
.registration-verification-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.registration-verification-status,
.room-registration-email-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.room-registration-email-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.room-registration-email-actions .button {
  margin: 0;
}
.room-registration-email-actions .room-registration-email-status {
  flex: 1 0 100%;
}
.registration-pending-state .registration-verification-actions .button {
  width: 100%;
}
body[data-studio-theme="dark"] .registration-verification-status,
body[data-studio-theme="dark"] .room-registration-email-status {
  color: #b8b0c2;
}
@media (max-width: 520px) {
  .room-registration-email-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .room-registration-email-actions .button {
    width: 100%;
  }
}


/* Chat interaction refinements — 2026-09-28 */
.chat-host-badge {
  min-height: 0;
  margin-left: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 650 11px/1.2 var(--font-sans);
  vertical-align: baseline;
}
body[data-studio-theme="dark"] .chat-host-badge {
  background: transparent;
  color: #aaa3b7;
}
.chat-message-body.is-emoji-only {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: .02em;
}
.chat-replies .chat-message-body.is-emoji-only {
  font-size: 27px;
  line-height: 1.2;
}
.thread-footer .heart-button[aria-busy="true"] {
  pointer-events: none;
}


/* Publisher Studio sidebar CTA and simplified room shell — 2026-09-28 */
.sidebar-builder-cta {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 14px 6px 2px;
  border-top: 1px solid #2f2935;
}
.sidebar-builder-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #6f3bd8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(75, 36, 139, .24);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.sidebar-builder-button:hover,
.sidebar-builder-button:focus-visible {
  color: #fff;
  background: #7b46df;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(75, 36, 139, .31);
}
.sidebar-builder-button svg {
  width: 16px;
  height: 16px;
}
.sidebar-builder-cta p {
  margin: 0;
  color: #aaa1b5;
  font-size: 11.5px;
  line-height: 1.35;
}
.sidebar-builder-learn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: #c6b1ea;
  font-size: 11.5px;
  font-weight: 650;
}
.sidebar-builder-learn:hover,
.sidebar-builder-learn:focus-visible {
  color: #fff;
}
.sidebar-builder-learn svg {
  width: 13px;
  height: 13px;
}
.feature-access-gate .actions {
  margin-top: 20px;
}
@media (max-width: 800px) {
  .sidebar-builder-cta { display: none; }
}


/* Event-room empty states — supplied Wistudi artwork, 2026-09-28 */
.room-empty-state {
  display: grid;
  width: min(100%, 720px);
  min-height: 410px;
  margin: 6px auto 18px;
  padding: 38px 24px 52px;
  place-items: center;
  align-content: center;
  text-align: center;
}
.room-empty-state-art {
  display: block;
  width: 180px;
  max-width: 42vw;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(111, 59, 216, .08));
}
.room-empty-state h1,
.room-empty-state h2 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-family: "gg sans","Noto Sans",Inter,system-ui,sans-serif;
  font-size: clamp(25px, 2.25vw, 31px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.room-empty-state p {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}
.room-empty-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 82%, #fff);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.room-empty-state-pill svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.room-empty-state-timing {
  display: block;
  max-width: 560px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.room-empty-state-filtered {
  min-height: 250px;
  padding-block: 42px;
}
.room-empty-state-filtered h2 {
  font-size: 22px;
}
.room-empty-state-filtered p {
  margin-top: 6px;
  font-size: 14px;
}
.room-empty-state-whole {
  min-height: min(620px, calc(100vh - 190px));
  margin: 0 auto;
}
.room-empty-state-main {
  display: grid;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.question-list > .room-empty-state,
.chat-timeline > .room-empty-state {
  width: 100%;
}
.room-overview-build .room-empty-state {
  min-height: 330px;
  padding: 26px 20px 38px;
}
.room-overview-build .room-empty-state-art {
  width: 155px;
  margin-bottom: 12px;
}
.room-overview-build .room-empty-state h2 {
  font-size: 25px;
}
.room-overview-build .room-empty-state p {
  font-size: 15px;
}
body[data-studio-theme="dark"] .room-empty-state-pill {
  background: color-mix(in srgb, var(--brand) 20%, var(--white));
}
@media (max-width: 800px) {
  .room-empty-state {
    min-height: 350px;
    padding: 30px 18px 42px;
  }
  .room-empty-state-art {
    width: 150px;
  }
  .room-empty-state h1,
  .room-empty-state h2 {
    font-size: 25px;
  }
  .room-empty-state p {
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  .room-empty-state {
    min-height: 320px;
    padding-inline: 10px;
  }
  .room-empty-state-art {
    width: 132px;
  }
  .room-empty-state-pill {
    min-height: 39px;
    padding: 8px 14px;
    font-size: 13px;
  }
}


/* Welcome / Publisher bridge modal */
.welcome-publisher-dialog {
  width: min(575px, calc(100% - 28px));
  max-width: 575px;
  max-height: min(940px, calc(100dvh - 28px));
  margin: auto;
  padding: 10px 10px 14px;
  border: 1px solid #ededf3;
  border-radius: 24px;
  background: #fff;
  color: #11131f;
  box-shadow: 0 22px 58px rgba(44,40,70,.18);
  overflow: auto;
}
.welcome-publisher-dialog::backdrop {
  background: rgba(22,20,34,.48);
  backdrop-filter: blur(5px);
}
.welcome-publisher-dialog .welcome-publisher-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: 18px;
  background: #ececf3;
  line-height: 0;
}
.welcome-publisher-dialog .welcome-publisher-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ececf3;
}
.welcome-publisher-dialog .welcome-publisher-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,19,31,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #11131f;
  box-shadow: 0 6px 18px rgba(17,19,31,.12);
  cursor: pointer;
}
.welcome-publisher-dialog .welcome-publisher-close svg {
  width: 23px;
  height: 23px;
}
.welcome-publisher-dialog .welcome-publisher-content {
  padding: 13px 16px 0;
}
.welcome-publisher-dialog .welcome-publisher-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.welcome-publisher-dialog .welcome-publisher-brand img {
  display: block;
  width: 108px;
  height: auto;
}
.welcome-publisher-dialog .welcome-publisher-divider {
  width: 1px;
  height: 21px;
  background: #dedee7;
}
.welcome-publisher-dialog .welcome-publisher-brand-label {
  color: #555d72;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.welcome-publisher-dialog h2 {
  margin: 0;
  color: #11131f;
  font-size: clamp(27px, 4vw, 33px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 800;
}
.welcome-publisher-dialog .welcome-publisher-intro {
  max-width: 520px;
  margin: 5px 0 11px;
  color: #59627c;
  font-size: 14px;
  line-height: 1.35;
}
.welcome-publisher-dialog .welcome-publisher-cards {
  display: grid;
  gap: 8px;
}
.welcome-publisher-dialog .welcome-publisher-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 14px;
}
.welcome-publisher-dialog .welcome-publisher-card.is-explore {
  background: linear-gradient(90deg,#faf8ff 0%,#f5f1ff 100%);
}
.welcome-publisher-dialog .welcome-publisher-card.is-events {
  background: linear-gradient(90deg,#f7fbff 0%,#eef5ff 100%);
}
.welcome-publisher-dialog .welcome-publisher-card.is-publisher {
  background: linear-gradient(90deg,#f8fdfb 0%,#eefaf6 100%);
}
.welcome-publisher-dialog .welcome-publisher-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.welcome-publisher-dialog .welcome-publisher-card.is-explore .welcome-publisher-icon {
  color: #6f2cff;
  background: #eee6ff;
}
.welcome-publisher-dialog .welcome-publisher-card.is-events .welcome-publisher-icon {
  color: #2f80ed;
  background: #e4f0ff;
}
.welcome-publisher-dialog .welcome-publisher-card.is-publisher .welcome-publisher-icon {
  color: #18b98e;
  background: #ddf7ef;
}
.welcome-publisher-dialog .welcome-publisher-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.welcome-publisher-dialog .welcome-publisher-card strong {
  display: block;
  margin: 0 0 1px;
  color: #11131f;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.welcome-publisher-dialog .welcome-publisher-card span {
  color: #59627c;
  font-size: 12px;
  line-height: 1.25;
}
.welcome-publisher-dialog .welcome-publisher-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.welcome-publisher-dialog .welcome-publisher-action {
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  font-family: Inter, "Be Vietnam Pro", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.welcome-publisher-dialog .welcome-publisher-action:hover {
  transform: translateY(-1px);
}
.welcome-publisher-dialog .welcome-publisher-action.is-primary {
  color: #fff;
  background: linear-gradient(90deg,#6f2cff,#8b36f5);
  box-shadow: 0 8px 20px rgba(111,44,255,.22);
}
.welcome-publisher-dialog .welcome-publisher-action.is-secondary {
  color: #6f2cff;
  background: #fff;
  border: 2px solid #6f2cff;
}
.welcome-publisher-dialog .welcome-publisher-action svg {
  width: 22px;
  height: 22px;
}
.welcome-publisher-dialog .welcome-publisher-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #5c657b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.welcome-publisher-dialog .welcome-publisher-link:hover {
  color: #6f2cff;
}
.welcome-publisher-dialog .welcome-publisher-link svg {
  width: 20px;
  height: 20px;
}
body[data-studio-theme="dark"] .welcome-publisher-dialog {
  background: #fff;
  color: #11131f;
  border-color: #ededf3;
}
@media (max-width: 680px) {
  .welcome-publisher-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    padding: 8px 8px 12px;
    border-radius: 21px;
  }
  .welcome-publisher-dialog .welcome-publisher-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .welcome-publisher-dialog .welcome-publisher-close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
  }
  .welcome-publisher-dialog .welcome-publisher-content { padding: 16px 14px 0; }
  .welcome-publisher-dialog .welcome-publisher-brand { gap: 10px; margin-bottom: 11px; }
  .welcome-publisher-dialog .welcome-publisher-brand img { width: 118px; }
  .welcome-publisher-dialog .welcome-publisher-brand-label { font-size: 14px; }
  .welcome-publisher-dialog h2 { font-size: 30px; }
  .welcome-publisher-dialog .welcome-publisher-intro { margin-bottom: 14px; font-size: 15px; }
  .welcome-publisher-dialog .welcome-publisher-card {
    min-height: 58px;
    gap: 12px;
    padding: 9px 12px;
  }
  .welcome-publisher-dialog .welcome-publisher-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }
  .welcome-publisher-dialog .welcome-publisher-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .welcome-publisher-dialog .welcome-publisher-action { min-height: 46px; }
}


/* Event team management and verified Wistudi provenance */
.event-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(55, 210, 157, 0.42);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(25, 92, 72, 0.82);
  color: #d9fff0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-card-art {
  position: relative;
}

.event-card-art > .event-verified-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.event-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
}

.identity-event-team-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.identity-event-team-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: var(--surface-muted, rgba(255,255,255,0.04));
}

.identity-event-team-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.identity-event-team-card__meta {
  color: var(--muted, rgba(255,255,255,0.62));
  font-size: 0.82rem;
}

.identity-event-team-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.identity-legacy-role {
  color: var(--muted, rgba(255,255,255,0.62));
  font-size: 0.78rem;
}

.identity-team-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
.identity-team-role {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: var(--surface-muted, rgba(255,255,255,0.04));
}
.identity-team-role span {
  color: var(--muted, rgba(255,255,255,0.62));
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .identity-team-role-grid { grid-template-columns: 1fr; }
}


.identity-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface-muted, rgba(255,255,255,0.04));
}

.identity-settings-toggle input {
  accent-color: var(--teal, #37d29d);
}


/* Welcome / Publisher bridge modal */
.welcome-publisher-dialog {
  width: min(575px, calc(100% - 28px));
  max-width: 575px;
  max-height: min(940px, calc(100dvh - 28px));
  margin: auto;
  padding: 10px 10px 14px;
  border: 1px solid #ededf3;
  border-radius: 24px;
  background: #fff;
  color: #11131f;
  box-shadow: 0 22px 58px rgba(44,40,70,.18);
  overflow: auto;
}
.welcome-publisher-dialog::backdrop {
  background: rgba(22,20,34,.48);
  backdrop-filter: blur(5px);
}
.welcome-publisher-dialog .welcome-publisher-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: 18px;
  background: #ececf3;
  line-height: 0;
}
.welcome-publisher-dialog .welcome-publisher-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ececf3;
}
.welcome-publisher-dialog .welcome-publisher-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,19,31,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #11131f;
  box-shadow: 0 6px 18px rgba(17,19,31,.12);
  cursor: pointer;
}
.welcome-publisher-dialog .welcome-publisher-close svg {
  width: 23px;
  height: 23px;
}
.welcome-publisher-dialog .welcome-publisher-content {
  padding: 13px 16px 0;
}
.welcome-publisher-dialog .welcome-publisher-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.welcome-publisher-dialog .welcome-publisher-brand img {
  display: block;
  width: 108px;
  height: auto;
}
.welcome-publisher-dialog .welcome-publisher-divider {
  width: 1px;
  height: 21px;
  background: #dedee7;
}
.welcome-publisher-dialog .welcome-publisher-brand-label {
  color: #555d72;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.welcome-publisher-dialog h2 {
  margin: 0;
  color: #11131f;
  font-size: clamp(27px, 4vw, 33px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 800;
}
.welcome-publisher-dialog .welcome-publisher-intro {
  max-width: 520px;
  margin: 5px 0 11px;
  color: #59627c;
  font-size: 14px;
  line-height: 1.35;
}
.welcome-publisher-dialog .welcome-publisher-cards {
  display: grid;
  gap: 8px;
}
.welcome-publisher-dialog .welcome-publisher-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 14px;
}
.welcome-publisher-dialog .welcome-publisher-card.is-explore {
  background: linear-gradient(90deg,#faf8ff 0%,#f5f1ff 100%);
}
.welcome-publisher-dialog .welcome-publisher-card.is-events {
  background: linear-gradient(90deg,#f7fbff 0%,#eef5ff 100%);
}
.welcome-publisher-dialog .welcome-publisher-card.is-publisher {
  background: linear-gradient(90deg,#f8fdfb 0%,#eefaf6 100%);
}
.welcome-publisher-dialog .welcome-publisher-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.welcome-publisher-dialog .welcome-publisher-card.is-explore .welcome-publisher-icon {
  color: #6f2cff;
  background: #eee6ff;
}
.welcome-publisher-dialog .welcome-publisher-card.is-events .welcome-publisher-icon {
  color: #2f80ed;
  background: #e4f0ff;
}
.welcome-publisher-dialog .welcome-publisher-card.is-publisher .welcome-publisher-icon {
  color: #18b98e;
  background: #ddf7ef;
}
.welcome-publisher-dialog .welcome-publisher-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.welcome-publisher-dialog .welcome-publisher-card strong {
  display: block;
  margin: 0 0 1px;
  color: #11131f;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.welcome-publisher-dialog .welcome-publisher-card span {
  color: #59627c;
  font-size: 12px;
  line-height: 1.25;
}
.welcome-publisher-dialog .welcome-publisher-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.welcome-publisher-dialog .welcome-publisher-action {
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  font-family: Inter, "Be Vietnam Pro", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.welcome-publisher-dialog .welcome-publisher-action:hover {
  transform: translateY(-1px);
}
.welcome-publisher-dialog .welcome-publisher-action.is-primary {
  color: #fff;
  background: linear-gradient(90deg,#6f2cff,#8b36f5);
  box-shadow: 0 8px 20px rgba(111,44,255,.22);
}
.welcome-publisher-dialog .welcome-publisher-action.is-secondary {
  color: #6f2cff;
  background: #fff;
  border: 2px solid #6f2cff;
}
.welcome-publisher-dialog .welcome-publisher-action svg {
  width: 22px;
  height: 22px;
}
.welcome-publisher-dialog .welcome-publisher-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #5c657b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.welcome-publisher-dialog .welcome-publisher-link:hover {
  color: #6f2cff;
}
.welcome-publisher-dialog .welcome-publisher-link svg {
  width: 20px;
  height: 20px;
}
body[data-studio-theme="dark"] .welcome-publisher-dialog {
  background: #fff;
  color: #11131f;
  border-color: #ededf3;
}
@media (max-width: 680px) {
  .welcome-publisher-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    padding: 8px 8px 12px;
    border-radius: 21px;
  }
  .welcome-publisher-dialog .welcome-publisher-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .welcome-publisher-dialog .welcome-publisher-close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
  }
  .welcome-publisher-dialog .welcome-publisher-content { padding: 16px 14px 0; }
  .welcome-publisher-dialog .welcome-publisher-brand { gap: 10px; margin-bottom: 11px; }
  .welcome-publisher-dialog .welcome-publisher-brand img { width: 118px; }
  .welcome-publisher-dialog .welcome-publisher-brand-label { font-size: 14px; }
  .welcome-publisher-dialog h2 { font-size: 30px; }
  .welcome-publisher-dialog .welcome-publisher-intro { margin-bottom: 14px; font-size: 15px; }
  .welcome-publisher-dialog .welcome-publisher-card {
    min-height: 58px;
    gap: 12px;
    padding: 9px 12px;
  }
  .welcome-publisher-dialog .welcome-publisher-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }
  .welcome-publisher-dialog .welcome-publisher-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .welcome-publisher-dialog .welcome-publisher-action { min-height: 46px; }
}

/* Post-publish challenge onboarding modal */
.challenge-onboarding-dialog {
  width: min(575px, calc(100% - 28px));
  max-width: 575px;
  max-height: min(940px, calc(100dvh - 28px));
  margin: auto;
  padding: 10px 10px 14px;
  overflow: auto;
  border: 1px solid #ededf3;
  border-radius: 24px;
  background: #fff;
  color: #11131f;
  box-shadow: 0 22px 58px rgba(44,40,70,.18);
  font-family: Inter, "Be Vietnam Pro", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.challenge-onboarding-dialog::backdrop {
  background: rgba(22,20,34,.48);
  backdrop-filter: blur(5px);
}
.challenge-onboarding-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: 18px;
  background: #ececf3;
  line-height: 0;
}
.challenge-onboarding-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #ececf3;
}
.challenge-onboarding-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(17,19,31,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #11131f;
  box-shadow: 0 6px 18px rgba(17,19,31,.12);
  cursor: pointer;
}
.challenge-onboarding-close svg {
  width: 23px;
  height: 23px;
}
.challenge-onboarding-content {
  padding: 13px 16px 0;
}
.challenge-onboarding-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.challenge-onboarding-brand img {
  width: 108px;
  height: auto;
  display: block;
}
.challenge-onboarding-brand-divider {
  width: 1px;
  height: 21px;
  background: #dedee7;
}
.challenge-onboarding-brand-label {
  color: #555d72;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.challenge-onboarding-dialog h2 {
  margin: 0;
  color: #11131f;
  font-size: clamp(27px, 4vw, 33px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 800;
}
.challenge-onboarding-intro {
  max-width: 520px;
  margin: 5px 0 11px;
  color: #59627c;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}
.challenge-onboarding-cards {
  display: grid;
  gap: 8px;
}
.challenge-onboarding-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 14px;
}
.challenge-onboarding-card.is-create {
  background: linear-gradient(90deg,#faf8ff 0%,#f5f1ff 100%);
}
.challenge-onboarding-card.is-complete {
  background: linear-gradient(90deg,#f7fbff 0%,#eef5ff 100%);
}
.challenge-onboarding-card.is-discuss {
  background: linear-gradient(90deg,#f8fdfb 0%,#eefaf6 100%);
}
.challenge-onboarding-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.challenge-onboarding-card.is-create .challenge-onboarding-icon {
  color: #6f2cff;
  background: #eee6ff;
}
.challenge-onboarding-card.is-complete .challenge-onboarding-icon {
  color: #2f80ed;
  background: #e4f0ff;
}
.challenge-onboarding-card.is-discuss .challenge-onboarding-icon {
  color: #18b98e;
  background: #ddf7ef;
}
.challenge-onboarding-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.challenge-onboarding-card-copy {
  min-width: 0;
}
.challenge-onboarding-card-title {
  display: block;
  margin: 0 0 1px;
  color: #11131f;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.challenge-onboarding-card-text {
  display: block;
  color: #59627c;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0;
}
.challenge-onboarding-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.challenge-onboarding-action {
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  font-family: Inter, "Be Vietnam Pro", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.015em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.challenge-onboarding-action:hover {
  transform: translateY(-1px);
}
.challenge-onboarding-action.is-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg,#6f2cff,#8b36f5);
  box-shadow: 0 8px 20px rgba(111,44,255,.22);
}
.challenge-onboarding-action.is-secondary {
  color: #6f2cff;
  background: #fff;
  border: 2px solid #6f2cff;
}
.challenge-onboarding-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.challenge-onboarding-publisher-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #5c657b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.challenge-onboarding-publisher-link:hover {
  color: #6f2cff;
}
.challenge-onboarding-publisher-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
body[data-studio-theme="dark"] .challenge-onboarding-dialog {
  background: #fff;
  color: #11131f;
  border-color: #ededf3;
}
@media (max-width: 680px) {
  .challenge-onboarding-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    padding: 8px 8px 12px;
    border-radius: 21px;
  }
  .challenge-onboarding-hero {
    min-height: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .challenge-onboarding-close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
  }
  .challenge-onboarding-content { padding: 16px 14px 0; }
  .challenge-onboarding-brand { gap: 10px; margin-bottom: 11px; }
  .challenge-onboarding-brand img { width: 118px; }
  .challenge-onboarding-brand-label { font-size: 14px; }
  .challenge-onboarding-dialog h2 { font-size: 30px; }
  .challenge-onboarding-intro { margin-bottom: 14px; font-size: 15px; }
  .challenge-onboarding-card {
    min-height: 58px;
    gap: 12px;
    padding: 9px 12px;
  }
  .challenge-onboarding-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }
  .challenge-onboarding-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .challenge-onboarding-action { min-height: 46px; }
}

/* Super Admin QA dashboard */
.qa-dashboard-main {
  background: #f7f7fb;
}
.qa-dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-bottom: 56px;
}
.qa-dashboard-heading {
  align-items: flex-start;
  gap: 28px;
}
.qa-dashboard-heading .lead {
  max-width: 760px;
}
.qa-dashboard-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e2d8ff;
  border-radius: 999px;
  background: #f5f0ff;
  color: #6f35e8;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.qa-dashboard-badge svg {
  width: 16px;
  height: 16px;
}
.qa-dashboard-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #e9e9f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 33, 50, .05);
}
.qa-dashboard-section .section-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}
.qa-dashboard-section .section-heading h2 {
  margin-bottom: 4px;
}
.qa-dashboard-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f3f4f8;
  color: #666d7d;
  font-size: 12px;
  font-weight: 800;
}
.qa-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.qa-test-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e8e8f0;
  border-radius: 21px;
  background: #fcfcfe;
  box-shadow: 0 8px 20px rgba(32, 35, 54, .035);
}
.qa-test-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.qa-test-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
}
.qa-test-icon.is-welcome {
  background: #eee7ff;
  color: #6f35e8;
}
.qa-test-icon.is-challenge {
  background: #fff0e8;
  color: #ff7a27;
}
.qa-test-icon svg {
  width: 22px;
  height: 22px;
}
.qa-test-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid #dfeae3;
  border-radius: 999px;
  background: #f3faf6;
  color: #347456;
  font-size: 11px;
  font-weight: 800;
}
.qa-test-card-copy {
  min-height: 148px;
}
.qa-test-card-copy .eyebrow {
  margin-bottom: 7px;
}
.qa-test-card-copy h3 {
  margin: 0 0 9px;
  color: #181923;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.qa-test-card-copy p {
  margin: 0;
  color: #687083;
  line-height: 1.55;
}
.qa-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qa-test-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f2f3f7;
  color: #666d7c;
  font-size: 12px;
  font-weight: 700;
}
.qa-preview-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}
.qa-preview-button svg {
  width: 17px;
  height: 17px;
  margin-left: 6px;
}
.qa-dashboard-future {
  margin-top: 20px;
  padding: 24px 26px;
  border: 1px dashed #d8d8e4;
  border-radius: 20px;
  background: rgba(255,255,255,.66);
}
.qa-dashboard-future h2 {
  margin: 5px 0 6px;
  font-size: 19px;
}
.qa-dashboard-future p {
  margin: 0;
  max-width: 760px;
}
.qa-access-required {
  max-width: 760px;
  margin: 52px auto;
}
body[data-studio-theme="dark"] .qa-dashboard-main {
  background: #11131a;
}
body[data-studio-theme="dark"] .qa-dashboard-section,
body[data-studio-theme="dark"] .qa-test-card,
body[data-studio-theme="dark"] .qa-dashboard-future {
  border-color: #323542;
  background: #181b24;
}
body[data-studio-theme="dark"] .qa-test-card-copy h3 {
  color: #f5f5f8;
}
body[data-studio-theme="dark"] .qa-test-card-copy p,
body[data-studio-theme="dark"] .qa-dashboard-future p {
  color: #aeb4c2;
}
body[data-studio-theme="dark"] .qa-test-meta span,
body[data-studio-theme="dark"] .qa-dashboard-count {
  background: #252935;
  color: #c1c6d2;
}
@media (max-width: 820px) {
  .qa-dashboard-heading {
    flex-direction: column;
  }
  .qa-test-grid {
    grid-template-columns: 1fr;
  }
  .qa-test-card-copy {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .qa-dashboard-section {
    padding: 19px;
    border-radius: 20px;
  }
  .qa-test-card {
    padding: 18px;
  }
}


/* Event content hierarchy and public event links */
.builder-field-help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.builder-field-help [data-over="true"] {
  color: #c23b32;
  font-weight: 700;
}
.event-long-description-field {
  display: grid;
  gap: 0;
}
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}
.field-label-row .field-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.event-rich-text-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.event-rich-text-shell:focus-within {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.event-rich-text-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 43px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 68%, #fff);
}
.event-rich-text-toolbar button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  cursor: pointer;
}
.event-rich-text-toolbar button:hover,
.event-rich-text-toolbar button:focus-visible,
.event-rich-text-toolbar button[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand);
  outline: none;
}
.event-rich-text-toolbar button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}
.event-rich-toolbar-divider {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line);
}
.event-rich-text-toolbar .event-management-action-icon,
.event-rich-text-toolbar .event-formatting-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  opacity: 1;
  visibility: visible;
  stroke: currentColor;
}
.event-rich-text-editor {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding: 15px 16px 18px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  outline: none;
  caret-color: var(--brand);
}
.event-rich-text-editor:empty::before,
.event-rich-text-editor.is-empty::before {
  content: attr(data-placeholder);
  color: #777582;
  pointer-events: none;
}
.event-rich-text-editor p {
  margin: 0 0 12px;
}
.event-rich-text-editor p:last-child {
  margin-bottom: 0;
}
.event-rich-text-editor ul,
.event-rich-text-editor ol {
  margin: 6px 0 12px;
  padding-left: 25px;
}
.event-rich-text-editor li {
  margin: 3px 0;
}
.event-rich-text-editor strong,
.event-rich-text-editor b {
  font-weight: 760;
}
.event-rich-text-editor em,
.event-rich-text-editor i {
  font-style: italic;
}
body[data-studio-theme="dark"] .event-rich-text-shell {
  border-color: #4b4354;
  background: #17191f;
}
body[data-studio-theme="dark"] .event-rich-text-toolbar {
  border-color: #4b4354;
  background: #211d27;
}
body[data-studio-theme="dark"] .event-rich-text-toolbar button {
  color: #e3dde9;
}
body[data-studio-theme="dark"] .event-rich-toolbar-divider {
  background: #4b4354;
}
body[data-studio-theme="dark"] .event-rich-text-editor {
  background: #17191f;
  color: #f2edf5;
}
.event-links-builder {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, #ff7a27 24%, var(--line));
  border-radius: 14px;
  background: #fffaf6;
}
.event-links-builder-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.event-links-builder-heading strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.event-links-builder-heading span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.event-links-builder-heading > .event-management-action-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #f36f21;
}
.event-links-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.event-link-builder-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #f2dfd2;
  border-radius: 11px;
  background: #fff;
}
.event-link-builder-number {
  color: #d65a13;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.event-link-builder-card label {
  font-size: 12px;
}
.event-link-builder-card input {
  margin-top: 5px;
}
.event-link-builder-card small {
  display: block;
  margin-top: 4px;
}

.event-about-grid.is-full-width {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.event-about-grid.is-full-width .event-about {
  width: 100%;
  max-width: none;
}
.event-long-description {
  margin-top: 30px;
  padding: 28px 0 4px;
  border-top: 1px solid var(--line);
}
.event-long-description h2,
.event-links-section h2 {
  margin: 0 0 12px;
}
.event-rich-content {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}
.event-rich-content p {
  margin: 0 0 14px;
}
.event-rich-content p:last-child {
  margin-bottom: 0;
}
.event-rich-content ul,
.event-rich-content ol {
  margin: 10px 0 16px;
  padding-left: 22px;
}
.event-rich-content li + li {
  margin-top: 6px;
}
.event-rich-content strong {
  font-weight: 760;
}
.event-links-section {
  margin-top: 24px;
  padding-top: 0;
}
.event-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.event-link-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid #ffd6bd;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff8f2 0%, #fff1e7 100%);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.event-link-card:hover {
  transform: translateY(-1px);
  border-color: #ff9a5c;
  box-shadow: 0 8px 20px rgba(238, 104, 26, .10);
}
.event-link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ffe5d4;
  color: #ed681c;
}
.event-link-icon .event-management-action-icon {
  width: 21px;
  height: 21px;
}
.event-link-copy {
  min-width: 0;
}
.event-link-copy strong {
  display: block;
  overflow: hidden;
  color: #2a2430;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-link-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7c6b62;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-link-chevron {
  display: grid;
  place-items: center;
  color: #ed681c;
}
.event-link-chevron .event-management-action-icon {
  width: 20px;
  height: 20px;
}
.event-links-section + .event-outcomes {
  margin-top: 34px;
}
body[data-studio-theme="dark"] .event-links-builder {
  border-color: #5d4030;
  background: #211a17;
}
body[data-studio-theme="dark"] .event-link-builder-card {
  border-color: #49372e;
  background: #17191f;
}
body[data-studio-theme="dark"] .event-link-card {
  border-color: #5b3a28;
  background: linear-gradient(135deg, #241b17 0%, #2b1c14 100%);
}
body[data-studio-theme="dark"] .event-link-copy strong {
  color: #f4f1ee;
}
body[data-studio-theme="dark"] .event-link-copy small {
  color: #c6b4a7;
}
@media (max-width: 760px) {
  .event-links-builder-grid,
  .event-links-grid {
    grid-template-columns: 1fr;
  }
  .field-label-row {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
}


/* Publisher Studio header build launcher and event share preview — 2026-09-29 */
.header-build-menu {
  position: relative;
  z-index: 125;
  flex: 0 0 auto;
}
.header-build-menu[open] {
  z-index: 135;
}
.header-build-menu > summary {
  list-style: none;
}
.header-build-menu > summary::-webkit-details-marker {
  display: none;
}
.header-build-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid #7040c4;
  border-radius: 999px;
  background: #7040c4;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(74, 41, 126, .16);
  transition: transform var(--ease-ui), box-shadow var(--ease-ui), background var(--ease-ui);
}
.header-build-trigger:hover,
.header-build-trigger:focus-visible,
.header-build-menu[open] .header-build-trigger {
  transform: translateY(-1px);
  background: #6032b4;
  box-shadow: 0 10px 22px rgba(74, 41, 126, .22);
}
.header-build-trigger:focus-visible {
  outline: 3px solid rgba(112, 64, 196, .2);
  outline-offset: 2px;
}
.header-build-trigger .studio-ui-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--ease-ui);
}
.header-build-menu[open] .header-build-trigger .studio-ui-icon {
  transform: rotate(180deg);
}
.header-build-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #e2dde9;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(35, 26, 48, .18);
}
.header-build-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--ease-ui), transform var(--ease-ui);
}
.header-build-option:hover,
.header-build-option:focus-visible {
  transform: translateY(-1px);
  background: var(--brand-soft);
}
.header-build-option:focus-visible,
.header-build-learn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  outline-offset: 1px;
}
.header-build-option-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #efe7fb;
  color: #6434ac;
}
.header-build-option-icon.is-content {
  background: #e8effc;
  color: #315fb4;
}
.header-build-option-icon .studio-ui-icon {
  width: 22px;
  height: 22px;
}
.header-build-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.header-build-option-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.header-build-option-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.header-build-menu-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}
.header-build-content-group {
  display: grid;
}
.header-build-learn {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin: -3px 0 8px 68px;
  padding: 4px 5px;
  border-radius: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.header-build-learn:hover {
  text-decoration: underline;
}
.header-build-learn svg {
  width: 14px;
  height: 14px;
}

.event-card-art {
  aspect-ratio: 16 / 9;
}
.share-preview {
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  border-radius: 13px;
}
.share-preview-art {
  width: 152px;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
}
.share-preview-copy {
  min-width: 0;
}
.share-preview-copy h3,
.share-preview-copy p {
  overflow-wrap: anywhere;
}
.share-preview-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-studio-theme="dark"] .header-build-popover {
  border-color: var(--line);
  background: var(--white);
}
body[data-studio-theme="dark"] .header-build-option-icon {
  background: #30263f;
  color: #c2a5ef;
}
body[data-studio-theme="dark"] .header-build-option-icon.is-content {
  background: #1e2a3e;
  color: #9fc1ff;
}

@media(max-width:640px) {
  .header-build-trigger {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .header-build-trigger .studio-ui-icon {
    display: none;
  }
  .header-build-popover {
    position: fixed;
    top: 66px;
    right: 12px;
    width: min(350px, calc(100vw - 24px));
  }
  .share-preview {
    grid-template-columns: 1fr;
  }
  .share-preview-art {
    width: 100%;
  }
}

/* Super Admin users dashboard */
.admin-users-main{min-width:0}
.admin-users-page{display:grid;gap:22px;max-width:1440px;margin:0 auto;padding-bottom:48px}
.admin-users-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.admin-users-total{display:flex;align-items:baseline;gap:8px;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.admin-users-total strong{font-size:1.55rem;line-height:1}
.admin-users-total span{font-size:.86rem;color:var(--muted)}
.admin-users-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,240px) minmax(160px,220px);gap:14px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.admin-users-toolbar label{display:grid;gap:7px;font-size:.8rem;font-weight:700;color:var(--muted)}
.admin-users-toolbar input,.admin-users-toolbar select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);padding:0 12px;font:inherit}
.admin-users-toolbar input:focus,.admin-users-toolbar select:focus{outline:2px solid color-mix(in srgb,var(--brand) 32%,transparent);outline-offset:1px;border-color:var(--brand)}
.admin-users-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.admin-users-table{width:100%;border-collapse:collapse;min-width:760px}
.admin-users-table th{padding:12px 16px;text-align:left;font-size:.73rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:var(--canvas);border-bottom:1px solid var(--line)}
.admin-users-table td{padding:15px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-users-table tbody tr:last-child td{border-bottom:0}
.admin-users-table tbody tr:hover{background:var(--canvas)}
.admin-user-identity{display:flex;align-items:center;gap:12px;min-width:260px}
.admin-user-identity>div{display:grid;gap:3px;min-width:0}
.admin-user-identity strong{font-size:.94rem}
.admin-user-identity span:not(.admin-user-avatar):not(.admin-user-verified){font-size:.8rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}
.admin-user-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:var(--brand-soft);border:1px solid var(--line);font-size:.75rem;font-weight:800}
.admin-user-verified{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:4px;border-radius:50%;background:var(--ink);color:var(--white);font-size:.65rem;vertical-align:middle}
.admin-user-role{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--canvas);font-size:.76rem;font-weight:700;white-space:nowrap}
.admin-user-events{font-weight:700;text-align:center}
.admin-users-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted);font-size:.84rem}
.admin-users-pagination>div{display:flex;gap:8px}
@media(max-width:900px){
  .admin-users-heading{align-items:flex-start;flex-direction:column}
  .admin-users-toolbar{grid-template-columns:1fr}
  .admin-users-total{align-self:flex-start}
}


/* Super Admin individual user profile */
.admin-user-profile-page{display:grid;gap:22px;max-width:1440px;margin:0 auto;padding-bottom:48px}
.admin-profile-back{justify-self:start}
.admin-profile-hero{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.admin-profile-avatar{width:68px;height:68px;flex:0 0 68px;border-radius:50%;overflow:hidden;border:1px solid var(--line);background:var(--brand-soft);display:grid;place-items:center}
.admin-profile-avatar-img{width:100%;height:100%;object-fit:cover}
.admin-profile-avatar-fallback{font-size:1.25rem;font-weight:800}
.admin-profile-heading{display:grid;gap:5px;min-width:0}
.admin-profile-heading h1{margin:0}
.admin-profile-heading p{margin:0;color:var(--muted)}
.admin-profile-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.admin-profile-badges>span{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--canvas);font-size:.76rem;font-weight:700}
.admin-profile-verified{background:#edf6f2!important;color:#146759}
.admin-profile-unverified{background:#f7f1f1!important;color:#7e4b4b}
.admin-profile-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px}
.admin-profile-card{border:1px solid var(--line);border-radius:18px;background:var(--white);padding:20px}
.admin-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}
.admin-profile-facts>div{padding:13px 0;border-bottom:1px solid var(--line)}
.admin-profile-facts>div:nth-child(odd){padding-right:20px}
.admin-profile-facts dt{font-size:.76rem;font-weight:700;color:var(--muted);margin-bottom:4px}
.admin-profile-facts dd{margin:0;font-size:.91rem;overflow-wrap:anywhere}
.admin-profile-bio{padding-top:16px}
.admin-profile-bio strong{font-size:.8rem}
.admin-profile-bio p{font-size:.9rem;color:var(--muted);margin-top:6px}
.admin-profile-role-list{display:grid}
.admin-profile-role-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}
.admin-profile-role-row:last-child{border-bottom:0}
.admin-profile-role-row>div{display:grid;gap:2px}
.admin-profile-role-row span,.admin-profile-role-row small{font-size:.78rem;color:var(--muted)}
.admin-profile-role-row small{text-align:right;overflow-wrap:anywhere}
.admin-profile-empty{padding:18px 0;color:var(--muted);font-size:.88rem}
.admin-profile-event-count{display:grid;place-items:center;min-width:38px;height:32px;border:1px solid var(--line);border-radius:999px;background:var(--canvas);font-weight:800;font-size:.8rem}
.admin-profile-events-table-wrap{overflow:auto}
.admin-profile-events-table{width:100%;border-collapse:collapse;min-width:760px}
.admin-profile-events-table th{padding:11px 12px;text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--canvas);border-bottom:1px solid var(--line)}
.admin-profile-events-table td{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-profile-events-table tbody tr:last-child td{border-bottom:0}
.admin-profile-event-link{display:grid;gap:2px}
.admin-profile-event-link strong{font-size:.9rem}
.admin-profile-event-link span{font-size:.76rem;color:var(--muted)}
.admin-profile-event-link:hover strong{text-decoration:underline}
@media(max-width:900px){
  .admin-profile-grid{grid-template-columns:1fr}
  .admin-profile-hero{align-items:flex-start}
  .admin-profile-facts{grid-template-columns:1fr}
  .admin-profile-facts>div:nth-child(odd){padding-right:0}
}


/* Super Admin account access */
.admin-profile-access-action{margin-left:auto;display:grid;gap:6px;justify-items:end;text-align:right;min-width:190px}
.admin-profile-access-action .button{min-width:150px}
.admin-profile-access-action span{max-width:220px;color:var(--muted);font-size:.76rem;line-height:1.45}
.identity-return-admin{font-weight:700}
@media(max-width:760px){
  .admin-profile-hero{flex-wrap:wrap}
  .admin-profile-access-action{width:100%;margin-left:86px;justify-items:start;text-align:left}
}


/* Modern Event Team / Operations modal */
dialog[data-view="team"] {
  width: min(760px, calc(100% - 32px));
  max-height: min(900px, calc(100dvh - 40px));
  border: 1px solid rgba(24, 21, 35, .10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(24, 21, 35, .22), 0 8px 24px rgba(24, 21, 35, .10);
  overflow: hidden;
}
dialog[data-view="team"]::backdrop {
  background: rgba(20, 18, 30, .48);
  backdrop-filter: blur(5px);
}
dialog[data-view="team"] .dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: flex-start;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #ecebf2;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
dialog[data-view="team"] .dialog-header .eyebrow {
  margin-bottom: 5px;
  color: #726a86;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
dialog[data-view="team"] .dialog-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
dialog[data-view="team"] .dialog-header .icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #e5e3eb;
  border-radius: 12px;
  background: #fff;
  color: #393447;
  box-shadow: 0 2px 8px rgba(24,21,35,.04);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
dialog[data-view="team"] .dialog-header .icon-button:hover {
  background: #f7f5fb;
  border-color: #d8d3e2;
  transform: translateY(-1px);
}
dialog[data-view="team"] .dialog-content.identity-content {
  padding: 0 26px 26px;
  background: #fbfafc;
}
dialog[data-view="team"] .identity-session {
  margin: 0 -26px 22px;
  padding: 10px 26px;
  border-bottom: 1px solid #ecebf2;
  background: #fff;
  color: #7b748c;
  font-size: 12px;
}
dialog[data-view="team"] .identity-event-team > .identity-event-team-heading {
  margin-bottom: 18px;
}
dialog[data-view="team"] .identity-event-team-heading .eyebrow {
  display: none;
}
dialog[data-view="team"] .identity-event-team-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
dialog[data-view="team"] .identity-event-team-heading p {
  margin-top: 6px;
  max-width: 620px;
  line-height: 1.55;
}
dialog[data-view="team"] .identity-team-role-grid {
  gap: 10px;
  margin: 0 0 22px;
}
dialog[data-view="team"] .identity-team-role {
  min-height: 104px;
  padding: 15px 16px;
  border: 1px solid #e7e4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fcfbfe 100%);
  box-shadow: 0 4px 14px rgba(36, 30, 52, .035);
}
dialog[data-view="team"] .identity-team-role strong {
  font-size: 14px;
  letter-spacing: -.01em;
}
dialog[data-view="team"] .identity-team-role span {
  color: #777083;
  font-size: 12px;
  line-height: 1.45;
}
dialog[data-view="team"] .identity-section {
  margin-top: 0;
}
dialog[data-view="team"] .identity-event-settings,
dialog[data-view="team"] .identity-event-team > .identity-section {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e6e3ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(36,30,52,.035);
}
dialog[data-view="team"] .identity-event-settings h3,
dialog[data-view="team"] .identity-event-team > .identity-section h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.015em;
}
dialog[data-view="team"] .identity-event-settings > p,
dialog[data-view="team"] .identity-event-team > .identity-section > p {
  margin: 7px 0 0;
  line-height: 1.5;
}
dialog[data-view="team"] .identity-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}
dialog[data-view="team"] .identity-settings-toggle {
  position: relative;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid #e7e4ee;
  border-radius: 14px;
  background: #fcfbfe;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
dialog[data-view="team"] .identity-settings-toggle:hover {
  border-color: #d8d0e8;
  background: #fff;
  box-shadow: 0 4px 12px rgba(58,42,91,.05);
}
dialog[data-view="team"] .identity-settings-toggle span {
  order: 1;
  color: #282431;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
dialog[data-view="team"] .identity-settings-toggle input[type="checkbox"] {
  order: 2;
  appearance: none;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #d8d5df;
  position: relative;
  cursor: pointer;
  transition: background .18s ease;
}
dialog[data-view="team"] .identity-settings-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24,21,35,.2);
  transition: transform .18s ease;
}
dialog[data-view="team"] .identity-settings-toggle input[type="checkbox"]:checked {
  background: #7441d9;
}
dialog[data-view="team"] .identity-settings-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
dialog[data-view="team"] .identity-settings-toggle input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(116,65,217,.18);
  outline-offset: 2px;
}
dialog[data-view="team"] .identity-settings-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}
dialog[data-view="team"] .identity-settings-form > .button.primary {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 42px;
  margin-top: 2px;
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(116,65,217,.16);
}
dialog[data-view="team"] .identity-form:not(.identity-settings-form) {
  gap: 12px;
  margin-top: 16px;
}
dialog[data-view="team"] .identity-form:not(.identity-settings-form) label {
  gap: 7px;
  color: #3c3747;
  font-size: 12px;
  font-weight: 700;
}
dialog[data-view="team"] .identity-form input,
dialog[data-view="team"] .identity-form select {
  min-height: 44px;
  border-color: #dfdbe7;
  border-radius: 12px;
  background: #fff;
}
dialog[data-view="team"] .identity-form input:focus,
dialog[data-view="team"] .identity-form select:focus {
  border-color: #8b63e3;
  box-shadow: 0 0 0 3px rgba(116,65,217,.10);
  outline: none;
}
dialog[data-view="team"] .identity-event-team-list,
dialog[data-view="team"] .identity-list {
  gap: 8px;
  margin-top: 14px;
}
dialog[data-view="team"] .identity-list li {
  padding: 12px 14px;
  border: 1px solid #ece9f1;
  border-radius: 13px;
  background: #fcfbfd;
}
dialog[data-view="team"] .identity-list li > div:first-child strong {
  font-size: 13px;
}
dialog[data-view="team"] .identity-list li > div:first-child span {
  margin-top: 3px;
  color: #7a7386;
  font-size: 11px;
}
dialog[data-view="team"] .identity-inline-actions {
  gap: 10px;
}
dialog[data-view="team"] .identity-inline-actions .text-button {
  font-size: 12px;
  font-weight: 700;
}
dialog[data-view="team"] .identity-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e9e6ee;
}
dialog[data-view="team"] .identity-footer .text-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfdbe7;
  border-radius: 11px;
  background: #fff;
  color: #4b4557;
  font-weight: 700;
}
body[data-studio-theme="dark"] dialog[data-view="team"] {
  background: #1d1a24;
  color: #f5f3f8;
  border-color: rgba(255,255,255,.10);
}
body[data-studio-theme="dark"] dialog[data-view="team"] .dialog-header,
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-session {
  background: rgba(29,26,36,.97);
  border-color: rgba(255,255,255,.08);
}
body[data-studio-theme="dark"] dialog[data-view="team"] .dialog-content.identity-content {
  background: #17151c;
}
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-team-role,
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-event-settings,
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-event-team > .identity-section {
  background: #211e28;
  border-color: rgba(255,255,255,.09);
}
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-settings-toggle,
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-list li {
  background: #27232f;
  border-color: rgba(255,255,255,.09);
}
body[data-studio-theme="dark"] dialog[data-view="team"] .identity-settings-toggle span {
  color: #f2eff7;
}
@media (max-width: 700px) {
  dialog[data-view="team"] {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 18px;
  }
  dialog[data-view="team"] .dialog-header {
    padding: 18px 18px 15px;
  }
  dialog[data-view="team"] .dialog-content.identity-content {
    padding: 0 16px 18px;
  }
  dialog[data-view="team"] .identity-session {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  dialog[data-view="team"] .identity-team-role-grid,
  dialog[data-view="team"] .identity-settings-form {
    grid-template-columns: 1fr;
  }
  dialog[data-view="team"] .identity-event-settings,
  dialog[data-view="team"] .identity-event-team > .identity-section {
    padding: 16px;
    border-radius: 15px;
  }
}


/* Stage 2: Event campaign editor and email preview. */
.campaign-dialog { width:min(820px,calc(100% - 32px)); max-width:820px; border-radius:18px; }
.campaign-dialog .dialog-content { overflow:auto; }
.campaign-composer { display:grid; gap:16px; }
.campaign-composer > label { display:grid; gap:7px; font-size:13px; font-weight:650; }
.campaign-composer input, .campaign-composer textarea, .campaign-composer select { width:100%; min-width:0; }
.campaign-composer fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.campaign-composer fieldset > label { display:grid; gap:6px; }
.campaign-composer fieldset legend { padding:0 7px; font-weight:700; font-size:13px; }
.campaign-composer [hidden] { display:none !important; }
.campaign-composer iframe,.campaign-dialog iframe { width:100%; background:#fff; }
.campaign-preview-meta { display:grid; gap:10px; margin-top:8px; }
.campaign-preview-meta > strong { font-size:15px; }
.manage-audience-view-tabs { flex-wrap:wrap; }
.marketing-audience-table [data-campaign-select-email] { vertical-align:middle; margin-right:8px; }
@media(max-width:640px) {
 .campaign-dialog { width:calc(100% - 16px); }
 .campaign-composer fieldset { grid-template-columns:1fr; }
 .campaign-dialog .dialog-content { padding:16px; }
}

/* Persistent, unmistakeable isolated QA identity indicator. */
.identity-qa-badge{
  display:inline-flex;align-items:center;white-space:nowrap;
  padding:5px 10px;border-radius:100px;
  border:1px solid #df943b;background:#fff0db;color:#874407;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;
}
.identity-qa-menu-title{padding:10px 15px 4px;color:var(--muted);font-size:11px;
  font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.identity-account-menu .identity-qa-inbox-link{display:flex;align-items:center;gap:10px;
  color:inherit;text-decoration:none;padding:10px 15px;font-size:13px;border-radius:7px}
.identity-account-menu .identity-qa-inbox-link:hover{background:var(--canvas)}
.identity-account-menu [data-identity-action="switch-qa-persona"][aria-current="true"]{
  background:color-mix(in srgb,#e98538 12%,var(--white));font-weight:750}
body[data-studio-theme="dark"] .identity-qa-badge{
  background:#382513;border-color:#a96d31;color:#ffcb8a}


/* Mobile-first public event experience, October 2026.
   Desktop keeps its existing two-column overview, banner and registration rail. */
.event-mobile-meta,
.event-facts-title,
.registration-mobile-title,
.registration-mobile-intro,
.mobile-registration-trigger,
.mobile-event-menu,
.mobile-event-menu-scrim { display:none; }
.event-overview-content > .event-hero-media > picture,
.event-overview-content > .event-hero-media > picture > img {
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
}

@media (max-width:800px) {
  /* One footer, not a sticky event title plus a second horizontal event nav. */
  .mobile-event-navigation { display:none !important; }
  .global-mobile-navigation.mobile-event-footer { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mobile-event-footer a,
  .mobile-event-footer button {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:4px; min-width:0; min-height:48px; padding:5px 2px;
    border:0; border-radius:10px; background:transparent; color:var(--muted);
    font-family:inherit; font-size:12px; font-weight:600; line-height:1.25;
    cursor:pointer; text-decoration:none;
  }
  .mobile-event-footer button svg { width:21px; height:21px; }
  .mobile-event-footer a[aria-current="page"],
  .mobile-event-footer button.is-current,
  .mobile-event-footer button[aria-expanded="true"] { color:var(--brand); background:var(--brand-soft); }
  .mobile-event-footer button:focus-visible,
  .mobile-event-menu button:focus-visible,
  .mobile-event-menu a:focus-visible,
  .event-mobile-share:focus-visible,
  .mobile-registration-trigger:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }

  /* The same permission-aware event links are accessible in an upward bottom sheet. */
  .mobile-event-menu-scrim {
    display:block; position:fixed; inset:0; z-index:78;
    background:rgba(18,13,29,.58);
  }
  .mobile-event-menu {
    display:grid; position:fixed; inset:auto 0 0; z-index:79;
    gap:12px; max-height:min(78dvh,700px); overflow-y:auto;
    padding:11px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0; background:var(--white);
    color:var(--ink); box-shadow:0 -16px 52px rgba(10,7,20,.24);
    animation:mobile-event-menu-enter .2s ease-out;
  }
  body.mobile-event-menu-open { overflow:hidden; }
  .mobile-event-menu-grabber { width:38px; height:5px; margin:0 auto 3px; border-radius:99px; background:var(--line); }
  .mobile-event-menu-header { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:6px 2px 12px; border-bottom:1px solid var(--line); }
  .mobile-event-menu-header h2 { margin:5px 0 0; font-size:23px; line-height:1.2; }
  .mobile-event-menu-close {
    display:grid; flex:0 0 42px; width:42px; height:42px; place-items:center;
    border:1px solid var(--line); border-radius:12px; background:var(--canvas); color:var(--ink); cursor:pointer;
  }
  .mobile-event-menu-close svg { width:20px; height:20px; }
  .mobile-event-menu .event-workspace-nav { display:grid; gap:5px; overflow:visible; padding:0; }
  .mobile-event-menu .event-workspace-nav a {
    display:flex; align-items:center; gap:14px; min-height:49px; padding:11px 12px;
    border:0; border-radius:12px; font-size:15px; color:var(--ink); background:transparent;
  }
  .mobile-event-menu .event-workspace-nav a svg { width:21px; height:21px; color:var(--brand); }
  .mobile-event-menu .event-workspace-nav a[aria-current="page"] { background:var(--brand-soft); color:var(--brand); }
  .mobile-event-menu .event-workspace-nav .nav-full { display:inline; }
  .mobile-event-menu .event-workspace-nav .nav-short { display:none; }
  .mobile-event-switch-rooms {
    display:flex; align-items:center; gap:12px; width:100%; min-height:48px; margin-top:6px;
    padding:12px; border:1px solid var(--line); border-radius:12px;
    background:var(--canvas); color:var(--ink); font-family:inherit; font-size:14px; font-weight:600; line-height:1.3; cursor:pointer;
  }
  .mobile-event-switch-rooms svg { width:19px; height:19px; color:var(--brand); }
  .mobile-event-switch-rooms span { flex:1; text-align:left; }
  @keyframes mobile-event-menu-enter { from { transform:translateY(16px); opacity:.7; } to { transform:translateY(0); opacity:1; } }

  /* Mobile document order: hero, facts, registration, descriptive content.
     Display contents lets the original desktop details grid stay intact. */
  .event-main .event-overview-page .event-layout {
    display:flex; flex-direction:column; align-items:stretch; gap:23px;
  }
  .event-main .event-overview-content { order:1; width:100%; padding:0; border:0; }
  .event-main .event-overview-details { display:contents; }
  .event-main .event-overview-details > .event-facts { order:2; }
  .event-main .event-side-stack {
    order:3; position:static; width:100%; max-width:none; max-height:none;
    padding:0; margin:0; border:0; overflow:visible; gap:14px;
  }
  .event-main .event-overview-details > :not(.event-facts) { order:4; width:100%; margin-inline:0; }

  /* Single readable event heading with date and an icon-only share action. */
  .event-main .event-overview-content > .event-page-heading { display:block; margin:0 0 18px; }
  .event-main .event-page-heading .eyebrow { font-size:12px; line-height:1.5; letter-spacing:.08em; }
  .event-main .event-page-heading h1 {
    margin:10px 0 14px; font-size:clamp(28px,5.2vw,32px);
    line-height:1.19; font-weight:750; letter-spacing:-.026em; overflow-wrap:anywhere;
  }
  .event-main .event-page-heading .lead { margin:13px 0 0; max-width:65ch; font-size:16px; line-height:1.55; }
  .event-main .event-heading-share { display:none; }
  .event-main .event-mobile-meta {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    min-height:42px; font-size:15px; font-weight:650;
  }
  .event-mobile-meta > span { display:flex; align-items:center; gap:9px; min-width:0; }
  .event-mobile-meta .event-detail-icon { width:21px; height:21px; flex:0 0 21px; color:var(--brand); }
  .event-mobile-share {
    display:grid; flex:0 0 42px; width:42px; height:42px; place-items:center; cursor:pointer;
    border:1px solid var(--line); border-radius:12px; background:var(--white); color:var(--ink);
  }
  .event-mobile-share svg { width:19px; height:19px; }
  .event-main .event-overview-content > .event-hero-media {
    width:100%; margin:0; aspect-ratio:16 / 9; height:auto; min-height:0;
    border-radius:15px; overflow:hidden; box-shadow:0 8px 24px rgba(24,18,39,.07);
  }
  .event-main .event-overview-content > .event-hero-media picture,
  .event-main .event-overview-content > .event-hero-media picture > img {
    display:block; width:100%; aspect-ratio:16 / 9; height:auto; max-height:none; object-fit:contain;
  }

  /* One quiet information group, no six individual bordered cards. */
  .event-main .event-overview-page .event-facts {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; width:100%;
    margin:0; padding:14px 17px; border:1px solid var(--line); border-radius:16px;
    background:var(--white); overflow:hidden;
  }
  .event-main .event-facts-title {
    display:block; grid-column:1/-1; margin:0; padding:3px 2px 10px;
    color:var(--ink); font-size:21px; line-height:1.3; font-weight:750;
  }
  .event-main .event-facts > .event-fact,
  .event-main .event-facts > .event-fact:nth-child(even),
  .event-main .event-facts > .event-fact:nth-child(2n+1) {
    display:flex !important; min-width:0; gap:10px; margin:0; padding:13px 7px !important;
    border:0 !important; border-top:1px solid var(--line) !important; border-radius:0;
    background:transparent; box-shadow:none;
  }
  .event-main .event-facts > .event-fact:nth-child(even) { padding-left:12px !important; }
  .event-main .event-fact-icon-wrap { flex:0 0 34px; width:34px; height:34px; border-radius:10px; }
  .event-main .event-fact-label { font-size:11px; }
  .event-main .event-fact-copy strong { font-size:14px; font-weight:650; line-height:1.38; }
  .event-main .event-fact-copy small { font-size:11px; }

  /* The initial reservation CTA is compact. Existing protected states still
     render their own verification/confirmed/closed actions unchanged. */
  .event-main .event-side-stack .registration-panel {
    padding:18px; border-radius:17px; border:1px solid color-mix(in srgb,var(--brand) 15%,var(--line));
    background:color-mix(in srgb,var(--brand-soft) 45%,var(--white)); box-shadow:none;
  }
  .event-main .registration-panel > .registration-event-summary { display:none; }
  .event-main .registration-panel > :not(.registration-event-summary) {
    margin-right:0; margin-left:0;
  }
  .event-main .registration-desktop-label,
  .event-main .registration-desktop-title,
  .event-main .registration-desktop-intro,
  .event-main .event-registration-access-notice { display:none; }
  .event-main .registration-mobile-title { display:block; margin:0 0 7px !important; font-size:22px; line-height:1.25; }
  .event-main .registration-mobile-intro { display:block; margin:0 0 14px; font-size:14px; line-height:1.5; }
  .event-main .mobile-registration-trigger { display:flex; justify-content:center; align-items:center; gap:9px; min-height:48px; margin:0; }
  .event-main .registration-panel:not(.is-mobile-expanded) #registration-form { display:none; }
  .event-main .registration-panel.is-mobile-expanded { background:var(--white); }
  .event-main .registration-panel.is-mobile-expanded .mobile-registration-trigger { display:none; }
  .event-main .registration-panel.is-mobile-expanded #registration-form { display:block; margin:12px 0 0; }
  .event-main .registration-panel #registration-form label { font-size:14px; }
  .event-main .registration-panel .registration-marketing-consent {
    padding:11px 0 !important; border:0 !important; border-radius:0;
    background:transparent !important; box-shadow:none !important;
  }
  .event-main .registration-panel .registration-marketing-consent strong { font-size:13px; font-weight:600; }
  .event-main .registration-panel .registration-marketing-consent small { font-size:12px; line-height:1.45; }

  /* Body copy should read as a mobile article rather than a set of cards. */
  .event-main .event-overview-details > .event-about-grid { display:block; margin:8px 0 0; }
  .event-main .event-overview-details .event-about { padding:0; }
  .event-main .event-overview-details .event-about h2,
  .event-main .event-overview-details > .section-block h2 { font-size:23px; line-height:1.28; }
  .event-main .event-overview-details .event-about p,
  .event-main .event-overview-details .event-rich-content { font-size:16px; line-height:1.6; }
}
@media (max-width:560px) {
  .event-main .event-overview-page .event-facts { grid-template-columns:minmax(0,1fr); padding-inline:15px; }
  .event-main .event-facts > .event-fact,
  .event-main .event-facts > .event-fact:nth-child(even),
  .event-main .event-facts > .event-fact:nth-child(2n+1) { padding:12px 2px !important; border-top:1px solid var(--line) !important; }
  .event-main .event-page-heading h1 { font-size:29px; }
}
@media (prefers-reduced-motion:reduce) {
  .mobile-event-menu { animation:none; }
}


/* Wistudi management email history: reporting only; dark-mode aware. */
.email-history-page{display:grid;gap:18px;min-width:0;padding-bottom:28px}
.email-history-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap}
.email-history-heading h2{margin:5px 0 4px;font-size:clamp(25px,3vw,32px);line-height:1.2}
.email-history-heading p{margin:0;color:var(--muted,#707782);font-size:14px;line-height:1.5}
.email-history-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.email-history-actions small{margin-right:4px}
.email-history-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.email-history-kpi{display:grid;gap:5px;padding:17px 18px;border:1px solid var(--line,#e3e6ee);
 background:var(--white,#fff);border-radius:15px;min-width:0}
.email-history-kpi strong{font-size:clamp(22px,2.5vw,29px);font-weight:750;font-variant-numeric:tabular-nums}
.email-history-kpi span{font-size:12px;color:var(--muted,#667080);line-height:1.3}
.email-history-note{font-size:12px;color:var(--muted,#667080);line-height:1.55;margin:0}
.email-history-filters{display:grid;grid-template-columns:minmax(128px,.85fr) minmax(128px,.85fr) minmax(150px,1.3fr) minmax(150px,1fr) minmax(190px,1.6fr);align-items:end;gap:11px}
.email-history-filters label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:600;color:var(--muted,#667080)}
.email-history-filters :is(input,select){box-sizing:border-box;display:block;width:100%;min-height:41px;border:1px solid var(--line,#dce0e8);border-radius:10px;background:var(--white,#fff);color:inherit;padding:9px 11px;font:inherit;font-size:13px}
.email-history-filters :is(input,select):focus-visible{outline:2px solid #7b57cb;outline-offset:1px}
.email-history-page .manage-audience-view-tabs{margin:0}
.email-history-table{max-width:100%;overflow-x:auto}
.email-history-table .manage-registration-table{min-width:710px}
.email-history-table td{vertical-align:middle}
.email-history-table td>span{display:block;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-history-status{display:inline-flex!important;align-items:center;width:max-content!important;max-width:100%;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:650;background:var(--line,#edf0f5);color:inherit}
.email-history-status.sent{background:#e7f6ed;color:#1e7244}
.email-history-status.checking{background:#fff1d9;color:#86541d}
.email-history-status.processing{background:#eee8ff;color:#6342ae}
.email-history-selection,.email-history-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.email-history-selection{font-size:13px}
.email-history-pagination{justify-content:flex-end;font-size:13px;color:var(--muted,#667080)}
@media(max-width:1120px){
 .email-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .email-history-filters .email-history-search{grid-column:span 2}
}
@media(max-width:650px){
 .email-history-heading{display:grid;gap:12px}
 .email-history-actions{justify-content:flex-start}
 .email-history-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .email-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .email-history-filters .email-history-search{grid-column:span 2}
 .email-history-table .manage-registration-table{min-width:670px}
}
@media(prefers-color-scheme:dark){
 .email-history-status.sent{background:#173c2a;color:#a1eec4}
 .email-history-status.checking{background:#45321e;color:#ffdc9d}
 .email-history-status.processing{background:#30234c;color:#d9c6ff}
}

/* Follow Studio's explicit theme toggle (independent of system appearance). */
body[data-studio-theme="dark"] .email-history-status.sent{background:#173c2a;color:#a1eec4}
body[data-studio-theme="dark"] .email-history-status.checking{background:#45321e;color:#ffdc9d}
body[data-studio-theme="dark"] .email-history-status.processing{background:#30234c;color:#d9c6ff}
