:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --ink: #172523;
  --muted: #6c7b78;
  --line: #e2e9e6;
  --ink: #142321;
  --ink-secondary: #2f4340;
  --muted: #536764;
  --muted-light: #708481;
  --line: #dfe6e3;
  --line-strong: #cbd7d3;
  --primary: #0d7164;
  --primary-dark: #0a574f;
  --primary-dark: #09594f;
  --primary-soft: #e3f3ef;
  --nav: #0c2928;
  --nav-2: #123534;
  --amber: #b67617;
  --amber-soft: #fff4d8;
  --violet: #7257ac;
  --violet-soft: #eee9fa;
  --blue: #347aa0;
  --blue-soft: #e7f3fa;
  --shadow: 0 1px 2px rgba(12, 41, 40, .04), 0 8px 28px rgba(12, 41, 40, .05);
  --amber: #99620f;
  --amber-soft: #fff3d6;
  --violet: #694ea3;
  --violet-soft: #eee8f8;
  --blue: #2c6e93;
  --blue-soft: #e5f2f8;
  --shadow: 0 1px 3px rgba(12, 41, 40, .05), 0 8px 28px rgba(12, 41, 40, .06);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 113, 100, .2);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 113, 100, .28);
  outline-offset: 2px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

.demo-ribbon {
  height: 28px;
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: #f0c968;
  color: #4c3a09;
  font-size: 11px;
  letter-spacing: .01em;
}

.demo-ribbon strong {
  font-size: 10px;
  letter-spacing: .12em;
}

.demo-ribbon span {
  opacity: .82;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  background: linear-gradient(180deg, var(--nav) 0%, #092220 100%);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d9fff8;
  background: linear-gradient(145deg, #168d7e, #0d6158);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2);
}

.demo-ribbon {
  height: 32px;
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: #ebd17a;
  color: #3d2f07;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.demo-ribbon strong {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(61, 47, 7, .12);
}

.demo-ribbon span {
  opacity: .92;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, var(--nav) 0%, #081e1d 100%);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d9fff8;
  background: linear-gradient(145deg, #179384, #0d6158);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -.03em;
}

.brand small {
  color: #8fb2ae;
  font-size: 10px;
  margin-top: 2px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.workspace-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d7eee9;
  color: var(--nav);
  font-size: 11px;
  font-weight: 800;
}

.brand strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand small {
  color: #9ec2be;
  font-size: 12px;
  margin-top: 2px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.workspace-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #d7eee9;
  color: var(--nav);
  font-size: 13px;
  font-weight: 800;
}

.workspace div {
  min-width: 0;
  flex: 1;
}

.workspace small,
.workspace strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace small {
  color: #82a8a3;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.workspace strong {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.workspace>.icon {
  color: #709793;
  transform: rotate(90deg);
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label,
.section-kicker {
  color: #77918e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.nav-label {
  padding: 0 11px 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 10px;
  color: #9db8b4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 540;
  transition: .18s ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, .055);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(24, 139, 124, .3), rgba(24, 139, 124, .12));
  box-shadow: inset 3px 0 #50c4b3;
}

.nav-item b {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  color: #b9d5d1;
  font-size: 9px;
}

.nav-item.active b {
  background: #2d8f82;
  color: white;
}

.sidebar-note {
  display: flex;
  gap: 9px;
  margin: auto 1px 14px;
  padding: 12px;
  border-radius: 12px;
  color: #91b9b3;
  background: rgba(25, 123, 110, .13);
  border: 1px solid rgba(91, 196, 180, .09);
}

.sidebar-note>span {
  color: #70c6ba;
}

.workspace small {
  color: #9bbdb9;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.workspace strong {
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.workspace>.icon {
  color: #8cb2ae;
  transform: rotate(90deg);
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-label,
.section-kicker {
  color: #8ea9a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-label {
  padding: 0 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: #b7d1cc;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: .18s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .07);
}

.nav-item.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(24, 139, 124, .35), rgba(24, 139, 124, .15));
  box-shadow: inset 3.5px 0 #50c4b3;
}

.nav-item b {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  color: #d6ebe8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 6px;
}

.nav-item.active b {
  background: #288f82;
  color: white;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  margin: auto 1px 16px;
  padding: 13px;
  border-radius: 12px;
  color: #b0d4cf;
  background: rgba(25, 123, 110, .18);
  border: 1px solid rgba(91, 196, 180, .14);
}

.sidebar-note>span {
  color: #6fd1c4;
}

.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note strong {
  color: #d3e7e4;
  font-size: 10px;
  margin-bottom: 3px;
}

.sidebar-note small {
  font-size: 9px;
  line-height: 1.45;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-note strong {
  color: #e1f2ef;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.sidebar-note small {
  font-size: 12px;
  line-height: 1.45;
  color: #a4ccc7;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.user-card div {
  flex: 1;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card strong {
  font-size: 11px;
}

.user-card small {
  color: #789b97;
  font-size: 9px;
  margin-top: 2px;
}

.user-card button {
  border: 0;
  background: none;
  color: #729590;
  padding: 4px;
}

.user-card strong {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.user-card small {
  color: #9ec2be;
  font-size: 12px;
  margin-top: 2px;
}

.user-card button {
  border: 0;
  background: none;
  color: #8fb5b0;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.user-card button:hover {
  color: white;
  background: rgba(255, 255, 255, .08);
}

.main {
  width: calc(100% - 248px);
  margin-left: 248px;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.global-search {
  width: min(420px, 42vw);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  color: #8a9896;
}

.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
}

.global-search kbd {
  padding: 2px 6px;
  border: 1px solid #dce3e0;
  border-radius: 5px;
  color: #7f8d8a;
  background: white;
  font-size: 9px;
}

.top-actions {
  position: absolute;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #173d3a;
  color: #ddf2ee;
  font-size: 10px;
  font-weight: 700;
}

.main {
  width: calc(100% - 260px);
  margin-left: 260px;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.global-search {
  width: 100%;
  max-width: 1520px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  color: #728481;
  transition: all 0.2s ease;
}

.global-search:focus-within {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 142, 126, 0.12);
}

.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.global-search input::placeholder {
  color: #859694;
}

.global-search kbd {
  padding: 3px 7px;
  border: 1px solid #d4deda;
  border-radius: 6px;
  color: #617370;
  background: white;
  font-size: 11.5px;
  font-weight: 600;
}

.top-actions {
  position: absolute;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #173d3a;
  color: #ddf2ee;
  font-size: 13px;
  font-weight: 700;
}

.menu-button {
  display: none !important;
  position: absolute;
  left: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #536663;
  cursor: pointer;
  transition: .18s ease;
}

.icon-button:hover {
  border-color: #c7d6d2;
  color: var(--primary);
  background: #f8fbfa;
}

.icon-button.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #495e5b;
  cursor: pointer;
  transition: .18s ease;
}

.icon-button:hover {
  border-color: #b8ccc7;
  color: var(--primary);
  background: #f8fbfa;
}

.icon-button.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.notification {
  position: relative;
}

.notification i {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border: 1.5px solid white;
  border-radius: 50%;
  background: #d78035;
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 36px 48px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-header h1 {
  margin-bottom: 6px;
  color: #142825;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.page-header p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: .18s ease;
}

.notification i {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 1.5px solid white;
  border-radius: 50%;
  background: #d78035;
}

.page {
  max-width: 1520px;
  margin: 0 auto;
  padding: 32px 40px 52px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-header .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-header h1 {
  margin-bottom: 6px;
  color: #112421;
  font-size: clamp(26px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.page-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: .18s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(13, 113, 100, .15);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 113, 100, .18);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: #dce5e2;
  background: white;
  color: #405653;
}

.button.secondary {
  border-color: #d1deda;
  background: white;
  color: #2e4441;
}

.button.secondary:hover {
  border-color: #b5c9c4;
  background: #fbfdfc;
}

.button.ghost {
  border-color: var(--line);
  background: #f8faf9;
  color: var(--primary);
}

.button.ghost:hover {
  background: var(--primary-soft);
}

.button.danger {
  border-color: #dc2626;
  background: #ef4444;
  color: white;
  box-shadow: 0 4px 10px rgba(239, 68, 68, .2);
}

.button.danger:hover {
  border-color: #b91c1c;
  background: #dc2626;
}

.button.danger.secondary {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: none;
}

.button.danger.secondary:hover {
  border-color: #f87171;
  background: #fee2e2;
}

.button.full {
  width: 100%;
}

.button.tiny {
  min-height: 29px;
  padding: 0 10px;
  font-size: 9px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.button.tiny {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  padding: 4px 6px;
  border-radius: 6px;
}

.text-button:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2 {
  margin: 4px 0 0;
  font-size: 15px;
  letter-spacing: -.02em;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-header h2 {
  margin: 4px 0 0;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #112421;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.notice-card,
.context-note,
.policy-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid #cfe5df;
  border-radius: 12px;
  background: #edf8f5;
  color: #205b53;
}

.notice-card,
.context-note,
.policy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid #cce3dc;
  border-radius: 12px;
  background: #eef7f4;
  color: #174f48;
}

.notice-card div,
.context-note div,
.policy-banner div {
  flex: 1;
}

.notice-card strong,
.notice-card span,
.context-note strong,
.context-note span,
.policy-banner strong,
.policy-banner span {
  display: block;
}

.notice-card strong,
.context-note strong,
.policy-banner strong {
  font-size: 10px;
}

.notice-card span,
.context-note span,
.policy-banner span {
  margin-top: 2px;
  color: #568078;
  font-size: 9px;
  line-height: 1.4;
}

.notice-card button {
  border: 0;
  background: none;
  color: #5e8a82;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.metric-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.notice-card strong,
.context-note strong,
.policy-banner strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #123e38;
}

.notice-card span,
.context-note span,
.policy-banner span {
  margin-top: 3px;
  color: #3b6b63;
  font-size: 13.5px;
  line-height: 1.5;
}

.notice-card button {
  border: 0;
  background: none;
  color: #497d74;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.notice-card button:hover {
  color: #174f48;
  background: rgba(0, 0, 0, .04);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  position: relative;
  min-height: 134px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.metric-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.metric-icon.teal {
  color: var(--primary);
  background: var(--primary-soft);
}

.metric-icon.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-icon.violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.metric-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-top span,
.metric-top strong {
  display: block;
}

.metric-top span {
  max-width: calc(100% - 40px);
  color: #667673;
  font-size: 10px;
  font-weight: 600;
}

.metric-top strong {
  margin-top: 15px;
  color: #17312e;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.metric-card p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 12px 0 0;
  color: #6c7d7a;
  font-size: 9px;
}

.metric-card p .icon {
  color: #3d9b8c;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.qualification-panel,
.followup-panel,
.recent-panel,
.activity-panel {
  padding: 18px;
}

.policy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f7f2;
  color: #807861;
  font-size: 8.5px;
}

.qualification-chart {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 14px 13px;
}

.donut {
  width: 114px;
  height: 114px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe3e0;
  position: relative;
}

.donut::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: white;
}

.metric-top span {
  max-width: calc(100% - 46px);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.metric-top strong {
  margin-top: 14px;
  color: #102926;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.metric-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.metric-card p .icon {
  color: #2e8b7d;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.qualification-panel,
.followup-panel,
.recent-panel,
.activity-panel {
  padding: 22px;
}

.policy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8f6f0;
  color: #6b634d;
  font-size: 12.5px;
  line-height: 1.45;
}

.qualification-chart {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 14px 14px;
}

.donut {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe3e0;
  position: relative;
  flex: 0 0 auto;
}

.donut::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: white;
}

.donut div {
  z-index: 1;
  text-align: center;
}

.donut strong,
.donut span {
  display: block;
}

.donut strong {
  font-size: 22px;
}

.donut span {
  color: var(--muted);
  font-size: 8px;
}

.legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.legend>div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #576966;
  font-size: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.donut strong {
  font-size: 26px;
  font-weight: 700;
  color: #112421;
}

.donut span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend>div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #3b4e4b;
  font-size: 13.5px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.teal {
  background: #1a8e7e;
}

.dot.amber {
  background: #efb950;
}

.dot.gray {
  background: #dbe3e0;
}

.stage-row {
  display: flex;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.stage-row span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.stage-row span+span {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.stage-row b {
  margin-left: auto;
  color: var(--ink);
  font-size: 10px;
}

.stage {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #8ac3ba;
}

.stage.s2 {
  background: #e6b85a
}

.stage.s3 {
  background: #8a73ba
}

.stage.s4 {
  background: #687774
}

.followup-list {
  margin: 12px -4px 10px;
}

.followup-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.followup-item:hover {
  background: #fafcfb;
}

.date-tile {
  width: 37px;
  height: 40px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 9px;
  background: #eef5f3;
  color: var(--primary);
}

.date-tile b,
.date-tile small {
  display: block;
}

.date-tile b {
  font-size: 14px;
  line-height: 1
}

.date-tile small {
  font-size: 7px;
  margin-top: 2px
}

.stage-row {
  display: flex;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.stage-row span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.stage-row span+span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.stage-row b {
  margin-left: auto;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.stage {
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: #8ac3ba;
}

.stage.s2 {
  background: #e6b85a
}

.stage.s3 {
  background: #8a73ba
}

.stage.s4 {
  background: #687774
}

.followup-list {
  margin: 14px -4px 10px;
}

.followup-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: .15s ease;
}

.followup-item:hover {
  background: #f4f9f7;
}

.date-tile {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 10px;
  background: #eef5f3;
  color: var(--primary);
  flex: 0 0 auto;
}

.date-tile b,
.date-tile small {
  display: block;
}

.date-tile b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1
}

.date-tile small {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: .05em
}

.followup-copy {
  min-width: 0;
  flex: 1;
}

.followup-copy strong,
.followup-copy small,
.followup-copy em {
  display: block;
}

.followup-copy strong {
  font-size: 10px;
}

.followup-copy small {
  margin: 3px 0;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.followup-copy em {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #8a7770;
  font-size: 8px;
  font-style: normal
}

.followup-item>.icon {
  color: #abb8b5;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, .7fr);
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px -18px -18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfaf2;
  color: #8a9694;
  font-size: 8px;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1ef;
  font-size: 9px;
  cursor: pointer;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfdfc;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-cell span {
  min-width: 0
}

.person-cell strong,
.person-cell small,
td>small {
  display: block
}

.person-cell strong {
  font-size: 9.5px
}

.person-cell small,
td>small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.5px
}

.need-copy {
  font-size: 9px;
  font-weight: 600
}

.muted {
  color: var(--muted)
}

.avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 750;
}

.avatar.large {
  width: 55px;
  height: 55px;
  font-size: 15px;
}

.avatar.medium {
  width: 42px;
  height: 42px;
  font-size: 12px
}

.avatar-teal {
  background: #d9efea;
  color: #17695f;
}

.avatar-violet {
  background: #eee9f8;
  color: #7057a2
}

.avatar-blue {
  background: #e1eff7;
  color: #397695
}

.avatar-amber {
  background: #f8ecd2;
  color: #a76c16
}

.avatar-navy {
  background: #214341;
  color: #d8efeb
}

.avatar-gray {
  background: #edf1ef;
  color: #778582
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 20px;
  font-size: 7.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-teal {
  color: #187365;
  background: #e3f4f0;
}

.status-amber {
  color: #9a6619;
  background: #fff2d7
}

.status-gray {
  color: #687774;
  background: #edf1f0
}

.status-violet {
  color: #6f55a0;
  background: #eee9f8
}

.activity-list {
  margin-top: 13px;
}

.activity-item {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ef;
}

.followup-copy strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #142825;
}

.followup-copy small {
  margin: 3px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.followup-copy em {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6e5c55;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.followup-item>.icon {
  color: #8fa09d;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr);
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
  margin: 14px -22px -22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
  color: #627673;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf1ef;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f7faf9;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-cell span {
  min-width: 0;
}

.person-cell strong,
.person-cell small,
td>small {
  display: block;
}

.person-cell strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #122825;
}

.person-cell small,
td>small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.need-copy {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #233734;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 18px;
}

.avatar.medium {
  width: 46px;
  height: 46px;
  font-size: 14.5px
}

.avatar-teal {
  background: #d5eee8;
  color: #0f5950;
}

.avatar-violet {
  background: #ede6f8;
  color: #5a438c
}

.avatar-blue {
  background: #def0f9;
  color: #286382
}

.avatar-amber {
  background: #faeccd;
  color: #8f5809
}

.avatar-navy {
  background: #1b3c39;
  color: #d8efeb
}

.avatar-gray {
  background: #eaefed;
  color: #5b6a67
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-teal {
  color: #0d6356;
  background: #def2ed;
}

.status-amber {
  color: #804f05;
  background: #fef0d2
}

.status-gray {
  color: #4d5f5c;
  background: #e9eeec
}

.status-violet {
  color: #573e8a;
  background: #ede7f8
}

.activity-list {
  margin-top: 14px;
}

.activity-item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
}

.activity-mark.teal {
  color: var(--primary);
  background: var(--primary-soft)
}

.activity-mark.violet {
  color: var(--violet);
  background: var(--violet-soft)
}

.activity-mark.amber {
  color: var(--amber);
  background: var(--amber-soft)
}

.activity-item p {
  margin: 0;
  color: #536562;
  font-size: 9px;
  line-height: 1.5;
}

.activity-item p strong {
  color: var(--ink)
}

.activity-item small {
  display: block;
  margin-top: 3px;
  color: #9aa5a3;
  font-size: 7.5px
}

.activity-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
}

.activity-mark.teal {
  color: var(--primary);
  background: var(--primary-soft)
}

.activity-mark.violet {
  color: var(--violet);
  background: var(--violet-soft)
}

.activity-mark.amber {
  color: var(--amber);
  background: var(--amber-soft)
}

.activity-item p {
  margin: 0;
  color: #3b504d;
  font-size: 13.5px;
  line-height: 1.5;
}

.activity-item p strong {
  color: var(--ink);
  font-weight: 650
}

.activity-item small {
  display: block;
  margin-top: 3px;
  color: #788b88;
  font-size: 12px
}

/* Inbox */
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(410px, 1.25fr) 250px;
  height: calc(100vh - 192px);
  min-height: 560px;
  gap: 10px;
}

/* Inbox (preview fallback styles) */
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(440px, 1.25fr) 270px;
  height: calc(100vh - 192px);
  min-height: 580px;
  gap: 12px;
}

.inbox-list,
.conversation-detail,
.contact-panel {
  min-height: 0;
  overflow: hidden;
}

.inbox-list {
  display: flex;
  flex-direction: column;
}

.inbox-tools {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #8b9896;
  background: #fafcfb;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.channel-tabs {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.channel-tabs button,
.view-switch button {
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #798885;
  cursor: pointer;
  font-size: 8px;
  font-weight: 650;
}

.channel-tabs button.active,
.view-switch button.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.list-meta {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  color: #8a9795;
  font-size: 8px;
}

.list-meta strong {
  color: #596a67
}

.search-field {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #788986;
  background: #fafcfb;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
}

.channel-tabs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.channel-tabs button,
.view-switch button {
  padding: 6px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #627572;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 650;
}

.channel-tabs button.active,
.view-switch button.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.list-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  color: #6c7e7b;
  font-size: 12px;
}

.list-meta strong {
  color: #364a47;
  font-weight: 650
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  position: relative;
  width: 100%;
  display: flex;
  gap: 9px;
  padding: 13px 13px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: white;
  text-align: left;
  cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
  background: #f1f8f6;
}

.conversation-item.active {
  box-shadow: inset 3px 0 var(--primary)
}

.conversation-main {
  min-width: 0;
  flex: 1;
}

.conversation-name {
  display: flex;
  justify-content: space-between;
  gap: 5px
}

.conversation-name strong {
  font-size: 10px
}

.conversation-name time {
  color: #8c9997;
  font-size: 7.5px
}

.conversation-main>small {
  display: block;
  margin: 2px 0 5px;
  color: #879491;
  font-size: 7.5px
}

.conversation-main p {
  overflow: hidden;
  margin: 0 0 7px;
  color: #596966;
  font-size: 8.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap
}

.unread {
  position: absolute;
  right: 12px;
  bottom: 13px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 7px
}

.empty-state,
.empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #92a09d;
  text-align: center;
}

.empty-state {
  padding: 60px 20px
}

.empty-state strong {
  font-size: 10px
}

.empty-state span,
.empty-column span {
  font-size: 8px
}

.conversation-item {
  position: relative;
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: white;
  text-align: left;
  cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
  background: #f0f7f5;
}

.conversation-item.active {
  box-shadow: inset 3.5px 0 var(--primary)
}

.conversation-main {
  min-width: 0;
  flex: 1;
}

.conversation-name {
  display: flex;
  justify-content: space-between;
  gap: 6px
}

.conversation-name strong {
  font-size: 14px;
  font-weight: 650;
  color: #142825
}

.conversation-name time {
  color: #798c89;
  font-size: 12px
}

.conversation-main>small {
  display: block;
  margin: 2px 0 5px;
  color: #6d7f7c;
  font-size: 12.5px
}

.conversation-main p {
  overflow: hidden;
  margin: 0 0 7px;
  color: #455956;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap
}

.unread {
  position: absolute;
  right: 12px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 10.5px;
  font-weight: 700
}

.empty-state,
.empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #758784;
  text-align: center;
}

.empty-state {
  padding: 60px 20px
}

.empty-state strong {
  font-size: 15px;
  color: #2c403d
}

.empty-state span,
.empty-column span {
  font-size: 13px
}

.conversation-detail {
  display: flex;
  flex-direction: column;
}

.conversation-header {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.conversation-header>div:nth-of-type(1) {
  flex: 1
}

.conversation-header strong,
.conversation-header small {
  display: block
}

.conversation-header strong {
  font-size: 11px
}

.conversation-header small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px
}

.conversation-actions {
  display: flex;
  gap: 5px !important;
  flex: 0 !important
}

.detail-back {
  display: none
}

.simulation-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-bottom: 1px solid #eee7d1;
  background: #fffaf0;
  color: #8a722f;
  font-size: 8px;
}

.simulation-alert.wide {
  justify-content: flex-start;
  margin-bottom: 16px;
  border: 1px solid #eee1bd;
  border-radius: 10px
}

.message-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: radial-gradient(circle at 2px 2px, #e7ece9 1px, transparent 1px) 0 0/18px 18px, #f7f9f8;
}

.date-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #96a29f;
  font-size: 7px
}

.date-separator:before,
.date-separator:after {
  content: '';
  height: 1px;
  flex: 1;
  background: #e5eae8
}

.date-separator span {
  padding: 3px 7px;
  border-radius: 10px;
  background: white
}

.message-row {
  display: flex;
  margin-bottom: 9px;
}

.message-row.outgoing {
  justify-content: flex-end
}

.bubble {
  max-width: 76%;
  padding: 9px 10px 6px;
  border: 1px solid #e3e8e6;
  border-radius: 5px 12px 12px 12px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 41, 37, .04)
}

.outgoing .bubble {
  border-color: #cce7e0;
  border-radius: 12px 5px 12px 12px;
  background: #e3f4ef
}

.bubble p {
  margin: 0;
  color: #334643;
  font-size: 9px;
  line-height: 1.5
}

.bubble time {
  display: block;
  margin-top: 4px;
  color: #8b9996;
  font-size: 6.5px;
  text-align: right
}

.composer {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.composer textarea {
  width: 100%;
  height: 48px;
  resize: none;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  font-size: 9px
}

.composer textarea:focus {
  border-color: #9bc9c1
}

.composer>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px
}

.composer span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #929e9c;
  font-size: 7px
}

.send-button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer
}

.contact-panel {
  padding: 18px 15px;
  overflow-y: auto;
}

.contact-hero {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line)
}

.contact-hero .avatar {
  margin-bottom: 8px
}

.contact-hero h3 {
  margin: 0;
  font-size: 13px
}

.contact-hero p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 8px
}

.contact-hero .status {
  margin: auto
}

.detail-group {
  padding: 15px 0;
  border-bottom: 1px solid var(--line)
}

.detail-group>p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0;
  color: #566966;
  font-size: 8px
}

.detail-group label,
.detail-group strong {
  display: block
}

.detail-group label {
  margin-top: 10px;
  color: #8a9794;
  font-size: 7.5px
}

.detail-group strong {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.45
}

.contact-panel>.button {
  margin-top: 15px
}

.conversation-header {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.conversation-header>div:nth-of-type(1) {
  flex: 1
}

.conversation-header strong,
.conversation-header small {
  display: block
}

.conversation-header strong {
  font-size: 15px;
  font-weight: 650;
  color: #122724
}

.conversation-header small {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px
}

.conversation-actions {
  display: flex;
  gap: 6px !important;
  flex: 0 !important
}

.detail-back {
  display: none
}

.simulation-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid #eee7d1;
  background: #fffaf0;
  color: #766020;
  font-size: 12.5px;
  font-weight: 500;
}

.simulation-alert.wide {
  justify-content: flex-start;
  margin-bottom: 18px;
  border: 1px solid #ebdcb2;
  border-radius: 10px
}

.message-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: radial-gradient(circle at 2px 2px, #e7ece9 1px, transparent 1px) 0 0/18px 18px, #f7f9f8;
}

.date-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #798c89;
  font-size: 12px;
  font-weight: 600
}

.date-separator:before,
.date-separator:after {
  content: '';
  height: 1px;
  flex: 1;
  background: #e5eae8
}

.date-separator span {
  padding: 4px 10px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e1e7e4
}

.message-row {
  display: flex;
  margin-bottom: 11px;
}

.message-row.outgoing {
  justify-content: flex-end
}

.bubble {
  max-width: 76%;
  padding: 10px 14px 8px;
  border: 1px solid #e3e8e6;
  border-radius: 6px 14px 14px 14px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 41, 37, .04)
}

.outgoing .bubble {
  border-color: #cce7e0;
  border-radius: 14px 6px 14px 14px;
  background: #e3f4ef
}

.bubble p {
  margin: 0;
  color: #243a37;
  font-size: 14px;
  line-height: 1.5
}

.bubble time {
  display: block;
  margin-top: 4px;
  color: #7d908d;
  font-size: 11.5px;
  text-align: right
}

.composer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: white;
}

.composer textarea {
  width: 100%;
  height: 52px;
  resize: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  font-size: 13.5px
}

.composer textarea:focus {
  border-color: #8fc2b9
}

.composer>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px
}

.composer span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #788a87;
  font-size: 12px
}

.send-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer
}

.contact-panel {
  padding: 20px 18px;
  overflow-y: auto;
}

.contact-hero {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line)
}

.contact-hero .avatar {
  margin-bottom: 10px
}

.contact-hero h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #122623
}

.contact-hero p {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 13px
}

.contact-hero .status {
  margin: auto
}

.detail-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line)
}

.detail-group>p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #3e524f;
  font-size: 13px
}

.detail-group label,
.detail-group strong {
  display: block
}

.detail-group label {
  margin-top: 12px;
  color: #6a7c79;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em
}

.detail-group strong {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.45;
  color: #182e2b
}

.contact-panel>.button {
  margin-top: 16px
}

/* Leads */
.policy-banner {
  background: #faf7ee;
  border-color: #e9e0c7;
  color: #82691e
}

.policy-banner span {
  color: #867c61
}

.lead-layout {
  display: grid;
  grid-template-columns: 270px minmax(440px, 1fr) 230px;
  gap: 11px;
  align-items: start
}

.lead-list {
  overflow: hidden
}

.lead-list-header {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 8px
}

.lead-list-header span {
  color: var(--muted)
}

.lead-card {
  width: 100%;
  padding: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer
}

.lead-card:hover,
.lead-card.active {
  background: #f2f8f6
}

.lead-card.active {
  box-shadow: inset 3px 0 var(--primary)
}

.lead-card-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.lead-card-top>span:nth-child(2) {
  min-width: 0;
  flex: 1
}

.lead-card-top strong,
.lead-card-top small {
  display: block
}

.lead-card-top strong {
  font-size: 9.5px
}

.lead-card-top small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.5px
}

.lead-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0;
  color: #576865;
  font-size: 8.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.lead-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #899592;
  font-size: 7.5px
}

.lead-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px
}

.lead-detail {
  overflow: hidden
}

.lead-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line)
}

.lead-identity {
  display: flex;
  align-items: center;
  gap: 11px
}

.lead-identity h2 {
  margin: 3px 0 1px;
  font-size: 17px
}

.lead-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 8px
}

.lead-head-actions {
  display: flex;
  align-items: center;
  gap: 7px
}

.qualification-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 17px;
  background: #f7faf9;
  border-bottom: 1px solid var(--line)
}

.qualification-state>div {
  display: flex;
  align-items: center;
  gap: 9px
}

.state-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px
}

.state-icon.teal {
  color: var(--primary);
  background: var(--primary-soft)
}

.state-icon.amber {
  color: var(--amber);
  background: var(--amber-soft)
}

.state-icon.gray {
  color: #687774;
  background: #edf1f0;
}

.qualification-state small,
.qualification-state strong {
  display: block
}

.qualification-state small {
  color: #889693;
  font-size: 7px;
  letter-spacing: .08em
}

.qualification-state strong {
  margin-top: 2px;
  font-size: 10px
}

.qualification-state p {
  max-width: 280px;
  margin: 0;
  color: #7d8b88;
  font-size: 7.5px;
  line-height: 1.5;
  text-align: right
}

.lead-sections {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.detail-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white
}

.detail-card-title {
  display: flex;
  align-items: center;
  gap: 7px
}

.detail-card-title>span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf6f3;
  color: var(--primary)
}

.detail-card h3 {
  margin: 0;
  flex: 1;
  font-size: 9.5px
}

.detail-card em {
  color: #8c9996;
  font-size: 7px;
  font-style: normal
}

.detail-card>p {
  margin: 9px 0 0;
  color: #566865;
  font-size: 8.5px;
  line-height: 1.55
}

.evidence-card,
.missing-card,
.next-action-card {
  grid-column: 1/-1
}

.evidence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none
}

.evidence-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 7px;
  background: #f3f8f6;
  color: #4f625f;
  font-size: 8px
}

.evidence-list .icon {
  color: var(--primary)
}

.missing-card {
  border-color: #eadfca;
  background: #fffcf7
}

.missing-card .detail-card-title>span {
  color: var(--amber);
  background: var(--amber-soft)
}

.missing-card>p {
  font-size: 7.5px
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px
}

.chip-list span {
  padding: 5px 8px;
  border: 1px solid #eadbbd;
  border-radius: 7px;
  background: white;
  color: #876d3e;
  font-size: 7.5px
}

.next-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 11px;
  background: linear-gradient(115deg, #0d645a, #0c7668);
  color: white
}

.next-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, .13)
}

.next-action-card>div {
  flex: 1
}

.next-action-card small,
.next-action-card strong,
.next-action-card p {
  display: block
}

.next-action-card small {
  color: #a6d7d0;
  font-size: 7px;
  letter-spacing: .08em
}

.next-action-card strong {
  margin-top: 3px;
  font-size: 9px
}

.next-action-card p {
  margin: 3px 0 0;
  color: #a8d0ca;
  font-size: 7px
}

.next-action-card .button {
  background: white;
  color: var(--primary);
  box-shadow: none
}

.lead-side {
  padding: 16px
}

.assignee-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0
}

.assignee-card strong,
.assignee-card small {
  display: block
}

.assignee-card strong {
  font-size: 9px
}

.assignee-card small {
  color: var(--muted);
  font-size: 7px;
  margin-top: 2px
}

.select-label {
  display: block;
  color: #82908d;
  font-size: 7px
}

.select-label select {
  width: 100%;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #3d514e;
  font-size: 8px
}

.lead-side hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--line)
}

.followup-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  color: var(--primary)
}

.followup-summary strong,
.followup-summary small {
  display: block
}

.followup-summary strong {
  color: var(--ink);
  font-size: 9px
}

.followup-summary small {
  color: var(--muted);
  font-size: 7px;
  margin-top: 2px
}

.source-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
  text-align: left;
  cursor: pointer
}

.source-link>span {
  flex: 1
}

.source-link strong,
.source-link small {
  display: block
}

.source-link strong {
  font-size: 8px
}

.source-link small {
  color: var(--muted);
  font-size: 7px;
  margin-top: 2px
}

/* Leads Page */
.policy-banner {
  background: #faf6eb;
  border-color: #e4d8b9;
  color: #6b5311
}

.policy-banner span {
  color: #695e43
}

.lead-layout {
  display: grid;
  grid-template-columns: 300px minmax(460px, 1fr) 260px;
  gap: 14px;
  align-items: start
}

.lead-list {
  overflow: hidden
}

.lead-list-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: #3b504d
}

.lead-list-header span {
  color: var(--muted);
  font-weight: 500
}

.lead-card {
  width: 100%;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: .15s ease
}

.lead-card:hover,
.lead-card.active {
  background: #f1f8f6
}

.lead-card.active {
  box-shadow: inset 3.5px 0 var(--primary)
}

.lead-card-top {
  display: flex;
  align-items: center;
  gap: 10px
}

.lead-card-top>span:nth-child(2) {
  min-width: 0;
  flex: 1
}

.lead-card-top strong,
.lead-card-top small {
  display: block
}

.lead-card-top strong {
  font-size: 15.5px;
  font-weight: 650;
  color: #112623
}

.lead-card-top small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px
}

.lead-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0;
  color: #3c504d;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.lead-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #657774;
  font-size: 12px;
  font-weight: 500
}

.lead-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px
}

.lead-detail {
  overflow: hidden
}

.lead-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line)
}

.lead-identity {
  display: flex;
  align-items: center;
  gap: 13px
}

.lead-identity h2 {
  margin: 3px 0 2px;
  font-size: 22px;
  font-weight: 700;
  color: #102522;
  letter-spacing: -.02em
}

.lead-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px
}

.lead-head-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.qualification-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: #f6faf9;
  border-bottom: 1px solid var(--line)
}

.qualification-state>div {
  display: flex;
  align-items: center;
  gap: 12px
}

.state-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px
}

.state-icon.teal {
  color: var(--primary);
  background: var(--primary-soft)
}

.state-icon.amber {
  color: var(--amber);
  background: var(--amber-soft)
}

.state-icon.gray {
  color: #687774;
  background: #edf1f0;
}

.qualification-state small,
.qualification-state strong {
  display: block
}

.qualification-state small {
  color: #6c7e7b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.qualification-state strong {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #112421
}

.qualification-state p {
  max-width: 320px;
  margin: 0;
  color: #5a6e6a;
  font-size: 13px;
  line-height: 1.5;
  text-align: right
}

.lead-sections {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.detail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white
}

.detail-card-title {
  display: flex;
  align-items: center;
  gap: 9px
}

.detail-card-title>span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf6f3;
  color: var(--primary);
  flex: 0 0 auto
}

.detail-card h3 {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 650;
  color: #142926
}

.detail-card em {
  color: #6b7c79;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500
}

.detail-card>p {
  margin: 10px 0 0;
  color: #334845;
  font-size: 14px;
  line-height: 1.55
}

.evidence-card,
.missing-card,
.next-action-card {
  grid-column: 1/-1
}

.evidence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none
}

.evidence-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f2f8f6;
  color: #2c413e;
  font-size: 13px;
  line-height: 1.4
}

.evidence-list .icon {
  color: var(--primary)
}

.missing-card {
  border-color: #e6d7bc;
  background: #fffcf5
}

.missing-card .detail-card-title>span {
  color: var(--amber);
  background: var(--amber-soft)
}

.missing-card>p {
  font-size: 13px;
  color: #614d23
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px
}

.chip-list span {
  padding: 6px 10px;
  border: 1px solid #e3cfac;
  border-radius: 8px;
  background: white;
  color: #78581e;
  font-size: 12.5px;
  font-weight: 550
}

.next-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(115deg, #0d645a, #0c7668);
  color: white
}

.next-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16)
}

.next-action-card>div {
  flex: 1
}

.next-action-card small,
.next-action-card strong,
.next-action-card p {
  display: block
}

.next-action-card small {
  color: #b6e4dd;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.next-action-card strong {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700
}

.next-action-card p {
  margin: 4px 0 0;
  color: #c9e7e2;
  font-size: 13.5px;
  line-height: 1.45
}

.next-action-card .button {
  background: white;
  color: var(--primary);
  box-shadow: none;
  font-weight: 700
}

.lead-side {
  padding: 18px
}

.assignee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0
}

.assignee-card strong,
.assignee-card small {
  display: block
}

.assignee-card strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #132724
}

.assignee-card small {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px
}

.select-label {
  display: block;
  color: #4f6360;
  font-size: 12.5px;
  font-weight: 600
}

.select-label select {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #223633;
  font-size: 13.5px;
  outline: 0
}

.select-label select:focus {
  border-color: #8ec2b9
}

.lead-side hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line)
}

.followup-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  color: var(--primary)
}

.followup-summary strong,
.followup-summary small {
  display: block
}

.followup-summary strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650
}

.followup-summary small {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px
}

.source-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
  text-align: left;
  cursor: pointer;
  transition: .15s ease
}

.source-link:hover {
  background: #f3f8f6;
  border-color: #b9cfca
}

.source-link>span {
  flex: 1
}

.source-link strong,
.source-link small {
  display: block
}

.source-link strong {
  font-size: 13.5px;
  font-weight: 650;
  color: #152926
}

.source-link small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px
}

/* Business */
.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 14px
}

.profile-section,
.context-health,
.knowledge-section {
  padding: 19px
}

.completion {
  padding: 5px 8px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 8px;
  font-weight: 700
}

.profile-cover {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafcfb
}

.profile-cover>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #153f3b;
  color: #d9efeb;
  font-size: 12px;
  font-weight: 800
}

.profile-cover>div {
  flex: 1
}

.profile-cover strong,
.profile-cover small {
  display: block
}

.profile-cover strong {
  font-size: 10px
}

.profile-cover small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px
}

.profile-form label,
.knowledge-editor label {
  display: block;
  color: #667774;
  font-size: 8px;
  font-weight: 650
}

.profile-form input,
.profile-form textarea,
.knowledge-editor input,
.knowledge-editor textarea,
.knowledge-editor select {
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 9px;
  outline: 0
}

.profile-form input:focus,
.profile-form textarea:focus,
.knowledge-editor input:focus,
.knowledge-editor textarea:focus {
  border-color: #8ec2b9
}

.profile-form textarea {
  height: 80px;
  resize: vertical
}

.profile-form label>small {
  display: block;
  margin-top: 4px;
  color: #9aa5a3;
  font-size: 7px;
  text-align: right
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0
}

.context-health .section-kicker {
  display: block
}

.health-score {
  text-align: center;
  padding: 18px 0
}

.health-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(var(--primary) 0 84%, #e6ecea 84%)
}

.health-ring strong {
  color: var(--primary);
  font-size: 13px
}

.health-score p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5
}

.context-health ul {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none
}

.context-health li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0;
  color: #536663;
  font-size: 8px
}

.context-health li .icon {
  color: var(--primary)
}

.knowledge-section {
  margin-bottom: 20px
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px
}

.knowledge-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fcfdfc
}

.knowledge-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #edf5f3;
  color: var(--primary)
}

.knowledge-copy {
  min-width: 0;
  flex: 1
}

.knowledge-copy>span {
  display: flex;
  align-items: center;
  gap: 6px
}

.knowledge-copy em {
  padding: 3px 6px;
  border-radius: 5px;
  background: #eff2f1;
  color: #6b7a77;
  font-size: 7px;
  font-style: normal
}

.knowledge-copy h3 {
  margin: 7px 0 4px;
  font-size: 10px
}

.knowledge-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #60706d;
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.knowledge-copy small {
  display: block;
  margin-top: 8px;
  color: #98a3a1;
  font-size: 7px
}

.knowledge-editor {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfe3df;
  border-radius: 11px;
  background: #f6fbf9
}

.knowledge-editor .wide {
  grid-column: 1/-1
}

.knowledge-editor textarea {
  height: 70px;
  resize: vertical
}

.editor-actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 7px
}

/* Business Page */
.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-bottom: 16px
}

.profile-section,
.context-health,
.knowledge-section {
  padding: 22px
}

.completion {
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700
}

.profile-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcfb
}

.profile-cover>span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #133c38;
  color: #d9efeb;
  font-size: 15px;
  font-weight: 800
}

.profile-cover>div {
  flex: 1
}

.profile-cover strong,
.profile-cover small {
  display: block
}

.profile-cover strong {
  font-size: 15.5px;
  font-weight: 650;
  color: #122623
}

.profile-cover small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px
}

.profile-form label,
.knowledge-editor label {
  display: block;
  color: #455956;
  font-size: 13px;
  font-weight: 650
}

.profile-form input,
.profile-form textarea,
.knowledge-editor input,
.knowledge-editor textarea,
.knowledge-editor select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  outline: 0
}

.profile-form input:focus,
.profile-form textarea:focus,
.knowledge-editor input:focus,
.knowledge-editor textarea:focus {
  border-color: #86bfb5;
  box-shadow: 0 0 0 3px rgba(13, 113, 100, .1)
}

.profile-form textarea {
  height: 90px;
  resize: vertical
}

.profile-form label>small {
  display: block;
  margin-top: 5px;
  color: #788b88;
  font-size: 11.5px;
  text-align: right
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0
}

.context-health .section-kicker {
  display: block
}

.health-score {
  text-align: center;
  padding: 20px 0
}

.health-ring {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(var(--primary) 0 84%, #e6ecea 84%)
}

.health-ring strong {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700
}

.health-score p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.context-health ul {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none
}

.context-health li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #394d4a;
  font-size: 13px
}

.context-health li .icon {
  color: var(--primary)
}

.knowledge-section {
  margin-bottom: 22px
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px
}

.knowledge-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdfc
}

.knowledge-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #edf5f3;
  color: var(--primary)
}

.knowledge-copy {
  min-width: 0;
  flex: 1
}

.knowledge-copy>span {
  display: flex;
  align-items: center;
  gap: 8px
}

.knowledge-copy em {
  padding: 3px 8px;
  border-radius: 6px;
  background: #eaf0ee;
  color: #506461;
  font-size: 12px;
  font-style: normal;
  font-weight: 600
}

.knowledge-copy h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: 650;
  color: #132724
}

.knowledge-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #455956;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.knowledge-copy small {
  display: block;
  margin-top: 9px;
  color: #768885;
  font-size: 12px
}

.knowledge-editor {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c2dbd6;
  border-radius: 12px;
  background: #f5faf8
}

.knowledge-editor .wide {
  grid-column: 1/-1
}

.knowledge-editor textarea {
  height: 80px;
  resize: vertical
}

.editor-actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 8px
}

/* Sales */
.sales-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px
}

.sales-person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow)
}

.sales-person>div {
  min-width: 0;
  flex: 1
}

.sales-person strong,
.sales-person small {
  display: block
}

.sales-person strong {
  font-size: 9px
}

.sales-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px
}

.sales-person>span:last-child {
  text-align: center
}

.sales-person>span b {
  font-size: 14px
}

.sales-person.unassigned {
  border-style: dashed
}

.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px
}

.board-header h2 {
  margin: 4px 0 0;
  font-size: 16px
}

.view-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white
}

.sales-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px
}

.board-column {
  min-height: 460px;
  padding: 10px;
  border-radius: 13px;
  background: #eaefed
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 10px;
  color: #4c5e5b;
  font-size: 9px;
  font-weight: 700
}

.column-title>span {
  display: flex;
  align-items: center;
  gap: 6px
}

.column-title b {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #dbe3e0;
  font-size: 7px
}

.column-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a2afac
}

.column-dot.c0 {
  background: #d79b38
}

.column-dot.c1 {
  background: #d06c58
}

.column-dot.c2 {
  background: #528fb0
}

.column-dot.c3 {
  background: #278573
}

.board-cards {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.board-card {
  padding: 12px;
  border: 1px solid #dfe6e3;
  border-radius: 11px;
  background: white;
  box-shadow: 0 2px 7px rgba(20, 45, 42, .04);
  cursor: pointer
}

.board-card:hover {
  border-color: #bfcfcb
}

.board-card-state {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.board-card h3 {
  margin: 10px 0 4px;
  font-size: 10px
}

.board-card>p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #61716e;
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.board-evidence {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: #82908d;
  font-size: 7px
}

.board-evidence span {
  display: flex;
  align-items: center;
  gap: 4px
}

.board-card hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid var(--line)
}

.board-owner {
  display: flex;
  align-items: center;
  gap: 6px
}

.board-owner .avatar {
  width: 22px;
  height: 22px;
  font-size: 7px
}

.board-owner span {
  flex: 1;
  color: #5a6b68;
  font-size: 7.5px
}

.board-owner button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  color: var(--primary);
  cursor: pointer
}

.empty-column {
  height: 120px;
  border: 1px dashed #cbd5d2;
  border-radius: 10px;
  color: #98a5a2
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 11px;
  background: #133d39;
  color: white;
  box-shadow: 0 12px 32px rgba(9, 39, 35, .24);
  font-size: 10px;
  animation: toast-in .2s ease
}

.toast .icon {
  color: #74d1c2
}

@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0
  }
}

/* Sales Page */
.sales-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px
}

.sales-person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow)
}

.sales-person>div {
  min-width: 0;
  flex: 1
}

.sales-person strong,
.sales-person small {
  display: block
}

.sales-person strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #132724
}

.sales-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px
}

.sales-person>span:last-child {
  text-align: center
}

.sales-person>span b {
  font-size: 18px;
  font-weight: 700;
  color: #102522
}

.sales-person.unassigned {
  border-style: dashed
}

.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px
}

.board-header h2 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: #102421
}

.view-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white
}

.sales-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px
}

.board-column {
  min-height: 480px;
  padding: 12px;
  border-radius: 14px;
  background: #e9efed
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
  color: #354946;
  font-size: 14px;
  font-weight: 700
}

.column-title>span {
  display: flex;
  align-items: center;
  gap: 7px
}

.column-title b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #d7e0dd;
  font-size: 11.5px;
  font-weight: 700;
  color: #283a37
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a2afac
}

.column-dot.c0 {
  background: #d79b38
}

.column-dot.c1 {
  background: #d06c58
}

.column-dot.c2 {
  background: #528fb0
}

.column-dot.c3 {
  background: #278573
}

.board-cards {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.board-card {
  padding: 14px 15px;
  border: 1px solid #dde5e2;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 7px rgba(20, 45, 42, .04);
  cursor: pointer;
  transition: .15s ease
}

.board-card:hover {
  border-color: #b8ccc7;
  box-shadow: 0 4px 12px rgba(20, 45, 42, .07)
}

.board-card-state {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.board-card h3 {
  margin: 10px 0 4px;
  font-size: 16px;
  font-weight: 650;
  color: #122522;
  letter-spacing: -.01em
}

.board-card>p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #455956;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.board-evidence {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: #617370;
  font-size: 12.5px
}

.board-evidence span {
  display: flex;
  align-items: center;
  gap: 5px
}

.board-card hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--line)
}

.board-owner {
  display: flex;
  align-items: center;
  gap: 8px
}

.board-owner .avatar {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
  font-weight: 750
}

.board-owner span {
  flex: 1;
  color: #495c59;
  font-size: 13px;
  font-weight: 500
}

.board-owner button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  color: var(--primary);
  cursor: pointer
}

.board-owner button:hover {
  background: #edf6f3;
  border-color: #b4cbc5
}

.empty-column {
  height: 130px;
  border: 1px dashed #c4d0cc;
  border-radius: 10px;
  color: #7a8d8a
}

.toast {
  position: fixed;
  z-index: 100;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #123a36;
  color: white;
  box-shadow: 0 12px 32px rgba(9, 39, 35, .28);
  font-size: 14px;
  font-weight: 550;
  animation: toast-in .2s ease
}

.toast .icon {
  color: #64dac8
}

@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0
  }
}

.nav-scrim {
  display: none
}

@media (max-width: 1180px) {
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page {
    padding-left: 26px;
    padding-right: 26px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-lower {
    grid-template-columns: 1fr;
  }

  .inbox-layout {
    grid-template-columns: 270px 1fr;
  }

  .inbox-layout {
    grid-template-columns: 280px 1fr;
  }

  .contact-panel {
    display: none;
  }

  .lead-layout {
    grid-template-columns: 250px 1fr;
  }

  .lead-layout {
    grid-template-columns: 260px 1fr;
  }

  .lead-side {
    grid-column: 2;
  }

  .business-grid {
    grid-template-columns: 1fr 230px;
  }

  .business-grid {
    grid-template-columns: 1fr 240px;
  }

  .sales-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .demo-ribbon span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .24s ease;
    box-shadow: 12px 0 34px rgba(5, 28, 26, .22);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    border: 0;
    background: rgba(9, 30, 28, .4);
    backdrop-filter: blur(2px);
  }

  .nav-open .nav-scrim {
    display: block;
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .menu-button {
    display: grid !important;
  }

  .topbar {
    padding: 0 72px;
  }

  .top-actions {
    right: 18px;
  }

  .global-search {
    width: min(380px, 60vw);
  }

  .top-actions {
    right: 20px;
  }

  .global-search {
    width: min(400px, 60vw);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .inbox-layout {
    height: calc(100vh - 182px);
    grid-template-columns: 1fr;
  }

  .conversation-detail {
    display: none;
  }

  .inbox-layout.show-detail .inbox-list {
    display: none;
  }

  .inbox-layout.show-detail .conversation-detail {
    display: flex;
  }

  .detail-back {
    display: grid;
    transform: rotate(180deg);
  }

  .lead-layout {
    grid-template-columns: 1fr;
  }

  .lead-detail,
  .lead-side {
    display: none;
  }

  .lead-layout.show-lead .lead-list {
    display: none;
  }

  .lead-layout.show-lead .lead-detail {
    display: block;
  }

  .lead-layout.show-lead .lead-side {
    display: block;
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .demo-ribbon {
    justify-content: flex-start;
    padding-left: 12px;
  }

  .demo-ribbon {
    justify-content: flex-start;
    padding-left: 14px;
  }

  .demo-ribbon strong {
    display: none;
  }

  .topbar {
    justify-content: flex-start;
    padding: 0 58px;
  }

  .topbar {
    justify-content: flex-start;
    padding: 0 60px;
  }

  .global-search {
    width: 100%;
  }

  .global-search kbd,
  .notification {
    display: none;
  }

  .top-actions {
    right: 12px;
  }

  .top-avatar {
    width: 29px;
    height: 29px
  }

  .menu-button {
    left: 12px
  }

  .page {
    padding: 20px 14px 36px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .top-actions {
    right: 14px;
  }

  .top-avatar {
    width: 32px;
    height: 32px
  }

  .menu-button {
    left: 14px
  }

  .page {
    padding: 22px 16px 40px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .header-actions {
    width: 100%;
    overflow-x: auto;
  }

  .header-actions .button {
    flex: 1;
    white-space: nowrap;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-card {
    min-height: 112px;
    padding: 13px
  }

  .metric-top strong {
    font-size: 23px
  }

  .metric-icon {
    width: 30px;
    height: 30px
  }

  .qualification-chart {
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .donut {
    width: 96px;
    height: 96px
  }

  .donut::before {
    inset: 12px
  }

  .stage-row {
    overflow-x: auto
  }

  .stage-row span {
    min-width: 115px
  }

  .dashboard-grid,
  .dashboard-lower {
    gap: 10px;
  }

  .panel {
    border-radius: 13px
  }

  .recent-panel {
    padding-bottom: 8px
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 118px;
    padding: 15px
  }

  .metric-top strong {
    font-size: 26px
  }

  .metric-icon {
    width: 34px;
    height: 34px
  }

  .qualification-chart {
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .donut {
    width: 104px;
    height: 104px
  }

  .donut::before {
    inset: 14px
  }

  .stage-row {
    overflow-x: auto
  }

  .stage-row span {
    min-width: 125px
  }

  .dashboard-grid,
  .dashboard-lower {
    gap: 12px;
  }

  .panel {
    border-radius: 14px
  }

  .recent-panel {
    padding-bottom: 10px
  }

  .inbox-layout {
    height: calc(100vh - 176px);
    min-height: 520px;
  }

  .conversation-header {
    padding: 0 10px
  }

  .conversation-actions .icon-button:first-child {
    display: none
  }

  .message-area {
    padding: 14px 10px
  }

  .bubble {
    max-width: 88%
  }

  .lead-sections {
    grid-template-columns: 1fr;
    padding: 10px
  }

  .detail-card,
  .evidence-card,
  .missing-card,
  .next-action-card {
    grid-column: 1
  }

  .evidence-list {
    grid-template-columns: 1fr
  }

  .next-action-card {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .next-action-card .button {
    width: 100%
  }

  .qualification-state {
    align-items: flex-start;
    flex-direction: column
  }

  .qualification-state p {
    text-align: left
  }

  .lead-detail-head {
    padding: 13px
  }

  .lead-head-actions .status {
    display: none
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .knowledge-grid {
    grid-template-columns: 1fr
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .knowledge-editor {
    grid-template-columns: 1fr
  }

  .knowledge-editor .wide {
    grid-column: 1
  }

  .sales-summary {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px
  }

  .sales-person {
    min-width: 210px
  }

  .sales-board {
    margin-right: -14px
  }

  .board-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

  .conversation-header {
    padding: 0 12px
  }

  .conversation-actions .icon-button:first-child {
    display: none
  }

  .message-area {
    padding: 14px 10px
  }

  .bubble {
    max-width: 88%
  }

  .lead-sections {
    grid-template-columns: 1fr;
    padding: 12px
  }

  .detail-card,
  .evidence-card,
  .missing-card,
  .next-action-card {
    grid-column: 1
  }

  .evidence-list {
    grid-template-columns: 1fr
  }

  .next-action-card {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .next-action-card .button {
    width: 100%
  }

  .qualification-state {
    align-items: flex-start;
    flex-direction: column
  }

  .qualification-state p {
    text-align: left
  }

  .lead-detail-head {
    padding: 15px
  }

  .lead-head-actions .status {
    display: none
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .knowledge-grid {
    grid-template-columns: 1fr
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .knowledge-editor {
    grid-template-columns: 1fr
  }

  .knowledge-editor .wide {
    grid-column: 1
  }

  .sales-summary {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px
  }

  .sales-person {
    min-width: 220px
  }

  .sales-board {
    margin-right: -16px
  }

  .board-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 100px;
  }

  .metric-top strong {
    margin-top: 10px;
  }

  .metric-card {
    min-height: 106px;
  }

  .metric-top strong {
    margin-top: 10px;
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .notice-card {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* MVP preview review refinements */
.inquiry-history-card {
  grid-column: 1 / -1;
}

.inquiry-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f7f6;
  color: #61716e;
  font-size: 8px;
}

.history-list {
  display: grid;
  gap: 7px;
}

.history-message {
  position: relative;
  padding: 9px 62px 9px 10px;
  border-left: 3px solid #b8d8d2;
  border-radius: 7px;
  background: #fafcfb;
}

.history-message strong {
  display: block;
  color: var(--primary);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.history-message p {
  margin: 4px 0 0;
  color: #4f625f;
  font-size: 8.5px;
  line-height: 1.5;
}

.history-message time {
  position: absolute;
  top: 9px;
  right: 9px;
  color: #91a09d;
  font-size: 7px;
}

.button.whatsapp {
  margin-bottom: 6px;
  background: #167b68;
  color: white;
}

.external-note {
  margin: 0 0 10px;
  color: #82908d;
  font-size: 7px;
  line-height: 1.45;
}

.inquiry-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: #f2f7f5;
  color: #435754;
  font-size: 13px;
  line-height: 1.45;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-message {
  position: relative;
  padding: 11px 72px 11px 13px;
  border-left: 3.5px solid #a4d2c8;
  border-radius: 8px;
  background: #fafcfb;
}

.history-message strong {
  display: block;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.history-message p {
  margin: 5px 0 0;
  color: #2c423f;
  font-size: 13.5px;
  line-height: 1.5;
}

.history-message time {
  position: absolute;
  top: 11px;
  right: 12px;
  color: #788c89;
  font-size: 12px;
  font-weight: 500;
}

.button.whatsapp {
  margin-bottom: 8px;
  background: #167b68;
  color: white;
}

.button.whatsapp:hover {
  background: #0f6152;
}

.external-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.source-link.static {
  cursor: default;
}

.board-card-main {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.board-card-main:focus-visible {
  border-radius: 7px;
  outline: 3px solid rgba(13, 113, 100, .2);
  outline-offset: 3px;
}

.board-card-main>p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #61716e;
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-owner button+button {
  margin-left: 3px;
}

.board-card-main:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(13, 113, 100, .28);
  outline-offset: 3px;
}

.board-card-main>p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #455956;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-owner button+button {
  margin-left: 4px;
}

/* Follow-up note polish */
.followup-notes-card {
  grid-column: 1 / -1;
}

.local-note-warning {
  margin: 8px 0 10px !important;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fff8e8;
  color: #8b6e2a !important;
  font-size: 7.5px !important;
}

.local-note-list {
  display: grid;
  gap: 7px;
}

.local-note {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfb;
}

.local-note p {
  margin: 0;
  color: #465a57;
  font-size: 8.5px;
  line-height: 1.5;
}

.local-note span {
  display: block;
  margin-top: 5px;
  color: #8a9895;
  font-size: 7px;
}

.empty-notes {
  padding: 12px;
  border: 1px dashed #cfd9d6;
  border-radius: 9px;
  color: #82908d;
  background: #fafcfb;
  font-size: 8px;
  text-align: center;
}

.empty-notes.large {
  margin-top: 14px;
  padding: 22px;
}

.completed-state {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
}

.followup-note-editor {
  margin-bottom: 14px;
  padding: 17px;
  border-color: #c9dfda;
}

.note-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.note-editor-head h2 {
  margin: 4px 0 0;
  font-size: 15px;
}

.note-editor-fields {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) 1fr;
  gap: 10px;
}

.note-editor-fields label {
  color: #657673;
  font-size: 8px;
  font-weight: 650;
}

.note-editor-fields select,
.note-editor-fields textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font-size: 9px;
}

.note-editor-fields textarea {
  height: 64px;
  resize: vertical;
}

.form-error {
  margin: 9px 0 0;
  color: #a14538;
  font-size: 8px;
  font-weight: 650;
}

.note-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.note-editor-footer>span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8a7770;
  font-size: 7.5px;
}

.local-notes-panel {
  margin-bottom: 14px;
  padding: 17px;
}

.local-notes-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.local-notes-feed article {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
}

.local-note-warning {
  margin: 10px 0 12px !important;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #ebdcb5;
  color: #775a13 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.local-note-list {
  display: grid;
  gap: 9px;
}

.local-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
}

.local-note p {
  margin: 0;
  color: #283e3b;
  font-size: 13.5px;
  line-height: 1.5;
}

.local-note span {
  display: block;
  margin-top: 6px;
  color: #728582;
  font-size: 12px;
  font-weight: 500;
}

.empty-notes {
  padding: 14px;
  border: 1px dashed #c6d4d0;
  border-radius: 9px;
  color: #6e807d;
  background: #fafcfb;
  font-size: 13px;
  text-align: center;
}

.empty-notes.large {
  margin-top: 16px;
  padding: 26px;
}

.completed-state {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 650;
}

.followup-note-editor {
  margin-bottom: 16px;
  padding: 20px;
  border-color: #bcd9d2;
}

.note-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.note-editor-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #112421;
}

.note-editor-fields {
  display: grid;
  grid-template-columns: minmax(200px, .45fr) 1fr;
  gap: 12px;
}

.note-editor-fields label {
  color: #435855;
  font-size: 13px;
  font-weight: 650;
}

.note-editor-fields select,
.note-editor-fields textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font-size: 14px;
}

.note-editor-fields textarea {
  height: 72px;
  resize: vertical;
}

.form-error {
  margin: 10px 0 0;
  color: #a13d30;
  font-size: 13px;
  font-weight: 650;
}

.note-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.note-editor-footer>span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #735f58;
  font-size: 12.5px;
}

.local-notes-panel {
  margin-bottom: 16px;
  padding: 20px;
}

.local-notes-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.local-notes-feed article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfb;
}

.local-notes-feed article>div {
  min-width: 0;
}

.local-notes-feed strong {
  font-size: 8.5px;
}

.local-notes-feed p {
  margin: 4px 0;
  color: #536663;
  font-size: 8px;
  line-height: 1.45;
}

.local-notes-feed small {
  color: #8d9997;
  font-size: 7px;
}

.local-notes-feed strong {
  font-size: 14px;
  font-weight: 650;
  color: #122623;
}

.local-notes-feed p {
  margin: 5px 0;
  color: #394d4a;
  font-size: 13px;
  line-height: 1.5;
}

.local-notes-feed small {
  color: #768a86;
  font-size: 12px;
}

@media (max-width: 680px) {

  .note-editor-fields,
  .local-notes-feed {
    grid-template-columns: 1fr;
  }

  .note-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .note-editor-footer .button {
    width: 100%;
  }
}


/* ==========================================================================
   TENANT ADMIN AUTH & LOGIN VIEW
   ========================================================================== */

.login-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 10%, #16423e 0%, #0c2928 65%, #061716 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-viewport::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 113, 100, 0.25) 0%, rgba(13, 113, 100, 0) 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 36px 32px;
  position: relative;
  z-index: 2;
  animation: loginAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d7164, #08433b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 16px rgba(13, 113, 100, 0.3);
}

.login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.login-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.login-alert svg {
  flex-shrink: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.login-input-wrapper input {
  width: 100%;
  padding: 11px 12px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fbfcfb;
  color: var(--ink);
  transition: all 0.15s ease;
}

.login-input-wrapper input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 113, 100, 0.12);
}

.login-toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-toggle-pw:hover {
  color: var(--ink);
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}

.login-remember input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.login-submit-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: 0 4px 12px rgba(13, 113, 100, 0.25);
}

.login-submit-btn:hover {
  background: var(--primary-dark);
}

.login-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-demo-box {
  margin-top: 24px;
  padding: 12px 14px;
  background: #f4f8f7;
  border: 1px dashed #bddad5;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.login-demo-text strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
}

.login-demo-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #b5d5cf;
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}

.login-demo-btn:hover {
  background: var(--primary-soft);
}

.logout-button {
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: #9eaba8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  margin-left: auto;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f67272;
}

.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.topbar-logout:hover {
  background: #fff1f1;
  border-color: #f8b4b4;
  color: #b91c1c;
}

/* ==========================================================================
   Lead Qualification Badges & Scoring Styles
   ========================================================================== */
.badge-classification {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-classification b {
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.badge-hot {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-warm {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-cold {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.lead-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.lead-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f8faf9;
  color: var(--ink);
}

.tab-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  font-weight: 600;
}

.tab-btn.tab-hot.active {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.tab-btn.tab-warm.active {
  background: #d97706;
  border-color: #d97706;
  color: white;
}

.tab-btn.tab-cold.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

/* Manual qualification override controls */
.manual-qualification-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
}

.score-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.score-input-group input {
  width: 72px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.override-tip {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Tenant Settings Page */
.tenant-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.tenant-settings-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tenant-settings-grid {
    grid-template-columns: 1fr;
  }
}

.tenant-settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tenant-settings-form .panel {
  padding: 24px;
}

.tenant-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.tenant-settings-form input,
.tenant-settings-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s ease;
}

.tenant-settings-form input:focus,
.tenant-settings-form textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.tenant-settings-form .field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.tenant-settings-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .tenant-settings-form .form-row {
    grid-template-columns: 1fr;
  }
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 32px;
}

.tenant-summary-panel {
  padding: 24px;
  position: sticky;
  top: 86px;
}

.ai-status-card {
  text-align: center;
  padding: 16px 0;
}

.ai-status-card .status-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f7f4;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  border: 2px solid var(--teal);
}

.rules-summary {
  font-size: 13px;
  color: var(--ink);
}

.rules-summary ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-summary li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.rules-summary li b {
  color: var(--ink);
}
