:root {
  color-scheme: dark;
  --ink: #f1f5f7;
  --muted: #9daab2;
  --quiet: #6d7a83;
  --line: #29343b;
  --line-strong: #3a4750;
  --panel: #11181d;
  --panel-raised: #161f25;
  --panel-deep: #0b1014;
  --canvas: #070b0e;
  --blue: #7399c4;
  --blue-strong: #91b7e0;
  --blue-dim: rgba(115, 153, 196, 0.15);
  --mint: #84c8b1;
  --mint-strong: #a1e2ca;
  --mint-dim: rgba(132, 200, 177, 0.13);
  --amber: #d7b076;
  --danger: #db8c88;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(111, 145, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 145, 174, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint-strong);
  outline-offset: 3px;
}

::selection {
  color: #07100e;
  background: var(--mint-strong);
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(77, 94, 105, 0.45);
  background: rgba(7, 11, 14, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--mint-strong);
}

.brand small {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-glyph {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 19px;
  height: 20px;
}

.brand-glyph i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 13px rgba(145, 183, 224, 0.36);
}

.brand-glyph i:nth-child(1) {
  height: 8px;
}

.brand-glyph i:nth-child(2) {
  height: 14px;
  background: var(--mint);
}

.brand-glyph i:nth-child(3) {
  height: 20px;
  background: var(--blue-strong);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.top-actions a:hover {
  color: var(--ink);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.demo-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(132, 200, 177, 0.1), 0 0 12px rgba(132, 200, 177, 0.5);
}

.main-shell {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding: 66px 0 92px;
}

.intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.intro-copy {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.intro-note {
  display: grid;
  gap: 5px;
  min-width: 240px;
  padding: 15px 18px;
  border-left: 2px solid var(--mint);
  background: rgba(22, 31, 37, 0.58);
}

.intro-note .mono {
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.intro-note b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.intro-note small {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

.workflow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  padding: 0 4px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  min-width: 152px;
  color: var(--quiet);
}

.step span {
  grid-row: span 2;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
}

.step b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.step small {
  color: var(--quiet);
  font-size: 10px;
}

.step.active span,
.step.active b {
  color: var(--mint-strong);
}

.workflow > i {
  flex: 1;
  height: 1px;
  max-width: 82px;
  margin: 0 16px;
  background: var(--line-strong);
}

.converter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 14px;
  align-items: start;
}

.panel,
.support-strip {
  border: 1px solid var(--line);
  background: rgba(17, 24, 29, 0.92);
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.format-pill,
.node-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.format-pill.is-detected,
.format-pill.success {
  border-color: rgba(132, 200, 177, 0.48);
  color: var(--mint-strong);
  background: var(--mint-dim);
}

.format-pill.warning {
  border-color: rgba(215, 176, 118, 0.52);
  color: var(--amber);
  background: rgba(215, 176, 118, 0.1);
}

.input-tabs,
.output-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.input-tabs {
  margin-bottom: 16px;
}

.input-tab,
.output-tab,
.sample-button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--quiet);
  transition: color 160ms ease, background 160ms ease;
}

.input-tab {
  padding: 8px 12px 11px;
  font-size: 12px;
}

.input-tab:hover,
.input-tab.active {
  color: var(--ink);
  background: rgba(115, 153, 196, 0.08);
}

.input-tab.active {
  color: var(--blue-strong);
}

.input-tab.active::after,
.output-tab.active::after {
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 7px;
  height: 2px;
  background: var(--mint);
  content: "";
}

.sample-button {
  margin-left: auto;
  padding: 7px 7px 10px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
}

.sample-button:hover {
  color: var(--mint-strong);
}

.input-mode {
  display: none;
}

.input-mode.active {
  display: block;
}

textarea,
input,
select {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: var(--panel-deep);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea:hover,
input:hover,
select:hover {
  border-color: #53636e;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue-strong);
  background: #0d1419;
  box-shadow: 0 0 0 3px var(--blue-dim);
}

#source-input {
  display: block;
  width: 100%;
  min-height: 250px;
  padding: 14px;
  resize: vertical;
  color: #c6d4dc;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

textarea::placeholder,
input::placeholder {
  color: #596770;
  opacity: 1;
}

.input-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease;
}

.text-button:hover {
  color: var(--mint-strong);
}

.url-mode > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.url-field {
  display: flex;
  gap: 8px;
}

.url-field input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.url-mode > p {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 11px;
}

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost-button {
  background: rgba(22, 31, 37, 0.75);
  color: var(--muted);
}

.ghost-button:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--ink);
}

.primary-button {
  border-color: rgba(132, 200, 177, 0.75);
  background: var(--mint);
  color: #0b1714;
  box-shadow: 0 5px 20px rgba(132, 200, 177, 0.13);
}

.primary-button:hover {
  border-color: var(--mint-strong);
  background: var(--mint-strong);
  transform: translateY(-1px);
}

.primary-button:active,
.ghost-button:active,
.sample-chip:active,
.format-item:active {
  transform: translateY(0);
}

.primary-button:disabled,
.ghost-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.primary-button b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.sample-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  color: var(--quiet);
  font-size: 11px;
}

.sample-row > span {
  margin-right: 3px;
  color: var(--muted);
}

.sample-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(22, 31, 37, 0.65);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sample-chip:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue-strong);
  transform: translateY(-1px);
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.security-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 66%;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
}

.security-hint i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(215, 176, 118, 0.45);
}

.node-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  margin-top: -3px;
  margin-bottom: 12px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.node-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
}

.node-toolbar > span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-toolbar .text-button {
  margin-left: auto;
  color: var(--blue-strong);
  white-space: nowrap;
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--mint);
}

.node-list {
  display: grid;
  gap: 7px;
  max-height: 344px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.node-list::-webkit-scrollbar,
.output-preview::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.node-list::-webkit-scrollbar-thumb,
.output-preview::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--line-strong);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 260px;
  padding: 64px 20px;
  border: 1px dashed var(--line-strong);
  background: rgba(7, 11, 14, 0.34);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 16px;
}

.empty-state b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.empty-state small {
  max-width: 220px;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.55;
}

.node-row,
.node-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(22, 31, 37, 0.54);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.node-row:hover,
.node-card:hover,
.node-row.is-selected,
.node-card.is-selected,
.node-row.selected,
.node-card.selected {
  border-color: rgba(115, 153, 196, 0.76);
  background: rgba(115, 153, 196, 0.1);
  box-shadow: inset 2px 0 0 var(--blue);
}

.node-row input[type="checkbox"],
.node-card input[type="checkbox"] {
  margin-left: 1px;
}

.node-main,
.node-info {
  min-width: 0;
}

.node-title,
.node-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-subtitle,
.node-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 4px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.node-type,
.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid rgba(115, 153, 196, 0.42);
  border-radius: 3px;
  color: var(--blue-strong);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.node-server {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.node-actions button,
.node-remove,
.copy-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.node-actions button:hover,
.node-remove:hover,
.copy-button:hover {
  border-color: var(--line-strong);
  background: var(--blue-dim);
  color: var(--blue-strong);
}

.node-remove:hover {
  color: var(--danger);
  background: rgba(219, 140, 136, 0.1);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(132, 200, 177, 0.45);
}

.status-dot.warning {
  background: var(--amber);
  box-shadow: 0 0 9px rgba(215, 176, 118, 0.45);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 9px rgba(219, 140, 136, 0.45);
}

.output-panel {
  margin-top: 14px;
}

.output-heading {
  align-items: center;
  margin-bottom: 18px;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.output-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}

.output-tabs::-webkit-scrollbar {
  display: none;
}

.output-tab {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  padding: 10px 14px 12px;
  text-align: left;
}

.output-tab span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.output-tab:hover,
.output-tab.active {
  background: rgba(115, 153, 196, 0.08);
  color: var(--ink);
}

.output-tab.active {
  color: var(--blue-strong);
}

.output-meta,
.output-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.output-meta {
  min-height: 46px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.output-meta > span + span {
  color: var(--quiet);
}

.output-meta .text-button {
  margin-left: auto;
  color: var(--blue-strong);
  font-family: var(--sans);
}

.output-preview {
  min-height: 250px;
  max-height: 430px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080d11;
  color: #b9c9d2;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  tab-size: 2;
  white-space: pre;
}

.output-preview code {
  color: inherit;
  font-family: inherit;
}

.output-foot {
  justify-content: space-between;
  min-height: 60px;
  padding-top: 16px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.output-foot .primary-button {
  min-width: 126px;
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 14px;
  padding: 23px 22px;
}

.support-strip h2 {
  margin-bottom: 9px;
}

.support-strip p:not(.eyebrow) {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.65;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.format-item {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(22, 31, 37, 0.56);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.format-item b {
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.format-item span {
  overflow: hidden;
  color: var(--quiet);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-item:hover,
.format-item.active {
  border-color: rgba(132, 200, 177, 0.58);
  background: var(--mint-dim);
  color: var(--ink);
  transform: translateY(-1px);
}

.format-item.active b {
  color: var(--mint-strong);
}

.format-item.active span {
  color: var(--muted);
}

.modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 5, 7, 0.78);
  backdrop-filter: blur(8px);
}

.modal.is-open,
.modal.open,
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(510px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.modal-card h2 {
  margin-bottom: 9px;
}

.modal-card > p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.modal-card textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 12px;
  resize: vertical;
  color: #c6d4dc;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--quiet);
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--line-strong);
  background: var(--blue-dim);
  color: var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 14px;
  border: 1px solid rgba(132, 200, 177, 0.55);
  border-radius: 5px;
  background: #14211e;
  color: var(--mint-strong);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show,
.toast.visible,
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden,
.hidden,
[hidden] {
  display: none !important;
}

.is-loading {
  cursor: progress;
}

.is-loading::after {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: hulink-spin 700ms linear infinite;
}

@keyframes hulink-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 28px;
  }

  .main-shell {
    width: min(100% - 40px, 760px);
    padding-top: 52px;
  }

  .intro-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 34px;
  }

  .intro-note {
    width: 100%;
  }

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

  .node-list {
    max-height: 370px;
  }

  .support-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .support-strip p:not(.eyebrow) {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 17px 20px 16px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
  }

  .demo-status {
    margin-right: auto;
  }

  .main-shell {
    width: calc(100% - 28px);
    padding: 36px 0 60px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 18px;
  }

  .workflow {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .step {
    min-width: 0;
  }

  .workflow > i {
    width: 1px;
    height: 13px;
    margin: 0 0 0 5px;
  }

  .panel,
  .support-strip {
    padding: 17px;
  }

  .panel-heading {
    margin-bottom: 17px;
  }

  .input-tabs {
    overflow-x: auto;
  }

  .input-tab {
    flex: 0 0 auto;
    padding-right: 9px;
    padding-left: 9px;
  }

  .sample-button {
    margin-left: 6px;
  }

  #source-input {
    min-height: 215px;
    font-size: 10px;
  }

  .url-field {
    align-items: stretch;
    flex-direction: column;
  }

  .url-field input {
    height: 40px;
  }

  .input-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .security-hint {
    max-width: none;
  }

  .input-footer .primary-button {
    width: 100%;
  }

  .node-toolbar {
    flex-wrap: wrap;
    gap: 7px 10px;
  }

  .node-toolbar > span {
    order: 3;
    flex-basis: 100%;
  }

  .node-toolbar .text-button {
    margin-left: auto;
  }

  .node-row,
  .node-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 67px;
  }

  .node-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .node-actions .node-remove,
  .node-actions .copy-button {
    width: 25px;
    height: 25px;
  }

  .node-server {
    max-width: 145px;
  }

  .output-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .output-actions .ghost-button,
  .output-actions .primary-button {
    flex: 1;
  }

  .output-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px 9px;
    padding: 9px 0;
  }

  .output-meta .text-button {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  .output-preview {
    min-height: 220px;
    max-height: 360px;
    padding: 12px;
    font-size: 10px;
  }

  .output-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .output-foot .primary-button {
    width: 100%;
  }

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

  .format-item:last-child {
    grid-column: span 2;
  }

  .modal {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-card {
    padding: 22px 18px 18px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
