:root {
  --paper: #ffffff;
  --paper-2: #fbf9f5;
  --paper-3: #f3efe7;
  --ink: #1c1a16;
  --ink-2: #3a3833;
  --ink-3: #6a6760;
  --line: #e8e3d8;
  --line-2: #d8d2c4;
  --green: #1f3b2e;
  --green-2: #2a503e;
  --green-tint: #ecf1ed;
  --clay: #c8674a;
  --clay-soft: #f3dfd5;
  --amber: #c69648;
  --amber-soft: #f5e9cf;
  --rose-soft: #f4dcdf;
  --sidebar: #1c2c24;
  --display: Georgia, "Times New Roman", serif;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 248px; background: var(--sidebar); color: #f3efe7;
  padding: 22px 14px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 14px; font-family: var(--display); font-size: 21px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--clay); display: inline-grid; place-items: center; color: #fff; }
.nav { display: grid; gap: 3px; }
.nav a {
  min-height: 38px; border-radius: 9px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; color: #c9c4b8; font-size: 14px;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.workspace { margin-top: auto; background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px; font-size: 13px; color: #c9c4b8; }
.workspace strong { color: #fff; display: block; margin-bottom: 3px; }

.main { flex: 1; min-width: 0; }
.topbar {
  padding: 24px 34px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; color: var(--ink); }
h1 { font-size: 34px; line-height: 1.05; }
h2 { font-size: 26px; line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0; color: var(--ink-3); line-height: 1.5; }
.content { padding: 24px 34px 38px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.card.soft { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.stat strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 400; margin: 5px 0; }
.muted { color: var(--ink-3); font-size: 13px; }
.label { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper-3); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill.green { background: var(--green-tint); color: var(--green); border-color: #d8e3dc; }
.pill.clay { background: var(--clay-soft); color: #9a462f; border-color: #ebcec0; }
.pill.amber { background: var(--amber-soft); color: #805c17; border-color: #ead9b3; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px;
}
.btn.primary { background: var(--green); color: #f3efe7; }
.btn.primary:hover { background: var(--green-2); }
.btn.clay { background: var(--clay); color: #fff; }
.btn.ghost { border-color: var(--line-2); background: #fff; }
.btn.quiet:hover, .btn.ghost:hover { background: var(--paper-3); }
.btn.full { width: 100%; }
.field { margin-bottom: 14px; }
.input, select, textarea {
  width: 100%; min-height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  padding: 9px 12px; color: var(--ink); outline: none;
}
textarea { min-height: 96px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #d8e3dc; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.flash { margin: 0 34px 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid #d8e3dc; background: var(--green-tint); color: var(--green); }
.flash.error { border-color: #ebcec0; background: var(--clay-soft); color: #9a462f; }
.setup { margin: 18px 34px 0; background: var(--amber-soft); border: 1px solid #ead9b3; color: #6f5014; border-radius: 12px; padding: 14px 16px; }
.auth-page, .booking-public { min-height: 100vh; padding: 34px; display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); }
.public-wrap { width: min(1120px, 100%); }
.booking-header { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; margin-bottom: 20px; }
.portrait { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(140deg, #d8c8b3, #5e6b4f); display: grid; place-items: center; color: rgba(255,255,255,.62); font-family: var(--display); font-size: 84px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 12px; text-align: center; cursor: pointer; }
.slot:hover, .slot.active { border-color: var(--green); background: var(--green-tint); }
.mobile-only { display: none; }

@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { width: auto; height: auto; position: static; border-radius: 0; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { display: block; padding: 22px 20px 16px; }
  .content { padding: 20px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .booking-header { grid-template-columns: 1fr; }
  .portrait { max-width: 180px; font-size: 56px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
