/* Localized navigation and crawlable page content. */
.sidebar-bottom { flex-wrap: wrap; gap: 12px; }
.languages { position: relative; font-size: 12px; text-align: start; min-width: 0; }
.languages summary { cursor: pointer; color: var(--muted); padding: 8px 0; overflow-wrap: anywhere; }
.languages nav { position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 0; min-width: 180px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.languages a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.languages a:hover, .languages a[aria-current] { background: var(--accent-bg); color: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 24px 36px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.site-footer a,.tool-guide a,.policy-links a { color: var(--accent); text-underline-offset: 3px; }
.site-footer span { flex: 1 1 220px; }
.directory-intro { max-width: 780px; margin-bottom: 32px; }
.directory-intro h1 { font-size: clamp(26px,3vw,38px); letter-spacing: -.035em; line-height: 1.2; }
.directory-intro p,.tool-guide p { color: var(--muted); line-height: 1.75; }
.tool-guide { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 100%; font-size: 14px; }
.tool-guide h2 { font-size: 18px; margin: 16px 0; }
.tool-guide ol { padding-left: 24px; line-height: 1.9; color: var(--muted); }
.related-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.sample-guide { margin: 20px 0; }
.sample-guide summary { cursor: pointer; font-weight: 600; }
.sample-guide pre { padding: 18px; background: var(--editor); border: 1px solid var(--border); border-radius: 10px; overflow: auto; max-height: 260px; font-size: 12px; }
.privacy-page { max-width: 820px; margin: 0 auto 48px; line-height: 1.8; overflow-wrap: anywhere; }
.privacy-page h1 { font-size: clamp(28px,4vw,42px); line-height: 1.2; letter-spacing: -.035em; }
.privacy-page h2 { font-size: 20px; margin-top: 32px; }
.privacy-page p { color: var(--muted); }
.privacy-page .privacy-lead { color: var(--text); font-size: 18px; }
.updated { font-size: 13px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 32px; }
.static-page { max-width: 1200px; margin: auto; padding: 24px; }
.static-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.static-header .languages nav { top: 100%; bottom: auto; right: 0; left: auto; }
.static-page #workspace { padding: 16px 0; }
.static-page .tool-heading { display: block; }
.tool-heading h1 { overflow-wrap: anywhere; }
.options-bar,.action-buttons,.panel-buttons { flex-wrap: wrap; }
#error pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width:800px) {
 .site-footer { padding: 20px; }
 .tool-guide { margin-top: 24px; }
 .privacy-page h1 { padding-right: 32px; }
 .tool-heading h1 { font-size: clamp(22px,5.5vw,32px); }
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172b49;
  background: #f5f8fd;
  font-size: 16px;
  font-synthesis: none;
  --bg: #f5f8fd;
  --surface: #fff;
  --sidebar: #fcfdff;
  --editor: #fbfcff;
  --text: #172b49;
  --muted: #566b85;
  --faint: #697c95;
  --border: #dce5f1;
  --accent: #1779eb;
  --accent-bg: #eaf3ff;
  --shadow: 0 3px 16px #1e4b8810;
  --hover: #f0f5fc;
  --danger: #be3346;
  --code: #28466c;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #091322;
  --surface: #101f32;
  --sidebar: #0d192a;
  --editor: #0c1a2c;
  --text: #e5edf9;
  --muted: #9cabc1;
  --faint: #9aaac0;
  --border: #24374e;
  --accent: #67afff;
  --accent-bg: #152f4f;
  --shadow: 0 3px 16px #0002;
  --hover: #192b43;
  --danger: #ff8797;
  --code: #b9d4f4;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #091322;
    --surface: #101f32;
    --sidebar: #0d192a;
    --editor: #0c1a2c;
    --text: #e5edf9;
    --muted: #9cabc1;
    --faint: #9aaac0;
    --border: #24374e;
    --accent: #67afff;
    --accent-bg: #152f4f;
    --shadow: 0 3px 16px #0002;
    --hover: #192b43;
    --danger: #ff8797;
    --code: #b9d4f4;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:hover {
  background: var(--hover);
  border-color: #a2bddf;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #358ef08a;
  outline-offset: 3px;
}
input,
select {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
textarea {
  resize: none;
  line-height: 1.8;
  color: var(--code);
  tab-size: 2;
}
textarea::placeholder {
  color: var(--faint);
}
svg {
  flex-shrink: 0;
}
.nucleo-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
h1,
h2,
p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.mobile-only {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 15px;
  background: var(--surface);
  z-index: 50;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  z-index: 10;
}
.sidebar-head {
  padding: 29px 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -1.2px;
  font-weight: 760;
}
.brand img {
  border-radius: 11px;
  box-shadow: 0 2px 7px #2684ff20;
}
.brand-toy {
  font-weight: 430;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 480;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 4px;
}
.search-box {
  margin: 0 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--editor);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--faint);
  height: 40px;
}
.search-box:focus-within {
  outline: 2px solid #358ef070;
}
.search-box input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  padding: 8px 0;
  outline: none;
  font-size: 14px;
}
.search-box input::placeholder {
  color: var(--muted);
}
kbd {
  font:
    16px Montserrat,
    sans-serif;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 4px;
  color: var(--muted);
}
#tool-nav {
  overflow: auto;
  flex: 1;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tool-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
}
.tool-link:hover {
  background: var(--hover);
  color: var(--text);
}
.tool-link.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 620;
}
.tool-link.active:before {
  content: "";
  width: 3px;
  background: var(--accent);
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  border-radius: 0 3px 3px 0;
}
.tool-symbol {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.tool-glyph {
  display: block;
  width: 19px;
  height: 19px;
}
.title-icon .tool-glyph {
  width: 25px;
  height: 25px;
}
.tool-link > span:nth-child(2) {
  flex: 1;
}
.count {
  font-size: 13px;
  color: var(--faint);
}
.all-tools {
  font-size: 15px;
  margin-bottom: 4px;
}
.all-tools svg {
  width: 18px;
  margin-right: 3px;
}
.universal-link {
  margin: 4px 0 20px;
  background: #6633b514;
  color: #6633b5;
  font-size: 15px;
  border: 1px solid #6633b52b;
}
.universal-link:hover,
.universal-link.active {
  background: #6633b526;
  color: #6633b5;
}
.universal-link.active:before { background: #6633b5; }
.universal-spark {
  font-size: 25px;
  width: 20px;
  color: inherit;
  line-height: 1;
}
.native-tag {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1px;
  background: #6633b51a;
  color: inherit;
  padding: 3px 5px;
  border-radius: 4px;
}
.section-label,
.nav-group summary {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.section-label {
  padding: 4px 10px 9px;
}
.nav-section {
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.pin-dot {
  font-size: 14px;
  opacity: 0.4;
}
.nav-group {
  margin-top: 14px;
}
.nav-group summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 9px 10px 11px;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary span {
  color: var(--faint);
  letter-spacing: 0;
  font-weight: 450;
}
.nav-group:not([open]) summary:after {
  content: "+";
}
.nav-group:not([open]) summary span {
  display: none;
}
.sidebar-bottom {
  border-top: 1px solid var(--border);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-bottom button {
  padding: 5px 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
}
.tool-count {
  font-size: 12px;
  color: var(--faint);
}
.no-results {
  padding: 25px 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.no-results small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}
.data {
  color: #3987e9;
}
.codec {
  color: #9570d4;
}
.web {
  color: #289b84;
}
.code {
  color: #d69649;
}
.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  gap: 18px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb-slash {
  color: var(--faint);
}
#breadcrumb {
  color: var(--text);
}
.local-status {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #42ac90;
  box-shadow: 0 0 0 3px #42ac9012;
}
#workspace {
  padding: 35px 36px 24px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  outline: none;
  flex: 1;
}
.tool-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
}
.title-line {
  display: flex;
  gap: 13px;
  align-items: center;
}
.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: 0 2px 4px #2684ff08;
}
.tool-heading h1 {
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.3;
  font-weight: 670;
  letter-spacing: -1.1px;
}
.heading-copy > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.8;
  max-width: 700px;
}
.quiet-button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}
.workspace-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mode-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-buttons {
  display: flex;
  gap: 8px;
}
.accent-subtle {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.options-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.option select,
.option input {
  font-size: 14px;
  max-width: 240px;
  background: var(--editor);
}
.option input[type="number"] {
  width: 75px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.editors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.editor-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s;
}
.editor-panel:focus-within {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 0 0 3px #2684ff08;
}
.panel-heading {
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  background: var(--surface);
}
.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4b3c6;
  flex-shrink: 0;
}
.panel-dot.blue {
  background: var(--accent);
}
.panel-format {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--faint);
  font-weight: 500;
  margin-left: 3px;
}
.panel-buttons {
  gap: 5px !important;
}
.text-button {
  padding: 4px 5px;
  min-height: 30px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.icon-button {
  padding: 7px;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--hover);
}
.copy-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 13px;
  border-color: var(--border);
  background: var(--editor);
}
.copy-button svg {
  width: 13px;
  height: 13px;
}
.editor-body {
  display: flex;
  position: relative;
  flex: 1;
  background: var(--editor);
  height: clamp(300px, 48vh, 570px);
  min-height: 300px;
}
.editor-body textarea {
  font:
    16px/1.85 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  border: 0;
  outline: none;
  background: transparent;
  padding: 20px 18px 20px 4px;
  min-width: 0;
  width: 100%;
  resize: vertical;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  min-height: 300px;
  caret-color: var(--accent);
}
.editor-body textarea:focus-visible {
  outline: 0;
}
.line-numbers {
  flex-shrink: 0;
  min-width: 42px;
  padding: 20px 10px 20px 12px;
  white-space: pre;
  font:
    16px/2.01818 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--faint);
  text-align: right;
  user-select: none;
  overflow: hidden;
  max-height: 100%;
}
.panel-footer {
  height: 33px;
  min-height: 33px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.valid-badge {
  font-size: 12px;
  color: #279c7f;
  font-weight: 550;
}
.process-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
}
.primary-button {
  background: #1779eb;
  color: #fff;
  border: 1px solid #1779eb;
  min-height: 39px;
  padding: 10px 17px;
  box-shadow: 0 3px 7px #1779eb23;
  font-size: 14px;
  font-weight: 550;
}
.primary-button:hover {
  background: #096cdb;
  border-color: #096cdb;
}
.primary-button span {
  margin-left: 15px;
}
.shortcut-hint {
  font-size: 12px;
  color: var(--faint);
}
.auto-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.secondary-panel {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.secondary-panel label {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.secondary-panel textarea {
  display: block;
  width: 100%;
  background: var(--editor);
  padding: 12px 16px;
  resize: vertical;
  border: 0;
  font:
    16px/1.75 ui-monospace,
    monospace;
  min-height: 48px;
}
.tool-notice {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}
.tool-notice:empty {
  display: none;
}
#error {
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
  color: var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workspace-tip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 25px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.workspace-tip > span {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}
.workspace-footer {
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}
.workspace-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-footer svg {
  width: 13px;
  height: 13px;
}
.workspace-footer a {
  color: var(--muted);
}
.workspace-footer a:hover {
  color: var(--accent);
}
.preview-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 20px;
}
.preview-panel iframe {
  border: 0;
  width: 100%;
  height: 400px;
  display: block;
  background: #fff;
}
.qr-preview {
  padding: 30px;
  text-align: center;
}
.qr-preview svg {
  width: 240px;
  height: 240px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
}
.image-preview {
  display: block;
  max-height: 440px;
  max-width: 100%;
  margin: 20px auto;
  image-rendering: auto;
}
.color-preview {
  height: 120px;
  margin: 20px;
  border-radius: 10px;
}
.dragging {
  border: 2px dashed var(--accent);
  background: var(--accent-bg);
}
.catalog-groups > section {
  margin-bottom: 30px;
}
.catalog-groups h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 15px;
}
.catalog-groups h2 > span:last-child {
  color: var(--faint);
  font-size: 14px;
  font-weight: 400;
  margin-left: 3px;
}
.group-marker {
  height: 9px;
  width: 9px;
  background: currentColor;
  border-radius: 3px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 13px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.tool-card .title-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.tool-card .title-icon .tool-glyph {
  width: 19px;
  height: 19px;
}
.card-arrow {
  margin-left: auto;
  color: var(--faint);
}
#workspace:has(.universal-page) {
  display: flex;
  align-items: center;
  padding-block: clamp(32px, 5dvh, 72px);
}
.universal-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6dvh, 80px);
  text-align: center;
  width: 100%;
  max-width: 1080px;
  margin: auto;
}
.universal-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  color: #172b43;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.universal-brand img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.universal-brand-toy {
  color: #086ddc;
  font-weight: 400;
}
.universal-page h1 {
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -1.9px;
  font-weight: 660;
  margin: 0;
}
.universal-page h1 span { color: #6633b5; }
.app-download {
  display: inline-block;
  margin: 0;
  border-radius: 10px;
}
.app-download img { display: block; width: 180px; height: auto; }
.universal-download { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.universal-platforms { margin: 0; font-size: 14px; color: var(--muted); }
.universal-preview { width: 100%; min-height: 200px; }
@media (min-width: 801px) {
  .universal-preview .universal-screenshot {
    width: auto;
    max-width: 100%;
    max-height: max(200px, 42dvh);
  }
}
.universal-screenshot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.universal-preview[data-device="iphone"] { max-width: 350px; margin: auto; }
.universal-preview[data-device="ipad"] { max-width: 720px; margin: auto; }
:root[data-theme="dark"] .universal-link,
:root[data-theme="dark"] .universal-page h1 span { color: #ad83e8; }
:root[data-theme="dark"] .universal-brand { color: #edf3fc; }
:root[data-theme="dark"] .universal-brand-toy { color: #56aeff; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .universal-link,
  :root[data-theme="system"] .universal-page h1 span { color: #ad83e8; }
  :root[data-theme="system"] .universal-brand { color: #edf3fc; }
  :root[data-theme="system"] .universal-brand-toy { color: #56aeff; }
}
@media (max-width: 470px) {
  .universal-brand {
    gap: 12px;
    font-size: clamp(42px, 15vw, 72px);
  }
  .universal-brand img {
    width: clamp(64px, 18vw, 84px);
    height: clamp(64px, 18vw, 84px);
  }
}
@media (min-width: 471px) and (max-width: 900px) {
  .universal-brand {
    gap: 12px;
    font-size: clamp(84px, 10.7vw, 90px);
  }
  .universal-brand img {
    width: clamp(84px, 10.7vw, 90px);
    height: clamp(84px, 10.7vw, 90px);
  }
}
dialog {
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--text);
  background: var(--surface);
  max-width: 510px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 100px #0004;
}
dialog::backdrop {
  background: #08162c77;
  backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 8px;
}
.dialog-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.dialog-heading + p {
  font-size: 14px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.setting-row small {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.setting-row select {
  font-size: 14px;
  padding: 10px 32px 10px 16px;
}
.danger-button {
  white-space: nowrap;
  color: var(--danger);
  font-size: 13px;
  padding: 10px 18px;
}
.privacy-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  padding-top: 22px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 30px);
  padding: 13px 21px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 8px 30px #10244228;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.nav-backdrop {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  #workspace {
    padding-top: 45px;
  }
  .tool-heading {
    margin-bottom: 40px;
  }
  .tool-heading h1 {
    font-size: 32px;
  }
  .editor-body textarea {
    font-size: 16px;
  }
  .line-numbers {
    font-size: 15px;
    line-height: 2.00416;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .sidebar-head {
    padding: 25px 17px;
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    font-size: 12px;
  }
  .tool-link {
    font-size: 13px;
    gap: 7px;
  }
  .topbar {
    padding: 0 24px;
  }
  #workspace {
    padding: 28px 24px 18px;
  }
  .workspace-footer {
    padding: 20px 24px;
  }
  .panel-heading {
    padding: 0 11px;
    gap: 5px;
  }
  .panel-heading > div {
    gap: 5px;
  }
  .panel-format {
    display: none;
  }
  .panel-buttons {
    gap: 1px !important;
  }
  .text-button {
    font-size: 12px;
    padding: 4px;
  }
  .editors {
    gap: 13px;
  }
  .tool-heading h1 {
    font-size: 23px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .local-status {
    font-size: 12px;
  }
  .tool-count {
    font-size: 12px;
  }
  .options-bar {
    gap: 14px;
  }
  .option {
    gap: 7px;
  }
  .shortcut-hint {
    display: none;
  }
  .favorite-button {
    font-size: 12px;
    padding: 5px;
  }
  .line-numbers {
    min-width: 32px;
    padding-left: 5px;
    padding-right: 7px;
  }
  .editor-body textarea {
    font-size: 14px;
    line-height: 2.01818;
  }
  .tool-heading {
    gap: 12px;
  }
}
@media (max-width: 960px) and (min-width: 801px) {
  .editors {
    grid-template-columns: 1fr;
  }
  .editor-body {
    height: 310px;
  }
  .workspace-footer {
    flex-wrap: wrap;
  }
  .local-status span:last-child {
    display: none;
  }
}
@media (max-width: 800px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(315px, 88vw);
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 30;
    box-shadow: 15px 0 55px #00102025;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-backdrop {
    position: fixed;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #091b3b70;
    backdrop-filter: blur(3px);
    z-index: 20;
  }
  .sidebar-head {
    padding: 24px 20px;
  }
  .tool-link {
    font-size: 15px;
    min-height: 42px;
    gap: 11px;
  }
  .section-label,
  .nav-group summary {
    font-size: 13px;
  }
  .brand {
    font-size: 26px;
  }
  .brand small {
    font-size: 12px;
  }
  .tool-count {
    font-size: 12px;
  }
  .sidebar-bottom {
    padding: 15px 20px;
  }
  .sidebar-bottom button {
    font-size: 15px;
  }
  .search-box {
    height: 43px;
  }
  .search-box input {
    font-size: 16px;
  }
  .main-shell {
    min-height: 100dvh;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 9;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(15px);
  }
  .breadcrumb {
    gap: 9px;
    font-size: 13px;
  }
  .local-status {
    font-size: 12px;
    gap: 6px;
  }
  #workspace {
    padding: 27px 20px 18px;
  }
  .tool-heading {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .title-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .title-line {
    gap: 11px;
  }
  .tool-heading h1 {
    font-size: 23px;
    letter-spacing: -0.8px;
  }
  .heading-copy > p {
    font-size: 14px;
    margin-top: 13px;
    line-height: 1.8;
  }
  .favorite-button {
    font-size: 12px;
    min-width: 30px;
    padding: 5px;
    margin-top: 24px;
  }
  .workspace-actions {
    margin-bottom: 14px;
  }
  .options-bar {
    padding: 13px;
    gap: 13px;
  }
  .option {
    font-size: 13px;
  }
  .option input,
  .option select {
    font-size: 15px;
    min-height: 38px;
  }
  .check-option {
    font-size: 13px;
  }
  .editor-body {
    height: 330px;
  }
  .editor-body textarea {
    font-size: 15px;
    line-height: 1.85;
  }
  .line-numbers {
    font-size: 14px;
    line-height: 2.01818;
    min-width: 35px;
  }
  .panel-heading {
    height: 50px;
    padding: 0 13px;
  }
  .panel-heading > div {
    gap: 7px;
  }
  .text-button {
    font-size: 13px;
    min-height: 36px;
    padding: 6px;
  }
  .copy-button {
    font-size: 13px;
    min-height: 33px;
  }
  .panel-footer {
    font-size: 12px;
    padding: 0 12px;
  }
  .workspace-tip {
    font-size: 13px;
    line-height: 1.85;
  }
  .workspace-footer {
    padding: 14px 20px 24px;
    font-size: 12px;
    gap: 16px;
  }
  .process-row {
    gap: 10px;
  }
  .primary-button {
    min-height: 42px;
  }
  .secondary-panel textarea {
    font-size: 16px;
  }
  .tool-card {
    font-size: 14px;
  }
  .native-note {
    max-width: 320px;
  }
  .tool-link.active:before {
    left: -12px;
  }
}
@media (max-width: 620px) {
  .editors {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .editor-body {
    height: 285px;
    min-height: 240px;
  }
  .editor-body textarea {
    min-height: 240px;
  }
  .tool-heading h1 {
    font-size: 21px;
  }
  .tool-heading {
    gap: 7px;
  }
  .title-line {
    gap: 9px;
  }
  .title-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .mode-label {
    display: none;
  }
  .workspace-actions {
    justify-content: flex-end;
  }
  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .action-buttons button {
    font-size: 14px;
    min-height: 38px;
  }
  .options-bar {
    gap: 11px;
  }
  .option {
    flex-wrap: wrap;
    gap: 5px;
  }
  .option > span {
    font-size: 12px;
  }
  .option select {
    max-width: 170px;
  }
  .option input[type="text"] {
    max-width: 220px;
  }
  .auto-option {
    font-size: 12px;
  }
  .workspace-tip {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
  }
  .workspace-tip > span {
    display: block;
    margin-bottom: 4px;
  }
  .workspace-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 15px;
    font-size: 15px;
  }
  .universal-page {
    margin: auto;
  }
  .universal-page h1 {
    font-size: 36px;
  }
  .native-benefits svg {
    width: 12px;
    height: 12px;
  }
  .secondary-panel textarea {
    font-size: 15px;
  }
  .process-row > button:not(.primary-button) {
    font-size: 12px;
    padding: 6px;
  }
  .panel-format {
    display: inline;
  }
  .local-status span:last-child {
    max-width: 105px;
    text-align: right;
    line-height: 1.4;
  }
  .setting-row {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable reading sizes and consistent controls at every viewport. */
button { min-height: 42px; font-size: 14px; border-radius: 10px; }
input, select { min-height: 42px; }
input[type="checkbox"] { width: 18px; height: 18px; }
.search-box { height: 46px; }
.search-box input { font-size: 16px; }
.tool-link { font-size: 14px; min-height: 44px; }
.tool-glyph { width: 22px; height: 22px; }
.tool-count { font-size: 12px; }
.sidebar-bottom { flex-wrap: wrap; gap: 8px; }
.heading-copy { min-width: 0; }
.heading-copy > p { font-size: 16px; line-height: 1.65; }
.tool-heading { align-items: flex-start; }
.tool-heading h1 { font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -.8px; }
.favorite-button { font-family: system-ui, sans-serif; font-size: 32px; line-height: 1; width: 48px; min-width: 48px; height: 48px; margin-top: 0; padding: 0; }
.favorite-button[aria-pressed="true"] { color: var(--accent); background: var(--accent-bg); }
.action-buttons { width: 100%; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; }
.clear-controls { display: flex; align-items: center; gap: 14px; }
.auto-option { margin-left: 0; font-size: 14px; min-height: 42px; gap: 8px; white-space: nowrap; cursor: pointer; }
.options-bar { gap: 16px 24px; padding: 16px 18px; }
.option, .check-option, .option > span { font-size: 14px; }
.option input, .option select { font-size: 16px; }
.panel-heading { height: auto; min-height: 60px; padding: 10px 16px; flex-wrap: wrap; gap: 8px 12px; font-size: 15px; }
.panel-heading > div { flex-wrap: wrap; }
.panel-buttons { margin-left: auto; }
.text-button, .copy-button { font-size: 14px; min-height: 38px; }
.copy-button svg { width: 16px; height: 16px; }
.editor-body textarea, .secondary-panel textarea { font-size: 16px; line-height: 1.75; }
.line-numbers { font-size: 14px; line-height: 2; }
.panel-footer { min-height: 40px; height: auto; padding: 9px 14px; flex-wrap: wrap; font-size: 12px; }
.valid-badge { font-size: 12px; }
.process-row { flex-wrap: wrap; }
.primary-button { font-size: 15px; min-height: 44px; }
.tool-card { font-size: 15px; padding: 18px; }
.all-heading > p { font-size: 16px; }
.workspace-footer { font-size: 12px; flex-wrap: wrap; }
.setting-row { font-size: 16px; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row select { font-size: 16px; }
.dialog-heading { margin-bottom: 16px; }
.dialog-heading h2 { font-size: 26px; }
.danger-button { font-size: 14px; }
.raw-output { border-top: 1px solid var(--border); }
.raw-output summary { padding: 15px 18px; font-size: 14px; color: var(--accent); cursor: pointer; }
.raw-output .editor-body { height: 240px; min-height: 180px; }
.raw-output textarea { min-height: 180px; }
.workspace-preview { margin: 0; min-width: 0; }
.preview-empty { padding: 32px 24px; color: var(--muted); line-height: 1.6; }
.image-editors .encoded-output { grid-column: 1 / -1; }
.image-editors > .workspace-preview { display: flex; flex-direction: column; }
.image-stage { display: grid; place-items: center; flex: 1; min-height: 280px; padding: 24px; background: var(--editor); }
.image-preview { max-width: 100%; max-height: 360px; margin: 0; object-fit: contain; }
.image-metadata { padding: 14px 18px; font-size: 13px; line-height: 1.6; border-top: 1px solid var(--border); color: var(--muted); }
.image-format-hint { padding: 14px 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.generator-only { grid-template-columns: minmax(0, 1fr); }
.result-details { padding: 18px; line-height: 1.7; overflow-wrap: anywhere; overflow: auto; }
.result-details pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.result-details table { border-collapse: collapse; width: 100%; font-size: 14px; }
.result-details th, .result-details td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
.result-details { container-type: inline-size; }
.result-fields { margin: 0; font-size: 14px; }
.result-fields > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.result-fields > div:first-child { padding-top: 0; }
.result-fields > div:last-child { padding-bottom: 0; border-bottom: 0; }
.result-fields dt { color: var(--muted); font-weight: 500; }
.result-fields dd {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.result-fields .field-copy { min-width: 72px; justify-self: end; }
.compact-source { align-items: start; }
.compact-source .input-panel .editor-body { height: 160px; min-height: 140px; }
.compact-source .input-panel textarea { min-height: 140px; }
@container (max-width: 420px) {
  .result-fields > div { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .result-fields dd { grid-column: 1; grid-row: 2; }
  .result-fields .field-copy { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 1180px) and (min-width: 801px) {
  .editors { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .editors { grid-template-columns: minmax(0, 1fr); }
  .brand small { font-size: 12px; }
  .breadcrumb { font-size: 13px; }
  .local-status { font-size: 12px; }
  .setting-row { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  #workspace { padding: 24px 16px 18px; }
  .tool-heading h1 { font-size: 25px; }
  .title-icon { width: 40px; height: 40px; }
  .heading-copy > p { font-size: 15px; }
  .action-buttons button { font-size: 14px; min-height: 42px; }
  .clear-controls { flex-basis: 100%; }
  .panel-heading { padding: 10px 12px; }
  .panel-heading > div { gap: 6px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .local-status span:last-child { display: none; }
  .tool-heading { gap: 12px; }
  .favorite-button { width: 44px; min-width: 44px; height: 44px; }
}
.mobile-nav-trigger { width: 44px; height: 44px; margin: 12px 16px 0; background: var(--surface); border: 1px solid var(--border); }
@media (max-width: 800px) {
  .mobile-nav-trigger + #workspace { padding-top: 18px; }
}
