.intro-hero {
  text-align: center;
  padding: 64px 0 26px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #263342;
  border-radius: 999px;
  padding: 7px 12px;
  color: #8debd0;
  background: rgba(56, 214, 162, 0.05);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.intro-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.grad {
  background: linear-gradient(90deg, #fff 20%, #8eead5 50%, #55bfff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.badges {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  border: 1px solid #202b38;
  background: rgba(13, 18, 26, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #a7b2c1;
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}
.stat {
  background: rgba(13, 18, 26, 0.9);
  border: 1px solid #202b38;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.stat small {
  display: block;
  color: #748093;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 18px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.monitor {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid #222d39;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.monitor b {
  font-size: 12px;
  white-space: nowrap;
}
.monitor small {
  color: #687587;
  white-space: nowrap;
  margin-left: auto;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px 4px;
}
.toolbar .setting-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toolbar label {
  font-size: 10px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.toolbar select {
  background: #151e29;
  border: 1px solid #2d3947;
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  font-family: inherit;
}
.toolbar select:focus {
  outline: none;
  border-color: var(--accent);
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 16px;
}
.checkbox-field input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.checkbox-field label {
  font-size: 12.5px;
  color: #c6ceda;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}
.toolbar-spacer {
  flex: 1;
}
button.btn {
  border: 1px solid #2d3947;
  border-radius: 9px;
  background: #151e29;
  color: #e7edf5;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
button.btn:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
button.btn.primary {
  background: #174f47;
  border-color: #286b60;
}
button.btn.primary:hover {
  background: #1b6357;
}
button.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.btn:disabled:hover {
  background: #151e29;
  border-color: #2d3947;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 20px 6px;
}
.editor-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.editor-head span {
  font-size: 10.5px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.editor-head .editor-actions {
  display: flex;
  gap: 6px;
}
textarea.editor {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  background: #0d121a;
  border: 1px solid #2d3947;
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
textarea.editor:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.editor[readonly] {
  color: #c6ceda;
  background: #0a0e14;
}
textarea.editor::placeholder {
  color: #4d5a6d;
}

.status-line {
  margin: 2px 20px 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
  display: none;
  align-items: center;
  gap: 8px;
}
.status-line.visible {
  display: flex;
}
.status-line.ok {
  background: rgba(56, 214, 162, 0.1);
  color: #7be8c8;
  border: 1px solid rgba(56, 214, 162, 0.25);
}
.status-line.error {
  background: rgba(255, 100, 124, 0.1);
  color: #ff9aac;
  border: 1px solid rgba(255, 100, 124, 0.25);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 20px 22px;
}

.bottom {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin: 14px 0 28px;
}
.card {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 15px;
  padding: 18px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  color: #7f8b9b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.55;
  margin: 11px 0 14px;
}

table.uses {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.uses th,
table.uses td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #1b2530;
}
table.uses th {
  color: #7f8b9b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
table.uses td {
  color: #c6ceda;
}
table.uses tr:last-child td {
  border-bottom: none;
}
table.uses code {
  background: #151e29;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 40px;
}
.info-section h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.info-section .card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.faq details {
  border-bottom: 1px solid #1b2530;
  padding: 12px 0;
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: #8a97a8;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 20px, 1240px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .intro-hero {
    padding: 58px 0 20px;
  }
  .subtitle {
    font-size: 14px;
  }
  .stat strong {
    font-size: 18px;
  }
  .card {
    padding: 15px;
  }
  textarea.editor {
    min-height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Accessibility and shared chrome compatibility. */
main .monitor small,
main .helper,
main .setting-hint,
main .card-title,
main .stat small,
main .field label,
main .setting-field label,
main .mini-badge {
  color: #a3afbf;
}
main .card p,
main .info-section .card p,
main .info-section ol,
main .info-section ul {
  color: #a3afbf;
}
main .monitor {
  height: auto;
  min-height: 54px;
  flex-wrap: wrap;
  padding: 14px 17px;
  gap: 8px;
}
main .monitor small {
  white-space: normal;
}
main button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
main .btn:focus-visible,
main input:focus-visible,
main textarea:focus-visible,
main select:focus-visible {
  outline: 3px solid #55c8ff;
  outline-offset: 3px;
}
main .stat strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
main .noscript-note {
  margin-top: 12px;
}
@media (max-width: 560px) {
  main .intro-hero {
    padding-top: 42px;
  }
  main .monitor small {
    width: 100%;
  }
}
