@font-face {
  font-family: Inter;
  src: local("Inter");
}
* {
  box-sizing: border-box;
}
:root {
  --blue: #165dca;
  --blue-soft: #edf4ff;
  --navy: #142b4a;
  --text: #203550;
  --muted: #75849a;
  --line: #e7edf4;
  --bg: #f7f9fc;
  --danger: #b4233a;
  --green: #167957;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #88b6ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button svg {
  width: 18px;
  height: 18px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 42px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #f3f6fa;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 7px #165dca18;
}
.btn.primary:hover {
  filter: brightness(0.94);
}
.btn.danger {
  color: var(--danger);
  border-color: #f0c8ce;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.icon {
  padding: 9px;
  width: 40px;
  min-height: 40px;
}
.btn.wide {
  width: 100%;
}
.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  background: #eef2f7;
  color: #5c6d83;
  white-space: nowrap;
}
.badge.confirmed,
.badge.visible,
.badge.sent,
.badge.approved {
  color: #167957;
  background: #e8f6f0;
}
.badge.pending_payment,
.badge.pending,
.badge.sending,
.badge.payment_review {
  color: #9c6414;
  background: #fff4da;
}
.badge.cancelled,
.badge.failed,
.badge.rejected,
.badge.blocked {
  color: #b4233a;
  background: #fcecef;
}
.badge.paid {
  color: var(--blue);
  background: var(--blue-soft);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field > label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--text);
  min-height: 44px;
}
.field input:focus,
.field textarea:focus,
.input:focus {
  border-color: var(--blue);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span2 {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 12px 0;
}
.check input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: #edf4ff;
  color: #29558b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  border: 1px solid #d6e6ff;
}
.notice.warning {
  background: #fff8e8;
  border-color: #f3e3ba;
  color: #956018;
}
.notice.error {
  background: #fff0f2;
  border-color: #f8d9de;
  color: var(--danger);
}
.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 42px;
  height: 42px;
  color: #a6b8d1;
  margin-bottom: 16px;
}
.empty h3 {
  color: var(--text);
  margin: 0 0 8px;
}
.empty p {
  font-size: 14px;
  max-width: 390px;
  margin: 0 auto 20px;
}
.loading {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-size: 20px;
  letter-spacing: -1.7px;
  font-weight: 750;
}
.brand-icon span {
  opacity: 0.8;
}
.auth {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100vh;
  background: white;
}
.auth-art {
  background: #112d54;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 50px 64px;
  position: relative;
  overflow: hidden;
}
.auth-art .brand {
  color: white;
}
.auth-art .brand-icon {
  background: #ffffff18;
}
.auth-story {
  margin: auto 0;
  max-width: 440px;
  padding: 55px 0;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -1.6px;
  margin-bottom: 22px;
}
.auth-story p {
  color: #b8cae3;
  font-size: 17px;
}
.auth-drawing {
  border: 1px solid #ffffff25;
  border-radius: 14px;
  padding: 20px;
  margin-top: 38px;
  background: #ffffff06;
  transform: rotate(-2deg);
  box-shadow: 0 20px 60px #06132930;
}
.art-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0;
  color: #b0c7e3;
  font-size: 12px;
  text-align: center;
}
.art-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.art-slot {
  height: 56px;
  border-radius: 7px;
  background: #ffffff09;
}
.art-slot.blue {
  background: #5595f6;
}
.art-slot.pale {
  background: #b7dbf5;
}
.art-slot.line {
  border: 1px dashed #ffffff35;
  background: transparent;
}
.auth-foot {
  color: #7d9bbf;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.auth-form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
}
.auth-form {
  width: min(100%, 420px);
}
.auth-form h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.auth-form > .muted {
  margin-bottom: 32px;
}
.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 24px;
  font-size: 14px;
}
.auth-switch {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 238px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 16px;
  z-index: 10;
}
.sidebar .brand {
  padding: 0 14px;
  margin-bottom: 34px;
}
.org-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  background: #fbfcfe;
}
.org-picker strong {
  font-size: 13px;
  display: block;
  max-width: 137px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-picker small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.org-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: var(--blue-soft);
  border-radius: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #9ba7b8;
  margin: 0 14px 12px;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  color: #64758c;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
}
.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}
.nav-link:hover {
  background: #f4f7fb;
}
.nav-link.active:hover {
  background: var(--blue-soft);
}
.nav-link svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
}
.public-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #d8e2ef;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  margin: 24px 4px;
  color: var(--blue);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8eef7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  color: #526b8d;
  flex-shrink: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
}
.profile small {
  color: var(--muted);
  font-size: 11px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 20px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timezone {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.topbar-actions .avatar {
  width: 30px;
  height: 30px;
}
.content {
  padding: 32px 36px 48px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.date-heading {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.stat {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 19px 22px;
}
.stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.stat-top svg {
  width: 15px;
  height: 15px;
}
.stat-number {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
}
.stat-sub {
  font-size: 11px;
  color: var(--muted);
  margin-left: 9px;
}
.agenda-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-nav .btn {
  background: white;
}
.date-nav input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 7px;
  max-width: 160px;
}
.segments {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
}
.segments button {
  border: 0;
  border-radius: 5px;
  padding: 8px 13px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.segments button.active {
  background: #ecf2fa;
  color: var(--navy);
}
.filter-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  max-width: 210px;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
  width: 16px;
}
.search input {
  padding: 10px 12px 10px 37px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  width: 220px;
}
.calendar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-head {
  display: grid;
  grid-template-columns: 64px repeat(var(--cols), minmax(125px, 1fr));
  border-bottom: 1px solid var(--line);
}
.calendar-head > div {
  padding: 17px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
  font-size: 12px;
}
.calendar-head > div small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.calendar-head .avatar {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  font-size: 10px;
  background: var(--person-soft, #edf4ff);
  color: var(--person-color, var(--blue));
}
.calendar-body {
  max-height: 650px;
  overflow: auto;
}
.calendar-grid {
  display: grid;
  grid-template-columns: 64px repeat(var(--cols), minmax(125px, 1fr));
  position: relative;
  min-height: 720px;
}
.time-column {
  border-right: 1px solid var(--line);
  position: relative;
}
.time-label {
  height: 96px;
  padding: 0 9px;
  font-size: 10px;
  color: #8b9bb1;
  transform: translateY(-6px);
  text-align: right;
}
.time-label:first-child {
  transform: translateY(0);
}
.person-column {
  position: relative;
  border-right: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 47px,
    #f3f6fa 47px,
    #f3f6fa 48px,
    transparent 48px,
    transparent 95px,
    var(--line) 95px,
    var(--line) 96px
  );
}
.appointment-card {
  position: absolute;
  left: 5px;
  right: 5px;
  min-height: 28px;
  border: 0;
  border-left: 3px solid var(--person-color, var(--blue));
  border-radius: 5px;
  background: var(--person-soft, #edf4ff);
  color: var(--text);
  text-align: left;
  padding: 6px 8px;
  line-height: 1.15;
  overflow: hidden;
  font-size: 11px;
  cursor: pointer;
  transition: filter 0.15s;
}
.appointment-card:hover {
  filter: brightness(0.96);
}
.appointment-card strong {
  display: block;
  font-size: 12px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-card .service-name {
  color: #60738d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-size: 10px;
}
.appointment-card.cancelled {
  opacity: 0.45;
  text-decoration: line-through;
}
.calendar-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.table th {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #fafbfd;
  padding: 15px 20px;
  font-weight: 600;
  white-space: nowrap;
}
.table td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr.clickable {
  cursor: pointer;
}
.table tbody tr.clickable:hover {
  background: #fafcfe;
}
.table td strong {
  font-weight: 600;
}
.table td small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.service-card .service-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 22px;
}
.service-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}
.service-meta {
  display: flex;
  gap: 18px;
  color: #657791;
  font-size: 12px;
  margin-bottom: 20px;
}
.service-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.service-card footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
  margin-bottom: 20px;
}
.team-card h3 {
  margin: 0 0 6px;
}
.team-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-menu button {
  background: transparent;
  border: 0;
  padding: 13px 16px;
  text-align: left;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
}
.settings-menu button.active {
  background: #eaf1fc;
  color: var(--blue);
  font-weight: 600;
}
.settings-card {
  max-width: 800px;
}
.section-line {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.schedule-day {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.schedule-day:last-child {
  border-bottom: 0;
}
.schedule-day .check {
  margin: 10px 0;
}
.time-range {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.time-range input {
  width: 120px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
}
.time-range > span {
  color: var(--muted);
  font-size: 12px;
}
.add-block {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  padding: 5px 0;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs button {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 85px 90px 40px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
}
.field-row .check {
  margin: 0;
}
.field-row input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  width: 100%;
}
.field-row.header {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.embed-code {
  background: #f3f6fb;
  padding: 18px;
  border-radius: 8px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0b203c69;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(100%, 620px);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 80px #0c214530;
}
.modal.large {
  width: min(100%, 800px);
}
.modal-head {
  padding: 24px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
}
.modal-body {
  padding: 26px 28px 30px;
}
.detail-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.detail-heading .avatar {
  width: 50px;
  height: 50px;
  font-size: 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0;
}
.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.detail-grid p {
  margin: 0;
  font-size: 14px;
}
.modal-error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.slot {
  background: white;
  border: 1px solid var(--line);
  padding: 11px 6px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
}
.slot.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 650;
}
.booking-page {
  min-height: 100vh;
  background: #f5f8fc;
}
.booking-top {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.booking-powered {
  font-size: 12px;
  color: var(--muted);
}
.booking-container {
  max-width: 1080px;
  margin: 46px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.booking-aside {
  position: sticky;
  top: 36px;
}
.booking-aside .org-avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.booking-aside h1 {
  font-size: 25px;
  line-height: 1.3;
}
.booking-aside p {
  font-size: 14px;
  color: var(--muted);
}
.booking-contact {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.booking-contact div {
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.booking-contact svg {
  width: 16px;
  height: 16px;
}
.booking-main {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
}
.steps {
  display: flex;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9aa8bb;
}
.step span {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.step.active {
  color: var(--blue);
  font-weight: 650;
}
.step.active span {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.booking-main h2 {
  font-size: 21px;
  margin-bottom: 8px;
}
.booking-main > .muted {
  font-size: 14px;
  margin-bottom: 24px;
}
.book-service {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: white;
  text-align: left;
  color: var(--text);
  margin: 14px 0;
}
.book-service:hover {
  border-color: var(--blue);
  background: #fafcff;
}
.book-service .service-avatar {
  width: 46px;
  height: 46px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.book-service .info {
  flex: 1;
}
.book-service strong {
  font-size: 16px;
  font-weight: 600;
}
.book-service p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.book-service .price {
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.book-service .price small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.booking-summary {
  padding: 20px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 26px;
}
.booking-summary strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.booking-summary p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
}
.date-strip {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
  overflow: auto;
  padding-bottom: 8px;
}
.date-tile {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  min-width: 65px;
  background: white;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.date-tile strong {
  display: block;
  font-size: 20px;
  color: var(--text);
  margin-top: 7px;
}
.date-tile.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffffa8;
}
.date-tile.selected strong {
  color: white;
}
.success-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e7f6ef;
  color: #167957;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 24px;
}
.success-mark svg {
  width: 32px;
  height: 32px;
}
.success-view {
  text-align: center;
  padding: 10px 0;
}
.success-view h2 {
  font-size: 25px;
}
.success-view > p {
  font-size: 14px;
  color: var(--muted);
}
.success-view .booking-summary {
  text-align: left;
  margin-top: 28px;
}
.manage-container {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 20px;
}
.manage-container .card {
  padding: 32px;
}
.manage-container .brand {
  margin-bottom: 30px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.color-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}
.color-preview input {
  width: 60px;
  padding: 4px;
  height: 44px;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #142b4a;
  color: white;
  padding: 15px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #142b4a25;
  font-size: 14px;
  max-width: 400px;
}
.toast.error {
  background: #a7223c;
}
.mobile-menu {
  display: none;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  min-width: 770px;
}
.week-day {
  border-right: 1px solid var(--line);
  min-height: 430px;
  padding: 12px;
}
.week-day h3 {
  text-align: center;
  font-size: 12px;
  padding: 8px 0 18px;
  margin: 0;
}
.week-appt {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border: 0;
  border-left: 3px solid var(--person-color, var(--blue));
  padding: 10px 8px;
  text-align: left;
  background: var(--person-soft, #edf4ff);
  border-radius: 5px;
  font-size: 11px;
  color: var(--text);
}
.week-appt strong {
  display: block;
  margin: 6px 0;
}
.week-appt small {
  color: var(--muted);
  font-size: 10px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.padded {
  padding: 24px;
}
.spacer {
  flex: 1;
}
.error-page {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  text-align: center;
}
@media (min-width: 1500px) {
  .sidebar {
    width: 252px;
  }
  .shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  .content {
    padding: 38px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-sub {
    display: block;
    margin: 5px 0 0;
  }
  .timezone {
    display: none;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
  .booking-container {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
  }
  .settings-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 10px 0 40px #10234020;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .content {
    padding: 24px 20px;
  }
  .topbar-actions .btn {
    font-size: 12px;
    padding: 8px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb > span {
    display: none;
  }
  .stats {
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    margin: 22px 0;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 25px;
  }
  .page-heading .btn {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .date-heading {
    font-size: 19px;
  }
  .agenda-controls {
    gap: 12px;
  }
  .search input {
    width: 180px;
  }
  .calendar {
    overflow: auto;
  }
  .calendar-head,
  .calendar-grid {
    min-width: 500px;
  }
  .settings-layout {
    display: block;
  }
  .settings-menu {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 22px;
    gap: 4px;
    white-space: nowrap;
  }
  .settings-menu button {
    padding: 10px;
    font-size: 12px;
  }
  .settings-card {
    padding: 22px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-form-wrap {
    padding: 45px 24px;
  }
  .auth-form:before {
    content: "OC2 Agenda";
    display: block;
    font-weight: 750;
    color: var(--blue);
    font-size: 19px;
    margin-bottom: 50px;
  }
  .booking-container {
    display: block;
    margin: 28px auto;
  }
  .booking-aside {
    position: static;
    margin-bottom: 28px;
  }
  .booking-aside .org-avatar {
    display: none;
  }
  .booking-aside h1 {
    font-size: 23px;
  }
  .booking-contact {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 6px;
    border: 0;
  }
  .booking-contact div {
    font-size: 12px;
    margin: 5px 0;
  }
  .booking-aside > p {
    margin-bottom: 8px;
  }
  .booking-main {
    padding: 24px;
  }
  .booking-top {
    padding: 18px 24px;
  }
  .booking-powered {
    font-size: 10px;
  }
  .steps {
    gap: 13px;
  }
  .step {
    font-size: 11px;
  }
  .book-service {
    padding: 16px;
    gap: 12px;
  }
  .book-service strong {
    font-size: 14px;
  }
  .book-service .price {
    font-size: 12px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-body {
    padding: 22px 20px;
  }
  .schedule-day {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }
  .time-range {
    gap: 5px;
  }
  .time-range input {
    width: 100px;
  }
  .table th,
  .table td {
    padding: 14px;
  }
  .topbar-actions .ghost {
    display: none;
  }
  .service-grid {
    gap: 15px;
  }
  .form-grid {
    gap: 0 14px;
  }
  .field-row {
    gap: 8px;
    grid-template-columns: 1fr 68px 75px 28px;
  }
}
@media (max-width: 450px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .booking-main {
    padding: 20px;
  }
  .booking-container {
    padding: 0 14px;
  }
  .booking-powered {
    max-width: 95px;
    text-align: right;
  }
  .detail-grid {
    gap: 18px;
  }
  .schedule-day {
    display: block;
  }
  .schedule-day .check {
    margin: 4px 0 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .btn {
    padding: 10px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .time-range input {
    width: 115px;
  }
  .book-service .service-avatar {
    width: 36px;
    height: 36px;
  }
  .card {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
