:root {
  --navy: var(--forma-oxblood);
  --ink: var(--forma-ink);
  --muted: var(--forma-secondary);
  --line: var(--forma-sand);
  --paper: var(--forma-parchment);
  --gold: var(--forma-blush);
  --green: #236747;
  --radius: 16px;
  font-family: var(--forma-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--navy);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button {
  border: 0;
}
.boot {
  padding: 15vh 10vw;
  font-size: 24px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: white;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: var(--forma-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  letter-spacing: -2px;
}
.brand-dot {
  color: var(--gold);
}
.sidebar .brand {
  padding: 0 14px;
}
.sidebar .kicker {
  padding: 12px 14px 30px;
  color: var(--forma-blush);
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  color: var(--forma-bone);
  text-decoration: none;
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.nav a.active,
.nav a:hover {
  background: #ffffff16;
  color: white;
}
.nav a.active {
  box-shadow: inset 3px 0 var(--gold);
}
.nav small {
  display: inline-block;
  width: 20px;
  font-size: 16px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff25;
  padding: 20px 14px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--forma-blush);
}
.sidebar-foot a {
  color: inherit;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff9c;
  gap: 15px;
}
.topbar .identity {
  font-size: 13px;
}
.topbar .identity b {
  display: block;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.page {
  max-width: 1400px;
  padding: 36px 40px 70px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head h1,
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: var(--forma-display);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 500;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover {
  background: var(--forma-wine);
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: var(--forma-bone);
}
.btn.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.btn.danger {
  background: #fff0ed;
  color: #9f352f;
}
.btn.gold {
  background: var(--gold);
  color: var(--navy);
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  min-width: 0;
}
.metric .value {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 9px 0 5px;
  font-variant-numeric: tabular-nums;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.stack {
  display: grid;
  gap: 18px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.section-head h2 {
  margin: 0;
}
.empty {
  padding: 36px 15px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
  max-width: 400px;
  margin: 0 auto 18px;
}
.row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.pill {
  display: inline-block;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 30px;
  background: var(--forma-bone);
  color: var(--forma-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.pill.active,
.pill.paid,
.pill.completed {
  background: #e5f4ea;
  color: var(--green);
}
.pill.review,
.pill.pending,
.pill.working,
.pill.queued {
  background: #fff2d7;
  color: #805500;
}
.pill.suspended,
.pill.error,
.pill.reversed {
  background: #fcebe7;
  color: #9f352f;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.nowrap {
  white-space: nowrap;
}
.money {
  font-variant-numeric: tabular-nums;
}
.input,
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--forma-sand);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 17px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}
.notice {
  border: 1px solid #e7d8ad;
  background: #fff9ea;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.notice.info {
  border-color: var(--forma-sand);
  background: var(--forma-parchment);
}
.notice.error {
  border-color: #edb6ae;
  background: #fff0ed;
  color: #87342d;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 430px;
}
.hero {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-family: var(--forma-display);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 12px;
}
.hero p {
  font-size: 13px;
  color: var(--forma-bone);
  max-width: 420px;
}
.hero .kicker {
  color: var(--forma-blush);
  margin-bottom: 14px;
}
.avatar {
  height: 36px;
  width: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--forma-bone);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guest {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}
.guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guest-hero {
  padding: 75px 0 30px;
  max-width: 750px;
}
.guest-hero h1 {
  font-size: 70px;
}
.guest-hero p {
  max-width: 590px;
  color: var(--muted);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 65px;
  align-items: start;
}
.auth-grid .guest-hero {
  padding: 55px 0;
}
.auth-card {
  margin-top: 55px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan .price {
  font-family: var(--forma-display);
  font-size: 48px;
  margin: 18px 0 4px;
}
.plan .price small {
  font-family: var(--forma-body);
  font-size: 13px;
  color: var(--muted);
}
.plan .split {
  font-size: 24px;
  margin: 14px 0 5px;
}
.plan ul {
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.plan.recommended {
  border: 2px solid var(--navy);
}
.plan .btn {
  margin-top: auto;
}
.calculator {
  margin-top: 24px;
}
.calculator .fields {
  grid-template-columns: repeat(3, 1fr);
}
.bar {
  height: 6px;
  background: var(--forma-bone);
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0;
}
.bar div {
  height: 100%;
  background: var(--navy);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 700px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #0c1b3540;
}
dialog::backdrop {
  background: #101e3b70;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 24px;
  margin-bottom: 7px;
}
.dialog-head button {
  background: transparent;
  font-size: 25px;
  color: var(--muted);
}
.dialog-error {
  color: #9f352f;
  font-size: 13px;
  margin-bottom: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: 90vw;
  box-shadow: 0 5px 25px #0002;
}
.chat-layout {
  max-width: 900px;
  margin: auto;
}
.chat-intro {
  padding: 35px 0 20px;
  text-align: center;
}
.max-mark {
  height: 54px;
  width: 54px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--forma-display);
  font-size: 36px;
  margin: 0 auto 18px;
}
.chips {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.chips button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 11px 16px;
  font-size: 12px;
  color: var(--ink);
}
.message {
  margin: 22px 0;
}
.question {
  margin-left: auto;
  background: var(--forma-bone);
  border-radius: 14px 14px 3px 14px;
  padding: 16px 20px;
  max-width: 85%;
  width: fit-content;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.answer {
  padding: 20px 0;
  line-height: 1.75;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.source-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.composer {
  position: sticky;
  bottom: 15px;
  margin-top: 25px;
  background: white;
  border: 1px solid var(--forma-sand);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 4px 25px #0c1b3510;
}
.composer textarea {
  border: 0;
  outline: none;
  resize: none;
  min-height: 65px;
  max-height: 200px;
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 2px;
}
.composer-foot span {
  font-size: 11px;
  color: var(--muted);
}
.proposal {
  padding: 17px;
  border: 1px solid #c8d9cf;
  background: #f4faf6;
  border-radius: 12px;
  margin: 10px 0;
}
.proposal pre {
  font: 12px var(--forma-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mobile-menu {
  display: none;
}
.form-end {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.loading-line {
  padding: 25px;
  color: var(--muted);
}
.footer {
  margin-top: 35px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.status-light {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #377c59;
  display: inline-block;
  margin-right: 6px;
}
.error-state {
  max-width: 600px;
  margin: 15vh auto;
  padding: 30px;
}
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .page {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .auth-grid {
    gap: 30px;
    grid-template-columns: 1fr 380px;
  }
  .guest-hero h1 {
    font-size: 56px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    z-index: 20;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 18px;
    height: 66px;
  }
  .page {
    padding: 25px 18px 50px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 38px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .metric .value {
    font-size: 28px;
  }
  .plans,
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .guest {
    padding: 24px 18px;
  }
  .guest-hero,
  .auth-grid .guest-hero {
    padding: 45px 0 10px;
  }
  .guest-hero h1 {
    font-size: 52px;
  }
  .auth-card {
    margin: 0;
  }
  .fields,
  .calculator .fields {
    grid-template-columns: 1fr;
  }
  .question {
    max-width: 95%;
  }
  .composer {
    bottom: 8px;
  }
  .page-head .actions .btn {
    padding: 9px 12px;
  }
  .identity .subtle {
    display: none;
  }
  .nav-open:after {
    content: "";
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 19;
  }
  .sidebar {
    z-index: 21;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .guest-header .btn {
    padding: 9px 12px;
  }
  .dialog-head h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.search-mobile {
  display: none;
}
.shortcut {
  color: var(--muted);
  font-size: 11px;
}
.mobile-menu {
  flex-shrink: 0;
}
.mobile-menu svg {
  display: block;
  min-width: 20px;
}
@media (max-width: 760px) {
  .search-full,
  .shortcut {
    display: none;
  }
  .search-mobile {
    display: inline;
  }
  .topbar .identity {
    display: none;
  }
  .topbar .actions {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .topbar {
    gap: 8px;
  }
  .who {
    gap: 7px;
  }
  .page-head > .actions {
    flex-shrink: 0;
  }
  .page-head .btn {
    white-space: nowrap;
  }
  .topbar .btn {
    padding: 10px;
  }
  .nav a small {
    font-family: system-ui, sans-serif;
  }
}
.signature-paper {
  position: relative;
  border: 1px solid var(--line);
  margin: 15px 0;
  background: white;
  line-height: 0;
}
.signature-paper img {
  display: block;
  width: 100%;
  height: auto;
}
.signature-field {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  background: #f5a20035;
  border: 1.5px solid #bd8200;
  color: #684700;
  font: 12px var(--forma-body);
  overflow: hidden;
  line-height: 1.1;
  pointer-events: none;
}
.signature-field button {
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: 0;
  padding: 1px 4px;
  background: #fff8e9;
  color: #684700;
}
.sign-pages {
  margin: 25px 0;
}
.sign-pages section {
  margin-bottom: 25px;
}
.signer-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.signature-editor {
  cursor: crosshair;
}

.plain-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.7;
}
.sidebar .nav {
  overflow-y: auto;
  min-height: 0;
}
.sidebar {
  overflow-y: auto;
}

.brand {
  font-family: var(--forma-wordmark);
  text-transform: uppercase;
  font-size: 32px;
  letter-spacing: -1px;
}
.hero .btn.gold {
  color: var(--forma-wine);
}

/* Forma workspace: shared controls, quiet surfaces, and a clear daily rhythm. */
:root {
  --paper: #f7f7f4;
  --ink: #252525;
  --muted: #706b65;
  --line: #e8e5e0;
  --radius: 16px;
}
body {
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
.price {
  font-family: var(--forma-body);
  text-transform: none;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.25px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.45px;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.2px;
}
.subtle {
  color: var(--muted);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 28px;
  letter-spacing: -1.5px;
  text-transform: none;
  color: var(--forma-wine);
}
.brand-symbol {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
}
.brand-symbol svg {
  width: 32px;
  height: 32px;
}
.brand-dot {
  color: var(--navy);
}
.shell {
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  background: #fdfdfb;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 30px 16px 20px;
  height: 100dvh;
}
.sidebar .brand {
  padding: 0 12px;
  margin-bottom: 19px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 28px;
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #79917b;
  box-shadow: 0 0 0 3px #79917b12;
}
.nav {
  gap: 3px;
  grid-auto-rows: max-content;
  flex: 1;
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 10px 12px 9px;
  color: #7c7168;
}
.nav-label:not(:first-child) {
  margin-top: 15px;
}
.nav a {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  gap: 12px;
  color: #77736f;
  min-height: 39px;
}
.nav a .icon {
  width: 18px;
  height: 18px;
}
.nav a:hover {
  color: var(--ink);
  background: #f4f2ee;
}
.nav a.active {
  background: #f2e8e6;
  color: var(--navy);
  box-shadow: none;
}
.nav a.active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  margin-left: auto;
}
.nav-tag {
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-left: auto;
  background: #eee9e2;
  color: var(--muted);
  padding: 3px 5px;
  border-radius: 4px;
}
.nav a.active .nav-tag {
  display: none;
}
.sidebar-foot {
  border-color: var(--line);
  font-size: 10px;
  color: #99948d;
  margin-top: 20px;
  padding: 19px 12px 0;
}
.brokerage-label {
  color: #6a655f;
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.console-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  text-decoration: none;
  font-size: 11px;
  color: var(--muted);
}
.console-link .icon {
  width: 14px;
  height: 14px;
}
.topbar {
  height: 78px;
  padding: 0 42px;
  background: #fdfdfb;
  gap: 16px;
}
.breadcrumb {
  color: #aaa59d;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb b {
  color: #66615c;
  font-weight: 500;
}
.breadcrumb span {
  color: #d1cdc6;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 23px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #8a857e;
  font-size: 11px;
  padding: 7px 0;
}
.search-trigger .icon {
  width: 16px;
  height: 16px;
}
kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 5px;
  font: 10px var(--forma-body);
  color: #7c7168;
  background: #fff;
}
.topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.topbar .identity {
  font-size: 11px;
}
.topbar .identity b {
  font-weight: 600;
}
.topbar .identity .subtle {
  font-size: 10px;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #eee8e1;
  color: #725e52;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid white;
}
.signout {
  padding: 7px !important;
  color: #9c958d !important;
}
.signout .icon {
  width: 16px;
  height: 16px;
}
.page {
  padding: 35px 42px 54px;
  max-width: 1440px;
  animation: page-enter 0.25s ease-out;
}
.page-head {
  margin-bottom: 30px;
  gap: 20px;
  align-items: center;
}
.page-head h1 {
  margin-bottom: 9px;
}
.page-head .subtle {
  font-size: 12px;
}
.btn {
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  min-height: 38px;
  padding: 10px 15px;
  gap: 10px;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px #3a0d1210;
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  transform: none;
  box-shadow: none;
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: #5e5953;
}
.btn.secondary:hover {
  background: #f6f4f0;
  border-color: #d0c5bb;
}
.btn.quiet {
  color: var(--navy);
  background: transparent;
}
.btn.quiet:hover {
  background: #f2e8e6;
  box-shadow: none;
}
.btn.gold {
  background: #fff;
  color: var(--navy);
}
.card {
  border: 1px solid var(--line);
  box-shadow: 0 2px 5px #24190d02;
}
.cards {
  gap: 15px;
}
.metric {
  padding: 22px;
}
.metric .label {
  font-size: 11px;
  color: #8d867f;
}
.metric .value {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  margin: 14px 0 6px;
  letter-spacing: -1.1px;
}
.metric .subtle {
  font-size: 10px;
}
.dashboard-metrics .metric:last-child {
  background: #f1eee7;
  border-color: #e4dfd5;
}
.section-head {
  margin-bottom: 24px;
}
.section-head .eyebrow {
  margin-bottom: 8px;
}
.eyebrow {
  font: 600 9px/1.5 var(--forma-body);
  letter-spacing: 1.6px;
  color: #7c7168;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #80766b;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover {
  color: var(--navy);
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.row {
  padding: 16px 0;
  border-color: #efede9;
}
.row b {
  font-size: 12px;
  font-weight: 500;
}
.row .subtle {
  font-size: 11px;
}
.row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row > .btn {
  flex: none;
}
.empty {
  padding: 34px 16px;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.empty p {
  font-size: 12px;
  color: #9b938c;
  max-width: 300px;
}
.empty .text-link {
  margin-top: 8px;
}
.pill {
  font-size: 9px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
}
input,
select,
textarea {
  border-color: #e4dfd8;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  font-size: 12px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #a47576;
  box-shadow: 0 0 0 3px #7a1b2208;
  outline: none;
}
.field label {
  color: #5f5952;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}
.field {
  margin-bottom: 17px;
}
.table-wrap {
  overflow: auto;
}
th {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #7c7168;
  background: #fcfbf8;
  padding: 15px 18px;
}
td {
  font-size: 12px;
  padding: 17px 18px;
  border-color: #f0eeea;
}
tr:hover td {
  background: #fdfcfa;
}
.table-wrap > .section-head {
  padding: 22px 22px 0;
}
.table-wrap td b {
  font-weight: 500;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 90px #241a1826;
}
dialog::backdrop {
  background: #221a1848;
  backdrop-filter: blur(3px);
}
.dialog-head h2 {
  font-size: 22px;
}
.notice {
  border-radius: 10px;
  font-size: 12px;
}
.hero {
  background: var(--forma-wine);
  border-radius: 16px;
}
.hero h2 {
  font-family: var(--forma-body);
  font-size: 30px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -1px;
}
.hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #ddc9c2;
}
.dashboard-date {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #958c83;
  font-size: 10px;
  margin-bottom: 12px;
}
.dashboard-date span {
  font-size: 8px;
  letter-spacing: 1.5px;
  border-left: 1px solid #d9d2c7;
  padding-left: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
}
.focus-card,
.relationships-card,
.pipeline-card {
  padding: 26px;
}
.focus-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
  border-radius: 10px;
  background: #f8f7f3;
  margin-bottom: 10px;
}
.focus-summary strong {
  font-size: 13px;
  font-weight: 500;
}
.focus-summary p {
  font-size: 10px;
  color: #7c7168;
  margin: 7px 0 0;
}
.progress-ring {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ad8273 var(--progress), #e9e4dc 0);
}
.progress-ring > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8f7f3;
  font-size: 11px;
  color: #8a6d61;
}
.progress-ring .icon {
  width: 17px;
}
.focus-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 13px;
  padding: 29px 12px 8px;
  color: #b8aea2;
}
.focus-empty > .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.15;
}
.focus-empty p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: #7c7168;
}
.max-spotlight {
  padding: 27px 30px;
  background: linear-gradient(125deg, #3d161d, #5d252d);
  min-height: 330px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.spotlight-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 25px;
}
.max-orb {
  width: 32px;
  height: 32px;
  border: 1px solid #dab7b13b;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ebc9bc;
  background: #ffffff08;
}
.max-orb .icon {
  width: 19px;
  height: 19px;
}
.spotlight-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #cb9da0;
}
.max-spotlight h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.16;
  margin-bottom: 16px;
  max-width: 280px;
  color: #f7eae1;
  letter-spacing: -1.2px;
}
.max-spotlight p {
  max-width: 260px;
  font-size: 11px;
  color: #cba8a8;
  margin: 0 0 24px;
}
.max-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f2dfd4;
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 11px;
  text-align: left;
  width: 100%;
  margin-top: auto;
  transition: background 0.2s;
}
.max-prompt:hover {
  background: #ffffff1c;
}
.max-prompt .icon {
  width: 16px;
}
.max-explore {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #cda9a2;
  text-decoration: none;
  margin-top: 17px;
}
.max-explore .icon {
  width: 14px;
  height: 14px;
}
.spotlight-art {
  position: absolute;
  right: -15px;
  top: 50px;
  width: 150px;
  height: 260px;
  z-index: -1;
  transform: rotate(25deg);
  opacity: 0.13;
}
.spotlight-art i {
  position: absolute;
  inset: 0;
  border: 1px solid #edc9b5;
  border-radius: 100px 100px 0 0;
}
.spotlight-art i:nth-child(2) {
  inset: 15px;
}
.spotlight-art i:nth-child(3) {
  inset: 30px;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 8px 0 20px;
}
.pipeline-label {
  font-size: 9px;
  color: #7c7168;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
}
.stage-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}
.pipeline-stages strong {
  display: block;
  font-size: 27px;
  font-weight: 400;
  margin: 9px 0 12px;
}
.pipeline-track {
  height: 4px;
  background: #eeebe5;
  border-radius: 5px;
  overflow: hidden;
}
.pipeline-track span {
  display: block;
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease;
}
.stage-0 {
  background: #d8c5ad;
}
.stage-1 {
  background: #b59786;
}
.stage-2 {
  background: #987a75;
}
.stage-3 {
  background: #7c8e79;
}
.pipeline-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pipeline-footer > span {
  font-size: 10px;
  color: #7c7168;
}
.pipeline-footer .btn {
  font-size: 10px;
  padding: 7px 0;
  white-space: nowrap;
}
.relationships-card .section-head {
  margin-bottom: 15px;
}
.relationships-card .avatar {
  width: 35px;
  height: 35px;
}
.guest {
  max-width: 1330px;
  padding: 30px 54px 0;
}
.guest-header {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.guest-header .actions {
  gap: 27px;
}
.guest-nav {
  font-size: 11px;
  color: #8e857c;
  text-decoration: none;
}
.guest-nav:hover {
  color: var(--navy);
}
.auth-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
  gap: 80px;
  align-items: start;
  padding: 54px 0 60px;
}
.auth-grid .guest-hero {
  padding: 30px 0 0;
}
.guest-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 1.8px;
}
.guest-hero h1 {
  font-family: var(--forma-body);
  text-transform: none;
  font-size: clamp(38px, 4.7vw, 65px);
  font-weight: 500;
  line-height: 1.11;
  letter-spacing: -3px;
  margin: 26px 0 25px;
}
.guest-hero h1 > span {
  color: var(--navy);
}
.guest-hero .hero-description {
  font-size: 13px;
  line-height: 1.9;
  max-width: 365px;
  color: #8a8179;
}
.guest-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 25px 0 40px;
}
.guest-features > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #7c7168;
}
.guest-features .icon {
  width: 12px;
  height: 12px;
  color: #8f9a83;
}
.journey-preview {
  border: 1px solid #ded7ce;
  border-radius: 14px;
  background: linear-gradient(125deg, #f3eee6, #f8f6f0);
  padding: 23px;
  max-width: 480px;
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  color: #b9a494;
}
.preview-top .eyebrow {
  font-size: 7px;
}
.preview-top .icon {
  width: 16px;
}
.journey-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.journey-stages > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.journey-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #d6c9bc;
  border-radius: 10px;
  margin-bottom: 22px;
  color: #9b7e69;
  background: #ffffff55;
}
.journey-icon .icon {
  width: 17px;
  height: 17px;
}
.journey-stages small {
  font-size: 8px;
  color: #7c7168;
  margin-bottom: 7px;
}
.journey-stages b {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  color: #756252;
}
.journey-stages p {
  font-size: 8px;
  color: #7c7168;
  margin: 6px 0 0;
}
.guest-identity {
  margin-top: 22px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #7c7168;
}
.guest-identity span {
  padding: 0 7px;
}
.auth-card {
  margin: 0;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 12px 40px #33211104;
}
.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.auth-card-top .eyebrow {
  font-size: 8px;
  color: #b29e91;
}
.auth-card-top .icon {
  width: 18px;
  height: 18px;
  color: #b29e91;
}
.auth-card h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.auth-intro {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.auth-submit {
  width: 100%;
  justify-content: space-between;
  font-size: 12px;
  padding: 13px 16px;
  min-height: 45px;
}
.auth-submit .icon {
  width: 16px;
  height: 16px;
}
.auth-switch {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
  text-align: center;
  font-size: 11px;
  color: #7c7168;
}
.auth-switch a {
  margin-left: 4px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.recovery-hint {
  font-size: 9px;
  color: #7c7168;
  text-align: center;
  margin: 15px 0 0;
}
.field-hint {
  font-size: 9px;
  color: #7c7168;
  margin-top: -8px;
  margin-bottom: 22px;
}
.plan-picker {
  margin: 24px 0 20px;
  padding: 0;
  border: 0;
}
.plan-picker legend {
  color: #5f5952;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
}
.plan-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.plan-option:has(input:checked) {
  border-color: #b88f87;
  background: #fcf7f5;
  box-shadow: 0 0 0 1px #b88f8715;
}
.plan-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex: none;
}
.plan-option > span {
  flex: 1;
}
.plan-option b {
  font-size: 11px;
  font-weight: 600;
}
.plan-option small {
  display: block;
  font-size: 9px;
  color: #7c7168;
  margin-top: 3px;
  font-weight: 400;
}
.plan-option > strong {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.signup-ack {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 9px;
  line-height: 1.7;
  color: #92877e;
  margin: 18px 0 22px;
  cursor: pointer;
}
.signup-ack input {
  width: 13px;
  height: 13px;
  flex: none;
  margin: 2px 0 0;
}
.signup-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-note {
  font-size: 9px;
  color: #7c7168;
  line-height: 1.8;
  margin: 20px 0 0;
}
.signup-note a {
  color: #8f7466;
}
.guest-footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7c7168;
  font-size: 8px;
  line-height: 1.8;
  flex-wrap: wrap;
}
.guest-resources { display: flex; flex-wrap: wrap; gap: 24px; flex-basis: 100%; font-size: 11px; }
.guest-resources a { text-decoration: none; }
.guest-resources a:hover { color: var(--navy); text-decoration: underline; }
.sidebar-foot .knowledge-link { margin: 0 0 22px; }
@media (max-width: 720px) { .guest-benefits-link { display: none; } }
.guest-footer a {
  color: inherit;
}
#guest-plans {
  padding: 48px 0;
}
.plan {
  padding: 25px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.plan .kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7c7168;
}
.plan .price {
  font-family: var(--forma-body);
  text-transform: none;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.6px;
  margin: 25px 0 15px;
}
.plan .price small {
  text-transform: none;
  font-size: 10px;
  letter-spacing: 0;
}
.plan .split {
  font-size: 21px;
  font-weight: 500;
  margin-top: 22px;
}
.plan .subtle,
.plan ul {
  font-size: 11px;
}
.plan ul {
  margin: 20px 0;
  line-height: 2.1;
}
.plan.recommended {
  border: 1px solid #a47370;
  box-shadow: 0 0 0 3px #7a1b2205;
  background: #fffdfb;
}
.plan-estimate {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.plan .btn {
  margin-top: 16px;
  justify-content: space-between;
}
.plan .btn .icon {
  width: 16px;
}
.calculator {
  margin-top: 24px;
}
.calculator h2 {
  margin-bottom: 24px;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 25px;
  background: #efede6;
  border: 1px solid #e1dcd1;
  border-radius: 14px;
  margin-bottom: 30px;
}
.onboarding-steps > div {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-items: center;
  color: #aaa297;
}
.onboarding-steps > div > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d7d0c3;
  border-radius: 50%;
  font-size: 10px;
}
.onboarding-steps .icon {
  width: 16px;
}
.onboarding-steps b {
  font-size: 11px;
  font-weight: 500;
}
.onboarding-steps small {
  font-size: 9px;
  margin-top: 5px;
}
.onboarding-steps .done {
  color: #7b8b73;
}
.onboarding-steps .current {
  color: #8c6759;
}
.onboarding-steps .done > span {
  background: #e4e8df;
  border-color: #c6cebf;
}
.onboarding-steps .current > span {
  background: #f8f3e9;
  border-color: #bb9f89;
}
.review-heading {
  font-size: 9px;
  color: #7c7168;
  letter-spacing: 1.5px;
  margin: 27px 0 10px;
}
.check-list li {
  font-size: 12px;
  color: #8b8177;
}
.onboarding-plan {
  background: linear-gradient(125deg, #3d161d, #5d252d);
  padding: 32px;
  align-self: start;
}
.onboarding-plan .actions {
  margin-top: 20px;
  gap: 10px;
}
.onboarding-plan .btn:not(.secondary) {
  background: #e9e4d8;
  color: #64191e;
}
.onboarding-plan h2 {
  font-size: 25px;
}
.onboarding-price {
  font-size: 46px;
  letter-spacing: -2px;
  margin: 26px 0 12px;
}
.onboarding-price small {
  font-size: 12px;
  color: #c39c96;
  letter-spacing: 0;
  margin-left: 7px;
}
.plan-fees {
  font-size: 11px;
  line-height: 2;
  color: #d9b8ad;
  border-top: 1px solid #ffffff20;
  padding-top: 20px;
}
.plan-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: #b68e8c;
  margin-top: 24px;
}
.onboarding-help > .icon {
  color: #b29a85;
  margin-bottom: 20px;
}
.onboarding-help p {
  margin-bottom: 0;
}
.onboarding-help .section-head {
  flex-wrap: wrap;
  gap: 12px;
}
.support-request {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  overflow-wrap: anywhere;
}
.support-request p {
  white-space: pre-wrap;
  margin: 10px 0;
}
.chat-layout {
  max-width: 820px;
}
.chat-intro {
  padding: 55px 0 25px;
}
.chat-intro h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
}
.max-mark {
  background: linear-gradient(140deg, #3d161d, #895650);
  color: #f8dbcb;
  border-radius: 18px;
  box-shadow: 0 8px 25px #7a1b2215;
}
.chips button {
  border-radius: 10px;
  padding: 14px;
  font-size: 11px;
  color: #8d7b6d;
}
.composer {
  border: 1px solid #d8c9be;
  border-radius: 15px;
  box-shadow: 0 6px 24px #33221106;
  background: #fff;
}
.composer textarea {
  font-size: 13px;
  background: transparent;
}
.composer-foot {
  font-size: 10px;
}
.answer {
  font-size: 13px;
  line-height: 1.9;
}
.nav-scrim {
  display: none;
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .page {
    padding-top: 44px;
  }
  .dashboard-grid {
    gap: 26px;
  }
}
@media (max-width: 1150px) {
  .page {
    padding: 30px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .search-full {
    display: none;
  }
  .topbar-tools {
    gap: 18px;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-grid {
    gap: 40px;
  }
  .guest {
    padding: 24px 36px 0;
  }
  .guest-hero h1 {
    letter-spacing: -2px;
  }
  .pipeline-stages {
    gap: 9px;
  }
  .pipeline-label {
    font-size: 8px;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .max-spotlight {
    min-height: 300px;
  }
  .max-spotlight h2 br:nth-child(2) {
    display: none;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .auth-grid {
    gap: 30px;
    grid-template-columns: 1fr 340px;
  }
  .guest {
    padding: 24px 24px 0;
  }
  .journey-preview {
    padding: 16px;
  }
  .journey-stages {
    gap: 9px;
  }
  .onboarding-steps {
    padding: 20px;
    gap: 12px;
  }
  .onboarding-steps small {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: 252px;
    padding-top: 25px;
    border-right: 0;
    box-shadow: 12px 0 45px #24190912;
  }
  .sidebar-foot {
    margin-top: 20px;
  }
  .nav a {
    font-size: 13px;
    min-height: 42px;
  }
  .nav-label {
    font-size: 9px;
  }
  .nav a.active {
    background: #f2e8e6;
  }
  .nav-open:after {
    display: none;
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #291b194f;
    backdrop-filter: blur(2px);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      visibility 0.2s;
  }
  .nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .breadcrumb > span,
  .breadcrumb {
    color: transparent;
  }
  .breadcrumb > b {
    color: #746e67;
  }
  .topbar-tools {
    gap: 10px;
  }
  .topbar-divider,
  kbd,
  .topbar .identity {
    display: none;
  }
  .search-trigger {
    padding: 8px 0;
  }
  .topbar .who {
    gap: 6px;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .topbar .btn {
    min-height: 32px;
    padding: 7px;
  }
  .mobile-menu {
    margin-left: -7px;
  }
  .page {
    padding: 25px 18px 40px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .page-head > div:first-child {
    min-width: 0;
    flex: 1 1 210px;
  }
  .page-head h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .page-head .subtle {
    font-size: 11px;
  }
  .page-head .actions {
    flex-shrink: 0;
  }
  .page-head .btn {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 35px;
  }
  .dashboard-date {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .dashboard-date span {
    display: none;
  }
  .dashboard-metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric .label {
    font-size: 9px;
  }
  .metric .value {
    font-size: 25px;
    margin-top: 13px;
  }
  .metric .subtle {
    font-size: 9px;
    line-height: 1.6;
  }
  .dashboard-metrics .metric:last-child .value {
    font-size: 23px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .focus-card,
  .relationships-card,
  .pipeline-card {
    padding: 21px;
  }
  .focus-summary {
    padding: 16px;
    gap: 12px;
  }
  .focus-summary strong {
    font-size: 12px;
  }
  .focus-summary p {
    font-size: 10px;
  }
  .focus-card .section-head {
    margin-bottom: 20px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .text-link {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .max-spotlight {
    padding: 26px;
  }
  .max-spotlight h2 {
    font-size: 35px;
  }
  .max-spotlight p {
    max-width: 260px;
    font-size: 12px;
  }
  .spotlight-art {
    right: 0;
  }
  .max-prompt {
    min-height: 47px;
    font-size: 12px;
  }
  .pipeline-stages {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .pipeline-label {
    font-size: 9px;
    min-height: 14px;
  }
  .pipeline-stages strong {
    font-size: 26px;
    margin: 10px 0;
  }
  .pipeline-footer {
    align-items: flex-start;
  }
  .pipeline-footer > span {
    max-width: 160px;
    line-height: 1.7;
  }
  .guest {
    padding: 20px 20px 0;
  }
  .guest-header {
    padding-bottom: 20px;
  }
  .guest-header .brand {
    font-size: 24px;
    gap: 5px;
  }
  .brand-symbol,
  .brand-symbol svg {
    width: 27px;
    height: 27px;
  }
  .guest-header .actions {
    gap: 15px;
  }
  .guest-nav {
    font-size: 10px;
  }
  .owner-signin {
    display: none;
  }
  .guest-header .btn {
    min-height: 34px;
    padding: 9px 11px;
    font-size: 10px;
  }
  .guest-header .btn .icon {
    width: 12px;
    height: 12px;
  }
  .auth-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 34px 0;
  }
  .auth-grid .guest-hero {
    padding: 0;
    width: 100%;
  }
  .guest-hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .guest-hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
    margin: 19px 0;
    line-height: 1.09;
  }
  .guest-hero .hero-description {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 0;
  }
  .guest-features {
    margin: 19px 0 0;
    gap: 8px 15px;
  }
  .guest-features > span {
    font-size: 8px;
  }
  .journey-preview,
  .guest-identity {
    display: none;
  }
  .auth-card {
    width: 100%;
    padding: 25px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .auth-card .field label {
    font-size: 12px;
  }
  .auth-card input {
    font-size: 16px;
  }
  .auth-intro {
    font-size: 12px;
  }
  .auth-submit {
    font-size: 13px;
    min-height: 46px;
  }
  .plan-option {
    padding: 13px 10px;
  }
  .plan-option input {
    width: 15px;
    height: 15px;
  }
  .plan-option b {
    font-size: 12px;
  }
  .plan-option small {
    font-size: 10px;
  }
  .plan-option > strong {
    font-size: 15px;
  }
  .signup-ack {
    font-size: 10px;
  }
  .signup-note {
    font-size: 10px;
  }
  .auth-switch {
    font-size: 12px;
  }
  .field-hint {
    font-size: 10px;
  }
  .guest-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 15px;
    font-size: 8px;
  }
  .guest-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  #guest-plans {
    padding: 32px 0;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .plan {
    padding: 25px;
  }
  .plan .price {
    font-size: 40px;
  }
  .plan .subtle,
  .plan ul {
    font-size: 12px;
  }
  .plan .btn {
    min-height: 44px;
    font-size: 12px;
  }
  .calculator .fields {
    grid-template-columns: 1fr;
  }
  .calculator input {
    font-size: 16px;
  }
  .calculator .btn {
    min-height: 44px;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
    padding: 23px;
    gap: 24px;
  }
  .onboarding-steps b {
    font-size: 12px;
  }
  .onboarding-steps small {
    font-size: 10px;
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-plan {
    padding: 28px;
  }
  .onboarding-plan h2 {
    font-size: 28px;
  }
  .onboarding-price {
    font-size: 45px;
  }
  .check-list li {
    font-size: 11px;
  }
  .row b {
    font-size: 12px;
  }
  .row .btn {
    padding: 8px 10px;
  }
  .row .subtle {
    font-size: 10px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .composer-foot {
    font-size: 9px;
  }
  .chat-intro {
    padding-top: 30px;
  }
  .chat-intro h2 {
    font-size: 26px;
  }
  .chips button {
    font-size: 12px;
  }
  .chat-layout .notice {
    font-size: 12px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  dialog {
    padding: 23px;
    border-radius: 17px;
  }
  .dialog-head h2 {
    font-size: 21px;
  }
}
@media (max-width: 370px) {
  .breadcrumb {
    display: none;
  }
  .guest-header .actions {
    gap: 10px;
  }
  .guest-hero h1 {
    font-size: 38px;
  }
  .auth-card {
    padding: 21px;
  }
  .dashboard-metrics .metric:last-child .value {
    font-size: 20px;
  }
  .metric .value {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.search-results button {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  padding: 14px 10px;
}
.search-results button:hover {
  background: #f6f2ed;
}
.search-results button > .icon {
  color: #9b8171;
  width: 18px;
  height: 18px;
}
.search-results button > .icon:last-child {
  width: 14px;
  margin-left: auto;
}
.search-results button > span {
  min-width: 0;
}
.search-results button b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.search-results button .subtle {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.guest-editorial{margin:24px 0 0;max-width:580px}.guest-editorial img{display:block;width:100%;height:210px;object-fit:cover;border-radius:60px 10px 10px 10px}.guest-editorial figcaption{font-size:10px;color:var(--muted);margin-top:7px}.guest-hero .journey-preview{display:none}@media(max-width:760px){.guest-editorial{display:none}}

/* Public account entry shares /join's palette, type, framing and field rhythm.
   Scoped to the guest view so the authenticated workspace remains independent. */
.access-page {
  min-height:100svh;background:var(--forma-parchment);color:var(--forma-ink);
  font:400 14px/1.6 var(--forma-body);padding-bottom:1px;
}
.access-page a {color:inherit;text-underline-offset:4px}
.access-page :is(button,a,input,summary):focus-visible {outline:3px solid var(--forma-oxblood);outline-offset:4px}
.access-skip {position:fixed;top:8px;left:12px;z-index:20;transform:translateY(-160%);padding:10px 18px;background:var(--forma-parchment)}
.access-skip:focus {transform:none}
.access-header {height:100px;max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 56px;gap:24px}
.access-brand {display:flex;align-items:center;gap:14px;text-decoration:none}
.access-brand img {display:block;flex:none}
.access-brand span {font:400 32px/1 var(--forma-wordmark);letter-spacing:-1px}
.access-caption {font-size:10px;letter-spacing:.19em;color:var(--forma-secondary)}
.access-join {font-size:12px;text-decoration:none}
.access-join>span {color:var(--forma-secondary)}
.access-join strong {color:var(--forma-oxblood);font-weight:600;margin-left:8px}
.access-frame {width:calc(100% - 112px);max-width:1328px;margin:0 auto;display:grid;grid-template-columns:minmax(320px,.82fr) minmax(0,1.35fr);border:1px solid var(--forma-sand);border-radius:12px;overflow:clip;background:#fffdf8;min-height:670px}
.access-aside {display:flex;flex-direction:column;padding:42px;background:var(--forma-wine);color:var(--forma-bone)}
.access-aside-top {display:flex;align-items:center;justify-content:space-between;color:var(--forma-blush);gap:16px}
.access-eyebrow {font-size:10px;letter-spacing:.16em;font-weight:600;line-height:1.5}
.access-aside .icon {width:22px;height:22px;flex:none}
.access-aside-copy h2 {font:400 clamp(32px,3vw,44px)/1.1 var(--forma-display);letter-spacing:-1.5px;margin:46px 0 22px;text-transform:uppercase}
.access-aside-copy p {color:var(--forma-blush);font-size:14px;line-height:1.8;margin:0}
.access-workflows {margin:38px 0 44px;border-top:1px solid #ffffff29}
.access-workflows>div {display:flex;align-items:center;gap:14px;padding:19px 0;border-bottom:1px solid #ffffff29;font-size:12px}
.access-workflows .icon {width:18px;height:18px;color:var(--forma-blush)}
.access-workflows>div>span:last-child {margin-left:auto;color:var(--forma-blush)}
.access-aside-bottom {margin-top:auto}
.access-aside-bottom>a {font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none}
.access-aside-bottom>a:hover {text-decoration:underline}
.access-identity {display:flex;align-items:center;gap:10px;margin-top:32px;font-size:8px;letter-spacing:.1em;color:var(--forma-blush)}
.access-identity img {filter:brightness(0) invert(89%) sepia(15%) saturate(217%)}
.access-aside a:focus-visible {outline-color:var(--forma-blush)}
.access-form-panel {padding:52px clamp(28px,4.5vw,68px) 38px;display:flex;align-items:center;min-width:0}
.access-form-inner {width:100%;max-width:480px;margin:0 auto}
.access-form-inner>.access-eyebrow {color:var(--forma-oxblood);font-size:9px}
.access-form-inner h1 {font:400 clamp(28px,2.5vw,36px)/1.2 var(--forma-display);letter-spacing:-1px;margin:14px 0;text-transform:uppercase}
.access-intro {font-size:13px;color:var(--forma-secondary);line-height:1.75;margin:0 0 30px}
.access-field {margin:0 0 22px}
.access-field label {display:block;font-size:12px;font-weight:600;margin:0 0 8px;letter-spacing:0;text-transform:none}
.access-field input {display:block;width:100%;height:50px;min-width:0;padding:11px 13px;border:1px solid #cec6b8;border-radius:5px;background:#fffefa;color:var(--forma-ink);font:400 16px/1.5 var(--forma-body);box-shadow:none}
.access-field input:hover {border-color:#a99788}
.access-field input:focus {border-color:var(--forma-oxblood)}
.access-hint {font-size:10px;color:#786d66;line-height:1.7;margin:7px 0 0}
.access-password {position:relative;display:flex}
.access-password input {padding-right:72px}
.access-password button {position:absolute;right:5px;top:3px;min-width:54px;min-height:44px;padding:0 10px;background:none;color:var(--forma-oxblood);border:0;border-radius:3px;font-size:11px;font-weight:600}
.access-submit {display:flex;align-items:center;justify-content:center;gap:24px;width:100%;min-height:50px;margin-top:28px;padding:13px 22px;background:var(--forma-oxblood);color:#fff8ef;border:1px solid var(--forma-oxblood);border-radius:5px;font-size:12px;font-weight:600}
.access-submit:hover {background:var(--forma-wine)}
.access-submit>span {font-size:18px;line-height:1}
.access-error {padding:13px 15px;border:1px solid var(--forma-oxblood);border-radius:5px;background:#7a1b2208;color:var(--forma-oxblood);font-size:12px;margin:20px 0 0;overflow-wrap:anywhere}
.access-error[hidden] {display:none}
.access-switch {margin:20px 0 0;font-size:11px;text-align:center;color:var(--forma-secondary)}
.access-switch a {color:var(--forma-oxblood);font-weight:600;text-decoration:none;margin-left:4px}
.access-switch a:hover {text-decoration:underline}
.access-help {display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding-top:22px;border-top:1px solid #e7e2d8;margin-top:30px;font-size:10px;color:#62554d}
.access-help details {min-width:0;flex:1}
.access-help summary {cursor:pointer;color:var(--forma-secondary)}
.access-help p {line-height:1.75;margin:10px 0 0;max-width:32ch}
.access-help>a {text-decoration:none;color:var(--forma-oxblood);flex-shrink:0}
.access-help>a:hover {text-decoration:underline}
.access-footer {width:calc(100% - 112px);max-width:1328px;margin:26px auto 30px;font-size:10px;color:#62554d;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:14px 25px}
.access-footer nav {display:flex;gap:22px}
.access-footer a {text-decoration:none}
.access-footer a:hover {text-decoration:underline}
.access-legal {width:100%;font-size:9px}
.access-plans {width:calc(100% - 112px);max-width:1328px;margin:0 auto}
.access-plans #guest-plans {padding:0}
@media(max-width:1100px) {
  .access-header {padding:0 32px;height:88px}
  .access-caption {display:none}
  .access-frame {width:calc(100% - 56px);grid-template-columns:minmax(290px,.8fr) minmax(0,1.3fr)}
  .access-aside {padding:32px 28px}
  .access-form-panel {padding:36px 30px}
  .access-footer,.access-plans {width:calc(100% - 56px)}
  .access-help {flex-wrap:wrap;gap:12px}
}
@media(max-width:760px) {
  .access-header {height:78px;padding:0 22px}
  .access-brand {gap:9px}
  .access-brand img {width:26px;height:29px}
  .access-brand span {font-size:27px}
  .access-join {font-size:10px}
  .access-join strong {margin-left:4px}
  .access-frame {width:calc(100% - 32px);grid-template-columns:1fr;border-radius:9px;min-height:0}
  .access-aside {padding:18px 23px}
  .access-aside-top .access-eyebrow {font-size:9px;letter-spacing:.13em}
  .access-aside-top .icon {width:19px;height:19px}
  .access-aside-copy,.access-workflows,.access-aside-bottom {display:none}
  .access-form-panel {padding:28px 23px}
  .access-form-inner h1 {font-size:28px;margin:12px 0}
  .access-intro {font-size:12px;margin-bottom:26px}
  .access-field {margin-bottom:20px}
  .access-field input {height:48px}
  .access-hint {font-size:10px}
  .access-submit {margin-top:24px;min-height:48px}
  .access-switch {font-size:11px}
  .access-help {margin-top:25px;padding-top:18px;gap:12px;flex-wrap:wrap}
  .access-footer,.access-plans {width:calc(100% - 44px);margin:21px auto 28px;font-size:9px}
  .access-footer nav {gap:18px}
  .access-legal {font-size:8px}
}
@media(max-width:360px) {
  .access-join>span {display:none}
  .access-join strong {font-size:11px}
  .access-frame {width:calc(100% - 20px)}
  .access-aside {padding:17px}
  .access-form-panel {padding:25px 17px}
  .access-form-inner h1 {font-size:25px}
  .access-help {display:block}
  .access-help>a {display:inline-block;margin-top:12px}
}
@media(prefers-reduced-motion:reduce) {.access-page * {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Authenticator setup stays entirely on this device. */
.authenticator-setup { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 26px; align-items: center; margin: 24px 0; }
.authenticator-qr { width: 232px; max-width: 100%; background: white; border: 1px solid #e2ddd6; border-radius: 12px; overflow: hidden; }
.authenticator-qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.authenticator-setup h3 { margin: 0 0 10px; }
.authenticator-setup p { line-height: 1.55; overflow-wrap: anywhere; }
.authenticator-manual { border-block: 1px solid #e2ddd6; padding: 16px 0; margin: 20px 0; }
.authenticator-manual summary { cursor: pointer; font-weight: 600; }
.authenticator-manual input { font-family: monospace; font-size: 14px; }
@media (max-width: 600px) { .authenticator-setup { grid-template-columns: 1fr; gap: 14px; } .authenticator-qr { margin-inline: auto; } }

/* The primary document library lives in the modern MORE workspace. */
.btn.secondary.document-max-button { color: var(--forma-oxblood); }
.document-library-toolbar { margin-bottom: 22px; }
#document-library-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .8fr) minmax(145px, .9fr) minmax(170px, 1fr); gap: 16px; }
#document-library-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); min-width: 0; }
#document-library-filters input, #document-library-filters select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); font-size: 13px; }
.document-library-toolbar-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.document-library-toolbar-foot .btn { padding: 6px 10px; font-size: 11px; }
.document-library-group .section-head { margin-bottom: 8px; }
.document-library-group h2 { margin: 6px 0 0; font-size: 20px; overflow-wrap: anywhere; }
.document-library-group .eyebrow { margin: 0; }
.document-library-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.document-library-row:first-of-type { border-top: 0; }
.document-library-row:last-child { padding-bottom: 4px; }
.document-library-icon { width: 42px; height: 48px; flex-shrink: 0; display: grid; place-items: center; background: #f6f1eb; color: var(--forma-oxblood); border-radius: 10px; }
.document-library-info { flex: 1; min-width: 0; }
.document-library-info h3 { margin: 0 0 7px; font-family: var(--forma-body); font-size: 14px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.document-library-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 10px; color: var(--muted); margin-bottom: 9px; }
.document-library-info .pill { font-size: 10px; }
.document-library-actions { justify-content: flex-end; max-width: 360px; flex-shrink: 0; }
.document-library-actions .btn { padding: 9px 12px; font-size: 11px; }
@media (max-width: 1200px) { #document-library-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .document-library-actions { max-width: 260px; } }
@media (max-width: 760px) { .document-library-row { flex-wrap: wrap; gap: 12px; align-items: flex-start; } .document-library-actions { width: 100%; max-width: none; justify-content: flex-start; padding-left: 54px; } .document-library-icon { width: 38px; height: 44px; } .document-library-info { min-width: calc(100% - 54px); } .document-library-toolbar { padding: 20px; } #document-library-filters { gap: 14px 10px; } #document-library-filters .document-search { grid-column: 1 / -1; } #document-library-filters label:last-child { grid-column: 1 / -1; } #document-library-filters input, #document-library-filters select { font-size: 16px; } .document-library-group .section-head { align-items: flex-start; gap: 14px; } .document-library-group h2 { font-size: 18px; } .document-library-group .section-head > .subtle { white-space: nowrap; font-size: 10px; } }
.agreement-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}
.agreement-digest {
  font-size: 12px;
  overflow-wrap: anywhere;
}
