:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #162724;
  background: #f4f7f6;
  --ink: #162724;
  --muted: #4c645d;
  --line: #d7e2de;
  --green: #0e5947;
  --dark: #102d26;
  --paper: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
form, dl, dd { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.07; letter-spacing: -.047em; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: .18rem solid #217960; outline-offset: .2rem; }
.topbar :focus-visible { outline-color: #b4efcb; }

.wrap { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.topbar { background: var(--dark); color: #fff; }
.bar-content, .identity, .session { display: flex; align-items: center; gap: 1rem; }
.bar-content { min-height: 4.5rem; justify-content: space-between; flex-wrap: wrap; padding-block: .75rem; }
.wordmark { color: #fff; font-weight: 800; letter-spacing: .07em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #a9e4c1; }
.simulation {
  border: 1px solid #76a394;
  border-radius: .35rem;
  padding: .2rem .45rem;
  color: #d4f3e1;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .065em;
}
.session { font-size: .9rem; }
.session small { display: block; font-size: .82rem; color: #c1dcd3; }
.secondary {
  border: 1px solid #76a394;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: transparent;
  font-size: .875rem;
}
.secondary:hover { background: #23483e; }
main.wrap { padding-block: clamp(2rem, 5vw, 4rem); }

.login-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  max-width: 57rem;
  margin: clamp(0rem, 3vw, 3rem) auto;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--paper);
}
.login-panel, .demo-panel { padding: clamp(1.45rem, 4vw, 3rem); }
.login-form { display: grid; gap: .5rem; margin-top: 1.75rem; }
.login-form label { font-size: .9rem; font-weight: 650; }
.login-form input {
  width: 100%;
  min-height: 2.8rem;
  margin-bottom: .55rem;
  border: 1px solid #8fa79f;
  border-radius: .5rem;
  padding: .65rem .7rem;
  background: var(--paper);
}
.primary {
  border: 1px solid var(--green);
  border-radius: .5rem;
  margin-top: .4rem;
  padding: .75rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.primary:hover { background: #0a4336; }
.error { padding: .7rem; background: #fdece6; color: #802e16; border-radius: .5rem; }
.demo-panel { background: #e5f1eb; }
.demo-accounts { margin-block: 1.2rem; }
.demo-accounts > div {
  display: flex;
  justify-content: space-between;
  gap: .625rem;
  align-items: baseline;
  border-bottom: 1px solid #c6d8cf;
  padding-block: .8rem;
}
.demo-panel p { line-height: 1.65; }
.demo-panel code { padding: .12rem .35rem; border-radius: .25rem; background: #cfe6d9; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.8rem; }
.metrics > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .85rem 1.05rem;
  background: var(--paper);
}
.metrics dt, .facts dt { font-size: .9rem; color: var(--muted); }
.metrics dd { font-size: 1.65rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.park-grid, .detail-grid { display: grid; gap: 1.25rem; align-items: start; margin-top: 1.6rem; }
.park-grid { grid-template-columns: minmax(0, 2.8fr) minmax(14rem, 1fr); }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); }
.panel h2 { padding: 1.2rem; }
.panel > p { padding: 0 1.2rem 1rem; }
.table-scroll { overflow-x: auto; border-radius: 0 0 .85rem .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .85rem .8rem; }
tr > :first-child { padding-left: 1.2rem; }
tr > :last-child { padding-right: 1.2rem; }
thead th { background: #edf4f0; font-size: .875rem; font-weight: 650; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td { font-size: .93rem; }
.container-id { white-space: nowrap; font-weight: 700; }
.badge { display: inline-block; padding: .25rem .55rem; border-radius: .4rem; font-size: .875rem; font-weight: 650; }
.rented { background: #e5ecee; color: #304b53; }
.available { background: #def1e5; color: #214e39; }
.record-list { list-style: none; margin: 0; padding: 0 1.2rem .45rem; }
.record-list li { border-top: 1px solid var(--line); padding-block: .8rem; }
.record-list a { font-weight: 650; }
.record-list span { display: block; margin-top: .3rem; font-size: .875rem; color: var(--muted); }

.backlink { margin-bottom: .9rem; }
.facts { padding: 0 1.2rem 1.2rem; }
.facts > div { border-top: 1px solid var(--line); padding-top: .8rem; }
.facts > div + div { margin-top: .8rem; }
.facts dd { margin-top: .35rem; }
.observation { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.observation time, .muted { color: var(--muted); font-size: .875rem; }
.message-panel p { margin-block: 1rem; }

@media (max-width: 50rem) {
  .park-grid { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .login-layout, .detail-grid { grid-template-columns: 1fr; }
  .metrics { gap: .45rem; }
  .metrics > div { flex-direction: column; align-items: flex-start; padding: .55rem .65rem; }
}
