:root {
  color-scheme: light;
  --green: #06422e;
  --green-2: #0b6b49;
  --gold: #c79b43;
  --gold-soft: #f2dfad;
  --cream: #fff7e5;
  --paper: #fffdf7;
  --ink: #14251c;
  --muted: #667168;
  --line: #e7d8aa;
  --danger: #9b3e34;
  --success-bg: #dcefe6;
  --danger-bg: #f4dad4;
  --shadow: 0 22px 70px rgba(6, 66, 46, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 26rem),
    linear-gradient(135deg, #f6dda0 0%, #fff7e5 44%, #e9c16f 100%);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.lang-button {
  min-height: 38px;
  border: 1px solid rgba(6, 66, 46, 0.28);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.lang-button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.hero,
.booking-panel,
.table-panel,
.support-panel {
  border: 1px solid rgba(199, 155, 67, 0.48);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 220px;
  padding: 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -90px;
  width: 280px;
  height: 280px;
  border: 26px solid rgba(199, 155, 67, 0.15);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 12px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.9vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.intro,
.panel-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 112px);
  gap: 12px;
}

.hero-stats div {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 14px;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

.hero-stats span {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats small {
  color: var(--gold-soft);
  font-weight: 800;
}

.booking-panel,
.table-panel,
.support-panel {
  margin-top: 18px;
  padding: 24px;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.video-link:hover {
  text-decoration: underline;
}

.export-bottom {
  min-width: 150px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 66, 46, 0.38);
}

.modal-backdrop[hidden] {
  display: none;
}

.password-modal {
  width: min(420px, 100%);
  border: 1px solid rgba(199, 155, 67, 0.58);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(6, 66, 46, 0.28);
  padding: 22px;
}

.password-modal h2 {
  margin-bottom: 8px;
}

.password-modal p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.password-modal input {
  margin-top: 4px;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.table-heading {
  align-items: end;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) repeat(3, minmax(170px, 1fr)) minmax(140px, auto);
  gap: 14px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(11, 107, 73, 0.16);
}

.primary-button,
.ghost-button,
.filter-button,
.release-button {
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: white;
  padding: 0 18px;
}

.ghost-button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  padding: 0 14px;
}

.primary-button:hover,
.ghost-button:hover,
.filter-button:hover,
.release-button:hover {
  transform: translateY(-1px);
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 900;
}

.form-message.error {
  color: var(--danger);
}

.filters {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(90px, auto));
  gap: 8px;
}

.filter-button {
  border: 1px solid var(--line);
  background: #f3e7c5;
  color: var(--green);
  padding: 0 14px;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

td::before {
  display: none;
}

th {
  background: var(--green);
  color: white;
  font-size: 0.98rem;
  letter-spacing: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: rgba(247, 232, 195, 0.38);
}

.lamb-number {
  width: 90px;
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 900;
}

.lamb-weight {
  width: 120px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

.status-pill.available {
  background: var(--success-bg);
  color: var(--green-2);
}

.status-pill.reserved {
  background: var(--danger-bg);
  color: var(--danger);
}

.customer-cell {
  min-width: 220px;
  color: var(--muted);
  line-height: 1.45;
}

.customer-cell strong {
  display: block;
  color: var(--ink);
}

.release-button {
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  padding: 0 12px;
}

.empty-action {
  color: var(--muted);
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding: 12px 0 18px;
  }

  .topbar {
    justify-content: stretch;
  }

  .lang-button {
    flex: 1;
  }

  .hero,
  .panel-header,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .panel-header {
    display: grid;
  }

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

  .hero,
  .booking-panel,
  .table-panel,
  .support-panel {
    padding: 16px;
  }

  .support-panel {
    display: grid;
  }

  .hero {
    gap: 18px;
    min-height: auto;
  }

  h1 {
    font-size: 2.15rem;
  }

  .intro,
  .panel-header p {
    font-size: 0.96rem;
  }

  .hero-stats div {
    min-height: 82px;
  }

  .filters {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-button,
  .ghost-button,
  .filter-button {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    overflow: hidden;
  }

  tbody tr:nth-child(even) {
    background: var(--paper);
  }

  td {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: start;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .lamb-number,
  .lamb-weight,
  .customer-cell {
    width: auto;
    min-width: 0;
  }

  .lamb-number {
    font-size: 1.35rem;
  }

  .release-button {
    width: 100%;
  }
}
