/* Native, local PMS experience. Keep every selector inside this chapter. */
.pms-page .pms-flow-section > .site-shell {
  width: min(1600px, calc(100% - 64px));
}
.pms-demo {
  --demo-ink: #22262a;
  --demo-muted: #626a71;
  --demo-line: #dce0e3;
  --demo-paper: #f5f6f7;
  --demo-violet: #624bc6;
  --demo-violet-deep: #4b36a9;
  --demo-violet-pale: #f0ecfc;
  --demo-dark: #1c2120;
  --demo-green: #d8efb6;
  --demo-green-ink: #344c22;
  --demo-teal: #3d8d89;
  --demo-warm: #f2cf86;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: clip;
  border: 1px solid #d8ddda;
  border-radius: 30px;
  background: #f4f5f2;
  color: var(--demo-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  scroll-margin-top: 112px;
  isolation: isolate;
  box-shadow: none;
}
.pms-demo *, .pms-demo *::before, .pms-demo *::after { box-sizing: border-box; }
.pms-demo [hidden] { display: none !important; }
.pms-demo :is(h2, h3, h4, p, ul) { margin: 0; }
.pms-demo :is(button, input, select, output) { font: inherit; }
.pms-demo button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--demo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--demo-ink);
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.pms-demo button:hover:not(:disabled) { border-color: #a69acb; background: #f7f5fc; }
.pms-demo button:active:not(:disabled) { background: #e9e3f8; }
.pms-demo button:disabled { opacity: .45; cursor: not-allowed; }
.pms-demo :is(button, input, select, a):focus-visible {
  outline: 3px solid #7962dd;
  outline-offset: 3px;
}
.pms-demo button svg { flex: none; width: 18px; height: 18px; }
.pms-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: var(--demo-dark);
  color: #f4f5ef;
}
.pms-demo-header :is(.pms-demo-kicker, .pms-demo-header-kicker),
.pms-demo-header > div > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: #c1c9bb;
  font: 500 11px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .17em;
}
.pms-demo-header h2 { font-size: clamp(23px, 2.1vw, 32px); font-weight: 500; line-height: 1.4; letter-spacing: -.035em; }
.pms-demo-header > :is(small, span), .pms-demo-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #515a4f;
  border-radius: 99px;
  color: #d9e0d2;
  font-size: 12px;
  line-height: 1.5;
}
.pms-demo-header > small > i { width: 6px; height: 6px; border-radius: 50%; background: #b4d28d; box-shadow: 0 0 0 4px #b4d28d12; }
.pms-demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b4d28d; box-shadow: 0 0 0 4px #b4d28d12; }
.pms-demo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(20px, 3vw, 36px);
}
.pms-demo-workspace > section { min-width: 0; scroll-margin-top: 112px; }
.pms-demo-workspace > section:focus-visible { outline: none; }
.pms-demo-workspace > section:focus-visible > :is(.pms-live-room-title, .pms-workbench-heading) h3 {
  text-decoration: underline 2px #7962dd;
  text-underline-offset: 5px;
}
.pms-live-room-title, .pms-workbench-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.pms-live-room-title h3, .pms-workbench-heading h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -.04em;
}
.pms-live-room-title > div > small, .pms-workbench-heading > div > small {
  display: block;
  margin-bottom: 5px;
  color: #536149;
  font: 11px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
}
.pms-room-heading-actions, .pms-workbench-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pms-room-current {
  padding: 8px 12px;
  border: 1px solid #d7e2ce;
  border-radius: 99px;
  background: #eef4e8;
  color: #405638;
  font-size: 13px;
  line-height: 1.5;
}
.pms-room-current b { font-variant-numeric: tabular-nums; }
.pms-demo [data-pms-jump] { flex: none; padding: 10px 14px; font-size: 13px; font-weight: 550; }
.pms-demo [data-pms-jump="workbench"] { border-color: var(--demo-dark); background: var(--demo-dark); color: #fff; }
.pms-demo [data-pms-jump="workbench"]:hover:not(:disabled) { border-color: #40523c; background: #40523c; }
.pms-workbench-heading { margin-bottom: 18px; }
.pms-workbench-actions p { max-width: 30em; color: var(--demo-muted); font-size: 14px; line-height: 1.7; }
.pms-demo-computer { min-width: 0; }
.pms-console {
  position: relative;
  min-width: 0;
  overflow: clip;
  border: 1px solid #dcdce8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px -16px #24224455;
}
.pms-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 6px 12px;
  background: linear-gradient(105deg, #795be2, #5147ca);
  color: #fff;
}
.pms-front-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #e3e4eb;
  background: #f5f5f7;
}
.pms-console-tabs { display: flex; flex-wrap: wrap; gap: 1px; min-width: 0; }
.pms-console-content { min-height: 540px; padding: 12px 10px; background: #f0f1f3; }
.pms-demo[data-pms-section="front"] .pms-console-content { min-height: 0; background: #f2f2f2; }
.pms-front-workspace {
  display: grid;
  grid-template-columns: clamp(156px, 15cqi, 196px) minmax(0, 1fr) clamp(220px, 22cqi, 294px);
  align-items: start;
  gap: 10px;
}
.pms-front-workspace[data-view="control"] { grid-template-columns: minmax(145px, 16fr) minmax(0, 84fr); }
.pms-front-sidebar,
.pms-front-main,
.pms-front-assistant { min-width: 0; }
.pms-front-sidebar,
.pms-front-assistant { border: 1px solid #e2e4e9; border-radius: 6px; background: #fff; }
.pms-front-sidebar { padding: 9px 8px; }
.pms-demo .pms-filter-toggle { display: none; }
.pms-front-main { container: pms-front-main / inline-size; }
.pms-console-tools { display: grid; gap: 8px; }
.pms-console-tools label { position: relative; display: block; width: 100%; min-width: 0; color: var(--demo-muted); font-size: 12px; }
.pms-console-tools label > svg { position: absolute; top: 10px; right: 8px; width: 16px; height: 16px; fill: none; stroke: #6c7480; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.pms-console-tools input,
.pms-front-sidebar select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #d3d8e2;
  border-radius: 5px;
  background: #fff;
  color: var(--demo-ink);
  font-size: 12px;
  line-height: 1.5;
}
.pms-console-tools input { padding-right: 29px; }
.pms-console-tools input::placeholder { color: #616b7b; opacity: 1; }
.pms-front-filter-group { display: grid; min-width: 0; gap: 6px; padding-top: 9px; margin-top: 9px; border-top: 1px solid #e9ebef; }
.pms-front-filter-group :is(h5, summary) {
  margin: 0;
  padding-inline-start: 6px;
  border-inline-start: 2px solid #3f91e3;
  color: #2c3443;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
.pms-front-filter-group summary {
  position: relative;
  padding-right: 16px;
  list-style: none;
  cursor: pointer;
}
.pms-front-filter-group summary::-webkit-details-marker { display: none; }
.pms-front-filter-group summary::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border: solid #677284;
  border-width: 0 1px 1px 0;
  transform: rotate(-45deg);
}
.pms-front-filter-group[open] summary::after { transform: rotate(45deg); }
.pms-front-filter-group summary:focus-visible { outline: 2px solid #7962dd; outline-offset: 2px; }
.pms-front-filter-group[open] > select { margin-top: 6px; }
.pms-front-location { display: grid; gap: 4px; margin: 0; }
.pms-front-location > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #e5e7ec;
  border-radius: 4px;
  color: #586476;
  font-size: 11px;
}
.pms-front-location dd { margin: 0; color: #2c3443; }
.pms-front-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pms-demo .pms-front-status-heading > button {
  min-width: 0;
  min-height: 26px;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  border-color: transparent;
  color: #546175;
  font-size: 11px;
}
.pms-demo .pms-front-status-heading > button[aria-pressed="true"] { border-color: #c6e0ff; background: #edf6ff; color: #235d9b; }
.pms-front-filter-group label { display: grid; min-width: 0; gap: 4px; font-size: 12px; color: #525b69; }
.pms-filter-list,
.pms-power-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.pms-demo :is(.pms-filter-list, .pms-power-list) button {
  justify-content: flex-start;
  min-width: 0;
  min-height: 34px;
  gap: 4px;
  padding: 4px 5px;
  border-color: #e7e9ef;
  border-radius: 4px;
  color: #495260;
  font-size: 11px;
  white-space: nowrap;
}
.pms-demo :is(.pms-filter-list, .pms-power-list) button[aria-pressed="true"] {
  border-color: #80afe3;
  background: #eaf4ff;
  color: #1f5995;
}
.pms-demo :is(.pms-filter-list, .pms-power-list) button b { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.pms-demo .pms-filter-list button { border-color: transparent; }
.pms-demo .pms-filter-list button[data-pms-filter="alert"] { grid-column: 1 / -1; }
.pms-filter-list button > span { padding: 2px 4px; border-radius: 3px; background: var(--pms-filter-label, #fff0d6); color: var(--pms-filter-ink, #6c4516); }
.pms-filter-list [data-pms-filter="vacant"] { --pms-filter-label: #86de39; --pms-filter-ink: #234413; }
.pms-filter-list [data-pms-filter="occupied"] { --pms-filter-label: #4db6ac; --pms-filter-ink: #183c39; }
.pms-filter-list [data-pms-filter="dirty"] { --pms-filter-label: #717268; --pms-filter-ink: #fff; }
.pms-filter-list [data-pms-filter="maintenance"] { --pms-filter-label: #ff8a65; --pms-filter-ink: #582a1a; }
.pms-demo .pms-power-list [data-pms-power-filter="alert"] { border-color: #ecd7b0; color: #8a5618; }
.pms-demo .pms-power-list [data-pms-power-filter="alert"][aria-pressed="true"] { border-color: #b8863e; background: #fff4de; }
.pms-room-summary,
.pms-room-display-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; color: #5e6877; font-size: 12px; }
.pms-room-summary b { color: #323840; font-size: 14px; font-weight: 600; }
.pms-room-display-toolbar .pms-room-summary { margin-bottom: 0; }
.pms-room-display-toolbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pms-room-display-toolbar :is(strong, h5) { margin: 0; color: #2b313a; font-size: 16px; font-weight: 650; }
.pms-room-display-toolbar .pms-room-summary { gap: 5px 11px; }
.pms-room-display-toolbar h4 { color: #1d2228; font-size: clamp(17px, 2.8cqi, 22px); font-weight: 650; line-height: 1.3; }
.pms-room-display-toolbar [role="group"] { flex-wrap: nowrap; gap: 0; }
.pms-room-display-toolbar [role="group"] > :first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.pms-room-display-toolbar [role="group"] > :last-child { margin-inline-start: -1px; border-start-start-radius: 0; border-end-start-radius: 0; }
.pms-room-display-toolbar [role="group"] > [aria-pressed="true"] { position: relative; }
.pms-demo [data-pms-room-display] { min-height: 34px; padding: 5px 8px; border-radius: 4px; color: #576372; font-size: 12px; }
.pms-demo [data-pms-room-display][aria-pressed="true"] { border-color: #8cb6e7; background: #eef6ff; color: #22598f; }
.pms-room-grid { display: grid; gap: 6px; min-width: 0; }
.pms-room-grid[data-display="tiles"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@container pms-front-main (min-width: 290px) { .pms-room-grid[data-display="tiles"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container pms-front-main (min-width: 420px) { .pms-room-grid[data-display="tiles"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container pms-front-main (min-width: 640px) { .pms-room-grid[data-display="tiles"] { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pms-demo .pms-room-card {
  --pms-tile: #86de39;
  --pms-tile-ink: #18311a;
  --pms-tile-dot: #64a320;
  position: relative;
  min-width: 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: 7px 8px 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--pms-tile);
  color: var(--pms-tile-ink);
  text-align: left;
  box-shadow: 0 2px 5px #30384613;
}
.pms-demo .pms-room-card[data-state="occupied"] { --pms-tile: #4db6ac; --pms-tile-ink: #112e2c; --pms-tile-dot: #2f9189; }
.pms-demo .pms-room-card[data-state="dirty"] { --pms-tile: #717268; --pms-tile-ink: #fff; --pms-tile-dot: #777e74; }
.pms-demo .pms-room-card[data-state="maintenance"] { --pms-tile: #ff8a65; --pms-tile-ink: #462619; --pms-tile-dot: #c35130; }
.pms-demo .pms-room-card[data-reservation="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9' viewBox='0 0 18 9'%3E%3Cpath d='m-9 9 9-9 9 9 9-9 9 9' fill='none' stroke='white' stroke-opacity='.28' stroke-width='2'/%3E%3C/svg%3E");
}
.pms-demo .pms-room-card:hover:not(:disabled) { border-color: var(--pms-tile-ink); background-color: var(--pms-tile); }
.pms-demo .pms-room-card[aria-pressed="true"] { border-color: #5741b5; box-shadow: inset 0 0 0 1px #5741b5, inset 0 0 0 2px #fff9; }
.pms-demo .pms-room-card:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.pms-room-number { display: flex; align-items: center; gap: 4px; color: inherit; font-size: clamp(18px, 1.6vw, 24px); font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.pms-room-type,
.pms-room-state { color: inherit; font-size: 12px; line-height: 1.35; }
.pms-room-state { font-weight: 600; }
.pms-demo .pms-rooms-panel [data-display="tiles"] .pms-room-card {
  min-height: clamp(92px, 13cqi, 112px);
  padding: 8px clamp(7px, 1.15cqi, 11px);
  box-shadow: 0 3px 9px #26272b1a;
}
.pms-demo .pms-rooms-panel [data-display="tiles"] .pms-room-card[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px #5741b5, inset 0 0 0 2px #fffc, 0 3px 9px #26272b1a;
}
.pms-rooms-panel [data-display="tiles"] .pms-room-number { font-size: clamp(19px, 3.1cqi, 26px); }
.pms-rooms-panel [data-display="tiles"] .pms-room-number > b { font-weight: 620; }
.pms-rooms-panel [data-display="tiles"] .pms-room-type { font-size: 12px; font-weight: 500; }
.pms-rooms-panel [data-display="tiles"] .pms-room-state {
  order: 1;
  margin-top: auto;
  padding: 1px 4px;
  border-radius: 3px;
  background: #ffffff35;
  font-size: 11px;
}
.pms-rooms-panel [data-display="tiles"] .pms-room-card[data-state="dirty"] .pms-room-state { background: #16161022; }
.pms-rooms-panel [data-display="tiles"] .pms-room-power { display: none; }
.pms-rooms-panel [data-display="tiles"] .pms-room-alert { position: absolute; inset: auto 5px 6px auto; }
.pms-room-power { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; color: inherit; font-size: 11px; }
.pms-room-power > i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .52; }
.pms-room-power[data-powered="true"] > i { background: #68470d; opacity: 1; box-shadow: 0 0 0 2px #fff4; }
.pms-control-room-list h5 { margin: 0 0 4px; font-size: 12px; }
.pms-control-room-list .pms-room-grid { max-height: 420px; padding: 2px; overflow: auto; scrollbar-width: thin; }
.pms-room-grid[data-display="list"],
.pms-control-room-list .pms-room-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pms-demo :is(.pms-room-grid[data-display="list"], .pms-control-room-list) .pms-room-card {
  display: grid;
  grid-template-columns: minmax(4em, auto) 1fr auto auto;
  align-items: center;
  gap: 5px 8px;
  min-height: 44px;
  padding: 6px 9px;
  border-inline-start: 3px solid var(--pms-tile-dot);
  background: #fff;
  color: #303745;
  box-shadow: none;
}
.pms-demo :is(.pms-room-grid[data-display="list"], .pms-control-room-list) .pms-room-card[aria-pressed="true"] { background: #ede8ff; border-color: #7960da; }
.pms-demo :is(.pms-room-grid[data-display="list"], .pms-control-room-list) .pms-room-number { font-size: 15px; }
.pms-demo :is(.pms-room-grid[data-display="list"], .pms-control-room-list) .pms-room-power { margin-top: 0; white-space: nowrap; }
.pms-demo :is(.pms-room-grid[data-display="list"], .pms-control-room-list) .pms-biz-card-guest { grid-column: 2 / -1; }
.pms-demo .pms-control-room-list .pms-room-card { grid-template-columns: 1fr auto; padding-inline: 5px; }
.pms-control-room-list .pms-room-card :is(.pms-room-type, .pms-room-state, .pms-biz-card-guest) { display: none; }
.pms-room-alert { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; max-width: 100%; border-radius: 50%; background: #fff3df; color: #925419; font-size: 11px; font-style: normal; font-weight: 600; line-height: 1; }
.pms-no-rooms { display: grid; place-content: center; min-height: 145px; padding: 24px 16px; border: 1px dashed #c6ccd0; border-radius: 6px; color: var(--demo-muted); background: #fff; text-align: center; line-height: 1.8; }
.pms-front-room-tools {
  display: grid;
  gap: 9px;
  width: min(350px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: 9px 0 0;
  padding: 11px 12px;
  overflow: auto;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  background: #fff;
  color: var(--demo-ink);
  box-shadow: 0 8px 28px #29254226;
}
@supports selector(:popover-open) {
  .pms-front-room-tools { position: fixed; inset: auto; margin: 0; }
}
.pms-room-tools-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #eef0f3; }
.pms-room-tools-head h5 { margin: 0; font-size: 14px; font-weight: 650; }
.pms-demo .pms-room-tools-head button { min-width: 32px; min-height: 32px; padding: 0; border-radius: 5px; font-size: 18px; }
.pms-front-room-tools .pms-biz-room-summary { min-width: 0; margin: 0; padding: 0; border: 0; }
.pms-front-room-tools .pms-biz-room-summary > div { flex-basis: 100%; }
.pms-front-room-tools .pms-room-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.pms-demo .pms-front-room-tools :is(.pms-room-actions, .pms-biz-room-summary) button { min-width: 0; min-height: 36px; padding: 5px 8px; border-radius: 5px; font-size: 12px; }
.pms-demo .pms-room-actions .is-primary { border-color: var(--demo-violet); background: var(--demo-violet); color: #fff; }
.pms-demo .pms-room-actions .is-primary:hover:not(:disabled) { border-color: var(--demo-violet-deep); background: var(--demo-violet-deep); }
.pms-control-tabs {
  padding-inline: 10px;
  border-bottom: 1px solid #e3e4e8;
  background: #f4f4f6;
  color: var(--demo-violet-deep);
  font-size: 13px;
}
.pms-control-tabs span { display: inline-block; padding: 9px 16px; border-bottom: 2px solid #6351d2; }

.pms-front-workspace[data-view="control"] :is(.pms-biz-front-kpis,.pms-front-room-tools) { display: none; }
.pms-control-room-list h5 { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.pms-control-room-list h5 small { color: #626975; font-size: 11px; font-weight: 400; white-space: nowrap; }
.pms-demo .pms-control-room-list .pms-room-card[aria-pressed="true"] {
  border-color: transparent;
  border-inline-start: 3px solid #6252d0;
  border-radius: 0;
  background: #ebe7ff;
}

.pms-control-panel { min-width: 0; container: pms-room-control / inline-size; }
.pms-control-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid #e9eaed;
  border-radius: 9px;
  background: #fff;
}
.pms-control-top > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.pms-control-top h4 { margin: 0; color: #23272d; font-size: 20px; font-weight: 700; line-height: 1.3; }
.pms-control-room-state { padding: 2px 6px; border-radius: 4px; background: #f0f0f2; color: #555b66; font-size: 11px; }
.pms-demo .pms-control-back { min-height: 38px; padding: 5px 6px; border-color: transparent; color: #565b65; font-size: 12px; }
.pms-demo .pms-control-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pms-demo .pms-control-refresh { min-height: 38px; padding: 6px 10px; border-color: #1a6db8; border-radius: 4px; background: #1a6db8; color: #fff; font-size: 12px; }
.pms-demo .pms-control-refresh:hover:not(:disabled) { border-color: #12558f; background: #12558f; }

.pms-control-card { min-width: 0; padding: 0 10px 10px; border: 1px solid #e9eaed; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px #24304606; }
.pms-control-panel [data-pms-control-content] { display: grid; gap: 10px; }
.pms-control-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 -10px 10px;
  padding: 5px 10px;
  border-radius: 9px 9px 0 0;
  background: #f7f7f9;
}
.pms-control-card-heading > h5 { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; color: #272830; font-size: 13px; font-weight: 650; }
.pms-control-card-heading svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #6252d0; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.pms-control-card-heading h5 small { padding: 2px 6px; border-radius: 12px; background: #ededf1; color: #626675; font-size: 10px; font-weight: 400; }
.pms-control-scenes > .pms-control-card-heading { margin-bottom: 0; background: #fff; }
.pms-control-lights > .pms-control-card-heading { border-inline-start: 3px solid #ec6b79; }
.pms-control-curtain > .pms-control-card-heading { border-inline-start: 3px solid #42ad9f; }
.pms-control-air > .pms-control-card-heading { border-inline-start: 3px solid #36a5c4; }
.pms-control-tv > .pms-control-card-heading { border-inline-start: 3px solid #e4aa2f; }

.pms-scene-list,.pms-light-switches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.pms-demo .pms-scene-list button {
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 7px;
  border-color: #f0f1f4;
  border-radius: 8px;
  background: #f5f6f8;
  color: #2b3038;
  font-size: 12px;
  text-align: left;
}
.pms-scene-list button span { min-width: 0; }
.pms-scene-list button small { display: block; margin-top: 1px; color: #666c76; font-size: 10px; font-weight: 400; }
.pms-scene-list button i {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #6952d5 center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.4 1.4m11.2 11.2L19 19M5 19l1.4-1.4M17.6 6.4 19 5'/%3E%3C/svg%3E");
}
.pms-scene-list :is([data-pms-mode="sleep"], [data-pms-mode="night"], [data-pms-mode="cinema"]) i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M20.4 15.2A8.9 8.9 0 0 1 8.8 3.6 9 9 0 1 0 20.4 15.2Z'/%3E%3C/svg%3E");
}
.pms-scene-list [data-pms-mode="reading"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6c-3-2-6-2-9-1v13c3-1 6-1 9 1 3-2 6-2 9-1V5c-3-1-6-1-9 1Zm0 0v13'/%3E%3C/svg%3E");
}
.pms-scene-list [data-pms-mode="welcome"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8v10H3z'/%3E%3C/svg%3E");
}
.pms-demo .pms-scene-list button[aria-pressed="true"] { background: #eee8fc; border-color: #a594dc; color: #4b37a3; }

.pms-demo .pms-device-switch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 112px;
  padding: 8px 3px;
  border-color: transparent;
  border-radius: 8px;
  background: #f5f6f8;
  color: #2d3039;
  font-size: 12px;
  text-align: center;
}
.pms-device-switch > small { color: #626975; font-size: 11px; }
.pms-device-switch::before {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777e8b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.25'/%3E%3Cpath d='m10.2 2-.5 2.6L7.2 5.9 4.8 5 2.9 8.2l1.9 1.7v3l-1.9 1.8L4.8 18l2.4-.9 2.5 1.5.5 2.7h3.6l.5-2.7 2.5-1.5 2.4.9 1.9-3.3-1.9-1.8v-3l1.9-1.7L19.2 5l-2.4.9-2.5-1.3-.5-2.6z'/%3E%3C/svg%3E");
  box-shadow: 0 2px 6px #202d4712;
}
.pms-demo .pms-control-master-switch { min-width: 44px; min-height: 44px; padding: 0; border-color: transparent; background: transparent; }
.pms-control-panel [role="switch"] > i { position: relative; flex: none; width: 36px; height: 19px; border-radius: 99px; background: #d6dae2; transition: background-color 180ms; }
.pms-control-panel [role="switch"] > i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #1d242526; transition: transform 180ms ease; }
.pms-demo .pms-device-switch[aria-checked="true"] { border-color: #cabeed; background: #f2eefb; color: #43327b; }
.pms-control-panel [role="switch"][aria-checked="true"] > i { background: #6252d0; }
.pms-control-panel [role="switch"][aria-checked="true"] > i::after { transform: translateX(17px); }

.pms-device-panels { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.pms-control-device-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.pms-control-air-body { padding: 0 8px 8px; border-radius: 8px; background: #f5f6f8; }
.pms-demo .pms-control-air-body > .pms-device-switch { width: 100%; background: transparent; }
.pms-temperature-control,.pms-control-device { padding-top: 6px; border-top: 1px dashed #dfe2e8; }
.pms-temperature-control > small,.pms-control-device > small { display: block; color: #626975; font-size: 11px; }
.pms-control-device { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-top: 7px; }
.pms-control-device > small { grid-column: 1 / -1; }
.pms-demo .pms-control-device > button { min-width: 0; min-height: 34px; padding: 3px 2px; border-radius: 4px; font-size: 11px; }
.pms-demo .pms-control-device > button[aria-pressed="true"]:not(:disabled) { border-color: #b3a3db; background: #eee8fc; color: #4f379f; }
.pms-temperature-actions { display: flex; align-items: center; justify-content: center; gap: 5px; }
.pms-demo .pms-temperature-actions button { flex: none; width: 44px; min-height: 44px; padding: 5px; border-radius: 50%; font-size: 17px; }
.pms-temperature-actions output { display: inline-flex; align-items: baseline; justify-content: center; min-width: 53px; gap: 2px; color: #292c33; font-size: 23px; font-variant-numeric: tabular-nums; }
.pms-temperature-actions output small { color: #626975; font-size: 10px; }

@container pms-room-control (min-width: 420px) {
  .pms-scene-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .pms-light-switches { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@container pms-room-control (min-width: 635px) {
  .pms-device-panels { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pms-light-switches { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@container pms-room-control (min-width: 805px) {
  .pms-scene-list { grid-template-columns: repeat(8,minmax(0,1fr)); }
  .pms-light-switches { grid-template-columns: repeat(9,minmax(0,1fr)); }
}
.pms-live-room {
  display: grid;
  gap: clamp(12px, 1.7vw, 24px);
  padding: clamp(12px, 2vw, 28px);
  border: 1px solid #dce1d9;
  border-radius: 22px;
  background: #f9faf7;
}
.pms-room-scene { position: relative; width: 100%; min-width: 0; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 18px; background: #211f1a; box-shadow: 0 10px 30px -20px #3b2b1d66; isolation: isolate; }
.pms-room-scene::after { position: absolute; content: ""; z-index: 2; inset: 0; border: 1px solid #00000012; border-radius: inherit; pointer-events: none; }
.pms-room-photo, .pms-room-canvas { position: absolute; display: block; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pms-room-photo { opacity: 0; transition: opacity 1400ms cubic-bezier(.22,.61,.36,1); }
.pms-room-photo.is-active { opacity: 1; }
.pms-room-canvas { z-index: 1; opacity: 0; transition: opacity 500ms ease; }
.pms-room-scene[data-room-rendered="true"] .pms-room-photo { opacity: 0 !important; }
.pms-room-scene[data-room-rendered="true"] .pms-room-canvas { opacity: 1; }
.pms-scene-hud { position: absolute; z-index: 3; top: 17px; left: 17px; display: flex; gap: 7px; align-items: center; max-width: calc(100% - 82px); min-height: 34px; padding: 8px 11px; border: 1px solid #ffffff21; border-radius: 8px; background: #18221bc9; backdrop-filter: blur(8px); color: #f2f6ea; font-size: 12px; line-height: 1.4; }
.pms-scene-hud i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #b9d391; }
.pms-scene-temperature { position: absolute; z-index: 3; top: 21px; right: 18px; color: #fff4df; font-size: 25px; line-height: 1.1; text-shadow: 0 2px 10px #0009; font-variant-numeric: tabular-nums; }
.pms-scene-temperature small { margin-left: 3px; font-size: 12px; }
.pms-scene-temperature > span { margin-left: 3px; font-size: 12px; }
.pms-scene-note { position: absolute; z-index: 3; bottom: 13px; left: 15px; padding: 4px 7px; border-radius: 5px; background: #1c211c75; color: #f5ecd9; font-size: 10px; line-height: 1.5; }
.pms-room-monitor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 24px); align-items: start; }
.pms-room-readout { display: grid; min-width: 0; gap: 10px; }
.pms-live-status { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 17px 16px; border: 1px solid #dce1d9; border-radius: 13px; background: #fff; }
.pms-live-status > :is(div,p) { min-width: 0; }
.pms-live-status :is(span,small) { display: block; margin-bottom: 6px; color: #68716b; font-size: 12px; }
.pms-live-status :is(b,strong) { display: block; color: #33402f; font-size: 14px; line-height: 1.6; font-weight: 550; }
.pms-sync-line { position: relative; display: flex; align-items: center; gap: 9px; min-height: 32px; color: #55664d; font-size: 12px; }
.pms-sync-line > i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #82a65d; box-shadow: 0 0 0 4px #82a65d14; }
.pms-sync-line::after { content: ""; flex: 1; height: 1px; margin-left: 7px; background: #d4dccd; }
.pms-sync-line > b { order: 1; margin-left: -3px; color: #71846a; font-size: 19px; font-weight: 400; }
.pms-sync-line.is-sending > i { animation: pms-demo-signal 800ms ease-out 2; }
.pms-demo-events { min-width: 0; padding: 17px 16px; border: 1px solid #dce1d9; border-radius: 13px; background: #fff; }
.pms-demo-event-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.pms-demo-event-list li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid #dce1d7; color: #4e5c50; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.pms-demo-event-list li:last-child { border-bottom: 0; }
.pms-demo-events > p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: #495945; font-size: 13px; font-weight: 550; }
.pms-demo-events > p > small { color: #788272; font-size: 11px; font-weight: 400; }
.pms-demo-event-list li > span:first-child { flex: none; min-width: 17px; color: #778271; font: 11px/1.8 ui-monospace, Consolas, monospace; }
.pms-demo-event-list time { flex: none; color: #737e71; font: 11px/1.6 ui-monospace, Consolas, monospace; }
.pms-demo-event-list li::before { content: ""; flex: none; align-self: center; width: 5px; height: 5px; border-radius: 50%; background: #a7b99a; }
.pms-alert-box { padding: 19px 18px; border: 1px solid #dfc49d; border-radius: 15px; background: #fff8ed; color: #7b542c; }
.pms-alert-box > :is(h4,strong) { display: block; margin-bottom: 7px; font-size: 15px; line-height: 1.6; font-weight: 600; }
.pms-alert-box > p { color: #805e3c; font-size: 13px; line-height: 1.85; }
.pms-alert-box button { width: 100%; margin-top: 13px; padding: 10px; border-color: #d2b88e; background: #fffdf6; color: #7e5828; font-size: 12px; }
.pms-owner-notice { position: relative; margin-top: 14px; padding: 14px 14px 14px 17px; border: 1px solid #dac6a5; border-radius: 10px; background: #fffdf8; color: #6c5538; font-size: 12px; line-height: 1.7; }
.pms-owner-notice::before { content: ""; position: absolute; top: 17px; left: 0; width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: #b99051; }
.pms-owner-notice :is(strong,b) { display: block; margin-bottom: 4px; color: #77552e; font-size: 13px; font-weight: 600; }
.pms-demo-notice { min-height: 1.7em; margin-top: 12px !important; color: #5b477f; font-size: 12px; line-height: 1.7; }
.pms-demo-notice:empty { display: none; }
.pms-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 36px; border-top: 1px solid #d9ded4; color: #65705f; font-size: 12px; line-height: 1.8; background: #eff1eb; }
.pms-demo-footer small { max-width: 55em; font-size: 12px; }
.pms-demo-footer > p { max-width: 45em; }
.pms-demo-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pms-demo-footer a { color: #3f5736; text-decoration: underline; text-underline-offset: 3px; }
.pms-demo-footer button { flex: none; min-height: 44px; padding: 10px 14px; border-color: #bec9b5; background: transparent; color: #455b3d; font-size: 12px; }
.pms-console-notice { min-height: 1.7em; margin-top: 12px !important; color: #655478; font-size: 12px; line-height: 1.8; }
.pms-console-notice:empty { display: none; }
@keyframes pms-demo-signal { 0% { box-shadow: 0 0 0 0 #86a45d55; } 100% { box-shadow: 0 0 0 12px #86a45d00; } }
@media (max-width: 1270px) {
  .pms-demo-header, .pms-demo-footer { padding-inline: 27px; }
}
@container pms-console (max-width: 1000px) {
  .pms-front-workspace[data-view="front"] { grid-template-columns: clamp(148px, 20cqi, 178px) minmax(0, 1fr); }
  .pms-front-assistant { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .pms-console-content { min-height: 0; }
  .pms-front-workspace[data-view="control"] { grid-template-columns: minmax(145px, 19fr) minmax(0, 81fr); }
}
@media (max-width: 740px) {
  .pms-page .pms-flow-section > .site-shell { width: calc(100% - 36px); }
  .pms-demo { border-radius: 24px; scroll-margin-top: 90px; }
  .pms-demo-header { flex-direction: column; align-items: flex-start; gap: 17px; padding: 25px 23px; }
  .pms-demo-header h2 { font-size: 25px; }
  .pms-demo-header > :is(small,span), .pms-demo-badge { font-size: 12px; padding: 7px 11px; }
  .pms-demo-workspace > section { scroll-margin-top: 90px; }
  .pms-room-monitor { grid-template-columns: minmax(0, 1fr); }
  .pms-workbench-actions p { font-size: 13px; }
  .pms-console-bar { padding: 8px; }
  .pms-front-toolbar { padding: 8px; }
  .pms-console-content { padding: 8px; }
  .pms-front-workspace[data-view="front"],
  .pms-front-workspace[data-view="control"] { grid-template-columns: minmax(0, 1fr); }
  .pms-front-assistant { grid-column: auto; }
  .pms-front-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .pms-demo .pms-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 9px;
    border-radius: 5px;
    border-color: #d3d8e2;
    color: #4d3c87;
    font-size: 12px;
  }
  .pms-filter-toggle > i { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
  .pms-filter-toggle[aria-expanded="true"] > i { transform: rotate(225deg); }
  .pms-filter-toggle > span { padding: 1px 4px; border-radius: 4px; background: #ece7ff; }
  .pms-front-filter-fields { display: none; }
  .pms-filter-toggle[aria-expanded="true"] + .pms-front-filter-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .pms-front-filter-group:has(.pms-filter-list, .pms-power-list),
  .pms-control-room-list { grid-column: 1 / -1; }
  .pms-filter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pms-power-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pms-front-filter-group { margin-top: 0; }
  .pms-console-tools input,
  .pms-front-sidebar select { min-height: 44px; font-size: 16px; }
  .pms-console-tools label > svg { top: 14px; }
  .pms-demo :is(.pms-filter-list, .pms-power-list) button,
  .pms-demo .pms-front-status-heading > button,
  .pms-demo .pms-front-room-tools :is(.pms-room-actions, .pms-biz-room-summary, .pms-room-tools-head) button,
  .pms-demo [data-pms-room-display],
  .pms-demo .pms-control-top button,
  .pms-demo .pms-control-device > button { min-height: 44px; }
  .pms-control-room-list .pms-room-grid { max-height: 154px; }
  .pms-demo-footer { flex-direction: column; align-items: flex-start; gap: 13px; padding: 20px 23px; }
}
@media (max-width: 460px) {
  .pms-page .pms-flow-section > .site-shell { width: calc(100% - 24px); }
  .pms-demo { border-radius: 20px; }
  .pms-demo-header { padding: 23px 19px; }
  .pms-demo-header h2 { font-size: 23px; }
  .pms-demo-workspace { padding: 14px 12px 25px; gap: 30px; }
  .pms-demo :is(.pms-filter-list, .pms-power-list) button { font-size: 11px; white-space: normal; }
  .pms-room-grid { gap: 4px; }
  .pms-demo .pms-room-card { padding: 6px; }
  .pms-demo .pms-rooms-panel .pms-room-grid[data-display="list"] .pms-room-card { grid-template-columns: minmax(3em, auto) minmax(0, 1fr) auto; }
  .pms-rooms-panel .pms-room-grid[data-display="list"] .pms-room-power { display: none; }
  .pms-room-alert { width: 15px; height: 15px; font-size: 10px; }
  .pms-room-scene { border-radius: 12px; }
  .pms-scene-hud { top: 12px; left: 12px; padding: 7px 8px; max-width: calc(100% - 74px); font-size: 12px; }
  .pms-scene-temperature { top: 17px; right: 12px; font-size: 22px; }
  .pms-live-status { padding: 14px 11px; gap: 7px; }
  .pms-live-status :is(b,strong) { font-size: 13px; }
  .pms-sync-line { padding-inline: 4px; }
  .pms-alert-box { padding: 16px 14px; }
  .pms-demo-footer { padding-inline: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .pms-demo *, .pms-demo *::before, .pms-demo *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
