.sts-app,
.sts-app * {
  box-sizing: border-box;
}

.sts-app {
  --sts-bg: #f5f6fb;
  --sts-card: #ffffff;
  --sts-text: #101828;
  --sts-muted: #667085;
  --sts-line: #e4e7ec;
  --sts-purple: #9923fa;
  --sts-purple-2: #c026d3;
  --sts-green: #14b87a;
  --sts-red: #ef4444;
  --sts-orange: #f59e0b;
  --sts-blue: #2563eb;
  --sts-dark: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sts-text);
}

.sts-login-required {
  max-width: 680px;
  padding: 24px;
  border-radius: 20px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.sts-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
  background: var(--sts-bg);
  border-radius: 28px;
}

.sts-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.06);
}

.sts-kicker {
  font-size: 13px;
  font-weight: 900;
  color: var(--sts-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sts-topbar h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 950;
}

.sts-topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.sts-select,
.sts-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  background: #fff;
  color: var(--sts-text);
  padding: 0 18px;
  font-size: 18px;
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.sts-select:focus,
.sts-input:focus {
  border-color: var(--sts-purple);
  box-shadow: 0 0 0 4px rgba(153,35,250,0.12);
}

.sts-refresh-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--sts-muted);
  font-size: 13px;
  font-weight: 800;
}

.sts-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sts-summary-card {
  min-height: 86px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e8edf5;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.sts-summary-card span {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.sts-summary-card small {
  display: block;
  margin-top: 7px;
  color: var(--sts-muted);
  font-size: 13px;
  font-weight: 850;
}

.sts-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.sts-card {
  background: var(--sts-card);
  border: 1px solid #e8edf5;
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(15,23,42,0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

.sts-card-heading,
.sts-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #eef2f7;
}

.sts-card h3,
.sts-section-head h3,
.sts-modal-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  font-weight: 950;
}

.sts-card p,
.sts-section-head p,
.sts-stylist-picker p,
.sts-modal-card p {
  margin: 8px 0 0;
  color: var(--sts-muted);
  font-size: 14px;
  line-height: 1.35;
}

.sts-add-card {
  background: linear-gradient(135deg, var(--sts-purple) 0%, var(--sts-purple-2) 100%);
  color: #fff;
}

.sts-add-card .sts-card-heading {
  border-bottom-color: rgba(255,255,255,0.14);
}

.sts-add-card p,
.sts-add-card label {
  color: rgba(255,255,255,0.86);
}

.sts-type-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px 0;
}


.sts-type-toggle-nine {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sts-type-toggle-nine .sts-type-btn {
  padding: 8px 8px;
  line-height: 1.12;
  word-break: normal;
  overflow-wrap: anywhere;
}

.sts-type-btn {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-type-btn.active {
  background: #fff;
  color: var(--sts-purple);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.sts-add-grid {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  padding: 18px 20px 0;
}

.sts-stylist-picker {
  padding: 14px 20px 0;
}

.sts-stylist-picker label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
}

.sts-stylist-picker.hidden {
  display: none;
}

.sts-primary-btn,
.sts-purple-btn,
.sts-secondary-btn,
.sts-checkin-btn,
.sts-complete-btn,
.sts-take-btn,
.sts-icon-btn,
.sts-direct-btn {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.sts-primary-btn:active,
.sts-purple-btn:active,
.sts-secondary-btn:active,
.sts-checkin-btn:active,
.sts-complete-btn:active,
.sts-take-btn:active,
.sts-direct-btn:active {
  transform: scale(.98);
}

.sts-primary-btn {
  width: calc(100% - 40px);
  margin: 14px 20px 20px;
  background: var(--sts-green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20,184,122,.24);
}

.sts-purple-btn {
  background: var(--sts-purple);
  color: #fff;
  white-space: nowrap;
}

.sts-secondary-btn {
  background: #eef2f7;
  color: #344054;
}

.sts-section-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 24px;
  font-weight: 950;
}

.sts-queue-list {
  padding: 16px;
  max-height: 540px;
  overflow: auto;
}

.sts-empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #d7deea;
  border-radius: 22px;
  color: #98a2b3;
  font-size: 17px;
  font-weight: 850;
}

.sts-queue-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 24px;
  border: 1px solid #facc15;
  background: #fffbeb;
  align-items: start;
}

.sts-queue-item:last-child {
  margin-bottom: 0;
}

.sts-queue-card-new {
  min-height: 152px;
}

.sts-queue-num {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #f59e0b;
  color: #fff;
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.sts-queue-content {
  min-width: 0;
}

.sts-queue-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.sts-queue-name {
  min-width: 0;
  color: #101828;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 950;
  padding-top: 8px;
  overflow-wrap: anywhere;
}

.sts-queue-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sts-queue-title strong {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 950;
}

.sts-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sts-pill.walk_in,
.sts-pill.wa_walk_in,
.sts-pill.sc_walk_in,
.sts-pill.ref_walk_in,
.sts-pill.gg_walk_in,
.sts-pill.fb_walk_in,
.sts-pill.ig_walk_in {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.sts-pill.regular_walk_in {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sts-pill.regular {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.sts-queue-top .sts-pill {
  min-width: 116px;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.sts-queue-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sts-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.sts-duration-chip {
  white-space: nowrap;
}

.sts-assigned-pill {
  margin-top: 12px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
  overflow-wrap: anywhere;
}

.sts-mini-chip.assigned {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.sts-stylist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.sts-stylist-card {
  position: relative;
  border: 2px solid #e5eaf3;
  border-radius: 26px;
  padding: 16px;
  background: #fff;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.sts-stylist-card.free {
  border-color: rgba(20,184,122,.36);
  box-shadow: inset 0 0 0 1px rgba(20,184,122,.04);
}

.sts-stylist-card.busy {
  border-color: rgba(239,68,68,.36);
  background: #fffafa;
}

.sts-stylist-card.not-checked {
  background: #f8fafc;
}

.sts-stylist-top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.sts-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--sts-dark);
  color: #fff;
  font-size: 31px;
  font-weight: 950;
}

.sts-stylist-name {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.05;
  font-weight: 950;
}

.sts-specialty {
  margin-top: 5px;
  color: var(--sts-muted);
  font-size: 16px;
  font-weight: 800;
}

.sts-status-badge {
  min-width: 78px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.sts-status-badge.free {
  background: var(--sts-green);
}

.sts-status-badge.busy {
  background: var(--sts-red);
}

.sts-status-badge.off {
  background: #667085;
}

.sts-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.sts-stat-box,
.sts-turn-box {
  min-height: 84px;
  padding: 13px;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: #fff;
}

.sts-stat-box strong,
.sts-turn-position {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.sts-stat-box small,
.sts-turn-box small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.sts-checkin-btn {
  width: 100%;
  height: 58px;
  padding: 0 12px;
  background: #111827;
  color: #fff;
  font-size: 16px;
}

.sts-turn-box.checked {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.sts-serving-box {
  min-height: 116px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 20px;
  background: #fff;
}

.sts-serving-box small {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sts-serving-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sts-serving-title-row small {
  margin: 0;
}

.sts-serving-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-serving-type::after {
  content: '↗';
  margin-left: 7px;
  font-size: 13px;
  opacity: .75;
}

.sts-serving-type:active {
  transform: scale(.98);
}

.sts-type-walk_in,
.sts-type-wa_walk_in,
.sts-type-sc_walk_in,
.sts-type-ref_walk_in,
.sts-type-gg_walk_in,
.sts-type-fb_walk_in,
.sts-type-ig_walk_in {
  color: #dc2626;
  background: #fff1f2;
  border-color: #fecdd3;
}

.sts-type-regular_walk_in {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.sts-type-regular {
  color: #0369a1;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.sts-serving-box strong {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  font-weight: 950;
}

.sts-time-left {
  display: inline-block;
  margin-top: 10px;
  color: #b42318;
  font-size: 16px;
  font-weight: 950;
}

.sts-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sts-complete-btn {
  width: 100%;
  background: var(--sts-green);
  color: #fff;
  font-size: 22px;
  min-height: 72px;
}

.sts-take-btn {
  width: 100%;
  background: var(--sts-blue);
  color: #fff;
  min-height: 70px;
  font-size: 20px;
}

.sts-direct-btn {
  width: 100%;
  background: #eef2ff;
  color: #3730a3;
  min-height: 58px;
}

.sts-take-btn:disabled,
.sts-direct-btn:disabled,
.sts-primary-btn:disabled,
.sts-purple-btn:disabled,
.sts-checkin-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sts-note {
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.sts-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.56);
}

.sts-modal.active {
  display: flex;
}

.sts-modal-card {
  width: min(560px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(15,23,42,.24);
}

.sts-reassign-card {
  width: min(680px, 100%);
}

.sts-reassign-card .sts-modal-head {
  align-items: flex-start;
}

.sts-reassign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sts-reassign-option {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 2px solid #dfe7f2;
  background: #fff;
  color: var(--sts-dark);
  text-align: left;
}

.sts-reassign-option.free {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sts-reassign-option.busy {
  border-color: #fecdd3;
  background: #fff1f2;
}

.sts-reassign-option:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.sts-reassign-option:not(:disabled):active {
  transform: scale(.985);
}

.sts-reassign-avatar,
.sts-reassign-tick {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--sts-dark);
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.sts-reassign-tick {
  background: var(--sts-green);
}

.sts-reassign-option strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.sts-reassign-option small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.sts-reassign-help {
  margin: 16px 0 0;
  color: #667085;
  font-weight: 800;
}

.sts-report-card {
  width: min(1320px, calc(100vw - 28px));
}

.sts-report-modal-head {
  align-items: center;
}

.sts-report-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.sts-export-btn {
  min-width: 116px;
  white-space: nowrap;
}

.sts-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sts-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 30px;
  line-height: 1;
}

.sts-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.sts-modal-actions .sts-primary-btn {
  width: 100%;
  margin: 0;
}

.sts-report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.sts-report-stat {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}

.sts-report-stat strong {
  display: block;
  font-size: 25px;
  font-weight: 950;
}

.sts-report-stat small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-weight: 850;
}

.sts-report-table-wrap {
  overflow: auto;
  margin: 12px 0 20px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
}

.sts-report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.sts-report-table th,
.sts-report-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.sts-report-table th {
  background: #f8fafc;
  font-weight: 950;
}


.sts-turn-performance-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  font-size: 12.5px;
}

.sts-turn-performance-wrap {
  overflow-x: auto;
}

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  padding: 9px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: middle;
  text-align: center;
}

.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 14%; text-align: left; }

.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 8%; text-align: left; }

.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 6%; }

.sts-turn-performance-table th:nth-child(n+4),
.sts-turn-performance-table td:nth-child(n+4) { width: 7.2%; }

.sts-report-table th,
.sts-report-table td {
  white-space: nowrap;
}

.sts-toast {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  min-width: 280px;
  max-width: calc(100vw - 36px);
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(15,23,42,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.sts-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sts-toast.success { background: var(--sts-green); }
.sts-toast.warning { background: var(--sts-orange); }
.sts-toast.error { background: var(--sts-red); }

@media (max-width: 1180px) {
  .sts-layout {
    grid-template-columns: 1fr;
  }
  .sts-stylist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sts-shell {
    padding: 10px;
    border-radius: 0;
  }
  .sts-topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }
  .sts-topbar-controls {
    justify-content: stretch;
  }
  .sts-topbar-controls > * {
    flex: 1 1 100%;
  }
  .sts-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sts-summary-grid .sts-summary-card:last-child {
    grid-column: span 2;
  }
  .sts-add-grid,
  .sts-type-toggle,
  .sts-stylist-grid,
  .sts-stats-row,
  .sts-modal-actions,
  .sts-report-stats {
    grid-template-columns: 1fr;
  }
  .sts-stylist-top {
    grid-template-columns: 64px 1fr;
  }
  .sts-status-badge {
    grid-column: span 2;
    width: 100%;
  }
  .sts-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .sts-card-heading,
  .sts-section-head {
    flex-direction: column;
  }
  .sts-purple-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sts-queue-item {
    grid-template-columns: 56px 1fr;
    padding: 12px;
  }
  .sts-queue-num {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .sts-queue-title {
    flex-direction: column;
  }
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn {
    min-height: 62px;
  }
}

.sts-hidden {
  display: none !important;
}

.sts-login-card {
  min-height: min(760px, 90vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(153,35,250,.10), rgba(20,184,122,.10));
  border-radius: 28px;
}

.sts-login-inner {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 22px 70px rgba(15,23,42,.12);
}

.sts-login-inner h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  font-weight: 950;
}

.sts-login-inner p,
.sts-login-help,
.sts-outlet-label {
  color: var(--sts-muted);
  font-weight: 700;
}

.sts-login-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin: 22px 0 14px;
}

.sts-login-inner .sts-primary-btn {
  width: 100%;
  min-height: 68px;
  font-size: 20px;
}

.sts-login-help {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

.sts-outlet-label {
  margin: 8px 0 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  .sts-login-card {
    padding: 14px;
    border-radius: 20px;
  }

  .sts-login-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .sts-turn-performance-table {
    font-size: 12px;
  }

  .sts-turn-performance-table th,
  .sts-turn-performance-table td {
    padding: 9px 6px;
  }
}

/* v1.8 outlet header: large centered branch name */
.sts-topbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
}

.sts-topbar-left {
  min-width: 0;
}

.sts-branch-title {
  justify-self: center;
  text-align: center;
  color: #3445d9;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sts-outlet-label {
  display: none !important;
}

@media (max-width: 980px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sts-branch-title {
    order: 2;
    margin: 10px 0 4px;
    white-space: normal;
  }

  .sts-topbar-controls {
    order: 3;
    justify-content: center;
  }
}


.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 22%; }
.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 13%; }
.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 10%; text-align: center; }
.sts-turn-performance-table th:nth-child(4),
.sts-turn-performance-table td:nth-child(4) { width: 12%; text-align: center; }
.sts-turn-performance-table th:nth-child(5),
.sts-turn-performance-table td:nth-child(5) { width: 17%; text-align: center; }
.sts-turn-performance-table th:nth-child(6),
.sts-turn-performance-table td:nth-child(6) { width: 13%; text-align: center; }
.sts-turn-performance-table th:nth-child(7),
.sts-turn-performance-table td:nth-child(7) { width: 13%; text-align: center; }

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  font-size: 13px;
  padding-left: 6px;
  padding-right: 6px;
}

@media (max-width: 700px) {
  .sts-turn-performance-wrap { overflow-x: auto; }
  .sts-turn-performance-table { min-width: 640px; }
}

/* v2.1 fixed counter workspace: no top summary counter cards, fixed header/left panel, scrollable stylist screen */
.sts-summary-grid {
  display: none !important;
}

.sts-shell {
  min-height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sts-topbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 16px;
}

.sts-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.sts-left-panel,
.sts-right-panel {
  min-height: 0;
}

.sts-left-panel {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.sts-left-panel .sts-card:last-child {
  margin-bottom: 0;
}

.sts-right-panel {
  height: 100%;
  overflow: hidden;
}

.sts-right-panel > .sts-card {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sts-right-panel .sts-section-head {
  flex: 0 0 auto;
}

.sts-stylist-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  align-content: start;
}

.sts-stylist-grid::-webkit-scrollbar,
.sts-left-panel::-webkit-scrollbar,
.sts-queue-list::-webkit-scrollbar {
  width: 8px;
}

.sts-stylist-grid::-webkit-scrollbar-thumb,
.sts-left-panel::-webkit-scrollbar-thumb,
.sts-queue-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sts-stylist-grid::-webkit-scrollbar-track,
.sts-left-panel::-webkit-scrollbar-track,
.sts-queue-list::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1180px) {
  .sts-shell {
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }
  .sts-layout {
    display: block;
  }
  .sts-left-panel,
  .sts-right-panel,
  .sts-right-panel > .sts-card {
    height: auto;
    overflow: visible;
  }
  .sts-stylist-grid {
    max-height: none;
    overflow: visible;
  }
}

/* v2.2 remove stylist section header/action bar. Stylist cards fill the right panel. */
.sts-stylists-card {
  padding: 0;
}

.sts-stylists-card .sts-stylist-grid {
  padding: 22px;
}

.sts-right-panel .sts-stylists-card .sts-stylist-grid {
  flex: 1 1 auto;
}

@media (max-width: 820px) {
  .sts-stylists-card .sts-stylist-grid {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .sts-reassign-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.5 header/control overlap fix: keep report/logout/updated inside the top bar, not over the New Customer card */
.sts-topbar {
  overflow: visible;
  isolation: isolate;
}

.sts-topbar-controls {
  flex-wrap: nowrap !important;
  min-width: max-content;
  align-items: center;
}

.sts-topbar-controls .sts-secondary-btn,
.sts-topbar-controls .sts-refresh-badge {
  white-space: nowrap;
  flex: 0 0 auto;
}

.sts-topbar-controls #stsReportBtn {
  min-width: 150px;
}

.sts-topbar-controls #stsExportReportBtn {
  min-width: 124px;
}

.sts-topbar-controls #stsLogoutBtn {
  min-width: 108px;
}

.sts-topbar-controls #stsRefreshBadge {
  min-width: 145px;
  justify-content: center;
}

.sts-layout {
  position: relative;
  z-index: 1;
}

.sts-left-panel,
.sts-right-panel {
  position: relative;
  z-index: 1;
}

@media (max-width: 1400px) {
  .sts-topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
    grid-template-areas: "branch controls";
    gap: 14px;
  }

  .sts-topbar-left {
    display: none !important;
  }

  .sts-branch-title {
    grid-area: branch;
    justify-self: start;
    text-align: left;
    font-size: clamp(40px, 5.2vw, 60px);
  }

  .sts-topbar-controls {
    grid-area: controls;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "branch"
      "controls";
    text-align: center;
  }

  .sts-branch-title {
    justify-self: center;
    text-align: center;
    margin: 0;
  }

  .sts-topbar-controls {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sts-topbar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    width: 100%;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    width: 100%;
    min-width: 0 !important;
  }

  .sts-topbar-controls #stsRefreshBadge {
    grid-column: 1 / -1;
  }
}

/* v2.6: removed New Customer heading; keep the type buttons neat at the top */
.sts-add-card {
  padding-top: 22px;
}
.sts-add-card .sts-type-toggle {
  margin-top: 0;
}
#stsCustomerName:required::placeholder {
  color: #6b7280;
}


/* v2.7 Oly logo + compact 3-column stylist layout + remove wrong customer button */
.sts-shell {
  max-width: 1840px;
}

.sts-topbar {
  display: grid !important;
  grid-template-columns: 170px minmax(180px, 1fr) auto;
  grid-template-areas: "logo branch controls";
  align-items: center;
  gap: 14px;
}

.sts-topbar-left.sts-logo-area {
  grid-area: logo;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.sts-oly-logo {
  width: 132px;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.sts-branch-title {
  grid-area: branch;
  text-align: center;
  justify-self: center;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1;
}

.sts-topbar-controls {
  grid-area: controls;
}

.sts-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
  gap: 12px;
}

.sts-left-panel .sts-card {
  border-radius: 18px;
}

.sts-left-panel .sts-type-toggle {
  gap: 8px;
  padding: 14px 14px 0;
}

.sts-left-panel .sts-type-btn {
  min-height: 46px;
  border-radius: 13px;
  padding: 6px 6px;
  font-size: 10px;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.sts-left-panel .sts-add-grid {
  grid-template-columns: 1fr 88px;
  gap: 8px;
  padding: 12px 14px 0;
}

.sts-left-panel .sts-input,
.sts-left-panel .sts-select {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 13px;
}

.sts-left-panel .sts-primary-btn {
  width: calc(100% - 28px);
  margin: 10px 14px 14px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 13px;
}

.sts-left-panel .sts-section-head {
  padding: 14px;
}

.sts-left-panel .sts-section-head h3 {
  font-size: 18px;
}

.sts-left-panel .sts-section-head p {
  font-size: 10px;
}

.sts-left-panel .sts-section-head > strong {
  min-width: 42px;
  min-height: 42px;
  border-radius: 13px;
  font-size: 17px;
}

.sts-left-panel .sts-queue-list {
  padding: 12px;
}

.sts-stylists-card .sts-stylist-grid,
.sts-stylist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 12px !important;
}

.sts-stylist-card {
  border-radius: 18px;
  padding: 10px;
}

.sts-stylist-top {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.sts-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 22px;
}

.sts-stylist-name {
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.05;
  word-break: break-word;
}

.sts-specialty {
  font-size: 11px;
  margin-top: 3px;
}

.sts-status-badge {
  min-width: 54px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 11px;
}

.sts-stats-row {
  gap: 8px;
  margin-bottom: 10px;
}

.sts-stat-box,
.sts-turn-box {
  min-height: 70px;
  padding: 10px;
  border-radius: 14px;
}

.sts-stat-box strong,
.sts-turn-position {
  font-size: 22px;
}

.sts-stat-box small,
.sts-turn-box small {
  margin-top: 6px;
  font-size: 10px;
}

.sts-serving-box {
  min-height: 92px;
  padding: 11px;
  margin-bottom: 10px;
  border-radius: 15px;
}

.sts-serving-box small {
  font-size: 10px;
}

.sts-serving-title-row {
  gap: 7px;
}

.sts-serving-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.sts-serving-type {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.sts-serving-type::after {
  margin-left: 5px;
  font-size: 10px;
}

.sts-remove-current-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #ef4444;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-remove-current-btn:active {
  transform: scale(.94);
}

.sts-serving-box strong {
  margin-top: 8px;
  font-size: 17px;
}

.sts-time-left {
  margin-top: 7px;
  font-size: 12px;
}

.sts-complete-btn,
.sts-take-btn {
  min-height: 52px;
  border-radius: 13px;
  font-size: 16px;
}

.sts-direct-btn,
.sts-checkin-btn {
  min-height: 48px;
  border-radius: 13px;
  font-size: 13px;
}

.sts-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 1500px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "branch"
      "controls";
  }

  .sts-topbar-left.sts-logo-area,
  .sts-branch-title,
  .sts-topbar-controls {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v2.9 daily report source columns + wider report screen */
.sts-report-card {
  width: min(1320px, calc(100vw - 28px)) !important;
  max-height: min(860px, 94vh);
}

.sts-report-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.sts-export-btn {
  min-width: 116px;
  white-space: nowrap;
}

.sts-turn-performance-wrap {
  overflow-x: auto !important;
}

.sts-turn-performance-table {
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: fixed !important;
  font-size: 12.5px !important;
}

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  padding: 9px 6px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 14% !important; text-align: left !important; }
.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 8% !important; text-align: left !important; }
.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 6% !important; }
.sts-turn-performance-table th:nth-child(n+4),
.sts-turn-performance-table td:nth-child(n+4) { width: 7.2% !important; }

.sts-topbar-controls #stsExportReportBtn {
  min-width: 124px;
}

@media (max-width: 900px) {
  .sts-report-head-actions {
    gap: 8px;
  }
  .sts-report-card {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .sts-report-head-actions .sts-export-btn {
    min-width: 104px;
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* v3.8 - Waiting queue card: cleaner narrow-panel arrangement */
.sts-left-panel .sts-queue-list {
  padding: 12px;
}

.sts-left-panel .sts-queue-item,
.sts-queue-item.sts-queue-card-new {
  display: block;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 22px;
  border: 1.5px solid #fbbf24;
  background: linear-gradient(180deg, #fffdf3 0%, #fffbeb 100%);
  min-height: auto;
}

.sts-queue-main-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sts-left-panel .sts-queue-num,
.sts-queue-item.sts-queue-card-new .sts-queue-num {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 28px;
  flex: 0 0 72px;
}

.sts-queue-type-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
  min-width: 0;
}

.sts-left-panel .sts-queue-top {
  display: block;
}

.sts-left-panel .sts-queue-top .sts-pill,
.sts-queue-type-row .sts-pill {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.05;
  white-space: normal;
  text-align: center;
}

.sts-left-panel .sts-queue-name,
.sts-queue-item.sts-queue-card-new .sts-queue-name {
  padding-top: 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 950;
  color: #111827;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}

.sts-left-panel .sts-queue-meta,
.sts-queue-item.sts-queue-card-new .sts-queue-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.sts-left-panel .sts-mini-chip,
.sts-queue-item.sts-queue-card-new .sts-mini-chip {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: #4b5563;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
}

.sts-left-panel .sts-mini-chip strong,
.sts-queue-item.sts-queue-card-new .sts-mini-chip strong {
  color: #374151;
  font-size: 14px;
}

.sts-left-panel .sts-duration-chip,
.sts-queue-item.sts-queue-card-new .sts-duration-chip {
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

.sts-left-panel .sts-assigned-pill,
.sts-queue-item.sts-queue-card-new .sts-assigned-pill {
  margin-top: 12px;
  margin-left: 84px;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .sts-queue-main-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 25px;
  }
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 74px;
    font-size: 14px;
  }
  .sts-left-panel .sts-queue-name,
  .sts-queue-item.sts-queue-card-new .sts-queue-name {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .sts-queue-main-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }
  .sts-left-panel .sts-queue-name,
  .sts-queue-item.sts-queue-card-new .sts-queue-name {
    font-size: 17px;
  }
  .sts-queue-type-row {
    justify-content: flex-start;
  }
}

/* v3.8 Fixed appointment time controls
   Walk-in types do not show timer/duration controls. Regular Walk and Regular show Start Time / End Time only. */
.sts-duration-wrap.hidden,
.sts-appointment-wrap.hidden {
  display: none !important;
}

.sts-add-grid-single {
  grid-template-columns: 1fr !important;
}

.sts-appointment-wrap {
  padding: 12px 14px 0;
}

.sts-appointment-wrap label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.sts-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sts-regular-helper-text,
.sts-note,
.sts-stylist-picker p {
  -webkit-user-select: none;
  user-select: none;
}

.sts-appointment-chip strong {
  white-space: nowrap;
}

.sts-booked-btn:disabled,
.sts-take-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.sts-note-blocked {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.22);
}

@media (max-width: 640px) {
  .sts-time-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.8.1 appointment queue chip: remove Arrived label for fixed appointments and keep Appt on one clean line */
.sts-left-panel .sts-queue-meta-appointment,
.sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
  display: block !important;
  margin-top: 8px;
  min-width: 0;
}

.sts-left-panel .sts-appointment-chip,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  padding: 7px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: none !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-appointment-chip strong,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none !important;
}

@media (max-width: 420px) {
  .sts-left-panel .sts-appointment-chip,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sts-left-panel .sts-appointment-chip strong,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
    font-size: 12px;
  }
}

/* v3.8.2 walk-in auto assignment fix: future appointments should not hide the Take Next Walk-in button. */
.sts-note-appointment {
  background: rgba(153, 35, 250, 0.10);
  color: #5b1398;
  border-color: rgba(153, 35, 250, 0.20);
}

/* v3.8.3 fixed appointment safety + compact queue layout */
.sts-left-panel .sts-queue-main-row,
.sts-queue-item.sts-queue-card-new .sts-queue-main-row {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.sts-left-panel .sts-queue-num,
.sts-queue-item.sts-queue-card-new .sts-queue-num {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 14px !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.sts-left-panel .sts-queue-name,
.sts-queue-item.sts-queue-card-new .sts-queue-name {
  font-size: 20px !important;
  line-height: 1.08 !important;
  margin-bottom: 6px !important;
}

.sts-left-panel .sts-queue-type-row,
.sts-queue-item.sts-queue-card-new .sts-queue-type-row {
  justify-content: flex-start !important;
  margin-bottom: 5px !important;
}

.sts-left-panel .sts-queue-meta-appointment,
.sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 7px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 6px !important;
}

.sts-left-panel .sts-appointment-chip,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip {
  min-height: 30px !important;
  padding: 6px 9px !important;
  font-size: 12.5px !important;
  letter-spacing: -0.01em;
}

.sts-left-panel .sts-appointment-chip strong,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
  font-size: 12.5px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.sts-left-panel .sts-assigned-pill,
.sts-queue-item.sts-queue-card-new .sts-assigned-pill {
  margin-left: 56px !important;
}

.sts-edit-appt-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
}

.sts-edit-appt-btn:hover {
  filter: brightness(1.08);
}

.sts-edit-appt-card {
  max-width: 460px;
}

.sts-edit-time-grid {
  margin-top: 14px;
}

.sts-edit-appt-help {
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  user-select: none;
}

@media (max-width: 480px) {
  .sts-left-panel .sts-queue-main-row,
  .sts-queue-item.sts-queue-card-new .sts-queue-main-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 0 !important;
  }
  .sts-left-panel .sts-queue-meta-appointment,
  .sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }
  .sts-left-panel .sts-appointment-chip,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip,
  .sts-left-panel .sts-appointment-chip strong,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
    font-size: 11.5px !important;
  }
  .sts-edit-appt-btn {
    padding: 0 8px;
    font-size: 11px;
  }
}

/* v3.8.5 fixed appointment card layout - match requested design and show full appointment time */
.sts-left-panel .sts-queue-item.sts-fixed-appointment-card,
.sts-queue-item.sts-fixed-appointment-card {
  display: block !important;
  position: relative !important;
  padding: 22px 22px 20px !important;
  border-radius: 28px !important;
  border: 1.5px solid #fbbf24 !important;
  background: linear-gradient(180deg, #fffef7 0%, #fff9e8 100%) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  overflow: hidden !important;
}

.sts-left-panel .sts-queue-item.sts-fixed-appointment-card *,
.sts-queue-item.sts-fixed-appointment-card * {
  text-shadow: none !important;
}

.sts-fixed-top-grid {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
.sts-fixed-appointment-card .sts-queue-num {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  border-radius: 21px !important;
  background: #f59e0b !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

.sts-fixed-info {
  min-width: 0 !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-type-row,
.sts-fixed-appointment-card .sts-queue-type-row {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 6px 0 10px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-pill,
.sts-fixed-appointment-card .sts-pill {
  width: min(198px, 100%) !important;
  min-height: 58px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-name,
.sts-fixed-appointment-card .sts-queue-name {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.sts-fixed-appt-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.sts-appointment-text {
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.sts-appointment-text strong {
  font-size: inherit !important;
  font-weight: 950 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

.sts-fixed-appointment-card .sts-edit-appt-btn {
  width: 78px !important;
  min-width: 78px !important;
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-fixed-assigned-pill,
.sts-fixed-appointment-card .sts-fixed-assigned-pill {
  width: min(310px, 100%) !important;
  min-height: 76px !important;
  margin: 20px 0 0 auto !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.sts-fixed-assigned-pill span,
.sts-fixed-assigned-pill strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #3730a3 !important;
  font-size: 24px !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.sts-fixed-assigned-pill strong {
  text-transform: uppercase !important;
}

@media (max-width: 540px) {
  .sts-left-panel .sts-queue-item.sts-fixed-appointment-card,
  .sts-queue-item.sts-fixed-appointment-card {
    padding: 18px 18px 18px !important;
    border-radius: 26px !important;
  }

  .sts-fixed-top-grid {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
  .sts-fixed-appointment-card .sts-queue-num {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    border-radius: 18px !important;
    font-size: 21px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-pill,
  .sts-fixed-appointment-card .sts-pill {
    min-height: 48px !important;
    width: min(176px, 100%) !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-name,
  .sts-fixed-appointment-card .sts-queue-name {
    font-size: 22px !important;
  }

  .sts-fixed-appt-row {
    grid-template-columns: minmax(0, 1fr) 68px !important;
    gap: 9px !important;
    margin-top: 16px !important;
  }

  .sts-appointment-text,
  .sts-appointment-text strong {
    font-size: 15.5px !important;
    letter-spacing: -0.035em !important;
  }

  .sts-fixed-appointment-card .sts-edit-appt-btn {
    width: 68px !important;
    min-width: 68px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-fixed-assigned-pill,
  .sts-fixed-appointment-card .sts-fixed-assigned-pill {
    width: min(260px, 100%) !important;
    min-height: 68px !important;
    margin-top: 18px !important;
  }

  .sts-fixed-assigned-pill span,
  .sts-fixed-assigned-pill strong {
    font-size: 20px !important;
  }
}

@media (max-width: 380px) {
  .sts-fixed-top-grid {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
  .sts-fixed-appointment-card .sts-queue-num {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-pill,
  .sts-fixed-appointment-card .sts-pill {
    width: min(150px, 100%) !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .sts-fixed-appt-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
  }

  .sts-appointment-text,
  .sts-appointment-text strong {
    font-size: 13.5px !important;
  }

  .sts-fixed-appointment-card .sts-edit-appt-btn {
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
}


/* v3.8.6 left customer/queue panel wider by about 1cm */
.sts-layout {
  grid-template-columns: minmax(288px, 338px) minmax(0, 1fr) !important;
}

.sts-left-panel {
  width: 100%;
}

@media (max-width: 1180px) {
  .sts-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 820px) {
  .sts-shell {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 420px) {
  .sts-shell {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sts-left-panel .sts-card {
    margin-left: 0;
    margin-right: 0;
  }
}
