:root {
  --st-bg:#f6f8fc;
  --st-surface:#ffffff;
  --st-text:#101828;
  --st-muted:#667085;
  --st-border:#e6ebf3;
  --st-primary:#2563eb;
  --st-success:#16a34a;
  --st-warning:#f59e0b;
  --st-danger:#dc2626;
  --st-radius:18px;
  --st-shadow:0 14px 35px rgba(15,23,42,.08);
}

* { box-sizing:border-box; }

html, body {
  margin:0;
  min-height:100%;
  background:var(--st-bg);
  color:var(--st-text);
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.st-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
}

.st-sidebar {
  background:#06152f;
  color:#fff;
  padding:22px 18px;
}

.st-brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:22px;
}

.st-logo {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:var(--st-primary);
  font-weight:950;
}

.st-brand span {
  display:block;
  color:#9fb0c7;
  font-size:13px;
}

.st-nav {
  display:grid;
  gap:8px;
}

.st-nav a {
  min-height:44px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  border-radius:12px;
  color:#e5eefc;
  text-decoration:none;
  font-weight:850;
}

.st-nav a:hover,
.st-nav a.active {
  background:var(--st-primary);
  color:#fff;
}

.st-main {
  min-width:0;
  background:var(--st-bg);
}

.st-topbar {
  height:76px;
  padding:0 36px;
  background:rgba(255,255,255,.9);
  border-bottom:1px solid var(--st-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.st-breadcrumb {
  color:var(--st-muted);
  font-weight:800;
}

.st-user-pill {
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:16px;
  padding:10px 14px;
  box-shadow:var(--st-shadow);
}

.st-avatar {
  width:38px;
  height:38px;
  border-radius:12px;
  background:#f8fafc;
  display:grid;
  place-items:center;
  font-weight:950;
}

.st-page {
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:38px;
}

.st-eyebrow {
  color:var(--st-primary);
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.st-title {
  margin:0 0 12px;
  font-size:clamp(34px,4vw,48px);
  line-height:1;
  letter-spacing:-.06em;
}

.st-description {
  margin:0;
  color:var(--st-muted);
  font-size:16px;
  line-height:1.55;
  max-width:850px;
}

.st-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.st-btn {
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border-radius:12px;
  border:1px solid var(--st-border);
  background:#fff;
  color:var(--st-text);
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
}

.st-btn-primary {
  background:var(--st-primary);
  color:#fff;
  border-color:var(--st-primary);
}

.st-grid {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
  margin-top:30px;
}

.st-card {
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:var(--st-radius);
  padding:24px;
  box-shadow:var(--st-shadow);
  min-width:0;
}

.st-card h2 {
  margin:0 0 12px;
  letter-spacing:-.04em;
}

.st-card p {
  color:var(--st-muted);
  line-height:1.55;
}

.st-metric-value {
  font-size:34px;
  font-weight:950;
  letter-spacing:-.04em;
}

.st-metric-label {
  margin-top:10px;
  color:var(--st-muted);
  font-weight:800;
}

.st-alert {
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:var(--st-radius);
  padding:22px;
  margin-top:28px;
  color:#1e3a8a;
  font-weight:800;
}

@media(max-width:900px){
  .st-shell { grid-template-columns:1fr; }
  .st-sidebar { min-height:auto; }
  .st-page { padding:24px 18px; }
  .st-topbar { padding:0 18px; }
}

/* Studio V2 compatibility for legacy pages */
.st-main > form,
.st-main form {
  width: 100%;
}

.st-main input,
.st-main select,
.st-main textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--st-border);
  border-radius: 12px;
  background: #fff;
  color: var(--st-text);
  padding: 10px 12px;
  font: inherit;
}

.st-main textarea {
  min-height: 86px;
  resize: vertical;
}

.st-main label {
  display: block;
  font-weight: 850;
  color: var(--st-text);
  margin-bottom: 6px;
}

.st-main button,
.st-main input[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--st-primary);
  color: #fff;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
}

.st-main input[type="file"] {
  padding: 10px;
  background: #f8fafc;
}

.st-main [style*="background:white"],
.st-main [style*="background:#fff"],
.st-main [style*="background: #fff"] {
  background: #fff !important;
  border: 1px solid var(--st-border) !important;
  border-radius: var(--st-radius) !important;
  box-shadow: var(--st-shadow) !important;
}

.st-main [style*="border-radius"] {
  border-color: var(--st-border) !important;
}

.st-main [style*="color:#8fa8df"],
.st-main [style*="color:#667085"],
.st-main [style*="color:#64748b"] {
  color: var(--st-muted) !important;
}

.st-main [style*="color:white"] {
  color: var(--st-text) !important;
}

.st-main [style*="background:#2563eb"] {
  background: var(--st-primary) !important;
  color: #fff !important;
}

.st-main [style*="background:#16a34a"] {
  background: var(--st-success) !important;
  color: #fff !important;
}

.st-main .card,
.st-main .panel,
.st-main .box {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 24px;
}

.st-main h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.05em;
}

.st-main h2 {
  letter-spacing: -.035em;
}

.st-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.st-main th,
.st-main td {
  background: #fff;
  border-top: 1px solid var(--st-border);
  border-bottom: 1px solid var(--st-border);
  padding: 14px;
}

.st-main th:first-child,
.st-main td:first-child {
  border-left: 1px solid var(--st-border);
  border-radius: 12px 0 0 12px;
}

.st-main th:last-child,
.st-main td:last-child {
  border-right: 1px solid var(--st-border);
  border-radius: 0 12px 12px 0;
}

/* Simple page spacing for legacy content */
.st-main > *:not(.st-topbar) {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Studio V2 legacy class compatibility */
.page-head {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 38px 0;
}

.kicker {
  color: var(--st-primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(34px,4vw,48px);
  line-height: 1;
  letter-spacing: -.06em;
}

.page-sub,
.muted {
  color: var(--st-muted);
  font-size: 16px;
  line-height: 1.55;
}

.real-grid {
  width: 100%;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 38px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.quick-card {
  display: block;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 24px;
  color: var(--st-text);
  text-decoration: none;
}

.quick-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.quick-card p {
  color: var(--st-muted);
  line-height: 1.55;
}

.btn.secondary,
.st-main .btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--st-primary);
  font-weight: 900;
  text-decoration: none;
}

.mini-section-title {
  margin-top: 0;
}

.st-main > .card,
.st-main section.card {
  width: calc(100% - 76px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 24px;
}

@media(max-width:900px){
  .page-head,
  .real-grid {
    padding-left:18px;
    padding-right:18px;
  }

  .real-grid {
    grid-template-columns:1fr;
  }

  .st-main > .card,
  .st-main section.card {
    width: calc(100% - 36px);
  }
}

/* Studio V2 Components */
.st-page-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.st-empty {
  text-align:left;
}

.st-empty h2 {
  margin-top:0;
}

.st-card-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}

.st-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin:30px 0;
}

@media(max-width:900px){
  .st-page-head {
    display:block;
  }

  .st-card-grid,
  .st-metrics {
    grid-template-columns:1fr;
  }
}

.st-table {
  display:grid;
  gap:12px;
}

.st-row {
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:18px;
  border:1px solid var(--st-border);
  border-radius:16px;
  background:#f8fafc;
}

.st-row p {
  margin:6px 0 0;
  color:var(--st-muted);
}

@media(max-width:900px){
  .st-row {
    grid-template-columns:1fr;
  }
}

.st-list {
  display:grid;
  gap:12px;
  margin-top:18px;
}

.st-list a {
  display:block;
  padding:14px 16px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid var(--st-border);
  color:var(--st-text);
  text-decoration:none;
  font-weight:850;
}

/* Studio Form Components */
.st-form-card {
  margin-top: 24px;
}

.st-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.st-form-head h2 {
  margin: 0 0 8px;
}

.st-form-head p {
  margin: 0;
  color: var(--st-muted);
}

.st-form-body {
  display: grid;
  gap: 16px;
}

.st-field {
  display: grid;
  gap: 7px;
}

.st-field label {
  font-weight: 900;
}

.st-error {
  color: var(--st-danger);
  font-size: 13px;
  font-weight: 800;
}

.st-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media(max-width:900px){
  .st-two-columns {
    grid-template-columns: 1fr;
  }

  .st-form-head {
    display: block;
  }
}

/* Simple professional link card */
.st-link-card {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:var(--st-radius);
  box-shadow:var(--st-shadow);
  padding:22px 24px;
  margin:28px 0;
}

.st-link-card strong {
  display:block;
  font-size:24px;
  letter-spacing:-.03em;
  color:var(--st-text);
}

.st-link-card p {
  margin:8px 0 0;
  color:var(--st-muted);
}

.st-btn-success {
  background:var(--st-success);
  color:#fff;
  border-color:var(--st-success);
}

@media(max-width:900px){
  .st-link-card {
    display:block;
  }
}

/* Profile editor with public preview */
.st-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.st-preview-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 18px;
}

.st-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--st-muted);
  font-weight: 900;
}

.st-preview-head a {
  color: var(--st-primary);
  text-decoration: none;
  font-weight: 950;
}

.st-phone-preview {
  border: 1px solid var(--st-border);
  border-radius: 24px;
  background: linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
  padding: 18px;
  text-align: center;
  min-height: 520px;
}

.st-phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 26px;
}

.st-phone-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--st-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.st-phone-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 6px solid #fff;
  box-shadow: var(--st-shadow);
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 950;
  color: var(--st-primary);
}

.st-phone-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.st-phone-badges span {
  background: #eef4ff;
  color: var(--st-primary);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.st-phone-preview h3 {
  margin: 18px 0 6px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.st-phone-profession {
  color: var(--st-primary) !important;
  font-weight: 950;
}

.st-phone-preview p {
  color: var(--st-muted);
  line-height: 1.45;
}

.st-phone-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.st-phone-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: var(--st-primary);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.st-phone-actions a.green {
  background: var(--st-success);
}

@media(max-width:1100px){
  .st-profile-layout {
    grid-template-columns: 1fr;
  }

  .st-preview-card {
    position: static;
  }
}

/* Profile Progress */
.st-progress-card {
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:var(--st-radius);
  box-shadow:var(--st-shadow);
  padding:24px;
  margin:26px 0;
}

.st-progress-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.st-progress-top strong {
  display:block;
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}

.st-progress-top p {
  margin:8px 0 0;
  color:var(--st-muted);
}

.st-progress-ring {
  width:72px;
  height:72px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eff6ff;
  color:var(--st-primary);
  font-weight:950;
  border:1px solid #bfdbfe;
  flex:0 0 auto;
}

.st-progress-bar {
  height:10px;
  background:#edf2f7;
  border-radius:999px;
  overflow:hidden;
  margin:20px 0;
}

.st-progress-bar span {
  display:block;
  height:100%;
  background:var(--st-primary);
  border-radius:999px;
}

.st-progress-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.st-progress-list div {
  padding:10px 12px;
  border-radius:12px;
  background:#f8fafc;
  color:var(--st-muted);
  font-weight:850;
}

.st-progress-list div.done {
  background:#ecfdf3;
  color:#166534;
}

.st-progress-list span {
  margin-right:6px;
  font-weight:950;
}

@media(max-width:900px){
  .st-progress-top {
    display:block;
  }

  .st-progress-ring {
    margin-top:16px;
  }

  .st-progress-list {
    grid-template-columns:1fr;
  }
}

.st-phone-avatar.has-image {
  background-size: cover !important;
  background-position: center !important;
  color: transparent !important;
}

.st-current-avatar {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}

.st-current-avatar img {
  width:72px;
  height:72px;
  border-radius:18px;
  object-fit:cover;
  border:1px solid var(--st-border);
  box-shadow:var(--st-shadow);
}

.st-current-avatar span {
  font-weight:900;
  color:var(--st-muted);
}

.st-gallery-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:20px;
}

.st-gallery-item {
  background:#f8fafc;
  border:1px solid var(--st-border);
  border-radius:16px;
  padding:12px;
}

.st-gallery-item img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:12px;
}

@media(max-width:900px){
  .st-gallery-grid {
    grid-template-columns:1fr;
  }
}

/* Agenda V2 polish */
.st-main:has(.calendar-day),
.st-main:has([name="slot_minutes"]) {
  --agenda-card:#ffffff;
}

.st-main [class*="calendar"],
.st-main [class*="day"],
.st-main [class*="slot"] {
  box-sizing:border-box;
}

.st-main select,
.st-main input[type="time"] {
  min-height:44px;
  border:1px solid var(--st-border);
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  color:var(--st-text);
  font-weight:700;
}

.st-main button[type="submit"] {
  min-height:44px;
  border-radius:12px;
  background:var(--st-primary);
  color:#fff;
  border:0;
  padding:0 18px;
  font-weight:900;
}

.st-main [style*="display:grid"],
.st-main [style*="grid-template-columns"] {
  gap:18px !important;
}

.st-main [style*="background:white"],
.st-main [style*="background:#fff"],
.st-main [style*="background: #fff"] {
  background:#fff !important;
  border:1px solid var(--st-border) !important;
  border-radius:var(--st-radius) !important;
  box-shadow:var(--st-shadow) !important;
}

.st-main [style*="border:1px solid #d"],
.st-main [style*="border: 1px solid #d"] {
  border-color:var(--st-border) !important;
}

.st-main [style*="color:#64748b"],
.st-main [style*="color:#667085"] {
  color:var(--st-muted) !important;
}

/* Agenda day buttons */
.st-main a[href*="date="],
.st-main button[name="date"],
.st-main .day-card {
  border-radius:14px !important;
  border:1px solid var(--st-border) !important;
  background:#fff !important;
  font-weight:900 !important;
}

/* Free time slots */
.st-main details,
.st-main summary {
  border-radius:14px;
}

.st-main summary {
  cursor:pointer;
  font-weight:900;
}

/* Mobile agenda */
@media(max-width:900px){
  .st-main [style*="grid-template-columns"] {
    grid-template-columns:1fr !important;
  }
}

/* Agenda V3 simple mode */
body.agenda-mode .st-main [style*="grid-template-columns"] {
  grid-template-columns: minmax(0, 720px) !important;
  justify-content: center !important;
}

body.agenda-settings-mode .st-main [style*="grid-template-columns"] {
  grid-template-columns: minmax(0, 720px) !important;
  justify-content: center !important;
}

.agenda-v3-actions {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 38px;
  display: flex;
  justify-content: flex-end;
}

.agenda-v3-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--st-border);
  color: var(--st-text);
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--st-shadow);
}

.agenda-v3-actions a.primary {
  background: var(--st-primary);
  color: #fff;
  border-color: var(--st-primary);
}

@media(max-width:900px){
  .agenda-v3-actions {
    padding: 0 18px;
  }
}

/* Agenda clean */
.sa-calendar-days {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}

.sa-day {
  position:relative;
  min-height:66px;
  border:1px solid var(--st-border);
  border-radius:16px;
  background:#fff;
  color:var(--st-text);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-weight:950;
}

.sa-day small {
  color:var(--st-muted);
  font-weight:900;
}

.sa-day.active {
  background:var(--st-primary);
  color:#fff;
  border-color:var(--st-primary);
}

.sa-day.active small {
  color:#fff;
}

.sa-day.today {
  border-color:var(--st-primary);
}

.sa-day > span {
  position:absolute;
  top:-8px;
  right:-6px;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  border:2px solid #fff;
}

.sa-agenda-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}

.sa-agenda-head h2 {
  margin:0 0 6px;
}

.sa-agenda-head p {
  margin:0;
  color:var(--st-muted);
}

.sa-slots {
  display:grid;
  gap:12px;
}

.sa-slot {
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:14px 0;
  border-bottom:1px solid var(--st-border);
}

.sa-slot:last-child {
  border-bottom:0;
}

.sa-slot-time strong {
  display:block;
  font-size:18px;
}

.sa-slot-time span {
  display:block;
  color:var(--st-muted);
  font-size:12px;
  font-weight:800;
  margin-top:4px;
}

.sa-free,
.sa-booking {
  border:1px solid var(--st-border);
  border-radius:16px;
  background:#f8fafc;
  overflow:hidden;
}

.sa-free summary,
.sa-booking summary {
  cursor:pointer;
  list-style:none;
  padding:16px;
  font-weight:950;
}

.sa-free summary::-webkit-details-marker,
.sa-booking summary::-webkit-details-marker {
  display:none;
}

.sa-booking {
  background:#eff6ff;
  border-color:#bfdbfe;
}

.sa-booking summary {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.sa-booking summary span {
  display:block;
  color:var(--st-muted);
  font-size:13px;
  margin-top:3px;
}

.sa-booking summary em {
  font-style:normal;
  background:#dbeafe;
  color:#1d4ed8;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
}

.sa-mini-form {
  display:grid;
  gap:14px;
  padding:0 16px 16px;
}

.sa-rules {
  display:grid;
  gap:14px;
}

.sa-rule {
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr 1fr;
  gap:14px;
  align-items:end;
  padding:16px;
  border:1px solid var(--st-border);
  border-radius:16px;
  background:#f8fafc;
}

@media(max-width:900px){
  .sa-calendar-days {
    grid-template-columns:repeat(7,minmax(42px,1fr));
    overflow-x:auto;
  }

  .sa-slot {
    grid-template-columns:1fr;
  }

  .sa-rule {
    grid-template-columns:1fr;
  }
}

/* remove old agenda injected action */
.agenda-v3-actions {
  display: none !important;
}

/* Agenda simple summary */
.sa-agenda-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.sa-agenda-summary > div {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 22px;
}

.sa-agenda-summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.04em;
}

.sa-agenda-summary span {
  display: block;
  margin-top: 8px;
  color: var(--st-muted);
  font-weight: 800;
}

/* compact calendar */
.sa-calendar-days {
  gap: 7px !important;
}

.sa-day {
  min-height: 52px !important;
  border-radius: 13px !important;
}

.sa-day small {
  font-size: 11px;
}

.sa-day strong {
  font-size: 15px;
}

/* cleaner time slots */
.sa-slot {
  grid-template-columns: 76px minmax(0,1fr) !important;
  padding: 10px 0 !important;
}

.sa-slot-time strong {
  font-size: 16px !important;
}

.sa-free summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-free summary::before {
  content: "○";
  color: var(--st-success);
  font-weight: 950;
}

.sa-booking summary::before {
  content: "●";
  color: var(--st-primary);
  font-weight: 950;
  margin-right: 8px;
}

@media(max-width:900px){
  .sa-agenda-summary {
    grid-template-columns: 1fr;
  }
}

.sa-month-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0;
}

.sa-month-nav strong {
  font-size:20px;
  letter-spacing:-.03em;
}

.sa-month-nav a {
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--st-border);
  background:#fff;
  color:var(--st-text);
  text-decoration:none;
  font-weight:900;
}

@media(max-width:700px){
  .sa-month-nav {
    display:grid;
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* Agenda V5 polish */
.sa-month-nav {
  max-width: 520px;
  margin: 14px auto 18px !important;
}

.sa-month-nav a {
  min-height: 36px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

.sa-month-nav strong {
  font-size: 18px !important;
}

.sa-calendar-days {
  gap: 6px !important;
}

.sa-day {
  min-height: 44px !important;
  border-radius: 11px !important;
}

.sa-day small {
  font-size: 10px !important;
  line-height: 1;
}

.sa-day strong {
  font-size: 14px !important;
  line-height: 1;
}

.sa-slots {
  gap: 0 !important;
}

.sa-slot {
  grid-template-columns: 70px minmax(0,1fr) !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.sa-slot-time strong {
  font-size: 15px !important;
}

.sa-slot-time span {
  font-size: 11px !important;
}

.sa-free,
.sa-booking {
  border-radius: 12px !important;
  box-shadow: none !important;
}

.sa-free summary,
.sa-booking summary {
  min-height: 42px !important;
  padding: 11px 14px !important;
}

.sa-free summary {
  font-size: 0;
}

.sa-free summary::after {
  content: "Livre";
  font-size: 15px;
  font-weight: 950;
  color: var(--st-text);
}

.sa-free summary::before {
  font-size: 15px;
}

.sa-mini-form {
  background: #fff;
  border-top: 1px solid var(--st-border);
  padding: 14px !important;
}

.sa-mini-form .st-two-columns {
  grid-template-columns: 1fr !important;
}

.sa-mini-form input[name="client_email"],
.sa-mini-form input[name="client_email"] + *,
.sa-mini-form [name="duration_minutes"] {
  display: block;
}

.sa-booking summary strong {
  font-size: 15px;
}

.sa-booking summary span {
  font-size: 12px !important;
}

@media(max-width:900px){
  .sa-slot {
    grid-template-columns: 58px minmax(0,1fr) !important;
  }
}

/* Studio Modal Manager */
.sa-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

.sa-modal.open {
  display: block !important;
}

.sa-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .45) !important;
}

.sa-modal-panel {
  position: relative !important;
  width: min(460px, calc(100% - 32px)) !important;
  margin: 9vh auto 0 !important;
  background: #fff !important;
  border-radius: 24px !important;
  border: 1px solid var(--st-border) !important;
  box-shadow: 0 30px 90px rgba(15,23,42,.25) !important;
  padding: 26px !important;
}

.sa-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid var(--st-border) !important;
  background: #fff !important;
  cursor: pointer !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

.sa-modal-panel textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: #fff;
}

.sa-modal-panel .st-field {
  margin-bottom: 14px;
}

.sa-booking-button {
  width:100%;
  min-height:48px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#eff6ff;
  color:var(--st-text);
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 10px;
  align-items:center;
  padding:10px 14px;
  text-align:left;
  cursor:pointer;
}

.sa-booking-button span {
  color:var(--st-primary);
  grid-row:span 2;
  font-weight:950;
}

.sa-booking-button strong {
  font-weight:950;
}

.sa-booking-button small {
  color:var(--st-muted);
  font-weight:800;
}

.sa-booking-button.status-completed {
  background:#ecfdf3;
  border-color:#bbf7d0;
}

.sa-booking-button.status-cancelled {
  background:#f8fafc;
  border-color:#e2e8f0;
  opacity:.75;
}

/* Agenda V7 - booking cards */
.sa-booking-button {
  width: 100% !important;
  min-height: 64px !important;
  border: 1px solid #bfdbfe !important;
  border-left: 5px solid var(--st-primary) !important;
  border-radius: 14px !important;
  background: #f8fbff !important;
  color: var(--st-text) !important;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 4px 12px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.sa-booking-button span {
  color: var(--st-primary) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  grid-row: span 2 !important;
}

.sa-booking-button strong {
  color: var(--st-text) !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-transform: capitalize;
}

.sa-booking-button small {
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.sa-booking-button::after {
  content: "Editar →";
  grid-row: span 2;
  align-self: center;
  color: var(--st-primary);
  font-size: 13px;
  font-weight: 950;
}

.sa-booking-button.status-confirmed::before,
.sa-booking-button.status-scheduled::before {
  content: "Confirmado";
  position: absolute;
  opacity: 0;
}

.sa-booking-button.status-completed {
  background: #ecfdf3 !important;
  border-color: #bbf7d0 !important;
  border-left-color: #16a34a !important;
}

.sa-booking-button.status-completed span,
.sa-booking-button.status-completed::after {
  color: #16a34a !important;
}

.sa-booking-button.status-cancelled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  border-left-color: #94a3b8 !important;
  opacity: .75 !important;
}

.sa-booking-button.status-cancelled span,
.sa-booking-button.status-cancelled::after {
  color: #64748b !important;
}

/* Free slots smaller than occupied cards */
.sa-free-button {
  width: auto !important;
  min-width: 112px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  padding: 0 13px !important;
  background: #f8fafc !important;
}

.sa-free-button:hover {
  background: #fff !important;
  border-color: #bfdbfe !important;
}

/* Keep full width on mobile */
@media(max-width:900px){
  .sa-free-button {
    width: 100% !important;
  }

  .sa-booking-button {
    grid-template-columns: auto 1fr !important;
  }

  .sa-booking-button::after {
    grid-column: 2;
    grid-row: auto;
    margin-top: 4px;
  }
}

/* Agenda V8 - compact booking card */
.sa-booking-button {
  width: min(420px, 100%) !important;
  min-height: auto !important;
  border: 1px solid #bfdbfe !important;
  border-left: 5px solid var(--st-primary) !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  color: var(--st-text) !important;
  display: block !important;
  padding: 14px 16px !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.sa-booking-button span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #16a34a !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  margin-bottom: 8px !important;
}

.sa-booking-button span::after {
  content: "Confirmado";
}

.sa-booking-button strong {
  display: block !important;
  color: var(--st-text) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  text-transform: capitalize;
}

.sa-booking-button small {
  display: block !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-top: 6px !important;
}

.sa-booking-button small::before {
  content: "📱 ";
}

.sa-booking-button::after {
  content: "Editar atendimento →";
  display: block;
  margin-top: 10px;
  color: var(--st-primary);
  font-size: 13px;
  font-weight: 950;
}

.sa-booking-button.status-completed {
  background: #ecfdf3 !important;
  border-color: #bbf7d0 !important;
  border-left-color: #16a34a !important;
}

.sa-booking-button.status-completed span::after {
  content: "Concluído";
}

.sa-booking-button.status-cancelled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  border-left-color: #94a3b8 !important;
  opacity: .78 !important;
}

.sa-booking-button.status-cancelled span {
  color: #64748b !important;
}

.sa-booking-button.status-cancelled span::after {
  content: "Cancelado";
}

.sa-booking-button.status-scheduled span::after {
  content: "Agendado";
}

.sa-free-button {
  width: auto !important;
  min-width: 86px !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  background: #fff !important;
  color: #475569 !important;
  border: 1px solid var(--st-border) !important;
}

.sa-free-button span {
  display: none !important;
}

.sa-free-button::before {
  content: "+ ";
  color: var(--st-primary);
  font-weight: 950;
}

.sa-free-button:hover {
  border-color: var(--st-primary) !important;
  color: var(--st-primary) !important;
}

@media(max-width:900px){
  .sa-booking-button {
    width: 100% !important;
  }
}

/* Agenda V9 - final booking card polish */
.sa-slot {
  grid-template-columns: 72px minmax(0,1fr) !important;
  align-items: center !important;
  padding: 9px 0 !important;
}

.sa-free-button {
  min-width: 78px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.sa-free-button::before {
  content: "○ ";
  color: #16a34a;
}

.sa-booking-button {
  width: min(380px, 100%) !important;
  border: 1px solid #bfdbfe !important;
  border-left: 5px solid #2563eb !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  padding: 13px 15px !important;
  display: grid !important;
  grid-template-columns: 42px 1fr !important;
  gap: 4px 12px !important;
  align-items: center !important;
}

.sa-booking-button span {
  grid-row: span 4 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #2563eb !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  margin: 0 !important;
}

.sa-booking-button span::after {
  content: attr(data-initial);
  font-size: 15px;
  font-weight: 950;
}

.sa-booking-button strong {
  font-size: 17px !important;
  line-height: 1.15 !important;
  color: #08152f !important;
  font-weight: 950 !important;
}

.sa-booking-button small {
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.sa-booking-button small::before {
  content: "📱 ";
}

.sa-booking-button::before {
  content: "● Confirmado";
  grid-column: 2;
  color: #16a34a;
  font-size: 12px;
  font-weight: 950;
}

.sa-booking-button::after {
  content: "Editar atendimento →";
  grid-column: 2;
  margin-top: 4px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 950;
}

.sa-booking-button.status-scheduled::before {
  content: "● Agendado";
  color: #2563eb;
}

.sa-booking-button.status-confirmed::before {
  content: "● Confirmado";
  color: #16a34a;
}

.sa-booking-button.status-completed {
  background: #ecfdf3 !important;
  border-color: #bbf7d0 !important;
  border-left-color: #16a34a !important;
}

.sa-booking-button.status-completed::before {
  content: "✓ Concluído";
  color: #16a34a;
}

.sa-booking-button.status-completed span {
  background: #16a34a !important;
}

.sa-booking-button.status-cancelled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  border-left-color: #94a3b8 !important;
  opacity: .78 !important;
}

.sa-booking-button.status-cancelled::before {
  content: "× Cancelado";
  color: #64748b;
}

.sa-booking-button.status-cancelled span {
  background: #64748b !important;
}

@media(max-width:900px){
  .sa-booking-button {
    width: 100% !important;
  }
}

.sa-check {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:var(--st-text);
  margin:8px 0 16px;
}

.sa-check input {
  width:18px;
  height:18px;
}

.sa-booking-list-row {
  display:grid;
  grid-template-columns:90px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:18px;
  border:1px solid var(--st-border);
  border-left:5px solid var(--st-primary);
  border-radius:18px;
  background:#fff;
  margin-top:14px;
}

.sa-booking-list-row.ok {
  border-left-color:#16a34a;
}

.sa-booking-list-row.done {
  border-left-color:#64748b;
  background:#f8fafc;
}

.sa-booking-list-row.cancelled {
  border-left-color:#ef4444;
  background:#fff1f2;
}

.sa-booking-date strong {
  display:block;
  font-size:22px;
}

.sa-booking-date span {
  color:var(--st-muted);
  font-weight:900;
}

.sa-booking-top {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.sa-booking-top strong {
  font-size:18px;
}

.sa-booking-top span {
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
}

.sa-booking-list-row.ok .sa-booking-top span {
  background:#ecfdf3;
  color:#16a34a;
}

.sa-booking-list-row.cancelled .sa-booking-top span {
  background:#fee2e2;
  color:#dc2626;
}

.sa-booking-info p {
  margin:6px 0 0;
  color:var(--st-muted);
  font-weight:800;
}

.sa-booking-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.sa-booking-actions form {
  margin:0;
}

@media(max-width:900px){
  .sa-booking-list-row {
    grid-template-columns:1fr;
  }

  .sa-booking-actions {
    justify-content:flex-start;
  }
}

/* Appointment Card V2 */
.appointment-card {
  display:grid;
  grid-template-columns:92px minmax(0,1fr) 170px;
  gap:22px;
  align-items:center;
  padding:22px;
  border:1px solid var(--st-border);
  border-left:6px solid var(--st-primary);
  border-radius:22px;
  background:#fff;
  margin-top:16px;
  box-shadow:0 16px 44px rgba(15,23,42,.06);
}

.appointment-card.ok {
  border-left-color:#16a34a;
}

.appointment-card.done {
  border-left-color:#64748b;
  background:#f8fafc;
}

.appointment-card.cancelled {
  border-left-color:#ef4444;
  background:#fff1f2;
}

.appointment-time strong {
  display:block;
  font-size:28px;
  letter-spacing:-.04em;
}

.appointment-time span {
  color:var(--st-muted);
  font-weight:900;
}

.appointment-status {
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  background:#ecfdf3;
  color:#16a34a;
  padding:7px 11px;
  font-size:12px;
  font-weight:950;
  margin-bottom:12px;
}

.appointment-card.scheduled .appointment-status {
  background:#eff6ff;
  color:#2563eb;
}

.appointment-card.done .appointment-status {
  background:#e2e8f0;
  color:#475569;
}

.appointment-card.cancelled .appointment-status {
  background:#fee2e2;
  color:#dc2626;
}

.appointment-person {
  display:flex;
  gap:14px;
  align-items:center;
}

.appointment-avatar {
  width:46px;
  height:46px;
  border-radius:999px;
  background:var(--st-primary);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:950;
  font-size:18px;
}

.appointment-person strong {
  display:block;
  font-size:20px;
  line-height:1.1;
}

.appointment-person span {
  display:block;
  margin-top:5px;
  color:#475569;
  font-weight:800;
}

.appointment-details {
  display:grid;
  gap:7px;
  margin-top:14px;
  color:var(--st-muted);
  font-weight:800;
}

.appointment-actions {
  display:grid;
  gap:9px;
}

.appointment-actions form {
  margin:0;
}

.appointment-actions .st-btn {
  width:100%;
  justify-content:center;
}

@media(max-width:900px){
  .appointment-card {
    grid-template-columns:1fr;
  }

  .appointment-actions {
    display:flex;
    flex-wrap:wrap;
  }

  .appointment-actions .st-btn {
    width:auto;
  }
}

.sa-search-form {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.sa-search-form input {
  flex:1;
  min-width:240px;
}

/* Bookings V11 polish */
.wa-btn {
  background:#16a34a !important;
  color:#fff !important;
  border-color:#16a34a !important;
}

.client-kind {
  color:#2563eb !important;
  font-weight:950 !important;
}

.service-badge {
  display:inline-flex !important;
  width:max-content !important;
  background:#f1f5f9 !important;
  color:#334155 !important;
  border:1px solid #e2e8f0 !important;
  border-radius:999px !important;
  padding:6px 10px !important;
  font-size:13px !important;
  font-weight:950 !important;
}

.note-line {
  background:#f8fafc !important;
  border:1px solid #e2e8f0 !important;
  border-radius:14px !important;
  padding:10px 12px !important;
  color:#475569 !important;
}

.appointment-card {
  transition:.18s ease !important;
}

.appointment-card:hover {
  transform:translateY(-1px);
  box-shadow:0 22px 60px rgba(15,23,42,.10) !important;
}

.appointment-actions .st-btn {
  font-weight:950 !important;
}

.appointment-avatar {
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
}

/* Public Schedule V9 */
.public-schedule-v9 {
  background:#eef4fb;
  color:#0f172a;
}

.ps-wrap {
  width:min(1120px, calc(100% - 32px));
  margin:28px auto;
  display:grid;
  grid-template-columns:340px 1fr;
  gap:24px;
}

.ps-side, .ps-main {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}

.ps-side {
  padding:34px;
  position:sticky;
  top:24px;
  align-self:start;
  min-height:620px;
}

.ps-badge {
  display:inline-flex;
  background:#ecfdf3;
  color:#16a34a;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  font-size:13px;
}

.ps-avatar {
  margin-top:28px;
  width:86px;
  height:86px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:950;
  overflow:hidden;
}

.ps-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.ps-side h1 {
  font-size:36px;
  letter-spacing:-.05em;
  margin:24px 0 4px;
}

.ps-side strong {
  color:#2563eb;
  font-weight:950;
}

.ps-trust {
  display:grid;
  gap:10px;
  margin:28px 0;
}

.ps-trust span {
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px;
  font-weight:900;
}

.ps-info {
  color:#64748b;
  font-weight:800;
  line-height:1.45;
}

.ps-main {
  padding:34px;
}

.ps-kicker {
  text-transform:uppercase;
  color:#2563eb;
  font-size:13px;
  font-weight:950;
  letter-spacing:.18em;
}

.ps-head h2 {
  font-size:42px;
  letter-spacing:-.055em;
  margin:10px 0 6px;
}

.ps-head p {
  color:#64748b;
  font-weight:800;
}

.ps-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  margin:28px 0;
}

.ps-day {
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:16px;
  min-height:72px;
  cursor:pointer;
  font-weight:950;
}

.ps-day strong,
.ps-day span {
  display:block;
}

.ps-day span {
  color:#64748b;
  font-size:12px;
  margin-top:4px;
}

.ps-day.active {
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.ps-day.active span {
  color:#dbeafe;
}

.ps-slots {
  display:none;
}

.ps-slots.active {
  display:block;
}

.ps-slots h3 {
  font-size:24px;
  margin:0 0 18px;
}

.ps-slot-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.ps-slot {
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:18px;
  padding:18px;
  text-align:left;
  cursor:pointer;
}

.ps-slot:hover {
  border-color:#2563eb;
  box-shadow:0 14px 34px rgba(37,99,235,.12);
}

.ps-slot strong {
  display:block;
  font-size:24px;
}

.ps-slot span {
  display:block;
  margin-top:4px;
  color:#64748b;
  font-weight:800;
}

.ps-slot em {
  display:block;
  margin-top:14px;
  color:#16a34a;
  font-style:normal;
  font-weight:950;
}

.ps-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
}

.ps-modal.open {
  display:block;
}

.ps-modal-bg {
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
}

.ps-modal-card {
  position:relative;
  width:min(520px, calc(100% - 32px));
  margin:7vh auto 0;
  background:#fff;
  border-radius:28px;
  padding:32px;
  box-shadow:0 30px 90px rgba(15,23,42,.25);
}

.ps-close {
  position:absolute;
  right:18px;
  top:18px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:24px;
  font-weight:950;
  cursor:pointer;
}

.ps-modal-card h2 {
  font-size:30px;
  letter-spacing:-.04em;
  margin:0 0 10px;
}

.ps-selected-day {
  color:#64748b;
  font-weight:900;
  margin:0;
}

.ps-selected-time {
  font-size:28px;
  font-weight:950;
  margin:8px 0 22px;
  color:#2563eb;
}

.ps-modal-card label {
  display:block;
  margin:14px 0 6px;
  font-weight:950;
}

.ps-modal-card input,
.ps-modal-card textarea {
  width:100%;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:13px 14px;
  font:inherit;
}

.ps-modal-card textarea {
  min-height:90px;
}

.ps-confirm {
  width:100%;
  margin-top:18px;
  border:0;
  border-radius:16px;
  background:#2563eb;
  color:#fff;
  font-weight:950;
  padding:16px;
  cursor:pointer;
}

@media(max-width:900px){
  .ps-wrap {
    grid-template-columns:1fr;
  }

  .ps-side {
    position:static;
    min-height:auto;
  }

  .ps-days {
    grid-template-columns:repeat(3,1fr);
  }

  .ps-slot-grid {
    grid-template-columns:1fr;
  }
}

/* Public Schedule V10 polish */
.public-schedule-v9 .ps-side {
  padding: 42px;
}

.public-schedule-v9 .ps-avatar {
  width: 128px !important;
  height: 128px !important;
  font-size: 44px !important;
  border: 4px solid #fff;
  box-shadow: 0 18px 42px rgba(37,99,235,.18);
}

.public-schedule-v9 .ps-side h1 {
  font-size: 42px !important;
  margin-top: 28px !important;
}

.public-schedule-v9 .ps-trust span {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
}

.public-schedule-v9 .ps-trust span::before {
  content:"✓";
  width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#ecfdf3;
  color:#16a34a;
  font-weight:950;
}

.public-schedule-v9 .ps-trust span {
  padding:14px 16px !important;
}

.public-schedule-v9 .ps-info {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.public-schedule-v9 .ps-info p {
  margin-bottom: 22px;
}

.public-schedule-v9 .ps-info b {
  color:#0f172a;
  font-size:15px;
}

.public-schedule-v9 .ps-day {
  min-height:86px !important;
  transition:.18s ease;
}

.public-schedule-v9 .ps-day strong {
  font-size:20px;
}

.public-schedule-v9 .ps-day span {
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px !important;
  font-weight:950;
}

.public-schedule-v9 .ps-day:hover {
  transform:translateY(-1px);
  border-color:#bfdbfe;
  box-shadow:0 12px 28px rgba(37,99,235,.10);
}

.public-schedule-v9 .ps-slot {
  position:relative;
  padding:22px !important;
  min-height:142px;
  transition:.18s ease;
}

.public-schedule-v9 .ps-slot::before {
  content:"";
  position:absolute;
  top:22px;
  right:22px;
  width:12px;
  height:12px;
  border-radius:999px;
  background:#16a34a;
  box-shadow:0 0 0 5px #dcfce7;
}

.public-schedule-v9 .ps-slot strong {
  font-size:30px !important;
  letter-spacing:-.04em;
}

.public-schedule-v9 .ps-slot span {
  font-size:15px;
}

.public-schedule-v9 .ps-slot em {
  margin-top:20px !important;
  font-size:15px;
}

.public-schedule-v9 .ps-slot:hover {
  transform:translateY(-2px);
}

.public-schedule-v9 .ps-modal-card {
  padding: 38px !important;
}

.public-schedule-v9 .ps-modal-card h2 {
  font-size: 34px !important;
}

.public-schedule-v9 .ps-selected-time {
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:18px;
  padding:16px;
}

.public-schedule-v9 .ps-modal-card label {
  margin-top:16px !important;
}

.public-schedule-v9 .ps-confirm {
  font-size:16px;
  min-height:56px;
}

.ps-modal-trust {
  display:grid;
  gap:8px;
  margin-top:16px;
  padding:14px;
  border-radius:18px;
  background:#f8fafc;
  color:#475569;
  font-weight:900;
}

.ps-modal-trust span::before {
  content:"✓ ";
  color:#16a34a;
  font-weight:950;
}

@media(max-width:900px){
  .public-schedule-v9 .ps-avatar {
    width:96px !important;
    height:96px !important;
  }

  .public-schedule-v9 .ps-side h1 {
    font-size:34px !important;
  }
}

/* Public Schedule V11 - compact modal */
.public-schedule-v9 .ps-modal {
  overflow-y: auto !important;
  padding: 18px 0 !important;
}

.public-schedule-v9 .ps-modal-card {
  width: min(500px, calc(100% - 28px)) !important;
  margin: 18px auto !important;
  padding: 26px !important;
  border-radius: 24px !important;
  max-height: calc(100vh - 36px) !important;
  overflow-y: auto !important;
}

.public-schedule-v9 .ps-modal-card h2 {
  font-size: 28px !important;
  margin-bottom: 6px !important;
}

.public-schedule-v9 .ps-selected-day {
  font-size: 15px !important;
}

.public-schedule-v9 .ps-selected-time {
  font-size: 24px !important;
  padding: 12px 14px !important;
  margin: 8px 0 16px !important;
}

.public-schedule-v9 .ps-modal-card label {
  margin: 10px 0 5px !important;
  font-size: 15px !important;
}

.public-schedule-v9 .ps-modal-card input {
  padding: 11px 13px !important;
  min-height: 44px !important;
}

.public-schedule-v9 .ps-modal-card textarea {
  min-height: 72px !important;
  padding: 11px 13px !important;
}

.public-schedule-v9 .ps-modal-trust {
  display: none !important;
}

.public-schedule-v9 .ps-confirm {
  position: sticky !important;
  bottom: 0 !important;
  min-height: 52px !important;
  margin-top: 14px !important;
  box-shadow: 0 -12px 28px rgba(255,255,255,.92) !important;
}

.public-schedule-v9 .ps-close {
  width: 34px !important;
  height: 34px !important;
  font-size: 22px !important;
}

@media(max-width:700px){
  .public-schedule-v9 .ps-modal-card {
    margin: 10px auto !important;
    padding: 22px !important;
    max-height: calc(100vh - 20px) !important;
  }

  .public-schedule-v9 .ps-modal-card h2 {
    font-size: 24px !important;
  }
}

/* Dashboard V12 */
.dash-hero {
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  border-radius:28px;
  padding:30px;
  box-shadow:0 24px 70px rgba(37,99,235,.20);
  margin:26px 0;
}

.dash-hero span {
  display:block;
  font-weight:900;
  opacity:.85;
}

.dash-hero strong {
  display:block;
  font-size:52px;
  letter-spacing:-.06em;
  margin:10px 0 4px;
}

.dash-hero p {
  margin:0 0 18px;
  font-weight:800;
  opacity:.9;
}

.dash-hero a {
  color:#fff;
  font-weight:950;
  text-decoration:none;
}

.dash-timeline-row {
  display:grid;
  grid-template-columns:70px 1fr;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-timeline-row:last-child {
  border-bottom:0;
}

.dash-time {
  font-weight:950;
  color:var(--st-primary);
}

.dash-timeline-row strong {
  display:block;
}

.dash-timeline-row span {
  display:inline-flex;
  margin-top:6px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  padding:5px 9px;
  font-size:12px;
  font-weight:950;
}

.dash-timeline-row p {
  color:var(--st-muted);
  margin:8px 0 0;
  font-weight:800;
}

.dash-client-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.dash-client-grid div {
  background:#f8fafc;
  border:1px solid var(--st-border);
  border-radius:18px;
  padding:18px;
}

.dash-client-grid strong {
  display:block;
  font-size:34px;
  letter-spacing:-.04em;
}

.dash-client-grid span {
  color:var(--st-muted);
  font-weight:900;
}

@media(max-width:900px){
  .dash-hero strong {
    font-size:40px;
  }

  .dash-client-grid {
    grid-template-columns:1fr;
  }
}

/* Dashboard V13 */
.dash-hero-v13 {
  margin-top: 28px !important;
}

.dash-hero-v13 strong {
  font-size: 64px !important;
}

.dash-metrics-v13 {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin:26px 0;
}

.dash-metrics-v13 div {
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:22px;
  padding:24px;
  box-shadow:0 18px 46px rgba(15,23,42,.06);
}

.dash-metrics-v13 span {
  display:block;
  color:var(--st-muted);
  font-weight:950;
  margin-bottom:12px;
}

.dash-metrics-v13 strong {
  display:block;
  font-size:38px;
  line-height:1;
  letter-spacing:-.05em;
}

.dash-empty-action {
  border:1px solid var(--st-border);
  border-radius:20px;
  padding:24px;
  background:#fff;
}

.dash-empty-action strong {
  display:block;
  font-size:22px;
}

.dash-empty-action p {
  color:var(--st-muted);
  font-weight:800;
}

.dash-mini-booking {
  display:grid;
  grid-template-columns:78px 1fr;
  gap:14px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-mini-booking:last-child {
  border-bottom:0;
}

.dash-mini-booking strong {
  display:block;
  font-size:20px;
  color:var(--st-primary);
}

.dash-mini-booking span {
  color:var(--st-muted);
  font-weight:900;
}

.dash-mini-booking p {
  margin:0;
  font-weight:950;
}

.dash-actions-list {
  display:grid;
  gap:12px;
}

.dash-actions-list div {
  border:1px solid var(--st-border);
  border-radius:16px;
  padding:14px;
  background:#f8fafc;
  font-weight:950;
}

@media(max-width:900px){
  .dash-metrics-v13 {
    grid-template-columns:1fr 1fr;
  }

  .dash-hero-v13 strong {
    font-size:44px !important;
  }
}

/* Dashboard V14 */
.dash-hero-v14 {
  margin-top:28px !important;
  padding:34px !important;
}

.dash-hero-v14 span {
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px;
}

.dash-hero-v14 strong {
  font-size:64px !important;
  line-height:1 !important;
}

.dash-hero-v14 h3 {
  color:#fff;
  font-size:26px;
  margin:12px 0 4px;
  letter-spacing:-.03em;
}

.dash-hero-actions {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:18px;
}

.dash-hero-actions a {
  color:#fff;
  font-weight:950;
  text-decoration:none;
}

.dash-today-strip {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:20px;
  padding:16px 18px;
  box-shadow:0 16px 40px rgba(15,23,42,.05);
  margin:22px 0;
}

.dash-today-strip strong {
  color:var(--st-text);
  margin-right:8px;
}

.dash-today-strip a,
.dash-today-strip span {
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--st-border);
  padding:8px 12px;
  font-weight:900;
  color:var(--st-muted);
  text-decoration:none;
}

.dash-today-strip .dash-strip-link {
  margin-left:auto;
  background:#eff6ff;
  color:#2563eb;
}

.dash-metrics-v14 {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin:26px 0;
}

.dash-metrics-v14 div {
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:22px;
  padding:24px;
  box-shadow:0 18px 46px rgba(15,23,42,.06);
}

.dash-metrics-v14 span {
  display:block;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--st-muted);
  font-size:12px;
  font-weight:950;
  margin-bottom:14px;
}

.dash-metrics-v14 strong {
  display:block;
  font-size:44px;
  line-height:1;
  letter-spacing:-.06em;
}

.dash-empty-action-v14 {
  border:1px solid var(--st-border);
  border-radius:22px;
  padding:28px;
  background:#fff;
}

.dash-empty-action-v14 div {
  font-size:34px;
  margin-bottom:12px;
}

.dash-empty-action-v14 strong {
  display:block;
  font-size:23px;
}

.dash-empty-action-v14 p {
  color:var(--st-muted);
  font-weight:800;
}

.dash-next-row {
  display:grid;
  grid-template-columns:78px 1fr;
  gap:16px;
  align-items:center;
  padding:16px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-next-row:last-child {
  border-bottom:0;
}

.dash-next-row strong {
  display:block;
  color:var(--st-primary);
  font-size:22px;
}

.dash-next-row span {
  color:var(--st-muted);
  font-weight:900;
}

.dash-next-row b {
  display:block;
  font-size:17px;
}

.dash-next-row small {
  display:inline-flex;
  margin-top:6px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  padding:5px 9px;
  font-weight:950;
}

.dash-timeline-row-v14 {
  display:grid;
  grid-template-columns:74px 1fr;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-timeline-row-v14:last-child {
  border-bottom:0;
}

.dash-timeline-row-v14 .dash-time {
  font-weight:950;
  color:var(--st-primary);
  font-size:18px;
}

.dash-timeline-row-v14 strong {
  display:block;
}

.dash-timeline-row-v14 span {
  display:inline-flex;
  margin-top:6px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  padding:5px 9px;
  font-size:12px;
  font-weight:950;
}

.dash-timeline-row-v14 p {
  color:var(--st-muted);
  margin:8px 0 0;
  font-weight:800;
}

.dash-client-grid-v14 {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.dash-client-grid-v14 div {
  background:#f8fafc;
  border:1px solid var(--st-border);
  border-radius:18px;
  padding:18px;
}

.dash-client-grid-v14 strong {
  display:block;
  font-size:32px;
  letter-spacing:-.05em;
}

.dash-client-grid-v14 span {
  color:var(--st-muted);
  font-weight:900;
}

.dash-last-client {
  margin-top:18px;
  border:1px solid var(--st-border);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

.dash-last-client span {
  display:block;
  color:var(--st-muted);
  font-weight:900;
}

.dash-last-client strong {
  display:block;
  margin-top:5px;
  font-size:18px;
}

.dash-last-client small {
  color:var(--st-muted);
  font-weight:800;
}

.dash-activity-row {
  padding:14px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-activity-row:last-child {
  border-bottom:0;
}

.dash-activity-row span {
  color:var(--st-muted);
  font-weight:900;
  font-size:13px;
}

.dash-activity-row strong {
  display:block;
  margin-top:4px;
}

@media(max-width:900px){
  .dash-metrics-v14,
  .dash-client-grid-v14 {
    grid-template-columns:1fr 1fr;
  }

  .dash-hero-v14 strong {
    font-size:46px !important;
  }

  .dash-today-strip .dash-strip-link {
    margin-left:0;
  }
}

/* Dashboard V15 */
.dash-search-v15 {
  background:#fff;
  border:1px solid var(--st-border);
  border-radius:22px;
  padding:18px;
  margin:24px 0 0;
  box-shadow:0 16px 40px rgba(15,23,42,.04);
}

.dash-search-v15 form {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.dash-search-v15 input {
  flex:1;
  min-width:260px;
}

.dash-search-results {
  margin-top:16px;
  display:grid;
  gap:10px;
}

.dash-search-results > strong {
  display:block;
  margin-bottom:4px;
}

.dash-search-item {
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid var(--st-border);
  border-radius:16px;
  background:#f8fafc;
  text-decoration:none;
  color:var(--st-text);
}

.dash-search-item b,
.dash-search-item span,
.dash-search-item small {
  display:block;
}

.dash-search-item span,
.dash-search-item small {
  color:var(--st-muted);
  font-weight:850;
}

.dash-hero-v15 {
  padding:34px !important;
}

.dash-hero-grid {
  display:grid;
  grid-template-columns:180px 1fr auto;
  gap:28px;
  align-items:center;
}

.dash-hero-client {
  display:flex;
  align-items:center;
  gap:18px;
}

.dash-hero-avatar {
  width:64px;
  height:64px;
  border-radius:999px;
  background:#fff;
  color:#2563eb;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:950;
}

.dash-hero-client h3 {
  margin:0 0 4px !important;
}

.dash-hero-client p {
  margin:0 !important;
}

.dash-hero-client small {
  display:block;
  margin-top:6px;
  color:#dbeafe;
  font-weight:900;
}

.dash-next-clickable,
.dash-timeline-row-v15 {
  text-decoration:none;
  color:var(--st-text);
  transition:.18s ease;
}

.dash-next-clickable:hover,
.dash-timeline-row-v15:hover {
  background:#f8fafc;
  border-radius:16px;
  padding-left:10px;
}

.dash-next-row p {
  margin:4px 0 0;
  color:var(--st-muted);
  font-weight:850;
}

.dash-timeline-row-v15 {
  display:grid;
  grid-template-columns:74px 1fr;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-timeline-row-v15:last-child {
  border-bottom:0;
}

.dash-timeline-row-v15 .dash-time {
  font-weight:950;
  color:var(--st-primary);
  font-size:18px;
}

.dash-timeline-row-v15 strong {
  display:block;
}

.dash-timeline-row-v15 span {
  display:inline-flex;
  margin-top:6px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  padding:5px 9px;
  font-size:12px;
  font-weight:950;
}

.dash-timeline-row-v15 p {
  color:var(--st-muted);
  margin:8px 0 0;
  font-weight:800;
}

.dash-activity-row-v15 {
  display:grid;
  grid-template-columns:18px 1fr;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--st-border);
}

.dash-activity-row-v15:last-child {
  border-bottom:0;
}

.dash-activity-row-v15 > span {
  width:10px;
  height:10px;
  border-radius:999px;
  background:#2563eb;
  margin-top:8px;
  box-shadow:0 0 0 5px #eff6ff;
}

.dash-activity-row-v15 small {
  color:var(--st-muted);
  font-weight:900;
}

.dash-activity-row-v15 strong {
  display:block;
  margin-top:4px;
}

@media(max-width:900px){
  .dash-hero-grid {
    grid-template-columns:1fr;
  }

  .dash-search-item {
    display:grid;
  }
}
