:root {
  --ink: #151b2d;
  --paper: #f6f7fb;
  --white: #ffffff;
  --blue: #5b5ce2;
  --blue-dark: #4143bf;
  --yellow: #ffc85a;
  --coral: #ff8f7a;
  --purple: #c7bfff;
  --green: #a9e7c2;
  --line: rgba(25, 32, 57, 0.1);
  --muted: #687086;
  --shadow: 0 18px 50px rgba(35, 42, 74, 0.1);
  --radius: 24px;
}

html,
body {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 8% 5%, rgba(190, 179, 255, 0.38), transparent 27%),
    radial-gradient(circle at 93% 14%, rgba(105, 218, 255, 0.23), transparent 23%),
    radial-gradient(circle at 68% 34%, rgba(255, 213, 124, 0.16), transparent 17%),
    linear-gradient(180deg, #fcfcff 0%, #f3f4fb 100%);
}

.noise {
  opacity: 0.018;
}

.site-header {
  width: min(1220px, calc(100% - 48px));
  height: 72px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid rgba(25, 32, 57, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 42px rgba(40, 47, 84, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #7173f3, #4b4dce);
  box-shadow: 0 8px 18px rgba(79, 81, 208, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 25px;
}

.brand strong {
  color: #171d30;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: #8990a3;
  font-size: 9px;
  letter-spacing: 0.18em;
}

nav {
  gap: 38px;
  color: #50586e;
  font-size: 12px;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--blue-dark);
}

nav a::after {
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5d5ee6, #8e7bf5);
}

.privacy-pill {
  padding: 9px 13px;
  border: 1px solid rgba(61, 151, 101, 0.12);
  background: rgba(231, 248, 237, 0.88);
  color: #397a54;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-app-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(91, 92, 226, .13);
  border-radius: 999px;
  background: #eeedff;
  color: #5557cf;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.install-app-button[hidden] { display: none; }
.install-app-button span { font-family: "DM Mono", monospace; font-size: 12px; }

.pulse {
  width: 7px;
  height: 7px;
  background: #45a66d;
  box-shadow: 0 0 0 4px rgba(69, 166, 109, 0.12);
}

.hero {
  min-height: 660px;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  padding: 92px 0 66px;
}

.eyebrow {
  gap: 10px;
  color: #6e7488;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow span {
  padding: 5px 9px;
  border: 1px solid rgba(91, 92, 226, 0.14);
  border-radius: 999px;
  background: #eeedff;
  color: #5556d4;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 26px 0 24px;
  color: #161c2f;
  font-size: clamp(50px, 5.25vw, 75px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

h1 em,
h2 em {
  color: transparent;
  background: linear-gradient(100deg, #5557dc 0%, #7767ee 46%, #567bdc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 545px;
  color: #626a7e;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  gap: 32px;
  margin-top: 36px;
}

.primary-cta {
  min-width: 172px;
  padding: 15px 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #5e60e8, #4d4fce);
  box-shadow: 0 12px 26px rgba(77, 79, 206, 0.28), inset 0 1px 0 rgba(255,255,255,.25);
  font-size: 13px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(77, 79, 206, 0.34);
}

.primary-cta span {
  color: #d9d6ff;
}

.trust-note {
  color: #858b9e;
}

.trust-note strong {
  color: #30374b;
}

.avatars i {
  width: 30px;
  height: 30px;
  border: 2px solid #f7f7fb;
  background: #d7d3ff;
  box-shadow: none;
}

.avatars i:first-child { background: #ffd77d; }
.avatars i:last-child { background: #ffac9d; }

.hero-visual {
  height: 490px;
  isolation: isolate;
  filter: drop-shadow(0 30px 48px rgba(60, 54, 140, 0.16));
}

.hero-visual::before {
  content: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% 2% 4% 7%;
  border-radius: 48%;
  background:
    radial-gradient(circle at 30% 26%, rgba(129, 225, 255, .52), transparent 25%),
    radial-gradient(circle at 68% 64%, rgba(255, 192, 117, .34), transparent 28%),
    rgba(127, 113, 239, .16);
  filter: blur(32px);
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: -7% -4% -3% -4%;
  width: 108%;
  height: 110%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-visual > .orbit {
  display: none;
}

.orbit {
  border-color: rgba(63, 61, 132, 0.28);
}

.formula-ticket {
  padding: 22px;
  border: 1px solid rgba(35, 40, 70, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 50px rgba(37, 41, 73, 0.18), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}

.formula-ticket::after {
  border-color: rgba(59, 65, 100, 0.13);
}

.ticket-target {
  background: linear-gradient(135deg, rgba(255, 247, 214, .96), rgba(255, 202, 87, .94));
}

.ticket-label {
  color: #6e7489;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.formula-ticket code {
  color: #20263a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.passport-stamp {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(71, 73, 190, 0.5);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(63, 62, 145, 0.12), inset 0 0 0 5px rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
}

.route-line {
  color: #5b5ce2;
}

.proof-strip {
  min-height: 104px;
  margin-bottom: 78px;
  padding: 18px 24px;
  border: 1px solid rgba(26, 33, 59, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(45, 52, 88, 0.07);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr;
  align-items: center;
  backdrop-filter: blur(18px);
}

.proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.proof-indigo { background: #ececff; color: #5556d4; }
.proof-violet { background: #f2edff; color: #7858c8; }
.proof-cyan { background: #e9f8ff; color: #3481a8; }
.proof-green { background: #e9f8ee; color: #3d8b5b; }

.proof-item p {
  margin: 0;
}

.proof-item strong,
.proof-item small {
  display: block;
}

.proof-item strong {
  color: #252c40;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.proof-item small {
  margin-top: 4px;
  color: #8990a2;
  font-size: 9px;
}

.proof-divider {
  width: 1px;
  height: 34px;
  background: rgba(28, 35, 59, 0.08);
}

.workspace-wrap {
  padding: 100px 0 112px;
  border: 0;
  background:
    radial-gradient(circle at 9% 6%, rgba(139, 126, 255, 0.28), transparent 29%),
    radial-gradient(circle at 89% 9%, rgba(255, 186, 205, 0.2), transparent 24%),
    radial-gradient(circle at 92% 82%, rgba(81, 204, 230, 0.2), transparent 27%),
    radial-gradient(circle at 36% 75%, rgba(255, 215, 124, 0.14), transparent 20%),
    linear-gradient(155deg, #eceeff 0%, #f8f7ff 46%, #eaf6f8 100%);
  position: relative;
  overflow: hidden;
}

.workspace-wrap::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 720px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  filter: blur(70px);
  transform: translateX(-50%);
  pointer-events: none;
}

.workspace-wrap::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 210px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(103, 96, 218, .16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 42px rgba(255,255,255,.12),
    inset 0 0 0 86px rgba(107, 198, 226,.08);
  pointer-events: none;
}

.workspace-head {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  color: #1b2135;
}

.section-index,
.card-kicker {
  color: #777ed0;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.workspace-head h2 {
  color: #1a2034;
}

.workspace-head p {
  color: #798095;
}

.workspace {
  position: relative;
  z-index: 1;
  grid-template-columns: 0.8fr 1.12fr 1.18fr;
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 36, 63, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(42, 49, 83, 0.11), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
}

.route-panel::before,
.editor-panel::before,
.result-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #7c79ee 28%, #6bd0e3 66%, transparent);
  opacity: .7;
}

.route-panel::before {
  background: linear-gradient(90deg, transparent, #8279ed 35%, #ffd066 72%, transparent);
}

.result-panel::before {
  background: linear-gradient(90deg, transparent, #ff9caf 32%, #756fe8 72%, transparent);
}

.route-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.field-label {
  margin: 23px 0 8px;
  color: #747c90;
  font-size: 10px;
}

.select-wrap {
  padding: 8px 11px;
  border: 1px solid rgba(34, 42, 71, 0.1);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 14px rgba(45, 52, 83, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.select-wrap:hover {
  border-color: rgba(91, 92, 226, 0.26);
}

.select-wrap:focus-within {
  border-color: rgba(91, 92, 226, 0.45);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.1);
}

.version-select {
  background: linear-gradient(135deg, #f4f2ff, #ebeaff);
}

.target-select {
  background: linear-gradient(135deg, #fff7dd, #ffedb8);
}

.flag {
  width: 32px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: #e7e4ff;
  color: #4b4dbf;
}

.version-flag {
  background: linear-gradient(135deg, #7779ed, #5b5dcc);
  color: white;
}

.version-note {
  margin-top: 7px;
  color: #989eb0;
}

.swap-button {
  margin: 13px 0 -8px;
  color: #858ca0;
}

.swap-button b {
  color: #6264df;
}

.locale-format-box {
  margin-top: 23px;
  padding: 14px;
  border: 1px solid rgba(33, 40, 68, 0.08);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(246, 247, 252, .94), rgba(239, 241, 250, .82));
}

.locale-format-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.locale-format-title .field-label {
  margin: 0;
}

.locale-format-title > span:last-child {
  color: #9097aa;
  font-size: 8px;
}

.locale-format-box > label {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.locale-format-box > label + label {
  margin-top: 8px;
}

.locale-format-box > label > span {
  color: #7a8296;
  font-size: 9px;
  font-weight: 700;
}

.locale-format-box select {
  min-width: 0;
  width: 100%;
  padding: 8px 26px 8px 9px;
  border: 1px solid rgba(33, 40, 68, 0.08);
  border-radius: 9px;
  outline: 0;
  background: white;
  color: #424a60;
  font-size: 9px;
  font-weight: 650;
}

.locale-format-box select:focus {
  border-color: rgba(91, 92, 226, .38);
  box-shadow: 0 0 0 3px rgba(91, 92, 226, .08);
}

.regional-advanced {
  margin-top: 10px;
  border-top: 1px solid rgba(39, 46, 75, .08);
}

.regional-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 1px 2px;
  color: #5d6479;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.regional-advanced summary::-webkit-details-marker { display: none; }

.regional-advanced summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.regional-advanced summary b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #e5e4ff;
  color: #5a5ccd;
  font-size: 9px;
}

.regional-advanced summary small {
  color: #9aa0b1;
  font-size: 7px;
  font-weight: 650;
}

.regional-advanced[open] summary { padding-bottom: 9px; }

.regional-custom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.regional-custom-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(42, 49, 79, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.regional-custom-grid legend {
  padding: 0 5px;
  color: #666dd3;
  font-size: 8px;
  font-weight: 800;
}

.regional-custom-grid label {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.regional-custom-grid label + label { margin-top: 5px; }

.regional-custom-grid label span {
  color: #848b9e;
  font-size: 8px;
  font-weight: 700;
}

.regional-custom-grid select {
  padding-block: 6px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

.regional-hint {
  margin: 8px 1px 0;
  color: #9a8290;
  font-size: 7px;
  line-height: 1.5;
}

.separator-box {
  margin-top: 18px;
  border-color: rgba(32, 39, 67, 0.1);
}

.segment-control span {
  border-color: rgba(33, 40, 68, 0.08);
  background: #f5f6f9;
  color: #727a8f;
}

.segment-control input:checked + span {
  border-color: #5557cf;
  background: #5b5ce2;
  color: white;
  box-shadow: 0 5px 12px rgba(72, 74, 190, .18);
}

.local-note {
  border: 1px solid rgba(61, 148, 98, 0.1);
  background: #edf8f0;
}

.local-note > span { color: #4b9d69; }
.local-note p { color: #64816e; }
.local-note strong { color: #3c7350; }

.editor-panel,
.result-panel {
  min-height: 570px;
  padding: 24px;
}

.result-panel {
  background: linear-gradient(155deg, rgba(251, 249, 255, .97), rgba(240, 239, 255, .97));
}

.status-dot,
.result-badge {
  background: #f0f1f5;
  color: #798095;
}

.result-badge {
  background: #e9e8ff;
  color: #5b5dbd;
}

.text-button {
  color: #8a91a4;
}

.editor-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(42, 49, 78, .09);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: #737b90;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.mode-toggle:hover {
  color: #585ad0;
  border-color: rgba(88, 90, 208, .2);
}

.mode-toggle.active {
  border-color: transparent;
  background: linear-gradient(135deg, #eeecff, #e8f4ff);
  color: #5557ce;
  box-shadow: inset 0 0 0 1px rgba(85, 87, 206, .09);
}

.mode-toggle.active span {
  color: #6a6ce1;
}

.import-workbook-button {
  border-color: rgba(52, 151, 103, .16);
  background: linear-gradient(135deg, #eefaf3, #f5fbff);
  color: #39775a;
}

.import-workbook-button:hover {
  border-color: rgba(52, 151, 103, .28);
  color: #276a49;
}

.import-workbook-button:disabled {
  cursor: wait;
  opacity: .55;
}

.workbook-import {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(55, 145, 98, .12);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(235, 250, 241, .92), rgba(240, 247, 255, .92));
}

.workbook-import[hidden],
.batch-progress[hidden] { display: none; }

.workbook-import-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4aa975, #56a7bd);
  color: white;
  box-shadow: 0 6px 12px rgba(54, 145, 99, .17);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 800;
}

.workbook-import strong {
  display: block;
  overflow: hidden;
  color: #3e6651;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbook-import p {
  margin: 3px 0 0;
  color: #789184;
  font-size: 8px;
  line-height: 1.4;
}

.workbook-import > button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .7);
  color: #71847a;
  cursor: pointer;
  font-size: 14px;
}

.batch-progress {
  position: relative;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(88, 90, 208, .13);
  border-radius: 12px;
  background: rgba(240, 239, 255, .78);
}

.batch-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #626a7f;
  font-size: 8px;
  font-weight: 700;
}

.batch-progress > div b {
  color: #5759cb;
  font-family: "DM Mono", monospace;
}

.batch-progress progress {
  display: block;
  width: calc(100% - 74px);
  height: 6px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #dcdded;
}

.batch-progress progress::-webkit-progress-bar { background: #dcdded; }
.batch-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #6668df, #54a7bb); }

.batch-progress > button {
  position: absolute;
  right: 11px;
  bottom: 8px;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .8);
  color: #777e92;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.result-actions {
  gap: 7px;
}

.copy-button,
.verify-button,
.download-button {
  border: 1px solid rgba(33, 40, 68, 0.1);
  border-radius: 9px;
  background: rgba(255,255,255,.8);
  color: #50586d;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.copy-button {
  border-color: transparent;
  background: #5557d8;
  color: white;
  box-shadow: 0 7px 14px rgba(76, 78, 194, 0.2);
}

.copy-button:hover:not(:disabled),
.verify-button:hover:not(:disabled),
.download-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.download-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.detection-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(87, 89, 205, .11);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 238, 255, .86), rgba(237, 247, 255, .82));
}

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

.detection-panel > div:first-child {
  min-width: 0;
}

.confidence-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #dcf4e6;
  color: #3d8059;
  font-size: 8px;
  font-weight: 800;
}

.confidence-badge.medium {
  background: #fff0ca;
  color: #8a6724;
}

.confidence-badge.low {
  background: #ffe2df;
  color: #a35046;
}

.detection-panel p {
  margin: 6px 0 0;
  color: #697187;
  font-size: 9px;
  line-height: 1.5;
}

.candidate-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.candidate-list:empty {
  display: none;
}

.candidate-list button {
  padding: 5px 7px;
  border: 1px solid rgba(79, 82, 190, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  color: #5659c5;
  cursor: pointer;
  font-size: 8px;
  font-weight: 750;
}

.candidate-list button:hover {
  border-color: rgba(79, 82, 190, .3);
  background: white;
}

textarea {
  min-height: 278px;
  border: 1px solid rgba(31, 38, 66, 0.1);
  border-radius: 15px;
  background: #f8f9fc;
  color: #252c40;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea:focus {
  border-color: rgba(91, 92, 226, .42);
  background: white;
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.09);
}

.examples button {
  border-color: rgba(37, 44, 73, 0.08);
  background: #f7f7fa;
  color: #737b8f;
  transition: background 150ms ease, color 150ms ease;
}

.examples button:hover {
  border-color: transparent;
  background: #ebeaff;
  color: #5557cf;
}

.translate-button {
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5d5fe6, #4d4fc9);
  box-shadow: 0 11px 22px rgba(75, 77, 194, .24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.translate-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #6668ed, #5153cf);
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(75, 77, 194, .29);
}

.translate-button b {
  color: #dddafe;
}

.result-display {
  min-height: 264px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 0%, rgba(113, 100, 229, 0.24), transparent 36%),
    linear-gradient(145deg, #1d2438, #171d2f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 26px rgba(29, 35, 57, .13);
}

.result-display code {
  color: #f2f3fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.result-display code .diff-token {
  display: inline;
  margin-inline: .04em;
  padding: .08em .2em;
  border-radius: .32em;
  background: transparent;
  font: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.result-display code .diff-function {
  background: rgba(139, 129, 255, .2);
  color: #d2ceff;
  box-shadow: inset 0 -1px 0 rgba(162, 154, 255, .55);
}

.result-display code .diff-keyword {
  border-color: rgba(39, 148, 101, .16);
  background: #dff7ea;
  color: #247451;
}

.result-display code .diff-error {
  background: rgba(255, 136, 159, .17);
  color: #ffb8c5;
  box-shadow: inset 0 -1px 0 rgba(255, 147, 168, .5);
}

.result-display code .diff-separator {
  background: rgba(255, 205, 101, .16);
  color: #ffd97f;
}

.result-display code .diff-number {
  background: rgba(78, 219, 190, .16);
  color: #91f0d4;
  box-shadow: inset 0 -1px 0 rgba(106, 231, 204, .48);
}

.result-display code .diff-array-separator {
  background: rgba(92, 202, 255, .16);
  color: #9edfff;
  box-shadow: inset 0 -1px 0 rgba(111, 208, 255, .46);
}

.result-display.empty {
  border: 1px dashed rgba(80, 82, 178, .2);
  background: rgba(255,255,255,.5);
  box-shadow: none;
}

.empty-icon {
  border-color: #9a9fd1;
  color: #686ad7;
}

.empty-state strong { color: #343b50; }

.metric {
  border-color: rgba(33, 40, 68, 0.08);
  background: rgba(255,255,255,.68);
}

.metric span { color: #31384d; }

.conversion-report {
  border-color: rgba(33, 40, 68, 0.08);
  background: rgba(255,255,255,.55);
}

.conversion-report summary {
  color: #596177;
}

.report-content {
  border-color: rgba(33, 40, 68, 0.08);
}

.report-content li {
  background: rgba(255,255,255,.72);
}

.report-content li.warning-row {
  background: rgba(255, 143, 122, 0.12);
  color: #a74f42;
}

.roundtrip-preview {
  background: #20263a;
}

.notice {
  color: #747c91;
}

.notice.warning {
  color: #a55043;
}

.dictionary-section {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  background: radial-gradient(circle at 8% 20%, rgba(185, 176, 255, .3), transparent 24%), radial-gradient(circle at 92% 75%, rgba(107, 218, 194, .2), transparent 25%), linear-gradient(180deg, #f4f5fb, #fafaff);
}

.dictionary-section::before {
  content: "ƒx";
  position: absolute;
  top: 35px;
  right: max(24px, calc((100% - 1180px) / 2));
  color: rgba(91, 92, 226, .055);
  font-family: Georgia, serif;
  font-size: 180px;
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.dictionary-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 50px;
}

.dictionary-head h2 {
  margin: 18px 0 0;
  color: #171d30;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.dictionary-head p {
  margin: 0 0 8px;
  color: #71798c;
  font-size: 12px;
  line-height: 1.85;
}

.dictionary-card {
  position: relative;
  margin-top: 50px;
  padding: 22px;
  border: 1px solid rgba(32, 39, 67, .08);
  border-radius: 26px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 24px 65px rgba(40, 47, 84, .11), inset 0 1px 0 white;
  backdrop-filter: blur(20px);
}

.dictionary-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(155px, .75fr) minmax(175px, .85fr) auto;
  gap: 10px;
}

.dictionary-search,
.dictionary-select {
  min-width: 0;
  border: 1px solid rgba(38, 45, 75, .09);
  border-radius: 13px;
  background: #f7f8fc;
}

.dictionary-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
}

.dictionary-search > span { color: #696bd8; font-size: 20px; line-height: 1; }

.dictionary-search input,
.dictionary-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #343b50;
  font-size: 10px;
  font-weight: 650;
}

.dictionary-search input { padding: 13px 0; }

.dictionary-search:focus-within,
.dictionary-select:focus-within {
  border-color: rgba(91, 92, 226, .35);
  box-shadow: 0 0 0 4px rgba(91, 92, 226, .07);
}

.dictionary-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
}

.dictionary-select span { color: #9097a8; font-size: 7px; font-weight: 800; white-space: nowrap; }
.dictionary-select select { padding: 12px 0; cursor: pointer; }

.favorites-toggle {
  padding: 0 14px;
  border: 1px solid rgba(38, 45, 75, .09);
  border-radius: 13px;
  background: #f7f8fc;
  color: #70788b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.favorites-toggle span { color: #d99b37; font-size: 14px; }
.favorites-toggle[aria-pressed="true"] { border-color: rgba(219, 156, 55, .18); background: #fff7e7; color: #8d6426; }

.dictionary-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 2px 14px;
}

.dictionary-summary p { margin: 0; color: #697185; font-size: 9px; font-weight: 700; }

.dictionary-legend { display: flex; align-items: center; gap: 14px; color: #8b92a3; font-size: 7px; font-weight: 650; }
.dictionary-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dictionary-legend i { width: 6px; height: 6px; border-radius: 50%; }
.dictionary-legend .mapped { background: #54ac7b; }
.dictionary-legend .fallback { background: #e2a342; }
.dictionary-legend .unsupported { background: #e07870; }

.dictionary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.dictionary-item {
  position: relative;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(37, 44, 73, .075);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f9f9fd);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.dictionary-item:hover { z-index: 1; border-color: rgba(91, 92, 226, .18); box-shadow: 0 10px 24px rgba(42, 49, 80, .08); transform: translateY(-2px); }
.dictionary-item.is-fallback { background: linear-gradient(145deg, #fffdf8, #fff9ec); }
.dictionary-item.is-unsupported { opacity: .7; }

.dictionary-item-top,
.dictionary-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.dictionary-item code {
  min-width: 0;
  overflow: hidden;
  color: #5558cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dictionary-favorite {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #f2f3f7;
  color: #a1a6b3;
  cursor: pointer;
  font-size: 15px;
}

.dictionary-favorite[aria-pressed="true"] { background: #fff2d7; color: #d89427; }

.dictionary-item strong {
  display: block;
  min-height: 22px;
  margin: 12px 0 13px;
  overflow: hidden;
  color: #252c40;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dictionary-status { display: inline-flex; align-items: center; gap: 5px; color: #728092; font-size: 7px; font-weight: 700; }
.dictionary-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #54ac7b; }
.is-fallback .dictionary-status::before { background: #e2a342; }
.is-unsupported .dictionary-status::before { background: #e07870; }

.dictionary-copy {
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: #edeefe;
  color: #595bc9;
  cursor: pointer;
  font-size: 7px;
  font-weight: 750;
}

.dictionary-empty { padding: 55px 20px; text-align: center; color: #8b92a4; }
.dictionary-empty[hidden] { display: none; }
.dictionary-empty > span { color: #7779dc; font-size: 36px; }
.dictionary-empty strong { display: block; margin-top: 10px; color: #4e566c; font-size: 13px; }
.dictionary-empty p { margin: 6px 0 0; font-size: 9px; }

.dictionary-more {
  display: block;
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(91, 92, 226, .13);
  border-radius: 10px;
  background: #eeedff;
  color: #5557cf;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.dictionary-more[hidden] { display: none; }

.explain {
  position: relative;
  padding: 128px 0;
  background:
    radial-gradient(circle at 9% 18%, rgba(137, 220, 255, .14), transparent 22%),
    radial-gradient(circle at 88% 72%, rgba(179, 154, 255, .16), transparent 25%);
}

.explain h2 {
  color: #1b2135;
}

.steps-grid {
  gap: 20px;
}

.steps-grid article {
  min-height: 380px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 37, 63, 0.08);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 44px rgba(43, 50, 84, .07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.steps-grid article > span {
  z-index: 3;
  top: 18px;
  right: 18px;
  min-width: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #4f5670;
  text-align: center;
  box-shadow: 0 6px 16px rgba(40, 45, 77, .08);
  backdrop-filter: blur(10px);
}

.step-media {
  height: 190px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 38, 65, .07);
  background: #eff0ff;
}

.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.steps-grid article:hover .step-media img {
  transform: scale(1.035);
}

.step-copy {
  padding: 0 24px 24px;
}

.steps-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(43, 50, 84, .11);
}

.step-icon {
  position: relative;
  z-index: 2;
  margin-top: -31px;
  border: 0;
  outline: 6px solid rgba(255,255,255,.92);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(50, 57, 93, .1);
}

.step-icon.purple { background: linear-gradient(145deg, #e4dfff, #c9c0ff); color: #574aaa; }
.step-icon.yellow { background: linear-gradient(145deg, #ffefc6, #ffd77c); color: #946514; }
.step-icon.blue { background: linear-gradient(145deg, #6f72ef, #5456d2); }

.steps-grid h3 {
  margin: 28px 0 12px;
  color: #252c40;
}

.coverage {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  border: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(103, 98, 222, .22), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(53, 152, 183, .16), transparent 26%),
    linear-gradient(145deg, #171d30, #20283f);
}

.coverage::before,
.coverage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.coverage::before {
  width: 420px;
  height: 420px;
  top: -230px;
  right: 12%;
  border: 1px solid rgba(153, 144, 255, .18);
  box-shadow: inset 0 0 0 52px rgba(113, 105, 232, .05), inset 0 0 0 108px rgba(54, 176, 210, .035);
}

.coverage::after {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -130px;
  background: rgba(94, 206, 193, .09);
  filter: blur(4px);
}

.coverage-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
}

.coverage h2 {
  font-size: clamp(38px, 4.15vw, 52px);
}

.coverage h2 {
  color: #f6f7fb;
}

.coverage p {
  color: #aeb5c7;
}

.language-cloud {
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 13px;
}

.language-cloud span,
.lg-one,
.lg-two,
.lg-three,
.lg-four,
.lg-five,
.lg-six,
.lg-seven,
.lg-eight,
.lg-nine,
.lg-ten,
.lg-more {
  position: static;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #eef0fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transform: none;
  backdrop-filter: blur(10px);
}

.language-cloud span:nth-child(3n+1) { background: rgba(124, 118, 244, .2); }
.language-cloud span:nth-child(3n+2) { background: rgba(63, 174, 196, .16); }
.language-cloud span:nth-child(3n) { background: rgba(255, 193, 91, .13); }

.privacy-section {
  padding: 112px 0;
}

.privacy-card {
  gap: 38px;
  padding: 44px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(130, 226, 177, .3), transparent 32%),
    linear-gradient(135deg, #1b342d, #214b3c);
  color: white;
  box-shadow: 0 24px 58px rgba(27, 65, 50, .2);
}

.privacy-symbol {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.1);
  color: #bdf2d0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.privacy-card .section-index { color: #8dd6aa; }
.privacy-card h2 { color: white; }
.privacy-card p { color: #b6d3c4; }
.privacy-card li span { background: #8fddb0; color: #163426; }

footer {
  border-top: 1px solid rgba(28, 35, 60, 0.08);
  background: rgba(255,255,255,.7);
}

.footer-inner p {
  color: #858c9e;
}

.notice-link {
  color: #5c5ed4;
}

@media (max-width: 1050px) {
  .proof-strip {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .proof-divider {
    display: none;
  }

  .proof-item {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: .72fr 1.28fr;
  }

  .dictionary-controls {
    grid-template-columns: 1.4fr 1fr;
  }

  .dictionary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-grid {
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .proof-strip {
    margin-bottom: 60px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .dictionary-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dictionary-head p {
    max-width: 560px;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    height: 64px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-visual {
    height: 390px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .editor-toolbar {
    align-items: flex-start;
  }

  .editor-tools {
    max-width: 230px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .mode-toggle {
    padding-inline: 7px;
    font-size: 8px;
  }

  .header-actions {
    margin-left: auto;
  }

  .install-app-button {
    padding: 8px 10px;
    font-size: 8px;
  }

  .dictionary-section {
    padding: 78px 0;
  }

  .dictionary-section::before {
    top: 24px;
    right: 16px;
    font-size: 105px;
  }

  .dictionary-head h2 {
    font-size: 37px;
  }

  .dictionary-card {
    margin-top: 34px;
    padding: 14px;
    border-radius: 20px;
  }

  .dictionary-controls,
  .dictionary-grid {
    grid-template-columns: 1fr;
  }

  .favorites-toggle {
    min-height: 42px;
  }

  .dictionary-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .dictionary-legend {
    flex-wrap: wrap;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
    gap: 19px 8px;
    margin-bottom: 50px;
    padding: 18px;
  }

  .proof-item {
    gap: 9px;
  }

  .proof-icon {
    width: 34px;
    height: 34px;
  }

  .proof-item strong {
    font-size: 14px;
  }

  .proof-item small {
    font-size: 8px;
  }

  .workspace-wrap,
  .explain,
  .coverage,
  .privacy-section {
    padding-block: 76px;
  }

  .editor-panel,
  .result-panel {
    min-height: 520px;
  }

  .result-actions {
    gap: 5px;
  }

  .copy-button,
  .verify-button,
  .download-button {
    padding: 7px 8px;
    font-size: 9px;
  }

  .result-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .detection-panel {
    flex-direction: column;
  }

  .candidate-list {
    justify-content: flex-start;
  }

  .language-cloud {
    min-height: auto;
    gap: 9px;
  }

  .language-cloud span {
    padding: 10px 12px;
  }

  .privacy-card {
    padding: 28px;
  }
}

