@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --ink: #121614;
  --forest: #18352b;
  --ivory: #f6f2e9;
  --warm-white: #fcfaf5;
  --champagne: #c6a15b;
  --stone: #d8d1c5;
  --muted: #6f756f;
  --success: #2f6a50;
  --warning: #a96e2d;
  --error: #a3483f;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .heading-tight { font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.tabular { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }

.demo-notice-bar { background: var(--ink); color: #e9e5db; font-size: 12.5px; }
.demo-notice-bar .notice-row { padding: 8px 20px; display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-notice-bar strong { color: var(--champagne); font-weight: 700; }
.demo-notice-bar .notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); flex: 0 0 auto; }
.notice-actions { padding: 8px 20px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.notice-actions .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: rgba(233,229,219,.55); }
.lang-switch { display: flex; background: rgba(233,229,219,.08); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-btn { border: none; background: transparent; color: rgba(233,229,219,.6); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.lang-btn.is-active { background: var(--champagne); color: var(--ink); }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--warm-white);
  border-right: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex: 0 0 auto;
}
.sidebar-head { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--stone); }
.sidebar-head .brand { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; }
.sidebar-toggle { border: none; background: none; color: var(--muted); padding: 4px; }
.sidebar-toggle:hover { color: var(--ink); }

.sidebar-body { padding: 16px; overflow-y: auto; flex: 1; }
.property-pick {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; background: var(--ivory); border: 1px solid var(--stone); border-radius: 6px;
  margin-bottom: 24px; cursor: pointer;
}
.property-pick .avatar { width: 32px; height: 32px; background: var(--ink); color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.property-pick .info { display: flex; flex-direction: column; line-height: 1.3; }
.property-pick .name { font-size: 13px; font-weight: 600; }
.property-pick .loc { font-size: 11px; color: var(--muted); }
.property-pick .chev { margin-left: auto; color: var(--muted); }

.nav-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px; margin-top: 18px; }
.nav-group-label:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 14px; color: var(--muted);
  border-radius: 4px; transition: color .15s ease, background .15s ease;
}
.nav-item:hover { color: var(--ink); background: var(--ivory); }
.nav-item.is-active { color: var(--ink); border-right: 2px solid var(--champagne); font-weight: 500; }
.nav-item .ic { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.nav-item .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .badge { margin-left: auto; background: var(--ink); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.sidebar-foot { border-top: 1px solid var(--stone); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.sidebar-foot .avatar-round { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--stone); flex: 0 0 auto; }
.sidebar-foot .avatar-round img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-foot .who { display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-foot .who strong { font-size: 13px; font-weight: 600; }
.sidebar-foot .who span { font-size: 11px; color: var(--muted); }
.sidebar-foot .logout { margin-left: auto; color: var(--muted); }
.sidebar-foot .logout:hover { color: var(--error); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--stone);
  display: flex; align-items: center; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.topbar .crumbs .current { color: var(--ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-search { position: relative; }
.topbar-search input {
  background: var(--ivory); border: 1px solid var(--stone); border-radius: 6px;
  padding: 7px 12px 7px 32px; font-size: 13px; width: 260px; color: var(--ink); font-family: inherit;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { outline: none; border-color: var(--champagne); }
.topbar-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.topbar-daterange { display: flex; align-items: center; gap: 6px; background: var(--ivory); border: 1px solid var(--stone); border-radius: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.topbar-icon-btn { position: relative; border: none; background: none; color: var(--muted); padding: 6px; border-radius: 4px; }
.topbar-icon-btn:hover { color: var(--ink); }
.topbar-icon-btn .dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: var(--error); border: 2px solid var(--warm-white); border-radius: 50%; }

.workspace { flex: 1; overflow-y: auto; padding: 24px; display: flex; justify-content: center; }
.workspace-inner { width: 100%; max-width: 1240px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 500; }
.page-head p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.page-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 4px; font-size: 13px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
}
.btn-ghost { background: var(--warm-white); border-color: var(--stone); color: var(--muted); }
.btn-ghost:hover { background: var(--ivory); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }
.btn-champagne { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn-champagne:hover { opacity: .9; }

.kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 32px; }
.kpi-card { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 4px; padding: 20px; }
.kpi-card .kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.kpi-card .kpi-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi-card .kpi-ic { color: var(--muted); font-size: 15px; }
.kpi-card .kpi-value-row { display: flex; align-items: baseline; gap: 8px; }
.kpi-card .kpi-value { font-size: 24px; font-weight: 500; font-family: 'Inter Tight', sans-serif; }
.kpi-card .kpi-delta { font-size: 11px; font-weight: 600; }
.kpi-card .kpi-delta.up { color: var(--success); }
.kpi-card .kpi-delta.down { color: var(--error); }

.panel { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 4px; }
.panel-head { padding: 16px; border-bottom: 1px solid var(--stone); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15px; font-weight: 500; }
.legend { display: flex; align-items: center; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-select { display: flex; align-items: center; gap: 8px; background: var(--warm-white); border: 1px solid var(--stone); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.filter-select .lbl { color: var(--muted); }
.filter-select .val { font-weight: 600; }
.filter-clear { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.filter-clear:hover { color: var(--ink); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--stone); background: var(--ivory); }
table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--stone); vertical-align: middle; }
table.data-table tbody tr:hover { background: var(--ivory); }
table.data-table tbody tr:last-child td { border-bottom: none; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.status-pill.success .dot { background: var(--success); }
.status-pill.warning { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.status-pill.warning .dot { background: var(--warning); }
.status-pill.error { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }
.status-pill.error .dot { background: var(--error); }
.status-pill.neutral { background: var(--ivory); color: var(--muted); }
.status-pill.neutral .dot { background: var(--muted); }

.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--stone); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.pagination .pg-nav { display: flex; align-items: center; gap: 10px; }
.pg-btn { border: 1px solid var(--stone); background: var(--warm-white); border-radius: 4px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pg-btn:hover { color: var(--ink); }

.bottom-bar {
  background: var(--ink); color: var(--warm-white);
  border-radius: 8px; padding: 20px 28px;
  display: flex; align-items: center; gap: 40px; margin-top: 24px;
}
.bottom-bar .bb-item { display: flex; flex-direction: column; gap: 2px; }
.bottom-bar .bb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(252,250,245,.55); font-weight: 600; }
.bottom-bar .bb-value { font-size: 19px; font-weight: 500; font-family: 'Inter Tight', sans-serif; }
.bottom-bar .bb-actions { margin-left: auto; display: flex; gap: 10px; }
.bottom-bar .btn-ghost { background: transparent; border-color: rgba(252,250,245,.24); color: var(--warm-white); }
.bottom-bar .btn-ghost:hover { background: rgba(252,250,245,.08); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.room-card { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 6px; overflow: hidden; }
.room-card .thumb { aspect-ratio: 16/10; background: var(--stone); overflow: hidden; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-card .body { padding: 16px; }
.room-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.room-card .meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.room-card .stat-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--stone); }
.room-card .price { font-size: 17px; font-weight: 600; font-family: 'Inter Tight', sans-serif; }

.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--stone); margin-bottom: 24px; }
.tab-btn { padding: 10px 4px; margin-right: 20px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.tab-btn.is-active { color: var(--ink); border-bottom-color: var(--champagne); }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--stone); font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--muted); }
.info-row .val { font-weight: 500; }

.timeline { display: grid; gap: 18px; }
.timeline-item { display: flex; gap: 12px; }
.timeline-item .dot-wrap { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.timeline-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); margin-top: 5px; }
.timeline-item .line { width: 1px; flex: 1; background: var(--stone); margin-top: 4px; }
.timeline-item .content strong { display: block; font-size: 13.5px; font-weight: 600; }
.timeline-item .content span { font-size: 12px; color: var(--muted); }

.panel-demo-footer { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 20px 0 4px; font-size: 12px; color: var(--muted); }
.panel-demo-footer a { color: var(--muted); }
.panel-demo-footer a:hover { color: var(--ink); }
.panel-demo-footer .sep { color: var(--stone); }

.setting-row { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.setting-row:last-child { border-bottom: none; }
.setting-row label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.setting-row .setting-hint { font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.setting-input,
.setting-select,
.setting-textarea { border: 1px solid var(--stone); border-radius: 4px; padding: 8px 12px; font-size: 13px; color: var(--ink); background: var(--warm-white); font-family: inherit; width: 100%; }
.setting-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.setting-textarea { resize: vertical; min-height: 72px; }
.setting-check { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--stone); font-size: 13px; }
.setting-check:last-child { border-bottom: none; }

.settings-shell { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.settings-nav { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 4px; padding: 8px; display: grid; gap: 2px; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--muted); border-radius: 4px; border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.settings-nav-item:hover { background: var(--ivory); color: var(--ink); }
.settings-nav-item.is-active { background: var(--ivory); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--champagne); }
.settings-nav-item .ic { width: 16px; height: 16px; flex: 0 0 auto; display: inline-flex; }
.settings-nav-item .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.settings-pane { display: none; }
.settings-pane.is-active { display: block; }

.maint-banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 4px; background: color-mix(in srgb, var(--warning) 10%, var(--warm-white)); border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--stone)); margin-bottom: 20px; }
.maint-banner .ic { width: 20px; height: 20px; color: var(--warning); flex: 0 0 auto; }
.maint-banner .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.maint-banner strong { display: block; font-size: 13.5px; }
.maint-banner span { font-size: 12.5px; color: var(--muted); }
.maint-banner.is-off { background: var(--ivory); border-color: var(--stone); }
.maint-banner.is-off .ic { color: var(--success); }

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .track { position: absolute; inset: 0; background: var(--stone); border-radius: 999px; transition: background .15s ease; cursor: pointer; }
.toggle-switch .track::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; }
.toggle-switch input:checked + .track { background: var(--forest); }
.toggle-switch input:checked + .track::before { transform: translateX(18px); }

.role-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ivory); color: var(--ink); border: 1px solid var(--stone); }
.role-badge.is-owner { background: color-mix(in srgb, var(--champagne) 18%, var(--warm-white)); border-color: var(--champagne); color: #7a5a20; }

.perm-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 90px); gap: 0; font-size: 13px; }
.perm-grid .perm-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--stone); background: var(--ivory); }
.perm-grid .perm-head.center,
.perm-grid .perm-cell { text-align: center; }
.perm-grid .perm-row-label { padding: 12px; border-bottom: 1px solid var(--stone); font-weight: 500; }
.perm-grid .perm-cell { padding: 12px; border-bottom: 1px solid var(--stone); display: flex; align-items: center; justify-content: center; }

@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -240px; z-index: 100; transition: left .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar.is-open { left: 0; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .topbar-search input { width: 160px; }
  .topbar-daterange span { display: none; }
}
