:root {
  color-scheme: light;
  --ink: #19252e;
  --muted: #566670;
  --line: #dde4e7;
  --paper: #fff;
  --bg: #f5f7f8;
  --accent: #196e62;
  --soft: #eaf4f0;
  --danger: #af3434;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #62a99d;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
}
code,
pre,
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
p {
  color: var(--muted);
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1240px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 13px;
  letter-spacing: -1px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--accent);
}
main {
  max-width: 1240px;
  padding: 34px 28px 60px;
  margin: auto;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.intro {
  max-width: 800px;
}
.intro > p {
  margin-top: 14px;
  max-width: 760px;
  font-size: 17px;
}
.privacy-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid #c9e2d9;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 26px 0 24px;
  position: relative;
}
.privacy-banner svg {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  margin-top: 3px;
  color: var(--accent);
}
.privacy-banner strong {
  font-size: 15px;
  font-weight: 650;
  color: #165b4f;
}
.privacy-banner p {
  font-size: 14px;
  margin-top: 3px;
  color: #35665d;
}
.privacy-banner a {
  white-space: nowrap;
}
.privacy-dismiss {
  appearance: none;
  border: 1px solid #b7d4ca;
  background: #ffffff;
  color: #285f55;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}
.privacy-dismiss:hover {
  background: #e8f4ef;
  border-color: #83b8a7;
}
.privacy-dismiss:focus-visible {
  outline: 3px solid rgba(47, 140, 110, 0.24);
  outline-offset: 2px;
}
.ad-floating-left,
.ad-floating-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 160px;
  height: 600px;
}
.ad-floating-left {
  left: 10px;
}
.ad-floating-right {
  right: 10px;
}
.ad-floating .adsbygoogle {
  display: inline-block;
  width: 160px;
  height: 600px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--muted);
}
.panel-body {
  padding: 24px;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-label a {
  font-size: 12px;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  padding-right: 76px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #fbfcfc;
  border: 1px solid #cdd7dc;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
input,
select {
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: #76848d;
}
textarea {
  resize: vertical;
  min-height: 95px;
  font-size: 14px;
  line-height: 1.6;
}
.input-wrap button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 13px;
  padding: 5px;
}
.hint {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 7px;
}
.model-note {
  font-size: 13px;
  margin: 8px 0 0;
}
.advanced {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 18px 0;
}
.advanced summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.advanced .field {
  margin: 14px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button {
  border: 1px solid #cdd7dc;
  border-radius: 7px;
  background: white;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 600;
  min-height: 45px;
  color: var(--ink);
}
.button:hover {
  background: #f4f7f6;
}
.button.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  flex: 1;
}
.button.primary:hover {
  background: #11584f;
}
.button.cancel {
  border-color: #e9caca;
  color: var(--danger);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 14px;
}
.form-note {
  font-size: 12px;
  margin-top: 12px;
}
.state-badge {
  font-size: 12px;
  border-radius: 5px;
  background: #f0f3f4;
  padding: 4px 9px;
  white-space: nowrap;
  color: var(--muted);
}
.state-badge[data-state="success"] {
  background: #e6f3ec;
  color: #216345;
}
.state-badge[data-state="error"] {
  background: #fff0ed;
  color: var(--danger);
}
.state-badge[data-state="pending"] {
  background: #edf3ff;
  color: #2b5996;
}
.state-badge[data-state="warning"] {
  background: #fff4db;
  color: #775017;
}
.result-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 520px;
}
.checks {
  display: grid;
  gap: 12px;
}
.check {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check-label:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1dadd;
}
.check[data-state="success"] .check-label:before {
  background: #267b55;
}
.check[data-state="error"] .check-label:before {
  background: #c14f47;
}
.check[data-state="pending"] .check-label:before {
  background: #477bc1;
  animation: pulse 1s ease-in-out infinite;
}
.check-status {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric dt {
  font-size: 12px;
  color: var(--muted);
}
.metric dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.metrics {
  margin: 0;
}
.output {
  background: #f7f9fa;
  border: 1px solid #e5ebee;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.output-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e5ebee;
}
.view-buttons {
  display: flex;
  gap: 14px;
}
.view-button {
  background: none;
  border: 0;
  padding: 3px 0;
  color: var(--muted);
  font-size: 12px;
}
.view-button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 700;
}
.copy-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
  padding: 30px 20px;
}
.empty-icon {
  border: 1px solid #dae3e7;
  background: white;
  border-radius: 12px;
  padding: 8px 15px;
  color: #7d8e98;
  font-size: 22px;
  margin-bottom: 12px;
}
.empty-state strong {
  font-size: 15px;
  font-weight: 550;
}
.empty-state p {
  font-size: 13px;
  margin-top: 8px;
  max-width: 280px;
}
.result-text,
.raw-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  max-height: 390px;
  overflow: auto;
}
.raw-output {
  color: #3e515e;
}
.result-detail {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.route {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.route-line {
  width: 45px;
  height: 1px;
  background: #bdc9ce;
}
.route strong {
  font-weight: 500;
  color: var(--accent);
}
.tester-ad {
  margin-top: 32px;
  padding: 14px 0;
  min-height: 130px;
  border-block: 1px solid var(--line);
  text-align: center;
}
.tester-ad .ad-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.tester-ad .adsbygoogle {
  display: block;
  min-height: 90px;
}
.guide {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.guide-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 26px;
}
.guide-heading p {
  font-size: 14px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.guide-grid article {
  padding-right: 16px;
}
.guide-grid h3 {
  margin: 10px 0;
}
.guide-grid p {
  font-size: 14px;
}
.guide-number {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.documentation {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 44px;
}
.documentation h2 {
  margin-bottom: 15px;
}
.documentation p,
.documentation li {
  font-size: 14px;
  color: var(--muted);
}
.documentation p + p {
  margin-top: 12px;
}
.documentation ul {
  padding-left: 20px;
}
.documentation li {
  margin: 7px 0;
}
.error-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.error-table th,
.error-table td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.error-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}
.error-table td:first-child {
  font-family: ui-monospace, monospace;
  width: 85px;
}
.error-table td:last-child {
  color: var(--muted);
}
.faq {
  margin-top: 45px;
  max-width: 900px;
}
.faq h2 {
  margin-bottom: 14px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.faq summary {
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
.faq p {
  font-size: 14px;
  padding-top: 10px;
}
.related {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
footer {
  max-width: 1184px;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  padding: 22px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 8px;
  background: white;
  z-index: 5;
}
.skip-link:focus {
  top: 8px;
}
noscript p {
  padding: 20px;
  background: #fff1dc;
  color: #775017;
  margin-bottom: 20px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
@media (min-width: 900px) {
  .field input.mono {
    font-size: 14px;
  }
}
@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .result-body {
    min-height: 430px;
  }
  .documentation {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .guide-grid {
    gap: 20px;
  }
  .guide-heading {
    display: block;
  }
  .guide-heading p {
    margin-top: 7px;
  }
  footer {
    margin: 0 24px;
  }
}
@media (max-width: 1560px) {
  .ad-floating-left,
  .ad-floating-right {
    display: none;
  }
}
@media (max-width: 540px) {
  .nav {
    padding: 15px 18px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links .desktop-link {
    display: none;
  }
  main {
    padding: 28px 16px 40px;
  }
  .intro > p {
    font-size: 15px;
  }
  .privacy-banner {
    padding: 14px;
    gap: 10px;
  }
  .privacy-dismiss {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .panel-head {
    padding: 17px 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .guide {
    margin-top: 40px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-grid article {
    padding: 0;
  }
  .guide-grid h3 {
    margin: 5px 0;
  }
  .actions .button {
    padding: 10px 13px;
  }
  .route {
    gap: 10px;
  }
  .route-line {
    width: 18px;
  }
  .metrics {
    gap: 8px;
  }
  .metric dd {
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
    margin: 0 16px;
  }
  .field-label a {
    font-size: 12px;
  }
}
