/* ==========================================================================
   Toolbox Hub Stylesheet - JamScore AI
   ========================================================================== */

:root {
  --bg:#000000;
  --card:#212121;
  --raised:#292929;
  --floating:#333333;
  --line:rgba(229,231,235,.14);
  --txt:#ffffff;
  --sub:#999999;
  --dim:#666666;
  --blue:#0075ff;
  --tb-card-bg: rgba(16, 23, 34, 0.72);
  --tb-card-bg-hover: rgba(22, 32, 48, 0.92);
  --tb-card-border: rgba(255, 255, 255, 0.08);
  --tb-card-border-hover: rgba(59, 130, 246, 0.5);
  --tb-text-main: #f8fafc;
  --tb-text-muted: #94a3b8;
  --tb-text-dim: #64748b;
  --tb-blue: #3b82f6;
  --tb-cyan: #06b6d4;
  --tb-orange: #f97316;
  --tb-purple: #8b5cf6;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.5 Inter, "IBM Plex Sans", Geist, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ EXACT MAIN SITE TOPBAR ============ */
/* Header styling is owned by ../style.css and injected by i18n/site-header.js. */
/*
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 clamp(1.2rem, 3.5vw, 2.5rem);
  background: linear-gradient(180deg, #070a0f, #04070b);
  border-bottom: 1px solid #1c2633;
  box-shadow: 0 8px 28px #0005;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
  color: #fff;
}

.brand-wave {
  width: 30px;
  height: 34px;
  flex: none;
  object-fit: contain;
  display: block;
}

.topbar nav {
  position: absolute;
  left: 50%;
  translate: -50%;
  margin: 0;
  gap: 42px;
  height: 100%;
  align-items: stretch;
  display: flex;
}

.topbar nav a {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 5px;
  font-size: 15px;
  color: #9299a5;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}

.topbar nav a:hover {
  color: #fff;
}

.topbar nav a.active {
  color: #f6f8fb;
  font-weight: 600;
}

.topbar nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: #1677ff;
  box-shadow: 0 0 10px #1677ff88;
}

.account {
  position: relative;
  margin-left: auto;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px 0 7px;
  border: 1px solid #2e3947;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1e2634 0%, #111721 100%);
  color: #edf3f8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.28);
  transition: all .15s ease;
}

.account-btn:hover,
.account-btn[aria-expanded="true"] {
  border-color: #485f7a;
  background: linear-gradient(180deg, #263344 0%, #161f2c 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.35);
}

.account-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.account-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #3d4f65;
  border-radius: 50%;
  background: linear-gradient(180deg, #28374a 0%, #1a2533 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #bfd4e8;
}

.account-avatar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.account-caret {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--sub);
}

.account-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  width: 300px;
  gap: 2px;
  padding: 16px;
  border: 1px solid #4b4f55;
  border-radius: 16px;
  background: #303030;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .58);
}

.account-pop[hidden],
.membership-signed-in[hidden],
.membership-signed-out[hidden] {
  display: none;
}

.account-pop-head {
  display: grid;
  gap: 4px;
  margin: -2px 0 11px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.account-pop-head strong {
  color: #f5f6f7;
  font-size: 16px;
  line-height: 1.2;
}

.account-pop-head span {
  color: #a9adb2;
  font-size: 12px;
  line-height: 1.25;
}

.account-pop-action,
.account-pop a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 39px;
  padding: 8px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c7c9cc;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.account-pop-action:hover,
.account-pop a:hover {
  background: #3b3b3b;
  color: #fff;
}

.account-pop-action-icon-svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.account-meter {
  height: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a3a3a;
}

.account-meter > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
*/

.site-footer {
  margin: 96px clamp(1rem, 4vw, 2.5rem) 0;
  padding: 54px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--sub);
}

.site-footer-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 2.5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.site-footer-brand {
  max-width: 250px;
  padding-top: 27px;
}

.site-footer-kicker,
.site-footer-group h3,
.site-footer-tools > h3 {
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer-brand h2 {
  margin: 12px 0 10px;
  color: var(--txt);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.site-footer-brand p:last-child {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-group {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer-group h3,
.site-footer-tools-head h3,
.site-footer-tools .site-footer-group h4 {
  margin: 0;
}

.site-footer-tools {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.site-footer-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.site-footer-tools-groups {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(150px, .9fr) minmax(340px, 2fr) minmax(160px, 1fr);
  gap: clamp(22px, 2.4vw, 38px);
}

.site-footer-tools .site-footer-group h4 {
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
}

.site-footer-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(155px, 1fr));
  gap: 11px 30px;
}

.site-footer-group a,
.site-footer-action,
.site-footer-note {
  color: var(--sub);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.site-footer-group a:hover,
.site-footer-action:hover {
  color: var(--txt);
}

.site-footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.site-footer-utility {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer-meta span:last-child {
  margin-left: auto;
}

/* ---------- Main Container ---------- */
.toolbox-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px clamp(1.5rem, 4vw, 3rem) 90px;
}

/* ---------- Breadcrumbs ---------- */
.toolbox-crumbs {
  margin: 0 0 18px;
  color: var(--tb-text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbox-crumbs a {
  color: var(--tb-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.toolbox-crumbs a:hover {
  color: #fff;
}

.toolbox-hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 2143 / 530;
  background: transparent url('../assets/tools/toolbox-banner-top.webp?v=1') center / 100% 100% no-repeat;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.toolbox-hero-content {
  position: relative;
  z-index: 2;
  max-width: 54%;
  padding-left: 4.5%;
  padding-bottom: 4.8%;
}

.toolbox-hero-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0b1320;
  line-height: 1.1;
}

.toolbox-hero-sub {
  margin: 0;
  font-size: clamp(11.5px, 1.15vw, 14.5px);
  line-height: 1.4;
  color: #334155;
  font-weight: 500;
}

/* ---------- Search & Filter Row ---------- */
.toolbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.toolbox-search-wrapper {
  position: relative;
  flex: 1 1 340px;
  max-width: 440px;
}

.toolbox-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #8da2bb;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
  transition: color 0.18s ease;
}

.toolbox-search-input {
  width: 100%;
  height: 42px;
  padding: 0 18px 0 46px;
  border-radius: 9999px;
  border: 1px solid #243244;
  background: linear-gradient(180deg, #16202c 0%, #0d131d 100%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.18s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.toolbox-search-input::placeholder {
  color: #728499;
}

.toolbox-search-input:hover {
  border-color: #2f425a;
  background: linear-gradient(180deg, #1b2635 0%, #0f1722 100%);
}

.toolbox-search-input:hover + .toolbox-search-icon,
.toolbox-search-wrapper:hover .toolbox-search-icon {
  color: #b0c4de;
}

.toolbox-search-input:focus {
  border-color: #0075ff;
  background: linear-gradient(180deg, #182230 0%, #0e1520 100%);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(0, 117, 255, 0.25),
    0 0 14px rgba(0, 117, 255, 0.18);
}

.toolbox-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbox-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 1px solid #182230;
  background: linear-gradient(180deg, #1c2432 0%, #111822 100%);
  color: #8c99a8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  outline: none;
  user-select: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.toolbox-pill:hover {
  border-color: #223145;
  background: linear-gradient(180deg, #242f40 0%, #151e2b 100%);
  color: #f1f5f9;
}

.toolbox-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #3b82f6;
}

.toolbox-pill.on,
.toolbox-pill[aria-selected="true"],
.toolbox-pill[data-selected] {
  border-color: #0044a6;
  background: linear-gradient(180deg, #1f84ff 0%, #0056cb 100%);
  color: #ffffff;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 3px 10px rgba(0, 117, 255, 0.4);
}

.toolbox-pill.on:hover,
.toolbox-pill[aria-selected="true"]:hover,
.toolbox-pill[data-selected]:hover {
  background: linear-gradient(180deg, #2a8bff 0%, #075ecc 100%);
  border-color: #0049b0;
  color: #ffffff;
}

/* ---------- Category Sections ---------- */
.toolbox-section {
  margin-bottom: 44px;
  transition: opacity 0.2s ease;
}

.toolbox-section[hidden] {
  display: none;
}

.toolbox-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbox-section-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.toolbox-section-icon svg {
  width: 20px;
  height: 20px;
}

.toolbox-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

/* ---------- Grids ---------- */
.toolbox-grid {
  display: grid;
  gap: 16px;
}

.toolbox-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.toolbox-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Tool Card with Subtle 3D Tactile Styling ---------- */
.toolbox-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  min-height: 106px;
  border-radius: 16px;
  border: 1px solid #1a2534;
  background: linear-gradient(180deg, #131b26 0%, #0c121a 100%);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.toolbox-card[hidden] {
  display: none;
}

.toolbox-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #172230 0%, #0f1622 100%);
  border-color: #24354b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.toolbox-card:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.toolbox-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.toolbox-card:hover .toolbox-card-icon {
  transform: scale(1.06);
}

/* Category icon tints */
.toolbox-card[data-cat="separate"] .toolbox-card-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.toolbox-card[data-cat="transcribe"] .toolbox-card-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
}

.toolbox-card[data-cat="notation"] .toolbox-card-icon {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.2);
}

.toolbox-card[data-cat="studio"] .toolbox-card-icon {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.toolbox-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.toolbox-card-body {
  flex: 1;
  min-width: 0;
}

.toolbox-card-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}

.toolbox-card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tb-text-muted);
}

/* ---------- Studio Card ---------- */
.toolbox-card-studio {
  max-width: 520px;
}

/* ---------- Bottom CTA Banner (Original Untouched PNG Background) ---------- */
.toolbox-bottom-cta {
  position: relative;
  width: 100%;
  aspect-ratio: 1132 / 120;
  min-height: 110px;
  border-radius: 20px;
  background: transparent url('../assets/tools/toolbox-waveform.webp?v=1') center / 100% 100% no-repeat;
  margin-top: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.toolbox-bottom-cta-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  gap: 24px;
}

.toolbox-bottom-cta-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #0b1320;
  letter-spacing: -0.015em;
}

.toolbox-bottom-cta-sub {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.toolbox-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #0075ff;
  color: #fff !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.toolbox-cta-btn:hover {
  background: #1f84ff;
  transform: translateY(-1px);
}

/* ---------- No Search Results State ---------- */
.toolbox-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-card-border);
  border-radius: 20px;
  margin: 20px 0;
}

.toolbox-empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.toolbox-empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--tb-text-muted);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1040px) {
  .toolbox-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbox-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbox-hero-content {
    max-width: 58%;
    padding: 0 0 28px 32px;
  }
  .toolbox-bottom-cta-content {
    padding: 24px 28px;
  }
}

@media (max-width: 768px) {
  .toolbox-hero-card {
    aspect-ratio: auto;
    min-height: 220px;
    padding: 24px 20px;
    align-items: center;
  }
  .toolbox-hero-content {
    max-width: 100%;
    padding: 0;
  }
  .toolbox-bottom-cta-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .toolbox-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Final touch-width pass: keep the toolbox readable without horizontal page
   overflow; category pills remain the intentional horizontal scroll surface. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
button, a, input { touch-action: manipulation; }

@media (min-width: 641px) and (max-width: 1024px) {
  .toolbox-wrap { padding-inline: clamp(20px, 4vw, 36px); }
  .toolbox-hero-content { max-width: 62%; padding-left: 5%; }
  .toolbox-controls { align-items: stretch; flex-direction: column; }
  .toolbox-search-wrapper { width: min(100%, 560px); max-width: none; }
  .toolbox-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .toolbox-pill { flex: 0 0 auto; }
  .toolbox-grid-4, .toolbox-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbox-card { min-height: 112px; padding: 18px; }
  .toolbox-bottom-cta-content { padding-inline: 26px; }
}

@media (max-width: 640px) {
  .toolbox-wrap { padding: 22px 14px 58px; }
  .toolbox-crumbs { margin-bottom: 14px; font-size: 12px; }
  .toolbox-hero-card { min-height: 190px; margin-bottom: 22px; border-radius: 16px; background-size: cover; background-position: center; }
  .toolbox-hero-title { font-size: 32px; }
  .toolbox-hero-sub { max-width: 30ch; font-size: 12px; }
  .toolbox-controls { align-items: stretch; flex-direction: column; gap: 11px; margin-bottom: 28px; }
  .toolbox-search-wrapper { max-width: none; flex-basis: auto; }
  .toolbox-search-input { height: 46px; }
  .toolbox-pills { width: 100%; overflow: visible; flex-wrap: wrap; gap: 7px; padding: 2px 1px 5px; }
  .toolbox-pill { flex: 0 0 auto; height: 36px; padding-inline: 13px; font-size: 12px; }
  .toolbox-section { margin-bottom: 32px; }
  .toolbox-section-head { margin-bottom: 13px; }
  .toolbox-section-title { font-size: 18px; }
  .toolbox-grid-4, .toolbox-grid-3, .toolbox-grid { grid-template-columns: 1fr; gap: 10px; }
  .toolbox-card { min-height: 92px; gap: 13px; padding: 15px; border-radius: 13px; }
  .toolbox-card-icon { width: 46px; height: 46px; min-width: 46px; padding: 7px; border-radius: 12px; }
  .toolbox-card-title { margin-bottom: 4px; font-size: 14px; }
  .toolbox-card-desc { font-size: 12px; line-height: 1.4; }
  .toolbox-bottom-cta { min-height: 205px; margin-top: 32px; border-radius: 16px; }
  .toolbox-bottom-cta-content { padding: 22px 19px; gap: 16px; }
  .toolbox-bottom-cta-title { font-size: 16px; }
  .toolbox-bottom-cta-sub { font-size: 12px; }
}

/* Footer parity: Toolbox uses the same footer layout and breakpoints as Home. */
.site-footer-group h3 { margin-bottom: 4px; }
.site-footer-tools .site-footer-group h4 { margin: 0 0 3px; letter-spacing: 0; text-transform: none; }
.site-footer-group--notation { min-width: 0; }
.site-footer-group--notation a { white-space: normal; text-wrap: balance; }
.site-footer-note { color: var(--dim); }
.site-footer a:focus-visible,
.site-footer-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.site-footer-utility a,
.site-footer-utility .site-footer-action { color: var(--sub); font-size: 11px; }
.site-footer-meta #app-version { font-variant-numeric: tabular-nums; }

@media (max-width: 1400px) {
  .site-footer-tools-groups { grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 34px 40px; }
  .site-footer-group--notation { grid-column: 1 / -1; }
  .site-footer-link-columns { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
}

@media (max-width: 900px) {
  .site-footer { margin-top: 72px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer-brand { max-width: 520px; padding-top: 0; }
  .site-footer-tools-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 36px; }
  .site-footer-group--notation { grid-column: 1 / -1; }
  .site-footer-link-columns { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .site-footer { margin-inline: calc(clamp(1rem, 4vw, 2.5rem) + clamp(20px, 4vw, 32px)); }
}

@media (max-width: 560px) {
  .site-footer { margin: 56px calc(clamp(1rem, 4vw, 2.5rem) + 14px) 0; padding-top: 34px; }
  .site-footer-grid { gap: 32px; }
  .site-footer-tools-head { align-items: flex-end; }
  .site-footer-tools-groups { grid-template-columns: 1fr; gap: 26px; }
  .site-footer-link-columns { grid-template-columns: 1fr; }
  .site-footer-group--notation { grid-column: auto; }
  .site-footer-meta { display: grid; gap: 8px; margin-top: 34px; }
  .site-footer-utility { flex-wrap: wrap; margin: 4px 0; }
  .site-footer-meta span:last-child { margin-left: 0; }
}
