/* Mayfield Connect — design system (enterprise refresh) */

:root {
  /* Core palette — calm, clinical, restrained */
  --teal-50:  #F0F5F4;
  --teal-100: #DAE8E5;
  --teal-200: #B5D2CD;
  --teal-300: #84B4AC;
  --teal-400: #4F938A;
  --teal-500: #2D7A75;
  --teal-600: #1F5F5B;
  --teal-700: #154944;
  --teal-800: #0E3431;
  --teal-900: #082220;

  --accent-400: #C97A4D;
  --accent-500: #B66534;
  --accent-100: #F6E2D2;

  /* Neutrals — warmer than pure gray, less yellow than cream */
  --bg:        #F7F7F5;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF8;
  --border:    #ECECE8;
  --border-strong: #DDDDD7;
  --hover:     #F4F4F1;

  --ink-900: #0F1F1E;
  --ink-800: #1F302F;
  --ink-700: #354544;
  --ink-600: #4F5E5D;
  --ink-500: #6C7878;
  --ink-400: #9DA8A7;
  --ink-300: #BFC8C7;
  --ink-200: #DDE3E2;

  /* Status — muted, not playful */
  --success:   #1F7656;
  --success-bg:#E2F0E9;
  --warning:   #B07A1A;
  --warning-bg:#F8EDD5;
  --danger:    #A53641;
  --danger-bg: #F4DCDE;
  --info:      #2F5BA0;
  --info-bg:   #DDE6F4;
  --violet:    #6849B8;
  --violet-bg: #E8E0F5;

  --shadow-xs: 0 1px 1px rgba(15, 31, 30, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 31, 30, 0.05), 0 1px 1px rgba(15, 31, 30, 0.02);
  --shadow-md: 0 2px 6px rgba(15, 31, 30, 0.05), 0 1px 2px rgba(15, 31, 30, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 31, 30, 0.10), 0 2px 6px rgba(15, 31, 30, 0.05);

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.mono { font-family: ui-monospace, SF Mono, Menlo, Consolas, monospace; }

a { color: var(--teal-600); text-decoration: none; transition: color .12s; }
a:hover { color: var(--teal-700); }

.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* === LAYOUT SHELL === */
.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--teal-800);
  color: rgba(228, 235, 234, 0.85);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--teal-900);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: white;
}
.brand .logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.brand small {
  display: block; font-weight: 400; opacity: 0.55; font-size: 10.5px;
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px;
}

.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav-section {
  padding: 14px 10px 6px; font-size: 10.5px; opacity: 0.45;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: rgba(228, 235, 234, 0.78);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.1s, color 0.1s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: white; }
.nav a.active { background: var(--teal-700); color: white; }
.nav a.active .ic { color: var(--teal-200); }
.nav .ic { color: rgba(228, 235, 234, 0.55); }
.nav a:hover .ic { color: rgba(255, 255, 255, 0.85); }

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  font-size: 11.5px;
  color: rgba(228, 235, 234, 0.5);
  display: flex; gap: 10px; align-items: center;
}
.sidebar-foot .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-500); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.sidebar-foot strong { display: block; color: white; font-size: 12.5px; font-weight: 600; }

/* === MAIN === */
.main { padding: 24px 32px 80px; min-width: 0; max-width: 100%; }
.topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.topbar h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.topbar .sub { color: var(--ink-500); font-size: 13px; margin-top: 4px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* === CARDS === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}
.card.tight { padding: 14px; }
.card.flat { box-shadow: none; }

.card-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.card-h h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink-900); }
.card-h .sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* === STATS === */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: border-color 0.12s;
}
.stat:hover { border-color: var(--border-strong); }
.stat .label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.stat .label .ic { color: var(--ink-400); }
.stat .value {
  font-size: 26px; font-weight: 600; letter-spacing: -0.025em;
  margin-top: 6px; color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.stat .delta {
  font-size: 11.5px; color: var(--ink-500); margin-top: 3px;
  display: flex; align-items: center; gap: 5px;
}
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* === TABLES === */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 16px; text-align: left; vertical-align: middle; }
.table th {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.table tbody tr { border-bottom: 1px solid var(--border); transition: background .08s; }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); cursor: pointer; }
.table .muted { color: var(--ink-500); font-size: 12.5px; }
.table .num { font-variant-numeric: tabular-nums; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn .ic { width: 14px; height: 14px; }
.btn-primary { background: var(--teal-700); color: white; border-color: var(--teal-700); }
.btn-primary:hover { background: var(--teal-800); border-color: var(--teal-800); }
.btn-secondary { background: var(--ink-900); color: white; }
.btn-secondary:hover { background: var(--ink-800); }
.btn-ghost { background: var(--surface); color: var(--ink-700); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--hover); color: var(--ink-900); }
.btn-link { background: transparent; color: var(--teal-600); padding: 4px 0; border: 0; }
.btn-link:hover { color: var(--teal-700); text-decoration: underline; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; gap: 5px; }
.btn-lg { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
  width: 28px; height: 28px; padding: 0; justify-content: center;
}

/* === BADGES / PILLS === */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--ink-200); color: var(--ink-700);
  letter-spacing: 0;
  height: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pill.no-dot::before { display: none; }
.pill.green   { background: var(--success-bg); color: var(--success); }
.pill.amber   { background: var(--warning-bg); color: var(--warning); }
.pill.red     { background: var(--danger-bg);  color: var(--danger); }
.pill.blue    { background: var(--info-bg);    color: var(--info); }
.pill.violet  { background: var(--violet-bg);  color: var(--violet); }
.pill.teal    { background: var(--teal-100);   color: var(--teal-700); }
.pill.peach   { background: var(--accent-100); color: var(--accent-500); }
.pill.gray    { background: var(--ink-200);    color: var(--ink-700); }

/* === FORMS === */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-700); margin-bottom: 5px; }
.field .hint { color: var(--ink-500); font-size: 11.5px; margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-size: 13px; background: white;
  font-family: inherit;
  color: var(--ink-900);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(45, 122, 117, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.textarea { min-height: 76px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.checkbox-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 13px; color: var(--ink-700);
}
.checkbox-row input[type=checkbox] {
  width: 15px; height: 15px; accent-color: var(--teal-600);
}
.input-with-icon { position: relative; }
.input-with-icon .ic-left {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); pointer-events: none;
}
.input-with-icon .input { padding-left: 32px; }

/* === KANBAN === */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-x: auto;
}
.kanban-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  min-height: 180px;
}
.kanban-col h4 {
  margin: 0 0 4px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-700);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.kanban-col h4 span.count {
  background: white; border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 999px; color: var(--ink-700);
  font-weight: 500; font-size: 10.5px;
}
.kanban-col .col-tip {
  font-size: 10.5px; color: var(--ink-500); margin: 0 0 8px;
  display: flex; align-items: center; gap: 4px;
}
.k-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 12px; margin-bottom: 6px;
  box-shadow: var(--shadow-xs); cursor: pointer;
  transition: box-shadow 0.12s, border-color 0.12s;
}
.k-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.k-card .child { font-weight: 600; font-size: 13px; color: var(--ink-900); letter-spacing: -0.005em; }
.k-card .meta { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.4; }
.k-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}

/* === AVATAR === */
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-600); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.avatar.md { width: 38px; height: 38px; font-size: 12.5px; }
.avatar.lg { width: 52px; height: 52px; font-size: 15px; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px white; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* === CALENDAR === */
.cal-wrap {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.cal {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
}
.cal-head {
  font-weight: 600; font-size: 12px; padding: 10px 8px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center; color: var(--ink-700);
}
.cal-head:last-child { border-right: 0; }
.cal-head.today { background: var(--teal-50); color: var(--teal-700); }
.cal-head small { display: block; color: var(--ink-500); font-weight: 400; font-size: 11px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.cal-head.today small { color: var(--teal-600); }
.cal-time {
  font-size: 10.5px; color: var(--ink-500); padding: 6px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: right;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  min-height: 60px;
  cursor: pointer;
  transition: background 0.08s;
}
.cal-cell:nth-child(6n) { border-right: 0; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell:hover::after {
  content: "+ Book";
  position: absolute; top: 4px; right: 4px;
  font-size: 10px; color: var(--teal-600);
  background: white; padding: 1px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  pointer-events: none;
}
.cal-event {
  position: absolute;
  left: 4px; right: 4px;
  padding: 4px 7px; border-radius: var(--radius-sm);
  font-size: 11.5px; line-height: 1.3;
  cursor: pointer; overflow: hidden;
  background: white;
  border-left: 3px solid var(--teal-600);
  box-shadow: var(--shadow-xs);
  z-index: 1;
}
.cal-event:hover { box-shadow: var(--shadow-sm); }
.cal-event b { display: block; font-weight: 600; font-size: 11.5px; color: var(--ink-900); }
.cal-event .who { color: var(--ink-500); font-size: 10.5px; }

/* === LIST ITEMS === */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.08s;
}
.list-item:last-child { border-bottom: 0; }
.list-item.clickable:hover { background: var(--hover); cursor: pointer; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .body .title {
  font-weight: 500; font-size: 13px; color: var(--ink-900);
  letter-spacing: -0.005em;
}
.list-item .body .meta {
  font-size: 12px; color: var(--ink-500); margin-top: 2px;
}
.list-item .icon-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-600);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item .icon-circle.amber { background: var(--warning-bg); color: var(--warning); }
.list-item .icon-circle.violet { background: var(--violet-bg); color: var(--violet); }
.list-item .icon-circle.green { background: var(--success-bg); color: var(--success); }
.list-item .icon-circle.gray { background: var(--ink-200); color: var(--ink-600); }

/* === CHAT WIDGET === */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px;
  width: 48px; height: 48px;
  background: var(--teal-700); color: white;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border: none;
  transition: transform 0.15s, background 0.15s;
}
.chat-fab:hover { background: var(--teal-800); transform: translateY(-2px); }

.chat-panel {
  position: fixed; bottom: 84px; right: 22px;
  width: 380px; height: 540px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  z-index: 100; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--teal-800); color: white;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head h4 { margin: 0; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chat-head small { opacity: 0.65; font-size: 11px; display: block; margin-top: 2px; }
.chat-close {
  background: none; border: 0; color: white; cursor: pointer;
  width: 24px; height: 24px; opacity: 0.7; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-close:hover { opacity: 1; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg);
}
.chat-msg {
  max-width: 86%; padding: 9px 12px;
  border-radius: var(--radius-lg);
  font-size: 12.5px; line-height: 1.45; white-space: pre-wrap;
}
.chat-msg.bot {
  background: white; color: var(--ink-900);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.chat-msg.user {
  background: var(--teal-700); color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-suggest {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 14px 10px;
  background: var(--bg);
}
.chat-suggest button {
  background: white; border: 1px solid var(--border);
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; cursor: pointer; color: var(--teal-700);
  font-family: inherit;
  transition: border-color 0.1s;
}
.chat-suggest button:hover { border-color: var(--teal-300); }
.chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border); background: white;
}
.chat-input input {
  flex: 1; padding: 7px 11px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 13px; font-family: inherit;
}
.chat-input input:focus { outline: none; border-color: var(--teal-500); }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 31, 30, 0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.modal.lg { max-width: 720px; }
.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.modal-head .sub { font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
  background: var(--surface-2);
}
.modal-foot.split { justify-content: space-between; }

/* === WALKTHROUGH === */
.walk-modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 440px; width: 92%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.walk-modal .step-dots { display: flex; justify-content: center; gap: 5px; margin-bottom: 18px; }
.walk-modal .step-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); transition: all 0.2s; }
.walk-modal .step-dots i.active { background: var(--teal-600); width: 22px; border-radius: 4px; }
.walk-modal .icon-big {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: var(--teal-50); color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.walk-modal h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.walk-modal p { color: var(--ink-600); margin: 0 0 20px; line-height: 1.55; font-size: 13.5px; }
.walk-actions { display: flex; gap: 8px; justify-content: center; }

/* === EMPTY STATE === */
.empty {
  text-align: center; padding: 36px 18px;
  color: var(--ink-500);
}
.empty .icon {
  width: 36px; height: 36px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400);
  background: var(--bg);
  border-radius: 50%;
}
.empty .title { color: var(--ink-700); font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.empty .sub { color: var(--ink-500); font-size: 12px; }

/* === MISC === */
.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-500); font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.muted { color: var(--ink-500); }
.subtle-bar {
  display: flex; gap: 8px; padding: 9px 13px;
  background: var(--surface-2); border-radius: var(--radius);
  font-size: 12.5px; color: var(--ink-700);
  border: 1px solid var(--border);
}
.demo-banner {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-left: 3px solid var(--teal-500);
  padding: 9px 14px; border-radius: var(--radius);
  font-size: 12.5px; color: var(--ink-700); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.demo-banner .ic { color: var(--teal-600); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Filter chips (above tables/Kanban) */
.chip-row {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
  align-items: center;
}
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border-strong);
  font-size: 12px; font-weight: 500; color: var(--ink-700);
  cursor: pointer;
  transition: all 0.1s;
}
.chip:hover { border-color: var(--ink-400); }
.chip.active { background: var(--teal-700); color: white; border-color: var(--teal-700); }

/* Toast */
.toast {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%);
  background: var(--ink-900); color: white;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 12.5px; font-weight: 500;
  z-index: 300; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 7px;
}
.toast.err { background: var(--danger); }
.toast .ic { color: var(--success); }
.toast.err .ic { color: white; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .grid-2, .grid-2-eq, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .main { padding: 16px; }
}

/* === PUBLIC INTAKE FORM === */
.public-page {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(45,122,117,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(201,122,77,0.06), transparent 60%),
    var(--bg);
  min-height: 100vh; padding: 36px 16px;
}
.public-shell { max-width: 700px; margin: 0 auto; }
.public-brand { text-align: center; margin-bottom: 22px; }
.public-brand .logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--teal-800); letter-spacing: -0.015em;
}
.public-brand .logo span.icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.public-brand .tagline {
  color: var(--ink-500); font-size: 12.5px; margin-top: 6px;
}
.public-card {
  background: white; border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.public-card h1 { margin-top: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.public-card .lede { color: var(--ink-500); margin: 4px 0 22px; font-size: 13.5px; }
.success-screen { text-align: center; padding: 24px 0; }
.success-screen .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
