/* Avenlo House · original hospitality workspace. MIT.
 * Locally bundled Manrope and Source Sans 3 are licensed under SIL OFL.
 * Shared layout primitives are followed by the complete premium page-family skin. */
@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --canvas: #f4f5f2;
  --surface: #fff;
  --surface-raised: #ffffff;
  --surface-tint: #f8faf7;
  --sidebar: #f9faf7;
  --ink: #20363d;
  --muted: #596b70;
  --line: #dce3df;
  --line-strong: #bdcdc7;
  --accent: #245c65;
  --accent-hover: #1c4d56;
  --accent-end: #35747a;
  --on-accent: #ffffff;
  --soft: #e8f0ed;
  --sand: #e9ded0;
  --sand-soft: #f6f0e7;
  --brass-text: #245c65;
  --moss: #39735f;
  --clay: #a65f43;
  --good-bg: #eaf3ed;
  --warm-ink: #80512e;
  --warm-bg: #f8efdf;
  --bad-ink: #a24637;
  --bad-bg: #fbede8;
  --shadow-sm: 0 2px 4px #20363d03, 0 7px 20px #20363d04;
  --shadow-card: 0 2px 4px #20363d04, 0 12px 32px #20363d07;
  --shadow-lift: 0 7px 15px #20363d07, 0 18px 36px #20363d0e;
  --shadow-dialog: 0 30px 90px #102a3c38, 0 4px 16px #102a3c1a;
  --focus: #327880;
  --focus-soft: #32788024;
  --scrim: #10272ec2;
  --sidebar-width: 252px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --canvas: #17282e;
  --surface: #20363d;
  --surface-raised: #29444b;
  --surface-tint: #243c42;
  --sidebar: #1c3036;
  --ink: #ecf1ed;
  --muted: #bdcbc9;
  --line: #3c545b;
  --line-strong: #59767b;
  --accent: #9bd0cc;
  --accent-hover: #b4deda;
  --accent-end: #b0ddd4;
  --on-accent: #17383e;
  --soft: #2b474d;
  --sand: #3f4a48;
  --sand-soft: #354341;
  --brass-text: #9bd0cc;
  --moss: #b4d6bd;
  --clay: #e4b198;
  --good-bg: #2c4a40;
  --warm-ink: #f1d3a3;
  --warm-bg: #4a4133;
  --bad-ink: #f2b7a7;
  --bad-bg: #4c3634;
  --shadow-sm: 0 2px 6px #08191e15, 0 7px 20px #08191e16;
  --shadow-card: 0 2px 6px #08191e20, 0 12px 32px #08191e22;
  --shadow-lift: 0 6px 18px #08191e30, 0 20px 40px #08191e30;
  --shadow-dialog: 0 30px 90px #06141888, 0 4px 16px #06141855;
  --focus: #a7dcd6;
  --focus-soft: #a7dcd628;
  --scrim: #08171dd1;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 90px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  background-image: radial-gradient(
    ellipse at 100% 0%,
    color-mix(in srgb, var(--sand) 27%, transparent),
    transparent 60%
  );
  color: var(--ink);
  font:
    15.5px/1.5 'Source Sans 3',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, sans-serif;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: 28px;
  font-weight: 750;
  margin: 7px 0 9px;
  letter-spacing: -0.95px;
}
h2 {
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
h4 {
  font-size: 14px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
h1 {
  font-weight: 750;
}
p {
  margin: 0 0 14px;
}
p:last-child {
  margin-bottom: 0;
}
small {
  font-size: 13px;
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent-hover);
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
}
button,
.btn,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}
svg.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  vertical-align: middle;
}
iframe,
canvas {
  max-width: 100%;
}
.tabular,
time,
.document-totals,
.kpi,
.room-number {
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
/* The application shell keeps navigation and the duty-manager footer distinct. */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 26px 16px 18px;
  background: linear-gradient(165deg, var(--surface), var(--sidebar) 38%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  transition:
    transform 240ms var(--ease),
    visibility 240ms;
}
.sidebar > .brand,
.sidebar > .property-switch,
.sidebar > .sidebar-search,
.sidebar > .sidebar-footer {
  flex-shrink: 0;
}
.sidebar > nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  margin: 0 -4px;
  padding: 0 4px 5px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  margin: 0 12px 25px;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  flex: 0 0 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--surface));
  border-radius: 13px 13px 6px 13px;
  background: linear-gradient(140deg, var(--accent-end), var(--accent));
  box-shadow:
    0 4px 8px color-mix(in srgb, var(--accent) 15%, transparent),
    inset 0 1px 0 #ffffff30;
  color: var(--on-accent);
  font:
    650 37px/1 Manrope,
    sans-serif;
  padding-bottom: 5px;
}
.wordmark {
  font:
    750 28px/1 Manrope,
    sans-serif;
  letter-spacing: -1.3px;
}
.wordmark small,
.wordmark > span {
  display: block;
  font:
    650 12px/1.5 Manrope,
    sans-serif;
  letter-spacing: 1.1px;
  margin-top: 7px;
}
.property-switch {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(125deg, var(--surface), var(--surface-tint));
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.property-switch > span:nth-child(2) {
  min-width: 0;
}
.property-switch > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.property-switch:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.property-switch small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.property-monogram,
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: linear-gradient(140deg, var(--soft), var(--sand-soft));
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.property-monogram {
  border-radius: 9px;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.sidebar-search {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--muted);
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  margin: 16px 0 23px;
  text-align: left;
}
.sidebar-search:not(:disabled):hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font:
    12px/1.3 'Source Sans 3',
    sans-serif;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.nav-section {
  margin-bottom: 22px;
}
.nav-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin: 0 12px 8px;
  font-weight: 550;
  letter-spacing: 0.2px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 12px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--muted);
  border-radius: 9px;
  line-height: 1.4;
}
.nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-item.active {
  background: linear-gradient(
    105deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 90%, var(--accent-end))
  );
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow:
    0 3px 8px color-mix(in srgb, var(--accent) 15%, transparent),
    inset 0 1px 0 #ffffff18;
  font-weight: 600;
}
.nav-icon {
  width: 19px;
  flex: 0 0 19px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.secondary-nav .nav-item {
  font-size: 13px;
}
.secondary-nav {
  border-top: 1px solid var(--line);
  padding: 16px 4px 0;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.staff-identity {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
  font-weight: 600;
}
.staff-identity small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.workspace {
  margin-left: var(--sidebar-width);
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding: 13px 32px;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumbs,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  min-width: 0;
}
.breadcrumbs > a {
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumbs > span[aria-hidden] {
  color: var(--line-strong);
}
.topbar-actions {
  flex-shrink: 0;
}
.header-handoff {
  color: var(--muted);
  margin-right: 4px;
}
.breadcrumbs > span:last-child {
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.topbar-actions > a {
  white-space: nowrap;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  min-width: 38px;
  height: 38px;
  width: 38px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  font-size: 19px;
  line-height: 1;
}
.icon-btn:not(:disabled):hover {
  border-color: var(--line-strong);
  background: var(--soft);
  box-shadow: var(--shadow-sm);
}
.icon-btn:not(:disabled):active {
  transform: scale(0.96);
}
.nav-toggle,
.nav-backdrop {
  display: none;
}
main {
  max-width: 1640px;
  margin: 0 auto;
  padding: 30px 32px 20px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.page-heading p {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.heading-actions {
  flex-shrink: 0;
}
.btn {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 14px;
  background: linear-gradient(var(--surface-raised), var(--surface-tint));
  box-shadow: 0 1px 2px #20363d05;
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  white-space: normal;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.btn:not(:disabled):hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}
.btn.primary {
  background: linear-gradient(130deg, var(--accent-end), var(--accent));
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 3px 7px color-mix(in srgb, var(--accent) 15%, transparent),
    inset 0 1px 0 #ffffff15;
}
.btn.primary:not(:disabled):hover {
  background: linear-gradient(130deg, var(--accent), var(--accent-hover));
  border-color: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 23%, transparent);
}
.btn.danger {
  color: var(--bad-ink);
  border-color: color-mix(in srgb, var(--bad-ink) 25%, var(--line));
}
.btn.danger:not(:disabled):hover {
  color: var(--bad-ink);
  background: var(--bad-bg);
  border-color: var(--bad-ink);
}
.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font:
    600 14px/1.5 'Source Sans 3',
    sans-serif;
  text-align: left;
}
.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.copilot-context-button {
  background: linear-gradient(115deg, var(--surface), var(--soft));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--accent);
}
.copilot-context-button:hover {
  color: var(--accent) !important;
}
.actions,
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
/* Hospitality surfaces, status colors and operational summary cards. */
.shift-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.shift-strip > span {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.shift-strip > p {
  margin: 0;
  color: var(--muted);
}
.shift-strip label {
  min-width: 155px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  background: var(--soft);
  color: var(--accent);
  white-space: normal;
}
.badge.warm,
.alert.warm {
  background: var(--warm-bg);
  color: var(--warm-ink);
  border-color: color-mix(in srgb, var(--warm-ink) 15%, var(--line));
}
.badge.good,
.alert.good {
  background: var(--good-bg);
  color: var(--moss);
  border-color: color-mix(in srgb, var(--moss) 15%, var(--line));
}
.badge.bad,
.alert.bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
  border-color: color-mix(in srgb, var(--bad-ink) 15%, var(--line));
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: linear-gradient(110deg, var(--surface), var(--surface-tint));
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
.panel-head > div {
  min-width: 0;
}
.panel-head .eyebrow {
  margin-bottom: 6px;
}
.panel-head > span {
  color: var(--muted);
  font-size: 13px;
}
.panel-body {
  padding: 22px;
}
.panel-body > .table-scroll {
  margin: -22px;
}
.panel-body > .table-scroll + * {
  margin-top: 38px;
}
.panel-body > .table-scroll:has(+ *) {
  margin-bottom: 0;
}
.panel-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}
.split-grid,
.split-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-grid:has(> :last-child:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi {
  position: relative;
  min-width: 0;
  padding: 19px 21px;
  background: linear-gradient(140deg, var(--surface) 52%, var(--surface-tint));
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.kpi:first-child {
  background: linear-gradient(125deg, var(--soft), var(--surface-tint));
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}
.kpi > span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 550;
}
.kpi strong {
  font:
    750 30px/1.25 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  overflow-wrap: anywhere;
}
.kpi small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
body[data-family='table'] .kpi strong {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.arrival-feature {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 25px;
  align-items: center;
}
.arrival-feature img {
  height: 232px;
  width: 100%;
  object-fit: cover;
  border-radius: 11px;
  object-position: 48% center;
}
.arrival-feature .eyebrow {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.arrival-feature h2 {
  font-size: 23px;
  letter-spacing: -0.65px;
  margin: 10px 0;
}
.arrival-feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.arrival-feature .actions {
  margin-top: 20px;
}
.hospitality-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  min-width: 0;
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition:
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease),
    border-color 220ms var(--ease);
}
.hospitality-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 320ms var(--ease);
}
.card-content {
  position: relative;
  padding: 21px 22px 22px;
  background: linear-gradient(145deg, var(--surface), var(--surface-tint));
}
.card-content .eyebrow {
  letter-spacing: 0.9px;
}
.card-content h3 {
  margin: 10px 0;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.card-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.hospitality-card:focus-within {
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.room-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.room-chip {
  padding: 12px 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(var(--surface), var(--surface-tint));
}
.room-chip strong {
  font-family: Manrope, sans-serif;
  font-weight: 700;
}
.room-chip span {
  font-size: 12px;
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.room-chip.occupied {
  background: var(--soft);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
.room-chip.maintenance {
  background: var(--warm-bg);
  border-color: color-mix(in srgb, var(--warm-ink) 20%, var(--line));
}
.room-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.priority-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.priority-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.priority-list li:first-child {
  padding-top: 0;
}
.priority-list li:last-child {
  border: 0;
  padding-bottom: 0;
}
.priority-list p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 9px;
}
.priority-list h3 {
  margin: 8px 0 0;
  font-size: 14px;
}
.room-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.room-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  background: linear-gradient(145deg, var(--surface), var(--surface-tint));
  border-radius: 13px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
  transition:
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease),
    border-color 220ms var(--ease);
}
.room-card.is-occupied {
  border-top-color: var(--accent);
  background: linear-gradient(130deg, var(--surface), var(--soft));
}
.room-card:has(.badge.good) {
  border-top-color: var(--moss);
}
.room-card:has(.badge.warm) {
  border-top-color: var(--clay);
}
.room-card > p {
  color: var(--muted);
  font-size: 14px;
}
.room-card .actions {
  justify-content: space-between;
  margin-top: 19px;
}
.room-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.room-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
  gap: 12px;
}
.room-number {
  font:
    750 27px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.75px;
}
@media (hover: hover) and (pointer: fine) {
  .hospitality-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--line-strong);
  }
  .hospitality-card:hover > img {
    transform: scale(1.025);
  }
  .room-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lift);
  }
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 14px;
  align-items: baseline;
}
.detail-list > div:last-child {
  border-bottom: 0;
}
.detail-list dt {
  font-weight: 400;
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
  max-width: 65%;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.entity-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 2px 0 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.entity-header p {
  color: var(--muted);
}
.entity-header .btn {
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  flex-wrap: wrap;
  padding: 5px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.tabs .btn {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}
.tabs .active {
  background: var(--surface-raised);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}
.tabs [aria-selected='true'],
.tabs [aria-pressed='true'] {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.tabs .btn:not(:disabled):hover {
  transform: none;
  background: var(--soft);
}
.timeline,
.guide-steps {
  padding-left: 24px;
}
.timeline li {
  padding: 10px 0 18px 8px;
  border-left: 1px solid var(--line-strong);
  position: relative;
  margin-left: 4px;
  padding-left: 23px;
  list-style: none;
}
.timeline li::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong);
  left: -5px;
  top: 17px;
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.checklist {
  padding-left: 22px;
}
.checklist li {
  padding: 7px 0;
}
/* Forms and shared controls, including runtime-created fields. */
.form-layout,
.desk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 24px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 550;
  min-width: 0;
}
input:not([type='checkbox']):not([type='radio']):not([type='range']),
select,
textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
  min-width: 0;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: inset 0 1px 2px #20363d04;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
input:not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
}
input:not([type='checkbox']):not([type='radio']):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-soft);
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 116px;
}
select {
  padding-right: 30px;
  cursor: pointer;
  text-overflow: ellipsis;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
input[type='file'] {
  font-size: 14px !important;
  padding: 8px !important;
}
input[type='file']::file-selector-button {
  border: 0;
  border-radius: 5px;
  margin-right: 9px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--accent);
  font:
    600 13px 'Source Sans 3',
    sans-serif;
  cursor: pointer;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
  min-height: 30px;
}
[aria-invalid='true'],
input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--bad-ink) !important;
}
[data-stay-error],
.field-error,
.form-error {
  margin: 0;
  color: var(--bad-ink);
  font-size: 14px;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  float: none;
  width: auto;
  margin-bottom: 20px;
  color: var(--ink);
  font:
    700 18px/1.4 Manrope,
    sans-serif;
  letter-spacing: -0.4px;
}
fieldset > label + label {
  margin-top: 17px;
}
.step-list {
  display: flex;
  gap: 8px;
  padding: 20px 22px 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.step-list li {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.step-list li[aria-current='step'],
.step-list li.active {
  border-color: var(--accent);
  color: var(--accent);
}
form[data-stay-wizard] {
  padding: 24px 22px 22px;
}
.conditional-fields {
  border-left: 3px solid var(--line-strong);
  padding: 15px 18px;
  border-radius: 0 9px 9px 0;
  background: var(--surface-tint);
}
.conditional-fields > label + label {
  margin-top: 16px;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.check-label {
  flex-direction: row;
  align-items: center;
  min-height: 30px;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}
.check-label input {
  margin: 0;
}
.form-grid > label:has(textarea),
.form-grid > .conditional-fields {
  grid-column: 1/-1;
}
.form-result,
.alert {
  padding: 14px 17px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.form-result:empty {
  display: none;
}
.form-actions {
  background: linear-gradient(110deg, transparent, var(--surface-tint));
}
.form-actions .btn {
  min-width: 90px;
}
.stack-form > .muted,
.stack-form > p:last-child {
  font-size: 13px;
}
.aside-photo {
  border-radius: 16px;
  height: 242px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: var(--soft);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--accent);
}
/* Data registers keep wide content inside a dedicated scroll container. */
.table-scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface-tint);
  overscroll-behavior-x: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
}
th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
th {
  background: var(--surface-tint);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.15px;
}
tbody tr {
  transition: background-color 150ms var(--ease);
}
tbody tr:hover {
  background: color-mix(in srgb, var(--soft) 45%, transparent);
}
tbody tr:has(input[type='checkbox']:checked) {
  background: var(--soft);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td:first-child + td {
  font-weight: 550;
}
.data-table {
  min-width: 900px;
}
.data-table .check-cell {
  width: 48px;
  padding-right: 8px;
}
.data-table th button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.data-table th button span {
  opacity: 0.65;
}
.data-table td .btn {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 13px;
}
.data-table td .text-link {
  white-space: nowrap;
}
.data-table td:last-child {
  width: 1%;
}
.empty-inline {
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
}
th button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  min-height: 30px;
  font: inherit;
}
td .actions {
  flex-wrap: nowrap;
}
td input {
  min-width: 85px !important;
}
td input[type='checkbox'] {
  min-width: 17px !important;
}
.table-toolbar {
  padding: 20px 22px;
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(130deg, var(--surface), var(--surface-tint));
}
.table-toolbar > label {
  flex: 0 1 205px;
}
.table-toolbar > .search-label {
  flex: 1 1 220px;
}
.table-toolbar > .actions {
  margin-left: auto;
}
.table-toolbar .tabs {
  margin: 0;
  align-self: end;
}
.table-toolbar .btn {
  min-height: 42px;
}
.search-label {
  flex: 1;
  min-width: 190px;
}
.table-toolbar select {
  min-width: 150px;
}
.table-subbar,
.table-pagination,
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}
.table-subbar {
  position: relative;
  color: var(--muted);
  gap: 6px;
}
[data-total-records] {
  color: var(--ink);
  font-weight: 650;
}
[data-view-name] {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 8px;
}
.table-pagination {
  background: var(--surface-tint);
  color: var(--muted);
}
.table-pagination label {
  font-size: 13px;
  font-weight: 400;
}
.table-pagination select {
  min-height: 34px;
  padding: 5px 27px 5px 9px;
  font-size: 13px;
  width: 70px;
}
.table-pagination .btn {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
}
[data-page-label] {
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.table-pagination {
  justify-content: space-between;
}
.table-pagination label {
  flex-direction: row;
  align-items: center;
}
.column-menu {
  margin-left: auto;
  border: 0;
  padding: 0;
  font-size: 13px;
}
.column-menu summary {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
}
.column-menu summary:hover {
  background: var(--soft);
}
.column-menu[open] {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.column-menu label {
  flex-direction: row;
  padding: 6px;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
.bulk-bar {
  background: var(--soft);
  justify-content: space-between;
}
.runtime-status {
  color: var(--muted);
  background: var(--surface-tint);
  margin: 0;
  border-top: 1px solid var(--line);
}
/* Reports, enquiry boards, calendars, guest care and documents. */
.chart-wrap {
  position: relative;
  height: 290px;
  min-width: 0;
  padding: 6px 0 0;
}
.chart-caption {
  color: var(--muted);
  font-size: 13px;
  margin: 15px 0 0;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.board-column {
  background: linear-gradient(155deg, var(--soft), var(--surface-tint));
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  min-width: 0;
  min-height: 250px;
}
.board-column > h2 {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  padding: 3px 2px 12px;
  border-bottom: 1px solid var(--line);
}
.board-column > h2 > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font:
    600 12px 'Source Sans 3',
    sans-serif;
  color: var(--muted);
}
.board-card {
  background: var(--surface);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}
.board-card:hover,
.board-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.board-card:active {
  cursor: grabbing;
}
.board-card.dragging,
.board-card[aria-grabbed='true'] {
  opacity: 0.6;
  transform: rotate(1deg);
}
.board-column.dragover,
.board-column[data-drag-over='true'] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--focus-soft);
}
.board-card h3 {
  font-size: 14px;
}
.board-card > p {
  color: var(--muted);
  font-size: 14px;
}
.board-card > strong {
  font:
    700 21px Manrope,
    sans-serif;
  letter-spacing: -0.5px;
}
.board-card label {
  font-size: 12px;
}
.board-card select {
  padding: 8px 26px 8px 10px;
  min-height: 38px;
  font-size: 14px;
}
.board-card small {
  display: block;
  margin: 12px 0;
  color: var(--muted);
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.calendar-toolbar h2 {
  font-size: 18px;
  margin: 0;
  white-space: nowrap;
}
.hotel-calendar {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface-tint);
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  margin-top: 20px;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays > span {
  text-align: center;
  font-size: 13px;
  padding: 10px;
  background: var(--surface-tint);
  color: var(--muted);
  font-weight: 600;
}
.calendar-day {
  min-height: 99px;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  border-width: 1px 0 0 1px;
  border-radius: 0;
  transition:
    background-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}
.calendar-day:nth-child(7n + 1) {
  border-left: 0;
}
.calendar-day > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.calendar-day:not(:disabled):hover {
  background: var(--surface-tint);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.calendar-day:disabled {
  opacity: 1;
  background: var(--canvas);
}
.calendar-day:focus-visible {
  position: relative;
  outline-offset: -3px;
  z-index: 1;
}
.calendar-day small {
  display: block;
  background: var(--soft);
  padding: 3px 5px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 4px;
  width: 100%;
  text-align: left;
  color: var(--accent);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.calendar-day.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--surface-tint);
}
.calendar-day.selected > span {
  background: var(--accent);
  color: var(--on-accent);
}
.calendar-agenda {
  border-radius: 11px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-tint), var(--soft));
}
.calendar-agenda > h3 {
  font-size: 15px;
}
.calendar-agenda > p {
  color: var(--muted);
  font-size: 14px;
}
.calendar-agenda > h4 {
  color: var(--accent);
  padding-top: 8px;
}
.calendar-agenda article {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.calendar-agenda article:last-child {
  border: 0;
}
.calendar-agenda article strong {
  font-size: 14px;
}
.calendar-agenda article span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.task-row,
.mail-row,
.arrival-row,
.departure-row,
.assignment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}
.task-row:last-child,
.arrival-row:last-child,
.departure-row:last-child,
.assignment-row:last-child,
.mail-row:last-child {
  border: 0;
}
.task-row:hover,
.arrival-row:hover,
.departure-row:hover,
.assignment-row:hover {
  background: color-mix(in srgb, var(--soft) 35%, transparent);
}
.task-row:has(input:checked) h3 {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.arrival-row > .avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}
.arrival-row h3,
.departure-row h3,
.assignment-row h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.assignment-row {
  flex-wrap: wrap;
  padding: 17px 0;
}
.assignment-row > div {
  min-width: 60%;
}
.assignment-row p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.mail-row:hover {
  background: var(--surface-tint);
}
.mail-row > .badge {
  flex-shrink: 0;
}
.mail-row p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-row > div,
.arrival-row > div,
.departure-row > div,
.assignment-row > div {
  flex: 1;
  min-width: 0;
}
.task-row p,
.mail-row p,
.arrival-row p,
.departure-row p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.mail-row > a {
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.mail-row > a > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mail-row h3 {
  margin: 6px 0;
}
.mail-row time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.message-header {
  display: flex;
  gap: 18px;
  align-items: center;
}
.message-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}
.message-header time {
  margin-left: auto;
  font-size: 13px;
}
.message-body {
  padding: 26px 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.85;
}
.document-head,
.document-addresses {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.document-head {
  background: linear-gradient(115deg, var(--surface), var(--soft));
  align-items: start;
}
.document-head h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.document-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.document-addresses {
  background: var(--surface-tint);
  font-size: 14px;
}
.document-addresses p {
  color: var(--muted);
}
.invoice-document {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.document-head .wordmark {
  display: block;
}
.document-totals {
  max-width: 370px;
  margin: 24px 26px 24px auto;
}
.document-totals .detail-list > div:last-child {
  border-top: 1px solid var(--line-strong);
  padding-top: 15px;
  margin-top: 7px;
  color: var(--accent);
  font-size: 16px;
}
.document-totals > .detail-list {
  margin: 0;
}
.document-totals dt {
  max-width: 57%;
}
.document-totals dd {
  min-width: 90px;
}
.document-actions {
  display: flex;
  gap: 12px;
  padding: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: var(--surface-tint);
}
table[data-quote-table] {
  min-width: 600px;
  table-layout: auto;
}
table[data-quote-table] th:first-child {
  width: 43%;
}
table[data-quote-table] th:nth-child(2),
table[data-quote-table] th:nth-child(3) {
  width: 17%;
}
table[data-quote-table] td {
  padding: 12px 10px;
  vertical-align: top;
}
table[data-quote-table] td:first-child {
  padding-left: 0;
}
table[data-quote-table] td:first-child > .btn {
  display: flex;
  width: fit-content;
  min-height: 34px;
  margin-top: 9px;
  padding: 5px 9px;
  font-size: 13px;
}
table[data-quote-table] input[data-quote-qty],
table[data-quote-table] input[data-quote-price] {
  min-width: 82px !important;
  width: 100%;
}
table[data-quote-table] td:last-child {
  min-width: 128px;
  white-space: nowrap;
}
table[data-quote-table] td:last-child .btn {
  display: flex;
  width: fit-content;
  min-height: 34px;
  margin-top: 8px;
  padding: 5px 9px;
  font-size: 13px;
}
.invoice-document > .muted {
  padding: 0 26px 24px;
}
.upload-zone {
  padding: 40px;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(125deg, var(--surface-tint), var(--soft));
  margin-bottom: 18px;
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 0 0 0 3px var(--focus-soft);
}
.upload-zone:focus-within {
  border-color: var(--accent);
}
[data-file-list] > article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
[data-file-list] > article > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-file-list] > article small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
[data-file-list] > article > a {
  font-size: 14px;
}
[data-file-list] > article > .btn {
  flex-shrink: 0;
}
.upload-zone p {
  color: var(--muted);
  font-size: 14px;
}
.upload-zone .btn {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}
.upload-zone input {
  max-width: 230px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.auth-layout > .panel {
  margin: 0;
}
.auth-layout .panel-body {
  padding: 32px;
}
.auth-layout .panel-body > .actions {
  margin: 23px 0 18px;
  gap: 18px;
}
.auth-layout .panel-body > p {
  color: var(--muted);
  font-size: 14px;
}
.auth-layout > img {
  height: 560px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.auth-layout .wordmark {
  display: block;
  margin-bottom: 30px;
}
.password-wrap {
  display: flex;
  gap: 8px;
}
.password-wrap > input {
  flex: 1;
}
.password-wrap > .btn {
  flex-shrink: 0;
}
/* Workspace directory, UI patterns and optional direct-service states. */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.directory-links {
  padding: 10px 20px;
}
.directory-links a,
.search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--ink);
}
.directory-links a:last-child,
.search-result:last-child {
  border: 0;
}
.directory-links a:hover,
.search-result:hover {
  color: var(--accent);
  background: var(--surface-tint);
  transform: translateX(3px);
}
.directory-search {
  max-width: 650px;
}
.directory-search input {
  min-height: 48px !important;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.directory-grid .panel-head > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 7px;
  font-weight: 600;
}
.search-results {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.search-results:empty {
  display: none;
}
.directory-links small,
.search-result small {
  color: var(--muted);
}
.search-results {
  margin-top: 20px;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 0 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.swatch:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.swatch span {
  display: block;
  height: 85px;
}
.swatch strong,
.swatch small {
  display: block;
  margin-top: 8px;
}
.progress-track {
  height: 10px;
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  border-radius: inherit;
  transition: width 220ms var(--ease);
}
.heat-cell {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 650;
}
.forecast-result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 25px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(125deg, var(--soft), var(--sand-soft));
}
.forecast-result > span,
.forecast-result > p {
  color: var(--muted);
  font-size: 14px;
}
.forecast-result > strong {
  font:
    750 36px/1.25 Manrope,
    sans-serif;
  color: var(--accent);
  letter-spacing: -1px;
}
.article {
  padding: 28px;
  max-width: 850px;
  line-height: 1.8;
  font-size: 16px;
}
.article h3 {
  margin-top: 25px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 4px;
}
summary::marker {
  color: var(--accent);
}
details[open] > summary {
  margin-bottom: 12px;
  color: var(--accent);
}
details > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.guide-steps {
  list-style: decimal-leading-zero;
  padding-left: 30px;
}
.guide-steps > li {
  padding: 2px 0 13px 10px;
}
.guide-steps > li::marker {
  color: var(--accent);
  font:
    650 13px Manrope,
    sans-serif;
}
.guide-steps h3 {
  margin: 20px 0 9px;
}
.focus-workspace {
  max-width: 720px;
  margin: auto;
}
.horizontal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.horizontal-nav .btn {
  flex: 1;
  background: transparent;
  border-color: transparent;
}
.horizontal-nav .btn:hover {
  border-color: var(--line);
}
.layout-focus main {
  max-width: 1120px;
}
.layout-focus .focus-workspace {
  max-width: 760px;
}
.layout-focus .focus-workspace .panel-body {
  padding: 30px;
}
.layout-wide main {
  max-width: none;
}
.layout-split .split-workspace {
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
}
.layout-split .panel-body > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.layout-compact .panel-body {
  padding: 16px 20px;
}
.layout-compact th,
.layout-compact td {
  padding: 11px 16px;
}
.error-code {
  display: block;
  font: 750 80px Manrope;
  color: var(--accent);
  margin: 20px 0;
}
body[data-family='error'] .panel,
body[data-family='maintenance'] .panel {
  max-width: 750px;
  margin: 45px auto;
  background: linear-gradient(135deg, var(--surface), var(--sand-soft));
}
.file-mark,
.service-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, var(--soft), var(--sand-soft));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--accent);
  border-radius: 13px;
  margin-bottom: 18px;
  font-size: 22px;
}
.ai-result {
  padding: 20px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
  min-height: 110px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: inset 0 1px 3px #20363d04;
}
.ai-result-text {
  white-space: pre-wrap;
  margin: 0;
  font: inherit;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.ai-usage {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.ai-upgrade-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.ai-retry-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 12px 0 0 12px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font:
    600 14px 'Source Sans 3',
    sans-serif;
}
[data-ai-state='loading'],
[data-ai-state='pending'] {
  background: linear-gradient(110deg, var(--surface-tint), var(--soft));
  border-color: var(--line-strong);
}
[data-ai-state='loading']::before,
[data-ai-state='pending']::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -2px;
}
[data-ai-state='success'] {
  border-color: color-mix(in srgb, var(--moss) 45%, var(--line));
}
.integration-state {
  padding: 15px;
  background: linear-gradient(125deg, var(--soft), var(--surface-tint));
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.integration-state small {
  color: var(--muted);
  margin-top: 6px;
}
.integration-state > * {
  display: block;
}
.ai-error {
  border-color: var(--bad-ink);
  background: var(--bad-bg);
  color: var(--bad-ink);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  align-items: center;
}
.footer > span:first-child {
  font-weight: 600;
}
.footer .subtle {
  font-weight: 400;
}
.demo-note {
  font-size: 12px;
  color: var(--muted);
  margin: 30px 0 16px;
}
.muted,
.subtle {
  color: var(--muted);
}
.runtime-status {
  font-size: 14px;
  padding: 12px 20px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 200;
  padding: 12px;
  background: var(--surface);
  border-radius: 9px;
  box-shadow: var(--shadow-lift);
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.noscript {
  padding: 18px;
  background: var(--sand-soft);
}
/* Accessible overlays use three related, visibly distinct surfaces. */
dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  border-radius: 16px;
  width: min(620px, calc(100vw - 32px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface);
  box-shadow: var(--shadow-dialog);
  outline: 0;
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: dialog-in 210ms var(--ease) both;
}
dialog[open]::backdrop {
  animation: backdrop-in 180ms var(--ease) both;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dialog-head,
.copilot-head {
  background: linear-gradient(120deg, var(--soft), color-mix(in srgb, var(--soft) 55%, var(--surface-tint)));
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 18px;
}
.dialog-head h2,
.copilot-head h2 {
  font-size: 18px;
  line-height: 1.45;
}
.dialog-head .icon-btn,
.copilot-head .icon-btn {
  flex-shrink: 0;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.dialog-head h2 {
  margin: 0;
}
.modal-body {
  background: var(--surface);
  padding: 24px;
  line-height: 1.6;
}
.modal-footer,
.copilot-footer {
  background: linear-gradient(120deg, var(--surface-tint), var(--canvas));
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  border-radius: 0;
  flex-wrap: wrap;
  margin: 0;
}
.modal-footer > * {
  margin: 0;
}
.modal-footer .btn {
  min-width: 80px;
}
.modal-footer > span {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.modal-body .modal-footer {
  margin: 22px -24px -24px;
}
.app-dialog.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 16px 0 0 16px;
  max-width: calc(100vw - 8px);
}
.app-dialog.drawer[open] {
  animation: drawer-in 240ms var(--ease) both;
}
@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.command-dialog {
  width: min(680px, calc(100vw - 32px));
}
.command-input {
  display: flex;
  padding: 18px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--surface-tint), var(--soft));
  align-items: center;
}
.command-results {
  padding: 10px;
  max-height: 55vh;
  overflow: auto;
}
.command-results a {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  gap: 4px;
  border: 1px solid transparent;
}
.command-results a small {
  color: var(--muted);
  font-size: 12px;
}
.command-results a:hover {
  background: var(--surface-tint);
  border-color: var(--line);
}
.command-results a.active {
  background: var(--soft);
}
.command-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  background: var(--surface-tint);
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}
.toast-region {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  max-width: min(430px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  width: 100%;
  max-width: none;
  opacity: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  border-radius: 10px;
  font-size: 14px;
  animation: toast-in 210ms var(--ease) both;
}
.toast > span {
  flex: 1;
  min-width: 0;
}
.toast .icon-btn {
  flex-shrink: 0;
}
.toast.warm {
  border-left: 3px solid var(--clay);
}
.toast.bad {
  border-left: 3px solid var(--bad-ink);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.contextual-copilot {
  width: min(650px, calc(100vw - 24px));
  margin: 12px 12px 12px auto;
  max-height: calc(100dvh - 24px);
  height: calc(100dvh - 24px);
  max-width: calc(100vw - 16px);
  border-radius: 16px;
}
.contextual-copilot[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-in 240ms var(--ease) both;
}
.contextual-copilot > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.contextual-copilot .copilot-content {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.copilot-head,
.copilot-footer {
  flex-shrink: 0;
}
.copilot-context-section {
  margin-top: 22px;
}
.copilot-content {
  padding: 22px;
}
.copilot-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 14px;
  font-size: 13px;
  color: var(--ink);
  border-radius: 9px;
  margin: 12px 0 8px;
  font:
    12.5px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.copilot-content textarea {
  width: 100%;
}
.copilot-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.copilot-source-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}
.copilot-small {
  font-size: 12px;
  color: var(--muted);
}
.copilot-result {
  background: var(--canvas);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.copilot-footer {
  justify-content: space-between;
  flex-wrap: wrap;
}
.copilot-footer > span {
  font-size: 12px;
}
.copilot-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.8px;
}
.copilot-head .icon-btn {
  font-size: 22px;
}
.copilot-head h2 {
  margin: 4px 0;
}
.copilot-prompt-label {
  margin-top: 18px;
}
.copilot-prompt-label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}
.copilot-section-head {
  align-items: start;
}
.copilot-section-head h3 {
  margin: 0;
}
.copilot-small {
  line-height: 1.6;
}
.copilot-request-details {
  margin-top: 18px;
}
.copilot-request-details .detail-list {
  margin-top: 12px;
}
.copilot-entry.icon-btn {
  display: inline-flex;
  width: auto;
  gap: 7px;
  padding-inline: 11px;
  color: var(--accent);
  background: linear-gradient(115deg, var(--surface), var(--soft));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
.copilot-entry-label {
  font-size: 14px;
  font-weight: 600;
}
.copilot-entry:hover,
.copilot-entry:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.copilot-snapshot-note {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.contextual-copilot .copilot-content {
  overscroll-behavior: contain;
}
.contextual-copilot .copilot-footer .actions {
  flex-wrap: wrap;
}
.contextual-copilot [data-copilot-context]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.contextual-copilot [data-ai-state='loading'] {
  background: var(--soft);
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .copilot-entry-label {
    display: none;
  }
  .copilot-entry.icon-btn {
    width: 38px;
    padding: 8px;
    justify-content: center;
  }
  .contextual-copilot .copilot-footer .actions {
    gap: 8px;
  }
  .contextual-copilot .copilot-footer .btn {
    min-width: 0;
    white-space: normal;
  }
}

/* A short entrance has no hidden initial content or JavaScript dependency. */
[data-reveal] {
  animation: card-arrive 440ms var(--ease);
}
@keyframes card-arrive {
  from {
    transform: translateY(9px);
  }
  to {
    transform: translateY(0);
  }
}
/* Responsive application layouts: desktop, tablet and readable phone controls. */
@media (max-width: 1250px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .room-board {
    grid-template-columns: 1fr 1fr;
  }
  .form-layout,
  .desk-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .arrival-feature {
    grid-template-columns: 1fr;
  }
  .arrival-feature img {
    height: 190px;
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi strong {
    font-size: 27px;
  }
  .calendar-toolbar h2 {
    order: -1;
    flex-basis: 100%;
  }
  .table-toolbar > .actions {
    margin-left: 0;
  }
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: min(290px, calc(100vw - 48px));
  }
  .workspace {
    margin-left: 0;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: var(--scrim);
    backdrop-filter: blur(3px);
    animation: backdrop-in 180ms var(--ease) both;
  }
  .sidebar .icon-btn {
    display: inline-grid;
  }
  .overview-layout {
    grid-template-columns: 1fr 300px;
  }
  .topbar {
    padding: 12px 20px;
  }
  main {
    padding: 24px;
  }
  .header-handoff {
    display: none;
  }
  body.nav-open {
    overflow: hidden;
  }
  .sidebar-footer {
    padding-top: 14px;
  }
  .sidebar .brand {
    margin-bottom: 20px;
  }
  .sidebar .sidebar-search {
    margin: 14px 0 20px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .overview-layout,
  .split-grid,
  .three-grid,
  .form-layout,
  .desk-layout,
  .directory-grid,
  .split-workspace,
  .layout-split .split-workspace,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-grid:has(> :last-child:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid > .kpi:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
  .kpi-grid > .kpi:last-child:nth-child(3) strong {
    overflow-wrap: normal;
  }
  .kpi {
    padding: 15px;
  }
  .kpi strong {
    font-size: 26px;
  }
  .shift-strip {
    align-items: start;
    flex-direction: column;
  }
  .room-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr 1fr;
  }
  .calendar-day {
    min-height: 45px;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }
  .calendar-day small {
    display: none;
  }
  .calendar-agenda {
    display: block;
  }
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .table-toolbar > label,
  .table-toolbar > .search-label {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .table-toolbar > .actions {
    margin-left: 0;
    gap: 8px;
  }
  .table-toolbar .tabs {
    align-self: start;
  }
  .search-label {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > * {
    grid-column: 1 !important;
  }
  input:not([type='checkbox']):not([type='radio']):not([type='range']),
  select,
  textarea {
    font-size: 16px;
  }
  .topbar {
    padding: 12px 16px;
  }
  .breadcrumbs {
    gap: 8px;
    font-size: 12px;
  }
  .breadcrumbs > span:last-child {
    max-width: 150px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions .copilot-context-button {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 8px;
  }
  main {
    padding: 22px 16px;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .arrival-feature {
    grid-template-columns: 1fr;
  }
  .document-head,
  .document-addresses {
    flex-direction: column;
    padding: 20px;
  }
  .document-totals {
    margin: 20px;
    max-width: none;
  }
  .document-addresses > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .document-head .actions {
    margin-left: 0;
  }
  .invoice-document .document-head {
    gap: 22px;
  }
  .mail-row {
    gap: 10px;
    align-items: start;
    flex-wrap: wrap;
    padding: 18px;
  }
  .mail-row > a {
    flex-basis: 100%;
  }
  .mail-row .badge {
    margin-top: 5px;
  }
  .mail-row h3 {
    font-size: 14px;
  }
  .mail-row .avatar {
    display: none;
  }
  .arrival-row,
  .departure-row,
  .assignment-row,
  .task-row {
    flex-wrap: wrap;
    padding: 17px 0;
    gap: 12px;
  }
  [data-hotel-tasks] > .task-row {
    padding: 17px;
  }
  .arrival-row > .avatar {
    display: none;
  }
  .task-row > div,
  .arrival-row > div {
    min-width: 60%;
  }
  .auth-layout > img {
    height: 240px;
  }
  .auth-layout {
    gap: 20px;
  }
  .auth-layout .panel-body {
    padding: 23px;
  }
  .entity-header {
    flex-wrap: wrap;
  }
  .entity-header .btn {
    margin-left: 0;
  }
  .table-pagination {
    gap: 14px;
  }
  .swatch-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head,
  .panel-body {
    padding: 18px;
  }
  .panel-body > .table-scroll {
    margin: -18px;
  }
  .panel-body > .table-scroll:has(+ *) {
    margin-bottom: 0;
  }
  .panel-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .panel-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  h1 {
    font-size: 26px;
  }
  .calendar-toolbar h2 {
    order: -1;
    flex-basis: 100%;
  }
  .calendar-toolbar .actions {
    gap: 5px;
  }
  .calendar-toolbar .btn {
    padding: 8px;
  }
  .chart-wrap {
    height: 250px;
  }
  .hospitality-card > img {
    height: 210px;
  }
  .card-content {
    padding: 20px;
  }
  .room-card {
    padding: 18px;
  }
  .room-card .actions {
    align-items: flex-start;
  }
  .entity-header .btn {
    margin-left: 0;
  }
  .entity-header > div {
    min-width: 0;
    flex: 1 1 180px;
  }
  .message-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .message-header > div {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
  }
  .message-header time {
    margin: 0 0 0 46px;
  }
  .table-subbar {
    padding: 13px 18px;
  }
  .table-pagination {
    padding: 16px 18px;
    justify-content: flex-start;
  }
  .table-pagination > span:first-child {
    margin-right: auto;
  }
  .table-pagination > .actions {
    flex-basis: 100%;
  }
  .table-toolbar {
    padding: 20px 18px;
  }
  th,
  td {
    padding: 13px 15px;
  }
  .simple-table {
    min-width: 530px;
  }
  .data-table td .actions {
    gap: 8px;
  }
  .data-table td .btn {
    min-height: 36px;
  }
  .upload-zone {
    padding: 26px 18px;
  }
  [data-file-list] > article {
    flex-wrap: wrap;
  }
  [data-file-list] > article > div {
    flex-basis: 100%;
  }
  .upload-zone .btn {
    width: 100%;
  }
  .article {
    padding: 23px;
  }
  .forecast-result {
    padding: 22px;
  }
  .forecast-result > strong {
    font-size: 32px;
  }
  .directory-links {
    padding: 6px 18px;
  }
  .step-list {
    padding: 17px 18px 0;
    gap: 6px;
  }
  .step-list li {
    font-size: 12px;
    padding: 9px 3px;
  }
  form[data-stay-wizard] {
    padding: 22px 18px 18px;
  }
  .form-actions {
    margin-top: 10px;
    gap: 9px;
  }
  .form-actions .btn {
    flex: 1 1 115px;
  }
  .horizontal-nav {
    gap: 5px;
  }
  .horizontal-nav .btn {
    flex: 1 1 110px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
    width: calc(100vw - 24px);
  }
  .dialog-head,
  .copilot-head {
    padding: 18px;
  }
  .dialog-head h2,
  .copilot-head h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer,
  .copilot-footer {
    padding: 16px 20px;
    gap: 9px;
  }
  .modal-body .modal-footer {
    margin: 20px -20px -20px;
  }
  .modal-footer > span {
    flex-basis: 100%;
    font-size: 12px;
  }
  .modal-footer > .btn {
    flex: 1;
  }
  .contextual-copilot {
    width: calc(100vw - 16px);
    margin: 8px;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .copilot-content {
    padding: 20px;
  }
  .copilot-section-head {
    flex-direction: column;
    gap: 6px;
  }
  .copilot-footer > .actions {
    width: 100%;
  }
  .copilot-footer > .actions .btn {
    flex: 1;
  }
  .copilot-content pre {
    font-size: 12px;
    padding: 12px;
  }
  .command-input {
    padding: 14px;
  }
  .command-footer {
    padding: 14px 17px;
  }
  .command-dialog {
    width: calc(100vw - 24px);
  }
  .toast-region {
    bottom: 14px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}
@media (max-width: 540px) {
  .room-board,
  .kanban {
    grid-template-columns: 1fr;
  }
  .room-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .room-card .actions {
    align-items: center;
  }
  .room-card .actions .btn {
    margin-left: auto;
  }
  .room-card-head {
    margin-bottom: 16px;
  }
  .arrival-feature > img {
    height: 205px;
  }
  .arrival-feature .actions {
    gap: 8px;
  }
  .arrival-feature .actions > .btn {
    flex: 1;
  }
  .calendar-toolbar .actions {
    width: 100%;
  }
  .calendar-toolbar .actions > .btn {
    flex: 1;
    font-size: 13px;
  }
  .calendar-toolbar > .btn {
    width: 100%;
  }
  .calendar-toolbar {
    gap: 13px;
  }
  .calendar-agenda {
    padding: 17px;
  }
  .calendar-day {
    min-height: 43px;
  }
  .calendar-day > span {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .calendar-day:has(small)::after {
    content: '';
    display: block;
    height: 3px;
    width: 10px;
    border-radius: 2px;
    background: var(--accent);
  }
  .calendar-day {
    gap: 1px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi strong {
    font-size: 26px;
  }
  .kpi > span {
    font-size: 14px;
  }
  .kpi small {
    font-size: 12px;
  }
  body[data-family='table'] .kpi strong {
    font-size: 21px;
  }
  body[data-family='table'] .kpi:last-child {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    column-gap: 16px;
    align-items: center;
  }
  body[data-family='table'] .kpi:last-child > small {
    grid-column: 1 / -1;
  }
  .shift-strip > .actions {
    width: 100%;
  }
  .shift-strip > .actions > label {
    flex: 1;
    min-width: 0;
  }
  .shift-strip > .actions > .btn {
    flex: 1;
  }
  .swatch-grid {
    gap: 11px;
  }
  .swatch span {
    height: 70px;
  }
  .table-pagination label {
    margin-left: 0;
  }
  .bulk-bar {
    padding: 14px 18px;
  }
  .bulk-bar .btn {
    font-size: 13px;
  }
  .task-row > div,
  .arrival-row > div,
  .departure-row > div,
  .assignment-row > div {
    min-width: 65%;
  }
  .app-dialog.drawer {
    width: calc(100vw - 8px);
    border-radius: 14px 0 0 14px;
  }
}
@media (max-width: 390px) {
  .room-board,
  .kanban {
    grid-template-columns: 1fr;
  }
  .breadcrumbs > a,
  .breadcrumbs > span[aria-hidden] {
    display: none;
  }
  .room-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar-actions .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hospitality-card:hover,
  .hospitality-card:focus-within,
  .hospitality-card:hover > img,
  .room-card:hover,
  .room-card:focus-within,
  .board-card:hover,
  .board-card:focus-within,
  .room-chip:hover,
  .swatch:hover,
  .btn:not(:disabled):hover,
  .directory-links a:hover,
  .search-result:hover {
    transform: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .footer,
  .demo-note,
  .document-actions {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  body {
    background: white;
    color: #20363d;
  }
}
