:root {
  color-scheme: light;
  --ink: #2d261d;
  --muted: #7f7567;
  --line: #e7ddcb;
  --line-soft: #f0e8db;
  --paper: #f8f2e7;
  --panel: #fffdf8;
  --cream: #fbf7ee;
  --beige: #eadcc7;
  --beige-deep: #c8ae86;
  --gold: #b9904b;
  --gold-dark: #87652d;
  --espresso: #3a2d20;
  --rose: #b97963;
  --booked: #8f5b73;
  --shadow: 0 18px 50px rgba(94, 72, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  background: #35281d;
  color: #fbf4e9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f1dfbd;
  color: var(--espresso);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.plan-box small {
  color: #d7c8ae;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.nav-item {
  border: 0;
  color: #eadcc7;
  background: transparent;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 15px;
}

.nav-item span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nav-item.active,
.nav-item:hover {
  background: #4a3928;
  color: #ffffff;
}

.nav-search {
  margin-bottom: 42px;
  background: #ead8b8;
  color: #3d2b1c;
  border: 1px solid #f3e6cd;
  box-shadow: 0 10px 22px rgba(10, 7, 4, 0.16);
  font-weight: 500;
}

.nav-search:hover,
.nav-search.active {
  background: #f0dfc3;
  color: #3d2b1c;
}

.nav-search span {
  color: #7a5b2e;
  font-size: 19px;
}

.plan-box {
  margin-top: auto;
  background: #40301f;
  border: 1px solid #685033;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.main {
  padding: 28px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}

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

h1 {
  margin-bottom: 0;
  font-size: 34px;
}

h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}

h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

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

.avatar,
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.avatar {
  background: #eadcc7;
  color: var(--espresso);
  font-weight: 800;
}

.icon-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button {
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 750;
}

.primary-button {
  color: white;
  background: var(--espresso);
}

.secondary-button {
  color: var(--espresso);
  background: #efe3d0;
}

.ghost-button,
.small-button {
  color: var(--espresso);
  background: #ffffff;
  border-color: var(--line);
}

.small-button {
  min-height: 34px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hero-panel {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  background: var(--espresso);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 35, 25, 0.82), rgba(90, 67, 38, 0.28) 58%, rgba(45, 35, 25, 0.08));
}

.hero-copy {
  position: absolute;
  inset: auto auto 32px 32px;
  z-index: 1;
  color: white;
  max-width: 650px;
}

.hero-copy p {
  color: #e9eee9;
  max-width: 590px;
  margin-bottom: 0;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4e4c5;
  color: #704f1f;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.metric-grid,
.booking-board,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.vendor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(94, 72, 43, 0.06);
}

.metric-card {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.metric-card span,
.metric-card small,
.panel p,
.review span,
.chat-person span {
  color: var(--muted);
}

.metric-card strong {
  font-size: 28px;
}

.content-grid,
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.calendar-layout {
  grid-template-columns: minmax(0, 2.55fr) minmax(280px, 0.7fr);
  gap: 12px;
}

.panel {
  padding: 20px;
}

.wide {
  grid-column: span 1;
}

.panel-head,
.card-row,
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.pipeline,
.package-list,
.trust-list,
.availability {
  display: grid;
  gap: 12px;
}

.pipeline div,
.package-list div,
.payment-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
}

.pipeline span,
.package-list span {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.check {
  padding: 12px;
  background: #f5ead7;
  border-radius: 8px;
}

.check.muted {
  background: #f8efe2;
}

.search-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  align-items: end;
}

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

input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffaf1;
}

.market-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.filters {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  height: max-content;
}

.filters label {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
}

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

.vendor-list.compact .vendor-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.vendor-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.vendor-card.selected {
  border-color: var(--gold);
}

.vendor-thumb,
.profile-media {
  border-radius: 8px;
  min-height: 96px;
  background-size: cover;
  background-position: center;
}

.lake {
  background-image: linear-gradient(135deg, rgba(185, 144, 75, 0.16), rgba(74, 57, 40, 0.18)), url("assets/vendor-collaboration.png");
}

.floral {
  background: linear-gradient(135deg, #f0d8c8, #c8ae86);
}

.music {
  background: linear-gradient(135deg, #3a2d20, #b9904b);
}

.rating {
  background: #f4e8d2;
  color: var(--gold-dark);
  border-radius: 8px;
  padding: 5px 8px;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  background: #f2e7d4;
  color: #6c4f27;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 750;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-bottom: 18px;
}

.profile-media {
  min-height: 360px;
  background-image: linear-gradient(180deg, rgba(185, 144, 75, 0.06), rgba(58, 45, 32, 0.1)), url("assets/vendor-collaboration.png");
}

.profile-info {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.review strong {
  font-size: 32px;
  display: block;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.timeline div {
  min-height: 72px;
  border-radius: 8px;
  background: #f8f0e4;
  padding: 12px;
  font-weight: 800;
  color: var(--muted);
}

.timeline .done {
  background: #f0dfc2;
  color: var(--espresso);
}

.timeline .current {
  background: #ead2b6;
  color: #744a2d;
}

.chat-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 650px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.chat-list {
  border-right: 1px solid var(--line);
  background: #f9f1e5;
  padding: 12px;
}

.chat-person {
  padding: 14px;
  border-radius: 8px;
  display: grid;
  gap: 4px;
}

.chat-person.active {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 43, 41, 0.07);
}

.chat-window {
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 12px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.chat-head span {
  color: var(--muted);
}

.message {
  max-width: 620px;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f4ead9;
  display: grid;
  gap: 4px;
}

.message span {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-dark);
}

.message.outgoing {
  background: var(--espresso);
  color: #ffffff;
  align-self: flex-end;
}

.message.outgoing span {
  color: #dbe9e3;
}

.message.system {
  max-width: none;
  background: #fff3df;
  color: #744a2d;
  font-weight: 700;
}

.composer {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 0;
  overflow: hidden;
  border-top: 1px solid #efe8de;
  border-radius: 8px;
  background: #ffffff;
}

.calendar-panel,
.day-panel {
  background: #ffffff;
  border-color: #eee7dc;
  box-shadow: 0 10px 28px rgba(94, 72, 43, 0.045);
}

.calendar-panel {
  padding: 0;
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
  border-bottom: 1px solid #efe8de;
  background: rgba(255, 255, 255, 0.82);
}

.calendar-kicker {
  display: block;
  color: #a9854b;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

button.calendar-nav {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fffaf3;
  color: #5e4a32;
  box-shadow: 0 10px 24px rgba(94, 72, 43, 0.08);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

button.calendar-nav:hover {
  background: #f7eddf;
  color: var(--espresso);
}

div.month-pill {
  min-width: 190px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 28px;
  border-radius: 999px;
  background: #fffaf3;
  color: #4a3a27;
  box-shadow: 0 10px 24px rgba(94, 72, 43, 0.08);
  font-size: 17px;
  font-weight: 760;
}

.calendar-grid > span {
  text-align: center;
  color: var(--muted);
  font-weight: 650;
  padding: 12px 8px;
  background: #ffffff;
  border-right: 1px solid #f3ede5;
  border-bottom: 1px solid #eee7dc;
  font-size: 12px;
}

.day-cell {
  position: relative;
  border-right: 1px solid #f3ede5;
  border-bottom: 1px solid #f3ede5;
  background: transparent;
  min-height: 118px;
  padding: 12px 0 0;
  color: var(--ink);
  overflow: hidden;
}

.calendar-grid > span:nth-child(7n),
.day-cell:nth-of-type(7n) {
  border-right: 0;
}

.day-number {
  display: block;
  text-align: center;
  color: #4a4037;
  font-size: 13px;
  font-weight: 680;
  margin-bottom: 22px;
}

.event-bar {
  display: block;
  height: 25px;
  margin: 4px 4px 0;
  padding: 4px 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 6px;
  color: #4d4034;
  background: #f5ead9;
  font-size: 12px;
  font-weight: 720;
}

.booked .day-number {
  color: var(--booked);
}

.booked-event {
  background: #f1e1e7;
  color: #6c3e52;
  border-left: 3px solid var(--booked);
}

.inquiry-event {
  background: #f6eddc;
  border-left: 3px solid #c0a06a;
}

.available-event {
  background: #f2ede3;
  border-left: 3px solid #bda982;
}

.blocked-event {
  background: #f4e8df;
  color: #76533f;
  border-left: 3px solid #b78a6f;
}

.empty-day {
  background: #fffdf9;
}

.detail-cards {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.detail-card {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  border-left: 4px solid #c0a06a;
  background: #fff8ef;
  padding: 14px 14px 14px 16px;
  line-height: 1.35;
}

.detail-card strong {
  display: block;
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.booked-detail {
  border-left-color: var(--booked);
  background: #f8edf1;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8c49e;
}

.inquiry {
  background: var(--gold);
}

.booked-dot {
  background: var(--booked);
}

.blocked-dot {
  background: var(--rose);
}

.full {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 14px;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .plan-box {
    display: none;
  }

  .metric-grid,
  .booking-board,
  .payment-grid,
  .search-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .panel-head,
  .card-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .primary-button {
    flex: 1;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .metric-grid,
  .booking-board,
  .payment-grid,
  .search-band,
  .content-grid,
  .market-layout,
  .profile-header,
  .calendar-layout,
  .chat-shell,
  .timeline {
    grid-template-columns: 1fr;
  }

  .vendor-card {
    grid-template-columns: 1fr;
  }

  .chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
