:root {
  --paper: #f5f7fb;
  --ink: #17243c;
  --muted: #77839a;
  --line: #e7ecf4;
  --green: #3165ef;
  --lime: #c9f18a;
  --orange: #b77625;
}
body {
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 15px;
  background: var(--paper);
}
h1,
h2,
h3,
.brand {
  font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 7px 0 10px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #142039;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 32px 19px;
  gap: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  letter-spacing: -0.7px;
  font-size: 27px;
  padding: 0 10px;
}
.brand .brand-mark, .brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #c9f18a;
  color: #142039;
  font-weight: 800;
  font-size: 24px;
}
.brand small {
  font:
    11px "Aptos",
    "Segoe UI",
    sans-serif;
  display: block;
  color: #97a6c4;
  letter-spacing: 0;
  margin-top: 3px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #7f91b6;
  margin: 45px 14px 13px;
}
.owner-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.owner-nav button {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #a8b6cf;
  padding: 14px;
  font-weight: 550;
  text-align: left;
  border-radius: 11px;
}
.owner-nav button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.owner-nav button.active {
  background: #2c3e61;
  color: white;
}
.owner-nav button.active:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9f18a;
  margin-left: auto;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 11px 0;
  border-top: 1px solid #ffffff16;
  color: #97a6c4;
  font-size: 12px;
  line-height: 1.6;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9eefb;
  color: #385387;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-bottom: 18px;
}
.sidebar-user small {
  color: #97a6c4;
  display: block;
  font-size: 11px;
}
.workspace-bar {
  margin-left: 224px;
  background: white;
  border-bottom: 1px solid var(--line);
  height: 77px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.workspace-label {
  font-size: 13px;
  color: var(--muted);
}
.workspace-label strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  margin-top: 3px;
}
.bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-badge {
  font-size: 11px;
  color: #8994a8;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
}
.client-switch {
  border: 1px solid var(--line);
  background: white;
  color: #344563;
  padding: 10px 13px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.client-switch svg {
  width: 15px;
  height: 15px;
}
main {
  margin-left: 224px;
  max-width: none;
  padding: 32px 38px 60px;
}
.eyebrow {
  color: #7789a5;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.lead {
  font-size: 14px;
  color: #7c889d;
}
.top {
  margin-bottom: 25px;
}
.btn {
  background: #3165ef;
  border-radius: 10px;
  box-shadow: 0 3px 6px #3165ef13;
  padding: 12px 17px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #2353d2;
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: #f0f3f9;
  color: #4c607f;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #e6ecf5;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.card {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: 0 4px 20px #21375903;
  padding: 25px;
}
.layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}
.aside {
  background: #eef3ff;
  color: var(--ink);
  border: 1px solid #dfe8ff;
}
.aside .muted {
  color: #6c7e9b;
}
.aside .eyebrow {
  color: #3165ef;
}
.checklist li {
  border-color: #dfe7f5;
}
.checklist li:before {
  color: #3165ef;
}
.notice {
  background: #fff7e9;
  color: #927045;
  font-size: 12px;
}
.pill {
  background: #edf3ff;
  color: #5071ab;
  padding: 5px 9px;
  font-size: 11px;
}
.pill.orange {
  background: #fff3df;
  color: #ac7b30;
}
input,
select {
  border-color: #dde4ef;
  border-radius: 9px;
  padding: 12px;
  background: #fcfdff;
  font-size: 14px;
}
input:focus,
select:focus {
  outline: 2px solid #b5c9ff;
  outline-offset: 1px;
}
label {
  color: #43526c;
}
.steps {
  max-width: 760px;
}
.step.active {
  border-color: #3165ef;
  color: #3165ef;
}
.theme.selected {
  border-color: #3165ef;
}
.summary-row {
  border-color: #dae3f6;
}
.summary-row strong {
  color: #233c67;
}
.preview-head {
  border-radius: 0;
}
.footer-note {
  color: #8e98aa;
}
.intro-help {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edf3ff;
  border: 1px solid #dce8ff;
  border-radius: 12px;
  padding: 13px 17px;
  margin-bottom: 22px;
  color: #556e97;
  font-size: 13px;
}
.intro-help svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #3165ef;
}
.intro-help strong {
  color: #2e4d7e;
}
.stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
}
.stat strong {
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-size: 30px;
  margin-top: 9px;
}
.stat .muted {
  font-size: 12px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #edf3ff;
  color: #5e81d7;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
}
.stat:nth-child(2) .stat-icon {
  background: #fff5e6;
  color: #bf913d;
}
.stat:nth-child(3) .stat-icon {
  background: #eef7f1;
  color: #68a486;
}
.calendar {
  padding: 0;
}
.calendar-title {
  padding: 20px 22px;
  align-items: center;
}
.calendar-title h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.calendar-title .muted {
  font-size: 12px;
}
.day-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  color: #61708a;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.week-day {
  background: white;
  border: 0;
  padding: 10px 5px;
  color: #8c97a8;
  font-size: 11px;
  text-align: center;
}
.week-day strong {
  display: block;
  color: #40526f;
  font-size: 17px;
  margin: 5px 0;
}
.week-day.selected {
  background: #3165ef;
  color: #d8e4ff;
  border-radius: 10px;
}
.week-day.selected strong {
  color: white;
}
.week-day span {
  display: block;
  width: 4px;
  height: 4px;
  background: #a6badc;
  border-radius: 50%;
  margin: 0 auto;
}
.week-day.selected span {
  background: #c9f18a;
}
.agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: #8694a9;
  font-size: 12px;
  background: #fcfdff;
}
.agenda-header .pill {
  background: #f0f3f9;
  color: #647690;
}
.agenda {
  padding: 0 22px 10px;
}
.agenda-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  min-height: 94px;
}
.agenda-row:last-child {
  border-bottom: 0;
}
.row-time {
  color: #354968;
  font-weight: 650;
  font-size: 17px;
}
.row-time small {
  display: block;
  color: #91a0b5;
  font-weight: 400;
  font-size: 11px;
  margin-top: 6px;
}
.row-person {
  border-left: 3px solid #5985f7;
  padding-left: 14px;
}
.row-person strong {
  font-size: 14px;
}
.row-person p {
  font-size: 12px;
  color: #8090a8;
  margin: 6px 0 0;
  line-height: 1.3;
}
.agenda-row.bus .row-person {
  border-color: #e1b360;
}
.agenda-row.block .row-person {
  border-color: #b6c2d1;
}
.agenda-row.block {
  opacity: 0.7;
  min-height: 74px;
}
.row-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.row-edit {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #68809f;
  padding: 7px 10px;
  font-size: 12px;
}
.row-edit:hover {
  background: #f5f8fd;
}
.side-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.side-card-heading h2 {
  font-size: 16px;
  margin: 0;
}
.count-badge {
  background: #fff3df;
  color: #ad7c31;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
}
.request {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.request h3 {
  margin: 14px 0 6px;
  font-size: 15px;
}
.request-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7b8ba3;
  font-size: 12px;
  margin-top: 8px;
}
.request .actions {
  flex-wrap: nowrap;
  gap: 6px;
}
.request .actions button {
  flex: 1;
  padding: 9px 6px;
}
.request .btn {
  background: #edf3ff;
  color: #3165ef;
  box-shadow: none;
}
.request .btn.secondary {
  background: #f6f7fa;
  color: #8d99ac;
}
.side-explainer {
  font-size: 12px;
  color: #8794aa;
  line-height: 1.6;
  margin: 15px 0 24px;
}
.booking-status {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin: 10px 0;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ae82;
}
.status-dot.closed {
  background: #d6a74f;
}
.status-action {
  background: #f6f8fc;
  color: #607594;
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 12px;
}
.mini-help {
  margin-top: 20px;
  background: #f6f8fc;
  border-radius: 12px;
  padding: 17px;
}
.mini-help h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.mini-help p {
  margin: 0;
  font-size: 12px;
  color: #8794a8;
}
.tiny-link {
  color: #3165ef;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  margin-top: 12px;
}
.screen-note {
  font-size: 11px;
  color: #98a2b4;
  margin-top: 20px;
}
.toolbar input {
  font-size: 12px;
  padding: 8px;
  width: 135px;
}
.timeline {
  margin-right: 22px;
}
.event {
  background: #edf3ff;
  border-left-color: #5985f7;
}
.event.bus {
  background: #fff6e5;
  border-left-color: #dbae55;
}
.event.block {
  background: #f0f3f8;
  border-left-color: #b9c5d3;
}
.calendar-grid-switch {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.calendar-grid-switch button {
  border: 0;
  background: transparent;
  color: #8a99ae;
  font-size: 11px;
  padding: 5px 7px;
  border-radius: 4px;
}
.calendar-grid-switch button.active {
  background: #edf3ff;
  color: #3165ef;
}
.slots {
  grid-template-columns: repeat(5, 1fr);
}
.slot {
  border-radius: 9px;
  border-color: #e2e9f3;
  color: #58708f;
  padding: 12px 3px;
}
.slot.selected,
.date-btn.selected {
  background: #3165ef;
  color: white;
  border-color: #3165ef;
}
.date-btn {
  border-radius: 11px;
}
.date-list {
  padding-bottom: 4px;
}
.success-icon {
  background: #e5f5ee;
  color: #43a47c;
}
.checkbox {
  font-size: 12px;
}
.close {
  background: #edf3ff;
  color: #4e70af;
}
.toast {
  background: #233657;
  box-shadow: 0 8px 30px #23365730;
}
body[data-screen="booking"] header {
  display: none;
}
body[data-screen="booking"] .workspace-bar,
body[data-screen="booking"] main {
  margin-left: 0;
}
body[data-screen="booking"] main {
  max-width: 1040px;
  margin: 0 auto;
}
body[data-screen="booking"] .workspace-bar {
  padding-left: max(24px, calc((100vw - 1040px) / 2 + 38px));
  padding-right: max(24px, calc((100vw - 1040px) / 2 + 38px));
}
.customer-mode {
  font-size: 11px;
  color: #3165ef;
}
.return-owner {
  border: 1px solid #dce6f9;
  color: #3165ef;
  background: #f3f7ff;
  padding: 9px 12px;
  font-size: 12px;
}
@media (min-width: 1500px) {
  main {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 262px;
  }
}
@media (max-width: 1100px) {
  header {
    width: 190px;
    padding: 30px 12px;
  }
  .workspace-bar,
  main {
    margin-left: 190px;
  }
  .workspace-bar {
    padding: 0 24px;
  }
  main {
    padding: 27px 24px 50px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 16px;
  }
  .row-actions .pill {
    display: none;
  }
  .agenda-row {
    grid-template-columns: 65px 1fr auto;
    gap: 9px;
  }
  .agenda {
    padding: 0 18px;
  }
  .stat {
    padding: 18px 15px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 850px) {
  header {
    position: static;
    width: auto;
    padding: 15px 18px;
    background: white;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    color: #17243c;
    font-size: 23px;
    padding: 0;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 9px;
  }
  .brand small {
    display: none;
  }
  .nav-caption,
  .sidebar-footer {
    display: none;
  }
  .owner-nav {
    flex-direction: row;
    margin-top: 16px;
  }
  .owner-nav button {
    flex: 1;
    padding: 11px 13px;
    background: #f6f8fc;
    color: #7d8ca4;
    font-size: 13px;
    gap: 8px;
  }
  .owner-nav button.active {
    background: #edf3ff;
    color: #3165ef;
  }
  .owner-nav button.active:after {
    display: none;
  }
  .owner-nav button svg {
    width: 17px;
    height: 17px;
  }
  .workspace-bar {
    margin: 0;
    height: auto;
    min-height: 66px;
    padding: 12px 18px;
  }
  .workspace-label {
    font-size: 11px;
  }
  .workspace-label strong {
    font-size: 13px;
  }
  .bar-right {
    gap: 7px;
  }
  .demo-badge,
  .bar-right .avatar {
    display: none;
  }
  .client-switch {
    font-size: 11px;
    padding: 9px;
  }
  .client-switch svg {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 18px 45px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .top {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  .top h1 {
    font-size: 28px;
  }
  .top .lead {
    font-size: 12px;
    max-width: 230px;
  }
  .top .btn {
    font-size: 12px;
    padding: 11px 13px;
    white-space: nowrap;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px 12px;
    align-items: flex-start;
  }
  .stat-icon {
    display: none;
  }
  .stat .muted {
    font-size: 11px;
  }
  .stat strong {
    font-size: 26px;
  }
  .intro-help {
    font-size: 12px;
    padding: 12px;
  }
  .card {
    padding: 20px;
  }
  .calendar {
    padding: 0;
  }
  .calendar-title {
    padding: 18px;
  }
  .week-strip {
    padding: 12px 15px;
  }
  .agenda-header {
    padding: 14px 18px;
  }
  .agenda-row {
    grid-template-columns: 60px 1fr auto;
    gap: 8px;
  }
  .row-person {
    padding-left: 10px;
  }
  .row-time {
    font-size: 15px;
  }
  .row-person strong {
    font-size: 13px;
  }
  .row-person p {
    font-size: 11px;
  }
  .row-edit {
    padding: 7px;
    font-size: 11px;
  }
  .row-actions .pill {
    display: none;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .slots {
    grid-template-columns: repeat(4, 1fr);
  }
  .aside {
    padding: 22px;
  }
  .steps {
    margin: 20px 0;
  }
  .step {
    font-size: 11px;
  }
  .booking-status .status-action {
    max-width: 300px;
  }
  .side-explainer {
    max-width: 430px;
  }
  body[data-screen="booking"] .workspace-bar {
    padding: 15px 18px;
  }
  .customer-mode {
    font-size: 10px;
  }
  .theme-grid {
    gap: 7px;
  }
  .theme {
    padding: 7px;
  }
  .swatch {
    height: 75px;
  }
  .screen-note {
    line-height: 1.5;
  }
  .calendar-title .toolbar {
    gap: 6px;
  }
  .toolbar input {
    width: 120px;
  }
}
@media (max-width: 390px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .top .lead {
    max-width: none;
  }
  .intro-help {
    align-items: flex-start;
  }
  .agenda-row {
    grid-template-columns: 50px 1fr auto;
  }
  .row-edit {
    font-size: 10px;
  }
  .row-time {
    font-size: 14px;
  }
  .calendar-title h2 {
    font-size: 16px;
  }
  .calendar-title {
    gap: 8px;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    padding: 12px 9px;
  }
  .calendar-grid-switch {
    display: none;
  }
  .workspace-label strong {
    max-width: 150px;
  }
  .week-day {
    padding: 8px 2px;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .swatch {
    height: 55px;
  }
  .theme {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: center;
  }
  .swatch {
    margin: 0;
  }
  .return-owner {
    font-size: 11px;
  }
}
