/* SkillsUSA Lead Collection — styles (matches the internal Inventory app look) */
:root {
  --navy: #0B2C5F;
  --navy-2: #163C78;
  --navy-tint: #E8EEF8;
  --red: #C8102E;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --border: #E1E5EC;
  --text: #17223A;
  --muted: #5E6A7D;
  --ok: #17803D;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 30, 60, .06), 0 2px 8px rgba(15, 30, 60, .04);
  --font: "Futura PT", Futura, "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --tabbar-h: 66px;
  --fab-rise: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
  line-height: 1.4;
}
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--navy); margin: 0; font-weight: 600; }
h2 { font-size: 28px; letter-spacing: -.01em; }
.muted { color: var(--muted); margin: 2px 0 0; }
.small { font-size: 14px; }
.mt { margin-top: 14px; }
.grow { flex: 1; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #F1C7CE; }
.btn-ghost-light { background: rgba(0,0,0,.45); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--navy); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 4px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- setup ---------- */
.setup {
  min-height: 100dvh; background: var(--navy);
  border-top: 4px solid var(--red);
  display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b));
}
.setup-inner { width: 100%; max-width: 420px; text-align: center; }
.setup-logo { width: 190px; height: auto; margin: 8px auto 12px; display: block; }
.setup h1 { color: #fff; font-size: 26px; margin-bottom: 24px; font-weight: 500; }
.setup-card { background: #fff; border-radius: var(--radius); padding: 22px; text-align: left; display: grid; gap: 14px; }
.setup-card p { margin: 0; }
.setup-lead { font-size: 17px; }
.setup-step { font-size: 22px; }
.setup-card .event-list { margin: 0; max-height: 46vh; overflow: auto; }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.req { color: var(--red); font-style: normal; }
input, select, textarea {
  font: inherit; font-size: 17px; /* ≥16px prevents iOS zoom */
  color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  min-height: 48px; padding: 10px 12px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6A7D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.invalid { border-color: var(--red) !important; background: #FFF6F7; }
.form-error { color: var(--red); font-size: 15px; margin: 0; }

/* ---------- app shell ---------- */
.app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: #fff;
  border-bottom: 4px solid var(--red);
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar-logo { height: 34px; width: auto; display: block; }
.topbar-divider { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.topbar-title { font-size: 21px; font-weight: 500; }
.event-pill {
  font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,.13); border: 0; border-radius: 999px;
  padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%; cursor: pointer; margin-right: auto;
}
.event-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-chip {
  font: inherit; font-size: 14px; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer;
}
@media (max-width: 520px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .topbar-divider, .topbar-title { display: none; }
  .topbar-logo { height: 30px; }
  .event-pill { font-size: 14px; padding: 7px 12px; }
  .sync-chip { padding: 6px 10px; font-size: 13px; }
}
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; }
.sync-chip.pending .sync-dot { background: #FBBF24; }
.sync-chip.offline .sync-dot { background: #9CA3AF; }
.sync-chip.error .sync-dot { background: #F87171; }

.main { padding: 20px 16px calc(var(--tabbar-h) + var(--safe-b) + 96px); max-width: 980px; margin: 0 auto; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* bottom tab bar (phones / portrait) — same pattern as the Inventory app: raised red action in the middle */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(15, 30, 60, .05);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: var(--safe-b);
}
.tab {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0;
  height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; position: relative;
}
.tab svg { width: 26px; height: 26px; stroke-width: 1.8; }
.tab.active { color: var(--navy); font-weight: 600; }
.tab-center { justify-content: flex-end; padding-bottom: 9px; }
.tab-fab {
  position: absolute; left: 50%; top: calc(-1 * var(--fab-rise)); transform: translateX(-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  border: 4px solid #fff; box-shadow: 0 3px 12px rgba(200, 16, 46, .35);
}
.tab-fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.tab-center:active .tab-fab { transform: translateX(-50%) scale(.96); }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: grid; place-items: center;
}

/* sidebar on iPad landscape / desktop */
@media (min-width: 1000px) {
  .app { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .tabs {
    position: sticky; top: 66px; bottom: auto; align-self: start;
    display: flex; flex-direction: column; gap: 6px;
    background: #fff; border: 0; border-right: 1px solid var(--border);
    padding: 16px 12px; height: calc(100dvh - 66px);
  }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; height: 52px; padding: 0 16px; font-size: 17px; color: var(--text); border-radius: 10px; }
  .tab.active { background: var(--navy); color: #fff; }
  .tab-center { justify-content: flex-start; padding-bottom: 0; }
  .tab-fab { position: static; transform: none; width: 26px; height: 26px; background: none; color: inherit; border: 0; box-shadow: none; }
  .tab-fab svg { width: 24px; height: 24px; stroke-width: 2; }
  .tab-center:active .tab-fab { transform: none; }
  .tab-badge { position: static; margin-left: auto; }
  .main { padding-bottom: 120px; width: 100%; }
}

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card-title { font-size: 19px; margin-bottom: 14px; }
.grid-2, .grid-3 { display: grid; gap: 14px; margin-bottom: 14px; }
.grid-2:last-child, .grid-3:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- capture ---------- */
.capture-actions { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .capture-actions { grid-template-columns: 1fr 1fr; } }
.capture-btn {
  font: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
  padding: 16px 18px; min-height: 76px; box-shadow: var(--shadow);
}
.capture-btn:active { transform: scale(.99); }
.capture-btn[disabled] { background: #E9ECF1; color: #8A94A6; box-shadow: none; cursor: not-allowed; }
.capture-btn[disabled]:active { transform: none; }
.capture-btn[disabled] small { opacity: 1; font-weight: 600; letter-spacing: .02em; }
.capture-btn + .capture-btn { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.capture-btn svg { width: 32px; height: 32px; flex: none; }
.capture-btn strong { display: block; font-size: 18px; font-weight: 600; }
.capture-btn small { display: block; font-size: 14px; opacity: .8; }

.scan-result { border-left: 4px solid var(--navy); }
.scan-result-head { display: flex; justify-content: space-between; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button {
  font: inherit; font-size: 15px; background: var(--navy-tint); color: var(--navy);
  border: 1px solid #CCD8EC; border-radius: 999px; padding: 8px 14px; cursor: pointer; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.raw summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-top: 12px; }
.raw pre { white-space: pre-wrap; word-break: break-all; background: var(--bg); border-radius: 8px; padding: 10px; font-size: 13px; max-height: 220px; overflow: auto; }

.toggle-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle-chips button {
  font: inherit; font-size: 16px; cursor: pointer;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px 10px 12px; min-height: 46px;
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
}
.toggle-chips button::before {
  content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #B8C1D0; flex: none;
}
.toggle-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.toggle-chips button[aria-pressed="true"]::before {
  border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2C5F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}


.save-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 25;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end; padding: 10px 16px calc(10px + var(--fab-rise));
}
.save-bar #btn-save { flex: 1; max-width: 320px; }
@media (min-width: 1000px) { .save-bar { left: 250px; bottom: 0; padding-top: 10px; padding-bottom: calc(10px + var(--safe-b)); } }

/* ---------- leads list ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 7px 8px; box-shadow: var(--shadow); text-align: center; min-width: 0; }
.stat-value { display: block; font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat { display: flex; flex-direction: column-reverse; }
@media (min-width: 640px) {
  .stats { gap: 12px; }
  .stat { padding: 10px 14px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }
}

.list-card { padding: 0; overflow: hidden; }
.list-tools { padding: 14px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chips button {
  font: inherit; font-size: 15px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
.filter-chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
#dept-filter { min-height: 40px; font-size: 16px; padding-top: 6px; padding-bottom: 6px; }
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-row {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.lead-row:last-child { border-bottom: 0; }
.lead-row:active { background: var(--bg); }
.lead-main { flex: 1; min-width: 0; }
.lead-name { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.25; }
.lead-where { font-size: 15px; color: var(--navy); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-topics { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 4px; }
.topic { font-size: 12.5px; line-height: 1.2; background: var(--navy-tint); color: var(--navy); border-radius: 999px; padding: 3px 9px; }
.lead-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.unsynced { font-size: 12px; color: #C26A00; }
.email-tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.email-tag.sent { background: #E3F4E8; color: #17803D; }
.email-tag.scheduled { background: var(--navy-tint); color: var(--navy); }
.email-tag.failed { background: #FDE8EB; color: var(--red); }

/* automatic email notice under the reasons */
.auto-email {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--navy-tint); color: var(--navy); font-size: 15px;
  display: grid; gap: 8px;
}
.auto-email .ae-row { display: flex; gap: 10px; align-items: flex-start; }
.auto-email svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.auto-email .ae-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.auto-email .ae-text small { display: block; color: var(--muted); font-size: 13px; }
.auto-email.sent { background: #E3F4E8; color: #17803D; }
.auto-email.failed { background: #FDE8EB; color: var(--red); }
.auto-email .btn { min-height: 38px; padding: 0 14px; font-size: 14px; justify-self: start; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; margin: 0; }

/* ---------- settings ---------- */
.event-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.event-list button {
  font: inherit; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.event-list button.on { border: 2px solid var(--navy); background: var(--navy-tint); }
.event-list .ev-name { font-weight: 600; color: var(--navy); }
.event-list .ev-meta { font-size: 14px; color: var(--muted); }
.event-list .ev-link, .email-preview-list .ev-link { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; flex: none; }
.email-preview-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.email-preview-list button {
  font: inherit; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.email-preview-list .ev-name { font-weight: 600; color: var(--navy); }
.email-preview-list .ev-meta { font-size: 14px; color: var(--muted); }
.new-event > summary { list-style: none; display: inline-flex; }
.new-event > summary::-webkit-details-marker { display: none; }
.new-event form { display: grid; gap: 14px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.row-gap.end { justify-content: flex-end; }

/* ---------- scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 100; background: #000; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame {
  position: absolute; top: 50%; left: 50%; width: min(70vw, 340px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 20px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border: 3px solid #fff;
}
.scanner-top { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; }
.scanner-hint { position: absolute; left: 0; right: 0; bottom: calc(40px + var(--safe-b)); text-align: center; color: #fff; font-size: 17px; margin: 0; padding: 0 20px; }

/* ---------- busy / toast / sheets ---------- */
.busy { position: fixed; inset: 0; z-index: 110; background: rgba(11,44,95,.55); display: grid; place-items: center; padding: 16px; }
.busy-card { background: #fff; border-radius: var(--radius); padding: 24px; width: min(320px, 100%); text-align: center; }
.busy-card p { margin: 12px 0; }
.spinner { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--navy-tint); border-top-color: var(--navy); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; background: var(--navy-tint); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--navy); transition: width .2s; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 120;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px);
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--red); }

dialog.sheet {
  border: 0; border-radius: 18px; padding: 20px; width: min(460px, calc(100% - 32px));
  box-shadow: 0 20px 60px rgba(0,0,0,.3); font-family: var(--font); color: var(--text);
}
dialog.sheet::backdrop { background: rgba(11,44,95,.45); }
.sheet-title { font-size: 18px; margin: 0 0 14px; word-break: break-word; }
.assign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
dialog.preview-sheet { width: min(700px, calc(100% - 16px)); height: min(88dvh, 1000px); padding: 0; overflow: hidden; }
dialog.preview-sheet[open] { display: flex; flex-direction: column; }
.preview-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.preview-meta { min-width: 0; }
.preview-head .sheet-title { margin: 0; font-weight: 600; color: var(--navy); }
.preview-head .muted { overflow-wrap: anywhere; }
.preview-head .btn { min-height: 40px; flex: none; }
#preview-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.assign-grid button { font: inherit; font-size: 15px; min-height: 46px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; }

/* leads header: keep Export beside the title on phones so the list starts higher */
#view-leads .view-head { flex-wrap: nowrap; align-items: center; margin-bottom: 12px; }
#view-leads .view-head > div { min-width: 0; }
#leads-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { #btn-export { min-height: 42px; padding: 0 14px; font-size: 15px; } }

/* ---------- show cards (picker + settings) ---------- */
.setup-inner:has(#setup-show:not([hidden])) { max-width: 980px; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.show-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.show-card.on { border: 2px solid var(--navy); box-shadow: 0 0 0 3px var(--navy-tint), var(--shadow); }
.show-card.past { opacity: .72; }
.show-card-pick { font: inherit; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: inherit; }
.show-card-pick:active { transform: scale(.99); }
.show-card-img { aspect-ratio: 16 / 9; width: 100%; background: var(--navy-tint); overflow: hidden; display: grid; place-items: center; }
.show-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card-img.blank { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #3A1530 100%); position: relative; }
.show-card-img.blank::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); }
.show-card-img img.show-card-logo { width: 42%; height: auto; object-fit: contain; opacity: .95; }
.show-card-body { display: grid; gap: 2px; padding: 12px 14px 12px; }
.show-card-name { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.show-card-meta { font-size: 14px; color: var(--muted); }
.show-card-status { display: block; padding: 9px 12px; font-size: 15px; font-weight: 500; background: #F1F3F7; color: var(--muted); }
.show-card-status.live { background: #E3F4E8; color: var(--ok); }
.show-card-status.soon { background: var(--navy-tint); color: var(--navy-2); }
.show-card-edit {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 18px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); display: grid; place-items: center;
}
.new-show-btn { justify-self: start; }
.setup-card .show-grid { max-height: 62vh; overflow: auto; padding: 3px; margin: 0; }

dialog.show-sheet { width: min(520px, calc(100% - 16px)); max-height: 92dvh; }
.show-image-pick { display: grid; gap: 8px; }
.show-image-pick .show-card-img { border-radius: 10px; border: 1px solid var(--border); }
.show-image-pick .row-gap { margin-top: 0; }
.show-image-pick .btn { min-height: 40px; }
