@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172b49;
  background: #f5f8fd;
  font-size: 13px;
  font-synthesis: none;
  --bg: #f5f8fd;
  --surface: #fff;
  --sidebar: #fcfdff;
  --editor: #fbfcff;
  --text: #172b49;
  --muted: #6d7e95;
  --faint: #98a6b9;
  --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: #70839c;
  --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: #70839c;
    --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: 12px;
  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: 278px 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: 9px;
  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: 11px;
}
.search-box input::placeholder {
  color: var(--muted);
}
kbd {
  font:
    10px 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: 10.8px;
  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: 10px;
  color: var(--faint);
}
.all-tools {
  font-size: 12px;
  margin-bottom: 4px;
}
.all-tools svg {
  width: 18px;
  margin-right: 3px;
}
.universal-link {
  margin: 4px 0 20px;
  background: linear-gradient(100deg, #8596ff13, #ad8cff12);
  color: var(--text);
  font-size: 12px;
  border: 1px solid #9d9cec2b;
}
.universal-spark {
  font-size: 25px;
  width: 20px;
  color: #8b7edd;
  line-height: 1;
}
.native-tag {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1px;
  background: #8b7edd1a;
  color: #8b7edd;
  padding: 3px 5px;
  border-radius: 4px;
}
.section-label,
.nav-group summary {
  font-size: 9px;
  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: 11px;
  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: 11px;
  color: var(--muted);
}
.tool-count {
  font-size: 8px;
  color: var(--faint);
}
.no-results {
  padding: 25px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.no-results small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.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: 11px;
  color: var(--muted);
}
.breadcrumb-slash {
  color: var(--faint);
}
#breadcrumb {
  color: var(--text);
}
.local-status {
  font-size: 10px;
  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: 9px;
  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: 11px;
  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: 10px;
}
.workspace-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mode-label {
  font-size: 10px;
  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: 10px;
  color: var(--muted);
}
.option select,
.option input {
  font-size: 11px;
  max-width: 240px;
  background: var(--editor);
}
.option input[type="number"] {
  width: 75px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  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: 12px;
  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: 8px;
  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: 10px;
  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: 10px;
  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:
    12px/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:
    11px/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: 8px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.valid-badge {
  font-size: 8px;
  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: 11px;
  font-weight: 550;
}
.primary-button:hover {
  background: #096cdb;
  border-color: #096cdb;
}
.primary-button span {
  margin-left: 15px;
}
.shortcut-hint {
  font-size: 9px;
  color: var(--faint);
}
.auto-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  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: 11px;
  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:
    12px/1.75 ui-monospace,
    monospace;
  min-height: 48px;
}
.tool-notice {
  font-size: 10px;
  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: 12px;
  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: 10px;
  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: 9px;
  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);
}
.all-heading {
  padding: 12px 0 35px;
}
.all-heading h1 {
  font-size: 45px;
  line-height: 1.16;
  letter-spacing: -2px;
  font-weight: 670;
}
.all-heading h1 span {
  color: var(--accent);
}
.all-heading > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 16px;
}
.catalog-groups > section {
  margin-bottom: 30px;
}
.catalog-groups h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}
.catalog-groups h2 > span:last-child {
  color: var(--faint);
  font-size: 11px;
  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: 10px;
  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);
}
.universal-page {
  text-align: center;
  max-width: 690px;
  margin: 25px auto 30px;
}
.native-pill {
  display: inline-block;
  color: #8b7edd;
  background: #8b7edd12;
  border: 1px solid #8b7edd25;
  border-radius: 50px;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 650;
  padding: 8px 13px;
}
.universal-art {
  position: relative;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9c85ed;
}
.universal-art:before {
  content: "";
  position: absolute;
  width: 230px;
  height: 180px;
  background: radial-gradient(ellipse, #9c85ed19, transparent 68%);
  z-index: -1;
}
.universal-art span:first-child {
  font-size: 108px;
  font-weight: 200;
  line-height: 1;
}
.universal-art span:nth-child(2) {
  position: absolute;
  font-size: 26px;
  left: calc(50% + 49px);
  top: 35px;
  color: #6f9df0;
}
.universal-art span:nth-child(3) {
  position: absolute;
  font-size: 31px;
  left: calc(50% - 65px);
  bottom: 28px;
}
.universal-page h1 {
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -1.9px;
  font-weight: 660;
}
.universal-page h1 span {
  color: #8b7edd;
}
.universal-page > p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 490px;
  margin: 20px auto;
}
.prompt-example {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 20px;
  margin: 25px auto;
  font-size: 14px;
  line-height: 1.8;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.prompt-example span {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 9px;
}
.app-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  background: #8265d6;
  border-color: #8265d6;
}
.app-download:hover {
  background: #7154c7;
  border-color: #7154c7;
}
.universal-page .native-note {
  font-size: 9px;
  margin: 15px auto;
}
.native-benefits {
  display: flex;
  gap: 24px;
  justify-content: center;
  border-top: 1px solid var(--border);
  padding-top: 25px;
  margin-top: 25px;
  font-size: 9px;
  color: var(--muted);
}
.native-benefits span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.native-benefits svg {
  width: 14px;
  height: 14px;
}
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: 11px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.setting-row select {
  font-size: 11px;
}
.danger-button {
  white-space: nowrap;
  color: var(--danger);
  font-size: 10px;
}
.privacy-note {
  font-size: 10px;
  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: 12px;
  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: 13px;
  }
  .line-numbers {
    font-size: 12px;
    line-height: 2.00416;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .sidebar-head {
    padding: 25px 17px;
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
  }
  .tool-link {
    font-size: 10px;
    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: 9px;
    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: 9px;
  }
  .tool-count {
    font-size: 7px;
  }
  .options-bar {
    gap: 14px;
  }
  .option {
    gap: 7px;
  }
  .shortcut-hint {
    display: none;
  }
  .favorite-button {
    font-size: 9px;
    padding: 5px;
  }
  .line-numbers {
    min-width: 32px;
    padding-left: 5px;
    padding-right: 7px;
  }
  .editor-body textarea {
    font-size: 11px;
    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: 12px;
    min-height: 42px;
    gap: 11px;
  }
  .section-label,
  .nav-group summary {
    font-size: 10px;
  }
  .brand {
    font-size: 26px;
  }
  .brand small {
    font-size: 9px;
  }
  .tool-count {
    font-size: 9px;
  }
  .sidebar-bottom {
    padding: 15px 20px;
  }
  .sidebar-bottom button {
    font-size: 12px;
  }
  .search-box {
    height: 43px;
  }
  .search-box input {
    font-size: 13px;
  }
  .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: 10px;
  }
  .local-status {
    font-size: 8px;
    gap: 6px;
  }
  #workspace {
    padding: 27px 20px 18px;
  }
  .tool-heading {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 8px;
    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: 11px;
    margin-top: 13px;
    line-height: 1.8;
  }
  .favorite-button {
    font-size: 9px;
    min-width: 30px;
    padding: 5px;
    margin-top: 24px;
  }
  .workspace-actions {
    margin-bottom: 14px;
  }
  .options-bar {
    padding: 13px;
    gap: 13px;
  }
  .option {
    font-size: 10px;
  }
  .option input,
  .option select {
    font-size: 12px;
    min-height: 38px;
  }
  .check-option {
    font-size: 10px;
  }
  .editor-body {
    height: 330px;
  }
  .editor-body textarea {
    font-size: 12px;
    line-height: 1.85;
  }
  .line-numbers {
    font-size: 11px;
    line-height: 2.01818;
    min-width: 35px;
  }
  .panel-heading {
    height: 50px;
    padding: 0 13px;
  }
  .panel-heading > div {
    gap: 7px;
  }
  .text-button {
    font-size: 10px;
    min-height: 36px;
    padding: 6px;
  }
  .copy-button {
    font-size: 10px;
    min-height: 33px;
  }
  .panel-footer {
    font-size: 8px;
    padding: 0 12px;
  }
  .workspace-tip {
    font-size: 10px;
    line-height: 1.85;
  }
  .workspace-footer {
    padding: 14px 20px 24px;
    font-size: 8px;
    gap: 16px;
  }
  .process-row {
    gap: 10px;
  }
  .primary-button {
    min-height: 42px;
  }
  .secondary-panel textarea {
    font-size: 13px;
  }
  .native-benefits {
    gap: 15px;
  }
  .all-heading h1 {
    font-size: 39px;
  }
  .tool-card {
    font-size: 11px;
  }
  .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: 11px;
    min-height: 38px;
  }
  .options-bar {
    gap: 11px;
  }
  .option {
    flex-wrap: wrap;
    gap: 5px;
  }
  .option > span {
    font-size: 9px;
  }
  .option select {
    max-width: 170px;
  }
  .option input[type="text"] {
    max-width: 220px;
  }
  .auto-option {
    font-size: 9px;
  }
  .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: 12px;
  }
  .all-heading h1 {
    font-size: 37px;
  }
  .all-heading {
    padding-top: 5px;
  }
  .universal-page {
    margin: 10px auto 20px;
  }
  .universal-art {
    height: 135px;
  }
  .universal-page h1 {
    font-size: 36px;
  }
  .universal-page > p {
    font-size: 11px;
  }
  .prompt-example {
    font-size: 12px;
    padding: 18px 12px;
  }
  .native-benefits {
    gap: 13px;
    font-size: 8px;
  }
  .native-benefits svg {
    width: 12px;
    height: 12px;
  }
  .secondary-panel textarea {
    font-size: 12px;
  }
  .process-row > button:not(.primary-button) {
    font-size: 9px;
    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;
  }
}
