/* ==== Williams Creatives Hub: base and layout ==== */
:root {
  --ink: #1d1b22; --muted: #67646f; --line: #e6e3ea; --bg: #f4f6f9; --card: #fff;
  --accent: #0a76a1; --accent-strong: #075f82; --accent-soft: #e7f3f9; --brand: #088abb;
  --pink: #d9488f; --pink-soft: #fcebf3; --good: #1d7a46; --good-soft: #e5f4eb; --warn: #9a5800; --warn-soft: #fdf2e1; --bad: #b3261e; --bad-soft: #fbe8e6;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 2px 8px rgba(20, 20, 40, .05);
  --side-w: 248px; font-size: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-size: 1.2rem; font-weight: 600; margin: 30px 0 12px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 18px 0 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
code { background: #f1eff4; padding: 1px 5px; border-radius: 4px; }

/* ---- Shell: sidebar on desktop, top bar + bottom bar on phones ---- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.side-brand img { height: 40px; width: auto; display: block; }
.side-brand span { color: var(--pink); font-weight: 700; font-size: 1.05rem; border-left: 2px solid var(--line); padding-left: 10px; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav-sec { margin-top: 14px; }
.nav-sec:first-child { margin-top: 4px; }
.nav-head { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8b8794; padding: 6px 10px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #33303a; text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #7c7887; }
.nav-item:hover { background: #f3f5f8; }
.nav-item.on { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nav-item.on svg { color: var(--accent); }
.side-foot { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.side-foot .who { flex: 1; min-width: 0; line-height: 1.2; }
.side-foot .who b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: .75rem; color: var(--muted); }
.mainwrap { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 32px 64px; flex: 1; }
.foot { text-align: center; font-size: .82rem; color: var(--muted); padding: 20px 16px 28px; }
.foot a { color: var(--muted); }
.mtop { display: none; }
.bottombar { display: none; }
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; background: rgba(20, 20, 30, .35); z-index: 60; display: flex; align-items: flex-end; }
.sheet-panel { background: #fff; width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 6px; }
/* Signed out: no menus, centred sign-in card */
body.signed-out .side, body.signed-out .bottombar, body.signed-out .mtop { display: none !important; }
body.signed-out .mainwrap { margin-left: 0; }
body.signed-out main { max-width: 480px; padding-top: 6vh; }

@media (max-width: 899px) {
  .side { display: none; }
  .mainwrap { margin-left: 0; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 12px; padding: 8px 16px; background: #fff; border-bottom: 3px solid var(--pink); }
  .mtop-brand img { height: 34px; display: block; }
  .mtop-title { font-weight: 600; font-size: 1rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--line); padding-left: 12px; }
  main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(20, 20, 40, .06); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; font-size: .72rem; font-weight: 600; color: #6c6876; text-decoration: none; background: none; border: 0; border-radius: 0; }
  .bottombar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottombar .on { color: var(--accent); }
  h1 { font-size: 1.35rem; }
}

/* ---- Building blocks used by every page ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 1.55rem; font-weight: 650; } .tile span { color: var(--muted); font-size: .85rem; }
a.tile { text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; } a.tile:hover { border-color: #b9d9e8; box-shadow: 0 4px 14px rgba(10, 118, 161, .10); }
form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 12px; }
label { display: block; font-size: .9rem; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #cfcad6; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 118, 161, .16); }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 8px 0 0; transform: scale(1.15); accent-color: var(--accent); }
.check { display: flex; align-items: flex-start; font-weight: 400; margin: 10px 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; background: var(--card); box-shadow: var(--shadow); }
legend { font-weight: 650; padding: 0 6px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
button:hover, .btn:hover { filter: brightness(.94); }
button.ghost, .btn.ghost { background: #fff; color: var(--accent); border-color: #b7d6e4; }
button.ghost:hover, .btn.ghost:hover { background: var(--accent-soft); filter: none; }
button.danger { background: var(--bad); border-color: var(--bad); }
button.small, .btn.small { padding: 5px 10px; font-size: .84rem; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(10, 118, 161, .35); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
button svg, .btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn, button { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
tbody tr:hover td, table tr:hover td { background: #fafcfe; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: #fff; box-shadow: var(--shadow); }
.scroll table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; }
.notice.warn { border-color: #e2a64a; background: var(--warn-soft); }
details > summary { cursor: pointer; }
.headshot { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--line); flex: none; }
.person { display: flex; gap: 12px; align-items: flex-start; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; z-index: 80; }
#toast.show { opacity: 1; } #toast.bad { background: var(--bad); }
@media (max-width: 899px) { #toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.qr { background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 8px; width: 200px; }

/* ---- Sign-in and account screens ---- */
.auth-card { max-width: 440px; margin: 0 auto; padding: 28px; }
.auth-logo { display: block; height: 58px; margin: 0 auto 16px; }
.auth-card h1 { text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: -6px 0 18px; }
.auth-card form > label { margin-bottom: 12px; }
.auth-card .wide { width: 100%; margin-top: 4px; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; text-align: center; }
.auth-links button, main .auth-links button:not([class]) { background: none; box-shadow: none; border: 0; color: var(--accent); padding: 2px; font-weight: 600; }
.auth-links button:hover, main .auth-links button:not([class]):hover { background: none; box-shadow: none; text-decoration: underline; filter: none; }

/* ---- Home dashboard ---- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dash-head h1 { margin: 0; }
.dash-date { color: var(--muted); font-size: .92rem; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--pink-soft); border: 1px solid #f3c6dc; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.banner .actions { margin: 0; }
.nextup { background: linear-gradient(135deg, #0a76a1, #088abb); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(10, 118, 161, .25); }
.nextup .lbl { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 700; opacity: .85; }
.nextup b { display: block; font-size: 1.25rem; margin: 2px 0; }
.nextup a { color: #fff; font-weight: 600; }
.attn { list-style: none; margin: 0 0 8px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.attn li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.attn li:last-child { border-bottom: 0; }
.attn .count { min-width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--warn-soft); color: var(--warn); flex: none; }
.attn .count.blue { background: var(--accent-soft); color: var(--accent-strong); }
.attn .count.red { background: var(--bad-soft); color: var(--bad); }
.attn .txt { flex: 1; min-width: 0; }
.attn .txt b { display: block; font-weight: 600; }
.attn .txt span { color: var(--muted); font-size: .86rem; }
.all-clear { display: flex; align-items: center; gap: 10px; background: var(--good-soft); color: var(--good); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; margin-bottom: 8px; }
.shows { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.show-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.show-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.show-card .meta { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.stepper { display: flex; gap: 4px; margin: 6px 0 4px; }
.stepper i { flex: 1; height: 6px; border-radius: 3px; background: #e9e6ee; }
.stepper i.done { background: #9dcbe0; } .stepper i.now { background: var(--pink); }
.stepper-label { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.stepper-label b { color: var(--ink); }
.show-links { display: flex; flex-wrap: wrap; gap: 6px; }
.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.quick a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.quick a:hover { border-color: #b9d9e8; }
.quick .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.quick .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick b { display: block; font-size: .95rem; } .quick span { font-size: .8rem; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }

@media (max-width: 600px) { .shows { grid-template-columns: 1fr; } .auth-card { padding: 22px 18px; } }
@media print {
  .side, .mtop, .bottombar, .sheet, .foot, .actions, button { display: none !important; }
  .mainwrap { margin-left: 0 !important; } main { padding: 0 !important; max-width: none; }
  body { background: #fff; } .card, .scroll, .tile { box-shadow: none; }
}
/* ==== page blocks below ==== */
/* Panel scoring */
.audition { cursor: pointer; } .audition.open { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.num { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.score { display: grid; grid-template-columns: 120px repeat(5, 1fr); gap: 6px; align-items: center; margin: 6px 0; }
.score button { padding: 10px 0; background: #fff; color: var(--ink); border-color: #cfc7d6; }
.score button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 600px) { .score { grid-template-columns: 90px repeat(5, 1fr); } }

/* Planning */
.plan-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.plan-tabs a { padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: .9rem; }
.plan-tabs a.on { background: var(--accent); color: #fff; }
.plan-table input, .plan-table select, .plan-grid input, .plan-grid select { margin-top: 0; padding: 6px 8px; min-width: 90px; font-size: .88rem; }
.plan-table input[type=checkbox] { min-width: 0; }
.plan-table tr.addrow td { background: var(--accent-soft); }
.plan-grid td, .plan-grid th { white-space: nowrap; }
.plan-grid .sticky { position: sticky; left: 0; background: var(--card); z-index: 1; }
.plan-grid select.alloc { min-width: 140px; }
.plan-grid select.st-0 { background: #e3f4ea; } .plan-grid select.st-1 { background: #eef6ff; }
.plan-grid select.st-2 { background: #fdf0dc; } .plan-grid select.st-4 { color: var(--muted); }
details { margin-bottom: 10px; } details summary { cursor: pointer; padding: 6px 0; }
@media print {
  .plan-tabs, #rf, .addrow { display: none !important; }
  .scroll { overflow: visible; border: 0; }
  body.printing-call main > *:not(#callsheet) { display: none; }
}
/* Finance */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.bar { background: var(--line); height: 8px; border-radius: 4px; overflow: hidden; margin: 4px 0; }
.bar span { display: block; height: 100%; background: var(--accent); }
.bar.over span { background: var(--bad); }
.amt { font-style: normal; } .neg { color: var(--bad); }
table.edit input, table.edit select { margin-top: 0; padding: 5px 6px; font-size: .9rem; }
table.mix { max-width: 520px; }

/* Planning 2 */
.notice.bad-banner { border-color: var(--bad); background: #fbe6e4; }
.plan-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.plan-two h3 { margin-top: 0; }
tr.doc-sheet td { background: #e3f4ea; }
tr.row-bad td { background: #fbe6e4; }
.plan-grid select.rota { min-width: 110px; }
.plan-grid select.st-booked { background: #e3f4ea; } .plan-grid select.st-unavailable { background: #fbe6e4; color: var(--bad); }
.plan-grid select.st-available { background: #eef6ff; }
@media print { #expect .actions, #rpast { display: none !important; } }
.plan-grid .rotacell { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.plan-grid .rotacell select, .plan-grid .rotacell input { width: 100%; min-width: 0; }
.plan-table .pill, .plan-grid .pill { white-space: nowrap; }

/* Members */
[hidden] { display: none !important; }

/* Planning 3 */
.team-pill { margin-left: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag { display: inline-flex; align-items: center; gap: 2px; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: .85rem; }
.tagx { background: none; border: 0; color: var(--accent); padding: 0 6px; font-size: 1rem; line-height: 1; cursor: pointer; }
.tagadd { display: flex; gap: 6px; } .tagadd input { margin: 0; max-width: 260px; }
.showsheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 48px; max-width: 800px; font-family: Tahoma, Verdana, system-ui, sans-serif; }
.showsheet p { margin: 0 0 14px; }
.ss-logo { height: 90px; width: auto; }
.ss-image { text-align: center; margin: 18px 0 26px; } .ss-image img { max-width: 70%; max-height: 300px; }
.ss-title { text-align: center; color: var(--accent); margin: 18px 0 26px; }
.ss-alloc { width: 100%; border-collapse: collapse; } .ss-alloc th, .ss-alloc td { border: 1px solid #222; padding: 4px 8px; text-align: left; vertical-align: top; font-size: .95rem; }
.rs-table { border-collapse: collapse; } .rs-table th, .rs-table td { border: 1px solid #b9c8d3; padding: 6px 8px; vertical-align: top; }
.rs-table th.rs-room { text-align: center; font-size: .95rem; color: var(--ink); text-transform: none; }
.rs-table tr td { background: #e3eef7; } .rs-table tr.alt td { background: #f1f6fb; } .rs-table td.rs-empty { background: #8a8a8a !important; }
.rs-date { font-weight: 700; white-space: nowrap; }
.rs-chaps { margin: 0; padding-left: 20px; }
.crewsheet { display: none; }
.crew-table { border-collapse: collapse; width: 100%; } .crew-table th, .crew-table td { border: 1px solid #999; padding: 4px 6px; font-size: .85rem; text-align: left; }
.crew-table tr.cont td { border-top-color: #ddd; }
@media print {
  body.print-only main > * { display: none !important; }
  body.print-only main > .print-target { display: block !important; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
  body.print-only .print-target .actions { display: none !important; }
  .rs-table td.rs-empty { background: #8a8a8a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rs-table td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Safeguarding ops */
.sigpad { border: 2px dashed #b9b0c2; border-radius: 10px; background: #fff; overflow: hidden; }
.sigpad canvas { display: block; touch-action: none; cursor: crosshair; background: #fff; }
.sigpad-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); background: #faf8fb; }
.si-sessions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.si-session { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; min-height: 96px; }
.si-session.today { border: 2px solid var(--accent); background: var(--accent-soft); }
.si-session .si-open { margin-top: auto; color: var(--accent); font-weight: 700; }
.si-label { font-size: 1.1rem; margin: 0 0 12px; }
.si-tiles .tile b { font-size: 1.9rem; }
.si-search { max-width: 420px; font-size: 1.1rem; padding: 12px; margin-bottom: 12px; }
.si-kids { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.si-kid { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; min-height: 92px; border: 1px solid var(--line); border-left: 8px solid #cfc7d6; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 400; width: 100%; }
.si-kid .headshot { width: 60px; height: 74px; }
.si-kid-main { display: flex; flex-direction: column; gap: 3px; }
.si-kid-main b { font-size: 1.15rem; }
.si-kid.st-in { border-left-color: var(--good); background: #f3fbf6; }
.si-kid.st-out { border-left-color: #8a8a8a; background: #f6f6f6; opacity: .85; }
.si-kid.st-absent { border-left-color: var(--bad); background: #fdf3f2; }
.si-overlay { position: fixed; inset: 0; background: rgba(20, 16, 28, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 12px; }
.si-sheet { background: #fff; border-radius: 14px; width: 100%; max-width: 680px; max-height: 94vh; overflow: auto; padding: 18px; }
.si-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.si-big { font-size: 1.15rem; padding: 12px 14px; }
button.si-big { padding: 14px 28px; }
.si-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.si-picks button { padding: 10px 14px; }
.si-alert { border-left-color: var(--bad); background: #fbe6e4; color: #5a1410; margin-top: 10px; }
body.si-modal-open { overflow: hidden; }
.si-thumb { height: 34px; max-width: 110px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
@media (min-width: 700px) { .si-overlay { align-items: center; } }
.pol-card { display: block; text-decoration: none; color: var(--ink); }
.pol-card:hover { border-color: var(--accent); }
.pol-key { border: 2px solid var(--pink, #d9488f); }
.pol-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pol-open { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; }
.pol-body p { margin: 0 0 10px; }
.sg-text { white-space: pre-wrap; font-size: .95rem; }
/* Printable paper sign-in sheet */
.paper-sheet { background: #fff; padding: 12px; }
.ps-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.ps-head h1 { font-size: 1.25rem; margin: 0 0 4px; }
.ps-head p { margin: 0 0 2px; }
.ps-logo { height: 56px; width: auto; }
.ps-table { border: 1px solid #333; }
.ps-table th, .ps-table td { border: 1px solid #333; padding: 6px; height: 34px; font-size: .9rem; }
.ps-table th { background: #f3d4e5; color: #111; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ps-table td:first-child { white-space: nowrap; }
.ps-absent td { color: #777; }
@page sheet { size: A4 landscape; margin: 10mm; }
@media print {
  .no-print { display: none !important; }
  .paper-sheet { page: sheet; padding: 0; }
  .ps-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-table tr { break-inside: avoid; }
  main { max-width: none; padding: 0; }
}
.si-initials { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--accent); background: var(--accent-soft); }
@media print { #toast { display: none !important; } }

/* Panel & members */
.pm-avg .pm-total { font-size: 1.4rem; }
.pm-cats { color: var(--muted); white-space: nowrap; }
.pm-explain { margin-top: -6px; }
.pm-break td, .pm-break th { padding: 6px 8px; }
.pm-avgrow td { background: var(--accent-soft); }
.pm-breakdown summary { cursor: pointer; }
.pm-me { align-items: flex-start; }
.pm-tab.on { background: var(--accent); color: #fff; }
.pm-consents .pill { margin: 1px 0; }

/* Headshot placeholder */
.headshot-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); background: var(--accent-soft); font-size: 1.1rem; }
img.headshot[src=""] { opacity: 0; }

/* Panel group view */
.pg-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; }
.pg-tabs { display: flex; border: 1px solid var(--accent); border-radius: 8px; overflow: hidden; }
.pg-tabs button, main .pg-tabs button:not([class]) { border: 0; border-radius: 0; background: #fff; color: var(--accent); box-shadow: none; }
.pg-tabs button.on { background: var(--accent); color: #fff; }
.pg-ctl { min-width: 160px; }
.pg-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pg-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pg-card.scored { border-color: var(--good); }
.pg-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.pg-photo .headshot { width: 100%; height: 100%; border-radius: 0; font-size: 2rem; }
.pg-num { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.3rem; padding: 2px 10px; border-radius: 8px; }
.pg-name { display: flex; flex-direction: column; line-height: 1.2; }
.pg-adj { background: #fdf3e4; color: var(--warn); border-radius: 6px; padding: 3px 6px; }
.pg-score { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pg-score button { padding: 10px 0; background: #fff; color: var(--ink); border-color: #cfc7d6; font-size: 1.05rem; }
.pg-score button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 600px) { .pg-grid { grid-template-columns: repeat(2, 1fr); } }

/* Schedule & notifications */
.sc-day { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sc-card { display: flex; gap: 12px; align-items: flex-start; border-left: 5px solid var(--accent); }
.sc-card.notcalled { border-left-color: var(--line); }
.sc-card.past { opacity: .55; }
.sc-time { min-width: 86px; font-weight: 700; }
.sc-time span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.sc-body { flex: 1; }
.sc-pill { font-size: .85rem; padding: 3px 10px; }
.sc-cal { background: var(--accent-soft); border-color: #bfe0ee; }
.sc-cal code { word-break: break-all; font-size: .8rem; }
.st-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-switch:last-child { border-bottom: 0; }
.cl-box { margin-top: 16px; }
@media (max-width: 600px) { .sc-card { flex-direction: column; gap: 4px; } .sc-time { min-width: 0; } }

/* Pages: adults, productions, roles, members */
.fp-steps, .ap-steps { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 8px 0; counter-reset: st; }
.fp-steps li, .ap-steps li { counter-increment: st; font-size: .8rem; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--line); color: var(--muted); white-space: nowrap; }
.fp-steps li::before, .ap-steps li::before { content: counter(st); display: inline-block; width: 1.3em; height: 1.3em; line-height: 1.3em; text-align: center; border-radius: 50%; margin-right: 5px; background: #fff; color: var(--muted); font-weight: 700; font-size: .72rem; }
.fp-steps li.done, .ap-steps li.done { background: var(--accent-soft); color: var(--accent); }
.fp-steps li.now, .ap-steps li.now { background: var(--accent); color: #fff; font-weight: 700; }
.fp-steps li.now::before, .ap-steps li.now::before { color: var(--accent); }
.fp-applicant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; border-top: 1px solid var(--line); padding: 10px 0; }
.fp-me { border-left: 4px solid var(--accent); }
.ap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ap-new { font-size: 1.05rem; padding: 12px 22px; }
.ap-card .ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ap-counts { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0; font-size: .9rem; color: var(--muted); }
.ap-counts b { color: var(--ink); font-size: 1.1rem; }
.ap-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 16px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid #cfc7d6; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on .muted { color: rgba(255,255,255,.8); }
tr[hidden] { display: none; }
.sr-person { padding: 14px 16px; }
.sr-ticks { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0; }
.sr-tick { margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; background: #fff; }
.sr-tick.on { border-color: var(--accent); background: var(--accent-soft); }
.sr-shows { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sr-shows .chip { font-weight: 500; }
.sr-x { border: 0; background: none; color: inherit; padding: 0 0 0 6px; font-size: 1rem; cursor: pointer; }
.sr-add { margin: 0; }
.sr-found { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-add { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.sr-add label { flex: 1 1 180px; max-width: 260px; font-size: .85rem; }
.sr-add select { padding: 6px 8px; }

/* Audition day card */
.au-card { border: 2px solid var(--pink, #d9488f); background: linear-gradient(135deg, #fff 60%, #fdeef5); }
.au-head { display: flex; gap: 14px; align-items: flex-start; }
.au-emoji { font-size: 2.2rem; line-height: 1; }
.au-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--pink, #d9488f); }
.au-head h2 { margin: 2px 0 6px; }
.au-head p { margin: 0; }
.au-slot { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 4px; }
.au-slot > div { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; min-width: 150px; }
.au-slot span { display: block; font-size: .78rem; color: var(--muted); }
.au-slot b { font-size: 1.3rem; color: var(--accent); }
.au-slot small { display: block; color: var(--muted); }
.au-bring { margin: 6px 0 10px; padding-left: 20px; }
.au-bring li { margin: 3px 0; }

.au-card.au-adult { border-color: var(--accent); background: linear-gradient(135deg, #fff 60%, #eef6fa); }
.au-card.au-adult .au-kicker { color: var(--accent); }
.fp-pref select { width: auto; padding: 4px 8px; margin-left: 4px; }

/* Past shows & badges */
.wc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #fff4d6, #fde3ef); border: 1px solid #f3c9dc; font-weight: 600; font-size: .9rem; color: #7a2c55; }
.wc-badge b { color: var(--accent); }
.ps-summary { margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ps-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ps-tile { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; background: #fff; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.ps-tile input { position: absolute; top: 10px; left: 10px; z-index: 1; transform: scale(1.3); }
.ps-tile.on { border-color: var(--pink, #d9488f); box-shadow: 0 0 0 3px #fde3ef; }
.ps-art { display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.ps-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-noart { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--accent); }
.ps-title { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.ps-year { font-size: .75rem; color: var(--muted); }
.ps-admin-row { display: flex; gap: 14px; align-items: flex-start; }
.ps-admin-row .ps-art { width: 140px; flex: none; }
.ps-member { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
@media (max-width: 600px) { .ps-grid { grid-template-columns: repeat(2, 1fr); } .ps-admin-row { flex-direction: column; } .ps-admin-row .ps-art { width: 100%; } }

/* Directory & messages */
.dir-me { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dir-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 12px; }
.dir-card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); margin: 0; }
.dir-card:hover { border-color: var(--accent); }
.dir-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dir-bio { overflow: hidden; }
.dir-profile { display: flex; gap: 20px; align-items: flex-start; }
.dir-profile .headshot { flex: none; border-radius: 12px; font-size: 2.4rem; }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.dir-bio-full { white-space: pre-wrap; }
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-row { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); margin: 0; }
.msg-row.unread { border-left: 4px solid var(--accent); }
.msg-row-main { min-width: 0; flex: 1; }
.msg-snippet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.msg-unread { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .8rem; font-weight: 700; }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-thread { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: #eef0f3; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-body { white-space: pre-wrap; word-wrap: break-word; }
.bubble-time { font-size: .72rem; opacity: .75; margin-top: 2px; }
.msg-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.msg-form textarea { flex: 1; min-height: 48px; margin: 0; }
.sg-report-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sg-thread { margin-top: 10px; background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
@media (max-width: 600px) { .dir-profile { flex-direction: column; align-items: center; text-align: center; } .dir-chips { justify-content: center; } .bubble { max-width: 90%; } }

/* Resources & wording */
.res-show h3.res-kind { margin: 14px 0 6px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; }
.res-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.res-list a > span:last-child { display: flex; flex-direction: column; }
.res-ic { font-size: 1.3rem; width: 28px; text-align: center; color: var(--accent); flex: none; }
.res-help { margin-bottom: 14px; }
.res-table input, .res-table select { min-width: 120px; }
.res-tools { white-space: nowrap; }
.res-tools select { width: auto; display: inline-block; margin-right: 4px; }

/* Committee */
.cm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.cm-tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.cm-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.cm-quick { margin: 0 0 14px; }
.cm-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cm-list { margin: 0; padding-left: 18px; } .cm-list li { margin: 6px 0; }
.cm-done td { color: var(--muted); text-decoration: line-through; }
.cm-done td:first-child, .cm-done td:last-child { text-decoration: none; }
.cm-notes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cm-note { background: #fffdf3; border-color: #f1e3a8; }
.cm-ntitle { font-weight: 700; margin-bottom: 6px; }
.cm-docform summary { cursor: pointer; }
.cm-sheet { background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: 12px; max-width: 820px; }
.cm-sheet .cm-logo { height: 70px; margin-bottom: 10px; }
.cm-sheet table { margin-top: 6px; }
.fp-np { border-left: 4px solid var(--accent); }
@media print { .cm-printbar { display: none !important; } .cm-sheet { border: 0; padding: 0; } }

.auth-links button { white-space: normal; text-align: center; line-height: 1.35; }

/* iPhone: 16px inputs stop Safari zooming in when you tap a field */
@media (max-width: 900px) { input, select, textarea { font-size: 16px; } }
html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; }

/* Friendlier */
/* Bigger tap targets and clearer focus on phones */
@media (max-width: 899px) {
  button, .btn { min-height: 44px; }
  button.small, .btn.small { min-height: 40px; padding: 8px 12px; }
  .nav-item { padding: 12px 10px; min-height: 44px; }
  .bottombar a, .bottombar button { min-height: 56px; }
  label.check { min-height: 44px; }
  input[type=checkbox], input[type=radio] { transform: scale(1.35); margin-top: 4px; }
  .mtop { padding-right: 64px; }
}
:focus-visible { outline: 3px solid rgba(10, 118, 161, .45); outline-offset: 2px; }

/* Larger text and high contrast (Account & sign-in) */
html.big-text { font-size: 18.5px; }
html.big-text .small, html.big-text .hint { font-size: .95rem; }
html.big-text .pill { font-size: .85rem; }
html.high-contrast { --ink: #000; --muted: #34313b; --line: #8d8898; --accent: #005a80; --accent-strong: #003f5c; --bg: #fff; }
html.high-contrast a { text-decoration: underline; }
html.high-contrast .card, html.high-contrast .tile, html.high-contrast .attn, html.high-contrast fieldset { border-width: 2px; box-shadow: none; }
html.high-contrast .pill { border: 1px solid currentColor; }
html.high-contrast input, html.high-contrast select, html.high-contrast textarea { border: 2px solid #4a4652; }
html.high-contrast .nav-item { color: #000; }

/* Help "?" button and popover */
.helpbtn { position: fixed; top: 14px; right: 18px; z-index: 45; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; font-size: 1.15rem; font-weight: 700; background: #fff; color: var(--accent); border: 2px solid #b7d6e4; box-shadow: var(--shadow); }
.helpbtn:hover { background: var(--accent-soft); filter: none; }
body.signed-out .helpbtn { display: none; }
@media (max-width: 899px) { .helpbtn { top: 6px; right: 10px; width: 44px; height: 44px; min-height: 44px; } }
.helppop { position: fixed; top: 62px; right: 18px; z-index: 60; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 20, 40, .18); padding: 14px 16px; }
@media (max-width: 899px) { .helppop { top: 60px; right: 16px; left: 16px; width: auto; } }
.helppop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.helppop-head b { font-size: 1.05rem; }
.helppop ul { margin: 10px 0; padding-left: 20px; } .helppop li { margin: 6px 0; }
.helppop-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .9rem; }
button.linkish { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 600; text-decoration: underline; white-space: normal; text-align: left; }
button.linkish:hover { filter: none; }

/* Feedback link in the menu, and the pop-up */
.side-fb { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); margin: 0 10px 12px; background: none; border: 1px dashed #cfcad6; color: var(--muted); font-weight: 500; font-size: .86rem; justify-content: flex-start; white-space: normal; text-align: left; }
.side-fb:hover { background: var(--accent-soft); color: var(--accent-strong); filter: none; }
.side-fb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(20, 18, 30, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-panel { background: #fff; border-radius: 14px; padding: 20px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.fb-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.fb-msg { white-space: pre-wrap; margin: 10px 0; overflow-wrap: anywhere; }
.fb-top code { overflow-wrap: anywhere; }

/* Instant feedback: saved tick, empty states, loading placeholders */
.saved-tick { display: inline-block; margin-left: 10px; color: var(--good); font-weight: 600; font-size: .9rem; transition: opacity .5s; }
.saved-tick.go { opacity: 0; }
.empty { text-align: center; background: #fff; border: 1px dashed #cfcad6; border-radius: var(--radius); padding: 28px 20px; margin-bottom: 16px; }
.empty b { display: block; font-size: 1.08rem; }
.empty p { color: var(--muted); margin: 6px auto 14px; max-width: 46ch; }
.skel { display: grid; gap: 12px; padding: 4px 0; }
.skel i { display: block; height: 64px; border-radius: var(--radius); background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 50%, #eceef2 75%); background-size: 200% 100%; animation: skel 1.2s infinite linear; }
.skel i.skel-h { height: 30px; width: 45%; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }

/* Home: show week banner, quiet "what's next", install banner */
.sw-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--pink); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(217, 72, 143, .25); }
.sw-banner svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; flex: none; }
.sw-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .sw-banner > span:nth-child(2) span { opacity: .9; font-size: .9rem; }
.nextup.quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nextup.quiet .lbl { color: var(--accent); }
.nextup.quiet b { font-size: 1.05rem; }
.banner.install { background: var(--accent-soft); border-color: #b7d6e4; flex-wrap: nowrap; align-items: flex-start; }
.banner.install img { border-radius: 10px; flex: none; }
.banner.install > div:nth-child(2) { flex: 1; }
@media (max-width: 520px) { .banner.install { flex-wrap: wrap; } .banner.install .actions { width: 100%; } }
#attnmore { margin: 4px 0 8px; }

/* Show week page */
.sw { margin-bottom: 28px; }
.sw-head { background: linear-gradient(135deg, var(--pink), #b8336f); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.sw-head h2 { margin: 2px 0 4px; font-size: 1.4rem; }
.sw-head .lbl { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 700; opacity: .9; }
.sw-calls { list-style: none; margin: 0; padding: 0; }
.sw-calls li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sw-calls li:last-child { border-bottom: 0; }
.sw-when { font-weight: 600; } .sw-when span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 520px) { .sw-calls li { grid-template-columns: 1fr; gap: 2px; } }
.sw-info { white-space: pre-wrap; overflow-wrap: anywhere; }
.sw-bring { margin: 0; padding-left: 20px; } .sw-bring li { margin: 5px 0; }
@media (min-width: 900px) { body:not(.signed-out) main { padding-top: 64px; } }

/* Onboarding & stepped profile */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#cf [hidden], .ob [hidden], .pf-step[hidden] { display: none !important; }
.ob { max-width: 560px; margin: 0 auto; }
.ob-top { margin-bottom: 18px; }
.ob-steps { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.ob-bar, .pf-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ob-bar i, .pf-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.ob-lead { font-size: 1.05rem; color: var(--muted); margin-top: -4px; }
.ob-card label { display: block; margin-bottom: 12px; }
.ob-card .row label { margin-bottom: 0; }
.ob-card input:not([type=checkbox]), .ob-card select, .ob-card textarea { font-size: 16px; min-height: 46px; }
.ob-card textarea { min-height: 64px; }
.ob-h { font-size: 1.05rem; margin: 18px 0 4px; }
.ob .ob-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.ob .ob-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ob-go { width: 100%; min-height: 52px; font-size: 1.05rem; border-radius: 12px; margin-top: 8px; }
.ob-finish { margin-top: 20px; }
.ob-row { display: flex; gap: 10px; flex-wrap: wrap; } .ob-row .ob-go { flex: 1; width: auto; margin: 0; } .ob-row .ghost { min-height: 52px; border-radius: 12px; }
.ob-choices { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 640px) { .ob-choices { grid-template-columns: 1fr 1fr; } }
.ob-choice { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; min-height: 76px; padding: 14px 18px; border-radius: 14px; background: var(--card); color: var(--ink); border: 2px solid var(--line); text-decoration: none; font-weight: 400; box-shadow: var(--shadow); }
.ob-choice b { font-size: 1.1rem; color: var(--accent-strong); }
.ob-choice span { font-size: .9rem; color: var(--muted); }
.ob-choice:hover { border-color: var(--accent); background: var(--accent-soft); filter: none; }
.ob-choice.ob-alt { border-style: dashed; }
.ob-choice.ob-primary { background: var(--accent); border-color: var(--accent); } .ob-choice.ob-primary b, .ob-choice.ob-primary span { color: #fff; }
.ob-skip { text-align: center; margin-top: 18px; }
.ob-skip button { background: none; border: 0; color: var(--muted); text-decoration: underline; font-weight: 400; padding: 10px; }
.ob-skip button:hover { color: var(--accent); filter: none; }
/* Stepped profile form */
.pf-steps { list-style: none; margin: 4px 0 16px; padding: 0 0 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.pf-steps li { flex: none; position: relative; }
.pf-steps button { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; font-size: .88rem; padding: 7px 12px 7px 8px; border-radius: 99px; gap: 7px; }
.pf-steps button:hover { filter: none; border-color: var(--accent); }
.pf-steps button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.pf-tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-size: .78rem; font-weight: 700; }
.pf-steps button.done .pf-tick { background: var(--good, #1f8a4c); color: #fff; }
.pf-steps button.on .pf-tick { background: var(--accent); color: #fff; }
.pf-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 5; }
@media (max-width: 760px) { .pf-actions { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.pf-actions #pf-next { flex: 1 1 auto; min-height: 46px; }
.pf-later { margin-bottom: 0; }
#cf .pf-step > fieldset { margin-top: 0; }
.pf-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pf-meter .pf-bar { flex: 1 1 90px; max-width: 180px; }
.pf-meter.full .pf-bar i { background: var(--good, #1f8a4c); }
.tile .fp-finish { margin-top: 8px; }

/* ==== Cast-ready update: auditions page, adverts, bios, holding page, imports ==== */
.apply-banner { background: var(--accent); box-shadow: 0 6px 18px rgba(10, 118, 161, .25); }
.ap-highlight { border: 2px solid var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); scroll-margin-top: 80px; }
.hold-card { border-left: 4px solid var(--accent); }
.hold-card p { margin: 8px 0 0; }

/* Audition advert card (public page and admin preview) */
.ad-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 0 0 20px; }
.ad-poster { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #0c0c12; }
.ad-body { padding: 20px 22px 24px; }
.ad-body h2 { font-size: 1.6rem; margin: 2px 0 4px; }
.ad-body h3 { margin-top: 22px; }
.ad-kicker { display: inline-block; background: var(--pink); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ad-who { color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.ad-blurb p { font-size: 1.05rem; margin: 0 0 8px; }
.ad-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.ad-facts div { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.ad-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-strong); font-weight: 700; }
.ad-facts dd { margin: 2px 0 0; font-weight: 600; }
.ad-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ad-info p { margin: 0 0 8px; }
.ad-slots { margin: 0 0 4px; padding-left: 20px; }
.ad-steps { padding-left: 22px; } .ad-steps li { margin-bottom: 6px; }
.ad-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.ad-cta .btn { font-size: 1.1rem; padding: 12px 28px; }
.ad-preview { border: 2px dashed var(--line); border-radius: var(--radius); padding: 10px; background: var(--bg); }
.ad-thumb { max-width: 180px; max-height: 180px; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; }
.ad-extras { margin: 6px 0; padding-left: 18px; }
.ad-share { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.ad-linkrow { display: flex; gap: 8px; } .ad-linkrow input { flex: 1; min-width: 0; }
.ad-qr { text-align: center; } .ad-qrimg { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.ad-tips ul { padding-left: 18px; } .ad-tips li { margin-bottom: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
@media (max-width: 700px) { .ad-share { grid-template-columns: 1fr; } .ad-body { padding: 16px; } .ad-body h2 { font-size: 1.35rem; } }

/* Public auditions page (no sign-in) */
body.public-page { background: var(--bg); }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pub-brand img { height: 44px; width: auto; display: block; }
.pub-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 30px; }
.pub-intro h1 { font-size: 2rem; margin-bottom: 6px; } .pub-intro p { color: var(--muted); margin-top: 0; }
.pub-more, .pub-share { text-align: center; }
.pub-help { margin-top: 18px; }

/* Cast bios */
.bio-rules p { margin: 0; }
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bio-card { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.bio-card .headshot { width: 88px; height: 110px; object-fit: cover; border-radius: 8px; flex: none; }
.bio-body { flex: 1; min-width: 0; }
.bio-text { white-space: pre-line; margin: 6px 0 0; font-size: .95rem; }
@media print {
  .bio-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bio-card { break-inside: avoid; border: 1px solid #ddd; }
  .tabs, .bio-rules { display: none !important; }
}

/* Imports */
.ss-import { border-left: 4px solid var(--pink); }
.im-map { margin: 8px 0; }

/* ======================================================================
   Look & feel refresh: colour fades, show artwork, gentle motion
   ====================================================================== */
:root { --grad: linear-gradient(120deg, #0a76a1 0%, #088abb 45%, #d9488f 100%); --grad-soft: linear-gradient(120deg, #e7f3f9 0%, #fcebf3 100%); --gold: #e3a21a; --purple: #6c4ab6; }
body { background: radial-gradient(1200px 500px at 100% -10%, #fcebf3 0%, transparent 60%), radial-gradient(900px 400px at -10% 0%, #e7f3f9 0%, transparent 60%), var(--bg); background-attachment: fixed; }
main button:not([class]), button.small:not(.ghost):not(.danger):not(.react), button.wide, .btn:not(.ghost):not(.danger) { background: var(--grad); border-color: transparent; background-size: 160% 100%; background-position: 0 0; transition: background-position .35s, transform .12s, box-shadow .2s; }
main button:not([class]):hover, button.small:not(.ghost):not(.danger):not(.react):hover, button.wide:hover, .btn:not(.ghost):not(.danger):hover { background-position: 100% 0; box-shadow: 0 6px 16px rgba(217, 72, 143, .25); }
button:active, .btn:active { transform: translateY(1px); }
.card, .tile, .show-card { transition: box-shadow .2s, transform .2s; }
a.tile:hover, .show-card:hover, .ev-card:hover, .shop-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 20, 60, .10); }

/* Pages fade in */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#main > * { animation: rise .35s ease both; }
#main > *:nth-child(2) { animation-delay: .04s; } #main > *:nth-child(3) { animation-delay: .08s; } #main > *:nth-child(4) { animation-delay: .12s; } #main > *:nth-child(5) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { #main > *, .burst { animation: none !important; } * { transition: none !important; } }

/* Home greeting: gradient banner with the logo as a watermark */
.dash-head { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 18px; padding: 26px 24px; box-shadow: 0 12px 30px rgba(10, 118, 161, .22); align-items: center; }
.dash-head::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 260px; height: 160px; background: url(../img/wc-logo.png) no-repeat center / contain; opacity: .14; filter: brightness(0) invert(1); pointer-events: none; }
.dash-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 160px at 15% 0%, rgba(255, 255, 255, .25), transparent 70%); pointer-events: none; }
.dash-head h1 { color: #fff; font-size: 1.9rem; } .dash-head .dash-date { color: rgba(255, 255, 255, .85); }
.dash-head .btn { background: #fff !important; color: var(--accent-strong); position: relative; z-index: 1; }

/* Page heroes for the fun pages */
.page-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 18px; padding: 24px; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(10, 118, 161, .18); }
.page-hero h1 { color: #fff; margin: 0 0 4px; font-size: 1.8rem; } .page-hero p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 560px; }
.page-hero::after { position: absolute; right: 18px; bottom: -14px; font-size: 6rem; opacity: .22; pointer-events: none; }
.hero-socials { background: linear-gradient(120deg, #6c4ab6, #d9488f); } .hero-socials::after { content: '🎉'; }
.hero-shop { background: linear-gradient(120deg, #0a76a1, #6c4ab6); } .hero-shop::after { content: '👕'; }
.hero-talk { background: linear-gradient(120deg, #088abb, #1d7a46); } .hero-talk::after { content: '💬'; }
.hero-feedback { background: linear-gradient(120deg, #d9488f, #e3a21a); } .hero-feedback::after { content: '⭐'; }
.page-hero .btn.ghost { background: rgba(255, 255, 255, .92); border-color: transparent; position: relative; z-index: 1; }

/* Show cards with artwork */
.show-card { overflow: hidden; padding: 0; } .show-card > *:not(.show-art) { margin-left: 18px; margin-right: 18px; } .show-card h3 { margin-top: 14px; } .show-card .show-links { margin-bottom: 16px; }
.show-art { display: block; width: 100%; height: 140px; object-fit: cover; }
.show-noart { height: 70px; background: var(--grad); position: relative; } .show-noart::after { content: '🎭'; position: absolute; right: 14px; top: 12px; font-size: 2.2rem; opacity: .6; }

/* Sidebar: gradient accent */
.side-brand { background: linear-gradient(180deg, #fff, #fbf6fa); }
.nav-item.on, .nav-item[aria-current="page"] { background: var(--grad-soft); color: var(--accent-strong); }

/* Sign-in: stage spotlight */
body.signed-out { background: radial-gradient(700px 420px at 50% -5%, rgba(255, 255, 255, .95), transparent 70%), linear-gradient(160deg, #0a76a1 0%, #6c4ab6 55%, #d9488f 100%); background-attachment: fixed; }
body.signed-out .foot, body.signed-out .foot a { color: rgba(255, 255, 255, .85); }
.auth-card { box-shadow: 0 24px 60px rgba(20, 10, 60, .35); border: 0; }

/* Announcements */
.news-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 18px; }
.news-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--nc, var(--accent)); display: flex; flex-direction: column; }
.news-blue { --nc: #0a76a1; --ns: #e7f3f9; } .news-pink { --nc: #d9488f; --ns: #fcebf3; } .news-gold { --nc: #e3a21a; --ns: #fdf3dc; } .news-green { --nc: #1d7a46; --ns: #e5f4eb; } .news-purple { --nc: #6c4ab6; --ns: #efe9fa; }
.news-emoji { font-size: 3.2rem; text-align: center; padding: 14px 0 0; background: linear-gradient(180deg, var(--ns), #fff); }
.news-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.news-body { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-body h3 { margin: 0; font-size: 1.15rem; } .news-text { white-space: pre-line; margin: 0; }
.news-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .news-pin { color: var(--nc); font-weight: 700; }
.news-edit { padding: 0 16px 12px; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.react { background: var(--ns, #f4f6f9); border: 1px solid transparent; color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 1rem; font-weight: 600; transition: transform .12s; }
.react span { font-size: .8rem; margin-left: 4px; } .react:hover { transform: scale(1.12); } .react.on { border-color: var(--nc); background: #fff; }
.burst { position: fixed; z-index: 99; pointer-events: none; font-size: 1.4rem; animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }
.poll { display: flex; flex-direction: column; gap: 6px; background: var(--ns); border-radius: 12px; padding: 10px; }
.poll-opt { position: relative; overflow: hidden; justify-content: space-between; background: #fff; color: var(--ink); border: 1px solid var(--line); text-align: left; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: var(--ns); filter: saturate(1.6); transition: width .5s; }
.poll-opt span, .poll-opt b { position: relative; } .poll-opt.mine { border-color: var(--nc); } .poll-opt:hover { border-color: var(--nc); }
.news-compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.emoji-pick, .colour-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick label, .colour-pick label { margin: 0; cursor: pointer; } .emoji-pick input, .colour-pick input { position: absolute; opacity: 0; }
.emoji-pick span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--line); font-size: 1.4rem; background: #fff; }
.emoji-pick input:checked + span, .colour-pick input:checked + span { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.colour-pick .sw { display: inline-block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--nc); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 800px) { .news-compose { grid-template-columns: 1fr; } }

/* Socials & workshops */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ev-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ev-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.ev-noimg { display: flex; align-items: flex-end; padding: 12px 16px; color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.ev-noimg.ev-social { background: linear-gradient(120deg, #6c4ab6, #d9488f); } .ev-noimg.ev-workshop { background: linear-gradient(120deg, #0a76a1, #1d7a46); }
.ev-body { padding: 14px 16px 16px; } .ev-body h2 { margin: 6px 0 4px; font-size: 1.2rem; }
.ev-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; color: #fff; }
.ev-tag.ev-social { background: var(--pink); } .ev-tag.ev-workshop { background: var(--accent); }
.ev-when { font-weight: 600; margin: 0 0 6px; } .ev-desc { white-space: pre-line; }
.ev-people { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ev-person { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 6px 8px 6px 12px; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shop-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.shop-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--grad-soft); }
.shop-noimg { display: flex; align-items: center; justify-content: center; } .shop-noimg img { width: 60%; opacity: .5; }
.shop-body { padding: 12px 14px 14px; } .shop-body h3 { margin: 0; } .shop-price { font-weight: 800; color: var(--pink); font-size: 1.15rem; margin: 2px 0 6px; }
.shop-add label { margin-bottom: 6px; } .wide { width: 100%; }
.basket { position: sticky; top: 16px; border-top: 6px solid var(--pink); }
.basket-lines { list-style: none; padding: 0; margin: 0 0 10px; } .basket-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.basket-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 6px 0 12px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mo-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .mo-lines { margin: 6px 0; padding-left: 18px; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .basket { position: static; } }

/* Invoices and printed forms */
.inv-head { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid; border-image: var(--grad) 1; padding-bottom: 12px; margin-bottom: 14px; }
.inv-head img { height: 56px; width: auto; } .inv-head h1 { margin: 0; }
.inv-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; } .inv-table th, .inv-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-total td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--ink); }
.inv-pay { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
@media print { .no-print, .page-hero .btn { display: none !important; } .invoice, .supplier-form { box-shadow: none; border: 0; } #main > * { animation: none; } }

/* Declarations, approvals, holding pages */
.decl-q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.decl-q legend { font-weight: 500; display: flex; gap: 10px; padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.decl-q > *:not(legend) { clear: both; }
.decl-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.decl-yn { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-radio { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; margin: 0; font-weight: 600; }
.chip-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.decl-intro { border-left: 4px solid var(--accent); }
.hold-big { text-align: center; padding: 34px 24px; max-width: 620px; margin: 20px auto; }
.big-emoji { font-size: 4rem; animation: rise .5s ease both; }
.appr-card { border-left: 4px solid var(--gold); } .decl-review { border-left: 4px solid var(--bad); }

/* Talk to the committee and feedback */
.meet-banner { display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--green, #1d7a46); }
.meet-cal { flex: none; width: 58px; text-align: center; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); font-size: .75rem; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.meet-cal b { display: block; background: var(--pink); color: #fff; font-size: 1.4rem; padding: 2px 0; }
.talk-reply { background: var(--good-soft); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.stars { display: flex; align-items: center; gap: 2px; } .stars button { background: none !important; border: 0; color: #d6d2dc; font-size: 2rem; padding: 0 2px; box-shadow: none !important; }
.stars button.on { color: var(--gold); } .stars button:hover { transform: scale(1.15); } .stars-label { margin-left: 8px; }
.stars-q { border: 0; padding: 0; margin: 0 0 10px; } .stars-q legend { font-weight: 600; padding: 0; }
.rbar { display: inline-block; width: 140px; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; vertical-align: middle; } .rbar i { display: block; height: 100%; background: var(--grad); }
.fb-table td { padding: 4px 10px 4px 0; } .quotes { padding-left: 0; list-style: none; } .quotes li { background: var(--bg); border-left: 3px solid var(--pink); padding: 8px 12px; border-radius: 0 10px 10px 0; margin-bottom: 6px; }
.ask-members { border-left: 4px solid var(--pink); }

/* Extras: lost property, volunteers, costume returns */
.hero-lost { background: linear-gradient(120deg, #e3a21a, #d9488f); } .hero-lost::after { content: '🧦'; }
.hero-vol { background: linear-gradient(120deg, #1d7a46, #088abb); } .hero-vol::after { content: '🙌'; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lp-card { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.lp-noimg { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--grad-soft); }
.vol-list { display: flex; flex-direction: column; gap: 10px; }
.vol-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0; }
.vol-card.mine { border-left: 4px solid var(--good); }
.vol-main { display: flex; gap: 14px; align-items: flex-start; }
.vol-date { flex: none; width: 54px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: .75rem; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.vol-date b { display: block; background: var(--grad); color: #fff; font-size: 1.35rem; padding: 2px 0; }
.vol-dots { display: flex; align-items: center; gap: 4px; margin-top: 6px; } .vol-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); } .vol-dots i.on { background: var(--good); }
.vol-who { flex-basis: 100%; border-top: 1px dashed var(--line); padding-top: 6px; }
.cr-family { border-left: 4px solid var(--gold); } .cr-family ul { margin: 0; padding-left: 18px; }

/* Cast tools */
.hero-part { background: linear-gradient(120deg, #d9488f, #6c4ab6); } .hero-part::after { content: '🌟'; }
.hero-notes { background: linear-gradient(120deg, #0a76a1, #6c4ab6); } .hero-notes::after { content: '📝'; }
.hero-photos { background: linear-gradient(120deg, #6c4ab6, #0a76a1); } .hero-photos::after { content: '📸'; }
.part-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .part-head h2 { margin: 6px 0 8px; }
.part-role { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.part-count { text-align: center; background: var(--grad-soft); border-radius: 12px; padding: 6px 12px; } .part-count b { display: block; font-size: 1.5rem; } .part-count span { font-size: .75rem; color: var(--muted); }
.note-body { white-space: pre-line; } .note-card { border-left: 4px solid var(--accent); }
.rn-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; margin-top: 10px; }
.ci-list { display: flex; flex-direction: column; gap: 10px; text-align: left; margin: 14px 0; }
.ci-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 12px 14px; flex-wrap: wrap; }
.ci-row button { font-size: 1.05rem; padding: 12px 20px; }
.arr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.arr { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; white-space: normal; }
.arr b { font-size: 1.3rem; color: var(--accent); } .arr i { font-style: normal; font-size: .8rem; color: var(--muted); }
.arr.here { border-color: var(--good); background: var(--good-soft); } .arr.here i { color: var(--good); font-weight: 700; }
.ci-qrcard { text-align: center; } .ci-qr { width: 320px; max-width: 100%; height: auto; image-rendering: pixelated; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gal-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--grad-soft); box-shadow: var(--shadow); text-decoration: none; color: #fff; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .gal-tile:hover img { transform: scale(1.05); }
.gal-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gal-cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: flex; flex-direction: column; } .gal-cap span { font-size: .8rem; opacity: .9; }
.gal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gal-photo { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); } .gal-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.gal-photo figcaption { padding: 6px; display: flex; gap: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 20, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; } .lightbox button { position: absolute; top: 14px; right: 14px; font-size: 1.6rem; background: #fff; }
.gal-admin { border-left: 4px solid var(--pink); }
@media print { .ci-qrcard .actions { display: none; } }
.si-confirm { border-left: 4px solid var(--warn); }

/* "Your committee" banner at the bottom of Home */
.cm-banner { margin: 28px 0 8px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(10, 118, 161, .08), rgba(217, 72, 143, .08)); border: 1px solid var(--line); }
.cm-banner h2 { margin: 0 0 4px; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 14px; }
.cm-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border-radius: 14px; padding: 14px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.cm-person .small { min-height: 1.2em; }
.cm-person button { margin-top: 6px; }
.cm-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); margin-bottom: 6px; }
.cm-initials { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; color: #fff; background: var(--grad, var(--accent)); }
@media (max-width: 520px) { .cm-grid { grid-template-columns: repeat(2, 1fr); } .cm-photo { width: 72px; height: 72px; } }
.cm-upload { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1px dashed var(--line); align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--accent); }
.cm-upload img { width: 100%; height: 100%; object-fit: cover; }

/* Character breakdown on the audition advert */
.ad-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.ad-char { background: var(--grad-soft, #f4f6f9); border-radius: 12px; padding: 10px 12px; }
.ad-char b { display: block; color: var(--accent-strong); }
.ad-char p { margin: 4px 0 0; font-size: .92rem; }
.ad-linkrow2 { margin-bottom: 4px; }

/* Application form: characters, dates and questions */
.appq fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.appq legend { font-weight: 600; padding: 0 4px; }
.appq-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 12px; }
.appq-roles .check span .small { display: block; }
.appq-yn { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.req { color: var(--bad, #c0392b); }
.qe-row { padding: 12px; margin-bottom: 8px; }
.qe-row .actions { align-items: center; }
/* Key dates on the audition page */
.ad-keydates { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; }
.ad-keydates li { display: flex; gap: 12px; align-items: baseline; background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; }
.kd-date { font-weight: 700; color: var(--accent-strong); min-width: 120px; }
.kd-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-strong); color: #fff; margin-left: 4px; vertical-align: 1px; }
.kd-tag.kd-leads { background: #8a5a00; }
.appq-agrees .appq-agree { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.appq-agrees .appq-agree input { margin-top: 3px; }
/* Auditions page: "Step 1: finish the profile" */
.fp-first { border-left: 4px solid var(--accent-strong); }
.fp-first-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line, #e5e7eb); }
.fp-first-row:first-of-type { border-top: 0; }
