/* Native Kraken PMS program, scoped to its property workspace. */
.pms-program {
  --pms-ink: #17211d;
  --pms-muted: #6b756f;
  --pms-paper: #f6f4ed;
  --pms-panel: #fffdf8;
  --pms-line: #d9d8cf;
  --pms-green: #0d6b57;
  --pms-green-2: #16826b;
  --pms-gold: #b98535;
  --pms-night: #17201c;
  position: relative;
  min-height: calc(100vh - 116px);
  margin: -2px;
  border: 1px solid #cbcfc8;
  border-radius: 18px;
  overflow: hidden;
  color: var(--pms-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 133, 53, .09), transparent 28%),
    linear-gradient(180deg, #f8f7f1, #efefe8);
  box-shadow: 0 22px 65px rgba(16, 27, 22, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pms-program button,
.pms-program input,
.pms-program select,
.pms-program textarea { font: inherit; }

.pms-program button { cursor: pointer; }

.pms-program-header {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  color: #f6f5ee;
  background:
    linear-gradient(115deg, rgba(255,255,255,.035), transparent 40%),
    var(--pms-night);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pms-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.pms-brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.pms-brand > div { min-width: 0; }

.pms-brand span,
.pms-module-head > div > span,
.pms-owner-hero > span,
.pms-boardroom-head > span,
.pms-linked > span,
.pms-setup > span,
.pms-panel-head span,
.pms-dialog header span {
  display: block;
  color: var(--pms-gold);
  font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pms-brand h1 {
  margin: 3px 0 1px;
  overflow: hidden;
  color: #fff;
  font: 650 22px/1.1 Georgia, "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pms-brand p {
  margin: 0;
  color: #aeb7b1;
  font-size: 11px;
  font-weight: 650;
}

.pms-property-controls {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.pms-property-controls label {
  display: grid;
  gap: 4px;
  color: #b8c0bb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pms-property-controls select,
.pms-property-controls button,
.pms-program-switches button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  color: #f4f4ef;
  background: rgba(255,255,255,.055);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
}

.pms-property-controls select option { color: #17211d; background: #fff; }

.pms-live {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aab3ad;
  font: 800 9px ui-monospace, monospace;
  letter-spacing: .1em;
}

.pms-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45c987;
  box-shadow: 0 0 0 4px rgba(69,201,135,.12);
}

.pms-program-switches {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  color: #e8e8e0;
  background: #202823;
  border-bottom: 1px solid #343c37;
}

.pms-mode-switch,
.pms-surface-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pms-program-switches button {
  min-height: 34px;
  text-transform: capitalize;
}

.pms-program-switches button.active {
  color: #241b0d;
  border-color: #c99749;
  background: linear-gradient(180deg, #dfb66e, #bd8431);
  box-shadow: 0 6px 18px rgba(185,133,53,.18);
}

.pms-program-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: calc(100vh - 254px);
}

.pms-rail {
  background: #202823;
  border-right: 1px solid #343c37;
  color: #c7ccc8;
  padding: 15px 10px 18px;
}

.pms-rail-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 8px 12px;
  color: #fff;
}

.pms-rail-title strong {
  font: 600 17px Georgia, serif;
}

.pms-rail-title span {
  color: #7f8b84;
  font: 800 8px ui-monospace, monospace;
  letter-spacing: .12em;
}

.pms-rail nav {
  display: grid;
  gap: 3px;
}

.pms-rail nav button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #aeb7b1;
  background: transparent;
  padding: 0 9px;
  text-align: left;
  font-size: 11px;
  font-weight: 750;
}

.pms-rail nav button svg {
  width: 14px;
  height: 14px;
  color: #78857e;
}

.pms-rail nav button:hover {
  color: #fff;
  background: rgba(255,255,255,.045);
}

.pms-rail nav button.active {
  color: #fff6e4;
  border-color: rgba(185,133,53,.42);
  background: linear-gradient(90deg, rgba(185,133,53,.22), rgba(185,133,53,.07));
  box-shadow: inset 3px 0 0 var(--pms-gold);
}

.pms-rail nav button.active svg { color: #e9b85d; }

.pms-rail-shared-title {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #39423c;
}

.pms-shared-nav button {
  border-color: rgba(255,255,255,.04);
  background: rgba(255,255,255,.025);
}

.pms-shared-nav button::after {
  content: "↗";
  color: #718079;
  font-size: 9px;
}

.pms-workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.pms-shared-services {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid #d8ddd8;
  border-left: 3px solid var(--pms-gold);
  border-radius: 10px;
  background: linear-gradient(90deg, #fffdf7, #f7faf8);
  padding: 9px 11px;
  box-shadow: 0 5px 16px rgba(26,38,31,.05);
}

.pms-shared-services > div {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
}

.pms-shared-services > div strong {
  color: #26322b;
  font-size: 10px;
}

.pms-shared-services > div span {
  color: #7b867f;
  font-size: 8px;
}

.pms-shared-services nav {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
}

.pms-shared-services button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  border: 1px solid #d7ddd8;
  border-radius: 7px;
  color: #344139;
  background: #fff;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
}

.pms-shared-services button:hover {
  color: #241b0d;
  border-color: #c99749;
  background: #fff8e9;
}

.pms-shared-services button svg {
  width: 12px;
  height: 12px;
  color: #9b722f;
}

.pms-module,
.pms-dashboard,
.pms-owner-view,
.pms-boardroom { display: grid; gap: 14px; }

.pms-module-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.pms-module-head h2,
.pms-owner-hero h2,
.pms-boardroom-head h2,
.pms-linked h2,
.pms-setup h2 {
  margin: 4px 0 5px;
  color: #16211c;
  font: 600 27px/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.pms-module-head p,
.pms-owner-hero p,
.pms-boardroom-head p,
.pms-linked p,
.pms-setup p {
  max-width: 720px;
  margin: 0;
  color: var(--pms-muted);
  font-size: 12px;
  line-height: 1.55;
}

.pms-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.pms-tools label {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--pms-line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 0 10px;
}

.pms-tools label svg { width: 14px; color: #7d877f; }

.pms-tools input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--pms-ink);
  background: transparent;
  font-size: 11px;
}

.pms-tools > button,
.pms-view-toggle button,
.pms-panel-head button,
.pms-row-actions button,
.pms-linked button,
.pms-setup button,
.pms-error button {
  min-height: 37px;
  border: 1px solid #cfd3cc;
  border-radius: 8px;
  color: #37423c;
  background: #fff;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 850;
}

.pms-tools > button:hover,
.pms-panel-head button:hover,
.pms-row-actions button:hover { border-color: var(--pms-green); color: var(--pms-green); }

.pms-tools button.primary,
.pms-dialog button.primary {
  color: #fff;
  border-color: var(--pms-green);
  background: linear-gradient(180deg, var(--pms-green-2), var(--pms-green));
}

.pms-view-toggle {
  display: flex;
  border: 1px solid var(--pms-line);
  border-radius: 8px;
  overflow: hidden;
}

.pms-view-toggle button {
  min-height: 35px;
  border: 0;
  border-radius: 0;
}

.pms-view-toggle button.active { color: #fff; background: var(--pms-night); }

.pms-module-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #778178;
  font-size: 10px;
  font-weight: 700;
}

.pms-module-count strong { color: var(--pms-ink); font-size: 13px; }

.pms-pagination { display: flex; align-items: center; gap: 6px; }
.pms-pagination label { display: flex; align-items: center; gap: 5px; }
.pms-pagination select,
.pms-pagination button {
  min-height: 30px;
  border: 1px solid var(--pms-line);
  border-radius: 7px;
  background: #fff;
  color: var(--pms-ink);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
}
.pms-pagination button:disabled { cursor: not-allowed; opacity: .4; }
.pms-table th button { border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }

.pms-panel {
  min-width: 0;
  border: 1px solid var(--pms-line);
  border-radius: 12px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 8px 25px rgba(18,31,24,.06);
  overflow: hidden;
}

.pms-panel-head {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--pms-line);
}

.pms-panel-head h3 {
  margin: 3px 0 0;
  font: 600 17px Georgia, serif;
}

.pms-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.pms-kpi {
  min-height: 102px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--pms-line);
  border-radius: 11px;
  background: rgba(255,253,248,.92);
  padding: 13px;
  box-shadow: 0 6px 18px rgba(21,31,25,.05);
}

.pms-kpi span {
  color: #7c867f;
  font: 800 9px ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pms-kpi strong {
  color: #18231e;
  font: 600 25px Georgia, serif;
}

.pms-kpi small {
  color: #7e877f;
  font-size: 9px;
  font-weight: 700;
}

.pms-kpi.teal { border-top: 3px solid var(--pms-green); }
.pms-kpi.gold { border-top: 3px solid var(--pms-gold); }

.pms-dashboard-grid,
.pms-owner-grid,
.pms-boardroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
  gap: 12px;
  align-items: start;
}

.pms-status-panel ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 15px;
  list-style: none;
}

.pms-status-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #344039;
  font-size: 11px;
  font-weight: 750;
}

.pms-status-panel i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pms-status-panel i.ok { background: #2da66f; }
.pms-status-panel i.warn { background: #d39a3e; }

.pms-status-panel p {
  margin: 0;
  padding: 12px 15px;
  color: #7c5f2e;
  background: #fbf3e3;
  border-top: 1px solid #ead8b6;
  font-size: 10px;
  line-height: 1.5;
}

.pms-table-wrap { width: 100%; overflow: auto; }

.pms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.pms-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #78827b;
  background: #f0f0e9;
  border-bottom: 1px solid var(--pms-line);
  padding: 10px 11px;
  text-align: left;
  font: 800 8px ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pms-table td {
  max-width: 250px;
  color: #354139;
  border-bottom: 1px solid #e7e7df;
  padding: 10px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pms-table tbody tr { cursor: pointer; }
.pms-table tbody tr:hover { background: #f6f5ed; }
.pms-table tbody tr:last-child td { border-bottom: 0; }

.pms-row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pms-row-actions button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 8px;
  white-space: nowrap;
}

.pms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  padding: 12px;
}

.pms-record-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--pms-line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.pms-record-card > strong { font: 600 16px Georgia, serif; }

.pms-record-card > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #38443d;
  font-size: 10px;
}

.pms-record-card small {
  color: #899189;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.pms-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 5px;
  color: #737d75;
  text-align: center;
}

.pms-empty strong { color: #26322b; font: 600 18px Georgia, serif; }

.pms-owner-hero,
.pms-boardroom-head {
  border: 1px solid #3a423d;
  border-radius: 13px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(185,133,53,.21), transparent 28%),
    var(--pms-night);
  padding: 22px;
}

.pms-owner-hero h2,
.pms-boardroom-head h2 { color: #fff; }

.pms-owner-hero p,
.pms-boardroom-head p { color: #b4bcb6; }

.pms-linked,
.pms-setup {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.pms-linked p,
.pms-setup p { text-align: center; }

.pms-canonical-finance {
  align-content: start;
  padding-bottom: 15px;
}

.pms-canonical-finance > p {
  margin: 0;
  padding: 4px 14px 10px;
  color: #65716a;
  font-size: 10px;
  line-height: 1.45;
}

.pms-canonical-finance > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px;
}

.pms-canonical-finance button {
  border-color: #d5dcd7;
  color: #344139;
  background: #fff;
}

.pms-error {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 300px;
  color: #a33;
}

.pms-dialog-backdrop {
  position: fixed;
  z-index: 650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,22,18,.56);
  backdrop-filter: blur(5px);
}

.pms-dialog {
  width: min(820px, 96vw);
  max-height: min(780px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #cfd1c9;
  border-radius: 15px;
  overflow: hidden;
  color: var(--pms-ink);
  background: #f8f7f1;
  box-shadow: 0 36px 100px rgba(10,18,14,.34);
}

.pms-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  background: var(--pms-night);
}

.pms-dialog h2 {
  margin: 3px 0 0;
  font: 600 21px Georgia, serif;
}

.pms-dialog header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 20px;
}

.pms-dialog form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.pms-form-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 17px;
  overflow: auto;
}

.pms-field {
  display: grid;
  align-content: start;
  gap: 5px;
}

.pms-field > span {
  color: #5f6a63;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pms-field input,
.pms-field select,
.pms-field textarea {
  width: 100%;
  min-height: 41px;
  border: 1px solid #d3d5cd;
  border-radius: 8px;
  outline: 0;
  color: #243029;
  background: #fff;
  padding: 8px 10px;
  font-size: 11px;
}

.pms-field textarea {
  min-height: 92px;
  resize: vertical;
}

.pms-field input:focus,
.pms-field select:focus,
.pms-field textarea:focus {
  border-color: var(--pms-green);
  box-shadow: 0 0 0 3px rgba(13,107,87,.1);
}

.pms-wide { grid-column: 1 / -1; }

.pms-check {
  grid-template-columns: 18px minmax(0,1fr);
  align-items: center;
  align-self: end;
  min-height: 41px;
  border: 1px solid #d3d5cd;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.pms-check input { width: 15px; min-height: 15px; }

.pms-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 15px;
  border-top: 1px solid var(--pms-line);
  background: #efefe8;
}

.pms-dialog footer button {
  min-height: 39px;
  border: 1px solid #cfd2ca;
  border-radius: 8px;
  background: #fff;
  padding: 0 15px;
  font-size: 10px;
  font-weight: 850;
}

.pms-supplementary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pms-supplementary .pms-panel {
  min-width: 0;
}

.pms-import-dialog form {
  grid-template-rows: auto minmax(220px, 1fr) auto;
}

.pms-import-help {
  padding: 16px 18px 8px;
  color: #59635d;
}

.pms-import-help strong {
  color: var(--pms-ink);
  font: 600 17px Georgia, serif;
}

.pms-import-help p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.pms-import-dialog textarea {
  min-height: 260px;
  margin: 8px 18px 16px;
  border: 1px solid #cfd2ca;
  border-radius: 9px;
  outline: 0;
  resize: vertical;
  padding: 12px;
  color: #e8eee9;
  background: #17201c;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pms-import-dialog textarea:focus {
  border-color: var(--pms-green);
  box-shadow: 0 0 0 3px rgba(13,107,87,.12);
}

.pms-guest-intelligence { display: grid; gap: 14px; }
.pms-guest-segments { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.pms-guest-segments button { min-height: 31px; border: 1px solid var(--pms-line); border-radius: 999px; color: #566159; background: rgba(255,255,255,.78); padding: 0 11px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.pms-guest-segments button.active { color: #fff; border-color: var(--pms-green); background: var(--pms-green); }
.pms-guest-layout { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 12px; align-items: start; }
.pms-guest-directory { max-height: calc(100vh - 278px); overflow: auto; border: 1px solid #343d37; border-radius: 12px; background: #202823; padding: 8px; box-shadow: 0 10px 28px rgba(16,27,22,.13); }
.pms-guest-directory-head { display: flex; align-items: baseline; gap: 6px; padding: 9px 8px 12px; color: #98a39d; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pms-guest-directory-head strong { color: #fff; font: 600 22px Georgia,serif; }
.pms-guest-directory-item { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; color: #d4d9d5; background: transparent; padding: 7px; text-align: left; }
.pms-guest-directory-item:hover { background: rgba(255,255,255,.045); }
.pms-guest-directory-item.active { border-color: rgba(185,133,53,.46); background: linear-gradient(90deg,rgba(185,133,53,.22),rgba(185,133,53,.06)); box-shadow: inset 3px 0 0 var(--pms-gold); }
.pms-guest-directory-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.pms-guest-directory-item strong { overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pms-guest-directory-item small { overflow: hidden; color: #919d96; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pms-guest-directory-item em { color: #231a0b; border-radius: 999px; background: #d6a654; padding: 3px 5px; font: 900 7px ui-monospace,monospace; font-style: normal; }
.pms-guest-mini-avatar,.pms-guest-avatar { display: grid; place-items: center; border: 1px solid rgba(185,133,53,.48); color: #ffdfa1; background: #2b352f; font-family: Georgia,serif; }
.pms-guest-mini-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 10px; }
.pms-guest-profile { min-width: 0; display: grid; gap: 11px; }
.pms-guest-hero { min-height: 132px; display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 16px; border: 1px solid #37413a; border-radius: 13px; color: #fff; background: radial-gradient(circle at 90% 10%,rgba(185,133,53,.22),transparent 32%),var(--pms-night); padding: 18px; }
.pms-guest-avatar { width: 70px; height: 70px; border-radius: 19px; font-size: 24px; }
.pms-guest-identity > span,.pms-guest-brief span { color: var(--pms-gold); font: 800 9px ui-monospace,monospace; letter-spacing: .12em; text-transform: uppercase; }
.pms-guest-identity h3 { margin: 4px 0; color: #fff; font: 600 25px Georgia,serif; }
.pms-guest-identity p { margin: 0; color: #adb7b0; font-size: 10px; }
.pms-guest-identity > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.pms-guest-identity b { color: #153226; border-radius: 999px; background: #d8f0e5; padding: 4px 7px; font-size: 8px; }
.pms-guest-identity b.warning { color: #5b3105; background: #f6dfb4; }
.pms-guest-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pms-guest-actions button,.pms-guest-safety button { min-height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; background: rgba(255,255,255,.06); padding: 0 9px; font-size: 9px; font-weight: 850; }
.pms-guest-kpis { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)); gap: 8px; }
.pms-guest-kpis .pms-kpi { min-height: 88px; }
.pms-guest-brief { display: grid; grid-template-columns: minmax(150px,.35fr) minmax(0,1fr); gap: 16px; border: 1px solid #d8c69f; border-left: 4px solid var(--pms-gold); border-radius: 11px; background: linear-gradient(110deg,#fff9ec,#fffdf8); padding: 14px 16px; }
.pms-guest-brief h3 { margin: 4px 0 0; font: 600 18px Georgia,serif; }
.pms-guest-brief p { grid-column: 2; grid-row: 1; margin: 0; color: #354139; font-size: 11px; line-height: 1.6; }
.pms-guest-brief small { grid-column: 2; color: #7d867f; font-size: 8px; }
.pms-guest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.pms-guest-card { min-height: 210px; }
.pms-guest-wide { grid-column: 1/-1; }
.pms-guest-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; padding: 10px 14px; }
.pms-guest-card dl div { padding: 9px 4px; border-bottom: 1px solid #ecebe4; }
.pms-guest-card dt { color: #828b84; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.pms-guest-card dd { margin: 4px 0 0; color: #26322b; font-size: 10px; font-weight: 750; }
.pms-guest-preferences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px; }
.pms-guest-preferences > div { display: grid; gap: 4px; border: 1px solid #e0dfd7; border-radius: 9px; background: #fff; padding: 10px; }
.pms-guest-preferences strong { color: #1f3028; font-size: 10px; }
.pms-guest-preferences span { color: #48544d; font-size: 10px; }
.pms-guest-preferences small { color: #8b938d; font-size: 8px; }
.pms-guest-timeline { display: grid; gap: 0; padding: 8px 14px 14px; }
.pms-guest-timeline-item { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #ebeae3; }
.pms-guest-timeline-item > i { width: 8px; height: 8px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--pms-green); box-shadow: 0 0 0 1px var(--pms-green); }
.pms-guest-timeline-item strong { color: #2e3a33; font-size: 10px; }
.pms-guest-timeline-item p { margin: 3px 0; color: #57625b; font-size: 10px; line-height: 1.45; }
.pms-guest-timeline-item small,.pms-guest-empty-copy { color: #8b938d; font-size: 8px; }
.pms-guest-safety { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px; }
.pms-guest-safety p { margin: 0; border: 1px solid #e5ddd0; border-radius: 8px; background: #fffaf1; padding: 9px; color: #6d604d; font-size: 9px; }
.pms-guest-safety p strong { display: block; color: #322b20; font: 600 18px Georgia,serif; }
.pms-guest-safety > div { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 6px; }
.pms-guest-safety button { color: #344139; border-color: #d4d7cf; background: #fff; }
.pms-guest-safety button.danger { color: #8e2b2b; border-color: #debaba; }

.pms-program.surface-mobile .pms-program-body {
  grid-template-columns: 74px minmax(0,1fr);
  max-width: 960px;
  margin: 0 auto;
}

.pms-program.surface-mobile .pms-rail-title { display: none; }
.pms-program.surface-mobile .pms-rail nav button { grid-template-columns: 1fr; justify-items: center; min-height: 50px; padding: 4px; }
.pms-program.surface-mobile .pms-rail nav button span { display: none; }
.pms-program.surface-mobile .pms-workspace { padding: 11px; }
.pms-program.surface-mobile .pms-kpis { grid-template-columns: repeat(2, minmax(110px,1fr)); }
.pms-program.surface-mobile .pms-dashboard-grid { grid-template-columns: 1fr; }

@media (max-width: 1100px) {
  .pms-guest-layout { grid-template-columns: 210px minmax(0,1fr); }
  .pms-guest-kpis { grid-template-columns: repeat(2,minmax(110px,1fr)); }
  .pms-guest-grid { grid-template-columns: 1fr; }
  .pms-guest-wide { grid-column: auto; }
  .pms-kpis { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .pms-dashboard-grid,
  .pms-owner-grid,
  .pms-boardroom-grid,
  .pms-supplementary { grid-template-columns: 1fr; }
  .pms-module-head { display: grid; }
  .pms-tools { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .pms-guest-layout { grid-template-columns: 1fr; }
  .pms-guest-directory { max-height: 260px; }
  .pms-guest-hero { grid-template-columns: 52px minmax(0,1fr); padding: 12px; }
  .pms-guest-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 17px; }
  .pms-guest-actions { grid-column: 1/-1; justify-content: flex-start; }
  .pms-guest-brief { grid-template-columns: 1fr; }
  .pms-guest-brief p,.pms-guest-brief small { grid-column: 1; grid-row: auto; }
  .pms-guest-safety { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pms-program { margin: 0; border-radius: 0; min-height: 100vh; }
  .pms-program-header { align-items: flex-start; flex-direction: column; padding: 12px; }
  .pms-property-controls { width: 100%; overflow-x: auto; }
  .pms-program-switches { align-items: flex-start; flex-direction: column; overflow: hidden; }
  .pms-mode-switch,
  .pms-surface-switch { width: 100%; overflow-x: auto; }
  .pms-program-body { grid-template-columns: 64px minmax(0,1fr); }
  .pms-rail { padding: 8px 5px; }
  .pms-rail-title { display: none; }
  .pms-rail nav button { grid-template-columns: 1fr; min-height: 46px; justify-items: center; padding: 4px; }
  .pms-rail nav button span { display: none; }
  .pms-workspace { padding: 9px; }
  .pms-kpis { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 7px; }
  .pms-kpi { min-height: 86px; padding: 9px; }
  .pms-kpi strong { font-size: 20px; }
  .pms-module-head h2 { font-size: 23px; }
  .pms-tools { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .pms-tools label { grid-column: 1 / -1; }
  .pms-tools input { width: 100%; }
  .pms-table thead { display: none; }
  .pms-table,
  .pms-table tbody,
  .pms-table tr,
  .pms-table td { display: block; width: 100%; }
  .pms-table tr { border-bottom: 1px solid var(--pms-line); padding: 8px; }
  .pms-table td { display: flex; justify-content: space-between; max-width: none; border: 0; padding: 5px; white-space: normal; }
  .pms-table td::before { content: attr(data-label); color: #8a918b; font-size: 8px; font-weight: 850; text-transform: uppercase; }
  .pms-row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .pms-form-grid { grid-template-columns: 1fr; }
  .pms-wide { grid-column: auto; }
}

/* PMS iOS mobile application layer — 2026-08-26 */
.pms-program button,
.pms-program select,
.pms-program input,
.pms-program textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pms-search-box {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 260px);
  border: 1px solid var(--pms-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  padding: 0 8px 0 11px;
  box-shadow: 0 1px 2px rgba(14, 26, 43, .04);
}
.pms-search-box > svg { width: 16px; flex: 0 0 16px; color: #64748b; }
.pms-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pms-ink);
  background: transparent;
  font-size: 13px;
}
.pms-search-box button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #e8edf5;
  font-size: 18px;
  line-height: 1;
}

.pms-action-primary {
  color: #fff !important;
  border-color: var(--pms-primary) !important;
  background: linear-gradient(180deg, #315bd4, var(--pms-primary)) !important;
  box-shadow: 0 4px 12px rgba(27, 70, 194, .2);
}
.pms-row-actions button.is-working { cursor: wait; opacity: .72; }

.pms-mobile-tabs,
.pms-mobile-sheet-backdrop { display: none; }

:root[data-theme="dark"] .pms-program {
  --pms-ink: #e8eef8;
  --pms-muted: #a0adc2;
  --pms-paper: #0a101b;
  --pms-panel: #111a2b;
  --pms-line: #263249;
  --pms-primary: #86a8f2;
  --pms-primary-strong: #6e91e8;
  --pms-primary-soft: #17264a;
  --pms-gold: #f0b45e;
  --pms-night: #09111f;
  color-scheme: dark;
  color: var(--pms-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 126, 224, .18), transparent 30%),
    linear-gradient(180deg, #0d1421, var(--pms-paper));
  border-color: var(--pms-line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .pms-workspace { background: transparent; }
:root[data-theme="dark"] .pms-module-head h2,
:root[data-theme="dark"] .pms-panel-head h3,
:root[data-theme="dark"] .pms-record-card > strong,
:root[data-theme="dark"] .pms-empty strong,
:root[data-theme="dark"] .pms-import-help strong,
:root[data-theme="dark"] .pms-kpi strong,
:root[data-theme="dark"] .pms-module-count strong,
:root[data-theme="dark"] .pms-guest-card dd,
:root[data-theme="dark"] .pms-guest-preferences strong,
:root[data-theme="dark"] .pms-guest-timeline-item strong,
:root[data-theme="dark"] .pms-guest-safety p strong { color: var(--pms-ink); }
:root[data-theme="dark"] .pms-panel,
:root[data-theme="dark"] .pms-kpi,
:root[data-theme="dark"] .pms-record-card,
:root[data-theme="dark"] .pms-guest-preferences > div,
:root[data-theme="dark"] .pms-search-box,
:root[data-theme="dark"] .pms-tools > button,
:root[data-theme="dark"] .pms-panel-head button,
:root[data-theme="dark"] .pms-row-actions button,
:root[data-theme="dark"] .pms-pagination select,
:root[data-theme="dark"] .pms-pagination button,
:root[data-theme="dark"] .pms-field input,
:root[data-theme="dark"] .pms-field select,
:root[data-theme="dark"] .pms-field textarea,
:root[data-theme="dark"] .pms-check,
:root[data-theme="dark"] .pms-dialog footer button,
:root[data-theme="dark"] .pms-guest-safety button {
  color: var(--pms-ink);
  border-color: var(--pms-line);
  background: var(--pms-panel);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
}
:root[data-theme="dark"] .pms-search-box input,
:root[data-theme="dark"] .pms-field input,
:root[data-theme="dark"] .pms-field select,
:root[data-theme="dark"] .pms-field textarea { color: var(--pms-ink); }
:root[data-theme="dark"] .pms-search-box button { color: #c5d2e8; background: #263249; }
:root[data-theme="dark"] .pms-table th,
:root[data-theme="dark"] .pms-dialog footer { color: #aebbd0; background: #16203a; }
:root[data-theme="dark"] .pms-table td,
:root[data-theme="dark"] .pms-guest-card dl div,
:root[data-theme="dark"] .pms-guest-timeline-item { color: #d5deec; border-color: #1e2942; }
:root[data-theme="dark"] .pms-table tbody tr:hover { background: #16203a; }
:root[data-theme="dark"] .pms-dialog { color: var(--pms-ink); background: #0d1421; border-color: var(--pms-line); }
:root[data-theme="dark"] .pms-guest-brief {
  color: var(--pms-ink);
  border-color: #304778;
  border-left-color: var(--pms-primary);
  background: linear-gradient(110deg, #16284d, #111a2b);
}
:root[data-theme="dark"] .pms-guest-brief p,
:root[data-theme="dark"] .pms-guest-preferences span,
:root[data-theme="dark"] .pms-guest-timeline-item p,
:root[data-theme="dark"] .pms-guest-safety p { color: #c2cde0; }
:root[data-theme="dark"] .pms-guest-safety p { border-color: #3b352c; background: #211d17; }
:root[data-theme="dark"] .pms-view-toggle button.active,
:root[data-theme="dark"] .pms-guest-segments button.active,
:root[data-theme="dark"] .pms-action-primary { color: #071126 !important; background: var(--pms-primary) !important; }

@media (max-width: 760px) {
  .pms-program {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Plus Jakarta Sans", Inter, sans-serif;
  }

  .pms-program-header {
    position: sticky;
    top: 0;
    z-index: 45;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(4, 10, 20, .16);
  }
  .pms-brand { gap: 9px; }
  .pms-brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; padding: 5px; }
  .pms-brand span { font-size: 8px; letter-spacing: .09em; }
  .pms-brand h1 { max-width: 52vw; margin-top: 2px; font-size: 15px; white-space: nowrap; }
  .pms-brand p { display: none; }

  .pms-property-controls { align-self: center; display: flex; gap: 6px; }
  .pms-property-controls label,
  .pms-property-controls .pms-live,
  .pms-property-controls .pms-night-audit { display: none; }
  .pms-property-controls button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 12px;
  }
  .pms-property-controls button svg { width: 18px; height: 18px; }
  .pms-property-controls button span { display: none; }

  .pms-program-switches {
    position: sticky;
    top: calc(64px + env(safe-area-inset-top));
    z-index: 40;
    min-height: 52px;
    display: block;
    padding: 6px 10px;
    background: rgba(17, 28, 47, .97);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .pms-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .pms-mode-switch button { min-height: 40px; padding: 0 8px; border-radius: 10px; font-size: 11px; }
  .pms-surface-switch { display: none; }

  .pms-program-body,
  .pms-program.surface-mobile .pms-program-body { display: block; min-height: 0; }
  .pms-rail,
  .pms-program.surface-mobile .pms-rail { display: none; }
  .pms-workspace,
  .pms-program.surface-mobile .pms-workspace {
    min-height: calc(100dvh - 192px);
    padding: 14px 12px 18px;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .pms-module,
  .pms-dashboard,
  .pms-owner-view,
  .pms-boardroom { gap: 12px; }
  .pms-module-head { display: grid; gap: 12px; }
  .pms-module-head h2 { font-size: 23px; letter-spacing: -.025em; }
  .pms-module-head p { font-size: 12px; line-height: 1.45; }

  .pms-tools {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: visible;
  }
  .pms-search-box { order: -10; width: 100%; min-width: 100%; min-height: 46px; border-radius: 13px; padding-inline: 12px 8px; }
  .pms-search-box input { font-size: 16px; }
  .pms-search-box button { width: 30px; height: 30px; flex-basis: 30px; }
  .pms-tools > button,
  .pms-view-toggle button,
  .pms-panel-head button,
  .pms-linked button,
  .pms-setup button,
  .pms-error button { min-height: 44px; border-radius: 11px; padding-inline: 13px; font-size: 11px; }
  .pms-view-toggle { min-height: 44px; border-radius: 11px; }

  .pms-kpis,
  .pms-program.surface-mobile .pms-kpis,
  .pms-guest-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pms-kpi { min-height: 94px; border-radius: 14px; padding: 11px; }
  .pms-kpi strong { font-size: 21px; }

  .pms-panel { border-radius: 15px; }
  .pms-panel-head { min-height: 54px; padding: 10px 12px; }
  .pms-card-grid { grid-template-columns: 1fr; padding: 10px; }
  .pms-record-card { gap: 9px; border-radius: 14px; padding: 13px; box-shadow: 0 4px 14px rgba(14, 26, 43, .06); }
  .pms-record-card > strong { font-size: 16px; }
  .pms-record-card > span { min-height: 24px; align-items: center; }

  .pms-table-wrap { overflow: visible; }
  .pms-table tbody { display: grid; gap: 10px; padding: 10px; }
  .pms-table tr {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--pms-line);
    border-radius: 14px;
    background: var(--pms-panel);
    box-shadow: 0 4px 14px rgba(14, 26, 43, .06);
  }
  .pms-table td { min-height: 32px; align-items: center; gap: 12px; padding: 6px 3px; }
  .pms-table td::before { flex: 0 0 36%; text-align: left; }
  .pms-table td:last-child { display: block; padding-top: 9px; }
  .pms-table td:last-child::before { display: none; }
  .pms-row-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pms-row-actions button { width: 100%; min-height: 44px; border-radius: 11px; padding: 0 9px; font-size: 10px; }
  .pms-row-actions .pms-action-primary { grid-column: 1 / -1; font-size: 12px; }

  .pms-module-count { display: grid; gap: 8px; }
  .pms-pagination { width: 100%; justify-content: space-between; }
  .pms-pagination select,
  .pms-pagination button { min-height: 40px; }

  .pms-guest-layout { grid-template-columns: 1fr; }
  .pms-guest-directory { max-height: 252px; border-radius: 15px; }
  .pms-guest-directory-item { min-height: 62px; }
  .pms-guest-hero { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; border-radius: 16px; padding: 14px; }
  .pms-guest-avatar { width: 52px; height: 52px; border-radius: 15px; }
  .pms-guest-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .pms-guest-actions button { min-height: 42px; }
  .pms-guest-grid { grid-template-columns: 1fr; }
  .pms-guest-brief { grid-template-columns: 1fr; border-radius: 14px; }
  .pms-guest-brief p,
  .pms-guest-brief small { grid-column: 1; grid-row: auto; }
  .pms-guest-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pms-guest-safety > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pms-guest-safety button { min-height: 44px; }

  .pms-mobile-tabs {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding: 5px 6px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(148, 163, 184, .28);
    background: rgba(250, 252, 255, .92);
    box-shadow: 0 -8px 28px rgba(14, 26, 43, .12);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
  }
  .pms-mobile-tabs button {
    min-width: 0;
    height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 12px;
    color: #64748b;
    background: transparent;
    padding: 3px;
    font-size: 9px;
    font-weight: 750;
  }
  .pms-mobile-tabs button svg { width: 20px; height: 20px; }
  .pms-mobile-tabs button.active { color: var(--pms-primary); background: var(--pms-primary-soft); }

  .pms-mobile-sheet-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    align-items: end;
    background: rgba(4, 10, 20, .54);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .pms-mobile-sheet {
    max-height: 82dvh;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    overflow: hidden;
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
    border: 1px solid var(--pms-line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    color: var(--pms-ink);
    background: var(--pms-panel);
    box-shadow: 0 -24px 70px rgba(4, 10, 20, .3);
  }
  .pms-mobile-sheet-handle { width: 38px; height: 5px; justify-self: center; border-radius: 99px; background: #aab4c3; }
  .pms-mobile-sheet header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
  .pms-mobile-sheet header span { color: var(--pms-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .pms-mobile-sheet h2 { margin: 2px 0 0; font-size: 22px; }
  .pms-mobile-sheet header button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--pms-muted); background: var(--pms-paper); font-size: 24px; }
  .pms-mobile-property { display: grid; gap: 5px; padding: 0 4px; color: var(--pms-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .pms-mobile-property select { width: 100%; min-height: 46px; border: 1px solid var(--pms-line); border-radius: 12px; color: var(--pms-ink); background: var(--pms-paper); padding: 0 11px; font-size: 16px; }
  .pms-mobile-surfaces { display: grid; gap: 5px; padding: 0 4px; }
  .pms-mobile-surfaces > span { color: var(--pms-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .pms-mobile-surfaces > div { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
  .pms-mobile-surfaces button { min-height: 38px; flex: 1 0 auto; border: 1px solid var(--pms-line); border-radius: 10px; color: var(--pms-muted); background: var(--pms-paper); padding: 0 10px; font-size: 10px; font-weight: 800; text-transform: capitalize; }
  .pms-mobile-surfaces button.active { color: #fff; border-color: var(--pms-primary); background: var(--pms-primary); }
  .pms-mobile-sheet nav { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 8px; -webkit-overflow-scrolling: touch; }
  .pms-mobile-sheet nav button { min-height: 76px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px solid var(--pms-line); border-radius: 15px; color: var(--pms-ink); background: var(--pms-paper); padding: 8px 5px; font-size: 10px; font-weight: 750; text-align: center; }
  .pms-mobile-sheet nav button svg { width: 21px; height: 21px; color: var(--pms-muted); }
  .pms-mobile-sheet nav button.active { color: var(--pms-primary); border-color: var(--pms-primary); background: var(--pms-primary-soft); }
  .pms-mobile-sheet nav button.active svg { color: var(--pms-primary); }
  .pms-mobile-night-audit { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--pms-line); border-radius: 13px; color: var(--pms-ink); background: var(--pms-paper); font-weight: 800; }

  .pms-dialog-backdrop {
    z-index: 100;
    align-items: end;
    padding: 0;
    background: rgba(4, 10, 20, .54);
  }
  .pms-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border: 1px solid var(--pms-line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 70px rgba(4, 10, 20, .32);
  }
  .pms-dialog > header { min-height: 64px; padding: 12px 15px; }
  .pms-dialog > header h2 { font-size: 18px; }
  .pms-dialog > header button { width: 40px; height: 40px; border-radius: 50%; }
  .pms-dialog form { min-height: 0; }
  .pms-form-grid { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
  .pms-wide { grid-column: auto; }
  .pms-field input,
  .pms-field select,
  .pms-field textarea { min-height: 48px; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
  .pms-field textarea { min-height: 112px; }
  .pms-check { min-height: 48px; border-radius: 12px; }
  .pms-dialog footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 22px rgba(14, 26, 43, .08);
  }
  .pms-dialog footer button { min-height: 48px; border-radius: 12px; font-size: 12px; }
  .pms-dialog footer button.primary { order: -1; }
  .pms-dialog footer button.danger { grid-column: 1 / -1; }
  .pms-import-dialog textarea { min-height: 180px; margin: 8px 14px 12px; font-size: 16px; }

  :root[data-theme="dark"] .pms-mobile-tabs { border-top-color: #263249; background: rgba(13, 20, 33, .93); box-shadow: 0 -8px 28px rgba(0, 0, 0, .3); }
  :root[data-theme="dark"] .pms-mobile-sheet,
  :root[data-theme="dark"] .pms-dialog { background: #0d1421; }
  :root[data-theme="dark"] .pms-table tr,
  :root[data-theme="dark"] .pms-record-card { background: #111a2b; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }
}

/* Kraken palette bridge — 2026-08-26 */
.pms-program {
  --pms-ink: #0e1a2b;
  --pms-muted: #5b6b81;
  --pms-paper: #eef1f7;
  --pms-panel: #ffffff;
  --pms-line: #dfe5ee;
  --pms-primary: #1b46c2;
  --pms-primary-strong: #12369c;
  --pms-primary-soft: #e9efff;
  --pms-green: var(--pms-primary-strong);
  --pms-green-2: var(--pms-primary);
  --pms-teal: #0d9488;
  --pms-gold: var(--pms-primary);
  --pms-night: #0e1a2b;
  border-color: var(--pms-line);
  border-radius: 12px;
  color: var(--pms-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(27, 70, 194, .09), transparent 30%),
    linear-gradient(180deg, #f7f9fd, var(--pms-paper));
  box-shadow: 0 16px 42px rgba(14, 26, 43, .12);
  font-family: "Plus Jakarta Sans", Satoshi, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pms-program-header {
  background:
    radial-gradient(circle at 88% 0%, rgba(68, 108, 225, .28), transparent 32%),
    linear-gradient(118deg, #0a1424, var(--pms-night) 58%, #132c68);
}

.pms-brand h1,
.pms-module-head h2,
.pms-owner-hero h2,
.pms-boardroom-head h2,
.pms-linked h2,
.pms-setup h2,
.pms-dialog h2,
.pms-panel-head h3,
.pms-record-card > strong,
.pms-empty strong,
.pms-import-help strong,
.pms-guest-directory-head strong,
.pms-guest-identity h3,
.pms-guest-brief h3,
.pms-guest-safety p strong {
  font-family: "Plus Jakarta Sans", Satoshi, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
}

.pms-brand p,
.pms-property-controls label,
.pms-live,
.pms-owner-hero p,
.pms-boardroom-head p { color: #a7b5ca; }

.pms-program-switches,
.pms-rail,
.pms-guest-directory {
  color: #c9d4e6;
  background: #111c2f;
  border-color: #263249;
}

.pms-program-switches button.active {
  color: #fff;
  border-color: #5e82e5;
  background: linear-gradient(180deg, #315bd4, var(--pms-primary));
  box-shadow: 0 6px 18px rgba(27, 70, 194, .22);
}

.pms-rail-title span,
.pms-rail nav button svg,
.pms-guest-directory-head { color: #8290a8; }
.pms-rail nav button { color: #a0adc2; }
.pms-rail nav button.active,
.pms-guest-directory-item.active {
  color: #fff;
  border-color: rgba(110, 145, 240, .5);
  background: linear-gradient(90deg, rgba(49, 91, 212, .34), rgba(27, 70, 194, .08));
  box-shadow: inset 3px 0 0 #6e91f0;
}
.pms-rail nav button.active svg { color: #91aff7; }

.pms-tools > button,
.pms-view-toggle,
.pms-panel-head button,
.pms-row-actions button,
.pms-linked button,
.pms-setup button,
.pms-error button,
.pms-pagination select,
.pms-pagination button,
.pms-field input,
.pms-field select,
.pms-field textarea,
.pms-check,
.pms-dialog footer button,
.pms-import-dialog textarea { border-color: var(--pms-line); }

.pms-view-toggle button.active,
.pms-guest-segments button.active { background: var(--pms-primary); }

.pms-panel,
.pms-kpi {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 16px rgba(14, 26, 43, .06);
}
.pms-kpi strong { color: var(--pms-ink); }
.pms-kpi.teal { border-top-color: var(--pms-primary); }

.pms-table th,
.pms-dialog footer { background: #f3f6fb; }
.pms-table tbody tr:hover { background: #f3f6fb; }

.pms-owner-hero,
.pms-boardroom-head,
.pms-guest-hero {
  border-color: #263f78;
  background:
    radial-gradient(circle at 90% 10%, rgba(68, 108, 225, .3), transparent 32%),
    linear-gradient(118deg, var(--pms-night), #132c68);
}

.pms-dialog-backdrop { background: rgba(8, 15, 28, .62); }
.pms-dialog {
  border-color: var(--pms-line);
  border-radius: 12px;
  background: #f7f9fd;
  box-shadow: 0 36px 100px rgba(8, 15, 28, .38);
}
.pms-import-dialog textarea { color: #e8eef8; background: var(--pms-night); }

.pms-field input:focus,
.pms-field select:focus,
.pms-field textarea:focus,
.pms-import-dialog textarea:focus {
  border-color: var(--pms-primary);
  box-shadow: 0 0 0 3px rgba(27, 70, 194, .13);
}

.pms-guest-directory {
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(14, 26, 43, .14);
}
.pms-guest-mini-avatar,
.pms-guest-avatar {
  border-color: rgba(110, 145, 240, .55);
  color: #dbe6ff;
  background: #1a2b4a;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
}
.pms-guest-brief {
  border-color: #cfdaf7;
  border-left-color: var(--pms-primary);
  background: linear-gradient(110deg, #eef3ff, #fff);
}
.pms-guest-timeline-item > i {
  background: var(--pms-primary);
  box-shadow: 0 0 0 1px var(--pms-primary);
}

@media (max-width: 760px) {
  .pms-program { border-radius: 0; }
}

/* Kraken room planning and unified product accents. */
.pms-program { --pms-primary:#0062e0; --pms-primary-strong:#004daf; --pms-primary-soft:#eaf2ff; --pms-gold:#0062e0; --pms-night:#0a192f; }
.pms-program-header { background:linear-gradient(115deg,#050b14,#0a192f 62%,#064eab); }
.pms-room-calendar .pms-module-head { flex-wrap:wrap; }
.pms-calendar-summary { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 16px; color:var(--pms-ink); background:var(--pms-primary-soft); border:1px solid var(--pms-line); border-radius:10px; }
.pms-calendar-summary span { color:var(--pms-muted); font-size:12px; }
.pms-calendar-loading { padding:24px; color:var(--pms-muted); }
.pms-room-calendar-scroll { overflow:auto; max-height:min(68vh,720px); border:1px solid var(--pms-line); border-radius:12px; background:var(--pms-panel); }
.pms-room-calendar-grid { min-width:1250px; }
.pms-room-calendar-heading,.pms-room-calendar-row { display:grid; grid-template-columns:150px repeat(14,minmax(76px,1fr)); }
.pms-room-calendar-heading { position:sticky; top:0; z-index:2; background:var(--pms-primary-soft); border-bottom:1px solid var(--pms-line); }
.pms-room-calendar-row { border-bottom:1px solid var(--pms-line); min-height:57px; }
.pms-room-calendar-row:last-child { border-bottom:0; }
.pms-room-calendar-room { position:sticky; left:0; z-index:1; display:flex; flex-direction:column; justify-content:center; gap:2px; padding:8px 12px; border-right:1px solid var(--pms-line); background:var(--pms-panel); }
.pms-room-calendar-heading .pms-room-calendar-room { z-index:3; background:var(--pms-primary-soft); font-weight:700; }
.pms-room-calendar-room small { color:var(--pms-muted); font-size:10px; }
.pms-room-calendar-date { padding:7px 4px; text-align:center; border-right:1px solid var(--pms-line); font-size:11px; }
.pms-room-calendar-date span { display:block; color:var(--pms-muted); margin-top:2px; }
.pms-room-calendar-cell { display:flex; align-items:center; justify-content:center; padding:4px; min-width:0; border-right:1px solid var(--pms-line); color:#8fa0b8; }
.pms-room-calendar-cell.booked { background:var(--pms-primary-soft); }
.pms-room-calendar-cell button { width:100%; min-height:36px; padding:5px; border:1px solid #b7d2f7; border-radius:6px; background:#dceaff; color:#004daf; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; font-weight:650; cursor:pointer; }
.pms-room-calendar-cell button:hover,.pms-room-calendar-cell button:focus-visible { border-color:var(--pms-primary); background:#c9e0ff; }
.pms-calendar-booking { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:14px 16px; margin-top:12px; border:1px solid var(--pms-line); border-left:3px solid var(--pms-primary); border-radius:10px; background:var(--pms-panel); }
.pms-calendar-booking>div { display:flex; flex-direction:column; gap:4px; }
.pms-calendar-booking span { color:var(--pms-muted); font-size:12px; }
.pms-calendar-booking button { border:0; background:transparent; color:var(--pms-muted); font-size:22px; }
:root[data-theme="dark"] .pms-room-calendar-scroll { background:#111a2b; }
:root[data-theme="dark"] .pms-room-calendar-room { background:#111a2b; }
:root[data-theme="dark"] .pms-room-calendar-heading,:root[data-theme="dark"] .pms-room-calendar-heading .pms-room-calendar-room { background:#172a49; }
:root[data-theme="dark"] .pms-room-calendar-cell.booked { background:#102b52; }
:root[data-theme="dark"] .pms-room-calendar-cell button { color:#d9ecff; background:#16447c; border-color:#4779ba; }

/* Keep daily work visible and secondary navigation discoverable. */
.pms-rail details { margin-top:9px; border-top:1px solid #2c3b52; padding-top:9px; }
.pms-rail details summary { padding:8px 9px; border-radius:8px; color:#b9c9e2; font-size:11px; font-weight:700; cursor:pointer; }
.pms-rail details summary:hover,.pms-rail details[open] summary { color:#fff; background:#1d3152; }
.pms-rail details nav { padding-top:5px; }
.pms-program-switches button:not(.active) { color:#c9d4e6; background:#1a2a43; border-color:#304663; }
.pms-program-switches button:not(.active):hover { color:#fff; background:#243d60; }
.pms-dashboard-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:18px 20px; border:1px solid #cbdaf0; border-radius:12px; background:linear-gradient(112deg,#fff,#ecf4ff); }
.pms-dashboard-head span { color:#0062e0; font-size:10px; font-weight:800; letter-spacing:.1em; }
.pms-dashboard-head h2 { margin:4px 0 3px; font-size:23px; color:#0a192f; }
.pms-dashboard-head p { margin:0; color:#526179; font-size:12px; }
.pms-dashboard-head button,.pms-dashboard-empty button { padding:9px 13px; border:1px solid #a9c8ee; border-radius:8px; color:#004daf; background:#fff; font-size:11px; font-weight:750; }
.pms-dashboard-empty { padding:22px; color:var(--pms-muted); }
.pms-dashboard-empty strong { display:block; margin-bottom:4px; color:var(--pms-ink); }
.pms-dashboard-empty p { margin:0 0 12px; }
.pms-dashboard-actions>div:last-child { display:grid; gap:7px; padding:12px; }
.pms-dashboard-actions>div:last-child button { display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px; border:1px solid var(--pms-line); border-radius:9px; background:var(--pms-panel); color:var(--pms-primary); text-align:left; }
.pms-dashboard-actions>div:last-child button:hover { border-color:#a9c8ee; background:var(--pms-primary-soft); }
.pms-dashboard-actions>div:last-child button svg { width:17px; flex:none; }
.pms-dashboard-actions>div:last-child button span { display:grid; flex:1; gap:2px; }
.pms-dashboard-actions>div:last-child button strong { color:var(--pms-ink); font-size:11px; }
.pms-dashboard-actions>div:last-child button small { color:var(--pms-muted); font-size:10px; }
.pms-calendar-jump { display:flex!important; align-items:center; gap:6px; color:var(--pms-muted); font-size:11px; font-weight:700; }
.pms-calendar-jump input { width:130px; min-height:34px; padding:0 7px; border:1px solid var(--pms-line); border-radius:7px; color:var(--pms-ink); background:var(--pms-panel); }
.pms-calendar-unassigned { padding:4px 8px; border-radius:5px; color:#8a5200!important; background:#fff0d7; font-weight:700; }
.pms-room-calendar-grid { min-width:934px; }
.pms-room-calendar-heading,.pms-room-calendar-row { grid-template-columns:150px repeat(14,minmax(56px,1fr)); }
.pms-room-calendar-row { position:relative; }
.pms-room-calendar-row .pms-room-calendar-room,.pms-room-calendar-cell,.pms-room-calendar-stay { grid-row:1; }
.pms-room-calendar-row .pms-room-calendar-room { grid-column:1; }
.pms-room-calendar-cell { border-right:1px solid var(--pms-line); }
.pms-room-calendar-cell.today,.pms-room-calendar-date.today { background:#eaf2ff; }
.pms-room-calendar-date.today b { color:#0062e0; }
.pms-room-calendar-stay { z-index:1; display:flex; align-self:center; align-items:center; justify-content:space-between; gap:5px; min-width:0; height:36px; margin:0 3px; padding:0 9px; border:1px solid #9ebff2; border-radius:7px; color:#06458e; background:#dceaff; box-shadow:0 1px 3px rgba(5,44,100,.12); cursor:pointer; }
.pms-room-calendar-stay.in-house { border-color:#057c82; color:#005b60; background:#d8f4f1; }
.pms-room-calendar-stay:hover,.pms-room-calendar-stay:focus-visible { z-index:2; outline:2px solid #0062e0; outline-offset:1px; }
.pms-room-calendar-stay span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:750; }
.pms-room-calendar-stay small { flex:none; font-size:9px; }
.pms-room-calendar-stay.short small { display:none; }
:root[data-theme="dark"] .pms-dashboard-head { border-color:#29415e; background:linear-gradient(112deg,#10243e,#173b6b); }
:root[data-theme="dark"] .pms-dashboard-head h2 { color:#f0f4f8; }
:root[data-theme="dark"] .pms-dashboard-head p { color:#b8c7d9; }
:root[data-theme="dark"] .pms-room-calendar-cell.today,:root[data-theme="dark"] .pms-room-calendar-date.today { background:#173b6b; }
:root[data-theme="dark"] .pms-room-calendar-stay { color:#e5f1ff; background:#16447c; border-color:#4779ba; }
:root[data-theme="dark"] .pms-room-calendar-stay.in-house { color:#d9fff5; background:#165857; border-color:#48aaa5; }
@media(max-width:760px) {
  .pms-rail-more,.pms-connected-menu { display:none; }
  .pms-dashboard-head { padding:14px; }
  .pms-dashboard-head h2 { font-size:19px; }
  .pms-calendar-jump { grid-column:1/-1; justify-content:space-between; }
  .pms-calendar-jump input { width:160px!important; }
  .pms-room-calendar-grid { min-width:934px; }
}

/* Embed PMS in Kraken's page and contextual-navigation structure. */
.pms-program { min-height:0; margin:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
#app .pms-program .pms-program-header { min-height:82px; padding:16px 20px; border:1px solid var(--pms-line); border-radius:10px 10px 0 0; color:var(--pms-ink); background:var(--pms-panel); box-shadow:none; }
.pms-brand span { color:var(--pms-primary); font:700 11px/1.3 "Space Grotesk",Inter,sans-serif; letter-spacing:.06em; }
.pms-brand h1 { color:var(--pms-ink); font:700 clamp(22px,2vw,28px)/1.2 "Space Grotesk",Inter,sans-serif; }
.pms-brand p { margin:3px 0 0; color:var(--pms-muted); font:400 13px/1.4 Inter,sans-serif; }
.pms-property-controls label { color:var(--pms-muted); font:700 11px/1.3 "Space Grotesk",Inter,sans-serif; letter-spacing:0; text-transform:none; }
.pms-property-controls select,.pms-property-controls button { min-height:36px; color:var(--pms-ink); background:var(--pms-panel); border:1px solid var(--pms-line); box-shadow:none; }
.pms-property-controls button:hover { color:var(--pms-primary); border-color:#a9c8ee; background:var(--pms-primary-soft); }
.pms-program-switches { min-height:52px; padding:8px 16px; color:var(--pms-ink); background:var(--pms-panel); border:1px solid var(--pms-line); border-top:0; border-bottom:0; }
.pms-program-switches button,.pms-program-switches button:not(.active) { min-height:34px; color:var(--pms-muted); background:transparent; border:1px solid transparent; border-radius:7px; box-shadow:none; font-size:12px; font-weight:650; }
.pms-program-switches button:not(.active):hover { color:var(--pms-primary); background:var(--pms-primary-soft); }
.pms-program-switches button.active { color:#fff; border-color:var(--pms-primary); background:var(--pms-primary); box-shadow:none; }
.pms-mode-switch,.pms-surface-switch { padding:3px; border:1px solid var(--pms-line); border-radius:9px; background:var(--pms-paper); }
.pms-program-body,.pms-program.surface-mobile .pms-program-body { display:block; min-height:0; }
.pms-rail { position:relative; z-index:10; display:flex; align-items:center; gap:8px; min-width:0; min-height:54px; padding:5px 14px; border:1px solid var(--pms-line); border-bottom:0; background:var(--pms-panel); color:var(--pms-ink); }
.pms-rail-daily { display:flex; align-items:center; flex:1; min-width:0; gap:3px; overflow-x:auto; scrollbar-width:thin; }
.pms-rail .pms-rail-daily button,.pms-rail-more>div button { display:inline-flex; align-items:center; flex:none; gap:6px; min-height:36px; padding:0 10px; border:1px solid transparent; border-radius:7px; color:var(--pms-muted); background:transparent; white-space:nowrap; font-size:12px; font-weight:650; }
.pms-rail button svg { width:15px; height:15px; flex:none; }
.pms-rail .pms-rail-daily button:hover,.pms-rail-more>div button:hover { color:var(--pms-primary); background:var(--pms-primary-soft); }
.pms-rail .pms-rail-daily button.active,.pms-rail-more>div button.active { color:var(--pms-primary); border-color:#c9dcf8; background:var(--pms-primary-soft); box-shadow:none; }
.pms-rail details { position:relative; flex:none; margin:0; padding:0; border:0; }
.pms-rail details summary { display:flex; align-items:center; min-height:36px; padding:0 10px; border-radius:7px; color:var(--pms-muted); background:transparent; font-size:12px; font-weight:650; white-space:nowrap; }
.pms-rail details summary:hover,.pms-rail details.active summary,.pms-rail details[open] summary { color:var(--pms-primary); background:var(--pms-primary-soft); }
.pms-rail-more>div { position:absolute; top:calc(100% + 7px); right:0; z-index:12; display:grid; grid-template-columns:repeat(2,minmax(160px,1fr)); gap:3px; width:max-content; max-width:min(440px,90vw); padding:8px; border:1px solid var(--pms-line); border-radius:10px; background:var(--pms-panel); box-shadow:0 12px 28px rgba(5,11,20,.16); }
.pms-rail-more>div button { width:100%; }
.pms-workspace,.pms-program.surface-mobile .pms-workspace { min-height:0; padding:16px; border:1px solid var(--pms-line); border-radius:0 0 10px 10px; background:var(--pms-paper); }
.pms-module-head h2,.pms-dashboard-head h2 { font-family:"Space Grotesk",Inter,sans-serif; font-weight:700; }
:root[data-theme="dark"] #app .pms-program .pms-program-header,:root[data-theme="dark"] .pms-program-switches,:root[data-theme="dark"] .pms-rail { background:#0a192f; }
:root[data-theme="dark"] .pms-property-controls select,:root[data-theme="dark"] .pms-property-controls button,:root[data-theme="dark"] .pms-rail-more>div { color:#f0f4f8; background:#10243e; }
:root[data-theme="dark"] .pms-rail .pms-rail-daily button.active,:root[data-theme="dark"] .pms-rail-more>div button.active { color:#dceaff; border-color:#2d568c; background:#173b6b; }
@media(max-width:760px) {
  .pms-program { min-height:0; padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  #app .pms-program .pms-program-header { position:relative; top:auto; min-height:0; padding:12px; border-radius:0; box-shadow:none; }
  .pms-brand h1 { max-width:none; font-size:20px; white-space:normal; }
  .pms-brand p { display:block; font-size:11px; }
  .pms-property-controls { width:auto; }
  .pms-program-switches { position:relative; top:auto; min-height:0; padding:7px 10px; background:var(--pms-panel); backdrop-filter:none; }
  .pms-mode-switch { width:100%; }
  .pms-mode-switch button { min-height:38px; }
  .pms-rail,.pms-program.surface-mobile .pms-rail { display:none; }
  .pms-workspace,.pms-program.surface-mobile .pms-workspace { padding:12px; border-radius:0; }
}
