:root {
  --bg: #f7f3ea;
  --panel: #fffdf8;
  --ink: #263329;
  --muted: #6c776f;
  --green: #2f8f61;
  --greenDark: #246f4c;
  --line: #d9d0c1;
  --red: #b93838;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.appShell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 21px;
}

.topBar p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(44, 52, 45, 0.08);
}

.fieldGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 850;
  color: var(--muted);
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-height: 46px;
  border: 1px solid #cfc5b7;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}

select[multiple] {
  min-height: 148px;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px;
  color: #fff;
  font-weight: 900;
}

.iconBtn,
.primaryBtn {
  background: var(--green);
}

.secondaryBtn {
  background: #6a766f;
}

.dangerBtn {
  background: var(--red);
}

.actionGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actionGrid .dangerBtn {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

.messageBox {
  display: none;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.45;
}

.messageBox.ok {
  display: block;
  color: #145c3b;
  background: #eaf7ef;
  border: 1px solid #85c79a;
}

.messageBox.err {
  display: block;
  color: #8f2727;
  background: #fff0f0;
  border: 1px solid #df9a9a;
}

.listHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.listHeader span {
  color: var(--muted);
  font-weight: 900;
}

.bookingList {
  display: grid;
  gap: 10px;
}

.bookingCard {
  width: 100%;
  text-align: left;
  border: 1px solid #d9d0c1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.bookingCard strong {
  font-size: 19px;
}

.bookingCard span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .fieldGrid,
  .actionGrid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 23px;
  }
}
