:root {
  color-scheme: light;
  --page-bg: #f4f1eb;
  --page-line: rgba(20, 20, 20, 0.04);
  --panel: #ffffff;
  --panel-soft: #f4f4f4;
  --panel-muted: #e8e8e8;
  --stroke: #cfcfcf;
  --stroke-strong: #b7b7b7;
  --text: #222222;
  --muted: #65707f;
  --accent: #2962ff;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 18px rgba(17, 24, 39, 0.05);
  --radius: 12px;
  --desktop-width: 1440px;
  --header-height: 52px;
  --toolbar-height: 39px;
  --tab-height: 38px;
  --footer-height: 24px;
  font-family: "Segoe UI", "Aptos", "Liberation Sans", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfaf8 0%, #f4f1eb 100%);
  font-size: 13px;
  line-height: 1.4;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--page-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  padding: 0 18px;
  border-bottom: 1px solid #e2e2e2;
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.97), rgba(244, 244, 244, 0.97));
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.brand-icon span {
  width: 14px;
  height: 14px;
  display: block;
  border: 2px solid #7b7b7b;
  box-shadow:
    inset 0 0 0 3px transparent,
    6px 0 0 -4px #7b7b7b;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.user-menu {
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #2d4d7a;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #1f3f68;
  background: rgba(41, 98, 255, 0.05);
}

.nav-group {
  position: relative;
}

.nav-button {
  appearance: none;
  font-weight: 400;
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.nav-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 164px;
  padding: 6px 0;
  border: 1px solid #c9c9c9;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  display: none;
}

.user-menu .nav-menu {
  right: 0;
  left: auto;
  min-width: 230px;
}

.nav-group.is-open .nav-menu {
  display: grid;
}

.nav-menu a {
  padding: 8px 16px;
  color: #3f587d;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: #f0f4f8;
}

.user-menu-trigger {
  padding-right: 10px;
}

.user-menu-greeting {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(41, 98, 255, 0.12);
  color: #294a78;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

.user-menu-avatar svg {
  width: 14px;
  height: 14px;
  display: block;
}

.user-menu-trigger.is-signed-out .user-menu-avatar,
.user-menu-trigger.is-signed-out .caret {
  display: none;
}

.user-menu-panel a,
.user-menu-panel button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu-logout {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #c9184a;
  cursor: pointer;
}

.user-menu-logout:hover,
.user-menu-logout:focus-visible {
  background: #fff1f4;
}

.user-menu-item-label {
  flex: 1 1 auto;
}

.user-menu-panel svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.app-frame {
  width: min(var(--desktop-width), calc(100% - 20px));
  margin: 0 auto;
  padding: 0 0 0;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 61fr) 8px minmax(400px, 39fr);
  align-items: stretch;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  margin-top: 0;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.pane {
  min-width: 0;
  overflow: hidden;
}

.pane-left {
  display: grid;
  grid-template-rows: var(--toolbar-height) minmax(0, 1fr) auto;
  background: #ffffff;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--stroke);
  background: #f6f6f6;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.tool-button,
.button-link {
  flex: 0 0 auto;
  min-height: 23px;
  padding: 0 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #f0f0f0);
  color: #222222;
  cursor: pointer;
}

.tool-button:hover,
.button-link:hover {
  background: linear-gradient(180deg, #ffffff, #e9e9e9);
}

.sample-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #333333;
}

.sample-picker-label {
  font-size: 12px;
  font-weight: 600;
}

.tool-select {
  flex: 0 0 auto;
  min-height: 23px;
  padding: 0 28px 0 8px;
  border: 1px solid var(--stroke-strong);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #f0f0f0);
  color: #222222;
}

.tool-select:hover {
  background: linear-gradient(180deg, #ffffff, #e9e9e9);
}

.tool-select:focus-visible {
  outline: 1px solid #7aa7ff;
  outline-offset: 1px;
}

.editor-host {
  position: relative;
  min-height: 0;
  border-bottom: 1px solid var(--stroke);
  background: #ffffff;
  overflow: hidden;
}

.editor-highlight,
.editor-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  outline: none;
  resize: none;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  tab-size: 2;
  white-space: pre;
  word-wrap: normal;
  word-break: normal;
}

.editor-highlight {
  pointer-events: none;
  color: #2a2a2a;
  background: #ffffff;
  overflow: hidden;
}

.editor-input {
  color: transparent;
  caret-color: #111111;
  background: transparent;
  -webkit-text-fill-color: transparent;
}

.editor-input::selection {
  background: rgba(41, 98, 255, 0.23);
}

.print-host {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.92)),
    #ffffff;
  z-index: 2;
}

.print-host[hidden] {
  display: none;
}

.print-host-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.print-host-title {
  font-size: 13px;
  font-weight: 700;
  color: #222222;
}

.print-host-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: #666666;
}

.print-host-state {
  font-size: 12px;
  font-weight: 600;
  color: #444444;
  white-space: nowrap;
}

.print-host-canvas-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
}

.print-preview-canvas {
  display: block;
  max-width: none;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.Ngt-comment {
  color: #0c8a2c;
}

.Ngt-header {
  color: #2554a6;
  font-weight: 700;
}

.Ngt-command {
  color: #c93d3d;
  font-weight: 700;
}

.Ngt-token {
  color: #7a3eb1;
  font-weight: 600;
}

.Ngt-binary {
  color: #9a5a00;
  background: rgba(154, 90, 0, 0.08);
  border-radius: 3px;
  padding: 0 2px;
}

.Ngt-fd {
  color: #232323;
}

.settings-box {
  padding: 8px 10px 12px;
  border-top: 0;
  background: #fdfdfd;
}

.settings-box h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.settings-grid {
  display: grid;
  gap: 8px 10px;
}

.settings-block {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 12px 12px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field-label {
  display: grid;
  gap: 4px;
  color: #333333;
  align-content: start;
}

.field-label select,
.field-label input,
.preview-toolbar select {
  width: 100%;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid #b8b8b8;
  background: #ffffff;
}

.field-label.compact {
  display: inline-grid;
}

.field-label.checkbox-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e4;
  border-radius: 12px;
  background: #ffffff;
  min-height: 42px;
}

.form-grid .field-label.checkbox-field input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: 1px solid #9fb2ce;
  border-radius: 4px;
  background: #ffffff;
  accent-color: #2f66d8;
  justify-self: end;
}

.settings-row,
.api-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.settings-row-title {
  color: #333333;
  font-weight: 600;
  line-height: 1.2;
}

.inline-controls {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: start;
  width: max-content;
}

.size-controls {
  grid-template-columns: minmax(72px, 112px) max-content minmax(72px, 112px) minmax(92px, 132px);
}

.range-controls {
  grid-template-columns: minmax(72px, 112px) max-content minmax(72px, 112px);
}

.inline-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #666666;
}

.api-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.api-row-title {
  color: #333333;
  white-space: nowrap;
}

.api-row > .field-label {
  min-width: 0;
}

.api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.settings-row input,
.settings-row select {
  min-height: 26px;
  border-radius: 3px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  color: #333333;
}

.splitter {
  cursor: col-resize;
  background:
    linear-gradient(90deg, #e8e8e8 0, #d6d6d6 45%, #e8e8e8 100%);
  border-left: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
}

.pane-right {
  display: grid;
  grid-template-rows: var(--tab-height) minmax(0, 1fr);
  background: #f9f9f9;
}

.tab-strip {
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--stroke);
  background: #f6f6f6;
}

.tab-button {
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #222222;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: var(--stroke);
  border-bottom-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 -1px 0 #ffffff;
  margin-bottom: -1px;
}

.tab-panel {
  display: none;
  min-height: 0;
  background: #ffffff;
}

.tab-panel.is-active {
  display: grid;
}

.tab-panel[data-panel="preview"] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.tab-panel[data-panel="normalized"],
.tab-panel[data-panel="tree"],
.tab-panel[data-panel="elements"] {
  grid-template-rows: minmax(0, 1fr);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid var(--stroke);
  background: #f6f6f6;
}

.zoom-label {
  min-width: 38px;
}

.fit-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 8px;
}

.preview-host {
  position: relative;
  overflow: auto;
  background: #f0f0f0;
  padding: 16px;
}

.preview-canvas {
  display: block;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.export-bar {
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border-top: 1px solid var(--stroke);
  background: #f6f6f6;
}

.output-box {
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  resize: none;
  outline: none;
  background: #ffffff;
  color: #1f1f1f;
}

.legal-card {
  display: grid;
  gap: 22px;
}

.legal-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid #e4e4e4;
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.legal-text,
.legal-list,
.legal-note {
  margin: 0;
  color: #4f5d71;
  line-height: 1.7;
}

.legal-list {
  padding-left: 20px;
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-meta {
  display: grid;
  gap: 4px;
  color: #425268;
}

.legal-meta strong {
  color: var(--text);
  font-weight: 600;
}

.legal-callout {
  padding: 14px 16px;
  border: 1px solid #d7e3ff;
  background: #f7faff;
  color: #31415d;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: pre;
  word-break: normal;
  overflow: auto;
}

.elements-wrap {
  min-height: 0;
  overflow: auto;
  background: #ffffff;
}

.elements-table {
  width: 100%;
  border-collapse: collapse;
}

.elements-table th,
.elements-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
  vertical-align: top;
}

.elements-table thead th {
  position: sticky;
  top: 0;
  background: #f4f4f4;
  z-index: 1;
}

.status-bar {
  width: min(var(--desktop-width), calc(100% - 20px));
  height: var(--footer-height);
  margin: 0 auto 12px;
  padding: 4px 10px;
  border: 1px solid #d4d4d4;
  border-top: 0;
  background: #fafafa;
  color: #333333;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack {
  width: min(var(--desktop-width), calc(100% - 20px));
  margin: 0 auto 48px;
  padding: 28px 0 0;
  display: grid;
  gap: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid #d8e0ee;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(71, 123, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.94));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -48px -56px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 98, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.hero-compact {
  padding-bottom: 26px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 78ch;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  color: #4f5d71;
  font-size: 16px;
  line-height: 1.7;
  max-width: 72ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-toggle {
  min-width: 132px;
}

.auth-toggle.is-active,
.auth-toggle.is-active:hover,
.auth-toggle.is-active:focus-visible {
  border-color: #2f66d8;
  background: linear-gradient(180deg, #5e93ff, #2f66d8);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 102, 216, 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #2f66d8;
  border-radius: 999px;
  background: linear-gradient(180deg, #5e93ff, #2f66d8);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 102, 216, 0.18);
}

.button:hover,
.button:focus-visible {
  background: linear-gradient(180deg, #6aa0ff, #3b72e3);
}

.button-secondary {
  border-color: #c6d2e4;
  background: linear-gradient(180deg, #ffffff, #f3f6fb);
  color: #24426d;
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: linear-gradient(180deg, #ffffff, #eef3f9);
}

.button-danger {
  border-color: #e16a7b;
  background: linear-gradient(180deg, #ffeff2, #ffd9e0);
  color: #9f1f34;
  box-shadow: none;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: linear-gradient(180deg, #fff4f6, #ffdde4);
}

.button[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0;
  color: #5b6f8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.integrations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 22px 24px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: var(--shadow-soft);
}

.api-overview {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.service-card {
  min-height: 100%;
}

.code-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.code-card p {
  margin: 0;
  color: #4f5d71;
  line-height: 1.7;
}

.code-card code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: rgba(41, 98, 255, 0.08);
  color: #24426d;
}

.auth-shell,
.settings-shell,
.feedback-shell {
  gap: 20px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-card,
.feedback-card {
  gap: 14px;
}

.auth-card[hidden],
.user-menu-panel[hidden] {
  display: none !important;
}

.auth-card h2,
.feedback-card h2,
.settings-panel-copy h3 {
  margin: 0;
}

.auth-card p,
.feedback-card p,
.settings-panel-copy p {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid .field-label input,
.form-grid .field-label select,
.form-grid .field-label textarea {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd5e4;
  border-radius: 12px;
  background: #ffffff;
  color: #172131;
}

.form-grid .field-label textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-status {
  margin: 0;
  min-height: 20px;
  color: #5b6f8c;
  line-height: 1.5;
}

.form-status.is-success {
  color: #1d7a41;
}

.form-status.is-error {
  color: #b00020;
}

.form-status.is-muted {
  color: #5b6f8c;
}

.auth-callout,
.settings-info-card {
  padding: 14px 16px;
  border: 1px solid #d7e3ff;
  border-radius: 16px;
  background: #f7faff;
  color: #31415d;
}

.auth-callout strong {
  color: #172131;
}

.settings-card {
  padding: 0;
  overflow: hidden;
}

.settings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.settings-top-copy {
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

.settings-top-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.settings-auth-hint,
.settings-meta {
  margin: 0;
  color: #4f5d71;
  line-height: 1.6;
}

.settings-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(41, 98, 255, 0.18), rgba(41, 98, 255, 0.08));
  color: #24426d;
  font-size: 26px;
  font-weight: 700;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 24px 0;
  border-bottom: 1px solid #d8e3f1;
}

.settings-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #4d627e;
  cursor: pointer;
}

.settings-tab.is-active {
  margin-bottom: -1px;
  border-color: #d8e3f1;
  border-bottom-color: #ffffff;
  background: #ffffff;
  color: #172131;
  box-shadow: 0 -1px 0 #ffffff;
}

.settings-panel {
  display: none;
  padding: 24px;
}

.settings-panel.is-active {
  display: grid;
}

.settings-panel-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.settings-panel-copy {
  display: grid;
  gap: 10px;
}

.settings-panel-copy h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.settings-form {
  min-width: 0;
}

.settings-info-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.settings-instance-card {
  gap: 18px;
}

.settings-instance-card .settings-info-value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  word-break: break-word;
}

.settings-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-instance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.settings-instance-item {
  display: grid;
  gap: 4px;
}

.settings-info-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d2dded;
  background: #eef4ff;
  color: #284670;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.settings-instance-chip.is-active,
.settings-info-chip.is-active {
  border-color: #bfe4c7;
  background: #edf9f0;
  color: #1f6a35;
}

.settings-instance-chip.is-cancelled,
.settings-info-chip.is-cancelled {
  border-color: #f0b8b8;
  background: #fff1f1;
  color: #ab2323;
}

.settings-instance-section {
  display: grid;
  gap: 8px;
}

.settings-instance-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px !important;
  letter-spacing: 0;
}

.settings-node-list {
  padding-left: 18px;
}

.settings-info-label {
  color: #5b6f8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.settings-info-value {
  color: #172131;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.settings-info-copy {
  margin: 0;
  color: #4f5d71;
  line-height: 1.7;
}

.settings-list {
  margin: 0;
  padding-left: 20px;
  color: #4f5d71;
  line-height: 1.7;
}

.feedback-card {
  gap: 18px;
}

.feedback-copy {
  display: grid;
  gap: 10px;
  max-width: 72ch;
}

.feedback-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feedback-form {
  gap: 14px;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d6deeb;
  border-radius: 14px;
  background: #f8fbff;
  color: #203a63;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: auto;
}

.health-panel {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #d5ddeb;
  border-radius: 999px;
  background: #eef4ff;
  color: #284670;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-chip.is-loading {
  border-color: #d5ddeb;
  background: #eef4ff;
  color: #284670;
}

.status-chip.is-ok {
  border-color: #bfe4c7;
  background: #edf9f0;
  color: #1f6a35;
}

.status-chip.is-error {
  border-color: #f0b8b8;
  background: #fff1f1;
  color: #ab2323;
}

.health-meta {
  color: #5b6f8c;
  font-size: 12px;
  line-height: 1.45;
}

.examples-card {
  gap: 18px;
  padding: 26px;
}

.examples-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.examples-header .pricing-copy {
  margin-top: 10px;
  margin-bottom: 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.example-card summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.example-card summary::-webkit-details-marker {
  display: none;
}

.example-card[open] summary {
  border-bottom: 1px solid #dbe3ef;
}

.example-title {
  color: #1f3656;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.example-subtitle {
  color: #5b6f8c;
  font-size: 13px;
  line-height: 1.55;
}

.example-card .code-block {
  margin: 0;
  border: 0;
  border-top: 1px solid #d6deeb;
  border-radius: 0 0 16px 16px;
  background: #f8fbff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricing-card {
  gap: 18px;
  padding: 26px;
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(77, 132, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: var(--shadow-soft);
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.pricing-copy {
  margin: 10px 0 0;
  max-width: 78ch;
  color: #4f5d71;
  line-height: 1.7;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d2dae8;
  border-radius: 999px;
  background: #eef3fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pricing-toggle-button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b6f8c;
  cursor: pointer;
  font-weight: 700;
}

.pricing-toggle-button.is-active {
  background: linear-gradient(180deg, #5e93ff, #2f66d8);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 102, 216, 0.18);
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
}

.pricing-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-table thead th {
  padding: 18px 14px 16px;
  border-bottom: 1px solid #dbe3ef;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  vertical-align: bottom;
}

.pricing-table thead th:first-child {
  width: 34%;
  background: #ffffff;
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f7;
}

.pricing-table tbody tr:nth-child(odd) th,
.pricing-table tbody tr:nth-child(odd) td {
  background: #f8faff;
}

.pricing-table tbody th {
  text-align: left;
  color: #2b3d57;
  font-weight: 600;
}

.pricing-table tbody td {
  text-align: center;
  color: #415268;
}

.pricing-table thead th:nth-child(2) .pricing-plan-name {
  color: #e67d00;
}

.pricing-table thead th:nth-child(3) .pricing-plan-name {
  color: #5f9f4f;
}

.pricing-table thead th:nth-child(4) .pricing-plan-name {
  color: #4e9a57;
}

.pricing-table thead th:nth-child(5) .pricing-plan-name {
  color: #3d7dd8;
}

.pricing-plan-name {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-plan-price {
  display: block;
  color: #1f3656;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.pricing-actions-row th,
.pricing-actions-row td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}

.pricing-actions-row .button {
  width: 100%;
  min-height: 42px;
  padding-inline: 14px;
}

.pricing-actions-row .button-secondary {
  font-size: 13px;
}

body[data-page="templates"] {
  background:
    linear-gradient(180deg, #fbfaf8 0%, #f4f1eb 100%);
  color: #222222;
}

body[data-page="templates"]::before {
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

.templates-shell {
  width: min(1560px, calc(100% - 20px));
  margin: 24px auto 40px;
  display: grid;
  gap: 18px;
}

.templates-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 132, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: var(--shadow-soft);
}

.templates-hero-copy {
  max-width: 72ch;
}

.templates-hero-copy h1 {
  margin: 8px 0 0;
  color: #1f2b3a;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.templates-lede {
  margin: 14px 0 0;
  color: #4f5d71;
  font-size: 16px;
  line-height: 1.75;
}

.templates-hero-tools {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
}

.templates-hero-tools .field-label {
  color: #243447;
}

.templates-hero-tools .field-label input,
.templates-hero-tools .field-label select {
  min-height: 40px;
  border-color: #cbd5e4;
  background: #f8fafc;
  color: #16202f;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.template-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(116, 132, 156, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f3f6fa);
  box-shadow: 0 14px 34px rgba(13, 18, 26, 0.18);
  color: #152131;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.template-card[hidden] {
  display: none !important;
}

.template-card:hover,
.template-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(98, 119, 170, 0.48);
  box-shadow: 0 18px 42px rgba(13, 18, 26, 0.24);
}

.template-card-preview-wrap {
  display: grid;
  place-items: center;
  height: 176px;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid #d8dfe8;
  border-radius: 14px;
  background: #fff;
}

.template-card-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.template-card-blank {
  background: linear-gradient(180deg, #f3f5f7, #e5e8ed);
  border-style: dashed;
}

.template-card-blank-body {
  display: grid;
  place-items: center;
  gap: 10px;
  height: 100%;
  color: #4a5668;
  font-weight: 600;
  text-align: center;
}

.template-card-blank-plus {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(47, 102, 216, 0.14);
  color: #2f66d8;
  font-size: 30px;
  line-height: 1;
}

.template-card-meta {
  display: grid;
  gap: 8px;
  min-height: 72px;
}

.template-card-title {
  display: -webkit-box;
  min-height: 2.45em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.template-card-tags,
.template-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-card-tags {
  min-height: 22px;
}

.template-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(44, 64, 88, 0.08);
  color: #243447;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.template-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(246, 243, 237, 0.82);
  backdrop-filter: blur(14px) saturate(115%);
}

.template-modal[hidden] {
  display: none !important;
}

.template-modal-dialog {
  position: relative;
  width: min(1280px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid #d7e1ee;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 132, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  color: #1f2b3a;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.16);
}

.template-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(41, 98, 255, 0.08);
  color: #24426d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.template-modal-close:hover,
.template-modal-close:focus-visible {
  background: rgba(41, 98, 255, 0.14);
}

.template-modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  overflow: auto;
}

.template-modal-preview-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.template-modal-preview-frame {
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 20px;
  background: #f8fafc;
}

.template-modal-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.template-modal-body {
  display: grid;
  gap: 18px;
  align-content: start;
}

.template-modal-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.template-modal-subtitle {
  margin: 10px 0 0;
  max-width: 68ch;
  color: #4f5d71;
  font-size: 16px;
  line-height: 1.7;
}

.template-modal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d2dae8;
  border-radius: 16px;
  background: #f4f7fb;
}

.template-modal-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4f5d71;
  cursor: pointer;
}

.template-modal-tab.is-active {
  background: linear-gradient(180deg, #6d88ff, #4d6fe5);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(68, 101, 214, 0.24);
}

.template-modal-panel-content {
  display: none;
  gap: 14px;
}

.template-modal-panel-content.is-active {
  display: grid;
}

.template-modal-description {
  margin: 0;
  max-width: 72ch;
  color: #415268;
  font-size: 16px;
  line-height: 1.75;
}

.template-modal .template-tag {
  background: rgba(41, 98, 255, 0.09);
  color: #24426d;
}

.template-data-callout {
  padding: 14px 16px;
  border: 1px solid #d7e3ff;
  border-radius: 14px;
  background: #f7faff;
  color: #31415d;
  line-height: 1.65;
}

.template-data-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.template-data-toolbar .button-small {
  min-width: 0;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.template-data-table-wrap {
  overflow: auto;
  max-height: 380px;
  border: 1px solid #d8dfe8;
  border-radius: 16px;
  background: #ffffff;
}

.template-data-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}

.template-data-table thead th,
.template-data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(128, 142, 163, 0.18);
  text-align: left;
  white-space: nowrap;
}

.template-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f6fb;
  color: #5a6f89;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: top;
}

.template-data-table tbody td {
  color: #203145;
  vertical-align: top;
}

.template-data-table tbody tr {
  transition: background-color 0.15s ease;
}

.template-data-table tbody tr:hover td {
  background: #f5f9ff;
}

.template-data-table tbody tr:nth-child(odd) td {
  background: #fafcff;
}

.template-data-table tbody tr.is-selected td {
  background: #eaf2ff;
}

.template-data-row-head,
.template-data-row-index {
  width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.template-data-column-head {
  min-width: 190px;
}

.template-data-column-head-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.template-data-header-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c9d4e3;
  border-radius: 10px;
  background: #ffffff;
  color: #203145;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.template-data-header-input:focus {
  outline: none;
  border-color: #5b7cf0;
  box-shadow: 0 0 0 3px rgba(91, 124, 240, 0.16);
}

.template-data-column-remove {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid #c9d4e3;
  border-radius: 999px;
  background: #f8fafc;
  color: #5a6f89;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.template-data-column-remove:hover,
.template-data-column-remove:focus-visible {
  border-color: #7f93b6;
  background: #edf3ff;
  color: #2c4265;
}

.template-data-row-index {
  font-weight: 700;
  color: #5a6f89;
}

.template-data-row {
  cursor: pointer;
}

.template-data-row.is-selected .template-data-row-index {
  color: #3053d5;
}

.template-data-input {
  width: 100%;
  min-width: 140px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #c9d4e3;
  border-radius: 10px;
  background: #ffffff;
  color: #203145;
  font: inherit;
}

.template-data-input:focus {
  outline: none;
  border-color: #5b7cf0;
  box-shadow: 0 0 0 3px rgba(91, 124, 240, 0.16);
}

.template-license {
  margin: 0;
  padding: 18px;
  border: 1px solid #d8dfe8;
  border-radius: 16px;
  background: #fbfcfe;
  color: #243447;
  font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
  line-height: 1.6;
}

.template-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 18px 28px 24px;
  border-top: 1px solid #d8dfe8;
  background: rgba(248, 250, 252, 0.95);
}

.template-modal-file {
  min-width: min(420px, 100%);
  color: #223247;
}

.template-modal-file span {
  font-weight: 600;
}

.template-modal-file input {
  min-height: 42px;
  border-color: #cbd5e4;
  background: #ffffff;
  color: #172131;
}

.template-modal-actions {
  display: flex;
  gap: 10px;
}

.template-modal-actions .button {
  min-width: 116px;
}

.placeholder-shell {
  width: min(960px, calc(100% - 20px));
  margin: 36px auto;
}

.placeholder-card {
  padding: 28px;
  border: 1px solid #d7d7d7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.placeholder-kicker {
  margin: 0 0 8px;
  color: #5b6f8c;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.placeholder-card h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
}

.placeholder-subtitle {
  margin: 12px 0 0;
  color: #425268;
  font-size: 18px;
}

.placeholder-body {
  max-width: 65ch;
  margin: 18px 0 0;
  color: #4f5d71;
  line-height: 1.7;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button-link.secondary {
  background: linear-gradient(180deg, #ffffff, #f4f4f4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1120px) {
  .app-frame,
  .status-bar {
    width: calc(100% - 20px);
  }

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

  .splitter {
    display: none;
  }

  .pane-left {
    border-bottom: 1px solid var(--stroke);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 6px;
    height: auto;
    padding: 10px 12px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .workspace {
    min-height: auto;
  }

  .pane-left {
    grid-template-rows: var(--toolbar-height) minmax(320px, 52vh) auto;
  }

  .settings-row,
  .api-row {
    grid-template-columns: 1fr;
  }

  .size-controls,
  .range-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .fit-check {
    margin-left: 0;
  }

  .templates-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .templates-hero-tools {
    min-width: 0;
  }

  .template-modal-layout {
    grid-template-columns: 1fr;
  }

  .auth-grid,
  .feedback-grid,
  .settings-panel-grid {
    grid-template-columns: 1fr;
  }

  .settings-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .template-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .template-modal-file {
    min-width: 0;
  }

  .stack {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  .hero,
  .pricing-card,
  .code-card {
    padding: 20px;
  }

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

  .examples-header {
    flex-direction: column;
  }

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

  .pricing-header {
    flex-direction: column;
  }

  .pricing-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .pricing-toggle-button {
    flex: 1 1 0;
  }

  .examples-card {
    padding: 20px;
  }

  .template-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }

  .lede,
  .pricing-copy {
    font-size: 14px;
  }

  .pricing-table {
    min-width: 760px;
  }

  .pricing-table thead th,
  .pricing-table tbody th,
  .pricing-table tbody td {
    padding-inline: 12px;
  }

  .pricing-plan-price {
    font-size: 20px;
  }

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

  .template-modal-layout,
  .template-modal-footer {
    padding: 20px;
  }
}

