:root {
  --page: #f3f2ee; --paper: #fff; --ink: #33323a; --muted: #707070; --line: #deddd7;
  --brand: #8a854d; --brand-dark: #6f6a3c; --brand-soft: #eeece0; --charcoal: #3d4045;
  --charcoal-soft: #e9eaeb; --green: #27784a; --green-soft: #e5f3ea; --red: #b42318;
  --red-soft: #fbe9e7; --shadow: 0 18px 50px rgba(51,50,58,.09); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { display: flex; min-height: 100vh; flex-direction: column; font-family: "Open Sans", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--page); }
body::before { content: ""; display: block; height: 5px; background: var(--brand); }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 72rem; min-height: 92px; margin: 0 auto; padding: .7rem 1.5rem; background: var(--paper); }
body:not(.landing-page) .top { max-width: none; padding-inline: max(1.5rem, calc((100% - 68rem) / 2)); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { display: block; width: 178px; height: 70px; object-fit: contain; }
.portal-label { color: var(--brand-dark); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 1.2rem; }
.text-link { color: var(--charcoal); text-decoration: none; font-size: .88rem; font-weight: 700; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.text-link:hover { color: var(--brand-dark); }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 2.2rem 1.25rem 4rem; }
.wrap.narrow { max-width: 36rem; padding-top: 3rem; }
main { flex: 1; }
.hero { min-height: 390px; display: grid; align-items: center; background: linear-gradient(90deg,rgba(35,36,38,.88) 0%,rgba(35,36,38,.72) 42%,rgba(35,36,38,.12) 75%), url("/images/whelan-property-hero.jpg") center/cover no-repeat; }
.hero-copy { width: 100%; max-width: 72rem; margin: 0 auto; padding: 4.4rem 1.5rem; color: #fff; }
.landing h1 { font-size: clamp(2.35rem,5vw,4.2rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.06; margin: .45rem 0 1rem; max-width: 13ch; }
.eyebrow { margin: 0; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.hero .eyebrow { color: #d8d3a3; }
.lede, .fineprint { max-width: 43rem; color: var(--muted); line-height: 1.65; }
.lede { font-size: 1.08rem; margin: 0; }
.hero .lede { color: rgba(255,255,255,.86); max-width: 38rem; }
.portal-doors { padding-top: 0; }
.doors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin-top: -2.6rem; position: relative; }
.door { display: flex; min-height: 220px; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 1.7rem 1.8rem 1.5rem; text-decoration: none; box-shadow: var(--shadow); transition: transform 180ms ease,box-shadow 180ms ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(51,50,58,.14); }
.door h2 { font-size: 1.7rem; font-weight: 400; margin: .5rem 0 .55rem; }
.door p { margin: 0; color: var(--muted); line-height: 1.55; }
.door-kicker { color: var(--brand-dark); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.door-action { margin-top: auto; padding-top: 1.2rem; color: var(--brand-dark); font-size: .86rem; font-weight: 800; }
.fineprint { margin: 1.4rem 0 0; font-size: .88rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 1.7rem 1.75rem 1.8rem; box-shadow: var(--shadow); }
.card h1, .section-title { font-weight: 300; letter-spacing: -.025em; margin: 0; font-size: 2.1rem; }
h2.section-title { font-size: 1.45rem; font-weight: 400; }
#app > .card { max-width: 32rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sub { color: var(--muted); margin: .45rem 0 0; line-height: 1.5; }
.stack { display: grid; gap: .9rem; margin-top: 1.35rem; }
.field { display: grid; gap: .4rem; font-size: .88rem; }
.field span { font-weight: 700; }
input { min-height: 44px; font: inherit; color: inherit; background: #fff; border: 1px solid #c9c8c1; border-radius: 2px; padding: .7rem .8rem; }
input:focus-visible,button:focus-visible,a:focus-visible { outline: 3px solid rgba(138,133,77,.35); outline-offset: 2px; }
.btn,.btn-ghost,.btn-danger { min-height: 43px; font: inherit; font-size: .86rem; font-weight: 800; border-radius: 2px; padding: .75rem 1.15rem; cursor: pointer; border: 1px solid transparent; }
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border-color: #c9c8c1; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn[disabled],.btn-ghost[disabled],.btn-danger[disabled] { opacity: .55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.confirm-copy { flex-basis: 100%; margin: 0; }
.alert { background: var(--red-soft); color: #8a1c14; border-left: 4px solid var(--red); padding: .75rem .85rem; margin: .9rem 0 0; }
.shift-top { display: flex; align-items: center; gap: .8rem; }
.lamp { width: .95rem; height: .95rem; border-radius: 50%; background: var(--charcoal); box-shadow: 0 0 0 6px var(--charcoal-soft); flex: none; }
.lamp.online { background: var(--green); box-shadow: 0 0 0 6px var(--green-soft); }
.lamp.offline { background: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
.lamp.checked_out,.lamp.not_checked_in { background: var(--charcoal); box-shadow: 0 0 0 6px var(--charcoal-soft); }
.status-word { font-size: 2.3rem; font-weight: 300; margin: 1rem 0 .25rem; letter-spacing: -.03em; }
.times { display: flex; gap: 1.8rem; margin-top: 1.2rem; }
.times div { display: grid; gap: .18rem; }
.times strong { font-size: 1.1rem; }
.kicker { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.note { margin-top: 1.15rem; color: var(--muted); line-height: 1.55; font-size: .9rem; }
code { font-family: Consolas,"Cascadia Mono",monospace; font-size: .86em; background: var(--brand-soft); padding: .1rem .35rem; }
.board-head,.history-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.1rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .75rem; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .8rem; }
.live i,.pill i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; }
.live.down { background: var(--charcoal-soft); color: var(--charcoal); }
.clock { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: .8rem .95rem; }
.stat b { display: block; font-variant-numeric: tabular-nums; font-size: 1.7rem; font-weight: 400; }
.stat.online b { color: var(--green); }
.stat.offline b { color: var(--red); }
.stat span { color: var(--muted); font-size: .8rem; }
.legend { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .85rem; }
.table-wrap { background: var(--paper); border: 1px solid var(--line); overflow: auto; box-shadow: 0 10px 30px rgba(51,50,58,.06); }
table { width: 100%; border-collapse: collapse; }
th,td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8f7f4; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
tr[data-status="online"] { box-shadow: inset 3px 0 0 var(--green); }
tr[data-status="offline"] { box-shadow: inset 3px 0 0 var(--red); }
tr[data-status="checked_out"] { box-shadow: inset 3px 0 0 var(--charcoal); }
.name { font-weight: 700; }
.detail { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .48rem; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pill.online { color: var(--green); background: var(--green-soft); }
.pill.offline { color: var(--red); background: var(--red-soft); }
.pill.checked_out { color: var(--charcoal); background: var(--charcoal-soft); }
.pill.not_checked_in { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.history { margin-top: 1.8rem; }
.date-nav { display: flex; gap: .45rem; align-items: center; }
.empty { padding: 1rem; color: var(--muted); }
.footnote { color: var(--muted); font-size: .88rem; line-height: 1.55; margin-top: 1rem; }
.site-footer { padding: 1.2rem 1.5rem; color: #d3d3d3; background: var(--charcoal); text-align: center; font-size: .74rem; letter-spacing: .06em; }
@media (prefers-reduced-motion:no-preference) { .lamp.online,.pill.online i,.live:not(.down) i { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .42; } }
@media (max-width:800px) { .summary { grid-template-columns: 1fr 1fr; } .board-head,.history-head { flex-direction: column; align-items: flex-start; } }
@media (max-width:640px) {
  .top { min-height: 78px; padding: .45rem 1rem; } .brand img { width: 145px; height: 60px; }
  .top-actions .portal-label { display: none; } .text-link { padding-left: 0; border-left: 0; }
  .hero { min-height: 340px; background-position: 62% center; } .hero-copy { padding: 3.5rem 1.2rem 4.5rem; }
  .landing h1 { font-size: 2.6rem; } .doors,.summary { grid-template-columns: 1fr; } .doors { margin-top: -2rem; }
  .door { min-height: 205px; padding: 1.4rem; } .times { display: grid; grid-template-columns: 1fr; gap: .8rem; }
  .wrap { padding-inline: 1rem; } .date-nav { width: 100%; flex-wrap: wrap; }
  table,thead,tbody,tr,th,td { display: block; } thead { display: none; } tr { border-bottom: 1px solid var(--line); }
  td { border-bottom: 0; padding: .35rem 1rem; } td:first-child { padding-top: .9rem; } td:last-child { padding-bottom: .9rem; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem; }
}
