:root {
  --red: #d71920;
  --red-dark: #9f1018;
  --red-soft: #fff0f1;
  --blue: #073b8e;
  --blue-dark: #06265c;
  --blue-soft: #eef4ff;
  --teal: #0f766e;
  --teal-soft: #ecfdf5;
  --gold: #f59e0b;
  --white: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f8fafc;
  --shadow: 0 16px 36px rgba(16, 24, 40, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.96)),
    linear-gradient(90deg, rgba(6, 38, 92, 0.2), rgba(215, 25, 32, 0.1)),
    url("/assets/monster-fish-background.png") center top / cover fixed,
    var(--soft);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 128px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(6, 38, 92, 0.58), rgba(7, 59, 142, 0.34) 48%, rgba(159, 16, 24, 0.4)),
    url("/assets/monster-fish-background.png") center 45% / cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.brand-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.22);
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
}

.site-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  opacity: 0.92;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-link,
.donate-link,
button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.donate-menu {
  position: relative;
}

.admin-menu {
  position: relative;
}

.admin-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.admin-menu-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 130px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
}

.admin-menu-options a,
.admin-menu-options button {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.admin-menu-options button {
  width: 100%;
  justify-content: flex-start;
}

.admin-menu-options a:hover,
.admin-menu-options button:hover {
  color: var(--white);
  background: var(--blue);
}

.donate-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  color: #3b2b00;
  background: #ffcf5a;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 -2px 0 rgba(59, 43, 0, 0.12);
}

.donate-menu summary::-webkit-details-marker {
  display: none;
}

.donate-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
}

.donate-options p {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.donate-options small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.donation-amount {
  display: grid;
  gap: 5px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.donation-amount input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.donate-options a,
.donate-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.donate-options a:hover,
.donate-options button:hover {
  color: var(--white);
  background: var(--blue);
}

.admin-link,
.donate-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.admin-link {
  color: var(--blue);
  background: var(--white);
}

.donate-link {
  color: #3b2b00;
  background: #ffcf5a;
  box-shadow: inset 0 -2px 0 rgba(59, 43, 0, 0.12);
}

button {
  color: var(--white);
  background: var(--red);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button.secondary {
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
}

button.danger {
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: #fecdd3;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:hover:not(:disabled),
.admin-link:hover,
.donate-link:hover,
.donate-menu summary:hover,
.admin-menu summary:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.32);
  outline-offset: 2px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 60px;
}

.next-auction-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(159, 16, 24, 0.94), rgba(6, 38, 92, 0.94)),
    url("/assets/monster-fish-background.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.next-auction-banner span,
.next-auction-banner small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-transform: uppercase;
}

.next-auction-banner strong {
  color: var(--white);
  font-size: clamp(1.3rem, 4vw, 2.15rem);
  line-height: 1;
}

.next-auction-banner small {
  text-align: right;
  text-transform: none;
}

.panel,
.lot-card,
.status-strip,
.admin-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.welcome-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.welcome-band h2,
.welcome-band p {
  margin: 0;
  color: var(--blue-dark);
}

.welcome-band h2 {
  margin-top: 4px;
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  line-height: 1.15;
}

.welcome-band span {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 8px;
  font-weight: 800;
}

.welcome-band .donate-menu {
  flex: 0 0 auto;
}

.welcome-band .donate-menu summary {
  min-width: 150px;
  justify-content: center;
}

.admin-session-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-login-audit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-login-failures {
  margin-top: 10px;
  padding: 10px 12px;
  color: #7f1d1d;
  background: var(--red-soft);
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 0.86rem;
}

.admin-login-failures strong {
  display: block;
  margin-bottom: 6px;
}

.admin-login-failures ul {
  margin: 0;
  padding-left: 18px;
}

.admin-login-failures li {
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.admin-welcome {
  border-left: 6px solid var(--red);
}

.donation-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  color: var(--blue-dark);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.donation-note strong {
  flex: 0 0 auto;
}

.donation-note span {
  color: #604600;
  font-weight: 700;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.total-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.total-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.total-card strong {
  color: var(--blue-dark);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1;
}

.total-card p {
  margin: 0;
  font-size: 0.88rem;
}

.donation-donor-card {
  grid-column: span 2;
}

.donation-donor-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.donation-donor-list span {
  display: block;
  text-transform: none;
}

.panel {
  padding: 22px;
}

.signup-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.schedule-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.schedule-panel p {
  margin-bottom: 0;
}

.schedule-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
}

h2,
h3 {
  margin: 0;
  color: var(--blue-dark);
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-form .wide {
  grid-column: 1 / -1;
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.grid-form button[type="submit"] {
  justify-self: start;
  min-width: 180px;
}

.client-access {
  display: grid;
  gap: 14px;
}

.join-auction-btn {
  justify-self: start;
  width: min(100%, 360px);
  min-height: 64px;
  padding: 0 30px;
  font-size: 1.18rem;
  letter-spacing: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #a91117);
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.22);
}

.join-auction-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(215, 25, 32, 0.28);
}

.recovery-form {
  grid-column: 2;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
  transition: border 120ms ease, box-shadow 120ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #cbd5e1;
}

textarea {
  resize: vertical;
}

.inline-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.inline-form button {
  flex: 0 0 auto;
  min-width: 88px;
}

.recovery-stack {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.helper-text {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.status-strip,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-strip {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 6px solid var(--teal);
  background: linear-gradient(90deg, var(--white), #ecfdf5);
}

.client-summary {
  margin: 18px 0;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-item strong {
  display: block;
  color: var(--blue-dark);
}

.summary-item span,
.empty-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.summary-item b {
  color: var(--teal);
  font-size: 1.05rem;
  white-space: nowrap;
}

.section-head {
  margin: 28px 0 14px;
}

.search-field {
  width: min(340px, 100%);
  color: var(--muted);
  font-size: 0.82rem;
}

.section-head span,
#refreshNote {
  color: var(--muted);
  font-size: 0.93rem;
}

.lots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.lot-card {
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
  border-left: 6px solid var(--teal);
}

.lot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.14);
}

.preview-card {
  border-left-color: var(--blue);
}

.preview-card .lot-title-row {
  display: block;
}

.lot-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lot-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--white);
  background: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.live {
  background: var(--teal);
}

.description {
  min-height: 42px;
  margin: 0;
}

.media-disclaimer {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.lot-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.lot-media img,
.lot-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
}

dl div {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.bid-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.quick-bids {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-bids button {
  min-height: 36px;
  padding: 0 8px;
  color: var(--blue-dark);
  background: #eef4ff;
  border: 1px solid var(--line);
}

.quick-bids button:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
}

.preview-like {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  color: var(--white);
  background: var(--teal);
}

.preview-like:disabled {
  color: var(--muted);
  background: #e2e8f0;
}

.decline-bid {
  width: 100%;
  min-height: 38px;
}

.winner-buy {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.winner-buy p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.winner-buy button {
  min-height: 36px;
  white-space: nowrap;
}

.winner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  color: var(--blue-dark);
  font-weight: 800;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
}

.winner span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.winner strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.winner b {
  color: var(--teal);
  white-space: nowrap;
}

.auction-bubble {
  position: fixed;
  right: 16px;
  top: 150px;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border: 2px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(159, 16, 24, 0.25);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.auction-bubble.show {
  opacity: 1;
  transform: translateX(0);
}

.auction-bubble strong,
.auction-bubble span {
  color: var(--white);
}

.auction-bubble strong {
  font-size: 0.85rem;
  text-transform: uppercase;
}

.winner-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(6, 38, 92, 0.96);
  border: 1px solid rgba(255,255,255,0.22);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feedback-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.star-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.star-rating legend {
  margin-right: 8px;
  color: var(--blue-dark);
  font-weight: 800;
}

.star-rating label {
  display: block;
}

.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-rating span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--blue-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.star-rating span::before {
  content: "★";
  margin-right: 2px;
  color: var(--gold);
}

.star-rating input:checked + span {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.feedback-comment textarea {
  resize: vertical;
}

.feedback-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(15, 118, 110, 0.96);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feedback-ticker strong {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.auction-chat {
  position: fixed;
  right: 16px;
  bottom: 62px;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
}

.chat-toggle {
  display: none;
  min-width: 150px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(7, 59, 142, 0.24);
}

.auction-chat.collapsed {
  width: auto;
}

.auction-chat.collapsed .chat-panel {
  display: none;
}

.auction-chat.collapsed .chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(160px, 260px) auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.24);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--white);
  background: var(--blue-dark);
}

.chat-head strong,
.chat-head span {
  display: block;
  color: var(--white);
}

.chat-head span {
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.82;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
  background: #f8fafc;
}

.chat-message {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-message div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chat-message strong {
  color: var(--blue-dark);
  font-size: 0.84rem;
}

.chat-message span,
.empty-chat {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-delete {
  justify-self: end;
  min-height: 28px;
  padding: 0 9px;
  color: var(--white);
  background: var(--red);
  font-size: 0.74rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
}

.winner-ticker strong {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-window {
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  min-width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(520px, 1fr) minmax(260px, 330px);
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.lot-sidebar,
.client-sidebar {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.lot-manager {
  min-width: 0;
}

.admin-menu {
  display: grid;
  gap: 12px;
}

.admin-menu summary {
  color: #0b2a55;
  font-weight: 900;
  cursor: pointer;
}

.category-menu {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.category-button {
  width: 100%;
  justify-content: flex-start;
  color: var(--blue-dark);
  background: #eef4ff;
  border: 1px solid var(--line);
  text-align: left;
}

.category-button.active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.lot-category-heading {
  margin: 10px 0 2px;
  padding: 10px 12px;
  color: var(--blue-dark);
  background: #eef4ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.admin-winners-menu {
  margin-bottom: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-winners-menu summary {
  color: #0b2a55;
  font-weight: 900;
  cursor: pointer;
}

.admin-winners-menu .admin-list {
  margin-top: 12px;
}

.admin-winners-menu.nested-menu {
  margin-top: 12px;
  background: var(--white);
}

.compact-toolbar {
  margin: 10px 0;
}

.whatsapp-history-summary,
.whatsapp-recent {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.whatsapp-history-summary span,
.whatsapp-recent-list span {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.whatsapp-recent-list {
  display: grid;
  gap: 6px;
}

.compact-head {
  margin: 12px 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  box-shadow: none;
  border-left: 6px solid #cbd5e1;
}

.admin-row p {
  margin: 5px 0 0;
}

.admin-row-text {
  min-width: 0;
}

.admin-row-text h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lot-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-left-width: 5px;
}

.lot-row .admin-row-text {
  display: grid;
  gap: 8px;
}

.lot-row .admin-row-text h3 {
  max-width: 100%;
  font-size: 0.98rem;
}

.lot-meta,
.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.lot-meta span,
.admin-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.client-sidebar .section-head {
  display: block;
}

.client-sidebar .section-head h2 {
  margin-bottom: 4px;
}

.client-sidebar .section-head span {
  display: block;
  line-height: 1.35;
}

.client-row {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border-left-width: 5px;
}

.client-row .admin-row-text {
  display: grid;
  gap: 8px;
}

.client-row .admin-row-text h3 {
  font-size: 0.98rem;
}

.client-meta span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-row .admin-actions {
  justify-content: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.client-row .admin-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.82rem;
}

.client-winnings,
.client-notes {
  margin-top: 10px;
  color: #0b2a55;
}

.client-winnings ul,
.client-notes ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.client-winnings li,
.client-notes li {
  margin: 3px 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.summary-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-paybar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.summary-approve,
.summary-decline {
  justify-self: end;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.summary-approve {
  color: var(--white);
  background: var(--teal);
}

.admin-row.status-live {
  border-left-color: var(--teal);
  background: linear-gradient(90deg, var(--teal-soft), var(--white) 22%);
}

.admin-row.status-ended {
  border-left-color: var(--blue);
}

.admin-row.status-waiting {
  border-left-color: var(--gold);
}

.admin-row.status-removed {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.admin-actions button {
  min-width: 86px;
}

.lot-row .admin-actions {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 6px;
}

.lot-row .admin-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.82rem;
}

.modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.26);
}

.modal::backdrop {
  background: rgba(16, 24, 40, 0.42);
}

.modal-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-actions {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .admin-workspace {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  }

  .client-sidebar {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .lot-row {
    grid-template-columns: 1fr;
  }

  .lot-row .admin-actions {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 58px;
  }

  .shell {
    width: min(100% - 18px, 1180px);
    margin-top: 12px;
  }

  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 1.45rem;
  }

  .site-link {
    font-size: 0.82rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .topbar,
  .top-actions,
  .next-auction-banner,
  .welcome-band,
  .admin-session-panel,
  .feedback-panel,
  .feedback-ticker,
  .donation-note,
  .signup-panel,
  .status-strip,
  .section-head,
  .admin-row,
  .schedule-panel,
  .schedule-form {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .modal-actions {
    justify-content: stretch;
  }

  .admin-toolbar button,
  .modal-actions button,
  .schedule-form button {
    width: 100%;
  }

  .next-auction-banner small {
    text-align: left;
  }

  .grid-form,
  .inline-form,
  .bid-form,
  .quick-bids,
  .winner-buy,
  .summary-item,
  .totals-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .lot-sidebar {
    position: static;
    max-height: none;
  }

  .category-menu {
    grid-template-columns: 1fr 1fr;
  }

  .category-button {
    min-height: 44px;
  }

  .lot-row .admin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item b {
    justify-self: start;
  }

  .summary-actions {
    justify-self: stretch;
  }

  .summary-actions button {
    flex: 1 1 120px;
  }

  .grid-form button[type="submit"] {
    width: 100%;
  }

  .recovery-form {
    grid-column: 1;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .auction-bubble {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .auction-chat {
    right: 10px;
    bottom: 64px;
    width: min(380px, calc(100vw - 20px));
  }

  .chat-panel {
    grid-template-rows: auto minmax(190px, 42vh) auto;
  }

  .chat-toggle {
    min-height: 48px;
    min-width: 142px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }

  .winner-ticker {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 10px;
  }

  .feedback-ticker {
    margin-bottom: 8px;
  }

  .inline-form {
    display: grid;
  }

  dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    justify-content: start;
  }

  .lots {
    grid-template-columns: 1fr;
  }

  .lot-body {
    padding: 14px;
  }

  .lot-title-row {
    display: grid;
    gap: 8px;
  }

  .star-rating {
    display: grid;
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .star-rating legend {
    grid-column: 1 / -1;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .donate-menu,
  .donate-menu summary,
  .admin-menu,
  .admin-menu summary {
    width: 100%;
  }

  .donate-menu summary,
  .admin-menu summary {
    justify-content: center;
  }

  .donate-options,
  .admin-menu-options {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(100% - 14px, 1180px);
  }

  .lots,
  dl {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .join-auction-btn {
    min-height: 56px;
    font-size: 1.05rem;
  }

  .price-grid,
  .quick-bids {
    gap: 6px;
  }
}

.site-footer { width: min(1180px, calc(100% - 28px)); margin: 24px auto; color: #667085; font-size: 0.9rem; text-align: center; }
