/* =====================================================================
   Tommy's Toolbox — shared presentation for the standalone tool pages.
   Same design system as the rest of tommycunningham.uk (dark, red accent,
   Inter + JetBrains Mono). The tokens below mirror assets/css/site.css;
   tool pages do not load site.css, so they are repeated here on purpose.
   Tool logic, IDs and inline styles are left alone: this file only wraps them.
   ===================================================================== */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --background: #09090b; --surface: #111114; --surface-2: #17171b; --surface-hover: #1c1c21;
  --text: #f4f4f5; --text-muted: #a1a1aa; --text-dim: #8b8b95;
  --red: #e5192b; --red-bright: #ff3b4a; --red-text: #ff3b4a; --red-deep: #9f0f1d;
  --red-soft: rgba(229, 25, 43, 0.14); --red-glow: rgba(229, 25, 43, 0.35);
  --border: #26262c; --border-strong: #3a3a42; --focus: #ff6b75;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 18px; --radius-pill: 999px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 3vw, 2rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --dur: 220ms;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  /* Older tool-local names, kept so the per-tool rules below read naturally. */
  --bg: var(--background); --panel: var(--surface); --muted: var(--text-muted); --accent: var(--red-text);
  --fg: var(--text); --card: var(--surface); --chip: var(--surface-2);
}
html.tool-document {
  display: block; margin: 0; padding: 0; width: 100%; height: auto; min-height: 100%;
  background: var(--background); overflow: auto; touch-action: auto; -webkit-text-size-adjust: 100%;
}
body.tool-page {
  display: block; margin: 0; padding: 0; width: 100%; height: auto; min-height: 100dvh;
  overflow: visible; overflow-x: clip; touch-action: auto; text-align: left;
  background: var(--background); color: var(--text);
  font: 400 1rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.tool-page *, .tool-page *::before, .tool-page *::after { box-sizing: border-box; }
.tool-page [hidden] { display: none !important; }
.tool-page a { color: inherit; text-decoration: none; }
.tool-page a:hover { color: var(--text); }
.tool-page p { margin: 0 0 1em; }
.tool-page p:last-child { margin-bottom: 0; }
.tool-page code { font-family: var(--font-mono); font-size: 0.9em; color: var(--red-text); overflow-wrap: anywhere; }

/* ---------- Shell: the same container rhythm as the site ---------- */
.tool-shell { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.tool-ascii .tool-shell, .tool-room .tool-shell, .tool-necst .tool-shell { max-width: 1060px; }

/* Top bar: wordmark, back link and a status badge. Mirrors the site header. */
.tool-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem;
  min-height: 72px; padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.tool-nav__brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.tool-nav__brand span { color: var(--red-text); }
.tool-nav__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.tool-nav__links a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.1rem; }
.tool-nav__links a:hover, .tool-nav__links a:focus-visible { color: var(--text); }
.tool-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--text-muted); background: rgba(9, 9, 11, 0.6);
}
.tool-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

/* Page head: eyebrow, title with red accent, lead, description. */
.tool-page .tool-hero { padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: left; }
.tool-page .tool-hero .tool-eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; text-transform: lowercase;
  color: var(--red-text); margin: 0 0 0.5rem;
}
.tool-page .tool-hero .tool-eyebrow::before { content: "// "; }
.tool-page .tool-hero h1 {
  font-family: var(--font-sans); font-size: clamp(2.2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.035em; margin: 0.25rem 0 1rem; color: var(--text); text-align: left; text-wrap: balance;
}
.tool-hero h1 span { color: var(--red-text); }
.tool-page .tool-hero p { margin: 0 0 0.5rem; color: var(--text-muted); }
.tool-page .tool-hero .tool-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); font-weight: 500; max-width: 62ch; }
.tool-description { max-width: 65ch; font-size: 0.98rem; }

/* Work area: a site card. */
.tool-content {
  min-width: 0; padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tool-page .tool-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.25rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 1.25rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); text-align: left;
}
.tool-page .tool-footer a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 32px; color: var(--text-muted); }
.tool-page .tool-footer a:hover { color: var(--text); }
.tool-footer__nav { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }

/* ---------- Controls, in the site's form language ---------- */
.tool-page button, .tool-page input, .tool-page select, .tool-page textarea { font: inherit; }
.tool-page :is(button, a, input, select, summary) { -webkit-tap-highlight-color: transparent; }
.tool-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tool-page button, .tool-page #reset, .tool-page #home .form button, .tool-page #toolbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; margin: 0; padding: 0.6rem 1.1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); cursor: pointer;
  font-size: 0.9rem; line-height: 1.2; font-weight: 600; touch-action: manipulation;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tool-page button:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); }
.tool-page button:disabled { opacity: 0.45; cursor: not-allowed; }
.tool-page button.tool-primary, .tool-page button.primary, .tool-page #home .form button.tool-primary {
  color: #fff; border-color: transparent; background: var(--red); box-shadow: 0 8px 24px -10px var(--red-glow);
}
.tool-page button:is(.primary, .tool-primary):hover:not(:disabled) { background: var(--red-bright); border-color: transparent; transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--red-glow); }
.tool-page button.ghost { background: var(--surface); }
.tool-page label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tool-page input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="hidden"]):not([type="file"]):not([type="range"]),
.tool-page select, .tool-page textarea, .tool-page #home .form input, .tool-page #tools select {
  display: block; width: 100%; min-width: 0; min-height: 48px; height: auto;
  margin: 0.4rem 0 0; padding: 0.7rem 0.9rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--background); color: var(--text);
  font-size: 16px; line-height: 1.5; font-family: inherit; appearance: auto;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tool-page :is(input, select, textarea):focus-visible { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px var(--red-soft); }
.tool-page :is(input[type="radio"], input[type="checkbox"], input[type="range"], progress) { accent-color: var(--red); }
.tool-page ::placeholder { color: var(--text-dim); }
.tool-page input[type="time"]::-webkit-calendar-picker-indicator, .tool-page input[type="date"]::-webkit-calendar-picker-indicator, .tool-page input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.tool-hint { font-size: 0.85rem; color: var(--text-muted); }
.tool-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- What Time is It? keeps its single live region and no-JS fallback ---------- */
.tool-time .tool-content { padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem; text-align: center; }
.tool-time #clock {
  font: 700 clamp(1.3rem, 5.2vw, 3.4rem)/1.3 var(--font-mono);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text);
}
.tool-time #clock::before { content: "// the time, right now"; display: block; font: 400 0.8rem/1.6 var(--font-mono); letter-spacing: 0.02em; color: var(--red-text); margin-bottom: 1.1rem; }

/* ---------- How Long Ago was That? ---------- */
.tool-long .tool-content > div:first-child { max-width: 420px; }
.tool-long #output { margin: 1.5rem 0; font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; color: var(--red-text); text-align: left; text-wrap: balance; }
.tool-long .metrics { max-width: none; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin-top: 0; }
.tool-long .metric { padding: 1rem 0.75rem; border-radius: var(--radius-sm); background: var(--background); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; cursor: default; }
.tool-long .metric:hover { background: var(--surface-2); }
.tool-long .metric strong { color: var(--text); font: 700 1.25rem/1.5 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- I'm on Break: the biscuit and every timer state stay as they were ---------- */
.tool-break .tool-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
.tool-break #cookieBtn { width: 132px; height: 132px; margin: 0.25rem 0 1.25rem; }
.tool-break #timer { font: 700 clamp(2rem, 8vw, 3rem)/1.3 var(--font-mono); color: var(--text); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tool-break #overtimer { color: var(--red-text); min-height: 26px; margin: 0.5rem 0 0.9rem; font-family: var(--font-mono); }
.tool-break .minutes-wrapper { width: min(100%, 280px); margin-top: 1.5rem; }
.tool-break .minutes-wrapper::after { content: none; }
.tool-break #minutes { text-align: center; width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--background); color: var(--text); font-size: 16px; }

/* ---------- Kiss my ASCII: the art stays monospaced; only the frame changes ---------- */
.tool-ascii .tool-content { padding: 0; overflow: visible; }
.tool-ascii textarea#ascii, .tool-ascii #asciiGrid {
  display: block; width: 100%; height: 470px; margin: 0; border: 0; border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem; background: var(--background); font-family: var(--font-mono); font-size: 14px;
  line-height: 1.2; resize: vertical; overflow: auto; color: var(--ascii-color, var(--text));
}
.tool-ascii textarea#ascii:focus-visible { box-shadow: none; border: 0; }
.tool-ascii textarea#ascii::placeholder { color: var(--text-dim); opacity: 0.8; }
.tool-ascii #toolbar {
  position: static; width: 100%; padding: 0.85rem; justify-content: flex-start; gap: 0.5rem;
  background: var(--surface); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
}
.tool-ascii #toolbar button { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
.tool-ascii #toolbar .tooltip { display: inline-flex; align-items: center; }
.tool-ascii #toolbar .tooltip > a { display: grid; place-items: center; width: 44px; height: 44px; }
.tool-ascii #colorPicker { width: 44px; height: 44px; padding: 5px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.tool-ascii #tools select { width: 135px; min-height: 44px; font-size: 0.8rem; margin: 0; padding: 0.5rem; }
.tool-ascii #toast { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }

/* ---------- Picture this Edit: same server endpoints and upload handling ---------- */
.tool-upload { display: flex; position: relative; flex-direction: column; align-items: center; gap: 0.3rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.75rem 1rem; background: var(--background); cursor: pointer; text-align: center; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.tool-upload:hover { border-color: var(--red-bright); background: var(--surface-2); }
.tool-upload > span { color: var(--red-text); font-size: 1.8rem; line-height: 1.2; }
.tool-upload strong { font-weight: 600; }
.tool-upload small { color: var(--text-muted); font-size: 0.85rem; }
.tool-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tool-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.tool-imgedit #preview { margin: 1.5rem 0; text-align: center; }
.tool-imgedit #preview:not(:empty) { padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--image-matte, var(--background)); }
.tool-imgedit #preview:empty { margin: 1.25rem 0; }
.tool-imgedit #preview img { display: block; max-width: 100%; max-height: 55vh; margin: auto; border: 1px solid var(--border); box-shadow: none; }
.tool-imgedit .controls { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.55rem; overflow: visible; white-space: normal; width: 100%; }
.tool-imgedit .controls select { flex: 1 0 100%; width: 100%; margin: 0 0 0.5rem; }
.tool-imgedit .controls input[type="number"] { width: 110px !important; flex: 1 1 110px; margin: 0; }

/* ---------- Sleep Cycle Calculator: tabs and result chips keep their keyboard behaviour ---------- */
.tool-sleep .sleep-main { display: block; padding: 0; }
.tool-sleep .card { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tool-sleep .sleep-workspace > .tool-hint { margin: 0 0 1.25rem; }
.tool-sleep .mode-row { justify-content: flex-start; gap: 0.4rem; margin-bottom: 0.9rem; }
.tool-sleep .chip { flex: 1 1 180px; min-height: 54px; margin: 0; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--background); color: var(--text-muted); font-size: 0.85rem; }
.tool-sleep .chip strong { color: var(--text); }
.tool-sleep .chip.active { outline: 0; background: var(--red-soft); border-color: var(--red-bright); color: var(--text); }
.tool-sleep .chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tool-sleep .actions { justify-content: flex-start; margin: 0.75rem 0 0; }
.tool-sleep .grid { gap: 0.9rem; }
.tool-sleep .grid .col-3:has(#cycles) { display: none; }
.tool-sleep .grid .col-3:has(#latency) { grid-column: span 6; }
.tool-sleep .results { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem; }
.tool-sleep .result-row { justify-content: flex-start; gap: 0.75rem; }
.tool-sleep .pill { border-radius: var(--radius-sm); background: var(--background); border: 1px solid var(--border); color: var(--text); padding: 0.75rem 1rem; font-family: var(--font-mono); }
.tool-sleep .pill small { color: var(--text-muted); }
.tool-sleep .pill.best { outline: 0; border-color: var(--red-bright); box-shadow: 0 0 0 3px var(--red-soft); }
.tool-sleep .note { text-align: left; font-size: 0.85rem; color: var(--text-muted); }
.tool-sleep .sleep-workspace footer { padding: 1.4rem 0 0; text-align: left; font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }
.tool-sleep input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

/* ---------- Code Collab lobby and editor ---------- */
.tool-collab #home .form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; max-width: none; margin: 0; }
.tool-collab #home .form :is(label, input) { grid-column: 1 / -1; }
.tool-collab #home .form input { width: 100%; margin: 0 0 0.9rem; }
.tool-collab #home .form button { width: 100%; }
.tool-room .tool-content { padding: 0; overflow: hidden; }
.tool-room #roomDetails { position: static; width: 100%; padding: 1rem 1.25rem; font-size: 0.85rem; line-height: 1.6; font-weight: 400; color: var(--text-muted); background: var(--surface); text-align: left; border-bottom: 1px solid var(--border); }
.tool-room #roomCode { display: inline-block; margin: 0 0.6rem; padding: 0.2rem 0.6rem; border-radius: 6px; color: var(--red-text); background: var(--red-soft); border: 1px solid rgba(229, 25, 43, 0.4); font-family: var(--font-mono); }
.tool-room #editorWrapper { height: 480px; }
.tool-room .CodeMirror { padding: 1rem 0; font-size: 14px; line-height: 1.6; background: var(--background); color: var(--text); font-family: var(--font-mono); }
.tool-room .CodeMirror-gutters { background: var(--surface); border-color: var(--border); }
.tool-room #editor { width: 100%; height: 100%; padding: 1.25rem; background: var(--background); color: var(--text); border: 0; }

/* ---------- Convention schedule keeps its light/dark switch and task colours ---------- */
.tool-necst:not(.dark) { color-scheme: light; --background: #f4f4f5; --surface: #fff; --surface-2: #ececef; --text: #18181b; --text-muted: #52525b; --text-dim: #71717a; --border: #d4d4d8; --border-strong: #a1a1aa; }
.tool-necst .tool-content { position: relative; padding-top: 70px; padding-bottom: 80px; }
.tool-necst .table-wrap { width: 100%; padding: 0; font-family: inherit; overflow-x: auto; }
.tool-necst #schedule-table { width: 100%; font-size: 0.9rem; }
.tool-necst #schedule-table thead th { background: var(--red-soft); color: var(--red-text); padding: 1rem; border-color: var(--border); }
.tool-necst #schedule-table tbody td:first-child { color: var(--text-muted); background: var(--surface); }
.tool-necst #schedule-table td { border-color: var(--border); }
.tool-necst .ld-toggle { top: -54px; right: 0; margin: 0; }
.tool-necst .refresh_btn, .tool-necst .time-button { opacity: 0.95; background: var(--surface); color: var(--red-text); border-color: var(--border); }

@media (max-width: 720px) {
  .tool-sleep .grid .col-3:has(#latency) { grid-column: span 12; }
}
@media (max-width: 520px) {
  .tool-nav { min-height: 60px; }
  .tool-nav__links { font-size: 0.85rem; gap: 0.5rem 0.9rem; }
  .tool-page .tool-hero { padding-top: 1.75rem; }
  .tool-content { padding: 1rem; }
  .tool-page .tool-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .tool-long .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-ascii textarea#ascii, .tool-ascii #asciiGrid { height: 370px; padding: 1rem; }
  .tool-ascii #toolbar { padding: 0.6rem; gap: 0.45rem; }
  .tool-sleep .actions { flex-direction: column; align-items: stretch; }
  .tool-sleep .actions button { width: 100%; }
  .tool-sleep .pill { flex: 1 1 130px; flex-wrap: wrap; min-width: 0; justify-content: flex-start; gap: 0.25rem 0.5rem; }
  .tool-sleep .pill small { white-space: nowrap; }
  .tool-collab #home .form { grid-template-columns: 1fr; }
  .tool-room #editorWrapper { height: 420px; }
  .tool-imgedit .controls button { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-page * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Under every tool: about, how to use, questions, more tools ---------- */
.tool-about { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.tool-about__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tool-about__title { font-family: var(--font-mono); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 700; letter-spacing: 0; margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.tool-about__title::before { content: "//"; color: var(--red-text); font-weight: 700; }
.tool-about__text p, .tool-about__steps li { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.tool-about__text p { margin: 0 0 1em; }
.tool-about__steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.75rem; }
.tool-about__steps li { counter-increment: step; position: relative; padding-left: 2.4rem; }
.tool-about__steps li::before { content: counter(step); position: absolute; left: 0; top: 0.15rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red-text); font: 700 0.8rem/1 var(--font-mono); }
.tool-faq { display: grid; gap: 0.5rem; }
.tool-faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 1rem; }
.tool-faq__item summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; font-weight: 600; color: var(--text); list-style: none; }
.tool-faq__item summary::-webkit-details-marker { display: none; }
.tool-faq__item summary::before { content: "+"; flex: none; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--red-text); font: 700 1rem/1 var(--font-mono); transition: transform var(--dur) var(--ease); }
.tool-faq__item[open] summary::before { transform: rotate(45deg); }
.tool-faq__item p { margin: 0 0 1rem 2.15rem; color: var(--text-muted); line-height: 1.65; }
.tool-more { margin-top: clamp(2rem, 5vw, 3.5rem); }
.tool-more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.tool-more__list a { display: flex; align-items: center; gap: 0.75rem; min-height: 64px; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.tool-more__list a:hover, .tool-more__list a:focus-visible { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.tool-more__emoji { font-size: 1.5rem; line-height: 1; flex: none; }
.tool-more__text { display: grid; min-width: 0; }
.tool-more__text strong { font-size: 0.92rem; font-weight: 600; }
.tool-more__text small { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 720px) {
  .tool-about__grid { grid-template-columns: minmax(0, 1fr); }
}
