:root {
  color-scheme: light;
}

body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
a {
  -webkit-user-select: none;
  user-select: none;
}

.top {
  flex-wrap: wrap;
}

.top .brand img {
  max-width: min(250px, 52vw);
  height: auto !important;
  max-height: 72px;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#installAppDialog {
  width: min(390px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 18px 60px #18102340;
}

#installAppDialog::backdrop {
  background: #171020a8;
}

#installAppDialog h2 {
  margin: 0 0 8px;
}

#installAppDialog .install-steps {
  padding-left: 22px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .top {
    align-items: flex-start;
  }

  .top .brand {
    min-width: 0;
    flex: 1 1 100%;
  }

  .top .brand img {
    width: min(220px, 58vw) !important;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }
}

/* Landing page refresh */
#landing .landing-hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 58px) 0 54px;
}

#landing .hero-copy {
  max-width: 560px;
}

#landing .hero-copy .eyebrow,
#landing .landing-kicker {
  color: #7453a1;
}

#landing .hero-copy h1 {
  margin: 18px 0 15px;
  color: #30263c;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .99;
  letter-spacing: -2.7px;
}

#landing .hero-copy h1 span {
  color: #7652a6;
}

#landing .hero-copy > p {
  max-width: 500px;
  margin: 0;
  color: #6e6578;
  font-size: clamp(16px, 1.7vw, 18px);
}

#landing .hero-copy .actions {
  margin-top: 23px;
}

#landing .hero-copy .primary {
  background: #67478f;
  border-color: #67478f;
  color: #fff;
}

#landing .hero-copy .primary:hover {
  background: #533777;
}

#landing .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 20px;
  color: #6e6578;
  font-size: 12px;
  font-weight: 700;
}

#landing .hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#landing .hero-proof i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #ebe3f4;
  color: #67478f;
  font-size: 11px;
  font-style: normal;
}

#landing .hero-visual {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 30px;
  background: #e9e0f0;
  box-shadow: 0 22px 55px #38234c1c;
}

#landing .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

#landing .hero-photo-shade {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #261a3038);
  pointer-events: none;
}

#landing .hero-visual-label {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #ffffffc7;
  border-radius: 99px;
  background: #ffffffed;
  color: #55456b;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 18px #30243a16;
}

#landing .hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46a487;
  box-shadow: 0 0 0 4px #46a48722;
}

#landing .hero-floating-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(290px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px #24182d2e;
}

#landing .hero-floating-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #766c80;
  font-size: 10px;
  letter-spacing: .08em;
}

#landing .hero-floating-heading b {
  color: #72549a;
  font-size: 13px;
  letter-spacing: 0;
}

#landing .hero-floating-card > strong,
#landing .hero-floating-card > small {
  display: block;
}

#landing .hero-floating-card > strong {
  color: #362d42;
  font-size: 15px;
}

#landing .hero-floating-card > small {
  margin-top: 3px;
  color: #7a7283;
  font-size: 12px;
}

#landing .hero-floating-progress {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee9f3;
}

#landing .hero-floating-progress span {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d6cba, #d78aa6);
}

#landing .landing-steps {
  margin: 14px 0 54px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #eee8f3;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, #faf7fd);
  box-shadow: 0 14px 40px #4b35600a;
}

#landing .landing-section-heading {
  max-width: 620px;
  margin: 0 auto 25px;
  text-align: center;
}

#landing .landing-kicker {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#landing .landing-section-heading h2,
#landing .showcase-copy h2 {
  margin: 7px 0;
  color: #352b42;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -1px;
}

#landing .landing-section-heading p {
  margin: 7px 0 0;
  font-size: 14px;
}

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

#landing .step-card {
  position: relative;
  min-height: 208px;
  padding: 20px;
  border: 1px solid #eee8f3;
  border-radius: 18px;
  background: #fff;
}

#landing .step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #f0eaf7;
  color: #70518f;
}

#landing .step-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#landing .step-number {
  position: absolute;
  top: 22px;
  right: 20px;
  color: #b4a6c5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

#landing .step-card h3 {
  margin: 19px 0 5px;
  color: #3b3049;
  font-size: 16px;
}

#landing .step-card p {
  margin: 0;
  font-size: 13px;
}

#landing .landing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  margin: 0 0 55px;
}

#landing .showcase-visual {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 25px;
  background: #e7deed;
  box-shadow: 0 16px 40px #38234c16;
}

#landing .showcase-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

#landing .showcase-note {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #ffffffd9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px #24182d24;
}

#landing .showcase-note-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e8f5ee;
  color: #378364;
  font-weight: 900;
}

#landing .showcase-note small,
#landing .showcase-note strong {
  display: block;
}

#landing .showcase-note small {
  color: #82798a;
  font-size: 10px;
}

#landing .showcase-note strong {
  margin-top: 2px;
  color: #443751;
  font-size: 12px;
}

#landing .showcase-copy h2 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 44px);
}

#landing .showcase-copy > p {
  font-size: 15px;
}

#landing .showcase-points {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: #554a63;
  font-size: 13px;
  font-weight: 750;
}

#landing .showcase-points span {
  display: flex;
  align-items: center;
  gap: 10px;
}

#landing .showcase-points i {
  color: #8a6aae;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

#landing .features .landing-section-heading {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

#landing .features .feature {
  border-color: #eee8f3;
  border-radius: 18px;
  box-shadow: 0 10px 28px #4b35600a;
}

/* More visible professional colors and appointment details */
.professional-dot {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pro-color) 17%, white);
}

#weekCalendar .timeline-event[data-appointment-id] {
  cursor: pointer;
  border-left-width: 4px;
  background: color-mix(in srgb, var(--pro-color) 21%, white);
  box-shadow: 0 2px 7px #46365b18;
  transition: box-shadow .15s ease, filter .15s ease;
}

#weekCalendar .timeline-event[data-appointment-id]:hover,
#weekCalendar .timeline-event[data-appointment-id]:focus-visible {
  z-index: 4;
  outline: 2px solid color-mix(in srgb, var(--pro-color) 65%, white);
  outline-offset: 1px;
  filter: saturate(1.08);
  box-shadow: 0 5px 14px #46365b22;
}

#weekCalendar .month-event[data-appointment-id] {
  cursor: pointer;
  background: color-mix(in srgb, var(--pro-color) 20%, white);
  font-weight: 750;
}

#weekCalendar .month-event[data-appointment-id]:hover,
#weekCalendar .month-event[data-appointment-id]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pro-color) 65%, white);
  outline-offset: 1px;
}

.appointment-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.appointment-detail-heading h3 {
  margin: 4px 0 0;
  color: #3d314b;
  font-size: 22px;
}

.appointment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.appointment-detail-grid > div,
.appointment-observation {
  padding: 13px;
  border: 1px solid #eee8f3;
  border-radius: 13px;
  background: #fcfaff;
}

.appointment-detail-grid small,
.appointment-detail-grid strong,
.appointment-observation small {
  display: block;
}

.appointment-detail-grid small,
.appointment-observation small {
  color: #82798a;
  font-size: 11px;
  font-weight: 750;
}

.appointment-detail-grid strong {
  margin-top: 5px;
  color: #463a53;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.appointment-observation {
  margin-top: 10px;
  background: #f7f2fb;
}

.appointment-observation p {
  margin: 6px 0 0;
  color: #4e435b;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#publicStepDetails .public-field textarea {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #e3dfe8;
  border-radius: 11px;
  background: #fbfafc;
  color: #302b38;
}

#publicStepDetails .public-field textarea:focus {
  outline: 2px solid #c7b7df;
}

@media (max-width: 780px) {
  #landing .landing-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 18px;
  }

  #landing .hero-visual {
    min-height: 360px;
  }

  #landing .landing-showcase {
    grid-template-columns: 1fr;
  }

  #landing .showcase-visual {
    min-height: 320px;
  }

  #landing .steps-grid {
    grid-template-columns: 1fr;
  }

  #landing .step-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  #landing .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
    letter-spacing: -1.9px;
  }

  #landing .hero-proof {
    gap: 8px 12px;
  }

  #landing .hero-visual {
    min-height: 330px;
    border-width: 5px;
    border-radius: 22px;
  }

  #landing .hero-floating-card {
    right: 12px;
    bottom: 12px;
  }

  #landing .landing-steps {
    padding: 20px 14px;
    border-radius: 20px;
  }

  #landing .showcase-visual {
    min-height: 270px;
  }

  .appointment-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* Native-feeling business navigation on phones */
@media (max-width: 780px) {
  #dashboard:not(.hidden) .mobile-nav {
    position: fixed;
    z-index: 30;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eee8f3;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 -8px 28px #30203e12;
    backdrop-filter: blur(18px);
  }

  #dashboard:not(.hidden) .mobile-nav button {
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 12px;
    background: transparent;
    color: #766f82;
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
  }

  #dashboard:not(.hidden) .mobile-nav button.active {
    background: #f2ecfa;
    color: #67419a;
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #dashboard .dash {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  #dashboard .side {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 7px 20px #2a173015;
  }

  #dashboard .side .brand {
    margin: 0;
    white-space: nowrap;
  }

  #dashboard .side nav {
    display: none;
  }

  #dashboard .side .side-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  #dashboard #userEmail {
    max-width: 28vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
  }

  #dashboard #logoutBtn {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  #dashboard:not(.hidden) .mobile-nav button {
    font-size: 8px;
  }
}

.industry-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;max-width:620px}
.industry-chips span{padding:7px 11px;border:1px solid #e6dff0;border-radius:999px;background:#fff;color:#56486b;font-size:12px;font-weight:650;box-shadow:0 3px 10px #38294a08}
.public-notification-preferences{display:grid;gap:9px;margin:8px 0 14px;padding:13px;border:1px solid #e7e0ef;border-radius:14px;background:#fbf9fd}
.public-notification-option{display:flex;align-items:flex-start;gap:9px;color:var(--ink,#302b38);font-size:13px;font-weight:600}
.public-notification-option input{width:18px;height:18px;flex:none;margin:1px 0 0;accent-color:#7256a4}
.public-push-choice{display:grid;gap:6px;margin:16px 0;padding:14px;border:1px solid #e7e0ef;border-radius:14px;background:#fbf9fd;text-align:left}
.public-push-choice p{margin:0;font-size:13px}
.business-notification-settings{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#fff,#fbf9fd)}
.business-notification-settings h3{margin:5px 0}
.business-notification-heading p{margin:4px 0 14px}
.business-notification-settings form{display:grid;gap:10px}
.business-notification-settings .field{margin:0}
.business-push-actions{display:grid;justify-items:start;gap:7px;padding-top:6px}
.business-push-actions small{line-height:1.45}
@media(max-width:560px){.business-notification-settings{padding:15px}.industry-chips{gap:6px}.industry-chips span{font-size:11px;padding:6px 9px}}
