:root {
  --bg0: #0b1220;
  --bg1: #111b2e;
  --bg2: #1a2740;
  --surface: #1e2d4a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #14b8a6;
  --accent: #f59e0b;
  --danger: #f43f5e;
  --success: #22c55e;
  --info: #38bdf8;
  --gold: #fbbf24;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(245, 158, 11, 0.1), transparent 50%),
    var(--bg0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: #fff; color: #0b1220; padding: 8px 12px; z-index: 80;
}
.skip:focus { left: 8px; }

/* Marketing */
.site-head, .site-foot {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 28px;
}
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; }
.brand svg { width: 22px; height: 22px; }
.site-nav { display: flex; gap: 16px; margin-left: auto; align-items: center; }
.site-nav a { color: #cbd5e1; font-size: 14px; }
.site-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(15, 23, 42, 0.55); color: #fde68a; cursor: pointer;
}
.hero-photo {
  position: relative; min-height: 72vh; width: 100%; max-width: 100%; min-width: 0;
  display: block; overflow: hidden;
}
.hero-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.05); transform: scale(1.04); animation: hero-drift 22s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.55), rgba(8, 12, 22, 0.28) 38%, rgba(8, 12, 22, 0.78));
}
.hero-photo .inner { position: relative; z-index: 1; width: min(720px, calc(100% - 40px)); margin-left: max(20px, calc((100% - 1100px) / 2)); padding: 72px 0; min-width: 0; }
.hero-photo h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.12; max-width: 14ch; overflow-wrap: anywhere; }
.hero-photo .lead { color: #e2e8f0; font-size: 18px; max-width: min(540px, 100%); margin: 14px 0 22px; overflow-wrap: anywhere; }
.badge {
  display: inline-flex; margin-bottom: 14px;
  background: rgba(251, 191, 36, 0.15); color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px; padding: 6px 12px; font-size: 13px;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  width: min(1100px, calc(100% - 40px)); margin: -42px auto 40px; position: relative; z-index: 2;
}
.stat, .panel, .price-grid article, .faq details, .cta, .card, .manage-card {
  background: var(--bg1); border: 1px solid #1e293b; border-radius: 16px;
}
.stat { padding: 18px; }
.stat b { display: block; font-size: 22px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto 64px; }
.wrap h2, .narrow h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.lead, .fine, .muted { color: var(--muted); }
.lead { margin: 0 0 22px; line-height: 1.55; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door { padding: 22px; }
.door h2 { margin: 6px 0 8px; }
.door p { color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat article, .photo-grid figure { background: var(--bg1); border: 1px solid #1e293b; border-radius: 16px; overflow: hidden; }
.feat article { padding: 18px; }
.feat h3 { margin: 8px 0; font-size: 17px; }
.feat p, .faq p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.feat svg { width: 22px; height: 22px; color: var(--gold); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid img { width: 100%; height: 240px; object-fit: cover; transition: transform .6s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid figcaption { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; font-weight: 700; }
.photo-grid figcaption span { display: flex; gap: 10px; flex-wrap: wrap; color: var(--gold); font-size: 13px; font-weight: 600; }
.photo-grid figcaption svg { width: 14px; height: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat svg, .eyebrow svg, .icon-list svg, .hero-actions svg, .contact-form svg { width: 18px; height: 18px; color: var(--gold); }
.icon-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.icon-list li { display: flex; align-items: flex-start; gap: 8px; color: #cbd5e1; font-size: 14px; line-height: 1.45; }
.split-card { display: grid; grid-template-columns: 168px 1fr; gap: 0; padding: 0; overflow: hidden; }
.split-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.split-card > div { padding: 18px; }
.stories { display: flex; flex-direction: column; gap: 16px; }
.story { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 16px; align-items: center; background: var(--bg1); border: 1px solid #1e293b; border-radius: 16px; overflow: hidden; }
.story img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.story > div { padding: 8px 18px 18px 0; }
.story h3 { margin: 6px 0 8px; font-size: 22px; }
.story p { color: var(--muted); line-height: 1.6; margin-top: 8px; }
.story-flip { direction: rtl; }
.story-flip > div { direction: ltr; padding: 8px 0 18px 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.feat article, .stat, .split-card, .story, .photo-grid figure { transition: transform .28s ease, border-color .28s ease; }
.feat article:hover, .stat:hover, .split-card:hover, .story:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.45); }
.rise { animation: rise .7s ease both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .hero-photo img.bg, .signin-aside .cover { animation: none; }
  .feat article:hover, .stat:hover, .split-card:hover, .story:hover, .photo-grid figure:hover img { transform: none; }
}
.faq details { padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.cta { padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-color: rgba(251, 191, 36, 0.35); }
.site-foot { border-top: 1px solid #1e293b; flex-wrap: wrap; color: var(--muted); }
.site-foot a { color: #cbd5e1; margin-right: 14px; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 36px auto 64px; }
.signup {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 64px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: start;
}
.signup-aside {
  position: sticky; top: 84px;
  background: var(--bg1); border: 1px solid #1e293b; border-radius: 18px; overflow: hidden;
}
.signup-aside .cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.signup-aside-body { padding: 18px 18px 20px; }
.signup-aside h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 8px 0 8px; }
.signup-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.signup-steps li { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; font-size: 14px; line-height: 1.4; }
.signup-steps b { display: block; color: #fff; }
.signup-steps svg, .signup-url svg, .signup-label svg, .signup-check svg, .signup-block legend svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.signup-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signup-thumbs img { width: 100%; height: 78px; object-fit: cover; border-radius: 10px; }
.signup-url {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 4px; padding: 10px 12px; border-radius: 12px;
  background: #0b1220; border: 1px solid rgba(45, 212, 191, 0.4);
  color: #99f6e4; font-weight: 700; word-break: break-all;
}
.signup-form { padding: 8px 18px 18px; }
.signup-block { border: 0; margin: 0; padding: 14px 0 4px; border-top: 1px solid #1e293b; }
.signup-block:first-of-type { border-top: 0; }
.signup-block legend {
  display: flex; align-items: center; gap: 8px;
  padding: 0; font-weight: 800; font-size: 15px; color: #fff;
}
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.signup-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.signup-fields .wide { grid-column: 1 / -1; }
.signup-label { display: inline-flex; align-items: center; gap: 6px; }
.signup-check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 8px 0 14px; padding: 12px;
  border-radius: 12px; background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.28); color: #e2e8f0; font-size: 14px; line-height: 1.4;
}
.signup-check input { width: 18px; min-height: 18px; margin-top: 2px; flex: none; }
.signup-form .btn-solid { width: 100%; }
.signup-foot { text-align: center; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.signup-foot a { color: #99f6e4; }
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(340px, 0.95fr); background: #0b1220; }
.signin-aside { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end; }
.signin-aside .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.05); transform: scale(1.04); animation: hero-drift 22s ease-in-out infinite alternate; }
.signin-aside .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 22, 0.35) 0%, rgba(8, 12, 22, 0.2) 32%, rgba(8, 12, 22, 0.88) 100%); }
.signin-brand { position: absolute; top: 22px; left: 28px; z-index: 2; }
.signin-aside .copy { position: relative; z-index: 1; padding: 28px 32px 36px; max-width: 520px; }
.signin-aside h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 8px 0 10px; }
.signin-aside .lead { color: #e2e8f0; max-width: 42ch; }
.signin-aside .icon-list b { color: #fff; margin-right: 6px; }
.signin-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.signin-thumbs img { width: 100%; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); }
.signin-card { display: flex; flex-direction: column; justify-content: center; width: min(460px, 100%); margin: 0 auto; padding: 36px 28px; }
.signin-card h2 { font-size: 28px; margin: 6px 0 4px; }
.signin-card .sub { color: var(--muted); margin-bottom: 16px; }
.signin-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signin-radio { position: relative; cursor: pointer; }
.signin-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; pointer-events: none; }
.signin-radio-box {
  display: flex; flex-direction: column; gap: 4px; min-height: 108px;
  padding: 12px; border-radius: 14px; border: 1px solid #1e293b; background: #111b2e;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}
.signin-radio-box svg { width: 18px; height: 18px; color: var(--gold); }
.signin-radio-box b { font-size: 15px; }
.signin-radio-box small { color: #94a3b8; font-size: 12px; line-height: 1.35; }
.signin-radio input:focus-visible + .signin-radio-box { outline: 2px solid #5eead4; outline-offset: 2px; }
.signin-radio input:checked + .signin-radio-box {
  border-color: #2dd4bf; background: #152033;
  box-shadow: inset 0 0 0 1px #2dd4bf;
  transform: translateY(-2px);
}
.signin-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 12px 0 4px; color: #cbd5e1; font-size: 13px; line-height: 1.4;
}
.signin-note svg, .signin-field span svg, .signin-card .btn svg, .signin-card .eyebrow svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.signin-field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.signin-field span { display: inline-flex; align-items: center; gap: 6px; }
.signin-card .btn-solid { width: 100%; margin-top: 16px; }
.signin-foot { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.signin-foot a { color: #99f6e4; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.price-grid article { padding: 22px; }
.price-grid .is-featured { border-color: rgba(251, 191, 36, 0.5); }
.price { font-size: 28px; font-weight: 800; color: var(--gold); margin: 8px 0 12px; }
.price-grid ul { margin: 0 0 16px; padding-left: 18px; color: #cbd5e1; line-height: 1.7; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-solid, .btn-hot { background: linear-gradient(180deg, #2dd4bf, #0f766e); color: #042f2e; }
.btn-ghost, .btn-line { background: transparent; border-color: rgba(253, 230, 138, 0.45); color: #fff; }
.icon-btn, .text-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; min-height: 36px;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  border-radius: 999px; padding: 0 8px; min-height: 26px; cursor: pointer; font-size: 12px;
}
.chip.is-on { background: rgba(20, 184, 166, 0.18); border-color: rgba(20, 184, 166, 0.55); color: #99f6e4; }

/* Login */
.qa-login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: 28px 16px 48px; position: relative; color-scheme: light;
  background: #0b1220 center/cover no-repeat;
}
.qa-login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.45), rgba(8, 12, 22, 0.68));
}
.qa-login {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: #fff; color: #0f172a; border-radius: 22px; padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.qa-login h1 { font-size: 22px; margin: 8px 0 4px; }
.qa-login .sub { color: #64748b; margin-bottom: 16px; }
.qa-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.qa-radio { cursor: pointer; }
.qa-radio input { position: absolute; opacity: 0; pointer-events: none; }
.qa-radio-box {
  display: flex; flex-direction: column; gap: 4px; min-height: 86px;
  padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #f8fafc;
}
.qa-radio-box b { font-size: 15px; }
.qa-radio-box small { color: #64748b; font-size: 12px; line-height: 1.35; }
.qa-radio input:checked + .qa-radio-box {
  border-color: #0f766e; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.qa-login label.field { display: block; margin: 10px 0; font-size: 13px; font-weight: 600; color: #334155; }
.qa-login input {
  display: block; width: 100%; margin-top: 4px; min-height: 42px;
  border: 0; border-bottom: 1.5px solid #e2e8f0; background: transparent; color: #0f172a; outline: none;
}
.qa-submit { width: 100%; margin-top: 12px; background: #0f766e; color: #fff; border: 0; }
.qa-foot { text-align: center; margin: 14px 0 0; color: #64748b; font-size: 14px; }
.toast {
  position: fixed; top: 18px; left: 50%; z-index: 120; pointer-events: none;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 16px; border-radius: 12px;
  background: #115e59; color: #ecfdf5; font-size: 13px; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: toast-life 2s ease forwards;
}
.toast-err { background: #9f1239; color: #fff; }
@keyframes toast-life {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.96); }
  14% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(0.98); }
}

/* Desk shell */
.app-shell { height: 100dvh; min-width: 0; max-width: 100%; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px; background: rgba(17, 27, 46, 0.96);
  border-bottom: 1px solid var(--line); z-index: 30; flex-shrink: 0;
}
.topbar h1 { font-size: 14px; font-weight: 700; }
.icon-link { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.icon-link svg { width: 14px; height: 14px; }
.desk .btn { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.topbar .grow { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  color: var(--muted); font-size: 12px;
}
.layout { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; max-width: 100%; }
.layout.settings { grid-template-columns: 240px 1fr; }
.nav-side {
  padding: 12px; border-right: 1px solid var(--line); background: var(--bg0);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; color: var(--muted); min-height: 44px;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item.is-on, .nav-item:hover { background: rgba(20, 184, 166, 0.12); color: #99f6e4; }
.main-scroll { min-width: 0; max-width: 100%; height: 100%; padding: 8px 10px 72px; overflow: auto; }
.layout.sales .main-scroll { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 8px; overflow: hidden; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.area-title {
  margin: 4px 0; color: var(--muted); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sales-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 8px; min-height: 0; align-items: stretch; }
.board-col { min-width: 0; min-height: 0; overflow: auto; }
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 10px; background: #10192c;
  min-height: 0; height: 100%; overflow: hidden;
}
.room-card.is-on { box-shadow: 0 0 0 2px var(--primary); }
.folio { height: 100%; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: auto; }
.folio-head {
  position: sticky; top: 0; z-index: 3;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 6px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.4); background: #121b2e;
}
.folio-close { min-height: 32px; padding: 0 10px; border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 8px; background: #0b1220; }
.folio-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-items: center; }
.folio-actions form { display: contents; }
.folio-actions .btn, .folio-actions a.btn { min-height: 30px; }
.folio-dialog:not([open]) { display: none; }
.folio-dialog {
  width: min(440px, calc(100vw - 24px)); max-height: min(78vh, 560px); overflow: auto;
  padding: 0 0 12px; border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 14px;
  background: #10192c; color: var(--text);
}
.folio-dialog::backdrop { background: rgba(2, 6, 16, 0.62); }
.folio-dialog header {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; background: #121b2e; border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
.folio-dialog header b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; }
.folio-dialog header button { display: inline-flex; align-items: center; gap: 4px; }
.folio-dialog svg { width: 14px; height: 14px; flex: none; }
.folio-dialog form, .folio-dialog .fine, .folio-dialog .pay-log { margin: 8px 10px 0; }
.goods-due { margin: 8px 10px 0; font-size: 13px; }
.goods-due b { color: #fde68a; }
.goods-msg { margin: 4px 10px 0; min-height: 16px; font-size: 12px; color: #99f6e4; }
.goods-msg.is-err { color: #fda4af; }
.checkout-sheet {
  width: min(720px, calc(100vw - 20px));
  max-height: min(92vh, 880px);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.checkout-sheet > form {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.out-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 16px 10px; overscroll-behavior: contain; }
.checkout-sheet [hidden] { display: none !important; }
.out-who { margin: 0; padding: 8px 10px; border-radius: 10px; background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.28); font-size: 13px; color: var(--muted); }
.out-who strong { color: var(--text); font-size: 15px; }
.out-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; }
.out-times > div, .out-times label { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 10px; background: #0b1220; }
.out-times span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.out-times b { font-size: 14px; }
.out-times input { width: 100%; min-height: 34px; }
.out-hint { margin: 8px 0 0; }
.out-bill { list-style: none; margin: 10px 0 0; padding: 2px 12px; border-radius: 12px; background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.28); }
.out-bill > li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.out-bill > li:last-child { border-bottom: 0; }
.out-bill small, .out-line { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.out-line { display: flex; justify-content: space-between; gap: 8px; }
.out-settle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.out-settle div { padding: 8px 10px; border-radius: 10px; background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.28); }
.out-settle span { display: block; color: var(--muted); font-size: 11px; }
.out-settle b { font-size: 16px; }
.out-due, .out-refund { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; }
.out-due { background: #162033; border: 1px solid rgba(253, 230, 138, 0.28); font-size: 16px; }
.out-due b { color: #fde68a; font-size: 22px; }
.out-refund { background: #0f2e2a; border: 1px solid rgba(45, 212, 191, 0.5); }
.out-refund b { color: #5eead4; font-size: 26px; }
.out-due small, .out-refund small, .out-change small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.out-refund small { color: #99f6e4; }
.out-tender { display: grid; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #121b2e; border: 1px solid rgba(148, 163, 184, 0.28); }
.out-tender label { display: grid; gap: 4px; }
.out-tender label span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.out-tender input { min-height: 42px; font-size: 20px; font-weight: 700; text-align: right; }
.out-tender-view { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.out-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.out-chips button { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.4); background: #0b1220; color: var(--text); font-size: 13px; }
.out-chips button[data-chip="exact"] { border-color: #2dd4bf; color: #ccfbf1; }
.out-change { display: flex; justify-content: space-between; align-items: center; margin: 0; padding-top: 4px; }
.out-change b { font-size: 18px; }
.out-change.is-on b { color: #5eead4; }
.out-short { margin: 0; color: #fda4af; font-size: 13px; }
.out-actions {
  flex: none;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  background: #121b2e;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 -10px 24px rgba(2, 6, 16, 0.45);
}
.out-actions .btn { min-height: 42px; }
.checkout-sheet .signup-label, .checkout-sheet .pay-picks, .checkout-sheet .check { margin: 10px 0 0; display: flex; }
.goods-edit { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, 0.2); }
.goods-board { display: flex; flex-direction: column; gap: 10px; }
.goods-board [hidden] { display: none !important; }
.goods-bar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.goods-bar h2 { margin: 0 0 4px; }
.goods-actions, .goods-tabs, .goods-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.goods-filters input, .goods-filters select { min-height: 34px; min-width: 180px; }
.goods-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.goods-stats article { background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.goods-stats span { display: block; color: var(--muted); font-size: 12px; }
.goods-stats b { display: block; margin-top: 2px; font-size: 18px; }
.goods-tabs button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.goods-tabs button.is-on { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.14); color: #ccfbf1; }
.goods-table th, .goods-table td { white-space: nowrap; }
.goods-table td:first-child, .goods-table th:first-child { white-space: normal; }
.goods-table tr.is-low td { background: rgba(251, 191, 36, 0.08); }
.pill-warn { color: #fde68a; border-color: rgba(251, 191, 36, 0.5); }
.pill-ok { color: #99f6e4; border-color: rgba(45, 212, 191, 0.45); }
dialog.goods-sheet { width: min(560px, calc(100vw - 24px)); }
.guest-board svg, .goods-actions svg, .goods-tabs svg, .staff-board svg { width: 14px; height: 14px; flex: none; }
.staff-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.staff-actions form { margin: 0; }
.staff-actions .btn { min-height: 32px; }
dialog.staff-sheet { width: min(680px, calc(100vw - 24px)); }
dialog.staff-sheet form { display: grid; gap: 10px; padding: 12px 14px 14px; }
.desk svg.ico { width: 16px; height: 16px; max-width: 16px; max-height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.desk .brand svg.ico { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
.desk .nav-item svg.ico, .desk .tabbar svg.ico, .desk .nav-toggle svg.ico { width: 18px; height: 18px; max-width: 18px; max-height: 18px; }
.manage-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.manage-card .guest-mark { grid-row: span 2; }
.manage-card strong, .manage-card span { min-width: 0; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 168px; overflow-x: auto; padding-top: 8px; }
.chart-col { flex: 1 0 32px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.chart-col i { display: block; width: 16px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#5eead4, #0f766e); min-height: 2px; }
.chart-col span { font-size: 10px; color: var(--muted); }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 8px 0; }
.hbar b { height: 8px; border-radius: 99px; background: #1e293b; overflow: hidden; display: block; }
.hbar b i { display: block; height: 100%; background: #14b8a6; }
.hbar span, .hbar em { font-size: 13px; font-style: normal; color: var(--muted); }
.goods-tabs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.goods-tabs a.is-on { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.14); color: #ccfbf1; }
.guest-person { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.guest-person b { display: block; }
.guest-person small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.guest-person .pill { display: inline-flex; margin-top: 2px; }
.guest-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #134e4a; color: #ccfbf1; font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .goods-stats { grid-template-columns: 1fr 1fr; } }
[data-manual-goods][hidden] { display: none; }
.folio-dialog .folio-lines { margin: 8px 10px 0; }
.folio-head .folio-photo { width: 72px; height: 36px; object-fit: contain; background: #fff; border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 4px; }
.folio-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.folio-head strong { font-size: 18px; line-height: 1; }
.folio-head span, .folio-empty p { color: var(--muted); font-size: 12px; }
.folio-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; }
.guest-name { display: block; margin: 0; padding: 5px 8px; font-size: 13px; background: #121b2e; border-bottom: 1px solid rgba(148, 163, 184, 0.35); }
.folio-facts, .rate-row, .money-line, .folio-links, .folio-grid {
  display: grid; gap: 1px; margin: 0; background: rgba(148, 163, 184, 0.16); border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}
.folio-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rate-row, .money-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.folio-facts div, .rate-row span, .money-line span { background: #121b2e; min-width: 0; padding: 4px 8px; }
.folio-facts dt, .rate-row i { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; }
.folio-facts dd { margin: 1px 0 0; font-size: 12px; font-weight: 700; }
.rate-row span, .money-line span { display: flex; flex-direction: column; justify-content: center; min-height: 36px; font-size: 10px; color: var(--muted); }
.rate-row b { display: flex; align-items: center; gap: 3px; color: var(--accent); font-size: 12px; white-space: nowrap; }
.rate-row svg { width: 12px; height: 12px; }
.money-line b { display: block; margin-top: 1px; color: var(--text); font-size: 13px; white-space: nowrap; }
.money-line span:last-child { background: #162033; }
.money-line span:last-child b { color: #fde68a; }
.stay-notes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px; background: #10192c; border-top: 1px solid rgba(148, 163, 184, 0.28); }
.stay-notes h2 { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; }
.stay-notes h2 svg { width: 14px; height: 14px; }
.stay-notes ul { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.stay-notes li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12px; }
.stay-notes time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stay-notes small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.stay-notes form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; margin: 0; }
.stay-notes textarea { min-height: 36px; max-height: 72px; }
.stay-notes .fine { margin: 0; }
.folio-now { margin: 0; padding: 4px 8px; font-size: 12px; color: var(--muted); background: #121b2e; border-bottom: 1px solid rgba(148, 163, 184, 0.4); }
.folio-now b { color: var(--text); }
.folio-note, .folio-note-read {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end;
  margin: 0; padding: 6px 8px; background: #10192c; border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}
.folio-note-read { grid-template-columns: 64px minmax(0, 1fr); align-items: start; font-size: 12px; }
.folio-note label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 10px; }
.folio textarea { min-height: 40px; max-height: 72px; resize: vertical; padding: 4px 6px; }
.folio-links { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.folio-links > a, .folio-links .btn {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px;
  background: #121b2e; border: 0; border-radius: 0; color: var(--text);
}
.folio-links form { display: contents; }
.folio-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.folio-block, .folio-form { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: #121b2e; padding: 6px 8px; border-radius: 0; }
.folio-form h2, .folio-block h2 { font-size: 12px; margin: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; align-items: end; }
.field-grid .span-2 { grid-column: span 2; }
.folio label { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: var(--muted); }
.folio input, .folio select { min-height: 26px; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.folio .btn { min-height: 26px; }
.pair, .pair-btn, .row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair-btn { grid-template-columns: 1fr auto; align-items: center; }
.btn-block { width: 100%; }
.btn-danger { background: #e11d48; color: #fff; }
.passcode { margin: 0; padding: 4px 8px; background: #121b2e; border-bottom: 1px solid rgba(148, 163, 184, 0.4); font-size: 12px; }
.folio-lines {
  display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0;
  background: rgba(148, 163, 184, 0.16); border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}
.line-edit {
  display: grid; grid-template-columns: minmax(0, 1.4fr) 52px minmax(72px, 96px) 32px 32px;
  gap: 4px; align-items: center; margin: 0; padding: 4px 8px; background: #10192c; font-size: 12px;
}
.line-edit input { min-height: 26px; padding: 2px 6px; }
.line-edit input[type="hidden"] { display: none; }
.line-edit .btn { min-height: 26px; width: 32px; padding: 0; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, 216px); gap: 8px; margin-bottom: 8px; justify-content: start; }
.room-card {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr;
  width: 216px; min-height: 78px; min-width: 0; padding: 0; border-radius: 12px; color: var(--text); overflow: hidden;
  background: linear-gradient(180deg, #1b2942, #10192c);
  border: 1px solid var(--line);
}
.room-card:hover { border-color: rgba(20, 184, 166, 0.45); }
.room-code { grid-column: 2; grid-row: 1; font-weight: 800; font-size: 15px; padding: 6px 18px 0 8px; letter-spacing: 0; }
.room-type, .rc-type { font-size: 11px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.room-rate, .room-night { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.room-night { color: #fde68a; font-size: 11px; }
.room-rate svg, .room-night svg, .shift-stats svg, .desk-tools svg, .folio-empty svg, .folio h2 svg, .btn svg, .chip svg { width: 14px; height: 14px; flex: none; }
.door-open, .door-shut {
  grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: stretch; justify-content: center;
  background: linear-gradient(180deg, #10192c, #0b1220);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}
.door-art { width: 100%; height: 100%; display: block; margin: 0; }
.room-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 8px 6px; }
.room-prices, .room-foot { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.room-foot { margin-top: auto; justify-content: space-between; }
.room-card .door-shut { display: none; }
.room-card.occupied .door-open,
.room-card.checkout .door-open,
.room-card.maintenance .door-open { display: none; }
.room-card.occupied .door-shut,
.room-card.checkout .door-shut,
.room-card.maintenance .door-shut { display: flex; }
.room-card.maintenance .door-art { opacity: .55; }
.desk-tools, .quick-services { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.desk-tools a, .desk-search { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg1); color: var(--text); font-size: 12px; font-weight: 700; }
.desk-search { padding-left: 6px; }
.desk-search input { border: 0; background: transparent; min-height: 24px; width: 140px; padding: 0; font-size: 12px; }
.folio-empty ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.folio-empty li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.folio h2 { display: flex; align-items: center; gap: 6px; }
.quick-services form { margin: 0; }
.room-meta, .rc-timer { margin-top: 0; padding-top: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.room-out, .rc-est { font-size: 12px; color: var(--accent); font-weight: 800; }
.room-card .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.room-card.empty { border-color: rgba(34, 197, 94, 0.35); }
.room-card.empty .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.room-card.occupied { border-color: rgba(244, 63, 94, 0.45); background: linear-gradient(180deg, rgba(244, 63, 94, 0.16), rgba(15, 23, 42, 0.88)); }
.room-card.occupied .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.room-card.checkout { border-color: rgba(245, 158, 11, 0.55); }
.room-card.checkout .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.room-card.reserved { border-color: rgba(168, 85, 247, 0.45); }
.room-card.reserved .dot { background: #a855f7; box-shadow: 0 0 10px #a855f7; }
.room-card.cleaning { border-color: rgba(56, 189, 248, 0.45); }
.room-card.cleaning .dot { background: var(--info); }
.room-card.maintenance { opacity: 0.7; border-style: dashed; }
.room-stay { display: block; color: #fde68a; font-size: 13px; font-weight: 800; }
.room-stay[hidden], .room-prices[hidden] { display: none; }
.room-pop {
  position: fixed; z-index: 80; width: 280px;
  display: flex; flex-direction: column; overflow: hidden;
  pointer-events: auto; background: #0b1220; color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
}
.room-pop[hidden] { display: none; }
.room-pop-frame {
  flex: none; height: 72px; max-height: 72px; overflow: hidden;
  background: #111827; display: flex; align-items: center; justify-content: center;
}
.room-pop-frame img,
img.room-pop-photo {
  width: 100%; height: 72px; max-width: 100%; max-height: 72px;
  object-fit: cover; object-position: center; display: block; background: #111827;
}
.room-pop-photo.empty { display: grid; place-items: center; height: 72px; max-height: 72px; color: var(--muted); font-size: 12px; }
.room-pop-body { overflow: visible; min-height: 0; }
.room-pop-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.room-pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.room-pop-head strong { font-size: 22px; line-height: 1.1; }
.room-pop-head em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 12px; }
.room-pop-badge {
  flex: none; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700;
  background: rgba(34, 197, 94, 0.16); color: #86efac;
}
.room-pop.tone-occupied { border-color: rgba(244, 63, 94, 0.55); }
.room-pop.tone-occupied .room-pop-badge { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.room-pop.tone-departing { border-color: rgba(245, 158, 11, 0.6); }
.room-pop.tone-departing .room-pop-badge { background: rgba(245, 158, 11, 0.16); color: #fde68a; }
.room-pop.tone-reserved, .room-pop.tone-arriving { border-color: rgba(168, 85, 247, 0.55); }
.room-pop.tone-reserved .room-pop-badge, .room-pop.tone-arriving .room-pop-badge { background: rgba(168, 85, 247, 0.16); color: #e9d5ff; }
.room-pop.tone-cleaning { border-color: rgba(56, 189, 248, 0.55); }
.room-pop.tone-cleaning .room-pop-badge { background: rgba(56, 189, 248, 0.16); color: #bae6fd; }
.room-pop.tone-maintenance { border-color: rgba(148, 163, 184, 0.45); }
.room-pop.tone-maintenance .room-pop-badge { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.room-pop-facts, .room-pop-note, .room-pop-hint { color: #cbd5e1; font-size: 12px; line-height: 1.45; }
.room-pop h3 { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.room-pop-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.room-pop-row span { color: var(--muted); }
.room-pop-row b { text-align: right; }
.room-pop-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.room-pop-money span { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 11px; color: var(--muted); }
.room-pop-money b { display: block; margin-top: 2px; color: var(--text); font-size: 13px; }
.room-pop-hint { color: var(--muted); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend .empty { background: var(--success); }
.legend .occupied { background: var(--danger); }
.legend .checkout { background: var(--accent); }
.legend .reserved { background: #a855f7; }
.legend .cleaning { background: var(--info); }
.legend .maintenance { background: var(--muted); }
.bottom-nav, .tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 18, 32, 0.96); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); background: none; border: 0; font-size: 11px; min-height: 48px;
}
.tabbar a.is-on { color: #99f6e4; }
.tabbar svg { width: 18px; height: 18px; }

.card, .manage-card { padding: 16px; margin-bottom: 14px; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.manage-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; align-items: center; color: var(--text); }
.manage-card .guest-mark { grid-row: span 2; }
.manage-card span { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .stack label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.span-2 { grid-column: span 2; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg0); color: var(--text);
}
textarea { min-height: 80px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; }
.row-between, .inline-form { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-grid, .today-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-grid article, .today-strip .card { padding: 14px; }
.stat-grid strong { display: block; font-size: 22px; margin-top: 4px; }
.plain { margin: 8px 0 0; padding-left: 18px; }
.check { flex-direction: row !important; align-items: center; }
.inline-domain { display: flex; align-items: center; gap: 6px; }
.inline-domain em { color: var(--muted); font-style: normal; }
.sheet { background: #fff; color: #111; padding: 24px; border-radius: 12px; }
.sheet a { color: #0f766e; }
.bill-page { max-width: 920px; margin: 0 auto; }
.bill-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.bill-tools .btn { display: inline-flex; align-items: center; gap: 6px; }
.bill {
  padding: 28px 32px 24px;
  border: 1px solid #e7e5e4;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: #1c1917;
}
.bill-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #1c1917; }
.bill-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.bill-head p, .bill-id p { margin: 2px 0 0; font-size: 13px; }
.bill-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #78716c; }
.bill-id { text-align: right; }
.bill-id strong { display: block; font-size: 18px; }
.bill-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 14px 0; }
.bill-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.bill-facts span { color: #78716c; }
.bill-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.bill-table th, .bill-table td { padding: 7px 8px; border: 1px solid #d6d3d1; color: #1c1917; background: #fff; text-align: left; }
.bill-table th { background: #f5f5f4; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #44403c; }
.bill-table td:first-child, .bill-table th:first-child { width: 42px; text-align: center; }
.bill-table td:nth-child(3), .bill-table th:nth-child(3) { width: 48px; text-align: center; }
.bill-table td:nth-last-child(-n+2), .bill-table th:nth-last-child(-n+2) { text-align: right; white-space: nowrap; }
.bill h3 { margin: 16px 0 6px; font-size: 13px; }
.bill-sum { margin-top: 10px; margin-left: auto; width: min(320px, 100%); }
.bill-sum p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 6px 0; border-bottom: 1px solid #e7e5e4; font-size: 14px; }
.bill-sum .is-due { border-bottom: 0; padding-top: 8px; font-size: 16px; }
.bill-sum .is-due b { font-size: 20px; }
.bill-words { margin: 8px 0 0; font-size: 13px; }
.bill-bank, .bill-note, .bill-legal, .bill-made { margin: 10px 0 0; font-size: 12px; color: #44403c; }
.bill-legal { color: #78716c; }
.bill-notes { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.bill-notes li { padding: 4px 0; border-bottom: 1px solid #e7e5e4; }
.bill-notes time { display: inline-block; min-width: 118px; color: #78716c; }
.bill-signs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 28px; text-align: center; }
.bill-signs b { display: block; font-size: 13px; }
.bill-signs span { display: block; min-height: 78px; margin-top: 4px; font-size: 11px; color: #78716c; font-weight: 500; }
.layout.sales .main-scroll:has(.bill-page) { overflow: auto; display: block; padding-bottom: 72px; }
.bill-tools form { margin: 0; }
.bill-tools label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.bill-tools select { width: auto; min-width: 220px; min-height: 34px; }
.bill-render { background: transparent; }
.inv { max-width: 920px; margin: 0 auto; }
.inv-line:empty, .inv-notes:empty, .inv-pays:empty { display: none; }
.inv-signs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; text-align: center; }
.inv-signs b { display: block; font-size: 13px; }
.inv-signs span { display: block; min-height: 72px; margin-top: 4px; font-size: 11px; }
.inv-made, .inv-legal, .inv-words { font-size: 12px; }
.inv-sanh { background: #fff; color: #1c1917; padding: 28px 32px 24px; border: 1px solid #e7e5e4; }
.inv-sanh .inv-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #1c1917; }
.inv-sanh h2 { margin: 0; font-size: 22px; }
.inv-sanh .inv-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #78716c; }
.inv-sanh .inv-id { text-align: right; }
.inv-sanh .inv-id strong { display: block; font-size: 18px; }
.inv-sanh .inv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 14px 0; }
.inv-sanh .inv-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.inv-sanh .inv-facts span { color: #78716c; }
.inv-sanh .inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-sanh .inv-table th, .inv-sanh .inv-table td { padding: 7px 8px; border: 1px solid #d6d3d1; color: #1c1917; background: #fff; }
.inv-sanh .inv-table th { background: #f5f5f4; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.inv-sanh .inv-table td:nth-child(3), .inv-sanh .inv-table th:nth-child(3), .inv-sanh .inv-table td:first-child, .inv-sanh .inv-table th:first-child { text-align: center; width: 48px; }
.inv-sanh .inv-table td:nth-last-child(-n+2), .inv-sanh .inv-table th:nth-last-child(-n+2) { text-align: right; }
.inv-sanh .inv-sum { margin-left: auto; width: min(320px, 100%); }
.inv-sanh .inv-sum p, .inv-classic .inv-total p, .inv-resort .inv-total p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; }
.inv-sanh h3 { margin: 16px 0 6px; font-size: 13px; }
.inv-resort { background: #1a2e26; color: #e6b325; overflow: hidden; font-family: Montserrat, "Be Vietnam Pro", sans-serif; }
.rs-hero { height: 168px; background: #102018; overflow: hidden; }
.rs-cover { display: block; width: 100%; height: 168px; object-fit: cover; }
.rs-badge { position: relative; z-index: 2; width: 188px; height: 188px; margin: -94px auto 0; border-radius: 50%; background: #1a2e26; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.rs-logo { display: block; width: 130px; height: 130px; max-width: 130px; max-height: 130px; object-fit: contain; object-position: center; }
.rs-badge b { display: none; }
.rs-body { background: #1a2e26; color: #e6b325; padding: 6px 34px 26px; }
.rs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.rs-body h1 { margin: 0 0 14px; color: #e6b325; font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif; font-weight: 500; font-size: 68px; letter-spacing: .16em; line-height: .9; }
.rs-body p { margin: 3px 0; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.rs-to { text-align: right; padding-top: 8px; }
.rs-to span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.rs-to b { display: block; margin: 4px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rs-sheet { margin-top: 22px; }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 118px 70px 124px; column-gap: 8px; align-items: center; }
.rs-head { padding: 12px 18px; border: 1.5px solid #e6b325; border-radius: 12px; background: #2a4034; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.rs-head span:nth-child(n+2) { text-align: right; }
.rs-head span:nth-child(3) { text-align: center; }
.rs-board { margin-top: 12px; border: 1.5px solid #e6b325; border-radius: 14px; padding: 6px 0; }
.rs-rows { width: 100%; border-collapse: collapse; }
.rs-rows td { border: 0; padding: 0; background: transparent; color: #e6b325; }
.rs-line { margin: 0; padding: 14px 18px; border: 0; border-radius: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.rs-line span:first-child { text-transform: uppercase; letter-spacing: .06em; }
.rs-line span:nth-child(n+2) { text-align: right; }
.rs-line span:nth-child(3) { text-align: center; }
.rs-pay { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 22px; }
.rs-label { margin-bottom: 8px; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
.rs-box { min-width: 280px; background: #e6b325; color: #1a2e26; padding: 14px 16px 12px; }
.rs-box p { display: flex; justify-content: space-between; gap: 24px; margin: 6px 0; font-weight: 800; letter-spacing: .04em; font-size: 14px; }
.rs-foot { display: flex; justify-content: space-between; gap: 28px; background: #e6b325; color: #1a2e26; padding: 16px 34px 18px; font-size: 12px; }
.rs-foot b { display: block; margin-bottom: 6px; letter-spacing: .06em; font-size: 13px; }
.rs-foot .inv-line::before { content: "●  "; font-size: 9px; }
.cl-stage { background: #c4a15a; padding: 34px 22px 40px; font-family: "Libre Baskerville", Georgia, serif; }
.cl-over { margin: 0; text-align: center; color: #fff; letter-spacing: .46em; font-family: "Libre Baskerville", Georgia, serif; font-size: 26px; font-weight: 400; }
.cl-script { margin: -4px 0 14px; text-align: center; color: #fff; font-family: "Great Vibes", cursive; font-size: 52px; line-height: 1; }
.inv-classic { background: #fff; color: #1c1917; font-family: "Be Vietnam Pro", sans-serif; }
.cl-hero { position: relative; height: 132px; overflow: hidden; background: #1c1917; }
.cl-cover { display: block; width: 100%; height: 132px; object-fit: cover; filter: brightness(.55); }
.cl-brand { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; color: #fff; }
.cl-brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.9); background: #111; }
.cl-brand span { font-family: "Great Vibes", cursive; font-size: 40px; line-height: 1; }
.cl-word { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; font-size: 52px; letter-spacing: .02em; }
.cl-meta { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px 8px; font-size: 13px; }
.cl-meta b { font-family: "Libre Baskerville", Georgia, serif; }
.cl-no { text-align: right; }
.cl-table { width: calc(100% - 48px); margin: 8px 24px 0; border-collapse: collapse; }
.cl-table th, .cl-table td { color: #1c1917; background: #fff; border: 0; border-bottom: 1px solid #e7e5e4; }
.cl-table th { text-align: left; font-size: 14px; font-weight: 700; padding: 8px 8px 10px; border-bottom: 2px solid #111; }
.cl-table td { padding: 14px 8px; vertical-align: top; font-size: 13px; line-height: 1.45; }
.cl-table th:nth-child(1), .cl-table td:nth-child(1) { width: 22%; }
.cl-table th:nth-child(2), .cl-table td:nth-child(2) { text-align: center; width: 64px; }
.cl-table th:nth-child(3), .cl-table td:nth-child(3) { width: auto; }
.cl-table th:last-child, .cl-table td:last-child { text-align: right; width: 120px; white-space: nowrap; }
.cl-split { display: grid; grid-template-columns: 1.4fr .7fr; gap: 18px; margin: 18px 28px 10px; font-size: 13px; }
.cl-split b { font-family: "Libre Baskerville", Georgia, serif; }
.cl-split > div:last-child { border-left: 1px solid #111; padding-left: 16px; }
.cl-sum p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 3px 0; }
.cl-contact { display: flex; justify-content: space-between; gap: 8px; margin: 8px 24px 0; padding-top: 10px; border-top: 1px solid #e7e5e4; font-size: 12px; color: #44403c; }
.cl-flourish { display: block; width: 180px; height: 28px; margin: 10px auto 18px; }
.print-photos { margin-bottom: 16px; }
.print-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.print-photo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.print-photo img { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; background: #0b1220; border: 1px solid rgba(148, 163, 184, .35); }
.ck-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ck-head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-chip { appearance: none; border: 1px dashed rgba(148, 163, 184, .55); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.tpl-chip:hover { border-color: var(--primary); color: #99f6e4; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 12px; align-items: start; }
.tpl-paper { background: #44403c; padding: 12px; max-height: 680px; overflow: auto; border-radius: 8px; }
.wp-editor-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media screen and (max-width: 900px) {
  .tpl-layout, .ck-head-row, .print-photo-grid, .rs-top, .rs-pay, .rs-foot, .cl-meta, .cl-split, .inv-sanh .inv-head { display: block; }
  .print-photo-grid { grid-template-columns: 1fr 1fr; }
  .inv-signs { grid-template-columns: 1fr 1fr; }
  .inv-resort .inv-to, .inv-classic .inv-no, .inv-sanh .inv-id { text-align: left; }
}
@media screen and (max-width: 720px) {
  .bill { padding: 16px; }
  .bill-head { display: block; }
  .bill-id { text-align: left; margin-top: 10px; }
  .bill-facts { grid-template-columns: 1fr; }
  .bill-signs { grid-template-columns: 1fr 1fr; }
}
.empty { color: var(--muted); }
.type-board { display: flex; flex-direction: column; gap: 12px; }
.type-head p { color: var(--muted); margin: 4px 0 0; }
.type-card { display: grid; grid-template-columns: 160px 1fr; gap: 12px; background: var(--bg1); border: 1px solid #1e293b; border-radius: 16px; padding: 12px; }
.type-photo { min-height: 120px; border-radius: 12px; overflow: hidden; background: var(--bg0); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.type-photo img, .type-sell img { width: 100%; height: 140px; object-fit: cover; }
.type-form, .type-sell article { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.type-actions { display: flex; align-items: center; gap: 12px; }
.type-actions span, .type-sell p { color: var(--muted); font-size: 13px; }
.type-sell { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 18px; }
.type-sell article { background: var(--bg1); border: 1px solid #1e293b; border-radius: 16px; padding: 12px; overflow: hidden; }
.type-sell .rate { color: var(--gold); font-weight: 700; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.bar { height: 8px; background: var(--bg0); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); }

/* Sơ đồ lễ tân: một bảng full màn hình. Đường đậm chia vùng, đường mờ chia ô. */
body.desk[data-page="board"] .topbar { background: #0e1626; border-bottom: 1px solid rgba(226, 232, 240, 0.38); }
body.desk[data-page="board"] .pill,
body.desk[data-page="board"] .topbar .icon-link { border-radius: 0; border-color: rgba(148, 163, 184, 0.22); }
.layout.sales .main-scroll:has(.rack) { padding: 0; gap: 0; }
.rack { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); background: #0b1220; }
.rack .desk-tools {
  display: grid; grid-template-columns: minmax(160px, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 0; background: rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(226, 232, 240, 0.32);
}
.rack .desk-tools > a, .rack .desk-search {
  justify-content: center; min-height: 32px; border: 0; border-radius: 0; background: #10192c;
}
.rack .desk-search { justify-content: flex-start; padding: 0 10px; }
.rack .desk-search input { width: 100%; }
.rack .filters {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px; margin: 0; background: rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(226, 232, 240, 0.32);
}
.rack .filters .chip {
  width: 100%; justify-content: center; border: 0; border-radius: 0; background: #10192c; min-height: 30px;
}
.rack .sales-split { grid-template-columns: minmax(0, 1fr) 480px; gap: 0; }
.rack .board-col { border-right: 1px solid rgba(226, 232, 240, 0.38); background: #0b1220; }
.rack .side-panel { border: 0; border-radius: 0; }
.rack .floor-jump {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 8px;
  position: sticky; top: 0; z-index: 3; background: #0b1220;
  border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}
.rack .floor-jump a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 0 10px; border-radius: 999px;
  background: #152033; color: #e2e8f0; border: 1px solid rgba(45, 212, 191, 0.35); font-size: 12px; font-weight: 700;
}
.rack .floor-jump b { color: #99f6e4; }
.rack .floor-band { margin: 0 0 10px; border-bottom: 1px solid rgba(226, 232, 240, 0.32); }
.rack .floor-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 44px; z-index: 2;
  margin: 0; padding: 7px 10px; background: #152033;
  border-top: 1px solid rgba(45, 212, 191, 0.45);
  border-bottom: 1px solid rgba(226, 232, 240, 0.22);
  font-size: 12px; color: #cbd5e1;
}
.rack .floor-head b { color: #f8fafc; font-size: 14px; }
.rack .floor-head svg { width: 14px; height: 14px; color: var(--gold); }
.rack .floor-empty { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.floor-manage { margin: 0; padding: 0; overflow: visible; background: #10192c; }
.floor-rename { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.floor-rename input { width: 180px; min-height: 34px; }
.room-person { display: flex; align-items: center; gap: 10px; }
.room-shot, .room-edit-photo { overflow: hidden; background: #0b1220; display: grid; place-items: center; }
.room-shot { width: 84px; height: 56px; border-radius: 8px; flex: none; }
.room-shot img { width: 84px; height: 56px; object-fit: cover; display: block; }
.room-shot .door-art { width: 32px; height: 46px; }
.room-edit-photo { min-height: 180px; border-radius: 12px; }
.room-edit-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.room-edit-photo .door-art { width: 52px; height: 76px; margin: 28px auto 0; }
.room-edit-photo p { margin: 8px 12px 16px; text-align: center; }
.floor-manage-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; padding: 12px 14px; background: #152033; border-bottom: 1px solid rgba(45, 212, 191, 0.35); }
.floor-manage-head h2 { font-size: 20px; margin: 2px 0; }
.floor-manage-head p { color: var(--muted); font-size: 13px; }
.floor-manage-head form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.floor-manage-head label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.floor-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; padding: 10px; }
.floor-room { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px; background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 12px; }
.floor-room-photo { min-height: 72px; border-radius: 8px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.floor-room-photo img { width: 100%; height: 88px; object-fit: cover; }
.floor-room-photo .door-art { width: 42px; height: 64px; }
.floor-room-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: #cbd5e1; }
.floor-room-body b { color: #fff; font-size: 16px; }
.floor-room-body form { display: grid; grid-template-columns: 72px 64px minmax(0, 1fr) auto; gap: 6px; align-items: end; margin-top: 6px; }
.floor-room-body label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.floor-add { grid-template-columns: 1fr; align-content: start; }
.floor-add form, .floor-add { display: flex; flex-direction: column; gap: 8px; }
.floor-new { display: grid; grid-template-columns: auto 120px minmax(160px, 1fr) auto; gap: 10px; align-items: end; }
.floor-new h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; grid-column: 1 / -1; }
.floor-new label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.guest-hint { grid-column: 1 / -1; margin: 0; padding: 6px 8px; border-radius: 8px; background: rgba(45, 212, 191, 0.12); color: #ccfbf1; font-size: 12px; }
.guest-hint a { color: #fde68a; }
.guest-note { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.guest-note label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.guest-note .grow textarea { min-height: 64px; }
.guest-note { grid-template-columns: 180px 160px minmax(0, 1fr) auto; }
.pay-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-picks label { display: inline-flex; }
.pay-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-picks span { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.35); background: #0b1220; font-size: 12px; }
.pay-picks input:checked + span { border-color: #2dd4bf; color: #ccfbf1; background: #152033; }
.pay-picks svg { width: 14px; height: 14px; }
.pay-log { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 6px; background: #10192c; border-bottom: 1px solid rgba(226, 232, 240, 0.28); }
.pay-log span { font-size: 12px; color: #fde68a; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 10px 0; }
.perm-grid label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.perm-grid input { width: auto; min-height: 0; }
.staff-card form { margin-top: 8px; }
.stock-row { padding: 8px 0; border-top: 1px solid rgba(148, 163, 184, 0.2); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.book-grid form { display: flex; flex-direction: column; gap: 8px; }
.book-grid label, .book-grid h2 { margin: 0; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.rack .room-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 112px;
  gap: 6px; margin: 0; padding: 6px; justify-content: stretch;
  background: transparent;
}
.rack .room-card {
  width: auto; height: 112px; min-height: 112px; max-height: 112px;
  grid-template-columns: 46px minmax(0, 1fr);
  border: 0; border-radius: 0; border-left: 3px solid transparent;
  background: #121b2e;
  transition: box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.rack .room-card:hover { background: #182438; }
.rack .door-open, .rack .door-shut {
  width: 34px; height: 58px; align-self: center; justify-self: center;
  background: transparent; border-right: 0;
}
.rack .door-art { width: 34px; height: 58px; }
.rack .room-type, .rack .room-rate, .rack .room-night {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rack .room-meta {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden;
}
.rack .room-prices, .rack .room-foot { flex-wrap: nowrap; min-width: 0; }
.rack .room-side { overflow: hidden; }
.rack .room-card.empty { border-left-color: #22c55e; }
.rack .room-card.occupied { border-left-color: #f43f5e; background: #1a1420; }
.rack .room-card.checkout { border-left-color: #f59e0b; }
.rack .room-card.reserved { border-left-color: #a855f7; }
.rack .room-card.cleaning { border-left-color: #38bdf8; }
.rack .room-card.maintenance { border-left-color: #94a3b8; }
.rack .room-card.is-on { box-shadow: inset 0 0 0 2px #2dd4bf; background: #152033; }
.rack .folio-head, .guest-name, .folio-now, .folio-note, .folio-note-read, .folio-lines, .passcode, .folio-facts div, .rate-row span, .money-line span, .folio-links > a, .folio-links .btn, .folio-block {
  background: #10192c;
}
@media (max-width: 1180px) {
  .sales-split, .rack .sales-split { grid-template-columns: minmax(220px, 1fr) 460px; }
}
@media (max-width: 860px) {
  .hero-photo .inner { width: 100%; max-width: 100%; margin: 0; padding: 56px 16px 80px; box-sizing: border-box; }
  .hero-photo h1 { font-size: 34px; }
  .hero-photo h1, .hero-photo .lead { max-width: calc(100vw - 32px); }
  .main-scroll, .wrap, .stats, .room-grid, .filters, .legend { width: 100%; max-width: 100vw; box-sizing: border-box; }
  .topbar h1 { display: none; }
  .topbar .pill { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .type-card, .price-row { grid-template-columns: 1fr; }
  .layout.sales .main-scroll { overflow: auto; }
  .sales-split, .rack .sales-split { grid-template-columns: 1fr; }
  .side-panel, .folio { height: auto; overflow: visible; }
  .folio-facts, .rate-row, .money-line { grid-template-columns: 1fr 1fr; }
  .folio-grid { grid-template-columns: 1fr; }
  .rack .desk-tools, .rack .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid, .rack .room-grid, .floor-rooms, .floor-new { grid-template-columns: 1fr; }
  .floor-room, .floor-room-body form { grid-template-columns: 1fr; }
  .room-card, .rack .room-card { width: 100%; height: 112px; min-height: 112px; max-height: 112px; }
  .tabbar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; background: #0b1220; border-bottom: 1px solid #1e293b; }
  body.nav-open .site-nav { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .stats, .doors, .feat, .photo-grid, .price-grid, .two, .form-grid, .story, .story-flip, .split-card, .contact-grid, .signup, .signup-fields { grid-template-columns: 1fr; direction: ltr; }
  .signup-aside { position: static; }
  .signin { grid-template-columns: 1fr; }
  .signin-aside { min-height: 320px; }
  .signin-card { padding: 24px 18px 40px; }
  .signup-fields .wide { grid-column: auto; }
  .story > div, .story-flip > div, .split-card > div { padding: 16px; }
  .span-2 { grid-column: auto; }
  .layout.settings { grid-template-columns: 1fr; }
  .nav-side { display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  body.nav-open .nav-side { display: flex; }
  .tabbar { display: grid; }
  .cta { flex-direction: column; align-items: flex-start; }
}
.cal { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12px; }
.cal th, .cal td { border: 1px solid #1e293b; padding: 4px 6px; height: 34px; vertical-align: middle; }
.cal .sticky { position: sticky; left: 0; background: #0f172a; min-width: 92px; z-index: 1; }
.cal .inhouse { background: #3f1d2e; }
.cal .reserved { background: #2e1a4a; }
.cal .checked_out { background: #132033; color: #94a3b8; }
.hk-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hk-room { display: grid; gap: 6px; padding: 8px; border: 1px solid #1e293b; background: #10192c; }
.hk-room strong { display: flex; justify-content: space-between; gap: 8px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channel-card { display: grid; gap: 8px; padding: 12px; border: 1px solid #1e293b; background: #10192c; border-radius: 12px; }
.channel-card form { display: grid; gap: 8px; }
.channel-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.channel-ways div { display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #0c1424; }
.channel-ways span, .channel-ways em { font-size: 12px; color: #94a3b8; font-style: normal; }
.channel-card .plain { margin: 0; }
@media (max-width: 860px) {
  .channel-grid { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .nav-side, .tabbar, .print-btn, .bill-tools { display: none !important; }
  body, .main-scroll, .layout, .sheet, .bill-page { background: #fff !important; color: #111; }
  .bill { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .bill-head { display: flex; }
  .bill-id { text-align: right; }
  .bill-signs, .inv-signs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cl-stage, .cl-stage *, .inv, .inv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-shell, .layout, .main-scroll { display: block; height: auto; overflow: visible; }
  @page { size: A4; margin: 12mm; }
}
