/* The public directory page for the Quick tools rail. External, CSP-safe. */
:root {
  --ink: #16211c;
  --paper: #f5f2e9;
  --muted: #5c6b60;
  --line: #cfd4c6;
  --accent: #2f6b47;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
kituwa-network { display: block; min-height: 40px; --kn-color: #476952; }
main { max-width: 860px; margin: 0 auto; padding: 28px 22px 56px; }
.mast { padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 6px;
  font: 600 11px/1.4 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
}
h1 { font: 44px/1.05 Georgia, serif; margin: 0 0 10px; letter-spacing: -.02em; }
.lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.mast-actions { margin: 16px 0 0; }
.edit-rail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf7;
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 0 #1d4730;
}
.edit-rail:hover, .edit-rail:focus-visible {
  background: #245237;
  outline: 3px solid #7fb894;
  outline-offset: 3px;
}
.edit-rail svg { flex: none; }
h2 { font: 24px/1.2 Georgia, serif; margin: 34px 0 8px; }
h3 { font: 700 13px/1.3 system-ui, sans-serif; }
p { max-width: 72ch; }
.note { color: var(--muted); font-size: 14px; margin-top: 0; }
.live { margin-top: 8px; }
.live kituwa-tools {
  display: block;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #0f1a16;
  color: #f4f7ec;
}
code, pre {
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}
p code, li code, td code { overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
pre {
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
}
pre code { font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fffdf7; }
th, td { text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 600 10.5px/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  border: 1px solid #0003;
  border-radius: 4px;
}
.swatch-card_bg { background: #16211c; }
.swatch-card_fg { background: #f4f7ec; }
.swatch-muted { background: #a8b7a6; }
.swatch-accent { background: #a7d488; }
.swatch-dot { background: #4a5c51; }
.swatch-dot_active { background: #e9f2da; }
.tools { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tools li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf7;
}
.tools a { color: var(--accent); text-decoration: none; font-weight: 700; }
.tools a:hover, .tools a:focus-visible { text-decoration: underline; }
.tools span { color: var(--muted); font-size: 14px; }
footer { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--accent); }
@media (max-width: 620px) {
  main { padding: 20px 15px 44px; }
  h1 { font-size: 36px; }
  .tools li { grid-template-columns: 1fr; gap: 3px; }
  .live kituwa-tools { padding: 8px; }
}
