body.toolbox-mode {
  color-scheme: dark;
  background:
    radial-gradient(circle at 78% 34%, rgba(196,119,18,.13), transparent 31rem),
    linear-gradient(135deg, #071118, #070b0d 48%, #17140c);
}

body.toolbox-mode .breadcrumbs,
body.toolbox-mode .heading,
body.toolbox-mode .category-nav,
body.toolbox-mode .toolbar,
body.toolbox-mode #tutorialList,
body.toolbox-mode #emptyState,
body.toolbox-mode #categoryNote { display: none !important; }

.toolbox-view {
  width: min(1440px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 24px 0 42px;
}

.toolbox-eyebrow { margin: 0 0 12px; color: #ffd258; font-size: 13px; font-weight: 800; letter-spacing: .25em; }
.toolbox-view h2 { margin: 0; color: #eef3f5; font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.07em; }
.toolbox-intro { max-width: 760px; margin: 18px 0 22px; color: #c4d0d5; line-height: 1.8; }
.toolbox-toolbar { display: flex; align-items: end; gap: 12px; margin: 18px 0 14px; }
.toolbox-search-wrap { flex: 1; }
.toolbox-search-wrap span { display: block; margin-bottom: 7px; color: #b8c7cc; font-size: 13px; }
.toolbox-search-wrap input { width: 100%; border: 1px solid rgba(195,211,217,.35); border-radius: 11px; outline: none; padding: 13px 16px; color: #eef3f5; background: rgba(8,15,20,.7); font-size: 14px; }
.toolbox-search-wrap input:focus { border-color: #f4ad18; box-shadow: 0 0 0 3px rgba(255,188,26,.12); }
.toolbox-search-wrap input::placeholder { color: #829097; }
.toolbox-reset { min-height: 47px; border: 1px solid rgba(213,224,226,.32); border-radius: 11px; padding: 0 18px; color: #eef3f5; background: rgba(13,25,32,.85); cursor: pointer; font-size: 14px; }
.toolbox-reset:hover, .toolbox-reset:focus-visible { border-color: #f4ad18; color: #ffd258; outline: none; }
.toolbox-status { min-height: 24px; margin: 7px 0 10px; color: #ffd258; font-size: 13px; }

.toolbox-stage { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1672 / 941; border: 1px solid rgba(213,230,232,.3); border-radius: 22px; background: #071016; box-shadow: 0 28px 80px rgba(0,0,0,.3), 0 0 42px rgba(240,156,10,.08); }
.toolbox-reference-image { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.toolbox-stage-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 54% 64%, rgba(255,182,17,.19), transparent 23%), radial-gradient(circle at 79% 46%, rgba(255,193,44,.12), transparent 26%); mix-blend-mode: screen; animation: toolboxBreathe 7s ease-in-out infinite; }
.toolbox-stage.is-focused .toolbox-stage-glow { opacity: .5; }

.toolbox-lines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.toolbox-lines path { fill: none; stroke: rgba(255,210,80,.28); stroke-width: .18; stroke-dasharray: .45 1.75; stroke-linecap: round; opacity: .62; filter: drop-shadow(0 0 2px rgba(255,190,40,.18)); transition: stroke .3s ease, stroke-width .3s ease, stroke-dasharray .3s ease, opacity .3s ease, filter .3s ease; }
.toolbox-lines path.is-highlighted { stroke: #ffe066; stroke-width: .30; stroke-dasharray: 1.15 1.85; opacity: .95; filter: drop-shadow(0 0 4px rgba(255,215,75,.72)) drop-shadow(0 0 10px rgba(255,170,0,.28)); animation: toolboxFlow 5.8s linear infinite; }
.toolbox-lines path.is-dim { opacity: .06; filter: none; animation: none; }

.toolbox-node-layer, .toolbox-stash-layer, .toolbox-focus-layer { position: absolute; inset: 0; }
.toolbox-node-layer, .toolbox-stash-layer { z-index: 4; }
.toolbox-stash-layer { pointer-events: none; }
.toolbox-focus-layer { z-index: 5; background: rgba(3,9,13,.12); }
.toolbox-focus-layer[hidden] { display: none; }

.toolbox-category-node,
.toolbox-stash-node,
.toolbox-focus-node { box-sizing: border-box; color: #eef3f5; text-align: left; }
.toolbox-category-node { position: absolute; left: var(--node-x); top: var(--node-y); display: flex; width: var(--node-width, 16%); min-height: var(--node-height, 6.8%); align-items: center; gap: .55rem; transform: translate(-50%,-50%); border: 1px solid rgba(255,205,86,.28); border-radius: 18px; padding: .6% 1.15% .6% 1.35%; background: linear-gradient(120deg, rgba(9,22,30,.38), rgba(8,15,21,.2)); backdrop-filter: blur(3px) saturate(1.05); box-shadow: inset 0 0 22px rgba(255,194,56,.025), 0 8px 18px rgba(0,0,0,.08); cursor: pointer; transition: left .78s cubic-bezier(.2,.82,.2,1), top .78s cubic-bezier(.2,.82,.2,1), transform .78s cubic-bezier(.2,.82,.2,1), opacity .24s, background .24s, border-color .24s, box-shadow .24s, filter .24s; }
.toolbox-category-node:hover, .toolbox-category-node:focus-visible { z-index: 5; border-color: rgba(255,205,78,.92); background: linear-gradient(120deg, rgba(17,37,45,.52), rgba(11,24,31,.34)); box-shadow: 0 0 26px rgba(255,187,20,.2), inset 0 0 22px rgba(255,181,19,.07); outline: none; }
.toolbox-category-node.is-match { border-color: rgba(228,241,76,.86); box-shadow: 0 0 25px rgba(218,239,54,.28), inset 0 0 22px rgba(218,239,54,.08); }
.toolbox-category-node.is-dim { opacity: .25; filter: saturate(.58); }
.toolbox-node-dot { flex: 0 0 .62rem; width: .62rem; height: .62rem; border-radius: 50%; background: #f4ad18; box-shadow: 0 0 9px rgba(255,191,39,.7); }
.toolbox-category-node strong, .toolbox-stash-node strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10px, 1.08vw, 18px); font-weight: 800; letter-spacing: -.02em; }
.toolbox-node-count { flex: 0 0 auto; color: #c8d1d0; font-size: clamp(9px, .92vw, 15px); white-space: nowrap; }

.toolbox-stash-node { position: absolute; left: var(--node-x); top: var(--node-y); display: flex; width: var(--node-width, 16%); min-height: var(--node-height, 6.8%); align-items: center; gap: .55rem; transform: translate(-50%,-50%); border: 1px solid rgba(255,205,86,.18); border-radius: 18px; padding: .55% 1% .55% 1.25%; background: linear-gradient(120deg, rgba(9,22,30,.3), rgba(8,15,21,.16)); backdrop-filter: blur(2px); opacity: .98; transition: left .78s cubic-bezier(.2,.82,.2,1), top .78s cubic-bezier(.2,.82,.2,1), transform .78s cubic-bezier(.2,.82,.2,1), opacity .55s ease, filter .55s ease; }
.toolbox-stage.is-focused .toolbox-stash-node { left: var(--stash-x, 61%); top: var(--stash-y, 66%); transform: translate(-50%,-50%) scale(.12); opacity: .1; filter: blur(1px) saturate(.65); }
.toolbox-stage.is-focused .toolbox-stash-node:nth-child(2n) { transition-delay: .08s; }
.toolbox-stage.is-focused .toolbox-stash-node:nth-child(3n) { transition-delay: .16s; }

.toolbox-focus-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.toolbox-focus-lines path { fill: none; stroke: rgba(255,215,106,.56); stroke-width: .2; stroke-linecap: round; opacity: .66; filter: drop-shadow(0 0 3px rgba(255,210,80,.36)); transition: stroke .25s ease, stroke-width .25s ease, opacity .25s ease, filter .25s ease; }
.toolbox-focus-lines path.tool-link,
.toolbox-focus-lines path.group-link { stroke: rgba(255,219,118,.62); stroke-width: .22; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: toolboxLinkReveal .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--link-index, 0) * 130ms); filter: drop-shadow(0 0 3px rgba(255,210,80,.44)) drop-shadow(0 0 8px rgba(244,160,20,.14)); }
.toolbox-focus-lines path.brace-contour { stroke: rgba(255,215,90,.5); stroke-width: .18; stroke-dasharray: 1.35 2.35; opacity: .58; animation: toolboxFlow 8.5s linear infinite; filter: drop-shadow(0 0 3px rgba(255,195,35,.22)); }
.toolbox-focus-lines path.is-dim { opacity: .08; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; filter: none; }
.toolbox-focus-node { position: absolute; left: var(--node-x); top: var(--node-y); width: max-content; max-width: 32%; min-width: 0; transform: translate(-50%,-50%); border: 1px solid rgba(229,239,228,.35); border-radius: 13px; padding: 14px 16px; background: linear-gradient(120deg, rgba(11,25,32,.48), rgba(8,15,21,.26)); backdrop-filter: blur(3px) saturate(1.05); box-shadow: inset 0 0 22px rgba(255,194,56,.025), 0 8px 20px rgba(0,0,0,.12); }
.toolbox-focus-node strong { display: block; font-size: 17px; line-height: 1.3; white-space: nowrap; }
.toolbox-focus-node.toolbox-focus-category { border-color: rgba(255,204,71,.82); box-shadow: 0 0 28px rgba(255,187,20,.18), inset 0 0 20px rgba(255,181,19,.07); }
.toolbox-focus-node.toolbox-focus-category small { color: #ffd258; font-size: 12px; }
button.toolbox-focus-node { cursor: pointer; color: #eef3f5; }
button.toolbox-focus-node:hover, button.toolbox-focus-node:focus-visible { border-color: #ffd258; outline: none; box-shadow: 0 0 24px rgba(255,192,29,.23); }
.toolbox-focus-tool span { display: block; max-width: 30ch; margin-top: 6px; color: #ffd258; font-size: 12px; line-height: 1.5; white-space: normal; }
.toolbox-focus-tool.is-dim { opacity: .18; }
.toolbox-focus-tool.is-match { border-color: rgba(228,241,76,.86); }
.toolbox-focus-chest { position: absolute; left: 61%; top: 66%; width: 35%; height: 52%; z-index: 6; transform: translate(-50%,-50%); border: 0; border-radius: 0; padding: 0; color: #ffd258; background: transparent; clip-path: polygon(6% 9%,72% 8%,94% 25%,94% 87%,84% 98%,9% 98%,1% 87%,1% 24%); cursor: pointer; transition: background .3s ease, filter .3s ease; }
.toolbox-focus-chest:hover, .toolbox-focus-chest:focus-visible { background: radial-gradient(ellipse at 52% 58%, rgba(255,193,24,.14), transparent 58%); filter: drop-shadow(0 0 12px rgba(255,191,24,.38)); outline: none; }
.toolbox-focus-chest span { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); border: 1px solid rgba(255,209,86,.32); border-radius: 999px; padding: 6px 10px; background: rgba(8,14,18,.72); color: #ffd258; font-size: 11px; white-space: nowrap; opacity: .82; }

.toolbox-drawer-shade { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); }
.toolbox-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; width: min(420px,92vw); border-left: 1px solid rgba(255,197,44,.45); padding: 32px 28px; background: linear-gradient(160deg,#11232b,#080e12 70%); box-shadow: -18px 0 50px rgba(0,0,0,.4); overflow: auto; }
.toolbox-drawer[hidden], .toolbox-drawer-shade[hidden] { display: none; }
.toolbox-drawer-close { float: right; width: 34px; height: 34px; border: 1px solid rgba(255,218,104,.6); border-radius: 50%; color: #ffd258; background: transparent; cursor: pointer; font-size: 20px; }
.toolbox-drawer-close:hover, .toolbox-drawer-close:focus-visible { border-color: #ffd258; outline: none; }
.toolbox-drawer .toolbox-eyebrow { margin-top: 36px; }
.toolbox-drawer h2 { margin: 8px 0 10px; color: #eef3f5; font-size: 34px; }
.toolbox-drawer-description { color: #c8d6da; line-height: 1.8; }
.toolbox-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0; }
.toolbox-meta-item { padding: 12px; border: 1px solid rgba(216,229,224,.22); border-radius: 10px; }
.toolbox-meta-item span, .toolbox-meta-item strong { display: block; }
.toolbox-meta-item span { color: #9eb0b5; font-size: 12px; }
.toolbox-meta-item strong { margin-top: 5px; }
.toolbox-drawer-note { color: #a7b7bc; font-size: 13px; line-height: 1.7; }
.toolbox-visit { display: block; margin-top: 34px; border-radius: 999px; padding: 14px 18px; color: #10160b; background: #ddfa3b; text-align: center; font-weight: 800; text-decoration: none; }
.toolbox-visit:hover { background: #f5ff9a; }

@keyframes toolboxBreathe { 0%,100% { opacity: .48; transform: scale(.98); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes toolboxFlow { to { stroke-dashoffset: -11; } }
@keyframes toolboxLinkReveal { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: .66; } }

@media (max-width: 800px) {
  .toolbox-view { width: min(100% - 20px, 680px); padding-top: 14px; }
  .toolbox-toolbar { align-items: stretch; flex-direction: column; }
  .toolbox-reset { width: 100%; }
  .toolbox-stage { border-radius: 16px; }
  .toolbox-category-node { gap: .3rem; border-radius: 10px; padding-left: 1.2%; padding-right: .7%; }
  .toolbox-node-dot { flex-basis: .38rem; width: .38rem; height: .38rem; }
  .toolbox-focus-node { max-width: 44%; padding: 10px; }
  .toolbox-focus-node.toolbox-focus-category { max-width: 36%; }
  .toolbox-focus-tool { max-width: 44%; }
  .toolbox-focus-chest { width: 38%; height: 53%; }
  .toolbox-focus-chest span { font-size: 9px; }
  .toolbox-stash-node { border-radius: 10px; }
  .toolbox-focus-node strong { font-size: 13px; }
  .toolbox-focus-tool span { font-size: 10px; }
  .toolbox-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .toolbox-stage-glow, .toolbox-lines path, .toolbox-focus-lines path, .toolbox-stash-node, .toolbox-focus-chest { animation: none !important; transition-duration: .001ms !important; }
}
