:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17243c;
  background: #f5f7fb;
  font-synthesis: none;
  font-size: 16px;
  --blue: #1958e7;
  --muted: #6a768c;
  --line: #e5eaf2;
  --nav: #10213c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #81a9ff;
  outline-offset: 3px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -1.1px;
  margin-bottom: 8px;
  line-height: 1.2;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.6;
}
small,
.small {
  font-size: 0.8125rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 12px;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: #263854;
  font-weight: 600;
  font-size: 0.875rem;
}
.btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #1247c1;
}
.btn:hover {
  background: #f2f5fa;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: #b33445;
}
.btn.wide {
  width: 100%;
}
.btn.icon-only {
  padding: 10px;
  min-width: 42px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.gap-sm {
  gap: 8px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  background: var(--nav);
  color: white;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 19px 22px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 12px 37px;
}
.nav-label {
  font-size: 0.6875rem;
  color: #8c9db7;
  letter-spacing: 1.7px;
  font-weight: 650;
  margin: 0 16px 14px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  background: transparent;
  color: #b3c1d7;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 550;
}
.nav button.active {
  background: #233d62;
  color: white;
}
.nav button:hover {
  background: #1c3353;
  color: white;
}
.nav .count {
  margin-left: auto;
  background: #335881;
  color: white;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.75rem;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-hint {
  margin: 24px 9px;
  padding: 18px 14px;
  border: 1px solid #314563;
  border-radius: 12px;
  background: #172c49;
  font-size: 0.875rem;
  line-height: 1.55;
}
.sidebar-hint p {
  color: #a9bdd8;
  font-size: 0.8125rem;
  margin: 8px 0 12px;
}
.sidebar-hint a {
  color: #d7e5ff;
  font-weight: 600;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8efff;
  color: #2859c5;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.dark {
  background: #294466;
  color: #cfdef2;
}
.profile-summary {
  padding: 14px 7px 0;
  border-top: 1px solid #2b3d56;
}
.profile-summary strong {
  display: block;
  font-size: 0.8125rem;
}
.profile-summary span.small {
  color: #97acc9;
}
.workspace {
  min-width: 0;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  gap: 14px;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb strong {
  color: #24344d;
  font-weight: 500;
}
.topbar .divider {
  height: 26px;
  width: 1px;
  background: var(--line);
  margin: 0 8px;
}
.main {
  padding: 36px 40px 48px;
  max-width: 1550px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--muted);
}
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}
.badge.green {
  background: #e7f6ee;
  color: #22845b;
}
.badge.amber {
  background: #fff4de;
  color: #996b17;
}
.badge.blue {
  background: #ebf1ff;
  color: #3f64bd;
}
.badge.gray {
  background: #eef1f5;
  color: #637087;
}
.badge.red {
  background: #ffebed;
  color: #ab344a;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 23px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.stat-label .icon {
  color: #7e97bb;
}
.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.stat-foot {
  font-size: 0.75rem;
  color: var(--muted);
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.card.pad {
  padding: 25px;
}
.card-head {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  margin: 0;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.calendar-toolbar strong {
  font-size: 0.9375rem;
}
.calendar-toolbar input {
  width: auto;
  padding: 8px;
  font-size: 0.875rem;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #7b879a;
  padding: 9px 2px;
  font-size: 0.6875rem;
  text-transform: uppercase;
}
.day strong {
  font-size: 1rem;
  color: #344560;
}
.day.active {
  background: var(--blue);
  color: #d5e2ff;
}
.day.active strong {
  color: white;
}
.timeline {
  padding: 10px 24px 20px;
}
.time-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  min-height: 73px;
}
.time-label {
  font-size: 0.75rem;
  color: #9aa4b4;
  padding-top: 12px;
}
.time-cell {
  border-top: 1px solid #eff2f6;
  padding: 8px 0;
  min-width: 0;
}
.appointment {
  border-left: 3px solid #3d76e8;
  background: #edf3ff;
  border-radius: 6px;
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.appointment.manual {
  border-color: #22a280;
  background: #ecf8f4;
}
.appointment.pending {
  border-color: #db9d37;
  background: #fff8e9;
}
.appointment strong {
  font-size: 0.875rem;
}
.appointment p {
  font-size: 0.75rem;
  color: #63748f;
  margin: 4px 0 0;
}
.appointment .btn {
  min-height: 30px;
  padding: 5px;
}
.free-slot {
  height: 35px;
  font-size: 0.75rem;
  color: #a6b0c0;
  display: flex;
  align-items: center;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mini-title {
  font-size: 0.875rem;
  margin-bottom: 15px;
}
.mp-mark {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1487ae;
  background: #e0f5ff;
  border-radius: 20px;
  padding: 9px 11px;
  letter-spacing: -0.2px;
}
.mp-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 14px 0;
}
.connection {
  margin-top: 18px;
}
.connection::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.link-box {
  font-size: 0.75rem;
  padding: 12px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f5f8fd;
  overflow-wrap: anywhere;
  color: #557297;
  margin: 14px 0;
}
.tip {
  background: #eaf1ff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  padding: 21px;
}
.tip h3 {
  color: #3056a4;
  font-size: 0.875rem;
  margin: 0 0 9px;
}
.tip p {
  color: #60769b;
  font-size: 0.8125rem;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  background: #f0f4fa;
}
.service-placeholder {
  height: 140px;
  background: linear-gradient(135deg, #eaf1ff, #f6f8fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7496d3;
}
.service-placeholder .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
}
.service-content {
  padding: 22px;
}
.service-content h3 {
  font-size: 1.1rem;
  margin: 0 0 9px;
}
.service-content p {
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 40px;
  margin-bottom: 16px;
}
.service-price {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.service-footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: #8da7cc;
}
.empty h3 {
  color: #314462;
  font-size: 1rem;
}
.empty p {
  font-size: 0.875rem;
  max-width: 380px;
  margin: 0 auto 20px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #36435c;
  margin-bottom: 7px;
}
input,
select,
textarea {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: white;
  color: #1e2c43;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
  font-size: 0.9375rem;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 0.8125rem;
}
input[type="time"] {
  min-width: 110px;
}
.field {
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.help {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.notice {
  padding: 15px 17px;
  background: #f0f5ff;
  color: #42618f;
  border: 1px solid #dce7fc;
  border-radius: 9px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.notice.amber {
  background: #fff8e8;
  border-color: #f6e5bc;
  color: #8b682b;
}
.notice.green {
  background: #eaf8f0;
  border-color: #cce9d9;
  color: #28734f;
}
.hours-row {
  display: grid;
  grid-template-columns: 115px 1fr 20px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hours-row label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}
.payment-hero {
  background: #f0f7ff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #dce9fa;
}
.payment-hero h2 {
  font-size: 1.6rem;
  margin-top: 22px;
}
.breakdown {
  display: grid;
  gap: 16px;
  margin: 25px 0;
  font-size: 0.875rem;
}
.breakdown .total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}
th {
  font-size: 0.75rem;
  color: #7e8999;
  background: #fafbfd;
  padding: 15px 18px;
  font-weight: 550;
}
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.notification {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
}
.notification:last-child {
  border: 0;
}
.notification.unread {
  background: #f7faff;
}
.notification p {
  margin: 7px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.notification .icon {
  color: #5978ae;
  margin-top: 3px;
}
.notification time {
  font-size: 0.75rem;
  color: #8591a2;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(590px, calc(100% - 30px));
  max-height: 90vh;
  color: #1e2c43;
  box-shadow: 0 30px 100px #12254933;
}
dialog::backdrop {
  background: #11213b66;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 24px 26px;
}
.turnstile-container {
  min-height: 65px;
  margin-top: 18px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.error {
  color: #b53448;
  background: #fff0f2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: #142b48;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  z-index: 100;
  box-shadow: 0 8px 32px #142b4833;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.auth-aside {
  background: #112745;
  color: white;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-aside h1 {
  font-size: 3.2rem;
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 45px 0 24px;
}
.auth-aside h1 span {
  color: #8fb6ff;
}
.auth-aside p {
  color: #adbfda;
  max-width: 390px;
}
.auth-aside .mini-agenda {
  background: #1b3558;
  border: 1px solid #304e77;
  border-radius: 14px;
  padding: 24px;
  margin-top: 32px;
  transform: rotate(-2deg);
}
.mini-agenda .row {
  padding: 14px 0;
  border-bottom: 1px solid #30476a;
  font-size: 0.875rem;
}
.mini-agenda .row:last-child {
  border: 0;
}
.auth-main {
  padding: 40px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}
.auth-form {
  width: 100%;
  max-width: 440px;
}
.auth-form h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.auth-switch {
  background: #f1f4f9;
  border-radius: 9px;
  padding: 4px;
  display: flex;
  margin: 26px 0;
}
.auth-switch button {
  border: 0;
  background: transparent;
  flex: 1;
  padding: 11px;
  border-radius: 7px;
  color: #6b7890;
  font-weight: 600;
  font-size: 0.875rem;
}
.auth-switch button.active {
  background: white;
  color: #1c385c;
  box-shadow: 0 1px 5px #142b4810;
}
.auth-foot {
  font-size: 0.75rem;
  color: #8e9bb0;
  margin-top: 30px;
  line-height: 1.7;
}
.public-shell {
  max-width: 1060px;
  padding: 30px 24px 60px;
  margin: auto;
}
.public-header {
  margin-bottom: 30px;
}
.public-header .brand {
  font-size: 1.35rem;
}
.public-header .brand img {
  width: 30px;
  height: 30px;
}
.professional {
  padding: 30px 34px;
  background: #122a49;
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.professional .avatar {
  width: 78px;
  height: 78px;
  font-size: 1.6rem;
  background: #294a72;
  color: #ddeaff;
  border: 1px solid #42658e;
}
.professional h1 {
  font-size: 1.8rem;
  margin-bottom: 7px;
}
.professional p {
  color: #b4c7e2;
  margin: 7px 0 0;
  font-size: 0.875rem;
}
.professional .eyebrow {
  color: #90b5ef;
  font-size: 0.6875rem;
  margin-bottom: 7px;
}
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
}
.steps {
  display: flex;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  color: #8e98aa;
  font-size: 0.8125rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
}
.step b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f3f8;
  font-size: 0.75rem;
}
.step.active {
  color: var(--blue);
  font-weight: 600;
}
.step.active b {
  background: var(--blue);
  color: white;
}
.booking-body {
  padding: 26px;
}
.public-service {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 13px;
  width: 100%;
  background: white;
  text-align: left;
  color: inherit;
}
.public-service:hover,
.public-service.selected {
  border-color: var(--blue);
  background: #f6f9ff;
}
.public-service img,
.public-service .placeholder {
  height: 65px;
  width: 65px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.public-service .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0fc;
  color: #6c8cc0;
}
.public-service h3 {
  margin: 0 0 7px;
}
.public-service p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.public-service .price {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.slot {
  padding: 12px 6px;
  border: 1px solid var(--line);
  background: white;
  color: #425875;
  border-radius: 8px;
  font-size: 0.875rem;
}
.slot.selected {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.summary {
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 25px;
}
.summary h2 {
  font-size: 1rem;
  margin-bottom: 23px;
}
.summary-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.summary-item p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 5px 0 0;
}
.summary .breakdown {
  font-size: 0.8125rem;
}
.public-footer {
  text-align: center;
  color: #97a3b5;
  font-size: 0.75rem;
  margin-top: 30px;
}
.success {
  text-align: center;
  padding: 50px 30px;
  max-width: 580px;
  margin: 60px auto;
}
.success-mark {
  width: 74px;
  height: 74px;
  background: #e6f6ed;
  color: #299667;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-mark .icon {
  width: 35px;
  height: 35px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #6a768c;
}
.mobile-brand {
  display: none;
}
.file-preview {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 9px;
  margin-top: 10px;
}
.hidden {
  display: none !important;
}
.offline {
  padding: 12px 20px;
  background: #fff1d4;
  color: #795717;
  text-align: center;
  font-size: 0.8125rem;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1450px) {
  .main {
    padding-top: 42px;
  }
  .time-row {
    min-height: 80px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .calendar-layout {
    grid-template-columns: 1fr 245px;
    gap: 17px;
  }
  .card.pad {
    padding: 20px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .auth-aside h1 {
    font-size: 2.6rem;
  }
}
@media (max-width: 950px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .side-stack .tip {
    display: none;
  }
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand {
    font-size: 1.4rem;
  }
  .sidebar-hint {
    display: none;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    display: none;
  }
  .auth-main {
    min-height: 100vh;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 30px;
  }
  .booking-layout {
    grid-template-columns: 1fr 270px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 1.7rem;
  }
  .app-shell {
    display: block;
    padding-bottom: 78px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 70px;
    padding: 5px 6px;
    background: white;
    border-top: 1px solid var(--line);
    z-index: 20;
  }
  .sidebar > .brand,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    height: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    font-size: 0.625rem;
    padding: 7px 2px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #7a899f;
  }
  .nav button.active {
    background: #edf3ff;
    color: var(--blue);
  }
  .nav .count {
    display: none;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    justify-content: space-between;
  }
  .topbar .mobile-brand {
    display: flex;
    margin: 0;
    font-size: 1.2rem;
  }
  .topbar .mobile-brand img {
    width: 30px;
    height: 30px;
  }
  .topbar .view-label,
  .topbar .divider,
  .topbar .avatar {
    display: none;
  }
  .topbar .btn {
    font-size: 0.75rem;
    padding: 8px;
    min-height: 38px;
  }
  .main {
    padding: 26px 16px;
  }
  .page-head {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .page-head .btn {
    font-size: 0.75rem;
    padding: 10px;
    min-width: 105px;
  }
  .page-head p {
    font-size: 0.8125rem;
  }
  .stats {
    gap: 9px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 14px 10px;
  }
  .stat-label {
    font-size: 0.6875rem;
  }
  .stat-label .icon {
    display: none;
  }
  .stat-value {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    margin: 11px 0 6px;
  }
  .stat-foot {
    font-size: 0.625rem;
    line-height: 1.4;
  }
  .calendar-toolbar {
    padding: 14px;
  }
  .calendar-toolbar input {
    max-width: 140px;
    font-size: 0.75rem;
  }
  .calendar-toolbar strong {
    font-size: 0.8125rem;
  }
  .days {
    padding: 12px 10px;
  }
  .timeline {
    padding: 10px 14px;
  }
  .time-row {
    grid-template-columns: 38px 1fr;
    gap: 8px;
  }
  .appointment {
    padding: 11px 9px;
  }
  .appointment .badge {
    font-size: 0.625rem;
  }
  .side-stack {
    grid-template-columns: 1fr;
  }
  .side-stack .tip {
    display: block;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-image {
    height: 185px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hours-row {
    grid-template-columns: 85px 1fr 10px 1fr;
    gap: 5px;
  }
  .hours-row input[type="time"] {
    min-width: 0;
    padding: 8px;
    font-size: 0.8125rem;
  }
  .hours-row label {
    font-size: 0.75rem;
    gap: 6px;
  }
  .card.pad {
    padding: 20px;
  }
  .auth-main {
    padding: 30px 24px;
  }
  .auth-form h2 {
    font-size: 1.6rem;
  }
  .auth-form .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .professional {
    padding: 24px 20px;
    gap: 16px;
  }
  .professional .avatar {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }
  .professional h1 {
    font-size: 1.35rem;
  }
  .public-shell {
    padding: 22px 15px 40px;
  }
  .booking-layout {
    display: flex;
    flex-direction: column;
  }
  .summary {
    position: static;
    order: 2;
    width: 100%;
  }
  .steps {
    gap: 14px;
    padding: 19px 18px;
    font-size: 0.75rem;
  }
  .booking-body {
    padding: 20px 17px;
  }
  .public-service {
    padding: 14px 10px;
    gap: 10px;
  }
  .public-service .placeholder,
  .public-service img {
    width: 48px;
    height: 48px;
  }
  .public-service h3 {
    font-size: 0.875rem;
  }
  .public-service .price {
    font-size: 0.8125rem;
  }
  .public-service p {
    font-size: 0.6875rem;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 16px 20px;
  }
  .success {
    margin: 25px auto;
  }
  .topbar .row {
    gap: 6px;
  }
}
[hidden] {
  display: none !important;
}
.profile-summary .btn {
  color: #a5bbdb;
}
.profile-summary > div {
  min-width: 0;
}
.profile-summary strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 8px;
}
.profile-summary .avatar {
  width: 34px;
  height: 34px;
}
.profile-summary .btn {
  min-width: 28px;
  padding: 3px;
}
.badge {
  white-space: nowrap;
}
@media (min-width: 701px) and (max-width: 950px) {
  .nav button {
    font-size: 0.8125rem;
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }
  .nav .count {
    display: none;
  }
}
.demo-banner {
  background: #eaf1ff;
  border-bottom: 1px solid #d7e4fb;
  padding: 10px 24px;
  text-align: center;
  color: #47648e;
  font-size: 0.8125rem;
}
.public-service > div {
  min-width: 0;
}
.modal-body h2 {
  margin-top: 20px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.ai-image-box {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
}
.ai-image-box summary {
  cursor: pointer;
  font-weight: 600;
}
.ai-image-box textarea {
  display: block;
  width: 100%;
  min-height: 95px;
  margin: 8px 0 12px;
}
.ai-image-box .file-preview {
  max-width: 100%;
  object-fit: contain;
}
