@charset "UTF-8";

:root {
  --cm-surface: #fff;
  --cm-app-bg: #f4f7f7;
  --cm-border: var(--cm-neutral-200);
  --cm-text: var(--cm-neutral-900);
  --cm-text-muted: var(--cm-neutral-500);
  --cm-focus: #005fcc;
  --cm-sidebar-width: 264px;
  --cm-content-width: 1280px;
  --cm-header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--cm-text); background: var(--cm-brand-offwhite); font-family: var(--cm-font-ui); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.app-page { background: var(--cm-app-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--cm-action-teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--cm-action-teal-hover); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .65; }
:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: 12px; transform: translateY(-180%); padding: 12px 16px; border-radius: var(--cm-radius-sm); background: #fff; color: var(--cm-brand-navy); box-shadow: var(--cm-shadow-lg); }
.skip-link:focus { transform: translateY(0); }

.public-container { width: min(calc(100% - 40px), var(--cm-content-width)); margin-inline: auto; }
.card { background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); box-shadow: var(--cm-shadow-sm); }
.muted { color: var(--cm-text-muted); }
.text-danger { color: var(--cm-danger) !important; }
.eyebrow { margin: 0 0 8px; color: var(--cm-action-teal); font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--cm-radius-md); background: transparent; color: var(--cm-text); font-weight: 750; line-height: 1.2; text-decoration: none; transition: background var(--cm-motion-standard) var(--cm-easing-standard), color var(--cm-motion-standard) var(--cm-easing-standard), border-color var(--cm-motion-standard) var(--cm-easing-standard), transform var(--cm-motion-fast) var(--cm-easing-standard); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cm-action-teal); color: #fff; }
.btn-primary:hover { background: var(--cm-action-teal-hover); color: #fff; }
.btn-accent { background: var(--cm-action-orange); color: #fff; }
.btn-accent:hover { background: var(--cm-action-orange-hover); color: #fff; }
.btn-outline { border-color: var(--cm-action-teal); background: #fff; color: var(--cm-action-teal); }
.btn-outline:hover { background: #e9f5f4; color: var(--cm-action-teal-hover); }
.btn-light { background: #fff; color: var(--cm-brand-navy); }
.btn-text { color: var(--cm-action-teal); }
.btn-text:hover { background: var(--cm-neutral-100); }
.btn-danger { background: var(--cm-danger); color: #fff; }
.btn-danger:hover { background: #8e1d18; color: #fff; }
.btn-danger-outline { border-color: var(--cm-danger); color: var(--cm-danger); background: #fff; }
.btn-danger-outline:hover { background: #fff0ef; color: #8e1d18; }
.btn-sm { min-height: 38px; padding: 7px 12px; font-size: .8125rem; }
.btn-block { width: 100%; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-md); background: #fff; color: var(--cm-brand-navy); }
.icon-button:hover { background: var(--cm-neutral-100); }
.icon-button-dark { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }
.text-link { font-weight: 700; text-decoration: none; }

.public-header { position: sticky; z-index: 50; top: 0; min-height: var(--cm-header-height); border-bottom: 1px solid rgba(30,58,74,.09); background: rgba(255,248,240,.96); backdrop-filter: blur(14px); }
.public-header-inner { width: min(calc(100% - 40px), var(--cm-content-width)); min-height: var(--cm-header-height); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand-link { display: inline-flex; align-items: center; }
.brand-link img { width: 205px; }
.public-navigation { display: flex; justify-content: center; align-items: center; gap: 32px; }
.public-navigation a { position: relative; padding: 25px 0 22px; color: var(--cm-neutral-700); font-weight: 700; text-decoration: none; }
.public-navigation a::after { content: ""; position: absolute; right: 0; bottom: 13px; left: 0; height: 3px; border-radius: 3px; background: var(--cm-action-teal); transform: scaleX(0); transition: transform var(--cm-motion-standard); }
.public-navigation a:hover::after, .public-navigation a.active::after { transform: scaleX(1); }
.public-navigation a.active { color: var(--cm-action-teal); }
.public-actions { display: flex; align-items: center; gap: 10px; }
.language-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; }
.mobile-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-md); background: #fff; }

.public-hero { position: relative; overflow: hidden; padding: 66px 0 90px; background: var(--cm-brand-offwhite); }
.public-hero::before { content: ""; position: absolute; inset: 0 0 0 48%; background: url('/assets/brand/compass-pattern-tile.png') repeat; background-size: 220px; opacity: .07; }
.public-hero::after { content: ""; position: absolute; top: -240px; right: -180px; width: 620px; height: 620px; border-radius: 50%; background: rgba(68,161,161,.12); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 64px; align-items: center; }
.hero-copy h1 { max-width: 760px; margin: 0; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; letter-spacing: -.04em; }
.hero-intro { max-width: 680px; margin: 22px 0 28px; color: var(--cm-neutral-700); font-size: 1.125rem; line-height: 1.9; }
.hero-art { position: relative; display: grid; min-height: 340px; place-items: center; }
.hero-art img { position: relative; z-index: 2; width: min(330px, 90%); filter: drop-shadow(0 24px 30px rgba(30,58,74,.19)); }
.hero-route { position: absolute; inset: auto 0 18px; height: 230px; border: 5px dashed rgba(233,114,50,.36); border-color: rgba(233,114,50,.36) transparent transparent; border-radius: 50%; transform: rotate(-10deg); }
.home-search { position: relative; z-index: 4; margin-top: -42px; }
.search-panel { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; padding: 18px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-xl); background: #fff; box-shadow: var(--cm-shadow-lg); }
.form-control { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--cm-neutral-700); font-size: .8125rem; font-weight: 750; }
.form-control small { color: var(--cm-text-muted); font-weight: 500; }
.form-control input, .form-control select, .form-control textarea, .compact-select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--cm-neutral-300, #becaca); border-radius: var(--cm-radius-md); background: #fff; color: var(--cm-text); font-size: 1rem; font-weight: 500; }
.form-control textarea { min-height: 130px; resize: vertical; }
.form-control input::placeholder { color: #72858b; }
.form-control input:focus, .form-control select:focus, .form-control textarea:focus { border-color: var(--cm-action-teal); outline: 3px solid rgba(14,93,97,.16); }
.form-control.compact { gap: 2px; }
.form-control.compact input, .form-control.compact select, .compact-select { min-height: 42px; padding: 7px 11px; font-size: .875rem; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.checkbox-row { display: flex; min-height: 44px; align-items: flex-start; gap: 10px; padding: 8px 0; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cm-action-teal); }
fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
legend { width: 100%; margin: 0 0 14px; color: var(--cm-brand-navy); font-size: 1.05rem; font-weight: 800; }

.public-section { padding: 68px 0; }
.public-section-muted { background: #eff6f5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(1.75rem,3vw,2.25rem); }
.event-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.event-card { overflow: hidden; transition: transform var(--cm-motion-standard), box-shadow var(--cm-motion-standard); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--cm-shadow-md); }
.event-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.event-card-art { position: relative; display: flex; height: 182px; align-items: flex-end; overflow: hidden; padding: 16px; background: linear-gradient(140deg,#3d8f91,#69b9b4); }
.event-card:nth-child(3n+2) .event-card-art { background: linear-gradient(140deg,#c85422,#ef9862); }
.event-card:nth-child(3n) .event-card-art { background: linear-gradient(140deg,#2d5265,#688d9d); }
.event-card-art::after { content: ""; position: absolute; top: -45px; right: -36px; width: 180px; height: 180px; border: 3px solid rgba(255,255,255,.22); border-radius: 50%; }
.event-card-art img { position: absolute; z-index: 1; right: 14px; bottom: 5px; width: 128px; height: 128px; object-fit: contain; }
.event-date { position: relative; z-index: 2; padding: 6px 10px; border-radius: 9px; background: rgba(22,43,51,.75); color: #fff; font-size: .8125rem; font-weight: 800; }
.event-card-body { padding: 18px; }
.event-card-body h3 { margin: 10px 0 7px; color: var(--cm-brand-navy); font-size: 1.18rem; line-height: 1.45; }
.card-summary { display: -webkit-box; overflow: hidden; margin: 0 0 12px; color: var(--cm-neutral-700); font-size: .875rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.status-badge { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--cm-neutral-100); color: var(--cm-neutral-700); font-size: .75rem; font-weight: 800; line-height: 1.2; }
.status-info { background: #e4f2f1; color: var(--cm-action-teal); }
.status-live, .status-success { background: #e8f4e9; color: var(--cm-success); }
.status-warning { background: #fff3d5; color: var(--cm-warning); }
.status-danger { background: #fce8e6; color: var(--cm-danger); }
.metadata-row { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; color: var(--cm-text-muted); font-size: .8125rem; }
.mascot-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.mascot-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; align-items: center; padding: 15px; color: inherit; text-decoration: none; }
.mascot-card:hover { box-shadow: var(--cm-shadow-md); }
.mascot-card h3 { margin: 0 0 4px; color: var(--cm-brand-navy); }
.mascot-card p { margin: 0; color: var(--cm-text-muted); font-size: .8125rem; }
.mascot-portrait { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: #dceeed; }
.mascot-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.follow-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 12px; margin-bottom: 68px; padding: 30px 36px; overflow: hidden; border-radius: var(--cm-radius-xl); background: var(--cm-brand-navy); color: #fff; }
.follow-cta h2 { margin: 0 0 4px; }
.follow-cta p { margin: 0; color: #d6e2e3; }
.public-footer { padding: 48px 0 0; background: var(--cm-brand-navy); color: #fff; }
.public-footer-grid { width: min(calc(100% - 40px), var(--cm-content-width)); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 190px; }
.public-footer h2 { margin: 0 0 12px; font-size: 1rem; }
.public-footer a { display: block; margin: 7px 0; color: #e5eeee; text-decoration: none; }
.public-footer p { max-width: 500px; color: #d6e2e3; }
.public-footer-bottom { margin-top: 36px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.12); color: #c4d4d6; text-align: center; font-size: .8125rem; }

.page-hero { padding: 62px 0; background: linear-gradient(140deg,#e7f4f2,#fff8f0); }
.page-hero.compact { padding: 48px 0; }
.page-hero h1 { margin: 0; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(2rem,4vw,3rem); }
.page-hero p { max-width: 720px; margin: 10px 0 0; color: var(--cm-neutral-700); }
.results-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 28px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--cm-header-height) + 18px); padding: 18px; }
.filter-panel form { display: grid; gap: 16px; }
.result-list { display: grid; gap: 15px; }
.result-card { display: grid; grid-template-columns: 220px minmax(0,1fr); overflow: hidden; }
.result-thumb { min-height: 180px; display: grid; place-items: center; background: linear-gradient(140deg,#3d8f91,#69b9b4); }
.result-thumb img { width: 130px; height: 130px; object-fit: contain; }
.result-body { padding: 18px 20px; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cm-text-muted); font-size: .8125rem; }
.result-body h2 { margin: 10px 0 7px; color: var(--cm-brand-navy); font-size: 1.25rem; }
.result-body h2 a { color: inherit; text-decoration: none; }
.result-body p { margin: 0; color: var(--cm-neutral-700); }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 24px 0 0; }
.page-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--cm-border); border-radius: 10px; background: #fff; text-decoration: none; }
.mascot-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.mascot-directory-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; overflow: hidden; color: inherit; text-decoration: none; }
.mascot-directory-image { position: relative; display: grid; min-height: 180px; place-items: center; overflow: hidden; background: #dceeed; }
.mascot-directory-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mascot-directory-card > div:last-child { padding: 18px 18px 18px 0; }
.mascot-directory-card h2 { margin: 10px 0 5px; color: var(--cm-brand-navy); }
.mascot-directory-card p { margin: 0; color: var(--cm-text-muted); }

.event-detail-hero { background: linear-gradient(140deg,#e7f4f2,#fff8f0); }
.event-detail-art { height: 270px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg,#367f82,#70bbb5); }
.event-detail-art.has-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.event-detail-art.is-placeholder img { width: 230px; height: 230px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(22,43,51,.2)); }
.event-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-top: 30px; padding-bottom: 34px; }
.event-detail-identity { display: flex; min-width: 0; align-items: center; gap: 22px; }
.event-detail-profile-image { flex: 0 0 190px; width: 190px; aspect-ratio: 1200 / 630; overflow: hidden; border: 4px solid #fff; border-radius: 16px; background: #dceeed; box-shadow: var(--cm-shadow-md); }
.event-detail-profile-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.event-detail-heading h1 { margin: 9px 0 7px; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(2rem,4vw,3.2rem); }
.event-detail-heading p { max-width: 760px; margin: 0; color: var(--cm-neutral-700); }
.event-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.event-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 26px; align-items: start; padding-top: 34px; padding-bottom: 70px; }
.detail-tabs { position: sticky; z-index: 5; top: var(--cm-header-height); display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding: 9px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); background: rgba(255,255,255,.96); }
.detail-tabs a { flex: 0 0 auto; padding: 8px 11px; border-radius: 9px; color: var(--cm-neutral-700); font-size: .875rem; font-weight: 700; text-decoration: none; }
.detail-tabs a:hover { background: var(--cm-neutral-100); }
.content-card { margin-bottom: 18px; padding: 22px; scroll-margin-top: 145px; }
.content-card h2 { margin: 0 0 15px; color: var(--cm-brand-navy); }
.content-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rich-text { color: var(--cm-neutral-700); line-height: 1.9; }
.event-facts { position: sticky; top: calc(var(--cm-header-height) + 18px); padding: 20px; }
.event-facts dl { margin: 0; }
.event-facts dl > div { padding: 13px 0; border-bottom: 1px solid var(--cm-neutral-100); }
.event-facts dt { color: var(--cm-text-muted); font-size: .75rem; font-weight: 800; }
.event-facts dd { margin: 3px 0 0; font-weight: 650; }
.event-flyer-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cm-action-teal); font-weight: 800; text-decoration: none; }
.event-flyer-link:hover { text-decoration: underline; }
.file-type-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: var(--cm-neutral-100); color: var(--cm-brand-navy); font-size: .68rem; font-weight: 850; letter-spacing: .04em; }
.skeleton-list { display: grid; gap: 10px; }
.skeleton-list div { height: 64px; border-radius: 12px; background: linear-gradient(90deg,#edf2f2 25%,#f7fafa 50%,#edf2f2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.mascot-profile-hero { padding: 54px 0; background: linear-gradient(140deg,#e5f4f2,#fff8f0); }
.mascot-profile-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 48px; align-items: center; }
.mascot-profile-image { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: #d9edeb; box-shadow: var(--cm-shadow-md); }
.mascot-profile-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mascot-profile-heading { min-width: 0; }
.mascot-profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mascot-profile-grid h1 { margin: 10px 0 0; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(2.2rem,5vw,4rem); }
.mascot-nickname { margin: 2px 0 0; color: var(--cm-action-teal); font-size: 1.05rem; font-weight: 750; }
.mascot-profile-heading .button-row { margin-top: 22px; }
.mascot-profile-section { background: var(--cm-brand-offwhite); }
.profile-content-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.72fr); gap: 22px; align-items: start; }
.mascot-profile-main, .mascot-profile-sidebar { min-width: 0; }
.mascot-profile-sidebar { position: sticky; top: calc(var(--cm-header-height) + 18px); }
.mascot-traits-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.mascot-trait-card { height: calc(100% - 18px); }
.mascot-facts { margin: 0; }
.mascot-facts > div { padding: 12px 0; border-bottom: 1px solid var(--cm-neutral-100); }
.mascot-facts > div:first-child { padding-top: 0; }
.mascot-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.mascot-facts dt { color: var(--cm-text-muted); font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.mascot-facts dd { margin: 3px 0 0; color: var(--cm-brand-navy); font-weight: 700; line-height: 1.55; }
.social-link-list { display: grid; gap: 8px; }
.social-profile-link { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--cm-neutral-100); border-radius: 11px; color: var(--cm-brand-navy); text-decoration: none; transition: border-color var(--cm-motion-fast), background var(--cm-motion-fast), transform var(--cm-motion-fast); }
.social-profile-link:hover { border-color: #9fcfcb; background: #f4fbfa; transform: translateY(-1px); }
.social-profile-link strong, .social-profile-link small { display: block; overflow-wrap: anywhere; }
.social-profile-link small { margin-top: 2px; color: var(--cm-text-muted); font-size: .76rem; }
.official-link-badge { padding: 3px 7px; border-radius: 999px; background: #e4f4f2; color: var(--cm-action-teal); font-size: .68rem; font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mascot-hashtags { margin-top: 0; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--cm-neutral-100); color: var(--cm-action-teal); font-size: .8125rem; font-weight: 700; }
.appearance-list { display: grid; gap: 9px; }
.appearance-list a { display: flex; flex-direction: column; padding: 11px; border-radius: 10px; background: var(--cm-neutral-50); color: var(--cm-brand-navy); text-decoration: none; }
.appearance-list a:hover { background: #edf7f6; }
.appearance-list span { color: var(--cm-text-muted); font-size: .8125rem; }
.muted-text { color: var(--cm-text-muted); }
.prose-card { max-width: 900px; padding: 34px; font-size: 1.05rem; line-height: 2; }

.live-event-header { padding: 30px 0; background: var(--cm-brand-navy); color: #fff; }
.back-link { color: #d6e5e6; font-size: .875rem; text-decoration: none; }
.live-title-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-top: 12px; }
.live-title-row h1 { margin: 9px 0 0; font-size: clamp(1.7rem,4vw,2.7rem); }
.live-connection { display: flex; align-items: center; gap: 8px; color: #d6e5e6; font-size: .875rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #77cf80; box-shadow: 0 0 0 6px rgba(119,207,128,.15); }
.live-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 70px; }
.live-filters { position: sticky; top: calc(var(--cm-header-height) + 18px); display: grid; gap: 14px; padding: 18px; }
.live-filters h2 { margin: 0; color: var(--cm-brand-navy); font-size: 1rem; }
.live-schedule > .section-heading { align-items: center; }
.schedule-timeline { display: grid; gap: 10px; }
.schedule-row { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 12px; }
.schedule-time { padding-top: 15px; color: var(--cm-neutral-700); text-align: right; font-weight: 800; }
.schedule-entry { padding: 14px 16px; }
.schedule-entry.current { border: 2px solid var(--cm-action-teal); box-shadow: 0 6px 18px rgba(14,93,97,.14); }
.schedule-entry h3 { margin: 2px 0 6px; }
.revision-indicator { color: var(--cm-text-muted); font-size: .8125rem; }

.alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px auto; padding: 13px 16px; border: 1px solid; border-radius: var(--cm-radius-md); }
.alert strong { flex: 0 0 auto; }
.alert-warning { border-color: #e7ca84; background: #fff7e4; color: #704900; }
.alert-info { border-color: #a7d2d0; background: #edf8f7; color: var(--cm-action-teal); }
.alert-danger { border-color: #e5aaa6; background: #fff0ef; color: var(--cm-danger); }
.empty-state { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-state-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #e2f1ef; color: var(--cm-action-teal); font-size: 1.8rem; }
.empty-state h2 { margin: 15px 0 4px; color: var(--cm-brand-navy); }
.empty-state p { max-width: 480px; margin: 0 0 18px; color: var(--cm-text-muted); }
.loading-state { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 10px; color: var(--cm-text-muted); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--cm-neutral-200); border-top-color: var(--cm-action-teal); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.large { width: 48px; height: 48px; border-width: 5px; }
.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: grid; width: min(360px,calc(100% - 36px)); gap: 10px; }
.toast { padding: 14px 16px; border: 1px solid var(--cm-border); border-left: 5px solid var(--cm-action-teal); border-radius: var(--cm-radius-md); background: #fff; box-shadow: var(--cm-shadow-lg); }
.toast.error { border-left-color: var(--cm-danger); }
.toast.success { border-left-color: var(--cm-success); }
.error-page { display: grid; min-height: 65vh; place-items: center; align-content: center; padding-block: 70px; text-align: center; }
.error-code { display: grid; width: 110px; height: 110px; place-items: center; border-radius: 50%; background: #e2f1ef; color: var(--cm-action-teal); font-family: var(--cm-font-display); font-size: 2.5rem; font-weight: 800; }
.error-page h1 { margin: 20px 0 5px; color: var(--cm-brand-navy); }
.error-page p { max-width: 600px; margin: 0 0 22px; color: var(--cm-text-muted); }

.account-shell { position: relative; display: grid; min-height: 100vh; place-items: center; align-content: center; gap: 22px; overflow: hidden; padding: 45px 20px; background: linear-gradient(180deg,#fff8f0 0%,#fff 48%,#eaf4f3 100%); }
.account-shell::before, .account-shell::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.account-shell::before { top: -210px; left: -180px; width: 480px; height: 480px; background: rgba(68,161,161,.11); }
.account-shell::after { right: -170px; bottom: -260px; width: 560px; height: 560px; border: 2px solid rgba(233,114,50,.12); }
.account-brand, .account-main, .account-language { position: relative; z-index: 1; }
.account-brand img { width: 230px; }
.account-main { width: min(100%, 560px); }
.account-main:has(.account-card-wide) { width: min(100%, 920px); }
.account-card { padding: 26px; }
.account-card-wide { padding: 30px; }
.account-card-header { margin-bottom: 20px; text-align: center; }
.account-card-header h1 { margin: 0 0 7px; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: 1.65rem; }
.account-card-header p { margin: 0; color: var(--cm-text-muted); }
.account-card form { display: grid; gap: 15px; }
.account-card-footer { margin: 20px 0 0; text-align: center; }
.form-link-row { display: flex; justify-content: flex-end; font-size: .875rem; }
.separator { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--cm-text-muted); font-size: .75rem; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: var(--cm-border); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--cm-text-muted); }
.form-message:not(:empty) { margin-bottom: 14px; padding: 11px 13px; border-radius: 10px; background: #edf8f7; color: var(--cm-action-teal); }
.form-message.error { background: #fff0ef; color: var(--cm-danger); }
.password-guidance { padding: 10px 12px; border-radius: 10px; background: var(--cm-neutral-50); color: var(--cm-text-muted); font-size: .8125rem; }
.account-language { font-size: .875rem; }
.status-card { display: grid; justify-items: center; text-align: center; }
.status-card-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: #e2f1ef; color: var(--cm-action-teal); font-size: 1.8rem; }
.status-card-icon.danger { background: #fce8e6; color: var(--cm-danger); }
.status-card h1 { margin: 15px 0 5px; color: var(--cm-brand-navy); }
.status-card p { color: var(--cm-text-muted); }

.app-shell { display: grid; grid-template-columns: var(--cm-sidebar-width) minmax(0,1fr); min-height: 100vh; }
.app-sidebar { position: sticky; z-index: 40; top: 0; display: flex; height: 100vh; flex-direction: column; overflow-y: auto; padding: 20px 14px; background: var(--cm-brand-navy); color: #d9e5e6; }
.app-logo { display: block; padding: 3px 10px 22px; }
.app-logo img { width: 195px; }
.workspace-context { display: grid; gap: 2px; margin: 0 4px 20px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--cm-radius-md); background: rgba(255,255,255,.07); }
.workspace-label, .workspace-role { color: #b9cdd0; font-size: .72rem; }
.workspace-context strong { color: #fff; font-size: .9rem; }
.sidebar-navigation { display: grid; gap: 4px; }
.nav-section-title { padding: 14px 12px 6px; color: #91aeb2; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-link { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #dce7e8; font-size: .875rem; font-weight: 650; text-decoration: none; }
.sidebar-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-link.active { background: var(--cm-action-teal); color: #fff; }
.sidebar-link-special { margin-top: 10px; border: 1px solid rgba(255,255,255,.13); }
.sidebar-icon { display: grid; width: 24px; place-items: center; font-size: 1.05rem; }
.sidebar-user { display: grid; grid-template-columns: 38px minmax(0,1fr) 44px; gap: 9px; align-items: center; margin-top: auto; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user strong { display: block; overflow: hidden; color: #fff; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user a { color: #b9cdd0; font-size: .72rem; text-decoration: none; }
.user-avatar { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 50%; background: #dceeed; color: var(--cm-action-teal); font-weight: 800; }
.user-avatar.small { width: 32px; height: 32px; font-size: .75rem; }
.user-avatar.large { width: 72px; height: 72px; font-size: 1.35rem; }
.app-frame { min-width: 0; }
.app-topbar { position: sticky; z-index: 30; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 28px; border-bottom: 1px solid var(--cm-border); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.app-topbar-title { color: var(--cm-brand-navy); font-weight: 800; }
.app-topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-user { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; color: var(--cm-text); text-decoration: none; }
.notification-dot { position: absolute; width: 8px; height: 8px; margin: -20px 0 0 18px; border: 2px solid #fff; border-radius: 50%; background: var(--cm-danger); }
.mobile-sidebar-toggle { display: none; }
.app-content { width: min(100%, 1500px); margin-inline: auto; padding: 28px 30px 70px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 4px 0 0; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(1.75rem,3vw,2.3rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--cm-text-muted); font-size: .75rem; }
.breadcrumbs a { color: var(--cm-text-muted); text-decoration: none; }
.page-actions { display: flex; gap: 10px; }
.mobile-app-nav { display: none; }
.impersonation-banner { position: sticky; z-index: 100; top: 0; display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 15px; padding: 6px 20px; background: #8d3d00; color: #fff; }

.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dashboard-intro p { margin: 0; color: var(--cm-text-muted); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 17px; }
.stat-card span { color: var(--cm-text-muted); font-size: .8125rem; font-weight: 700; }
.stat-card strong { display: block; margin: 3px 0; color: var(--cm-brand-navy); font-size: 1.8rem; line-height: 1.2; }
.stat-card small { color: var(--cm-text-muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.panel { overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.dashboard-grid .panel + .panel, .admin-detail-grid .panel + .panel { margin-top: 0; }
.panel-header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--cm-border); }
.panel-header h2 { margin: 0; color: var(--cm-brand-navy); font-size: 1.05rem; }
.panel-header p { margin: 3px 0 0; color: var(--cm-text-muted); font-size: .8125rem; }
.panel-body { padding: 18px; }
.panel-footer { padding: 13px 18px; border-top: 1px solid var(--cm-border); background: var(--cm-neutral-50); }
.task-list, .progress-list, .checklist { padding: 4px 18px 14px; }
.task-item, .progress-item, .checklist-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--cm-neutral-100); }
.task-item:last-child, .progress-item:last-child, .checklist-item:last-child { border-bottom: 0; }
.task-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #e8f4f2; color: var(--cm-action-teal); }
.task-item strong { display: block; }
.task-item small { color: var(--cm-text-muted); }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--cm-neutral-100); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--cm-brand-teal); }
.toolbar { display: flex; align-items: end; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--cm-border); }
.toolbar-search { min-width: 220px; flex: 1; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #a7d2d0; background: #e9f5f4; color: var(--cm-action-teal); }
.responsive-table { min-width: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--cm-border); background: var(--cm-neutral-50); color: var(--cm-text-muted); text-align: left; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--cm-neutral-100); vertical-align: middle; font-size: .85rem; }
.data-table tbody tr:hover { background: #f9fbfb; }
.data-table .row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mobile-card-list { display: none; }
.pagination-footer { display: flex; align-items: center; justify-content: space-between; }
.page-buttons { display: flex; gap: 6px; }

.resource-editor, .event-editor { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.editor-main { min-width: 0; }
.editor-sidebar { min-width: 0; }
.sticky-panel { position: sticky; top: 84px; }
.status-list { margin: 0 0 16px; }
.status-list > div, .detail-list > div { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(0,1.3fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cm-neutral-100); }
.status-list dt, .detail-list dt { color: var(--cm-text-muted); font-size: .75rem; font-weight: 800; }
.status-list dd, .detail-list dd { margin: 0; }
.dynamic-form { display: grid; gap: 16px; }
.upload-dropzone { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 6px; border: 2px dashed #a8bcbc; border-radius: var(--cm-radius-lg); background: var(--cm-neutral-50); color: var(--cm-text-muted); text-align: center; cursor: pointer; }
.upload-dropzone:hover { border-color: var(--cm-action-teal); background: #eff8f7; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { color: var(--cm-action-teal); font-size: 2rem; }
.media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.media-item { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--cm-border); border-radius: 12px; background: var(--cm-neutral-100); }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.event-subnav { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 18px; padding: 7px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); background: #fff; }
.event-subnav a, .event-subnav button { flex: 0 0 auto; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--cm-neutral-700); font-size: .8125rem; font-weight: 750; text-decoration: none; }
.event-subnav a:hover, .event-subnav a.active { background: #e7f4f2; color: var(--cm-action-teal); }
.event-summary-banner { min-height: 110px; margin-bottom: 18px; padding: 18px; }
.attendance-summary { display: flex; gap: 15px; padding: 12px 16px; border-bottom: 1px solid var(--cm-border); background: var(--cm-neutral-50); }
.checkin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.camera-frame { display: grid; min-height: 280px; place-items: center; align-content: center; border-radius: 14px; background: var(--cm-brand-navy); color: #fff; text-align: center; }
.camera-frame span { font-size: 3rem; font-weight: 800; }
.camera-frame p { max-width: 300px; color: #d6e2e3; }

.settings-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; align-items: start; }
.panel-span-2 { grid-column: span 2; }
.settings-stack { display: grid; gap: 18px; }
.settings-stack .panel + .panel { margin-top: 0; }
.profile-photo-editor { display: flex; align-items: center; gap: 18px; padding: 18px; }
.profile-photo-preview { display: grid; width: 110px; height: 110px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #dceeed; color: var(--cm-action-teal); font-size: 2rem; font-weight: 800; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.button-stack { display: grid; gap: 7px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; }
.form-action-align { display: flex; align-items: end; }
.mfa-setup-grid { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; }
.qr-frame { display: grid; min-height: 250px; place-items: center; border: 1px solid var(--cm-border); border-radius: 14px; background: #fff; }
.qr-frame svg { max-width: 230px; max-height: 230px; }
.manual-key { padding: 12px; border-radius: 10px; background: var(--cm-neutral-50); }
.manual-key span { display: block; color: var(--cm-text-muted); font-size: .75rem; }
.manual-key code { overflow-wrap: anywhere; }
.backup-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 18px; }
.backup-code-grid code { padding: 10px; border-radius: 8px; background: var(--cm-neutral-50); text-align: center; }
.preference-group { display: grid; gap: 5px; padding-top: 18px; }

.admin-health-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.health-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.health-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; font-weight: 900; }
.health-icon.success { background: #e8f4e9; color: var(--cm-success); }
.health-icon.warning { background: #fff3d5; color: var(--cm-warning); }
.health-card span { display: block; color: var(--cm-text-muted); font-size: .75rem; }
.health-card strong { display: block; color: var(--cm-brand-navy); }
.user-identity-card { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 16px; align-items: center; margin-bottom: 18px; padding: 18px; }
.user-identity-card h2 { margin: 0; color: var(--cm-brand-navy); }
.user-identity-card p { margin: 2px 0 8px; color: var(--cm-text-muted); }
.user-detail-actions, .danger-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.action-list { display: grid; gap: 8px; }
.action-row { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 12px; border: 1px solid var(--cm-border); border-radius: 10px; background: #fff; color: var(--cm-text); text-align: left; }
.action-row:hover { border-color: var(--cm-action-teal); background: #f4fbfa; }
.action-row strong, .action-row small { display: block; }
.action-row small { color: var(--cm-text-muted); }
.danger-zone { border-color: #e4aaa6; }
.danger-zone .panel-header { background: #fff7f6; }
.cm-modal { width: min(620px,calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--cm-radius-lg); box-shadow: var(--cm-shadow-lg); }
.cm-modal::backdrop { background: rgba(22,43,51,.55); backdrop-filter: blur(3px); }
.cm-modal-card > header, .cm-modal-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--cm-border); }
.cm-modal-card > footer { justify-content: flex-end; border-top: 1px solid var(--cm-border); border-bottom: 0; }
.cm-modal-card h2 { margin: 0; color: var(--cm-brand-navy); font-size: 1.1rem; }
.cm-modal-body { overflow-y: auto; padding: 18px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1120px) {
  :root { --cm-sidebar-width: 238px; }
  .public-navigation { gap: 20px; }
  .public-actions .btn { display: none; }
  .event-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mascot-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-editor, .event-editor { grid-template-columns: minmax(0,1fr) 270px; }
}

@media (max-width: 860px) {
  .public-header-inner { grid-template-columns: 1fr auto; }
  .mobile-menu-button { display: inline-grid; place-items: center; }
  .public-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--cm-border); background: #fff; box-shadow: var(--cm-shadow-md); }
  .public-navigation.open { display: flex; }
  .public-navigation a { padding: 12px; border-radius: 9px; }
  .public-navigation a::after { display: none; }
  .public-actions { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .public-hero::before { inset: 0; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .search-grow { grid-column: span 2; }
  .search-panel .btn { grid-column: span 2; }
  .results-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel .btn { align-self: end; }
  .event-detail-layout, .profile-content-grid { grid-template-columns: 1fr; }
  .mascot-profile-sidebar { position: static; }
  .event-facts { position: static; order: -1; }
  .live-layout { grid-template-columns: 1fr; }
  .live-filters { position: static; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px,88vw); transform: translateX(-105%); box-shadow: var(--cm-shadow-lg); transition: transform var(--cm-motion-standard); }
  .app-sidebar.open { transform: translateX(0); }
  .mobile-sidebar-toggle { display: inline-grid; }
  .app-topbar { padding-inline: 16px; }
  .app-content { padding: 22px 18px 90px; }
  .mobile-app-nav { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4,1fr); min-height: 68px; padding: 5px max(6px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); border-top: 1px solid var(--cm-border); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-app-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; color: var(--cm-text-muted); font-size: .65rem; text-decoration: none; }
  .mobile-app-nav a span { font-size: 1.2rem; }
  .mobile-app-nav a.active { color: var(--cm-action-teal); font-weight: 800; }
  .resource-editor, .event-editor, .settings-grid { grid-template-columns: 1fr; }
  .editor-sidebar { order: -1; }
  .sticky-panel { position: static; }
  .panel-span-2 { grid-column: auto; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-grid .panel-span-2 { grid-column: auto; }
}

@media (max-width: 640px) {
  .public-container { width: min(calc(100% - 28px),var(--cm-content-width)); }
  .brand-link img { width: 160px; }
  .public-hero { padding: 46px 0 74px; }
  .hero-copy h1 { font-size: 2.35rem; }
  .hero-intro { font-size: 1rem; line-height: 1.75; }
  .search-panel { grid-template-columns: 1fr; padding: 14px; border-radius: var(--cm-radius-lg); }
  .search-panel .search-grow, .search-panel .btn { grid-column: auto; }
  .public-section { padding: 46px 0; }
  .event-card-grid, .mascot-card-grid, .mascot-directory-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .follow-cta { align-items: stretch; flex-direction: column; margin-bottom: 46px; padding: 24px; }
  .public-footer-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-thumb { min-height: 150px; }
  .filter-panel form { grid-template-columns: 1fr; }
  .mascot-directory-card { grid-template-columns: 120px minmax(0,1fr); }
  .mascot-profile-grid { grid-template-columns: 1fr; text-align: center; }
  .mascot-profile-image { width: min(260px,75vw); margin-inline: auto; }
  .mascot-profile-grid .button-row { justify-content: center; }
  .mascot-profile-badges { justify-content: center; }
  .mascot-traits-grid { grid-template-columns: 1fr; gap: 0; }
  .event-detail-art { height: 210px; }
  .event-detail-heading { align-items: flex-start; flex-direction: column; }
  .event-detail-identity { width: 100%; align-items: flex-start; flex-direction: column; }
  .event-detail-profile-image { width: min(240px,100%); flex-basis: auto; }
  .event-detail-actions { width: 100%; }
  .event-detail-actions .btn { flex: 1; }
  .live-title-row { align-items: flex-start; flex-direction: column; }
  .live-filters { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 52px minmax(0,1fr); }
  .account-shell { padding-inline: 14px; }
  .account-card, .account-card-wide { padding: 20px 16px; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .dashboard-stats, .dashboard-grid, .admin-health-grid, .checkin-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-search { min-width: 0; }
  .data-table { display: none; }
  .mobile-card-list { display: grid; gap: 10px; padding: 12px; }
  .mobile-data-card { padding: 14px; border: 1px solid var(--cm-border); border-radius: 12px; background: #fff; }
  .mobile-data-card h3 { margin: 0 0 6px; color: var(--cm-brand-navy); }
  .mobile-data-card dl { margin: 0; }
  .mobile-data-card dl > div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 8px; padding: 5px 0; }
  .mobile-data-card dt { color: var(--cm-text-muted); font-size: .72rem; }
  .mobile-data-card dd { margin: 0; font-size: .82rem; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-intro { align-items: stretch; flex-direction: column; }
  .user-identity-card { grid-template-columns: 64px minmax(0,1fr); }
  .user-detail-actions { grid-column: span 2; }
  .profile-photo-editor, .mfa-setup-grid { grid-template-columns: 1fr; align-items: center; flex-direction: column; }
  .profile-photo-editor { text-align: center; }
  .backup-code-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .public-header, .public-footer, .app-sidebar, .app-topbar, .mobile-app-nav, .detail-tabs, .event-subnav, .page-actions, .btn { display: none !important; }
  body, body.app-page { background: #fff; }
  .app-shell { display: block; }
  .app-content, .public-container { width: 100%; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* API-driven detail and administration additions */
.public-booth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.booth-public-card { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 14px; background: #fff; }
.booth-public-card h3 { margin: 8px 0 4px; }
.booth-public-card p { margin: 0; color: var(--cm-text-muted, #5E7078); }
.timeline { display: grid; gap: 14px; }
.timeline-item { padding: 14px 0; border-bottom: 1px solid var(--cm-border, #D9E2E3); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item > div { display: flex; justify-content: space-between; gap: 12px; }
.timeline-item time, .table-subtext { display: block; color: var(--cm-text-muted, #5E7078); font-size: .82rem; }
.json-view { max-height: 55vh; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: 14px; border-radius: 12px; background: #102A37; color: #EAF4F4; font: .82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.metric-large { display: flex; align-items: baseline; gap: 8px; padding: 10px 0 18px; }
.metric-large strong { font-size: clamp(2rem, 5vw, 3.25rem); color: var(--cm-deep-navy, #1E3A4A); }
.config-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.config-editor section { min-width: 0; }
.cm-modal-card .dynamic-form { max-height: 58vh; overflow: auto; }
.cm-modal-card .form-control textarea { min-height: 110px; }
.event-summary-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; margin-bottom: 18px; }
.event-summary-banner h2 { margin: 7px 0 4px; }
.attendance-summary { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 0 18px; color: var(--cm-text-muted, #5E7078); }
.check-icon.warning, .health-icon.danger { background: #FDE8E2; color: #9E2F12; }
.check-icon.success { background: #DFF4EC; color: #126B4F; }
.action-row[href] { color: inherit; text-decoration: none; }
.action-row + .action-row { border-top: 1px solid var(--cm-border, #D9E2E3); }

@media (max-width: 720px) {
  .public-booth-grid, .config-editor { grid-template-columns: 1fr; }
  .event-summary-banner { align-items: flex-start; flex-direction: column; }
  .timeline-item > div { flex-direction: column; gap: 4px; }
}

/* Subscription scopes and follower analytics (v1.0.13) */
.subscription-list-help { padding-top: 0; color: var(--cm-text-muted); }
.subscription-list-help p { margin: 0; }
.subscription-scope { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: var(--cm-neutral-100); color: var(--cm-brand-navy); font-size: .75rem; font-weight: 800; }
.subscription-scope-mascot { background: #e7f4f2; color: var(--cm-action-teal); }
.subscription-scope-event { background: #eef1fb; color: var(--cm-brand-navy); }
.subscription-scope-event_mascot { background: #fff0dc; color: #8a4f00; }

.appearance-card-grid { align-items: start; }
.appearance-card { display: block; padding: 14px; }
.appearance-card-main { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.appearance-card-main:hover h3 { text-decoration: underline; }
.appearance-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.appearance-follower-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--cm-neutral-50); }
.appearance-follower-detail span { color: var(--cm-text-muted); font-size: .8125rem; font-weight: 700; }
.appearance-follower-detail strong { color: var(--cm-brand-navy); font-size: 1.25rem; }

.follower-analytics { display: grid; gap: 18px; }
.resource-editor .follower-analytics { margin-top: 18px; }
.analytics-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.analytics-controls .form-control { min-width: 170px; flex: 1 1 170px; }
.analytics-controls .btn { flex: 0 0 auto; }
.follower-stat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-positive { color: #167a4b !important; }
.metric-negative { color: #b53a32 !important; }
.analytics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.analytics-panel { min-width: 0; }
.analytics-panel + .analytics-panel { margin-top: 0; }
.analytics-chart-scroll { overflow-x: auto; }
.analytics-line-chart { display: block; min-width: 620px; width: 100%; height: auto; }
.analytics-line-chart text { fill: var(--cm-text-muted); font-size: 12px; }
.chart-axis { stroke: var(--cm-border); stroke-width: 1; }
.chart-growth-line { fill: none; stroke: var(--cm-action-teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.analytics-line-chart circle { fill: #fff; stroke: var(--cm-action-teal); stroke-width: 3; }
.analytics-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; color: var(--cm-text-muted); font-size: .8125rem; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legend-follow, .activity-bar.follows { background: var(--cm-action-teal); }
.legend-unfollow, .activity-bar.unfollows { background: var(--cm-brand-coral); }
.analytics-activity-bars { display: flex; align-items: stretch; gap: 8px; min-height: 230px; overflow-x: auto; padding: 8px 2px 0; }
.activity-period { display: grid; grid-template-rows: 190px auto; flex: 1 0 50px; min-width: 50px; text-align: center; }
.activity-bars { display: flex; align-items: end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--cm-border); }
.activity-bar { display: block; width: 14px; border-radius: 4px 4px 0 0; }
.activity-period small { display: block; margin-top: 7px; color: var(--cm-text-muted); font-size: .6875rem; white-space: nowrap; }
.analytics-empty { display: grid; min-height: 180px; place-items: center; align-content: center; text-align: center; color: var(--cm-text-muted); }
.analytics-empty p { margin: 8px 0 0; }
.reach-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border-radius: var(--cm-radius-md); background: #e7f4f2; }
.reach-total span { font-weight: 750; }
.reach-total strong { color: var(--cm-action-teal); font-size: 2rem; }
.scope-breakdown { display: grid; gap: 8px; margin-top: 14px; }
.scope-breakdown > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--cm-border); border-radius: 10px; }
.breakdown-group + .breakdown-group { margin-top: 20px; }
.breakdown-group h3 { margin: 0 0 10px; color: var(--cm-brand-navy); font-size: .9rem; }
.breakdown-row { display: grid; grid-template-columns: minmax(90px,1fr) 2fr auto; gap: 10px; align-items: center; margin: 9px 0; }
.breakdown-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--cm-neutral-100); }
.breakdown-track i { display: block; height: 100%; border-radius: inherit; background: var(--cm-action-teal); }
.privacy-suppressed { display: grid; gap: 7px; min-height: 145px; place-content: center; padding: 20px; border-radius: var(--cm-radius-md); background: var(--cm-neutral-50); text-align: center; }
.privacy-suppressed span { color: var(--cm-text-muted); font-size: .8125rem; }

@media (max-width: 980px) {
  .follower-stat-grid, .analytics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .follower-stat-grid, .analytics-grid { grid-template-columns: 1fr; }
  .analytics-controls { display: grid; grid-template-columns: 1fr; }
  .analytics-controls .form-control, .analytics-controls .btn { width: 100%; min-width: 0; }
  .appearance-card-actions .btn { display: inline-flex !important; }
}

/* Event workspace navigation */
.event-subnav-menu { position: relative; flex: 0 0 auto; }
.event-subnav-menu > summary { display: flex; align-items: center; min-height: 40px; padding: 8px 11px; border-radius: 9px; color: var(--cm-neutral-700); font-size: .8125rem; font-weight: 750; cursor: pointer; list-style: none; }
.event-subnav-menu > summary::-webkit-details-marker { display: none; }
.event-subnav-menu > summary::after { content: '▾'; margin-left: 5px; font-size: .7rem; }
.event-subnav-menu > summary:hover, .event-subnav-menu > summary.active { background: #e7f4f2; color: var(--cm-action-teal); }
.event-subnav-dropdown { position: fixed; z-index: 60; display: grid; min-width: 210px; margin-top: 6px; padding: 8px; border: 1px solid var(--cm-border); border-radius: 12px; background: #fff; box-shadow: var(--cm-shadow-lg); }
.event-subnav-dropdown a { width: 100%; }
.narrow-panel { max-width: 760px; margin-inline: auto; }
.event-subnav { overflow: visible; flex-wrap: wrap; }
.event-subnav-dropdown { position: absolute; right: 0; }
@media (max-width: 760px) {
  .event-subnav { overflow-x: auto; flex-wrap: nowrap; }
  .event-subnav-dropdown { position: fixed; right: 14px; left: 14px; }
}

/* Public event operating dates and accommodation (v1.0.14) */
.event-operating-days, .event-public-program { display: grid; gap: 12px; }
.event-public-program { margin-top: 20px; }
.event-operating-days h3, .event-public-program h3 { margin: 0; color: var(--cm-brand-navy); font-size: 1rem; }
.event-day-hours-grid, .public-hotel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-day-hours { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 12px; background: var(--cm-neutral-50, #F7FAFA); }
.event-day-hours span { color: var(--cm-text-muted, #5E7078); font-size: .875rem; }
.hotel-public-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 16px; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 14px; background: #fff; }
.hotel-public-card h3 { margin: 0 0 6px; }
.hotel-public-card p { margin: 4px 0; color: var(--cm-text-muted, #5E7078); }
.hotel-public-card a { display: block; width: fit-content; margin-top: 7px; }
.hotel-discount { align-self: start; display: grid; gap: 5px; min-width: 180px; padding: 11px; border-radius: 11px; background: #edf8f7; color: var(--cm-action-teal); }
.hotel-discount span, .hotel-discount small { font-size: .75rem; }
.hotel-discount code { overflow-wrap: anywhere; font-size: .95rem; font-weight: 800; }
.hotel-discount-notes { white-space: pre-line; }
@media (max-width: 720px) {
  .event-day-hours-grid, .public-hotel-grid { grid-template-columns: 1fr; }
  .hotel-public-card { grid-template-columns: 1fr; }
  .hotel-discount { min-width: 0; }
}

/* Public event schedule redesign (v1.0.19) */
.schedule-section-heading { align-items: flex-start; gap: 16px; }
.section-meta { margin: 6px 0 0; color: var(--cm-text-muted, #5E7078); font-size: .875rem; }
.schedule-section-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-schedule-tabs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.event-schedule-tab { flex: 0 0 auto; display: grid; gap: 2px; min-width: 132px; padding: 12px 14px; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 14px; background: #fff; color: var(--cm-brand-navy, #1E3A4A); font: inherit; text-align: left; cursor: pointer; }
.event-schedule-tab span { font-weight: 800; }
.event-schedule-tab small { color: var(--cm-text-muted, #5E7078); font-size: .76rem; }
.event-schedule-tab.active { border-color: var(--cm-action-teal, #0C6D6A); background: #E7F4F2; color: var(--cm-action-teal, #0C6D6A); box-shadow: inset 0 0 0 1px rgba(12,109,106,.08); }
.event-schedule-tab.active small { color: inherit; }
.event-schedule-panels { display: grid; gap: 14px; }
.event-schedule-pane { display: none; gap: 14px; }
.event-schedule-pane.active { display: grid; }
.schedule-day-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 14px; background: linear-gradient(180deg, #F7FBFB 0%, #EDF8F7 100%); }
.schedule-day-summary h3 { margin: 0; color: var(--cm-brand-navy, #1E3A4A); }
.schedule-day-summary p { margin: 5px 0 0; color: var(--cm-text-muted, #5E7078); }
.schedule-day-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.schedule-grid-wrap { overflow: auto; border: 1px solid var(--cm-border, #D9E2E3); border-radius: 16px; background: #fff; }
.schedule-grid { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.schedule-grid th, .schedule-grid td { border-right: 1px solid var(--cm-border, #D9E2E3); border-bottom: 1px solid var(--cm-border, #D9E2E3); vertical-align: top; }
.schedule-grid thead th { position: sticky; top: 0; z-index: 1; padding: 10px 8px; background: #9ACB66; color: #102A37; font-size: .82rem; font-weight: 800; text-align: center; }
.schedule-grid thead .schedule-time-head { left: 0; z-index: 2; min-width: 76px; background: #E7F4F2; }
.schedule-grid tbody th.schedule-time-col { position: sticky; left: 0; z-index: 1; width: 76px; padding: 8px 10px; background: #F7FAFA; color: var(--cm-brand-navy, #1E3A4A); font-size: .78rem; font-weight: 700; text-align: right; white-space: nowrap; }
.schedule-grid tbody tr { height: 38px; }
.schedule-grid tbody td { min-height: 56px; background: #fff; }
.schedule-grid tr:last-child th, .schedule-grid tr:last-child td { border-bottom: 0; }
.schedule-grid th:last-child, .schedule-grid td:last-child { border-right: 0; }
.schedule-empty-cell { background: #FCFDFD; min-width: 120px; }
.schedule-item-cell { min-width: 138px; padding: 4px; background: #F3EBF7; }
.schedule-item-card { display: grid; gap: 6px; min-height: calc(100% - 8px); padding: 10px 11px; border-radius: 10px; background: #F3EBF7; border-left: 5px solid var(--cm-action-teal, #0C6D6A); color: #19313F; }
.schedule-item-card strong { line-height: 1.35; }
.schedule-item-card small { color: var(--cm-text-muted, #5E7078); font-size: .77rem; }
.schedule-item-status .status-badge { width: fit-content; }
@media (max-width: 840px) {
  .schedule-section-heading, .schedule-day-summary { flex-direction: column; }
  .schedule-section-actions, .schedule-day-badges { width: 100%; justify-content: flex-start; }
  .event-schedule-tab { min-width: 118px; }
}
@media print {
  .schedule-section-actions, .event-schedule-tabs { display: none !important; }
  .event-schedule-pane { display: grid !important; }
  .schedule-grid-wrap { overflow: visible; border-radius: 0; }
  .schedule-grid { min-width: 0; }
  .schedule-grid thead th, .schedule-grid tbody th.schedule-time-col { position: static; }
}

/* Public schedule detail refinements (v1.0.20) */
.schedule-item-cell { position: static; height: 1px; padding: 4px; }
.schedule-item-card { position: relative; inset: auto; min-height: 100%; height: 100%; box-sizing: border-box; align-content: start; overflow-wrap: anywhere; color: #19313F; text-decoration: none; }
a.schedule-item-card:hover { background: #EBDDF1; border-left-color: var(--cm-brand-orange, #E97A3C); }
.schedule-item-time { display: block; }
.schedule-item-mascots { display: flex; gap: 5px; align-items: flex-start; color: var(--cm-brand-navy, #1E3A4A) !important; font-weight: 700; }
.schedule-print-heading { display: none; }
.schedule-item-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.schedule-item-detail-main, .schedule-item-detail-facts { padding: 22px; }
.schedule-item-detail-main h2 { margin-top: 24px; }
.schedule-item-detail-main h2:first-child { margin-top: 0; }
.schedule-item-detail-facts dl { display: grid; gap: 16px; margin: 0; }
.schedule-item-detail-facts dt { color: var(--cm-text-muted, #5E7078); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.schedule-item-detail-facts dd { margin: 4px 0 0; font-weight: 700; }
.schedule-item-mascot-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.schedule-item-mascot-list li { padding: 7px 10px; border-radius: 999px; background: #E7F4F2; color: var(--cm-action-teal, #0C6D6A); font-size: .875rem; font-weight: 800; }
@media (max-width: 780px) {
  .schedule-item-detail-layout { grid-template-columns: 1fr; }
}
@media print {
  body.print-schedule-only .event-detail-hero,
  body.print-schedule-only .event-detail-layout > aside,
  body.print-schedule-only .event-detail-main > :not(#schedule) { display: none !important; }
  body.print-schedule-only .event-detail-layout,
  body.print-schedule-only .event-detail-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
  body.print-schedule-only #schedule { display: block !important; width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  body.print-schedule-only #schedule .content-card-heading { display: none !important; }
  body.print-schedule-only .schedule-print-heading { display: block; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #1E3A4A; }
  body.print-schedule-only .schedule-print-heading h1 { margin: 0; font-size: 22pt; }
  body.print-schedule-only .schedule-print-heading p { margin: 4px 0 0; font-size: 12pt; }
  body.print-schedule-only .event-schedule-pane { break-after: page; }
  body.print-schedule-only .event-schedule-pane:last-child { break-after: auto; }
  body.print-schedule-only .schedule-item-card { position: relative; inset: auto; min-height: 100%; height: 100%; }
}

/* Public schedule compact columns and mobile agenda (v1.0.24) */
.schedule-grid { min-width: 640px; }
.schedule-time-column { width: 64px; }
.schedule-grid thead .schedule-time-head { width: 64px; min-width: 64px; }
.schedule-grid tbody th.schedule-time-col { width: 64px; padding-inline: 6px; }
.schedule-mobile-list,
.schedule-mobile-empty { display: none; }

@media (max-width: 680px) {
  .schedule-grid-wrap { display: none; }
  .schedule-mobile-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .schedule-mobile-list > li { min-width: 0; }
  .schedule-mobile-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 12px;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid var(--cm-border, #D9E2E3);
    border-left: 5px solid var(--cm-action-teal, #0C6D6A);
    border-radius: 14px;
    background: #F7F1FA;
    color: var(--cm-brand-navy, #1E3A4A);
    text-decoration: none;
  }
  a.schedule-mobile-item:hover,
  a.schedule-mobile-item:focus-visible {
    border-left-color: var(--cm-brand-orange, #E97A3C);
    background: #EFE3F4;
  }
  .schedule-mobile-time {
    display: grid;
    align-content: start;
    gap: 3px;
    padding-right: 10px;
    border-right: 1px solid var(--cm-border, #D9E2E3);
    text-align: center;
    white-space: nowrap;
  }
  .schedule-mobile-time strong { font-size: .92rem; line-height: 1.2; }
  .schedule-mobile-time span { color: var(--cm-text-muted, #5E7078); font-size: .72rem; }
  .schedule-mobile-content { min-width: 0; }
  .schedule-mobile-resource {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #DDEFCB;
    color: #28451D;
    font-size: .7rem;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  .schedule-mobile-content h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .schedule-mobile-mascots {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    margin: 7px 0 0;
    color: var(--cm-text-muted, #5E7078);
    font-size: .78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .schedule-mobile-arrow {
    align-self: center;
    color: var(--cm-action-teal, #0C6D6A);
    font-size: 1.45rem;
    font-weight: 800;
  }
  .schedule-mobile-empty {
    display: block;
    padding: 18px;
    border: 1px dashed var(--cm-border, #D9E2E3);
    border-radius: 14px;
    color: var(--cm-text-muted, #5E7078);
    text-align: center;
  }
  .event-schedule-tabs { gap: 8px; }
  .event-schedule-tab { min-width: 108px; padding: 10px 12px; }
  .schedule-day-summary { padding: 12px 13px; }
}

@media (max-width: 420px) {
  .schedule-mobile-item { grid-template-columns: 56px minmax(0, 1fr) 10px; gap: 9px; padding: 12px 10px; }
  .schedule-mobile-time { padding-right: 8px; }
  .schedule-section-actions { gap: 8px; }
  .schedule-section-actions .btn { width: 100%; justify-content: center; }
}

@media print {
  .schedule-grid-wrap { display: block !important; }
  .schedule-mobile-list,
  .schedule-mobile-empty { display: none !important; }
  .schedule-time-column { width: 54px; }
  .schedule-grid thead .schedule-time-head,
  .schedule-grid tbody th.schedule-time-col { width: 54px; min-width: 54px; }
}
@media print {
  .schedule-grid { min-width: 0; }
}

/* Character management dashboard (v1.0.35) */
.mascot-dashboard { display: grid; gap: 18px; }
.mascot-dashboard > .dashboard-stats,
.mascot-dashboard > .dashboard-grid,
.mascot-dashboard > .follower-analytics { margin-bottom: 0; }
.mascot-dashboard-hero { display: grid; grid-template-columns: 176px minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 24px; overflow: visible; }
.mascot-dashboard-avatar { display: grid; width: 176px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 5px solid #fff; border-radius: 50%; background: #dceeed; box-shadow: var(--cm-shadow-md); }
.mascot-dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mascot-dashboard-identity { min-width: 0; }
.mascot-dashboard-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mascot-dashboard-identity h2 { margin: 9px 0 2px; color: var(--cm-brand-navy); font-family: var(--cm-font-display); font-size: clamp(1.8rem,3.5vw,2.7rem); line-height: 1.1; overflow-wrap: anywhere; }
.mascot-dashboard-nickname { margin: 0; color: var(--cm-action-teal); font-weight: 800; }
.mascot-dashboard-organization { margin: 8px 0 0; color: var(--cm-text-muted); font-size: .875rem; font-weight: 750; }
.mascot-dashboard-summary { max-width: 760px; margin: 10px 0 0; color: var(--cm-neutral-700); line-height: 1.7; white-space: pre-line; }
.mascot-dashboard-actions { display: grid; min-width: 190px; gap: 9px; }
.mascot-edit-lock { margin: 0; }
.mascot-dashboard-stats .stat-date { font-size: 1.15rem; line-height: 1.35; }
.mascot-dashboard-grid { align-items: start; }
.mascot-dashboard-details { margin: 0; }
.mascot-dashboard-details > div:last-child { border-bottom: 0; }
.mascot-workflow-actions { margin-top: 18px; }
.mascot-story-sections { display: grid; gap: 18px; }
.mascot-story-sections section { padding-bottom: 16px; border-bottom: 1px solid var(--cm-neutral-100); }
.mascot-story-sections section:last-child { padding-bottom: 0; border-bottom: 0; }
.mascot-story-sections h3 { margin: 0 0 7px; color: var(--cm-brand-navy); font-size: .9rem; }
.mascot-story-sections p { margin: 0; color: var(--cm-neutral-700); line-height: 1.7; }
.mascot-dashboard-social { display: grid; gap: 8px; }
.mascot-dashboard-social .action-row + .action-row { border-top: 1px solid var(--cm-border); }
.mascot-dashboard-hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mascot-dashboard-appearance-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.empty-inline { display: grid; min-height: 120px; place-items: center; align-content: center; gap: 5px; color: var(--cm-text-muted); text-align: center; }
.empty-inline strong { color: var(--cm-brand-navy); }

.mascot-editor-modal { width: min(1180px,calc(100% - 32px)); max-width: none; }
.mascot-editor-dialog { display: grid; grid-template-rows: auto minmax(0,1fr); max-height: calc(100vh - 40px); background: var(--cm-neutral-50); }
.mascot-editor-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--cm-border); background: #fff; }
.mascot-editor-dialog-header h2 { margin: 0; color: var(--cm-brand-navy); font-size: 1.2rem; }
.mascot-editor-dialog-header p { margin: 3px 0 0; color: var(--cm-text-muted); font-size: .8125rem; }
.mascot-editor-dialog-body { min-height: 0; overflow-y: auto; padding: 18px; }
.resource-editor-modal { grid-template-columns: minmax(0,1fr) 270px; }
.resource-editor-modal .sticky-panel { top: 0; }
.resource-editor[data-edit-permission="pending"] { opacity: .72; pointer-events: none; }
.resource-editor[data-edit-permission="denied"] .upload-dropzone { cursor: not-allowed; opacity: .64; }
.media-manager.is-read-only .upload-dropzone { cursor: not-allowed; opacity: .64; }

@media (max-width: 960px) {
  .mascot-dashboard-hero { grid-template-columns: 140px minmax(0,1fr); }
  .mascot-dashboard-avatar { width: 140px; }
  .mascot-dashboard-actions { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .resource-editor-modal { grid-template-columns: 1fr; }
  .resource-editor-modal .sticky-panel { position: static; }
}

@media (max-width: 720px) {
  .mascot-dashboard-hero { grid-template-columns: 1fr; text-align: center; }
  .mascot-dashboard-avatar { width: min(190px,62vw); margin-inline: auto; }
  .mascot-dashboard-badges { justify-content: center; }
  .mascot-dashboard-actions { grid-template-columns: 1fr; }
  .mascot-dashboard-appearance-list { grid-template-columns: 1fr; }
  .mascot-dashboard-grid .panel-span-2 { grid-column: auto; }
  .mascot-editor-modal { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .mascot-editor-dialog { max-height: calc(100vh - 16px); }
  .mascot-editor-dialog-header { align-items: flex-start; padding: 13px 15px; }
  .mascot-editor-dialog-body { padding: 10px; }
}
.mascot-dashboard-disclosure { display: grid; gap: 14px; }
.mascot-dashboard-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; list-style: none; cursor: pointer; }
.mascot-dashboard-disclosure > summary::-webkit-details-marker { display: none; }
.mascot-dashboard-disclosure > summary strong,
.mascot-dashboard-disclosure > summary small { display: block; }
.mascot-dashboard-disclosure > summary strong { color: var(--cm-brand-navy); font-size: 1.05rem; }
.mascot-dashboard-disclosure > summary small { margin-top: 3px; color: var(--cm-text-muted); }
.mascot-dashboard-disclosure .disclosure-icon { color: var(--cm-action-teal); font-size: 1.5rem; transition: transform var(--cm-motion-fast); }
.mascot-dashboard-disclosure[open] .disclosure-icon { transform: rotate(180deg); }
.mascot-dashboard-disclosure-body { padding-top: 0; }
