:root {
  --navy: #3d5734;
  --navy-dark: #263b20;
  --gold: #b8860b;
  --gold-light: #d4a72c;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1c2331;
  --muted: #5c6572;
  --danger: #a4262c;
  --success: #1e6b3c;
  --border: #dfe3ea;
  --radius: 8px;
  --toggle-off: #ccc;
  --toggle-on: #81c784;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--navy); }

.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand-logo {
  display: block;
  max-width: min(560px, 100%);
  max-height: 112px;
  width: auto;
  height: auto;
}
.brand-text { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.main-nav a {
  color: #f0f1f3;
  text-decoration: none;
  margin-left: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover { color: var(--gold-light); }
.nav-search-link { display: inline-flex; align-items: center; }
.class-search-suggestions mark { background: #fde68a; padding: 0 2px; }

.site-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.flash { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.flash-info { background: #e7f0fb; color: #0b3d7a; }
.flash-error { background: #fbe9e9; color: var(--danger); }
.flash-success { background: #e7f6ec; color: var(--success); }

.site-footer { text-align: center; color: var(--muted); padding: 2rem 0; font-size: 0.85rem; }

.maintenance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  padding: 2rem 1.25rem;
}
.maintenance-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20,33,61,0.15);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.maintenance-logo { max-width: 280px; max-height: 90px; width: auto; height: auto; margin: 0 auto 1.5rem; display: block; }
.maintenance-image { width: 200px; height: 200px; max-width: 100%; object-fit: cover; border-radius: var(--radius); margin: 0 auto 1.5rem; display: block; }
.maintenance-card h1 { font-size: 1.6rem; margin: 0 0 0.75rem; }
.maintenance-message { color: var(--text); margin: 0 0 1rem; }
.maintenance-subtitle { color: var(--muted); margin: 0 0 1.5rem; }
.maintenance-error { background: #fbe9e9; color: var(--danger); padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1.25rem; font-weight: 600; text-align: left; }
.maintenance-card form { text-align: left; }
.maintenance-card button { width: 100%; margin-top: 0.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.9rem; margin-top: 0; }
h2 { font-size: 1.4rem; }

.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.hero h1 { color: #fff; }
.hero p { color: #d7dce6; font-size: 1.05rem; max-width: 700px; }

.section-block { margin-bottom: 2rem; }
.section-block img { max-width: 100%; border-radius: var(--radius); }
.section-img-above { text-align: center; }
.section-media { display: flex; gap: 1.5rem; align-items: flex-start; }
.section-media-right { flex-direction: row-reverse; }
.section-media img { flex: 0 0 50%; max-width: 50%; height: auto; }
.section-media-text { flex: 1; min-width: 0; }
.section-media-text p:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .section-media { flex-direction: column; }
  .section-media img { flex: 0 0 auto; width: 100%; max-width: 100%; }
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.class-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.class-card:hover { box-shadow: 0 6px 18px rgba(20,33,61,0.12); transform: translateY(-2px); }
.class-card h3 { margin: 0 0 0.35rem; color: var(--navy); }
.class-card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.class-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.class-list-item {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.class-list-item:hover { box-shadow: 0 6px 18px rgba(20,33,61,0.12); transform: translateY(-2px); }
.class-list-item .class-info { flex: 1; min-width: 0; }
.class-list-item h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.4rem; }
.class-list-item .meta { color: var(--muted); font-size: 1rem; margin-bottom: 0.25rem; }
.class-datetime { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; margin-bottom: 1rem; }
.class-datetime .meta { margin-bottom: 0; }
.class-summary { color: var(--text); font-size: 1rem; margin-bottom: 0.75rem; }
.class-trainer.meta { margin: 0.5rem 0 0.9rem; color: var(--text); }
.class-list-item .class-logo {
  width: 150px;
  height: 150px;
  min-width: 150px;
  max-width: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg);
}
.class-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.seats-indicator { text-align: center; }
.class-logo-categories { text-align: center; max-width: 150px; }
.seats-indicator .seats-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.seats-indicator .seats-count {
  display: inline-block;
  min-width: 2.25rem;
  margin-top: 0.2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}
.seats-indicator-full .seats-count { background: var(--danger); }
@media (max-width: 560px) {
  .class-list-item { flex-direction: column; align-items: flex-start; }
}

.seats-box { background: #f0f4fb; border: 1px solid #c6d5ef; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.seats-box.seats-full { background: #fbe9e9; border-color: #f0c1c1; }
.restricted-box { background: #fbe9e9; border: 1px solid #f0c1c1; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.contact-notice-box { background: #fee2e2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }

.instructor-list { display: flex; flex-direction: column; gap: 1.5rem; }
.instructor-card {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.instructor-photo {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.instructor-photo-placeholder {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.instructor-info { flex: 1; min-width: 0; }
.instructor-info h3 { margin: 0 0 0.15rem; color: var(--navy); font-size: 1.3rem; }
.instructor-rank { color: var(--muted); margin: 0 0 0.9rem; }
.instructor-field-label { font-weight: 700; margin: 0.9rem 0 0.25rem; }
.instructor-field-label:first-of-type { margin-top: 0; }
.instructor-field-body { margin: 0; }
.instructor-field-body p, .class-summary p { margin: 0 0 0.6rem; }
.instructor-field-body p:last-child, .class-summary p:last-child { margin-bottom: 0; }
.instructor-field-body ul, .instructor-field-body ol, .class-summary ul, .class-summary ol { margin: 0 0 0.6rem; padding-left: 1.4rem; }
.instructor-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 620px) {
  .instructor-card { flex-direction: column; align-items: flex-start; }
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.class-header-banner {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.class-header-banner h1 { color: #fff; margin-bottom: 0.25rem; }

.datetime-block { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }

.countdown {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.countdown .unit {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 70px;
}
.countdown .unit .num { font-size: 1.6rem; font-weight: 700; display: block; }
.countdown .unit .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

.map-image { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.class-picture-card { text-align: center; }
.class-picture { max-width: 100%; border-radius: var(--radius); }

.fee-box { background: #fbf7ec; border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }

form .form-row { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { min-height: 110px; resize: vertical; }

.richtext-wrap { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.richtext-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.4rem; background: #f7f8fa; border-bottom: 1px solid var(--border); }
.richtext-btn { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 0.3rem 0.6rem; font-size: 0.8rem; font-weight: 700; font-family: inherit; cursor: pointer; color: var(--text); }
.richtext-btn:hover { background: #eef0f3; }
.richtext-editor { min-height: 110px; padding: 0.55rem 0.7rem; font-size: 1rem; font-family: inherit; outline: none; }
.richtext-editor:focus { box-shadow: inset 0 0 0 2px var(--gold-light); }
.richtext-editor p { margin: 0 0 0.75rem; }
.richtext-editor p:last-child { margin-bottom: 0; }
.richtext-editor ul, .richtext-editor ol { margin: 0 0 0.75rem; padding-left: 1.5rem; }
.richtext-editor a { color: var(--navy); }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-row input { width: auto; margin-top: 0.3rem; }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background-color: var(--toggle-off);
  border-radius: 999px;
  transition: background-color 0.2s ease;
  pointer-events: none;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-slider { background-color: var(--toggle-on); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { box-shadow: 0 0 0 3px rgba(61,87,52,0.35); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.toggle-switch input:disabled { cursor: not-allowed; }

.toggle-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; margin-bottom: 0.6rem; }
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 1.5rem; margin-bottom: 0.5rem; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; }
.cert-column { min-width: 0; }
.toggle-subrow { display: flex; gap: 1.25rem; margin: -0.25rem 0 0.6rem 2.9rem; }
.toggle-subrow .toggle-item { margin-bottom: 0; }
.toggle-subfield { display: flex; align-items: center; gap: 0.6rem; margin: -0.25rem 0 0.75rem 2.9rem; }
.toggle-subfield label { font-weight: 400; margin: 0; white-space: nowrap; }
.toggle-subfield input { width: auto; flex: 1; min-width: 0; padding: 0.35rem 0.5rem; }
.other-cert-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.other-cert-row input { flex: 1; }
@media (max-width: 800px) {
  .cert-grid { grid-template-columns: 1fr; }
}

button, .btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #96700a; }
.btn-secondary { background: #6b7280; }
.btn-danger { background: var(--danger); }

.pill-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
.pill-btn:hover { background: var(--navy-dark); }
.pill-btn-gold { background: var(--gold); }
.pill-btn-gold:hover { background: #96700a; }
.pill-btn-secondary { background: #6b7280; }
.pill-btn-secondary:hover { background: #545c66; }
.pill-btn-success { background: var(--success); }
.pill-btn-success:hover { background: #164f2c; }
.pill-btn-danger { background: var(--danger); }
.pill-btn-danger:hover { background: #7e1e23; }

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); }
table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; }

.calendar { width: 100%; border-collapse: collapse; }
.calendar th { background: var(--navy); color: #fff; padding: 0.5rem; }
.calendar td { border: 1px solid var(--border); vertical-align: top; height: 120px; padding: 0.4rem; width: 14.28%; }
.calendar td.other-month { background: #f0f1f3; color: var(--muted); }
.calendar .day-num { font-weight: 700; font-size: 0.85rem; }
.cal-pills { display: flex; flex-direction: column; gap: 3px; margin-top: 0.3rem; }
.cal-pill {
  display: block;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-pill:hover { filter: brightness(0.92); }
.cal-pill-more { background: #eef0f3; color: var(--text); border: 1px solid var(--border); }

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.color-swatch.selected { box-shadow: 0 0 0 1px var(--border), 0 0 0 3px var(--navy); }
.color-swatch-custom {
  position: relative;
  overflow: hidden;
  background:
    conic-gradient(from 90deg, #c0392b, #d35400, #b8860b, #1e6b3c, #0f766e, #2563eb, #4338ca, #7e22ce, #db2777, #c0392b);
}
.color-swatch-custom input[type=color] {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.color-swatch-preview {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset;
  flex-shrink: 0;
}
.color-picker-swatches { display: grid; grid-template-columns: repeat(4, 24px); gap: 8px; }
.color-picker-pop { position: relative; display: inline-flex; }
.color-picker-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  box-shadow: 0 6px 18px rgba(20,33,61,0.18);
}
.color-picker-pop.open .color-picker-popover { display: block; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-nav a { text-decoration: none; font-weight: 700; }

.admin-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-tabs a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  background: #eef0f3;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-tabs a.active { background: var(--navy); color: #fff; }

/* Site-wide admin nav specifically (see includes/admin_nav.php) - always one
   row, since it caps itself at a handful of pills plus a "More" button.
   Kept separate from the plain .admin-tabs rule above (still used as-is by
   a few pages' own secondary toggle bars) so nowrap here can't affect
   those. No overflow-x here on purpose: setting it would force overflow-y
   to also compute as non-visible per the CSS spec, clipping the "More"
   dropdown below the row instead of letting it show. */
.admin-tabs-nav { flex-wrap: nowrap; }
.admin-tabs-nav a { white-space: nowrap; flex-shrink: 0; }

.admin-tabs-more { position: relative; flex-shrink: 0; }
.admin-tabs-more-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: #eef0f3;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tabs-more-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
.admin-tabs-more-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  flex-direction: column;
  gap: 0.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20,33,61,0.15);
  padding: 0.4rem;
  min-width: 190px;
  z-index: 5;
}
.admin-tabs-more-menu.open { display: flex; }
.admin-tabs-more-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.admin-tabs-more-menu a:hover { background: #f2f4f7; }
.admin-tabs-more-menu a.active { background: var(--navy); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .brand { flex-wrap: wrap; }
  .brand-logo { max-width: 240px; }
  .countdown { flex-wrap: wrap; }
}

.text-muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mt-0 { margin-top: 0; }
.inline-form { display: inline; }

.media-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 61, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.media-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.25rem;
}
.media-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.media-modal-tabs { display: flex; gap: 0.5rem; }
.media-modal-tab {
  background: #eef0f3;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}
.media-modal-tab.active { background: var(--navy); color: #fff; }
.media-modal-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 0.25rem; }
.media-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; max-height: 360px; overflow-y: auto; }
.media-thumb { border: 2px solid transparent; border-radius: 6px; cursor: pointer; overflow: hidden; line-height: 0; }
.media-thumb img { width: 142px; height: 118px; object-fit: cover; display: block; }
.media-thumb:hover { border-color: var(--border-strong, #c7cbd3); }
.media-thumb.selected { border-color: var(--gold); }
.media-modal-alt-row { margin-bottom: 1rem; }
