:root {
  --brand-950: #4f102c;
  --brand-900: #65183a;
  --brand-800: #8a1f52;
  --brand-700: #b3266b;
  --water-700: #047f8f;
  --water-600: #0aa0b5;
  --water-100: #e4f6f7;
  --green-700: #0f6d59;
  --green-600: #168469;
  --gold-500: #d6b36a;
  --sand-200: #efe5d8;
  --gray-950: #2a2025;
  --gray-750: #51464b;
  --gray-600: #786c70;
  --gray-300: #d9cfd4;
  --gray-150: #f3edf0;
  --gray-100: #faf7f8;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(79, 16, 44, 0.16);
  --radius: 6px;
  --content: 1180px;
  --portal-font: "Montserrat", Arial, Helvetica, sans-serif;
  --workbench-font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-950);
  background: var(--gray-100);
  font-family: var(--portal-font);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  outline-offset: 3px;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 0.85rem;
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

h2 {
  color: var(--brand-950);
  font-size: 1.65rem;
  line-height: 1.2;
}

h3 {
  color: var(--brand-900);
  font-size: 1.03rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 0.8rem;
  background: var(--white);
  border: 2px solid var(--brand-800);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 45;
  padding: 0.42rem 1rem;
  color: #221a00;
  background: var(--gold-500);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.workbench-state {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workbench-toggle {
  position: fixed;
  top: 2.9rem;
  left: 0.8rem;
  z-index: 65;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #f8edf2;
  background: #160b11;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(18, 6, 12, 0.34);
  font-family: var(--workbench-font);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.workbench-toggle i {
  font-size: 1rem;
}

.workbench-toggle:hover,
.workbench-toggle:focus {
  background: #2a1520;
}

.site-header {
  position: sticky;
  top: 33px;
  z-index: 40;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(79, 16, 44, 0.08);
}

.utility-bar {
  color: var(--white);
  background: var(--brand-950);
  font-size: 0.82rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.42rem 1.2rem;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(190px, 320px) minmax(260px, 470px);
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.95rem 1.2rem;
}

.brand {
  display: inline-flex;
  width: min(290px, 100%);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
}

.site-search input {
  min-height: 42px;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 0;
  color: var(--gray-950);
}

.site-search button {
  min-height: 42px;
  padding: 0 1rem;
  color: var(--white);
  background: var(--green-700);
  font-weight: 800;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--brand-800);
}

.main-nav a {
  padding: 0.78rem 1.05rem;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-950);
}

.section-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--brand-950);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(79, 16, 44, 0.92), rgba(138, 31, 82, 0.52), rgba(4, 127, 143, 0.16)),
    url("../img/cespt-slide-46.jpg") center / cover;
}

.hero-card {
  position: relative;
  max-width: var(--content);
  min-height: 430px;
  margin: 0 auto;
  padding: 4rem 1.2rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card .section-label {
  color: #bdeff2;
}

.hero-card p {
  max-width: 660px;
  color: #f7edf1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.primary-action {
  color: var(--brand-950);
  background: var(--white);
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.quick-strip,
.content-band,
.services-layout,
.news-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 3rem 1.2rem;
}

.quick-strip {
  margin-top: 0;
  position: relative;
  z-index: 5;
}

.quick-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  color: var(--white);
  background: var(--brand-950);
  border-radius: var(--radius) var(--radius) 0 0;
}

.quick-heading h2 {
  margin: 0;
  color: var(--white);
}

.quick-heading .section-label {
  color: #bdeff2;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow);
}

.quick-tile {
  display: grid;
  grid-template-rows: auto minmax(2.6em, auto) auto;
  gap: 0.45rem;
  min-height: 150px;
  padding: 1.05rem;
  color: var(--gray-950);
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  text-align: center;
  text-decoration: none;
}

.quick-tile:hover,
.quick-tile:focus {
  background: var(--water-100);
}

.quick-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--water-600);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
}

.quick-tile strong {
  color: var(--brand-950);
  line-height: 1.18;
}

.quick-tile small {
  color: var(--green-700);
  font-weight: 900;
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.section-heading p {
  max-width: 450px;
  margin-bottom: 0;
  color: var(--gray-750);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-grid article {
  min-height: 152px;
  padding: 1rem;
  background: var(--white);
  border-top: 4px solid var(--brand-700);
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.07);
}

.category-grid p,
.news-list p,
.site-footer p,
.executive-note p,
.info-panel li {
  color: var(--gray-750);
}

.services-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.payment-panel,
.info-panel {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.06);
}

.payment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.payment-list a {
  padding: 0.8rem 0.9rem;
  color: var(--brand-950);
  background: var(--gray-150);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.info-panel ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}

.news-section {
  border-top: 1px solid var(--gray-300);
}

.text-link {
  color: var(--brand-800);
  font-weight: 900;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-list article {
  padding: 1rem;
  background: var(--white);
  border-top: 4px solid var(--green-700);
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.06);
}

.news-list time {
  color: var(--gray-600);
  font-size: 0.86rem;
  font-weight: 800;
}

.demo-workbench {
  position: fixed;
  top: 4.2rem;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  width: min(390px, calc(100vw - 1.6rem));
  margin: 0;
  padding: 0.7rem;
  overflow: hidden;
  color: #f8edf2;
  background: #160b11;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(18, 6, 12, 0.42);
  font-family: var(--workbench-font);
  font-size: 0.76rem;
  line-height: 1.34;
}

#workbench-state:checked ~ main .demo-workbench {
  display: grid;
}

.demo-control,
.tech-panel {
  min-height: 0;
  background: #21111a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: none;
}

.demo-control {
  padding: 0.78rem;
}

.tech-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.panel-title {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.panel-title h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 0.98rem;
}

.status-badge {
  padding: 0.24rem 0.44rem;
  color: #15100b;
  background: #f3c95d;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.demo-workbench .section-label {
  color: #87e3dc;
}

.demo-workbench h3 {
  font-size: 0.82rem;
}

.demo-workbench p,
.demo-workbench li,
.demo-workbench button,
.demo-workbench select {
  font-size: 0.76rem;
}

.demo-workbench * {
  scrollbar-color: rgba(135, 227, 220, 0.42) transparent;
  scrollbar-width: thin;
}

.demo-workbench *::-webkit-scrollbar {
  width: 6px;
}

.demo-workbench *::-webkit-scrollbar-track {
  background: transparent;
}

.demo-workbench *::-webkit-scrollbar-thumb {
  background: rgba(135, 227, 220, 0.42);
  border-radius: 999px;
}

.demo-workbench *::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 227, 220, 0.68);
}

.demo-control label {
  display: block;
  margin-bottom: 0.35rem;
  color: #d7c3cc;
  font-weight: 800;
}

.demo-control select {
  width: 100%;
  min-height: 34px;
  padding: 0.46rem 0.58rem;
  color: #f8edf2;
  background: #160b11;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.chat-input-row input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--gray-950);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}

.chat-input-row input.is-user-typing {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(15, 109, 89, 0.14);
}

.control-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  margin: 0.7rem 0;
}

.control-buttons button,
#clear-logs,
.chat-input-row button,
.modal button {
  min-height: 34px;
  padding: 0.42rem 0.58rem;
  color: var(--white);
  background: var(--brand-800);
  border-radius: var(--radius);
  font-weight: 900;
}

.demo-workbench .control-buttons button {
  display: grid;
  min-height: 34px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
}

.demo-workbench .control-buttons button,
.demo-workbench #clear-logs {
  color: #f8edf2;
  background: rgba(10, 160, 181, 0.28);
  border: 1px solid rgba(135, 227, 220, 0.34);
}

.control-buttons button:hover,
#clear-logs:hover,
.chat-input-row button:hover,
.modal button:hover {
  background: var(--brand-950);
}

.demo-workbench .control-buttons button:hover,
.demo-workbench .control-buttons button:focus,
.demo-workbench #clear-logs:hover,
.demo-workbench #clear-logs:focus {
  background: rgba(10, 160, 181, 0.48);
}

.control-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.step-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: #d7c3cc;
}

progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
}

progress::-webkit-progress-bar {
  background: var(--gray-150);
}

progress::-webkit-progress-value {
  background: var(--green-700);
}

.demo-workbench progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.14);
}

.demo-workbench progress::-webkit-progress-value {
  background: #87e3dc;
}

.executive-note {
  margin-top: 0.7rem;
  padding: 0.68rem;
  max-height: 92px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid #87e3dc;
  border-radius: var(--radius);
}

.executive-note h3 {
  margin-bottom: 0.35rem;
  color: #f8edf2;
}

.demo-workbench .executive-note p {
  color: #d7c3cc;
}

.tech-panel .panel-title {
  padding: 0.7rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tech-log {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 0.7rem 0.75rem 1rem;
  background: #12080d;
}

.tech-log::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.82rem;
  width: 1px;
  background: rgba(135, 227, 220, 0.24);
  content: "";
}

.empty-state {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  min-height: 90px;
  place-items: center;
  color: #e5cbd5;
  text-align: center;
}

.empty-state::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #87e3dc;
  background: #21111a;
  border: 1px solid rgba(135, 227, 220, 0.32);
  border-radius: 50%;
  content: "\f1da";
  font: var(--fa-font-solid);
}

.log-item {
  --log-accent: #87e3dc;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0 0 0.68rem;
  color: #f5e8ee;
}

.log-item:last-child {
  padding-bottom: 0;
}

.log-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #12080d;
  background: var(--log-accent);
  border: 2px solid #12080d;
  border-radius: 50%;
  font-size: 0.68rem;
}

.log-cyan {
  --log-accent: #87e3dc;
}

.log-violet {
  --log-accent: #c9a7ff;
}

.log-green {
  --log-accent: #95e6bf;
}

.log-blue {
  --log-accent: #9cc8ff;
}

.log-gold {
  --log-accent: #f3c95d;
}

.log-red {
  --log-accent: #ff9b9b;
}

.log-default {
  --log-accent: #d7c3cc;
}

.log-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  padding-top: 0.08rem;
}

.log-meta strong {
  color: var(--log-accent);
}

.log-meta time {
  color: #d2b3bf;
  font-size: 0.8rem;
}

.log-item p {
  grid-column: 2;
  margin-bottom: 0;
  color: #eadbe2;
}

.site-footer {
  padding: 2rem 1.2rem;
  color: var(--white);
  background: var(--brand-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: var(--content);
  margin: 0 auto;
}

.site-footer img {
  width: min(240px, 100%);
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0.55rem;
  color: #f1dfe7;
}

.site-footer a {
  display: block;
  margin-bottom: 0.35rem;
  color: #f1dfe7;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
  text-decoration: underline;
}

.chat-entry {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  max-width: min(410px, calc(100vw - 2.4rem));
}

.chat-nudge {
  position: relative;
  max-width: 360px;
  margin: 0;
  padding: 0.9rem 2.4rem 0.9rem 1.05rem;
  color: var(--gray-950);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 207, 212, 0.74);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.16);
  font-size: 0.94rem;
  line-height: 1.42;
}

.chat-nudge p {
  margin: 0;
}

.chat-nudge button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: var(--gray-600);
  background: transparent;
  border-radius: 50%;
}

.chat-nudge button:hover,
.chat-nudge button:focus {
  color: var(--brand-950);
  background: var(--gray-150);
}

.chat-entry:has(.chat-launcher[aria-expanded="true"]) .chat-nudge {
  display: none;
}

.chat-launcher {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 58px;
  padding: 0.46rem 1.05rem 0.46rem 0.48rem;
  color: var(--green-700);
  background: #e0f4ec;
  border: 1px solid rgba(15, 109, 89, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(23, 32, 42, 0.14);
  font-weight: 900;
}

.chat-launcher:hover,
.chat-launcher:focus {
  background: #d2efe4;
  box-shadow: 0 18px 38px rgba(23, 32, 42, 0.18);
}

.chat-launcher span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 109, 89, 0.08);
}

.chat-launcher img {
  display: block;
  width: 38px;
  height: 38px;
}

.chat-widget {
  position: fixed;
  right: 1.2rem;
  top: 1.2rem;
  bottom: 1.2rem;
  z-index: 55;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: min(430px, calc(100vw - 2.4rem));
  height: auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  color: var(--gray-950);
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: var(--gray-600);
  font-size: 0.82rem;
}

.chat-header button {
  width: 34px;
  height: 34px;
  color: var(--gray-750);
  background: var(--gray-150);
  border-radius: var(--radius);
  font-weight: 900;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: auto;
  padding: 1.1rem;
  background: var(--white);
}

.chat-welcome {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  color: var(--gray-950);
}

.assistant-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: #e0f4ec;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 109, 89, 0.08);
}

.assistant-mark img {
  display: block;
  width: 46px;
  height: 46px;
}

.chat-welcome p {
  margin-bottom: 0;
  color: var(--gray-750);
}

.suggestion-group {
  display: grid;
  gap: 0.55rem;
}

.suggestion-group span {
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.suggestion-group button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--brand-950);
  background: var(--gray-150);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  text-align: left;
  font-weight: 800;
}

.suggestion-group button:hover,
.suggestion-group button:focus {
  background: var(--water-100);
}

.chat-start {
  justify-self: start;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--white);
  background: var(--green-700);
  border-radius: var(--radius);
  font-weight: 900;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.message.user {
  align-self: flex-end;
}

.message.assistant {
  align-self: flex-start;
}

.bubble {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.08);
}

.message.user .bubble {
  color: var(--white);
  background: var(--brand-800);
}

.message.assistant .bubble {
  background: var(--white);
  border: 1px solid var(--gray-300);
}

.rich-card {
  width: min(100%, 340px);
  margin-top: 0.55rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.08);
}

.map-visual {
  position: relative;
  height: 132px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 160, 181, 0.18), transparent 38%),
    linear-gradient(45deg, #e7f4f2 25%, #f6f1f4 25%, #f6f1f4 50%, #e7f4f2 50%, #e7f4f2 75%, #f6f1f4 75%);
  background-size: auto, 42px 42px;
}

.map-road,
.map-water {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.map-road {
  background: rgba(79, 16, 44, 0.18);
}

.map-road-a {
  top: 54px;
  left: -18px;
  width: 390px;
  height: 12px;
  transform: rotate(-16deg);
}

.map-road-b {
  top: -18px;
  left: 120px;
  width: 14px;
  height: 210px;
  transform: rotate(24deg);
}

.map-water {
  right: -28px;
  bottom: -12px;
  width: 150px;
  height: 56px;
  background: rgba(10, 160, 181, 0.32);
}

.map-pin {
  position: absolute;
  top: 48%;
  left: 54%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand-800);
  background: var(--white);
  border: 2px solid var(--brand-800);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.24);
  transform: translate(-50%, -50%);
}

.rich-card-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
}

.rich-card-title {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--brand-950);
}

.rich-card-title i {
  color: var(--green-700);
}

.rich-card p {
  margin-bottom: 0;
  color: var(--gray-750);
}

.rich-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.rich-card dl div {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding-top: 0.35rem;
  border-top: 1px solid var(--gray-150);
}

.rich-card dt {
  color: var(--gray-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.rich-card dd {
  margin: 0;
  color: var(--gray-950);
  font-size: 0.76rem;
  text-align: right;
}

.receipt-card {
  border-left: 4px solid var(--green-700);
}

.billing-card {
  border-left: 4px solid var(--brand-800);
}

.billing-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  min-height: 170px;
  padding: 0.65rem 0.25rem 0.15rem;
}

.billing-bar {
  display: grid;
  grid-template-rows: auto 118px auto;
  gap: 0.35rem;
  align-items: end;
  justify-items: center;
  min-width: 0;
}

.billing-amount {
  color: var(--gray-750);
  font-size: 0.7rem;
  font-weight: 800;
}

.billing-column {
  display: block;
  width: min(32px, 80%);
  background: var(--water-600);
  border-radius: 999px 999px 3px 3px;
}

.billing-bar.is-high .billing-column {
  background: var(--brand-800);
}

.billing-bar.is-high .billing-amount {
  color: var(--brand-800);
}

.billing-bar strong {
  color: var(--gray-750);
  font-size: 0.72rem;
}

.receipt-download {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-self: start;
  min-height: 36px;
  padding: 0.5rem 0.7rem;
  color: var(--white);
  background: var(--green-700);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.sources {
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.75rem 0.55rem 1.2rem;
  color: var(--gray-750);
  background: var(--water-100);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.typing {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--gray-750);
  background: var(--gray-100);
  font-size: 0.85rem;
}

.typing span {
  width: 7px;
  height: 7px;
  background: var(--green-700);
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-300);
}

.chat-input-row button {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
}

.chat-privacy {
  margin: 0;
  padding: 0 1rem 0.85rem;
  color: var(--gray-600);
  font-size: 0.76rem;
  text-align: center;
}

.chat-privacy a {
  color: var(--brand-800);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 31, 45, 0.6);
}

.modal {
  width: min(360px, 100%);
  padding: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal h2 {
  margin-bottom: 0.5rem;
}

.call-modal {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.call-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 0 0 8px rgba(15, 109, 89, 0.14);
}

.call-modal h2 {
  color: var(--brand-950);
}

.call-modal p {
  margin-bottom: 0;
  color: var(--gray-750);
}

.call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: 100%;
}

.call-actions button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}

.call-answer {
  background: var(--green-700);
}

.call-decline {
  background: var(--brand-800);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1120px) {
  body.workbench-open,
  body:has(#workbench-state:checked) {
    padding-left: 410px;
  }

  body.workbench-open .workbench-toggle,
  body:has(#workbench-state:checked) .workbench-toggle {
    left: 401px;
  }

  .demo-workbench {
    top: 0.8rem;
    width: 386px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .brand-row,
  .section-heading,
  .quick-heading {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .quick-grid,
  .category-grid,
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-layout,
  .demo-workbench,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .demo-ribbon {
    position: static;
  }

  .utility-inner {
    justify-content: flex-start;
  }

  .brand-row {
    padding: 0.8rem;
  }

  .site-search {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    flex: 1 1 50%;
    padding: 0.7rem;
    text-align: center;
  }

  .workbench-toggle {
    top: 0.7rem;
    left: 0.7rem;
  }

  body.workbench-open .workbench-toggle,
  body:has(#workbench-state:checked) .workbench-toggle {
    left: 0.7rem;
  }

  .demo-workbench {
    top: 3.8rem;
    bottom: 0.7rem;
    left: 0.7rem;
    width: calc(100vw - 1.4rem);
  }

  .hero,
  .hero-card {
    min-height: 390px;
  }

  .quick-grid,
  .category-grid,
  .payment-list,
  .news-list,
  .control-buttons {
    grid-template-columns: 1fr;
  }

  .chat-entry {
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: calc(100vw - 1.6rem);
  }

  .chat-widget {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
    height: auto;
  }
}
