:root {
  --ink: #121a17;
  --ink-soft: #5a6862;
  --paper: #eef1ee;
  --card: #fbfcfb;
  --press: #1f4d4a;
  --press-hot: #2f6f6a;
  --line: rgba(18, 26, 23, 0.08);
  --ok: #0f766e;
  --warn: #b45309;
  --danger: #b42318;
  --shadow: 0 10px 28px rgba(18, 26, 23, 0.06);
  --radius: 18px;
  --font-d: "Newsreader", "Times New Roman", serif;
  --font: "Instrument Sans", system-ui, sans-serif;
  --dock-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #d8ddd9;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

button, input { font: inherit; font-size: 16px; }
button { cursor: pointer; }

body {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-shell {
  position: relative;
  width: min(1240px, calc(100vw - 40px));
  height: min(800px, calc(100vh - 40px));
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3a403c 0%, #1a1f1c 42%, #252a27 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 28px 60px rgba(0,0,0,0.4);
}

.tablet-cam {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a554c 0%, #0b0e0c 70%);
  box-shadow: 0 0 0 2px #12151c;
  z-index: 3;
}

.tablet-btn {
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #4a554c, #232826);
  z-index: 2;
}
.tablet-btn-vol { top: 22%; height: 72px; }
.tablet-btn-pwr { top: 42%; height: 42px; }

.device-frame {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.android-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  background: #121a17;
  color: #e8ece8;
  flex-shrink: 0;
}
.android-status .right { display: flex; gap: 8px; align-items: center; }
.bat {
  width: 18px; height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.bat::after {
  content: "";
  position: absolute;
  right: -3px; top: 2px;
  width: 2px; height: 4px;
  background: currentColor;
}

#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.view { display: none; }
.view.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 12px;
  animation: fade 0.22s ease;
}
.view-fill.active { overflow: hidden; }
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.eyebrow {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--press);
}
.date-chip {
  margin: 0;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.lede { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; margin: 0; }
.lede.tight { max-width: 16rem; text-align: right; }

.dash {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-bottom: 12px;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.panel-alert {
  background: #fff7ed;
  box-shadow: 0 0 0 1px #fed7aa, var(--shadow);
}

.villa-pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.villa-pills button {
  border: 0;
  background: #e7eeea;
  border-radius: 12px;
  padding: 10px 8px;
  min-height: 56px;
  text-align: left;
}
.villa-pills button.st-occ { background: #c5ddd8; }
.villa-pills button.st-hk { background: #fef3c7; }
.villa-pills button.st-fix { background: #fee2e2; }
.villa-pills strong { display: block; font-size: 0.85rem; }
.villa-pills span { font-size: 0.72rem; font-weight: 600; }

.snap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 12px;
}
.snap-top {
  margin-top: 0;
  margin-bottom: 12px;
}
.snap-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.snap-foot .lede { margin: 0; font-size: 0.78rem; }

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.donut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--card);
}
.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-center strong { font-size: 1.2rem; line-height: 1; }
.donut-center span { font-size: 0.68rem; color: var(--ink-soft); margin-top: 2px; }
.donut-leg {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}
.donut-leg li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.candles {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 92px;
}
.candle {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.candle .plot {
  flex: 1;
  width: 100%;
  position: relative;
}
.candle .wick {
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #9aa8a3;
  border-radius: 1px;
}
.candle .body {
  position: absolute;
  left: 50%;
  width: 62%;
  max-width: 12px;
  min-width: 5px;
  transform: translateX(-50%);
  border-radius: 2px 2px 1px 1px;
}
.candle.up .body { background: var(--press); }
.candle.down .body { background: #b42318; }
.candle.flat .body { background: #7d8c86; }
.candle .cap {
  position: absolute;
  left: 50%;
  width: 70%;
  max-width: 14px;
  height: 3px;
  transform: translateX(-50%);
  background: #b42318;
  border-radius: 1px;
}
.candle .lbl {
  font-size: 0.58rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1;
}
.candles-lg { height: 140px; }
.candles-lg .candle .lbl { font-size: 0.62rem; }
.candles-lg .candle .body { max-width: 16px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.kpi {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--press);
}
.kpi.warn { border-left-color: #b45309; }
.kpi.mute { border-left-color: #94a3b8; }
.kpi span { display: block; font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi strong { font-family: var(--font-d); font-size: 1.2rem; font-weight: 500; }
.kpi small { display: block; color: var(--ink-soft); font-size: 0.75rem; margin-top: 2px; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tight-lede { margin: 0 0 10px; font-size: 0.8rem; }

.rpt-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.pulse {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
}
.pulse .n { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; }
.pulse.warn { background: #fff7ed; color: #9a3412; }
.pulse.ok { background: #ecfdf5; color: #065f46; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}
.panel-head h2 { margin: 0 0 4px; }
.seg {
  display: flex;
  background: #e7eeea;
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}
.seg button {
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.82rem;
}
.seg button.on { background: var(--card); box-shadow: var(--shadow); color: var(--press); }

.candle-legend {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.cap-swatch {
  display: inline-block;
  width: 10px;
  height: 3px;
  background: #b42318;
  border-radius: 1px;
  margin-right: 4px;
  vertical-align: middle;
}

.rpt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.meter {
  height: 8px;
  background: #e7eeea;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--press);
  border-radius: 999px;
}
.meter > span.warn { background: #b45309; }

.villa-meter {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.villa-meter:first-child { border-top: 0; padding-top: 0; }
.villa-meter .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}
.villa-meter strong { font-weight: 650; }
.villa-meter .n { color: var(--ink-soft); font-size: 0.78rem; }

.split-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7eeea;
  margin: 10px 0 8px;
}
.split-bar i { display: block; height: 100%; }
.split-nums {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 650;
}

.wk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wk-card {
  background: #eef1ee;
  border-radius: 12px;
  padding: 12px;
}
.wk-card span { display: block; font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.wk-card strong { font-family: var(--font-d); font-size: 1.35rem; font-weight: 500; }
.wk-card small { display: block; color: var(--ink-soft); font-size: 0.78rem; }

.rpt-stamp {
  margin: 14px 4px 4px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

#view-report .donut { width: 124px; height: 124px; }
#view-report .donut::after { inset: 30px; }
.report-chart { margin-top: 12px; }
#report-table { overflow: auto; }
.night-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.night-table th {
  text-align: left;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.night-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.night-table th.num, .night-table td.num { text-align: right; font-weight: 600; }
.night-table tr.is-today { background: #e7eeea; }

.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.job:first-child { border-top: 0; padding-top: 0; }
.job strong { display: block; }
.job small { color: var(--ink-soft); }
.job-hit {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  min-height: 52px;
}
.job-hit:active { background: #e7eeea; }
.job-hit small { display: block; }

.btn-press, .btn-plain, .btn-ghost, .btn-wa, .btn-warn {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.btn-press { background: var(--press); color: #f4f7f6; }
.btn-press:active { background: var(--press-hot); }
.btn-plain { background: #e7eeea; color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-wa {
  background: #128c7e;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-warn { background: #fef3c7; color: #92400e; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  white-space: nowrap;
}
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.chip-wa {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.danger { color: var(--danger); font-weight: 600; }
.err { color: var(--danger); font-size: 0.9rem; margin-bottom: 8px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
  flex-shrink: 0;
  align-items: center;
}
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.dot.booked { background: var(--press); }
.dot.unpaid { background: #b42318; }
.dot.today { box-shadow: 0 0 0 2px var(--press); background: #fff; }

.cal-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.cal-wrap { overflow: auto; min-height: 0; }
.cal-sheet {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  overflow: auto;
  min-height: 0;
}
.cal-sheet h2 {
  margin: 0 0 4px;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 1.45rem;
}
.cal-sheet .field { margin: 10px 0; }
.cal-sheet .money { gap: 6px; margin: 10px 0; }
.cal-sheet .money strong { font-size: 0.82rem; }
.cal-sheet .seg { margin-top: 4px; }
.cal-sheet .field input[type="text"],
.cal-sheet .field input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  min-height: 44px;
  background: #fff;
}
.cal-idle {
  color: var(--ink-soft);
  padding: 12px 4px 0;
}
.cal-idle strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.hint-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7eeea;
  color: var(--press);
  font-weight: 700;
  margin-right: 6px;
}

.cal {
  border-collapse: separate;
  border-spacing: 3px;
  min-width: 640px;
  width: 100%;
  font-size: 0.75rem;
}
.cal th, .cal td {
  background: var(--card);
  border-radius: 8px;
  padding: 4px 3px;
  text-align: center;
  min-width: 58px;
  height: 52px;
}
.cal th { color: var(--ink-soft); font-weight: 600; height: auto; }
.cal th.is-today { color: var(--press); }
.cal th .wd { display: block; font-size: 0.65rem; font-weight: 500; text-transform: lowercase; }
.cal td.booked { background: #c5ddd8; }
.cal td.unpaid { background: #fecaca; }
.cal td.free { background: #f4f7f5; }
.cal td.is-today { box-shadow: inset 0 0 0 2px var(--press); }
.cal td.sel { box-shadow: inset 0 0 0 2px #d97706; background: #fff7ed; }
.cal .villa-name { text-align: left; font-weight: 700; min-width: 80px; padding-left: 8px; }
.cal td button {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 40px;
  font-weight: 600;
  padding: 0;
}
.cal-add {
  color: var(--press);
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.45;
}
.cal td.free:hover .cal-add,
.cal td.sel .cal-add { opacity: 1; }

.match {
  font-size: 0.8rem;
  color: var(--ok);
  margin: 0 0 8px;
}

.tool-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  margin-bottom: 12px;
  background: var(--card);
}
.search.tight { margin: 0; flex: 1; min-width: 0; }
.tool-row .seg { flex-shrink: 0; }

.book-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.book-list, .book-detail {
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-list { padding: 8px; }
.book-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 64px;
}
.book-item.active { background: #e7eeea; }
.book-item strong { display: block; }
.book-item .meta { color: var(--ink-soft); font-size: 0.78rem; }
.book-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.book-item .mid { flex: 1; min-width: 0; }
.book-item .mid strong,
.book-item .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-hero {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
}
.guest-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #eef1ee;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 12px;
}
.guest-card strong { display: block; font-size: 1.1rem; }
.guest-card small { color: var(--ink-soft); }

.book-detail { padding: 18px 20px; }
.book-detail h2 { margin: 0 0 6px; font-family: var(--font-d); font-weight: 500; font-size: 1.6rem; }
.book-detail p { margin: 0 0 6px; }
.money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.money div {
  background: #eef1ee;
  border-radius: 12px;
  padding: 10px 12px;
}
.money span { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.money strong { font-size: 0.95rem; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field input[type="date"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  min-height: 44px;
}
.callout {
  background: #ecfdf5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 8px 0 12px;
}
.callout-warn {
  background: #fff7ed;
  color: #9a3412;
}
.hold {
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 600;
}
.empty {
  color: var(--ink-soft);
  padding: 12px 4px;
}

.io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.io-grid .panel { overflow: auto; min-height: 0; }
.io-stay { margin-top: 12px; flex-shrink: 0; }
#view-checkin .io-grid { min-height: 0; }
.stay-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.io-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.io-card:first-child { border-top: 0; padding-top: 0; }
.io-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.io-card .mid { flex: 1; min-width: 140px; }
.io-card strong { display: block; font-size: 1.05rem; }
.io-card small { color: var(--ink-soft); }
.io-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }

.stay-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e7eeea;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px 8px 8px;
  min-height: 48px;
  flex-shrink: 0;
}
.stay-chip img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.stay-chip strong { display: block; font-size: 0.85rem; }
.stay-chip span { font-size: 0.72rem; color: var(--ink-soft); }

.empty-box {
  text-align: center;
  color: var(--ink-soft);
  padding: 28px 12px;
}
.empty-box strong { display: block; color: var(--ink); margin-bottom: 4px; }

.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.villa-legend { margin-bottom: 12px; }
.v-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0;
  padding: 0;
  text-align: left;
  min-height: 0;
  width: 100%;
  display: block;
}
.v-card img { width: 100%; height: 148px; object-fit: cover; display: block; }
.v-card .pad { padding: 12px 14px 14px; }
.v-card strong { display: block; font-family: var(--font-d); font-size: 1.25rem; font-weight: 500; }
.v-card .pad > span:not(.cta) { display: inline-block; font-size: 0.78rem; font-weight: 700; margin: 6px 0 4px; padding: 3px 8px; border-radius: 999px; background: #e7eeea; }
.v-card .pad > span.ok { background: #d1fae5; color: #065f46; }
.v-card .pad > span.warn { background: #fef3c7; color: #92400e; }
.v-card .pad > span.danger { background: #fee2e2; color: #991b1b; }
.v-card small { display: block; color: var(--ink-soft); margin-top: 4px; line-height: 1.35; }
.v-card .cta { display: block; margin-top: 10px; font-size: 0.8rem; font-weight: 650; color: var(--press); }
.v-card.static { cursor: default; }
.v-meter {
  height: 6px;
  background: #e7eeea;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.v-meter i {
  display: block;
  height: 100%;
  background: var(--press);
  border-radius: 99px;
}

.guest-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.guest-list-pane { overflow: auto; min-height: 0; }
.guest-list-pane .seg { margin: 8px 0 10px; }
.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  text-align: left;
  min-height: 64px;
}
.guest-row.active { box-shadow: 0 0 0 2px var(--press); }
.guest-row strong { display: block; font-size: 1.05rem; }
.guest-row small { color: var(--ink-soft); }
.stay-line {
  width: 100%;
  text-align: left;
  border: 0;
  background: #eef1ee;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.stay-line strong { display: block; }
.stay-line small { color: var(--ink-soft); }
.io-card .acts .badge { align-self: center; }

.dock {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex-shrink: 0;
  height: var(--dock-h);
  background: #121a17;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.dock[hidden] { display: none !important; }
.dock button {
  border: 0;
  background: transparent;
  color: #9aa8a3;
  font-size: 0.68rem;
  font-weight: 650;
  border-radius: 12px;
  min-height: 48px;
  white-space: nowrap;
}
.dock button.on {
  background: var(--press);
  color: #f4f7f6;
}

.ink-bg {
  background: #121a17;
  color: #e8ece8;
  justify-content: center !important;
  align-items: center;
  padding: 24px !important;
}
.auth-panel {
  width: min(360px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 24px 22px;
}
.auth-panel h2 { margin: 0 0 8px; font-family: var(--font-d); font-weight: 500; }
.auth-panel input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  margin: 8px 0 12px;
}

.splash {
  position: absolute;
  inset: 0;
  background: #121a17;
  color: #e8ece8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 8;
  gap: 6px;
}
.splash h1 { font-family: var(--font-d); margin: 0; font-weight: 500; font-size: 2.4rem; }
.splash p { margin: 0; color: #9aa8a3; }
.splash .eyebrow { color: #7dcdc4; }
.splash.hidden { display: none; }

#toast-host {
  position: absolute;
  bottom: calc(var(--dock-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: min(400px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  background: #121a17;
  color: #f4f7f6;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 8px;
  pointer-events: auto;
}

.excluded { color: var(--ink-soft); padding: 20px 8px; }

@media (max-width: 900px) {
  body { background: #0f1419; }
  .tablet-shell {
    width: 100vw;
    height: 100vh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tablet-cam, .tablet-btn { display: none; }
  .device-frame { border-radius: 0; }
  .dash, .io-grid, .book-split, .villa-grid, .villa-pills, .snap, .kpi-row, .rpt-split, .wk-grid, .cal-split, .guest-split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dash, .io-grid, .book-split, .villa-grid, .villa-pills, .snap, .kpi-row, .rpt-split, .wk-grid, .cal-split, .guest-split { grid-template-columns: 1fr; }
  .cal-sheet { min-height: 260px; }
  .tool-row { flex-wrap: wrap; }
}
