/* axi0 Tools (/tools/): the axi0 family look, as on Notes. True black, Instrument Sans, the orange core as the one
   accent. No inline styles in the markup (the page runs under style-src 'self'). */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --bg: #000; --panel: #0a0a0c; --panel2: #0d0d10; --panel-a: rgba(10, 10, 12, .9); --field: #050506; --hover: #141418; --raise: #18181d;
  --line: #1c1c21; --line1b: #1d1d23; --line2: #2a2a31; --line3b: #33333b; --line3: #3a3a42; --field-line: #2a2a31;
  --head: #fff; --ink: #f5f5f7; --ink2: #f1f1f4; --text: #d6d6dc; --text2: #c4c4cc; --icon: #b9b9c2; --soft: #b4b4bd; --soft2: #a9a9b3;
  --lede: #a3a3ad; --soft4: #9a9aa4; --mute: #8e8e98; --faint: #868692; --place: #7c7c87;
  --core: #f6a04d; --core-ink: #f6a04d; --core-hover: #ffb26a; --on-core: #000;
  --danger: #ff8f78; --danger-line: rgba(255, 143, 120, .4);
  --knob: #c8c8d0; --veil: rgba(255, 255, 255, .08); --uline: rgba(196, 196, 204, .45);
  color-scheme: dark;
}
html[data-axi0-theme="light"] {
  --bg: #f6f2ea; --panel: #fffdf9; --panel2: #fffdf9; --panel-a: rgba(255, 253, 249, .92); --field: #fffdf9; --hover: #efe8dc; --raise: #ece5d8;
  --line: #e6dfd3; --line1b: #e6dfd3; --line2: #d3cabb; --line3b: #b9ae9c; --line3: #8a8174; --field-line: #8a8174;
  --head: #17140f; --ink: #17140f; --ink2: #1f1b16; --text: #2c2823; --text2: #3d3730; --icon: #4f4940; --soft: #4a433b; --soft2: #50483f;
  --lede: #4f4940; --soft4: #5d554b; --mute: #675f54; --faint: #675f54; --place: #6f665a;
  --core-ink: #9a4a0a; --danger: #b3261e; --danger-line: rgba(179, 38, 30, .4);
  --knob: #6f665a; --veil: rgba(60, 40, 20, .07); --uline: rgba(61, 55, 48, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) {
    --bg: #f6f2ea; --panel: #fffdf9; --panel2: #fffdf9; --panel-a: rgba(255, 253, 249, .92); --field: #fffdf9; --hover: #efe8dc; --raise: #ece5d8;
    --line: #e6dfd3; --line1b: #e6dfd3; --line2: #d3cabb; --line3b: #b9ae9c; --line3: #8a8174; --field-line: #8a8174;
    --head: #17140f; --ink: #17140f; --ink2: #1f1b16; --text: #2c2823; --text2: #3d3730; --icon: #4f4940; --soft: #4a433b; --soft2: #50483f;
    --lede: #4f4940; --soft4: #5d554b; --mute: #675f54; --faint: #675f54; --place: #6f665a;
    --core-ink: #9a4a0a; --danger: #b3261e; --danger-line: rgba(179, 38, 30, .4);
    --knob: #6f665a; --veil: rgba(60, 40, 20, .07); --uline: rgba(61, 55, 48, .45);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 15px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--core-ink); text-underline-offset: 3px; }
::selection { background: rgba(246, 160, 77, .35); }
[hidden] { display: none !important; }
.is-locked .when-unlocked, .is-unlocked .when-locked { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--core); color: var(--on-core); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core-ink); outline-offset: 2px; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 22px 20px 8px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; color: var(--head); text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.mark-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 9px var(--core); transform: translateY(-2px); }
.mark-s { color: var(--mute); font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 14px; }
html[data-axi0-theme="light"] @media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"])   html:not([data-axi0-theme="dark"]) }
.me-slot { position: relative; flex: none; width: 36px; height: 36px; }
.me-slot:empty { display: none; }

/* ---- the page ------------------------------------------------------------------------------------------------ */
main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 60px; min-height: calc(100vh - 200px); }
.intro h1 { margin: 18px 0 6px; font-size: 40px; letter-spacing: -.035em; color: var(--head); line-height: 1.05; }
.lede { margin: 0 0 18px; max-width: 46em; color: var(--lede); font-size: 17px; }
.find { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.find label { color: var(--mute); font-size: 14px; }
.find input { flex: 1 1 auto; max-width: 420px; font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 999px; padding: 9px 16px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.catalog a { display: block; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; min-height: 92px; }
.catalog a:hover { border-color: var(--line3b); background: var(--hover); }
.catalog a[hidden] { display: none !important; }
.catalog .t { display: block; color: var(--head); font-weight: 600; font-size: 15px; margin: 0 0 3px; }
.catalog .d { display: block; color: var(--mute); font-size: 13px; line-height: 1.4; }
.catalog .g { display: inline-block; margin: 0 0 8px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--core-ink); border: 1px solid rgba(246, 160, 77, .45); }
.crumbs { margin: 0 0 12px; font-size: 14px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--head); text-decoration: underline; }
.stage .axi0-tool { max-width: 860px; }
.error { color: var(--danger); }
.drop { display: block; border: 1px dashed var(--line3b); border-radius: 12px; padding: 18px; text-align: center; color: var(--mute); margin: 0 0 10px; }
.drop.is-over { border-color: var(--core); color: var(--head); }
.drop input { display: none; }
.axi0-tool-btn.secondary { background: transparent; border-color: var(--line3b); color: var(--head); }
.preview { display: block; max-width: 100%; max-height: 300px; border-radius: 10px; margin: 0 0 8px; border: 1px solid var(--line); }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line3b); vertical-align: middle; margin-right: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } .intro h1 { font-size: 32px; } }
.axi0-tool-in.short { display: inline-block; width: 7em; margin: 0 8px 0 0; }
.axi0-tool-row .axi0-tool-l { min-width: 11em; }
.del { color: var(--danger); } .add { color: #3ddc84; } html[data-axi0-theme="light"] .add { color: #1a8a4c; }
@media (prefers-color-scheme: light) { html:not([data-axi0-theme="dark"]) .add { color: #1a8a4c; } }
.diff-line { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- instant tools (tools.js): one card at the top of the results ----------------------------------------------- */
.axi0-tool { box-sizing: border-box; margin: 0 0 18px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); font-size: 14px; line-height: 1.45; }
.axi0-tool-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.axi0-tool-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--core); align-self: center; flex: none; }
.axi0-tool-t { margin: 0; font-size: 15px; font-weight: 600; color: var(--head); }
.axi0-tool-note { color: var(--mute); font-size: 12.5px; }
.axi0-tool-row { display: flex; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.axi0-tool-row:first-of-type { border-top: 0; }
.axi0-tool-l { color: var(--mute); min-width: 9em; flex: none; font-size: 13px; }
.axi0-tool-v { color: var(--text); overflow-wrap: anywhere; }
.axi0-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.axi0-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 12px; }
.axi0-tool-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.axi0-tool-big { font-size: 26px; font-weight: 600; color: var(--head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.axi0-tool-u { color: var(--mute); font-size: 12px; }
.axi0-tool-bar { height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; margin: 0 0 10px; }
.axi0-tool-fill { height: 100%; width: 0; background: var(--core); transition: width .2s linear; }
.axi0-tool-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.axi0-tool-status { margin: 6px 0 0; color: var(--mute); font-size: 13px; }
.axi0-tool-btn, .axi0-tool-copy, .axi0-tool-mode { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--head); cursor: pointer; }
.axi0-tool-btn { background: var(--core); border-color: var(--core); color: var(--on-core); }
.axi0-tool-btn:disabled { opacity: .55; cursor: default; }
.axi0-tool-btn:hover:not(:disabled), .axi0-tool-copy:hover, .axi0-tool-mode:hover { filter: brightness(1.08); }
.axi0-tool-mode.is-on { border-color: var(--core-ink); color: var(--core-ink); }
.axi0-tool-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.axi0-tool-ta, .axi0-tool-in { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; color: var(--text); background: var(--field); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; resize: vertical; }
.axi0-tool-ta:focus, .axi0-tool-in:focus { outline: 2px solid var(--core-ink); outline-offset: 1px; }
.axi0-tool-out { color: var(--head); }
.axi0-tool-regex { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.axi0-tool-regex .axi0-tool-in { margin: 0; }
.axi0-tool-flags { max-width: 6em; }
.axi0-tool-slash { color: var(--mute); font-size: 18px; }
.axi0-tool-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 6px; padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--text); font-size: 13px; min-height: 2.4em; }
.axi0-tool-mark { background: rgba(246, 160, 77, .3); color: var(--head); border-radius: 3px; padding: 0 1px; }
html[data-axi0-theme="light"] .axi0-tool-mark { background: #ffe3bf; }
@media (prefers-color-scheme: light) { html:not([data-axi0-theme="dark"]) .axi0-tool-mark { background: #ffe3bf; } }
.axi0-tool-clock { margin: 2px 0 4px; }
.axi0-tool-uuid, .axi0-tool-pw { display: block; font-size: 20px; margin: 2px 0 6px; }
.axi0-tool-len { width: 5em; display: inline-block; margin: 0 0 0 6px; padding: 5px 8px; }
.axi0-tool-link { color: var(--core-ink); font-weight: 600; text-decoration: none; }
.axi0-tool-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .axi0-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .axi0-tool-l { min-width: 6.5em; }
  .axi0-tool-big { font-size: 22px; }
}

/* ---- the second set (tools-more.js) ------------------------------------------------------------------------------ */
select.axi0-tool-in, select.axi0-tool-in.short { width: auto; min-width: 7em; max-width: 100%; padding-right: 24px; }
.bits { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 6px; }
.bit { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; width: 22px; height: 24px; padding: 0; border-radius: 6px; border: 1px solid var(--line2); background: var(--field); color: var(--mute); cursor: pointer; }
.bit.on { background: var(--core); border-color: var(--core); color: var(--on-core); font-weight: 600; }
.bit:disabled { cursor: default; opacity: .7; }
.bits-gap { width: 6px; }
.fixes { margin: 6px 0 8px; padding: 0 0 0 1.2em; color: var(--text); font-size: 13px; }
.fixes li { margin: 2px 0; }
.cron-words { margin: 4px 0 10px; font-size: 18px; font-weight: 600; color: var(--head); letter-spacing: -.01em; }
.cron-runs { margin: 0 0 10px; padding: 0 0 0 1.4em; }
.cron-runs li { padding: 3px 0; border-top: 1px solid var(--line); }
.cron-runs li:first-child { border-top: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.check { color: var(--text); font-size: 13px; }
.check input { accent-color: var(--core); vertical-align: -1px; }
canvas.qr { display: block; max-width: 100%; height: auto; margin: 6px 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.api-line { display: flex; gap: 8px; align-items: stretch; margin: 0 0 10px; }
.api-line .axi0-tool-in { margin: 0; }
.api-line .axi0-tool-in.short { flex: none; }
.api-line input { flex: 1 1 auto; min-width: 0; }
.files { margin: 0 0 8px; padding: 0 0 0 1.4em; }
.files li { padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.files li:first-child { border-top: 0; }
.files .axi0-tool-copy { padding: 3px 9px; margin: 0 4px 0 0; font-size: 12px; }
.panel { padding: 10px 0 0; }
.panel .axi0-tool-status { margin: 0 0 8px; }
.md { border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 14px; margin: 0 0 8px; color: var(--text); overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { color: var(--head); margin: .6em 0 .3em; line-height: 1.2; }
.md h1 { font-size: 24px; } .md h2 { font-size: 20px; } .md h3 { font-size: 17px; } .md h4, .md h5, .md h6 { font-size: 15px; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md table { margin: .5em 0; }
.md pre { padding: 8px 10px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); overflow: auto; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.md p code, .md li code, .md td code, .md th code { background: var(--raise); padding: 0 4px; border-radius: 4px; }
.md blockquote { border-left: 3px solid var(--line3b); padding: 0 12px; color: var(--mute); }
.md table { border-collapse: collapse; }
.md th, .md td { border: 1px solid var(--line2); padding: 3px 8px; text-align: left; }
.md th { color: var(--head); }
.md .al-center { text-align: center; } .md .al-right { text-align: right; }
.md li.task { list-style: none; margin-left: -1.2em; }
.md hr { border: 0; border-top: 1px solid var(--line2); }
.md a { color: var(--core-ink); }
.md .md-img { color: var(--mute); font-style: italic; }
@media (max-width: 640px) {
  .api-line { flex-wrap: wrap; }
  .api-line input { flex-basis: 100%; }
  .bit { width: 19px; height: 22px; font-size: 11px; }
}
