.tga-page {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 32px 56px 24px;
  background: #121c19;
  color: #f0f3e9;
  font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tga-page *,
.tga-page *::before,
.tga-page *::after { box-sizing: border-box; }

.tga-page :where(h1, h2, p, figure, blockquote) { margin: 0; }
.tga-page :where(section, div, figure) { min-width: 0; }

.tga-page .tga-kicker {
  color: #c2b8ff;
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tga-page .tga-title {
  margin-top: 12px;
  color: #f0f3e9;
  font-size: 82px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.065em;
}

.tga-page .tga-title-accent { color: #d0f5a5; }

.tga-page .tga-route {
  display: grid;
  grid-template-columns: 430px 84px minmax(0, 1fr);
  align-items: start;
  margin-top: 28px;
}

.tga-page .tga-step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tga-page .tga-step-number {
  flex: none;
  color: #7d9387;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.tga-page .tga-step-title {
  color: #f0f3e9;
  font-size: 15px;
  font-weight: 550;
  line-height: 20px;
  letter-spacing: -.015em;
}

.tga-page .tga-scale {
  margin-top: 10px;
  color: #d0f5a5;
  font-size: 94px;
  font-weight: 550;
  line-height: .95;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.tga-page .tga-coverage {
  margin-top: 9px;
  color: #f0f3e9;
  font-size: 23px;
  line-height: 29px;
  letter-spacing: -.025em;
}

.tga-page .tga-coverage-source {
  display: block;
  color: #a8b7ae;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -.01em;
}

.tga-page .tga-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c2b8ff;
  text-decoration: underline;
  text-decoration-color: #675f85;
  text-underline-offset: 4px;
}

.tga-page .tga-source-link:hover { color: #e0daff; }
.tga-page .tga-source-link:focus-visible { outline: 2px solid #c2b8ff; outline-offset: 5px; }
.tga-page .tga-source-icon { width: 13px; height: 13px; }

.tga-page .tga-monitor-copy,
.tga-page .tga-selection-copy {
  margin-top: 10px;
  color: #b2c0b7;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -.015em;
}

.tga-page .tga-down-arrow {
  display: block;
  width: 20px;
  height: 28px;
  margin: 12px 0;
  color: #c2b8ff;
}

.tga-page .tga-selection-copy { max-width: 380px; }
.tga-page .tga-choices { margin-top: 15px; }

.tga-page .tga-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
}

.tga-page .tga-choice-buyer {
  border-left-color: #d0f5a5;
  border-radius: 0 8px 8px 0;
  background: #1e2c22;
  color: #d0f5a5;
}

.tga-page .tga-choice-seller {
  margin-top: 7px;
  border-left-color: #344339;
  color: #8b9d91;
}

.tga-page .tga-choice-icon { width: 20px; height: 20px; margin-top: 10px; }
.tga-page .tga-choice-label { font-size: 11px; font-weight: 500; line-height: 16px; }
.tga-page .tga-choice-quote { margin-top: 3px; font-size: 16px; line-height: 22px; letter-spacing: -.015em; }
.tga-page .tga-choice-buyer .tga-choice-quote { color: #f0f3e9; }
.tga-page .tga-choice-seller .tga-choice-quote { font-size: 14px; line-height: 20px; }

.tga-page .tga-route-arrow {
  display: block;
  width: 84px;
  height: 490px;
  color: #c2b8ff;
}

.tga-page .tga-route-arrow-vertical { display: none; }

.tga-page .tga-result-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  margin-bottom: 12px;
}

.tga-page .tga-result-title {
  color: #f0f3e9;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -.025em;
}

.tga-page .tga-account {
  margin-left: auto;
  color: #98aa9e;
  font-size: 11px;
  line-height: 18px;
}

.tga-page .tga-telegram { margin: 0; }

.tga-page .tga-chat {
  border: 1px solid #526353;
  border-radius: 15px;
  background: #d8e2d1;
  color: #17212b;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 0 18px 42px #00000026;
}

.tga-page .tga-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid #d8ded5;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.tga-page .tga-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, #6cc2ec, #4290cb);
  color: #fff;
  font-size: 21px;
  font-weight: 500;
}

.tga-page .tga-chat-name { color: #17212b; font-size: 16px; font-weight: 600; line-height: 23px; }
.tga-page .tga-chat-status { color: #899398; font-size: 13px; line-height: 18px; }
.tga-page .tga-chat-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; color: #8c979e; }
.tga-page .tga-ui-icon { display: block; flex: none; width: 22px; height: 22px; }

.tga-page .tga-chat-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 306px;
  padding: 20px 24px 25px;
  background: linear-gradient(130deg, #e1e7cf, #cedfcf);
}

.tga-page .tga-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #617b59;
  opacity: .13;
  pointer-events: none;
}

.tga-page .tga-date {
  position: relative;
  padding: 4px 10px;
  border-radius: 12px;
  background: #80957580;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.tga-page .tga-outgoing {
  position: relative;
  align-self: flex-end;
  width: 550px;
  max-width: 100%;
  padding: 9px 11px 7px;
  border-radius: 13px 13px 3px 13px;
  background: #e3ffc8;
  box-shadow: 0 1px 2px #4e694e24;
}

.tga-page .tga-outgoing::after {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 10px;
  height: 14px;
  background: #e3ffc8;
  clip-path: polygon(0 0, 42% 62%, 100% 100%, 0 100%);
  content: '';
}

.tga-page .tga-reply {
  margin: 0;
  padding: 8px 10px 9px;
  border: 0;
  border-left: 3px solid #58a343;
  border-radius: 4px;
  background: #cce9b8;
  color: #26382a;
  font-style: normal;
}

.tga-page .tga-reply-source {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #448b34;
  font-size: 13px;
  line-height: 19px;
}

.tga-page .tga-reply-author { font-weight: 600; }
.tga-page .tga-reply-group { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.tga-page .tga-group-icon { flex: none; width: 14px; height: 14px; }
.tga-page .tga-original { margin-top: 3px; color: #26382a; font-size: 14px; font-weight: 400; line-height: 20px; }
.tga-page .tga-message { margin-top: 10px; color: #172518; font-size: 18px; font-weight: 400; line-height: 25px; }

.tga-page .tga-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 3px;
  color: #63a04c;
  font-size: 11px;
  line-height: 15px;
}

.tga-page .tga-checks { width: 20px; height: 13px; }

.tga-page .tga-composer {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 54px;
  padding: 0 20px;
  border-top: 1px solid #d9e1d3;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: #939ca2;
}

.tga-page .tga-composer-placeholder { flex: 1; color: #9ca3a8; font-size: 15px; line-height: 22px; }

.tga-page .tga-result-caption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: #9eb0a3;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: -.01em;
}

.tga-page .tga-caption-icon { flex: none; width: 20px; height: 20px; color: #c2b8ff; }
.tga-page .tga-caption-action { color: #c2b8ff; font-weight: 500; }
.tga-page .tga-footnote { margin-top: 14px; color: #7f9587; font-size: 10px; line-height: 16px; letter-spacing: .025em; }

@container reader (max-width: 1300px) {
  .tga-page { padding: 24px 28px 20px; }
  .tga-page .tga-title { font-size: clamp(44px, 5.7cqw, 60px); }
  .tga-page .tga-route { grid-template-columns: 350px 48px minmax(0, 1fr); margin-top: 20px; }
  .tga-page .tga-scale { font-size: 84px; }
  .tga-page .tga-route-arrow { width: 48px; height: 470px; }
  .tga-page .tga-chat-header { padding-inline: 16px; }
  .tga-page .tga-chat-tools { gap: 16px; }
  .tga-page .tga-chat-body { min-height: 282px; padding: 16px 18px 20px; gap: 20px; }
  .tga-page .tga-composer { padding-inline: 16px; gap: 14px; }
}

@container reader (max-width: 850px) {
  .tga-page { padding: 28px; }
  .tga-page .tga-title { font-size: clamp(44px, 7cqw, 60px); }
  .tga-page .tga-route { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .tga-page .tga-discovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .tga-page .tga-discovery > .tga-down-arrow,
  .tga-page .tga-route-arrow { display: none; }
  .tga-page .tga-route-arrow-vertical { display: block; width: 24px; height: 48px; margin-inline: auto; color: #c2b8ff; }
  .tga-page .tga-scale { font-size: clamp(66px, 10cqw, 84px); }
}

@container reader (max-width: 600px) {
  .tga-page { padding: 24px 20px 28px; }
  .tga-page .tga-title { font-size: clamp(36px, 9cqw, 46px); }
  .tga-page .tga-route { gap: 20px; }
  .tga-page .tga-discovery { display: block; }
  .tga-page .tga-discovery > .tga-down-arrow { display: block; margin-block: 20px; }
  .tga-page .tga-scale { font-size: clamp(70px, 20cqw, 84px); }
  .tga-page .tga-result-heading { flex-wrap: wrap; gap: 4px 10px; }
  .tga-page .tga-account { flex-basis: 100%; margin-left: 0; padding-left: 30px; }
  .tga-page .tga-chat-header { gap: 10px; padding-inline: 14px; }
  .tga-page .tga-chat-tools { gap: 12px; }
  .tga-page .tga-chat-body { min-height: 280px; padding-inline: 14px; }
  .tga-page .tga-reply-source { flex-wrap: wrap; gap: 2px 8px; }
  .tga-page .tga-message { font-size: 17px; line-height: 24px; }
  .tga-page .tga-composer { gap: 12px; padding-inline: 14px; }
  .tga-page .tga-composer-placeholder { font-size: 14px; }
}
