/* Austin's Workbench: the front page. A workshop wall with the Launcher
   on top, pegboards for tools and a cork strip for ideas. The four toolbox
   themes each get their own workshop: Midnight is a night shop, Daylight and
   Paper are light birch, Slate is a steel pegboard. */
.wb-body {
  --wall: #17130e;
  --wall-2: #1f1912;
  --peg: #7a5b3b;
  --peg-dark: #4f3a24;
  --peg-hole: #2b2016;
  --frame: #5c442b;
  --plank: #f4ecdb;
  --plank-ink: #2a2016;
  --plank-sub: #6b5d47;
  --cork: #a57c52;
  --sign: #f3e9d2;
  --sign-ink: #2e2010;
  --text: #efe7d8;
  --text-dim: #b9ac95;
  --launch-bg: rgba(28, 23, 17, .92);
  --launch-line: #4a3a28;
  --launch-sel: #3b2e1f;
  --accent-w: #f2b84b;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(242, 184, 75, .10), transparent 60%),
    repeating-linear-gradient(90deg, var(--wall) 0 46px, var(--wall-2) 46px 48px);
  color: var(--text);
  min-height: 100%;
}
html[data-tbx-theme="light"] .wb-body,
html[data-tbx-theme="paper"] .wb-body {
  --wall: #efe6d6;
  --wall-2: #e7dcc8;
  --peg: #c8a274;
  --peg-dark: #a9845a;
  --peg-hole: #6e5236;
  --frame: #9c7a50;
  --cork: #b98c5e;
  --text: #2a2016;
  --text-dim: #6b5d47;
  --launch-bg: rgba(255, 252, 245, .95);
  --launch-line: #d8c9ab;
  --launch-sel: #f1e3c6;
  --accent-w: #b5651d;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .6), transparent 60%),
    repeating-linear-gradient(90deg, var(--wall) 0 46px, var(--wall-2) 46px 48px);
}
html[data-tbx-theme="slate"] .wb-body {
  --wall: #10161d;
  --wall-2: #141c25;
  --peg: #4a5866;
  --peg-dark: #34404c;
  --peg-hole: #1a222b;
  --frame: #2c3742;
  --cork: #6d5a45;
  --sign: #e4edf5;
  --sign-ink: #10202e;
  --text: #e4edf5;
  --text-dim: #93a6b8;
  --launch-bg: rgba(18, 26, 34, .94);
  --launch-line: #304254;
  --launch-sel: #1f3346;
  --accent-w: #3fa9f5;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(63, 169, 245, .10), transparent 60%),
    repeating-linear-gradient(90deg, var(--wall) 0 46px, var(--wall-2) 46px 48px);
}

.wb-skip { position: absolute; left: -999px; top: 8px; background: var(--sign); color: var(--sign-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.wb-skip:focus { left: 8px; }

/* ---------- top: sign, nav, launcher ---------- */
.wb-top { max-width: 1560px; margin: 0 auto; padding: 26px 20px 8px; position: relative; z-index: 20; }
.wb-top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.wb-sign {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--sign); color: var(--sign-ink); text-decoration: none;
  padding: 10px 20px 12px; border-radius: 5px;
  box-shadow: 0 6px 0 #c9b38a, 0 14px 30px rgba(0, 0, 0, .4);
  font: 700 clamp(19px, 3.4vw, 26px) var(--font-mono); letter-spacing: .04em;
  transform: rotate(-1.5deg);
  transition: transform .3s ease;
}
.wb-sign:hover { transform: rotate(0); }
.wb-sign-small { font: 600 10px var(--font-mono); letter-spacing: .14em; opacity: .65; }
.wb-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 12px var(--font-mono); }
.wb-nav a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); text-decoration: none; }
.wb-nav a:hover { color: var(--text); }
.wb-nav svg { width: 13px; height: 13px; }
.wb-lede { margin: 22px 0 14px; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.wb-status { display: inline-block; font: 12px var(--font-mono); margin-left: 6px; color: var(--text-dim); }

.wb-launcher { position: relative; }
.wb-launch-box {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 60px;
  background: var(--launch-bg); border: 1px solid var(--launch-line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  backdrop-filter: blur(12px);
}
.wb-launch-box:focus-within { border-color: var(--accent-w); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-w) 25%, transparent), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.wb-launch-icon { width: 21px; height: 21px; color: var(--text-dim); flex: none; }
.wb-launch-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 19px var(--font-sans); }
.wb-launch-box input::placeholder { color: var(--text-dim); opacity: .8; }
.wb-keys kbd, .wb-launch-help kbd {
  font: 11px var(--font-mono); color: var(--text-dim);
  border: 1px solid var(--launch-line); border-radius: 5px; padding: 1px 6px;
}
.wb-launch-box:focus-within .wb-keys { display: none; }
.wb-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  max-height: min(60vh, 520px); overflow-y: auto; padding: 6px;
  background: var(--launch-bg); border: 1px solid var(--launch-line); border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6); backdrop-filter: blur(14px);
}
.wb-grp { font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: 10px 12px 4px; }
.wb-opt { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; cursor: pointer; }
.wb-opt[aria-selected="true"] { background: var(--launch-sel); }
.wb-opt img { width: 44px; height: 30px; object-fit: cover; border-radius: 6px; flex: none; background: var(--peg-dark); }
.wb-opt-text { flex: 1; min-width: 0; }
.wb-opt-text b { display: block; font-size: 14.5px; font-weight: 600; }
.wb-opt-text span { display: block; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-opt mark { background: none; color: var(--accent-w); }
.wb-opt-meta { font: 11px var(--font-mono); color: var(--text-dim); white-space: nowrap; }
.wb-opt-info { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--launch-line); background: none; color: var(--text-dim); cursor: pointer; }
.wb-opt-info:hover { color: var(--text); }
.wb-opt-info svg { width: 15px; height: 15px; }
.wb-none { padding: 22px; text-align: center; color: var(--text-dim); font-size: 14px; }
.wb-launch-help { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 4px 0; font: 11px var(--font-mono); color: var(--text-dim); }
.wb-launch-help span { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 560px) { .wb-opt-meta { display: none; } .wb-launch-box { height: 54px; } .wb-launch-box input { font-size: 17px; } }

/* ---------- the wall and its boards ---------- */
.wb-wall { min-width: 0; padding: 26px 0 30px; }
.wb-board {
  position: relative;
  padding: 40px 24px 28px;
  margin-bottom: 34px;
  border-radius: 14px;
  background-color: var(--peg);
  background-image: radial-gradient(circle, var(--peg-hole) 2.2px, transparent 2.7px);
  background-size: 26px 26px;
  box-shadow: inset 0 0 0 10px var(--frame), inset 0 0 40px rgba(0, 0, 0, .25), 0 20px 40px rgba(0, 0, 0, .35);
}
.wb-board-sign {
  position: absolute; top: -15px; left: 22px; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: #2e2010; color: #f3e9d2;
  font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.wb-count { font-weight: 400; opacity: .65; letter-spacing: 0; }
.wb-board-sub {
  position: absolute; top: -12px; right: 22px; margin: 0; max-width: 50%;
  font: 11.5px var(--font-mono); color: #f3e9d2; background: rgba(46, 32, 16, .75);
  padding: 4px 9px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 700px) { .wb-board-sub { display: none; } .wb-board { padding: 34px 14px 22px; } }

.wb-pegs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 38px 20px; }
.wb-pegs-big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 226px), 1fr)); }

/* A plank hangs from a peg on a short wire. */
.wb-hang { position: relative; transform-origin: 50% -18px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.wb-hang:nth-child(3n) { transform: rotate(1.3deg); }
.wb-hang:nth-child(3n+1) { transform: rotate(-1.1deg); }
.wb-hang:hover, .wb-hang:focus-within { transform: rotate(0) translateY(-4px); z-index: 2; }
.wb-hang::before { content: ''; position: absolute; top: -20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e6e6e6, #6f6f6f); box-shadow: 0 2px 2px rgba(0, 0, 0, .4); }
.wb-hang::after { content: ''; position: absolute; top: -10px; left: 50%; width: 2px; height: 14px; margin-left: -1px; background: #555; }
.wb-plank {
  display: flex; flex-direction: column; height: 100%;
  background: var(--plank); color: var(--plank-ink); text-decoration: none;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .35);
}
.wb-plank:focus-visible { outline: 3px solid var(--accent-w); outline-offset: 3px; }
.wb-plank-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #2a2016; }
.wb-plank-img img, .wb-plank-img picture { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wb-plank:hover .wb-plank-img img { transform: scale(1.04); }
.wb-plank-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 46px; flex: 1; }
.wb-plank-title { font-weight: 700; font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; padding-right: 26px; }
.wb-pegs-big .wb-plank-title { font-size: 17px; }
.wb-ext { display: inline-flex; margin-left: 5px; vertical-align: 1px; opacity: .55; }
.wb-ext svg { width: 11px; height: 11px; }
.wb-plank-desc { font-size: 12.5px; line-height: 1.45; color: var(--plank-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The string tag says what's happening with it. */
.wb-tag {
  position: absolute; right: -8px; top: 22px; pointer-events: none;
  padding: 3px 9px 3px 14px; font: 600 10px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  background: #6b6f78;
}
.wb-tag[data-tone="stable"] { background: #2f8a55; }
.wb-tag[data-tone="beta"] { background: #a8740f; }
.wb-tag[data-tone="wip"] { background: #2f6fc4; }
.wb-tag[data-tone="active"] { background: #1f9d64; }
.wb-tag[data-tone="active"]::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #c9ffe2; vertical-align: 1px; animation: wb-pulse 2s ease-in-out infinite; }
.wb-tag[data-tone="paused"] { background: #8a6d2b; }
.wb-tag[data-tone="experiment"] { background: #7058d6; }
@keyframes wb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wb-tag-ver { font-weight: 400; opacity: .85; text-transform: none; }

/* Freshness light: when the tool last changed. */
.wb-led { position: absolute; left: 13px; bottom: 18px; width: 11px; height: 11px; border-radius: 50%; background: #3a3631; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 0 0 2px rgba(0, 0, 0, .12); }
.wb-led[data-fresh="pulse"] { background: #3ddc84; box-shadow: 0 0 0 2px rgba(0, 0, 0, .12), 0 0 10px #3ddc84; animation: wb-led 1.6s ease-in-out infinite; }
.wb-led[data-fresh="green"] { background: #2fb36b; box-shadow: 0 0 0 2px rgba(0, 0, 0, .12), 0 0 6px rgba(47, 179, 107, .7); }
.wb-led[data-fresh="yellow"] { background: #e9c46a; box-shadow: 0 0 0 2px rgba(0, 0, 0, .12), 0 0 6px rgba(233, 196, 106, .55); }
.wb-led[data-fresh="off"] { background: radial-gradient(circle at 35% 35%, #6d6760, #33302c); }
@keyframes wb-led { 0%, 100% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .12), 0 0 4px #3ddc84; opacity: .75; } 50% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .12), 0 0 14px #3ddc84; opacity: 1; } }

/* Trailer: tools with a showcase get a button beside the "i". */
.wb-trailer {
  position: absolute; right: 44px; bottom: 8px; height: 30px; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  font: 600 11px var(--font-mono); text-decoration: none; color: #5a3fb8; background: rgba(244, 236, 219, .95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.wb-trailer svg { width: 9px; height: 9px; }
.wb-trailer:hover { transform: scale(1.06); color: #3b2a8a; }
.wb-trailer:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; }

/* Pin and info sit on the plank's face, outside the launch link. */
.wb-pin, .wb-info {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; color: #5a4a35; background: rgba(244, 236, 219, .92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.wb-pin svg, .wb-info svg { width: 15px; height: 15px; }
.wb-pin { left: 8px; top: 8px; opacity: 0; }
.wb-hang:hover .wb-pin, .wb-hang:focus-within .wb-pin, .wb-pin[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .wb-pin { opacity: .85; } }
.wb-pin[aria-pressed="true"] { background: #d64545; color: #fff; transform: rotate(-20deg); }
.wb-info { right: 8px; bottom: 8px; }
.wb-pin:hover, .wb-info:hover { transform: scale(1.12); color: #2a2016; }
.wb-pin:focus-visible, .wb-info:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; opacity: 1; }

/* Ideas: sticky notes on cork. */
.wb-cork {
  background-color: var(--cork);
  background-image: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 4px;
}
.wb-notes { display: flex; flex-wrap: wrap; gap: 20px; }
.wb-note-wrap { position: relative; }
.wb-note {
  display: block; width: 156px; min-height: 124px; padding: 20px 12px 12px;
  font: 15px/1.3 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', 'Comic Sans MS', cursive;
  color: #3a2a12; text-decoration: none; position: relative;
  box-shadow: 0 8px 14px rgba(0, 0, 0, .3); transition: transform .3s ease;
}
.wb-note-wrap:nth-child(4n) .wb-note { background: #fff3a8; transform: rotate(2deg); }
.wb-note-wrap:nth-child(4n+1) .wb-note { background: #ffd6e0; transform: rotate(-2deg); }
.wb-note-wrap:nth-child(4n+2) .wb-note { background: #c9f1d6; transform: rotate(1deg); }
.wb-note-wrap:nth-child(4n+3) .wb-note { background: #cfe4ff; transform: rotate(-1deg); }
.wb-note-wrap:hover .wb-note, .wb-note:focus-visible { transform: scale(1.05) rotate(0); z-index: 2; }
.wb-note:focus-visible { outline: 3px solid var(--accent-w); outline-offset: 3px; }
.wb-note::before { content: ''; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #d64545; box-shadow: 0 2px 2px rgba(0, 0, 0, .4); }
.wb-note small { display: block; margin-top: 8px; font: 11px/1.4 var(--font-sans); color: #6b5d47; }
.wb-note-info { right: 6px; bottom: 6px; width: 26px; height: 26px; opacity: .8; }
@media (max-width: 420px) { .wb-note { width: calc(50vw - 40px); } }

/* ---------- info panel (Tab in the launcher, or the "i" on a plank) ---------- */
.wb-panel {
  position: fixed; z-index: 60; top: 12px; right: 12px; bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  background: var(--launch-bg); color: var(--text);
  border: 1px solid var(--launch-line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65); backdrop-filter: blur(16px);
  overflow-y: auto;
  animation: wb-slide .25s ease;
}
@keyframes wb-slide { from { transform: translateX(24px); opacity: 0; } }
@media (max-width: 600px) { .wb-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 82vh; animation-name: wb-rise; } }
@keyframes wb-rise { from { transform: translateY(30px); opacity: 0; } }
.wb-panel-inner { padding: 18px 20px 22px; }
.wb-panel-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--launch-line); background: var(--launch-bg); color: var(--text); font-size: 18px; cursor: pointer; }
.wb-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; background: var(--peg-dark); }
.wb-panel h2 { margin: 0 40px 4px 0; font-size: 22px; line-height: 1.2; }
.wb-panel-ver { font: 12px var(--font-mono); color: var(--text-dim); }
.wb-panel p { margin: 10px 0 14px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.wb-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wb-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
  font: 600 12.5px var(--font-mono); text-decoration: none; white-space: nowrap;
  color: var(--text); border: 1px solid var(--launch-line); background: transparent;
}
.wb-btn svg { width: 12px; height: 12px; flex: none; }
.wb-btn:hover { background: var(--launch-sel); }
.wb-btn-go { background: var(--accent-w); border-color: var(--accent-w); color: #1b1408; }
.wb-btn-go:hover { background: var(--accent-w); filter: brightness(1.08); }
.wb-btn:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; }
.wb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--launch-line); border: 1px solid var(--launch-line); border-radius: 12px; overflow: hidden; margin: 0 0 16px; }
.wb-facts div { background: var(--launch-bg); padding: 9px 11px; }
.wb-facts dt { font: 10px var(--font-mono); color: var(--text-dim); margin-bottom: 2px; }
.wb-facts dd { margin: 0; font-size: 13px; }
.wb-facts small { display: block; font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.35; }
.wb-panel h3 { font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin: 14px 0 6px; }
.wb-panel ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.wb-panel li + li { margin-top: 3px; }
.wb-panel-hint { margin-top: 16px; font: 11px var(--font-mono); color: var(--text-dim); }

/* ---------- footer ---------- */
.wb-foot { max-width: 1560px; margin: 0 auto; padding: 10px 20px 70px; font: 11px var(--font-mono); color: var(--text-dim); }
.wb-foot a { color: var(--text); }
.wb-foot .tbx-secret { display: flex; justify-content: center; margin-top: 30px; }
.wb-foot .tbx-secret-wrap { display: flex; align-items: center; gap: 6px; opacity: .3; transition: opacity .25s ease; }
.wb-foot .tbx-secret-wrap:focus-within { opacity: 1; }
.wb-foot .tbx-secret-input { width: 150px; background: transparent; border: none; border-bottom: 1px solid var(--launch-line); padding: 4px 2px; font: 11px var(--font-mono); text-align: center; color: var(--text-dim); }
.wb-foot .tbx-secret-input:focus { outline: none; }
.wb-foot .tbx-secret-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--launch-line); background: transparent; color: var(--text-dim); font-size: 11px; opacity: .4; cursor: not-allowed; }
.wb-foot .tbx-secret-btn:disabled { pointer-events: none; }
.wb-foot .tbx-secret-btn.tbx-secret-unlocked { opacity: 1; cursor: pointer; color: var(--status-stable); border-color: var(--status-stable); }
.wb-foot .tbx-secret-blink { animation: wb-blink .7s steps(1) 2; }
.wb-foot .tbx-secret-fade { transition: opacity .5s ease; opacity: 0; }
@keyframes wb-blink { 25%, 75% { border-bottom-color: var(--danger); } 50% { border-bottom-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .wb-hang, .wb-note, .wb-sign, .wb-plank-img img, .wb-pin, .wb-info { transition: none; }
  .wb-tag[data-tone="active"]::after, .wb-panel { animation: none; }
}

/* ---------- layout: drawers | bench | legend ---------- */
.wb-layout { max-width: 1560px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 196px minmax(0, 1fr) 256px; gap: 26px; align-items: start; }
.wb-drawer, .wb-legend { position: sticky; top: 16px; margin-top: 26px; max-height: calc(100vh - 32px); overflow-y: auto; }
.wb-side-h { font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 10px; }

/* Drawers: a little cabinet; the open drawer slides out. */
.wb-drawer-inner { padding: 14px 12px 12px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--frame) 85%, #000), var(--frame)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 14px 30px rgba(0, 0, 0, .35); }
.wb-drawer .wb-side-h { color: #f3e9d2; opacity: .75; }
.wb-drawer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.wb-drawer-btn {
  position: relative; width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; border-radius: 6px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #c49a68, #a57c52); color: #2e2010; border: 1px solid rgba(0, 0, 0, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 rgba(0, 0, 0, .3);
  font: 600 13px var(--font-mono); transition: transform .25s ease, box-shadow .25s ease;
}
.wb-drawer-btn:hover { transform: translateX(3px); }
.wb-drawer-btn[aria-current="true"] { transform: translateX(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), -6px 6px 12px rgba(0, 0, 0, .4); background: linear-gradient(180deg, #e2bd8a, #c49a68); }
.wb-drawer-btn:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; }
.wb-drawer-label { flex: 1; }
.wb-drawer-count { font-weight: 400; font-size: 11px; opacity: .7; }
.wb-drawer-handle { width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, #f6d98b, #a8812e); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.wb-side-note { margin: 12px 2px 0; font: 11px/1.5 var(--font-sans); color: #f3e9d2; opacity: .7; }
html[data-tbx-theme="slate"] .wb-drawer-btn { background: linear-gradient(180deg, #7b8a99, #5d6b79); color: #0f1a24; }
html[data-tbx-theme="slate"] .wb-drawer-btn[aria-current="true"] { background: linear-gradient(180deg, #9fb0c0, #7b8a99); }

.wb-empty-drawer { position: relative; margin-top: 6px; padding: 46px 30px; text-align: center; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--text-dim) 50%, transparent); color: var(--text); }
.wb-empty-drawer h2 { margin: 18px 0 8px; font: 600 22px var(--font-mono); }
.wb-empty-drawer p { margin: 0 auto; max-width: 440px; color: var(--text-dim); line-height: 1.6; }
.wb-empty-handle { display: inline-block; width: 70px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #f6d98b, #a8812e); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.wb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-w); text-decoration: underline; cursor: pointer; }

/* Legend: a spec sheet pinned beside the bench. */
.wb-legend-inner { padding: 16px 16px 14px; border-radius: 6px; background: var(--sign); color: var(--sign-ink); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transform: rotate(.6deg); }
.wb-legend-inner summary { cursor: pointer; color: var(--sign-ink); opacity: .7; list-style: none; }
.wb-legend-inner summary::-webkit-details-marker { display: none; }
.wb-legend-inner summary::after { content: ' ▾'; }
.wb-legend-inner:not([open]) summary::after { content: ' ▸'; }
.wb-legend h3 { margin: 14px 0 7px; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.wb-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.35; }
.wb-legend li { display: flex; align-items: center; gap: 8px; }
.wb-legend-small { margin: 6px 0 0; font-size: 11.5px; opacity: .7; }
.wb-tag-chip { flex: none; padding: 2px 8px; border-radius: 3px; font: 600 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #6b6f78; white-space: nowrap; }
.wb-tag-chip[data-tone="stable"] { background: #2f8a55; } .wb-tag-chip[data-tone="beta"] { background: #a8740f; } .wb-tag-chip[data-tone="wip"] { background: #2f6fc4; }
.wb-tag-chip[data-tone="active"] { background: #1f9d64; } .wb-tag-chip[data-tone="paused"] { background: #8a6d2b; } .wb-tag-chip[data-tone="experiment"] { background: #7058d6; }
.wb-legend-fresh .wb-led { position: static; flex: none; }
.wb-legend-fresh span:nth-child(2) { flex: 1; }
.wb-legend-fresh b { font: 600 11px var(--font-mono); opacity: .7; }
.wb-legend-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .08); font-size: 10px; }
.wb-legend-ico svg { width: 13px; height: 13px; }

.wb-drawer-toggle { display: none; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--launch-line); background: var(--launch-bg); color: var(--text); font: 600 12px var(--font-mono); cursor: pointer; }
.wb-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); }

@media (max-width: 1240px) {
  .wb-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .wb-drawer { grid-row: 1 / span 2; }
  .wb-legend { grid-column: 2; grid-row: 1; position: static; max-height: none; margin-top: 18px; }
  .wb-legend-inner { transform: none; }
  .wb-legend ul.wb-legend-tags, .wb-legend ul.wb-legend-fresh, .wb-legend ul.wb-legend-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .wb-wall { grid-column: 2; grid-row: 2; padding-top: 18px; }
}
@media (max-width: 860px) {
  .wb-layout { grid-template-columns: minmax(0, 1fr); }
  .wb-legend, .wb-wall { grid-column: 1; }
  .wb-drawer-toggle { display: inline-flex; }
  .wb-drawer { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; margin: 0; max-height: none; width: min(260px, 80vw); padding: 12px; transform: translateX(-105%); transition: transform .3s ease; background: var(--wall); }
  .wb-drawer[data-open] { transform: none; }
  .wb-drawer-inner { min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-led[data-fresh="pulse"] { animation: none; }
  .wb-drawer, .wb-drawer-btn, .wb-trailer { transition: none; }
}
.wb-led.wb-led-inline { position: static; display: inline-block; width: 9px; height: 9px; vertical-align: 0; margin-right: 3px; }
.wb-legend-inner:not([open]) { padding-bottom: 14px; }
.wb-legend-inner:not([open]) summary { margin-bottom: 0; }

/* a plank or note filed in another drawer */
.wb-hang[hidden], .wb-note-wrap[hidden] { display: none !important; }

/* ---------- Commonplace Research: the nav tab and the parchment box under the drawers ----------
   Commonplace is Austin's research notebook in its own repo (c.austinpranger.com).
   The box reads its pulse.json lazily (shell/shared/commonplace-box.js). */
.wb-nav a.wb-nav-cp { padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(180deg, #f6ecd4, #e3cfa4); color: #4a3016; border: 1px solid #b98f58; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.wb-nav a.wb-nav-cp:hover { color: #2e1f12; background: linear-gradient(180deg, #fbf3df, #ead8b2); }
.wb-cp {
  margin-top: 16px; padding: 14px 13px 13px; border-radius: 10px; color: #2e1f12;
  background: radial-gradient(ellipse at 30% 0%, #fbf5e6, transparent 70%), linear-gradient(180deg, #f1e4c6, #e2cc9d);
  border: 1px solid #b98f58; box-shadow: inset 0 0 0 3px rgba(251, 245, 230, .55), 0 14px 30px rgba(0, 0, 0, .3);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.wb-cp-h { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font: 700 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #5a3d22; }
.wb-cp-h svg { width: 17px; height: 17px; flex: none; color: #7a4b22; }
.wb-cp-lede { margin: 0 0 10px; font-size: 13.5px; line-height: 1.4; color: #4a3520; }
.wb-cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 0 10px; }
.wb-cp-stats div { text-align: center; border: 1px dashed #c3a26f; border-radius: 6px; padding: 4px 2px; }
.wb-cp-stats dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.1; }
.wb-cp-stats dt { font: 9.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #7a6243; }
.wb-cp-lists h3 { margin: 8px 0 3px; font: 600 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #7a6243; }
.wb-cp-lists ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.3; }
.wb-cp-lists li { padding: 3px 0; border-bottom: 1px solid rgba(185, 143, 88, .35); }
.wb-cp-lists li:last-child { border-bottom: 0; }
.wb-cp-lists a { color: #2e1f12; text-decoration: none; }
.wb-cp-lists a:hover { text-decoration: underline; color: #7a4b22; }
.wb-cp-lists li span { display: block; font: 10.5px var(--font-mono); color: #8a7254; }
.wb-cp-none { color: #8a7254; font-style: italic; }
.wb-cp-btn { display: block; margin: 10px 0 6px; padding: 8px 10px; border-radius: 999px; text-align: center; text-decoration: none; background: #7a4b22; color: #fffaf0; font: 600 12px var(--font-sans); box-shadow: 0 4px 10px rgba(122, 75, 34, .3); }
.wb-cp-btn:hover { background: #8d5a2b; }
.wb-cp-btn:focus-visible, .wb-cp-out:focus-visible, .wb-nav a.wb-nav-cp:focus-visible { outline: 2px solid #8e2f23; outline-offset: 2px; }
.wb-cp-out { display: block; text-align: center; font: 11px var(--font-mono); color: #5a3d22; }
@media (max-width: 860px) { .wb-drawer-inner { min-height: 0; } .wb-cp { margin-bottom: 12px; } }

/* ---------- Linked drawers: Commonplace and Lens (scripts/lib/linked.mjs, shell/shared/linked-drawers.js) ----------
   Lists of what lives on Austin's other sites, shown in the wall when their drawer is open. */
.wb-drawer-sep { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(243, 233, 210, .3); }
.wb-drawer-btn.wb-drawer-commonplace { background: linear-gradient(180deg, #f1e4c6, #dcc394); color: #3e2a14; }
.wb-drawer-btn.wb-drawer-commonplace[aria-current="true"] { background: linear-gradient(180deg, #fbf3df, #e8d3a8); }
.wb-drawer-btn.wb-drawer-lens { background: linear-gradient(180deg, #1c2733, #0d141c); color: #dfe9f3; }
.wb-drawer-btn.wb-drawer-lens[aria-current="true"] { background: linear-gradient(180deg, #2a3a4b, #16212c); }
.wb-linked[hidden] { display: none !important; }
.wb-linked { max-width: 760px; margin: 0 auto 24px; padding: 20px 22px 18px; border-radius: 12px; }
.wb-linked-head h2 { margin: 0 0 4px; font: 600 24px "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.wb-linked-head p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.wb-linked-status { font: 11.5px var(--font-mono); opacity: .75; }
.wb-linked-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px !important; }
.wb-linked-actions a { font: 600 13px var(--font-sans); }
.wb-linked-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.35; }
.wb-linked-list li { padding: 5px 0; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 14%, transparent); }
.wb-linked-list li:last-child { border-bottom: 0; }
.wb-linked-list a { text-decoration: none; color: inherit; }
.wb-linked-list a:hover { text-decoration: underline; }
.wb-linked-list span { margin-left: 8px; font: 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.wb-linked-list small { display: block; font-size: 13px; opacity: .72; margin-top: 2px; }
.wb-linked-d0 > a { font-weight: 700; }
.wb-linked-d1 { padding-left: 18px !important; }
.wb-linked-d2 { padding-left: 36px !important; }
.wb-linked-d3, .wb-linked-d4 { padding-left: 54px !important; }
.wb-linked-d1, .wb-linked-d2, .wb-linked-d3, .wb-linked-d4 { font-size: 14px; border-bottom-style: dotted !important; }
.wb-linked-none { font-style: italic; opacity: .7; }
.wb-linked-commonplace { color: #2e1f12; background: radial-gradient(ellipse at 30% 0%, #fbf5e6, transparent 70%), linear-gradient(180deg, #f1e4c6, #e2cc9d); border: 1px solid #b98f58; box-shadow: inset 0 0 0 3px rgba(251, 245, 230, .55), 0 14px 30px rgba(0, 0, 0, .3); }
.wb-linked-commonplace .wb-linked-actions a { color: #7a4b22; }
.wb-linked-lens { color: #e6eef6; background: radial-gradient(ellipse at 50% 0%, #1a2836, transparent 70%), #05080c; border: 1px solid #2a3a4b; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.wb-linked-lens .wb-linked-actions a { color: #8fd3ff; }
.wb-linked a:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; }
.wb-nav a.wb-nav-lens { padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(180deg, #1c2733, #05080c); color: #e6eef6; border: 1px solid #3a4f63; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.wb-nav a.wb-nav-lens:hover { color: #fff; border-color: #8fd3ff; }
.wb-nav a.wb-nav-lens:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 2px; }

/* ---------- Skills tab (the /skills page, shell/templates/skills.html) ---------- */
.wb-nav a.wb-nav-skills { padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(180deg, #ffb566, #ff9a3c); color: #1c1004; border: 1px solid #c8731a; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.wb-nav a.wb-nav-skills:hover { color: #000; background: linear-gradient(180deg, #ffc687, #ffa957); }
.wb-nav a.wb-nav-skills:focus-visible { outline: 2px solid #ff9a3c; outline-offset: 2px; }
