.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--ember);
  color: var(--ink-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}


.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}


.skip-link:hover { background: var(--ember-hi); color: var(--ink-on-accent); }
.skip-link:active { background: var(--ember-lo); }


.app {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}


.column {
  position: relative;
  min-width: 0;
  overflow-x: clip;
}


.column > main {
  display: block;
  min-width: 0;
}


.column > main:focus { outline: none; }


@media (min-width: 1024px) {
  .column { margin-left: var(--sidebar-w); }
}


.sidebar {
  position: sticky;
  top: 0;
  z-index: var(--z-drawer);
  background: var(--panel);
}


.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: var(--topbar-h);
  padding: 0.5rem var(--gutter);
  background: var(--panel);
  border-bottom: var(--hair);

  transition: box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}


.sidebar.is-condensed .topbar {
  background: rgba(36, 32, 27, 0.97);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9);
}


.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity var(--dur-2) var(--ease-out);
}


.brand img {
  height: 2.6rem;
  width: auto;
}


.brand:hover { opacity: 0.86; }
.brand:active { opacity: 0.7; }
.brand:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }


.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.9rem;
  border: var(--hair);
  border-radius: var(--radius);
  background: transparent;
  color: var(--sand);
  font-family: var(--fabe-2e4);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


.nav-toggle .icon { width: 1.25rem; height: 1.25rem; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }


.nav-toggle:hover { background: var(--panel-2); border-color: var(--dust); }
.nav-toggle:active { background: var(--line); border-color: var(--ochre); }
.nav-toggle:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--ember); color: var(--ember); }


.sidebar__panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-3) var(--gutter) var(--s-4);
  background: var(--panel);
}


.sidebar__brand { display: none; }


.js .sidebar__panel {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: var(--hair);
  box-shadow: 30px 0 60px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}


.js .sidebar__panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-3) var(--ease-out), visibility 0s linear 0s;
}


.nav-scrim {
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  z-index: calc(var(--z-drawer) - 1);
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out);
}


.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}


html.nav-open,
html.nav-open body { overflow: hidden; }


@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    border-right: var(--hair);
    display: flex;
    flex-direction: column;
  }


  .topbar { display: none; }


  .sidebar__panel,
  .js .sidebar__panel {
    position: static;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    overflow-y: auto;
    transform: none;
    visibility: visible;
    box-shadow: none;
    border-right: 0;
    padding: 2rem 1.75rem 1.75rem 2rem;
    gap: 2.25rem;
    transition: none;
  }


  .sidebar__brand { display: inline-flex; align-self: flex-start; }
  .sidebar__brand img { height: 3.2rem; }


  .nav-scrim { display: none; }


  html.nav-open,
  html.nav-open body { overflow: visible; }
}


.nav {
  display: flex;
  flex-direction: column;
}


.nav__label {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 0.6rem;
}


.nav__list,
.nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}


.nav__list > li + li { border-top: var(--hair-soft); }


.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.5rem 0.55rem 1.6rem;
  font-family: var(--fabe-79c);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--sand);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}


.nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}


.nav__link:hover {
  color: var(--ochre);
  background: rgba(236, 226, 206, 0.03);
}


.nav__link:hover::before { background: var(--ochre); }


.nav__link:active {
  color: var(--ember);
  background: rgba(236, 226, 206, 0.06);
}


.nav__link:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 0;
}


.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--sand); }


.nav__link[aria-current="page"]::before,
.nav__link.is-active::before {
  background: var(--ember);
  height: 2px;
  margin-top: -0.5px;
}


.nav__sub { padding: 0 0 0.6rem 1.6rem; }


.nav__sublink {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  border-left: var(--hair);
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--dust);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}


@media (pointer: coarse) {
  .nav__sublink { min-height: 44px; }
}


.nav__sublink:hover {
  color: var(--sand);
  border-left-color: var(--ochre);
  background: rgba(236, 226, 206, 0.03);
}


.nav__sublink:active {
  color: var(--ember);
  background: rgba(236, 226, 206, 0.06);
}


.nav__sublink:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 0;
}


.nav__sublink[aria-current="page"],
.nav__sublink.is-active {
  color: var(--sand);
  border-left: 2px solid var(--ember);
  padding-left: calc(0.85rem - 1px);
}


.nav__num {
  font-family: var(--fabe-2e4);

  font-size: var(--fs-micro);
  color: var(--ochre);
  opacity: 0.8;
  flex: none;
}


.sidebar__contact {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: var(--hair);
  display: flex;

  flex-direction: column;
  gap: 0.25rem;
}


.sidebar__contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.25rem 0.25rem;
  font-family: var(--fabe-2e4);
  font-size: 0.8125rem;
  color: var(--sand-2);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: var(--radius);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}


.sidebar__contact-link .icon { color: var(--ochre); width: 1rem; height: 1rem; }
.sidebar__contact-link:hover { color: var(--ochre); background: rgba(236, 226, 206, 0.03); }
.sidebar__contact-link:active { color: var(--ember); background: rgba(236, 226, 206, 0.06); }
.sidebar__contact-link:focus-visible { outline: 2px solid var(--ochre); outline-offset: 0; }


.sidebar__note {
  font-size: var(--fs-micro);
  font-family: var(--fabe-2e4);
  color: var(--dust);
  letter-spacing: 0.04em;
  padding-left: 0.25rem;
}


.lockup {
  position: relative;
  display: block;
  font-family: var(--fabe-79c);
  font-size: var(--fs-lockup);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  color: var(--sand);
  text-wrap: initial;
  max-width: 100%;
}


.lockup__line {
  display: block;
  position: relative;
  max-width: 100%;
  overflow-wrap: break-word;
}


.lockup__line--indent { padding-left: var(--lockup-indent); }


.lockup__line--indent-2 { padding-left: calc(var(--lockup-indent) * 0.5); }


.lockup em,
.lockup__line em {
  font-style: italic;
  font-weight: 500;
  color: var(--sand-2);
  letter-spacing: -0.02em;
}


.lockup__rule {
  display: block;
  height: 1px;
  margin: 0.14em calc(-1 * var(--gutter)) 0.16em calc(var(--lockup-indent) * 0.55);
  background: var(--ember);
  transform-origin: left center;
}


.lockup__tick {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.04em;
  background: var(--ember);
  vertical-align: baseline;
}


.lockup--sm {
  font-size: var(--fs-lockup-sm);
  line-height: 0.98;
  letter-spacing: -0.018em;
}


.lockup--sm .lockup__rule {
  margin-top: 0.18em;
  margin-bottom: 0.2em;
}


.lockup--md { font-size: clamp(2.4rem, 6.4vw, 6rem); }


@media (max-width: 767px) {
  .lockup { --lockup-indent: 12vw; }
}


.lockup-kicker {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: var(--s-3);
  font-family: var(--fabe-2e4);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--dust);
}


.lockup-kicker .num { color: var(--ember); }


.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--fabe-963);
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}


.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform var(--dur-2) var(--ease-out);
}


.btn:hover .icon--arrow { transform: translateX(3px); }


.btn:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}


.btn:active { transform: translateY(1px); }


.btn--primary {
  background: var(--ember);
  color: var(--ink-on-accent);
  border-color: var(--ember);
}


.btn--primary:hover {
  background: var(--ember-hi);
  border-color: var(--ember-hi);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-ember);
  transform: translateY(-1px);
}


.btn--primary:active {
  background: var(--ember-lo);
  border-color: var(--ember-lo);
  box-shadow: none;
  transform: translateY(1px);
}


.btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--line);
  box-shadow: inset 0 0 0 0 var(--sand);
}


.btn--ghost:hover {
  border-color: var(--sand-2);
  background: rgba(236, 226, 206, 0.05);
  color: var(--sand);
  transform: translateY(-1px);
}


.btn--ghost:active {
  background: rgba(236, 226, 206, 0.1);
  border-color: var(--ochre);
  transform: translateY(1px);
}


.btn--sand {
  background: var(--sand);
  color: var(--ground);
  border-color: var(--sand);
}


.btn--sand:hover {
  background: #f6eedd;
  color: var(--ground);
  box-shadow: 0 10px 24px -14px rgba(236, 226, 206, 0.5);
  transform: translateY(-1px);
}


.btn--sand:active {
  background: var(--sand-2);
  box-shadow: none;
  transform: translateY(1px);
}


.btn--quiet {
  min-height: 44px;
  padding: 0.5rem 0;
  background: transparent;
  color: var(--sand);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}


.btn--quiet:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}


.btn--quiet:active {
  color: var(--ember);
  border-bottom-color: var(--ember);
}


.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}


.btn--block { width: 100%; }


.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.btn.is-loading { color: transparent; }


.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--ink-on-accent);
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}


@keyframes btn-spin {
  to { transform: rotate(360deg); }
}


.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}


.btn-row > * { min-width: 0; }


.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 500;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}


.link-arrow .icon { width: 1rem; height: 1rem; color: var(--ember); transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { color: var(--ochre); border-bottom-color: var(--ochre); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:active { color: var(--ember); }
.link-arrow:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }


.tag,
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 28px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
  overflow-wrap: anywhere;
}


.tag--olive,
.badge--ok {
  color: #b9ba8e;
  border-color: rgba(127, 128, 90, 0.55);
  background: var(--olive-soft);
}


.tag--ochre {
  color: var(--ochre);
  border-color: rgba(198, 161, 95, 0.45);
}


.tag--ember,
.badge--accent {
  color: var(--ember);
  border-color: rgba(217, 119, 63, 0.5);
  background: var(--ember-soft);
}


.badge--warn {
  color: #e3a487;
  border-color: rgba(180, 105, 76, 0.6);
  background: var(--terracotta-soft);
}


a.chip,
button.chip {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


a.chip:hover,
button.chip:hover {
  color: var(--sand);
  border-color: var(--dust);
  background: rgba(236, 226, 206, 0.04);
}


a.chip:active,
button.chip:active {
  background: rgba(236, 226, 206, 0.09);
  border-color: var(--ochre);
}


a.chip:focus-visible,
button.chip:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}


.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--ground);
  background: var(--sand);
  border-color: var(--sand);
}


.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair);
  counter-reset: idx;
}


.index-row { border-bottom: var(--hair); }


.index-row__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1.1rem 0.25rem 1.15rem;
  color: var(--sand);
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out), padding-left var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


.index-row__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
}


.index-row__num {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-meta);
  color: var(--ochre);
  font-feature-settings: "tnum" 1, "zero" 1;
}


.index-row__name {
  font-family: var(--fabe-79c);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.012em;
  min-width: 0;
  overflow-wrap: break-word;
}


.index-row__arrow {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--dust);
  align-self: center;
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


.index-row__detail {
  grid-column: 2 / -1;
  max-width: 58ch;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--dust);
}


.index-row__basis {
  grid-column: 2 / -1;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-meta);
  color: var(--ochre);
  letter-spacing: 0.02em;
}


.index-row__link:hover,
.index-row__link.is-active {
  background: linear-gradient(90deg, rgba(236, 226, 206, 0.045), rgba(236, 226, 206, 0));
  padding-left: 0.75rem;
}


.index-row__link:hover::after,
.index-row__link.is-active::after { transform: scaleX(1); }


.index-row__link:hover .index-row__arrow {
  color: var(--ember);
  transform: translate(3px, -3px);
}


.index-row__link:active { background: rgba(236, 226, 206, 0.08); }


.index-row__link:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: -2px;
}


@media (min-width: 900px) {
  .index-row__link { grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1fr) auto; }


  .index-row__detail {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }


  .index-row__basis { grid-column: 2; }


  .index-row__arrow {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}


.block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}


.block__num {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-meta);
  color: var(--ember);
}


.block__title {
  font-family: var(--fabe-79c);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.12;
}


.block__text {
  color: var(--dust);
  font-size: var(--fs-small);
}


.block--raised {
  padding: var(--s-3);
  background: var(--panel);
  border: var(--hair);
  border-top: 1px solid var(--ember);
  box-shadow: var(--shadow-1);
}


a.block {
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}


a.block:hover { border-top-color: var(--ochre); background: rgba(236, 226, 206, 0.025); transform: translateY(-2px); }
a.block:active { border-top-color: var(--ember); transform: translateY(0); }
a.block:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }


.figure {
  position: relative;
  margin: 0;
  min-width: 0;
}


.figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-0);
  background: var(--panel);
  filter: saturate(0.92) contrast(1.02);
}


.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 16 / 9; }
.figure--square img { aspect-ratio: 1 / 1; }


.figure__frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}


.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(236, 226, 206, 0.06);
  pointer-events: none;
}


.figure figcaption,
.figure__caption {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 0.75rem;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--dust);
}


.figure figcaption::before,
.figure__caption::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1px;
  background: var(--ember);
  transform: translateY(-0.25em);
}


.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding-top: var(--s-2);
  border-top: var(--hair);
}


.stat__value {
  font-family: var(--fabe-2e4);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ochre);
  font-feature-settings: "tnum" 1, "zero" 1;
}


.stat__label {
  font-size: var(--fs-small);
  color: var(--dust);
  line-height: 1.45;
}


.callout {
  position: relative;
  padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-3) + 2px);
  background: var(--panel);
  border-left: 2px solid var(--ember);
  color: var(--sand-2);
}


.callout--olive { border-left-color: var(--olive); }
.callout--warn { border-left-color: var(--terracotta); background: linear-gradient(90deg, var(--terracotta-soft), var(--panel) 40%); }


.callout__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ochre);
}


.pullquote {
  font-family: var(--fabe-79c);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--sand);
  text-indent: -0.42em;
  max-width: 26ch;
}


.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
}


.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }


.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dust);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}


.breadcrumbs a:hover { color: var(--sand); }
.breadcrumbs a:active { color: var(--ember); }
.breadcrumbs a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.breadcrumbs [aria-current="page"] { color: var(--ochre); }


.demie37 {
  max-width: 100%;
  overflow-x: auto;
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
}


.spec-table {
  width: 100%;
  font-size: var(--fs-small);
  line-height: 1.5;
}


.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.75rem;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--dust);
}


.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: var(--hair);
}


.spec-table thead th {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dust);
  background: var(--panel-2);
  white-space: nowrap;
}


.spec-table tbody th {
  font-weight: 600;
  color: var(--sand);
  width: 34%;
}


.spec-table tbody tr:nth-child(even) { background: rgba(236, 226, 206, 0.018); }


.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }


.spec-table td.num,
.spec-table .mono {
  font-family: var(--fabe-2e4);
  color: var(--ochre);
  font-size: 0.875rem;
}


.spec-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: var(--hair);
}


.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: var(--hair);
}


.spec-list dt {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dust);
}


.spec-list dd {
  margin: 0;
  color: var(--sand);
  min-width: 0;
  overflow-wrap: anywhere;
}


@media (min-width: 640px) {
  .spec-list > div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}


.form {
  display: grid;
  gap: var(--s-3);
  min-width: 0;
}


.form-grid {
  display: grid;
  gap: var(--s-3) var(--s-3);
  grid-template-columns: minmax(0, 1fr);
}


.form-grid > * { min-width: 0; }


@media (min-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form-grid .field--full { grid-column: 1 / -1; }
}


.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}


.field__label,
.form label:not(.check) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sand);
}


.field__opt {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
}


.field__hint {
  font-size: 0.8125rem;
  color: var(--dust);
  line-height: 1.45;
}


.input,
.select,
.textarea,
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="search"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sand);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}


.textarea,
.form textarea {
  min-height: 8.5rem;
  resize: vertical;
}


.select,
.form select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ochre) 50%), linear-gradient(135deg, var(--ochre) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}


.input::placeholder,
.textarea::placeholder,
.form input::placeholder,
.form textarea::placeholder { color: #7a705f; }


.input:hover,
.select:hover,
.textarea:hover,
.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: #564c3f;
  background-color: #1e1a16;
}


.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(198, 161, 95, 0.22);
}


.input:active,
.form input:active,
.form select:active,
.form textarea:active { border-color: var(--ochre); }


.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea,
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.form [aria-invalid="true"] {
  border-color: var(--terracotta);
  background-color: rgba(180, 105, 76, 0.07);
}


.field.is-invalid input:focus-visible,
.form [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(180, 105, 76, 0.28); }


.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: var(--terracotta-soft);
  border-left: 2px solid var(--terracotta);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #ebb49b;
}


.field__error:empty { display: none; }


.check {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sand-2);
  cursor: pointer;
}


.check input[type="checkbox"],
.check input[type="radio"] {
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--dust);
  border-radius: var(--radius);
  background: var(--ground);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}


.check input[type="radio"] { border-radius: 50%; }


.check input::before {
  content: "";
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--ground);
  border-bottom: 2px solid var(--ground);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--dur-1) var(--ease-out);
}


.check input[type="radio"]::before {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--ground);
  transform: scale(0);
}


.check input:checked {
  background: var(--ember);
  border-color: var(--ember);
}


.check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input[type="radio"]:checked::before { transform: scale(1); }


.check:hover input { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(236, 226, 206, 0.06); }
.check:active input { box-shadow: 0 0 0 4px rgba(217, 119, 63, 0.2); }
.check input:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }


.check a { color: var(--sand); }


.field.is-invalid .check input,
.check input[aria-invalid="true"] { border-color: var(--terracotta); }


.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}


.seg__opt {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}


.seg__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}


.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border-right: var(--hair);
  font-family: var(--fabe-2e4);
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: center;
  color: var(--dust);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


.seg__opt:last-child span { border-right: 0; }
.seg__opt:hover span { background: rgba(236, 226, 206, 0.05); color: var(--sand); }
.seg__opt:active span { background: rgba(236, 226, 206, 0.1); }
.seg__opt input:checked + span { background: var(--sand); color: var(--ground); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: -3px; }


.range {
  width: 100%;
  min-height: 44px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}


.range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line);
}


.range::-moz-range-track {
  height: 2px;
  background: var(--line);
}


.range::-moz-range-progress {
  height: 2px;
  background: var(--ember);
}


.range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--sand);
  border: 3px solid var(--ground);
  box-shadow: 0 0 0 1px var(--ochre);
  transition: box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}


.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  border: 3px solid var(--ground);
  box-shadow: 0 0 0 1px var(--ochre);
}


.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ochre), 0 0 0 7px rgba(198, 161, 95, 0.16); }
.range:active::-webkit-slider-thumb { background: var(--ember); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ochre), 0 0 0 7px rgba(198, 161, 95, 0.25); }
.range:hover::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ochre), 0 0 0 7px rgba(198, 161, 95, 0.16); }
.range:active::-moz-range-thumb { background: var(--ember); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--ochre), 0 0 0 7px rgba(198, 161, 95, 0.25); }


.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  padding-top: var(--s-2);
  border-top: var(--hair);
}


.form__note {
  font-size: 0.8125rem;
  color: var(--dust);
  max-width: 46ch;
}


.form__status {
  font-size: 0.9375rem;
  line-height: 1.5;
}


.form__status:empty { display: none; }


.form__status.is-error {
  padding: 0.75rem 1rem;
  background: var(--terracotta-soft);
  border-left: 2px solid var(--terracotta);
  color: #ebb49b;
}


.form__status.is-ok {
  padding: 0.75rem 1rem;
  background: var(--olive-soft);
  border-left: 2px solid var(--olive);
  color: #cfd0a8;
}


.site-footer {
  position: relative;
  margin-top: 0;
  padding: clamp(3.5rem, 8vh, 6rem) 0 calc(var(--s-3) + 4.5rem);
  background: var(--ground);
  border-top: var(--hair);
}


.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(4rem, 18%, 12rem);
  height: 1px;
  background: var(--ember);
}


.footer__grid {
  display: grid;
  gap: var(--s-4) var(--s-5);
  grid-template-columns: minmax(0, 1fr);
}


.footer__grid > * { min-width: 0; }


@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}


.footer__brand img {
  height: 3.8rem;
  width: auto;
}


.footer__line {
  margin-top: var(--s-3);
  max-width: 36ch;
  font-family: var(--fabe-79c);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--sand);
}


.footer__line em { font-style: italic; color: var(--sand-2); }


.footer__intro {
  margin-top: var(--s-2);
  max-width: 44ch;
  font-size: var(--fs-small);
  color: var(--dust);
}


.footer__heading {
  margin-bottom: var(--s-2);
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ochre);
}


.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}


.footer__list a,
.footer__address a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--sand-2);
  text-decoration: none;
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
  transition: color var(--dur-2) var(--ease-out);
}


.footer__list a:hover,
.footer__address a:hover { color: var(--ochre); }
.footer__list a:active,
.footer__address a:active { color: var(--ember); }
.footer__list a:focus-visible,
.footer__address a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }


.footer__address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--sand-2);
}


.footer__address .icon { color: var(--ochre); width: 1rem; height: 1rem; }


.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: var(--hair);
}


.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.footer__legal-list a,
.footer__legal-list button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}


.footer__legal-list a:hover,
.footer__legal-list button:hover { color: var(--sand); border-bottom-color: var(--ochre); }
.footer__legal-list a:active,
.footer__legal-list button:active { color: var(--ember); }
.footer__legal-list a:focus-visible,
.footer__legal-list button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }


.footer__copy {
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  color: var(--dust);
  letter-spacing: 0.04em;
}


.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-consent);
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.9);
}


.consent::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--ember);
}


@media (min-width: 1024px) {
  .consent { left: var(--sidebar-w); }
}


.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
}


.consent__text {
  flex: 1 1 22rem;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--sand-2);
}


.consent__text a { color: var(--sand); }


.consent__actions {
  display: flex;
  flex: 0 1 auto;
  gap: 0.5rem;
}


.consent__actions .btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}


@media (max-width: 520px) {
  .consent__inner { padding-block: 0.65rem; }
  .consent__text { flex-basis: 100%; font-size: 0.8125rem; }
  .consent__actions { flex: 1 1 100%; }
  .consent__actions .btn { flex: 1 1 0; }
}


.chat-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-chat);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.7rem 1.1rem 0.7rem 0.95rem;
  background: var(--sand);
  color: var(--ground);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--fabe-963);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(26, 23, 20, 0.4);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), bottom var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}


.chat-launcher .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--ember-lo);
}


.chat-launcher:hover {
  background: #f7efdf;
  border-color: var(--ember);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.95), 0 0 0 3px rgba(217, 119, 63, 0.35);
  transform: translateY(-2px);
}


.chat-launcher:active {
  background: var(--sand-2);
  border-color: var(--ember-lo);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.95);
  transform: translateY(1px);
}


.chat-launcher:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}


.chat-launcher[aria-expanded="true"] {
  background: var(--panel-2);
  color: var(--sand);
  border-color: var(--line);
}


.chat-launcher[aria-expanded="true"] .icon { color: var(--ember); }


.chat-launcher__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  min-height: 1.4rem;
  padding: 0 0.35rem;
  background: var(--ember);
  color: var(--ink-on-accent);
  border-radius: 999px;
  font-family: var(--fabe-2e4);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
}


.chat-launcher__badge:empty,
.chat-launcher__badge[data-count="0"] { display: none; }


body.consent-open .chat-launcher { bottom: calc(var(--consent-h, 7.5rem) + 0.75rem); }


@media (max-width: 520px) {
  .chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launcher { padding: 0.7rem; min-width: 52px; justify-content: center; }
}


.chat-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
  z-index: var(--z-chat);
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 2rem));
  height: min(580px, calc(100svh - 7rem));
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 1px solid var(--ember);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}


.chat-panel[hidden] { display: none; }


body.consent-open .chat-panel {
  bottom: calc(var(--consent-h, 7.5rem) + 5rem);
  height: min(560px, calc(100svh - var(--consent-h, 7.5rem) - 6.5rem));
}


@media (max-width: 520px) {
  .chat-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.5rem;
    height: calc(100svh - 6rem);
  }
}


.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border-bottom: var(--hair);
  background: var(--panel-2);
}


.chat-panel__title {
  font-family: var(--fabe-79c);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--sand);
}


.chat-panel__sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-family: var(--fabe-2e4);
  font-size: var(--fs-micro);
  color: var(--dust);
}


.chat-panel__sub::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--olive);
}


.chat-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--dust);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}


.chat-panel__close .icon { width: 1.2rem; height: 1.2rem; }
.chat-panel__close:hover { background: var(--line); color: var(--sand); }
.chat-panel__close:active { background: var(--ground); border-color: var(--ochre); }
.chat-panel__close:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; }


.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  background: var(--ground);
}


.chat-msg {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}


.chat-msg--agent,
.chat-msg--system {
  align-self: flex-start;
  background: var(--panel);
  border: var(--hair);
  border-left: 2px solid var(--olive);
  color: var(--sand-2);
}


.chat-msg--me {
  align-self: flex-end;
  background: var(--sand);
  color: var(--ground);
}


.chat-msg--pending { opacity: 0.6; }


.chat-msg--failed {
  background: var(--terracotta-soft);
  color: #ebb49b;
  border: 1px solid var(--terracotta);
}


.chat-msg__meta {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--fabe-2e4);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}


.chat-retry {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 0.3rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color var(--dur-2) var(--ease-out);
}


.chat-retry:hover { background: rgba(236, 226, 206, 0.1); }
.chat-retry:active { background: rgba(236, 226, 206, 0.2); }
.chat-retry:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }


.chat-intro {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-top: var(--hair);
  background: var(--panel);
  overflow-y: auto;
}


.chat-intro .input { min-height: 44px; }


.chat-intro .check { font-size: 0.8125rem; padding: 0.25rem 0; }


.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: var(--hair);
  background: var(--panel);
}


.chat-compose textarea,
.chat-compose .textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 8rem;
  resize: none;
  padding: 0.6rem 0.75rem;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sand);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}


.chat-compose textarea:hover { border-color: #564c3f; }
.chat-compose textarea:focus-visible { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(198, 161, 95, 0.22); }


.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--ember);
  color: var(--ink-on-accent);
  border-radius: var(--radius);
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}


.chat-send .icon { width: 1.15rem; height: 1.15rem; }
.chat-send:hover { background: var(--ember-hi); box-shadow: var(--shadow-ember); }
.chat-send:active { background: var(--ember-lo); transform: translateY(1px); box-shadow: none; }
.chat-send:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.chat-send[disabled] { opacity: 0.5; cursor: not-allowed; }


.chat-error {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  color: #ebb49b;
  background: var(--terracotta-soft);
}


.chat-error:empty { display: none; }
