/* Koko Intern: deliberately separate from the public site for independent development. */
.setup-card { max-width: 720px; margin: 3rem auto; display: grid; gap: 1.5rem; }
.setup-card form { display: grid; gap: .75rem; }
.setup-card label { font-weight: 700; }
.setup-card input { width: 100%; padding: .8rem; border: 1px solid #b7adca; border-radius: 8px; }
.recovery-codes { padding: 1.2rem; background: #f0ebf8; border-radius: 12px; display: grid; gap: .8rem; }
.recovery-codes pre { white-space: pre-wrap; font-size: 1rem; }
.setup-secret { overflow-wrap: anywhere; font-size: 1.1rem; user-select: all; }
.admin-notice { margin: 1rem 2rem 0; padding: 1rem; background: #eee8f8; border-radius: 8px; }
.admin-notice.is-error { background: #fce8e7; color: #8e2424; }
.admin-form { display: grid; gap: 1rem; }
.admin-form label, .photo-edit label { display: grid; gap: .35rem; font-weight: 650; }
.admin-form input, .admin-form select, .admin-form textarea, .photo-edit input { width: 100%; padding: .7rem; border: 1px solid #c7bfd4; border-radius: 7px; background: #fff; }
.admin-form textarea { resize: vertical; }
.admin-form .checkbox { display: flex; align-items: center; gap: .65rem; }
.admin-form .checkbox input { width: 1.25rem; height: 1.25rem; }
.button--danger { color: #9c2929; border-color: #d3a6a6; }
.image-preview { max-height: 260px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.photo-edit { border: 1px solid var(--line); padding: 1rem; border-radius: 10px; display: grid; gap: .7rem; }
.photo-edit img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 7px; }
.photo-edit .editor-actions { flex-wrap: wrap; }
.upload-panel { margin: 1.5rem 0; }
.empty-state { padding: 1rem 0; }
@media (max-width: 760px) { .setup-card { margin: 1rem; } .admin-notice { margin: 1rem; } .field-row { grid-template-columns: 1fr; } }
:root {
  --purple: #8070b1;
  --purple-dark: #65518f;
  --ink: #292434;
  --muted: #726b7d;
  --canvas: #f6f5f8;
  --line: #e8e4ed;
  --lavender: #e7dff5;
  --rose: #a4615e;
  --font: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Rubik Spray Paint", var(--font);
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; font-size: 1rem; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 3.5vw, 2.65rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 800; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 4px; }
::selection { color: #fff; background: var(--purple-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 1rem; background: #fff; padding: .8rem 1rem; border: 2px solid var(--purple-dark); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .3rem .65rem; border-radius: 7px; font-size: .8rem; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.badge svg { width: 1rem; height: 1rem; }
.badge--purple { background: #eee8f8; color: #604588; }
.badge--white { color: var(--ink); background: #fff; }
.badge--neutral { color: #686171; background: #f0eef3; }
.badge--sage { color: #3b6b55; background: #e5f1e9; }
.badge--peach { color: #925522; background: #fff0df; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 1px solid #d9d3e2; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 750; font-size: .95rem; line-height: 1.3; }
.button:not(:disabled):hover { border-color: var(--purple); background: #f5f1fc; }
.button--primary { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; box-shadow: 0 3px 6px #65518f1a; }
.button--primary:not(:disabled):hover { color: #fff; background: #534078; }
.button--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--dark:not(:disabled):hover { background: #40324e; color: #fff; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; }
.text-link { display: inline-block; color: var(--purple-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.mini-button { padding: .4rem .55rem; border-radius: 6px; border: 1px solid var(--line); color: var(--purple-dark); background: #fff; font-weight: 700; font-size: .875rem; }

/* Login */
.login-shell { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { min-height: 100svh; position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #342a46 5%, #665185 63%, #a4615e 120%); padding: 3rem clamp(2rem, 4vw, 5rem); display: flex; flex-direction: column; }
.brand img { width: 165px; height: auto; }
.login-story .brand { position: relative; z-index: 1; align-self: flex-start; }
.login-story__copy { position: relative; z-index: 1; margin: auto 0; padding: 5rem 0 7rem; }
.login-story__copy .eyebrow { color: #e3d9f4; margin-bottom: 1.65rem; }
.login-story h1 { font-family: var(--display); font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
.login-story h1 span { color: #d2b9f3; }
.login-story__copy > p:not(.eyebrow) { margin-top: 1.8rem; color: #eee7f6; font-size: 1.15rem; line-height: 1.65; }
.story-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.story-tags span { border: 1px solid #ffffff40; background: #ffffff0a; padding: .35rem .8rem; border-radius: 999px; font-size: .875rem; }
.station-art { width: 85%; height: auto; position: absolute; right: -10%; bottom: 7rem; opacity: .14; stroke-width: 2; }
.login-story__foot { position: relative; color: #e1d7eb; font-size: .875rem; }
.login-form-side { display: flex; flex-direction: column; padding: 2.5rem clamp(1.5rem, 4vw, 5rem) 1.5rem; background: #fbfafc; }
.back-link { align-self: flex-end; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.login-card { max-width: 430px; width: 100%; align-self: center; margin: auto 0; padding: 3rem 0; scroll-margin-top: 1rem; }
.login-card h2 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); margin: 1.3rem 0 .65rem; }
.login-card > .muted { line-height: 1.6; }
#login-form { margin-top: 2rem; }
#login-form > label { display: block; margin: 1.2rem 0 .45rem; font-weight: 750; font-size: .95rem; }
input, select, textarea { min-height: 46px; min-width: 0; width: 100%; border: 1px solid #dcd6e3; border-radius: 9px; padding: .7rem .85rem; background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #8d8598; }
input[aria-invalid="true"] { border-color: #b04049; }
.password-field { position: relative; }
.password-field input { padding-right: 6rem; }
.password-field button { position: absolute; right: .3rem; top: .25rem; bottom: .25rem; border: none; border-radius: 6px; padding-inline: .7rem; font-size: .875rem; font-weight: 700; background: transparent; color: var(--purple-dark); }
.login-submit { width: 100%; margin-top: 1.6rem; min-height: 49px; }
.form-error { color: #a12f3b; margin-top: .8rem; font-size: .95rem; }
.demo-login-note { margin-top: 1.8rem; padding: 1rem 1.1rem; border: 1px solid #e3dbef; border-radius: 11px; background: #f2edf8; font-size: .875rem; color: #6a5d7c; }
.demo-login-note strong { display: block; color: #57456e; margin-bottom: .35rem; }
.demo-login-note code { font-family: inherit; font-weight: 800; }
.login-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; color: var(--muted); font-size: .8rem; }
.login-footer a { text-decoration: underline; text-underline-offset: 3px; }

/* Shared shell */
.sidebar { position: fixed; z-index: 5; width: 247px; inset: 0 auto 0 0; display: flex; flex-direction: column; overflow-y: auto; padding: 2rem 1.1rem 1rem; color: #ece8f2; background: #282237; }
.sidebar .brand { display: flex; align-items: center; gap: .55rem; padding: .15rem .65rem; }
.sidebar .brand img { width: 146px; }
.sidebar .brand > span { font-size: .6rem; letter-spacing: .1em; color: #d8c7f1; border: 1px solid #635577; border-radius: 4px; padding: .2rem .3rem; }
.nav-label { display: block; color: #b0a6be; text-transform: uppercase; letter-spacing: .09em; font-size: .69rem; font-weight: 700; padding: 0 .85rem; }
.sidebar > .nav-label { margin-top: 2.7rem; margin-bottom: .75rem; }
.admin-nav { display: grid; gap: .4rem; }
.admin-nav > .nav-label { margin-top: 1.6rem; margin-bottom: .4rem; }
.admin-nav > a { display: flex; align-items: center; gap: .7rem; min-height: 45px; padding: .65rem .85rem; border-radius: 9px; font-size: .95rem; font-weight: 600; color: #d3ccdf; }
.admin-nav > a > span:first-child { color: #ae9ac8; display: flex; }
.admin-nav > a:hover { background: #ffffff09; }
.admin-nav > a[aria-current] { background: #baace0; color: #282237; font-weight: 800; }
.admin-nav > a[aria-current] > span:first-child { color: #49365f; }
.sidebar :focus-visible { outline-color: #ddcafa; }
.nav-count { margin-left: auto; min-width: 22px; text-align: center; border-radius: 5px; background: #ffffff14; font-size: .75rem; }
.sidebar-bottom { margin-top: auto; padding-top: 2rem; }
.website-link { display: flex; align-items: center; gap: .6rem; padding: .8rem .65rem; font-size: .875rem; color: #cec4dd; }
.external-label { margin-left: auto; font-size: .65rem; color: #ad9fbf; }
.user-card { display: flex; align-items: center; gap: .7rem; border-top: 1px solid #ffffff17; padding: 1.2rem .25rem .1rem; margin-top: .5rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: #d9c8ef; color: #4d3768; border-radius: 11px; font-weight: 800; }
.user-card > div { flex: 1; }
.user-card strong { display: block; font-size: .9rem; }
.user-card > div > span { display: block; font-size: .75rem; color: #b6a8c6; }
.user-card .icon-button { color: #bdb0cf; }
.user-card .icon-button:hover { background: #ffffff0b; }
.workspace { margin-left: 247px; min-height: 100svh; display: flex; flex-direction: column; }
.topbar { min-height: 77px; padding: 1rem 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #ffffffc9; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .875rem; }
.breadcrumb > span { color: #8c829a; }
.breadcrumb strong { font-weight: 650; }
.topbar > .badge { font-size: .75rem; background: #f1ecf8; }
.content { width: 100%; max-width: 1560px; margin-inline: auto; padding: 2rem 2.4rem 3rem; outline: none; flex: 1; }
.workspace-footer { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; padding: 1.1rem 2.4rem; border-top: 1px solid var(--line); color: #8c829a; font-size: .8rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .5rem 0 1.6rem; }
.page-heading .eyebrow { color: var(--purple-dark); margin-bottom: .6rem; }
.page-heading h1 { margin-bottom: .6rem; }
.page-heading h1:focus, .welcome-banner h1:focus { outline: none; }
.heading-action { flex: none; }
.preview-note { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; margin: 1.2rem 0 1.6rem; border: 1px solid #e4dded; background: #f0ecf5; border-radius: 9px; color: #71617f; font-size: .875rem; }
.preview-note svg { color: #8b73a5; width: 1.1rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: 0 3px 6px #2d243502; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 1.2rem; }
.section-heading > .muted { font-size: .85rem; }
.section-heading .eyebrow { color: var(--purple-dark); margin-bottom: .45rem; }
.panel-footnote { font-size: .8rem; color: #877e93; line-height: 1.5; margin-top: 1rem; }

/* Overview */
.welcome-line { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: #8b8096; font-size: .7rem; font-weight: 700; letter-spacing: .09em; }
.welcome-line > span:last-child { font-weight: 500; letter-spacing: 0; }
.welcome-banner { display: grid; grid-template-columns: 1fr 260px; background: #e3daf3; border-radius: 16px; padding: 2rem 2.2rem; position: relative; overflow: hidden; }
.welcome-banner > div:first-child { position: relative; z-index: 1; }
.welcome-banner .badge { font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; background: #ffffff9e; color: #6b538a; }
.welcome-banner h1 { font-size: clamp(1.8rem, 2.8vw, 2.9rem); line-height: 1.12; font-weight: 800; }
.welcome-banner h1 span { color: #775c99; }
.welcome-banner p { max-width: 460px; color: #6e5e81; margin: .9rem 0 1.2rem; font-size: .95rem; }
.welcome-banner .button { min-height: 40px; font-size: .85rem; padding: .6rem .9rem; border-radius: 8px; }
.welcome-art { position: relative; align-self: center; justify-self: center; width: 220px; height: 210px; }
.art-word { position: absolute; top: -45px; left: 30px; font-family: var(--display); font-size: 15rem; color: #c3afe0; transform: rotate(-10deg); line-height: 1.1; }
.art-sticker { position: absolute; bottom: 20px; left: 5px; transform: rotate(-9deg); background: #a4615e; padding: .8rem 1rem; color: #fff; font-size: 1rem; font-weight: 900; line-height: 1.1; box-shadow: 4px 4px 0 #493d5b; }
.art-star { position: absolute; right: -9px; top: 2px; color: #775c99; font-size: 6rem; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.1rem; }
.stat-card { display: grid; grid-template-columns: 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; transition: border-color .15s; }
.stat-card:hover { border-color: #c3afd9; }
.stat-card strong { grid-column: 1; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.stat-card > span:last-child { font-size: .85rem; margin-top: .45rem; color: var(--muted); }
.stat-icon { color: #9b83bc; grid-column: 2; grid-row: 1; }
.stat-icon svg { width: 1.3rem; height: 1.3rem; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.module-card { padding: 1.3rem; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.module-card:hover { transform: translateY(-3px); border-color: #bba8d3; box-shadow: 0 8px 22px #5344620a; }
.module-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; flex: none; }
.module-icon--purple { color: #8060a9; background: #eee7f8; }
.module-icon--rose { color: #a86471; background: #fae9ee; }
.module-icon--sage { color: #648b78; background: #e6f1eb; }
.module-icon--peach { color: #b77e4c; background: #fff0e1; }
.module-card h3 { margin-top: 1rem; }
.module-card p { color: var(--muted); font-size: .9rem; margin-top: .5rem; min-height: 2.8em; }
.module-meta { margin-top: 1.2rem; color: #9a8ca7; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.module-open { margin-top: .4rem; font-weight: 750; font-size: .85rem; color: var(--purple-dark); }
.overview-aside { display: grid; gap: 1rem; align-content: start; }
.next-event .section-heading h2 { font-size: 1rem; }
.next-event .section-heading svg { color: #9b83bc; }
.next-event__image { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.next-event .eyebrow { color: #977da9; font-size: .65rem; margin-bottom: .5rem; }
.next-event h3 { font-size: 1.05rem; }
.next-event .muted { font-size: .85rem; margin: .5rem 0 .75rem; }
.next-event .text-link { font-size: .85rem; }
.team-note { padding: 1.3rem; background: #ede7f5; border: 1px solid #e2d8ee; border-radius: 13px; }
.team-note .module-icon { width: 34px; height: 34px; background: #e1d6ef; margin-bottom: .7rem; }
.team-note h3 { font-size: 1.05rem; }
.team-note p { font-size: .85rem; color: #80708e; margin: .5rem 0 .8rem; }
.team-note .text-link { font-size: .85rem; }

/* Editors */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr); gap: 1.5rem; align-items: start; }
.event-list { display: grid; gap: .7rem; }
.event-row { text-align: left; padding: 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.event-row.is-selected { border-color: #b9a6d0; background: #f8f5fc; box-shadow: 0 0 0 1px #b9a6d0; }
.event-row > .badge { margin-left: auto; font-size: .7rem; }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; min-height: 57px; flex: none; border-radius: 9px; background: #eae2f4; color: #6b4f8d; }
.date-block strong { font-size: 1.5rem; line-height: 1.1; }
.date-block > span { font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.event-row__copy { display: flex; flex-direction: column; gap: .15rem; }
.event-row__copy .eyebrow { font-size: .65rem; color: #9b83ad; }
.event-row__copy > strong { font-size: 1rem; line-height: 1.25; }
.event-row__copy > span:last-child { color: var(--muted); font-size: .8rem; }
.recurring-event { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.4rem; }
.recurring-event > svg { color: var(--purple); }
.recurring-event strong { font-size: .9rem; }
.recurring-event p { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.preview-fields { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.preview-fields label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 750; min-width: 0; }
.preview-fields input, .preview-fields select, .preview-fields textarea { background: #faf9fc; color: #70677e; -webkit-text-fill-color: #70677e; font-weight: 450; opacity: 1; border-color: #e7e2ed; }
.preview-fields textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: .8rem; }
.editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.editor-actions .button { font-size: .875rem; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.8rem; }
.album-card { text-align: left; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.album-card.is-selected { border-color: #a48aba; box-shadow: 0 0 0 2px #a48aba; }
.album-cover { position: relative; }
.album-cover img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.album-cover .badge { position: absolute; bottom: .7rem; right: .7rem; font-size: .7rem; box-shadow: 0 2px 7px #0002; }
.album-card__body { padding: 1.1rem; }
.album-card__body .eyebrow { color: #9a7da9; font-size: .65rem; }
.album-card__body h2 { margin: .4rem 0 .45rem; font-size: 1.15rem; }
.album-card__body > .muted { font-size: .8rem; }
.photo-editor { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.photo-grid figure { min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.photo-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .6rem; font-size: .8rem; color: var(--muted); }
.photo-grid .mini-button { font-size: .75rem; }
.upload-placeholder { margin-top: 1.3rem; border: 1px dashed #cfc3dd; border-radius: 10px; padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; color: #9b87ad; background: #fcfafe; }
.upload-placeholder strong { font-size: .9rem; color: #80708e; }
.upload-placeholder > span { font-size: .8rem; }

/* Application previews */
.ticket-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.7rem; }
.ticket-stats > div { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ticket-stats strong { font-size: 1.8rem; line-height: 1; }
.ticket-stats > div > span:last-child { color: var(--muted); font-size: .9rem; }
.filter-row { display: flex; gap: .7rem; margin-bottom: 1rem; }
.filter-row input { min-width: 0; }
.filter-row select { width: 145px; flex: none; }
.filter-row :disabled { background: #faf9fc; color: #9c92a7; }
.ticket-list { display: grid; gap: .7rem; }
.ticket-row { display: grid; gap: .4rem; text-align: left; background: #fff; border: 1px solid var(--line); padding: 1rem; border-radius: 10px; width: 100%; }
.ticket-row.is-selected { border-color: #baa7cd; background: #f8f5fc; box-shadow: 0 0 0 1px #baa7cd; }
.ticket-row__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ticket-id { font-size: .75rem; color: #8a799b; letter-spacing: .03em; font-weight: 750; }
.ticket-row > .muted { font-size: .85rem; }
.detail-title { font-size: 1.4rem; margin: .5rem 0 .8rem; }
.editor-panel > p:not([class]) { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.detail-meta { margin: 1.2rem 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; gap: 1rem; }
.detail-meta > span { color: var(--muted); font-size: .8rem; }
.detail-meta strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; margin-top: .3rem; }
.planner-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.8rem 0 1.2rem; }
.view-switch { display: flex; padding: .25rem; background: #ebe6f1; border: 1px solid #e2dbe9; border-radius: 10px; }
.view-switch button { min-height: 40px; background: transparent; color: #8b7b9b; font-size: .9rem; font-weight: 750; border: 0; border-radius: 7px; padding: .5rem .9rem; }
.view-switch button[aria-pressed="true"] { color: var(--purple-dark); background: #fff; box-shadow: 0 1px 4px #3328410c; }
.planner-date { color: var(--muted); font-size: .9rem; }
.planner-grid, .ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.planner-day { padding: .8rem; border-radius: 13px; border: 1px solid var(--line); background: #eeebf2; }
.planner-day > header { display: flex; justify-content: space-between; align-items: center; padding: .4rem .25rem 1rem; font-size: .95rem; }
.planner-day > header > span { font-size: .85rem; color: #9c8baa; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post-card > img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.post-card__body { padding: 1rem; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .7rem; color: #9c8da9; margin-bottom: .8rem; }
.post-card__meta .badge { font-size: .7rem; }
.post-card h3 { font-size: 1.1rem; }
.post-card p { color: var(--muted); font-size: .85rem; margin-top: .6rem; line-height: 1.6; }
.post-card__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: center; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.post-card__foot .badge { font-size: .75rem; }
.post-card__foot .mini-button { font-size: .75rem; }
.idea-column { background: #eeebf2; border-radius: 13px; padding: .8rem; }
.idea-column > h2 { display: flex; justify-content: space-between; font-size: 1rem; padding: .5rem .3rem 1rem; }
.idea-column > h2 > span { background: #e0d8ea; padding: .1rem .5rem; border-radius: 5px; font-size: .8rem; }
.planner-bottom { margin-top: 1.8rem; }
.planner-bottom > .panel { display: flex; align-items: center; gap: 1rem; }
.planner-bottom h2 { font-size: 1.1rem; }
.planner-bottom p { margin-top: .4rem; font-size: .9rem; }
.planner-bottom .button { flex: none; margin-left: auto; }
.roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.role-card h2 { margin: 1rem 0 .6rem; }
.role-card .muted { font-size: .95rem; }
.role-card ul { list-style: none; margin: 1.3rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.role-card li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.role-card li > svg { width: 1rem; height: 1rem; color: #9a80b6; }
.member-preview { margin-top: 1.5rem; }
.member-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.member-row > div { flex: 1; }
.member-row strong, .member-row .muted { display: block; }
.member-row .muted { font-size: .85rem; }
.noscript-card { margin: 3rem auto; max-width: 600px; padding: 1.5rem; }

/* Compact screens retain the full navigation, without a JS-dependent menu. */
@media (min-width: 1600px) { .content { padding-top: 2.6rem; } .welcome-banner { padding-block: 2.6rem; } }
@media (max-width: 1200px) {
  .sidebar { width: 220px; padding-inline: .8rem; }
  .sidebar .brand { gap: .3rem; padding-inline: .4rem; }
  .sidebar .brand img { width: 130px; }
  .workspace { margin-left: 220px; }
  .content { padding: 1.7rem 1.6rem 2.5rem; }
  .topbar, .workspace-footer { padding-inline: 1.6rem; }
  .welcome-banner { grid-template-columns: 1fr 190px; padding: 1.8rem; }
  .welcome-art { transform: scale(.85); width: 180px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr) 245px; gap: 1.1rem; }
  .module-card { padding: 1rem; }
  .module-card h3 { font-size: 1.05rem; }
  .stat-grid { gap: .7rem; }
  .stat-card { padding: 1rem; }
  .stat-card > span:last-child { font-size: .8rem; }
  .editor-layout, .photo-editor { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 1rem; }
  .panel { padding: 1.1rem; }
  .event-row { gap: .65rem; padding: .8rem; }
  .event-row > .badge { display: none; }
  .planner-grid, .ideas-grid { gap: .75rem; }
  .post-card__body { padding: .8rem; }
}
@media (max-width: 1000px) {
  .dashboard-columns { grid-template-columns: 1fr; }
  .overview-aside { grid-template-columns: 1fr 1fr; }
  .next-event__image { max-height: 150px; }
  .editor-layout, .photo-editor { grid-template-columns: 1fr; }
  .planner-toolbar { align-items: flex-start; flex-direction: column; }
  .planner-grid, .ideas-grid { grid-template-columns: 1fr; }
  .post-card { display: grid; grid-template-columns: 150px 1fr; }
  .post-card > img { height: 100%; aspect-ratio: auto; }
  .post-card__body { padding: 1rem; }
  .planner-bottom > .panel { flex-wrap: wrap; }
  .planner-bottom .button { margin-left: 0; }
  .album-card__body { padding: .8rem; }
  .album-card__body h2 { font-size: 1rem; }
  .login-story { padding: 2rem; }
  .login-story h1 { font-size: clamp(2.3rem, 4.7vw, 4rem); }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 1.5rem; }
  .login-story .brand img { width: 140px; }
  .login-story__copy { padding: 2.5rem 0 1.2rem; }
  .login-story__copy .eyebrow { margin-bottom: .9rem; font-size: .65rem; }
  .login-story h1 { font-size: clamp(2.3rem, 9vw, 3.5rem); }
  .login-story__copy > p:not(.eyebrow) { margin-top: 1rem; font-size: 1rem; }
  .story-tags { margin-top: 1rem; }
  .story-tags span { font-size: .75rem; }
  .login-story__foot { display: none; }
  .station-art { bottom: 2rem; right: -10%; width: 65%; }
  .login-form-side { padding: 1.5rem; }
  .login-card { padding: 2rem 0; }
  .back-link { font-size: .8rem; }
  .sidebar { position: static; width: 100%; padding: 1rem 1rem .65rem; }
  .sidebar .brand { padding: 0 .2rem; }
  .sidebar .brand img { width: 120px; }
  .sidebar > .nav-label, .admin-nav > .nav-label, .sidebar-bottom .website-link { display: none; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
  .admin-nav > a { flex: 1 1 calc(50% - .4rem); justify-content: center; text-align: center; gap: .4rem; min-height: 44px; padding: .6rem .45rem; font-size: .875rem; border: 1px solid #ffffff14; }
  .admin-nav > a svg { width: 1rem; height: 1rem; }
  .admin-nav .nav-count { display: none; }
  .sidebar-bottom { padding: 0; margin: 0; }
  .user-card { position: absolute; right: 1rem; top: .65rem; padding: 0; margin: 0; border: none; gap: .4rem; }
  .user-card .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: .8rem; }
  .user-card > div { display: none; }
  .user-card .icon-button { min-width: 40px; min-height: 40px; }
  .workspace { margin-left: 0; min-height: calc(100svh - 160px); }
  .topbar { min-height: 62px; padding: .85rem 1rem; }
  .breadcrumb { font-size: .75rem; gap: .4rem; }
  .topbar > .badge { font-size: .65rem; padding: .3rem .4rem; }
  .topbar > .badge svg { display: none; }
  .content { padding: 1.3rem 1rem 2rem; }
  .workspace-footer { padding: 1rem; font-size: .7rem; }
  .welcome-line { font-size: .6rem; }
  .welcome-line > span:last-child { display: none; }
  .welcome-banner { grid-template-columns: 1fr 130px; padding: 1.4rem; }
  .welcome-banner h1 { font-size: clamp(1.8rem, 5vw, 2.35rem); }
  .welcome-banner p { font-size: .875rem; }
  .welcome-art { transform: scale(.65); width: 120px; }
  .art-word { left: 0; }
  .art-sticker { bottom: 8px; left: -35px; }
  .art-star { right: -55px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.6rem; }
  .stat-card strong { font-size: 1.6rem; }
  .preview-note { padding: .7rem .85rem; font-size: .8rem; align-items: flex-start; }
  .preview-note svg { margin-top: .15rem; }
  .overview-aside { grid-template-columns: 1fr 1fr; }
  .section-heading { margin-bottom: 1rem; }
  .section-heading h2 { font-size: 1.05rem; }
  .section-heading > .button { font-size: .8rem; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; margin-top: .3rem; gap: 1rem; }
  .page-heading h1 { font-size: 2rem; }
  .page-heading .muted { font-size: .95rem; }
  .album-grid { gap: .7rem; }
  .album-card__body { padding: .65rem; }
  .album-card__body h2 { font-size: .95rem; overflow-wrap: anywhere; }
  .album-card__body .eyebrow { font-size: .55rem; letter-spacing: .04em; }
  .album-card__body > .muted { font-size: .65rem; }
  .album-cover img { aspect-ratio: 1; }
  .album-cover .badge { bottom: .4rem; right: .4rem; font-size: .6rem; padding: .25rem .4rem; }
  .ticket-stats { gap: .6rem; }
  .ticket-stats > div { flex-wrap: wrap; gap: .4rem; padding: .8rem; }
  .ticket-stats > div > span:last-child { width: 100%; font-size: .8rem; }
  .ticket-stats strong { font-size: 1.4rem; }
  .roles-grid { gap: .8rem; }
  .role-card { padding: 1rem; }
  .role-card h2 { font-size: 1.1rem; }
  .role-card .muted, .role-card li { font-size: .85rem; }
}
@media (max-width: 440px) {
  .admin-nav > a { font-size: .875rem; gap: .3rem; }
  .admin-nav > a svg { width: .9rem; height: .9rem; }
  .welcome-banner { display: block; }
  .welcome-banner > div:first-child { max-width: 255px; }
  .welcome-art { display: none; }
  .welcome-banner h1 { font-size: 1.95rem; }
  .module-grid, .overview-aside, .roles-grid { grid-template-columns: 1fr; }
  .module-card { display: grid; grid-template-columns: 42px 1fr; gap: 0 .9rem; }
  .module-card > div { grid-column: 2; }
  .module-card h3 { margin-top: .1rem; }
  .module-card p { min-height: auto; }
  .module-meta, .module-open { grid-column: 2; }
  .module-meta { margin-top: .65rem; }
  .team-note { display: none; }
  .next-event__image { max-height: 170px; }
  .photo-grid { gap: .7rem; }
  .photo-grid figcaption { flex-wrap: wrap; }
  .filter-row { flex-wrap: wrap; }
  .filter-row select { width: 100%; }
  .post-card { display: block; }
  .post-card > img { width: 100%; aspect-ratio: 1.8; height: auto; }
  .planner-date { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Team accounts use the same editor layout as events. */
.account-list { display: grid; gap: .65rem; }
.account-row { display: grid; gap: .45rem; width: 100%; padding: 1rem; text-align: left; color: var(--ink); background: #fff; border: 1px solid #dcd7e4; border-radius: 12px; overflow-wrap: anywhere; }
.account-row.is-selected { border-color: #70528d; background: #f5f0fa; }
.account-row > span:not(.badge) { font-size: .9rem; }
.account-row .badge { justify-self: start; }
.account-password { max-width: 700px; }
