:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --text: #0f0f0f;
  --muted: #3f3f3f;
  --line: #111111;
  --dark: #111111;
  --dark-hover: #000000;
  --radius: 18px;
  --shadow: 5px 6px 0 rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.2px;
  scrollbar-width: thin;
  scrollbar-color: #111 #dedede;
}

/* Custom scrollbar (WebKit / Chromium) - chunky black outline, sketchy vibe */
*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  background: #e4e4e4;
  border-left: 3px solid #000;
  border-radius: 0;
}

*::-webkit-scrollbar-thumb {
  background: #111;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: #000;
}

*::-webkit-scrollbar-corner {
  background: #e4e4e4;
}

img {
  max-width: 100%;
  display: block;
}

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

code {
  background: #e8e8e8;
  border: 2px solid #111;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* Code samples: nested <code> inside <pre> must not use inline-code styling */
pre.code-block code,
.code-block code,
.prose pre code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #f5f5f5 !important;
  font-family: ui-monospace, "Cascadia Mono", "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  display: block;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 243, 243, 0.95);
  border-bottom: 3px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  transform: rotate(-2deg);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 58% 42% 63% 37% / 40% 63% 37% 60%;
  border: 4px solid #000;
  outline: 2px solid #000;
  outline-offset: 2px;
  transform: rotate(-6deg);
}

nav.nav-links,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-weight: 800;
  color: #1f1f1f;
  transform: rotate(1deg);
  font-size: 0.92rem;
}

nav a.nav-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 72px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 22px 18px 20px 16px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  transform: rotate(-2deg);
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  transform: rotate(-0.5deg);
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 10px 16px 8px;
  padding: 12px 18px;
  font-weight: 800;
  border: 3px solid var(--line);
  transition: all 0.2s ease;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.8);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-hover);
  transform: translate(1px, 1px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.8);
}

.btn-light {
  background: #fff;
}

.btn-light:hover {
  border-color: #b9b9b9;
}

.hero-card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 22px 12px 20px 14px;
  padding: 26px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-logo {
  width: 78px;
  height: 78px;
  border-radius: 56% 44% 60% 40% / 42% 62% 38% 58%;
  border: 4px solid #000;
  outline: 2px solid #000;
  outline-offset: 3px;
  transform: rotate(-7deg);
  margin-bottom: 16px;
}

.section {
  padding: 70px 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

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

.feature-item {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px 20px 12px 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-item:nth-child(odd) {
  transform: rotate(-1deg);
}

.feature-item:nth-child(even) {
  transform: rotate(1deg);
}

.feature-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: #e9e9e9;
  border-top: 3px dashed var(--line);
  border-bottom: 3px dashed var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 16px 10px 18px 12px;
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.contact-box {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 16px 24px 18px 14px;
  padding: 26px;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.discord-cta-actions {
  margin-top: 18px;
}

.discord-cta-actions .btn {
  display: inline-flex;
}

.contact-form {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form input {
  min-width: 250px;
  flex: 1;
  border: 3px solid #1d1d1d;
  border-radius: 10px 14px 8px 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus {
  outline: 2px solid #888;
  border-color: #888;
}

.form-message {
  min-height: 1.4rem;
  font-weight: 600;
  margin-top: 10px;
}

.site-footer {
  border-top: 3px solid var(--line);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.95rem;
}

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

.page-main {
  padding: 40px 0 70px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  transform: rotate(-0.4deg);
}

.page-lead {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose pre,
.code-block {
  background: #111;
  color: #f5f5f5;
  border: 3px solid #000;
  border-radius: 10px 14px 8px 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.download-steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.download-step {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px 18px 12px 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.download-step h3 {
  margin: 0 0 8px;
}

.release-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 24px;
  align-items: start;
}

.release-card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 16px 24px 18px 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(-0.35deg);
}

.release-card:nth-child(even) {
  transform: rotate(0.4deg);
}

.release-version {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.release-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.release-actions {
  margin-bottom: 12px;
}

.release-details summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.release-details summary::after {
  content: " ▼";
  font-size: 0.75em;
}

.release-details[open] summary::after {
  content: " ▲";
}

.release-details ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-weight: 600;
}

.docs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.docs-toc a {
  display: block;
  padding: 6px 0;
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.status-card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.status-card .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #000;
  margin-right: 8px;
  vertical-align: middle;
}

.module-tool-layout {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 14px;
  min-height: 520px;
  margin-top: 20px;
}

/* Sketch-style checkboxes (Module Builder - align with block UI) */
.module-tool-layout input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  margin: 0;
  border: 3px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  vertical-align: middle;
  align-self: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.module-tool-layout input[type="checkbox"]:checked {
  background-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5.2 8.8 9.8 3.5'/%3E%3C/svg%3E");
}

.module-tool-layout input[type="checkbox"]:focus-visible {
  outline: 3px solid #7cb9ff;
  outline-offset: 2px;
}

.module-tool-layout input[type="checkbox"]:hover {
  filter: brightness(0.97);
}

.block-palette {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.block-palette h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.palette-block {
  border: 3px solid #000;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: grab;
  font-weight: 800;
  font-size: 0.85rem;
}

.palette-block[data-kind="hat"] {
  background: #ffcc00;
}

.palette-block[data-kind="action"] {
  background: #7cb9ff;
}

.palette-block:active {
  cursor: grabbing;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.import-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.cod-side-textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  resize: vertical;
}

.scratch-block .embed-advanced {
  margin-top: 8px;
}

.scratch-block .embed-advanced summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.scratch-block .embed-advanced textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  resize: vertical;
}

.card-sketch {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.template-bar label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.template-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.template-bar-row .select-sketch {
  flex: 1 1 200px;
  min-width: 180px;
}

.template-bar-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.btn-compact {
  padding: 4px 10px;
  font-size: 0.72rem;
}

.scratch-block .embed-section-details {
  margin-top: 10px;
  border: 2px dashed #333;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.scratch-block .embed-section-details > summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.scratch-block .embed-components-hint {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.scratch-block .chk-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 10px 0;
  cursor: pointer;
  line-height: 1.25;
}

.scratch-block .chk-line-text {
  flex: 1;
  min-width: 0;
}

.scratch-block .inp-embed-url {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.embed-field-row {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.embed-field-row label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 6px;
}

.embed-field-row label:first-of-type {
  margin-top: 0;
}

.embed-field-row input[type="text"],
.embed-field-row textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.78rem;
}

.embed-field-row .fld-inline-lab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.embed-field-row .fld-inline-text {
  flex: 0 0 auto;
  line-height: 1.2;
}

.embed-row-buttons-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.comp-row-select > label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 6px;
}

.comp-row-select > .comp-row-head + label {
  margin-top: 0;
}

.comp-row {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #f9f9f9;
}

.comp-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.comp-btn-item {
  border: 2px dashed #555;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 6px;
  background: #fff;
}

.comp-btn-item label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 4px;
}

.comp-btn-item label:first-child {
  margin-top: 0;
}

.comp-btn-item input,
.comp-btn-item select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  font-size: 0.75rem;
}

.comp-select-options .sel-opt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
  align-items: end;
}

.comp-select-options .sel-opt-row textarea {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  font-size: 0.72rem;
}

.comp-raw-json {
  width: 100%;
  min-height: 72px;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 6px;
}

.scratch-workspace-wrap {
  background: #e8e8e8;
  border: 3px dashed #111;
  border-radius: 16px;
  padding: 16px;
  min-height: 480px;
  background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
  background-size: 16px 16px;
}

.scratch-scripts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.scratch-script {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 260px;
}

.scratch-hat {
  background: #ffcc00;
  border: 3px solid #000;
  border-radius: 12px 12px 8px 8px;
  padding: 12px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 3;
}

.scratch-hat label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.scratch-hat label.hat-ephemeral-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.25;
}

.hat-ephemeral-row .hat-ephemeral {
  flex-shrink: 0;
  margin: 0;
}

.hat-ephemeral-text {
  flex: 1;
  min-width: 0;
  font-weight: 800;
}

.scratch-hat input.hat-name,
.scratch-hat input.hat-desc,
.scratch-hat select.select-sketch {
  width: 100%;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  margin-bottom: 8px;
}

.select-sketch {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 3px solid #000 !important;
  border-radius: 8px !important;
  padding: 8px 2rem 8px 10px !important;
  font: inherit;
  font-weight: 700;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  cursor: pointer;
}

.select-sketch:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.toolbar-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar-label {
  font-size: 0.85rem;
  font-weight: 800;
}

.toolbar-add-row .select-sketch {
  flex: 1 1 160px;
  min-width: 140px;
}

.scratch-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.scratch-block {
  position: relative;
  margin-top: -10px;
  padding: 14px 12px 12px;
  border: 3px solid #000;
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.scratch-block:first-of-type {
  margin-top: -6px;
}

.scratch-block[data-variant="reply"] {
  background: #4fc3f7;
}

.scratch-block[data-variant="mod"] {
  background: #ce93d8;
}

.scratch-block[data-variant="channel"] {
  background: #80cbc4;
}

.scratch-block[data-variant="data"] {
  background: #c8e6c9;
}

.scratch-block[data-variant="embed"] {
  background: #ffb74d;
}

.scratch-block label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.scratch-block input,
.scratch-block select,
.scratch-block textarea {
  width: 100%;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.scratch-block textarea {
  min-height: 48px;
  resize: vertical;
}

.scratch-remove {
  background: #ff6b6b;
  border: 2px solid #000;
  font-weight: 800;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 4px;
}

.script-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.script-toolbar .remove-script-btn {
  align-self: flex-start;
}

.workspace {
  background: #e8e8e8;
  border: 3px dashed #111;
  border-radius: 16px;
  padding: 16px;
  min-height: 480px;
}

.workspace-empty {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 40px 16px;
}

.command-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-cmd {
  background: #7cb9ff;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.5);
}

.stack-cmd label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stack-cmd input,
.stack-cmd textarea {
  width: 100%;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  margin-bottom: 8px;
}

.stack-cmd textarea {
  min-height: 72px;
  resize: vertical;
}

.stack-remove {
  background: #ff6b6b;
  border: 2px solid #000;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.tool-sidebar {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.tool-sidebar h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.meta-row {
  margin-bottom: 10px;
}

.meta-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.meta-row input {
  width: 100%;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

.preview-json {
  font-size: 0.72rem;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #111;
  color: #e0e0e0;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

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

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

  .docs-toc {
    position: static;
  }

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