.app-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  position: fixed;
  width: 245px;
  top: 0;
  bottom: 0;
  overflow: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 13px 30px;
  font-size: 26px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 8px 13px 12px;
  font-weight: 700;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav button,
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--muted);
  width: 100%;
  min-height: 42px;
  text-decoration: none;
}
.side-nav button:hover,
.side-nav a:hover {
  background: var(--bg);
}
.side-nav button.active,
.side-nav a.active {
  background: var(--pale);
  color: var(--primary);
  font-weight: 650;
}
.side-nav .icon {
  width: 19px;
  height: 19px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 30px 12px 0;
}
.sidebar-footer .help-card {
  padding: 16px;
  background: var(--pale);
  border-radius: 13px;
  font-size: 12px;
}
.sidebar-footer .help-card p {
  font-size: 12px;
  margin: 7px 0;
}
.sidebar-footer a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.app-main {
  grid-column: 2;
  min-width: 0;
}
.app-topbar {
  height: 83px;
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.topbar-title {
  display: none;
}
.top-location {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}
.top-location small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
#detect-location { background: transparent; border: 0; color: var(--text); text-align: left; cursor: pointer; min-width: 0; padding: 6px; border-radius: 8px; }
#detect-location:hover, #detect-location:focus-visible { background: var(--pale); outline: 2px solid var(--primary); }
#detect-location > div { min-width: 0; }
#top-location { display: block; max-width: 240px; overflow-wrap: anywhere; }
.top-search {
  width: 300px;
  min-width: 0;
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0 12px;
  border-radius: 9px;
  margin-left: auto;
  max-width: 300px;
}
.top-search input {
  flex: 1 1 0;
  width: 0;
  border-radius: 0;
  line-height: 1.4;
  border: 0;
  background: none;
  font-size: 13px;
  min-width: 0;
}
.top-search > .icon, .hero-search .search-field > span { flex-shrink: 0; }
.top-search input::placeholder, .hero-search input::placeholder { color: var(--muted); opacity: 1; }
html[data-theme="dark"] .top-search input, html[data-theme="dark"] .hero-search input { background: transparent; }
.voice-search {
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--pale);
  cursor: pointer;
}
.voice-search .icon { width: 20px; height: 20px; }
.voice-search[hidden] { display: none; }
.voice-search.is-listening { outline: 3px solid var(--cyan); background: var(--pale); }
.voice-search:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.top-search .voice-search { width: 30px; height: 30px; flex-basis: 30px; background: transparent; }
.hero-search .search-field input { min-width: 0; flex: 1; }
.icon-button {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 9px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard-theme-toggle { width: 44px; height: 44px; flex: 0 0 44px; color: var(--text); font-size: 22px; padding: 0; }
html[data-theme="dark"] :is(.side-label, .service-card .rating) { color: var(--muted); }
html[data-theme="dark"] :is(.side-nav a.active, .topbar-title, .top-user, .metric small, .chart-caption, .timeline li.done, .booking-steps > div.active, .offer-card h3) { color: #8ec5ff; }
html[data-theme="dark"] .offer-card { background: var(--pale); }
.avatar {
  height: 39px;
  width: 39px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #075fcf;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-form .provider-summary .avatar {
  width: 80px;
  height: 80px;
}
[data-profile-photo-status] {
  overflow-wrap: anywhere;
}
[data-profile-photo-status] .text-button {
  color: var(--primary);
  text-decoration: underline;
  padding: 4px 0;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.top-user small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dashboard-content {
  padding: 32px 38px 55px;
  max-width: 1650px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.page-heading p {
  font-size: 14px;
  margin-top: 7px;
}
.page-heading .date-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.welcome-banner {
  background: var(--primary);
  color: white;
  border-radius: 19px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  margin-bottom: 27px;
}
.welcome-copy {
  padding: 28px 32px;
}
.welcome-copy .eyebrow {
  color: #d9eaff;
  font-size: 10px;
  margin-bottom: 13px;
}
.welcome-copy h2 {
  font-size: 28px;
  max-width: 400px;
  margin-bottom: 10px;
}
.welcome-copy p {
  color: #d9eaff;
  font-size: 13px;
  max-width: 370px;
}
.welcome-copy .btn {
  background: #fff;
  color: var(--primary);
  margin-top: 21px;
}
.welcome-banner img {
  width: 100%;
  height: 100%;
  max-height: 255px;
  object-fit: cover;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 28px;
}
.metric-grid.admin-metrics {
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--white);
  position: relative;
}
.metric .metric-label {
  font-size: 12px;
  color: var(--muted);
  padding-right: 25px;
}
.metric strong {
  font-size: 29px;
  line-height: 1.4;
  display: block;
  font-weight: 550;
  margin-top: 7px;
}
.metric .icon {
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--muted);
  width: 20px;
}
.metric small {
  font-size: 11px;
  color: var(--primary);
}
.dashboard-content .section-title {
  margin: 28px 0 18px;
}
.dashboard-content .section-title h2 {
  font-size: 21px;
}
.dashboard-content .service-grid {
  gap: 14px;
}
.dashboard-content .service-card {
  padding: 18px;
}
.dashboard-content .service-card p {
  font-size: 12px;
}
.dashboard-content .service-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 21px;
}
.dashboard-content .service-icon svg {
  width: 25px;
  height: 25px;
}
.dashboard-content .service-card h3 {
  font-size: 15px;
}
.dashboard-content .service-bottom {
  gap: 8px;
}
.dashboard-content .service-bottom .btn {
  font-size: 11px;
  padding: 7px 8px;
}
.dashboard-content .service-card .rating {
  right: 15px;
  top: 19px;
  font-size: 11px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 23px;
  margin-bottom: 22px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-title h2 {
  font-size: 19px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 23px;
}
.booking-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  padding: 21px;
  margin-bottom: 16px;
}
.booking-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.booking-top .service-icon {
  width: 48px;
  height: 48px;
  margin: 0;
}
.booking-top h3 {
  font-size: 16px;
}
.booking-top small {
  font-size: 12px;
  color: var(--muted);
}
.booking-top .pill {
  margin-left: auto;
}
.booking-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
}
.booking-meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.booking-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.provider-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
  margin-top: 18px;
  font-size: 14px;
}
.provider-summary small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.provider-summary a {
  margin-left: auto;
  color: var(--primary);
}
.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 24px 0;
  gap: 0;
}
.timeline li {
  position: relative;
  padding: 32px 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.timeline li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 3px solid #d9e4f6;
  border-radius: 50%;
  background: var(--white);
  z-index: 1;
}
.timeline li:after {
  content: "";
  position: absolute;
  left: 15px;
  right: 0;
  top: 10px;
  height: 2px;
  background: #d9e4f6;
}
.timeline li:last-child:after {
  display: none;
}
.timeline li.done {
  color: var(--primary);
}
.timeline li.done:before {
  background: var(--primary);
  border-color: var(--primary);
}
.timeline li.done:after {
  background: var(--primary);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 330px;
}
.toolbar select {
  max-width: 200px;
}
.toolbar .btn {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
}
th {
  background: var(--pale);
  color: var(--muted);
  padding: 15px 18px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--border);
}
td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
td .actions {
  display: flex;
  gap: 6px;
}
.table-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-name .avatar {
  width: 32px;
  height: 32px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.tabs button {
  border: 1px solid var(--border);
  padding: 8px 16px;
  background: var(--white);
  border-radius: 24px;
  font-size: 13px;
  color: var(--muted);
}
.tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.booking-steps {
  display: flex;
  gap: 7px;
  margin-bottom: 25px;
}
.booking-steps > div {
  flex: 1;
  border-top: 3px solid var(--border);
  padding-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.booking-steps > div.active {
  border-color: var(--primary);
  color: var(--primary);
}
.address-choice {
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin: 10px 0;
  display: flex;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.time-option {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.payment-option {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 400;
}
.success-mark {
  height: 64px;
  width: 64px;
  background: var(--pale);
  border-radius: 50%;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 4px auto 22px;
}
.success-mark .icon {
  width: 32px;
  height: 32px;
}
.success {
  text-align: center;
}
.success h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.success p {
  font-size: 14px;
}
.chart {
  display: flex;
  align-items: end;
  gap: 15px;
  height: 190px;
  border-bottom: 1px solid var(--border);
  padding-top: 16px;
  margin: 25px 0 5px;
}
.chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: 100%;
}
.chart-bar {
  width: min(100%, 42px);
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: #075fcfc9;
}
.chart-col span {
  font-size: 10px;
  color: var(--muted);
  padding-top: 8px;
  white-space: nowrap;
}
.chart-col strong {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
}
.progress-track {
  height: 7px;
  border-radius: 6px;
  background: var(--pale);
  margin: 8px 0 18px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
}
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.address-card {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}
.address-card p {
  font-size: 14px;
  margin: 15px 0;
}
.offer-card {
  padding: 26px;
  background: #eaf3ff;
  border: 1px dashed #94b9eb;
  border-radius: 16px;
  margin-bottom: 20px;
}
.offer-card h3 {
  font-size: 25px;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.offer-card p {
  margin: 12px 0;
}
.notification {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notification p {
  font-size: 14px;
  color: var(--text);
}
.notification small {
  font-size: 11px;
  color: var(--muted);
}
.profile-form {
  max-width: 740px;
}
.location-picker { margin-bottom: 20px; }
.location-picker [data-place-search] { margin: 10px 0; }
.location-picker gmp-place-autocomplete { width: 100%; }
.location-picker [data-location-status] { font-size: 13px; margin-top: 8px; }
.address-result { display: block; width: 100%; text-align: left; padding: 12px; margin: 4px 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
[data-address-results] img { display: block; margin: 8px 0; }
.sidebar-scrim {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}
.referral-code {
  font-size: 24px;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 15px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin: 20px 0;
  display: inline-block;
}
.chart-caption {
  font-size: 12px;
  margin-top: 14px;
}
.status-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.details-list dt {
  font-size: 12px;
  color: var(--muted);
}
.details-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice-box {
  background: #fff6d6;
  border: 1px solid #ead184;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: #805b00;
  margin: 15px 0;
}
.admin-metrics .metric:last-child {
  background: var(--primary);
  color: white;
}
.admin-metrics .metric:last-child .metric-label,
.admin-metrics .metric:last-child small,
.admin-metrics .metric:last-child .icon {
  color: #d9eaff;
}
