:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --text: #172033;
  --muted: #66738a;
  --line: #dce2ee;
  --panel: #ffffff;
  --accent: #1266d6;
  --accent-dark: #0b4fa8;
  --accent-soft: #eaf2ff;
  --danger: #b42318;
  --shadow: 0 12px 35px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.nav-button {
  min-height: 36px;
  padding: 7px 12px;
  border-color: #cbd4e3;
  background: #fff;
  color: var(--text);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #cbd4e3;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.top-account {
  max-width: 260px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label {
  font-size: 16px;
  letter-spacing: 0.11em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

.intro,
.section-header p,
#stayCount,
#rowCount,
#propertyCount {
  color: var(--muted);
}

.intro {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 17px;
}

.intro.large {
  margin-bottom: 14px;
  font-size: 20px;
}

.home-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.steps-panel,
.note-panel,
.public-pricing-panel,
.faq-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.info-card span,
.note-panel,
.steps-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.note-panel {
  margin-top: 14px;
  padding: 14px 16px;
}

.public-pricing-panel,
.faq-panel {
  margin-top: 14px;
  padding: 20px;
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.steps-panel {
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 20px;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid div {
  display: grid;
  gap: 7px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.steps-panel p {
  margin-bottom: 0;
}

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

.faq-grid article {
  display: grid;
  gap: 7px;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 920px;
}

.legal-panel {
  display: grid;
  gap: 12px;
}

.legal-panel h1 {
  margin-bottom: 0;
}

.legal-panel h2 {
  margin: 12px 0 0;
}

.legal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.metrics {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.metric-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metric-box strong {
  font-size: 24px;
}

.metric-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.mini-button {
  min-height: 34px;
  margin-top: 12px;
  padding: 7px 10px;
  font-size: 14px;
}

.trial-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #b9d5ff;
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.trial-banner div {
  display: grid;
  gap: 5px;
}

.trial-banner span {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

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

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.pricing-card.highlighted {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pricing-card strong {
  font-size: 24px;
}

.pricing-card p,
.billing-note {
  color: var(--muted);
  line-height: 1.45;
}

.plan-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-note {
  margin: 16px 0 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

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

.auth-actions button {
  min-width: 132px;
  white-space: nowrap;
}

.main-area {
  display: grid;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 16px;
}

.grid,
.property-form {
  display: grid;
  gap: 16px;
}

.stay-grid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #303a4f;
  font-size: 14px;
  font-weight: 700;
}

.month-label {
  min-width: 210px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd4e3;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(18, 102, 214, 0.18);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.section-header.compact {
  margin-bottom: 14px;
}

.section-header p {
  margin-bottom: 0;
}

button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button.ghost {
  border-color: #cbd4e3;
  background: #fff;
  color: var(--text);
}

button.ghost:hover {
  background: #f0f4fa;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.checkbox {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.success-text {
  color: #137333;
  font-weight: 700;
}

.property-list,
.stay-list,
.history-list {
  display: grid;
  gap: 10px;
}

.property-list.empty,
.stay-list.empty,
.history-list.empty {
  color: var(--muted);
}

.property-list {
  margin-top: 14px;
}

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

.property-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.property-select {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.property-select:hover {
  background: transparent;
}

.property-card strong {
  font-size: 15px;
}

.property-card span,
.property-card small {
  color: var(--muted);
}

.property-remove {
  min-height: 34px;
  padding: 6px 9px;
  border-color: #f0c1bd;
  background: #fff;
  color: var(--danger);
}

.property-remove:hover {
  background: #fff4f2;
}

.stay-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.stay-item strong {
  display: block;
  margin-bottom: 4px;
}

.stay-item span {
  color: var(--muted);
  font-size: 14px;
}

.stay-item button {
  min-height: 36px;
  padding: 7px 10px;
  border-color: #f0c1bd;
  background: #fff;
  color: var(--danger);
}

.stay-item button:hover {
  background: #fff4f2;
}

.history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  text-align: left;
}

.history-item:hover,
.history-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.history-item span {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #f0f4fa;
  color: #33415c;
  font-size: 13px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .home-section,
  .section-header {
    display: grid;
  }

  .info-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 22px, 1280px);
    padding-top: 16px;
  }

  .metrics,
  .info-grid,
  .steps-grid,
  .faq-grid,
  .pricing-grid,
  .auth-grid,
  .stay-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .top-account {
    max-width: 100%;
  }

  .trial-banner {
    display: grid;
  }

  .auth-actions {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  h1 {
    font-size: 31px;
  }
}
