@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  --ink: #203c36;
  --muted: #66756f;
  --green: #205c4c;
  --deep: #174d40;
  --line: #e1e7e1;
  --paper: #fff;
  --bg: #f7f8f4;
  --tint: #edf3eb;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
/* App-owned palettes for the three fictional sample insurers. */
:root[data-insurer="unified"] { --ink:#203b50; --muted:#526b7a; --green:#235d82; --deep:#184764; --line:#d5e2eb; --bg:#f4f8fb; --tint:#e9f1f8; }
:root[data-insurer="advavate"] { --ink:#41334e; --muted:#71627b; --green:#705085; --deep:#513660; --line:#e4dcea; --bg:#faf7fc; --tint:#f0eaf6; }
:root[data-insurer="pvs"] { --ink:#50372f; --muted:#79665c; --green:#965136; --deep:#743b27; --line:#e9ddd5; --bg:#fcf8f4; --tint:#f7ece4; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b44b2a;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Manrope", system-ui, sans-serif;
}
p {
  line-height: 1.7;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button {
  border: 0;
  background: none;
}
strong {
  font-weight: 650;
}
small {
  font-size: 0.79rem;
}
h1 {
  font-size: 2.7rem;
  letter-spacing: -1.7px;
  font-weight: 600;
  line-height: 1.23;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1rem;
  line-height: 1.5;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.muted {
  color: var(--muted);
}
.fine {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}
.fine a {
  text-decoration: underline;
}
.eyebrow,
.overline {
  font-size: 0.67rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow {
  margin-bottom: 13px;
}
.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 33px 20px 0;
  z-index: 30;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.37rem;
  letter-spacing: -1.1px;
  font-weight: 700;
  padding: 0 8px;
}
.brandmark {
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 10px;
  width: 33px;
  height: 35px;
  color: #fff;
}
.brand-period {
  color: #7f9f70;
  margin-left: -8px;
}
.workspace-label {
  margin: 43px 15px 18px;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 1.35px;
  color: #78867e;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 0.87rem;
  color: #66746c;
  margin: 3px 0;
  min-height: 46px;
}
.nav-link:hover {
  background: #f3f6f0;
}
.nav-link.active {
  background: #eaf1e8;
  color: #255c49;
  font-weight: 650;
}
.nav-link.active svg {
  stroke-width: 2;
}
.nav-link small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef1ea;
  font-size: 0.68rem;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.help-box {
  background: #f4f5ed;
  border: 1px solid #ebeddf;
  border-radius: 12px;
  padding: 19px 17px;
  margin: 0 0 19px;
}
.mini-flower {
  font-size: 30px;
  color: #68834b;
  display: block;
  margin-bottom: 9px;
}
.help-box h3 {
  font-size: 0.88rem;
  font-weight: 650;
  max-width: 155px;
}
.help-box p {
  font-size: 0.73rem;
  color: var(--muted);
  margin: 8px 0 13px;
}
.help-box .text {
  font-size: 0.75rem;
}
.session-foot {
  padding: 21px 5px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.session-foot strong {
  font-size: 0.72rem;
  display: block;
}
.session-foot small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 4px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #eeeede;
  width: 34px;
  height: 36px;
  border-radius: 50%;
  color: #687b51;
}
.avatar svg {
  width: 18px;
}
.main-shell {
  margin-left: 242px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 79px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 18px;
}
.crumb {
  font-size: 0.77rem;
  color: var(--muted);
  display: flex;
  gap: 18px;
}
.crumb strong {
  color: var(--ink);
  font-weight: 500;
}
.crumb > span {
  color: #c6cfc6;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.primary,
.secondary,
.text,
.icon-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 550;
  line-height: 1.4;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--green);
  color: #fff;
  padding: 13px 20px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-size: 0.87rem;
  min-height: 45px;
}
.primary:hover {
  background: #123f34;
}
.secondary {
  background: #fff;
  border: 1px solid #d8e0d6;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 0.84rem;
  min-height: 44px;
}
.secondary:hover {
  background: #f1f5ed;
}
.text {
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--green);
}
.text:hover {
  text-decoration: underline;
}
.icon-button {
  padding: 8px;
  border-radius: 8px;
  min-width: 40px;
  min-height: 40px;
}
.icon-button:hover {
  background: #e9f0e6;
}
.primary.icon-button:hover {
  background: var(--deep);
}
.small {
  padding: 9px 13px;
  font-size: 0.75rem;
  min-height: 38px;
}
.small svg {
  width: 16px;
}
.full {
  width: 100%;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e6dc;
  background: #f6f8f2;
  color: #63745e;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.65rem;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}
.pill.green {
  background: #edf4e9;
  color: #436637;
  border-color: #dae6d4;
}
.pill.amber {
  color: #8a632f;
  border-color: #eadfca;
  background: #faf5e9;
}
main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 39px 42px 20px;
  flex: 1;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.91rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  margin-bottom: 34px;
}
.hero {
  border: 1px solid #dce5d7;
  border-radius: 15px;
  background: linear-gradient(112deg, #eaf0e3, #e8eee4 64%, #e4ece0);
  padding: 30px 31px 22px;
  position: relative;
  overflow: hidden;
  min-height: 310px;
}
.hero > *:not(.hero-art) {
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 0.61rem;
  letter-spacing: 1.45px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #57754c;
  font-weight: 650;
}
.hero-label svg {
  width: 17px;
}
.hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -1.3px;
  line-height: 1.16;
  margin: 21px 0 15px;
}
.hero > p {
  font-size: 0.86rem;
  color: #60715c;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 23px 0 22px;
}
.hero-actions .primary {
  padding: 12px 17px;
  font-size: 0.79rem;
}
.hero-actions .text {
  font-size: 0.78rem;
}
.hero-note {
  font-size: 0.64rem;
  color: #6c7d66;
  border-top: 1px solid #d6e0cf;
  padding-top: 15px;
  letter-spacing: 0.15px;
}
.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #c8d8bc;
  border-radius: 50%;
  right: -195px;
  top: -30px;
}
.orbit.two {
  width: 420px;
  height: 420px;
  right: -230px;
  top: -65px;
  opacity: 0.8;
}
.orbit.three {
  width: 490px;
  height: 490px;
  right: -265px;
  top: -100px;
  opacity: 0.5;
}
.art-spark {
  position: absolute;
  right: 32px;
  top: 118px;
  font-size: 90px;
  color: #bacda9;
  font-family: Georgia;
  transform: rotate(-15deg);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.plan-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 8px;
}
.square-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  border: 1px solid #00000004;
}
.sage {
  background: #edf2e6;
  color: #5b7a45;
}
.lavender {
  background: #eeebf8;
  color: #8470aa;
}
.peach {
  background: #f8eee2;
  color: #ad865b;
}
.blue {
  background: #e9f1f4;
  color: #5b8396;
}
.plan-card .overline {
  font-size: 0.6rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.plan-card h2 {
  font-size: 1.55rem;
  line-height: 1.35;
  margin-bottom: 13px;
}
.plan-card > .muted {
  font-size: 0.8rem;
  line-height: 1.8;
  max-width: 220px;
}
.plan-card .full {
  margin-top: auto;
}
.plan-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.plan-facts span {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.plan-facts strong {
  font-size: 1.35rem;
  letter-spacing: -0.6px;
}
.plan-card > .card-link {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: auto;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.section-title h2 {
  font-size: 1.05rem;
  font-weight: 650;
}
.section-title > span:not(.pill) {
  font-size: 0.72rem;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 30px;
}
.action-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px #304b3510;
}
.action-card h3 {
  margin: 18px 0 9px;
  font-size: 0.94rem;
  letter-spacing: -0.2px;
}
.action-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 245px;
  margin-bottom: 19px;
}
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green);
}
.card-link svg {
  width: 16px;
}
.recent {
  padding: 23px;
}
.recent .section-title {
  margin-bottom: 5px;
}
.recent .text {
  font-size: 0.72rem;
}
.empty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 0 3px;
  color: var(--muted);
}
.empty-row > svg {
  width: 28px;
  height: 28px;
}
.empty-row strong {
  font-size: 0.83rem;
  color: var(--ink);
}
.empty-row p {
  font-size: 0.76rem;
  margin-top: 5px;
}
.empty-row .secondary {
  margin-left: auto;
  font-size: 0.74rem;
}
.bottom-note {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  margin: 23px 0 5px;
  line-height: 1.6;
}
.bottom-note svg {
  width: 16px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 42px;
  color: #7b877e;
  font-size: 0.65rem;
}
footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer svg {
  width: 14px;
  height: 14px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #e2e7d9;
  background: #f0f4e9;
  color: #5b6d4b;
  border-radius: 9px;
  font-size: 0.81rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice svg {
  width: 18px;
  margin-top: 2px;
}
.notice.error {
  background: #fff0eb;
  border-color: #eac5b7;
  color: #8e422b;
}
.notice .text {
  margin-left: auto;
  white-space: nowrap;
}
.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.82rem;
  color: var(--green);
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #c9d6c3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty {
  padding: 65px 22px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: #edf2e6;
  border: 1px solid #e0e8d8;
  border-radius: 19px;
  width: 70px;
  height: 70px;
}
.empty-icon svg {
  width: 30px;
  height: 30px;
}
.empty h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 23px;
  font-size: 0.9rem;
}
.flow-steps {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 23px;
}
.flow-steps span {
  font-size: 0.78rem;
  color: #7c897d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flow-steps b {
  font-weight: 500;
}
.flow-steps .current {
  color: var(--green);
  font-weight: 700;
}
.flow-steps .done {
  color: #547e3c;
}
.form-card {
  padding: 28px;
  margin-bottom: 23px;
}
.form-card > h2 {
  margin-bottom: 12px;
}
.form-card > p {
  font-size: 0.85rem;
  margin-bottom: 21px;
}
.form-card > h3 {
  margin-top: 25px;
  margin-bottom: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.form-card label,
details label,
#connection-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 550;
  margin-bottom: 18px;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9e1d7;
  border-radius: 7px;
  padding: 12px;
  width: 100%;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #8c978e;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[readonly],
textarea[readonly] {
  background: #fafbf7;
  color: #4e6255;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.term-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 25px 0;
}
.term-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 17px 15px;
  margin: 0;
  min-width: 0;
}
.term-card legend {
  font-size: 0.81rem;
  padding: 0 7px;
  font-weight: 600;
}
.term-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.term-value > label {
  margin: 0;
  max-width: 190px;
}
.input-affix {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.input-affix input {
  border: 0;
  border-bottom: 1px solid #e2e8dc;
  border-radius: 0;
  font-size: 1.6rem;
  width: 140px;
  padding: 8px 0;
  background: transparent;
}
.source-link {
  color: #526e45;
  background: #f1f5ec;
  border: 1px solid #dfe8d7;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.69rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 30px;
}
.source-link svg {
  width: 14px;
  height: 14px;
}
.source-link:hover {
  background: #e2ecd9;
}
details {
  margin-top: 14px;
  font-size: 0.8rem;
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 7px 0;
}
details label {
  margin-top: 12px;
}
details p {
  font-size: 0.83rem;
  margin-top: 10px;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.form-bottom .check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 28px;
}
.chat-header {
  padding: 20px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.chat-header strong {
  font-size: 0.86rem;
  display: block;
}
.chat-header small {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 5px;
}
.chat-header .pill {
  margin-left: auto;
}
.chat-header .square-icon {
  width: 37px;
  height: 37px;
}
.messages {
  min-height: 350px;
  max-height: 560px;
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
}
.chat-welcome {
  text-align: center;
  padding: 25px 5px;
}
.welcome-spark {
  font-size: 52px;
  color: #789461;
  display: block;
  margin-bottom: 10px;
}
.chat-welcome h2 {
  font-size: 1.7rem;
  font-weight: 600;
}
.chat-welcome > p {
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 380px;
  margin: 15px auto 23px;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.chip {
  padding: 10px 12px;
  border: 1px solid #dfe5da;
  border-radius: 8px;
  background: #fcfdf9;
  font-size: 0.72rem;
  text-align: left;
  min-height: 38px;
}
.chip:hover {
  background: #eef4e8;
}
.chat-welcome .text {
  margin-top: 20px;
}
.context-panel {
  padding: 17px 0;
}
.context-panel > h3 {
  margin-bottom: 19px;
}
.context-doc {
  padding: 18px;
  border: 1px solid #dfe6d9;
  border-radius: 10px;
  background: #eff3e9;
}
.context-doc > svg {
  margin-bottom: 14px;
  color: #6c8754;
}
.context-doc strong {
  font-size: 0.82rem;
  line-height: 1.6;
  display: block;
}
.context-doc small {
  font-size: 0.69rem;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.context-doc .text {
  font-size: 0.73rem;
  margin-top: 13px;
}
.tip {
  margin: 26px 0;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.tip h3 {
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.tip p {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #708064;
  font-style: italic;
  line-height: 1.8;
}
.message {
  padding: 17px 19px;
  background: #f5f8f0;
  border: 1px solid #e5ecdd;
  border-radius: 10px;
  margin-bottom: 17px;
}
.message.user {
  margin-left: 40px;
  background: #f8f7f3;
  border-color: #ece9df;
}
.message-label {
  font-size: 0.58rem;
  letter-spacing: 1.3px;
  color: #718369;
  margin-bottom: 10px;
  font-weight: 650;
}
.answer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.89rem;
  line-height: 1.8;
}
.citations {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.message-tools {
  display: flex;
  gap: 20px;
  border-top: 1px solid #e3eadb;
  margin-top: 15px;
  padding-top: 10px;
}
.message-tools .text {
  font-size: 0.69rem;
}
.message-tools svg {
  width: 14px;
  height: 14px;
}
.composer {
  border-top: 1px solid var(--line);
  margin: 0 22px;
  padding: 17px 0;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
}
.composer textarea {
  border: 0;
  background: #f8faf4;
  font-size: 0.84rem;
}
.composer small {
  grid-column: 1/-1;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
}
.followups {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 22px 15px;
}
.followups .chip {
  font-size: 0.65rem;
}
.cost-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr);
  gap: 23px;
}
.estimate-placeholder {
  padding: 35px;
}
.estimate-placeholder h2 {
  margin: 23px 0 15px;
  font-size: 1.5rem;
}
.estimate-placeholder p {
  color: var(--muted);
  font-size: 0.85rem;
}
.estimate-placeholder ol {
  padding-left: 20px;
  margin: 20px 0 28px;
  line-height: 2.5;
  font-size: 0.89rem;
}
.result {
  padding: 25px;
}
.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.amount-grid > div {
  border-radius: 10px;
  background: #f5f6f0;
  padding: 22px 18px;
}
.amount-grid .member {
  background: #e8f0df;
}
.amount-grid span {
  font-size: 0.75rem;
  color: #5f7453;
  display: block;
  margin-bottom: 12px;
}
.amount-grid strong {
  font-size: 2.4rem;
  letter-spacing: -1.4px;
  font-weight: 550;
}
.estimate-steps {
  padding-left: 22px;
}
.estimate-steps li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.estimate-steps li > div {
  display: inline-block;
  width: 75%;
  vertical-align: top;
}
.estimate-steps li > span {
  display: inline-block;
  width: 24%;
  text-align: right;
  font-weight: 600;
}
.estimate-steps small {
  display: block;
  font-size: 0.59rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.estimate-steps p {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 8px 0;
}
.result > .fine {
  margin-top: 20px;
}
.category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.category-strip .pill {
  padding: 10px 15px;
  font-size: 0.77rem;
}
.document-row {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 23px;
}
.document-row > div {
  flex: 1;
  min-width: 0;
}
.document-row strong {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.document-row p {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 5px;
}
.document-actions {
  display: flex;
  gap: 20px;
  padding: 0 23px 23px;
  flex-wrap: wrap;
}
.document-actions button {
  font-size: 0.75rem;
}
.danger {
  color: #9a5039;
}
.category-strip + .card {
  margin-bottom: 24px;
}
.bill-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
  text-align: left;
}
th {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--muted);
  padding: 13px 10px;
  background: #f6f8f1;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 6px;
}
td:last-child {
  white-space: nowrap;
}
td:nth-child(2) {
  white-space: nowrap;
}
.flag {
  background: #fcf5e9;
  border: 1px solid #eadfc9;
  border-radius: 9px;
  padding: 20px;
  margin: 20px 0;
}
.flag h3 {
  text-transform: capitalize;
  color: #8e672e;
  margin-bottom: 10px;
}
.flag p {
  font-size: 0.86rem;
}
.flag small {
  display: block;
  color: #8a795e;
  margin-top: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid .square-icon {
  margin-bottom: 20px;
}
.settings-grid .form-card > p {
  font-size: 0.85rem;
}
.toggle-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 25px !important;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}
.toggle-row strong {
  font-size: 0.87rem;
  display: block;
}
.toggle-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
  font-size: 0.77rem;
}
.toggle-row input {
  width: 21px;
  height: 21px;
}
.settings-grid .fine {
  margin-top: 20px;
}
.settings-grid .secondary {
  margin-top: 14px;
}
dialog {
  border: 1px solid #dde5d7;
  border-radius: 18px;
  padding: 35px;
  color: var(--ink);
  background: #fff;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 88vh;
  box-shadow: 0 24px 100px #152b3030;
}
dialog::backdrop {
  background: #183b3159;
  backdrop-filter: blur(4px);
}
dialog > h2 {
  font-size: 1.7rem;
  margin: 15px 30px 15px 0;
}
dialog > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
}
.dialog-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.sample-list {
  display: grid;
  gap: 12px;
  margin: 23px 0;
}
.sample-option {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.sample-option:hover {
  background: #f5f8ef;
}
.sample-option > span:nth-child(2) {
  flex: 1;
}
.sample-option strong {
  font-size: 0.9rem;
  display: block;
}
.sample-option small {
  font-size: 0.76rem;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.tour-step {
  display: flex;
  gap: 20px;
  margin: 24px 0;
}
.tour-step > b {
  color: #7d956a;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}
.tour-step p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
.source-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.76rem;
}
.source-controls button {
  font-size: 0.75rem;
}
.paper {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fbfbf4;
  border: 1px solid #e8e8db;
  border-radius: 6px;
  padding: 25px;
  font:
    0.85rem/1.9 "DM Sans",
    sans-serif;
  max-height: 50vh;
  overflow-y: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 1000;
  background: #fff;
  padding: 14px;
  border: 2px solid var(--green);
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
:root[data-insurer]:not([data-insurer="default"]) .hero { background:linear-gradient(112deg,var(--tint),var(--bg)); border-color:var(--line); }
:root[data-insurer]:not([data-insurer="default"]) :is(.hero-label,.hero > p,.hero-note,.welcome-spark,.mini-flower,.art-spark,.context-doc > svg) { color:var(--green); }
:root[data-insurer]:not([data-insurer="default"]) :is(.sage,.help-box,.message.user,.composer textarea,.nav-link.active,.context-doc) { background:var(--tint); color:var(--ink); }
:root[data-insurer]:not([data-insurer="default"]) :is(.orbit,.hero-note,.context-doc) { border-color:var(--line); }
.chat-gate { display:flex; align-items:center; gap:16px; margin:0 22px 22px; padding:24px; background:var(--tint); border:1px solid var(--line); border-radius:20px; }
.chat-gate .gate-icon { display:grid; place-items:center; width:48px; height:48px; flex-shrink:0; background:var(--paper); color:var(--green); border-radius:15px; }
.chat-gate strong { font-family:"Manrope",system-ui,sans-serif; font-size:1.05rem; }
.chat-gate p { color:var(--muted); font-size:.8rem; margin-top:6px; }
.chat-gate .primary { flex-shrink:0; margin-left:auto; }
@media(max-width:700px) { .chat-gate { flex-wrap:wrap; margin:0 14px 14px; padding:20px; } .chat-gate > div { flex:1; min-width:150px; } .chat-gate .primary { width:100%; justify-content:center; } }
[data-large="true"] {
  font-size: 18px;
}
:root[data-contrast="true"] {
  --ink: #102d24;
  --muted: #394e40;
  --line: #87947d;
  --green: #10432e;
  --deep: #102d24;
  --bg: #fff;
  --tint: #e9f0e1;
}
[data-contrast="true"] .hero-label,
[data-contrast="true"] .hero > p,
[data-contrast="true"] .hero-note,
[data-contrast="true"] .eyebrow,
[data-contrast="true"] .workspace-label,
[data-contrast="true"] .fine,
[data-contrast="true"] footer {
  color: #354b30;
}
[data-contrast="true"] .pill {
  color: #243b1d;
  border-color: #7b8e71;
}
[data-contrast="true"] .pill.amber {
  color: #654111;
}
@media (min-width: 1600px) {
  main {
    padding-top: 50px;
  }
  .hero {
    padding: 40px;
  }
  .hero h2 {
    font-size: 3.2rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .action-card {
    padding: 28px;
  }
  .art-spark {
    right: 60px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand {
    font-size: 1.22rem;
  }
  .main-shell {
    margin-left: 215px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 32px 28px 20px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 16px;
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 2.3rem;
  }
  .plan-card {
    padding: 20px;
  }
  .action-card {
    padding: 19px;
  }
  .action-card h3 {
    font-size: 0.88rem;
  }
  .hero-art .art-spark {
    opacity: 0.5;
    right: 5px;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 19px;
  }
  .header-actions {
    gap: 9px;
  }
  .cost-layout {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    gap: 17px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 190px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    font-size: 1.08rem;
    gap: 6px;
  }
  .brandmark {
    width: 30px;
  }
  .main-shell {
    margin-left: 190px;
  }
  .workspace-label {
    font-size: 0.51rem;
    margin-left: 10px;
  }
  .nav-link {
    font-size: 0.78rem;
    gap: 9px;
    padding: 12px 10px;
  }
  .help-box {
    padding: 15px 12px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .plan-card {
    display: block;
  }
  .plan-card .plan-top {
    margin-bottom: 15px;
  }
  .plan-card h2 br {
    display: none;
  }
  .plan-card .full {
    margin-top: 18px;
    width: auto;
  }
  .plan-card > .muted {
    max-width: 100%;
  }
  .plan-facts {
    max-width: 400px;
  }
  .hero-art .art-spark {
    right: 55px;
    opacity: 1;
  }
  .action-grid {
    gap: 11px;
  }
  .action-card {
    padding: 17px 13px;
  }
  .action-card p {
    font-size: 0.73rem;
  }
  .card-link {
    font-size: 0.7rem;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .context-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .context-panel > .eyebrow,
  .context-panel > h3 {
    grid-column: 1/-1;
    margin: 0;
  }
  .context-panel .fine {
    grid-column: 1/-1;
  }
  .tip {
    margin: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .term-grid {
    gap: 12px;
  }
  .term-value {
    flex-wrap: wrap;
  }
  .topbar .crumb {
    gap: 10px;
  }
  .topbar .header-actions > .pill {
    display: none;
  }
  .form-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-card {
    padding: 22px;
  }
  .hero h2 {
    font-size: 2.8rem;
  }
  h1 {
    font-size: 2.4rem;
  }
  footer {
    padding: 24px 28px;
  }
  .section-title > span:not(.pill) {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 18px 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 1.3rem;
    padding: 0;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 17px 0 10px;
  }
  .nav-link {
    margin: 0;
    flex-direction: column;
    gap: 5px;
    padding: 8px 11px;
    min-width: 74px;
    font-size: 0.6rem;
    white-space: nowrap;
  }
  .nav-link svg {
    width: 18px;
    height: 18px;
  }
  .nav-link small {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 19px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .small {
    padding: 8px 11px;
  }
  .header-actions .small svg {
    display: none;
  }
  .crumb {
    font-size: 0.7rem;
  }
  .crumb > span {
    display: none;
  }
  .crumb {
    font-size: 0;
  }
  .crumb strong {
    font-size: 0.76rem;
  }
  .topbar:after {
    content: none;
  }
  main {
    padding: 27px 19px 15px;
  }
  h1 {
    font-size: 2.15rem;
    letter-spacing: -1.1px;
  }
  .page-heading {
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .page-heading p {
    font-size: 0.83rem;
    line-height: 1.8;
  }
  .eyebrow {
    font-size: 0.59rem;
  }
  .hero {
    padding: 27px 22px 20px;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero-label {
    font-size: 0.55rem;
  }
  .hero p {
    font-size: 0.82rem;
  }
  .hero-art .art-spark {
    right: 0;
    opacity: 0.35;
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .primary {
    padding: 11px 14px;
  }
  .hero-actions .text {
    font-size: 0.73rem;
  }
  .hero-note {
    font-size: 0.59rem;
  }
  .plan-card {
    padding: 23px;
  }
  .action-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .action-card {
    position: relative;
    padding: 21px 20px 21px 82px;
    min-height: 160px;
  }
  .action-card .square-icon {
    position: absolute;
    left: 20px;
    top: 22px;
  }
  .action-card h3 {
    margin-top: 0;
    font-size: 0.95rem;
  }
  .action-card p {
    font-size: 0.81rem;
    max-width: none;
    margin-bottom: 14px;
  }
  .card-link {
    font-size: 0.77rem;
  }
  .section-title h2 {
    font-size: 1rem;
  }
  .recent {
    padding: 18px;
  }
  .empty-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .empty-row > div {
    flex: 1;
    min-width: 190px;
  }
  .empty-row .secondary {
    margin-left: 40px;
  }
  .recent .section-title {
    align-items: flex-start;
  }
  .recent .text {
    font-size: 0.65rem;
  }
  .bottom-note {
    align-items: flex-start;
    font-size: 0.69rem;
  }
  footer {
    padding: 18px;
    flex-direction: column;
    font-size: 0.6rem;
  }
  .form-card {
    padding: 20px;
  }
  .form-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }
  .term-value {
    flex-wrap: nowrap;
  }
  .term-value > label {
    max-width: 160px;
  }
  .flow-steps {
    gap: 15px;
    justify-content: space-between;
  }
  .flow-steps span {
    font-size: 0.68rem;
    gap: 5px;
  }
  .flow-steps b {
    max-width: 80px;
  }
  .chat-header {
    padding: 16px;
    gap: 9px;
  }
  .chat-header .pill {
    display: none;
  }
  .messages {
    padding: 16px;
    min-height: 320px;
    max-height: 60vh;
  }
  .message.user {
    margin-left: 20px;
  }
  .message {
    padding: 16px;
  }
  .chat-welcome {
    padding: 20px 0;
  }
  .chat-welcome h2 {
    font-size: 1.5rem;
  }
  .chip {
    font-size: 0.7rem;
  }
  .composer {
    margin: 0 16px;
  }
  .context-panel {
    grid-template-columns: 1fr;
  }
  .followups {
    padding: 0 16px 15px;
  }
  .cost-layout {
    grid-template-columns: 1fr;
  }
  .amount-grid strong {
    font-size: 2rem;
  }
  .amount-grid > div {
    padding: 17px 13px;
  }
  .result {
    padding: 20px;
  }
  .document-row {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .document-row > .pill {
    margin-left: 55px;
  }
  .document-row > .icon-button {
    margin-left: auto;
  }
  .document-actions {
    padding: 0 18px 20px;
  }
  .category-strip .pill {
    font-size: 0.68rem;
    padding: 8px 10px;
  }
  .notice {
    font-size: 0.76rem;
    padding: 13px;
  }
  .table-scroll {
    margin-left: -4px;
    margin-right: -4px;
  }
  .bill-actions button {
    width: 100%;
  }
  .empty {
    padding: 45px 12px;
  }
  .empty h2 {
    font-size: 1.35rem;
  }
  .empty p {
    font-size: 0.83rem;
  }
  dialog {
    padding: 27px 20px;
  }
  dialog > h2 {
    font-size: 1.4rem;
  }
  .source-controls {
    gap: 6px;
    font-size: 0.65rem;
  }
  .source-controls .secondary {
    padding: 8px;
  }
  .sample-option {
    padding: 13px;
    gap: 11px;
  }
  .sample-option small {
    font-size: 0.68rem;
  }
  .sample-option strong {
    font-size: 0.8rem;
  }
  .sample-option > .square-icon {
    width: 36px;
    height: 36px;
  }
  .paper {
    padding: 16px;
  }
  .session-foot {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
dialog h2 {
  overflow-wrap: anywhere;
}
.sidebar nav .nav-link:last-child {
  display: none;
}
@media (max-width: 700px) {
  .sidebar nav .nav-link:last-child {
    display: flex;
  }
}
