/* Shared clinic theme. One set of tokens for chat, Home, sign-up, the wizard, pricing and settings. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --bg: #f5f6fb;
  --card: #ffffff;
  --ink: #17182b;
  --muted: #5e6478;
  --line: #e4e7f2;
  --primary: #2f2a86;
  --primary-d: #241f6b;
  --accent: #0e8f62;
  --soft: #eef0fb;
  --green: #0e8f62;
  --green-bg: #e7f6ef;
  --amber: #8a5a00;
  --amber-bg: #fff6e5;
  --red: #b42318;
  --red-bg: #fdecec;
  --shadow: 0 10px 28px rgba(23, 24, 43, .06);
  --radius: 14px;
  --space: 20px;
  --blue: var(--primary);
  --blue-d: var(--primary-d);
}

html, body { font-family: var(--font); }
body { background: var(--bg); color: var(--ink); }
h1, h2, h3, b, button, input, select, textarea { font-family: var(--font); }
.card, .tile, .draft, .panel, .chief, .drawer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn { background: var(--primary); border-radius: 12px; }
.btn:hover { background: var(--primary-d); }
.btn-ghost, .btn-danger { border-radius: 12px; }
.tile .v, .chief header b { letter-spacing: -.03em; }
.chart { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chart div { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.chart i { display: block; height: 8px; border-radius: 99px; background: var(--primary); opacity: .85; }
.chart i.g { background: var(--accent); }
.legal { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; }
.legal h1 { font-size: 32px; letter-spacing: -.03em; }
.legal h2 { font-size: 18px; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { flex: 1 0 200px; background: var(--soft); border-radius: var(--radius); padding: 10px; }
.kanban-col header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.deal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
html.aaas-unified { --font: Inter, "Segoe UI", system-ui, sans-serif; --ink: #17182b; --bg: #ffffff; --page: #f5f6fb; --mute: #5e6478; --mute2: #5e6478; --sans: Inter, "Segoe UI", system-ui, sans-serif; --serif: Inter, "Segoe UI", system-ui, sans-serif; --accent: var(--primary); --dark: var(--primary); --line: #e4e7f2; --bd: #e4e7f2; --soft: #eef0fb; --navy: #17182b; --pv: #eef0fb; }
/* Bot Mode uses the same surfaces, type and controls as the dashboard. */
body.bot-mode {
  --ink: #17182b; --mute: #5e6478; --mute2: #5e6478; --bg: #ffffff; --page: #f5f6fb; --soft: #eef0fb;
  --line: #e4e7f2; --bd: #e4e7f2; --accent: var(--primary); --dark: var(--primary); --pv: #eef0fb;
  --sans: var(--font); --serif: var(--font);
  font-family: var(--font); font-size: 15px; background: var(--page); color: var(--ink);
}
body.bot-mode .wp,
body.bot-mode .wp-side,
body.bot-mode .wp-main,
body.bot-mode .wp-hd,
body.bot-mode .topbar,
body.bot-mode .wp-user { background: var(--card) !important; color: var(--ink) !important; }
body.bot-mode .wp-side { border-right: 1px solid var(--line); }
body.bot-mode .wp-sh b,
body.bot-mode .wp-agt b,
body.bot-mode .wp-rowh b,
body.bot-mode .wp-pin b,
body.bot-mode .wp-hd b,
body.bot-mode .wp-user { color: var(--ink); font-size: 15px; }
body.bot-mode .wp-sh small,
body.bot-mode .wp-agt small,
body.bot-mode .wp-rowt small { color: var(--muted); }
body.bot-mode .btn.dk,
body.bot-mode .go,
body.bot-mode .wp-av,
body.bot-mode .wp-orb,
body.bot-mode .wp-chiefav {
  background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; box-shadow: none !important;
}
/* The workplace stylesheet draws Chief at 58px. In the 28px row that covers the label. */
body.bot-mode .wp-chiefav {
  width: 28px !important; height: 28px !important; min-width: 28px; max-width: 28px;
  border-radius: 8px !important; display: grid; place-items: center; overflow: hidden;
}
body.bot-mode .wp-chiefav svg { width: 16px; height: 16px; }
body.bot-mode .wp-pin .wp-ring { flex: none; width: 28px; height: 28px; overflow: hidden; }
body.bot-mode .wp-pin b { position: static; line-height: 1.2; margin: 0; }
body.bot-mode .wp-face { background: transparent !important; color: var(--primary) !important; }
body.bot-mode .wp-pins { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 8px 8px; }
body.bot-mode .wp-pin { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; max-width: none; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
body.bot-mode .wp-pin.sel,
body.bot-mode .wp-row.sel,
body.bot-mode .wp-ag.sel,
body.bot-mode .nav-i.on { background: var(--soft) !important; color: var(--primary) !important; box-shadow: none !important; }
body.bot-mode .wp-ring { border-radius: 8px; box-shadow: none !important; padding: 0; background: transparent; width: 28px; height: 28px; }
body.bot-mode .wp-ring .wp-face,
body.bot-mode .wp-pin .wp-face { width: 28px; height: 28px; }
body.bot-mode .tile { width: 28px; height: 28px; border-radius: 8px !important; background: var(--soft) !important; color: var(--primary) !important; box-shadow: none !important; }
body.bot-mode .wp-search input,
body.bot-mode .wp-comp textarea,
body.bot-mode .wp-f input,
body.bot-mode .wp-f textarea,
body.bot-mode .wp-f select { font-size: 15px; font-family: var(--font); }
body.bot-mode .wp-tag { display: none; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea,
.stack input, .stack select, .stack textarea,
.field input, .field select, .field textarea,
.small input, .small select, .small textarea {
  font: 15px/1.4 var(--font);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 40px;
  width: 100%;
}
.chief-mini header { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.chief-mini header .ava { background: var(--primary); color: #fff; }
.chief-mini header button { color: var(--ink); }
.chief-mini header button:hover { background: var(--soft); }
.bot-sw.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-fab, .chat-fab.bot { background: var(--primary); color: #fff; }
button.is-busy, .btn.is-busy, a.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
button.is-busy::after, .btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; left: 50%; top: 50%; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: aaas-spin .7s linear infinite;
}
.btn-ghost.is-busy::after, button.out.is-busy::after {
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  border-top-color: var(--primary);
}
@keyframes aaas-spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .side { width: 100%; height: auto; position: relative; }
  .app { flex-direction: column; }
  .main { padding: 16px; }
  .form { grid-template-columns: 1fr; }
}
