:root {
  --ink: #181a17;
  --ink-soft: #292c27;
  --canvas: #f2f1ec;
  --surface: #fcfcf8;
  --surface-soft: #f7f6f1;
  --muted: #777a72;
  --muted-dark: #5c6057;
  --line: #dfdfd8;
  --line-dark: #33362f;
  --lime: #dfff61;
  --lime-deep: #b5da34;
  --purple: #a495e7;
  --orange: #ff9d66;
  --cream: #f4ecda;
  --green: #4f7659;
  --shadow: 0 12px 34px rgba(24, 26, 23, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --sidebar-width: 252px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(181, 218, 52, 0.52);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  padding: 28px 18px 20px;
  flex-direction: column;
  background: var(--ink);
  color: #f4f5ef;
  overflow-y: auto;
}

.brand-row,
.card-heading,
.metric-top,
.topbar,
.page-intro,
.content-header,
.progress-top,
.recommendation-footer,
.consistency-meta,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-dot {
  color: var(--lime);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: rotate(45deg);
}

.brand-mark i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 5px 5px 2px;
  background: var(--lime);
}

.brand-mark i:nth-child(1) { transform: translate(-7px, -7px); }
.brand-mark i:nth-child(2) { transform: translate(7px, -7px) rotate(90deg); }
.brand-mark i:nth-child(3) { transform: translate(-7px, 7px) rotate(-90deg); }
.brand-mark i:nth-child(4) { transform: translate(7px, 7px) rotate(180deg); }

.sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
}

.workspace-switcher {
  display: flex;
  width: 100%;
  margin: 30px 0 26px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #22241f;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.workspace-switcher:hover {
  border-color: #555a4d;
  background: #272a24;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--purple);
  color: var(--ink);
  font-size: 0.71rem;
  font-weight: 700;
}

.avatar-lilac {
  background: #b9a8f0;
}

.workspace-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.workspace-copy strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy small {
  margin-top: 2px;
  color: #92968c;
  font-size: 0.69rem;
}

.switcher-icon {
  color: #9da094;
}

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

.nav-label {
  margin: 0 0 8px 12px;
  color: #777b71;
  font: 500 0.64rem/1 "Sora", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-label-secondary {
  margin-top: 24px;
}

.nav-item {
  display: flex;
  min-height: 43px;
  padding: 0 12px;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  color: #a9ada3;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: #242720;
  transform: translateX(2px);
}

.nav-item.is-active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.nav-icon {
  display: inline-grid;
  width: 20px;
  place-items: center;
  font-size: 1rem;
}

.nav-badge,
.nav-count {
  margin-left: auto;
  font: 600 0.58rem/1 "Sora", sans-serif;
}

.nav-badge {
  padding: 4px 5px;
  border-radius: 5px;
  background: #383b33;
  color: var(--lime);
}

.nav-item.is-active .nav-badge {
  background: rgba(24, 26, 23, 0.12);
  color: var(--ink);
}

.nav-count {
  color: #757a6e;
}

.accent-count {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--ink);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 26px;
}

.profile-progress {
  margin-bottom: 12px;
  padding: 16px 14px;
  border: 1px solid #34372f;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(223, 255, 97, 0.1), transparent 44%),
    #22241f;
}

.progress-top {
  font-size: 0.72rem;
}

.progress-top span {
  color: #b4b7ae;
}

.progress-top strong {
  color: var(--lime);
}

.progress-track,
.metric-line {
  position: relative;
  overflow: hidden;
  height: 5px;
  margin: 12px 0;
  border-radius: 999px;
  background: #3b3e37;
}

.progress-track span,
.metric-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.profile-progress button {
  display: flex;
  width: 100%;
  padding: 4px 0 0;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.69rem;
}

.settings-link {
  margin-top: 4px;
}

.main-wrap {
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  padding: 0 clamp(22px, 4vw, 58px);
  gap: 20px;
  border-bottom: 1px solid rgba(207, 207, 199, 0.72);
  background: rgba(242, 241, 236, 0.88);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.command-search {
  display: flex;
  width: min(360px, 38vw);
  min-height: 40px;
  padding: 0 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(252, 252, 248, 0.78);
  color: #8a8d85;
  cursor: pointer;
  font-size: 0.75rem;
}

.command-search:hover {
  border-color: #c6c7be;
  background: var(--surface);
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

kbd {
  display: inline-grid;
  min-width: 25px;
  min-height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border: 1px solid #d7d7d0;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f1f1ed;
  color: #85887f;
  font: 500 0.62rem/1 "Sora", sans-serif;
}

.topbar-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.notification-button span {
  position: relative;
  width: 15px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px 10px 5px 5px;
  font-size: 0;
}

.notification-button span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 5px;
  width: 4px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--ink);
}

.notification-button i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #e26654;
}

.primary-action {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(24, 26, 23, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-action:hover {
  background: #2b2e28;
  box-shadow: 0 11px 24px rgba(24, 26, 23, 0.17);
  transform: translateY(-1px);
}

.mobile-avatar {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: var(--purple);
  font-size: 0.7rem;
  font-weight: 700;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 42px clamp(22px, 4vw, 58px) 30px;
}

.page-intro {
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font: 600 0.64rem/1.2 "Sora", sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.55rem, 5vw, 4.85rem);
  font-weight: 500;
  line-height: 0.95;
}

h1 em {
  color: var(--green);
  font-family: "Sora", sans-serif;
  font-weight: 500;
}

.intro-copy {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.94rem;
}

.rank-chip {
  display: flex;
  padding: 13px 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 252, 248, 0.72);
  font-size: 0.7rem;
  white-space: nowrap;
}

.rank-chip span:not(.pulse-dot) {
  color: var(--muted);
}

.rank-chip strong {
  font-size: 0.72rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73a15f;
  box-shadow: 0 0 0 4px rgba(115, 161, 95, 0.14);
}

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

.score-grid {
  display: grid;
  grid-template-columns: minmax(390px, 1.65fr) repeat(3, minmax(150px, 0.7fr));
  gap: 14px;
  margin-bottom: 16px;
}

.authority-card,
.metric-card {
  min-height: 206px;
  padding: 22px;
}

.card-heading {
  align-items: flex-start;
  gap: 18px;
}

.card-heading h2,
.content-header h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.more-button,
.row-menu {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.1em;
}

.authority-body {
  display: flex;
  margin-top: 16px;
  align-items: center;
  gap: 23px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 114px;
  height: 114px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #e9e9e3 0);
}

.score-ring::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
}

.score-center {
  position: relative;
  display: flex;
  align-items: baseline;
}

.score-center strong {
  font: 500 2.15rem/1 "Sora", sans-serif;
}

.score-center span {
  color: var(--muted);
  font-size: 0.61rem;
}

.authority-summary p {
  max-width: 280px;
  margin: 10px 0;
  color: var(--muted-dark);
  font-size: 0.75rem;
  line-height: 1.55;
}

.authority-summary p strong {
  color: var(--ink);
}

.trend-pill,
.streak-badge,
.opportunity-count {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f3dd;
  color: #46623e;
  font: 600 0.59rem/1 "Sora", sans-serif;
}

.authority-summary button,
.text-button,
.community-link,
.automation-strip button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 600;
}

.authority-summary button span,
.text-button span,
.community-link span,
.automation-strip button span {
  margin-left: 5px;
}

.metric-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -47px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--metric-accent);
  opacity: 0.13;
}

.metric-green { --metric-accent: #72945f; }
.metric-purple { --metric-accent: var(--purple); }
.metric-orange { --metric-accent: var(--orange); }

.metric-top p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.71rem;
  font-weight: 600;
}

.metric-top span {
  color: var(--green);
  font: 600 0.63rem/1 "Sora", sans-serif;
}

.metric-score {
  margin: 23px 0 14px;
  font: 500 3.2rem/0.9 "Sora", sans-serif;
}

.metric-line {
  height: 4px;
  margin: auto 0 10px;
  background: #e8e8e1;
}

.metric-line span {
  background: var(--metric-accent);
}

.metric-card small {
  color: var(--muted);
  font-size: 0.64rem;
}

.briefing {
  display: grid;
  grid-template-columns: auto minmax(260px, 0.8fr) minmax(490px, 1.3fr);
  min-height: 198px;
  margin-bottom: 16px;
  padding: 24px;
  align-items: center;
  gap: 22px;
  border-color: #bdd548;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.64), transparent 23%),
    var(--lime);
}

.briefing-mark,
.modal-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-size: 1.25rem;
}

.briefing .eyebrow {
  color: #58671b;
}

.briefing h2 {
  max-width: 470px;
  margin-bottom: 8px;
  font: 500 clamp(1.55rem, 2.4vw, 2.35rem)/1.05 "Sora", sans-serif;
  letter-spacing: -0.025em;
}

.briefing-copy > p:last-child {
  max-width: 470px;
  margin: 0;
  color: #536019;
  font-size: 0.72rem;
  line-height: 1.55;
}

.task-stack {
  display: grid;
  gap: 7px;
}

.coach-task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 45px;
  padding: 8px 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(66, 75, 23, 0.16);
  border-radius: 11px;
  background: rgba(252, 252, 248, 0.62);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, transform 160ms ease;
}

.coach-task:hover {
  background: rgba(252, 252, 248, 0.92);
  transform: translateX(2px);
}

.coach-task.is-complete {
  opacity: 0.62;
}

.coach-task.is-complete strong {
  text-decoration: line-through;
}

.task-check {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #7b8a36;
  border-radius: 5px;
}

.coach-task.is-complete .task-check {
  background: var(--ink);
}

.coach-task.is-complete .task-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-size: 0.67rem;
}

.coach-task > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.coach-task strong {
  font-size: 0.7rem;
}

.coach-task small {
  margin-top: 2px;
  color: #657326;
  font-size: 0.59rem;
}

.coach-task b {
  color: #52621b;
  font: 600 0.65rem/1 "Sora", sans-serif;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 16px;
  margin-bottom: 16px;
}

.trajectory-card,
.consistency-card,
.graph-card,
.opportunities-card {
  min-width: 0;
  padding: 23px;
}

.trajectory-card {
  min-height: 380px;
}

.segmented-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-width: 34px;
  min-height: 25px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.58rem/1 "Sora", sans-serif;
}

.segmented-control button.is-active {
  background: var(--ink);
  color: #fff;
}

.chart-summary {
  display: flex;
  margin: 22px 0 6px;
  align-items: baseline;
  gap: 7px;
}

.chart-summary strong {
  font: 500 2rem/1 "Sora", sans-serif;
}

.chart-summary span {
  color: var(--muted);
  font-size: 0.66rem;
}

.chart-wrap {
  position: relative;
  height: 212px;
}

#authority-chart {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  top: 12px;
  right: 1px;
  display: flex;
  padding: 8px 10px;
  flex-direction: column;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 26, 23, 0.18);
}

.chart-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.chart-tooltip strong {
  font: 600 0.8rem/1 "Sora", sans-serif;
}

.chart-tooltip span {
  margin-top: 3px;
  color: #b4b8ae;
  font-size: 0.55rem;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 4px;
  color: var(--muted);
  font: 500 0.56rem/1 "Sora", sans-serif;
  text-align: center;
}

.consistency-card {
  min-height: 380px;
}

.streak-badge {
  background: #f7e8db;
  color: #9a5934;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  margin: 37px 0 31px;
  align-items: end;
}

.week-grid div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}

.week-grid span {
  display: block;
  width: 100%;
  min-height: 70px;
  border-radius: 8px;
  background: #e9e9e3;
}

.week-grid .activity-1 {
  background: linear-gradient(to top, #cadd79 38%, #ededE7 38%);
}

.week-grid .activity-2 {
  background: linear-gradient(to top, #a8c64e 66%, #ededE7 66%);
}

.week-grid .activity-3 {
  background: linear-gradient(to top, #768f29 88%, #ededE7 88%);
}

.week-grid .activity-current {
  background: linear-gradient(to top, var(--ink) 74%, #ededE7 74%);
  box-shadow: inset 0 -4px 0 var(--lime);
}

.week-grid small {
  color: var(--muted);
  font: 500 0.53rem/1 "Sora", sans-serif;
}

.consistency-meta {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.consistency-meta > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.consistency-meta > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.consistency-meta strong {
  font: 500 1.35rem/1 "Sora", sans-serif;
}

.consistency-meta span {
  color: var(--muted);
  font-size: 0.59rem;
}

.graph-card {
  min-height: 407px;
}

.text-button {
  color: var(--ink);
}

.graph-stage {
  position: relative;
  height: 277px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e4e4de;
  border-radius: 17px;
  background-color: #f7f7f2;
  background-image: radial-gradient(#d4d6cc 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.graph-node {
  position: absolute;
  z-index: 2;
  display: flex;
  padding: 8px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d9d2;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(24, 26, 23, 0.07);
  text-align: left;
}

.graph-node:hover,
.graph-node.is-selected {
  border-color: #98ad3f;
  box-shadow: 0 0 0 3px rgba(181, 218, 52, 0.24), 0 7px 18px rgba(24, 26, 23, 0.08);
}

.graph-node strong,
.graph-node small {
  display: block;
}

.graph-node strong {
  font-size: 0.68rem;
}

.graph-node small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.52rem;
}

.person-node {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-large {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.company-node {
  top: 109px;
  left: 8%;
}

.product-node {
  top: 109px;
  right: 8%;
}

.node-symbol {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: "Sora", sans-serif;
}

.product-symbol {
  background: var(--orange);
  color: var(--ink);
}

.topic-node {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 0.58rem;
}

.topic-one {
  bottom: 23px;
  left: 22%;
}

.topic-two {
  right: 20%;
  bottom: 23px;
}

.graph-lines i {
  position: absolute;
  z-index: 1;
  display: block;
  height: 1px;
  background: #bfc2b6;
  transform-origin: left center;
}

.line-a { top: 83px; left: 50%; width: 150px; transform: rotate(156deg); }
.line-b { top: 83px; left: 50%; width: 150px; transform: rotate(24deg); }
.line-c { top: 156px; left: 25%; width: 105px; transform: rotate(69deg); }
.line-d { top: 156px; right: 25%; width: 105px; transform: rotate(111deg); transform-origin: right center !important; }
.line-e { bottom: 48px; left: 38%; width: 24%; }

.graph-caption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.59rem;
  text-align: center;
}

.opportunities-card {
  min-height: 407px;
}

.opportunity-count {
  background: #eee9fb;
  color: #665892;
}

.opportunity-list {
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.opportunity-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 82px;
  padding: 13px 0;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.opportunity-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  font-family: "Sora", sans-serif;
}

.icon-cite { background: #edf4d5; color: #65762f; }
.icon-link { background: #eee9fb; color: #6c5ca4; }
.icon-topic { background: #f9e9df; color: #a35d36; }

.opportunity-list div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.opportunity-list strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.59rem;
}

.opportunity-list button {
  min-width: 44px;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
}

.opportunity-list button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.content-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.content-header {
  padding: 23px;
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.filter-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.65rem;
}

.filter-button span {
  margin-left: 8px;
  color: var(--muted);
}

.content-table {
  border-top: 1px solid var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(340px, 2fr) minmax(100px, 0.8fr) 60px 60px 90px 30px;
  min-height: 72px;
  padding: 0 23px;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 0.68rem;
}

.table-row:first-child {
  border-top: 0;
}

.table-row:not(.table-head):hover {
  background: #fafaf6;
}

.table-head {
  min-height: 40px;
  background: #f7f7f2;
  color: var(--muted);
  font: 600 0.56rem/1 "Sora", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.article-cell > div {
  min-width: 0;
}

.article-cell strong,
.article-cell small {
  display: block;
}

.article-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
}

.article-thumb {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  font: 600 0.57rem/1 "Sora", sans-serif;
}

.thumb-lime { background: var(--lime); }
.thumb-purple { background: #d8cff5; }
.thumb-peach { background: #f8d9c6; }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
}

.published { background: #76a364; }
.review { background: #a495e7; }
.draft { background: #c2c3bc; }

.cell-score {
  color: var(--green);
  font: 600 0.72rem/1 "Sora", sans-serif;
}

.muted-score {
  color: #8a8d85;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 16px;
  margin-bottom: 16px;
}

.recommendation-card,
.community-card {
  padding: 24px;
}

.recommendation-card {
  display: flex;
  min-height: 292px;
  justify-content: space-between;
  flex-direction: column;
  border-color: #252724;
  background:
    radial-gradient(circle at 95% 15%, rgba(223, 255, 97, 0.16), transparent 28%),
    var(--ink);
  color: #fff;
}

.recommendation-label {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 600 0.58rem/1 "Sora", sans-serif;
  text-transform: uppercase;
}

.recommendation-card h2 {
  max-width: 780px;
  margin: 18px 0 12px;
  font: 500 clamp(1.85rem, 3.8vw, 3.35rem)/1.02 "Sora", sans-serif;
  letter-spacing: -0.025em;
}

.recommendation-card > div > p {
  max-width: 610px;
  margin: 0;
  color: #b8bcb2;
  font-size: 0.72rem;
  line-height: 1.55;
}

.recommendation-footer {
  margin-top: 28px;
  align-items: flex-end;
}

.potential-score {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.potential-score span {
  color: #858a7f;
  font-size: 0.58rem;
}

.potential-score strong {
  color: var(--lime);
  font: 600 0.68rem/1 "Sora", sans-serif;
}

.recommendation-card .primary-action {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: none;
}

.recommendation-card .primary-action:hover {
  background: #e8ff8d;
}

.community-card {
  min-height: 292px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack i {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #ded7ca;
  font: normal 600 0.5rem/1 "Sora", sans-serif;
}

.avatar-stack i:nth-child(2) { background: #d5cdf1; }
.avatar-stack i:nth-child(3) { background: var(--ink); color: #fff; }

.community-message {
  display: flex;
  margin: 30px 0 22px;
  gap: 12px;
}

.avatar-sand {
  background: #ded7ca;
}

.community-message div {
  min-width: 0;
}

.community-message strong {
  font-size: 0.7rem;
}

.community-message p {
  margin: 7px 0;
  color: var(--muted-dark);
  font: 500 1rem/1.35 "Sora", sans-serif;
}

.community-message small {
  color: var(--muted);
  font-size: 0.58rem;
}

.community-link {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.automation-strip {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto;
  margin-bottom: 28px;
  padding: 18px 21px;
  align-items: center;
  gap: 18px;
  background: #e9e4f7;
  border-color: #d5cceb;
}

.automation-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--purple);
}

.automation-strip h2 {
  margin: 0;
  font-size: 0.94rem;
}

.automation-strip > p {
  margin: 0;
  color: #686173;
  font-size: 0.68rem;
  line-height: 1.5;
}

.site-footer {
  padding: 14px 2px 0;
  border-top: 1px solid #d8d8d1;
  color: var(--muted);
  font-size: 0.63rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78a464;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 18, 15, 0.58);
  backdrop-filter: blur(6px);
}

.article-modal,
.command-palette {
  position: fixed;
  z-index: 110;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 16, 14, 0.28);
}

.article-modal {
  top: 50%;
  left: 50%;
  width: min(600px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 34px;
  overflow-y: auto;
  border-radius: 25px;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 1.3rem;
}

.modal-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 23px;
  border-radius: 12px;
}

.article-modal h2 {
  max-width: 490px;
  margin: 0 0 10px;
  font: 500 clamp(1.85rem, 5vw, 3rem)/1.05 "Sora", sans-serif;
  letter-spacing: -0.025em;
}

.modal-intro {
  max-width: 500px;
  margin-bottom: 25px;
  color: var(--muted-dark);
  font-size: 0.75rem;
  line-height: 1.55;
}

.article-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.67rem;
  font-weight: 600;
}

.article-form textarea,
.article-form select {
  width: 100%;
  border: 1px solid #d7d8d0;
  border-radius: 11px;
  background: #f8f8f4;
  color: var(--ink);
}

.article-form textarea {
  min-height: 96px;
  padding: 13px;
  resize: vertical;
  font: 400 1.05rem/1.45 "Sora", sans-serif;
}

.article-form select {
  min-height: 43px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.modal-insight {
  display: flex;
  margin: 17px 0;
  padding: 12px;
  gap: 10px;
  border-radius: 11px;
  background: #edf5d4;
  color: #4f5e1b;
}

.modal-insight p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.5;
}

.modal-submit {
  width: 100%;
}

.command-palette {
  top: 16%;
  left: 50%;
  width: min(570px, calc(100% - 30px));
  overflow: hidden;
  border-radius: 18px;
  transform: translateX(-50%);
}

.command-input-wrap {
  display: flex;
  padding: 15px 17px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.command-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.84rem;
}

.command-results {
  padding: 10px;
}

.command-results > p {
  margin: 8px 9px;
  color: var(--muted);
  font: 600 0.57rem/1 "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-results button {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.command-results button:hover {
  background: #f2f2ed;
}

.command-results strong {
  font-size: 0.72rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid #3d4038;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

/* Business discovery */
.discover-hero {
  padding: 55px 0 45px;
  text-align: center;
}

.discover-hero h1 {
  max-width: 970px;
  margin: 0 auto 17px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

.discover-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.business-search-form {
  display: flex;
  width: min(700px, 100%);
  min-height: 58px;
  margin: 28px auto 0;
  padding: 7px 7px 7px 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfd1c7;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(24, 26, 23, 0.09);
  color: var(--muted);
}

.business-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
}

.business-search-form button {
  min-height: 43px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
}

.directory-section {
  margin-bottom: 16px;
}

.directory-heading {
  display: flex;
  margin-bottom: 17px;
  align-items: flex-end;
  justify-content: space-between;
}

.directory-heading h2 {
  margin: 0;
  font-size: 1.3rem;
}

.directory-heading > span {
  color: var(--muted);
  font-size: 0.59rem;
}

.business-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.business-result-card {
  overflow: hidden;
}

.business-result-cover {
  position: relative;
  display: block;
  height: 145px;
  background: #d9ddd3;
  color: inherit;
  text-decoration: none;
}

.business-result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lumen-result-cover {
  background:
    radial-gradient(circle at 70% 26%, rgba(255,255,255,.6), transparent 24%),
    linear-gradient(135deg, #9ebcb5, #e4eee8 68%);
}

.harbor-result-cover {
  background:
    radial-gradient(circle at 20% 80%, rgba(223,255,97,.5), transparent 30%),
    linear-gradient(145deg, #202a25, #788d7d);
}

.business-result-logo {
  position: absolute;
  left: 17px;
  bottom: -23px;
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.coming-soon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--ink);
  font-size: 0.5rem;
  font-weight: 600;
}

.business-result-body {
  padding: 34px 17px 17px;
}

.business-result-title,
.business-result-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.business-result-title h3 {
  margin: 0;
  font-size: 0.82rem;
}

.business-result-title h3 i {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.48rem;
  font-style: normal;
}

.business-result-title p,
.business-result-body > p {
  color: var(--muted);
}

.business-result-title p {
  margin: 4px 0 0;
  font-size: 0.52rem;
}

.business-result-title > span {
  color: var(--muted);
  font-size: 0.5rem;
}

.business-result-body > p {
  min-height: 62px;
  margin: 18px 0;
  font-size: 0.59rem;
  line-height: 1.6;
}

.business-result-footer {
  padding-top: 13px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.business-result-footer > span {
  color: var(--muted);
  font-size: 0.51rem;
}

.business-result-footer a,
.business-result-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.52rem;
  font-weight: 600;
  text-decoration: none;
}

.business-empty-state {
  padding: 60px 20px;
  text-align: center;
}

.business-empty-state > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  font-size: 1.3rem;
}

.business-empty-state h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.business-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.public-pages-note {
  display: grid;
  grid-template-columns: auto minmax(260px, .9fr) minmax(260px, 1fr) auto;
  margin-bottom: 28px;
  padding: 21px;
  align-items: center;
  gap: 17px;
  background: #e9e4f7;
  border-color: #d7cdea;
}

.public-pages-note h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.public-pages-note > p {
  margin: 0;
  color: #6e6879;
  font-size: 0.59rem;
  line-height: 1.55;
}

.public-pages-note > a {
  color: var(--ink);
  font-size: 0.59rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Shared multi-page surfaces */
.secondary-main {
  min-height: calc(100vh - 74px);
}

.secondary-intro {
  min-height: 156px;
}

.secondary-intro h1 {
  max-width: 920px;
  font-size: clamp(2.7rem, 5.4vw, 5.25rem);
}

.secondary-intro .intro-copy {
  max-width: 720px;
  line-height: 1.65;
}

.quiet-status {
  display: inline-flex;
  padding: 10px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 252, 248, 0.7);
  color: var(--muted-dark);
  font-size: 0.64rem;
  white-space: nowrap;
}

.quiet-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73a15f;
  box-shadow: 0 0 0 4px rgba(115, 161, 95, 0.12);
}

.text-link {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  margin-left: 5px;
}

/* Writing studio */
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.68fr);
  gap: 16px;
  margin-bottom: 16px;
}

.studio-compose-card,
.spar-panel {
  padding: 24px;
}

.studio-compose-card {
  min-height: 505px;
  border-color: #cfd1c6;
  background:
    radial-gradient(circle at 95% 0, rgba(223, 255, 97, 0.15), transparent 29%),
    var(--surface);
}

.compose-topline {
  display: flex;
  margin-bottom: 35px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.61rem;
}

.compose-topline span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.studio-composer > label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.studio-composer > textarea {
  width: 100%;
  min-height: 210px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.55 "Sora", sans-serif;
  resize: vertical;
}

.studio-composer > textarea::placeholder {
  color: #afb1a9;
}

.idea-starters {
  display: flex;
  margin: 18px 0 27px;
  flex-wrap: wrap;
  gap: 7px;
}

.idea-starters button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-dark);
  cursor: pointer;
  font-size: 0.59rem;
}

.idea-starters button:hover {
  border-color: #abb296;
  background: #eef3de;
  color: var(--ink);
}

.composer-media {
  margin: 8px 0 22px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7f3;
}

.composer-media-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.composer-media-heading strong {
  display: block;
  font-size: 0.68rem;
}

.composer-media-heading p {
  max-width: 570px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.5;
}

.composer-media-heading > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7eadc;
  color: #687629;
  font-size: 0.48rem;
  font-weight: 700;
}

.add-media-button {
  min-height: 48px;
  margin-top: 14px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  border: 1px dashed #aeb1a5;
  border-radius: 11px;
  background: white;
  cursor: pointer;
}

.add-media-button > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3d9;
  color: #627520;
  font-size: 0.8rem;
  font-weight: 700;
}

.add-media-button strong { font-size: 0.54rem; }
.add-media-button small { color: var(--muted); font-size: 0.43rem; }

.add-media-button.is-full {
  opacity: 0.48;
  pointer-events: none;
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.article-media-preview {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.article-media-item {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.article-media-item img {
  width: 70px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.article-media-item label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.45rem;
  font-weight: 700;
}

.article-media-item input {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.48rem;
}

.article-media-item div > span {
  max-width: 100%;
  margin-top: 4px;
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.38rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-media-item > button {
  border: 0;
  background: transparent;
  color: #8c4f4f;
  font-size: 0.43rem;
  font-weight: 700;
  cursor: pointer;
}

.composer-footer,
.composer-options {
  display: flex;
  align-items: center;
}

.composer-footer {
  padding-top: 18px;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.composer-options {
  flex-wrap: wrap;
  gap: 7px;
}

.composer-options button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.58rem;
}

.spar-panel {
  background: #edf5d4;
  border-color: #d3dfaa;
}

.spar-panel-head {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 12px;
}

.spar-panel-head .briefing-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.spar-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.spar-panel > p {
  margin-bottom: 21px;
  color: #5e682f;
  font-size: 0.69rem;
  line-height: 1.65;
}

.spar-suggestion {
  display: flex;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(82, 99, 27, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  text-align: left;
}

.spar-suggestion:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.spar-suggestion small {
  color: #77823d;
  font-size: 0.56rem;
}

.spar-suggestion strong {
  margin: 7px 0 14px;
  font-size: 0.7rem;
  line-height: 1.45;
}

.spar-suggestion span {
  font-size: 0.58rem;
  font-weight: 600;
}

.drafts-card {
  margin-bottom: 28px;
  padding: 0 0 22px;
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 22px;
}

.draft-grid > article {
  display: flex;
  min-height: 210px;
  padding: 18px;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.draft-state {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf2d5;
  color: #59702d;
  font-size: 0.55rem;
  font-weight: 600;
}

.draft-state-lilac {
  background: #eeeafb;
  color: #6f6097;
}

.draft-grid h3 {
  margin: 17px 0 8px;
  font-size: 0.93rem;
  line-height: 1.35;
}

.draft-grid p {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.6;
}

.draft-grid article > div {
  display: flex;
  margin-top: 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.57rem;
}

.draft-grid a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.new-draft-card {
  border-style: dashed !important;
  background: transparent !important;
}

.new-draft-card button {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.new-draft-card button > span {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  background: var(--lime);
}

.new-draft-card button strong {
  font-size: 0.7rem;
}

.new-draft-card button small {
  color: var(--muted);
  font-size: 0.58rem;
}

/* Knowledge graph */
.entity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.entity-summary-grid article {
  display: grid;
  min-height: 106px;
  padding: 17px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.summary-symbol {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}

.symbol-lime { background: var(--lime); color: var(--ink); }
.symbol-lilac { background: #d8cff5; color: var(--ink); }
.symbol-orange { background: #f8d9c6; color: var(--ink); }

.entity-summary-grid article div {
  display: flex;
  flex-direction: column;
}

.entity-summary-grid strong {
  font-size: 1.3rem;
}

.entity-summary-grid small {
  color: var(--muted);
  font-size: 0.58rem;
}

.entity-summary-grid em {
  grid-column: 2;
  margin-top: -16px;
  color: var(--green);
  font-size: 0.54rem;
  font-style: normal;
}

.graph-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.58fr);
  gap: 16px;
  margin-bottom: 16px;
}

.graph-workspace,
.relationship-panel {
  padding: 23px;
}

.graph-tools {
  display: flex;
  gap: 6px;
}

.graph-tools button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 0.58rem;
}

.graph-canvas-large {
  position: relative;
  height: 480px;
  margin-top: 21px;
  overflow: hidden;
  border: 1px solid #e0e1d8;
  border-radius: 18px;
  background-color: #f6f7f1;
  background-image: radial-gradient(#cdd0c2 0.8px, transparent 0.8px);
  background-size: 20px 20px;
}

.graph-canvas-large::before,
.graph-canvas-large::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  height: 1px;
  background: #c7cabd;
  transform-origin: left center;
}

.graph-canvas-large::before { transform: rotate(28deg); }
.graph-canvas-large::after { transform: rotate(152deg); }

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed #d8dacd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one { width: 280px; height: 280px; }
.ring-two { width: 440px; height: 440px; }

.entity-bubble,
.topic-bubble {
  position: absolute;
  z-index: 2;
  display: flex;
  border: 1px solid #d3d5ca;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(24, 26, 23, 0.08);
}

.entity-bubble {
  padding: 9px;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  text-align: left;
}

.entity-bubble:hover,
.entity-bubble.is-selected,
.topic-bubble:hover {
  border-color: #99ad47;
  box-shadow: 0 0 0 4px rgba(223, 255, 97, 0.25), 0 9px 22px rgba(24, 26, 23, 0.08);
}

.entity-bubble strong,
.entity-bubble small {
  display: block;
}

.entity-bubble strong { font-size: 0.66rem; }
.entity-bubble small { margin-top: 2px; color: var(--muted); font-size: 0.5rem; }

.bubble-person { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bubble-company { top: 15%; left: 10%; }
.bubble-product { right: 8%; bottom: 16%; }

.topic-bubble {
  padding: 8px 10px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 0.57rem;
}

.topic-bubble b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #ecece5;
  font-size: 0.5rem;
}

.bubble-ai { top: 18%; right: 14%; }
.bubble-risk { right: 8%; bottom: 45%; }
.bubble-leadership { bottom: 13%; left: 15%; }
.bubble-governance { top: 48%; left: 7%; }

.graph-selection {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.6rem;
  text-align: center;
}

.relationship-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(164, 149, 231, 0.18), transparent 32%),
    var(--surface);
}

.relationship-panel h2 {
  margin: 18px 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.relationship-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.6;
}

.relationship-path {
  display: flex;
  margin: 25px 0;
  align-items: center;
  gap: 8px;
}

.relationship-path span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.57rem;
}

.relationship-path i {
  color: var(--muted);
  font-style: normal;
}

.relationship-panel .primary-action {
  width: 100%;
}

.relationship-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.relationship-note strong {
  font-size: 0.65rem;
}

.relationship-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.55;
}

.entity-library {
  margin-bottom: 28px;
}

.entity-list {
  border-top: 1px solid var(--line);
}

.entity-list > div {
  display: grid;
  min-height: 68px;
  padding: 0 23px;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.entity-list > div:first-child { border-top: 0; }

.entity-mini {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-size: 0.61rem;
  font-weight: 700;
}

.entity-person { background: #d8cff5; }
.entity-company { background: var(--ink); color: #fff; }
.entity-service { background: #f8d9c6; }

.entity-list strong,
.entity-list small { display: block; }
.entity-list strong { font-size: 0.68rem; }
.entity-list small { margin-top: 3px; color: var(--muted); font-size: 0.56rem; }
.entity-list b { color: var(--green); font-size: 0.65rem; }
.entity-list button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 0.57rem;
}

/* Content library */
.content-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.content-stat-row article {
  display: flex;
  min-height: 118px;
  padding: 19px;
  flex-direction: column;
}

.content-stat-row span {
  color: var(--muted-dark);
  font-size: 0.64rem;
  font-weight: 600;
}

.content-stat-row strong {
  margin: 11px 0 5px;
  font-size: 1.8rem;
}

.content-stat-row small {
  color: var(--green);
  font-size: 0.56rem;
}

.library-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.library-toolbar,
.library-tabs,
.library-actions {
  display: flex;
  align-items: center;
}

.library-toolbar {
  min-height: 68px;
  padding: 0 22px;
  justify-content: space-between;
  gap: 15px;
}

.library-tabs {
  gap: 5px;
}

.library-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.62rem;
}

.library-tabs button span {
  margin-left: 5px;
  color: #a0a39a;
}

.library-tabs button.is-active {
  background: var(--ink);
  color: #fff;
}

.library-actions {
  gap: 7px;
}

.full-library .table-row {
  min-height: 78px;
}

.thumb-dark { background: var(--ink); color: #fff; }
.thumb-sage { background: #dce8da; }

.content-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
  margin-bottom: 28px;
}

.idea-bank,
.content-gap-card {
  padding: 22px;
}

.idea-bank > .card-heading {
  margin-bottom: 13px;
}

.idea-bank > .card-heading > span {
  color: var(--muted);
  font-size: 0.57rem;
}

.idea-bank > button {
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 13px 0;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.idea-bank > button strong { font-size: 0.67rem; }
.idea-bank > button small { color: var(--muted); font-size: 0.55rem; }
.idea-bank > button span { grid-row: 1 / 3; grid-column: 2; }

.content-gap-card {
  background:
    radial-gradient(circle at 100% 0, rgba(223, 255, 97, 0.18), transparent 35%),
    var(--ink);
  color: #fff;
}

.content-gap-card .eyebrow { color: var(--lime); }

.content-gap-card h2 {
  max-width: 600px;
  margin: 18px 0 12px;
  font-size: 1.4rem;
  line-height: 1.28;
}

.content-gap-card p:not(.eyebrow) {
  color: #b7bbb2;
  font-size: 0.64rem;
  line-height: 1.6;
}

.content-gap-card .primary-action {
  margin-top: 18px;
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

/* Community */
.community-layout {
  display: grid;
  min-height: 660px;
  grid-template-columns: 310px minmax(0, 1fr);
  margin-bottom: 16px;
  overflow: hidden;
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: #f9f9f5;
}

.conversation-head {
  display: flex;
  min-height: 70px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
}

.conversation-head h2 {
  margin: 0;
  font-size: 0.93rem;
}

.conversation-head button,
.message-head > button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.conversation-search {
  display: flex;
  height: 38px;
  margin: 0 13px 10px;
  padding: 0 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}

.conversation-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.61rem;
}

.conversation-item {
  position: relative;
  display: grid;
  width: calc(100% - 16px);
  min-height: 68px;
  margin: 4px 8px;
  padding: 10px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

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

.conversation-item > span:nth-child(2) {
  min-width: 0;
}

.conversation-item strong,
.conversation-item small { display: block; }
.conversation-item strong { font-size: 0.64rem; }
.conversation-item small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 0.54rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item time { align-self: start; color: var(--muted); font-size: 0.5rem; }
.conversation-item > i { position: absolute; right: 11px; bottom: 15px; width: 6px; height: 6px; border-radius: 50%; background: #709a5e; }

.avatar-lime { background: var(--lime); }
.avatar-dark { background: var(--ink); color: #fff; }
.avatar-sage { background: #c8dbc8; }

.message-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.message-head {
  display: flex;
  min-height: 70px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.message-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-head strong,
.message-head small { display: block; }
.message-head strong { font-size: 0.67rem; }
.message-head small { margin-top: 3px; color: var(--muted); font-size: 0.54rem; }

.message-thread {
  display: flex;
  flex: 1;
  padding: 24px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.day-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.53rem;
  text-align: center;
}

.message {
  max-width: min(570px, 80%);
  padding: 13px 15px 9px;
  border-radius: 14px;
}

.message p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.7;
}

.message time {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.49rem;
}

.message.received {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #f0f0eb;
}

.message.sent {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #e7f2bd;
}

.message.sent time { text-align: right; }

.message-composer {
  display: flex;
  margin: 0 18px 18px;
  padding: 10px 10px 8px 14px;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.message-composer textarea {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.64rem;
  resize: none;
}

.message-composer > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-composer > div > button:first-child {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.message-composer .primary-action {
  min-height: 34px;
  padding-inline: 12px;
}

.community-lower-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 16px;
  margin-bottom: 28px;
}

.people-card,
.circle-card {
  padding: 22px;
}

.people-row {
  display: grid;
  min-height: 65px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.people-row:first-of-type { margin-top: 16px; }
.people-row strong,
.people-row small { display: block; }
.people-row strong { font-size: 0.66rem; }
.people-row small { margin-top: 3px; color: var(--muted); font-size: 0.54rem; }
.people-row button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 0.56rem;
}

.circle-card {
  position: relative;
  overflow: hidden;
  background: #e9e4f7;
  border-color: #d5cceb;
}

.circle-orbit {
  position: absolute;
  top: -42px;
  right: -23px;
  color: rgba(101, 83, 150, 0.16);
  font-size: 8rem;
}

.circle-card h2 {
  margin: 16px 0 7px;
  font-size: 1.28rem;
}

.circle-card > p:not(.eyebrow) {
  color: #6b6478;
  font-size: 0.62rem;
  line-height: 1.55;
}

.circle-card .avatar-stack { margin: 17px 0; }
.circle-card .avatar-stack i { border-color: #e9e4f7; }

/* Analytics */
.date-picker {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.62rem;
}

.date-picker span { margin-left: 9px; color: var(--muted); }

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

.analytics-score-grid article {
  display: grid;
  min-height: 124px;
  padding: 18px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.analytics-score-grid article > div {
  grid-column: 1 / -1;
  align-self: start;
}

.analytics-score-grid span,
.analytics-score-grid small { display: block; }
.analytics-score-grid span { font-size: 0.64rem; font-weight: 600; }
.analytics-score-grid small { margin-top: 4px; color: var(--muted); font-size: 0.53rem; }
.analytics-score-grid strong { font-size: 1.65rem; }
.analytics-score-grid em { color: var(--green); font-size: 0.56rem; font-style: normal; }

.analytics-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-trajectory {
  min-height: 440px;
}

.discovery-card {
  padding: 23px;
}

.discovery-card h2 {
  margin: 18px 0 27px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.discovery-source {
  margin-bottom: 18px;
}

.discovery-source > div {
  display: flex;
  margin-bottom: 7px;
  justify-content: space-between;
  font-size: 0.59rem;
}

.discovery-source > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e9e3;
}

.discovery-source b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.discovery-note {
  display: flex;
  margin: 27px 0 0;
  padding: 13px;
  gap: 9px;
  border-radius: 11px;
  background: #edf5d4;
  color: #58652c;
  font-size: 0.58rem;
  line-height: 1.55;
}

.analytics-lower-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 28px;
}

.top-work-card,
.audience-card {
  padding: 22px;
}

.top-work-row {
  display: grid;
  min-height: 72px;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.top-work-row:first-of-type { margin-top: 16px; }
.top-work-row > span { color: var(--muted); font-size: 0.57rem; }
.top-work-row strong,
.top-work-row small { display: block; }
.top-work-row strong { font-size: 0.65rem; }
.top-work-row small { margin-top: 4px; color: var(--muted); font-size: 0.54rem; }
.top-work-row b { color: var(--green); font-size: 0.57rem; }

.audience-card {
  background:
    radial-gradient(circle at 100% 0, rgba(223, 255, 97, 0.18), transparent 35%),
    var(--ink);
  color: #fff;
}

.audience-card .eyebrow { color: var(--lime); }
.audience-card h2 { margin: 17px 0 12px; font-size: 1.38rem; line-height: 1.3; }
.audience-card > p:not(.eyebrow) { color: #b7bbb1; font-size: 0.63rem; line-height: 1.6; }
.audience-card .primary-action { margin-top: 19px; border-color: var(--lime); background: var(--lime); color: var(--ink); }

/* Automations */
.automation-status {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto auto;
  min-height: 128px;
  margin-bottom: 16px;
  padding: 21px;
  align-items: center;
  gap: 18px;
  border-color: #d3dfaa;
  background: #edf5d4;
}

.automation-status-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
}

.automation-status h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.automation-status p:not(.eyebrow) {
  margin: 0;
  color: #697438;
  font-size: 0.59rem;
}

.automation-status-metric {
  display: flex;
  min-width: 100px;
  padding-left: 18px;
  flex-direction: column;
  gap: 3px;
  border-left: 1px solid #cedba0;
}

.automation-status-metric strong { font-size: 1.2rem; }
.automation-status-metric span { color: #697438; font-size: 0.52rem; }

.automation-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.6fr);
  gap: 16px;
  margin-bottom: 16px;
}

.automation-list-card,
.email-preview-card {
  padding: 23px;
}

.automation-item {
  display: grid;
  min-height: 104px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.automation-item:first-of-type { margin-top: 18px; }

.automation-item-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
}

.icon-lime { background: #eaf3ca; color: #67782b; }
.icon-lilac { background: #ece8f8; color: #6e5d99; }
.icon-peach { background: #f8e6d9; color: #a45d34; }
.icon-muted { background: #ededE7; color: #8e9188; }

.automation-item strong,
.automation-item p,
.automation-item small { display: block; }
.automation-item strong { font-size: 0.67rem; }
.automation-item p { margin: 5px 0; color: var(--muted); font-size: 0.57rem; line-height: 1.45; }
.automation-item small { color: #92958d; font-size: 0.51rem; }

.switch {
  position: relative;
  width: 38px;
  height: 22px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d5d6cf;
  cursor: pointer;
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(24, 26, 23, 0.17);
  transition: transform 160ms ease;
}

.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--lime); }

.email-preview-card {
  background: #e9e4f7;
  border-color: #d5cceb;
}

.email-preview-card > h2 {
  margin: 0 0 17px;
  font-size: 1.05rem;
}

.email-window {
  overflow: hidden;
  border: 1px solid #cdc4e2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(79, 62, 119, 0.11);
}

.email-window-top {
  display: flex;
  height: 29px;
  padding: 0 9px;
  align-items: center;
  gap: 4px;
  background: #f0eef5;
}

.email-window-top span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b5b0bd;
}

.email-body {
  padding: 22px;
}

.email-brand {
  display: block;
  margin-bottom: 25px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.email-brand span { color: var(--lime-deep); }
.email-body > small { color: #77717f; font-size: 0.46rem; font-weight: 700; letter-spacing: 0.1em; }
.email-body h3 { margin: 10px 0; font-size: 1rem; line-height: 1.25; }
.email-body > p { color: #77717f; font-size: 0.53rem; line-height: 1.55; }

.email-highlight {
  display: flex;
  margin: 16px 0;
  padding: 11px;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  background: #f2f6e4;
  font-size: 0.51rem;
}

.email-highlight strong { font-size: 1rem; }
.email-highlight i { color: var(--green); font-size: 0.46rem; font-style: normal; }
.email-body > button { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 0.5rem; font-weight: 600; }

.preview-link {
  display: block;
  margin: 17px auto 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 600;
}

.journey-card {
  margin-bottom: 28px;
}

.journey-track {
  display: grid;
  padding: 10px 24px 28px;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
}

.journey-track > i {
  height: 1px;
  background: #d8d9d1;
}

.journey-step {
  display: flex;
  min-width: 95px;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.journey-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.57rem;
}

.journey-step strong { font-size: 0.58rem; }
.journey-step small { color: var(--muted); font-size: 0.49rem; }
.journey-step.is-done > span { background: #dce9d6; color: #4e734f; }
.journey-step.is-current > span { border-color: var(--ink); background: var(--ink); color: var(--lime); box-shadow: 0 0 0 5px rgba(223, 255, 97, 0.28); }

/* Settings */
.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 28px;
}

.settings-nav {
  position: sticky;
  top: 94px;
  padding: 9px;
}

.settings-nav a {
  display: flex;
  min-height: 43px;
  padding: 0 11px;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  color: var(--muted-dark);
  font-size: 0.61rem;
  text-decoration: none;
}

.settings-nav a:hover,
.settings-nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.settings-nav span { color: #92958c; }

.settings-content {
  display: grid;
  gap: 16px;
}

.settings-section {
  padding: 24px;
}

.settings-section-head {
  display: flex;
  margin-bottom: 23px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.settings-section-head h2 {
  margin: 0 0 7px;
  font-size: 1.15rem;
}

.settings-section-head p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.55;
}

.completion-ring {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 5px solid #e7e8e0;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-bottom-color: var(--green);
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  transform: rotate(8deg);
}

.profile-photo-row {
  display: grid;
  margin-bottom: 24px;
  padding: 16px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.settings-avatar {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 14px;
  background: #cfc2f2;
  font-size: 0.7rem;
  font-weight: 700;
}

.profile-photo-row strong,
.profile-photo-row small { display: block; }
.profile-photo-row strong { font-size: 0.68rem; }
.profile-photo-row small { margin-top: 4px; color: var(--muted); font-size: 0.52rem; }
.profile-photo-row button,
.identity-grid button,
.product-setting button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.56rem;
}

.settings-form > label,
.settings-form .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted-dark);
  font-size: 0.59rem;
  font-weight: 600;
}

.settings-form .form-grid {
  margin: 0 0 14px;
}

.settings-form > label {
  margin-bottom: 14px;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 400;
}

.settings-form textarea {
  min-height: 100px;
  padding-block: 11px;
  line-height: 1.6;
  resize: vertical;
}

.settings-form label > small {
  color: var(--muted);
  font-size: 0.51rem;
  font-weight: 400;
}

.settings-save-row {
  display: flex;
  padding-top: 17px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.settings-save-row > span {
  color: var(--muted);
  font-size: 0.53rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.identity-grid > div {
  display: grid;
  min-height: 72px;
  padding: 12px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.identity-grid > div > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
}

.identity-grid p { margin: 0; }
.identity-grid strong,
.identity-grid small { display: block; }
.identity-grid strong { font-size: 0.62rem; }
.identity-grid small { margin-top: 3px; color: var(--muted); font-size: 0.51rem; }
.identity-grid .connect-button { border-color: var(--ink); background: var(--ink); color: #fff; }

.product-setting {
  display: grid;
  min-height: 75px;
  padding: 12px 0;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.product-setting strong,
.product-setting small { display: block; }
.product-setting strong { font-size: 0.65rem; }
.product-setting small { margin-top: 3px; color: var(--muted); font-size: 0.53rem; }
.product-setting b { color: var(--green); font-size: 0.55rem; }
.empty-product > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px dashed #b9bbb2; border-radius: 9px; color: var(--muted); }

@media (max-width: 1180px) {
  .score-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .authority-card {
    grid-column: 1 / -1;
  }

  .briefing {
    grid-template-columns: auto 1fr;
  }

  .briefing-actions {
    grid-column: 1 / -1;
  }

  .task-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .coach-task {
    grid-template-columns: auto 1fr;
  }

  .coach-task b {
    grid-column: 2;
  }

  .studio-layout,
  .graph-page-grid,
  .automation-page-grid {
    grid-template-columns: 1fr;
  }

  .entity-summary-grid,
  .content-stat-row,
  .analytics-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spar-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 14px;
  }

  .spar-panel-head,
  .spar-panel > p {
    grid-column: 1 / -1;
  }

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

  .public-pages-note {
    grid-template-columns: auto 1fr;
  }

  .public-pages-note > p,
  .public-pages-note > a {
    grid-column: 2;
  }
}

@media (max-width: 960px) {
  .sidebar {
    width: min(300px, 86vw);
    box-shadow: 18px 0 60px rgba(10, 11, 9, 0.25);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

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

  .sidebar-close,
  .menu-toggle,
  .mobile-avatar {
    display: block;
  }

  .main-wrap {
    margin-left: 0;
  }

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

  .topbar {
    padding-inline: 22px;
  }

  main {
    padding-inline: 22px;
  }

  .automation-strip {
    grid-template-columns: auto 1fr auto;
  }

  .automation-strip > p {
    display: none;
  }

  .community-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

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

  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .settings-nav a {
    flex: 0 0 auto;
  }

  .analytics-main-grid,
  .analytics-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 66px;
  }

  .command-search {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
  }

  .command-search > span:not(.search-icon),
  .command-search kbd,
  .icon-button,
  .topbar .primary-action {
    display: none;
  }

  main {
    padding-top: 28px;
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-chip {
    align-self: flex-start;
  }

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

  .authority-card {
    grid-column: auto;
  }

  .metric-card {
    min-height: 160px;
  }

  .authority-body {
    align-items: flex-start;
  }

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

  .briefing-actions {
    grid-column: auto;
  }

  .task-stack {
    grid-template-columns: 1fr;
  }

  .graph-card,
  .opportunities-card,
  .trajectory-card,
  .consistency-card {
    padding: 19px;
  }

  .content-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr auto;
    padding-block: 14px;
    gap: 9px 15px;
  }

  .table-row > :nth-child(3),
  .table-row > :nth-child(4),
  .table-row > :nth-child(5) {
    display: none;
  }

  .table-row > :nth-child(2) {
    grid-column: 1;
    padding-left: 50px;
  }

  .table-row > :last-child {
    grid-row: 1;
    grid-column: 2;
  }

  .recommendation-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .automation-strip {
    grid-template-columns: auto 1fr;
  }

  .automation-strip button {
    grid-column: 2;
    justify-self: start;
  }

  .draft-grid,
  .content-bottom-grid,
  .community-lower-grid {
    grid-template-columns: 1fr;
  }

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

  .conversation-list {
    display: none;
  }

  .message-panel {
    min-height: 590px;
  }

  .automation-status {
    grid-template-columns: auto 1fr;
  }

  .automation-status-metric {
    padding: 10px 0 0;
    border-top: 1px solid #cedba0;
    border-left: 0;
  }

  .journey-track {
    padding-inline: 15px;
    overflow-x: auto;
  }

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

@media (max-width: 520px) {
  :root {
    --radius-lg: 18px;
  }

  .topbar,
  main {
    padding-inline: 14px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .authority-body {
    flex-direction: column;
  }

  .score-ring {
    width: 106px;
    height: 106px;
  }

  .metric-card {
    min-height: 142px;
  }

  .metric-score {
    margin-top: 16px;
  }

  .briefing,
  .recommendation-card,
  .community-card {
    padding: 19px;
  }

  .briefing-mark {
    width: 42px;
    height: 42px;
  }

  .briefing h2 {
    font-size: 1.75rem;
  }

  .card-heading {
    gap: 10px;
  }

  .graph-stage {
    height: 295px;
  }

  .person-node {
    top: 20px;
  }

  .company-node {
    top: 103px;
    left: 4%;
  }

  .product-node {
    top: 163px;
    right: 4%;
  }

  .topic-one {
    bottom: 20px;
    left: 6%;
  }

  .topic-two {
    right: 4%;
    bottom: 20px;
  }

  .line-a { top: 76px; width: 125px; transform: rotate(140deg); }
  .line-b { top: 76px; width: 150px; transform: rotate(49deg); }

  .week-grid {
    gap: 4px;
  }

  .content-actions .filter-button {
    display: none;
  }

  .article-modal {
    padding: 26px 19px 20px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .secondary-intro {
    min-height: unset;
  }

  .secondary-intro h1 {
    font-size: 2.65rem;
  }

  .studio-compose-card,
  .spar-panel,
  .settings-section {
    padding: 18px;
  }

  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-footer .primary-action {
    width: 100%;
  }

  .spar-panel {
    display: block;
  }

  .spar-suggestion {
    margin-top: 9px;
  }

  .entity-summary-grid,
  .content-stat-row,
  .analytics-score-grid {
    grid-template-columns: 1fr;
  }

  .graph-canvas-large {
    height: 440px;
  }

  .bubble-company { top: 11%; left: 3%; }
  .bubble-product { right: 3%; bottom: 12%; }
  .bubble-ai { top: 26%; right: 3%; }
  .bubble-risk { right: 3%; bottom: 40%; }
  .bubble-leadership { bottom: 9%; left: 2%; }
  .bubble-governance { top: 52%; left: 2%; }

  .library-toolbar {
    padding-block: 13px;
    align-items: flex-start;
    flex-direction: column;
  }

  .library-actions {
    display: none;
  }

  .library-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .message-thread {
    padding: 15px;
  }

  .message {
    max-width: 90%;
  }

  .automation-status {
    grid-template-columns: 1fr;
  }

  .automation-status-icon {
    width: 42px;
    height: 42px;
  }

  .automation-item {
    grid-template-columns: auto 1fr;
    padding-block: 14px;
  }

  .automation-item .switch {
    grid-column: 2;
  }

  .journey-track {
    min-width: 650px;
  }

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

  .profile-photo-row,
  .product-setting {
    grid-template-columns: auto 1fr;
  }

  .profile-photo-row button,
  .product-setting b,
  .product-setting button {
    grid-column: 2;
    justify-self: start;
  }

  .settings-save-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .discover-hero {
    padding-top: 30px;
  }

  .discover-hero h1 {
    font-size: 2.65rem;
  }

  .business-search-form {
    min-height: 52px;
    padding-left: 14px;
  }

  .business-search-form button {
    min-height: 39px;
    padding-inline: 13px;
  }

  .public-pages-note {
    grid-template-columns: 1fr;
  }

  .public-pages-note > p,
  .public-pages-note > a {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
