:root {
  --ink: #343a31;
  --muted: #646b5d;
  --olive: #4b5145;
  --gold: #a78b52;
  --ivory: #f5f2eb;
  --line: #e5e3da;
  --surface: #fffdf8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font:
    14px/1.55 Arial,
    Helvetica,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    400 clamp(32px, 4vw, 48px)/1.15 Georgia,
    serif;
  letter-spacing: -1.3px;
}
h2 {
  font:
    400 24px Georgia,
    serif;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
small,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffefa;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #ebe9e1;
}
button:disabled {
  opacity: 0.5;
}
.primary {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.primary:hover {
  background: #363f33;
}
a {
  color: var(--olive);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5d7cc;
  border-radius: 10px;
  background: #fffdfa;
  padding: 10px 12px;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--olive);
}
input[type='color'] {
  padding: 4px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  color: #4a5046;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  flex: none;
  margin-top: 2px;
}
.stack {
  display: grid;
  gap: 15px;
}
.row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.hidden {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font:
    23px Georgia,
    serif;
  text-decoration: none;
}
.brand small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.brand-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #bdc1ad;
  border-radius: 50%;
  color: var(--olive);
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-card {
  width: min(490px, 100%);
  margin: auto;
  padding: 40px 28px;
}
.login-card .brand {
  margin-bottom: 65px;
}
.login-card h1 {
  margin-bottom: 11px;
}
.login-card p {
  margin-bottom: 25px;
}
.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.language-switch {
  white-space: nowrap;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7vw;
  background: linear-gradient(145deg, #d5d6c9, #a5ad97 60%, #697662);
  color: #fff;
}
.login-art h2 {
  font:
    400 42px Georgia,
    serif;
  max-width: 380px;
}
.login-art p {
  color: #f4f3eb;
  max-width: 330px;
}
.art-mark {
  font-size: 160px;
  opacity: 0.55;
  margin: auto;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
  color: var(--muted);
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 32px 22px 18px;
  background: #f9f7f1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.nav-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #879080;
  margin: 38px 10px 11px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
}
.nav button.selected {
  background: #e9e9df;
  color: var(--olive);
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  gap: 10px;
}
.sidebar-bottom button {
  font-size: 12px;
}
.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 32px clamp(22px, 5vw, 76px) 80px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 31px;
}
.app-header h1 {
  margin: 2px 0 0;
}
.header-actions select {
  min-width: 110px;
}
.message:empty {
  display: none;
}
.message {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.message.success,
.notice {
  background: #e6efe7;
  color: #2d633e;
}
.message.error,
.error {
  background: #fce9e5;
  color: #92372c;
}
.hero {
  display: flex;
  justify-content: space-between;
  min-height: 205px;
  background: linear-gradient(120deg, #eef0e8, #d9dfd3);
  border-radius: 23px;
  padding: 32px 40px;
  margin-bottom: 25px;
  overflow: hidden;
}
.hero h2 {
  font:
    400 clamp(28px, 4vw, 40px) Georgia,
    serif;
  margin: 8px 0;
}
.hero p {
  max-width: 350px;
}
.hero-symbol {
  font-size: 135px;
  line-height: 1;
  color: #85917d;
  opacity: 0.6;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  padding: 25px;
  border: 1px solid rgba(220, 219, 208, 0.9);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 36px rgba(46, 49, 40, 0.045);
  margin-bottom: 20px;
}
.card h2 {
  margin-bottom: 10px;
}
.card .card {
  box-shadow: none;
  background: #f9f8f3;
  padding: 16px;
}
.section-head {
  display: flex;
  justify-content: space-between;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}
.calendar-head button {
  border: 0;
  font-size: 24px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekday {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 7px;
}
.day {
  min-height: 42px;
  padding: 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.day:hover {
  background: #e8e8dd;
}
.day.chosen {
  background: var(--olive);
  color: white;
}
.day.busy:not(.chosen):after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  margin: 24px 0 0 -8px;
}
.selected-day {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.selected-day p {
  margin: 5px 0;
}
.cards {
  display: grid;
  gap: 14px;
}
.cards .card {
  margin: 0;
}
.booking-card h3 {
  margin: 4px 0;
}
.badge {
  display: inline-block;
  border-radius: 100px;
  padding: 5px 10px;
  font-size: 11px;
  background: #ecebe6;
  white-space: nowrap;
}
.badge.approved {
  background: #e2eee4;
  color: #306a42;
}
.badge.pending {
  background: #f5ebd4;
  color: #806027;
}
.badge.rejected,
.badge.cancelled_by_admin,
.badge.cancelled_by_resident {
  background: #f4e5e2;
  color: #903f37;
}
.empty {
  text-align: center;
  padding: 26px;
}
.empty span {
  font-size: 35px;
  color: var(--gold);
}
.preline {
  white-space: pre-line;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
td.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.list-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.list-item button {
  justify-self: start;
}
.credential {
  font-family: monospace;
  font-size: 17px;
  word-break: break-all;
  color: var(--ink);
  background: #e8ede3;
  padding: 15px;
  border-radius: 9px;
}
.policy-day {
  display: grid;
  grid-template-columns: 105px 1fr 1fr auto;
  align-items: center;
  gap: 8px;
}
.policy-day label {
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .app-shell {
    display: block;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 25px 18px 60px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    width: auto;
  }
  .sidebar-bottom {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
}
@media (max-width: 540px) {
  .sidebar {
    padding: 18px;
  }
  .app-header h1 {
    font-size: 32px;
  }
  .hero {
    padding: 25px;
  }
  .hero-symbol {
    display: none;
  }
  .card {
    padding: 19px;
  }
  .policy-day {
    grid-template-columns: 1fr 1fr;
  }
  .policy-day > span {
    grid-column: 1/-1;
  }
  .login-card {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.brand-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  border-radius: 9px;
}
.room-update-form {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
