:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #5d6675;
  --line: #e2e5ea;
  --accent: #1f5fbf;
  --accent-dark: #174a96;
  --bad: #b3261e;
  --bad-bg: #fbe3e1;
  --missing: #f4b6b6;
  --ok-bg: #e3f4e6;
  --info-bg: #e5eefb;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
code { background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 4px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #12161f; color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar .brand { font-weight: 700; font-size: 1.05rem; }
.topbar nav a { margin-left: 18px; opacity: .85; }
.topbar nav a:hover { opacity: 1; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px;
}
.card.narrow { max-width: 420px; margin: 40px auto; }
.card-error { border-color: var(--missing); background: #fff7f6; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.bad { color: var(--bad); }

.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-success { background: var(--ok-bg); color: #1e6b2e; }
.flash-info { background: var(--info-bg); color: #1c3f7a; }

.btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--accent); }
.btn-secondary:hover { background: var(--info-bg); color: var(--accent-dark); }
.btn-small { padding: 4px 10px; font-size: .85rem; }

/* ---------- upload ---------- */
.upload-card { max-width: 720px; margin: 30px auto; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 18px; padding: 48px 20px; text-align: center; cursor: pointer;
  border: 2px dashed #b8c0cc; border-radius: var(--radius); background: #fafbfc;
  transition: border-color .15s, background .15s;
}
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); }
.dropzone.dragover { border-color: var(--accent); background: var(--info-bg); }
.dropzone.busy { pointer-events: none; opacity: .6; }
.drop-icon { font-size: 2rem; color: var(--accent); }
.dropzone strong { font-size: 1.1rem; }
.hint { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.status { margin-top: 14px; font-weight: 600; color: var(--accent); }

/* ---------- results ---------- */
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-bad { border-color: var(--missing); background: #fff7f6; }
.stat-bad .stat-value { color: var(--bad); }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.warnings { margin-top: 14px; }
.warnings summary { cursor: pointer; color: var(--muted); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1250px) { .workspace { grid-template-columns: 1fr; } .preview-card { position: static; } }

.preview-card { position: sticky; top: 16px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.preview-head h2 { margin: 0; }
#preview-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #eee; }

.table-actions { margin-bottom: 6px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.data td.check, table.data th.check { width: 34px; }
table.data input[type=checkbox] { width: 17px; height: 17px; }
tr.row-missing td { background: #fff1f0; }
tr.selected td { background: var(--info-bg); }
tr.row-missing.selected td { background: #fde4e2; }
.ferret-list { list-style: none; margin: 0; padding: 0; }
.ferret-list li { display: flex; gap: 8px; margin: 2px 0; }
.num { flex: 0 0 4.2em; font-weight: 700; font-variant-numeric: tabular-nums; }
.num-missing { background: var(--missing); color: var(--bad); border-radius: 4px; padding: 0 4px; font-size: .72rem; align-self: flex-start; text-align: center; }
.status-cell { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.status-sent, .status-saved { color: #1e6b2e; }
.status-failed { color: var(--bad); }
table.data td.actions { width: 1%; }
table.data td.actions { white-space: nowrap; }
.action-stack { display: flex; flex-direction: column; gap: 6px; }
.action-stack .btn { text-align: center; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }

.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-actions p { margin: 0; flex-basis: 100%; }
.preview-empty { display: flex; align-items: center; justify-content: center; text-align: center; height: 40vh;
  border: 1px dashed var(--line); border-radius: 8px; padding: 20px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 0 0 20px; }
.tab {
  font: inherit; font-weight: 600; color: var(--muted); background: none; cursor: pointer;
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 18px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; font-size: .78rem;
  font-weight: 600; background: var(--line); color: var(--muted); text-align: center; }
.tab.active .count, .subtab.active .count { background: var(--accent); color: #fff; }

.subtab-group { display: flex; gap: 12px; align-items: baseline; margin: 14px 0 0; }
.subtab-group-label { flex: 0 0 120px; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.subtab {
  font: inherit; font-size: .9rem; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.subtab:hover { border-color: var(--accent); }
.subtab.active { border-color: var(--accent); background: var(--info-bg); color: var(--accent-dark); font-weight: 600; }
.class-panel { margin-top: 20px; }
@media (max-width: 700px) { .subtab-group { flex-direction: column; gap: 6px; } .subtab-group-label { flex: none; } }

/* ---------- class sheet (same layout as the entries PDF) ---------- */
.sheet { max-width: 900px; margin: 0 auto; padding: 28px 32px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: .85rem; color: #000; }
.sheet h1 { text-align: center; font-size: 1.7rem; }
.sheet .sub { text-align: center; color: #555; margin: 0 0 16px; }
.sheet .empty { text-align: center; color: #555; }
/* where the PDF starts a new page for the females */
.sheet .gender-break { margin: 28px -32px 20px; padding: 24px 32px 0; border-top: 2px dashed var(--line); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet td { padding: 3px 5px; vertical-align: top; }
.sheet .lbl { font-weight: 700; }
.sheet table.ferret { margin-bottom: 12px; }
.sheet table.ferret tr.bar td { background: #000; color: #fff; font-weight: 700; }
.sheet table.ferret.missing { background: #F4B6B6; }
.sheet table.ferret.missing tr.bar td { background: #C00000; }

/* ---------- previous uploads ---------- */
.history-card { max-width: 1100px; margin: 0 auto 20px; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }
.btn-danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
table.history td:first-child a { color: var(--accent); text-decoration: none; word-break: break-word; }
table.history td:first-child a:hover { text-decoration: underline; }
table.history th, table.history td:not(:first-child) { white-space: nowrap; }

/* ---------- edit owner ---------- */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.owner-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 700px; margin-top: 12px; }
.field-grid label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.field-grid input, .field-grid select, .new-class {
  font: inherit; font-size: .95rem; color: var(--text); padding: 6px 8px; border: 1px solid #cfd5dd; border-radius: 6px; background: #fff;
}
.field-grid input:focus, .field-grid select:focus, .new-class:focus { outline: 2px solid var(--info-bg); border-color: var(--accent); }
.ferret-edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; margin: 0 0 16px; }
.ferret-edit legend { display: flex; gap: 8px; align-items: center; padding: 0 6px; font-weight: 700; }
.ferret-edit legend .num { flex: none; }
.ferret-edit.removed { opacity: .5; background: #fafafa; }
.ferret-edit.removed .field-grid, .ferret-edit.removed .entries-edit { pointer-events: none; }
.ferret-edit.removed .ferret-title { text-decoration: line-through; }
.entries-edit { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.entries-edit > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.entries-label { flex: 0 0 130px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.check-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .88rem; cursor: pointer; background: #fff; }
.check-pill:has(input:checked) { border-color: var(--accent); background: var(--info-bg); color: var(--accent-dark); }
.new-class { font-size: .88rem; padding: 3px 10px; border-radius: 999px; width: 200px; }
.remove-toggle { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .85rem; color: var(--bad); cursor: pointer; }
.save-bar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); z-index: 2; }
.danger-zone { border-color: var(--missing); margin-top: 30px; }
.status-stale { color: #9a5b00 !important; font-weight: 600; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.title-row h2 { margin: 0; }
.show-fields { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.file-name { overflow-wrap: anywhere; word-break: normal; }
.narrow-wide { max-width: 720px; }
.save-bar.plain { position: static; border: 0; background: none; padding-bottom: 0; }
a { color: var(--accent); }

/* ---------- show name already used ---------- */
.replace-card { max-width: 820px; margin: 30px auto; }
table.compare { margin: 16px 0; }
table.compare tbody th { width: 30%; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.choices { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 18px; }
.choices form { margin: 0; }
.rename-choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.rename-choice label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.rename-choice input { font: inherit; padding: 7px 10px; border: 1px solid #cfd5dd; border-radius: 8px; min-width: 280px; }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); }
.btn-danger-solid:hover { background: #8f1e17; border-color: #8f1e17; }

/* ---------- login / users ---------- */
.inline-form { display: inline; margin: 0 0 0 18px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #fff; opacity: .85; cursor: pointer; }
.link-button:hover { opacity: 1; }
.topbar nav { display: flex; align-items: center; }
.users-table th.perm, .users-table td.perm { text-align: center; width: 1%; white-space: nowrap; }
.users-table th.perm { cursor: help; }
.name-input, .pw-input { font: inherit; padding: 5px 8px; border: 1px solid #cfd5dd; border-radius: 6px; }
.name-input { font-weight: 600; width: 100%; max-width: 240px; }
.pw-input { width: 170px; }
.add-user .field-grid { margin: 12px 0; }
.perm-choices { border: 0; padding: 0; margin: 6px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.perm-choices legend { font-weight: 600; margin-bottom: 6px; }
.perm-choice { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.perm-choice:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
pre { background: rgba(0,0,0,.06); padding: 10px; border-radius: 6px; }
.email-input { margin-top: 4px; font-weight: 400; font-size: .9rem; }
h2.spaced { margin-top: 26px; }

/* show catalog column on the confirmations table */
table.data th.catalog-col, table.data td.catalog-col { width: 1%; white-space: nowrap; text-align: center; border-left: 1px solid var(--line); }
table.data th.catalog-col .small { font-weight: normal; }
.catalog-yes { display: inline-block; min-width: 2.2em; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  background: var(--info-bg); color: var(--accent-dark); }

/* ---------- judges sheets preview (same layout as the landscape PDF) ---------- */
.judging-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.judging-bar p { margin: 0; }
.judging-preview { overflow-x: auto; }
.jpage { width: 1000px; margin: 0 auto 18px; padding: 18px 26px 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.06); color: #000; font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; font-size: 11px; }
.jpage table { border-collapse: collapse; }
.jpage table.jhead { width: 100%; margin: 0 0 6px; }
.jpage table.jhead td { font-weight: 700; font-size: 13px; padding: 0 4px; }
.jpage .jl { width: 25%; } .jpage .jc { width: 50%; text-align: center; } .jpage .jr { width: 25%; text-align: right; }
.jpage table.jgrid { width: 100%; table-layout: fixed; }
.jpage table.jgrid td { border: 1px solid #000; padding: 1px 3px; text-align: center; vertical-align: middle; height: 16px;
  font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jpage table.jgrid tr.jrow td { height: 96px; vertical-align: bottom; font-weight: 400; padding-bottom: 4px; }
.jpage table.jgrid tr.jrow td.jnum { text-align: right; }
.jpage table.jgrid tr.jrow td.jsex, .jpage table.jgrid tr.jrow td.jdob { text-align: left; font-size: 10px; }
.jpage .jfoot { text-align: center; margin-top: 6px; font-size: 11px; }

/* ---------- new blank show (upload page) ---------- */
.new-show-card { max-width: 720px; margin: 0 auto 30px; }
.inline-create { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-create label { flex: 1 1 260px; }

/* ---------- Form tab ---------- */
.form-state { padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.form-open { background: var(--ok-bg); color: #1e6b2e; }
.form-closed { background: var(--bad-bg); color: var(--bad); }
.public-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.public-link input { flex: 1 1 320px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: #fafbfc; }
.small-form { margin-top: 8px; }
.form-details label, .categories-form label { display: block; }
.form-details textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px;
  border: 1px solid #c9cfd8; border-radius: 6px; margin-top: 4px; resize: vertical; }
.details-grid { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 20px; margin: 14px 0 18px; }
@media (max-width: 760px) { .details-grid { grid-template-columns: 1fr; } }
.field-label { display: block; font-weight: 600; margin-bottom: 4px; }
.logo-drop { position: relative; display: flex !important; align-items: center; justify-content: center; text-align: center;
  min-height: 170px; border: 2px dashed #b8c0cc; border-radius: var(--radius); background: #fafbfc; cursor: pointer; padding: 10px; }
.logo-drop:hover, .logo-drop:focus-within, .logo-drop.dragover { border-color: var(--accent); background: var(--info-bg); }
.logo-drop.changed { border-style: solid; border-color: var(--accent); }
.logo-drop img { max-width: 100%; max-height: 220px; object-fit: contain; }
.logo-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.map-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0 4px; background: #fafbfc; }
.map-box iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-box p { margin: 0; padding: 30px 12px; text-align: center; }
.check-line { display: flex !important; gap: 8px; align-items: center; margin: 14px 0 4px; }
.category-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 12px; }
.category-list h3 { margin: 0 0 6px; font-size: 1rem; }
.category-rows { list-style: none; margin: 0 0 10px; padding: 0; }
.category-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.category-row input[data-name=name] { flex: 1 1 auto; min-width: 0; }
.category-row.removed input[data-name=name] { text-decoration: line-through; opacity: .55; }
.category-row .cat-info { white-space: nowrap; }
.category-row .cat-remove { display: flex !important; gap: 4px; align-items: center; white-space: nowrap; }
.category-row .cat-remove:has(input:disabled) { opacity: .45; }
.move { display: flex; flex-direction: column; }
.icon-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .6rem; line-height: 1;
  padding: 2px 5px; cursor: pointer; }
.icon-btn:first-child { border-radius: 4px 4px 0 0; }
.icon-btn:last-child { border-radius: 0 0 4px 4px; border-top: 0; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--info-bg);
  color: #1c3f7a; font-size: .72rem; font-weight: 600; vertical-align: middle; }

/* ---------- public entry page ---------- */
body.public main { max-width: 900px; margin: 0 auto; }
.public-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.public-logo { max-width: 220px; max-height: 180px; object-fit: contain; }
.public-head-text { flex: 1 1 320px; }
.public-head h1 { margin: 0 0 8px; }
.public-description { line-height: 1.5; }
.public-address { margin: 0 0 6px; }
.public-done .num { font-size: 1rem; }
.num-plain { background: #fff; color: var(--text); border: 1px solid var(--line); }
.req { color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small-form .link-button { color: var(--accent); opacity: 1; text-decoration: underline; }
.public-link input, .category-row input[data-name=name], .inline-create input {
  font: inherit; padding: 7px 9px; border: 1px solid #c9cfd8; border-radius: 6px; background: #fff; color: var(--text); }
.inline-create label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.form-details > label, .details-grid label { font-weight: 600; }
.form-details textarea, .details-grid textarea { font-weight: 400; }
.category-list[data-type=titles] .cat-info { width: 15.5em; } .category-list[data-type=specialties] .cat-info { width: 5.5em; }

/* ---------- public main page: show cards ---------- */
.shows-intro { margin: 10px 0 18px; }
.shows-intro h1 { margin: 0 0 4px; }
.show-cards { display: grid; gap: 16px; }
.show-card { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; align-items: stretch; }
.show-card-logo { flex: 0 0 180px; display: flex; align-items: center; justify-content: center; background: #fafbfc;
  border: 1px solid var(--line); border-radius: 8px; min-height: 140px; overflow: hidden; }
.show-card-logo img { max-width: 100%; max-height: 160px; object-fit: contain; }
.logo-placeholder { font-size: 3rem; font-weight: 700; color: var(--accent); opacity: .5; }
.show-card-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.show-card-body h2 { margin: 0 0 4px; font-size: 1.25rem; }
.show-card-body h2 a { color: var(--text); text-decoration: none; }
.show-card-body h2 a:hover { color: var(--accent); }
.show-card-where { margin: 0 0 8px; }
.show-card-text { margin: 0 0 12px; line-height: 1.45; }
.show-card-actions { margin-top: auto; display: flex; justify-content: flex-end; }
.show-card-actions .btn { padding: 9px 26px; font-size: 1rem; }
@media (max-width: 620px) { .show-card { flex-direction: column; } .show-card-logo { flex-basis: auto; } }
.show-card-logo, .show-card-logo:hover { text-decoration: none; }

/* ---------- Form tab: address with suggestions ---------- */
.address-box { position: relative; margin-top: 4px; }
.address-box input[type=text] { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: 8px 10px;
  border: 1px solid #c9cfd8; border-radius: 6px; }
.address-box input[type=text]:focus { outline: 2px solid var(--info-bg); border-color: var(--accent); }
.address-suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 4px 0;
  list-style: none; background: #fff; border: 1px solid #c9cfd8; border-radius: 6px; box-shadow: 0 6px 20px rgba(20, 30, 50, .15);
  max-height: 300px; overflow-y: auto; }
.address-suggestions li { padding: 7px 12px; cursor: pointer; font-weight: 400; line-height: 1.3; }
.address-suggestions li strong { display: block; font-weight: 600; }
.address-suggestions li span { display: block; font-size: .85rem; color: var(--muted); }
.address-suggestions li:hover, .address-suggestions li.active { background: var(--info-bg); }
.address-status { margin: 6px 0 0; min-height: 1.2em; color: var(--muted); font-weight: 400; }
.address-status.is-verified { color: #1e6b2e; font-weight: 600; }

/* ---------- show page: Active / Inactive switch ---------- */
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-switch { display: inline-flex; border: 1px solid #c9cfd8; border-radius: 999px; padding: 3px; background: #f1f3f6; }
.status-switch button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; padding: 6px 16px;
  border-radius: 999px; color: var(--muted); cursor: pointer; }
.status-switch button:hover:not(:disabled) { color: var(--text); background: #e4e8ee; }
.status-switch button.on { background: #1e8a3a; color: #fff; cursor: default; }
.status-switch button.on.off { background: #7a8291; }
.status-switch button:disabled { opacity: 1; }
.status-note { margin: 4px 0 0; }

/* ---------- Form tab: registration settings ---------- */
.registration-form h3 { margin: 22px 0 6px; font-size: 1rem; }
.reg-grid { margin-top: 6px; }
.field-hint { font-weight: 400; font-size: .78rem; color: var(--muted); }
.question-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.question-grid label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.question-grid select, .registration-form input:not([type=checkbox]):not([type=hidden]) { font: inherit; font-size: .95rem; font-weight: 400;
  padding: 6px 8px; border: 1px solid #cfd5dd; border-radius: 6px; background: #fff; color: var(--text); }
.money-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: var(--text); }
.money-input input { width: 6.5em; }
.check-inline { justify-content: flex-end; }
.check-inline span { display: flex; gap: 6px; align-items: center; font-weight: 400; color: var(--text); font-size: .9rem; }
.extras-table input { width: 100%; box-sizing: border-box; }
.extras-table td:nth-child(2) { width: 9em; }

/* ---------- public form: orders and summary ---------- */
.public-facts { list-style: none; margin: 0 0 10px; padding: 0; line-height: 1.6; }
.address-grid { margin-top: 10px; }
.order-item { border: 0; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.order-item legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.order-item .qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 400; }
fieldset.order-item .qty { display: inline-flex; margin-left: 12px; }
.qty input { width: 5em; font: inherit; padding: 5px 7px; border: 1px solid #cfd5dd; border-radius: 6px; }
.summary-table { max-width: 520px; }
.summary-table .num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-table .total-row td { font-weight: 700; border-top: 2px solid var(--line); }
#add-ferret:disabled { opacity: .45; }
.show-card-dates { margin: 0 0 6px; }
.btn-disabled, .btn-disabled:hover { background: #c9cfd8; border-color: #c9cfd8; color: #fff; cursor: default; }
.due { font-weight: 600; color: var(--text); margin-top: 2px; }
