:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #222b26;
  background: #f6f4ed;
  font-size: 15px;
  --green: #244735;
  --ink: #222b26;
  --muted: #58635a;
  --line: #e3e2d8;
  --paper: #fffef9;
  --soft: #eaf0e7;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ab6b33;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 2; top: -70px; left: 15px; padding: 12px; background: white; }
.skip:focus { top: 10px; }
.workspace { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; gap: 35px; padding: 29px 20px 23px;
  background: #20382c; color: #eff3ec; min-height: 100vh; position: sticky; top: 0; align-self: start;
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 0 4px; }
.brand strong { font: 24px Georgia, serif; white-space: nowrap; }
.brand small, .desks small { display: block; color: #c3d0c3; margin-top: 2px; font-size: 11px; }
.monogram {
  flex: 0 0 38px; height: 38px; border: 1px solid #adbcac; border-radius: 50%;
  display: grid; place-items: center; font: 25px Georgia, serif; color: #f5ddb4;
}
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px; text-decoration: none; color: #dce8dc; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: #365242; color: white; }
.sidebar .desks { border-top: 1px solid #476052; padding-top: 12px; }
.avatar {
  border-radius: 50%; width: 31px; height: 31px; display: inline-grid; place-items: center;
  background: #dae7d5; color: #294a32; font-family: Georgia, serif; flex: 0 0 31px;
}
.avatar.copper { background: #f3dfc3; color: #63391f; }
.location { margin-top: auto; color: #c3d0c3; font-size: 12px; line-height: 1.55; padding: 0 10px; }
main { min-width: 0; }
.topbar {
  border-bottom: 1px solid var(--line); min-height: 57px; padding: 12px clamp(18px, 4vw, 55px);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.today { text-align: right; }
.content, #notice { max-width: 1460px; margin: auto; padding: 27px clamp(18px, 4vw, 55px) 46px; }
#notice { padding-top: 15px; padding-bottom: 0; color: var(--green); font-weight: 600; }
#notice.error { color: #8b3426; }
.page-heading { display: flex; gap: 18px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: clamp(34px, 4.2vw, 52px)/1.03 Georgia, serif; letter-spacing: -.045em; margin-bottom: 8px; }
h2 { font: 27px/1.15 Georgia, serif; letter-spacing: -.025em; margin-bottom: 0; }
h3 { font-size: 15px; margin-bottom: 5px; }
.page-heading p, .subtitle { color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  border-radius: 7px; border: 1px solid transparent; padding: 9px 13px; min-height: 40px;
  font-size: 13px; font-weight: 650; white-space: nowrap;
}
.primary { background: var(--green); color: white; }
.primary:hover { background: #315a44; }
.secondary { background: var(--paper); border-color: #d6dace; color: var(--green); }
.secondary:hover { background: var(--soft); }
.compact { min-height: 33px; padding: 5px 8px; font-size: 12px; }
.button:disabled { opacity: .58; cursor: wait; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.metric { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; min-width: 0; }
.metric .label { font-size: 12px; color: var(--muted); font-weight: 650; }
.metric strong { color: var(--green); font: 34px/1.02 Georgia, serif; letter-spacing: -.055em; overflow-wrap: anywhere; }
.metric small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.panel { padding: 16px; margin-bottom: 15px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 15px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.room {
  border: 1px solid #dde3d7; background: #f1f5ee; border-radius: 8px; min-height: 65px;
  padding: 9px 10px; display: grid; gap: 3px; text-align: left; color: var(--ink); overflow-wrap: anywhere;
}
.room:hover { border-color: #638269; }
.room strong { font-weight: 650; }
.room small { font-size: 11px; color: #45574b; line-height: 1.35; }
.room.in-house { background: #e6eeed; border-color: #d2dfdc; }
.room.needs-cleaning { background: #faf0db; border-color: #efdfbb; }
.room.out-of-service { background: #f7e8e1; border-color: #efd8ca; }
.room.commissioning { background: #f1f0eb; border-color: #e5e3d9; }
.queue { margin: 0; padding: 0; list-style: none; }
.queue li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-top: 1px solid #eeece3; padding: 9px 0; }
.queue li:first-child { border-top: 0; padding-top: 0; }
.queue li:last-child { padding-bottom: 0; }
.queue strong { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.queue small, .empty { color: var(--muted); font-size: 12px; line-height: 1.5; }
.queue small { display: block; }
.empty { margin: 0; }
.pill {
  border-radius: 20px; padding: 3px 7px; background: var(--soft); color: #304f39;
  font-size: 11px; font-weight: 650; display: inline-block; white-space: nowrap;
}
.urgent, .pill.out-of-service { background: #f9e8e4; color: #823a2b; }
.pill.needs-cleaning { background: #faf0db; color: #61451e; }
.pill.commissioning, .pill.closed { background: #efeee8; color: #50594f; }
.banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 15px;
  padding: 9px 12px; border-radius: 8px; background: #fbefdb; color: #644725; font-size: 13px;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 10px 9px; border-bottom: 1px solid #eeece3; }
th { color: var(--muted); font-size: 12px; white-space: nowrap; }
td { overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.record-sub { color: var(--muted); display: block; font-size: 11px; margin-top: 3px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 110px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 650; min-width: 0; }
input, select, textarea {
  width: 100%; min-height: 39px; padding: 7px 9px; border-radius: 6px; border: 1px solid #bdc6ba;
  background: #fff; color: var(--ink); font-weight: 400;
}
.filters input, .filters select { width: auto; max-width: 100%; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.full { grid-column: 1 / -1; }
.field small { color: var(--muted); font-weight: 400; }
dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 19px;
  width: min(94vw, 520px); color: var(--ink); background: var(--paper);
}
dialog::backdrop { background: #16291f99; }
.dialog-header, .dialog-actions { display: flex; align-items: center; gap: 9px; }
.dialog-header { justify-content: space-between; margin-bottom: 14px; }
.dialog-actions { justify-content: flex-end; margin-top: 17px; }
.icon-button { border: 0; background: transparent; color: var(--green); font-size: 24px; line-height: 1; }
.form-error { color: #8b3426; margin: 11px 0 0; }
@media (max-width: 1070px) {
  .workspace { grid-template-columns: 198px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
}
@media (max-width: 880px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .workspace { display: block; }
  .sidebar { position: static; min-height: 0; gap: 9px; padding: 10px 12px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .sidebar nav a { padding: 6px 8px; font-size: 12px; }
  .sidebar .desks { padding-top: 5px; }
  .desks small { display: inline; margin: 0 0 0 5px; }
  .location { display: none; }
  .page-heading { flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
  .content { padding-top: 16px; }
  .topbar { min-height: 43px; }
  .room { padding: 7px; }
  .room strong { font-size: 13px; }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; }
}
