:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030912;
  --panel: rgba(13, 27, 45, 0.82);
  --panel-solid: #0d1b2d;
  --panel-light: #13263e;
  --line: rgba(149, 180, 217, 0.18);
  --line-strong: rgba(149, 180, 217, 0.32);
  --text: #f6f8fc;
  --muted: #98a9be;
  --soft: #c4cfdd;
  --accent: #6ee7d8;
  --accent-strong: #2dd4bf;
  --accent-dark: #0f766e;
  --danger: #fb7185;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(32, 90, 130, 0.35), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.background-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
}

.orb-one {
  top: 80px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: #1d7a78;
}

.orb-two {
  right: -180px;
  bottom: 120px;
  width: 480px;
  height: 480px;
  background: #285b9d;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(110, 231, 216, 0.3);
  border-radius: 12px;
  background: rgba(110, 231, 216, 0.1);
  color: var(--accent);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.66);
  color: var(--soft);
  font-size: 0.82rem;
  backdrop-filter: blur(18px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  max-width: 760px;
  margin: 12px auto 18px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #a7b7ca;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 38, 62, 0.88), rgba(8, 18, 31, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.left-panel {
  padding: 10px;
}

.drop-zone {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  border: 1.5px dashed rgba(110, 231, 216, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(rgba(110, 231, 216, 0.025), rgba(110, 231, 216, 0.025)),
    radial-gradient(circle at center, rgba(46, 133, 153, 0.12), transparent 60%);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragging {
  border-color: var(--accent);
  background:
    linear-gradient(rgba(110, 231, 216, 0.06), rgba(110, 231, 216, 0.06)),
    radial-gradient(circle at center, rgba(46, 133, 153, 0.18), transparent 60%);
  outline: none;
  transform: translateY(-2px);
}

.upload-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid rgba(110, 231, 216, 0.28);
  border-radius: 17px;
  background: rgba(110, 231, 216, 0.09);
  color: var(--accent);
}

.upload-icon svg {
  width: 28px;
  height: 28px;
}

.drop-zone h2 {
  margin: 0 0 5px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.drop-zone p {
  margin: 0;
  color: var(--muted);
}

kbd {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 0.76rem;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.file-note {
  margin-top: 12px;
  color: #71849c;
  font-size: 0.78rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.secondary-button:hover {
  border-color: rgba(110, 231, 216, 0.5);
  background: rgba(110, 231, 216, 0.08);
}

.empty-notice {
  margin: 10px 4px 0;
  color: #7f91a8;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.file-list-section {
  margin-top: 9px;
}

.hidden {
  display: none !important;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 1.18rem;
}

.text-button {
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

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

.file-list {
  display: grid;
  gap: 10px;
  max-height: 445px;
  overflow-y: auto;
  padding-right: 4px;
}

.file-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.file-thumb {
  width: 58px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
  background: var(--panel-light);
}

.file-info {
  min-width: 0;
}

.file-info strong,
.file-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info strong {
  font-size: 0.88rem;
}

.file-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.file-status {
  color: var(--accent);
  font-size: 0.74rem;
}

.file-status.error {
  color: var(--danger);
}

.remove-file-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.remove-file-button:hover {
  background: rgba(251, 113, 133, 0.1);
  color: var(--danger);
}

.settings-panel {
  padding: 16px;
}

.settings-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-group {
  margin-top: 9px;
}

.field-group > label,
.label-row > label:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 11, 21, 0.72);
  color: var(--text);
}

select {
  padding: 0 13px;
}

input[type="number"],
input[type="text"] {
  padding: 0 12px;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: rgba(110, 231, 216, 0.7);
  box-shadow: 0 0 0 3px rgba(110, 231, 216, 0.08);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.label-row > label:first-child {
  margin: 0;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.77rem;
  cursor: pointer;
}

.switch-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: #31445b;
  transition: background 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 160ms ease;
}

.switch-label input:checked + .switch {
  background: var(--accent-dark);
}

.switch-label input:checked + .switch::after {
  transform: translateX(17px);
}

.resize-fields.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.dimension-grid {
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  align-items: end;
  gap: 10px;
  margin-top: 9px;
}

.sub-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 36px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #667990;
  font-size: 0.75rem;
  transform: translateY(-50%);
}

.aspect-button {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.aspect-button.active {
  border-color: rgba(110, 231, 216, 0.38);
  background: rgba(110, 231, 216, 0.08);
  color: var(--accent);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.checkbox-row input {
  accent-color: var(--accent-strong);
}

.range-input {
  width: 100%;
  accent-color: var(--accent-strong);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: #687b92;
  font-size: 0.68rem;
}

#qualityValue {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.summary-box div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-box span {
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-box strong {
  font-size: 0.82rem;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #6ee7d8, #33c9bb);
  color: #06211f;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(45, 212, 191, 0.2);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.27);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.primary-button.processing {
  cursor: progress;
}

.status-message {
  min-height: 20px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.status-message.success {
  color: var(--accent);
}

.status-message.error {
  color: var(--danger);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 0;
}

.feature-strip article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 20, 34, 0.65);
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(110, 231, 216, 0.08);
  color: var(--accent);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 0.81rem;
}

.feature-strip div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

footer {
  padding: 16px 20px 20px;
  color: #5e7187;
  font-size: 0.76rem;
  text-align: center;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    order: 2;
  }

  .hero {
    margin-top: 42px;
  }
}

@media (max-width: 660px) {
  .site-header,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding-top: 18px;
  }

  .privacy-pill {
    display: none;
  }

  .hero {
    margin: 42px auto 34px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .left-panel,
  .settings-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .drop-zone {
    min-height: 350px;
    padding: 25px 16px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .file-item {
    grid-template-columns: 50px minmax(0, 1fr) 32px;
  }

  .file-thumb {
    width: 50px;
  }

  .file-status {
    display: none;
  }

  .summary-box {
    grid-template-columns: 1fr;
  }
}


/* Compact single-screen desktop layout */
@media (min-width: 901px) {
  body {
    min-height: 100vh;
  }

  .site-header {
    min-height: 58px;
  }

  .page-shell {
    display: flex;
    min-height: calc(100vh - 96px);
    flex-direction: column;
  }

  .hero {
    flex: 0 0 auto;
  }

  .workspace {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.78fr);
    align-items: stretch;
  }

  .left-panel,
  .settings-panel {
    min-height: 0;
  }

  .left-panel {
    display: flex;
    flex-direction: column;
  }

  .drop-zone {
    flex: 1 1 auto;
    min-height: 250px;
    max-height: 390px;
  }

  .file-list {
    max-height: 190px;
  }

  .settings-panel {
    overflow: hidden;
  }

  .feature-strip {
    flex: 0 0 auto;
  }

  footer {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    margin: 4px auto 12px;
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  }

  .hero-copy {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .drop-zone {
    min-height: 230px;
    max-height: 320px;
  }

  .feature-strip article {
    padding: 9px 11px;
  }

  .feature-strip div > span {
    display: none;
  }

  .settings-panel {
    padding: 13px;
  }

  .field-group {
    margin-top: 11px;
  }

  .summary-box {
    margin-top: 10px;
  }

  .primary-button {
    margin-top: 9px;
  }

  .status-message {
    margin-top: 5px;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .feature-strip {
    display: none;
  }

  .hero-copy {
    display: none;
  }

  .hero {
    margin-bottom: 8px;
  }

  .drop-zone {
    min-height: 210px;
    max-height: 285px;
  }

  .empty-notice {
    display: none;
  }
}

/* Mrlobaloba tool navigation + SEO generators */
.tool-nav {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 2px auto 12px;
  padding: 5px;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 15, 27, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.tool-nav::-webkit-scrollbar {
  display: none;
}

.tool-nav-button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
}

.tool-nav-button svg {
  width: 17px;
  height: 17px;
}

.tool-nav-button:hover {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.tool-nav-button.active {
  border-color: rgba(110, 231, 216, 0.22);
  background: rgba(110, 231, 216, 0.1);
  color: var(--accent);
}

.generator-view {
  width: 100%;
  padding: 14px 0 24px;
}

.generator-heading {
  max-width: 760px;
  margin: 6px auto 20px;
  text-align: center;
}

.generator-heading h1 {
  margin: 8px 0 9px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.generator-heading h1 span {
  color: #a7b7ca;
}

.generator-heading p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.generator-heading code {
  color: #c4a7ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.generator-heading strong {
  color: var(--accent);
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: 16px;
  align-items: stretch;
}

.generator-form {
  padding: 17px;
}

.generator-form .section-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.generator-form input[type="url"],
.generator-form input[type="text"],
.generator-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 11, 21, 0.72);
  color: var(--text);
}

.generator-form input[type="url"],
.generator-form input[type="text"] {
  min-height: 42px;
  padding: 0 12px;
}

.generator-form textarea {
  min-height: 128px;
  padding: 11px 12px;
  resize: vertical;
  font: 0.79rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.generator-form input:focus,
.generator-form textarea:focus {
  border-color: rgba(110, 231, 216, 0.7);
  box-shadow: 0 0 0 3px rgba(110, 231, 216, 0.08);
}

.field-help {
  margin: 7px 1px 0;
  color: #71849c;
  font-size: 0.71rem;
  line-height: 1.45;
}

.field-help strong {
  color: var(--soft);
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compact-grid label {
  display: block;
  margin-bottom: 9px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.generator-checkbox {
  margin-top: 11px;
}

.code-editor {
  display: flex;
  min-height: 450px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(127, 147, 176, 0.2);
  border-radius: 18px;
  background: #0f111a;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.36);
}

.editor-titlebar {
  display: grid;
  min-height: 47px;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 11px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: #151821;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #41485a;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.editor-filename {
  justify-self: center;
  color: #c8cedb;
  font: 0.75rem/1 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.copy-code-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #202431;
  color: #aeb7c8;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
}

.copy-code-button:hover {
  border-color: rgba(110, 231, 216, 0.35);
  color: var(--accent);
  background: #252a39;
}

.copy-code-button.copied {
  color: var(--accent);
}

.copy-code-button svg {
  width: 14px;
  height: 14px;
}

.editor-code {
  flex: 1 1 auto;
  margin: 0;
  overflow: auto;
  padding: 22px 24px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px) 0 0 / 42px 100%,
    #0f111a;
  color: #c8d3f5;
  font: 0.82rem/1.68 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  tab-size: 2;
  white-space: pre;
  user-select: text;
  cursor: text;
}

.editor-code::selection,
.editor-code *::selection {
  background: rgba(110, 231, 216, 0.26);
}

.editor-code code {
  color: #c8d3f5;
  font: inherit;
  user-select: text;
}

.editor-statusbar {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: #171a23;
  color: #747f96;
  font: 0.62rem/1 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (max-width: 900px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .code-editor {
    min-height: 390px;
  }
}

@media (max-width: 660px) {
  .tool-nav {
    width: min(100% - 24px, 1180px);
    margin-bottom: 4px;
  }

  .tool-nav-button {
    padding: 0 11px;
    font-size: 0.73rem;
  }

  .generator-heading {
    margin-top: 18px;
  }

  .generator-heading h1 {
    font-size: 2.35rem;
  }

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

  .editor-titlebar {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .editor-code {
    padding: 18px 16px 22px;
    font-size: 0.74rem;
  }
}
