:root {
  color-scheme: light;
  --ink: #252932;
  --muted: #747b84;
  --line: #e8eef2;
  --paper: #f8fbfc;
  --panel: #ffffff;
  --panel-soft: #fbfcfd;
  --accent: #92dcf7;
  --accent-strong: #47b8e4;
  --accent-ink: #0c6d91;
  --mint: #86d8be;
  --sakura: #efa9b5;
  --yuzu: #e5bc61;
  --fuji: #8ea7d9;
  --momo: #f0b38e;
  --coral: #d96c63;
  --teal: #2f9892;
  --gold: #b88a32;
  --blue: #5d7fb3;
  --shadow: 0 10px 26px rgba(42, 74, 91, 0.055);
}

/* Roomie Mini UI refresh: desktop-sized adaptation of the WeChat mini-program look. */
:root {
  --ink: #1d2a2b;
  --muted: #6f7c7a;
  --line: #e0d7c9;
  --paper: #f4efe6;
  --panel: #fffdf7;
  --panel-soft: #f7f3ea;
  --accent: #7dd6f4;
  --accent-strong: #445B71;
  --accent-ink: #445B71;
  --mint: #ddefe8;
  --sakura: #efa9b5;
  --yuzu: #e5bc61;
  --fuji: #8ea7d9;
  --momo: #f0b38e;
  --coral: #c95436;
  --teal: #2f9892;
  --gold: #b88a32;
  --blue: #445B71;
  --shadow: 0 12px 30px rgba(130, 112, 82, 0.08);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.login-screen {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.72), rgba(244, 239, 230, 0) 260px),
    var(--paper);
}

.login-card {
  border-color: rgba(130, 112, 82, 0.18);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(130, 112, 82, 0.16);
}

.login-brand {
  border-right-color: rgba(130, 112, 82, 0.16);
  background: #eee7dc;
}

.login-logo,
.brand-mark {
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(130, 112, 82, 0.12);
}

.login-brand h1,
.login-form h2,
.brand h1,
.page-title h2,
.panel-head h3,
.stat-value,
.cat-card h4 {
  color: #172626;
  font-weight: 800;
}

.login-form,
.auth-tabs,
.quick-login-panel,
.sync-box {
  background: var(--panel);
}

.auth-tabs,
.sync-box,
.role-option,
.quick-login-card,
.transport-warning,
.auth-notice {
  border-color: rgba(130, 112, 82, 0.18);
}

.auth-tab.active,
.role-option.active {
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: none;
}

.role-option.active span,
.auth-tab.active span {
  color: rgba(255, 255, 255, 0.84);
}

.app-shell {
  background: var(--paper);
}

.sidebar {
  background: #eee7dc;
  border-right-color: rgba(130, 112, 82, 0.16);
}

.brand {
  padding: 2px 8px 4px;
}

.brand p {
  color: #6d7878;
  font-weight: 700;
}

.nav {
  gap: 6px;
}

.nav-item {
  color: #445151;
  font-weight: 800;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.56);
}

.nav-item.active {
  color: var(--accent-ink);
  background: var(--panel);
  box-shadow: inset 4px 0 0 var(--accent), 0 8px 20px rgba(130, 112, 82, 0.08);
}

.nav-item span:last-child {
  font-weight: 800;
}

.save-indicator {
  border-color: rgba(130, 112, 82, 0.16);
  background: rgba(255, 253, 247, 0.68);
  color: #6d7878;
  font-weight: 700;
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.66), rgba(255, 253, 247, 0) 220px),
    var(--paper);
}

.screen {
  max-width: 1400px;
  padding: 26px 28px 34px;
}

.title-icon,
.stat-icon,
.row-icon,
.cat-avatar,
.avatar,
.action-mark {
  color: var(--accent-ink);
  background: var(--mint);
}

.panel-head .icon,
.title-icon .icon,
.nav-item .icon {
  color: currentColor;
}

.user-chip,
.quick-switch,
.live-strip span,
.inventory-group-title,
.festival-countdown-panel,
.auth-notice,
.sync-box {
  color: var(--accent-ink);
  border-color: rgba(68, 91, 113, 0.18);
  background: rgba(221, 239, 232, 0.72);
}

.primary-button {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(68, 91, 113, 0.16);
}

.primary-button:hover {
  background: #3d5266;
}

.plain-button,
.ghost-button,
.icon-button,
.danger-button {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel);
}

.ghost-button {
  color: #445151;
  background: #eee7dc;
}

.plain-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: #f7f3ea;
}

.stat-card,
.panel,
.cat-card,
.row-card,
.reminder-card,
.customer-card,
.stock-alert-card,
.dashboard-roster-card,
.room-type-card,
.editable-card,
.family-cat-chip,
.inventory-card,
.inventory-audit-list article,
.appointment-card,
.account-card,
.doc-card,
.version-status-card,
.version-health-card,
.cost-category-card,
.cost-history-row,
.holiday-price-saved-card,
.rate-receipt,
.price-list-section {
  border-color: rgba(130, 112, 82, 0.18);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.row-card,
.cat-card,
.reminder-card,
.customer-card {
  box-shadow: 0 8px 22px rgba(130, 112, 82, 0.06);
}

.dashboard-welcome-strip,
.mascot-hero {
  border-color: rgba(130, 112, 82, 0.14);
  background: #c9bda8;
  box-shadow: 0 18px 38px rgba(130, 112, 82, 0.14);
}

.dashboard-welcome-strip h3,
.dashboard-welcome-strip p,
.mascot-hero h3,
.mascot-hero p {
  color: #ffffff;
}

.dashboard-welcome-strip p,
.mascot-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.dashboard-welcome-strip .live-strip span,
.dashboard-welcome-strip .quick-switch,
.mascot-hero .live-strip span {
  color: #445B71;
  border-color: rgba(255, 253, 247, 0.42);
  background: rgba(255, 253, 247, 0.86);
}

.dashboard-welcome-strip .plain-button,
.mascot-hero .plain-button {
  color: #445B71;
  border-color: rgba(255, 253, 247, 0.52);
  background: rgba(255, 253, 247, 0.92);
}

.customer-metrics span,
.stock-alert-card,
.dashboard-roster-card,
.roster-template-head,
.editable-card,
.cat-profile-box,
.family-cat-chip,
.room-service-row,
.inventory-audit-list article,
.calendar-event-detail,
.day-cell.other-month {
  background: #f7f3ea;
}

.stat-icon.teal,
.badge.teal,
.pill.teal,
.room-chip.occupied {
  color: #23877f;
  background: #ddefe8;
}

.stat-icon.coral,
.badge.coral,
.pill.coral {
  color: #c95436;
  background: #f7ded8;
}

.stat-icon.gold,
.badge.gold,
.pill.gold {
  color: #8a650f;
  background: #f0e9dc;
}

.stat-icon.blue,
.badge.blue {
  color: #445B71;
  background: #ddefe8;
}

.pill {
  color: #445151;
  background: #eee7dc;
  font-weight: 800;
}

.search,
.cat-sort-control select,
input,
select,
textarea {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel-soft);
}

.search {
  box-shadow: 0 10px 24px rgba(130, 112, 82, 0.06);
}

input:focus,
select:focus,
textarea:focus,
.day-cell:hover,
.day-cell.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 214, 244, 0.22);
}

.modal {
  border: 1px solid rgba(130, 112, 82, 0.18);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(42, 47, 42, 0.28);
}

.modal::backdrop {
  background: rgba(29, 42, 43, 0.42);
}

.modal-head {
  border-bottom-color: rgba(130, 112, 82, 0.16);
  background: #fffdf7;
}

.modal-actions {
  border-top-color: rgba(130, 112, 82, 0.16);
  background: #f7f3ea;
}

.empty {
  border-color: rgba(130, 112, 82, 0.2);
  background: rgba(255, 253, 247, 0.58);
}

.progress {
  background: #eee7dc;
}

.progress span {
  background: var(--accent);
}

.day-cell {
  border-color: rgba(130, 112, 82, 0.18);
  background: var(--panel);
}

.day-cell.today .day-number,
.day-cell b,
.cat-profile-summary::before {
  color: #445B71;
  background: var(--accent);
}

.calendar-legend .billing,
.calendar-event-badges .billing,
.calendar-event-detail.billing {
  color: #445B71;
  background: #ddefe8;
}

.calendar-legend .makeup,
.calendar-event-badges .makeup,
.calendar-event-detail.makeup,
.festival-countdown-item.is-near {
  color: #806719;
  background: #f0e9dc;
}

.inventory-category-options label,
.room-chip,
.quick-login-card {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel);
}

.app-toast {
  border-color: rgba(68, 91, 113, 0.2);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 14px 34px rgba(130, 112, 82, 0.18);
}

.app-toast.success {
  border-color: rgba(47, 152, 146, 0.28);
  background: #f1fbf8;
}

.app-toast.error {
  border-color: rgba(201, 84, 54, 0.34);
  background: #fff6f3;
}

/* v0.10.14: closer Roomie mini-program visual hierarchy. */
:root {
  --ink: #141f20;
  --muted: #6f7c7a;
  --line: rgba(201, 189, 168, 0.34);
  --paper: #f4efe6;
  --panel: #fffdf7;
  --panel-soft: #f7f3ea;
  --layer-base: #f4efe6;
  --layer-mid: #fffdf7;
  --layer-raised: #f7f3ea;
  --layer-hero: #c9bda8;
  --accent: #7dd6f4;
  --accent-strong: #445B71;
  --accent-ink: #445B71;
  --mint: #ddefe8;
  --coral: #c95436;
  --gold: #ffd968;
  --shadow: 0 10px 24px rgba(130, 112, 82, 0.09);
  --shadow-raised: 0 16px 38px rgba(130, 112, 82, 0.14);
}

html,
body {
  background: var(--layer-base);
}

body,
button,
input,
select,
textarea {
  font-family: "PingFang SC", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

body {
  color: var(--ink);
  font-weight: 600;
}

button,
select {
  font-weight: 800;
}

.workspace {
  background: var(--layer-base);
}

.screen {
  max-width: 1410px;
  padding: 28px 30px 36px;
}

.sidebar {
  background: #eee9df;
  border-right: 1px solid rgba(130, 112, 82, 0.18);
}

.brand {
  gap: 13px;
  padding: 4px 9px 10px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--layer-hero);
  box-shadow: 0 14px 28px rgba(130, 112, 82, 0.12);
}

.brand h1 {
  color: #172626;
  font-size: 23px;
  font-weight: 900;
}

.brand p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  gap: 8px;
}

.nav-item {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  color: #5c6b69;
  font-size: 15px;
  font-weight: 900;
}

.sidebar .nav-item .icon {
  color: currentColor;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.58);
}

.nav-item.active {
  color: var(--accent-ink);
  background: var(--layer-mid);
  box-shadow: inset 4px 0 0 var(--accent), 0 12px 26px rgba(130, 112, 82, 0.11);
}

.save-indicator {
  border: 0;
  background: rgba(255, 253, 247, 0.76);
  color: var(--muted);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(130, 112, 82, 0.12);
}

.page-head {
  margin-bottom: 20px;
}

.title-icon,
.stat-icon,
.row-icon,
.cat-avatar,
.avatar {
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--mint);
}

.page-title .title-icon .icon,
.panel-head[class*="icon-"] .icon,
.panel-head .icon {
  color: currentColor;
}

.page-title h2 {
  color: #172626;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-title p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-arrange-hint,
.helper-text,
.meta,
.stat-note,
.panel-head p,
.dashboard-roster-card p,
.inventory-main p,
.inventory-meta,
.cat-meta {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-welcome-strip,
.mascot-hero {
  min-height: 112px;
  padding: 18px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--layer-hero);
  box-shadow: var(--shadow-raised);
}

.dashboard-welcome-strip h3,
.mascot-hero h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-welcome-strip p,
.mascot-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-welcome-strip .live-strip span,
.dashboard-welcome-strip .quick-switch,
.dashboard-welcome-strip .plain-button,
.mascot-hero .live-strip span,
.mascot-hero .plain-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink);
  background: rgba(255, 253, 247, 0.9);
  font-weight: 900;
}

.dashboard-welcome-strip .quick-switch select {
  color: var(--accent-ink);
  font-weight: 900;
}

.stat-card,
.panel,
.cat-card,
.row-card,
.cat-row,
.inventory-card,
.reminder-card,
.customer-card,
.appointment-card,
.account-card,
.doc-card,
.version-status-card,
.version-health-card,
.cost-category-card,
.cost-history-row,
.holiday-price-saved-card,
.rate-receipt,
.price-list-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--layer-mid);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 166px;
  padding: 22px;
}

.stat-top {
  margin-bottom: 18px;
}

.stat-icon {
  width: 42px;
  height: 42px;
}

.stat-value {
  color: #172626;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 0;
}

.stat-title {
  color: #172626;
  font-size: 15px;
  font-weight: 900;
}

.stat-note {
  font-size: 13px;
}

.panel {
  padding: 20px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h3 {
  color: #172626;
  font-size: 19px;
  font-weight: 900;
}

.row-card,
.stock-alert-card,
.dashboard-roster-card,
.roster-template-head,
.customer-metrics span,
.editable-card,
.cat-profile-box,
.family-cat-chip,
.room-service-row,
.inventory-audit-list article,
.calendar-event-detail,
.day-cell.other-month,
.cost-history-row {
  border-color: rgba(201, 189, 168, 0.22);
  background: var(--layer-raised);
  box-shadow: none;
}

.row-card.dense,
.reminder-card {
  padding: 15px;
}

.row-title strong,
.cat-card h4,
.inventory-main strong,
.customer-card strong,
.dashboard-roster-card strong {
  color: #172626;
  font-weight: 900;
}

.search {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--layer-mid);
  box-shadow: 0 12px 28px rgba(130, 112, 82, 0.1);
}

.search .icon {
  color: var(--muted);
}

.search input,
.search input::placeholder {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

label,
.wide-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea,
.cat-sort-control select {
  min-height: 42px;
  border-color: rgba(201, 189, 168, 0.34);
  border-radius: 10px;
  color: var(--ink);
  background: var(--layer-raised);
  font-weight: 750;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 214, 244, 0.24);
}

.primary-button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-strong);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(68, 91, 113, 0.18);
}

.primary-button:hover {
  background: #394f62;
}

.plain-button,
.ghost-button,
.icon-button,
.danger-button {
  min-height: 40px;
  border-color: rgba(201, 189, 168, 0.36);
  border-radius: 10px;
  color: #445151;
  background: var(--layer-mid);
  font-weight: 900;
}

.ghost-button {
  background: #eee9df;
}

.icon-button {
  width: 40px;
}

.pill,
.badge,
.user-chip,
.quick-switch,
.live-strip span,
.inventory-group-title {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink);
  background: #eee9df;
  font-size: 12px;
  font-weight: 900;
}

.pill.teal,
.badge.teal,
.room-chip.occupied {
  color: var(--accent-ink);
  background: var(--accent);
}

.pill.gold,
.badge.gold {
  color: #7c5c00;
  background: var(--gold);
}

.pill.coral,
.badge.coral {
  color: var(--coral);
  background: #f7ded8;
}

.stat-icon.teal,
.stat-icon.blue {
  color: var(--accent-ink);
  background: var(--mint);
}

.stat-icon.gold {
  color: #8a650f;
  background: #f0e9dc;
}

.stat-icon.coral {
  color: var(--coral);
  background: #f7ded8;
}

.amount,
.money,
.amount.expense {
  color: var(--coral);
  font-weight: 950;
}

.amount.income {
  color: var(--teal);
}

.modal {
  border: 1px solid rgba(201, 189, 168, 0.32);
  border-radius: 8px;
  background: var(--layer-mid);
  box-shadow: 0 28px 90px rgba(42, 47, 42, 0.28);
}

.modal-head {
  background: var(--layer-mid);
}

.modal-head h2 {
  color: #172626;
  font-weight: 900;
}

.modal-body,
.modal-actions {
  background: var(--layer-raised);
}

.empty {
  border-color: rgba(201, 189, 168, 0.34);
  background: rgba(255, 253, 247, 0.66);
}

.empty strong {
  color: #172626;
  font-weight: 900;
}

.calendar-legend span,
.calendar-event-badges em {
  border-radius: 999px;
  font-weight: 900;
}

.day-cell {
  border-color: rgba(201, 189, 168, 0.3);
  background: var(--layer-mid);
}

.day-cell.today .day-number,
.day-cell b,
.cat-profile-summary::before {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 900;
}

.login-screen {
  background: var(--layer-base);
}

.login-card {
  border-color: rgba(201, 189, 168, 0.32);
  background: var(--layer-mid);
  box-shadow: var(--shadow-raised);
}

.login-brand {
  background: var(--layer-hero);
}

.login-brand h1,
.login-brand p {
  color: #ffffff;
}

.auth-tab.active,
.role-option.active {
  background: var(--accent-strong);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 980px;
  min-height: 680px;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: white;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px;
  background: radial-gradient(circle at 18% 10%, rgba(137, 217, 251, 0.28), transparent 28%), white;
}

.login-card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  overflow: hidden;
  border: 1px solid #e9eef1;
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 70px rgba(42, 74, 91, 0.1);
}

.login-brand {
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 30px;
  background: #f8fcfd;
  border-right: 1px solid var(--line);
}

.login-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 66, 88, 0.12);
}

.login-brand h1 {
  margin: 18px 0 8px;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: 0;
}

.login-brand p,
.login-form p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.login-form h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 650;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.auth-tab {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 600;
}

.auth-tab.active {
  color: var(--accent-ink);
  background: var(--accent);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.remember-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.remember-line input {
  width: 16px;
  min-height: 16px;
}

.auth-notice {
  padding: 10px 12px;
  border: 1px solid rgba(53, 174, 228, 0.28);
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.16);
  font-size: 13px;
  font-weight: 600;
}

.transport-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(221, 119, 112, 0.4);
  border-radius: 8px;
  background: rgba(255, 247, 246, 0.96);
  color: #9a4b46;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sync-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(53, 174, 228, 0.42);
  border-radius: 8px;
  background: rgba(137, 217, 251, 0.11);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sync-box strong {
  color: var(--ink);
  font-size: 14px;
}

.sync-box-wide {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
}

.file-button {
  cursor: pointer;
}

.file-button input {
  display: none;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-option {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.role-option.active {
  border-color: var(--accent-strong);
  background: rgba(137, 217, 251, 0.14);
  box-shadow: inset 0 0 0 1px rgba(53, 174, 228, 0.34);
}

.role-option strong {
  font-size: 15px;
}

.role-option span {
  color: var(--muted);
  font-size: 12px;
}

.quick-login-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  background: rgba(137, 217, 251, 0.1);
}

.quick-login-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.quick-login-panel strong {
  font-size: 14px;
}

.quick-login-panel span {
  color: var(--muted);
  font-size: 12px;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-login-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(53, 174, 228, 0.28);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 650;
}

.quick-login-card span {
  color: var(--ink);
  font-size: 15px;
}

.login-error {
  min-height: 20px;
  color: var(--coral);
  font-size: 13px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
  background: #f7fbfc;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: white;
  background: white;
  box-shadow: 0 8px 18px rgba(42, 74, 91, 0.08);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.1;
}

.brand p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #2c3038;
  background: transparent;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.nav-item.active {
  color: var(--accent-ink);
  background: rgba(146, 220, 247, 0.26);
  box-shadow: inset 0 0 0 1px rgba(71, 184, 228, 0.24);
}

.nav-item .icon {
  width: 19px;
  height: 19px;
}

.nav-item[data-view="dashboard"] .icon,
.title-icon.icon-grid,
.panel-head.icon-grid .icon {
  color: #45aede;
}

.nav-item[data-view="profile"] .icon,
.nav-item[data-view="customers"] .icon,
.nav-item[data-view="accounts"] .icon,
.title-icon.icon-user,
.panel-head.icon-user .icon {
  color: #8f8ad6;
}

.nav-item[data-view="calendar"] .icon,
.nav-item[data-view="roster"] .icon,
.title-icon.icon-calendar,
.panel-head.icon-calendar .icon {
  color: #6f98d4;
}

.nav-item[data-view="rooms"] .icon,
.nav-item[data-view="cats"] .icon,
.title-icon.icon-house,
.title-icon.icon-paw,
.panel-head.icon-house .icon,
.panel-head.icon-paw .icon {
  color: #4aa88f;
}

.nav-item[data-view="reports"] .icon,
.nav-item[data-view="ledger"] .icon,
.nav-item[data-view="costs"] .icon,
.nav-item[data-view="priceList"] .icon,
.title-icon.icon-clipboard,
.title-icon.icon-wallet,
.title-icon.icon-trend,
.panel-head.icon-clipboard .icon,
.panel-head.icon-wallet .icon,
.panel-head.icon-trend .icon {
  color: #c69a42;
}

.nav-item[data-view="docs"] .icon,
.nav-item[data-view="version"] .icon,
.nav-item[data-view="inventory"] .icon,
.title-icon.icon-download,
.title-icon.icon-files,
.title-icon.icon-box,
.panel-head.icon-download .icon,
.panel-head.icon-files .icon,
.panel-head.icon-box .icon {
  color: #7b9ab6;
}

.nav-item[data-view="reminders"] .icon,
.title-icon.icon-bell,
.panel-head.icon-bell .icon {
  color: #dd7770;
}

.nav-item span:last-child {
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.save-indicator {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  color: var(--muted);
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 5000;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  padding: 13px 15px;
  border: 1px solid rgba(53, 174, 228, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(45, 70, 86, 0.16);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  animation: toast-in 180ms ease-out;
}

.app-toast.success {
  border-color: rgba(55, 166, 145, 0.42);
  background: rgba(244, 253, 250, 0.98);
}

.app-toast.error {
  border-color: rgba(221, 119, 112, 0.52);
  background: rgba(255, 247, 246, 0.98);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.workspace {
  min-width: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0) 240px),
    var(--paper);
}

.screen {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 26px 30px;
}

.screen > .panel {
  margin-bottom: 18px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f1f7f9;
}

.title-icon .icon {
  width: 23px;
  height: 23px;
}

.page-title h2 {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.18;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.16);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.quick-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.16);
  white-space: nowrap;
}

.quick-switch span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}

.quick-switch select {
  min-height: 30px;
  width: auto;
  padding: 0 20px 0 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
}

.live-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.16);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-button,
.plain-button,
.ghost-button,
.icon-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-color: rgba(71, 184, 228, 0.7);
  color: var(--accent-ink);
  background: #99def7;
  font-weight: 600;
}

.plain-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 600;
}

.primary-button span,
.plain-button span,
.ghost-button span {
  white-space: nowrap;
}

.ghost-button {
  justify-content: center;
  background: rgba(255, 255, 255, 0.52);
}

.plain-button.danger {
  color: #c95e58;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  padding: 0;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.panel,
.cat-card,
.row-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 148px;
  padding: 17px;
}

.mascot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  min-height: 172px;
  padding: 20px 28px;
  border: 1px solid rgba(71, 184, 228, 0.22);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(146, 220, 247, 0.17), rgba(255, 255, 255, 0.78));
  overflow: hidden;
}

.mascot-hero h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 650;
}

.mascot-hero p {
  margin: 0;
  color: var(--muted);
}

.dashboard-priority-stats {
  margin-top: 2px;
}

.dashboard-welcome-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, auto) 82px;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  margin-bottom: 14px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid rgba(71, 184, 228, 0.25);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(146, 220, 247, 0.18), rgba(255, 255, 255, 0.9));
}

.hero-utility {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.hero-utility .live-strip {
  justify-content: flex-end;
}

.dashboard-welcome-strip h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.dashboard-welcome-strip p {
  margin: 0;
  color: var(--muted);
}

.dashboard-welcome-strip .roo-stage {
  width: 74px;
  height: 82px;
}

.dashboard-focus-grid {
  margin-bottom: 14px;
}

.roo-stage {
  display: grid;
  place-items: end center;
  justify-self: end;
  width: 156px;
  height: 166px;
  background: transparent;
  margin: 0;
}

.roo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(38, 87, 112, 0.1));
}

.roo-head,
.roo-body,
.roo-arm,
.roo-leg,
.roo-tail {
  position: absolute;
  display: block;
}

.roo-head {
  left: 17px;
  top: 18px;
  z-index: 4;
  width: 120px;
  height: 88px;
  border: 1px solid rgba(34, 105, 145, 0.34);
  border-radius: 48% 48% 46% 46%;
  background: linear-gradient(145deg, #86c8ed, #5bacd8);
  box-shadow: 0 9px 18px rgba(52, 102, 128, 0.12);
  animation: rooHeadFloat 3.2s ease-in-out infinite;
}

.roo-head::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 50px;
  width: 34px;
  height: 17px;
  border-radius: 999px;
  background: rgba(53, 148, 191, 0.22);
  box-shadow: 48px 0 0 rgba(53, 148, 191, 0.22);
}

.roo-ear {
  position: absolute;
  top: -30px;
  width: 36px;
  height: 57px;
  border: 1px solid rgba(34, 105, 145, 0.3);
  background: linear-gradient(145deg, #86c8ed, #5bacd8);
  transform-origin: 50% 90%;
}

.roo-ear-left {
  left: 23px;
  border-radius: 72% 28% 62% 28%;
  transform: rotate(-13deg);
}

.roo-ear-right {
  right: 23px;
  border-radius: 28% 72% 28% 62%;
  transform: rotate(13deg);
}

.roo-eye {
  position: absolute;
  top: 37px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #253547;
}

.roo-eye-left {
  left: 35px;
}

.roo-eye-right {
  right: 35px;
}

.roo-nose {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 13px;
  height: 10px;
  border-radius: 50%;
  background: #253547;
  transform: translateX(-50%);
}

.roo-mouth {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 28px;
  height: 13px;
  border-bottom: 2px solid #253547;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
}

.roo-whisker {
  position: absolute;
  top: 51px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #253547;
  opacity: 0.9;
}

.roo-whisker-left {
  left: 10px;
  transform: rotate(8deg);
}

.roo-whisker-right {
  right: 10px;
  transform: rotate(-8deg);
}

.roo-body {
  left: 34px;
  top: 99px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 57px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(180deg, #f0dfb8, #dfc78f);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 0.88;
}

.roo-body b {
  position: relative;
  z-index: 1;
}

.roo-body::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -32px;
  height: 36px;
  border-radius: 6px 6px 9px 9px;
  background: linear-gradient(180deg, #31475d, #263c52);
}

.roo-arm {
  z-index: 1;
  width: 18px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #79bce0, #54a2cd);
}

.roo-arm::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #62add4;
}

.roo-arm-left {
  left: 25px;
  top: 105px;
  transform: rotate(8deg);
  transform-origin: 50% 8%;
}

.roo-arm-right {
  right: 25px;
  top: 105px;
  transform: rotate(-8deg);
  transform-origin: 50% 8%;
}

.roo-leg {
  z-index: 1;
  top: 160px;
  width: 27px;
  height: 31px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #70b9dd, #52a1cb);
}

.roo-leg-left {
  left: 47px;
}

.roo-leg-right {
  right: 47px;
}

.roo-tail {
  display: none;
}

.roo-morning .roo-arm-right {
  z-index: 3;
  right: 23px;
  top: 60px;
  height: 76px;
  transform: rotate(-146deg);
  transform-origin: 50% 94%;
  animation: rooWave 1.35s ease-in-out infinite;
}

.roo-morning .roo-arm-left {
  left: 27px;
  top: 111px;
  height: 42px;
  transform: rotate(48deg);
}

.roo-afternoon {
  height: 158px;
}

.roo-afternoon .roo-head {
  left: 17px;
  top: 30px;
  animation: rooNod 3.4s ease-in-out infinite;
}

.roo-afternoon .roo-body {
  left: 25px;
  top: 111px;
  width: 104px;
  height: 42px;
  border-radius: 999px;
  font-size: 12px;
}

.roo-afternoon .roo-body::after {
  display: none;
}

.roo-afternoon .roo-arm-left,
.roo-afternoon .roo-arm-right {
  z-index: 5;
  top: 88px;
  width: 17px;
  height: 39px;
}

.roo-afternoon .roo-arm-left {
  left: 44px;
  transform: rotate(72deg);
}

.roo-afternoon .roo-arm-right {
  right: 44px;
  transform: rotate(-72deg);
}

.roo-afternoon .roo-leg {
  top: 145px;
  opacity: 0.32;
}

.roo-quiet .roo-head {
  animation: rooHeadFloat 4s ease-in-out infinite;
}

@keyframes rooHeadFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes rooWave {
  0%, 100% { transform: rotate(-140deg); }
  50% { transform: rotate(-158deg); }
}

@keyframes rooNod {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg) translateY(2px); }
}

.urgent-panel {
  margin-bottom: 18px;
}

.stock-alert-panel {
  margin-bottom: 18px;
}

.panel-head-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head-with-action .panel-head {
  margin-bottom: 0;
}

.stock-alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
}

.stock-alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.stock-alert-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.stock-alert-qty {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 86px;
  font-variant-numeric: tabular-nums;
}

.stock-alert-qty strong {
  font-size: 20px;
  line-height: 1;
}

.stock-alert-qty span {
  color: var(--muted);
  font-size: 12px;
}

.roster-dashboard-panel {
  margin-bottom: 18px;
}

.dashboard-roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dashboard-roster-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.dashboard-roster-card p {
  margin: 0;
  color: var(--muted);
}

.roster-template-panel {
  margin-bottom: 18px;
}

.roster-template-table {
  display: grid;
  grid-template-columns: 112px repeat(2, minmax(180px, 1fr));
  overflow: hidden;
  border: 1px solid #d8e1e6;
  border-radius: 8px;
  background: white;
}

.roster-template-table > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-right: 1px solid #d8e1e6;
  border-bottom: 1px solid #d8e1e6;
}

.roster-template-table > div:nth-child(3n) {
  border-right: 0;
}

.roster-template-table > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.roster-template-title {
  grid-column: 1 / -1;
  font-weight: 650;
  background: white;
}

.roster-template-head {
  font-weight: 650;
  background: #fbfdff;
}

.roster-template-head.employee-0 {
  background: #dff8fb;
}

.roster-template-head.employee-1 {
  background: #ffe1fb;
}

.roster-day {
  display: grid;
  gap: 2px;
  font-weight: 600;
}

.roster-day small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.roster-shift {
  display: grid;
  gap: 2px;
  font-weight: 600;
}

.roster-shift small {
  color: rgba(31, 42, 48, 0.64);
  font-size: 11px;
  font-weight: 600;
}

.manual-roster-shift {
  outline: 2px solid rgba(35, 135, 127, 0.18);
  box-shadow: inset 4px 0 0 rgba(35, 135, 127, 0.42);
}

.shift-rest {
  background: #dcffd7;
}

.shift-morning {
  background: #fff1ad;
}

.shift-evening {
  background: #e3d4ff;
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.reminder-card,
.customer-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.reminder-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
}

.reminder-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.reminder-card .row-title {
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.reminder-card .row-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.reminder-card-actions .plain-button,
.reminder-card-actions .primary-button,
.reminder-card-actions .danger-button {
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

.reminder-card-actions .soft-button {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: none;
}

.reminder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.focus-flash {
  animation: focusFlash 1.4s ease;
}

@keyframes focusFlash {
  0% { box-shadow: 0 0 0 0 rgba(54, 184, 229, 0.42); }
  45% { box-shadow: 0 0 0 6px rgba(54, 184, 229, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(54, 184, 229, 0); }
}

.inline-reminder-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 10px;
  margin-top: 12px;
}

.customer-list {
  display: grid;
  gap: 12px;
}

.customer-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-list-head .panel-head {
  margin-bottom: 0;
}

.customer-sort-control {
  min-width: 300px;
  color: var(--muted);
  font-size: 12px;
}

.customer-sort-control select {
  margin-top: 5px;
  color: var(--ink);
}

.customer-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
}

.customer-metrics span {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f2f9fc;
}

.customer-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.customer-metrics strong {
  color: var(--accent-ink);
  font-size: 14px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.stat-icon.teal,
.badge.teal {
  color: #1f8d84;
  background: #e1f6f1;
}

.stat-icon.coral,
.badge.coral {
  color: #d8655f;
  background: #ffe8e4;
}

.stat-icon.gold,
.badge.gold {
  color: #af7d25;
  background: #fff2d7;
}

.stat-icon.blue,
.badge.blue {
  color: #5479b2;
  background: #e9f1ff;
}

.stat-value {
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-title {
  margin-top: 12px;
  font-weight: 600;
}

.stat-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
  margin-bottom: 18px;
}

.grid-one {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.panel {
  padding: 17px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.panel-head .icon {
  color: var(--accent-strong);
}

.stack {
  display: grid;
  gap: 10px;
}

.row-card {
  padding: 13px;
  box-shadow: none;
}

.row-card.dense {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.row-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #45aede;
  background: #e5f6fc;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.row-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(32, 33, 38, 0.08);
  color: var(--ink);
  white-space: nowrap;
}

.pill.teal {
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.28);
}

.pill.coral {
  color: var(--coral);
  background: rgba(220, 93, 77, 0.13);
}

.pill.gold {
  color: #8a650f;
  background: rgba(199, 154, 61, 0.18);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.check-item.done {
  color: var(--teal);
  font-weight: 600;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cat-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  box-shadow: none;
}

.cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-card h4 {
  margin: 0;
  font-size: 18px;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7dc;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-strong);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 12px;
  margin-bottom: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.cat-sort-control {
  display: grid;
  gap: 5px;
  min-width: 230px;
  color: var(--muted);
  font-size: 12px;
}

.cat-sort-control select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.cat-list,
.ledger-list,
.report-list {
  display: grid;
  gap: 10px;
}

.cat-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cat-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #23877f;
  background: #e1f6f1;
}

.cat-main {
  display: grid;
  gap: 8px;
}

.cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.row-actions {
  display: grid;
  gap: 7px;
}

.row-actions button {
  min-width: 82px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(220, 93, 77, 0.3);
  border-radius: 8px;
  color: var(--coral);
  background: rgba(217, 108, 99, 0.08);
  font-weight: 600;
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 12px 16px;
}

.form-grid.one-column {
  grid-template-columns: 1fr;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.editable-list {
  display: grid;
  gap: 12px;
}

.editable-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfe;
}

.editable-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editable-card-head strong {
  font-weight: 600;
}

.profile-panel {
  display: grid;
  gap: 18px;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-preview h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-preview p {
  margin: 0;
  color: var(--muted);
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--accent-ink);
  background: #daf4fe;
  font-weight: 650;
  object-fit: cover;
}

.avatar-large {
  width: 74px;
  height: 74px;
  font-size: 28px;
}

.room-summary {
  display: grid;
  gap: 12px;
}

.room-type-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.room-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #f4f8fb;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.room-chip.occupied {
  color: var(--accent-ink);
  border-color: rgba(53, 174, 228, 0.26);
  background: rgba(137, 217, 251, 0.18);
}

.family-cats-editor {
  display: grid;
  gap: 14px;
}

.cat-profile-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.cat-profile-details {
  display: grid;
  gap: 12px;
}

.cat-profile-details[open] {
  gap: 14px;
}

.cat-profile-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.cat-profile-summary::-webkit-details-marker {
  display: none;
}

.cat-profile-summary::before {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.24);
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.cat-profile-details[open] > .cat-profile-summary::before {
  transform: rotate(90deg);
}

.cat-profile-summary span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.cat-package-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 61, 0.3);
  border-radius: 8px;
  background: rgba(255, 247, 219, 0.42);
}

.cat-package-editor input[readonly] {
  color: var(--ink);
  background: #f1f5f7;
  font-weight: 650;
}

.cat-package-editor input:disabled {
  color: var(--muted);
  background: #f4f6f8;
  cursor: not-allowed;
}

.continuous-monthly-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #806719;
  font-weight: 700;
}

.continuous-monthly-toggle input {
  width: auto;
}

.continuous-monthly-fields[hidden] {
  display: none;
}

.package-calculation-note {
  margin: -2px 0 0;
  color: #806719;
  font-size: 12px;
  line-height: 1.55;
}

.family-cat-chip .package-summary {
  color: #806719;
  font-weight: 650;
}

.family-cat-list {
  display: grid;
  gap: 8px;
}

.family-cat-chip {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  font-size: 12px;
}

.family-cat-chip span {
  color: var(--muted);
}

.room-service-editor {
  display: grid;
  gap: 10px;
}

.room-service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

label,
.wide-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-soft);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(137, 217, 251, 0.26);
}

.toggle-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.toggle-line label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.toggle-line input {
  width: 16px;
  min-height: 16px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.44);
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.amount {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.amount.income {
  color: var(--teal);
}

.amount.expense {
  color: var(--coral);
}

.modal {
  width: min(820px, calc(100vw - 80px));
  max-height: min(780px, calc(100vh - 64px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 80px rgba(32, 33, 38, 0.28);
}

.modal::backdrop {
  background: rgba(26, 27, 31, 0.42);
}

.modal form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  overflow: auto;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 380px;
  gap: 14px;
}

.calendar-panel,
.schedule-panel {
  align-self: start;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-head strong {
  font-size: 19px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 12px;
}

.calendar-legend span,
.calendar-event-badges em {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
}

.calendar-legend .statutory,
.calendar-event-badges .statutory {
  color: #a84242;
  background: #ffe5e5;
}

.calendar-legend .reminder {
  color: #8b5b10;
  background: #ffe5a3;
}

.calendar-legend .billing,
.calendar-event-badges .billing {
  color: #17638e;
  background: #d9f1ff;
  box-shadow: inset 0 0 0 1px rgba(53, 174, 228, 0.2);
}

.calendar-legend .makeup,
.calendar-event-badges .makeup {
  color: #705a22;
  background: #fff1bc;
}

.calendar-legend .festival,
.calendar-event-badges .festival {
  color: #6a538f;
  background: #eee6ff;
}

.calendar-legend .marketing,
.calendar-event-badges .marketing {
  color: #b04d72;
  background: #ffe5ef;
}

.calendar-legend .school,
.calendar-event-badges .school {
  color: #176e69;
  background: #dff7ef;
}

.calendar-event-badges .reminder {
  color: #8b5b10;
  background: #ffe5a3;
  box-shadow: inset 0 0 0 1px rgba(184, 138, 50, 0.18);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.day-cell {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 112px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.day-cell.has-statutory {
  border-color: rgba(217, 108, 99, 0.34);
  background: #fffafa;
}

.day-cell:hover {
  border-color: var(--accent-strong);
}

.day-cell.other-month {
  color: #a9b2ba;
  background: #f8fafc;
}

.day-cell.selected {
  border-color: var(--accent-strong);
  background: rgba(137, 217, 251, 0.16);
  box-shadow: inset 0 0 0 1px rgba(53, 174, 228, 0.24);
}

.day-cell.today .day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: #d8f3fd;
  font-weight: 650;
}

.calendar-event-badges {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.calendar-event-badges em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-badges .more {
  width: max-content;
  color: var(--muted);
  background: #eef2f4;
}

.day-cell b {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.42);
  font-size: 12px;
}

.schedule-panel {
  display: grid;
  gap: 14px;
}

.festival-countdown-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(218, 244, 254, 0.72), #ffffff);
}

.festival-countdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.festival-countdown-head strong {
  color: var(--accent-ink);
  font-size: 15px;
}

.festival-countdown-head span,
.festival-countdown-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.festival-countdown-list {
  display: grid;
  gap: 7px;
}

.festival-countdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 10px;
  border-left: 3px solid #9b80c6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.festival-countdown-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.festival-countdown-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.festival-countdown-item span {
  color: var(--muted);
  font-size: 10px;
}

.festival-countdown-item b {
  flex: 0 0 auto;
  color: var(--accent-ink);
  font-size: 12px;
}

.festival-countdown-item.statutory { border-left-color: #df7770; }
.festival-countdown-item.marketing { border-left-color: #df82a5; }
.festival-countdown-item.school { border-left-color: #56b6aa; }
.festival-countdown-item.billing { border-left-color: #35aee4; }
.festival-countdown-item.is-near { background: #fff8e7; box-shadow: 0 5px 14px rgba(184, 138, 50, 0.08); }

.selected-day-events {
  display: grid;
  gap: 7px;
}

.calendar-event-detail {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-left: 3px solid var(--accent-strong);
  border-radius: 6px;
  background: #f7fbfd;
}

.calendar-event-detail strong {
  font-size: 13px;
}

.calendar-event-detail span {
  color: var(--muted);
  font-size: 11px;
}

.calendar-event-detail.statutory { border-left-color: #df7770; background: #fff4f4; }
.calendar-event-detail.makeup { border-left-color: #d2a43b; background: #fff9e7; }
.calendar-event-detail.festival { border-left-color: #9b80c6; background: #f8f4ff; }
.calendar-event-detail.marketing { border-left-color: #df82a5; background: #fff4f8; }
.calendar-event-detail.school { border-left-color: #56b6aa; background: #f0fbf8; }
.calendar-event-detail.billing { border-left-color: #35aee4; background: #eef9ff; }
.calendar-event-detail.reminder { border-left-color: #d2a43b; background: #fff8e7; }

.appointment-list {
  display: grid;
  gap: 10px;
}

.appointment-card {
  display: grid;
  gap: 8px;
}

.doc-list {
  display: grid;
  gap: 12px;
}

.account-list {
  display: grid;
  gap: 10px;
}

.inventory-list {
  display: grid;
  gap: 12px;
}

.inventory-list-head {
  margin-bottom: 10px;
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 260px)) minmax(280px, 1fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-program-sync-panel {
  padding: 0;
  overflow: hidden;
}

.mini-program-sync-panel details {
  display: grid;
}

.mini-program-sync-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.mini-program-sync-summary::-webkit-details-marker {
  display: none;
}

.mini-program-sync-summary .summary-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.mini-program-sync-summary .summary-title .icon {
  width: 18px;
  height: 18px;
}

.mini-program-sync-summary .meta {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.mini-program-sync-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px dashed rgba(130, 112, 82, 0.18);
}

.mini-program-sync-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.mini-program-sync-guide {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px dashed rgba(67, 95, 120, 0.24);
  border-radius: 8px;
  background: rgba(244, 239, 231, 0.68);
  color: var(--muted);
  line-height: 1.55;
}

.mini-program-sync-guide strong {
  color: var(--ink);
}

.mini-program-sync-form {
  display: grid;
  gap: 10px;
}

.mini-program-sync-form textarea {
  min-height: 96px;
  resize: vertical;
}

.mini-program-sync-history {
  display: grid;
  gap: 8px;
}

.mini-program-sync-history article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.mini-program-sync-history span {
  color: var(--muted);
}

.inventory-search-control {
  display: grid;
  gap: 6px;
}

.inventory-search-box {
  min-height: 40px;
}

.inventory-group {
  display: grid;
  gap: 10px;
}

.inventory-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(137, 217, 251, 0.18);
  font-weight: 650;
}

.inventory-group-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.inventory-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.inventory-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.inventory-main p {
  margin: 0;
  color: var(--muted);
}

.inventory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 12px;
}

.inventory-qty {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.inventory-qty strong {
  font-size: 22px;
  line-height: 1;
}

.inventory-qty span {
  color: var(--muted);
  font-size: 12px;
}

.inventory-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.inventory-category-options,
.inventory-specification-editor,
.inventory-unit-editor {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.inventory-category-options legend,
.inventory-specification-editor legend,
.inventory-unit-editor legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-category-options {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-category-options legend { flex-basis: 100%; }
.inventory-category-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fcfe;
  color: var(--ink);
}

.inventory-category-options input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.inventory-specification-editor,
.inventory-unit-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(120px, 0.36fr);
  gap: 8px;
}

.inventory-unit-editor {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.36fr);
}

.inventory-specification-editor legend,
.inventory-unit-editor legend {
  grid-column: 1 / -1;
  width: max-content;
}

.inventory-custom-unit-input[hidden] {
  display: none;
}

.inventory-audit-list {
  display: grid;
  gap: 8px;
}

.inventory-audit-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfd;
}

.inventory-audit-list span,
.inventory-audit-list small { color: var(--muted); }
.inventory-audit-list small { grid-column: 1 / -1; }

.cost-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cost-toolbar .panel-head {
  margin-bottom: 0;
}

.cost-toolbar label {
  min-width: 220px;
}

.cost-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cost-category-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fcff;
}

.cost-category-grid span,
.cost-category-grid small {
  color: var(--muted);
}

.cost-category-grid strong {
  color: #174a68;
  font-size: 22px;
}

.cost-export-actions {
  margin-top: 16px;
}

.purchase-cost-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(214, 168, 61, 0.34);
  border-radius: 8px;
  background: rgba(255, 247, 219, 0.36);
}

.purchase-cost-fields[hidden] {
  display: none;
}

.purchase-cost-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-cost-head span,
.purchase-cost-history small {
  color: var(--muted);
}

.purchase-inventory-sync-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(77, 191, 156, 0.26);
  border-radius: 8px;
  background: rgba(239, 255, 248, 0.68);
}

.purchase-inventory-categories {
  background: rgba(255, 255, 255, 0.7);
}

.purchase-flavor-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(72, 184, 228, 0.22);
  border-radius: 8px;
  background: rgba(244, 252, 255, 0.74);
}

.purchase-flavor-section small {
  color: var(--muted);
}

.purchase-flavor-list {
  display: grid;
  gap: 8px;
}

.purchase-flavor-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(110px, 0.8fr)) 42px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
}

.purchase-cost-summary {
  background: rgba(255, 255, 255, 0.66);
}

.purchase-cost-history {
  margin-top: 6px;
  color: #705c1c;
  font-size: 12px;
  line-height: 1.5;
}

.cost-history-list {
  display: grid;
  gap: 10px;
}

.cost-history-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.cost-history-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
}

.cost-history-actions > strong {
  grid-column: 1 / -1;
  justify-self: end;
  color: #b04e48;
  font-size: 20px;
}

.version-status-grid,
.version-update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.version-status-card,
.version-health-card,
.version-update-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.version-status-card strong,
.version-health-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.version-status-card span,
.version-health-card span,
.version-update-card span,
.version-status-card small,
.version-health-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.version-health-card {
  grid-template-columns: 48px minmax(0, 1fr);
  border-color: rgba(77, 191, 156, 0.26);
  background: #f4fffb;
}

.version-health-card.is-warning {
  border-color: rgba(238, 133, 92, 0.35);
  background: #fff8f4;
}

.version-update-card {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.auto-update-note {
  display: grid;
  gap: 7px;
  margin: 4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(72, 184, 228, 0.28);
  border-radius: 8px;
  background: #f2fbff;
  color: var(--muted);
}

.auto-update-note strong {
  color: var(--ink);
}

.version-progress {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcecf4;
}

.version-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #47b8e4, #4dbf9c);
  transition: width 0.32s ease;
}

.version-log-list,
.permission-section-list,
.permission-item-list {
  display: grid;
  gap: 10px;
}

.version-log-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.version-log-list span,
.version-log-list small {
  color: var(--muted);
}

.permission-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}

.permission-legend span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fcff;
}

.permission-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.permission-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.permission-section summary::-webkit-details-marker {
  display: none;
}

.permission-section summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.permission-section .icon {
  width: 18px;
  height: 18px;
  color: #7b9ab6;
}

.permission-compare {
  color: var(--muted);
  font-size: 13px;
}

.permission-compare b {
  margin-left: 10px;
  color: var(--ink);
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.permission-row div:first-child {
  display: grid;
  gap: 4px;
}

.permission-row span {
  color: var(--muted);
}

.permission-row-main {
  background: #f4fbff;
}

.permission-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.version-status-card button,
.version-update-card button,
.permission-row button {
  white-space: nowrap;
}

.cost-print-report {
  max-width: 820px;
  margin: 0 auto;
  font-family: "Hiragino Sans", "PingFang SC", sans-serif;
}

.cost-print-report header {
  padding-bottom: 18px;
  border-bottom: 2px solid #82ccef;
}

.cost-print-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.cost-print-totals div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  background: #edf8fe;
}

.cost-print-totals span,
.cost-print-report footer {
  color: #617986;
}

.cost-print-totals strong {
  color: #123d60;
  font-size: 24px;
}

.cost-print-report table {
  width: 100%;
  border-collapse: collapse;
}

.cost-print-report th,
.cost-print-report td {
  padding: 10px;
  border-bottom: 1px solid #d9e8ef;
  text-align: left;
}

.cost-print-report th:last-child,
.cost-print-report td:last-child {
  text-align: right;
}

.cost-print-notes p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed #d9e8ef;
}

.cost-print-report footer {
  margin-top: 24px;
  text-align: center;
}

.account-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-card > div {
  min-width: 0;
}

.doc-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.doc-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.doc-head .row-title {
  flex-wrap: wrap;
}

.doc-preview {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.doc-preview pre,
.print-payload pre {
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.62;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.doc-audit {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  font-size: 12px;
}

.doc-audit strong {
  color: var(--ink);
}

.doc-audit span {
  color: var(--muted);
}

.staff-admin-tools {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.staff-admin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.staff-admin-tools label {
  min-width: 0;
}

.staff-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.staff-profile-form,
.allowance-editor,
.payroll-history {
  display: grid;
  gap: 12px;
}

.allowance-editor {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfe;
}

.allowance-editor h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.salary-field {
  border-color: rgba(217, 166, 56, 0.32);
}

.id-card-preview {
  width: min(360px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}

.id-card-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.payroll-panel {
  position: sticky;
  top: 16px;
}

.payroll-record {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.payroll-record .actions {
  justify-content: flex-start;
}

.staff-profile-grid [readonly] {
  background: #f3f7f9;
  color: var(--muted);
}

.full-time-pay[hidden],
.part-time-pay[hidden] {
  display: none;
}

.empty.compact {
  min-height: 120px;
}

.returning-customer-panel,
.past-stay-editor,
.appointment-cat-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  background: rgba(218, 244, 254, 0.2);
}

.customer-cat-picker-head,
.customer-card-footer,
.receipt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-cat-picker-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.customer-cat-option {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.customer-cat-option:hover,
.customer-cat-option:has(input:checked) {
  border-color: #6fc7ec;
  background: #effaff;
  box-shadow: 0 0 0 2px rgba(111, 199, 236, 0.12);
}

.customer-cat-option input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
}

.customer-cat-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-cat-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cat-option small {
  overflow: hidden;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.rate-split-toggle {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 174, 228, 0.22);
  border-radius: 8px;
  background: rgba(247, 252, 255, 0.85);
}

.rate-split-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font-weight: 750;
}

.rate-split-toggle input,
.package-room-types input {
  width: auto;
}

.rate-split-toggle small {
  color: var(--muted);
  line-height: 1.5;
}

.rate-segment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(53, 174, 228, 0.22);
  border-radius: 8px;
  background: rgba(218, 244, 254, 0.22);
}

.rate-segment-panel[hidden] {
  display: none;
}

.rate-segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rate-segment-head > div {
  display: grid;
  gap: 4px;
}

.rate-segment-head strong {
  color: var(--accent-ink);
  font-size: 15px;
}

.rate-segment-head span {
  color: var(--muted);
  font-size: 12px;
}

.rate-segment-list {
  display: grid;
  gap: 9px;
}

.quote-room-segment-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px auto;
  align-items: end;
  gap: 8px;
}

.quote-room-segment-row .icon-button {
  margin-bottom: 1px;
}

.past-stay-date-grid,
.past-stay-date-list {
  display: grid;
  gap: 9px;
}

.past-stay-date-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.past-stay-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.past-stay-date-row .icon-button {
  margin-bottom: 1px;
  color: var(--coral);
}

.add-past-stay-button {
  width: fit-content;
}

.pricing-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(218, 244, 254, 0.3);
}

.pricing-summary span,
.pricing-summary small {
  color: var(--muted);
}

.pricing-segment-list {
  display: grid;
  gap: 2px;
}

.price-error {
  color: var(--coral) !important;
}

.rate-calculator-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.price-list-layout,
.price-list-section {
  display: grid;
  gap: 14px;
}

.holiday-price-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.holiday-price-form label:last-child {
  grid-column: auto;
}

.holiday-price-rules {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  background: rgba(247, 252, 255, 0.86);
}

.holiday-price-rule-head,
.holiday-price-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.holiday-price-rule-head strong {
  color: var(--accent-ink);
}

.holiday-price-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(118px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.holiday-price-row > div:first-child {
  display: grid;
  gap: 3px;
  align-self: center;
}

.holiday-price-row strong {
  color: var(--ink);
}

.holiday-price-row span,
.holiday-price-saved-card span {
  color: var(--muted);
  font-size: 12px;
}

.holiday-price-saved-list {
  display: grid;
  gap: 9px;
}

.holiday-price-saved-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.holiday-price-saved-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.holiday-price-saved-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-poster {
  --poster-accent: #92d7f6;
  --poster-title: #55aede;
  --poster-line: #ffe000;
  --poster-panel: #ffffcf;
  --poster-check-a: #d6f0fb;
  --poster-check-b: #f4fbff;
  box-sizing: border-box;
  width: min(100%, 1080px);
  aspect-ratio: 2048 / 1448;
  margin: 0 auto;
  padding: 18px;
  overflow: hidden;
  background: conic-gradient(var(--poster-check-a) 25%, var(--poster-check-b) 0 50%, var(--poster-check-a) 0 75%, var(--poster-check-b) 0) 0 0 / 58px 58px;
  color: #2d3b43;
  font-family: "FZCuSong-B09S", "Songti SC", "SimSun", serif;
}

.price-theme-mint {
  --poster-accent: #9be6dc;
  --poster-title: #5dbfb2;
  --poster-line: #ffe47a;
  --poster-panel: #fffbd6;
  --poster-check-a: #d9f6f1;
  --poster-check-b: #f8fffd;
}

.price-theme-coral {
  --poster-accent: #ffc7bc;
  --poster-title: #ff8d7d;
  --poster-line: #ffd970;
  --poster-panel: #fff8d8;
  --poster-check-a: #ffe8e3;
  --poster-check-b: #fff9f7;
}

.price-theme-green {
  --poster-accent: #aee2c4;
  --poster-title: #72bf8d;
  --poster-line: #ffdd52;
  --poster-panel: #fffbd2;
  --poster-check-a: #e2f7e9;
  --poster-check-b: #fbfffc;
}

.price-theme-lemon {
  --poster-accent: #aee0f2;
  --poster-title: #64b5dc;
  --poster-line: #ffe000;
  --poster-panel: #fffecf;
  --poster-check-a: #dff3fb;
  --poster-check-b: #fbfdff;
}

.price-theme-teal {
  --poster-accent: #91dedc;
  --poster-title: #4eb9bb;
  --poster-line: #f5dd66;
  --poster-panel: #fffbd5;
  --poster-check-a: #d8f4f3;
  --poster-check-b: #f8ffff;
}

.price-theme-moon {
  --poster-accent: #c9d6ff;
  --poster-title: #8499dc;
  --poster-line: #ffe086;
  --poster-panel: #fff9d8;
  --poster-check-a: #e8edff;
  --poster-check-b: #fcfdff;
}

.price-poster-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  box-sizing: border-box;
  height: 100%;
  padding: 58px 28px 24px;
  border-radius: 30px;
  background: var(--poster-accent);
}

.price-poster-title {
  position: absolute;
  left: 50%;
  top: 14px;
  display: grid;
  min-width: 220px;
  padding: 9px 40px;
  border-radius: 999px;
  color: white;
  background: var(--poster-title);
  place-items: center;
  transform: translateX(-50%);
}

.price-poster-title strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

.price-poster-title span {
  font-size: 16px;
  line-height: 1.1;
}

.price-poster-card {
  display: grid;
  grid-template-rows: auto repeat(6, minmax(0, 1fr)) auto;
  min-height: 0;
  padding: 24px 36px 20px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--poster-panel);
}

.price-poster-head,
.price-poster-row {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.1fr 1.05fr;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.price-poster-head {
  padding: 0 0 7px;
  border-bottom: 3px solid var(--poster-line);
  color: #3789c8;
  font-size: 18px;
  font-weight: 700;
}

.price-poster-head span,
.price-room-name span,
.price-money span {
  display: block;
  font-family: Georgia, serif;
}

.price-poster-row {
  min-height: 0;
  padding: 4px 0;
  border-bottom: 3px solid var(--poster-line);
  font-size: 18px;
}

.price-room-name strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
}

.price-room-name span {
  font-size: 17px;
  font-weight: 700;
}

.price-money strong {
  font-size: 22px;
}

.price-money small {
  display: block;
  color: #4d9fd4;
  font-size: 13px;
}

.price-extra {
  font-size: 18px;
  font-weight: 650;
}

.price-capacity {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.price-cat-mark {
  position: relative;
  width: 22px;
  height: 20px;
  border-radius: 50% 50% 42% 42%;
  background: #65b8ee;
}

.price-cat-mark::before,
.price-cat-mark::after {
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  background: #65b8ee;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  content: "";
}

.price-cat-mark::before {
  left: 1px;
}

.price-cat-mark::after {
  right: 1px;
}

.price-poster-notes {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 24px 0;
}

.price-poster-notes strong {
  font-size: 20px;
}

.price-poster-notes ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.38;
}

.price-poster-notes li::marker {
  color: #62b8ef;
}

.price-poster-date {
  grid-column: 2;
  margin: 2px 0 0 !important;
  color: #56616a;
  font-size: 15px;
}

.price-poster footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin-top: 12px;
  color: #31424b;
}

.price-poster footer span {
  font: 700 24px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.price-poster footer b {
  font-size: 13px;
  font-weight: 650;
}

.cat-profile-box {
  position: relative;
}

.customer-cat-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.rate-receipt {
  width: min(100%, 590px);
  justify-self: center;
  display: grid;
  gap: 12px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #c9dded;
  border-radius: 22px;
  color: #0e3555;
  background: #fff;
  box-shadow: 0 18px 52px rgba(41, 105, 147, 0.12);
}

.rate-receipt.quote-poster-preview {
  width: min(100%, 760px);
  padding: 0;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quote-poster-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(91, 70, 56, 0.1);
}

.quote-poster-preview-loading {
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid #e7d8c3;
  border-radius: 24px;
  color: #8b7868;
  background: #fffdf9;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 16px;
}

.quote-receipt-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 112px;
  align-items: center;
  min-height: 138px;
}

.quote-mark {
  align-self: start;
  padding-top: 20px;
  color: #63c8f5;
  font-family: Georgia, serif;
  font-size: 66px;
  font-weight: 900;
  line-height: 0.8;
}

.quote-head-copy {
  display: grid;
  gap: 8px;
}

.quote-head-copy strong {
  color: #103958;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quote-head-copy b {
  color: #63bdf0;
  font-size: 15px;
}

.quote-head-copy span {
  margin-top: 6px;
  color: #4d6880;
  font-size: 12px;
}

.quote-receipt-hero img {
  align-self: end;
  width: 104px;
  height: 130px;
  object-fit: contain;
  background: transparent;
}

.quote-info-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 18px;
  border: 1px solid #b7dafa;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(49, 132, 185, 0.08);
}

.quote-info-grid::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  border-left: 1px dashed #c6def1;
}

.quote-info-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 6px 12px;
  border-bottom: 1px solid #d7e5ef;
}

.quote-info-item:nth-child(5),
.quote-info-item:nth-child(6) {
  border-bottom: 0;
}

.quote-info-icon,
.quote-gift-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2782c5;
  background: #eaf5ff;
}

.quote-info-icon .icon,
.quote-gift-icon .icon {
  width: 23px;
  height: 23px;
}

.quote-info-item > div:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quote-info-item span {
  color: #527087;
  font-size: 12px;
}

.quote-info-item strong {
  overflow-wrap: anywhere;
  color: #0b3558;
  font-size: 16px;
}

.quote-info-item small {
  color: #5f91af;
  font-size: 10px;
}

.quote-room-breakdown {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #a8d8f4;
  border-radius: 16px;
  background: #f4fbff;
}

.quote-room-breakdown strong {
  color: #0b6995;
  font-size: 15px;
}

.quote-room-breakdown > div {
  display: grid;
  gap: 6px;
}

.quote-room-breakdown span {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  color: #42677d;
  font-size: 12px;
}

.quote-room-breakdown b {
  color: #0b6995;
}

.quote-room-breakdown em {
  font-style: normal;
  overflow-wrap: anywhere;
}

.quote-total-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px 1fr;
  align-items: center;
  min-height: 102px;
  padding: 14px 30px;
  overflow: hidden;
  border: 1px solid #72baf3;
  border-radius: 20px;
  background: linear-gradient(100deg, #dceeff, #bcdcff);
}

.quote-total-panel > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.quote-total-panel span {
  color: #416079;
  font-size: 13px;
}

.quote-total-panel strong {
  color: #0b3558;
  font-size: 38px;
  line-height: 1.1;
}

.quote-total-panel i {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 50px;
  background: #78b9ec;
}

.quote-total-panel small {
  position: relative;
  z-index: 1;
  padding-left: 24px;
  color: #2b5875;
  font-size: 13px;
}

.quote-total-panel > b {
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 250px;
  height: 130px;
  border-radius: 50% 0 0;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-12deg);
}

.quote-gift-panel {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px 22px;
  border: 1px solid #e6ceb0;
  border-radius: 15px;
  background: #fffaf4;
}

.quote-gift-panel .quote-gift-icon {
  color: #8b6327;
  background: #f4e7d1;
}

.quote-gift-panel > div:last-child {
  display: grid;
  gap: 4px;
}

.quote-gift-panel strong {
  color: #67471b;
  font-size: 15px;
}

.quote-gift-panel span {
  color: #3f4f59;
  font-size: 12px;
}

.quote-receipt-footer {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  color: #4f6c81;
  text-align: center;
}

.quote-receipt-footer > div {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  color: #58b7ed;
}

.quote-receipt-footer > div span {
  border-top: 1px dashed #8dbbd9;
}

.quote-receipt-footer p {
  margin: 0;
  font-size: 10px;
}

.customer-more-cats {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.customer-more-cats summary {
  padding: 11px 13px;
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 700;
}

.customer-more-cats[open] summary {
  border-bottom: 1px solid var(--line);
}

.customer-more-cats .family-cat-list {
  padding: 10px;
}

.sync-note {
  margin: -4px 0 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  color: var(--accent-ink);
  background: rgba(218, 244, 254, 0.34);
}

.report-stay-picker,
.report-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.report-cat-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(71, 184, 228, 0.28);
  border-radius: 10px;
  background: rgba(226, 247, 255, 0.5);
}

.report-cat-summary > div:not(.report-cat-avatar) {
  display: grid;
  gap: 3px;
}

.report-cat-summary span,
.report-cat-summary small {
  color: var(--muted);
}

.report-cat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: #d9f3ff;
}

.cat-daily-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
}

.report-row-main {
  display: grid;
  gap: 6px;
}

.report-row-heading {
  display: grid;
  gap: 4px;
}

.report-room-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-condition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-daily-report-row .pill {
  font-size: 12px;
  line-height: 1.2;
}

.cat-daily-report-row .check-grid {
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 4px 8px;
}

.cat-daily-report-row .check-item {
  font-size: 12px;
}

.cat-daily-report-row p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.report-row-actions {
  gap: 7px;
}

.report-row-actions button {
  min-width: 118px;
}

.receipt-notice {
  color: #707980;
  font-size: 12px;
  line-height: 1.65;
}

.extension-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(214, 168, 61, 0.42);
  border-radius: 8px;
  color: #806719;
  background: #fff6d8;
  font-weight: 700;
}

.early-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(53, 174, 228, 0.38);
  border-radius: 8px;
  color: #167ba9;
  background: #e8f7ff;
  font-weight: 700;
}

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(35, 135, 127, 0.26);
  border-radius: 8px;
  color: #207a73;
  background: #ecfaf7;
  font-weight: 700;
}

.room-checkout-button {
  width: fit-content;
  min-height: 28px;
  margin-top: 4px;
  padding: 0 8px;
  font-size: 12px;
}

.checkout-alert {
  padding: 12px 14px;
  border: 1px solid rgba(53, 174, 228, 0.28);
  border-radius: 8px;
  color: #174a68;
  background: #eef8fd;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 4px 0 0 rgba(53, 174, 228, 0.52);
}

.checkout-alert.extended {
  color: #806719;
  background: #fff6d8;
  font-weight: 650;
}

.boarding-fee-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 166, 145, 0.24);
  border-radius: 8px;
  color: #23635d;
  background: rgba(236, 250, 247, 0.72);
  font-size: 12px;
}

.boarding-fee-detail strong {
  color: #154f69;
}

.boarding-benefit-panel,
.boarding-extra-fees-panel {
  padding: 10px 12px;
  border: 1px solid rgba(53, 174, 228, 0.22);
  border-radius: 8px;
  background: rgba(248, 252, 253, 0.74);
}

.boarding-benefit-panel summary,
.boarding-extra-fees-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 760;
}

.boarding-benefit-panel summary span,
.boarding-extra-fees-panel summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.benefit-form-grid,
.boarding-extra-fee-list {
  margin-top: 10px;
}

.boarding-extra-fee-list {
  display: grid;
  gap: 8px;
}

.boarding-extra-fee-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(130px, 0.7fr) auto;
  align-items: end;
  gap: 8px;
}

.add-extra-fee-button {
  width: fit-content;
  margin-top: 10px;
}

.compact-modal {
  width: min(720px, calc(100vw - 40px));
}

.room-chip {
  min-width: 190px;
  display: grid;
  align-items: start;
  gap: 2px;
  padding: 9px 11px;
}

.room-chip span,
.room-chip small {
  color: var(--muted);
  font-weight: 500;
}

.room-chip.available {
  color: #23877f;
  border-color: rgba(35, 135, 127, 0.24);
  background: #f0fbf8;
}

.room-chip.reserved {
  color: #806719;
  border-color: rgba(214, 168, 61, 0.42);
  background: #fff9e8;
}

.room-reservation-list {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px dashed rgba(214, 168, 61, 0.45);
}

.room-reservation-list small {
  color: #806719;
}

.room-reservation-list b {
  color: #b48310;
}

.dashboard-arrange-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-arrange-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 12px;
}

.dashboard-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-module {
  position: relative;
  min-width: 0;
  touch-action: pan-y;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.dashboard-module.size-wide { grid-column: span 12; }
.dashboard-module.size-half { grid-column: span 6; }
.dashboard-module > section,
.dashboard-module > .panel,
.dashboard-module > .stat-grid { height: 100%; margin: 0; }

.dashboard-module-close {
  position: absolute;
  z-index: 12;
  top: -9px;
  right: -9px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #ec6d65;
  box-shadow: 0 3px 10px rgba(32, 55, 70, 0.2);
  font-size: 20px;
  line-height: 1;
}

.dashboard-module-library {
  position: fixed;
  z-index: 80;
  top: 92px;
  right: 18px;
  width: 230px;
  max-height: calc(100vh - 112px);
  padding: 14px;
  border: 1px solid rgba(53, 174, 228, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(30, 72, 92, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 30px));
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.dashboard-module-library-head,
.dashboard-module-library-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-module-library-head > div {
  align-items: flex-start;
  flex-direction: column;
}

.dashboard-module-library-head small,
.dashboard-module-library-list p { color: var(--muted); font-size: 11px; }
.dashboard-module-library-list { display: grid; gap: 8px; margin-top: 12px; overflow: auto; }
.dashboard-module-library-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f4fbfe;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-arranging .dashboard-module {
  cursor: grab;
  animation: dashboardWiggle 180ms ease-in-out infinite alternate;
}

.dashboard-arranging .dashboard-module:nth-child(even) { animation-direction: alternate-reverse; }
.dashboard-arranging .dashboard-module-close { display: grid; }
.dashboard-arranging .dashboard-module-library { opacity: 1; pointer-events: auto; transform: translateX(0); }
.dashboard-arranging #startDashboardArrange { visibility: hidden; }

@keyframes dashboardWiggle {
  from { transform: rotate(-0.22deg) translateY(0); }
  to { transform: rotate(0.22deg) translateY(-1px); }
}

.dashboard-module.is-dragging {
  z-index: 20;
  opacity: 0.72;
  transform: scale(0.985);
  animation: none;
  filter: drop-shadow(0 12px 20px rgba(28, 75, 99, 0.18));
}

.dashboard-appointment-tail,
.dashboard-appointment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 6px;
}

.package-plan-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 61, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

[data-package-plan-list] {
  display: grid;
  gap: 10px;
}

.package-room-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.package-room-types legend { color: var(--muted); font-size: 12px; font-weight: 650; }
.package-room-types label { display: flex; align-items: center; gap: 6px; width: auto; }
.package-room-types input { width: auto; }
.add-package-plan-button { width: fit-content; }

.package-gift-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #765912;
  background: #fff7dc;
}

.package-gift-note small { color: #8c7d54; }

.boarding-history-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.24);
  border-radius: 8px;
  background: rgba(218, 244, 254, 0.2);
}

.boarding-history-list { display: grid; gap: 8px; }
.boarding-history-more {
  padding: 8px 10px 10px;
  border: 1px dashed rgba(78, 103, 127, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.boarding-history-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 750;
}

.boarding-history-more summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.boarding-history-extra {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.boarding-history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.document-category-filter { min-width: 220px; }
.document-meta-editor {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.document-meta-editor summary { cursor: pointer; color: var(--accent-ink); font-weight: 700; }
.document-meta-editor form { margin-top: 10px; }

.boarding-contract-generator {
  overflow: hidden;
}

.contract-generator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.contract-generator-stack {
  grid-template-columns: 1fr;
}

.contract-generator-form {
  display: grid;
  gap: 14px;
}

.contract-generator-form .actions {
  flex-wrap: wrap;
}

.contract-generator-form .actions button {
  min-width: 138px;
  justify-content: center;
  white-space: nowrap;
}

.contract-cat-rows {
  display: grid;
  gap: 10px;
}

.contract-cat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.22);
  border-radius: 8px;
  background: #f8fcff;
}

.contract-split-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(53, 174, 228, 0.22);
  border-radius: 8px;
  background: #f8fcff;
}

.contract-split-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.contract-split-toggle label input {
  flex: 0 0 auto;
}

.contract-split-toggle label span {
  white-space: nowrap;
}

.contract-split-toggle small {
  grid-column: 1 / -1;
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.contract-room-segment-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(53, 174, 228, 0.34);
  border-radius: 8px;
  background: rgba(218, 244, 254, 0.26);
}

.contract-room-segment-head,
.contract-room-segment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.contract-room-segment-head {
  align-items: center;
}

.contract-room-segment-list {
  display: grid;
  gap: 8px;
}

.contract-room-segment-row {
  grid-template-columns: minmax(160px, 1fr) minmax(96px, 0.5fr) auto;
}

.contract-appendix-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.contract-appendix-toggle small,
.contract-preview-toolbar span {
  color: var(--muted);
}

.contract-appendix-box {
  display: grid;
  gap: 8px;
}

.contract-seal-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(221, 119, 112, 0.24);
  border-radius: 8px;
  background: #fffafa;
}

.contract-seal-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contract-seal-controls small {
  color: var(--muted);
}

.contract-seal-drag-hint {
  border-color: rgba(46, 194, 243, 0.28);
  background: #f6fcff;
}

.contract-preview-shell {
  min-width: 0;
  margin-top: 4px;
}

.contract-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.boarding-contract-paper {
  max-height: none;
  overflow: auto;
  padding: 24px;
  border: 1px solid #d7e7ef;
  border-radius: 8px;
  background: #eef7fc;
  color: #000;
  outline: none;
}

.contract-risk-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(238, 133, 92, 0.24);
  border-radius: 8px;
  background: #fffaf6;
}

.contract-risk-fields-title {
  font-weight: 800;
  color: #8c4a1f;
}

.contract-risk-note {
  min-height: 58px;
  margin: 6px 0 10px;
  padding: 10px 12px;
}

.contract-preview-modal[hidden] {
  display: none;
}

.contract-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 36, 48, 0.42);
}

.contract-preview-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, calc(100vw - 36px));
  height: min(88vh, 980px);
  overflow: hidden;
  border: 1px solid #cae6f4;
  border-radius: 8px;
  background: #eef7fc;
  box-shadow: 0 22px 70px rgba(8, 35, 54, 0.24);
}

.contract-preview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #d7e7ef;
  background: #fff;
}

.contract-modal-paper {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.boarding-contract-paper:focus {
  border-color: #83d7f5;
  box-shadow: 0 0 0 3px rgba(80, 190, 240, 0.16);
}

.contract-page {
  position: relative;
  width: min(760px, 100%);
  min-height: 0;
  margin: 0 auto 14px;
  padding: 42px 54px 34px;
  box-sizing: border-box;
  border: 1px solid #e1e1e1;
  background: #fff;
  box-shadow: 0 16px 34px rgba(28, 74, 98, 0.12);
  font-family: "方正恒仿宋", "FZFSK--GBK1-0", "FangSong", "STFangsong", "Songti SC", "SimSun", serif;
  font-size: 12px;
  line-height: 1.56;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.contract-dense-page {
  padding-top: 34px;
  padding-bottom: 30px;
  font-size: 12px;
  line-height: 1.56;
}

.contract-micro-page {
  font-size: 12px;
  line-height: 1.5;
}

.contract-page-en {
  font-family: "Times New Roman", "Georgia", "Songti SC", "SimSun", serif;
  line-height: 1.5;
}

.contract-page-en p {
  margin-bottom: 6px;
}

.contract-page-en .contract-section-title {
  line-height: 1.35;
}

.contract-head-en h2 {
  font-family: "Times New Roman", "Georgia", "Songti SC", "SimSun", serif;
}

.contract-final-page {
  min-height: 0;
}

.contract-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  margin-bottom: 28px;
}

.contract-head h2 {
  margin: 0;
  color: #000;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.35;
}

.contract-head div {
  position: static;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 4px;
  max-width: 62%;
  white-space: normal;
  text-align: right;
  line-height: 1.45;
  font-size: 12px;
}

.contract-page p {
  margin: 0 0 7px;
  color: #000;
}

.contract-dense-page p {
  margin-bottom: 5px;
}

.contract-micro-page p {
  margin-bottom: 5px;
}

.contract-subhead {
  font-weight: 500;
}

.contract-party-block {
  display: grid;
  gap: 8px;
  margin: 0 0 36px;
}

.contract-party-block p {
  margin: 0;
}

.contract-page mark {
  padding: 0 2px;
  background: #fff176;
  color: #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.contract-blank,
.contract-edit-line {
  display: inline-block;
  min-width: 120px;
  max-width: 260px;
  min-height: 18px;
  border-bottom: 1px solid #333;
  vertical-align: baseline;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.contract-edit-line {
  min-width: 132px;
  max-width: 260px;
}

.contract-blank.wide {
  min-width: 210px;
  max-width: 360px;
}

.contract-blank.short {
  min-width: 64px;
  text-align: center;
}

.contract-blank.tiny {
  min-width: 36px;
}

.contract-blank.hospital {
  min-width: 180px;
}

.contract-seal {
  position: absolute;
  top: 126px;
  right: 180px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  opacity: 0.92;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.contract-seal-final {
  position: absolute;
  right: 138px;
  top: 118px;
  width: 112px;
  height: 112px;
  object-fit: contain;
  opacity: 0.92;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.contract-seal.is-dragging,
.contract-seal-final.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 10px 18px rgba(255, 103, 93, 0.28));
  outline: 2px dashed rgba(255, 103, 93, 0.62);
  outline-offset: 6px;
}

.contract-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: #000;
  font-size: 13px;
  font-weight: 500;
}

.contract-dense-page .contract-section-title {
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 13px;
}

.contract-micro-page .contract-section-title {
  margin: 12px 0 8px;
  font-size: 13px;
}

.contract-section-title i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fd5ff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.contract-dense-page .contract-section-title i {
  width: 11px;
  height: 11px;
}

.contract-cat-table {
  width: 100%;
  margin: 12px 0 14px;
  border-collapse: collapse;
  color: #000;
  font-size: 12px;
}

.contract-cat-table th {
  padding: 7px 8px;
  text-align: left;
  font-weight: 400;
}

.contract-cat-table td {
  height: 34px;
  padding: 5px 8px;
  border-bottom: 1px solid #333;
}

.contract-note {
  font-size: 12px;
}

.contract-pricing-notes {
  margin: 4px 0 8px;
  padding-left: 0;
  color: #000;
}

.contract-pricing-notes p {
  margin-bottom: 4px;
}

.contract-room-options {
  word-spacing: 6px;
}

.contract-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 44px;
  margin-top: 36px;
}

.contract-sign-grid span {
  display: inline-block;
  min-width: 160px;
  border-bottom: 1px solid #333;
}

.contract-appendix-content {
  min-height: 360px;
  padding: 18px;
  border: 1px solid #aaa;
  white-space: pre-wrap;
}

.contract-final-sign {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.contract-page-number {
  display: none;
}

.print-payload {
  display: none;
}

.roomie-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

body.print-contract-payload,
body.print-document-payload {
  background: #fff;
}

body.print-contract-payload > :not(#printPayload),
body.print-document-payload > :not(#printPayload) {
  display: none !important;
}

body.print-contract-payload .print-payload,
body.print-document-payload .print-payload {
  display: block;
  position: relative;
  width: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: #fff;
  color: #000;
}

body.print-contract-payload .contract-page {
  width: auto;
  min-height: 0;
  margin: 0 auto 14px;
  padding: 42px 54px 34px;
  border: 0;
  box-shadow: none;
  break-inside: auto;
  page-break-after: auto;
}

@media print {
  @page {
    size: A4;
    margin: 14mm 14mm 12mm;
  }

  body * {
    visibility: hidden !important;
  }

  .print-payload,
  .print-payload * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-payload {
    display: block;
    position: fixed;
    inset: 0;
    padding: 28px;
    background: white;
    color: black;
  }

  .print-payload h1 {
    margin: 0 0 8px;
    font-size: 24px;
  }

  .print-payload p {
    margin: 0 0 18px;
    color: #444;
  }

  body.print-rate-receipt .rate-receipt,
  body.print-rate-receipt .rate-receipt * {
    visibility: visible !important;
  }

  body.print-rate-receipt .rate-receipt {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    padding: 28px;
    border: 0;
    box-shadow: none;
  }

  body.print-contract-payload > :not(#printPayload),
  body.print-document-payload > :not(#printPayload) {
    display: none !important;
  }

  body.print-contract-payload .print-payload,
  body.print-document-payload .print-payload {
    position: static;
    inset: auto;
    width: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  body.print-contract-payload .contract-page {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 7mm;
    border: 0;
    box-shadow: none;
    break-inside: auto;
    page-break-after: auto;
  }

  body.print-contract-payload .contract-page + .contract-page {
    padding-top: 0;
  }

  body.print-contract-payload .contract-head {
    margin-top: 0;
  }

  body.print-contract-payload .contract-page-number {
    display: none;
  }

  .printed-document {
    color: #000;
    font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 12px;
    line-height: 1.7;
  }

  .printed-document h1 {
    margin: 0 0 8px;
    font-size: 20px;
  }

  .printed-document p {
    margin: 0 0 12px;
    color: #444;
  }

  .printed-document pre {
    white-space: pre-wrap;
    font-family: inherit;
  }

  .printed-document img {
    max-width: 100%;
    height: auto;
  }

  body.print-boarding-contract .boarding-contract-paper,
  body.print-boarding-contract .boarding-contract-paper * {
    visibility: visible !important;
  }

  body.print-boarding-contract .boarding-contract-paper {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.print-boarding-contract .contract-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 18mm 16mm 16mm;
    border: 0;
    box-shadow: none;
    page-break-after: always;
  }

  body.print-boarding-contract .contract-page:last-child {
    page-break-after: auto;
  }
}

@media (max-width: 1120px) {
  .dashboard-module.size-half { grid-column: span 12; }
  .account-admin-workspace {
    grid-template-columns: 1fr;
  }

  .payroll-panel {
    position: static;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

	  .grid-two {
	    grid-template-columns: 1fr;
	  }

		  .mini-program-sync-grid {
		    grid-template-columns: 1fr;
		  }

  .mini-program-sync-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-program-sync-summary .meta {
    text-align: left;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .doc-head {
    display: grid;
  }

  .contract-generator-layout {
    grid-template-columns: 1fr;
  }

  .boarding-contract-paper {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .dashboard-board { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-module.size-wide,
  .dashboard-module.size-half { grid-column: 1; }
  .dashboard-module-library { top: 76px; right: 12px; width: calc(100vw - 24px); max-height: 58vh; }
  .dashboard-arrange-toolbar { align-items: flex-start; flex-direction: column; }
  .boarding-extra-fee-row { grid-template-columns: 1fr; }
  .boarding-history-row { grid-template-columns: 1fr auto; }
  .boarding-history-row label { grid-column: 1; }
  .contract-cat-row { grid-template-columns: 1fr; }
  .contract-preview-toolbar { display: grid; }
  .boarding-contract-paper { padding: 10px; }
  .contract-page {
    min-height: auto;
    padding: 34px 24px 28px;
    font-size: 12px;
  }
  .contract-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }
  .contract-head h2 {
    margin-left: 0;
    font-size: 16px;
  }
  .contract-head div { white-space: normal; }
  .contract-seal {
    top: 132px;
    right: 24px;
    width: 96px;
    height: 96px;
  }
  .contract-cat-table { font-size: 12px; }
  .contract-cat-table th,
  .contract-cat-table td { padding: 4px; }
  .contract-sign-grid { grid-template-columns: 1fr; }
  body {
    min-width: 0;
    min-height: 100vh;
    font-size: 14px;
  }

  .login-screen {
    align-items: start;
    padding: 18px;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-logo {
    width: 86px;
    height: 86px;
  }

  .login-brand h1 {
    font-size: 28px;
  }

  .login-form {
    padding: 22px;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    padding: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .brand p {
    font-size: 11px;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 0 10px;
  }

  .nav-item span:last-child {
    white-space: nowrap;
    font-size: 13px;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    overflow: visible;
  }

  .screen {
    max-width: none;
    padding: 14px;
  }

  .page-head {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .page-title {
    align-items: start;
  }

  .title-icon {
    width: 42px;
    height: 42px;
  }

  .page-title h2 {
    font-size: 24px;
  }

  .actions,
  .row-title,
  .doc-head .row-title {
    flex-wrap: wrap;
  }

  .live-strip {
    max-width: none;
  }

  .live-strip span {
    min-height: 30px;
    font-size: 11px;
  }

  .mascot-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    padding: 16px;
  }

  .dashboard-welcome-strip {
    grid-template-columns: minmax(0, 1fr) 64px;
    padding: 12px;
  }

  .dashboard-welcome-strip .hero-utility {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
  }

  .hero-utility .live-strip {
    justify-content: flex-start;
  }

  .dashboard-welcome-strip .roo-stage {
    width: 58px;
    height: 68px;
    margin: 0;
    transform: none;
  }

  .roo-stage {
    justify-self: center;
    margin-top: -6px;
    transform: scale(0.84);
    transform-origin: center top;
  }

  .panel-head-with-action,
  .stock-alert-card {
    grid-template-columns: 1fr;
  }

  .panel-head-with-action {
    display: grid;
    align-items: start;
  }

  .sync-box-wide {
    grid-template-columns: 1fr;
  }

  .stock-alert-list {
    grid-template-columns: 1fr;
  }

  .stock-alert-qty {
    justify-items: start;
  }

  .reminder-card {
    grid-template-columns: 1fr;
  }

  .reminder-card-actions {
    justify-content: flex-start;
  }

  .dashboard-roster-list {
    grid-template-columns: 1fr;
  }

  .roster-template-table {
    grid-template-columns: 78px repeat(2, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 132px;
    padding: 14px;
  }

  .stat-value {
    font-size: 25px;
  }

  .grid-two,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .inline-reminder-form,
  .toolbar,
  .form-grid,
  .room-service-row,
  .quote-room-segment-row,
  .staff-admin-grid,
  .inventory-toolbar,
  .rate-calculator-grid,
  .holiday-price-form,
  .holiday-price-row,
  .report-stay-picker,
  .report-condition-grid,
  .past-stay-date-grid,
  .customer-cat-picker-options,
  .quick-login-grid {
    grid-template-columns: 1fr;
  }

  .quick-switch {
    width: 100%;
  }

  .quick-switch select {
    width: 100%;
  }

  .rate-segment-head {
    display: grid;
  }

  .rate-segment-head .plain-button {
    width: fit-content;
  }

  .reminder-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-row,
  .account-card,
  .inventory-card {
    grid-template-columns: 1fr;
  }

  .purchase-flavor-row {
    grid-template-columns: 1fr;
  }

  .inventory-qty {
    justify-items: start;
  }

  .inventory-actions,
  .row-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .report-row-heading {
    display: grid;
  }

  .rate-receipt {
    padding: 18px;
  }

  .quote-receipt-hero {
    grid-template-columns: 48px minmax(0, 1fr) 82px;
    min-height: 128px;
  }

  .quote-mark {
    padding-top: 22px;
    font-size: 58px;
  }

  .quote-head-copy strong {
    font-size: 24px;
  }

  .quote-head-copy b {
    font-size: 14px;
  }

  .quote-head-copy span {
    margin-top: 4px;
    font-size: 12px;
  }

  .quote-receipt-hero img {
    width: 78px;
    height: 112px;
  }

  .quote-info-grid {
    grid-template-columns: 1fr;
    padding: 10px 16px;
  }

  .quote-info-grid::after {
    display: none;
  }

  .quote-info-item:nth-child(5) {
    border-bottom: 1px solid #d7e5ef;
  }

  .quote-total-panel {
    padding: 16px 22px;
  }

  .quote-total-panel strong {
    font-size: 38px;
  }

  .row-card.dense {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .row-card.dense > .amount,
  .row-card.dense > .pill,
  .row-card.dense > .row-title {
    grid-column: 1 / -1;
  }

  .doc-head {
    display: grid;
  }

  .doc-audit {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-head {
    align-items: stretch;
  }

  .weekday-row,
  .calendar-grid {
    gap: 5px;
  }

  .day-cell {
    min-height: 88px;
    padding: 7px;
  }

  .calendar-event-badges em {
    padding: 2px 4px;
    font-size: 8px;
  }

  .customer-list-head {
    align-items: stretch;
  }

  .customer-sort-control {
    min-width: 0;
    width: 100%;
  }

  .customer-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .modal-head,
  .modal-actions,
  .modal-body {
    padding: 14px;
  }

  .price-poster {
    width: 820px;
    max-width: none;
    padding: 18px;
  }

  .price-list-section {
    overflow-x: auto;
  }

  .holiday-price-saved-card {
    align-items: stretch;
    display: grid;
  }
}

/* Final cascade for the Roomie mini-program inspired desktop theme. */
body {
  color: var(--ink);
  background: var(--paper);
}

.login-screen {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.72), rgba(244, 239, 230, 0) 260px),
    var(--paper);
}

.login-card,
.stat-card,
.panel,
.cat-card,
.row-card,
.reminder-card,
.customer-card,
.stock-alert-card,
.dashboard-roster-card,
.room-type-card,
.editable-card,
.family-cat-chip,
.inventory-card,
.inventory-audit-list article,
.appointment-card,
.account-card,
.doc-card,
.version-status-card,
.version-health-card,
.cost-category-card,
.cost-history-row,
.holiday-price-saved-card,
.rate-receipt,
.price-list-section {
  border-color: rgba(130, 112, 82, 0.18);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-card {
  box-shadow: 0 22px 70px rgba(130, 112, 82, 0.16);
}

.login-brand,
.sidebar {
  background: #eee7dc;
}

.login-brand {
  border-right-color: rgba(130, 112, 82, 0.16);
}

.login-logo,
.brand-mark {
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(130, 112, 82, 0.12);
}

.login-brand h1,
.login-form h2,
.brand h1,
.page-title h2,
.panel-head h3,
.stat-value,
.cat-card h4 {
  color: #172626;
  font-weight: 800;
}

.auth-tabs,
.login-form,
.quick-login-panel,
.sync-box {
  background: var(--panel);
}

.auth-tabs,
.sync-box,
.role-option,
.quick-login-card,
.auth-notice {
  border-color: rgba(130, 112, 82, 0.18);
}

.auth-tab.active,
.role-option.active {
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: none;
}

.role-option.active span {
  color: rgba(255, 255, 255, 0.84);
}

.app-shell {
  background: var(--paper);
}

.sidebar {
  border-right-color: rgba(130, 112, 82, 0.16);
}

.brand {
  padding: 2px 8px 4px;
}

.brand p,
.save-indicator {
  color: #6d7878;
  font-weight: 700;
}

.nav {
  gap: 6px;
}

.nav-item {
  color: #445151;
  font-weight: 800;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.56);
}

.nav-item.active {
  color: var(--accent-ink);
  background: var(--panel);
  box-shadow: inset 4px 0 0 var(--accent), 0 8px 20px rgba(130, 112, 82, 0.08);
}

.nav-item span:last-child {
  font-weight: 800;
}

.save-indicator {
  border-color: rgba(130, 112, 82, 0.16);
  background: rgba(255, 253, 247, 0.68);
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.66), rgba(255, 253, 247, 0) 220px),
    var(--paper);
}

.screen {
  max-width: 1400px;
  padding: 26px 28px 34px;
}

.title-icon,
.stat-icon,
.row-icon,
.cat-avatar,
.avatar,
.action-mark {
  color: var(--accent-ink);
  background: var(--mint);
}

.panel-head .icon,
.title-icon .icon,
.nav-item .icon {
  color: currentColor;
}

.user-chip,
.quick-switch,
.live-strip span,
.inventory-group-title,
.festival-countdown-panel,
.auth-notice,
.sync-box {
  color: var(--accent-ink);
  border-color: rgba(68, 91, 113, 0.18);
  background: rgba(221, 239, 232, 0.72);
}

.primary-button {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(68, 91, 113, 0.16);
}

.primary-button:hover {
  background: #3d5266;
}

.plain-button,
.ghost-button,
.icon-button,
.danger-button {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel);
}

.ghost-button {
  color: #445151;
  background: #eee7dc;
}

.plain-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: #f7f3ea;
}

.row-card,
.cat-card,
.reminder-card,
.customer-card {
  box-shadow: 0 8px 22px rgba(130, 112, 82, 0.06);
}

.dashboard-welcome-strip,
.mascot-hero {
  border-color: rgba(130, 112, 82, 0.14);
  background: #c9bda8;
  box-shadow: 0 18px 38px rgba(130, 112, 82, 0.14);
}

.dashboard-welcome-strip h3,
.dashboard-welcome-strip p,
.mascot-hero h3,
.mascot-hero p {
  color: #ffffff;
}

.dashboard-welcome-strip p,
.mascot-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.dashboard-welcome-strip .live-strip span,
.dashboard-welcome-strip .quick-switch,
.mascot-hero .live-strip span,
.dashboard-welcome-strip .plain-button,
.mascot-hero .plain-button {
  color: #445B71;
  border-color: rgba(255, 253, 247, 0.52);
  background: rgba(255, 253, 247, 0.9);
}

.customer-metrics span,
.stock-alert-card,
.dashboard-roster-card,
.roster-template-head,
.editable-card,
.cat-profile-box,
.family-cat-chip,
.room-service-row,
.inventory-audit-list article,
.calendar-event-detail,
.day-cell.other-month {
  background: #f7f3ea;
}

.stat-icon.teal,
.badge.teal,
.pill.teal,
.room-chip.occupied {
  color: #23877f;
  background: #ddefe8;
}

.stat-icon.coral,
.badge.coral,
.pill.coral {
  color: #c95436;
  background: #f7ded8;
}

.stat-icon.gold,
.badge.gold,
.pill.gold {
  color: #8a650f;
  background: #f0e9dc;
}

.stat-icon.blue,
.badge.blue {
  color: #445B71;
  background: #ddefe8;
}

.pill {
  color: #445151;
  background: #eee7dc;
  font-weight: 800;
}

.search,
.cat-sort-control select,
input,
select,
textarea {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel-soft);
}

.search {
  box-shadow: 0 10px 24px rgba(130, 112, 82, 0.06);
}

input:focus,
select:focus,
textarea:focus,
.day-cell:hover,
.day-cell.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 214, 244, 0.22);
}

.modal {
  border: 1px solid rgba(130, 112, 82, 0.18);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(42, 47, 42, 0.28);
}

.modal::backdrop {
  background: rgba(29, 42, 43, 0.42);
}

.modal-head {
  border-bottom-color: rgba(130, 112, 82, 0.16);
  background: #fffdf7;
}

.modal-actions {
  border-top-color: rgba(130, 112, 82, 0.16);
  background: #f7f3ea;
}

.empty {
  border-color: rgba(130, 112, 82, 0.2);
  background: rgba(255, 253, 247, 0.58);
}

.progress {
  background: #eee7dc;
}

.progress span {
  background: var(--accent);
}

.day-cell {
  border-color: rgba(130, 112, 82, 0.18);
  background: var(--panel);
}

.day-cell.today .day-number,
.day-cell b,
.cat-profile-summary::before {
  color: #445B71;
  background: var(--accent);
}

.calendar-legend .billing,
.calendar-event-badges .billing,
.calendar-event-detail.billing {
  color: #445B71;
  background: #ddefe8;
}

.calendar-legend .makeup,
.calendar-event-badges .makeup,
.calendar-event-detail.makeup,
.festival-countdown-item.is-near {
  color: #806719;
  background: #f0e9dc;
}

.inventory-category-options label,
.room-chip,
.quick-login-card {
  border-color: rgba(130, 112, 82, 0.2);
  background: var(--panel);
}

.app-toast {
  border-color: rgba(68, 91, 113, 0.2);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 14px 34px rgba(130, 112, 82, 0.18);
}

.app-toast.success {
  border-color: rgba(47, 152, 146, 0.28);
  background: #f1fbf8;
}

.app-toast.error {
  border-color: rgba(201, 84, 54, 0.34);
  background: #fff6f3;
}
 
/* v0.10.14 final Roomie mini-program fidelity pass. */
:root {
  --ink: #141f20;
  --muted: #6f7c7a;
  --line: rgba(201, 189, 168, 0.34);
  --paper: #f4efe6;
  --panel: #fffdf7;
  --panel-soft: #f7f3ea;
  --layer-base: #f4efe6;
  --layer-mid: #fffdf7;
  --layer-raised: #f7f3ea;
  --layer-hero: #c9bda8;
  --accent: #7dd6f4;
  --accent-strong: #445B71;
  --accent-ink: #445B71;
  --mint: #ddefe8;
  --coral: #c95436;
  --gold: #ffd968;
  --shadow: 0 10px 24px rgba(130, 112, 82, 0.09);
  --shadow-raised: 0 16px 38px rgba(130, 112, 82, 0.14);
}

html,
body {
  background: var(--layer-base);
}

body,
button,
input,
select,
textarea {
  font-family: "PingFang SC", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

body {
  color: var(--ink);
  font-weight: 600;
}

button,
select {
  font-weight: 800;
}

.workspace {
  background: var(--layer-base);
}

.screen {
  max-width: 1410px;
  padding: 28px 30px 36px;
}

.sidebar {
  background: #eee9df;
  border-right: 1px solid rgba(130, 112, 82, 0.18);
}

.brand {
  gap: 13px;
  padding: 4px 9px 10px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--layer-hero);
  box-shadow: 0 14px 28px rgba(130, 112, 82, 0.12);
}

.brand h1 {
  color: #172626;
  font-size: 23px;
  font-weight: 900;
}

.brand p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  gap: 8px;
}

.nav-item {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  color: #5c6b69;
  font-size: 15px;
  font-weight: 900;
}

.sidebar .nav-item .icon {
  color: currentColor;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.58);
}

.nav-item.active {
  color: var(--accent-ink);
  background: var(--layer-mid);
  box-shadow: inset 4px 0 0 var(--accent), 0 12px 26px rgba(130, 112, 82, 0.11);
}

.save-indicator {
  border: 0;
  background: rgba(255, 253, 247, 0.76);
  color: var(--muted);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(130, 112, 82, 0.12);
}

.page-head {
  margin-bottom: 20px;
}

.title-icon,
.stat-icon,
.row-icon,
.cat-avatar,
.avatar {
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--mint);
}

.page-title .title-icon .icon,
.panel-head[class*="icon-"] .icon,
.panel-head .icon {
  color: currentColor;
}

.page-title h2 {
  color: #172626;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-title p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-arrange-hint,
.helper-text,
.meta,
.stat-note,
.panel-head p,
.dashboard-roster-card p,
.inventory-main p,
.inventory-meta,
.cat-meta {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-welcome-strip,
.mascot-hero {
  min-height: 112px;
  padding: 18px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--layer-hero);
  box-shadow: var(--shadow-raised);
}

.dashboard-welcome-strip h3,
.mascot-hero h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-welcome-strip p,
.mascot-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-welcome-strip .live-strip span,
.dashboard-welcome-strip .quick-switch,
.dashboard-welcome-strip .plain-button,
.mascot-hero .live-strip span,
.mascot-hero .plain-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink);
  background: rgba(255, 253, 247, 0.9);
  font-weight: 900;
}

.dashboard-welcome-strip .quick-switch select {
  color: var(--accent-ink);
  font-weight: 900;
}

.stat-card,
.panel,
.cat-card,
.row-card,
.cat-row,
.inventory-card,
.reminder-card,
.customer-card,
.appointment-card,
.account-card,
.doc-card,
.version-status-card,
.version-health-card,
.cost-category-card,
.cost-history-row,
.holiday-price-saved-card,
.rate-receipt,
.price-list-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--layer-mid);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 166px;
  padding: 22px;
}

.stat-top {
  margin-bottom: 18px;
}

.stat-icon {
  width: 42px;
  height: 42px;
}

.stat-value {
  color: #172626;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 0;
}

.stat-title {
  color: #172626;
  font-size: 15px;
  font-weight: 900;
}

.stat-note {
  font-size: 13px;
}

.panel {
  padding: 20px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h3 {
  color: #172626;
  font-size: 19px;
  font-weight: 900;
}

.row-card,
.stock-alert-card,
.dashboard-roster-card,
.roster-template-head,
.customer-metrics span,
.editable-card,
.cat-profile-box,
.family-cat-chip,
.room-service-row,
.inventory-audit-list article,
.calendar-event-detail,
.day-cell.other-month,
.cost-history-row {
  border-color: rgba(201, 189, 168, 0.22);
  background: var(--layer-raised);
  box-shadow: none;
}

.row-card.dense,
.reminder-card {
  padding: 15px;
}

.row-title strong,
.cat-card h4,
.inventory-main strong,
.customer-card strong,
.dashboard-roster-card strong {
  color: #172626;
  font-weight: 900;
}

.search {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--layer-mid);
  box-shadow: 0 12px 28px rgba(130, 112, 82, 0.1);
}

.search .icon {
  color: var(--muted);
}

.search input,
.search input::placeholder {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

label,
.wide-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea,
.cat-sort-control select {
  min-height: 42px;
  border-color: rgba(201, 189, 168, 0.34);
  border-radius: 10px;
  color: var(--ink);
  background: var(--layer-raised);
  font-weight: 750;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 214, 244, 0.24);
}

.primary-button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-strong);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(68, 91, 113, 0.18);
}

.primary-button:hover {
  background: #394f62;
}

.plain-button,
.ghost-button,
.icon-button,
.danger-button {
  min-height: 40px;
  border-color: rgba(201, 189, 168, 0.36);
  border-radius: 10px;
  color: #445151;
  background: var(--layer-mid);
  font-weight: 900;
}

.ghost-button {
  background: #eee9df;
}

.icon-button {
  width: 40px;
}

.pill,
.badge,
.user-chip,
.quick-switch,
.live-strip span,
.inventory-group-title {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink);
  background: #eee9df;
  font-size: 12px;
  font-weight: 900;
}

.pill.teal,
.badge.teal,
.room-chip.occupied {
  color: var(--accent-ink);
  background: var(--accent);
}

.pill.gold,
.badge.gold {
  color: #7c5c00;
  background: var(--gold);
}

.pill.coral,
.badge.coral {
  color: var(--coral);
  background: #f7ded8;
}

.stat-icon.teal,
.stat-icon.blue {
  color: var(--accent-ink);
  background: var(--mint);
}

.stat-icon.gold {
  color: #8a650f;
  background: #f0e9dc;
}

.stat-icon.coral {
  color: var(--coral);
  background: #f7ded8;
}

.amount,
.money,
.amount.expense {
  color: var(--coral);
  font-weight: 950;
}

.amount.income {
  color: var(--teal);
}

.modal {
  border: 1px solid rgba(201, 189, 168, 0.32);
  border-radius: 8px;
  background: var(--layer-mid);
  box-shadow: 0 28px 90px rgba(42, 47, 42, 0.28);
}

.modal-head {
  background: var(--layer-mid);
}

.modal-head h2 {
  color: #172626;
  font-weight: 900;
}

.modal-body,
.modal-actions {
  background: var(--layer-raised);
}

.empty {
  border-color: rgba(201, 189, 168, 0.34);
  background: rgba(255, 253, 247, 0.66);
}

.empty strong {
  color: #172626;
  font-weight: 900;
}

.calendar-legend span,
.calendar-event-badges em {
  border-radius: 999px;
  font-weight: 900;
}

.day-cell {
  border-color: rgba(201, 189, 168, 0.3);
  background: var(--layer-mid);
}

.day-cell.today .day-number,
.day-cell b,
.cat-profile-summary::before {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 900;
}

.login-screen {
  background: var(--layer-base);
}

.login-card {
  border-color: rgba(201, 189, 168, 0.32);
  background: var(--layer-mid);
  box-shadow: var(--shadow-raised);
}

.login-brand {
  background: var(--layer-hero);
}

.login-brand h1,
.login-brand p {
  color: #ffffff;
}

.auth-tab.active,
.role-option.active {
  background: var(--accent-strong);
}

/* v0.10.15: text-only navigation with daily focus badges. */
:root {
  --accent-strong: #40586d;
  --accent-ink: #40586d;
  --button-blue: #40586d;
  --button-blue-hover: #35495a;
}

.nav {
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px 0 18px;
  border-radius: 12px;
  color: #61706e;
  font-size: 15px;
  font-weight: 900;
}

.nav-item .icon {
  display: none;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: #eee9df;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.nav-badge.blue,
.nav-badge.teal {
  color: var(--accent-ink);
  background: var(--accent);
}

.nav-badge.gold {
  color: #806719;
  background: #ffd968;
}

.nav-badge.coral {
  color: #ffffff;
  background: #c95436;
}

.nav-badge.muted {
  color: #6f7c7a;
  background: #f7f3ea;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.62);
}

.nav-item.active {
  color: var(--accent-ink);
  background: var(--layer-mid);
  box-shadow: inset 4px 0 0 var(--accent), 0 12px 26px rgba(130, 112, 82, 0.11);
}

.nav-item.active .nav-badge {
  color: #ffffff;
  background: var(--button-blue);
}

.primary-button {
  border: 0;
  color: #ffffff;
  background: var(--button-blue);
  box-shadow: 0 14px 28px rgba(64, 88, 109, 0.2);
}

.primary-button:hover {
  background: var(--button-blue-hover);
}

.app-context-menu {
  position: fixed;
  z-index: 1200;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(64, 88, 109, 0.16);
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 18px 42px rgba(64, 88, 109, 0.22);
}

.app-context-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--button-blue);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-context-menu button:hover,
.app-context-menu button:focus-visible {
  outline: 0;
  background: #e9f5f1;
}

.app-context-menu button > span:first-child {
  width: 18px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

@media (max-width: 900px) {
  .cat-daily-report-row {
    grid-template-columns: 1fr;
  }

  .report-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-row-actions button {
    min-width: 0;
  }

  .cat-daily-report-row .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-welcome-strip .plain-button,
.dashboard-welcome-strip .quick-switch,
.mascot-hero .plain-button {
  color: var(--button-blue);
}

.auth-tab.active,
.role-option.active {
  background: var(--button-blue);
}

/* v0.10.33: package-card reuse, room adjustment fees, and flexible boarding totals. */
:root {
  --button-blue: #40586d;
  --button-blue-hover: #35495a;
  --nav-ink: #5f6f6c;
  --nav-active: #40586d;
  --nav-focus-bg: rgba(255, 253, 247, 0.72);
  --nav-badge-bg: #f7f3ea;
}

.nav {
  gap: 6px;
}

.nav-item {
  position: relative;
  min-height: 44px;
  padding: 0 13px 0 18px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  color: var(--nav-ink);
  background: transparent;
  box-shadow: none;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.42);
  box-shadow: none;
}

.nav-item:focus,
.nav-item:focus-visible {
  outline: 0;
  background: rgba(255, 253, 247, 0.5);
  box-shadow: none;
}

.nav-item.active {
  color: var(--nav-active);
  background: var(--nav-focus-bg);
  box-shadow: 0 8px 20px rgba(130, 112, 82, 0.08);
}

.nav-item.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 7px;
  width: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.nav-item.active .nav-label {
  font-weight: 950;
}

.nav-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(201, 189, 168, 0.3);
  border-radius: 999px;
  color: var(--button-blue);
  background: var(--nav-badge-bg);
  box-shadow: none;
}

.nav-badge-symbol {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge.focus,
.nav-badge.complete {
  color: var(--button-blue);
  background: #f7f3ea;
}

.nav-badge.attention {
  color: var(--button-blue);
  background: #ddefe8;
  border-color: rgba(125, 214, 244, 0.36);
}

.nav-badge.attention::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
  border: 2px solid #fffdf7;
  border-radius: 999px;
}

.nav-badge.complete::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  content: "";
  background: #8fb6aa;
  border: 2px solid #fffdf7;
  border-radius: 999px;
}

.nav-item.active .nav-badge {
  color: #ffffff;
  background: var(--button-blue);
  border-color: rgba(64, 88, 109, 0.2);
}

.nav-item.active .nav-badge::after {
  border-color: var(--button-blue);
}

.primary-button {
  background: var(--button-blue);
  box-shadow: 0 14px 28px rgba(64, 88, 109, 0.2);
}

.primary-button:hover {
  background: var(--button-blue-hover);
}
