:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #243c38;
  background: #f5f6f2;
  font-size: 14px;
  --green: #154d43;
  --line: #e0e6df;
  --muted: #626e69;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d3a848;
  outline-offset: 3px;
}
.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #123e36;
  color: #d9e4dc;
  display: flex;
  flex-direction: column;
  padding: 34px 22px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 3px;
  font-size: 23px;
  font-weight: 600;
}
.brand b {
  font-weight: 300;
  color: #a9c8ad;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 11px;
  margin-top: 5px;
  color: #5a675f;
}
.brand-mark {
  width: 38px;
  height: 44px;
  border: 1px solid #a3bb91;
  border-radius: 16px 16px 4px 4px;
  display: grid;
  place-items: center;
  color: #d3b879;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9eb5a7;
  margin: 52px 14px 16px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 13px;
  color: #b9cec1;
}
nav .active {
  background: #2c584b;
  color: #fff;
  border: 1px solid #476e57;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.8;
}
.sidebar-bottom > p {
  margin: 22px 0;
  color: #d5dfd4;
}
.sidebar-bottom small {
  display: block;
  color: #a8bdaf;
  font-size: 11px;
}
.sidebar-bottom .avatar {
  float: left;
  margin-right: 10px;
}
.pill {
  border: 1px solid #54715a;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  color: #d6dfc8;
}
.workspace {
  margin-left: 242px;
}
.topbar {
  height: 76px;
  background: #fcfdf9;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.avatar {
  border: 1px solid #849d89;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: #2e594c;
  color: #dbe7d7;
  font-size: 11px;
}
.avatar.small {
  background: #ecf0e8;
  color: #345242;
  margin-left: 16px;
  width: 30px;
  height: 30px;
}
main {
  padding: 26px 40px;
  max-width: 1640px;
  margin: auto;
}
.demo-banner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #edeedc;
  border: 1px solid #e1e4cb;
  border-radius: 6px;
  padding: 11px 15px;
  color: #626d45;
  font-size: 11px;
}
.demo-banner strong {
  font-weight: 600;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 36px 0 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #5e6d57;
  margin: 0 0 10px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 37px;
  letter-spacing: -0.6px;
  line-height: 1.18;
  margin: 0 0 12px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.page-heading p:last-child {
  margin: 0;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 550;
}
.primary:hover {
  background: #216052;
}
.quiet,
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 12px;
  color: #36564a;
}
.quiet:hover,
.secondary:hover {
  background: #edf3ea;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metrics article {
  background: #fcfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metrics span {
  font-size: 11px;
  color: #627468;
}
.metrics strong {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}
.metrics small {
  font-size: 11px;
  color: var(--muted);
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.panel {
  background: #fcfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-heading > .muted {
  font-size: 11px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 16px;
  font-size: 11px;
  color: #657266;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ca17c;
}
.dot.ready {
  background: #82a282;
}
.dot.occupied {
  background: #476a8d;
}
.dot.dirty {
  background: #bca265;
}
.dot.blocked {
  background: #ac8076;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.room-card {
  border: 1px solid #dce5d8;
  border-radius: 6px;
  padding: 16px 12px;
  min-height: 117px;
  background: #f0f5ec;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  color: #284334;
}
.room-card strong {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}
.room-card small {
  font-size: 11px;
  color: #73826e;
}
.room-card .room-state {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.room-card.dirty,
.room-card.clean {
  background: #f7f3e8;
  border-color: #e9dfc8;
}
.room-card.blocked {
  background: #f5eeeb;
  border-color: #e5d9d2;
}
.room-card.occupied {
  background: #edf1f6;
  border-color: #d8e1e8;
}
.stay-list {
  margin-top: 20px;
}
.stay-row {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 19px 0;
  color: inherit;
}
.stay-row:hover {
  background: #f3f6ef;
}
.stay-row strong {
  display: block;
  font-weight: 550;
  font-size: 12px;
  margin-bottom: 7px;
}
.stay-row small {
  font-size: 11px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
}
.tag.green {
  background: #e6efdf;
  color: #577044;
}
.tag.amber {
  background: #f1ead5;
  color: #796232;
}
.tag.gray {
  background: #edf0ea;
  color: #5e6b61;
}
.readiness {
  background: #f0f3e9;
}
.readiness h2 {
  line-height: 1.2;
  margin: 12px 0;
}
.readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 15px 0;
  border-bottom: 1px solid #dce3d3;
}
.readiness-note {
  background: #e4eadb;
  padding: 15px;
  border-radius: 5px;
  margin-top: 22px;
  font-size: 11px;
}
.readiness-note p {
  font-size: 11px;
  line-height: 1.7;
  color: #596850;
  margin: 8px 0 0;
}
.events {
  margin-top: 18px;
}
.event {
  font-size: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.event time {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #636c61;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.notice {
  margin-bottom: 18px;
  background: #e7efdf;
  padding: 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}
.notice.error,
.form-error {
  color: #9a4032;
}
.notice.error {
  background: #f5e8e1;
}
.form-error {
  font-size: 12px;
  line-height: 1.6;
  min-height: 1px;
}
dialog {
  width: min(640px, calc(100% - 28px));
  max-height: 90dvh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  color: #243c38;
  background: #fcfdf9;
}
dialog::backdrop {
  background: #102e2680;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
  gap: 12px;
}
.close {
  border: 0;
  background: none;
  font-size: 28px;
  color: #74806f;
  padding: 0 7px;
}
.step {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.step p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.step .primary,
.step .secondary {
  margin-top: 8px;
}
.step-number {
  display: inline-grid;
  place-items: center;
  border: 1px solid #bfcdb7;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  margin-right: 8px;
  color: #657f59;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
}
input,
select {
  width: 100%;
  border: 1px solid #cfd9c9;
  border-radius: 5px;
  background: #fff;
  padding: 11px 12px;
  color: #294533;
  min-height: 42px;
}
label small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check {
  flex-direction: row;
  align-items: start;
  gap: 10px;
  line-height: 1.7;
}
.check input {
  width: 17px;
  min-height: 17px;
  margin: 3px 0;
  accent-color: #154d43;
  flex-shrink: 0;
}
.link-preview {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
  padding: 12px;
  border: 1px dashed #98ad87;
  background: #f0f4ea;
  border-radius: 5px;
  color: #345c42;
}
.guest-shell {
  max-width: 640px;
  padding: 32px 22px;
}
.guest-shell > .brand {
  margin: 12px 0 32px;
}
.guest-shell .brand b {
  color: #587254;
}
.guest-card {
  padding: 34px;
}
.guest-card h1 {
  font-size: 34px;
  margin: 16px 0;
}
.guest-card .demo-banner {
  display: block;
  line-height: 1.8;
  margin: 24px 0;
}
.guest-card .demo-banner span {
  display: block;
}
.guest-card .primary {
  width: 100%;
}
.guest-help {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 25px;
}
.guest-shell footer {
  justify-content: center;
}
.result-card {
  padding: 16px;
  background: #e8efdf;
  border: 1px solid #d4dfc8;
  border-radius: 6px;
  line-height: 1.8;
  font-size: 13px;
}
.pending-operation {
  padding: 16px;
  background: #f4ecd9;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.pending-operation button {
  margin-top: 10px;
}
@media (min-width: 1500px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .room-card {
    min-height: 136px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .main-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .metrics article {
    padding: 18px;
  }
  .room-card {
    min-height: 115px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 11px;
  }
  .brand-mark {
    height: 34px;
    width: 30px;
    font-size: 20px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 3px;
    overflow: auto;
    margin-top: 18px;
  }
  nav a {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
    font-size: 11px;
  }
  .top-right {
    font-size: 11px;
  }
  .top-right .avatar {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  .page-heading {
    align-items: start;
    margin: 28px 0;
    flex-direction: column;
  }
  h1 {
    font-size: 32px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metrics article {
    padding: 15px;
  }
  .metrics strong {
    font-size: 29px;
  }
  .main-grid > aside {
    display: block;
  }
  .panel {
    padding: 20px;
  }
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading > .muted {
    display: none;
  }
  .room-card {
    min-height: 112px;
  }
  .legend {
    gap: 10px;
    font-size: 11px;
  }
  .stay-row {
    grid-template-columns: 1fr;
  }
  .stay-row .tag {
    justify-self: start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
  .guest-card {
    padding: 23px;
  }
  .guest-card h1 {
    font-size: 30px;
  }
  .demo-banner {
    font-size: 11px;
  }
  .topbar .muted {
    font-size: 11px;
  }
}

.recovery-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  margin-bottom: 22px;
  border: 1px solid #d5e0cb;
  border-radius: 8px;
  background: #edf3e7;
}
.recovery-panel strong {
  font-size: 12px;
}
.recovery-panel p {
  font-size: 11px;
  line-height: 1.7;
  color: #5d6e55;
  margin: 6px 0 0;
}
#recovery-timer {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
  color: #45603c;
}
.recovery-panel[data-state="reconnecting"],
.recovery-panel[data-state="attention"],
.recovery-panel[data-state="sign_in"] {
  background: #f5efdc;
  border-color: #e8d9aa;
}
.contextual-help {
  border: 1px solid #d7e0cb;
  background: #f0f4e9;
  padding: 17px;
  margin: 15px 0;
  border-radius: 7px;
}
.contextual-help h3 {
  font-size: 13px;
}
.contextual-help ol {
  margin: 12px 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .recovery-panel {
    flex-wrap: wrap;
  }
  .recovery-panel > div {
    width: 100%;
  }
}

.desk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.phone-tabs {
  display: none;
}
.phone-connection {
  padding: 14px;
  margin: 0 0 16px;
  border: 1px solid #ddc69a;
  background: #f6ecd5;
  color: #735c36;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.phone-connection[hidden] {
  display: none;
}
#phone-dialog {
  line-height: 1.8;
}
#phone-dialog h3 {
  margin-top: 24px;
}
#phone-dialog p,
#phone-dialog li {
  font-size: 13px;
}
@media (max-width: 760px) {
  .sidebar nav {
    display: none;
  }
  .phone-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 3;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fcfdf9;
    border-top: 1px solid #d0dccb;
    box-shadow: 0 -4px 20px #123e3610;
  }
  .phone-tabs a,
  .phone-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px;
    font-size: 12px;
    border: 0;
    background: transparent;
    color: #285446;
  }
  .phone-tabs a:focus-visible,
  .phone-tabs button:focus-visible {
    background: #e8efdf;
  }
  body[data-page="staff"] .workspace {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .desk-actions {
    width: 100%;
  }
  button,
  .secondary,
  .primary,
  .quiet {
    min-height: 44px;
  }
  input,
  select {
    font-size: 16px;
  }
  .close {
    min-width: 44px;
  }
  main {
    padding-inline-start: max(16px, env(safe-area-inset-left));
    padding-inline-end: max(16px, env(safe-area-inset-right));
  }
  dialog {
    max-height: calc(
      94dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
  section[id] {
    scroll-margin-bottom: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.folder-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.folder-tabs [aria-pressed="true"] {
  background: #154d43;
  border-color: #154d43;
  color: white;
}
#stay-folders .section-heading label {
  min-width: 170px;
}
.step summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.step details button,
details.step button {
  margin-inline-end: 8px;
}
@media (max-width: 760px) {
  #stay-folders .section-heading {
    flex-wrap: wrap;
  }
  #stay-folders .section-heading label {
    width: 100%;
  }
  .folder-tabs button {
    flex: 1 1 90px;
  }
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.lesson-card {
  padding: 18px;
  border: 1px solid #dce5d8;
  border-radius: 7px;
  background: #f3f6ee;
}
#training-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #123e36;
  border-radius: 6px;
  margin: 18px 0;
}
#training-dialog {
  width: min(920px, calc(100% - 28px));
}
#training-transcript {
  font-size: 13px;
  line-height: 1.9;
}

#evidence-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
}
#trace-summary .section-heading label {
  min-width: 170px;
}
@media (max-width: 760px) {
  #trace-summary .section-heading {
    flex-wrap: wrap;
  }
  #trace-summary .section-heading label {
    width: 100%;
  }
}

body[data-workspace="OS"] {
  --workspace-color: #654714;
  --workspace-tint: #f5edda;
}
body[data-workspace="MS"] {
  --workspace-color: #174b75;
  --workspace-tint: #e5eff7;
}
body[data-workspace="SAS"] {
  --workspace-color: #174d3b;
  --workspace-tint: #e5f1e8;
}
body[data-workspace="SS"] {
  --workspace-color: #693867;
  --workspace-tint: #f1e7f3;
}
body[data-workspace] .sidebar {
  background: var(--workspace-color);
}
.workspace-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--workspace-color, #174b75);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--workspace-tint, #e5eff7);
  color: var(--workspace-color, #174b75);
}
.workspace-identity strong {
  display: block;
  font-size: 19px;
  letter-spacing: 1px;
}
.workspace-identity small {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
  margin-top: 3px;
}
.workspace-icon {
  font-size: 30px;
}
.topbar {
  gap: 16px;
  height: auto;
  min-height: 86px;
  padding-block: 12px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }
  .workspace-identity {
    padding: 7px 12px;
  }
  .workspace-identity strong {
    font-size: 18px;
  }
  .workspace-identity small {
    font-size: 11px;
  }
  .topbar > .top-right {
    margin-inline-start: auto;
  }
}

body[data-surface="ivory"] {
  --page-bg: #f7f5ef;
  --surface: #fffdf8;
  --line: #e3dfd5;
  --muted: #586b62;
}
body[data-surface="pearl"] {
  --page-bg: #f3f5f5;
  --surface: #ffffff;
  --line: #dce3e1;
  --muted: #586b62;
}
body[data-surface="mist"] {
  --page-bg: #eff4f1;
  --surface: #f9fcf9;
  --line: #d5e1d9;
  --muted: #52685d;
}
body[data-surface] {
  background: var(--page-bg);
}
body[data-surface] .workspace {
  background: var(--page-bg);
}
body[data-surface] .panel,
body[data-surface] .metrics article,
body[data-surface] .topbar,
body[data-surface] dialog,
body[data-surface] .phone-tabs {
  background: var(--surface);
}
body[data-surface] .muted,
body[data-surface] .metrics small {
  color: var(--muted);
}
body[data-workspace] .brand b {
  color: #fffdf0;
}
body[data-workspace] .primary {
  background: var(--workspace-color);
  border-color: var(--workspace-color);
}
.surface-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}
.surface-choice {
  border: 1px solid #c8d3c4;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: #294537;
  text-align: left;
  min-width: 0;
}
.surface-choice[aria-pressed="true"] {
  outline: 2px solid var(--workspace-color, #174b75);
  outline-offset: 3px;
}
.surface-choice strong,
.surface-choice small {
  display: block;
}
.surface-choice strong {
  margin: 13px 0 8px;
  font-size: 12px;
}
.surface-choice small {
  color: #586b62;
  font-size: 11px;
  line-height: 1.7;
}
.surface-swatch {
  display: block;
  height: 64px;
  border: 1px solid #d4ddcf;
  border-radius: 6px;
  box-shadow: inset 13px 0 0 #375c50;
}
.ivory .surface-swatch {
  background: #f7f5ef;
}
.pearl .surface-swatch {
  background: #f3f5f5;
}
.mist .surface-swatch {
  background: #eff4f1;
}
@media (max-width: 520px) {
  .surface-choices {
    grid-template-columns: 1fr;
  }
  .surface-choice {
    display: grid;
    grid-template-columns: 65px 1fr;
    column-gap: 16px;
    align-items: center;
  }
  .surface-swatch {
    grid-row: span 2;
    height: 62px;
  }
  .surface-choice strong {
    margin: 4px 0;
  }
  .surface-choice small {
    margin: 0;
  }
}

.optional-detail > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 16px 0 5px;
  font-size: 12px;
  color: var(--workspace-color, #174b75);
  font-weight: 650;
}

/* Approved role palettes: entire surfaces and controls, independent of status. */
body[data-workspace="OS"] { --role-canvas:#f3eee4; --role-panel:#fcf8ef; --role-line:#ded1bc; --role-ink:#44372b; --role-nav:#44352b; --role-accent:#776039; --role-soft:#eee3ce; }
body[data-workspace="MS"] { --role-canvas:#edf1f5; --role-panel:#f9fbfd; --role-line:#cfdbe5; --role-ink:#293f51; --role-nav:#2b4054; --role-accent:#496780; --role-soft:#e0e9f0; }
body[data-workspace="SAS"] { --role-canvas:#edf1e8; --role-panel:#fafbf4; --role-line:#d2ddca; --role-ink:#294336; --role-nav:#244a3b; --role-accent:#4d6d56; --role-soft:#e0e9d9; }
body[data-workspace="SS"] { --role-canvas:#f5edf0; --role-panel:#fff9fb; --role-line:#e3d1dc; --role-ink:#51394b; --role-nav:#50354a; --role-accent:#795b76; --role-soft:#eee0e9; }
body[data-workspace] { --workspace-color:var(--role-accent); --workspace-tint:var(--role-soft); --page-bg:var(--role-canvas); --surface:var(--role-panel); --line:var(--role-line); color:var(--role-ink); background:var(--role-canvas); }
body[data-workspace] .workspace { background:var(--role-canvas); }
body[data-workspace] .sidebar { background:var(--role-nav); }
body[data-workspace] .panel, body[data-workspace] .metrics article, body[data-workspace] .topbar, body[data-workspace] dialog, body[data-workspace] .phone-tabs { background:var(--role-panel); border-color:var(--role-line); }
body[data-workspace] .primary { background:var(--role-accent); border-color:var(--role-accent); color:#fff; }
body[data-workspace] .secondary, body[data-workspace] .quiet { background:var(--role-soft); border-color:var(--role-line); color:var(--role-ink); }
body[data-workspace] .sidebar nav a.active { background:var(--role-soft); color:var(--role-ink); }
body[data-workspace] input, body[data-workspace] select, body[data-workspace] textarea { background:var(--role-panel); color:var(--role-ink); border-color:var(--role-line); }
.brand-logo { object-fit:contain; padding:4px; background:#fcfaf5; border-radius:5px; width:38px; height:48px; }
/* Surface preference changes material depth without replacing role identity. */
body[data-workspace][data-surface="pearl"] .workspace { background:color-mix(in srgb,var(--role-canvas) 65%,white); }
body[data-workspace][data-surface="mist"] .workspace { background:color-mix(in srgb,var(--role-canvas) 92%,var(--role-soft)); }
/* Fixed operational semantics across every palette. */
body[data-workspace] .room-card { background:var(--role-panel); border-color:var(--role-line); color:var(--role-ink); }
body[data-workspace] .room-card .room-state { color:#315d3d; background:#e7efe5; padding:6px; border-radius:4px; }
body[data-workspace] .room-card.dirty .room-state { color:#923e3e; background:#f5e6e3; }
body[data-workspace] .room-card.clean .room-state { color:#776018; background:#f5f0da; }
body[data-workspace] .room-card.occupied .room-state { color:#344655; background:#e8edf1; }
body[data-workspace] .room-card.blocked { border:1px solid #ac4444; box-shadow:0 0 7px #ac444430; }
body[data-workspace] .room-card.blocked .room-state { color:#923737; background:#fae9e6; }
body[data-workspace] .room-card.blocked .room-state::before { content:'✕'; font-size:15px; font-weight:700; }
/* Account-scoped approved collection; fixed status chips retain their semantics. */
body[data-theme] { --role-canvas:var(--theme-canvas); --role-panel:var(--theme-panel); --role-ink:var(--theme-ink); --role-nav:var(--theme-nav); --role-accent:var(--theme-accent); --role-line:var(--theme-line); --role-soft:var(--theme-nav); --muted:var(--theme-ink); color:var(--theme-ink); }
body[data-theme] .workspace { background:var(--theme-canvas)!important; }
body[data-theme] .sidebar { color:var(--theme-ink); }
body[data-theme] .sidebar nav a,body[data-theme] .brand,body[data-theme] .brand b,body[data-theme] .quiet,body[data-theme] .secondary { color:var(--theme-ink); }
body[data-theme] .primary { color:var(--theme-canvas); }
body[data-theme] .muted,body[data-theme] .panel h2,body[data-theme] .metrics,body[data-theme] .metrics small,body[data-theme] .room-card small { color:var(--theme-ink); }
body[data-theme] .brand-logo { background:transparent; color:var(--theme-accent); }
.vector-brand svg { width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--theme-accent) 25%,transparent)); }
body[data-theme] .surface-choice[aria-pressed="true"],body[data-theme] .sidebar nav a.active { box-shadow:0 0 8px color-mix(in srgb,var(--theme-accent) 30%,transparent); }
body[data-theme] .stay-row { background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-line); }

#login-form label[hidden] { display:none; }

#login-form[hidden],#release-panel[hidden] { display:none; }

.device-approval-qr { width:224px;height:224px;max-width:100%;background:#fff;padding:12px;margin:16px 0; }

.room-guide { background: #f7f5fa; color: #39354b; }
.room-guide .guest-card { background: #fefcff; border-color: #e8e1ef; }
.room-guide-logo { width: 38px; height: 48px; object-fit: contain; }
.guest-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.guest-action-grid button { white-space: normal; min-height: 56px; background: #eee8f4; color: #57456e; border: 1px solid #ded2e9; }
.room-guide input, #guest-service-desk input { max-width: 100%; min-width: 0; }
.room-guide [hidden] { display: none !important; }

.guest-completion { background: #eaf3ed; border: 1px solid #bcd6c6; color: #294a36; border-radius: 14px; padding: 16px; margin: 16px 0; }

.location-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.location-form label { display: grid; gap: 6px; }
.location-form input,.location-form select { width: 100%; min-width: 0; }
@media (max-width: 620px) { .location-form { grid-template-columns: 1fr; } }

/* Compact room list is the default, including on phones. */
#room-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
#room-grid .room-card{display:grid;grid-template-columns:48px minmax(100px,1fr) minmax(90px,auto) auto;align-items:center;gap:8px;padding:8px 10px;min-height:50px;border-radius:5px}
#room-grid .room-card strong{font-family:inherit;font-size:16px;font-weight:600}
#room-grid .room-card small{font-size:11px;overflow-wrap:anywhere}
#room-grid .room-card .room-state{margin-top:0;font-size:11px}
#room-grid .room-card button{font-size:11px;padding:7px 9px;min-height:36px}
@media(max-width:600px){#room-grid .room-card{grid-template-columns:42px minmax(80px,1fr) auto;gap:6px;min-height:52px}#room-grid .room-card button{grid-column:2/4;justify-self:end;min-height:44px}#room-grid .room-card small{font-size:11px}#room-grid .room-card .room-state{font-size:11px}}

#integration-setup select { max-width: 100%; }
#integration-consent { width: auto; min-height: 1.25rem; margin-inline-end: .5rem; }
#integration-setup button { margin: .5rem .5rem .5rem 0; }
#integration-setup .room-card { margin-block: 1rem; }
body[data-workspace] #room-grid .room-card [data-cleaning-badge]{color:#776018;background:#f5f0da;white-space:normal}
#cleaning-work .message-card{padding:10px;margin-block:8px}
#cleaning-work button{min-height:44px;margin:4px}
#cleaning-work select,#cleaning-work input{max-width:100%;min-height:44px}
#cleaning-work form{display:flex;flex-wrap:wrap;gap:8px}

/* Service status notices: staff banner and in-room guest portal. */
.service-status{display:grid;gap:.6rem;margin:0 0 1rem}
.service-notice{border:1px solid #d9b45a;border-left:6px solid #c58a12;background:#fff9ec;color:#3b2a06;border-radius:12px;padding:.75rem 1rem}
.service-notice h2{margin:.2rem 0;font-size:1.05rem}
.service-notice p{margin:.25rem 0}
.service-notice.monitoring{border-color:#9cc7b1;border-left-color:#2f7d58;background:#f1faf5;color:#173b2a}
.service-notice.investigating{border-left-color:#a86b00}
.service-notice.overdue{border-left-color:#b42318;background:#fff3f1}
.service-timer{font-weight:600;font-variant-numeric:tabular-nums}
.service-post summary{cursor:pointer;font-weight:600}
.service-post form{display:grid;gap:.5rem;margin-top:.5rem}
.service-post textarea{min-height:4.5rem}
.room-guide #guest-service-notices{display:grid;gap:.5rem;margin-bottom:1rem}
.service-field{display:grid;gap:.25rem}
#stay-rates-terms{display:grid;gap:.6rem}
#stay-rates-terms .night-rates{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr))}
#stay-rates-terms .night-rates p{grid-column:1/-1}
.terms-text{white-space:pre-wrap;font:inherit;background:#f7f8f6;border:1px solid #dfe5e0;border-radius:10px;padding:.75rem;max-height:16rem;overflow:auto}
.terms-pending{border-left:4px solid #c58a12;padding-left:.75rem;display:grid;gap:.5rem}
.terms-admin{display:grid;gap:.5rem}
.guest-terms{display:grid;gap:.5rem;margin:1rem 0}
.service-field[hidden],.terms-admin[hidden],.group-bill [hidden]{display:none}
.schedule-nav{display:flex;gap:.5rem;justify-content:space-between}.schedule-day{padding:.5rem 0;border-bottom:1px solid rgba(0,0,0,.08);display:grid;gap:.25rem}
.schedule-shift{display:flex;gap:.5rem;align-items:center;justify-content:space-between}.schedule-shift.cancelled{opacity:.55;text-decoration:line-through}
.folio-row{display:grid;gap:.35rem;padding:.4rem 0;border-bottom:1px solid rgba(0,0,0,.08)}
#stay-changes .panel-status{position:sticky;top:0;z-index:2;background:var(--panel,#f7f9f8);padding:.5rem 0;margin:0;font-weight:600}
#stay-changes .panel-status:empty{display:none}
#stay-changes details.subsection{border-top:1px solid rgba(0,0,0,.08);padding:.4rem 0}
#stay-changes details.subsection>summary{cursor:pointer;font-weight:600;padding:.3rem 0}
#stay-changes details.subsection hr:first-child{display:none}

#stay-changes .statement{border:1px solid currentColor;border-radius:8px;padding:12px;margin:12px 0;outline:none}
#stay-changes .statement table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
#stay-changes .statement td{padding:4px 0;border-bottom:1px solid rgba(127,127,127,.25);vertical-align:top}
#stay-changes .statement td.amount{text-align:right;white-space:nowrap;padding-left:12px}
#stay-changes .statement tr.detail td{opacity:.75;font-size:.9em;padding-left:12px}
#stay-changes .statement tr.subtotal td,#stay-changes .statement tr.total td{font-weight:600}
#stay-changes .statement tr.total td{border-top:2px solid currentColor;border-bottom:0}
#stay-changes .statement-actions{display:flex;gap:8px;flex-wrap:wrap}
@media print{body.printing-statement *{visibility:hidden}body.printing-statement #stay-changes .statement,body.printing-statement #stay-changes .statement *{visibility:visible}body.printing-statement #stay-changes .statement{position:absolute;inset:0 auto auto 0;width:100%;border:0;color:#000;background:#fff}body.printing-statement .statement-actions{display:none}}

#daily-report .daily-sheet{margin-top:12px}
#daily-report .report-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}
#daily-report .report-tile{border:1px solid rgba(127,127,127,.35);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:2px}
#daily-report .report-tile strong{font-size:1.25em;font-variant-numeric:tabular-nums}
#daily-report table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
#daily-report td{padding:4px 0;border-bottom:1px solid rgba(127,127,127,.25)}
#daily-report td.amount{text-align:right;white-space:nowrap;padding-left:12px}
#daily-report tr.total td{font-weight:600}#daily-report tr.section td{font-weight:600;padding-top:12px;border-bottom:0}
@media (min-width:700px){#daily-report .report-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media print{body.printing-report *{visibility:hidden}body.printing-report #daily-report .daily-sheet,body.printing-report #daily-report .daily-sheet *{visibility:visible}body.printing-report #daily-report .daily-sheet{position:absolute;inset:0 auto auto 0;width:100%;color:#000;background:#fff}body.printing-report .statement-actions{display:none}}
/* Theme-aware surfaces and secondary text: the light-mode defaults above are hard-coded,
   so every account theme (especially dark ones) maps them to its own palette to keep
   WCAG AA contrast (checked by tests/test_accessibility_audit). */
body[data-theme] .lesson-card,body[data-theme] .notice,body[data-theme] .recovery-panel,body[data-theme] .readiness-note { background:var(--theme-nav); color:var(--theme-ink); border-color:var(--theme-line); }
body[data-theme] .eyebrow,body[data-theme] .legend span,body[data-theme] footer,body[data-theme] footer span,body[data-theme] small[data-role-label],
body[data-theme] #business-date,body[data-theme] .metrics article span,body[data-theme] .readiness-note p,body[data-theme] #recovery-description,
body[data-theme] .lesson-card .muted,body[data-theme] .lesson-card h3,body[data-theme] .notice *,body[data-theme] .recovery-panel *,body[data-theme] #recovery-timer { color:color-mix(in srgb,var(--theme-ink) 82%,var(--theme-panel)); }
body[data-theme] .phone-tabs a,body[data-theme] .phone-tabs button { color:var(--theme-ink); }

#receivables .report-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}
#receivables .report-tile{border:1px solid rgba(127,127,127,.35);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:2px}
#receivables .report-tile strong{font-size:1.2em;font-variant-numeric:tabular-nums}
#receivables .invoice-card{border:1px solid rgba(127,127,127,.35);border-radius:8px;padding:12px;margin:10px 0}
#receivables .invoice-card h3{margin:0 0 4px}
/* Panel actions without an explicit style get the primary button look instead of the browser default. */
.panel button:not([class]) { background:var(--green); color:#fff; border:1px solid var(--green); border-radius:6px; padding:10px 16px; font-size:12px; font-weight:550; min-height:40px; }
.panel button:not([class]):hover { background:#216052; }
body[data-theme] .panel button:not([class]) { background:var(--theme-accent); border-color:var(--theme-accent); color:var(--theme-canvas); }
body[data-theme] .sidebar .nav-label,body[data-theme] .sidebar .pill,body[data-theme] .sidebar-bottom p,body[data-theme] .sidebar-bottom small { color:color-mix(in srgb,var(--theme-ink) 85%,var(--theme-nav)); border-color:var(--theme-line); }

#portfolio .invoice-card{border:1px solid rgba(127,127,127,.35);border-radius:8px;padding:12px;margin:10px 0}#portfolio .invoice-card h3{margin:0 0 4px}#portfolio .portfolio-total{font-weight:600}
/* Online check-in (guest phone page) */
.checkin-shell .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ci-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0; }
.ci-summary dt { font-size: 12px; color: var(--muted); }
.ci-summary dd { margin: 2px 0 0; font-weight: 600; }
.ci-steps { display: flex; gap: 8px; padding: 0; list-style: none; margin: 0 0 22px; flex-wrap: wrap; }
.ci-steps li { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: #eef2ea; color: #39503f; }
.ci-steps li[aria-current="step"] { background: #123e36; color: #fff; }
.ci-steps li.done::before { content: "✓ "; }
.ci-form { display: grid; gap: 10px; margin-top: 8px; }
.ci-form h2 { font-size: 20px; margin: 4px 0 6px; }
.ci-form input[type="time"], .ci-form input[type="number"] { min-height: 44px; }
.ci-check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; margin: 6px 0; }
.ci-check input { min-width: 22px; min-height: 22px; margin-top: 2px; }
.ci-terms-body { max-height: 260px; overflow: auto; white-space: pre-wrap; padding: 12px; border: 1px solid #d4dfc8; border-radius: 6px; background: #fbfcf9; font-size: 14px; line-height: 1.6; }
.ci-frame { width: 100%; min-height: 220px; border: 1px solid #d4dfc8; border-radius: 6px; background: #fff; }
.checkin-shell .primary { min-height: 48px; }
@media (max-width: 420px) { .checkin-shell .guest-card { padding: 22px; } .ci-summary { grid-template-columns: 1fr 1fr; } }
.checkin-shell [hidden] { display: none !important; }
.checkin-shell h1:focus, .checkin-shell h2:focus { outline: none; }
.checkin-shell .ci-check, #online-checkin .ci-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.checkin-shell .ci-check input, #online-checkin .ci-check input { width: 22px; min-width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; }
.checkin-progress { padding: 14px 16px; border: 1px solid var(--role-line, #d4dfc8); border-radius: 6px; background: var(--role-panel, #f6f8f2); color: var(--role-ink, inherit); line-height: 1.7; font-size: 13px; }
.checkin-progress a { color: inherit; font-weight: 600; }
body[data-theme] .checkin-progress { background: var(--theme-panel); color: var(--theme-ink); border-color: var(--theme-line); }
/* 6 p.m. check-out reminder: stays on screen until every due guest is checked out */
.departure-alert { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  background: #fff7e6; color: #3d2a00; border: 2px solid #b26a00; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.departure-alert[hidden] { display: none !important; }
.departure-alert-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.departure-alert h2 { font-size: 16px; margin: 0; color: #3d2a00; }
.departure-alert ul { margin: 8px 0; padding-left: 18px; }
.departure-alert li { margin: 4px 0; }
.departure-alert button { min-height: 40px; }
.departure-alert .secondary { color: #3d2a00; border-color: #b26a00; background: transparent; }
.departure-alert-detail { color: #5c3f00; }
.departure-alert.collapsed { width: auto; }
body[data-theme] .departure-alert, body[data-theme] .departure-alert h2, body[data-theme] .departure-alert .secondary { color: #3d2a00; }
body[data-theme] .departure-alert .departure-alert-detail { color: #5c3f00; }
@media print { .departure-alert { display: none !important; } }
body.has-departure-alert main { padding-bottom: 280px; }
#card-folios .statement{border:1px solid currentColor;border-radius:8px;padding:12px;margin:12px 0;outline:none}
#card-folios .statement table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
#card-folios .statement td{padding:4px 0;border-bottom:1px solid rgba(127,127,127,.25)}
#card-folios .statement td.amount{text-align:right;white-space:nowrap;padding-left:12px}
#card-folios .statement tr.subtotal td,#card-folios .statement tr.total td{font-weight:600}
#card-folios .statement tr.total td{border-top:2px solid currentColor;border-bottom:0}
#card-folios .card-folio-row{margin:0 0 8px}#card-folios .card-folio-row p{margin:0 0 4px}
@media print{body.printing-folio *{visibility:hidden}body.printing-folio #card-folios .statement,body.printing-folio #card-folios .statement *{visibility:visible}body.printing-folio #card-folios .statement{position:absolute;inset:0 auto auto 0;width:100%;border:0;color:#000;background:#fff}body.printing-folio .statement-actions{display:none}}
.ci-choices{border:0;margin:0 0 8px;padding:0}.ci-choices legend{font-weight:600;margin-bottom:4px}
.billing-banner{margin:0 0 12px;padding:10px 14px;border-radius:8px;border:2px solid currentColor;font-weight:600}
