:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #f4f4f5;
  --ink: #18181b;
  --text: #18181b;
  --text-muted: #52525b;
  --dot: rgba(24, 24, 27, 0.07);

  --mint: #4dffbe;
  --yellow: #ffee58;
  --cyan: #5ce1e6;
  --pink: #ff6b9d;
  --tint-a: #fefce8;
  --tint-b: #ecfdf5;

  --shadow-sm: 2px 2px 0px var(--ink);
  --shadow-md: 4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --radius: 14px;
  --radius-sm: 9px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.nb-bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.25px, transparent 1.25px);
  background-size: 20px 20px;
}

.container {
  width: min(1220px, calc(100% - 2.5rem));
  margin-inline: auto;
}

a { color: #0284c7; font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-soft);
  border: 1.5px solid var(--ink);
  padding: 0.08em 0.36em;
  border-radius: 5px;
}
.muted { color: var(--text-muted); }
.mono-tag { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--text-muted); }

/* Topbar (opaque for crisp 60fps scroll) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  background: var(--mint);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.brand-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.nav-links { display: flex; gap: 1.35rem; }
.nav-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.topbar-actions { display: flex; align-items: center; gap: 0.45rem; }

/* Live Neon Ticker */
.ticker-wrap {
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.36rem 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  will-change: transform;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.5rem 0.92rem;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translate(-1.5px, -1.5px); box-shadow: var(--shadow-md); }
.btn:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 0.36rem 0.72rem; font-size: 0.8rem; }
.btn-lg { padding: 0.62rem 1.15rem; font-size: 0.92rem; }
.btn-mint, .btn-primary { background: var(--mint); }
.btn-yellow { background: var(--yellow); }
.btn-cyan { background: var(--cyan); }
.btn-pink { background: var(--pink); }
.btn-white, .btn-outline, .btn-ghost { background: var(--surface); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.04rem 0.32rem;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--surface-soft);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: #fff;
}
.brand-dot.active { background: #10b981; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.72rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}
.pill-mint { background: var(--mint); }
.pill-yellow { background: var(--yellow); }
.pill-cyan { background: var(--cyan); }
.pill-pink { background: var(--pink); }

/* Unique, Animated & Direct Hero */
.hero { padding: 1.5rem 0 1.4rem; }
.hero-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, #fefce8 100%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 18px;
  padding: 2.2rem 1.8rem 1.4rem;
}
.hero-center-wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.05rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.95rem;
}
.hl-cycle, .hl-mint {
  padding: 0.02em 0.26em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 9px;
  display: inline-block;
}
.hl-cycle {
  background: var(--yellow);
  transform: rotate(-1deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.hl-cycle.swap { transform: rotate(1deg) scale(0.96); opacity: 0.35; }
.hl-mint { background: var(--mint); transform: rotate(1deg); }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 auto 1.45rem;
  max-width: 600px;
}
.hero-center-wrap .command-box { text-align: left; }

/* Floating Animated Neon Tool Stickers */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floater {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.68rem;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}
.f1 { top: 22px; left: 24px; background: var(--mint); animation: floatBob 4s ease-in-out infinite; }
.f2 { top: 26px; right: 26px; background: var(--cyan); animation: floatBob 4.5s ease-in-out 0.6s infinite; }
.f3 { bottom: 185px; left: 28px; background: var(--pink); animation: floatBob 4.2s ease-in-out 1.1s infinite; }
.f4 { bottom: 190px; right: 28px; background: var(--yellow); animation: floatBob 3.8s ease-in-out 0.3s infinite; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.hero-footer-bar {
  position: relative;
  z-index: 2;
  padding-top: 1.1rem;
  border-top: 1.5px dashed #cbd5e1;
}

/* Search & File Drop */
.command-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.command-box.drag-over { background: var(--mint); }
.command-input-wrap { display: flex; align-items: center; gap: 0.65rem; }
.search-icon { font-size: 1.2rem; color: var(--text-muted); }
#toolSearchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 0;
}
#toolSearchInput::placeholder { color: var(--text-muted); }
.file-drop-btn {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: 7px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.65rem;
  margin-top: 0.55rem;
  border-top: 1.5px dashed #cbd5e1;
}
.chip-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }
.chip {
  background: var(--surface-soft);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { background: var(--mint); }

/* Stage Kits */
.bundles-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.bundles-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.bundle-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bundle-pill {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  color: var(--text);
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.bundle-pill.active { background: var(--mint); font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }

/* 7 Category Quick-Jump Tiles */
.quick-jump-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.qjump-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.4rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.1s ease, background 0.1s ease;
}
.qjump-tile:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); background: var(--yellow); }
.qjump-tile span { font-size: 1.35rem; line-height: 1; }
.qjump-tile small { font-size: 0.74rem; font-weight: 600; }

/* Sponsors & Drawers Section */
.sponsors-section { padding: 1.4rem 0 2rem; }
.sponsors-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sponsors-head h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0.45rem 0 0; }
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.sponsor-drawer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.sponsor-drawer:hover { text-decoration: none; transform: translate(-1.5px, -1.5px); box-shadow: var(--shadow-md); }
.sd-filled-mint { background: var(--tint-b); }
.sd-filled-yellow { background: var(--tint-a); }
.sd-cta { background: #f0f9ff; }
.sd-open { border-style: dashed; }
.sd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem; }
.sd-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
}
.sd-tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--text-muted); }
.drawer-handle { width: 26px; height: 4px; border-radius: 999px; background: var(--ink); margin-bottom: 0.2rem; }
.sponsor-drawer strong { font-size: 0.88rem; font-weight: 700; }
.sponsor-drawer small { font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }

/* Dedicated Support Banner */
.support-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.6rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
}
.support-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  transform: rotate(-2deg);
}
.coffee-svg { width: 54px; height: 54px; display: block; }
.steam { animation: steamRise 2.2s ease-in-out infinite; }
.s2 { animation-delay: 0.35s; }
.s3 { animation-delay: 0.7s; }
@keyframes steamRise {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-3px); opacity: 0.35; }
}
.emblem-tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; }
.x-emblem-mark {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 10px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.follow-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.support-content { min-width: 0; }
.support-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.45rem; }
.support-stats { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--ink); }
.support-title { font-family: var(--font-display); font-size: 1.38rem; font-weight: 700; margin: 0 0 0.3rem; line-height: 1.2; }
.support-desc { margin: 0; font-size: 0.88rem; color: #27272a; max-width: 560px; }

.support-cta-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.support-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.support-micro { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: #27272a; }

/* Workbench App Shell */
.workbench-section { padding: 0.6rem 0 3rem; }
.workbench-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 78px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 0.85rem;
  min-width: 0;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.2rem 0.45rem 0.55rem;
}
.segment-tabs { display: flex; flex-direction: column; gap: 0.3rem; }
.seg-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-muted);
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.seg-tab:hover { background: var(--surface-soft); color: var(--text); }
.seg-tab.active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 600;
}

.workbench-bar { margin-bottom: 1rem; }
.workbench-bar h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin: 0 0 0.15rem; }
.workbench-bar p { margin: 0; font-size: 0.86rem; }

/* 16 Category Shelf Boxes */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}
.shelf-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 1.1rem;
  gap: 0.75rem;
}
.shelf-box:nth-child(4n+1) .shelf-icon { background: var(--mint); }
.shelf-box:nth-child(4n+2) .shelf-icon { background: var(--yellow); }
.shelf-box:nth-child(4n+3) .shelf-icon { background: var(--cyan); }
.shelf-box:nth-child(4n+4) .shelf-icon { background: var(--pink); }

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--surface-soft);
}
.shelf-title-row { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.shelf-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 1.5px solid var(--ink);
}
.shelf-head h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0; }
.shelf-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--tint-b);
  border: 1.5px solid var(--ink);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.shelf-list { display: flex; flex-direction: column; gap: 0.35rem; }
.shelf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  background: var(--surface-soft);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.shelf-item:hover { background: var(--tint-a); border-color: var(--ink); }
.shelf-open { font-family: var(--font-mono); font-size: 0.7rem; color: #059669; font-weight: 600; }
.shelf-dig-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.shelf-dig-btn:hover { background: var(--yellow); }

/* Filtered Tool Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-align: left;
  color: var(--text);
}
.tool-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.tool-card:nth-child(4n+1) .tool-icon { background: var(--mint); }
.tool-card:nth-child(4n+2) .tool-icon { background: var(--yellow); }
.tool-card:nth-child(4n+3) .tool-icon { background: var(--cyan); }
.tool-card:nth-child(4n+4) .tool-icon { background: var(--pink); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.tool-seg-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1.5px solid var(--ink);
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
}
.tool-card h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin: 0 0 0.3rem; line-height: 1.3; }
.tool-card p { margin: 0; font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  padding-top: 0.6rem;
  border-top: 1.5px dashed #cbd5e1;
}
.live-badge { color: #059669; }
.open-arrow { color: var(--ink); }

/* Roadmap */
.roadmap-section { padding: 1.2rem 0 2.6rem; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-header h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin: 0 0 0.2rem; }
.section-header p { margin: 0; font-size: 0.88rem; }

.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.roadmap-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}
.roadmap-card h4 { font-weight: 600; margin: 0 0 0.2rem; font-size: 0.92rem; }
.roadmap-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 0.32rem 0.45rem;
  border-radius: 8px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}
.vote-btn.voted { background: var(--mint); }

/* Workbench Rules */
.rules-section { padding: 0.5rem 0 2.5rem; }
.rules-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.rules-head { margin-bottom: 1.25rem; }
.rules-head h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0.55rem 0 0; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.rule-card {
  padding: 1.15rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.rc-1 { background: var(--tint-b); }
.rc-2 { background: var(--tint-a); }
.rc-3 { background: #f0f9ff; }
.rule-num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; background: var(--ink); color: #fff; padding: 0.12rem 0.45rem; border-radius: 4px; }
.rule-card h3 { font-size: 1rem; margin: 0.6rem 0 0.25rem; }
.rule-card p { margin: 0; font-size: 0.84rem; color: var(--text-muted); }

/* Privacy & Request Hook */
.privacy-section { padding: 0.5rem 0 3.5rem; }
.privacy-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.privacy-head h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0.6rem 0 0.35rem; }
.request-hook-card {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--tint-a);
  border: 2px dashed var(--ink);
  border-radius: 12px;
}
.request-hook-card p { margin: 0.2rem 0 0; font-size: 0.85rem; }

/* Footer */
.footer {
  border-top: 2px solid var(--ink);
  padding: 2.2rem 0 1.6rem;
  background: var(--surface);
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.5rem; }
.footer-note { max-width: 320px; font-size: 0.86rem; margin-top: 0.65rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.footer-cols a { display: block; color: var(--text); font-size: 0.86rem; margin-bottom: 0.35rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--surface-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modals & Drawers */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 24, 27, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop[hidden], .drawer-backdrop[hidden] { display: none; }
.modal {
  width: min(1000px, 100%);
  max-height: 92dvh;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.small-modal { width: min(460px, 100%); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--tint-a);
  border-bottom: 2px solid var(--ink);
}
.modal-segment-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
}
.modal-title-group h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0.3rem 0 0.15rem; }
.modal-title-group p { margin: 0; font-size: 0.86rem; }
.modal-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.modal-body { padding: 1.35rem; overflow-y: auto; }

.drawer-backdrop { justify-content: flex-end; padding: 0; }
.drawer {
  width: min(410px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--tint-b);
  border-bottom: 2px solid var(--ink);
}
.drawer-header h2 { font-family: var(--font-display); margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 700; }
.drawer-header p { margin: 0; font-size: 0.8rem; }
.drawer-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; overflow-y: auto; flex: 1; }
.drawer-footer { display: flex; gap: 0.6rem; margin-top: 0.4rem; }

/* Tool Workspace */
.tool-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.25rem; align-items: start; }
.tool-panel {
  background: var(--surface-soft);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tool-panel h3 { margin: 0; font-size: 0.94rem; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.7rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.48rem 0.7rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}
.field input[type="color"] { height: 40px; padding: 0.2rem; cursor: pointer; }
.field textarea { font-family: var(--font-mono); font-size: 0.8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 2px 2px 0 var(--mint); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.7rem; }
.stat-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 10px;
  padding: 0.8rem;
}
.stat-label { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.stat-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.stat-val.good { color: #059669; }
.stat-val.warn { color: #d97706; }
.stat-val.bad { color: #e11d48; }

.code-output {
  background: #18181b;
  color: #4dffbe;
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.backup-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.import-label { cursor: pointer; }
.invoice-sheet { background: #ffffff; color: var(--ink); border-radius: 9px; padding: 1.35rem; font-size: 0.84rem; border: 2px solid var(--ink); }
.invoice-sheet table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.invoice-sheet th, .invoice-sheet td { padding: 0.45rem; border-bottom: 1.5px solid #e4e4e7; text-align: left; }
.invoice-sheet th:last-child, .invoice-sheet td:last-child { text-align: right; }
.og-preview-img { width: 100%; border-radius: 9px; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); display: block; }

.toast-container { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 120; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--mint); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; padding: 0.6rem 0.95rem; border-radius: 8px; font-size: 0.84rem; }

/* 100% Mobile Friendly */
@media (max-width: 960px) {
  .hero-floaters { display: none; }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
  .support-banner { grid-template-columns: 1fr; text-align: left; }
  .support-emblem { width: fit-content; transform: none; }
  .support-cta-col { align-items: flex-start; }
  .workbench-shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .workbench-shell > * { min-width: 0; max-width: 100%; }
  .sidebar { position: static; padding: 0.65rem; min-width: 0; max-width: 100%; overflow: hidden; }
  .sidebar-title { display: none; }
  .segment-tabs {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .segment-tabs::-webkit-scrollbar { display: none; }
  .seg-tab { width: auto; flex: 0 0 auto; white-space: nowrap; border: 1.5px solid var(--ink); background: var(--surface); }
  .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 1.5rem); }
  .nav-links, .hide-mobile, .brand-tag, .topbar kbd, #openSearchBtn { display: none; }
  .topbar-inner { height: 58px; gap: 0.4rem; }
  .brand-name { font-size: 0.9rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.85rem; }
  .topbar-actions { gap: 0.3rem; }
  .btn-sm { padding: 0.32rem 0.5rem; font-size: 0.74rem; }

  .hero { padding: 1rem 0; }
  .hero-poster { padding: 1.05rem; }
  .lw-inputs { grid-template-columns: 1fr; }
  .lw-inputs input { font-size: 16px; }
  .command-input-wrap { flex-wrap: wrap; gap: 0.5rem; }
  #toolSearchInput { font-size: 16px; min-width: 180px; }
  .file-drop-btn { width: 100%; text-align: center; }

  .quick-jump-row { grid-template-columns: repeat(4, 1fr); }
  .sponsors-grid, .tools-grid, .shelf-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .rules-box, .privacy-box { padding: 1.25rem; }

  .modal-backdrop { padding: 0.4rem; align-items: flex-end; }
  .modal { max-height: 94dvh; border-radius: 16px 16px 8px 8px; }
  .modal-header { flex-direction: column; padding: 1rem; }
  .modal-actions { width: 100%; justify-content: flex-end; }
  .modal-body { padding: 1rem; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

@media print {
  body * { visibility: hidden; }
  #printableInvoice, #printableInvoice * { visibility: visible; }
  #printableInvoice { position: fixed; inset: 0; padding: 1.5cm; background: #fff; color: #000; }
}
