/* =========================================================
   Cornerstone — OT Practice Management
   Design system
   ========================================================= */

:root {
  /* Brand palette — "the stone the builders rejected has become the cornerstone" */
  --slate-900: #0f1f33;
  --slate-800: #18304b;
  --slate-700: #1e3a5f;          /* primary */
  --slate-600: #2a4a73;
  --slate-500: #3e608a;
  --slate-400: #6b85a3;
  --slate-300: #a3b3c7;
  --slate-200: #d6dde6;
  --slate-100: #eaeef3;

  --gold-700: #9a7d3d;
  --gold-600: #b8954a;
  --gold-500: #c9a961;           /* accent — cornerstone */
  --gold-400: #d8be83;
  --gold-200: #ede0bb;
  --gold-100: #f7f0d9;

  --sage-700: #4f6f5e;
  --sage-500: #6b8a7a;            /* healing */
  --sage-200: #cfdcd2;
  --sage-100: #e6ede8;

  --terra-500: #b86b4a;
  --terra-200: #f2d6c8;

  --cream-50: #faf7f2;            /* page background */
  --cream-100: #f4efe5;
  --stone-200: #e8e3d8;           /* borders, warm */

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #94a3b8;

  --white: #ffffff;
  --danger: #c1453b;
  --danger-bg: #fce8e6;
  --warn: #b67919;
  --warn-bg: #fcf2dc;
  --ok: #2d6f4f;
  --ok-bg: #d8ebe0;
  --info: #1e6a8b;
  --info-bg: #d9ecf3;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Sizing */
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 51, 0.06), 0 1px 1px rgba(15,31,51,0.04);
  --shadow: 0 4px 12px rgba(15, 31, 51, 0.06), 0 1px 3px rgba(15, 31, 51, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 31, 51, 0.12), 0 2px 6px rgba(15, 31, 51, 0.05);
  --shadow-gold: 0 6px 18px rgba(184, 149, 74, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--slate-700); text-decoration: none; }
a:hover { color: var(--slate-900); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
}
h1 { font-size: 24px; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
small { font-size: 12px; color: var(--ink-500); }

input, select, textarea, button { font: inherit; color: inherit; }

::selection { background: var(--gold-200); color: var(--ink-900); }

/* =========================================================
   App shell
   ========================================================= */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--slate-800) 0%, var(--slate-900) 100%);
  color: var(--slate-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(0,0,0,0.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  display: grid; place-items: center;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--gold-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
}
.nav-section {
  margin-top: 14px;
}
.nav-section-title {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 0 12px 8px;
  font-weight: 600;
}
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--slate-200);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 1px;
  transition: background 0.12s, color 0.12s;
}
.nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.nav a.active {
  background: rgba(201, 169, 97, 0.14);
  color: var(--white);
  border-left: 2px solid var(--gold-500);
  padding-left: 10px;
}
.nav a .icon { width: 18px; height: 18px; opacity: 0.85; flex-shrink: 0; }
.nav a .badge {
  margin-left: auto;
  background: var(--gold-500);
  color: var(--slate-900);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--slate-500);
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
}
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-name { color: var(--white); font-size: 13px; font-weight: 600; }
.user-role { color: var(--slate-400); font-size: 11.5px; }

/* Main */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--stone-200);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-search {
  flex: 1; max-width: 480px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--stone-200);
  border-radius: 9px;
  background: var(--cream-50);
  padding: 0 14px 0 38px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.topbar-search input:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}
.topbar-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-500);
}
.topbar-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.topbar .icon-btn {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.topbar .icon-btn:hover { background: var(--cream-100); border-color: var(--gold-400); }
.topbar .icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--terra-500);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.content {
  padding: 28px;
  flex: 1;
  max-width: 1480px;
  width: 100%;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head .title h1 { font-size: 26px; }
.page-head .title p { margin: 4px 0 0; color: var(--ink-500); font-size: 13.5px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover { background: var(--cream-100); border-color: var(--ink-300); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }

.btn-primary {
  background: var(--slate-700);
  color: var(--white);
  border-color: var(--slate-700);
}
.btn-primary:hover { background: var(--slate-800); border-color: var(--slate-800); }

.btn-gold {
  background: var(--gold-500);
  color: var(--slate-900);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--cream-100); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #a83a31; border-color: #a83a31; }

.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 10px; }

/* =========================================================
   Cards / Panels
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--stone-200);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px 22px; }
.card-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--stone-200);
  background: var(--cream-50);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
}
.stat .label {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.stat .delta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}
.stat .delta.up { color: var(--ok); }
.stat .delta.down { color: var(--danger); }
.stat .icon-bubble {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--cream-100);
  display: grid; place-items: center;
  color: var(--slate-700);
}

/* =========================================================
   Tables
   ========================================================= */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-toolbar {
  padding: 14px 18px;
  display: flex; gap: 10px; align-items: center;
  border-bottom: 1px solid var(--stone-200);
  background: var(--white);
  flex-wrap: wrap;
}
.table-toolbar .search {
  position: relative;
  flex: 1; min-width: 220px; max-width: 360px;
}
.table-toolbar .search input {
  width: 100%; height: 36px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  padding: 0 12px 0 34px;
  font-size: 13px;
  background: var(--cream-50);
  outline: none;
}
.table-toolbar .search input:focus {
  border-color: var(--gold-500); background: var(--white);
}
.table-toolbar .search .icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-500);
}
.filter-pill {
  height: 32px; padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  font-weight: 500;
}
.filter-pill:hover { background: var(--cream-50); }
.filter-pill.active { background: var(--slate-700); color: var(--white); border-color: var(--slate-700); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data th {
  text-align: left;
  padding: 12px 16px;
  background: var(--cream-50);
  color: var(--ink-500);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--stone-200);
  white-space: nowrap;
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stone-200);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--cream-50); }
table.data .name-cell {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
table.data .name-cell .sub { color: var(--ink-500); font-size: 12px; font-weight: 400; }
table.data .row-actions { text-align: right; white-space: nowrap; }

.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--stone-200);
  font-size: 12.5px; color: var(--ink-500);
}
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages button {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  cursor: pointer;
  font-size: 12.5px;
}
.pagination .pages button.active { background: var(--slate-700); color: var(--white); border-color: var(--slate-700); }

/* =========================================================
   Tags / Status pills
   ========================================================= */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 99px;
  background: var(--slate-100);
  color: var(--slate-700);
  white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.danger { background: var(--danger-bg); color: var(--danger); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.gold { background: var(--gold-100); color: var(--gold-700); }
.tag.sage { background: var(--sage-100); color: var(--sage-700); }

/* =========================================================
   Forms
   ========================================================= */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row.col-1 { grid-template-columns: 1fr; }
.form-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.field input, .field select, .field textarea {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  outline: none;
  font-size: 13.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}
.field .hint { font-size: 12px; color: var(--ink-500); }

.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--slate-700); }

.toggle {
  position: relative;
  width: 38px; height: 22px;
  background: var(--slate-200);
  border-radius: 99px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  box-shadow: var(--shadow-sm);
  transition: left 0.18s;
}
.toggle.on { background: var(--sage-500); }
.toggle.on::after { left: 18px; }

/* =========================================================
   Layout helpers
   ========================================================= */
.row { display: flex; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.middle { align-items: center; }
.center { justify-content: center; align-items: center; }
.flex1 { flex: 1; }
.wrap { flex-wrap: wrap; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--ink-500); }
.bold { font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.right { text-align: right; }
.center-text { text-align: center; }
.hidden { display: none !important; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Calendar
   ========================================================= */
.cal-grid {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  border-top: 1px solid var(--stone-200);
  border-left: 1px solid var(--stone-200);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-cell {
  border-right: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  min-height: 60px;
  position: relative;
  font-size: 12px;
}
.cal-time { color: var(--ink-500); padding: 6px 10px; font-size: 11.5px; }
.cal-head {
  background: var(--cream-50);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-900);
  border-right: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}
.cal-head .day-num { font-size: 22px; font-weight: 600; display: block; margin-top: 2px; }
.cal-head.today { background: var(--gold-100); color: var(--gold-700); }
.cal-event {
  position: absolute;
  left: 4px; right: 4px;
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  overflow: hidden;
}
.cal-event.sage { background: var(--sage-100); border-color: var(--sage-500); color: var(--sage-700); }
.cal-event.gold { background: var(--gold-100); border-color: var(--gold-600); color: var(--gold-700); }
.cal-event.terra { background: var(--terra-200); border-color: var(--terra-500); color: var(--terra-500); }
.cal-event .ev-time { font-weight: 600; }
.cal-event .ev-title { font-weight: 500; color: var(--ink-900); }

/* =========================================================
   Tabs
   ========================================================= */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--stone-200);
  gap: 2px;
}
.tab {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink-900); }
.tab.active {
  color: var(--slate-700);
  border-bottom-color: var(--gold-500);
  font-weight: 600;
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--stone-200);
}
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: "";
  position: absolute; left: -22px; top: 4px;
  width: 14px; height: 14px;
  background: var(--gold-500);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--stone-200);
}
.tl-item .tl-meta { font-size: 12px; color: var(--ink-500); margin-bottom: 2px; }
.tl-item .tl-title { font-size: 13.5px; font-weight: 500; }

/* =========================================================
   Auth pages
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--cream-50);
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside {
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(201,169,97,0.12) 0%, transparent 50%),
    linear-gradient(160deg, var(--slate-800) 0%, var(--slate-900) 100%);
  color: var(--white);
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-aside .verse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold-200);
  max-width: 460px;
}
.auth-aside .verse-ref {
  font-size: 13px;
  color: var(--gold-400);
  margin-top: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-aside .brand-large {
  display: flex; align-items: center; gap: 14px;
}
.auth-aside .brand-large .brand-mark { width: 44px; height: 44px; }
.auth-aside .brand-large .brand-mark svg { width: 26px; height: 26px; }
.auth-aside .brand-large .brand-name { font-size: 22px; }

.auth-pane {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth-card {
  width: 100%; max-width: 400px;
}
.auth-card h1 { font-size: 26px; }
.auth-card p.lede { color: var(--ink-500); margin: 6px 0 28px; }

/* =========================================================
   Misc
   ========================================================= */
.divider { height: 1px; background: var(--stone-200); margin: 16px 0; border: 0; }
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-500);
}
.empty .empty-title { font-size: 15px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }

.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--cream-100);
  border: 1px solid var(--stone-200);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-700);
}

.progress {
  height: 8px;
  background: var(--cream-100);
  border-radius: 99px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
  border-radius: 99px;
}
.progress.sage > span { background: linear-gradient(90deg, var(--sage-500), var(--sage-700)); }

/* Avatar palette colours */
.avatar.c1 { background: #5b7fa3; }
.avatar.c2 { background: #b8954a; }
.avatar.c3 { background: #6b8a7a; }
.avatar.c4 { background: #b86b4a; }
.avatar.c5 { background: #7a6dab; }
.avatar.c6 { background: #4f8b8b; }

/* Responsive */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; transform: translateX(-100%); z-index: 100; width: 260px; transition: transform .2s; }
  .sidebar.open { transform: none; }
  .content { padding: 18px; }
  .topbar { padding: 0 16px; }
}

/* Donut chart base */
.donut {
  --p: 65;
  --c: var(--gold-500);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--cream-100) 0);
  display: grid; place-items: center;
  position: relative;
}
.donut::before {
  content: "";
  position: absolute; inset: 12px;
  background: var(--white);
  border-radius: 50%;
}
.donut .donut-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
}

/* Bar chart */
.bar-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 160px; align-items: end; }
.bar-chart .bar {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
  border-radius: 5px 5px 0 0;
  position: relative;
}
.bar-chart .bar.muted { background: var(--cream-100); }
.bar-chart .label { font-size: 10.5px; text-align: center; color: var(--ink-500); margin-top: 4px; }

/* Section banner */
.banner {
  background: linear-gradient(135deg, var(--slate-700), var(--slate-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,169,97,0.2), transparent 70%);
  border-radius: 50%;
}
.banner h2 { color: var(--white); font-size: 18px; }
.banner p { margin: 6px 0 0; color: rgba(255,255,255,0.78); font-size: 13.5px; }
.banner .actions { z-index: 2; }
