:root {
  color-scheme: light;
  --ink: #252a24;
  --subtle: #596055;
  --muted: #65705f;
  --olive: #46533b;
  --olive-deep: #303d2c;
  --brass: #ad9257;
  --line: #dcded3;
  --canvas: #f7f7f1;
  --paper: #fffefb;
  --wash: #eef0e6;
  --danger: #8a372d;
  --focus: #626729;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  font-size: 1rem;
  line-height: 1.5;
}
body:has(dialog[open]) {
  overflow: hidden;
}
img {
  display: block;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--olive-deep);
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  padding: 0.53rem 0.88rem;
  font-weight: 600;
}
button:hover {
  border-color: #a5ab96;
  background: var(--wash);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
p {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.65rem);
}
h2 {
  font-size: clamp(1.45rem, 2.25vw, 2.05rem);
}
h3 {
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}
small,
.muted,
.subtle {
  color: var(--subtle);
}
small {
  font-size: 0.85rem;
}
.primary,
.secondary,
.danger,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0.62em 1.1em;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}
.primary,
button[type="submit"] {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}
.primary:hover,
button[type="submit"]:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
}
.secondary,
.button {
  background: var(--paper);
  color: var(--ink);
}
.secondary:hover,
.button:hover {
  background: var(--wash);
}
.danger {
  border-color: #e1c2b9;
  color: var(--danger);
  background: #fff8f5;
}
.danger:hover {
  border-color: #c18a7d;
  background: #faeae4;
}
.text-button {
  padding: 0.25rem 0;
  border: 0;
  color: var(--olive-deep);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.text-button:hover {
  background: transparent;
  color: #172014;
}
.brand-logo {
  position: relative;
  display: inline-block;
  width: 136px;
  aspect-ratio: 2.45;
  overflow: hidden;
  vertical-align: middle;
}
.brand-logo img {
  position: absolute;
  width: 210%;
  height: auto;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-49.5%, -52.6%);
  mix-blend-mode: multiply;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  background: var(--paper);
}
.login-property {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #27241c;
  color: #fff;
  min-height: 580px;
}
.property-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 57%;
}
.login-property::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgb(20 22 16 / 22%) 63%,
    rgb(14 18 14 / 83%)
  );
  pointer-events: none;
}
.property-caption {
  position: absolute;
  z-index: 1;
  bottom: clamp(2rem, 5vw, 5rem);
  left: clamp(2rem, 4.6vw, 5.5rem);
}
.caption-locations {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.caption-locations span {
  color: #dfc895;
}
.property-caption p {
  margin: 0;
  font: 400 clamp(3.6rem, 6.8vw, 7.5rem)/0.94 var(--serif);
  letter-spacing: -0.055em;
}
.property-caption em {
  font-weight: 400;
  color: #f1e2b9;
}
.login-panel {
  display: grid;
  align-content: center;
  padding: 3rem clamp(2rem, 5vw, 6.5rem);
}
.login-content {
  max-width: 26rem;
  width: 100%;
  margin: auto;
}
.login-logo {
  width: clamp(8.5rem, 14vw, 12.5rem);
  margin-bottom: clamp(2.5rem, 5.2vh, 4.75rem);
}
.login-content h1 {
  font-size: clamp(2.65rem, 4vw, 4.25rem);
}
.login-intro {
  color: var(--subtle);
  margin: 0.85rem 0 2.2rem;
  max-width: 32ch;
  font-size: 1.03rem;
}
.login-form .primary {
  width: 100%;
  min-height: 48px;
}
.login-form input {
  min-height: 48px;
}
.login-form .login-tools {
  margin-top: -0.55rem;
  text-align: right;
  font-size: 0.9rem;
}
.login-form .form-status:empty {
  display: none;
}

.workspace {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
}
.sidebar {
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f0f1e9;
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 56px;
  margin: 0 0.55rem 1.8rem;
  font-weight: 650;
}
.sidebar nav {
  display: grid;
  gap: 0.25rem;
}
.nav-item,
.sidebar nav a,
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-decoration: none;
  text-align: left;
  background: transparent;
  color: #444f40;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 550;
}
.nav-item:hover,
.sidebar nav :is(a, button):hover {
  background: #e6e9de;
}
.nav-item[aria-current="page"],
.nav-item.active,
.sidebar nav [aria-current="page"],
.sidebar nav .active {
  background: #dfe5d6;
  color: #273525;
  border-color: #d4dcc9;
  font-weight: 700;
}
.nav-item svg,
.sidebar nav svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
}
.main {
  min-width: 0;
  padding: clamp(1.25rem, 3.2vw, 4rem);
}
.main > :first-child,
.panel > :first-child {
  margin-top: 0;
}
.page-header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header {
  margin: 0.2rem 0 1.65rem;
}
.page-header p,
.section-head p {
  margin: 0.45rem 0 0;
  color: var(--subtle);
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--olive);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.115em;
}
.toolbar,
.actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.toolbar,
.filters {
  margin: 1rem 0;
}
.toolbar > label,
.filters > label {
  width: auto;
}
.toolbar :is(select, input),
.filters :is(select, input) {
  width: auto;
  max-width: 100%;
  min-height: 40px;
}
.actions {
  justify-content: flex-end;
}
.panel,
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: clamp(1rem, 2vw, 1.65rem);
}
.panel + .panel {
  margin-top: 1rem;
}
.panel > .section-head {
  margin-bottom: 1rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 0.8rem;
  margin: 1.25rem 0;
}
.stat {
  padding: 1.12rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.stat :is(small, dt, .label) {
  display: block;
  color: var(--subtle);
}
.stat :is(strong, dd, .value) {
  display: block;
  margin: 0.35rem 0 0;
  font: 400 clamp(1.55rem, 2.65vw, 2.6rem)/1.1 var(--serif);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calendar-scroll,
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}
th,
td {
  padding: 0.66rem 0.8rem;
  border-bottom: 1px solid #e5e7dd;
  vertical-align: middle;
}
thead th {
  color: #46533f;
  background: #f1f3ea;
  font-size: 0.88rem;
  font-weight: 650;
}
tbody tr:last-child > * {
  border-bottom-color: transparent;
}
.numeric,
.amount {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.calendar {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.calendar th,
.calendar td {
  min-width: 44px;
  padding: 0.32rem;
  text-align: center;
  border-right: 1px solid #e9eadf;
}
.calendar td {
  height: 54px;
}
.calendar th:first-child,
.calendar td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 96px;
  width: 96px;
  padding: 0.45rem 0.75rem;
  text-align: left;
  background: var(--paper);
  box-shadow: 1px 0 0 var(--line);
}
.calendar thead th:first-child {
  background: #f1f3ea;
}
.calendar .location-row > *,
.calendar .location-row > :first-child {
  font-weight: 700;
  font-size: 0.86rem;
  height: 34px;
  color: var(--olive-deep);
  background: #e5eadc;
}
.calendar .today,
.calendar [aria-current="date"] {
  background: #fff7dc;
}
.calendar button {
  min-height: 36px;
  min-width: 34px;
  padding: 0.3rem 0.4rem;
}
.booking,
.badge {
  display: inline-block;
  border: 1px solid #cdd8c2;
  border-radius: 99px;
  padding: 0.22em 0.65em;
  background: #eef3e6;
  color: #34462e;
  font: 650 0.82rem/1.35 var(--sans);
}
.booking {
  border-radius: 5px;
}
.booking:hover {
  background: #dfe9d3;
}
.badge.warn,
.badge.pending {
  background: #faf0d4;
  border-color: #e6d6a2;
  color: #69541c;
}
.badge.cancelled,
.badge.danger {
  background: #faeee8;
  border-color: #e8ccc1;
  color: #813c30;
}
.empty-state,
.empty {
  padding: 1.65rem 1rem;
  text-align: center;
  color: var(--subtle);
}
.empty-state h2,
.empty-state h3 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.stack {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.form-grid .full,
.form-grid .wide,
.form-grid .actions {
  grid-column: 1/-1;
}
.field,
form label {
  display: grid;
  gap: 0.38rem;
  align-content: start;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
input:not([type="checkbox"], [type="radio"], [type="submit"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 0.55rem 0.72rem;
  border: 1px solid #acb4a2;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-weight: 450;
  line-height: 1.4;
}
select {
  appearance: none;
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23525e48' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--olive);
}
textarea {
  min-height: 88px;
  resize: vertical;
}
fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.9rem;
}
legend {
  padding: 0 0.35rem;
  font-weight: 650;
}
.form-status,
.notice,
.error,
.success {
  margin: 0;
}
.form-status:not(:empty),
.notice,
.error,
.success {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: var(--wash);
  font-size: 0.91rem;
}
.form-status.error,
.error,
[role="alert"]:not(:empty) {
  color: var(--danger);
}
.error {
  background: #faeee8;
}
.success {
  color: #375431;
  background: #eaf1e2;
}
dialog {
  width: min(38rem, calc(100% - 1.5rem));
  max-height: 90svh;
  overflow: auto;
  margin: auto;
  padding: clamp(1.05rem, 2.5vw, 2rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #bec5b5;
  border-radius: 14px;
  box-shadow: 0 18px 80px #15231138;
}
dialog::backdrop {
  background: rgb(20 27 21 / 47%);
}
dialog h2 {
  margin-bottom: 1rem;
}
dialog .actions {
  margin-top: 0.4rem;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 0.65rem 1rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .sidebar .brand {
    display: inline-flex;
    min-height: 36px;
    margin: 0 0 0.45rem;
  }
  .sidebar .brand-logo {
    width: 90px;
  }
  .sidebar nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.22rem 0.15rem;
  }
  .sidebar nav :is(button, a),
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 0.48rem 0.65rem;
  }
  .sidebar-footer {
    margin: 0.45rem 0 0;
    padding: 0;
  }
  .main {
    padding: 1.35rem 1rem 2.5rem;
  }
}
@media (max-width: 720px) {
  .login-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .login-property {
    min-height: 0;
    height: clamp(135px, 26svh, 215px);
  }
  .property-photo {
    object-position: center 57%;
  }
  .login-property::after {
    background: linear-gradient(90deg, rgb(20 22 16 / 62%), transparent 90%);
  }
  .property-caption {
    left: max(1.3rem, calc((100% - 26rem) / 2));
    bottom: 1rem;
  }
  .caption-locations {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
  }
  .property-caption p {
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 0.98;
  }
  .property-caption br {
    display: none;
  }
  .property-caption em::before {
    content: " ";
  }
  .login-panel {
    padding: 1.75rem 1.3rem max(2.25rem, env(safe-area-inset-bottom));
    align-content: start;
  }
  .login-logo {
    width: 7.5rem;
    margin-bottom: 1.3rem;
  }
  .login-content h1 {
    font-size: 2.5rem;
  }
  .login-intro {
    margin: 0.45rem 0 1.4rem;
  }
}
@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .actions {
    grid-column: 1;
  }
  .page-header {
    align-items: flex-start;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 0.82rem;
  }
  .calendar th:first-child,
  .calendar td:first-child {
    min-width: 81px;
    width: 81px;
    padding: 0.3rem 0.45rem;
  }
  .toolbar,
  .filters {
    align-items: end;
  }
  :is(.toolbar, .filters) :is(input, select) {
    width: 100%;
  }
}
@media print {
  .sidebar,
  .toolbar,
  .actions,
  .filters,
  button:not(.booking) {
    display: none;
  }
  .workspace {
    display: block;
  }
  .main {
    padding: 0;
  }
  .panel,
  .card,
  .stat {
    break-inside: avoid;
    box-shadow: none;
  }
  .table-scroll,
  .calendar-scroll {
    overflow: visible;
  }
}
