/* =====================================================================
   Anunga Foundation — admin dashboard
   Standalone stylesheet (does not load the public site's styles.css).
   ===================================================================== */
:root {
  --navy-950: #020d1c; --navy-900: #061a36; --navy-800: #0b2a55;
  --primary: #ce1126; --primary-dark: #a90d1f;
  --accent: #007a5e; --accent-dark: #005f49;
  --yellow: #fec202; --green: #007a5e; --red: #ce1126;
  --tricolor: linear-gradient(90deg, var(--green) 0 33.34%, var(--red) 33.34% 66.67%, var(--yellow) 66.67% 100%);
  --white: #fff; --paper: #f6f7fb; --paper-2: #eceff5;
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6475; --line: #e2e6ee;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 8px 24px -12px rgba(2, 13, 28, 0.35);
  --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 15px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.02em; color: var(--navy-950); }
h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 12px; }
code { font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
.kicker { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; color: var(--accent); margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, border-color .2s;
}
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px -10px rgba(206,17,38,.6); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--ghost.btn--dark { color: var(--navy-950); border-color: rgba(2,13,28,0.25); }
.btn--ghost.btn--dark:hover { background: rgba(2,13,28,0.06); }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); background: var(--navy-950); color: var(--white); min-height: 64px;
}
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tricolor); }
.bar__brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; }
.bar__brand img { width: 42px; height: 42px; object-fit: contain; }
.bar__brand em { font-style: normal; color: var(--yellow); margin-left: 6px; }
.bar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.bar__user { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--white); cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; }
.bar__caret { width: 14px; height: 14px; fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu { position: relative; }
.menu.is-open .bar__user, .menu.is-open .bell { background: rgba(255,255,255,0.14); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(2,13,28,0.45); padding: 8px; z-index: 30; text-align: left; }
.menu__panel--wide { width: min(400px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.menu__who { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__who strong { font-size: 0.98rem; }
.menu__who span { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.menu__who .badge { justify-self: start; margin-top: 4px; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 9px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; }
.menu__item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.menu__item:hover { background: var(--paper-2); color: var(--navy-950); }
.menu__item--danger { color: #9f1239; }
.menu__item--danger:hover { background: #fff1f2; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.menu__empty { margin: 0; padding: 18px 14px; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--white); cursor: pointer; }
.bell:hover { background: rgba(255,255,255,0.1); }
.bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--navy-950); }
.notes { list-style: none; margin: 0; padding: 6px; max-height: min(420px, 60vh); overflow: auto; display: grid; gap: 2px; }
.notes__item a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.notes__item a:hover { background: var(--paper-2); }
.notes__item .navlink__icon { margin-top: 2px; color: var(--muted); }
.notes__item a > span { display: grid; gap: 1px; min-width: 0; }
.notes__item small { color: var(--muted); font-size: 0.78rem; }
.notes__item.is-new .notes__text { font-weight: 600; }
.notes__item.is-new a { background: #fffbea; }
.notes__item.is-new a:hover { background: #fff3c4; }
.bar__user:hover { background: rgba(255,255,255,0.1); }
.bar__user-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--navy-950); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; flex: none; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.3rem; }
.bar__menu { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.bar__menu span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Sign in ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px var(--gutter); }
.auth__card { width: min(100%, 460px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.auth__lead { color: var(--muted); margin: 8px 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span, .field > label { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.field input, .field select, .search input, .status select {
  font: inherit; padding: 11px 13px; border: 1px solid #cfd5e1; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .search input:focus, .status select:focus { outline: 2px solid rgba(0,122,94,0.35); border-color: var(--accent); }
.auth__error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.auth__setup { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth__setup h2 { color: var(--navy-950); margin-bottom: 8px; }
.auth__setup ol { padding-left: 20px; margin: 0 0 16px; color: var(--ink-2); }
.auth__setup li { margin-bottom: 4px; }

/* ---------- Back office layout ---------- */
.admin { width: 100%; }
.admin .auth { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; min-height: calc(100vh - 67px); }
/* ===== sidebar: dark, full height, Cameroon stripe on its edge ===== */
.sidebar { position: sticky; top: 67px; height: calc(100vh - 67px); overflow-y: auto; scrollbar-width: thin; background: var(--navy-950); color: rgba(255,255,255,0.85); display: flex; flex-direction: column; padding: 18px 14px 16px; }
.sidebar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--green) 0 33.34%, var(--red) 33.34% 66.67%, var(--yellow) 66.67% 100%); }
.sidenav { display: grid; gap: 14px; align-content: start; flex: 1 1 auto; }
.sidenav__group { display: grid; gap: 2px; }
.sidenav__label { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 8px 0 4px 12px; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,0.82); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.navlink__icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.navlink__text { flex: 1; min-width: 0; }
.navlink.is-active .navlink__icon { opacity: 1; }
.navlink:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.navlink.is-active { background: var(--red); color: var(--white); }
.navlink__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); font-size: 0.74rem; text-align: center; font-weight: 700; }
.navlink.is-active .navlink__count { background: var(--yellow); color: var(--navy-950); }
.side__foot { display: grid; gap: 6px; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.side__foot .btn { width: 100%; justify-content: center; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.btn--yellow:hover { background: #ffd23f; border-color: #ffd23f; }
.side__link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,0.8); text-decoration: none; font: inherit; font-weight: 600; font-size: 0.88rem; background: none; border: 0; cursor: pointer; text-align: left; }
.side__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side__link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.side__who { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-align: center; margin: 6px 0 0; overflow-wrap: anywhere; }
.content { min-width: 0; padding: 24px 32px 60px; max-width: 1240px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash__meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.page > * + * { margin-top: 18px; }
.panel--pad { padding: 20px 22px 22px; }
.panel--pad h2 { color: var(--navy-950); margin-bottom: 12px; }
.panel--pad h2.mt { margin-top: 22px; }
.muted { color: var(--muted); }
.btnrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.fact { background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; }
.fact strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--navy-950); }
.fact span { font-size: 0.82rem; color: var(--muted); }
.todo, .activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo a, .activity a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.todo a { font-weight: 600; color: var(--accent-dark); }
.todo a:hover, .activity a:hover { background: var(--paper-2); }
.activity small { color: var(--muted); white-space: nowrap; }
.settings, .profile, .integrations { display: grid; gap: 18px; }
.editor { margin-bottom: 18px; }
.facts--3 { grid-template-columns: repeat(3, 1fr); margin: 10px 0 14px; }
.badge--live { background: #eaf7f1; color: #0b4d3e; }
.badge--draft { background: #fff3cd; color: #6b4b00; }
.badge--done { background: #f3f4f6; color: #4b5563; }
.progress { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 4px 0 10px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.editor__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.editor__check { align-self: center; margin-bottom: 16px; }
.editor .field select, .int__form select { font: inherit; padding: 11px 13px; border: 1px solid #cfd5e1; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%; }
.panel__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel__title h2 { margin: 0; }
.toolbar__select { font: inherit; padding: 8px 32px 8px 12px; border: 1px solid #cfd5e1; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.integration__state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.int__form { margin-top: 12px; }
.inttile.is-off .int__form .field, .inttile.is-off .checks-grid, .inttile.is-off .int__form .integration__lines { opacity: .55; }
.int__form .integration__lines { margin: 4px 0 12px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 12px; margin-top: 4px; }
.checks-grid .check { font-size: 0.85rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd5e1; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid rgba(0,122,94,0.45); outline-offset: 2px; }
/* ===== Settings tabs + integration tiles ===== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab { padding: 10px 14px; border-radius: 10px 10px 0 0; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { background: var(--paper-2); color: var(--navy-950); }
.tab.is-active { color: var(--navy-950); border-bottom-color: var(--primary); }
.settings__form { max-width: 620px; }
.intgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.inttile { padding: 16px 18px 14px; }
.inttile.is-open { grid-column: 1 / -1; }
.inttile.is-off .inttile__status { color: var(--muted); }
.inttile__head { display: flex; align-items: center; gap: 12px; }
.inttile__name { min-width: 0; flex: 1; }
.inttile__name h2 { font-size: 1.05rem; margin: 0; }
.inttile__sub { display: block; font-size: 0.78rem; color: var(--muted); }
.inttile__state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inttile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.inttile__status { min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.inttile__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inttile__warn { color: #9f1239; }
.inttile__body { margin-top: 14px; max-width: 760px; }
.inttile__body .int__form { margin-top: 0; }
.logo { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; color: #fff; font-weight: 800; letter-spacing: -0.02em; font-size: 0.82rem; }
.logo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo--stripe { background: #635bff; font-family: var(--font-body); font-size: 0.86rem; }
.logo--mail { background: var(--navy-800); }
.logo--resend { background: #000; font-size: 1.3rem; }
.logo--recaptcha { background: #fff; color: #1a73e8; border: 1px solid var(--line); }
.logo--ga { background: #fff; color: #e37400; border: 1px solid var(--line); }
.logo--ga svg { fill: currentColor; stroke: none; }
.logo--webhook { background: #c73a63; }
.logo--firebase { background: #ffca28; color: #d84315; }
.logo--firebase svg { fill: currentColor; stroke: none; }
.logo--vercel { background: #000; }
.logo--vercel svg { fill: currentColor; stroke: none; }
/* ===== list tables: names open the details drawer; icon actions ===== */
.page__note { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.page__note:empty { display: none; }
.toolbar > .toolbar__count:first-child { margin-right: auto; }
.linkname { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy-950); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; display: inline; white-space: nowrap; }
.tag { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tag--demo { background: #f3f4f6; color: #6b7280; }
.tag--coupon { margin-left: 0; background: #eef2ff; color: #3730a3; letter-spacing: 0.04em; white-space: nowrap; }
.muted { color: var(--muted); }
td .muted { font-weight: 400; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.btn.btn--danger { color: #9f1239; border-color: #fecdd3; }
.btn.btn--danger:hover { background: #fff1f2; color: #9f1239; }
.linkname:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { border-color: var(--accent); color: var(--accent-dark); }
.iconbtn--danger { color: #9f1239; }
.iconbtn--danger:hover { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.td--actions { white-space: nowrap; min-width: 160px; }
td.td--actions .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table--list td.td--actions .actions { flex-wrap: wrap; max-width: 200px; margin-left: auto; }
.table--list td .sub { overflow-wrap: normal; }
.badge--st-paid, .badge--st-received, .badge--st-thanked { background: #eaf7f1; color: #0b4d3e; }
.badge--st-new { background: #fff3cd; color: #6b4b00; }
.badge--st-duplicate { background: #f3f4f6; color: #4b5563; }
.toolbar__dups { display: inline-flex; align-items: center; gap: 10px; }
.badge--st-refunded, .badge--st-cancelled { background: #f3f4f6; color: #4b5563; }
.badge--st-contacted { background: #eef3ff; color: #1e3a8a; }
.table--list { min-width: 720px; }
.table--rows td, .table--list td { white-space: nowrap; }
.mailer { grid-template-columns: 1fr; max-width: 720px; }
/* ===== details drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(2,13,28,.45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 100%); background: var(--white); box-shadow: -20px 0 50px -20px rgba(2,13,28,.5); overflow: auto; padding: 24px 28px 36px; }
.drawer__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; color: var(--navy-950); margin: 0 0 8px; line-height: 1.05; }
.drawer__title { min-width: 0; }
.drawer__chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.drawer__tools { display: flex; gap: 6px; align-items: center; flex: none; }
.drawer__tools .drawer__actions { display: flex; gap: 6px; margin: 0 6px 0 0; }
.iconbtn.is-on { background: #eaf7f1; border-color: var(--accent); color: var(--accent-dark); }
/* status as a pill-shaped select */
.pill { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; border: 1px solid transparent; padding: 5px 26px 5px 11px; cursor: pointer; background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: #4b5563; }
.pill--paid, .pill--received, .pill--thanked, .pill--replied, .pill--confirmed, .pill--invited { background-color: #eaf7f1; color: #0b4d3e; }
.pill--new { background-color: #fff3cd; color: #6b4b00; }
.pill--refunded, .pill--cancelled, .pill--declined { background-color: #f3f4f6; color: #4b5563; }
/* icon rows: the icon (with a tooltip) stands in for the label */
.irows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.irows__col { display: grid; align-content: start; }
.irows--wide { grid-template-columns: 1fr; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.irow { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; font-size: 0.97rem; color: var(--ink); }
.irow__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #8a94a6; }
.irow__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.irow__val { min-width: 0; overflow-wrap: anywhere; }
.irow__val a { color: var(--accent-dark); }
.irow--alert .irow__icon, .irow--alert .irow__val { color: #9f1239; }
.irow--warn .irow__icon { color: #b45309; }
.irow--msg .irow__val { background: var(--paper); border-radius: 12px; padding: 12px 14px; margin-top: -4px; }
.flags { display: flex; gap: 8px; padding: 10px 0; }
.flag { position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f3f4f6; color: #a3acbb; }
.flag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flag.is-on { background: #eaf7f1; color: var(--accent-dark); }
.flag:not(.is-on)::after { content: ""; position: absolute; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.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; }
.fund { margin: 6px 0 18px; }
.fund__line { margin: 8px 0 0; }
@media (max-width: 640px) { .irows { grid-template-columns: 1fr; } .drawer__panel { padding: 18px 16px 28px; } .drawer__head { flex-direction: column-reverse; } .drawer__tools { align-self: flex-end; } }
.drawer__head .kicker { margin-bottom: 0; }
.drawer__head p { margin: 0; }
.compose { margin-top: 4px; }
.compose textarea { min-height: 240px; resize: vertical; line-height: 1.5; }
.compose input[readonly] { background: var(--paper); color: var(--ink-2); }
.compose__from { margin: 0 0 12px; }
.starters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.remind__facts { margin-bottom: 14px; }
.remind__missing { color: #b45309; font-weight: 600; }
.remind .notice--inset { margin-bottom: 14px; }
/* ===== coupons ===== */
.coupon-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo { border-style: dashed; }
.demo.is-flash { box-shadow: 0 0 0 3px var(--yellow); transition: box-shadow .3s; }
.demo__qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.demo__qr { display: grid; gap: 4px; text-align: center; font-size: 0.82rem; color: var(--ink-2); }
.demo__qr img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.settings { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.integrations { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.profile { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.profile__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile__head h2 { margin: 0 0 4px; }
.profile__head p { margin: 0; }
.integration__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.integration__head h2 { margin: 0; }
.integration__lines { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.92rem; display: grid; gap: 6px; }
.integration__lines li { overflow-wrap: anywhere; }
.field small { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.field textarea { font: inherit; padding: 11px 13px; border: 1px solid #cfd5e1; border-radius: var(--radius-sm); width: 100%; }
.field input:disabled { background: var(--paper); color: var(--muted); }
input[type="checkbox"] { width: auto; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; border: 1px solid; }
.notice--info { background: #eef7f4; border-color: #bfe3d7; color: #0b4d3e; }
.notice--warn { background: #fff8e1; border-color: #ffe08a; color: #6b4b00; }
.notice--error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.notice code { background: rgba(0,0,0,0.06); }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; cursor: pointer; text-align: left; transition: border-color .2s, transform .15s; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.stat:hover, .stat.is-active { border-color: var(--accent); transform: translateY(-2px); }
.stat.is-active::before { background: var(--primary); }
.stat__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--muted); display: block; }
.stat__big { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--navy-950); display: block; margin: 4px 0 2px; }
.stat__small { font-size: 0.8rem; color: var(--muted); display: block; }


.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar h2 { color: var(--navy-950); margin-right: auto; }
.search { position: relative; flex: 1 1 220px; max-width: 360px; }
.search input { padding: 9px 12px; font-size: 0.92rem; }
.toolbar__count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 980px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; color: var(--muted); background: var(--paper); font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fafbfe; }
td .main { display: block; font-weight: 600; color: var(--ink); }
td .sub { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; overflow-wrap: anywhere; }
td a { color: var(--accent-dark); }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.clip { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status select { padding: 6px 28px 6px 10px; font-size: 0.82rem; border-radius: 999px; width: auto; font-weight: 600; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23334155' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.status--new select { background-color: #fff8e1; border-color: #ffe08a; color: #6b4b00; }
.status--contacted select, .status--invited select { background-color: #eef3ff; border-color: #c7d6ff; color: #1e3a8a; }
.status--paid select, .status--received select, .status--replied select, .status--thanked select { background-color: #eaf7f1; border-color: #b7e4cf; color: #0b4d3e; }
.status--cancelled select { background-color: #f3f4f6; border-color: #d1d5db; color: #4b5563; text-decoration: line-through; }

.row-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.row-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
tr.detail td { background: var(--paper); padding: 16px 18px 18px; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-950); font-size: 1.1rem; margin-bottom: 4px; }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } .overview { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .bar__menu { display: flex; }
  .sidebar { display: none; position: fixed; top: 67px; left: 0; bottom: 0; width: min(300px, 86vw); height: auto; z-index: 30; box-shadow: 20px 0 50px -20px rgba(2,13,28,0.6); }
  .sidebar.is-open { display: flex; }
  .content { padding: 16px var(--gutter) 48px; }
  .bar__user-text { display: none; }
  .editor__grid { grid-template-columns: 1fr 1fr; }
  .facts--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat__big { font-size: 1.6rem; }
  .bar__name { display: none; }
  .toolbar h2 { width: 100%; }
  .sidenav { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Setup checklist ---------- */
.setup { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.setup li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.setup li::before { content: "✕"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: #fff1f2; color: #9f1239; }
.setup li.is-done::before { content: "✓"; background: #eaf7f1; color: #0b4d3e; }
.setup code { background: var(--paper-2); }

/* ---------- Sign-in extras ---------- */
.auth__info { background: #eef7f4; border: 1px solid #bfe3d7; color: #0b4d3e; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__links { text-align: center; margin: 14px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
.btn--ghost.btn--dark.btn--block { border-color: rgba(2,13,28,0.25); }

/* ---------- Users panel ---------- */
.user-form { display: grid; grid-template-columns: 1.2fr 1fr 0.7fr 1fr auto; gap: 10px; align-items: end; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.user-form .field { margin: 0; }
.user-form .field > span { font-size: 0.78rem; }
.user-form input, .user-form select { padding: 9px 11px; font-size: 0.9rem; }
.user-form__actions { display: flex; gap: 8px; }
.user-form__hint { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--muted); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--super { background: #fff3cd; color: #6b4b00; }
.badge--admin { background: #eef3ff; color: #1e3a8a; }
.badge--off { background: #f3f4f6; color: #4b5563; }
.badge--builtin { background: #eaf7f1; color: #0b4d3e; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
td .actions .row-toggle[data-danger] { color: #9f1239; border-color: #fecdd3; }
td .actions .row-toggle[data-danger]:hover { background: #fff1f2; }
.role-select select { padding: 6px 28px 6px 10px; font-size: 0.82rem; border-radius: 999px; width: auto; font-weight: 600; }
@media (max-width: 900px) { .user-form { grid-template-columns: 1fr 1fr; } }

/* notices with more than one line; the inline "send test email" link */
.notice__line { margin: 0; }
.notice__line + .notice__line { margin-top: .5rem; }
[data-updated] .linkbtn { font: inherit; color: inherit; text-decoration: underline; }

/* ===== Check-in: shared by the dashboard page and the desk app (one line per player, icons over words) ===== */
[data-color="green"] { --band: #007a5e; } [data-color="yellow"] { --band: #fec202; } [data-color="red"] { --band: #ce1126; }
[data-color="blue"] { --band: #2563eb; } [data-color="orange"] { --band: #f97316; } [data-color="purple"] { --band: #7c3aed; }
[data-color="white"] { --band: #fff; } [data-color="black"] { --band: #0f172a; } [data-color="other"] { --band: #94a3b8; } [data-color="none"] { --band: transparent; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--band, #94a3b8); box-shadow: inset 0 0 0 1px rgba(2,13,28,.12); }
.dot[data-color="none"] { box-shadow: inset 0 0 0 1.5px #94a3b8; }
.dotchip, .minichip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.dotchip { cursor: pointer; }
.dotchip:hover { border-color: var(--accent); }
.dotchip.is-on { border-color: var(--navy-950); box-shadow: inset 0 0 0 1px var(--navy-950); }
.minichip svg, .rflag svg, .checkbtn svg, .cksum__sizes svg, .qrtile__in svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.minichip svg { width: 16px; height: 16px; color: var(--muted); }
.minichip--warn { background: #fff7db; border-color: #ffe08a; color: #6b4b00; }
.minichip--warn svg { color: #6b4b00; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper-2); border-radius: 999px; }
.seg__btn { border: 0; background: transparent; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; }
.seg__btn.is-on { background: var(--white); color: var(--navy-950); box-shadow: 0 1px 3px rgba(2,13,28,.15); }
.roster { list-style: none; margin: 0; padding: 0; }
.roster__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.roster__item:last-child { border-bottom: 0; }
.roster__item.is-in { background: #f3faf6; }
.roster__item.is-in .roster__name { color: var(--muted); }
.roster__band { flex: none; align-self: stretch; width: 6px; margin: -10px 0; background: var(--band); }
.roster__band[data-color="white"] { box-shadow: inset -1px 0 0 var(--line); }
.roster__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.roster__line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.roster__name { display: block; min-width: 0; max-width: 100%; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-950); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.roster__name { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button.roster__name:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.roster__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 18px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.rflag { display: inline-grid; place-items: center; color: var(--muted); }
.rflag svg { width: 16px; height: 16px; }
.rflag--alert { color: #ce1126; }
.rflag--warn { color: #b45309; }
.checkbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px; padding: 0; border-radius: 999px; border: 2px solid #cfd5e1; background: var(--white); color: #94a3b8; cursor: pointer; }
.checkbtn svg { width: 22px; height: 22px; stroke-width: 2.6; }
.checkbtn:hover { border-color: var(--accent); color: var(--accent); }
.checkbtn.is-on { padding: 0 14px 0 12px; background: var(--accent); border-color: var(--accent); color: var(--white); }
.checkbtn.is-on svg { width: 18px; height: 18px; }
.checkbtn span { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.checkbtn:disabled { opacity: .6; cursor: wait; }
/* dashboard Check-in page */
.cksum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px; border-bottom: 1px solid var(--line); }
.cksum__count { flex: 1 1 220px; display: grid; gap: 8px; }
.cksum__count strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--navy-950); letter-spacing: .02em; }
.cksum__count .progress { height: 6px; margin: 0; }
.cksum__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cksum__sizes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-left: 8px; font-size: .82rem; color: var(--muted); }
.cksum__sizes svg { width: 16px; height: 16px; }
.cksum__sizes b { color: var(--navy-950); }
.toolbar__icons { display: flex; gap: 6px; margin-left: auto; }
.iconbtn--go { background: var(--primary); border-color: var(--primary); color: var(--white); }
.iconbtn--go:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.checkin .roster__item { cursor: pointer; }
.checkin .roster__item:hover { background: #fafbfd; }
.checkin .roster__item.is-in:hover { background: #eaf5ef; }
.checkin .roster__item > .iconbtn { flex: none; }
.qrgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px; }
.qrtile { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy-950); text-decoration: none; }
.qrtile:hover { border-color: var(--accent); }
.qrtile.is-in { background: #f3faf6; }
.qrtile img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; }
.qrtile__name { display: flex; align-items: center; gap: 6px; max-width: 100%; font-weight: 600; font-size: .88rem; }
.qrtile__in { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; }
.qrtile__in svg { width: 14px; height: 14px; stroke-width: 3; }
.badge--warn { background: #fff3cd; color: #6b4b00; }
.badge--danger { background: #fde8e8; color: #9b1c1c; }
@media (max-width: 640px) {
  .editor__grid { grid-template-columns: 1fr; }
  .menu__panel { position: fixed; left: 12px; right: 12px; top: 70px; min-width: 0; }
  .cksum__sizes { margin-left: 0; }
  .checkin .toolbar .search { flex-basis: 100%; max-width: none; order: -1; }
}

/* ===== Emails panel ===== */
.notice--inset { margin: 14px 16px 0; }
.mailer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.mailer__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; }
.mailer__card h3 { margin: 0; color: var(--navy-950); }
.mailer__lead { margin: 0 0 4px; font-size: 0.9rem; color: var(--ink-2); }
.mailer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mailer__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mailer__status { margin: 0; font-size: 0.88rem; color: var(--ink-2); min-height: 1.2em; }
.mailer textarea, .mailer input, .mailer select { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.check input { margin-top: 3px; }
@media (max-width: 900px) { .mailer { grid-template-columns: 1fr; } .mailer__row { grid-template-columns: 1fr; } }
.mailer .field { margin-bottom: 0; }
.mailer input[type="checkbox"] { width: auto; }

/* ===== Wristbands ===== */
.band { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 2px solid currentColor; font-family: var(--font-body); vertical-align: middle; }
.band[data-color="green"] { color: #0b4d3e; background: #d5f1e4; }
.band[data-color="yellow"] { color: #6b4b00; background: #fff0b3; }
.band[data-color="red"] { color: #9b1c1c; background: #fde0e0; }
.band[data-color="blue"] { color: #1e3a8a; background: #dbe6ff; }
.band[data-color="orange"] { color: #7c2d12; background: #ffe2c9; }
.band[data-color="purple"] { color: #4c1d95; background: #ede4ff; }
.band[data-color="white"] { color: #334155; background: #fff; }
.band[data-color="black"] { color: #fff; background: #0f172a; border-color: #0f172a; }
.band[data-color="none"] { color: var(--muted); background: var(--paper-2); border-style: dashed; }
.bands { display: grid; gap: 8px; }
.bands__row { display: grid; grid-template-columns: 72px auto 72px 1fr auto; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.bands__row input { font: inherit; padding: 8px 10px; border: 1px solid #cfd5e1; border-radius: 8px; width: 100%; }
.small { font-size: .85rem; }

/* ===== Sponsors (Giving → Sponsors): logo drop box and logo cards ===== */
.logodrop { display: flex; align-items: center; gap: 16px; padding: 14px; margin: 4px 0 16px; border: 1.5px dashed #c7cfdc; border-radius: 14px; background: #fafbfd; transition: border-color .15s, background .15s; }
.logodrop.is-over { border-color: var(--accent); background: #eef8f4; }
/* the logo is sized in pixels: a percentage height inside the box was ignored, so a tall logo spilled out over the form */
.logodrop__preview { flex: none; width: 188px; height: 104px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: #9aa5b8; }
.logodrop__preview img { display: block; width: auto; height: auto; max-width: 158px; max-height: 82px; object-fit: contain; }
.logodrop__preview svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logodrop__text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.logodrop__text strong { color: var(--navy-950); }
.logodrop__text small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.logodrop__pick { position: relative; cursor: pointer; gap: 6px; }
.logodrop__pick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the file field is hidden but still reachable by keyboard; the label opens it (no "No file chosen" tooltip over the form) */
.logodrop__pick input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.logodrop__pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .logodrop { flex-direction: column; align-items: stretch; } .logodrop__preview { width: 100%; } .logodrop__preview img { max-width: 100%; } }
.spgrid { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.spcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.spcard__logo { height: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.spcard__logo img { display: block; max-width: 100%; max-height: 72px; object-fit: contain; }
.spcard__logo.is-big img { max-height: 78px; }
.spcard__noimg { display: grid; gap: 2px; text-align: center; font-weight: 700; color: var(--ink); }
.spcard__noimg small { font-weight: 500; color: var(--muted); }
.spcard__text { flex: 1; display: grid; align-content: start; gap: 2px; padding: 10px 12px 4px; background: #fafbfd; font-size: .88rem; }
.spcard__text strong, .spcard__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spcard__text span { color: var(--muted); font-size: .8rem; }
.spcard__text a { color: var(--accent-dark); }
.spcard__actions { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px 10px; background: #fafbfd; }
.spcard__actions > span { display: inline-flex; gap: 4px; }
.spcard .iconbtn:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--ink-2); }
.logodrop__preview.is-dark, .spcard__logo.is-dark { background: var(--navy-950); border-color: var(--navy-950); }
.logodrop__dark { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.logodrop__dark input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.logodrop__text small.is-warn { color: #9a3412; font-weight: 600; }
.spcard__text .spcard__warn { color: #9a3412; font-weight: 600; white-space: normal; }

/* ===== Player photos (Camp → Player photos): a card per pro, framed 4:5 like the camp page ===== */
.phgroup { padding: 16px 16px 4px; }
.phgroup + .phgroup { border-top: 1px solid var(--line); }
.phgroup__title { margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phgroup__note { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
/* the same card width in every group: five across on a laptop, two on a phone */
.phgrid { list-style: none; margin: 0; padding: 12px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 190px)); gap: 14px; }
.phcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.phcard.is-changed { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 122, 94, .15); }
.phcard__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.phcard__frame:active { cursor: grabbing; }
.phcard__frame:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.phcard__frame.is-over { outline: 3px dashed var(--yellow); outline-offset: -6px; }
.phcard__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.phcard__pos, .phcard__badge { position: absolute; pointer-events: none; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.phcard__pos { left: 10px; top: 10px; padding: 4px 10px; background: var(--primary); color: var(--white); }
.phcard__badge { right: 10px; bottom: 10px; padding: 3px 9px; background: var(--yellow); color: var(--navy-950); }
.phcard__body { flex: 1; display: grid; align-content: start; gap: 6px; padding: 12px; background: #fafbfd; }
.phcard__body strong { color: var(--navy-950); }
.phcard__body small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.phcard__body small.is-warn { color: #9a3412; font-weight: 600; }
.phcard .btnrow { margin-top: 2px; gap: 6px; }
.phcard__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; color: rgba(255, 255, 255, .9); }
.phcard__empty b { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .06em; }
.phcard__empty small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.phcard__frame--shade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3, 15, 32, 0) 45%, rgba(3, 15, 32, .55) 70%, rgba(3, 15, 32, .96) 100%); }
.phcard__frame--shade .phcard__pos, .phcard__frame--shade .phcard__badge { z-index: 1; }

/* Messages → Bulk email */
.bulk { max-width: 860px; }
.bulk__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bulk textarea[name=message] { font-family: inherit; line-height: 1.5; }
.bulk__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.multipick { position: relative; }
.multipick > summary { list-style: none; cursor: pointer; padding: 11px 36px 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multipick > summary::-webkit-details-marker { display: none; }
.multipick[open] > summary { border-color: #0b4d3e; }
.multipick[data-off] { opacity: 0.5; pointer-events: none; }
.multipick__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow: auto; display: grid; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 18, 32, 0.12); }
.multipick__list .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 700px) { .bulk__row, .bulk__row--3 { grid-template-columns: 1fr; } }
.bulk { max-width: 1240px; }
.bulk__compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bulk__editor textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.fmtbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line, #e2e6ee); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f6f7fb; }
.fmtbar__btn { min-width: 34px; height: 30px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: inherit; font-size: 0.85rem; color: #0f172a; cursor: pointer; }
.fmtbar__btn:hover, .fmtbar__btn:focus-visible { background: #fff; border-color: #d6dbe5; }
.mailpreview { border: 1px solid #e2e6ee; border-radius: 12px; overflow: hidden; background: #f6f7fb; font-family: Inter, Helvetica, Arial, sans-serif; color: #0f172a; position: sticky; top: 90px; max-height: 78vh; overflow-y: auto; }
.mailpreview__top { background: #0f172a; color: #fff; padding: 13px 18px; font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.mailpreview__stripe { display: flex; height: 4px; } .mailpreview__stripe span { flex: 1; } .mailpreview__stripe span:nth-child(1) { background: #007a5e; } .mailpreview__stripe span:nth-child(2) { background: #ce1126; } .mailpreview__stripe span:nth-child(3) { background: #fcd116; }
.mailpreview__body { background: #fff; padding: 20px 18px 22px; font-size: 15px; line-height: 1.55; }
.mailpreview__body h1 { margin: 0 0 12px; font-size: 21px; line-height: 1.2; font-family: inherit; text-transform: none; letter-spacing: 0; }
.mailpreview__btn { display: inline-block; background: #ce1126; color: #fff !important; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.mailpreview__foot { margin: 0; padding: 10px 18px; font-size: 12px; color: #64748b; }
@media (max-width: 1100px) { .bulk__compose { grid-template-columns: 1fr; } .mailpreview { position: static; max-height: none; } }
.mailpreview__body h2, .mailpreview__body strong, .mailpreview__body li { font-family: inherit; text-transform: none; letter-spacing: 0; } /* as the email shows them */
.mailpreview__body ul, .mailpreview__body ol { list-style: revert; }
.bulk__test { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2e6ee; }
.bulk__test .field { flex: 0 1 340px; margin: 0; }
