:root {
  --bg-base: #f7fafd;
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(14, 165, 233, 0.18);
  --rose-border: rgba(236, 72, 153, 0.22);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-50: #f0f9ff;
  --rose-500: #ec4899;
  --rose-50: #fdf2f8;
  --emerald-600: #059669;
  --emerald-50: #ecfdf5;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --danger-600: #dc2626;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 26px rgba(14, 165, 233, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(155deg, #f0f9ff 0%, #ffffff 48%, #fdf2f8 100%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 700;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.22);
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  line-height: 1.35;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.bg-orb-sky {
  width: 260px;
  height: 260px;
  background: #bae6fd;
  top: -60px;
  left: -60px;
}

.bg-orb-rose {
  width: 280px;
  height: 280px;
  background: #fbcfe8;
  bottom: -70px;
  right: -70px;
}

/* Mobile-First Container */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 12px 48px;
}

.boot-loader {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(14, 165, 233, 0.2);
  border-top-color: var(--sky-600);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.24s ease-out;
}

.glass-card + .glass-card {
  margin-top: 16px;
}

/* Top Bar (Mobile-First Stack) */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sky-500), var(--rose-500));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
}

.brand-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Mode Switcher Banner (Private Home Master vs Beauty Salon) */
.mode-banner {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mode-banner-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.mode-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  background: #eef4fa;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.mode-switcher-btn {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.mode-switcher-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.55);
}

.mode-switcher-btn.active {
  background: #ffffff;
  color: var(--sky-600);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.mode-switcher-btn.active-solo {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.26);
}

.mode-switcher-btn.active-salon {
  background: linear-gradient(135deg, #4f46e5, #db2777);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.24);
}

/* Pills & Navigation Tabs (Horizontal Scroll on Mobile) */
.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-muted);
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
}

/* KPI Grid (Mobile 2-col -> Desktop 4-col) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-tile {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 13px;
  box-shadow: var(--shadow-soft);
}

.kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.kpi-lbl {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.24);
}

.btn-rose {
  background: linear-gradient(135deg, #db2777, #ec4899);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.24);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.2);
}

.btn-ghost {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
}

.btn-ghost:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
}

.btn-danger {
  background: #fef2f2;
  color: var(--danger-600);
  border: 1px solid #fecaca;
}

.btn-sm {
  padding: 7.5px 12.5px;
  font-size: 12.5px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

/* Global Unified Rounded Form Controls — Zero Square Browser Inputs */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 14px;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

input[type="time"],
input[type="date"] {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 8px 11px;
  min-height: 40px;
  border-radius: 12px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.search-pill-input {
  flex: 1 1 220px;
  min-width: 200px;
  min-height: 38px;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  background-color: #ffffff;
}

/* Modern Rounded Pill Toggle Switch (.ui-switch) */
.ui-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

input[type="checkbox"].ui-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

input[type="checkbox"].ui-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input[type="checkbox"].ui-switch:checked {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  border-color: transparent;
}

input[type="checkbox"].ui-switch.ui-switch-rose:checked {
  background: linear-gradient(135deg, #db2777, #ec4899);
}

input[type="checkbox"].ui-switch:checked::after {
  transform: translateX(18px);
}

input[type="checkbox"].ui-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.24);
}

/* Fallback rounded accent for any standard checkbox */
input[type="checkbox"]:not(.ui-switch) {
  width: 17px;
  height: 17px;
  accent-color: var(--sky-600);
  border-radius: 6px;
  cursor: pointer;
}

/* Smooth Rounded Accordions (<details> / <summary>) */
details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 14px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

details[open] {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

details > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--sky-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "▾";
  font-size: 14px;
  color: var(--text-soft);
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

details[open] > summary::after {
  transform: rotate(180deg);
  color: var(--sky-600);
}

/* Forms (Mobile Single Column -> Tablet/Desktop Multi-column) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-soft);
}

/* Login Card */
.auth-wrap {
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.auth-card {
  width: 100%;
  max-width: 450px;
}

/* Lists & Item Rows */
.section-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card.pending-highlight {
  background: linear-gradient(135deg, #fffbeb, #ffffff);
  border-color: #fcd34d;
}

.item-card.secret-highlight {
  background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
  border-color: rgba(14, 165, 233, 0.32);
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.pill-pending {
  background: var(--amber-50);
  color: var(--amber-600);
}

.pill-confirmed {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.pill-sky {
  background: var(--sky-50);
  color: var(--sky-600);
}

.pill-rose {
  background: var(--rose-50);
  color: #be185d;
}

.pill-violet {
  background: #f5f3ff;
  color: #6d28d9;
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.demo-mini-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 2px;
}

.staff-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.staff-check-chip:has(input:checked) {
  background: var(--sky-50);
  border-color: var(--sky-500);
  color: var(--sky-600);
}

.staff-check-chip input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 14px;
}

.filter-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
}

.filter-chip.active {
  background: var(--sky-600);
  color: #ffffff;
  border-color: var(--sky-600);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}

.crm-formula-box {
  background: #f8fafc;
  border-left: 3px solid var(--sky-500);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.8px;
  color: #1e293b;
}

.intercept-highlight {
  background: linear-gradient(135deg, #fef2f2, #ffffff);
  border-color: #fca5a5;
}

/* Weekly Hours & Lunch / Break Window Editor */
.wh-quick-toolbar {
  background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wh-quick-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wh-quick-controls input[type="time"] {
  width: 112px;
}

.weekly-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  align-items: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.weekly-row.is-day-off {
  background: #f8fafc;
  border-style: dashed;
}

.weekly-row.is-day-off .wh-shift-group,
.weekly-row.is-day-off .wh-break-group {
  opacity: 0.4;
  pointer-events: none;
}

.weekly-row.no-break .wh-break-pair {
  opacity: 0.38;
  pointer-events: none;
}

.wh-day-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wh-shift-group,
.wh-break-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  transition: opacity 0.18s ease;
}

.wh-mini-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.wh-time-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s ease;
}

.wh-time-pair input[type="time"] {
  width: 112px;
}

.wh-dash {
  color: var(--text-soft);
  font-weight: 700;
}

/* Interactive Dual-Role Bot Phone Simulator */
.sim-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.phone-frame {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.phone-screen {
  background: linear-gradient(180deg, #eef6ff 0%, #fdf4f9 100%);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
}

.phone-header {
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), var(--rose-500));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.phone-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-bubble {
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.48;
  word-wrap: break-word;
  animation: fadeUp 0.18s ease-out;
}

.msg-bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-main);
  border-bottom-left-radius: 5px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.msg-sticker-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--rose-50);
  color: #be185d;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bot-inline-kb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}

.bot-inline-row {
  display: flex;
  gap: 5px;
}

.bot-kb-btn {
  flex: 1;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 11px;
  padding: 8px 9px;
  font-size: 12.2px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bot-kb-btn:hover {
  background: rgba(14, 165, 233, 0.2);
}

.phone-composer {
  background: #ffffff;
  padding: 9px 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-composer input[type="text"] {
  flex: 1;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.photo-upload-lbl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rose-50);
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid var(--rose-border);
}

/* Toast Notifications */
.toast-root {
  position: fixed;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  animation: fadeUp 0.2s ease-out;
}

.toast-error {
  background: rgba(185, 28, 28, 0.95);
}

/* Tablet Breakpoint (min-width: 640px) */
@media (min-width: 640px) {
  .app-shell {
    padding: 22px 20px 60px;
  }

  .glass-card {
    padding: 24px 22px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mode-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .mode-switcher {
    flex-wrap: nowrap;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast-root {
    left: auto;
    width: 360px;
  }
}

/* Desktop Breakpoint (min-width: 1024px) */
@media (min-width: 1024px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weekly-row {
    grid-template-columns: 185px auto 1fr;
    gap: 16px;
  }

  .wh-break-group {
    justify-content: flex-end;
  }

  .sim-layout {
    grid-template-columns: 440px 1fr;
    align-items: start;
  }
}
