.lab-hero {
  background: radial-gradient(ellipse at 75% 50%,#314d3b,transparent 57%),#111c17;
  border-bottom: 1px solid #3b5042;
}
.lab-hero-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 22px; min-height: 333px; padding-block: 25px }
.lab-back { display: inline-flex; align-items: center; gap: 6px; color: #d1dfcc; font-size: 13px; font-weight: 630; margin-bottom: 15px }
.lab-back:hover { color: var(--mint) }
.lab-intro h1 { color: var(--ink); font: 760 clamp(44px,5.8vw,79px)/.87 var(--display); letter-spacing: -.073em; margin: 12px 0 15px }
.lab-intro > p:not(.eyebrow) { color: var(--muted); max-width: 41ch }
.lab-art { position: relative; align-self: stretch; isolation: isolate; display: grid; place-items: center; min-height: 230px; perspective: 650px }
.lab-art-orbit { position: absolute; inset: 15% 9%; border-radius: 50%; border: 1px solid #b8d7a95e; transform: rotate(-17deg) scaleY(.78); background: radial-gradient(ellipse at 37% 27%,#d4e6b81a,transparent 70%) }
.lab-art-token { display: grid; place-items: center; position: absolute; width: 38%; max-width: 194px; aspect-ratio: 1; border: 1px solid #ebf4ce; border-radius: 24%; background: linear-gradient(157deg,#d6ebbd,#86b792 58%,#4c8769); box-shadow: 0 5px #739d78,0 9px #486d56,6px 16px 23px #0a1a14a0; color: #1d3f2f; font: clamp(43px,7vw,96px)/1 system-ui; transform: rotateX(15deg) rotateY(-16deg) rotateZ(-14deg); animation: float-symbol 6s ease-in-out infinite }
.token-left,.token-right { width: 17%; font-size: clamp(22px,4vw,46px); background: linear-gradient(152deg,#ffe6ac,#cb9d63) }
.token-left { left: 9%; bottom: 24%; transform: rotate(-19deg); animation-delay: -2s }
.token-right { right: 7%; top: 19%; background: linear-gradient(150deg,#f9d7c7,#cb8e84); transform: rotate(19deg); animation-delay: -4s }

.lab-library { padding: 22px 0 58px; background: #111b17 }
.lab-controls { margin-bottom: 14px }
.search-box { display: flex; align-items: center; gap: 13px; min-height: 49px; max-width: 590px; padding: 0 14px; border: 1px solid #556e5e; border-radius: 9px; background: #1d3028 }
.search-box:focus-within { outline: 2px solid #a4d0a1; outline-offset: 1px }
.search-box input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink) }
.search-box input::placeholder { color: #bccabc }
.search-icon { flex: none; position: relative; width: 15px; height: 15px; border: 2px solid #cbe5be; border-radius: 50% }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 9px; background: #cbe5be; transform: rotate(45deg) }
.lab-control-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.lab-mode { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #476452; border-radius: 9px; background: #1a2c23; white-space: nowrap }
.lab-mode button { padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #d8e9d2; font-size: 12px; font-weight: 650 }
.lab-mode button[aria-pressed=true] { background: #395a45; border-color: #69886d; color: #f3f7e4 }
.lab-count { min-height: 20px; margin-bottom: 7px; color: #bfccbf; font-size: 13px }
.lab-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(235px,285px); gap: 14px; align-items: start }
.lab-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px }
.lab-tile { position: relative; display: grid; align-content: space-between; gap: 3px; min-width: 0; min-height: 96px; padding: 7px 8px 6px; text-align: left; border: 1px solid #496456; border-bottom-width: 3px; border-radius: 8px; background: #21362c; transition: background .18s,transform .18s }
.lab-tile:nth-child(6n+2), .lab-tile:nth-child(6n+5) { background: #293639; border-color: #4a6065 }
.lab-tile:hover, .lab-tile:focus-visible { background: #3a5847; border-color: #8bab8a; transform: translateY(-2px) }
.lab-tile .symbol-glyph { color: #d6ecc5; font: 34px/1 system-ui,'Segoe UI Symbol',sans-serif }
.lab-tile .symbol-label { color: #e9eddf; font-size: 11px; font-weight: 650; line-height: 1.12; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden }
.lab-tile small { color: #bbcbc0; font: 10px/1.1 monospace }
.lab-tile .symbol-go { position: absolute; top: 5px; right: 7px; color: #c0d4c1; font-size: 12px }

.lab-tray { position: sticky; top: 14px; padding: 13px; border: 1px solid #62816c; border-radius: 12px; background: #21382c; box-shadow: 0 5px #0a15107a }
.tray-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 9px }
.tray-heading > div { display: flex; align-items: center; gap: 7px }
.tray-heading h2, .lab-empty h2 { font: 710 24px/1 var(--display); letter-spacing: -.036em }
.tray-heading > div > span { color: var(--gold); font: 19px/1 system-ui }
.tray-clear { padding: 4px 2px; border: 0; background: transparent; color: #d8ebd1; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px }
.lab-tray textarea { display: block; width: 100%; min-height: 76px; padding: 8px; border: 1px solid #667e6e; border-radius: 7px; background: #14251d; color: var(--ink) }
.lab-tray textarea::placeholder { color: #bfccbf }
.tray-count { display: block; margin: 3px 0 7px; color: #cedbc9; font-size: 12px }
.lab-tray > .button { width: 100%; min-height: 36px; padding: 7px }
.recent { margin-top: 10px; padding-top: 8px; border-top: 1px solid #668171 }
.recent h3 { margin-bottom: 5px; font-size: 13px }
.recent-grid { display: flex; flex-wrap: wrap; gap: 4px }
.recent-grid p { color: #cedbc9; font-size: 12px }
.recent-grid button { width: 33px; height: 33px; border: 1px solid #6f9077; border-radius: 6px; background: #344f3d; color: #eff0db; font: 19px/1 system-ui }
.recent-grid button:hover { background: #4c7456 }
.lab-empty { display: grid; justify-items: start; gap: 6px; padding: 17px; border: 1px dashed #75907a; border-radius: 12px }
.lab-empty > span { color: var(--gold); font-size: 26px }

@media (max-width: 1080px) { .lab-grid { grid-template-columns: repeat(5,minmax(0,1fr)) } }
@media (max-width: 900px) { .lab-grid { grid-template-columns: repeat(4,minmax(0,1fr)) } }
@media (max-width: 710px) {
  .lab-hero-layout { min-height: 248px; padding-block: 20px; gap: 8px }
  .lab-intro h1 { font-size: clamp(44px,9vw,65px) }
  .lab-art { min-height: 147px }
  .lab-content { grid-template-columns: 1fr; gap: 11px }
  .lab-tray { position: static; grid-row: 1 }
  .lab-tray textarea { min-height: 55px; max-height: 170px }
}
@media (max-width: 450px) {
  .lab-hero-layout { grid-template-columns: minmax(0,1fr) 84px }
  .lab-art-orbit { inset: 32% 0 }
  .lab-art-token { width: 64%; font-size: 29px }
  .token-left,.token-right { width: 33%; font-size: 15px }
  .lab-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px }
  .lab-tile { min-height: 86px }
  .lab-tile .symbol-glyph { font-size: 29px }
}
@media (max-width: 345px) { .lab-hero-layout { grid-template-columns: minmax(0,1fr) 71px } }
