@font-face {
  font-family: Inter;
  src: url(./inter-cyrillic.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  src: url(./inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  font:
    15px/1.5 Inter,
    Arial,
    sans-serif;
  color: #20212b;
  background: #f7f7fa;
  --purple: #6940c8;
  --muted: #626571;
  --line: #dfe0e7;
  --mono: ui-monospace, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9871ea;
  outline-offset: 3px;
}
.wrap {
  width: min(1140px, calc(100% - 96px));
  margin-inline: auto;
}
.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  letter-spacing: -1.8px;
  font-weight: 710;
  line-height: 1;
}
.brand img {
  height: 32px;
  width: 32px;
}
.brand-dot {
  color: var(--purple);
  margin-left: -9px;
}
.section-name {
  border-left: 1px solid #d6d5df;
  padding-left: 17px;
  font-size: 13px;
  color: #656372;
  font-weight: 540;
}
.server {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font: 11px var(--mono);
  color: #4e555c;
  border: 1px solid #e0e2e3;
  padding: 7px 10px;
  border-radius: 20px;
}
.server > i {
  width: 7px;
  height: 7px;
  background: #308463;
  border-radius: 50%;
}
.server > span {
  color: #a0a39f;
}
.intro {
  padding: 45px 0 24px;
}
.intro h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 57px);
  font-weight: 580;
  line-height: 1.08;
  letter-spacing: -0.069em;
}
.intro p {
  font-size: 16px;
  color: var(--muted);
  margin: 11px 0 0;
}
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.model {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 21px 23px 19px;
  min-height: 145px;
  border: 1px solid var(--edge);
  border-radius: 15px;
  background: var(--tint);
  color: var(--ink);
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
}
.chat {
  --tint: #ede6fc;
  --edge: #ddd3ed;
  --ink: #372353;
  --accent: #774cce;
}
.search {
  --tint: #e3f1e9;
  --edge: #cfe1da;
  --ink: #1c473e;
  --accent: #347761;
}
.vision {
  --tint: #f9e8db;
  --edge: #ecd8c8;
  --ink: #5e3827;
  --accent: #ab603a;
}
.model[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.model:hover {
  transform: translateY(-2px);
}
.model canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.model strong {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 595;
  letter-spacing: -0.065em;
  line-height: 1.2;
  margin-top: auto;
}
.size {
  font: 12px var(--mono);
  opacity: 0.85;
  margin-top: 6px;
}
.kind {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    600 10px/1.2 Inter,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 20px;
}
.select-dot {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.7;
}
.model[aria-selected="true"] .select-dot {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}
.model[aria-selected="true"] .select-dot:after {
  content: "";
  width: 5px;
  height: 3px;
  border-left: 1.4px solid white;
  border-bottom: 1.4px solid white;
  transform: translateY(-1px) rotate(-45deg);
}
.bench {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 3px 12px #29213b05;
  margin-top: 24px;
  overflow: hidden;
  --tool: #6940c8;
  --light: #f1ebfc;
}
.bench[data-mode="search"] {
  --tool: #276b55;
  --light: #e8f3ed;
}
.bench[data-mode="vision"] {
  --tool: #984e29;
  --light: #faebe1;
}
.bench-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.tool-icon {
  height: 45px;
  width: 45px;
  flex: 0 0 45px;
  border-radius: 12px;
  background: var(--light);
  color: var(--tool);
  display: grid;
  place-items: center;
}
.glyph {
  width: 22px;
  height: 22px;
  display: block;
}
.bench-title h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0;
}
.bench-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.bench-head code {
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
  font: 11px var(--mono);
  color: #575563;
  background: #f6f5f8;
  border: 1px solid #e6e5eb;
  padding: 4px 8px;
  border-radius: 6px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 296px;
}
form,
.output {
  min-width: 0;
  padding: 24px 26px;
}
.output {
  border-left: 1px solid var(--line);
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
}
label,
h3 {
  font-size: 13px;
  font-weight: 620;
  margin: 0 0 9px;
  display: block;
}
textarea,
input:not([type="file"]) {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #d8d9e0;
  border-radius: 9px;
  color: #292831;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.55;
}
textarea {
  resize: vertical;
  min-height: 83px;
}
textarea::placeholder,
input::placeholder {
  color: #898994;
}
textarea:focus,
input:not([type="file"]):focus {
  border-color: var(--tool);
  outline: 2px solid var(--light);
  outline-offset: 0;
}
input + label,
.sample + label {
  margin-top: 13px;
}
.examples {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip,
.text-btn {
  background: transparent;
  color: #676372;
}
.chip {
  font-size: 11px;
  border-radius: 18px;
  border: 1px solid #dfdce6;
  padding: 4px 9px;
  line-height: 1.4;
}
.chip:hover,
.text-btn:hover {
  color: var(--tool);
  border-color: var(--tool);
}
.text-btn {
  border: 0;
  padding: 2px 0;
  font-size: 12px;
}
.sample {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--tool);
  color: white;
  border: 0;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 580;
  min-height: 39px;
}
.primary:hover {
  filter: brightness(0.92);
}
.primary:disabled {
  cursor: wait;
  opacity: 0.8;
}
.primary .glyph {
  width: 15px;
  height: 15px;
}
.key-hint,
small {
  font-size: 11px;
  color: var(--muted);
}
small {
  display: block;
  margin-top: 5px;
}
.key-hint {
  font: 10px var(--mono);
}
.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
}
.output-head h3 {
  margin: 0;
}
.output-body {
  flex: 1;
  min-height: 205px;
  max-height: 480px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}
.empty {
  margin: auto;
  text-align: center;
  color: #6c6b78;
  padding: 18px;
}
.empty-mark {
  width: 54px;
  height: 54px;
  border: 1px dashed #d8d4e1;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.empty-mark .glyph {
  color: #9d94ae;
  transform: rotate(5deg);
}
.empty b {
  font-size: 13px;
  font-weight: 530;
}
.empty p {
  font-size: 12px;
  margin: 4px 0 0;
  color: #777784;
}
.output .reply,
.match {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.turn-question {
  font-size: 12px;
  font-weight: 560;
  color: var(--tool);
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.older {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.metric {
  display: block;
  font: 11px var(--mono);
  color: #72717d;
  margin: 12px 0 6px;
}
.match {
  padding: 11px 13px;
  background: #f6f7f6;
  border-radius: 8px;
}
.match:first-child {
  background: var(--light);
}
.score {
  display: block;
  font: 11px var(--mono);
  color: var(--tool);
  margin-top: 5px;
}
.error {
  margin-top: 10px;
  font-size: 12px;
  color: #963c28;
}
.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light);
  border: 1px dashed #caa889;
  border-radius: 9px;
  padding: 13px;
  min-height: 68px;
}
.drop:focus-within,
.drop.drag {
  outline: 2px solid var(--tool);
}
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.drop-copy {
  min-width: 0;
}
.drop-copy b {
  display: block;
  font-size: 12px;
  font-weight: 570;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-copy small {
  margin-top: 3px;
}
.upload-icon {
  color: var(--tool);
}
#preview {
  width: 62px;
  height: 42px;
  object-fit: contain;
  margin-left: auto;
  background: #fff;
  border-radius: 4px;
}
.busy-ring {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.empty-mark .busy-ring {
  color: var(--tool);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 24px;
  color: #656675;
  font-size: 11px;
}
.foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-symbol {
  font: 19px var(--mono);
  color: #9085ae;
}
.foot a {
  font-weight: 500;
}
.foot a:hover {
  text-decoration: underline;
}
@media (min-width: 1450px) {
  .intro {
    padding-top: 64px;
  }
  .model {
    min-height: 165px;
  }
  .columns {
    min-height: 330px;
  }
}
@media (max-width: 820px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .model {
    padding: 16px;
    min-height: 130px;
  }
  .models {
    gap: 9px;
  }
  .bench-head,
  form,
  .output {
    padding: 20px;
  }
  .bench-head code {
    display: none;
  }
  .intro {
    padding-top: 34px;
  }
  .bench-title p {
    font-size: 12px;
  }
  .key-hint {
    display: none;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .mast-inner {
    height: 59px;
    gap: 12px;
  }
  .section-name {
    padding-left: 12px;
  }
  .server {
    font-size: 9px;
    padding: 6px 8px;
    gap: 5px;
  }
  .intro {
    padding: 30px 0 18px;
  }
  .intro h1 {
    font-size: clamp(30px, 8vw, 43px);
  }
  .intro p {
    font-size: 13px;
  }
  .models {
    gap: 6px;
  }
  .model {
    min-height: 119px;
    padding: 10px 9px;
    border-radius: 10px;
  }
  .model canvas {
    opacity: 0.73;
    height: 70%;
    top: -2px;
    left: 6%;
    width: 94%;
  }
  .kind {
    font-size: 8px;
    gap: 4px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
  }
  .select-dot {
    width: 9px;
    height: 9px;
  }
  .model strong {
    font-size: clamp(15px, 3.7vw, 21px);
    letter-spacing: -0.055em;
  }
  .size {
    font-size: 9px;
    margin-top: 4px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .output {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bench {
    margin-top: 16px;
  }
  .bench-head,
  form,
  .output {
    padding: 17px;
  }
  .bench-head {
    gap: 10px;
  }
  .bench-title h2 {
    font-size: 20px;
  }
  .tool-icon {
    height: 37px;
    width: 37px;
    flex-basis: 37px;
  }
  .output-body {
    min-height: 123px;
    max-height: 370px;
  }
  .empty-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
  }
  .foot {
    font-size: 10px;
    margin-top: 12px;
  }
  textarea {
    min-height: 90px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 2.5s !important;
    transition: none !important;
  }
}
