:root {
  /* Системный шрифт: нейтральный и без лицензионных ограничений. */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: #171918;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #373a36;
  font-family: var(--font);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 6px solid #fe5000;
  outline-offset: 6px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#stage {
  position: relative;
  flex: none;
}
.device {
  width: 1080px;
  height: 1920px;
  transform-origin: top left;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
header {
  height: 130px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand .brand-logo {
  width: 260px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}
.brand .brand-mark {
  width: 64px;
  height: 64px;
}
.brand-name {
  font-size: 34px;
  font-weight: 700;
  color: #1f2a37;
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office {
  font-size: 25px;
  color: #888;
}
.office:before {
  content: '●';
  color: #fe5000;
  margin-right: 14px;
}
.layout {
  padding: 0 68px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.promo {
  height: 305px;
  flex: none;
  background: #fff1e5;
  border-radius: 44px;
  padding: 40px 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.promo:before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: 50px;
  background: #ffd3af;
  border-radius: 50%;
}
.promo b {
  font-size: 42px;
  line-height: 1.1;
  display: block;
}
.promo p {
  font-size: 25px;
  line-height: 1.35;
  margin: 22px 0 0;
}
.promo-card {
  position: relative;
  width: 350px;
  height: 220px;
  background: linear-gradient(135deg, #fe5000, #ffac69);
  color: #fff;
  border-radius: 27px;
  transform: rotate(-9deg);
  padding: 26px;
  box-shadow: 0 18px 40px #a9390022;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-card img {
  width: 125px;
  filter: brightness(0) invert(1);
}
.promo-card span {
  font-size: 25px;
  line-height: 1.15;
}
.promo-card i {
  position: absolute;
  right: 25px;
  bottom: 17px;
  font-size: 60px;
  font-style: normal;
}
.assistant {
  position: relative;
  background: linear-gradient(120deg, #fe5000, #fa7d35);
  overflow: hidden;
  border-radius: 44px;
  flex: none;
  color: #fff;
}
.hero-home {
  height: 790px;
  border-radius: 44px 44px 0 0;
}
.assistant > img {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 20%;
  mask-image: linear-gradient(to right, transparent, #000 13%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%);
}
.assistant-label {
  position: absolute;
  left: 46px;
  top: 40px;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}
.assistant-label i {
  background: #fff;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.assistant-note {
  position: absolute;
  left: 46px;
  top: 235px;
  width: 410px;
}
.assistant-note h1 {
  font-size: 64px;
  line-height: 1.08;
  color: white;
  margin: 0 0 30px;
  letter-spacing: -1px;
}
.role {
  font-size: 29px;
  line-height: 1.25;
  margin: 0 0 38px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 22px;
  padding: 28px 40px;
  font-size: 32px;
  font-weight: 700;
  background: #fe5000;
  color: #fff;
}
.primary:hover {
  background: #e44700;
}
.secondary {
  border: 2px solid #ddd;
  background: white;
  color: #373a36;
}
.start {
  background: white;
  color: #373a36;
  width: 310px;
}
.start:hover {
  background: #fff1e5;
}
.speech {
  font-size: 28px;
  line-height: 1.35;
}
.hero-home .speech > span {
  display: none;
}
.speech-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 22px;
  margin-top: 24px;
}
.replay {
  background: none;
  color: inherit;
  border: 0;
  padding: 0;
  font-size: 24px;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.hero-home #speech-status {
  display: none;
}
.main {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d8d8d5 transparent;
  padding-bottom: 6px;
}
.home {
  gap: 40px;
}
.home .main {
  margin-top: -40px;
  position: relative;
  z-index: 1;
  flex: none;
  background: #5c6265;
  padding: 38px 42px;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  position: relative;
  min-height: 180px;
  border: 2px solid #e9e9e5;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.card:hover {
  background: #fff4ed;
  border-color: #fe5000;
}
.card b {
  font-size: 31px;
  line-height: 1.12;
  font-weight: 500;
  display: block;
  max-width: 90%;
}
.card small {
  font-size: 23px;
  line-height: 1.2;
  color: #888;
  margin-top: 14px;
  display: block;
}
.card .num {
  color: #fe5000;
  font-size: 23px;
}
.card .arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  color: #fe5000;
  font-size: 35px;
}
.card.security {
  grid-column: 1/-1;
  min-height: 115px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  background: #fff1e5;
  border-color: #fff1e5;
  padding: 24px 30px;
}
.card.security b {
  font-size: 29px;
}
.card.security .num {
  font-size: 30px;
  width: 45px;
  height: 45px;
  border: 2px solid #fe5000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.home .card {
  min-height: 145px;
  padding: 22px;
}
.home .card b {
  font-size: 28px;
}
.home .card small {
  display: none;
}
.home .card .num {
  font-size: 20px;
}
.home .card .arrow {
  font-size: 30px;
  right: 18px;
  top: 18px;
}
.home .card.security {
  min-height: 104px;
  padding: 21px;
}
.home .card.security b {
  font-size: 27px;
}
.hero-compact {
  height: 435px;
}
.hero-compact > img {
  width: 40%;
  object-position: 50% 18%;
}
.hero-compact .assistant-label {
  top: 28px;
  font-size: 25px;
}
.hero-compact .assistant-note {
  top: 85px;
  width: 535px;
}
.name {
  font-size: 49px;
  font-weight: 700;
  margin: 0 0 15px;
}
.hero-compact .speech {
  font-size: 27px;
  line-height: 1.35;
}
.hero-compact .speech-footer {
  font-size: 20px;
  gap: 24px;
}
.hero-compact .replay {
  font-size: 22px;
}
.subscreen {
  gap: 32px;
}
.subscreen h1 {
  font-size: 53px;
  line-height: 1.08;
  margin: 22px 0 20px;
  letter-spacing: -0.5px;
}
.subscreen h1 em {
  color: #fe5000;
  font-style: normal;
}
.subtitle {
  font-size: 28px;
  line-height: 1.35;
  color: #888;
  margin: 0 0 32px;
}
.crumb {
  font-size: 23px;
  color: #999;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  line-height: 1.2;
}
.crumb button,
.back {
  background: none;
  border: 0;
  color: #777;
  padding: 0;
  text-align: left;
  font-size: inherit;
}
.back {
  font-size: 28px;
  margin-bottom: 10px;
}
.crumb button:hover,
.back:hover {
  color: #fe5000;
}
.subscreen .card {
  min-height: 170px;
}
.subscreen .card .num {
  display: none;
}
.subscreen .card b {
  font-size: 32px;
}
.subscreen .card small {
  font-size: 24px;
}
.search {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px solid #dededb;
  border-radius: 22px;
  padding: 0 25px;
  margin-bottom: 30px;
}
.search span {
  font-size: 42px;
  color: #888;
}
.search input {
  font-size: 29px;
  padding: 27px 0;
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  outline: none;
}
.search button {
  background: none;
  border: 0;
  color: #fe5000;
  font-size: 38px;
}
.search button[hidden] {
  display: none;
}
.footer {
  height: 140px;
  flex: none;
  padding: 28px 68px 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  background: #fff;
}
.language {
  font-size: 25px;
  background: #f3f3f2;
  padding: 15px 18px;
  border-radius: 22px;
}
.sound {
  border: 2px solid #dededb;
  border-radius: 24px;
  padding: 17px 22px;
  background: #fff;
  font-size: 24px;
}
.sound.active {
  color: #fe5000;
  border-color: #fe5000;
}
.home-button {
  margin-left: auto;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #fe5000;
  font-size: 45px;
  line-height: 1;
}
.demo {
  font-size: 19px;
  color: #999;
  width: 170px;
  text-align: right;
  line-height: 1.2;
}
.actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.confirm {
  padding: 38px;
  border: 2px solid #e4e4e1;
  border-radius: 30px;
  background: #fafaf9;
}
.confirm h2 {
  font-size: 41px;
  line-height: 1.15;
  margin: 0 0 30px;
}
.tag {
  display: inline-block;
  color: #fe5000;
  background: #fff1e5;
  border-radius: 30px;
  padding: 14px 25px;
  font-size: 23px;
  margin-bottom: 25px;
}
.details {
  display: grid;
  gap: 30px;
  font-size: 26px;
  color: #888;
  line-height: 1.3;
}
.details strong {
  display: block;
  color: #373a36;
  font-weight: 500;
  font-size: 30px;
  margin-top: 8px;
}
.notice {
  font-size: 26px;
  line-height: 1.35;
  color: #888;
  margin: 25px 0;
}
.error {
  font-size: 28px;
  line-height: 1.3;
  color: #b02f00;
}
.warning {
  padding: 38px;
  background: #fff1e5;
  border-radius: 30px;
  font-size: 36px;
  line-height: 1.3;
  margin: 30px 0;
}
.warning b {
  color: #fe5000;
}
.ticket {
  border: 2px solid #e4e4e1;
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
}
.ticket-top {
  padding: 32px;
  font-size: 27px;
}
.ticket-number {
  font-size: 135px;
  font-weight: 700;
  color: #fe5000;
  margin: 20px 0;
  line-height: 1;
}
.ticket-line {
  border-top: 3px dashed #ddd;
  padding: 30px;
  text-align: left;
  font-size: 28px;
  line-height: 1.3;
}
.ticket-line strong {
  font-size: 34px;
}
.rating {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.rating button {
  width: 100px;
  height: 100px;
  border: 2px solid #ddd;
  background: white;
  color: #fe5000;
  border-radius: 22px;
  font-size: 45px;
}
.rating button.selected {
  background: #fe5000;
  color: white;
}
.empty {
  padding: 35px;
  background: #fafaf9;
  font-size: 30px;
  grid-column: 1/-1;
}
.speaking .assistant-label i {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.2;
    box-shadow: 0 0 0 10px #ffffff33;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
@media print {
  html,
  body {
    overflow: visible;
    height: auto;
    background: white;
    display: block;
  }
  #stage {
    width: auto !important;
    height: auto !important;
  }
  .device {
    width: auto;
    height: auto;
    transform: none !important;
    overflow: visible;
  }
  header,
  .assistant,
  .footer,
  .actions,
  .back,
  .crumb,
  h1,
  .subtitle,
  .promo,
  .rating,
  .notice {
    display: none !important;
  }
  .layout {
    display: block;
    padding: 0;
  }
  .main {
    overflow: visible;
  }
  .ticket {
    width: 80mm;
    border: 0;
  }
  .ticket-top {
    font-size: 14px;
    padding: 10px;
  }
  .ticket-number {
    font-size: 50px;
  }
  .ticket-line {
    padding: 10px;
    font-size: 14px;
  }
  .ticket-line strong {
    font-size: 18px;
  }
  .tag {
    font-size: 12px;
    padding: 5px;
  }
}

.home .main {
  padding-top: 32px;
  padding-bottom: 32px;
}

button.language {
  border: 0;
  min-width: 125px;
  cursor: pointer;
}
button.language:hover {
  background: #fff1e5;
}
html[lang='en'] .hero-home .role {
  font-size: 27px;
}
html[lang='en'] .home .card b {
  font-size: 27px;
}
.home .hero-home {
  height: 720px;
}
.home .assistant-note {
  top: 185px;
}
.home .card.security {
  grid-column: auto;
  min-height: 145px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
}
.home .card.security .num {
  font-size: 20px;
  width: auto;
  height: auto;
  border: 0;
  display: block;
}
.home .card.security b {
  font-size: 27px;
}
.extra-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.extra-screen h2 {
  font-size: 33px;
  line-height: 1.25;
}
.extra-screen .card {
  min-height: 145px;
}
.extra-screen .main {
  padding-bottom: 35px;
}
.reason-grid,
.map-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
}
.reason-grid button,
.map-zones button {
  font-size: 26px;
  padding: 20px 25px;
  border-radius: 20px;
}
.extra-field {
  display: block;
  font-size: 28px;
  margin: 30px 0;
}
.extra-field > span {
  display: block;
  margin-bottom: 13px;
}
.extra-input {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.extra-input input,
.extra-input textarea,
.extra-field select {
  min-width: 0;
  flex: 1;
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  font: inherit;
  color: #373a36;
}
.extra-input textarea {
  resize: vertical;
}
.keyboard-toggle {
  border: 2px solid #ddd;
  background: #fff;
  color: #777;
  border-radius: 18px;
  font-size: 35px;
  padding: 18px;
}
.contacts {
  border: 2px solid #e4e4e1;
  border-radius: 24px;
  padding: 24px;
  margin: 25px 0;
  font-size: 28px;
}
.contacts summary {
  cursor: pointer;
  color: #777;
}
.consent {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  font-size: 25px;
  line-height: 1.35;
}
.consent input {
  width: 30px;
  height: 30px;
  flex: none;
  accent-color: #fe5000;
}
.rating-result {
  display: flex;
  gap: 10px;
  margin: 8px 0 24px;
}
.rating-result span {
  font-size: 84px;
  line-height: 1;
  color: #d8dce3;
}
.rating-result span.on {
  color: #fe5000;
}
.extra-rating button {
  width: 115px;
  height: 105px;
  font-size: 64px;
}
.extra-rating button.selected {
  background: #fff1e5;
  color: #fe5000;
  border-color: #fe5000;
}
.extra-keyboard {
  background: #f1f1ee;
  padding: 22px;
  border-radius: 25px;
  margin: 25px 0;
}
.extra-keyboard > div {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.extra-keyboard button {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  min-width: 50px;
  height: 68px;
  font-size: 28px;
  flex: 1;
}
.extra-keyboard .keyboard-close {
  font-size: 24px;
  width: 100%;
  height: 55px;
  margin-top: 10px;
  background: #373a36;
  color: white;
}
.usefulness {
  border-top: 2px solid #ddd;
  padding-top: 30px;
  margin-top: 35px;
  font-size: 29px;
}
.source-link {
  display: inline-block;
  color: #fe5000;
  font-size: 27px;
  line-height: 1.3;
  margin: 18px 0;
  text-underline-offset: 6px;
}
.answer-copy {
  font-size: 33px;
  line-height: 1.45;
  background: #fafaf8;
  border-radius: 28px;
  padding: 30px;
}
.answer-copy p {
  margin: 0 0 15px;
}
.faq-list {
  display: grid;
  gap: 18px;
}
.faq-row {
  border: 2px solid #e4e4e1;
  border-radius: 23px;
  background: white;
  color: #373a36;
  padding: 28px;
  text-align: left;
  font-size: 32px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  line-height: 1.25;
}
.faq-row span {
  color: #fe5000;
}
.question-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.question-suggestions button {
  font-size: 25px;
  padding: 20px;
}
.question-quote {
  padding: 25px;
  background: #fff1e5;
  color: #fe5000;
  font-size: 31px;
  border-radius: 23px;
  margin: 25px 0;
  overflow-wrap: anywhere;
}
.success-icon {
  width: 150px;
  height: 150px;
  background: #fff1e5;
  color: #fe5000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 83px;
  margin: 45px auto;
}
.request-code {
  font-size: 40px;
  color: #fe5000;
  line-height: 1.25;
}
.map-viewport-extra {
  height: 620px;
  overflow: auto;
  touch-action: pan-x pan-y;
  border: 2px solid #e4e4e1;
  border-radius: 25px;
  background: #fafaf8;
}
.map-viewport-extra svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-toolbar {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin: 15px 0;
}
.map-toolbar button {
  padding: 10px 25px;
  min-width: 80px;
  font-size: 35px;
}
.demo-map-label {
  font-size: 24px;
  color: #888;
  margin: 10px 0 20px;
}
.route-copy {
  font-size: 30px;
  line-height: 1.35;
  padding: 27px;
  background: #fff1e5;
  border-radius: 23px;
}
.extra-screen .hero-compact .speech {
  font-size: 25px;
}
.extra-screen .hero-compact .assistant-note {
  top: 77px;
}
.extra-screen .hero-compact .name {
  font-size: 42px;
  margin-bottom: 8px;
}
.extra-screen .hero-compact .speech-footer {
  margin-top: 13px;
}
.extra-screen .primary {
  margin-right: 10px;
}
.extra-screen button:disabled {
  opacity: 0.5;
}
.extra-screen form .primary {
  margin: 0;
}
.extra-screen .speech > span {
  display: block;
  max-height: none;
  overflow: visible;
}
.map-page .assistant {
  display: none;
}
.map-page .map-viewport-extra {
  height: 920px;
}
.map-page .map-toolbar {
  align-items: center;
  justify-content: space-between;
}
.map-page .map-toolbar button:first-child {
  font-size: 26px;
  padding: 18px 25px;
}
.map-page .route-copy {
  margin-top: 20px;
  margin-bottom: 25px;
}
.map-page .map-zones {
  gap: 10px;
  margin: 15px 0;
}
.map-page .map-zones button {
  font-size: 24px;
  padding: 15px 20px;
  margin-right: 0;
}
.map-page .map-toolbar {
  margin: 10px 0;
}
.map-page .route-copy {
  font-size: 27px;
  padding: 20px;
  margin: 15px 0;
}
.map-page .main > .primary {
  font-size: 28px;
  padding: 22px 30px;
}

/* Footer controls: the assistant indicator stays at the canvas midpoint. */
.footer .sound {
  width: 70px;
  height: 70px;
  padding: 15px;
  border: 0;
  background: #f3f3f2;
  border-radius: 22px;
  color: #777;
  display: grid;
  place-items: center;
  flex: none;
}
.footer .sound.active {
  color: #fe5000;
  background: #fff1e5;
}
.sound svg {
  width: 40px;
  height: 40px;
  overflow: visible;
}
.sound svg path:not(:first-child) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.sound svg .mute-line {
  stroke-width: 3.5;
  stroke: #777;
  paint-order: stroke;
}
.footer .home-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 80px;
  height: 80px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 4px;
}
.leia-spinner {
  display: block;
  width: 64px;
  height: 64px;
  border: 6px solid #fe50002b;
  border-top-color: #fe5000;
  border-right-color: #fe5000;
  border-radius: 50%;
  animation: leia-shimmer 2.6s ease-in-out infinite;
}
.is-speaking .leia-spinner {
  animation: leia-spin 1.2s linear infinite;
  opacity: 1;
}
.footer .demo {
  margin-left: auto;
}
@keyframes leia-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes leia-shimmer {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

/* A larger, uncluttered assistant prompt on section screens. */
.hero-compact .assistant-note {
  top: 110px;
}
.hero-compact .speech {
  font-size: 34px;
  line-height: 1.3;
}

.footer-home {
  margin-left: auto;
  border: 0;
  border-radius: 22px;
  background: #f0f0f4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  font-size: 27px;
  color: #172030;
  min-height: 76px;
}
.footer-home svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fe5000;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-home:hover {
  background: #e7e7ed;
}
@media print {
  .footer-home {
    display: none !important;
  }
}

.confirm-light {
  padding: 36px;
  border: 0;
  background: #fafaf9;
}
.confirm-light h2 {
  margin: 0 0 12px;
  font-size: 42px;
}
.service-context {
  font-size: 27px;
  color: #888;
  margin: 0 0 30px;
  line-height: 1.3;
}
.confirm-light .actions {
  margin-top: 30px;
}
.specialist-link {
  display: block;
  border: 0;
  background: none;
  color: #fe5000;
  font-size: 28px;
  padding: 20px 0 8px;
  text-align: left;
}
.specialist-link:hover {
  text-decoration: underline;
}
.local-ticket-note {
  font-size: 22px;
  line-height: 1.3;
  color: #999;
  margin: 22px 0 0;
}

/* Pictograms help identify each action without extra labels. */
.card .context-icon {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
}
.card > div,
.card > b {
  width: calc(100% - 95px);
  max-width: calc(100% - 95px);
}
.card > div b {
  max-width: 100%;
}
.card.security {
  display: block;
}
.card.security b {
  max-width: 100%;
}
.home .card .context-icon {
  width: 75px;
  height: 75px;
  right: 14px;
  bottom: 18px;
}
.home .card > div,
.home .card > b {
  width: calc(100% - 75px);
  max-width: calc(100% - 75px);
}
.home .card b {
  font-size: 26px;
}
.home .card.security b {
  font-size: 26px;
}
button:not(.card) > .context-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
  pointer-events: none;
}
.faq-row .context-icon {
  width: 54px;
  height: 54px;
}
.specialist-link .context-icon {
  width: 42px;
  height: 42px;
}

/* Page copy belongs to the character banner; the content area keeps forms/buttons. */
.assistant-label {
  display: none !important;
}
.hero-compact .assistant-note,
.extra-screen .hero-compact .assistant-note {
  top: 48px;
  max-height: calc(100% - 80px);
  overflow-y: auto;
}
.hero-compact .assistant-note .page-banner-heading {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: pre-line;
  margin: 0 0 18px;
  color: #fff;
}
.hero-compact .assistant-note .page-banner-body {
  font-size: 30px;
  line-height: 1.3;
  white-space: pre-line;
  margin: 0;
  color: #fff;
}
.hero-compact .assistant-note,
.extra-screen .hero-compact .assistant-note {
  padding-bottom: 8px;
}
/* The original upper promotion is now a carousel with indicators below it. */
.promo-carousel-shell {
  height: 342px;
  flex: none;
  min-width: 0;
}
.promo-carousel {
  height: 305px;
  position: relative;
  border-radius: 44px;
  overflow: hidden;
}
.promo-carousel .promo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 305px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}
.promo-carousel .promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.promo-copy {
  position: relative;
  z-index: 1;
  max-width: 52%;
  white-space: pre-line;
}
.promo-copy b {
  font-size: 38px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.promo-copy p {
  font-size: 24px;
  line-height: 1.3;
  margin: 18px 0 0;
  overflow-wrap: anywhere;
}
.promo-slide-image {
  position: relative;
  width: 40%;
  height: 235px;
  border-radius: 22px;
  object-fit: cover;
}
.promo-dots {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.promo-dot {
  width: 44px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 10px;
}
.promo-dot span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #adb4b0;
  transition:
    background 0.3s,
    transform 0.3s;
}
.promo-dot.active span {
  background: #fe5000;
  transform: scale(1.18);
}
.promo-dot:focus-visible {
  outline: 3px solid #fe5000;
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .promo-carousel .promo-slide,
  .promo-dot span {
    transition: none;
  }
}
@media print {
  .promo-carousel-shell {
    display: none !important;
  }
}
.promo-copy b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 23px;
}
.promo-carousel .promo-slide.full-image:before {
  display: none;
}
.promo-carousel .full-image .promo-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 0;
}
.promo-carousel .full-image:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000b, transparent 90%);
  z-index: 0;
  pointer-events: none;
}
.promo-carousel .full-image.image-only:after {
  display: none;
}
.promo-carousel .full-image .promo-copy {
  max-width: 70%;
}

/* Contrast button preset (id "atb-site" kept for saved configs), selected in the terminal constructor. */
.atb-site-buttons button {
  font-family: var(--font);
  border-radius: 6px;
  font-weight: 400;
  box-shadow: none;
}
.atb-site-buttons .primary,
.atb-site-buttons .page-added-buttons .primary {
  background: #fe5000;
  color: #fff;
  border: 1px solid #fe5000;
  text-transform: uppercase;
  font-weight: 400;
}
.atb-site-buttons .secondary,
.atb-site-buttons button.card,
.atb-site-buttons footer button {
  background: #fff;
  color: #fe5000;
  border: 1px solid #fe5000;
  text-transform: uppercase;
  font-weight: 400;
}
.atb-site-buttons button.card b {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}
.atb-site-buttons button.card small {
  color: #666;
  text-transform: none;
}
.atb-site-buttons .primary:hover {
  background: #e44700;
  border-color: #e44700;
}
.atb-site-buttons .secondary:hover,
.atb-site-buttons button.card:hover,
.atb-site-buttons footer button:hover {
  background: #fff4ed;
}
.atb-site-buttons button:focus-visible {
  outline: 3px solid #373a36;
  outline-offset: 4px;
}
.atb-site-buttons .home-carousel-dot {
  border: 0;
  text-transform: none;
}

/* Soft preset: 12 px buttons with a filled action colour, outlined secondary buttons,
   24 px cards on a light panel, line pictograms and a primary-to-action gradient.
   #fe5000 is replaced by the primary colour, #ff4f12 by the action colour (platform.js). */
#app.theme-soft button {
  font-family: var(--font);
  border-radius: 12px;
  font-weight: 400;
  box-shadow: none;
  text-transform: none;
}
#app.theme-soft .primary,
#app.theme-soft .page-added-buttons .primary {
  background: #ff4f12;
  color: #fff;
}
#app.theme-soft .primary:hover {
  filter: brightness(0.92);
}
#app.theme-soft .secondary,
#app.theme-soft footer button {
  background: #fff;
  color: #101828;
  border: 2px solid #e3e8ec !important;
}
#app.theme-soft .secondary:hover,
#app.theme-soft footer button:hover {
  border-color: #fe5000 !important;
}
#app.theme-soft button.card {
  background: #fff;
  color: #101828;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
#app.theme-soft button.card b {
  font-weight: 500;
}
#app.theme-soft button.card small {
  color: #6b7280;
}
#app.theme-soft .home .main {
  background: #f1f3f5;
}
#app.theme-soft .assistant {
  background: linear-gradient(85deg, #fe5000 -3%, #fe5000 25%, #ff4f12 104%);
}
#app.theme-soft .promo,
#app.theme-soft .promo-slide {
  border-radius: 24px;
}
/* Line pictogram on a light tile, tinted with the primary colour through a CSS mask. */
.line-icon {
  display: inline-block;
  position: relative;
  background: #f1f3f5;
  border-radius: 12px;
}
.line-icon::before {
  content: '';
  position: absolute;
  inset: 20%;
  background: #fe5000;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* Terminal buttons have no decorative borders; keyboard focus stays visible. */
#app button {
  border: 0 !important;
}

/* Pointer and touch feedback; authored hover color overrides the base fill. */
#app button {
  transition:
    background-color 0.18s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
#app button[style*='--button-hover-background']:not(:disabled):hover {
  background-color: var(--button-hover-background) !important;
}
#app button:not(:disabled):active {
  transform: translateY(3px) scale(0.98);
  box-shadow: inset 0 3px 7px #00000028;
}
@media (prefers-reduced-motion: reduce) {
  #app button {
    transition: none;
  }
  #app button:not(:disabled):active {
    transform: none;
    box-shadow: inset 0 3px 7px #00000038;
  }
}

#app button.auto-white-button {
  border: 1px solid #dbe0db !important;
}
#app button .button-custom-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
#app button.card .button-custom-icon {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 76px;
  height: 76px;
}
#app footer button .button-custom-icon {
  position: static;
  width: 32px;
  height: 32px;
}

/* Keep the centered assistant control anchored while it is pressed. */
#app .footer .home-button:not(:disabled):active {
  transform: translate(-50%, -50%) scale(0.94);
  border-radius: 50%;
  box-shadow: inset 0 3px 8px #00000024;
  background-color: #f4f4f2;
}
@media (prefers-reduced-motion: reduce) {
  #app .footer .home-button:not(:disabled):active {
    transform: translate(-50%, -50%);
  }
}

/* Secondary-page copy uses the full orange panel, without a scrollbar track. */
.hero-compact .assistant-note,
.extra-screen .hero-compact .assistant-note {
  left: 46px;
  right: 40%;
  top: 40px;
  bottom: 40px;
  width: auto;
  max-height: none;
  padding: 0 18px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.hero-compact .assistant-note::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.hero-compact .assistant-note .speech {
  width: 100%;
  max-width: none;
}

.hero-compact .assistant-note .speech > span {
  display: block;
  max-height: none;
  overflow: visible;
  scrollbar-width: none;
}
.hero-compact .assistant-note *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hero-compact .assistant-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-compact .assistant-note .speech {
  flex: none;
}

[data-rich-text-key] p,
[data-rich-text-key] div {
  margin: 0;
}
[data-rich-text-key] ul,
[data-rich-text-key] ol {
  padding-left: 24px;
  margin: 4px 0;
}

/* Stable frame shared by every screen; editable objects style only themselves. */
#app.device {
  width: 1080px;
  height: 1920px;
  min-width: 1080px;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  position: relative;
}

.lea-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 600px;
}
.lea-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 32px;
}
.lea-chat-top button {
  font-size: 24px;
  padding: 16px 22px;
}
.lea-chat-thread {
  flex: 1;
  min-height: 200px;
  max-height: 650px;
  overflow-y: auto;
  padding: 20px;
  background: #f6f7f8;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
}
.lea-chat-empty {
  font-size: 28px;
  line-height: 1.4;
  color: #68736e;
}
.lea-chat-message {
  font-size: 27px;
  line-height: 1.4;
  padding: 22px;
  border-radius: 22px;
  max-width: 95%;
  overflow-wrap: anywhere;
  flex: none;
}
.lea-chat-message.from-user {
  align-self: flex-end;
  background: #fff0e5;
}
.lea-chat-message.from-leia {
  align-self: flex-start;
  background: #fff;
  border: 2px solid #e6e8e4;
}
.lea-chat-message > b {
  display: block;
  font-size: 22px;
  color: #647168;
  margin-bottom: 8px;
}
.lea-chat-copy {
  white-space: pre-wrap;
}
.lea-chat-message details {
  font-size: 21px;
  margin-top: 14px;
  color: #68736e;
}
.lea-chat-message details p {
  margin: 6px 0;
}
.lea-chat-message button {
  font-size: 20px;
  padding: 10px 18px;
  margin-top: 12px;
}
.lea-chat-form {
  display: grid;
  gap: 12px;
}
.lea-chat-form label {
  font-size: 25px;
}
.lea-chat-form textarea {
  width: 100%;
  font: 28px var(--font);
  line-height: 1.35;
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 20px;
  resize: none;
  min-height: 115px;
  color: #373a36;
}
.lea-chat-form button {
  font-size: 26px;
  padding: 20px 28px;
}
.lea-chat-thinking {
  font-size: 24px;
  color: #bc4709;
  padding: 16px;
}
.lea-chat-hint {
  font-size: 20px;
  color: #77827b;
  margin: 0;
}
.lea-chat-hint.lea-dictation-hint {
  color: #373a36;
  background: #fff1e5;
  border-radius: 16px;
  padding: 12px 16px;
}
.lea-chat > .error {
  font-size: 24px;
  margin: 0;
}
.brand-mark {
  color: #fe5000;
  flex: none;
}

/* Shared typography and spacing for service cards on every terminal screen. */
#app .main .cards {
  gap: 14px;
}
#app .main .cards > .card {
  min-height: 146px;
  padding: 22px 26px;
  gap: 8px;
}
#app .main .cards > .card b {
  font-size: 24px;
  line-height: 1.15;
}
#app .main .cards > .card small {
  font-size: 18px;
  line-height: 1.2;
  margin-top: 8px;
}

/* Light preset ("light"): an airy layout built around the live character. Her photo or video
   fills a large stage, her words run as subtitles, and a status chip with a coloured ring shows
   whether she is speaking, listening or thinking (assistant-stage.js sets data-state).
   #fe5000 is replaced by the primary colour, #ff4f12 by the action colour (platform.js). */
#app.theme-light {
  background: #f5f4f9;
  color: #16131f;
}
#app.theme-light header {
  height: 112px;
  padding: 0 56px;
}
#app.theme-light .brand-name {
  color: #16131f;
  font-size: 30px;
  font-weight: 600;
}
#app.theme-light .layout {
  padding: 0 56px;
  gap: 24px;
}
#app.theme-light .layout.home > .assistant {
  order: 1;
}
#app.theme-light .layout.home > .main {
  order: 2;
}
#app.theme-light .layout.home > .promo-carousel-shell,
#app.theme-light .layout.home > .promo {
  order: 3;
}

/* Buttons */
#app.theme-light button {
  font-family: var(--font);
  box-shadow: none;
  text-transform: none;
}
#app.theme-light .primary,
#app.theme-light .page-added-buttons .primary {
  background: #fe5000;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 28px 44px;
}
#app.theme-light .primary:hover {
  filter: brightness(0.93);
}
#app.theme-light .secondary {
  background: #fff;
  color: #16131f;
  border-radius: 999px;
  font-weight: 500;
  border: 2px solid #e2dcef !important;
}
#app.theme-light .secondary:hover {
  border-color: #fe5000 !important;
}
#app.theme-light button:focus-visible {
  outline: 5px solid #fe5000;
  outline-offset: 5px;
}

/* The stage: photo or video of the character, edge to edge. */
#app.theme-light .assistant {
  background: #e9e6f2;
  color: #16131f;
  border-radius: 48px;
  transition: box-shadow 0.35s ease;
}
#app.theme-light .hero-home {
  height: 872px;
  border-radius: 48px;
}
#app.theme-light .hero-compact {
  height: 600px;
}
#app.theme-light .hero-compact > img,
#app.theme-light .hero-compact > video {
  object-position: 50% 14% !important;
}
#app.theme-light .assistant > img,
#app.theme-light .assistant > video {
  left: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 16% !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  transition: filter 0.4s ease;
}
#app.theme-light .assistant::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, #f5f4f9b3 82%, #f5f4f9e6 100%);
}
#app.theme-light .assistant-label {
  display: none;
}

/* Subtitles: what she says, on a frosted card at the bottom of the stage. */
#app.theme-light .assistant-note,
#app.theme-light .hero-compact .assistant-note,
#app.theme-light .extra-screen .hero-compact .assistant-note {
  z-index: 2;
  left: 32px;
  right: 32px;
  top: auto;
  bottom: 32px;
  width: auto;
  max-height: 46%;
  padding: 34px 196px 34px 40px;
  border-radius: 36px;
  background: #ffffffe6;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -24px #16131f40;
  color: #16131f;
  overflow-y: auto;
}
#app.theme-light .assistant-note h1 {
  color: #16131f;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
#app.theme-light .assistant-note .role {
  color: #5e5a6b;
  font-size: 27px;
  line-height: 1.3;
  margin: 0;
}
#app.theme-light .assistant-note .role br {
  display: none;
}
/* Subtitles keep one readable size: the auto-fit of the classic panel would cover her face. */
#app.theme-light .assistant-note .speech,
#app.theme-light .hero-compact .speech {
  font-size: 31px !important;
  line-height: 1.3 !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}
#app.theme-light .assistant-note .page-banner-heading {
  color: #16131f;
}

/* Status chip in the top-left corner of the stage. */
#app.theme-light .stage-status {
  position: absolute;
  z-index: 2;
  left: 32px;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  background: #ffffffd6;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 23px;
  font-weight: 600;
  color: #16131f;
}
#app.theme-light .stage-status i {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
}
#app.theme-light .stage-status i span {
  width: 5px;
  height: 10px;
  border-radius: 3px;
  background: #22a06b;
}
#app.theme-light [data-state='idle'] .stage-status i span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #22a06b33;
}
#app.theme-light [data-state='idle'] .stage-status i span + span {
  display: none;
}
#app.theme-light [data-state='speaking'] .stage-status i span {
  background: #fe5000;
  animation: stage-voice 0.9s ease-in-out infinite;
}
#app.theme-light [data-state='speaking'] .stage-status i span:nth-child(2) {
  animation-delay: -0.3s;
}
#app.theme-light [data-state='speaking'] .stage-status i span:nth-child(3) {
  animation-delay: -0.6s;
}
#app.theme-light [data-state='speaking'] .stage-status i span:nth-child(4) {
  animation-delay: -0.15s;
}
#app.theme-light [data-state='listening'] .stage-status i span {
  background: #1f9d63;
  animation: stage-voice 0.6s ease-in-out infinite;
}
#app.theme-light [data-state='listening'] .stage-status i span:nth-child(even) {
  animation-delay: -0.3s;
}
#app.theme-light [data-state='thinking'] .stage-status i span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d97a1e;
  animation: stage-think 1.2s ease-in-out infinite;
}
#app.theme-light [data-state='thinking'] .stage-status i span:nth-child(2) {
  animation-delay: 0.2s;
}
#app.theme-light [data-state='thinking'] .stage-status i span:nth-child(3) {
  animation-delay: 0.4s;
}
#app.theme-light [data-state='thinking'] .stage-status i span:nth-child(4) {
  display: none;
}
/* Ring around the stage: whose turn it is to speak. */
#app.theme-light .assistant[data-state='listening'] {
  box-shadow:
    inset 0 0 0 8px #1f9d63,
    inset 0 0 90px #1f9d6340;
}
#app.theme-light .assistant[data-state='listening']::after {
  box-shadow:
    inset 0 0 0 8px #1f9d63,
    inset 0 0 90px #1f9d6340;
}
#app.theme-light .assistant[data-state='thinking'] > img,
#app.theme-light .assistant[data-state='thinking'] > video {
  filter: saturate(0.85) brightness(0.98);
}

/* Microphone on the stage: answer her by voice. */
#app.theme-light .stage-mic {
  position: absolute;
  z-index: 3;
  right: 60px;
  bottom: 60px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fe5000;
  color: #fff;
  box-shadow:
    0 0 0 14px color-mix(in srgb, #fe5000 14%, transparent),
    0 22px 44px -16px #fe5000;
}
#app.theme-light .stage-mic svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#app.theme-light [data-state='listening'] .stage-mic {
  background: #16131f;
  box-shadow: 0 0 0 14px #1f9d6338;
  animation: stage-pulse 1.4s ease-in-out infinite;
}
#app.theme-light [data-state='listening'] .stage-mic svg {
  fill: currentColor;
  stroke: none;
}
#app.theme-light [data-state='thinking'] .stage-mic {
  background: #f1edf7;
  color: #a0520c;
  box-shadow: none;
}
#app.theme-light [data-state='thinking'] .stage-mic svg {
  animation: leia-spin 1.1s linear infinite;
}
#app.theme-light .hero-compact .stage-mic {
  width: 112px;
  height: 112px;
  right: 56px;
  bottom: 56px;
}
@keyframes stage-voice {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 22px;
  }
}
@keyframes stage-think {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@keyframes stage-pulse {
  50% {
    box-shadow: 0 0 0 26px #1f9d6324;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app.theme-light .stage-status i span,
  #app.theme-light .stage-mic,
  #app.theme-light .stage-mic svg {
    animation: none !important;
  }
}

/* Service cards: white tiles with a tinted pictogram. */
#app.theme-light .home .main {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
#app.theme-light .home .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#app.theme-light .main .cards {
  gap: 16px;
}
#app.theme-light .main .cards > .card,
#app.theme-light button.card {
  min-height: 168px;
  padding: 26px 26px 24px;
  border-radius: 32px;
  background: #fff;
  color: #16131f;
  gap: 14px;
  justify-content: space-between;
  box-shadow: 0 1px 2px #16131f0d;
  border: 0 !important;
}
#app.theme-light button.card:hover {
  background: #fff;
  box-shadow: 0 0 0 3px #fe5000;
}
#app.theme-light .card .context-icon,
#app.theme-light .home .card .context-icon,
#app.theme-light button.card .button-custom-icon {
  position: relative;
  right: auto;
  bottom: auto;
  order: -1;
  width: 68px;
  height: 68px;
  flex: none;
}
#app.theme-light .card > div,
#app.theme-light .card > b,
#app.theme-light .home .card > div,
#app.theme-light .home .card > b {
  width: 100%;
  max-width: 100%;
}
#app.theme-light .main .cards > .card b {
  font-size: 27px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}
#app.theme-light .main .cards > .card small {
  font-size: 20px;
  color: #5e5a6b;
}
#app.theme-light .card.security,
#app.theme-light .main .cards > .card.security {
  grid-column: auto;
  background: #fff3ea;
}
#app.theme-light .card.security .line-icon {
  background: #ffe0cc;
}
#app.theme-light .card.security .line-icon::before {
  background: #b4400a;
}
#app.theme-light .line-icon {
  background: color-mix(in srgb, #fe5000 10%, #fff);
  border-radius: 20px;
}

/* Promo carousel: a calm card below the services. */
#app.theme-light .promo-carousel-shell {
  height: 290px;
}
#app.theme-light .promo-carousel {
  height: 252px;
  border-radius: 36px;
}
#app.theme-light .promo-carousel .promo-slide {
  height: 252px;
  border-radius: 36px;
  background: #fff;
}
#app.theme-light .promo-carousel .promo-slide:not(.full-image):before {
  display: none;
}
#app.theme-light .promo-copy b {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
#app.theme-light .promo-copy p {
  font-size: 23px;
  color: #5e5a6b;
}
#app.theme-light .promo-dots {
  height: 38px;
}
#app.theme-light .promo-dot span {
  background: #d5cee6;
}
#app.theme-light .promo-dot.active span {
  width: 34px;
  border-radius: 999px;
  background: #fe5000;
  transform: none;
}

/* Footer dock */
#app.theme-light .footer {
  height: auto;
  margin: 24px 56px 40px;
  padding: 16px;
  border-radius: 40px;
  background: #fff;
  gap: 12px;
}
#app.theme-light .footer button {
  min-height: 88px;
  border-radius: 28px;
  background: #f5f4f9;
  color: #16131f;
  border: 0 !important;
  font-size: 25px;
}
#app.theme-light .footer .language {
  padding: 0 26px;
}
#app.theme-light .footer .sound {
  width: 88px;
  height: 88px;
}
#app.theme-light .footer .sound.active {
  color: #fe5000;
  background: color-mix(in srgb, #fe5000 10%, #fff);
}
/* The centre spinner is hidden: speech state and the way to the dialogue live on the stage
   (status chip and microphone), so the dock keeps only language, sound and Home. */
#app.theme-light .footer .home-button {
  display: none;
}
/* "Home" sits in the dock like the other controls: a soft tint of the primary colour. */
#app.theme-light .footer-home {
  background: color-mix(in srgb, #fe5000 9%, #fff) !important;
  color: #16131f !important;
  font-weight: 600;
  padding: 0 32px;
}
#app.theme-light .footer-home:hover {
  background: color-mix(in srgb, #fe5000 15%, #fff) !important;
}
#app.theme-light .footer-home svg {
  stroke: #fe5000;
  stroke-width: 2.2;
}

/* Lists, forms and answers on secondary screens. */
#app.theme-light .subscreen h1,
#app.theme-light .extra-screen h2,
#app.theme-light .confirm h2 {
  color: #16131f;
  letter-spacing: -0.02em;
}
#app.theme-light .notice {
  color: #5e5a6b;
}
#app.theme-light .crumb button {
  color: #5e5a6b;
}
#app.theme-light .warning,
#app.theme-light .confirm,
#app.theme-light .ticket,
#app.theme-light .lea-chat,
#app.theme-light .faq-row {
  border-radius: 32px;
}
#app.theme-light .search {
  background: #fff;
  border-radius: 999px;
}

/* Final screen of a branch: service description and plans (service-info.js). */
.service-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 4px;
}
.service-info h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1f2a37;
}
.service-info .service-context {
  margin: 0;
  font-size: 22px;
  color: #6b7280;
}
.service-lead {
  margin: 0;
  font-size: 27px;
  line-height: 1.38;
  color: #373a36;
}
.service-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.service-points li {
  position: relative;
  padding-left: 40px;
  font-size: 23px;
  line-height: 1.35;
}
.service-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 18px;
  height: 10px;
  border-left: 3px solid #fe5000;
  border-bottom: 3px solid #fe5000;
  transform: rotate(-45deg);
}
.tariff-title {
  margin: 12px 0 0;
  font-size: 30px;
}
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 2px solid #e9e9e5;
}
.tariff-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  padding-right: 8px;
}
.tariff-badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff1e5;
  color: #fe5000;
  font-size: 18px;
  font-weight: 600;
}
.tariff-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2a37;
}
.tariff-price small {
  font-size: 22px;
  font-weight: 500;
  color: #6b7280;
}
.tariff-promo {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #b4400a;
}
.tariff-card ul {
  margin: 4px 0 0;
  padding-left: 24px;
  font-size: 21px;
  line-height: 1.35;
  color: #4b5563;
}
.service-note {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.4;
  color: #6b7280;
}
.service-actions {
  margin-top: 8px;
}

#app.theme-light .service-info h2,
#app.theme-light .tariff-price {
  color: #16131f;
}
#app.theme-light .service-lead {
  color: #16131f;
}
#app.theme-light .service-info .service-context,
#app.theme-light .service-note,
#app.theme-light .tariff-price small,
#app.theme-light .tariff-card ul {
  color: #5e5a6b;
}
#app.theme-light .tariff-card {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 1px 2px #16131f0d;
}
#app.theme-light .tariff-badge {
  background: color-mix(in srgb, #fe5000 10%, #fff);
}

/* Address check for wired services (address-check.js). */
.address-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 24px 24px 30px;
  border-radius: 28px;
  background: #fff1e5;
}
.address-cta > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.address-cta b {
  font-size: 27px;
}
/* Only the hint line: the button caption is also a span and keeps the button colours. */
.address-cta > div > span {
  font-size: 21px;
  color: #4b5563;
}
.address-cta .primary {
  flex: none;
}
.address-check,
.address-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.address-check h2,
.address-result h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.address-check .notice {
  margin: 0;
}
.address-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.address-ok {
  display: flex;
  align-items: center;
  gap: 22px;
}
.address-ok p {
  margin: 8px 0 0;
  font-size: 23px;
  color: #6b7280;
}
.address-ok-icon {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f6ee;
  color: #17774a;
  font-size: 40px;
  font-weight: 700;
}
.address-tech {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  padding: 24px 28px;
  border-radius: 28px;
  background: #fff;
  border: 2px solid #e9e9e5;
  font-size: 23px;
}
.address-tech span {
  color: #6b7280;
}
#app.theme-light .address-cta {
  background: color-mix(in srgb, #fe5000 9%, #fff);
  border-radius: 32px;
}
#app.theme-light .address-cta > div > span,
#app.theme-light .address-ok p,
#app.theme-light .address-tech span {
  color: #5e5a6b;
}
#app.theme-light .address-check h2,
#app.theme-light .address-result h2 {
  color: #16131f;
}
#app.theme-light .address-tech {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 1px 2px #16131f0d;
}

/* Light preset: no visible scrollbar on a touch kiosk; long screens still scroll by swipe. */
#app.theme-light .main {
  scrollbar-width: none;
}
#app.theme-light .main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Light preset: form fields with the on-screen keyboard button inside the field. */
#app.theme-light .extra-field {
  margin: 0;
  font-size: 27px;
}
#app.theme-light .extra-field > span {
  font-size: 22px;
  font-weight: 500;
  color: #5e5a6b;
  margin-bottom: 10px;
}
#app.theme-light .extra-input {
  position: relative;
}
#app.theme-light .extra-input input,
#app.theme-light .extra-input textarea,
#app.theme-light .extra-field select {
  border: 2px solid #e2dcef;
  border-radius: 24px;
  padding: 24px 104px 24px 26px;
  color: #16131f;
  transition: border-color 0.18s ease;
}
#app.theme-light .extra-input input:focus,
#app.theme-light .extra-input textarea:focus {
  outline: none;
  border-color: #fe5000;
  box-shadow: 0 0 0 5px color-mix(in srgb, #fe5000 14%, transparent);
}
#app.theme-light .extra-input .keyboard-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 64px;
  padding: 0;
  border-radius: 18px;
  background: color-mix(in srgb, #fe5000 9%, #fff);
  font-size: 0;
  color: transparent;
}
#app.theme-light .extra-input textarea + .keyboard-toggle {
  top: 10px;
  transform: none;
}
#app.theme-light .extra-input .keyboard-toggle::before {
  content: '';
  position: absolute;
  inset: 16px 20px;
  background: #fe5000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='2.5'/%3E%3Cpath d='M6.5 9.5h.01M10 9.5h.01M13.5 9.5h.01M17 9.5h.01M6.5 12.5h.01M10 12.5h.01M13.5 12.5h.01M17 12.5h.01M8 15.5h8'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='2.5'/%3E%3Cpath d='M6.5 9.5h.01M10 9.5h.01M13.5 9.5h.01M17 9.5h.01M6.5 12.5h.01M10 12.5h.01M13.5 12.5h.01M17 12.5h.01M8 15.5h8'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
#app.theme-light .extra-input .keyboard-toggle:not(:disabled):active {
  transform: translateY(-50%) scale(0.95);
}
#app.theme-light .address-check {
  gap: 22px;
}

/* Light preset: long subtitles step down in size so the card never covers her face
   (assistant-stage.js adds the classes after measuring). */
#app.theme-light .assistant-note.subtitle-m .speech,
#app.theme-light .assistant-note.subtitle-m h1 {
  font-size: 26px !important;
}
#app.theme-light .assistant-note.subtitle-s .speech,
#app.theme-light .assistant-note.subtitle-s h1 {
  font-size: 22px !important;
  line-height: 1.32 !important;
}
#app.theme-light .assistant-note.subtitle-m,
#app.theme-light .assistant-note.subtitle-s {
  padding-top: 26px;
  padding-bottom: 26px;
}

/* Light preset: on-screen keyboard. While it is open the stage shrinks and the subtitles hide,
   so the field, the keyboard and the dock all fit without overlapping. */
#app.theme-light .layout:has(.extra-keyboard) .hero-compact {
  height: 300px;
}
#app.theme-light .layout:has(.extra-keyboard) .assistant-note {
  display: none;
}
#app.theme-light .extra-keyboard {
  background: #fff;
  border-radius: 32px;
  padding: 18px;
  margin: 20px 0 8px;
  box-shadow: 0 1px 2px #16131f0d;
}
#app.theme-light .extra-keyboard > div {
  gap: 8px;
  margin-bottom: 8px;
}
#app.theme-light .extra-keyboard button {
  height: 76px;
  min-width: 0;
  border-radius: 16px;
  background: #f5f4f9;
  color: #16131f;
  font-size: 28px;
  font-weight: 500;
}
#app.theme-light .extra-keyboard button:hover {
  background: color-mix(in srgb, #fe5000 10%, #fff);
}
#app.theme-light .extra-keyboard .keyboard-close {
  height: 64px;
  margin-top: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, #fe5000 10%, #fff);
  color: #16131f;
  font-size: 22px;
  font-weight: 600;
}

/* Address check result fits one screen: plans in three compact columns, one row of actions. */
.address-result {
  gap: 14px;
}
.address-result .tariff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.address-result .tariff-card {
  padding: 20px 20px 18px;
  gap: 6px;
}
.address-result .tariff-card h3 {
  font-size: 23px;
}
.address-result .tariff-price {
  font-size: 34px;
}
.address-result .tariff-price small {
  font-size: 18px;
}
.address-result .tariff-promo {
  font-size: 16px;
}
.address-result .tariff-card ul {
  padding-left: 20px;
  font-size: 17px;
}
.address-result .tariff-badge {
  font-size: 15px;
  padding: 4px 10px;
}
.address-result .tariff-title {
  margin-top: 4px;
}
.address-result .address-tech {
  padding: 18px 24px;
}
.address-result .actions {
  margin-top: 6px;
  gap: 12px;
  flex-wrap: nowrap;
}
.address-result .actions button {
  padding: 24px 28px;
  font-size: 24px;
  white-space: nowrap;
}
#app.theme-light .layout:has(.address-result) .hero-compact {
  height: 480px;
}

/* Приём по записи в клинике: QR-код, кабинет и номер в очереди. Цвет бренда #fe5000 заменяется настройкой терминала. */
.visit-scan,
.visit-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.visit-qr {
  width: 150px;
  height: 150px;
  align-self: center;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: #fff1e5;
  color: #fe5000;
}
.visit-qr svg {
  width: 96px;
  height: 96px;
}
.visit-camera {
  align-self: center;
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: #16131f;
}
.visit-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visit-hello {
  margin: 0;
  font-size: 34px;
  color: #6b7280;
}
.visit-destination {
  display: grid;
  gap: 6px;
  padding: 30px 36px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(120deg, #fe5000, #fa7d35);
}
.visit-destination span {
  font-size: 26px;
  opacity: 0.92;
}
.visit-destination b {
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.visit-result.registry .visit-destination b {
  font-size: 64px;
}
.visit-ticket {
  display: grid;
  gap: 6px;
  padding: 26px 32px;
  border-radius: 32px;
  background: #fff1e5;
  color: #373a36;
}
.visit-ticket span {
  font-size: 24px;
  color: #6b7280;
}
.visit-ticket b {
  font-size: 64px;
  line-height: 1.05;
  color: #fe5000;
}
.visit-ticket em {
  font-style: normal;
  font-size: 30px;
  font-weight: 600;
}
.visit-doctor {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 26px;
}
.visit-doctor b {
  font-size: 32px;
}
.visit-doctor span {
  color: #6b7280;
}
