:root {
  color-scheme: light;
  --paper: #f5f4f8;
  --card: #ffffff;
  --navigation: var(--card);
  --inset: #f0eef5;
  --ink: #241f30;
  --muted: #716b7d;
  --accent: #633dca;
  --accent-soft: #efebfa;
  --accent-hover: #45258f;
  --action: var(--accent);
  --action-hover: #5131ad;
  --line: #e7e3ed;
  --control: var(--card);
  --control-line: #dcd8e5;
  --secondary-line: #ded9e8;
  --hover-line: #c9bce8;
  --placeholder: #9791a5;
  --focus: #ad98e7;
  --table-ink: #777184;
  --table-head: #faf9fc;
  --row-hover: #fcfbfe;
  --status-ink: #6d647e;
  --status-bg: #f0edf4;
  --success-ink: #237659;
  --success-bg: #e7f4ed;
  --warning-ink: #96681f;
  --warning-bg: #fcf4e3;
  --error-ink: #ac3247;
  --answer-ink: #286a53;
  --answer-bg: #edf5f0;
  --overlay: #241f304d;
  --scrim: #241f3066;
  --wordmark: #211d30;
  --store-paper: #f7f5f0;
  --store-line: #e3ded6;
  --studio-poster: #e1d7ef;
  --studio-ink: #402754;
  --studio-shape: #c6b1df;
  --club-poster: #dde7d9;
  --club-ink: #334839;
  --club-shape: #b4c8ad;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #171421;
  --card: #241f32;
  --navigation: #201b33;
  --inset: #1b1727;
  --ink: #f4f0fb;
  --muted: #bdb3cb;
  --accent: #c4afff;
  --accent-soft: #372951;
  --accent-hover: #e0d3ff;
  --action: #7246cc;
  --action-hover: #7b4fd2;
  --line: #40374f;
  --control: #1b1727;
  --control-line: #756785;
  --secondary-line: var(--control-line);
  --hover-line: #9481b2;
  --placeholder: #aea2bd;
  --focus: #c5adff;
  --table-ink: var(--muted);
  --table-head: #2d263d;
  --row-hover: #2b253a;
  --status-ink: #d8cce9;
  --status-bg: #393147;
  --success-ink: #a6e3c6;
  --success-bg: #223c35;
  --warning-ink: #f7d295;
  --warning-bg: #413324;
  --error-ink: #ffa3b4;
  --answer-ink: var(--success-ink);
  --answer-bg: var(--success-bg);
  --overlay: #100c1bb3;
  --scrim: #100c1bbf;
  --wordmark: var(--ink);
  --store-paper: var(--paper);
  --store-line: var(--line);
  --studio-poster: #3b2a54;
  --studio-ink: #e9d9ff;
  --studio-shape: #533d70;
  --club-poster: #273d34;
  --club-ink: #e0f0df;
  --club-shape: #3d594a;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 0; }
h3 { font-size: 16px; }
p { line-height: 1.65; }
small { font-size: 12px; color: var(--muted); }
code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.block { display: block; margin-top: 4px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 24px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--card); gap: 24px; }
.brand { font-size: 19px; font-weight: 750; color: var(--ink); }
main { max-width: 1168px; padding: 36px 24px; margin: 0 auto; }
button, .button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 10px 16px; border-radius: 9px; border: 1px solid transparent; background: var(--action); color: white; font-weight: 600; cursor: pointer; gap: 6px; line-height: 1.4; min-height: 40px; }
button:hover, .button:hover { background: var(--action-hover); text-decoration: none; }
.secondary { background: var(--card); color: var(--ink); border-color: var(--secondary-line); }
.secondary:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--hover-line); }
.text-button { padding: 6px 0; background: transparent; color: var(--accent); min-height: 34px; font-size: 12px; }
.text-button:hover { background: transparent; color: var(--accent-hover); text-decoration: underline; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 550; }
label small { font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--control); color: var(--ink); min-height: 42px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: start; gap: 18px; margin-top: 22px; }
.fields > * { min-width: 0; }
.fields > button, .fields > .actions { grid-column: 1 / -1; }
.event-fields { grid-template-columns: minmax(0, 1fr); }
.reminder-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.team-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-edit-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.search { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; }
.search-field { flex: 1; min-width: 200px; }
.search label:has(select) { min-width: 190px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions form { margin: 0; }
.product-actions { max-width: 330px; }
.product-actions button, .product-actions .button { font-size: 12px; padding: 7px 10px; min-height: 34px; }
.scroll { overflow: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 17px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--table-ink); font-weight: 600; font-size: 12px; background: var(--table-head); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--row-hover); }
td .actions { min-width: 140px; }
.status, .pill { display: inline-flex; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--status-ink); background: var(--status-bg); line-height: 1.5; }
.success, .pill.live, .notice { color: var(--success-ink); background: var(--success-bg); }
.warning { color: var(--warning-ink); background: var(--warning-bg); }
.error-text { color: var(--error-ink); }
details { margin-top: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details[open] summary { margin-bottom: 16px; }
.notice { padding: 12px 16px; border-radius: 9px; }
.card, .panel { padding: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; margin-bottom: 22px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-heading p { margin: 0; }
.panel-heading > a { font-size: 12px; font-weight: 600; }
.empty { text-align: center; padding: 40px 20px; }
.empty p { color: var(--muted); max-width: 430px; margin: 8px auto 0; }
.empty h3 { margin-bottom: 0; }
.empty.compact { padding: 18px 8px 24px; }
.empty.compact a { display: inline-block; margin-top: 16px; }
.topbar { height: 86px; padding: 0 36px; display: grid; grid-template-columns: 240px minmax(180px, 540px) minmax(130px, 1fr); gap: 32px; }
.wordmark { color: var(--wordmark); font-weight: 780; font-size: 28px; letter-spacing: -.055em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }
.global-search { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; background: #f6f5f9; border-radius: 10px; }
.global-search input { border: 0; padding: 7px 0; background: transparent; min-height: 36px; }
.global-search button { border: 0; background: transparent; min-height: 32px; padding: 6px 8px; color: var(--muted); font-size: 12px; }
.workspace-link { display: flex; justify-self: end; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; max-width: 100%; }
.workspace-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-avatar, .avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent); border-radius: 11px; font-weight: 650; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 224px; grid-template-areas: 'content navigation'; max-width: 1640px; gap: 28px; padding: 32px 36px; align-items: start; }
.admin-section { grid-area: content; min-width: 0; }
.admin-sidebar { grid-area: navigation; position: sticky; top: 24px; background: #211c33; color: #d8d2e8; border-radius: 16px; padding: 16px 12px; }
.admin-menu { display: flex; flex-direction: column; gap: 3px; }
.admin-menu a { color: #c8c0db; padding: 11px 16px; font-size: 13px; border-radius: 9px; white-space: nowrap; }
.admin-menu a:hover { background: #302842; color: #fff; text-decoration: none; }
.admin-menu a[aria-current='page'] { background: var(--accent); color: #fff; font-weight: 650; }
.admin-menu a:nth-child(7), .admin-menu a:nth-child(10) { margin-top: 14px; }
.sidebar-footer { margin: 30px 12px 2px; padding-top: 18px; border-top: 1px solid #393147; display: grid; gap: 8px; }
.sidebar-footer a { font-size: 12px; color: #c8c0db; }
.sidebar-footer small { color: #898096; font-size: 11px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 3px 0 26px; }
.page-heading h1 { margin: 0; }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.metric { display: flex; flex-direction: column; gap: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 23px; color: var(--ink); }
.metric > span { font-size: 12px; color: var(--muted); }
.metric strong { font-size: 38px; letter-spacing: -.04em; line-height: 1.3; font-weight: 650; }
.metric:hover { text-decoration: none; border-color: var(--hover-line); }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.list-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 17px 0; color: var(--ink); font-size: 12px; }
.list-row small { display: block; font-size: 11px; margin-top: 3px; }
.list-row > span:last-child { text-align: right; }
.list-row:hover { color: var(--accent); text-decoration: none; }
.page-note { font-size: 11px; color: var(--muted); }
.participant-meta { display: flex; align-items: center; gap: 14px; margin: -10px 0 27px; }
.avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.name-link { font-weight: 650; }
.pagination { display: flex; justify-content: center; gap: 24px; padding-top: 24px; color: var(--muted); font-size: 12px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline time { font-size: 12px; color: var(--muted); }
.timeline p { margin: 4px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.integration-details { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px 24px; font-size: 13px; }
.integration-details dt { color: var(--muted); }
.integration-details dd { margin: 0; overflow-wrap: anywhere; }
.integration-hint { font-size: 12px; }
.integration-settings { scroll-margin-top: 18px; }
.integration-settings > details:last-child { padding-bottom: 0; }
.integration-settings .search { padding-bottom: 0; }
.integration-actions, .integration-check { margin-top: 16px; }
.integration-form { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.integration-form details { margin: 0; padding: 12px 0 0; }
.workspace-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.workspace-form + p { font-size: 12px; }
.intro { margin: 16px 0 32px; max-width: 740px; }
.intro p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; }
.product-card > .pill { align-self: flex-start; }
.product-checkout { margin-top: auto; }
.price { font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin: 20px 0 8px; }
.grid .pill { margin-bottom: 16px; }
.marathon-dates { display: grid; gap: 8px; }
.narrow { max-width: 680px; margin: 30px auto; }
.store-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px; }
.login-card { max-width: 560px; padding: 36px; }
.login-card h1 { margin-top: 24px; }
.login-code { font: 700 40px ui-monospace, monospace; letter-spacing: .16em; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 20px; text-align: center; margin: 24px 0; }
.login-steps { color: var(--muted); padding-left: 24px; line-height: 1.9; }
.new-login, .section-gap { margin-top: 28px; }
.stack-form { display: grid; gap: 18px; }
.check-label { flex-direction: row; align-items: center; gap: 10px; }
.check-label input { width: 18px; min-height: 18px; flex: 0 0 18px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.account-nav a { background: var(--accent-soft); color: var(--accent); padding: 9px 14px; border-radius: 9px; font-weight: 600; }
.subscription-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; border-top: 1px solid var(--line); padding: 20px 0; }
.subscription-row:last-child { padding-bottom: 0; }
.subscription-row h3 { margin-bottom: 8px; }
.subscription-row > .button { flex-shrink: 0; }
.subscription-row p:last-child { margin-bottom: 0; }
.account-footer, .staff-heading { display: flex; align-items: center; gap: 18px; }
.staff-heading { justify-content: end; min-width: 0; }
.staff-heading .workspace-link { overflow: hidden; }
@media (max-width: 640px) {
  .store-eyebrow { display: none; }
  header { padding: 16px; gap: 12px; }
  header > .button { font-size: 12px; padding: 8px 10px; flex-shrink: 0; }
  .login-card { padding: 24px; margin-top: 0; }
  .subscription-row { flex-direction: column; gap: 12px; }
  .account-footer { flex-wrap: wrap; }
  .staff-heading .workspace-avatar { display: none; }
}
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--card); z-index: 10; padding: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1100px) {
  .team-fields, .team-edit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { grid-template-columns: 180px minmax(180px, 1fr) minmax(120px, 220px); gap: 20px; padding: 0 24px; }
  .admin-layout { padding: 24px; gap: 20px; grid-template-columns: minmax(0, 1fr) 194px; }
  .metrics { gap: 12px; }
  .metric { padding: 18px; }
  .overview-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 800px) {
  .topbar { height: auto; grid-template-columns: 1fr 1fr; padding: 18px 20px; gap: 16px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .wordmark { font-size: 26px; }
  .admin-layout { display: flex; flex-direction: column; padding: 16px; gap: 24px; }
  .admin-section, .admin-sidebar { width: 100%; }
  .admin-sidebar { position: static; padding: 8px; border-radius: 12px; }
  .admin-menu { flex-direction: row; overflow-x: auto; padding: 0; scrollbar-width: thin; }
  .admin-menu a { padding: 9px 13px; }
  .admin-menu a:nth-child(7), .admin-menu a:nth-child(10) { margin: 0; }
  .sidebar-footer { display: none; }
  .page-heading { align-items: start; margin-bottom: 22px; }
  .page-heading .button { font-size: 12px; padding: 8px 10px; }
  .panel { padding: 18px; }
  .metrics { gap: 8px; }
  .metric { padding: 14px 10px; }
  .metric strong { font-size: 30px; }
  .metric span { font-size: 11px; min-height: 33px; }
  .metric small { font-size: 10px; }
  .scroll table { min-width: 570px; }
  .workspace-form { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .integration-details { grid-template-columns: 1fr; gap: 4px; }
  .integration-details dd { margin-bottom: 12px; }
  .integration-form { grid-template-columns: minmax(0, 1fr); }
  .integration-settings .search-field { min-width: min(100%, 200px); }
  .global-search input { font-size: 16px; }
  .workspace-link { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  a:hover, button:hover { transition: background-color .15s, border-color .15s; }
}
@media (max-width: 640px) {
  .team-fields, .team-edit-fields { grid-template-columns: 1fr; }
}

.recovery-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.recovery-item h3 { margin-bottom: 0; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-nav a[aria-current="page"] { background: var(--action); color: #fff; }

/* tamit.pass 0.4 — workspace, studio storefront and member passes */
[hidden] { display:none!important; }
.ui-icon { flex:0 0 auto; vertical-align:middle; }
.js-only { display:none; }
.js .js-only { display:inline-flex; }
button,.button { border-radius:7px; }
button:disabled { opacity:.65; cursor:wait; }
h1,h2,h3,p,a,small,td { overflow-wrap:break-word; }
.icon-button { width:40px; min-width:40px; height:40px; padding:8px; background:transparent; color:var(--muted); border:0; }
.icon-button:hover { color:var(--ink); background:var(--accent-soft); }
.header-actions { display:flex; align-items:center; gap:12px; flex:none; margin-inline-start:auto; }
.theme-toggle { border:1px solid var(--line); border-radius:9px; }
.theme-toggle > span { display:flex; }
.theme-toggle .theme-sun, [data-theme='dark'] .theme-toggle .theme-moon { display:none; }
[data-theme='dark'] .theme-toggle .theme-sun { display:flex; }
.admin-app { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:100dvh; }
.admin-sidebar { grid-area:auto; position:sticky; top:0; height:100dvh; overflow-y:auto; border-radius:0; padding:28px 16px 16px; border-right:1px solid var(--line); background:var(--navigation); color:var(--ink); display:flex; flex-direction:column; gap:26px; width:auto; }
.sidebar-brand { display:flex; align-items:center; justify-content:space-between; padding:0 12px; }
.wordmark { font-size:27px; }
.workspace-identity { display:flex; align-items:center; gap:10px; margin:0 10px; padding-top:22px; border-top:1px solid var(--line); }
.workspace-identity .nav-label { min-width:0; }
.workspace-identity strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.workspace-identity small { display:block; font-size:11px; margin-top:3px; }
.workspace-avatar { width:34px; height:34px; border-radius:8px; }
.admin-menu { display:flex; flex-direction:column; gap:4px; padding:0; overflow:visible; }
.admin-menu a { display:flex; align-items:center; gap:11px; padding:11px 12px; font-size:13px; color:var(--muted); border-radius:7px; white-space:normal; }
.admin-menu a:nth-child(7),.admin-menu a:nth-child(10) { margin:0; }
.admin-menu a:hover { color:var(--ink); background:var(--paper); }
.admin-menu a[aria-current='page'] { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.sidebar-bottom { margin-top:auto; padding-top:20px; border-top:1px solid var(--line); display:grid; gap:5px; }
.sidebar-store,.sidebar-collapse { color:var(--muted); display:flex; gap:11px; align-items:center; font-size:12px; padding:11px 12px; background:transparent; font-weight:400; width:100%; justify-content:flex-start; }
.sidebar-collapse:hover,.sidebar-store:hover { color:var(--ink); background:var(--paper); text-decoration:none; }
.sidebar-version { display:block; margin:12px 12px 0; font-size:11px; }
.admin-shell { min-width:0; }
.topbar { display:flex; height:72px; min-height:72px; padding:12px 32px; gap:18px; justify-content:space-between; }
.topbar-context { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.global-search { grid-column:auto; grid-row:auto; width:min(430px,100%); padding:0; gap:10px; background:transparent; }
.global-search input { min-width:0; font-size:13px; padding:9px 0; }
.global-search .ui-icon { color:var(--muted); }
.global-search button { padding:8px; min-width:38px; min-height:38px; }
.staff-profile { margin:0; padding:0; border:0; position:relative; flex-shrink:0; }
.staff-profile summary { list-style:none; display:flex; gap:9px; align-items:center; color:var(--ink); font-size:12px; }
.staff-profile summary::-webkit-details-marker { display:none; }
.staff-profile[open] summary { margin:0; }
.profile-popover { position:absolute; right:0; top:46px; z-index:6; padding:20px; border:1px solid var(--line); background:var(--card); box-shadow:0 12px 40px #241f3012; border-radius:10px; min-width:210px; }
.profile-popover strong,.profile-popover small { display:block; margin-bottom:7px; }
.admin-section { grid-area:auto; width:100%; max-width:1400px; margin:0 auto; padding:32px; }
.page-heading { margin:0 0 26px; align-items:center; }
.page-heading h1 { font-size:32px; letter-spacing:-.04em; }
.eyebrow { font-size:11px; letter-spacing:.04em; }
.section-tabs { display:flex; gap:24px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:-8px 0 26px; }
.section-tabs a { padding:12px 0; border-bottom:2px solid transparent; color:var(--muted); font-size:13px; }
.section-tabs a[aria-current='page'] { border-color:var(--accent); color:var(--accent); font-weight:600; }
.section-tabs a:hover { text-decoration:none; color:var(--accent); }
.statline { display:flex; flex-wrap:wrap; gap:16px 28px; padding-bottom:26px; margin-bottom:30px; border-bottom:1px solid var(--line); }
.statline a { color:var(--muted); font-size:12px; }
.statline strong { font-size:20px; font-weight:600; margin-right:5px; color:var(--ink); font-variant-numeric:tabular-nums; }
.work-section { margin-bottom:32px; }
.launch-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:26px; }
.launch-notice p { margin:6px 0 0; }
.launch-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,.55fr); gap:24px; align-items:stretch; }
.launch-summary-main { display:flex; flex-direction:column; justify-content:center; }
.launch-progress { display:flex; gap:24px; align-items:center; margin-top:12px; }
.launch-progress > strong { font-size:38px; letter-spacing:-.045em; line-height:1; white-space:nowrap; font-variant-numeric:tabular-nums; }
.launch-progress > strong span { color:var(--muted); font-size:20px; font-weight:400; }
.launch-progress > div { display:grid; gap:7px; width:min(100%,320px); }
.launch-progress progress { width:100%; height:7px; border:0; border-radius:5px; overflow:hidden; background:var(--line); accent-color:var(--accent); }
.launch-progress progress::-webkit-progress-bar { background:var(--line); }
.launch-progress progress::-webkit-progress-value { background:var(--accent); border-radius:5px; }
.launch-progress progress::-moz-progress-bar { background:var(--accent); }
.launch-summary-aside { display:grid; gap:12px; padding-left:24px; border-left:1px solid var(--line); font-size:13px; }
.launch-summary-aside > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.launch-step { display:grid; grid-template-columns:32px minmax(0,1fr) 150px 148px; align-items:center; gap:16px; padding:18px 0; border-top:1px solid var(--line); }
.launch-marker { width:32px; height:32px; border:1px solid var(--line); display:grid; place-items:center; font-size:13px; color:var(--muted); border-radius:50%; }
.launch-marker.done { background:var(--accent-soft); color:var(--accent); border-color:transparent; font-size:17px; }
.launch-copy { min-width:0; overflow-wrap:anywhere; }
.launch-copy strong { font-size:14px; font-weight:600; }
.launch-copy p { margin:4px 0 0; font-size:13px; color:var(--muted); }
.launch-step .button { width:100%; font-size:12px; }
.launch-step .status { justify-self:start; white-space:normal; }
.launch-service { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,auto); gap:18px; padding:18px 0; border-top:1px solid var(--line); }
.launch-service small { margin-top:5px; }
.launch-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:15px; }
.launch-metrics a { display:flex; flex-direction:column; gap:6px; min-width:0; padding:14px; background:var(--inset); border:1px solid var(--line); border-radius:9px; color:var(--ink); }
.launch-metrics strong { font-size:23px; line-height:1; }
.launch-metrics small { color:var(--muted); }
.work-section .panel-heading { margin-bottom:4px; }
.work-row { display:flex; align-items:center; gap:16px; padding:19px 0; border-bottom:1px solid var(--line); }
.work-row-text { min-width:0; flex:1; }
.work-row-text strong { font-weight:600; font-size:14px; }
.work-row-text p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.work-row small { font-size:11px; }
.work-row .button { font-size:12px; flex-shrink:0; }
.program-letter { display:grid; place-items:center; width:38px; height:44px; background:var(--accent-soft); color:var(--accent); border-radius:5px 13px 5px 5px; flex-shrink:0; font-size:18px; }
.program-count { font-size:12px; color:var(--muted); }
.inbox-layout { display:grid; grid-template-columns:minmax(230px,30%) minmax(0,1fr); background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.inbox-list { padding:10px; border-right:1px solid var(--line); background:var(--inset); max-height:calc(100dvh - 240px); overflow:auto; position:sticky; top:16px; align-self:start; }
.inbox-item { display:block; border:1px solid transparent; border-radius:7px; padding:17px 14px; color:var(--ink); margin-bottom:4px; }
.inbox-item strong { font-size:13px; display:block; }
.inbox-item span { font-size:12px; color:var(--muted); display:block; margin:7px 0; }
.inbox-item small { font-size:11px; display:block; }
.inbox-item[aria-current='page'] { background:var(--card); border-color:var(--line); }
.inbox-item:hover { background:var(--card); text-decoration:none; }
.inbox-detail { padding:28px; min-width:0; scroll-margin-top:18px; }
.inbox-detail > .panel-heading { margin-bottom:12px; }
.request-message { background:var(--paper); padding:20px; border-radius:8px; font-size:14px; }
.case-context { padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:25px 0; }
.case-context h3 { font-size:14px; margin:0; }
.case-context .panel-heading { margin-bottom:10px; }
.case-context > p { font-size:13px; margin:0; }
.context-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 0; border-top:1px solid var(--line); font-size:13px; }
.context-row:first-child { border-top:0; }
.context-row small { display:block; margin-top:4px; }
.context-row .status { flex-shrink:0; }
.inbox-detail .fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.inbox-detail .fields:has(> input[name='decision'][value='close']) { grid-template-columns:1fr; }
.inbox-detail textarea { min-height:110px; }
.participant-drawer { position:fixed; inset:0 0 0 auto; width:min(650px,100%); height:100dvh; max-width:100%; max-height:100dvh; margin:0; padding:0 28px 28px; color:var(--ink); background:var(--card); border:0; border-left:1px solid var(--line); box-shadow:-20px 0 50px #241f3015; overflow-y:auto; }
.participant-drawer::backdrop { background:var(--overlay); }
.drawer-toolbar { display:flex; align-items:center; justify-content:space-between; padding:16px 0; position:sticky; top:0; background:var(--card); z-index:2; border-bottom:1px solid var(--line); margin-bottom:24px; color:var(--muted); font-size:12px; }
.drawer-person-name { font-size:25px; margin-bottom:10px; }
.participant-drawer .participant-meta { margin:20px 0; }
.participant-drawer .panel { padding:20px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.participant-drawer .timeline li { grid-template-columns:1fr; gap:6px; }
.participant-drawer .fields { grid-template-columns:1fr; }
.participant-drawer .scroll table { min-width:480px; }
body:has(dialog[open]) { overflow:hidden; }
.mobile-only { display:none!important; }
.admin-app.sidebar-compact { grid-template-columns:76px minmax(0,1fr); }
.sidebar-compact .admin-sidebar { padding:28px 10px 16px; }
.sidebar-compact .nav-label,.sidebar-compact .workspace-identity { display:none; }
.sidebar-compact .sidebar-brand { padding:0; justify-content:center; }
.sidebar-compact .wordmark { font-size:0; }
.sidebar-compact .wordmark::before { content:'t.'; font-size:29px; color:var(--accent); }
.sidebar-compact .admin-menu a,.sidebar-compact .sidebar-store,.sidebar-compact .sidebar-collapse { justify-content:center; padding:12px; }
.sidebar-compact .sidebar-collapse .ui-icon { transform:rotate(180deg); }
.store-header { padding:20px max(24px,calc((100% - 1080px)/2)); min-height:84px; }
.brand { font-size:21px; letter-spacing:-.04em; overflow-wrap:anywhere; }
.public-main { width:100%; max-width:1128px; padding:42px 24px 20px; }
.storefront { background:var(--store-paper); }
.intro { max-width:800px; margin:10px 0 38px; }
.intro h1 { font-size:clamp(30px,4vw,46px); font-weight:650; letter-spacing:-.045em; margin-bottom:20px; }
.intro p { font-size:15px; }
.intro .eyebrow { font-size:11px; }
.intro .store-session { font-size:12px; margin-top:22px; }
.store-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.store-card { background:var(--card); border:1px solid var(--store-line); display:flex; flex-direction:column; min-width:0; border-radius:6px; overflow:hidden; }
.program-poster { position:relative; height:178px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; padding:24px 28px; background:var(--studio-poster); color:var(--studio-ink); overflow:hidden; isolation:isolate; }
.program-poster::after { content:''; z-index:-1; position:absolute; width:165px; height:165px; border:30px solid var(--studio-shape); border-radius:50%; right:24px; top:-60px; }
.program-poster strong { font:500 53px/1 Georgia,serif; letter-spacing:-.06em; }
.poster-type { position:absolute; top:23px; left:28px; text-transform:uppercase; letter-spacing:.13em; font-size:11px; }
.poster-caption { font-size:11px; text-transform:uppercase; letter-spacing:.07em; max-width:110px; text-align:right; }
.club-card .program-poster { background:var(--club-poster); color:var(--club-ink); }
.club-card .program-poster::after { border-color:var(--club-shape); border-radius:100px; width:125px; height:210px; top:-100px; right:40px; transform:rotate(35deg); }
.store-card-content { display:flex; flex-direction:column; flex:1; padding:28px; }
.product-type { font-size:11px; color:var(--muted); margin-bottom:10px; }
.store-card h2 { font-size:26px; font-weight:600; letter-spacing:-.035em; }
.store-card .price { margin:23px 0 14px; font-size:33px; }
.price span { font-size:22px; font-weight:500; }
.store-terms { margin-bottom:24px; font-size:14px; }
.store-terms p { margin:0 0 4px; }
.store-terms .muted { font-size:12px; }
.store-purchase { margin-top:auto; border-top:1px solid var(--line); padding-top:20px; }
.store-purchase .button,.store-purchase button { width:100%; justify-content:space-between; border-radius:4px; padding:12px 16px; }
.store-purchase p { margin:0; }
.store-footer { padding:28px 24px 35px; font-size:11px; }
.store-footer a { color:var(--muted); font-weight:650; letter-spacing:-.02em; }
.member-app .public-main { max-width:1000px; padding-top:22px; }
.member-avatar { display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; width:42px; height:42px; color:var(--muted); background:var(--card); font-size:13px; flex-shrink:0; }
.member-avatar:hover { text-decoration:none; border-color:var(--accent); }
.member-nav { display:flex; gap:28px; border-bottom:1px solid var(--line); margin-bottom:32px; }
.member-nav a { display:flex; align-items:center; gap:8px; padding:12px 0; border-bottom:2px solid transparent; color:var(--muted); font-size:13px; }
.member-nav a[aria-current='page'] { color:var(--accent); border-color:var(--accent); font-weight:600; }
.member-nav a:hover { text-decoration:none; color:var(--accent); }
.member-nav a>span { display:flex; align-items:center; gap:6px; }
.nav-dot { display:inline-block; width:5px; height:5px; background:var(--accent); border-radius:50%; }
.member-heading { margin-bottom:28px; }
.member-heading h1 { font-size:32px; }
.member-heading .text-button { flex-shrink:0; font-size:12px; }
.pass-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.access-pass { min-width:0; border:1px solid var(--line); background:var(--card); border-radius:14px; display:flex; flex-direction:column; }
.pass-top { padding:25px; flex:1; }
.pass-meta { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-bottom:27px; }
.pass-meta > span:first-child { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.07em; }
.pass-top h2 { font-size:28px; letter-spacing:-.04em; margin-bottom:12px; }
.pass-top > p { font-size:13px; color:var(--muted); margin:0; }
.pass-perforation { position:relative; border-top:1px dashed var(--control-line); margin:0 17px; }
.pass-perforation::before,.pass-perforation::after { content:''; position:absolute; top:-9px; width:16px; height:16px; border:1px solid var(--line); border-radius:50%; background:var(--paper); }
.pass-perforation::before { left:-26px; }
.pass-perforation::after { right:-26px; }
.pass-bottom { padding:24px 25px; }
.pass-bottom button { width:100%; min-height:46px; gap:10px; }
.pass-bottom > p { text-align:center; font-size:11px; color:var(--muted); margin:13px 0 0; }
.pass-bottom .upcoming-access { padding:12px 0; color:var(--ink); font-size:14px; margin:0; }
.member-help-link { text-align:center; margin:27px 0 0; font-size:12px; }
.past-programs { margin-top:30px; }
.past-programs summary { color:var(--muted); font-size:13px; }
.member-lead { color:var(--muted); font-size:14px; margin-top:-12px; margin-bottom:28px; }
.purchase-group,.member-request { padding:26px; background:var(--card); border:1px solid var(--line); border-radius:12px; margin-bottom:22px; }
.purchase-group .panel-heading { align-items:flex-start; }
.purchase-group h2 { font-size:22px; }
.purchase-group .eyebrow { margin-bottom:5px; }
.purchase-group > .text-button { margin-top:15px; }
.subscription-summary { padding-top:16px; margin-top:20px; border-top:1px solid var(--line); }
.subscription-summary h3 { font-size:14px; font-weight:600; }
.subscription-summary p { font-size:13px; }
.purchase-history summary { font-size:13px; }
.receipt-row { padding:18px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:15px; font-size:13px; }
.receipt-row small { display:block; margin-top:5px; }
.receipt-row .status { margin-top:7px; }
.receipt-row > a { flex-shrink:0; font-size:12px; }
.receipt-heading { font-size:14px; margin:24px 0 0; }
.new-request { margin:0 0 28px; padding:0; border:0; }
.new-request > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; width:fit-content; background:var(--action); color:white; border-radius:7px; padding:12px 16px; list-style:none; font-size:14px; }
.new-request > summary::-webkit-details-marker { display:none; }
.new-request[open] > summary .ui-icon { transform:rotate(45deg); }
.new-request form { max-width:650px; margin-top:24px; padding:25px; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.new-request form p { margin:0; }
.member-request h2 { font-size:17px; }
.member-request .panel-heading { gap:12px; margin-bottom:9px; }
.request-answer { padding:17px; border-radius:7px; background:var(--answer-bg); color:var(--answer-ink); font-size:13px; margin-bottom:16px; }
.request-answer p { margin:8px 0 0; }
.request-withdraw summary { font-size:12px; font-weight:500; }
.request-withdraw p { font-size:13px; }
.profile-card { max-width:600px; }
.profile-list { display:grid; grid-template-columns:120px minmax(0,1fr); gap:20px; margin:0 0 25px; }
.profile-list dt { color:var(--muted); }
.profile-list dd { margin:0; overflow-wrap:anywhere; }
.empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; align-items:center; margin-top:22px; }
@media(max-width:1150px){
 .admin-app { grid-template-columns:195px minmax(0,1fr); }
 .admin-sidebar { padding-left:10px; padding-right:10px; }
 .admin-section { padding:28px; }
 .topbar { padding:12px 28px; }
 .inbox-layout { grid-template-columns:225px minmax(0,1fr); }
 .inbox-detail { padding:22px; }
 .inbox-detail .fields { grid-template-columns:1fr; }
}
@media(max-width:840px){
 .admin-app,.admin-app.sidebar-compact { display:block; }
 .admin-sidebar { position:static; height:auto; max-height:none; padding:20px; width:100%; }
 .admin-sidebar .admin-menu { flex-direction:row; flex-wrap:wrap; }
 .sidebar-bottom { padding-top:12px; }
 .sidebar-version { display:none; }
 .sidebar-brand,.workspace-identity { margin:0; }
 .js .admin-sidebar { display:none; }
 .js .mobile-only { display:inline-flex!important; }
 .js .sidebar-collapse { display:none; }
 .admin-section { padding:24px 20px; }
 .topbar { height:66px; min-height:66px; padding:10px 16px; gap:10px; flex-wrap:nowrap; }
 .header-actions { gap:8px; }
 .global-search { flex:1; width:auto; }
 .global-search input { font-size:16px; }
 .staff-name { display:none; }
 .admin-app.mobile-nav-open .admin-sidebar { display:flex; flex-direction:column; position:fixed; top:0; left:0; height:100dvh; width:min(300px,88%); z-index:21; background:var(--navigation); overflow:auto; }
 .admin-app.mobile-nav-open .admin-menu { flex-direction:column; }
 .admin-app.mobile-nav-open .nav-label { display:block; }
 .admin-app.mobile-nav-open .workspace-identity { display:flex; }
 .admin-app.mobile-nav-open .wordmark { font-size:27px; }
 .admin-app.mobile-nav-open .wordmark::before { content:none; }
 .admin-app.mobile-nav-open .admin-menu a,.admin-app.mobile-nav-open .sidebar-store { justify-content:flex-start; }
 .admin-app.mobile-nav-open { overflow:hidden; }
 .nav-scrim { position:fixed; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:0; z-index:20; background:var(--scrim); }
 .inbox-layout { grid-template-columns:1fr; }
 .inbox-list { max-height:260px; position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-right:0; border-bottom:1px solid var(--line); }
 .inbox-item { padding:14px 12px; }
 .inbox-detail { padding:24px; }
 .inbox-detail .fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .store-grid { gap:20px; }
 .program-poster { padding:22px; height:150px; }
 .poster-type { left:22px; }
 .store-card-content { padding:23px; }
 .store-card h2 { font-size:23px; }
}
@media(max-width:640px){
 .launch-summary { grid-template-columns:minmax(0,1fr); }
 .launch-summary-aside { border-left:0; border-top:1px solid var(--line); padding-left:0; padding-top:18px; }
 .launch-step { grid-template-columns:32px minmax(0,1fr); gap:9px 12px; }
 .launch-step .status,.launch-step .button { grid-column:2; justify-self:start; width:auto; }
 .launch-service { grid-template-columns:minmax(0,1fr); gap:8px; }
 .launch-metrics { grid-template-columns:minmax(0,1fr); }
 .launch-metrics a { flex-direction:row; align-items:center; justify-content:space-between; gap:14px; }
 .launch-notice { flex-wrap:wrap; }
 .reminder-fields { grid-template-columns:minmax(0,1fr); }
 .public-main,.member-app .public-main { padding:26px 20px 10px; }
 .store-header { padding:15px 20px; min-height:72px; }
 .brand { font-size:18px; }
 .store-header .button { font-size:12px; padding:8px 10px; }
 .store-header .button .ui-icon { display:none; }
 .intro { margin:5px 0 26px; }
 .intro h1 { font-size:32px; }
 .intro p { font-size:14px; }
 .store-grid,.pass-grid { grid-template-columns:1fr; gap:23px; }
 .program-poster { height:144px; }
 .program-poster strong { font-size:47px; }
 .store-card-content { padding:24px; }
 .member-app { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
 .member-nav { position:fixed; bottom:0; left:0; right:0; z-index:10; margin:0; padding:8px 12px calc(10px + env(safe-area-inset-bottom)); justify-content:space-around; gap:6px; background:var(--card); border-top:1px solid var(--line); border-bottom:0; }
 .member-nav a { flex:1; display:flex; flex-direction:column; gap:5px; padding:5px; min-height:50px; border:0; font-size:11px; }
 .member-nav a[aria-current='page'] { border:0; }
 .member-heading { align-items:flex-start; flex-wrap:wrap; gap:10px; }
 .member-heading h1 { font-size:29px; }
 .member-heading .text-button { min-height:32px; }
 .pass-top { padding:23px; }
 .pass-top h2 { font-size:27px; }
 .pass-bottom { padding:22px 23px; }
 .purchase-group,.member-request { padding:21px; }
 .new-request form { padding:20px; }
 .receipt-row { flex-wrap:wrap; }
 .member-request .panel-heading { align-items:flex-start; }
 .inbox-list { grid-template-columns:1fr; max-height:230px; }
 .inbox-detail { padding:20px; }
 .inbox-detail .fields { grid-template-columns:1fr; }
 .work-row { flex-wrap:wrap; gap:10px; }
 .work-row-text { flex-basis:calc(100% - 54px); }
 .work-row .button { margin-left:auto; }
 .program-count { margin-left:54px; }
 .statline { gap:10px 20px; }
 .statline a { font-size:12px; }
 .page-heading h1 { font-size:29px; }
 .section-tabs { gap:18px; margin-top:-8px; }
 .section-tabs a { font-size:12px; }
 .participant-drawer { padding:0 20px 24px; }
 input,select,textarea { font-size:16px; }
 button,.button,.text-button { min-height:44px; }
 .profile-list { grid-template-columns:90px minmax(0,1fr); gap:15px; font-size:13px; }
}
.button .ui-icon,.text-button .ui-icon,a > .ui-icon { width:17px; height:17px; }
.admin-menu a > .ui-icon { width:20px; height:20px; }
.inbox-detail .request-message { padding:16px; }
.inbox-detail .case-context { padding:12px 0; margin:18px 0; }
.inbox-detail .case-context details { margin-top:12px; padding:12px 0 0; }
.inbox-detail .context-row { padding:10px 0; }
.inbox-detail textarea { min-height:90px; }

/* Program catalog and editor — one creation action, distinct format choices. */
.programs-heading { margin-bottom:16px; flex-wrap:wrap; }
.programs-heading > div { min-width:0; }
.programs-heading > .button { flex:none; }
.program-create-button { gap:9px; }
.program-catalog-intro { display:flex; justify-content:space-between; align-items:baseline; gap:10px 24px; flex-wrap:wrap; margin-bottom:20px; }
.program-catalog-intro p { margin:0; }
.program-catalog-intro a { font-size:13px; }
.program-catalog { padding:0; overflow:visible; }
.program-catalog-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; }
.program-filters { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.program-filters a { display:inline-flex; align-items:center; min-height:36px; padding:7px 11px; border-radius:7px; font-size:13px; font-weight:550; color:var(--muted); white-space:nowrap; }
.program-filters a:hover { text-decoration:none; color:var(--ink); background:var(--inset); }
.program-filters a[aria-current='page'] { background:var(--accent-soft); color:var(--accent); font-weight:650; }
.program-search { display:flex; align-items:center; gap:6px; flex:0 1 240px; min-width:180px; }
.program-search input { min-height:38px; padding:8px 10px; }
.program-search .icon-button { width:36px; min-width:36px; min-height:38px; height:38px; }
.program-payments-notice { margin:0 20px 16px; padding:10px 12px; color:var(--warning-ink); background:var(--warning-bg); border-radius:8px; font-size:12px; }
.program-payments-notice a { color:inherit; text-decoration:underline; font-weight:600; }
.program-table { width:100%; table-layout:fixed; }
.program-col-identity { width:24%; }
.program-col-price { width:12%; }
.program-col-terms { width:19%; }
.program-col-group { width:17%; }
.program-col-status { width:14%; }
.program-col-actions { width:14%; }
.program-table th { white-space:normal; font-size:12px; padding:13px 12px; }
.program-table td { vertical-align:middle; padding:20px 12px; overflow-wrap:anywhere; }
.program-table th:first-child,.program-table td:first-child { padding-left:20px; }
.program-table th:last-child,.program-table td:last-child { padding-right:20px; }
.program-table td small { display:block; margin-top:4px; font-size:11px; line-height:1.45; }
.program-identity { display:flex; align-items:center; gap:11px; min-width:0; }
.program-identity > div { min-width:0; }
.program-format-icon { display:inline-grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:11px; background:var(--accent-soft); color:var(--accent); }
.program-format-icon.club { background:var(--club-poster); color:var(--club-ink); }
.program-format-icon.marathon { background:var(--studio-poster); color:var(--studio-ink); }
.program-format-icon .ui-icon { width:20px; height:20px; }
.program-name { color:var(--ink); font-weight:650; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.program-name:hover { color:var(--accent); }
.program-price-cell { font-variant-numeric:tabular-nums; }
.program-price-cell strong { font-size:14px; white-space:normal; font-weight:650; }
.program-terms-cell,.program-group-cell { font-size:13px; line-height:1.45; }
.program-terms-cell strong { font-weight:550; }
.program-group-cell code { font-size:10px; }
.program-status-cell .status { white-space:normal; }
.program-actions-head { text-align:right; }
.program-row-actions { display:flex; justify-content:flex-end; align-items:center; gap:6px; flex-wrap:wrap; }
.program-edit-link { display:inline-flex; align-items:center; min-height:36px; font-weight:650; font-size:13px; white-space:nowrap; }
.program-row-actions .secondary { font-size:12px; padding:7px 10px; min-height:36px; }
.program-menu { margin:0; padding:0; border:0; position:relative; flex:none; }
.program-menu[open] { z-index:12; }
.program-menu summary { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--line); border-radius:8px; color:var(--muted); list-style:none; }
.program-menu summary::-webkit-details-marker { display:none; }
.program-menu[open] summary { margin:0; }
.program-menu summary:hover,.program-menu[open] summary { color:var(--accent); background:var(--accent-soft); border-color:var(--hover-line); }
.program-popover { position:absolute; z-index:12; top:calc(100% + 6px); right:0; display:grid; gap:2px; width:208px; padding:5px; background:var(--card); border:1px solid var(--control-line); border-radius:10px; box-shadow:0 12px 32px #130e2330; }
.program-popover a,.program-popover button { display:flex; justify-content:space-between; align-items:center; width:100%; color:var(--ink); text-align:left; background:transparent; border:0; border-radius:6px; min-height:37px; padding:9px 10px; font-size:13px; font-weight:500; gap:7px; }
.program-popover a:hover,.program-popover button:hover { background:var(--inset); color:var(--accent); text-decoration:none; }
.program-popover .program-destructive-link,.program-destructive-link { color:var(--error-ink); }
.program-popover .program-destructive-link { border-top:1px solid var(--line); border-radius:0 0 6px 6px; }
.program-empty { padding:44px 24px 50px; border-top:1px solid var(--line); }
.program-empty .program-format-icon { margin-bottom:10px; }
.program-empty > a { display:inline-block; margin-top:14px; }
.program-create-intro { margin:8px 0 22px; }
.program-create-intro h2 { font-size:20px; margin-bottom:6px; }
.program-create-intro p { margin-bottom:0; }
.program-type-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:980px; }
.program-type-choice { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:13px; overflow:hidden; background:var(--card); color:var(--ink); transition:border-color .15s, box-shadow .15s; }
.program-type-choice:hover { text-decoration:none; border-color:var(--hover-line); box-shadow:0 6px 22px #241f3010; }
.program-choice-poster { display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; gap:20px; position:relative; isolation:isolate; overflow:hidden; padding:22px; min-height:138px; }
.program-type-choice.club .program-choice-poster { background:var(--club-poster); color:var(--club-ink); }
.program-type-choice.marathon .program-choice-poster { background:var(--studio-poster); color:var(--studio-ink); }
.program-choice-poster::after { content:''; position:absolute; z-index:-1; right:-22px; top:-50px; width:150px; height:150px; border:26px solid var(--studio-shape); border-radius:50%; }
.program-type-choice.club .program-choice-poster::after { width:110px; height:168px; border-color:var(--club-shape); border-radius:65px; transform:rotate(32deg); top:-70px; right:20px; }
.program-choice-poster > span:first-child { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.program-choice-poster > strong { font:500 38px/1 Georgia,serif; letter-spacing:-.045em; }
.program-choice-poster .program-format-icon { position:absolute; right:18px; bottom:18px; border:1px solid currentColor; background:transparent; }
.program-choice-body { display:flex; flex-direction:column; flex:1; padding:22px; }
.program-choice-body h3 { margin:0 0 9px; font-size:17px; line-height:1.4; }
.program-choice-body p { margin-bottom:24px; color:var(--muted); font-size:13px; }
.program-choice-link { display:flex; margin-top:auto; color:var(--accent); font-size:14px; font-weight:650; border-top:1px solid var(--line); padding-top:16px; }
.program-type-choice:hover .program-choice-link { text-decoration:underline; }
.program-no-groups { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.program-no-groups > div { flex:1; min-width:min(240px,100%); }
.program-no-groups h2 { margin-bottom:6px; }
.program-no-groups p { margin:0; }
.program-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(218px,270px); align-items:start; gap:20px; max-width:1200px; }
.program-editor-main { min-width:0; }
.program-editor-intro { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:6px 0 20px; }
.program-editor-intro > div { flex:1; min-width:0; }
.program-editor-intro > div > strong { display:block; font-size:16px; overflow-wrap:anywhere; }
.program-editor-intro small { display:block; margin-top:3px; }
.program-editor-intro > a { font-weight:600; font-size:13px; }
.program-editor { display:grid; gap:14px; }
.program-form-section { margin:0; padding:24px; min-width:0; }
.program-form-heading { margin-bottom:17px; }
.program-section-kicker { display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:4px; }
.program-form-heading h2 { font-size:18px; margin-bottom:5px; }
.program-form-heading p { font-size:13px; margin:0; }
.program-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.program-form-grid > * { min-width:0; }
.program-basics-grid { grid-template-columns:minmax(0,2fr) minmax(110px,1fr); }
.program-field-wide { grid-column:1/-1; }
.program-form-section label { font-size:14px; }
.program-form-note { font-size:12px; color:var(--muted); margin:12px 0 0; }
.program-extra { margin-top:16px; padding:15px 0 0; }
.program-extra > summary { font-size:13px; }
.program-extra > label { max-width:420px; }
.program-extra > p { font-size:13px; }
.program-locked-terms { display:grid; gap:13px; margin:0; }
.program-locked-terms > div { display:grid; grid-template-columns:minmax(100px,150px) minmax(0,1fr); align-items:baseline; gap:8px; }
.program-locked-terms dt { color:var(--muted); font-size:13px; }
.program-locked-terms dd { margin:0; overflow-wrap:anywhere; }
.program-locked-terms dd > small { display:block; }
.program-form-section > label:has([name='provider_plan']) { max-width:390px; }
.program-publication { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; border:0; padding:0; min-width:0; gap:10px; }
.program-publication .visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.program-publish-choice { flex-direction:row; align-items:flex-start; padding:13px; gap:10px; border:1px solid var(--control-line); border-radius:9px; cursor:pointer; }
.program-publish-choice:has(input:checked) { background:var(--accent-soft); border-color:var(--hover-line); }
.program-publish-choice input { width:18px; height:18px; min-height:18px; padding:0; flex:0 0 18px; margin:2px 0 0; accent-color:var(--action); }
.program-publish-choice > span { min-width:0; }
.program-publish-choice strong,.program-publish-choice small { display:block; }
.program-publish-choice strong { font-size:13px; }
.program-publish-choice small { font-size:12px; line-height:1.45; margin-top:4px; }
.program-form-footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:6px 0 10px; }
.program-form-footer small { flex-basis:100%; }
.program-editor-aside { display:grid; gap:12px; position:sticky; top:92px; margin:0; padding:20px; }
.program-editor-aside h2 { font-size:16px; }
.program-editor-aside p { font-size:12px; margin:0; }
.program-editor-aside a { font-size:13px; font-weight:550; }
.program-editor-aside .program-status-cell small { display:block; margin-top:5px; }
.program-editor-aside .program-destructive-link { border-top:1px solid var(--line); padding-top:12px; }
.program-process { margin:0; padding-left:19px; display:grid; gap:9px; font-size:13px; }
.program-group-section { margin-top:16px; }
.program-group-section .program-extra { margin-top:10px; }
.program-group-form { display:grid; gap:14px; }
.program-remove { max-width:720px; }
.program-remove .program-editor-intro { margin:0 0 24px; }
.program-remove h3 { margin-bottom:10px; }
.program-remove .actions { margin-top:25px; justify-content:flex-end; }
.program-danger-button { background:#ac3247; color:white; }
.program-danger-button:hover { background:#8c2839; }
.automation-choice-top { display:flex; align-items:center; justify-content:space-between; padding:22px 22px 0; }
.automation-symbol { display:inline-grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border-radius:12px; }
.automation-symbol.reminder { background:var(--accent-soft); color:var(--accent); }
.automation-symbol.leave { background:var(--club-poster); color:var(--club-ink); }
.automation-symbol .ui-icon { width:22px; height:22px; }
.automation-variables { display:flex; flex-wrap:wrap; gap:9px 15px; margin-top:12px; color:var(--muted); font-size:12px; }
.automation-variables code { color:var(--accent); background:var(--accent-soft); padding:3px 5px; border-radius:5px; }
.automation-row { display:grid; grid-template-columns:44px minmax(0,1fr) 115px auto; align-items:center; gap:12px 20px; padding:20px; border-top:1px solid var(--line); }
.automation-row-info { min-width:0; }
.automation-row-info a { color:var(--ink); font-size:15px; }
.automation-row-info a:hover { color:var(--accent); }
.automation-row-info small { display:block; margin:3px 0 7px; }
.automation-row-info p { color:var(--muted); margin:0; font-size:13px; overflow-wrap:anywhere; }
.automation-row-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.automation-row-actions .button,.automation-row-actions button { min-height:38px; font-size:13px; padding:8px 11px; }
.automation-row-actions form button { min-width:90px; }
.automation-table { min-width:580px; }
.automation-table td,.automation-table th { font-size:13px; }
.automation-table td { max-width:320px; overflow-wrap:anywhere; }
.automation-table td .secondary { padding:7px 12px; min-height:35px; font-size:12px; }
.program-catalog .pagination { margin:0; padding:15px 20px; border-top:1px solid var(--line); }
.staff-roles { margin:0; }
.staff-roles dt { font-size:13px; font-weight:650; }
.staff-roles dd { font-size:12px; color:var(--muted); margin:2px 0 14px; }
.staff-roles dd:last-child { margin-bottom:0; }
.staff-login-name { margin:0; padding:8px 0; min-height:42px; }
.staff-enabled { margin-top:16px; }
.staff-builtin { display:flex; gap:12px; align-items:center; }
.staff-builtin strong { font-size:14px; }
.access-editor-fields { align-items:start; }
.integration-config > summary { display:inline-flex; align-items:center; border:1px solid var(--control-line); border-radius:8px; min-height:40px; padding:9px 14px; list-style:none; color:var(--ink); }
.integration-config > summary::-webkit-details-marker { display:none; }
.integration-config[open] > summary { color:var(--accent); background:var(--accent-soft); }
.program-editor .team-form-field { align-self:start; }
@media(max-width:820px) {
  .automation-row { grid-template-columns:44px minmax(0,1fr); gap:10px; }
  .automation-row-state { grid-column:2; }
  .automation-row-actions { grid-column:1/-1; border-top:1px solid var(--line); padding-top:12px; }
  .automation-row-actions > a,.automation-row-actions > form { flex:1; }
  .automation-row-actions button { width:100%; }
}
@media(max-width:1140px) {
  .program-catalog-toolbar { align-items:stretch; }
  .program-search { flex:1 1 200px; max-width:300px; }
  .program-table,.program-table tbody { display:block; }
  .program-table colgroup { display:none; }
  .program-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .program-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:13px 16px; padding:18px 20px; border-top:1px solid var(--line); }
  .program-table td,.program-table td:first-child,.program-table td:last-child { display:block; border:0; min-width:0; padding:0; }
  .program-table .program-identity-cell,.program-table .program-actions-cell { grid-column:1/-1; }
  .program-table td[data-label]::before { content:attr(data-label); display:block; margin:0 0 4px; color:var(--muted); font-size:11px; font-weight:550; }
  .program-table .program-actions-cell { padding-top:12px; border-top:1px solid var(--line); }
  .program-row-actions { justify-content:flex-end; }
  .program-table tr:hover { background:var(--card); }
  .program-editor-layout { grid-template-columns:minmax(0,1fr); }
  .program-editor-aside { position:static; }
}
@media(max-width:640px) {
  .programs-heading { gap:12px; align-items:flex-end; }
  .programs-heading h1 { max-width:100%; overflow-wrap:anywhere; }
  .programs-heading > .button { width:100%; min-height:44px; }
  .program-catalog-intro { margin-bottom:16px; font-size:13px; }
  .program-catalog-toolbar { padding:13px 14px; gap:10px; }
  .program-filters { gap:3px; width:100%; }
  .program-filters a { padding:7px 9px; min-height:36px; font-size:12px; }
  .program-search { flex:1 1 100%; max-width:none; }
  .program-search input { min-height:42px; }
  .program-payments-notice { margin:0 14px 13px; }
  .program-table tr { padding:17px 14px; gap:14px 12px; }
  .program-row-actions { justify-content:space-between; }
  .program-row-actions .program-menu { margin-left:auto; }
  .program-menu summary,.program-edit-link { min-height:44px; height:44px; }
  .program-menu summary { width:44px; }
  .program-type-choices,.program-form-grid,.program-publication { grid-template-columns:minmax(0,1fr); }
  .program-choice-poster { min-height:122px; padding:20px; }
  .program-choice-poster > strong { font-size:35px; }
  .program-choice-body,.program-form-section { padding:18px; }
  .program-editor-intro > a { flex-basis:100%; padding-left:52px; }
  .program-publish-choice { padding:12px; }
  .program-form-footer .button,.program-form-footer button { flex:1 1 auto; }
  .program-locked-terms > div { grid-template-columns:minmax(0,1fr); gap:3px; }
}

/* Business analytics uses the same tokens and responsive workspace shell. */
.analytics-page { display:grid; gap:22px; min-width:0; font-variant-numeric:tabular-nums; }
.analytics-page > *, .analytics-grid > *, .analytics-subgrid > * { min-width:0; }
.analytics-page .panel { margin:0; }
.analytics-page h2 { margin-bottom:5px; }
.analytics-filters { display:grid; gap:14px; }
.analytics-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; }
.analytics-toolbar .eyebrow { margin:0 0 3px; }
.analytics-period-title { font-size:16px; font-weight:650; margin:0; }
.analytics-presets { display:inline-flex; padding:3px; border:1px solid var(--line); background:var(--card); border-radius:9px; gap:2px; }
.analytics-presets a { color:var(--muted); font-size:12px; font-weight:600; padding:7px 10px; border-radius:6px; white-space:nowrap; }
.analytics-presets a[aria-current='page'] { background:var(--accent-soft); color:var(--accent); }
.analytics-export { margin-left:auto; }
.analytics-filter-form { display:grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(160px, 1.6fr) auto; align-items:end; gap:12px; }
.analytics-filter-form > * { min-width:0; }
.analytics-filter-form button { min-height:42px; }
.analytics-comparison { margin:0; }
.analytics-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.analytics-kpi { display:flex; flex-direction:column; min-width:0; gap:11px; padding:18px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.analytics-primary { border-color:var(--hover-line); background:var(--accent-soft); }
.analytics-kpi > span { font-size:12px; font-weight:600; color:var(--muted); }
.analytics-kpi > strong { font-size:clamp(20px, 2vw, 30px); line-height:1.15; letter-spacing:-.035em; overflow-wrap:anywhere; }
.analytics-primary > strong { color:var(--accent); }
.analytics-kpi > strong span { font-size:.75em; }
.analytics-kpi-foot { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 8px; margin-top:auto; font-size:11px; }
.analytics-kpi-foot small { font-size:11px; }
.analytics-delta { font-size:12px; font-weight:650; }
.analytics-delta.up { color:var(--success-ink); }
.analytics-delta.down { color:var(--error-ink); }
.analytics-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(218px,1fr); gap:16px; }
.analytics-chart-panel .panel-heading, .analytics-funnel .panel-heading { margin-bottom:19px; }
.analytics-chart-panel .panel-heading p, .analytics-funnel .panel-heading p, .analytics-programs .panel-heading p { font-size:12px; }
.analytics-chart-scroll { width:100%; overflow-x:auto; }
.analytics-chart { display:block; width:100%; min-width:450px; height:auto; overflow:hidden; }
.analytics-chart text { fill:var(--muted); font-family:inherit; font-size:11px; }
.analytics-gridline { stroke:var(--line); stroke-width:1; }
.analytics-bar { fill:var(--accent); opacity:.76; transition:opacity .12s; }
.analytics-bar:hover { opacity:1; }
.analytics-details { margin-top:12px; padding-top:13px; }
.analytics-details table { margin-top:12px; }
.analytics-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:195px; padding:18px; }
.analytics-empty-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:12px; color:var(--accent); background:var(--accent-soft); margin-bottom:11px; }
.analytics-empty p { font-size:12px; }
.analytics-funnel-value { display:grid; gap:2px; margin:4px 0 22px; }
.analytics-funnel-value > strong { font-size:34px; line-height:1.2; letter-spacing:-.035em; color:var(--accent); }
.analytics-funnel-value > span { font-size:12px; color:var(--muted); }
.analytics-funnel-row { display:flex; align-items:baseline; justify-content:space-between; gap:9px; font-size:12px; margin-top:14px; }
.analytics-page progress { display:block; margin:7px 0 0; border:0; border-radius:4px; width:100%; height:7px; background:var(--inset); color:var(--accent); appearance:none; }
.analytics-page progress::-webkit-progress-bar { background:var(--inset); border-radius:4px; }
.analytics-page progress::-webkit-progress-value { background:var(--accent); border-radius:4px; }
.analytics-page progress::-moz-progress-bar { background:var(--accent); border-radius:4px; }
.analytics-page progress.analytics-progress-paid::-webkit-progress-value { background:var(--success-ink); }
.analytics-page progress.analytics-progress-paid::-moz-progress-bar { background:var(--success-ink); }
.analytics-funnel > small { display:block; margin-top:16px; }
.analytics-heading { margin-bottom:12px; }
.analytics-heading p { margin-bottom:0; font-size:12px; }
.analytics-subgrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.analytics-metric-sheet { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:18px; }
.analytics-metric-sheet > span { font-size:12px; font-weight:600; min-height:36px; }
.analytics-number { font-size:27px; line-height:1.1; letter-spacing:-.025em; }
.analytics-metric-sheet small { font-size:11px; }
.analytics-retention-legend { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:11px; color:var(--muted); }
.analytics-retention-legend b { color:var(--ink); }
.analytics-current-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.analytics-current-grid > div { border-left:2px solid var(--line); padding-left:13px; display:grid; grid-template-rows:minmax(35px,auto) auto 1fr; gap:6px; }
.analytics-current-grid span { font-size:12px; color:var(--muted); }
.analytics-current-grid strong { font-size:24px; line-height:1.1; }
.analytics-current-grid small { font-size:11px; }
.analytics-warning { color:var(--warning-ink); }
.analytics-links { display:flex; flex-wrap:wrap; gap:16px; margin-top:17px; font-size:12px; }
.analytics-programs th { white-space:normal; }
.analytics-programs td { font-size:12px; }
.analytics-programs td:first-child { min-width:140px; }
.analytics-revenue-cell { min-width:126px; }
.analytics-revenue-cell > strong { white-space:nowrap; }
.analytics-revenue-cell progress { height:4px; max-width:110px; }
.analytics-method summary { font-size:13px; }
.analytics-method-content { margin-top:16px; max-width:900px; color:var(--muted); font-size:12px; }
.analytics-method-content p:last-child { margin-bottom:0; }
@media (max-width:1100px) {
  .analytics-kpis,.analytics-subgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-current-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-metric-sheet > span { min-height:0; }
}
@media (max-width:850px) {
  .analytics-grid { grid-template-columns:1fr; }
  .analytics-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-filter-form button { width:100%; }
}
@media (max-width:560px) {
  .analytics-page { gap:15px; }
  .analytics-toolbar { gap:11px; }
  .analytics-toolbar > div { flex-basis:100%; }
  .analytics-export { margin-left:0; font-size:12px; }
  .analytics-filter-form { gap:10px; }
  .analytics-filter-form label:has(select),.analytics-filter-form button { grid-column:1/-1; }
  .analytics-kpis,.analytics-subgrid { gap:9px; }
  .analytics-kpi,.analytics-metric-sheet { padding:14px; gap:9px; }
  .analytics-kpi > strong { font-size:21px; }
  .analytics-kpi-foot { display:grid; gap:2px; }
  .analytics-current-grid { gap:15px 10px; }
  .analytics-current-grid > div { padding-left:10px; }
  .analytics-number { font-size:24px; }
}
