@import url("tokens.css");

/* ==========================================================
   FitMinds admin — derived from The Sensory design system.
   Overrides: warm coral primary, softer surfaces, kid-energy.
   ========================================================== */

:root {
  /* FitMinds brand overrides - warm coral + deep navy sidebar */
  --fm-primary: oklch(0.66 0.18 35);      /* coral/orange */
  --fm-primary-dark: oklch(0.58 0.19 32);
  --fm-accent: oklch(0.72 0.17 165);      /* mint/teal - movement */
  --fm-sunny: oklch(0.82 0.14 85);        /* warm sunny */
  --fm-lilac: oklch(0.72 0.12 300);

  --primary: var(--fm-primary);
  --primary-foreground: #fff;
  --ring: var(--fm-primary);

  --secondary: oklch(0.96 0.02 35);
  --secondary-foreground: var(--fm-primary-dark);
  --accent: oklch(0.96 0.02 35);
  --accent-foreground: var(--fm-primary-dark);

  --sidebar: oklch(0.20 0.035 265);
  --sidebar-accent: oklch(0.27 0.04 265);

  --gradient-primary: linear-gradient(135deg, oklch(0.68 0.18 38), oklch(0.62 0.19 28));
  --gradient-sidebar: linear-gradient(180deg, oklch(0.22 0.04 260), oklch(0.15 0.03 265));
  --shadow-glow: 0 0 16px oklch(0.66 0.18 35 / 28%), 0 0 4px oklch(0.66 0.18 35 / 15%);

  --chart-1: var(--fm-primary);
  --chart-2: var(--fm-accent);
  --chart-3: var(--fm-sunny);
  --chart-4: var(--fm-lilac);
  --chart-5: oklch(0.55 0.18 250);

  --background: #fbf8f5;       /* paper warm */
  --card: #ffffff;
  --muted: #f3efe9;
}

html, body { margin: 0; padding: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ========= App shell ========= */
.app-root { display: flex; height: 100vh; overflow: hidden; }
.app-sidebar { width: 248px; display: flex; flex-direction: column; color: #fff; background: var(--gradient-sidebar); flex-shrink: 0; }
.app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.app-header {
  height: 64px; display: flex; align-items: center; padding: 0 28px; gap: 16px;
  background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.app-content { flex: 1; overflow-y: auto; padding: 28px 32px 64px; scroll-behavior: smooth; }

/* Sidebar */
.brand-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--gradient-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.brand-sub { font-size: 10.5px; color: oklch(1 0 0 / 55%); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px; }

.sidebar-section-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(1 0 0 / 45%); padding: 14px 20px 6px; }
.sidebar-row {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 10px; padding: 9px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: oklch(0.85 0.01 260);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease; cursor: pointer;
  border: none; background: transparent; width: calc(100% - 20px); text-align: left;
}
.sidebar-row:hover { background: var(--sidebar-accent); color: #fff; }
.sidebar-row.is-active { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.sidebar-row .lucide { width: 17px; height: 17px; stroke-width: 2; }
.sidebar-badge { margin-left: auto; background: oklch(1 0 0 / 12%); padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.sidebar-row.is-active .sidebar-badge { background: oklch(1 0 0 / 22%); }

.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid oklch(1 0 0 / 8%); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: oklch(1 0 0 / 5%); cursor: pointer; }
.user-chip:hover { background: oklch(1 0 0 / 10%); }
.user-chip .avatar-sm { width: 32px; height: 32px; border-radius: 10px; background: var(--gradient-primary); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.user-chip .name { color: #fff; font-size: 13px; font-weight: 600; }
.user-chip .role { color: oklch(1 0 0 / 55%); font-size: 11px; }

/* Header */
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.page-subtitle { margin: 3px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.role-pill { padding: 4px 10px; border-radius: 999px; background: var(--secondary); color: var(--primary); font-size: 11px; font-weight: 600; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--foreground); cursor: pointer; transition: background .15s ease; }
.icon-btn:hover { background: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--gradient-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-xs); }

/* Search in header */
.header-search { flex: 1; max-width: 460px; position: relative; }
.header-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 13.5px; color: var(--foreground); }
.header-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.66 0.18 35 / 18%); }
.header-search .lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); width: 16px; height: 16px; }
.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; font-size: 10.5px; color: var(--muted-foreground); font-family: var(--font-mono); }

/* Cards / general */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.card-lift { transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s; }
.card-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: oklch(0.66 0.18 35 / 25%); }
.card-header { padding: 18px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-body { padding: 0 20px 20px; }
.section-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin: 0; }

/* Stats */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card .label { font-size: 12px; color: var(--muted-foreground); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.stat-card .value { margin: 10px 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card .delta { font-size: 12px; color: var(--muted-foreground); display: flex; align-items: center; gap: 4px; }
.stat-card .delta.up { color: oklch(0.55 0.15 150); }
.stat-card .delta.down { color: oklch(0.6 0.2 25); }
.stat-icon { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 11px; background: var(--gradient-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow); color: #fff; }
.stat-icon.tint-mint { background: linear-gradient(135deg, oklch(.74 .16 165), oklch(.65 .17 170)); box-shadow: 0 0 14px oklch(.72 .17 165 / 30%); }
.stat-icon.tint-sun  { background: linear-gradient(135deg, oklch(.84 .13 85), oklch(.74 .15 70)); box-shadow: 0 0 14px oklch(.82 .14 85 / 30%); }
.stat-icon.tint-lilac{ background: linear-gradient(135deg, oklch(.75 .11 300), oklch(.65 .14 290)); box-shadow: 0 0 14px oklch(.72 .12 300 / 30%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; font-weight: 500; border: none; cursor: pointer; transition: filter .15s, box-shadow .15s, transform .1s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-md { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-glow); }
.btn-outline { background: var(--card); color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-destructive { background: oklch(0.577 0.245 27.325 / 10%); color: oklch(0.577 0.245 27.325); }
.btn-destructive:hover { background: oklch(0.577 0.245 27.325 / 18%); }
.btn-accent { background: var(--fm-accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.07); }
.btn .lucide { width: 15px; height: 15px; }

/* Form */
.field { display: block; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--foreground); margin-bottom: 6px; }
.field-hint  { display: block; font-size: 11.5px; color: var(--muted-foreground); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--input);
  background: var(--card); padding: 0 13px; font: inherit; font-size: 13.5px; color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 11px 13px; min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.66 0.18 35 / 18%); }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.chip-dot { width: 6px; height: 6px; border-radius: 999px; }
.chip.green  { background: #dcfce7; color: #15803d; }
.chip.amber  { background: #fef3c7; color: #854d0e; }
.chip.red    { background: #fee2e2; color: #b91c1c; }
.chip.blue   { background: #dbeafe; color: #1d4ed8; }
.chip.violet { background: oklch(.94 .05 300); color: oklch(.45 .18 300); }
.chip.mint   { background: oklch(.94 .05 165); color: oklch(.40 .14 165); }
.chip.neutral{ background: var(--muted); color: var(--muted-foreground); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead tr { border-bottom: 1px solid var(--border); background: oklch(0 0 0 / 2%); }
.data-table th { text-align: left; padding: 11px 18px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: oklch(0 0 0 / 2%); }
.data-table td { padding: 13px 18px; vertical-align: middle; }

/* Split layouts */
.row { display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-5-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.flex-1 { flex: 1; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.space-y-3 > * + * { margin-top: 12px; } .space-y-4 > * + * { margin-top: 16px; } .space-y-6 > * + * { margin-top: 24px; } .space-y-8 > * + * { margin-top: 32px; }
.mt-0\.5 { margin-top: 2px; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.text-xs { font-size: 11.5px; } .text-sm { font-size: 13px; } .text-md { font-size: 14.5px; } .text-lg { font-size: 17px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 28px; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.muted { color: var(--muted-foreground); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabnum { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Filter pills */
.filter-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--foreground); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.filter-pill:hover { background: var(--muted); }
.filter-pill.is-active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.pill-count { padding: 1px 7px; border-radius: 999px; background: var(--muted); font-size: 10.5px; font-weight: 700; color: inherit; }
.filter-pill.is-active .pill-count { background: rgba(255,255,255,0.25); }

/* Quick booking hero */
.quick-entry-card {
  padding: 22px 24px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.quick-entry-card::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 500px 160px at 85% -20%, oklch(.82 .14 85 / .18), transparent 70%);
  pointer-events: none;
}
.quick-entry-input {
  width: 100%; background: var(--muted); border: 1px solid transparent; border-radius: 14px;
  padding: 16px 20px; font-size: 18px; font-weight: 500;
  color: var(--foreground); font-family: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.quick-entry-input::placeholder { color: var(--muted-foreground); font-weight: 400; }
.quick-entry-input:focus { outline: none; background: var(--card); border-color: var(--primary); box-shadow: 0 0 0 4px oklch(0.66 0.18 35 / 18%); }
.parse-preview { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 32px; }
.parse-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: oklch(0.96 0.02 35); color: var(--fm-primary-dark); font-size: 12.5px; font-weight: 600; border: 1px solid oklch(0.66 0.18 35 / 22%); }
.parse-chip .lucide { width: 13px; height: 13px; }
.parse-chip.dim { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: 64px repeat(7, 1fr); gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.cal-cell { background: var(--card); padding: 6px 8px; min-height: 60px; position: relative; }
.cal-cell.header { background: oklch(0 0 0 / 2%); text-align: center; padding: 10px 0; }
.cal-cell.header .dname { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.cal-cell.header .dnum { font-size: 20px; font-weight: 700; margin-top: 2px; }
.cal-cell.header.is-today .dnum { color: var(--primary); }
.cal-time { background: oklch(0 0 0 / 2%); padding: 4px 8px; font-size: 10.5px; color: var(--muted-foreground); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cal-event { border-radius: 10px; padding: 6px 9px; font-size: 11.5px; font-weight: 600; line-height: 1.25; margin-bottom: 3px; cursor: pointer; transition: filter .15s; border-left: 3px solid; }
.cal-event:hover { filter: brightness(1.03); }
.cal-event .time { font-size: 10.5px; font-weight: 500; opacity: 0.75; margin-top: 1px; }

/* Event palette */
.evt-coral { background: oklch(0.96 0.04 35); color: oklch(0.42 0.15 30); border-color: var(--fm-primary); }
.evt-mint  { background: oklch(0.95 0.04 165); color: oklch(0.38 0.12 165); border-color: var(--fm-accent); }
.evt-sun   { background: oklch(0.96 0.06 85); color: oklch(0.45 0.14 70); border-color: oklch(0.7 0.15 80); }
.evt-lilac { background: oklch(0.95 0.03 300); color: oklch(0.42 0.15 295); border-color: var(--fm-lilac); }

/* Progress bar */
.progress { width: 100%; height: 6px; background: var(--muted); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gradient-primary); border-radius: 999px; transition: width .4s ease; }

/* Drawer / modal */
.scrim { position: fixed; inset: 0; background: oklch(0 0 0 / 25%); backdrop-filter: blur(3px); z-index: 50; display: flex; justify-content: flex-end; }
.drawer { width: min(560px, 100%); height: 100%; background: var(--background); box-shadow: -20px 0 40px -10px oklch(0 0 0 / 18%); display: flex; flex-direction: column; animation: slideIn .2s cubic-bezier(.22,1,.36,1); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--card); }

/* Modal */
.modal-scrim { position: fixed; inset: 0; background: oklch(0 0 0 / 25%); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(720px, 100%); max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-xl); animation: slideUp .2s cubic-bezier(.22,1,.36,1); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Invoice preview */
.invoice-paper {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 40px; box-shadow: var(--shadow-md);
  font-size: 13.5px; color: #1a1c2e;
}
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 2px solid #1a1c2e; }
.invoice-brand .wordmark { font-size: 20px; font-weight: 700; }
.invoice-meta { text-align: right; font-size: 12px; color: #6b7280; }
.invoice-meta .num { font-size: 18px; font-weight: 700; color: #1a1c2e; font-family: var(--font-mono); }

.invoice-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.invoice-table th { text-align: left; padding: 10px 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; border-bottom: 1px solid var(--border); }
.invoice-table td { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.invoice-totals { margin-left: auto; width: 280px; margin-top: 16px; font-size: 13.5px; }
.invoice-totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.invoice-totals .total { border-top: 2px solid #1a1c2e; padding-top: 10px; margin-top: 6px; font-weight: 700; font-size: 16px; }

/* Login */
.login-root { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--background); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-form { width: min(380px, 100%); }
.login-art { background: var(--gradient-sidebar); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before { content: ''; position: absolute; top: -120px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, oklch(.66 .18 35 / .35), transparent 70%); }
.login-art::after { content: ''; position: absolute; bottom: -100px; left: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, oklch(.72 .17 165 / .25), transparent 70%); }
.login-art > * { position: relative; z-index: 1; }

/* Video tile */
.video-tile { overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.video-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.video-thumb { aspect-ratio: 16/10; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; overflow: hidden; }
.video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, oklch(0 0 0 / 55%)); }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transition: opacity .15s; }
.video-tile:hover .video-thumb .play { opacity: 1; }
.video-thumb .play span { width: 54px; height: 54px; border-radius: 999px; background: oklch(1 0 0 / 95%); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.video-thumb .duration { position: relative; z-index: 2; background: oklch(0 0 0 / 70%); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.video-body { padding: 12px 14px 14px; }
.video-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; }
.video-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* Tabs */
.tabs-row { display: flex; gap: 4px; padding: 4px; background: var(--muted); border-radius: 12px; width: max-content; }
.tab { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); background: transparent; border: none; cursor: pointer; transition: all .15s; }
.tab.is-active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-xs); }

/* Toast */
.toast-stack { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--foreground); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 260px; animation: slideUp .25s cubic-bezier(.22,1,.36,1); }
.toast.success { background: oklch(0.40 0.14 160); }
.toast .lucide { width: 17px; height: 17px; }

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 40;
  width: 320px; background: var(--card); border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow-xl);
  overflow: hidden; font-size: 13px;
}
.tweaks-header { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--muted); }
.tweaks-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--foreground); }

/* Kanban for leads */
.kanban-col { background: var(--muted); border-radius: 14px; padding: 12px; min-height: 300px; }
.kanban-col .col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.kanban-col .col-head .name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kanban-card { background: var(--card); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); margin-bottom: 8px; cursor: grab; transition: box-shadow .15s, transform .15s; }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* mini-spark */
.sparkbar { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.sparkbar span { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; opacity: 0.8; transition: opacity .15s; }
.sparkbar span:hover { opacity: 1; }

/* Booking block (calendar pill) */
.booking-block {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--card);
  cursor: pointer; transition: all .15s;
}
.booking-block:hover { border-color: oklch(0.66 0.18 35 / 35%); background: oklch(0.96 0.02 35); }
.booking-block .school-swatch { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 13px; flex-shrink: 0; }

/* school logo swatches (initials tiles) */
.school-tile { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 13.5px; flex-shrink: 0; }

/* Empty */
.empty { padding: 48px 24px; text-align: center; color: var(--muted-foreground); }
.empty .lucide { color: var(--muted-foreground); opacity: .5; margin-bottom: 12px; }

/* Checkbox */
.cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--input); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cb.is-checked { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Switch */
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--muted); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-xs); transition: transform .15s; }
.switch.is-on { background: var(--primary); border-color: transparent; }
.switch.is-on::after { transform: translateX(16px); }

/* Client portal variations */
.portal-root { min-height: 100vh; background: var(--background); }
.portal-header { height: 70px; display: flex; align-items: center; padding: 0 32px; gap: 20px; background: var(--card); border-bottom: 1px solid var(--border); }
.portal-content { max-width: 1180px; margin: 0 auto; padding: 32px; }

/* Scroll */
.app-content::-webkit-scrollbar, .drawer-body::-webkit-scrollbar { width: 10px; }
.app-content::-webkit-scrollbar-thumb, .drawer-body::-webkit-scrollbar-thumb { background: oklch(0 0 0 / 12%); border-radius: 999px; border: 2px solid var(--background); }

/* small helpers */
.dot-sep { color: var(--muted-foreground); margin: 0 6px; }
.divider { height: 1px; background: var(--border); border: none; margin: 16px 0; }
