:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101614; color: #edf4ed; }
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 4.5rem; border-bottom: 1px solid #34423b; }
a { color: #a5e9bf; text-underline-offset: .25em; }
.intro { margin: clamp(2rem, 7vw, 5rem) 0 2rem; }
h1 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -.08em; line-height: 1; margin: 0; }
p { color: #b9c8be; line-height: 1.6; }
form { border: 1px solid #34423b; border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); background: #18211c; margin-bottom: 2rem; }
.config, .editors { display: grid; gap: 1rem; margin-bottom: 1rem; }
.config { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; font-size: .95rem; }
label > :is(input, select, textarea) { margin-top: .4rem; }
input, select, textarea, button { font: inherit; color: inherit; border: 1px solid #54675b; border-radius: .5rem; background: #111814; padding: .65rem .75rem; }
input, select, textarea { width: 100%; }
textarea { resize: vertical; }
.key-row, .actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.key-row { margin: .4rem 0 1rem; }
.key-row input { flex: 1 1 14rem; }
button { cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
button.primary { background: #a5e9bf; color: #12231a; border-color: #a5e9bf; font-weight: 650; }
:focus-visible { outline: 2px solid #a5e9bf; outline-offset: 2px; }
#status { min-height: 1.6rem; margin-bottom: 0; }
@media (max-width: 38rem) { .config, .editors { grid-template-columns: 1fr; } }

.brand { color: inherit; text-decoration: none; font-weight: 700; }
.tools-home .intro { margin-block: clamp(2.5rem, 8vw, 6rem) 2rem; }
.tools-home h1 span { display: block; color: #a5e9bf; margin-top: .12em; }
.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #34423b;
  border-radius: 1rem;
  background: #18211c;
  margin-bottom: 3rem;
}
.tool-content { padding: clamp(1.25rem, 4vw, 3rem); }
.tool-content h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin: 0; }
.tool-content p { max-width: 32ch; }
.launch {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: .6rem;
  padding: .65rem .85rem;
  border-radius: .5rem;
  background: #a5e9bf;
  color: #12231a;
  font-weight: 650;
  text-decoration: none;
}
.launch:hover { background: #cbf5d9; }
.tool-visual {
  display: grid;
  place-items: center;
  min-height: 9rem;
  background-color: #12271f;
  background-image: linear-gradient(#a5e9bf15 1px, transparent 1px), linear-gradient(90deg, #a5e9bf15 1px, transparent 1px);
  background-size: 2rem 2rem;
}
.visual-mark {
  font: 700 clamp(2rem, 6vw, 4rem)/1 ui-monospace, monospace;
  letter-spacing: -.08em;
  color: #e4f2e8;
}
.visual-mark span { color: #a5e9bf; }
@media (max-width: 38rem) { .tool-card { grid-template-columns: 1fr; } }
