:root {
  /* warm paper. The page is an off-white with a faint cream cast, panels
     sit one step lighter, text is a soft ink rather than pure black, and
     the accent is a rust dark enough to read as text on paper. */
  --bg:#f6f3ed; --panel:#fdfcf9; --ink:#1f1b16; --muted:#6c6459;
  --line:#e0d9cd; --hair:#ebe6dc; --accent:#a4532f; --chip:#eee8dd;
  --tile:#ebe5d9;
  --shadow:0 1px 2px rgba(60,44,28,.06), 0 10px 28px rgba(60,44,28,.08);
  --bar:54px;
  --sat:env(safe-area-inset-top, 0px); --sab:env(safe-area-inset-bottom, 0px);
  --sal:env(safe-area-inset-left, 0px); --sar:env(safe-area-inset-right, 0px);
  color-scheme:light;
}
::selection { background:#f0d9c8; color:#1f1b16; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html:not(.js-enhanced) .cat[hidden] { display:block !important; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; background:var(--bg); color:var(--ink);
  /* iPhone / Mac: the system's own SF Pro and Hiragino Sans.
     Elsewhere: Inter for Latin, Noto Sans JP for Japanese (both loaded). */
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Hiragino Sans","Hiragino Kaku Gothic ProN",
              "Inter","Noto Sans JP",system-ui,sans-serif;
  font-weight:400; font-optical-sizing:auto; font-synthesis:none;
  letter-spacing:.01em;
  line-height:1.55; -webkit-font-smoothing:antialiased;
  /* a thin gap between Japanese and Latin text ("HX Stomp の") where supported */
  text-autospace:normal;
}
/* break Japanese lines at phrase boundaries; balance headings, avoid orphans */
p, li, td, .lede { word-break:auto-phrase; text-wrap:pretty; }
h1, h2, .card h2 { text-wrap:balance; }
h1, h2 { font-feature-settings:"palt"; letter-spacing:.02em; }
.nowrap { white-space:nowrap; }
/* dark scrollbars to match the page */
html { scrollbar-color:#cfc6b8 var(--bg); }
::-webkit-scrollbar { width:11px; height:11px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:#d6cec1; border:3px solid var(--bg); border-radius:8px; }
::-webkit-scrollbar-thumb:hover { background:#b8ae9f; }
body.locked { overflow:hidden; }
.shell { max-width:1080px; margin:0 auto; padding:0 20px; }

/* ---------- top bar + hamburger ---------- */
.topbar {
  position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:10px;
  height:calc(var(--bar) + var(--sat)); padding:var(--sat) max(16px, var(--sar)) 0 max(16px, var(--sal));
  background:var(--bg); border-bottom:1px solid var(--line);
}
.burger {
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel);
  color:var(--ink); cursor:pointer; flex:0 0 auto;
}
.burger:hover { background:var(--chip); }
.burger:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.brand { font-weight:600; letter-spacing:.01em; }
.sep { color:var(--muted); }
.toolname { color:var(--muted); font-size:.92rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.scrim {
  position:fixed; inset:0; z-index:30; background:rgba(40,30,20,.32);
  opacity:0; pointer-events:none; transition:opacity .18s;
}
.scrim.open { opacity:1; pointer-events:auto; }
.drawer {
  position:fixed; top:0; left:0; bottom:0; z-index:31; width:min(300px,84vw);
  background:var(--panel); border-right:1px solid var(--line);
  padding:calc(16px + var(--sat)) 12px calc(16px + var(--sab)); overflow-y:auto;
  visibility:hidden; transform:translateX(-100%);
  transition:transform .18s ease, visibility .18s;
}
.drawer.open { visibility:visible; transform:none; }
.drawer-close {
  position:absolute; top:calc(10px + var(--sat)); right:8px; z-index:1;
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  color:var(--muted); background:transparent; border:0; cursor:pointer;
}
.drawer-close:hover { color:var(--ink); background:var(--chip); }
.drawer-close:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
/* menu */
.dw-brand {
  display:flex; align-items:center; gap:12px; padding:6px 10px 16px; margin:0 0 6px;
  border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none;
}
.dw-mark {
  display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex:0 0 auto;
}
.dw-mark svg { display:block; }
.dw-name b { display:block; font-size:.92rem; font-weight:600; letter-spacing:.02em; }
.dw-name small { display:block; margin-top:1px; font-size:.68rem; color:var(--muted); letter-spacing:.06em; }
.dw-h { margin:18px 10px 8px; font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }
.dw-h b { color:var(--ink); font-weight:600; }
.dw-link {
  position:relative; display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:10px 12px; margin:0 0 2px; border-radius:8px; color:var(--ink); text-decoration:none; font-size:.92rem;
  transition:background-color .15s, color .15s;
}
.dw-link:hover { background:var(--chip); }
.dw-link[aria-current="page"] { color:var(--accent); }
.dw-link[aria-current="page"]::before {
  content:""; position:absolute; left:0; top:9px; bottom:9px; width:2px; border-radius:1px; background:var(--accent);
}
.dw-n { font-size:.72rem; color:var(--muted); font-variant-numeric:tabular-nums; letter-spacing:.04em; }
.dw-foot { margin:22px 0 0; padding:14px 10px 0; border-top:1px solid var(--line); }
.dw-site { display:flex; gap:18px; margin:0; }
.dw-site a { color:var(--muted); font-size:.78rem; text-decoration:none; letter-spacing:.04em; }
.dw-site a:hover, .dw-site a[aria-current="page"] { color:var(--ink); }
/* language switcher at the foot of the drawer */
.dw-langs { margin:18px 0 0; padding-top:14px; border-top:1px solid var(--line); font-size:.72rem; line-height:2; }
.dw-langs > span { display:block; font-size:.64rem; letter-spacing:.14em; color:var(--muted); opacity:.75; margin-bottom:4px; }
.dw-langs a { display:inline-block; margin:0 10px 0 0; color:var(--muted); text-decoration:none; }
.dw-langs a:hover { color:var(--ink); }
.dw-langs a[aria-current] { color:var(--ink); font-weight:600; }
.dw-other { margin:14px 0 0; font-size:.72rem; color:var(--muted); line-height:1.9; }
.dw-other span { display:block; font-size:.64rem; letter-spacing:.14em; opacity:.75; }
.dw-other p { margin:0; }
.dw-other em { font-style:normal; display:inline-block; min-width:4.4em; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; opacity:.6; }
.dw-other a { color:var(--muted); text-decoration:none; margin-right:12px; }
.dw-other a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.dw-link:focus-visible, .dw-brand:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }

/* ---------- headings ---------- */
.crumb { margin:12px 0 0; font-size:.74rem; color:var(--muted); }
.crumb a { color:inherit; }
h1 { margin:2px 0 0; font-size:1.3rem; font-weight:600; letter-spacing:.01em; }
h1:first-child { margin-top:16px; }
.lede { margin:3px 0 12px; font-size:.82rem; line-height:1.5; color:var(--muted); max-width:62em; }
h2 { margin:0 0 12px; font-size:1.1rem; font-weight:600; display:flex; align-items:baseline; gap:10px; }
.h2n { font-size:.76rem; font-weight:400; color:var(--muted); }

/* ---------- pill tabs ---------- */
.tabbar { position:sticky; top:calc(var(--bar) + var(--sat)); z-index:5; background:var(--bg);
          border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tabbar::before, .tabbar::after {
  content:""; position:absolute; top:0; bottom:1px; width:48px; z-index:1;
  pointer-events:none; opacity:0; transition:opacity .15s;
}
.tabbar::before { left:0;  background:linear-gradient(90deg,  var(--bg) 25%, transparent); }
.tabbar::after  { right:0; background:linear-gradient(270deg, var(--bg) 25%, transparent); }
.tabbar.can-left::before, .tabbar.can-right::after { opacity:1; }
.tabs {
  display:flex; gap:4px; overflow-x:auto; scrollbar-width:none;
  max-width:1080px; margin:0 auto; padding:12px 20px;
}
.tabs::-webkit-scrollbar { display:none; }
.tab {
  flex:0 0 auto; display:inline-flex; align-items:baseline; gap:6px;
  padding:7px 13px; border:1px solid transparent; border-radius:999px;
  background:transparent; color:var(--muted); font:inherit; font-size:.9rem;
  cursor:pointer; white-space:nowrap; transition:background .12s, color .12s;
}
.tab:hover { background:var(--chip); color:var(--ink); }
.tab .n { font-size:.72rem; opacity:.65; font-variant-numeric:tabular-nums; }
.tab[aria-selected="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); font-weight:600; }
.tab[aria-selected="true"] .n { opacity:.6; }
.tab:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ---------- tables ---------- */
.body { padding:22px 0 8px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); overflow:hidden; }
table { border-collapse:collapse; width:100%; }
thead th {
  text-align:left; padding:11px 18px; font-size:.7rem; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
  background:var(--hair); border-bottom:1px solid var(--line);
}
tbody td { padding:11px 18px; border-top:1px solid var(--hair); vertical-align:baseline; }
tbody tr:first-child td { border-top:0; }
col.c-ico { width:72px; } col.c-name { width:21%; } col.c-orig { width:31%; } col.c-param { width:26%; }

.name { font-weight:500; font-size:.95rem; }
.orig { color:var(--accent); font-size:.93rem; }
.orig.plain { color:var(--muted); font-style:italic; }
.feat { color:var(--muted); font-size:.88rem; }
.badge {
  display:inline-block; margin-left:7px; padding:1px 7px; border-radius:999px;
  background:var(--chip); color:var(--muted); font-size:.68rem; font-weight:500;
  letter-spacing:.03em; vertical-align:1px;
}

/* ---------- gear icons ---------- */
.sprite { position:absolute; width:0; height:0; overflow:hidden; }
.vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
td.c-ico { padding-right:0; vertical-align:middle; }
.icob {
  display:block; padding:0; border:0; background:none; border-radius:7px;
  cursor:zoom-in; -webkit-tap-highlight-color:transparent;
}
.icob:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ico {
  display:block; width:46px; height:58px; border-radius:7px;
  background:var(--tile); padding:3px; color:var(--muted);
  transition:transform .12s ease;
}
.icob:hover .ico { transform:scale(1.04); }

/* enlarged icon: floats beside the icon on mouse hover, opens as a centred
   card on tap */
.zoom {
  position:fixed; z-index:60; width:188px; padding:14px 14px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 14px 40px rgba(60,44,28,.16); pointer-events:none;
}
.zoom[hidden] { display:none; }
.zoom svg { display:block; width:160px; height:200px; margin:0 auto; color:var(--muted); }
.zoom .zn { margin:10px 0 0; font-weight:600; font-size:.9rem; line-height:1.35; }
.zoom .zo { margin:2px 0 0; color:var(--accent); font-size:.8rem; line-height:1.4; }
.zoom.tap {
  left:50%; top:50%; transform:translate(-50%,-50%); width:min(280px,calc(100vw - 32px));
  pointer-events:auto; padding:20px 18px 16px;
}
.zoom.tap svg { width:220px; height:275px; max-height:52vh; }
.zscrim { position:fixed; inset:0; z-index:59; background:rgba(40,30,20,.32); }
.zscrim[hidden] { display:none; }

/* ---------- knob reference ---------- */
.gnote { margin:0 0 16px; font-size:.82rem; color:var(--muted); max-width:62em; }
.ja { font-size:.9rem; display:block; }
.tip {
  display:block; margin-top:8px; padding:7px 11px; border-radius:8px;
  background:var(--chip); font-size:.85rem;
}
.tip b { color:var(--accent); font-weight:600; margin-right:7px; }

.cat + .cat { margin-top:0; }

/* ---------- hub cards ---------- */
.maker { margin:30px 0 10px; font-size:.68rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.maker:first-child { margin-top:0; }
.cards { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.card {
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow); padding:18px 20px;
}
.card h2 { margin:0 0 6px; font-size:1.15rem; }
.card h2 a { color:inherit; text-decoration:none; }
.card h2 a:hover { color:var(--accent); }
.card-b { margin:0 0 14px; font-size:.86rem; color:var(--muted); }
.card-l { margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.card-l a {
  display:inline-flex; align-items:baseline; gap:6px; padding:6px 12px;
  border:1px solid var(--line); border-radius:999px;
  font-size:.84rem; color:var(--ink); text-decoration:none;
}
.card-l a:hover { background:var(--chip); border-color:var(--chip); }
.card-l a span { font-size:.72rem; color:var(--muted); font-variant-numeric:tabular-nums; }

.alt { margin:20px 0 0; font-size:.88rem; }
.alt a { color:var(--accent); text-decoration:none; }
.alt a:hover { text-decoration:underline; }

.notes { margin:16px 0 0; color:var(--muted); font-size:.75rem; line-height:1.7; }
.notes p { margin:0 0 5px; }
.notes a { color:inherit; }
/* ---------- footer ---------- */
.foot { margin-top:34px; padding:26px 0 44px; border-top:1px solid var(--line); color:var(--muted); font-size:.76rem; line-height:1.6; }
.foot-grid { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px 40px; }
.foot-h { margin:0 0 8px; font-size:.72rem; font-weight:600; letter-spacing:.18em; }
.foot-h a { color:var(--ink); text-decoration:none; }
.foot-l { list-style:none; margin:0; padding:0; }
.foot-l li { margin:0; }
.foot-l a, .foot-share {
  display:inline-block; padding:3px 0; color:var(--muted); text-decoration:none;
  font:inherit; background:none; border:0; cursor:pointer;
}
.foot-l a:hover, .foot-share:hover { color:var(--ink); }
.foot-dev li { display:flex; gap:10px; align-items:baseline; }
.foot-dev span { font-size:.7rem; opacity:.75; font-variant-numeric:tabular-nums; }
.foot-up { margin:20px 0 4px; }
.foot-tm { margin:0 0 4px; font-size:.7rem; opacity:.8; }
.foot-other { margin:0 0 4px; font-size:.7rem; opacity:.85; }
.foot-other a { color:var(--muted); text-decoration:none; }
.foot-other a:hover { color:var(--ink); text-decoration:underline; }
.foot-un { margin:0; font-size:.68rem; letter-spacing:.03em; opacity:.7; }

/* ---------- page tools ---------- */
.topbar { position:sticky; }
.share {
  margin-left:auto; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--muted); cursor:pointer; flex:0 0 auto;
}
.share { width:auto; min-width:34px; padding:0 10px; gap:6px; font:inherit; font-size:.78rem; }
.share:hover { color:var(--ink); background:var(--chip); }
.share:focus-visible, .totop:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.progress {
  position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--accent);
  transform:scaleX(0); transform-origin:0 50%; pointer-events:none;
}
.totop {
  position:fixed; right:calc(16px + var(--sar)); bottom:calc(18px + var(--sab)); z-index:25; display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%; background:var(--panel); border:1px solid var(--line);
  color:var(--ink); box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translateY(8px); pointer-events:none;
  transition:opacity .18s, transform .18s, visibility 0s linear .18s;
}
.totop.on { opacity:1; visibility:visible; transform:none; pointer-events:auto; transition-delay:0s; }
.toast {
  position:fixed; left:50%; bottom:calc(26px + var(--sab)); z-index:70; padding:7px 16px; border-radius:999px;
  background:var(--ink); color:var(--bg); font-size:.82rem; font-weight:600; letter-spacing:.03em;
  opacity:0; transform:translate(-50%,8px); pointer-events:none; transition:opacity .16s, transform .16s;
}
.toast.on { opacity:1; transform:translate(-50%,0); }
a.name, a.orig { color:inherit; text-decoration:none; }
a.orig { color:var(--accent); }
a.name:hover, a.orig:hover { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
a.name:hover { color:var(--accent); }
a.name.ext::after, a.orig.ext::after { opacity:.4; font-weight:400; }
.pin {
  display:inline-block; margin-left:6px; padding:0 4px; border-radius:4px;
  color:var(--muted); font-size:.78rem; text-decoration:none; opacity:.55;
}
.pin:hover { opacity:1; color:var(--ink); background:var(--chip); }
tbody tr.hit td { animation:hit 1.6s ease-out; }
@keyframes hit { 0%,30% { background:rgba(164,83,47,.22); } 100% { background:transparent; } }
tbody tr { scroll-margin-top:calc(120px + var(--sat)); }
a.ext::after {
  content:""; display:inline-block; width:.62em; height:.62em; margin-left:.28em; vertical-align:.05em;
  background:currentColor; opacity:.7;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5l5-5M3.6 2.5h3.9v3.9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5l5-5M3.6 2.5h3.9v3.9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* official vs. own writing */
.src {
  display:inline-block; margin-left:7px; padding:0 6px; border-radius:4px; border:1px solid var(--line);
  font-size:.62rem; font-weight:500; letter-spacing:.04em; text-transform:none; color:var(--muted); vertical-align:1px;
}
.src.own { border-style:dashed; }
.legend { margin:0 0 12px; font-size:.74rem; color:var(--muted); }
.legend .src { margin:0 6px 0 0; }
.legend .src.own { margin-left:10px; }
.meta { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; font-size:.72rem; color:var(--muted); }
.meta span { padding:1px 8px; border:1px solid var(--line); border-radius:999px; font-variant-numeric:tabular-nums; }

/* 404 */
/* 404 */
.nf { padding:40px 20px 30px; }
.nf-code { margin:0; font-size:3rem; font-weight:300; letter-spacing:.1em; color:var(--muted); line-height:1; }
.nf h1 { margin-top:10px; letter-spacing:.04em; }
.btn {
  display:inline-flex; align-items:center; min-height:40px; padding:0 18px; margin-top:6px;
  border:1px solid var(--line); border-radius:999px; background:var(--panel);
  color:var(--ink); font-size:.86rem; text-decoration:none;
}
.btn:hover { background:var(--chip); }

/* about / sources */
.prose { max-width:760px; padding-bottom:10px; }
.prose > p { font-size:.9rem; line-height:1.85; margin:0 0 12px; }
.prose h1 { margin-bottom:14px; }
.prose h2 { margin:26px 0 8px; font-size:.95rem; font-weight:600; }
.privacy-prose { max-width:780px; }
.privacy-updated { color:var(--muted); font-size:.75rem !important; letter-spacing:.02em; margin-top:0 !important; font-variant-numeric:tabular-nums; }
.privacy-lead { color:var(--ink); font-size:1rem !important; line-height:1.9 !important; margin-top:22px !important; max-width:68ch; }
.privacy-links { list-style:none; margin:18px 0 0; padding:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.privacy-links li { padding:10px 0; border-top:1px solid var(--hair); font-size:.82rem; line-height:1.65; }
.privacy-links li:first-child { border-top:0; }
.privacy-links a { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
.privacy-analytics { margin-top:26px; padding:16px; border:1px solid var(--line); background:var(--panel); }
.privacy-analytics h2 { margin-top:0; }
.privacy-analytics p { font-size:.86rem !important; line-height:1.8 !important; }
.privacy-analytics-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.privacy-analytics-actions button { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:4px; background:var(--bg); color:var(--ink); font:inherit; font-size:.8rem; cursor:pointer; }
.privacy-analytics-actions button:hover { background:var(--chip); }
.privacy-analytics-actions button[aria-pressed="true"] { border-color:var(--accent); background:var(--chip); }
.privacy-analytics-status { min-height:1.8em; margin:10px 0 0 !important; color:var(--muted); }
.prose a { color:var(--accent); text-decoration:none; }
.prose a:hover { text-decoration:underline; }
.prose .crumb a { color:inherit; }
.srclist { list-style:none; margin:0; padding:0; border-top:1px solid var(--hair); }
.srclist li { display:flex; flex-wrap:wrap; gap:2px 14px; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--hair); font-size:.88rem; }
.srclist span { color:var(--muted); font-size:.78rem; }

/* ---------- interaction states ----------
   Only things that do something react: hover lightens, press dips, and
   keyboard focus always shows the same accent ring. */
a, button { -webkit-tap-highlight-color:transparent; }
a:focus-visible, button:focus-visible, .tab:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px; border-radius:6px;
}
.hero a:focus-visible, .hero button:focus-visible, .tone-editor a:focus-visible, .tone-editor button:focus-visible, .parameter-screen a:focus-visible, .parameter-screen button:focus-visible {
  outline-color:#e4d4ac;
}
.burger:active, .share:active, .totop:active, .btn:active, .tab:active, .card-l a:active, .dw-link:active, .foot-share:active { transform:scale(.97); }
.burger, .share, .totop, .btn, .tab, .card-l a { transition:background-color .15s, color .15s, transform .08s; }

/* tab bar edge only once it is stuck under the header */
.tabbar { transition:box-shadow .2s; }
.tabbar.stuck { box-shadow:0 8px 16px -12px rgba(60,44,28,.22); border-bottom-color:var(--line); }

/* skip link: invisible until focused with the keyboard */
.skip {
  position:absolute; left:12px; top:-60px; z-index:90; padding:8px 14px; border-radius:8px;
  background:var(--ink); color:var(--bg); font-size:.84rem; text-decoration:none;
}
.skip:focus { top:calc(8px + var(--sat)); }

/* offline badge */
.offline {
  margin-left:auto; padding:2px 9px; border:1px solid var(--line); border-radius:999px;
  font-size:.7rem; color:var(--muted); white-space:nowrap;
}
.offline:not([hidden]) + .share { margin-left:0; }

/* version chip links to the sources */
.meta a { padding:1px 8px; border:1px solid var(--line); border-radius:999px; color:inherit; text-decoration:none; }
.meta a:hover { color:var(--ink); border-color:#b8ae9f; }

/* glossary terms and their note */
.term {
  display:inline; padding:0; margin:0; border:0; background:none; font:inherit; color:inherit;
  text-decoration:underline dotted; text-decoration-color:rgba(235,228,215,.4); text-underline-offset:3px;
  cursor:help;
}
.term:hover, .term[aria-expanded="true"] { color:var(--ink); text-decoration-color:var(--accent); }
.tipbox {
  position:fixed; z-index:65; max-width:min(300px, calc(100vw - 32px)); padding:10px 13px;
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 12px 32px rgba(60,44,28,.14); font-size:.8rem; line-height:1.65; color:var(--ink);
}
.tipbox b { display:block; margin-bottom:2px; color:var(--accent); font-size:.74rem; font-weight:600; }

/* real-gear card */
a.orig.has-gear { text-decoration:underline dotted; text-decoration-color:rgba(164,83,47,.55); text-underline-offset:3px; }
a.orig.has-gear.ext::after { display:none; }
a.orig.has-gear:hover, a.orig.has-gear[aria-expanded="true"] { text-decoration-color:var(--accent); }
.gearbox {
  position:fixed; z-index:66; width:min(360px, calc(100vw - 24px)); padding:14px 16px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 14px 40px rgba(60,44,28,.18); color:var(--ink);
}
.gb-name { margin:0; font-size:.98rem; font-weight:600; line-height:1.4; }
.gb-meta { margin:3px 0 0; font-size:.74rem; color:var(--accent); }
.gb-text { margin:9px 0 0; font-size:.84rem; line-height:1.75; }
.gb-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 12px; margin:10px 0 0; padding:9px 0 0; border-top:1px solid var(--hair); font-size:.78rem; line-height:1.6; }
.gb-facts dt { color:var(--muted); white-space:nowrap; }
.gb-facts dd { margin:0; }
.gb-link { display:inline-block; margin-top:10px; font-size:.78rem; color:var(--accent); text-decoration:none; }
.gb-link:hover { text-decoration:underline; }

/* ---------- knob tours ----------
   A normal page: explanations are ordinary text beside a pinned drawing of
   a made-up device (under it on phones). The explanation being read decides
   where the drawing's camera looks; the camera glides there by itself.
   Without JS and in print: the drawing, then the list of explanations. */
.tour { position:relative; margin:6px 0 0; }
.tour-stage { position:relative; }
.tour-cam svg { display:block; width:100%; height:auto; }
.kp { cursor:pointer; outline:none; }
.kp:focus-visible .kp-focus { opacity:1 !important; }
.tour-nav, .cap-nav, .cap-count, .kidx, .tour-end .ti-b, .tn-rail { display:none; }
.tour-intro { display:none; }
.tour-caps { list-style:none; margin:18px 0 0; padding:0; }
.cap { padding:14px 0; border-top:1px solid var(--hair); }
.cap-name { margin:0; font-size:1rem; font-weight:600; letter-spacing:.02em; }
.cap-text { margin:4px 0 0; font-size:.9rem; line-height:1.8; }
.cap-tip { margin:8px 0 0; padding:7px 11px; border-radius:8px; background:var(--chip); font-size:.84rem; line-height:1.7; }
.cap-tip b { color:var(--accent); font-weight:600; margin-right:7px; }
.tour-end { display:none; }

/* ---- layout with JS: pinned drawing + reading column ---- */
.tour-on .tour { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:0 36px; align-items:start; }
.tour-on .tour-stage {
  position:sticky; top:calc(var(--tour-top, 110px) + 12px); height:calc(100vh - var(--tour-top, 110px) - 24px);
  overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#e9e3d7;
}
.tour-on .tour-cam { position:absolute; left:0; top:0; transform-origin:0 0; will-change:transform; }
.tour-on .tour-cam svg { width:100%; height:100%; }
/* the knob being read is ringed; the others step back a little */
.tour-on .kp { transition:opacity .35s ease; }
.tour-on .kp-focus { transition:opacity .35s ease; }
.tour-on .has-on .kp:not(.on):not(:hover):not(.peek) { opacity:.55; }
.tour-on .kp:hover .kp-ring, .tour-on .kp.peek .kp-ring { fill:rgba(164,83,47,.1); }
.tour-on .kp:hover .kp-focus, .tour-on .kp.peek .kp-focus { opacity:.6 !important; }
.tour-on .kp.on .kp-focus { opacity:1 !important; }
.tour-on .kp.on .kp-ring { fill:rgba(164,83,47,.16); }

/* knob chips across the top of the drawing */
.tour-on .tour-nav {
  display:flex; align-items:flex-start; gap:8px; position:absolute; z-index:4; left:0; right:0; top:0;
  padding:10px 10px 8px; background:rgba(246,243,237,.93); border-bottom:1px solid var(--line);
}
.tn-h { display:none; }
.tn-list { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; mask-image:linear-gradient(90deg, #000 88%, transparent); }
.tn-list::-webkit-scrollbar { display:none; }
.tn-list ol { list-style:none; display:flex; flex-wrap:nowrap; gap:5px; margin:0; padding:0 24px 0 0; }
.tour-nav ol button {
  display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:0 10px;
  border:1px solid var(--line); border-radius:999px; background:none; cursor:pointer;
  color:var(--muted); font:inherit; font-size:.7rem; letter-spacing:.06em; white-space:nowrap;
  transition:background-color .15s, color .15s, border-color .15s;
}
.tn-no { font-size:.62rem; font-variant-numeric:tabular-nums; opacity:.75; }
.tour-nav ol button:hover { color:var(--ink); background:var(--chip); }
.tour-nav ol button.on { color:var(--ink); border-color:var(--accent); background:rgba(164,83,47,.14); }
.tour-nav ol button.on .tn-no { color:var(--accent); opacity:1; }
.tour-all {
  flex:0 0 auto; min-height:30px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:none; cursor:pointer;
  color:var(--muted); font:inherit; font-size:.7rem; letter-spacing:.04em; white-space:nowrap;
}
.tour-all:hover { color:var(--ink); background:var(--chip); }

/* the reading column */
.tour-on .tour-flow { padding:12px 0 0; }
.tour-on .tour-intro { display:block; padding:16px 0 26px; }
.ti-k { margin:0 0 8px; font-size:.84rem; font-weight:600; letter-spacing:.04em; color:var(--ink); }
.ti-t { margin:0 0 4px; font-size:.86rem; line-height:1.8; color:var(--muted); }
.ti-b { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.tour-on .tour-caps { margin:0; }
.tour-on .cap {
  min-height:46vh; padding:26px 0 30px; border-top:1px solid var(--line);
  opacity:1; transition:opacity .35s;
  scroll-margin-top:calc(var(--tour-top, 110px) + 16px);
}
.tour-on .cap.on { opacity:1; }
.tour-on .cap:last-child { min-height:38vh; }
.tour-on .cap-count { display:block; margin:0 0 6px; font-size:.68rem; color:var(--muted); letter-spacing:.12em; font-variant-numeric:tabular-nums; }
.tour-on .cap.on .cap-count { color:var(--accent); }
.tour-on .cap-name { font-size:1.3rem; font-weight:600; letter-spacing:.04em; }
.tour-on .cap-text { margin-top:8px; font-size:.95rem; line-height:1.9; }
.tour-on .tour-end { display:block; padding:24px 0 40vh; border-top:1px solid var(--line); }
.tour-on .tour-end .ti-b { display:flex; }
.btn-go, .btn-sub {
  display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; border-radius:999px; cursor:pointer;
  font:inherit; font-size:.8rem; letter-spacing:.03em;
}
.btn-go { border:1px solid var(--accent); background:var(--accent); color:#fdfcf9; font-weight:600; }
.btn-go:hover { filter:brightness(1.08); }
.btn-sub { border:1px solid var(--line); background:none; color:var(--ink); }
.btn-sub:hover { background:var(--chip); }

/* ---- index of every knob ---- */
.tour-on .kidx:not([hidden]) {
  display:flex; position:fixed; inset:0; z-index:80; align-items:center; justify-content:center;
  padding:16px; background:rgba(40,30,20,.36);
}
.kidx-box {
  width:min(720px, 100%); max-height:min(80vh, 640px); overflow:auto; padding:16px 20px 18px;
  background:var(--panel); border:1px solid var(--line); border-radius:14px; box-shadow:0 20px 50px rgba(60,44,28,.2);
}
.kidx-h { display:flex; justify-content:space-between; align-items:center; margin:0 0 10px; font-weight:600; }
.kidx-x { width:34px; height:34px; border:1px solid var(--line); border-radius:8px; background:none; color:var(--ink); font-size:1.1rem; cursor:pointer; }
.kidx-g { padding:10px 0; border-top:1px solid var(--hair); }
.kidx-c { margin:0 0 6px; font-size:.74rem; color:var(--muted); letter-spacing:.06em; }
.kidx-l { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.kidx-l button {
  min-height:32px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:none; cursor:pointer;
  color:var(--ink); font:inherit; font-size:.76rem; letter-spacing:.05em;
}
.kidx-l button:hover { background:var(--chip); border-color:#b8ae9f; }

/* ---- phones: drawing pinned on top, text below ---- */
@media (max-width:760px) {
  .tour-on .tour { display:block; margin:0 calc(-1 * max(14px, var(--sal))); }
  /* phones: keep most of the screen for the text — a short drawing, and the
     category tabs scroll away instead of staying pinned (the 一覧 button
     reaches every category) */
  .tour-on .tabbar { position:static; }
  .tour-on .tour-stage {
    top:var(--tour-top, 56px); height:30vh; height:clamp(170px, 30svh, 250px);
    border-radius:0; border-width:0 0 1px; z-index:5;
  }
  .tour-on .tour-nav { padding:6px 8px 5px; gap:6px; }
  .tour-nav ol button { min-height:30px; padding:0 10px; font-size:.7rem; }
  .tour-nav > .tour-all { font-size:0; min-height:30px; }
  .tour-nav > .tour-all::before { content:"一覧"; font-size:.72rem; }
  .tour-on .tour-flow { padding:0 max(14px, var(--sal)); }
  /* phones: the text leads — normal spacing, a slightly larger face */
  .tour-on .cap { min-height:0; padding:20px 0 22px; opacity:1; }
  .tour-on .cap:last-child { min-height:40vh; }
  .tour-on .cap-name { font-size:1.15rem; }
  .tour-on .cap-text { font-size:.97rem; line-height:1.85; }
  .tour-on .cap-tip { font-size:.9rem; }
  .tour-on .tour-intro { padding:14px 0 8px; }
  .tour-on .tour-intro .ti-t { font-size:.84rem; }
}

/* ---------- print: white paper, every category open ---------- */
@media print {
  :root { --bg:#fff; --panel:#fff; --ink:#000; --muted:#444; --line:#bbb; --hair:#ddd; --chip:#eee; --tile:#f2f2f2; --accent:#000; --shadow:none; }
  body { background:#fff; color:#000; }
  .topbar, .drawer, .scrim, .tabbar, .totop, .toast, .share, .skip, .zoom, .zscrim, .tipbox, .gearbox, .pin, .legend, .tour-nav, .tour-intro, .tour-end, .cap-nav, .kidx, .alt, .foot-grid, .foot-share { display:none !important; }
  .cat[hidden] { display:block !important; }
  .cat { break-before:auto; }
  .cat h2 { break-after:avoid; }
  tbody tr { break-inside:avoid; }
  .panel { box-shadow:none; }
  a { color:#000 !important; text-decoration:none !important; }
  a.ext::after { display:none; }
  .term { text-decoration:none; }
  .ico { background:#f2f2f2; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ---------- update history ---------- */
.log { list-style:none; margin:0; padding:0; }
.log > li { display:grid; grid-template-columns:8.5em minmax(0,1fr); gap:4px 18px; padding:14px 0; border-top:1px solid var(--hair); }
.log > li:first-child { border-top:0; }
.log time { color:var(--accent); font-size:.84rem; font-variant-numeric:tabular-nums; padding-top:1px; }
.log ul { margin:0; padding:0 0 0 1.1em; }
.log ul li { font-size:.88rem; line-height:1.7; margin:0 0 3px; }
.logpanel { padding:6px 22px; }
.recent { margin:26px 0 0; }
.recent h2 { margin:0 0 4px; font-size:1rem; font-weight:600; }
.recent .log > li { padding:11px 0; }
.recent .more { margin:4px 0 0; font-size:.84rem; }
.recent .more a { color:var(--accent); text-decoration:none; }
.recent .more a:hover { text-decoration:underline; }

/* ---------- mobile ---------- */
@media (max-width:700px) {
  .shell, .tabs { padding-left:14px; padding-right:14px; }
  h1 { font-size:1.15rem; }
  table, tbody, tr, td { display:block; }
  thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  tbody tr { padding:12px 15px; border-top:1px solid var(--hair); overflow:hidden; }
  tbody tr:first-child { border-top:0; }
  tbody td { padding:0; border:0; }
  tbody td + td { margin-top:3px; }
  .orig::before { content:"↳ "; opacity:.5; }
  .log > li { grid-template-columns:1fr; gap:2px; }
  .logpanel { padding:4px 16px; }
  .share-t { display:none; }
  .share { width:44px; height:44px; padding:0; }
  .burger { width:44px; height:44px; }
  .foot-grid { grid-template-columns:1fr; }
  .foot-l a, .foot-share { padding:8px 0; }
  .totop { width:44px; height:44px; }
  /* icon in its own column so wrapped text never slides under it */
  tbody tr:has(td.c-ico) { display:grid; grid-template-columns:46px minmax(0,1fr); column-gap:12px; align-items:start; }
  tbody tr:has(td.c-ico) td { grid-column:2; }
  tbody tr:has(td.c-ico) td + td:nth-child(2) { margin-top:0; }
  tbody tr:has(td.c-ico) td.c-ico { grid-column:1; grid-row:1 / span 3; margin:0; }
}

/* Editorial system: shared navigation, reference tools, and device directory. */
:root { --bar:68px; --shadow:0 4px 20px rgba(44,36,25,.035); }
html { scroll-padding-top:90px; }
a, button, input { -webkit-tap-highlight-color:transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.shell { max-width:1200px; padding-left:32px; padding-right:32px; }
.topbar { padding-left:max(24px,calc((100vw - 1136px)/2)); padding-right:max(24px,calc((100vw - 1136px)/2)); gap:16px; background:rgba(246,243,237,.96); backdrop-filter:blur(16px); }
.site-logo { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; flex-shrink:0; font-size:17px; font-weight:650; letter-spacing:-.04em; }
.site-logo img { border-radius:6px; }
.topbar .brand { margin-left:12px; padding-left:22px; border-left:1px solid var(--line); font-size:12px; font-weight:400; color:var(--muted); }
.burger { order:-1; border:0; background:none; }
.share { min-height:38px; background:transparent; }
.hero { display:grid; grid-template-columns:1fr 1fr; min-height:465px; margin:36px 0 0; background:#232923; color:#f6f3ed; border-radius:6px; overflow:hidden; }
.hero-copy { padding:46px 0 42px 44px; }
.eyebrow { font-size:10px; font-weight:600; letter-spacing:.18em; }
.hero .eyebrow { color:#c5d0bc; margin:0 0 24px; display:flex; align-items:center; gap:10px; }
.hero .eyebrow > span { width:6px; height:6px; border-radius:50%; background:#c9b784; }
.hero h1 { font-size:clamp(36px,4vw,53px); line-height:1.4; font-weight:600; letter-spacing:.06em; margin:0; }
.hero-desc { color:#c2c7bf; font-size:13px; line-height:1.95; margin:20px 0 25px; }
.hero-cta { display:inline-flex; gap:34px; align-items:center; padding:13px 20px; background:#e5d7b8; border-radius:3px; color:#25291f; font-size:13px; font-weight:600; text-decoration:none; transition:background .2s; }
.hero-cta:hover { background:#f5e8cc; }
.hero-note { font-size:9px; letter-spacing:.13em; color:#a6afa3; margin:23px 0 0; }
.hero-note span { margin:0 12px; color:#6b7568; }
.hero-art { display:flex; flex-direction:column; justify-content:space-between; margin:36px 32px 30px 14px; padding:18px 0 0; background:radial-gradient(ellipse at 50% 45%,#48504055,transparent 70%); }
.art-heading, .art-caption { display:flex; justify-content:space-between; gap:12px; color:#aeb6a8; font-size:9px; letter-spacing:.12em; }
.art-heading { padding-bottom:14px; border-bottom:1px solid #ffffff20; }
.art-caption { padding-top:16px; border-top:1px solid #ffffff20; font-size:10px; letter-spacing:.04em; }
.art-caption span:last-child { font-size:8px; }
.pedal-gallery { display:flex; align-items:center; gap:10px; padding:24px 0; }
.pedal-item { width:33.333%; min-width:0; text-align:center; }
.pedal-item svg { display:block; width:100%; height:220px; filter:drop-shadow(0 18px 10px #0005); transform:rotate(-9deg); }
.pedal-item:nth-child(2) svg { transform:translateY(-15px) rotate(5deg); }
.pedal-item:nth-child(3) svg { transform:rotate(10deg); }
.pedal-item > span { display:block; margin-top:12px; color:#aeb6a8; font-size:9px; letter-spacing:.1em; }
.trust-strip { display:flex; justify-content:space-between; gap:16px; padding:19px 0; border-bottom:1px solid var(--line); font-size:11px; color:var(--muted); }
.trust-strip a { color:inherit; text-decoration:none; }
.home .body { padding-top:40px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:22px; scroll-margin-top:90px; }
.section-heading .eyebrow { color:var(--accent); margin:0 0 9px; }
.section-heading h2 { margin:0; font-size:23px; letter-spacing:.04em; }
.section-heading > span { color:var(--muted); font-size:10px; }
.home .cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.device-card { padding:24px; border-radius:5px; box-shadow:none; transition:transform .2s,border-color .2s,box-shadow .2s; }
.device-card:hover { transform:translateY(-3px); border-color:#b7ab94; box-shadow:0 10px 24px #30251308; }
.device-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:20px; font-size:10px; letter-spacing:.09em; color:var(--muted); }
.device-meta span:first-child { color:var(--accent); font-weight:600; }
.device-meta span:last-child { font-size:8px; }
.device-card h2 { font-size:24px; letter-spacing:-.035em; }
.device-card h2 a { display:flex; align-items:center; justify-content:space-between; width:100%; }
.device-card h2 span { font-size:19px; color:#938a7d; font-weight:400; }
.device-count { display:flex; align-items:baseline; gap:12px; font-size:39px; line-height:1.2; letter-spacing:-.05em; margin:24px 0 15px; }
.device-count span { font-size:11px; color:var(--muted); letter-spacing:0; }
.device-card .card-b { font-size:12px; line-height:1.8; min-height:66px; margin-bottom:22px; }
.device-card .card-l { flex-direction:column; gap:9px; border-top:1px solid var(--hair); padding-top:18px; }
.device-card .card-l a { border-radius:3px; padding:10px 12px; justify-content:space-between; font-size:12px; }
.device-card .card-l a:first-child { color:var(--panel); background:#30392d; border-color:#30392d; }
.device-card .card-l a:first-child:hover { background:#475340; }
.device-card .card-l a:first-child span { color:#d8e0d2; }
.guide-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding:30px 0; border-block:1px solid var(--line); margin:40px 0; }
.guide-steps span { font-size:9px; letter-spacing:.12em; color:var(--accent); }
.guide-steps h3 { font-size:14px; font-weight:600; margin:10px 0; }
.guide-steps p { font-size:12px; color:var(--muted); line-height:1.9; margin:0; }
.home .recent { max-width:900px; margin:0; }
.home .recent .log ul li { font-size:12px; line-height:1.9; margin-bottom:7px; }
.home .recent .more { margin-top:10px; }
.home .notes { border-top:1px solid var(--line); margin-top:30px; padding-top:20px; }
main:not(.home) > .shell:first-child { padding-top:15px; padding-bottom:10px; }
main:not(.home) h1 { font-size:25px; margin-top:12px; }
main:not(.home) .lede { margin-top:10px; line-height:1.8; }
.tabs { max-width:1200px; padding-left:32px; padding-right:32px; }
.panel { border-radius:6px; }
tbody tr:hover { background:#f4f0e766; }
.model-search { max-width:660px; margin:8px 0 22px; }
.model-search label { display:block; font-size:12px; font-weight:600; margin-bottom:8px; }
.search-field { display:flex; align-items:center; gap:10px; padding:0 14px; background:var(--panel); border:1px solid #bdb4a5; border-radius:5px; min-height:46px; }
.search-field > span { font-size:25px; color:var(--muted); }
.search-field:focus-within { border-color:var(--accent); outline:2px solid #a4532f25; }
.search-field input { width:100%; min-width:0; border:0; outline:none; background:transparent; font:inherit; font-size:13px; padding:12px 0; color:var(--ink); }
.search-field button { white-space:nowrap; border:0; background:var(--chip); padding:7px 10px; border-radius:3px; color:var(--ink); cursor:pointer; }
#search-status { margin:7px 0 0; font-size:11px; color:var(--muted); }
@media(max-width:960px) {
  .topbar .brand { display:none; }
  .hero-copy { padding-left:28px; }
  .hero-art { margin-right:24px; }
  .art-caption span:last-child { display:none; }
  .device-card { padding:18px; }
  .device-card h2 { font-size:20px; }
}
@media(max-width:700px) {
  :root { --bar:60px; }
  .shell, .tabs { padding-left:18px; padding-right:18px; }
  .topbar { padding-left:max(12px,var(--sal)); padding-right:max(12px,var(--sar)); gap:9px; }
  .site-logo { font-size:16px; }
  .site-logo img { width:26px; height:26px; }
  .topbar .toolname, .topbar .sep { display:none; }
  .hero { grid-template-columns:1fr; margin-top:20px; }
  .hero-copy { padding:30px 26px 10px; }
  .hero h1 { font-size:39px; }
  .hero .eyebrow { margin-bottom:18px; }
  .hero-desc { font-size:12px; }
  .hero-art { margin:12px 26px 24px; padding-top:8px; }
  .pedal-gallery { padding:10px 5px; }
  .pedal-item svg { height:130px; }
  .pedal-item > span { margin-top:0; }
  .art-heading { font-size:8px; padding-bottom:10px; }
  .art-caption { padding-top:10px; }
  .hero-note { margin-top:18px; }
  .trust-strip { flex-wrap:wrap; justify-content:flex-start; gap:9px 20px; font-size:10px; }
  .trust-strip > span:first-child { flex-basis:100%; }
  .home .body { padding-top:30px; }
  .section-heading h2 { font-size:20px; }
  .section-heading > span { display:none; }
  .home .cards { grid-template-columns:1fr; gap:14px; }
  .device-card { padding:23px; }
  .device-card h2 { font-size:25px; }
  .device-meta { margin-bottom:12px; }
  .device-count { margin:16px 0 12px; }
  .device-card .card-b { min-height:0; margin-bottom:16px; }
  .device-card .card-l { flex-direction:row; }
  .device-card .card-l a { flex:1; gap:8px; }
  .guide-steps { grid-template-columns:1fr; gap:24px; margin:28px 0; }
  .guide-steps h3 { margin:7px 0; }
  main:not(.home) h1 { font-size:21px; }
  tbody tr { padding:17px 15px; }
  .offline { font-size:9px; }
}
@media print {
  .model-search { display:none; }
  tbody tr[hidden] { display:table-row !important; }
  .hero { background:white; color:black; }
  .hero-art { display:none; }
  .home .cards { grid-template-columns:repeat(3,1fr); }
}

/* Brand edition — a field guide from the screen to the pedalboard. */
:root { --accent:#914326; --ink:#262722; --muted:#5c5e53; --bg:#f4f2ec; --panel:#fffef9; --line:#dcdcd0; --hair:#e8e7dc; --chip:#e9e7dc; }
.topbar { background:rgba(244,242,236,.97); }
.topbar .brand, .topbar .sep, .topbar .toolname { display:none; }
.desktop-nav { display:flex; align-items:center; gap:28px; margin-left:auto; }
.desktop-nav a { font-size:12px; text-decoration:none; color:var(--muted); padding:12px 0; border-bottom:1px solid transparent; }
.desktop-nav a:hover { color:var(--accent); border-color:var(--accent); }
.topbar .share { margin-left:16px; }
.site-logo { font-family:Georgia,'Times New Roman',serif; font-size:23px; letter-spacing:-.045em; }
.site-logo img { width:32px; height:32px; }
.hero { background:transparent; color:var(--ink); border-radius:0; min-height:480px; grid-template-columns:1.03fr 1fr; margin-top:38px; border-bottom:1px solid var(--line); padding-bottom:38px; }
.hero-copy { padding:30px 26px 24px 0; }
.hero .eyebrow { color:var(--accent); font-size:9px; letter-spacing:.15em; margin-bottom:30px; }
.hero .eyebrow > span { background:var(--accent); }
.hero h1 { font-size:clamp(36px,4.1vw,58px); font-weight:600; line-height:1.45; letter-spacing:.035em; }
.hero-desc { color:var(--muted); font-size:13px; line-height:2.1; margin:24px 0 28px; }
.hero-cta { background:#30392d; color:#fffef9; border-radius:0; min-height:48px; gap:50px; }
.hero-cta:hover { background:#4a563f; }
.hero-note { color:var(--muted); }
.hero-art { position:relative; margin:0; padding:24px 24px 20px; background:#242e26; border-radius:160px 160px 3px 3px; min-height:430px; overflow:hidden; }
.hero-art::before { content:""; position:absolute; width:260px; height:260px; left:50%; top:50%; transform:translate(-50%,-50%); border:1px solid #d4dac025; border-radius:50%; box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff02; pointer-events:none; }
.hero-art .art-heading { position:relative; justify-content:center; border:0; padding-top:26px; font-size:8px; }
.hero-art .art-heading span:last-child { display:none; }
.hero-art .pedal-gallery { position:relative; padding:30px 0; }
.hero-art .pedal-item svg { height:205px; }
.hero-art .art-caption { position:relative; }
.trust-strip { border-bottom:1px solid var(--line); padding:20px 0; }
.home .body { padding-top:46px; }
.section-heading h2 { font-size:26px; }
.section-heading > a { font-size:12px; color:var(--accent); text-decoration:none; }
.device-card { border-radius:0; border-top:3px solid #a5ac93; padding:26px; position:relative; background:#fbfaf5; }
.device-card:nth-child(2) { border-top-color:#b9a27a; }
.device-card:nth-child(3) { border-top-color:#777f85; }
.device-card h2 { font-size:27px; }
.device-card .device-count { font-family:Georgia,serif; font-size:51px; letter-spacing:-.055em; }
.device-count span { font-family:Inter,'Noto Sans JP',sans-serif; }
.device-card .card-l a { border-radius:0; }
.home-journal { margin-top:64px; }
.chapter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.chapter-card { text-decoration:none; color:var(--ink); display:block; }
.chapter-art { height:218px; background:#e7e4d9; position:relative; overflow:hidden; }
.chapter-card:nth-child(2) .chapter-art { background:#e1e4da; }
.chapter-card:nth-child(3) .chapter-art { background:#e5e1dd; }
.chapter-art svg { width:100%; height:185px; padding:10px 20px 0; transition:transform .25s; }
.chapter-card:hover svg { transform:translateY(-5px) rotate(-3deg); }
.chapter-art > span { position:absolute; bottom:13px; left:18px; font-size:8px; letter-spacing:.13em; color:var(--muted); }
.chapter-card > p { color:var(--accent); font-size:10px; margin:18px 0 9px; letter-spacing:.07em; }
.chapter-card h3 { font-size:18px; font-weight:600; margin:0 0 18px; }
.chapter-link { display:block; border-top:1px solid var(--line); padding-top:13px; font-size:11px; color:var(--muted); }
.brand-manifesto { display:grid; grid-template-columns:1fr 1.7fr; align-items:center; gap:55px; margin:64px 0 48px; padding:50px; background:#eae7dd; }
.manifesto-mark { font-family:Georgia,serif; font-size:180px; font-style:italic; line-height:1; color:#8a472d; text-align:center; }
.brand-manifesto .eyebrow { color:var(--accent); }
.brand-manifesto h2 { display:block; font-size:30px; line-height:1.65; font-weight:500; }
.brand-manifesto p:not(.eyebrow) { font-size:12px; line-height:2.2; color:var(--muted); }
.brand-manifesto a { color:var(--accent); font-size:12px; text-underline-offset:5px; }
.footer-statement { border-bottom:1px solid var(--line); padding:12px 0 30px; margin-bottom:30px; }
.footer-statement > span { font-size:10px; letter-spacing:.15em; color:var(--accent); }
.footer-statement p { font-size:26px; letter-spacing:.05em; color:var(--ink); margin:12px 0; }
.footer-statement a { color:var(--muted); text-decoration:none; font-size:12px; }
.device-cover { display:grid; grid-template-columns:minmax(0,1fr) 260px; align-items:center; padding:25px 0 24px; gap:32px; }
.device-cover .eyebrow { color:var(--accent); margin:0 0 16px; font-size:9px; }
main:not(.home) .device-cover h1 { font-size:clamp(36px,4vw,52px); margin:0; letter-spacing:-.055em; line-height:1.2; }
.device-cover h1 span { display:block; margin-top:12px; font-size:16px; letter-spacing:.06em; font-weight:400; }
.device-cover p:not(.eyebrow) { font-size:12px; color:var(--muted); max-width:660px; line-height:1.9; margin:18px 0; }
.cover-illustration { background:#e8e6dd; display:flex; flex-direction:column; align-items:center; padding:8px 12px 14px; border-radius:100px 100px 2px 2px; }
.cover-illustration svg:not(.sprite) { width:100%; height:160px; }
.cover-illustration > span { text-align:center; font-size:8px; letter-spacing:.04em; color:var(--muted); }
.cover-facts { display:flex; flex-wrap:wrap; gap:22px; align-items:baseline; color:var(--muted); font-size:9px; letter-spacing:.06em; }
.cover-facts b { color:var(--ink); font-size:21px; font-family:Georgia,serif; font-weight:400; margin-right:3px; }
.cover-facts a { color:var(--muted); text-underline-offset:3px; }
.device-navigation { display:flex; justify-content:space-between; gap:18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.device-navigation nav { display:flex; gap:22px; align-items:center; }
.device-navigation a { padding:14px 0; text-decoration:none; color:var(--muted); font-size:11px; border-bottom:2px solid transparent; white-space:nowrap; }
.device-navigation a[aria-current] { color:var(--accent); border-bottom-color:var(--accent); }
.device-navigation .view-switch { gap:18px; }
.model-search { max-width:none; margin:16px 0 18px; }
.model-search label { font-size:11px; letter-spacing:.05em; }
.search-field { border-radius:2px; min-height:48px; border-color:var(--line); }
.search-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:10px; }
#search-status { margin:0; }
#saved-filter { background:none; border:1px solid var(--line); color:var(--muted); font:inherit; font-size:11px; padding:9px 13px; cursor:pointer; white-space:nowrap; }
#saved-filter span { font-variant-numeric:tabular-nums; margin-left:6px; }
#saved-filter[aria-pressed="true"] { background:var(--ink); color:var(--panel); border-color:var(--ink); }
.save-note { font-size:10px; color:var(--muted); text-align:right; margin:5px 0 0; }
.tab { border-radius:2px; font-size:12px; padding:9px 13px; }
.tabs { gap:5px; }
.tabbar { background:var(--bg); }
.category-heading { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:10px 0 18px; }
.category-heading .eyebrow { font-size:8px; color:var(--accent); margin:0 0 7px; }
.category-heading h2 { font-family:Georgia,serif; font-size:29px; font-weight:400; margin:0; }
.category-heading .h2n { font-family:Inter,'Noto Sans JP',sans-serif; }
.category-heading > span { font-size:10px; color:var(--muted); }
.cat + .cat { margin-top:30px; }
.panel { border-radius:2px; box-shadow:none; }
thead th { background:#eae9df; font-size:10px; letter-spacing:.03em; padding-top:15px; padding-bottom:15px; }
@media (min-width:701px) { tbody td { padding-top:17px; padding-bottom:17px; } }
.save-model { display:block; margin:8px 0 0; border:0; padding:5px 0; min-height:28px; background:transparent; color:var(--muted); font-size:10px; cursor:pointer; }
.save-model[aria-pressed="true"] { color:var(--accent); }
.save-model:hover { text-decoration:underline; text-underline-offset:3px; }
.reference-next { background:#e8e7dc; padding:28px 30px; margin:35px 0 25px; display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
.reference-next > div { flex:1 1 380px; }
.reference-next .eyebrow { color:var(--accent); font-size:8px; }
.reference-next h2 { font-size:18px; }
.reference-next p:not(.eyebrow) { font-size:12px; color:var(--muted); margin:0; line-height:1.9; }
.reference-next a { color:var(--accent); font-size:12px; text-underline-offset:4px; }
.journal-head { padding:65px 0 42px; border-bottom:1px solid var(--line); }
.journal-head .eyebrow { color:var(--accent); }
main:not(.home) .journal-head h1 { font-size:clamp(30px,4vw,48px); line-height:1.6; margin:20px 0; }
.journal-head > p:last-child { font-size:13px; color:var(--muted); line-height:2; }
.chapter-index { display:flex; flex-wrap:wrap; gap:28px; padding:22px 0; border-bottom:1px solid var(--line); }
.chapter-index a { color:var(--accent); text-decoration:none; font-size:12px; }
.guide-article { display:grid; grid-template-columns: .85fr 1.15fr; gap:64px; align-items:center; padding:65px 0; border-bottom:1px solid var(--line); scroll-margin-top:70px; }
.guide-visual { background:#e7e4d9; padding:24px; text-align:center; }
.guide-visual svg:not(.sprite) { width:100%; height:270px; }
.guide-visual > span { display:block; font-size:9px; color:var(--muted); letter-spacing:.04em; }
.guide-article .eyebrow { color:var(--accent); font-size:10px; }
.guide-article h2 { font-size:26px; margin:14px 0 24px; }
.guide-article p:not(.eyebrow) { font-size:14px; color:var(--muted); line-height:2.1; }
.guide-article .article-intro { color:var(--ink); }
.editorial-link { display:inline-block; margin-top:12px; padding-bottom:8px; color:var(--accent); font-size:13px; text-decoration:none; border-bottom:1px solid var(--accent); }
.editorial-end { text-align:center; padding:45px 0 20px; }
.editorial-end > p { font-size:25px; }
.editorial-end > div { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.editorial-end a { color:var(--accent); font-size:13px; text-underline-offset:5px; }
.editorial-end small { display:block; color:var(--muted); font-size:11px; margin-top:35px; }
.prose .about-lead { font-size:24px; color:var(--ink); line-height:1.8; margin:25px 0; }
.editorial-principles { border-block:1px solid var(--line); padding:10px 0; margin:25px 0; }
.editorial-principles b { display:block; font-size:13px; color:var(--accent); margin-bottom:7px; }
@media(max-width:960px) {
  .desktop-nav { display:none; }
  .topbar .share { margin-left:auto; }
  .hero h1 { font-size:39px; }
  .hero-art { border-radius:120px 120px 2px 2px; }
  .device-card { padding:20px; }
  .device-card h2 { font-size:22px; }
  .brand-manifesto { gap:30px; padding:35px; }
  .guide-article { gap:30px; }
}
@media(max-width:700px) {
  .desktop-nav { display:none; }
  .topbar .share { margin-left:auto; }
  .site-logo { font-size:22px; }
  .hero { grid-template-columns:1fr; margin-top:10px; padding-bottom:24px; }
  .hero-copy { padding:25px 0 27px; }
  .hero .eyebrow { font-size:8px; margin-bottom:22px; }
  .hero h1 { font-size:clamp(32px,9vw,43px); }
  .hero-desc { font-size:12px; }
  .hero-art { min-height:270px; padding:18px 24px 15px; border-radius:100px 100px 2px 2px; }
  .hero-art .art-heading { padding-top:7px; }
  .hero-art .pedal-gallery { padding:14px 0; }
  .hero-art .pedal-item svg { height:145px; }
  .hero-art::before { width:150px; height:150px; }
  .home .body { padding-top:32px; }
  .section-heading { align-items:start; flex-direction:column; gap:12px; }
  .section-heading h2 { font-size:23px; }
  .device-card { padding:24px; }
  .device-card h2 { font-size:27px; }
  .home-journal { margin-top:40px; }
  .chapter-grid { grid-template-columns:1fr; gap:30px; }
  .chapter-art { height:220px; }
  .chapter-card h3 { font-size:20px; }
  .brand-manifesto { grid-template-columns:1fr; gap:0; padding:28px 24px; margin:40px 0; }
  .manifesto-mark { font-size:75px; text-align:left; margin-bottom:20px; }
  .brand-manifesto h2 { font-size:26px; }
  .brand-manifesto p:not(.eyebrow) br { display:none; }
  .footer-statement p { font-size:19px; line-height:1.7; }
  .device-cover { grid-template-columns:minmax(0,1fr) 90px; gap:10px; padding:20px 0; }
  main:not(.home) .device-cover h1 { font-size:30px; }
  .device-cover h1 span { font-size:12px; line-height:1.7; letter-spacing:.02em; }
  .device-cover .eyebrow { font-size:8px; line-height:1.7; margin-bottom:10px; }
  .device-cover p:not(.eyebrow) { font-size:11px; margin:12px 0; }
  .cover-illustration { padding:6px 5px 10px; align-self:start; margin-top:30px; }
  .cover-illustration svg:not(.sprite) { height:85px; }
  .cover-illustration > span { font-size:7px; overflow-wrap:anywhere; }
  .cover-facts { gap:7px 12px; font-size:8px; }
  .cover-facts b { font-size:18px; }
  .device-navigation { flex-direction:column; gap:0; }
  .device-navigation nav { gap:20px; }
  .device-navigation a { font-size:10px; padding:12px 0; }
  .device-navigation .view-switch { border-top:1px solid var(--hair); gap:25px; }
  .search-bottom { align-items:start; gap:10px; }
  #search-status { font-size:10px; line-height:1.8; }
  #saved-filter { font-size:10px; padding:9px; }
  .save-note { font-size:9px; }
  .category-heading > span { display:none; }
  .category-heading h2 { font-size:27px; }
  .save-model { display:inline-block; margin:2px 0 0 8px; min-height:32px; }
  .reference-next { padding:23px; gap:16px; }
  .reference-next h2 { font-size:17px; }
  .journal-head { padding:28px 0; }
  main:not(.home) .journal-head h1 { font-size:30px; }
  .chapter-index { flex-direction:column; gap:18px; }
  .guide-article { grid-template-columns:1fr; gap:24px; align-items:start; padding:34px 0; }
  .guide-article > div:not(.guide-visual) { order:1; }
  .guide-visual { order:2; }
  .guide-visual svg:not(.sprite) { height:190px; }
  .guide-article h2 { font-size:23px; }
  .guide-article p:not(.eyebrow) { font-size:13px; }
}
@media print {
  .save-model, .device-navigation, .desktop-nav, .reference-next, .footer-statement { display:none !important; }
  .device-cover { break-inside:avoid; }
}

/* Readable captions and controls, including low-contrast display conditions. */
.foot-dev span, .foot-tm, .foot-un, .foot-other, .tn-no, .dw-other em, .dw-other span, .tab .n, .tab[aria-selected="true"] .n { opacity:1; }
.prose p a { text-decoration:underline; text-underline-offset:3px; }
.chapter-art > span, .guide-visual > span, .cover-illustration > span, .eyebrow { font-size:10px; }
.gearbox { max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; }
.gb-close { float:right; width:36px; height:36px; margin:-5px -7px 2px 10px; border:1px solid var(--line); background:var(--panel); color:var(--ink); cursor:pointer; font-size:20px; }
.gb-name { padding-top:3px; }
.gb-editorial { font-size:11px; color:var(--muted); padding-top:10px; border-top:1px solid var(--line); }
@media(max-width:700px) {
  .search-field input { font-size:16px; }
  .device-cover { padding:16px 0; }
  .device-cover p:not(.eyebrow) { display:none; }
  .cover-facts { margin-top:16px; font-size:10px; }
  .cover-illustration { margin-top:16px; }
  .cover-illustration > span { display:none; }
  .device-navigation a { min-height:44px; font-size:12px; }
  .model-search label, #search-status, .save-note { font-size:12px; }
  .save-model { min-height:40px; font-size:12px; }
  #saved-filter { min-height:44px; font-size:12px; }
  .search-bottom { flex-wrap:wrap; }
  .save-note { text-align:left; }
  .device-cover .eyebrow { font-size:10px; }
}

/* hero: three of the site's own pedal drawings on a quiet panel */
.hero-gear { margin:0; align-self:center; padding:34px 28px 20px; background:var(--panel); border:1px solid var(--line); border-radius:3px; }
.hg-row { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; align-items:end; }
.hg-item { display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; }
.hg-item svg { width:100%; max-width:132px; height:auto; }
.hg-item span { font-size:11px; color:var(--muted); text-align:center; line-height:1.4; }
.hero-gear figcaption { display:flex; justify-content:space-between; gap:12px; margin-top:26px; padding-top:14px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; letter-spacing:.06em; }
@media (max-width:700px) { .hero-gear { padding:24px 16px 16px; } .hero-gear figcaption span:last-child { display:none; } }

/* Technical reference direction: measured layouts and labeled diagrams. */
:root { --bg:#f3f4f0; --panel:#fdfefa; --line:#d7dcd3; --hair:#e5e8e0; --chip:#e6eae1; --accent:#365f4e; --muted:#566055; }
.topbar { background:rgba(243,244,240,.97); }
.site-logo { font-family:Inter,'Noto Sans JP',system-ui,sans-serif; font-size:21px; font-weight:650; letter-spacing:-.045em; }
.eyebrow, .device-meta, .hero-note, .cover-facts, .art-heading, .art-caption, .chapter-art > span, .footer-statement > span, .reference-map span { font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; letter-spacing:.08em; }
.hero { min-height:425px; margin-top:28px; padding-bottom:28px; }
.hero-copy { padding-top:22px; }
.hero h1 { font-size:clamp(36px,3.65vw,52px); }
.hero-art { background-color:#222d29; background-image:linear-gradient(#bac8ba0b 1px,transparent 1px),linear-gradient(90deg,#bac8ba0b 1px,transparent 1px); background-size:24px 24px; border:1px solid #3e4c41; border-radius:3px; min-height:390px; padding:23px; }
.hero-art::before { display:none; }
.hero-art .art-heading { padding-top:0; justify-content:space-between; border-bottom:1px solid #a3b3a533; padding-bottom:16px; font-size:10px; }
.hero-art .art-heading span:last-child { display:block; }
.hero-art .pedal-item svg { height:178px; transform:none; }
.hero-art .pedal-item:nth-child(2) svg, .hero-art .pedal-item:nth-child(3) svg { transform:none; }
.hero-art .pedal-gallery { padding:22px 0; align-items:stretch; gap:12px; }
.pedal-item > span { font-family:Consolas,monospace; font-size:9px; margin:12px 0 7px; color:#bdc9bb; }
.model-example { display:block; color:#f2f4eb; font-size:12px; text-decoration:none; text-underline-offset:4px; }
.model-example:hover { text-decoration:underline; }
.cover-illustration { border-radius:3px; background:#e5e9e0; border:1px solid var(--line); }
.device-card .device-count, .cover-facts b { font-family:Consolas,'Liberation Mono',monospace; letter-spacing:-.06em; }
.category-heading h2 { font-family:Inter,'Noto Sans JP',sans-serif; font-size:25px; font-weight:600; letter-spacing:-.025em; }
.category-heading .eyebrow { font-size:10px; }
.chapter-art, .guide-visual { background-image:linear-gradient(#414f3f07 1px,transparent 1px),linear-gradient(90deg,#414f3f07 1px,transparent 1px); background-size:20px 20px; }
.brand-manifesto { grid-template-columns: .85fr 1.15fr; background:#e8ece3; padding:36px; gap:55px; }
.brand-manifesto h2 { font-size:26px; }
.reference-map { display:grid; gap:8px; }
.reference-map > div { display:flex; flex-direction:column; gap:8px; padding:15px 18px; border:1px solid #bac5b6; background:#f4f6f0; }
.reference-map > span { text-align:center; font-size:16px; color:var(--muted); line-height:1; }
.reference-map div span { color:var(--accent); font-size:10px; }
.reference-map b { font-size:13px; font-weight:500; }
.reference-next { background:#e8ece3; }
@media(max-width:700px) {
  .hero { margin-top:6px; }
  .hero h1 { font-size:clamp(32px,9vw,43px); }
  .hero-art { min-height:270px; padding:18px 15px; border-radius:3px; }
  .hero-art .pedal-item svg { height:128px; }
  .hero-art .pedal-gallery { gap:8px; padding:16px 0; }
  .hero-art .art-heading { font-size:9px; padding-top:0; }
  .pedal-item > span { font-size:8px; }
  .model-example { font-size:11px; min-height:36px; display:flex; align-items:center; justify-content:center; }
  .brand-manifesto { grid-template-columns:1fr; gap:25px; padding:24px; }
  .brand-manifesto h2 { font-size:22px; }
}

/* Generated editorial artwork; intrinsic dimensions prevent layout shifts. */
.processor-hero { margin:0; align-self:center; background:#222d29; border:1px solid #39483f; overflow:hidden; border-radius:3px; }
.processor-hero img { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:cover; }
.processor-hero figcaption { display:flex; justify-content:space-between; gap:12px; padding:13px 16px; color:#c4d0c2; font-size:10px; line-height:1.6; }
.processor-hero figcaption > span:first-child { font-family:Consolas,monospace; letter-spacing:.08em; }
@media(max-width:700px) {
  .processor-hero figcaption { padding:12px; flex-wrap:wrap; font-size:10px; gap:5px 12px; }
}

/* the device's own front view on its cover: larger than a single icon, and
   on phones it sits under the title at full width instead of in a narrow
   side column */
.device-cover:has(.has-device) { grid-template-columns:minmax(0,1fr) minmax(0,340px); }
.cover-illustration.has-device { padding:18px 18px 12px; }
.cover-illustration.has-device svg.device-art { width:100%; height:auto; }
.cover-illustration.has-device > span { display:block; margin-top:10px; font-size:10px; }
@media (max-width:700px) {
  .device-cover:has(.has-device) { grid-template-columns:1fr; gap:14px; }
  .cover-illustration.has-device { margin-top:0; padding:16px 14px 10px; }
  .cover-illustration.has-device svg.device-art { max-width:380px; margin:0 auto; }
  .cover-illustration.has-device > span { display:block; }
}

/* ---------- model and real-gear pages ---------- */
.model-page { max-width:760px; margin:10px 0 40px; }
.mp-head { display:grid; grid-template-columns:132px minmax(0,1fr); gap:26px; align-items:center; padding:26px 0 28px; border-bottom:1px solid var(--line); }
.mp-art { background:var(--tile); border:1px solid var(--line); border-radius:3px; padding:14px; }
.mp-art svg:not(.sprite) { display:block; width:100%; height:auto; }
.mp-head .eyebrow { color:var(--accent); font-size:10px; margin:0 0 10px; }
.mp-head h1 { margin:0; font-size:clamp(30px,4vw,44px); line-height:1.15; letter-spacing:-.02em; }
.mp-src { margin:14px 0 0; font-size:15px; }
.mp-src span, .mp-row span, .mp-other span { display:inline-block; min-width:6.5em; margin-right:10px; font-size:11px; color:var(--muted); letter-spacing:.06em; }
.mp-src a { color:var(--accent); text-underline-offset:3px; }
.mp-body h2 { font-size:13px; letter-spacing:.08em; color:var(--muted); font-weight:600; margin:28px 0 8px; }
.mp-feat { font-size:17px; line-height:1.9; margin:0; }
.mp-note { background:var(--panel); border:1px solid var(--line); border-radius:3px; padding:18px 20px; }
.mp-note p { margin:0 0 8px; line-height:1.85; }
.mp-note p:last-child { margin-bottom:0; }
.gear-source-gap { margin:0 0 20px; padding:14px 16px; color:var(--muted); background:#f0ede5; border-left:2px solid var(--accent); font-size:13px; line-height:1.8; }
.gear-source-gap strong { display:block; margin-bottom:3px; color:var(--ink); font-size:12px; letter-spacing:.04em; }
.mp-meta { font-size:12px; color:var(--muted); }
.mp-row { font-size:13px; }
.mp-other { margin:22px 0 0; font-size:13px; }
.mp-other a { margin-right:14px; color:var(--ink); text-underline-offset:3px; }
.mp-nav { display:flex; justify-content:space-between; gap:12px; margin:34px 0 0; padding-top:18px; border-top:1px solid var(--line); }
.mp-nav a { display:flex; flex-direction:column; gap:2px; color:var(--ink); text-decoration:none; font-size:14px; }
.mp-nav a[rel="next"] { text-align:right; }
.mp-nav a span { font-size:11px; color:var(--muted); }
.mp-nav a:hover { color:var(--accent); }
.mp-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin:22px 0 0; font-size:13px; }
.mp-links a { color:var(--accent); text-underline-offset:3px; }
.gp-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--hair); }
.gp-list li { padding:12px 0; border-bottom:1px solid var(--hair); }
.gp-list a { font-weight:600; color:var(--ink); text-underline-offset:3px; }
.gp-list span { margin-left:10px; font-size:11px; color:var(--muted); }
.gp-list p { margin:4px 0 0; font-size:13px; color:var(--muted); line-height:1.7; }
.gear-index h2 { font-size:13px; letter-spacing:.1em; color:var(--accent); margin:26px 0 8px; }
.gi-list { list-style:none; margin:0; padding:0; columns:3 220px; column-gap:28px; }
.gi-list li { break-inside:avoid; display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid var(--hair); font-size:14px; }
.gi-list a { color:var(--ink); text-decoration:none; }
.gi-list a:hover { color:var(--accent); text-decoration:underline; }
.gi-list span { font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
a.more { margin-left:10px; font-size:11px; color:var(--muted); text-underline-offset:3px; }
a.more:hover { color:var(--accent); }
@media (max-width:700px) {
  .mp-head { grid-template-columns:92px minmax(0,1fr); gap:16px; padding:18px 0 20px; }
  .mp-feat { font-size:16px; }
}
.gear-index h2 span { margin-left:8px; font-size:11px; color:var(--muted); font-weight:400; letter-spacing:0; }

/* row icons: the tile takes the row's height, and the drawing fills the
   tile (the symbols are already cropped to the gear's outline) */
.ico { width:76px; height:92px; padding:2px; border-radius:6px; }
col.c-ico { width:98px; }
@media (min-width:701px) { .ico { width:84px; height:102px; } col.c-ico { width:106px; } }
@media (max-width:700px) {
  tbody tr:has(td.c-ico) { grid-template-columns:76px minmax(0,1fr); column-gap:14px; }
}

/* ---------- category pages, glossary, model-page additions ---------- */
.cat-head h1 { margin:6px 0 10px; }
.cat-page h2 { font-size:15px; margin:30px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--line); }
.cat-list { list-style:none; margin:0; padding:0; }
.cat-list li { display:grid; grid-template-columns:76px minmax(0,1fr); gap:14px; padding:12px 0; border-bottom:1px solid var(--hair); align-items:start; }
.cat-list .ico { width:76px; height:92px; }
.cl-name { font-weight:600; color:var(--ink); text-underline-offset:3px; }
.cl-src { margin:4px 0 0; font-size:13px; }
.cl-src a { color:var(--accent); text-underline-offset:3px; }
.cl-feat { margin:4px 0 0; font-size:13px; color:var(--muted); line-height:1.7; }
.cat-others { display:flex; flex-wrap:wrap; gap:6px 14px; margin:34px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:13px; }
.cat-others span { width:100%; font-size:11px; color:var(--muted); letter-spacing:.06em; }
.cat-others a { color:var(--ink); text-underline-offset:3px; }
.cat-link { font-size:11px; color:var(--accent); text-underline-offset:3px; white-space:nowrap; }
a.gsearch { margin-left:10px; font-size:11px; color:var(--muted); text-underline-offset:3px; }
a.gsearch:hover { color:var(--accent); }
a.name { color:var(--ink); }
.mp-dev { font-size:.5em; font-weight:400; color:var(--muted); margin-left:6px; letter-spacing:0; }
.mp-lead { margin:12px 0 0; font-size:15px; line-height:1.8; }
.mp-kana { margin:6px 0 0; font-size:13px; color:var(--muted); }
.mp-src small { margin-left:10px; font-size:12px; color:var(--muted); }
.mp-knobs { font-size:14px; line-height:2; }
.mp-knobs a { margin:0 10px 0 0; color:var(--accent); text-underline-offset:3px; white-space:nowrap; }
.term-index { display:flex; flex-wrap:wrap; gap:6px 12px; margin:20px 0 10px; font-size:13px; }
.term-index a { color:var(--ink); text-underline-offset:3px; }
.term-entry { padding:14px 0; border-bottom:1px solid var(--hair); scroll-margin-top:80px; }
.term-entry h2 { font-size:17px; margin:0 0 6px; }
.term-entry h2 span { margin-left:6px; font-size:12px; color:var(--muted); font-weight:400; }
.term-entry p { margin:0; line-height:1.85; }

/* Real device drawings in the home page reference cards. */
.device-card .card-b { min-height:0; margin-bottom:12px; }
.device-card-art { display:flex; align-items:center; justify-content:center; height:156px; margin:0 0 20px; padding:8px 12px; }
.device-card-art .device-art { display:block; width:100%; height:100%; max-width:280px; filter:drop-shadow(0 8px 5px #263e3518); }
@media(max-width:400px) {
  .device-card-art { height:140px; padding:6px 8px; }
}

/* Artist tone field notes: an evidence-led index built for comparison, not a
   wall of interchangeable preset cards. */
.tone-library {
  --kind:#667067;
  max-width:1200px;
  padding:10px 0 72px;
  color:var(--ink);
}
.tone-library a { color:var(--accent); text-underline-offset:4px; }
.tone-library h1 { overflow-wrap:anywhere; }
.tone-library p { text-wrap:pretty; }
.tone-kind-estimate { --kind:#98451f; }
.tone-kind-easy { --kind:#2f6048; }
.tone-kind-partial { --kind:#345c73; }
.tone-kind-community { --kind:#67476f; }
.tone-kind-reference { --kind:#58574f; }

.tone-index-hero {
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(420px,.96fr);
  min-height:540px;
  margin-top:8px;
  overflow:hidden;
  background:#222b25;
  color:#f7f4ec;
  border-radius:4px;
}
.tone-index-intro { display:flex; flex-direction:column; justify-content:center; padding:50px 48px 44px; }
.tone-index-intro .eyebrow { margin:0 0 25px; color:#d6bd7d; }
main .tone-index-hero h1 {
  max-width:680px;
  margin:0;
  color:#faf8f1;
  font-size:clamp(40px,3.7vw,52px);
  font-weight:600;
  line-height:1.32;
  letter-spacing:.015em;
}
.tone-index-hero h1 em { color:#dcc895; font-family:Georgia,"Times New Roman",serif; font-weight:400; }
.tone-index-lede { max-width:610px; margin:25px 0 0; color:#c6ccc4; font-size:14px; line-height:2; }
.tone-index-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin-top:30px; }
.tone-index-actions a { min-height:46px; font-size:12px; font-weight:600; text-decoration:none; }
.tone-primary { display:inline-flex; align-items:center; gap:36px; padding:0 18px; background:#e4d4ac; color:#252b24 !important; }
.tone-primary:hover { background:#f2e4bf; }
.tone-secondary { color:#d7ddd5 !important; }
.tone-secondary:hover { color:#fff !important; }
.tone-index-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:38px 0 0; padding-top:20px; border-top:1px solid #ffffff24; }
.tone-index-stats div { min-width:0; }
.tone-index-stats dt { color:#929e93; font-size:8px; letter-spacing:.15em; }
.tone-index-stats dd { margin:3px 0 0; color:#f3f0e7; font:25px/1.1 Georgia,serif; }
.tone-index-visual { position:relative; min-width:0; min-height:540px; margin:0; overflow:hidden; background:#151c18; }
.tone-index-visual::after { content:""; position:absolute; inset:0; border-left:1px solid #ffffff1c; pointer-events:none; }
.tone-index-visual img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.tone-index-visual figcaption {
  position:absolute; inset:auto 20px 18px;
  display:flex; justify-content:space-between; gap:16px;
  padding:11px 13px; background:#111713d9; color:#bdc7bd;
  font-size:8px; letter-spacing:.12em;
}
.tone-index-visual figcaption span:last-child { font-family:inherit; letter-spacing:.02em; }

.tone-trust {
  display:grid;
  grid-template-columns:minmax(250px,1.1fr) minmax(390px,1.35fr) auto;
  align-items:center;
  gap:34px;
  padding:34px 0;
  border-bottom:1px solid var(--line);
}
.tone-trust .eyebrow,.tone-library-head .eyebrow,.tone-method .eyebrow { margin:0 0 9px; color:var(--accent); }
.tone-trust h2 { margin:0; font-size:23px; letter-spacing:.02em; }
.tone-trust > div > p:last-child { max-width:520px; margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.tone-trust ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; list-style:none; margin:0; padding:0; }
.tone-trust li { --key-color:#6d6a60; display:grid; grid-template-columns:8px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; font-size:10px; }
.tone-trust li.tone-key-estimate { --key-color:#b75c32; }.tone-trust li.tone-key-easy { --key-color:#3d7158; }
.tone-trust li.tone-key-partial { --key-color:#416d87; }.tone-trust li.tone-key-community { --key-color:#7a5d86; }
.tone-trust li > span { width:7px; height:7px; border-radius:50%; background:var(--key-color); }
.tone-trust li b { overflow:hidden; color:var(--ink); font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.tone-trust li em { color:var(--muted); font:11px/1 Consolas,monospace; font-style:normal; }
.tone-trust > a { font-size:11px; white-space:nowrap; }

.tone-featured { padding:58px 0 64px; }
.tone-library-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:25px; }
.tone-library-head h2 { margin:0; font-size:clamp(27px,3.2vw,38px); line-height:1.35; letter-spacing:.02em; }
.tone-library-head > div > p:last-child { max-width:680px; margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.85; }
.tone-library-head > span { flex:0 0 auto; color:var(--muted); font-size:9px; letter-spacing:.14em; }
.tone-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.tone-feature { position:relative; display:flex; flex-direction:column; min-width:0; min-height:355px; padding:27px 28px 24px; background:var(--panel); border:1px solid var(--line); border-top:3px solid var(--kind); }
.tone-feature-top { display:flex; justify-content:space-between; gap:14px; color:var(--muted); font-size:8px; letter-spacing:.13em; }
.tone-feature-top span:last-child { letter-spacing:.04em; }
.tone-feature-artist { margin:25px 0 4px; color:var(--kind); font-size:11px; font-weight:600; }
.tone-feature h3 { margin:0; font-size:27px; line-height:1.25; }
.tone-feature h3 a { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; color:var(--ink); text-decoration:none; }
.tone-feature h3 a span { flex:0 0 auto; color:var(--accent); font-size:10px; font-weight:500; }
.tone-feature-summary { margin:14px 0 22px; color:var(--muted); font-size:12px; line-height:1.9; }
.tone-feature .chain-preview { margin:auto 0 18px; padding-top:16px; border-top:1px solid var(--hair); color:var(--ink); }
.tone-feature-foot { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0; }
.tone-feature-foot time { color:var(--muted); font-size:9px; }
.tone-badge { display:inline-block; color:var(--kind); font-size:10px; font-weight:600; line-height:1.5; }
.tone-badge::before { content:""; display:inline-block; width:5px; height:5px; margin:0 7px 1px 0; border-radius:50%; background:var(--kind); }
.tone-feature:hover h3 a { color:var(--accent); }

.tone-directory { padding:55px 0 0; border-top:1px solid var(--line); scroll-margin-top:90px; }
.tone-tools {
  position:sticky; top:calc(var(--bar) + var(--sat)); z-index:6;
  display:grid; grid-template-columns:minmax(260px,1.8fr) minmax(150px,.8fr) minmax(210px,1fr) auto;
  gap:12px; align-items:end;
  margin:0 0 16px; padding:17px 18px;
  background:#f4f2ecf5; border:1px solid var(--line); box-shadow:0 12px 24px #4a3b2410;
  backdrop-filter:blur(12px);
}
.tone-tools label { display:grid; gap:7px; min-width:0; color:var(--muted); font-size:10px; font-weight:600; }
.tone-tools input,.tone-tools select,.tone-tools button { width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #bdb7aa; border-radius:2px; background:#fff; color:var(--ink); font:inherit; font-size:12px; }
.tone-tools input::placeholder { color:#8d887e; }
.tone-tools input:focus,.tone-tools select:focus { border-color:var(--accent); outline:2px solid #a4532f26; outline-offset:1px; }
.tone-tools button { width:auto; min-width:82px; cursor:pointer; color:var(--ink); }
.tone-tools button:hover { background:var(--chip); }
.tone-results-head { display:flex; align-items:baseline; justify-content:space-between; gap:20px; min-height:40px; padding:0 2px 9px; color:var(--muted); font-size:10px; }
.tone-results-head p { margin:0; }
.tone-results-head #tone-status { color:var(--ink); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
#tone-empty { margin:0; padding:38px 0; border-block:1px solid var(--line); color:var(--muted); text-align:center; }
.tone-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 34px; margin:0; }
.tone-card {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) 158px; gap:22px;
  min-width:0; min-height:132px; margin:0; padding:18px 0;
  background:transparent; border:0; border-bottom:1px solid var(--line); border-left:2px solid transparent;
}
.tone-card:hover { background:#eeebe344; border-left-color:var(--kind); }
.tone-card:has(h2 a:focus-visible) { outline:2px solid var(--accent); outline-offset:3px; }
.tone-card-main { min-width:0; }
.tone-card-artist { margin:0 0 5px !important; color:var(--kind) !important; font-size:9px !important; font-weight:600; letter-spacing:.04em; line-height:1.5 !important; }
.tone-card h2 { margin:0; font-size:18px; line-height:1.35; }
.tone-card h2 a { display:flex; justify-content:space-between; gap:12px; color:var(--ink); text-decoration:none; }
.tone-card h2 a::after { content:""; position:absolute; inset:0; }
.tone-card h2 a span { color:var(--muted); font-size:12px; font-weight:400; }
.tone-card h2 a:focus-visible { outline:none; }
.tone-card:hover h2 a,.tone-card:hover h2 a span { color:var(--accent); }
.tone-card-summary { display:-webkit-box; overflow:hidden; margin:8px 0 0; color:var(--muted); font-size:10px; line-height:1.75; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.tone-card-meta { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding-left:17px; border-left:1px solid var(--hair); }
.tone-device { color:var(--ink); font-size:9px; font-weight:600; }
.tone-card-meta .tone-badge { margin-top:6px; }
.tone-card-data { margin-top:10px; color:var(--muted); font:9px/1.6 Consolas,monospace; overflow-wrap:anywhere; }
.tone-card-meta time { display:none; }
.tone-method { display:grid; grid-template-columns:170px minmax(0,1fr) auto; align-items:center; gap:28px; margin-top:44px; padding:25px 0; border-block:1px solid var(--line); }
.tone-method h2 { margin:0; font-size:18px; }
.tone-method p:not(.eyebrow) { max-width:650px; margin:0; color:var(--muted); font-size:11px; line-height:1.8; }
.tone-method a { font-size:11px; white-space:nowrap; }
.preset-entry { margin:12px 0; font-size:13px; }


/* Detail guides: the page reads like an annotated field note, while the dark
   parameter display remains a tool rather than decoration. */
.tone-detail { padding-top:0; }
.tone-back { padding:12px 0 5px; }
.tone-back a { display:inline-flex; align-items:center; min-height:36px; color:var(--muted); font-size:11px; text-decoration:none; }
.tone-back a:hover { color:var(--accent); }
.tone-detail-hero { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr); align-items:end; gap:64px; padding:48px 0 42px; border-bottom:1px solid var(--line); }
.tone-detail-intro { min-width:0; }
.tone-detail-intro .eyebrow { margin:0 0 26px; color:var(--accent); }
.tone-artist-name { margin:0 0 8px; color:var(--muted); font-size:13px; font-weight:600; }
main .tone-detail h1 { margin:0; font-size:clamp(46px,5.4vw,68px); line-height:1.13; letter-spacing:-.045em; }
.tone-detail-summary { max-width:780px; margin:24px 0 0; color:var(--muted); font-size:14px; line-height:2; }
.tone-detail-labels { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin:24px 0 0; color:var(--muted); font-size:9px; }
.tone-detail-labels .tone-badge { padding:5px 9px; border:1px solid var(--kind); }
.tone-facts { align-self:end; padding:24px 25px 20px; background:#e9e6dc; border-top:3px solid var(--kind); }
.tone-facts > .eyebrow { margin:0 0 13px; color:var(--muted); }
.tone-facts dl { margin:0; }
.tone-facts dl div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px; padding:9px 0; border-top:1px solid #d4d1c7; }
.tone-facts dt { color:var(--muted); font-size:9px; }
.tone-facts dd { margin:0; font-size:10px; font-weight:600; line-height:1.6; }
.tone-assumptions { display:grid; grid-template-columns:150px minmax(0,1fr); gap:20px; padding:20px 0; border-bottom:1px solid var(--line); }
.tone-assumptions > p { margin:0; color:var(--muted); font-size:8px; letter-spacing:.13em; }
.tone-assumptions ul { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; list-style:none; margin:0; padding:0; }
.tone-assumptions li { min-width:0; padding-left:12px; border-left:2px solid #d6d1c5; }
.tone-assumptions li span { display:block; color:var(--muted); font-size:8px; }
.tone-assumptions li b { display:block; margin-top:3px; font-size:10px; font-weight:600; line-height:1.55; }
.tone-detail-layout { display:grid; grid-template-columns:190px minmax(0,1fr); align-items:start; gap:58px; padding-top:46px; }
.tone-toc { position:sticky; top:calc(var(--bar) + var(--sat) + 24px); }
.tone-toc > .eyebrow { margin:0 0 14px; color:var(--muted); }
.tone-toc nav { display:flex; flex-direction:column; align-items:stretch; border-top:1px solid var(--line); }
.tone-toc nav a { padding:9px 0; border-bottom:1px solid var(--hair); color:var(--muted); font-size:10px; text-decoration:none; }
.tone-toc nav a:hover { color:var(--accent); }
.tone-toc-source { display:grid; gap:5px; margin-top:25px; padding-top:15px; border-top:1px solid var(--line); }
.tone-toc-source span { color:var(--muted); font-size:7px; letter-spacing:.12em; }
.tone-toc-source b { font-size:10px; line-height:1.5; }
.tone-toc-source a { font-size:9px; }
.tone-detail-content { min-width:0; }
.tone-section { padding:0 0 58px; margin:0 0 58px; border-bottom:1px solid var(--line); scroll-margin-top:calc(var(--bar) + var(--sat) + 22px); }
.tone-section:last-child { margin-bottom:0; border-bottom:0; }
.tone-section-head { margin-bottom:25px; }
.tone-section-head .eyebrow { margin:0 0 10px; color:var(--accent); }
.tone-section-head h2 { margin:0; font-size:clamp(26px,3vw,35px); line-height:1.35; letter-spacing:.015em; }
.tone-section-head > p:last-child { max-width:680px; margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.85; }
.tone-section-note { margin:18px 0 0; color:var(--muted); font-size:11px; line-height:1.85; }
.tone-values { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin:0; background:var(--line); border:1px solid var(--line); }
.tone-values div { padding:21px 14px; background:#e8e6dc; text-align:center; }
.tone-values dt { color:var(--muted); font-size:9px; letter-spacing:.1em; }
.tone-values dd { margin:7px 0 0; font:38px/1.1 Consolas,monospace; }
.tone-parameters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; padding:0; background:var(--line); border:1px solid var(--line); }
.tone-parameters div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px 16px; background:var(--panel); }
.tone-parameters dt { color:var(--muted); font-size:10px; }
.tone-parameters dd { margin:0; color:var(--accent); font:600 13px/1.4 Consolas,monospace; text-align:right; }
.tone-availability { padding:30px; background:#e9e6dc; border-left:3px solid var(--kind); }
.tone-availability > span { color:var(--kind); font-size:22px; }
.tone-availability h3 { margin:9px 0 7px; font-size:22px; }
.tone-availability p { max-width:650px; margin:0 0 18px; color:var(--muted); font-size:12px; line-height:1.85; }
.tone-availability a { font-size:11px; }

.tone-editor { --signal:#ffa24b; margin:0; padding:19px; overflow:hidden; background:#0b1015; color:#f3f6f8; border:1px solid #303a44; border-radius:4px; box-shadow:0 15px 32px #182a3417; }
.tone-editor-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; color:#8f9ba6; font-size:8px; letter-spacing:.11em; }
.tone-editor-bar span:last-child { text-align:right; }
.signal-chain { display:flex; gap:12px; align-items:stretch; list-style:none; margin:0; padding:20px 0 26px; overflow-x:auto; scrollbar-width:thin; }
.signal-chain li { position:relative; flex:1 0 145px; min-width:145px; }
.signal-chain li:not(:last-child)::after { content:""; position:absolute; top:39px; right:-12px; width:12px; height:2px; background:#6f7d88; }
.signal-chain a { display:flex; flex-direction:column; align-items:stretch; gap:5px; height:100%; min-height:128px; padding:8px; color:#e6edf3; border:1px solid #56636e; border-radius:3px; text-decoration:none; }
.signal-chain a:hover { border-color:#a7b1b9; }
.signal-chain a > span { color:#87939e; font:9px/1 Consolas,monospace; text-align:center; }
.signal-chain a b { padding:8px 5px; background:var(--signal); color:#111820; font:700 12px/1 Consolas,monospace; text-align:center; }
.signal-chain a em { overflow:hidden; font-size:9px; font-style:normal; font-weight:600; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.signal-chain a small { display:-webkit-box; overflow:hidden; color:#9eaab4; font-size:8px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.signal-chain a[aria-current] { border-color:#fff; outline:2px solid var(--signal); outline-offset:2px; }
.lcd-screen { padding-top:20px; border-top:2px solid var(--signal); }
.lcd-kicker { margin:0 0 5px; color:#82909b; font-size:8px; letter-spacing:.13em; }
.lcd-screen h2 { margin:0 0 24px; color:#f3f6f8; font-size:clamp(26px,4vw,38px); }
#lcd-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; min-height:94px; }
#lcd-values div { min-width:0; }
#lcd-values span { display:block; color:#dce3e8; font-size:13px; font-weight:600; }
#lcd-values strong { display:block; margin:7px 0 10px; color:var(--signal); font:clamp(24px,3.4vw,34px)/1.1 Consolas,monospace; overflow-wrap:anywhere; }
#lcd-values small { display:block; color:#8e9ba6; font-size:9px; }
.lcd-nav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:23px 0 17px; }
.lcd-nav button { min-height:44px; padding:8px 12px; color:#f3f6f8; background:#202a34; border:1px solid #71808d; border-radius:2px; font:inherit; font-size:11px; cursor:pointer; }
.lcd-nav button:last-child { justify-self:end; }
.lcd-nav button:disabled { opacity:.45; cursor:default; }
.lcd-nav > span { color:#8d99a4; font:10px/1 Consolas,monospace; }
.lcd-screen > small { color:#8e9ba6; font-size:9px; line-height:1.6; }
.tone-editor-note { margin:15px 0 0 !important; color:#84919c !important; font-size:9px !important; line-height:1.6 !important; }
.chain-preview { color:inherit; font:10px/1.6 Consolas,monospace; overflow-wrap:anywhere; }
.block-dist,.block-od { --signal:#ffbd55; }.block-eq { --signal:#e4df6b; }.block-amp { --signal:#ff795e; }.block-cab { --signal:#ffa752; }.block-reverb { --signal:#d59cff; }
.block-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:0; }
.parameter-screen { min-width:0; padding:18px; color:#eef3f7; background:#111820; border:1px solid #435361; border-top:4px solid var(--signal); border-radius:3px; scroll-margin-top:calc(var(--bar) + var(--sat) + 22px); }
.parameter-screen header > span { color:var(--signal); font:9px/1 Consolas,monospace; letter-spacing:.07em; }
.parameter-screen h2 { margin:7px 0 13px; color:#eef3f7; font-size:20px; line-height:1.3; overflow-wrap:anywhere; }
.parameter-purpose { margin:0 0 10px; padding-left:10px; border-left:2px solid var(--signal); color:#d2dae1; font-size:11px; line-height:1.7; }
.parameter-note { margin:10px 0 0; color:#aab4bd; font-size:10px; line-height:1.7; }
.parameter-screen table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:11px; }
.parameter-screen th,.parameter-screen td { padding:10px 5px; color:#eef3f7; background:transparent; border-bottom:1px solid #3c4853; overflow-wrap:anywhere; }
.parameter-screen thead th { color:#91a0ac; font-size:8px; font-weight:500; letter-spacing:.06em; }
.parameter-screen tbody th { font-weight:500; }
.parameter-screen td:nth-child(2) { color:var(--signal); font-family:Consolas,monospace; }
.parameter-screen td:nth-child(3) { color:#aeb9c2; font-size:9px; }
.param-control { width:42%; }.param-value { width:35%; }.param-basis { width:23%; }

.tone-steps { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.tone-steps li { display:grid; grid-template-columns:42px minmax(0,1fr); gap:15px; padding:19px 0; border-bottom:1px solid var(--line); }
.tone-steps li > span { color:var(--accent); font:12px/1.7 Consolas,monospace; }
.tone-steps h3 { margin:0 0 5px; font-size:14px; }
.tone-steps p { margin:0; color:var(--muted); font-size:11px; line-height:1.85; }
.tone-tuning-note { display:grid; grid-template-columns:150px minmax(0,1fr); gap:20px; padding:20px; background:#e9e6dc; border-left:3px solid var(--kind); }
.tone-tuning-note > span { color:var(--kind); font-size:8px; letter-spacing:.12em; }
.tone-tuning-note p { margin:0; color:var(--muted); font-size:11px; line-height:1.9; }
.tone-export { border:1px solid var(--line); background:var(--panel); }
.tone-export summary { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:52px; padding:0 17px; cursor:pointer; list-style:none; font-size:11px; font-weight:600; }
.tone-export summary::-webkit-details-marker { display:none; }
.tone-export summary::after { content:"＋"; margin-left:auto; color:var(--muted); }
.tone-export[open] summary::after { content:"−"; }
.tone-export summary small { margin-left:auto; color:var(--muted); font:8px/1 Consolas,monospace; }
.tone-export-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding:12px 16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tone-export-actions button { min-height:40px; padding:0 13px; color:#fff; background:#303a32; border:1px solid #303a32; border-radius:2px; font:inherit; font-size:10px; cursor:pointer; }
.tone-export-actions button:hover { background:#475446; }
.tone-export-actions span { color:var(--accent); font-size:10px; }
.tone-export pre { max-width:100%; margin:0; padding:18px; overflow:auto; color:#dbe2e8; background:#111820; font:10px/1.75 Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.tone-evidence-statement { margin:0 0 22px; padding:16px 18px; background:#e9e6dc; border-left:3px solid var(--kind); color:var(--muted); font-size:11px; line-height:1.9; }
.tone-evidence-statement b { display:block; margin-bottom:5px; color:var(--kind); font-size:10px; }
.tone-source-list { border-top:1px solid var(--line); }
.tone-source-list p { display:grid; grid-template-columns:170px minmax(0,1fr); gap:18px; margin:0; padding:13px 0; border-bottom:1px solid var(--line); font-size:10px; }
.tone-source-list span { color:var(--muted); }
.tone-source-list a { justify-self:start; }
.tone-source-foot { margin:18px 0 0; color:var(--muted); font-size:9px; line-height:1.7; }

@media (max-width:980px) {
  .tone-library { padding-left:32px; padding-right:32px; }
  .tone-index-hero { grid-template-columns:1fr; margin-left:-32px; margin-right:-32px; }
  .tone-index-visual { height:300px; min-height:0; }
  .tone-trust { grid-template-columns:1fr 1.4fr; }
  .tone-trust > a { grid-column:2; justify-self:start; }
  .tone-tools { grid-template-columns:1.4fr 1fr; }
  .tone-tools label:first-child { grid-column:1 / -1; }
  .tone-detail-hero { grid-template-columns:1fr; gap:30px; }
  .tone-facts dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
  .tone-detail-layout { grid-template-columns:160px minmax(0,1fr); gap:34px; }
  .tone-assumptions { grid-template-columns:1fr; }
  .tone-method { grid-template-columns:1fr auto; }
  .tone-method > .eyebrow { grid-column:1 / -1; }
}

@media (max-width:700px) {
  .tone-library { padding:0 18px 48px; }
  .tone-index-hero { margin:0 -18px; }
  .tone-index-intro { padding:28px 22px 24px; }
  .tone-index-intro .eyebrow { margin-bottom:18px; }
  main .tone-index-hero h1 { font-size:38px; line-height:1.35; }
  .tone-index-lede { margin-top:18px; font-size:12px; line-height:1.85; }
  .tone-index-actions { align-items:stretch; flex-direction:column; gap:8px; margin-top:23px; }
  .tone-primary { width:100%; justify-content:space-between; }
  .tone-index-stats { grid-template-columns:repeat(2,1fr); margin-top:24px; row-gap:14px; }
  .tone-index-stats dd { font-size:22px; }
  .tone-index-visual { height:220px; min-height:0; }
  .tone-index-visual img { object-position:center; }
  .tone-index-visual figcaption { inset:auto 12px 12px; }
  .tone-index-visual figcaption span:last-child { display:none; }
  .tone-trust { grid-template-columns:1fr; gap:20px; padding:28px 0; }
  .tone-trust > a { grid-column:auto; }
  .tone-trust ul { grid-template-columns:1fr; }
  .tone-featured { padding:43px 0 48px; }
  .tone-library-head { display:block; }
  .tone-library-head > span { display:block; margin-top:10px; }
  .tone-library-head h2 { font-size:28px; }
  .tone-feature-grid { grid-template-columns:1fr; }
  .tone-feature { min-height:330px; padding:23px 21px 21px; }
  .tone-feature h3 { font-size:24px; }
  .tone-directory { padding-top:42px; }
  .tone-tools { position:static; grid-template-columns:1fr; gap:10px; padding:14px; backdrop-filter:none; }
  .tone-tools label:first-child { grid-column:auto; }
  .tone-tools input,.tone-tools select,.tone-tools button { min-height:50px; font-size:16px; }
  .tone-tools button { width:100%; }
  .tone-results-head { display:block; }
  .tone-results-head > p:last-child { margin-top:4px !important; }
  .tone-grid { grid-template-columns:1fr; }
  .tone-card { grid-template-columns:1fr; gap:12px; min-height:0; padding:19px 0; }
  .tone-card-summary { font-size:12px; line-height:1.7; }
  .tone-device,.tone-card-data { font-size:10px; }
  .tone-card h2 a::after { inset:0; }
  .tone-card-meta { display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:10px 0 0; border-top:1px solid var(--hair); border-left:0; }
  .tone-card-meta .tone-badge { grid-column:2; grid-row:1 / span 2; align-self:start; margin:0; font-size:9px; line-height:1.45; text-align:right; }
  .tone-card-data { grid-column:1; margin-top:4px; }
  .tone-card-meta time { grid-column:1; margin-top:0; }
  .tone-method { grid-template-columns:1fr; gap:10px; }
  .tone-method a { justify-self:start; }

  .tone-back a { min-height:44px; }
  .tone-detail-hero { padding:32px 0 28px; gap:25px; }
  .tone-detail-intro .eyebrow { margin-bottom:18px; }
  .tone-artist-name { font-size:12px; }
  main .tone-detail h1 { font-size:43px; }
  .tone-detail-summary { margin-top:18px; font-size:13px; }
  .tone-facts { padding:20px 18px 16px; }
  .tone-facts dl { grid-template-columns:1fr; }
  .tone-assumptions { gap:10px; padding:17px 0; }
  .tone-assumptions ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tone-detail-layout { grid-template-columns:minmax(0,1fr); gap:35px; padding-top:34px; }
  .tone-toc { position:static; }
  .tone-toc nav { flex-direction:row; gap:18px; overflow-x:auto; border-bottom:1px solid var(--line); scrollbar-width:none; }
  .tone-toc nav::-webkit-scrollbar { display:none; }
  .tone-toc nav a { flex:0 0 auto; padding:10px 0; border-bottom:0; white-space:nowrap; }
  .tone-toc-source { display:none; }
  .tone-section { padding-bottom:42px; margin-bottom:42px; }
  .tone-section-head { margin-bottom:20px; }
  .tone-section-head h2 { font-size:27px; }
  .tone-section-head > p:last-child { font-size:11px; }
  .tone-editor { margin-inline:0; padding:13px 10px; }
  .tone-editor-bar { align-items:flex-start; }
  .tone-editor-bar span:last-child { max-width:190px; }
  .signal-chain { gap:8px; padding:16px 1px 22px; }
  .signal-chain li { flex-basis:142px; min-width:142px; }
  .signal-chain li:not(:last-child)::after { right:-8px; width:8px; }
  .signal-chain a { min-height:132px; padding:7px; }
  .lcd-screen h2 { margin-bottom:20px; font-size:27px; }
  #lcd-values { gap:9px; }
  #lcd-values span { font-size:10px; }
  #lcd-values strong { font-size:20px; }
  .lcd-nav { gap:6px; }
  .lcd-nav button { padding:7px 9px; font-size:10px; }
  .block-grid { grid-template-columns:1fr; }
  .parameter-screen { padding:15px 13px; }
  .parameter-screen table,.parameter-screen tbody,.parameter-screen tr,.parameter-screen th,.parameter-screen td { display:block; width:100%; }
  .parameter-screen thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .parameter-screen tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding:11px 0; border-bottom:1px solid #3c4853; }
  .parameter-screen tbody th { grid-column:1; padding:0; }
  .parameter-screen tbody td { padding:0; border:0; }
  .parameter-screen tbody td:nth-child(2) { grid-column:2; grid-row:1; text-align:right; }
  .parameter-screen tbody td:nth-child(3) { grid-column:1 / -1; }
  .tone-tuning-note { grid-template-columns:1fr; gap:7px; padding:16px; }
  .tone-steps li { grid-template-columns:34px minmax(0,1fr); }
  .tone-source-list p { grid-template-columns:1fr; gap:5px; }
  .tone-export pre { padding:15px 13px; font-size:9px; }
}

@media (max-width:390px) {
  main .tone-index-hero h1 { font-size:35px; }
  main .tone-detail h1 { font-size:39px; }
  .tone-index-stats { gap:8px; }
  .tone-index-stats dt { font-size:7px; }
  .tone-index-stats dd { font-size:20px; }
  .tone-assumptions ul { grid-template-columns:1fr; }
  .tone-feature h3 a { align-items:flex-start; flex-direction:column; }
  .tone-values div { padding:16px 6px; }
  .tone-values dd { font-size:31px; }
  .tone-parameters { grid-template-columns:1fr; }
}

@media print {
  .tone-index-visual,.tone-tools,.tone-toc,.tone-editor,.tone-export-actions,.totop { display:none !important; }
  .tone-index-hero { min-height:0; color:#000; background:#fff; }
  .tone-index-hero h1,.tone-index-lede { color:#000; }
  .tone-card-list { grid-template-columns:1fr 1fr; }
  .tone-detail-layout { display:block; }
}

/* The artist library is a primary route, not a buried utility page. */
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; }
.hero-secondary { display:inline-flex; align-items:center; gap:20px; min-height:48px; color:#425048; font-size:12px; font-weight:600; text-decoration:none; }
.hero-secondary:hover { color:var(--accent); }
.home-tone { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr); min-height:430px; margin:62px 0 0; overflow:hidden; background:#e8e5db; border-block:1px solid var(--line); }
.home-tone-copy { display:flex; flex-direction:column; justify-content:center; padding:44px 50px 42px 0; }
.home-tone-copy .eyebrow { margin:0 0 16px; color:var(--accent); }
.home-tone-copy h2 { margin:0; font-size:clamp(29px,3.5vw,40px); line-height:1.55; letter-spacing:.02em; }
.home-tone-copy > p:not(.eyebrow) { max-width:590px; margin:18px 0 0; color:var(--muted); font-size:12px; line-height:1.95; }
.home-tone dl { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:28px 0 0; padding-top:17px; border-top:1px solid #d3d0c6; }
.home-tone dt { color:var(--muted); font-size:7px; letter-spacing:.12em; }
.home-tone dd { margin:3px 0 0; font:23px/1.1 Georgia,serif; }
.home-tone-cta { display:inline-flex; align-items:center; justify-content:space-between; gap:34px; align-self:flex-start; min-width:245px; min-height:46px; margin-top:28px; padding:0 15px; color:#fff !important; background:#30392d; font-size:11px; font-weight:600; text-decoration:none; }
.home-tone-cta:hover { background:#475340; }
.home-tone figure { position:relative; min-height:430px; margin:0; overflow:hidden; background:#18201b; }
.home-tone figure img { display:block; width:100%; height:100%; object-fit:cover; }
.home-tone figcaption { position:absolute; inset:auto 16px 15px; display:flex; justify-content:space-between; gap:15px; padding:10px 12px; color:#bdc6be; background:#111713df; font-size:8px; letter-spacing:.1em; }
.home-tone figcaption span:last-child { letter-spacing:.02em; }
@media (max-width:980px) {
  .home-tone { grid-template-columns:1fr; }
  .home-tone-copy { padding-right:0; }
  .home-tone figure { min-height:380px; }
}
@media (max-width:700px) {
  .hero-actions { align-items:flex-start; flex-direction:column; gap:7px; }
  .hero-secondary { min-height:40px; }
  .home-tone { margin-top:42px; }
  .home-tone-copy { padding:32px 24px; }
  .home-tone-copy h2 { font-size:28px; line-height:1.5; }
  .home-tone dl { grid-template-columns:repeat(2,1fr); row-gap:14px; }
  .home-tone figure { min-height:270px; }
  .home-tone figcaption span:last-child { display:none; }
}

/* Compact parameter matrix: one scan-friendly surface instead of five large
   cards. The table DOM stays intact for the interactive display and fallback. */
.tone-editor { padding:14px; }
.signal-chain { padding:12px 0 18px; }
.signal-chain a { min-height:104px; padding:6px; gap:4px; }
.signal-chain a small { -webkit-line-clamp:1; }
.lcd-screen { padding-top:14px; }
.lcd-screen h2 { margin-bottom:16px; font-size:30px; }
#lcd-values { min-height:70px; gap:14px; }
#lcd-values strong { margin:4px 0 6px; font-size:26px; }
.lcd-nav { margin:14px 0 12px; }
.tone-editor-note { margin-top:10px !important; }
#parameters { padding-bottom:42px; margin-bottom:42px; }
#parameters .tone-section-head { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:end; column-gap:16px; margin-bottom:13px; }
#parameters .tone-section-head .eyebrow { grid-column:1 / -1; margin-bottom:4px; }
#parameters .tone-section-head h2 { margin:0; font-size:26px; }
#parameters .tone-section-head > p:last-child { grid-column:2; margin:0; text-align:right; font-size:9px; }
.block-grid { grid-template-columns:1fr; gap:0; overflow:hidden; background:#111820; border:1px solid #435361; }
.parameter-screen { padding:0; background:#111820; border:0; border-top:3px solid var(--signal); border-radius:0; }
.parameter-screen:last-child { border-bottom:0; }
.parameter-screen header { display:grid; grid-template-columns:minmax(190px,.9fr) minmax(220px,1.1fr) auto; align-items:center; gap:14px; padding:9px 12px; border-bottom:1px solid #34414c; }
.parameter-heading { display:flex; align-items:baseline; gap:10px; min-width:0; }
.parameter-heading > span { flex:0 0 auto; color:var(--signal); font:8px/1 Consolas,monospace; letter-spacing:.06em; }
.parameter-screen h2 { min-width:0; margin:0; font-size:16px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.parameter-purpose { position:relative; min-width:0; margin:0; padding:0 0 0 10px; border:0; color:#c6d0d8; font-size:9px; line-height:1.45; }
.parameter-purpose::before { content:""; position:absolute; left:0; top:.3em; width:3px; height:.9em; background:var(--signal); }
.parameter-count { color:#7f8d98; font:7px/1.2 Consolas,monospace; letter-spacing:.04em; white-space:nowrap; }
.parameter-note { margin:0; padding:6px 12px; color:#95a2ad; background:#0d141a; border-bottom:1px solid #34414c; font-size:8px; line-height:1.5; }
.parameter-screen table { display:block; width:100%; table-layout:auto; }
.parameter-screen colgroup { display:none; }
.parameter-screen thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.parameter-screen tbody { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.parameter-screen tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; gap:2px 8px; min-width:0; min-height:50px; padding:7px 9px; border:0; border-right:1px solid #34414c; border-bottom:1px solid #34414c; }
.parameter-screen tbody th { grid-column:1; grid-row:1; padding:0; color:#aab5be; font-size:8px; font-weight:500; line-height:1.3; }
.parameter-screen tbody td { padding:0; border:0; }
.parameter-screen tbody td:nth-child(2) { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--signal); font:12px/1.2 Consolas,monospace; text-align:right; }
.parameter-screen tbody td:nth-child(3) { grid-column:1; grid-row:2; color:#95a2ad; font-size:7px; line-height:1.2; }
@media (max-width:1100px) {
  .parameter-screen header { grid-template-columns:minmax(180px,.9fr) minmax(180px,1.1fr) auto; }
  .parameter-screen tbody { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .tone-editor { padding:11px 8px; }
  .signal-chain { padding:10px 1px 16px; }
  .signal-chain a { min-height:106px; }
  .lcd-screen h2 { margin-bottom:14px; font-size:25px; }
  #lcd-values { min-height:64px; }
  #lcd-values strong { font-size:20px; }
  #parameters { padding-bottom:34px; margin-bottom:34px; }
  #parameters .tone-section-head { display:block; }
  #parameters .tone-section-head h2 { font-size:25px; }
  #parameters .tone-section-head > p:last-child { margin-top:5px; text-align:left; font-size:9px; }
  .parameter-screen header { grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; padding:9px 10px; }
  .parameter-heading { grid-column:1; }
  .parameter-purpose { grid-column:1 / -1; grid-row:2; padding-left:9px; }
  .parameter-count { grid-column:2; grid-row:1; align-self:center; }
  .parameter-screen h2 { font-size:15px; }
  .parameter-screen tbody { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .parameter-screen tbody tr { min-height:47px; padding:7px 8px; }
  .parameter-screen tbody td:nth-child(2) { font-size:11px; }
}

/* No-match state: a compact, deterministic tag builder instead of fabricated
   artist claims. */
.tone-empty-state { margin:0; padding:30px; text-align:left; background:#ece9e0; border:1px solid var(--line); scroll-margin-top:90px; }
#tone-empty.tone-empty-state { padding:30px; text-align:left; }
.tone-empty-state > header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.tone-empty-state .eyebrow { margin:0 0 7px; color:var(--accent); }
.tone-empty-state h3 { margin:0; font-size:24px; }
.tone-empty-state > header p:not(.eyebrow) { max-width:680px; margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.tone-empty-state > header button { min-height:40px; padding:0 13px; color:var(--ink); background:transparent; border:1px solid var(--line); font:inherit; font-size:10px; cursor:pointer; }
.tone-empty-state > header button:hover { background:#fff8; }
.tone-fallback-form { margin-top:24px; padding-top:20px; border-top:1px solid #d4d0c5; }
.tone-fallback-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.tone-fallback-fields label { display:grid; gap:6px; min-width:0; color:var(--muted); font-size:9px; font-weight:600; }
.tone-fallback-fields input,.tone-fallback-fields select { width:100%; min-width:0; min-height:44px; padding:9px 10px; color:var(--ink); background:#f9f8f3; border:1px solid #bbb6aa; border-radius:2px; font:inherit; font-size:11px; }
.tone-fallback-fields input:focus,.tone-fallback-fields select:focus { border-color:var(--accent); outline:2px solid #a4532f26; outline-offset:1px; }
.tone-fallback-submit { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:14px; }
.tone-fallback-submit > span { color:var(--muted); font-size:9px; }
.tone-fallback-submit > span b { margin-right:7px; color:var(--ink); }
.tone-fallback-submit button { display:inline-flex; align-items:center; gap:30px; min-height:44px; padding:0 15px; color:#fff; background:#303a32; border:1px solid #303a32; font:inherit; font-size:10px; font-weight:600; cursor:pointer; }
.tone-fallback-submit button:hover { background:#475446; }
.tone-fallback-result { margin-top:28px; padding-top:28px; border-top:1px solid #cbc6b9; }
.tone-estimate-result { min-width:0; }
.tone-estimate-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.tone-estimate-head .eyebrow { margin:0 0 6px; color:var(--accent); }
.tone-estimate-head h3 { margin:0; font-size:25px; }
.tone-estimate-head h3:focus { outline:2px solid var(--accent); outline-offset:3px; }
.tone-estimate-badge { flex:0 0 auto; padding:5px 8px; color:var(--accent); border:1px solid var(--accent); font:8px/1 Consolas,monospace; letter-spacing:.06em; }
.tone-estimate-description { max-width:780px; margin:11px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.tone-estimate-confidence { margin-top:20px; padding:14px 15px; background:#f7f5ef; border-left:3px solid var(--accent); }
.tone-estimate-confidence > div:first-child { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.tone-estimate-confidence span { color:var(--muted); font-size:9px; }
.tone-estimate-confidence b { font:22px/1 Georgia,serif; }
.tone-estimate-meter { height:4px; margin-top:9px; overflow:hidden; background:#d9d5ca; }
.tone-estimate-meter span { display:block; height:100%; background:var(--accent); }
.tone-estimate-confidence p { margin:8px 0 0; color:var(--muted); font-size:9px; line-height:1.6; }
.tone-estimate-confidence .tone-estimate-reference { color:var(--accent); font:9px/1.4 Consolas,monospace; }
.tone-estimate-tags { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; margin:14px 0 0; padding:0; background:var(--line); border:1px solid var(--line); }
.tone-estimate-tags div { min-width:0; padding:9px 10px; background:#f7f5ef; }
.tone-estimate-tags dt { color:var(--muted); font-size:7px; }
.tone-estimate-tags dd { margin:3px 0 0; font-size:9px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.tone-estimate-blocks { margin-top:16px; }
.tone-estimate-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:12px; }
.tone-estimate-actions button { min-height:40px; padding:0 12px; color:#fff; background:#303a32; border:1px solid #303a32; font:inherit; font-size:10px; cursor:pointer; }
.tone-estimate-actions span { color:var(--muted); font-size:9px; }
.tone-estimate-limits { margin-top:12px; border-top:1px solid #d4d0c5; }
.tone-estimate-limits summary { padding:10px 0; color:var(--muted); font-size:9px; cursor:pointer; }
.tone-estimate-limits ul { margin:0; padding:0 0 8px 18px; color:var(--muted); font-size:9px; line-height:1.7; }
.tone-estimate-error { margin:0; padding:14px; color:#8a3d25; background:#f3e3dc; font-size:11px; }
.block-mod { --signal:#73b6c7; }.block-delay { --signal:#9ea7d8; }
@media (max-width:700px) {
  .tone-empty-state { padding:22px 18px; }
  #tone-empty.tone-empty-state { padding:22px 18px; }
  .tone-empty-state > header { display:block; }
  .tone-empty-state h3 { font-size:21px; }
  .tone-empty-state > header button { margin-top:14px; }
  .tone-fallback-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tone-fallback-fields label:first-child { grid-column:1 / -1; }
  .tone-fallback-fields input,.tone-fallback-fields select { min-height:48px; font-size:16px; }
  .tone-fallback-submit { align-items:stretch; flex-direction:column; }
  .tone-fallback-submit button { justify-content:space-between; }
  .tone-estimate-head { display:block; }
  .tone-estimate-badge { display:inline-block; margin-top:10px; }
  .tone-estimate-head h3 { font-size:21px; }
  .tone-estimate-tags { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .tone-fallback-fields { grid-template-columns:1fr; }
  .tone-fallback-fields label:first-child { grid-column:auto; }
  .tone-estimate-tags { grid-template-columns:1fr 1fr; }
}

/* ======================================================================
   StemStudio theme (2026-11-16)
   This guide now lives at stemstudio.jp/fx, so it wears StemStudio's
   light design: the same paper background, white cards with a thin warm
   border, one green accent, Noto Sans JP throughout (no serif), and
   StemStudio's header wordmark and dark footer band. The device "screens"
   (parameter tables drawn as an LCD) keep their dark look on purpose.
   ====================================================================== */
:root {
  --bg:#f2f1f0; --panel:#ffffff; --ink:#1c1a17; --muted:#625c56;
  --line:#d7d5d1; --hair:#e7e5e1; --chip:#efede9; --tile:#ebe9e5;
  --accent:#00805e; --ss-dark:#1c1917; --ss-dark-ink:#efece7; --ss-dark-muted:#a8a29b;
  --shadow:none;
}
html, body { background:var(--bg); color:var(--ink); }
body, button, input, select, textarea {
  font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI",-apple-system,system-ui,"Segoe UI",Roboto,sans-serif;
}
.site-logo, .device-card .device-count, .manifesto-mark, .cover-facts b, .category-heading h2,
.tone-index-hero h1 em, .tone-index-stats dd, .home-tone dd, .tone-estimate-confidence b {
  font-family:inherit; font-style:normal; letter-spacing:-.01em;
}
.device-card .device-count { font-weight:600; }
.category-heading h2 { font-weight:600; }
.manifesto-mark { color:var(--accent); }

/* header: StemStudio's translucent bar and wordmark */
.topbar { background:rgba(242,241,240,.85); backdrop-filter:blur(12px); border-bottom:1px solid rgba(215,213,209,.4); box-shadow:none; }
.ss-wordmark { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:none;
  font-size:14px; font-weight:600; letter-spacing:.14em; white-space:nowrap; flex-shrink:0; }
.ss-wordmark .ss-accent { color:var(--accent); }
.ss-slash { color:var(--line); font-size:18px; margin:0 2px; }
.topbar .site-logo.ss-section { font-size:15px; font-weight:600; letter-spacing:0; }
.desktop-nav .ss-tools { color:var(--accent); }
.topbar .share { border-radius:999px; }

/* surfaces: white cards, thin border, StemStudio radii */
.device-card, .card, .panel, .tile, .home-tone, .cover, .tone-card, .preset-card, .gear-card {
  background:var(--panel); border-color:var(--line); border-radius:14px; box-shadow:none;
}
.btn, .btn-sub, .tab, .chip { border-radius:999px; }

/* actions: the green primary, not the old dark green */
.btn-go, .hero-cta, .home-tone-cta, .device-card .card-l a:first-child,
.tone-export-actions button, .tone-fallback-submit button, .tone-estimate-actions button {
  background:var(--accent); border-color:var(--accent); color:#fff; border-radius:999px;
}
.btn-go:hover, .hero-cta:hover, .home-tone-cta:hover, .device-card .card-l a:first-child:hover,
.tone-export-actions button:hover, .tone-fallback-submit button:hover, .tone-estimate-actions button:hover {
  background:#00694d; border-color:#00694d; filter:none;
}
.tab[aria-selected="true"] { background:var(--ink); color:#fff; border-color:var(--ink); }

/* footer: StemStudio's dark band on top, the guide's links below it */
.foot.ss-foot { border-top:0; padding-top:0; }
.ss-foot-band { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:0 0 22px; padding:18px 22px;
  background:var(--ss-dark); color:var(--ss-dark-ink); border-radius:14px; }
.ss-wordmark-light { color:var(--ss-dark-ink); min-height:0; }
.ss-wordmark-light .ss-accent { color:#3ecf9a; }
.ss-tagline { color:var(--ss-dark-muted); font-size:13px; }
.ss-foot-tools { margin-left:auto; color:var(--ss-dark-ink); font-size:13px; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:700px) {
  .ss-slash { display:none; }
  .ss-wordmark { letter-spacing:.1em; font-size:13px; }
  .ss-foot-tools { margin-left:0; }
}

/* ======================================================================
   Calm layer (2026-11-16, owner: 「煩雑・サバサバしている。React 的なナチュラルな
   デザインに」). StemStudio's React screens are quiet: generous space, soft
   white cards, sentence-case labels, one accent. So:
   - decorative mono/uppercase kicker labels are hidden (they repeated what
     the heading already said: "DEVICE LIBRARY / VOL. 06", "THE MODEL INDEX")
   - the remaining small labels are plain sans, no tracking
   - tables become a card list: light header, hairline rows, rounded frame
   ====================================================================== */
.eyebrow, .footer-statement > span, .chapter-art > span, .hero-gear figcaption,
.processor-hero figcaption > span:first-child, .art-heading, .tone-library-head > span,
.home-tone figcaption > span:first-child, .cover-illustration > span:last-child:not(:only-child) {
  display:none !important;
}
:is(.device-meta, .hero-note, .cover-facts, .art-caption, .pedal-item > span, .maker, .foot-h,
    .guide-steps span, .home-tone dt, .tone-index-stats dt, .tone-trust li em, .tone-feature-top,
    .tone-card-data, .tone-toc-source span, .tone-steps li > span, .tone-tuning-note > span,
    .tone-estimate-badge, .parameter-heading > span, .parameter-count, .dw-h, .cat-link) {
  font-family:inherit !important; letter-spacing:0 !important; text-transform:none !important;
}

/* type: StemStudio's scale, sans, medium weights */
body { font-size:15px; line-height:1.75; }
h1 { font-weight:600; letter-spacing:-.01em; }
h2, .category-heading h2 { font-size:clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight:600; letter-spacing:-.005em; }

/* space: let sections breathe */
.shell > section, .category-heading { margin-top:44px; }
.category-heading { margin-bottom:14px; align-items:baseline; }
.cover-facts { gap:10px 18px; border:0; padding:0; }
.cover-facts span, .cover-facts a { font-size:13px; color:var(--muted); }

/* chips and badges: soft pills instead of boxed tags */
.badge, .src {
  border:0 !important; border-radius:999px; background:var(--chip); color:var(--muted);
  padding:2px 9px; font-size:11px; font-weight:500; letter-spacing:0; text-transform:none;
}
.src.own { background:#e6f3ee; color:#00694d; }

/* category tabs: one quiet row of pills */
.tabbar { background:transparent; border:0; box-shadow:none; }
.tabs { gap:6px; }
.tab { border:1px solid var(--line); background:var(--panel); color:var(--ink); padding:6px 14px; font-size:13px; }
.tab .n { color:var(--muted); font-weight:400; margin-left:6px; }
.tab[aria-selected="true"] .n { color:rgba(255,255,255,.7); }

/* model tables: a card list */
.panel table { background:var(--panel); border:1px solid var(--line); border-radius:16px; overflow:hidden; border-collapse:separate; border-spacing:0; }
thead th { background:#faf9f7 !important; color:var(--muted); font-size:12px !important; font-weight:500; letter-spacing:0 !important;
  text-transform:none; padding:12px 16px !important; border-bottom:1px solid var(--hair); }
tbody td { padding:16px !important; border-top:1px solid var(--hair); vertical-align:top; }
tbody tr:first-child td { border-top:0; }
tbody tr:hover td { background:#fbfaf8; }
.ico { background:#f6f5f2; border-radius:12px; }
td.name, .c-name { font-weight:600; }
.feat { color:var(--muted); }

/* cards everywhere: one radius, no hard shadows */
.device-card, .home-tone, .tone-card, .guide-article, .journal-head, .device-cover .cover-illustration {
  border-radius:18px !important; box-shadow:none !important;
}
.device-card { border:1px solid var(--line); }
hr, .rule { border-color:var(--hair); }

/* ======================================================================
   StemStudio shared chrome (2026-11-16). Mirrors web/src/studio/shell/Shell.tsx:
   one header, menu and footer for the whole site. Same sizes as the React
   version: 56px bar, 90rem column, 14px links, 36px icon buttons, dark
   four-column footer. Labels and links come from MFG_CHROME (no copies).
   ====================================================================== */
.topbar.ssc-header { display:block; height:auto; padding:0 !important; gap:0; background:rgba(242,241,240,.85); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(215,213,209,.4); }
.ssc-row { display:flex; align-items:center; gap:8px; height:56px; max-width:1440px; margin:0 auto; padding:0 40px; }
@media (max-width:1023px) { .ssc-row { padding:0 32px; } }
@media (max-width:639px) { .ssc-row { padding:0 16px; } }
.ssc-brand { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:none; font-size:14px; font-weight:600; letter-spacing:.14em; white-space:nowrap; }
.ssc-brand .ss-accent { color:var(--accent); }
.ssc-sep { width:1px; height:20px; background:var(--line); margin:0 6px; }
.ssc-crumb { color:var(--muted); font-size:14px; text-decoration:none; white-space:nowrap; }
.ssc-crumb:hover { color:var(--ink); }
.ssc-nav { display:flex; align-items:center; gap:4px; margin-left:16px; }
.ssc-nav a { display:inline-flex; align-items:center; height:36px; padding:0 12px; border-radius:8px; color:rgba(28,26,23,.8); font-size:14px; font-weight:500; text-decoration:none; }
.ssc-nav a:hover { background:var(--chip); color:var(--ink); }
.ssc-icon { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:8px; color:var(--ink); background:none; border:0; cursor:pointer; flex-shrink:0; }
.ssc-icon:hover { background:var(--chip); }
.ssc-header .ssc-search { margin-left:auto; }
.ssc-header .ssc-row > * { order:0 !important; }
.ssc-header .offline { margin-left:auto; }
.ssc-header .burger { margin:0; position:static; }
@media (max-width:767px) { .ssc-nav, .ssc-sep { display:none; } .ssc-crumb { margin-left:8px; } }
@media (max-width:420px) { .ssc-crumb { display:none; } }

/* menu: StemStudio's common destinations under the guide's own items */
.ssc-dw { margin-top:18px; padding-top:14px; border-top:1px solid var(--hair); }
.ssc-dw-cats { display:grid; grid-template-columns:1fr 1fr; gap:2px 8px; padding:0 4px; }
.ssc-dw-cats a { padding:6px 8px; border-radius:8px; color:var(--ink); font-size:13px; text-decoration:none; }
.ssc-dw-cats a:hover { background:var(--chip); }

/* footer */
.ssc-notes { margin-top:40px; color:var(--muted); font-size:12px; line-height:1.7; }
.ssc-notes p { margin:2px 0; }
.ssc-footer { margin-top:28px; background:#1c1917; color:#efece7; }
.ssc-foot-in { max-width:1440px; margin:0 auto; padding:40px 40px 24px; }
@media (max-width:639px) { .ssc-foot-in { padding:40px 20px 24px; } }
.ssc-foot-grid { display:grid; gap:32px; grid-template-columns:1.3fr 1fr 1fr 1fr; }
@media (max-width:1023px) { .ssc-foot-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:639px) { .ssc-foot-grid { grid-template-columns:1fr; } }
.ssc-brand-light { color:#efece7; font-size:16px; }
.ssc-brand-light .ss-accent { color:#3ecf9a; }
.ssc-tag { margin:4px 0 0; color:#a8a29b; font-size:14px; }
.ssc-priv { display:block; max-width:20rem; margin-top:16px; color:#a8a29b; font-size:12px; line-height:1.6; text-decoration:none; }
.ssc-priv:hover { color:#efece7; }
.ssc-fh { margin:0; color:#a8a29b; font-size:12px; font-weight:600; }
.ssc-footer ul { list-style:none; margin:8px 0 0; padding:0; }
.ssc-footer li a { display:inline-flex; align-items:center; min-height:32px; color:rgba(239,236,231,.85); font-size:14px; text-decoration:none; }
.ssc-footer li a:hover { color:#efece7; text-decoration:underline; text-underline-offset:4px; }
.ssc-foot-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:32px; padding-top:16px; border-top:1px solid rgba(255,255,255,.1); color:#a8a29b; font-size:12px; }
.ssc-fxlinks { display:flex; flex-wrap:wrap; gap:4px 16px; }
.ssc-fxlinks a { color:#a8a29b; text-decoration:none; }
.ssc-fxlinks a:hover { color:#efece7; }

/* Same column as StemStudio (measured 2026-11-16: max 1920px, padding 16/32/40px at
   <640 / 640+ / 1024+). Header, content and footer all sit on it, like the React pages. */
.shell { max-width:1920px !important; padding-left:16px !important; padding-right:16px !important; }
.ssc-row, .ssc-foot-in { max-width:1920px !important; padding-left:16px !important; padding-right:16px !important; }
@media (min-width:640px) {
  .shell, .ssc-row, .ssc-foot-in { padding-left:32px !important; padding-right:32px !important; }
}
@media (min-width:1024px) {
  .shell, .ssc-row, .ssc-foot-in { padding-left:40px !important; padding-right:40px !important; }
}
.ssc-lang { display:none; align-items:center; height:36px; padding:0 10px; border-radius:8px; color:var(--muted); font-size:12px; font-weight:500; text-decoration:none; }
.ssc-lang:hover { background:var(--chip); color:var(--ink); }
@media (min-width:768px) { .ssc-lang { display:inline-flex; } }
