.biome-workbench-page {
    background:
        linear-gradient(rgba(40, 31, 26, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 31, 26, 0.045) 1px, transparent 1px),
        #f2e8c9;
    background-size: 24px 24px;
}

.biome-lab {
    display: grid;
    gap: 22px;
    width: min(1680px, calc(100% - 32px));
    margin: 18px auto 42px;
    color: #17171b;
}

.biome-lab h1,
.biome-lab h2,
.biome-lab h3,
.biome-lab p {
    margin-top: 0;
}

.biome-lab-hero,
.biome-direction-console,
.biome-source-workshop,
.biome-workbench-pack,
.biome-recent-shelf {
    border: 3px solid #211b18;
    box-shadow: 9px 9px 0 #168e89, 13px 13px 0 #211b18;
}

.biome-lab-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    min-height: 250px;
    padding: clamp(26px, 4vw, 58px);
    background:
        radial-gradient(circle at 85% 18%, rgba(245, 188, 58, 0.32), transparent 25%),
        linear-gradient(135deg, #eef9f6 0 42%, #fff9e8 82%);
}

.biome-lab-hero h1 {
    max-width: 900px;
    margin-bottom: 12px;
    font: 900 clamp(3rem, 6.4vw, 7.2rem)/0.84 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.biome-lab-hero > div:first-child > p:last-child {
    max-width: 820px;
    margin-bottom: 0;
    color: #505664;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-weight: 750;
    line-height: 1.5;
}

.biome-lab-status {
    display: grid;
    gap: 8px;
    min-width: 250px;
    padding: 17px;
    border: 2px solid #211b18;
    background: #fffef7;
    font: 900 0.78rem/1.25 "Courier New", monospace;
    box-shadow: 5px 5px 0 #f0642c;
}

.biome-lab-status span {
    color: #087d72;
}

.biome-lab-status i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: #00a881;
    box-shadow: 0 0 0 4px rgba(0, 168, 129, 0.17);
}

.biome-direction-console,
.biome-source-workshop,
.biome-workbench-pack,
.biome-recent-shelf {
    background: #fffdf6;
}

.biome-console-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: #2b211c;
    color: #fff6dd;
}

.biome-console-head > div {
    display: flex;
    align-items: center;
    gap: 17px;
}

.biome-console-head > div > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: #f5662d;
    color: #17171b;
    font: 900 1.35rem/1 "Courier New", monospace;
}

.biome-console-head h2,
.biome-result-head h2 {
    margin: 0;
    font: 900 clamp(2rem, 3.6vw, 4.2rem)/0.92 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    text-transform: uppercase;
}

.biome-console-head .eyebrow {
    color: #20b8a8;
}

.biome-console-head > p {
    max-width: 490px;
    margin: 0;
    font-weight: 800;
    line-height: 1.4;
}

.biome-direction-form {
    display: grid;
    gap: 16px;
    padding: 22px 24px 26px;
}

.biome-direction-rack {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(210px, 290px) minmax(180px, 230px);
    gap: 12px;
    align-items: end;
}

.biome-direction-rack label {
    display: grid;
    gap: 7px;
    color: #2b211c;
    font: 900 0.78rem/1.2 "Courier New", monospace;
    letter-spacing: 0.04em;
}

.biome-direction-rack input,
.biome-direction-rack select,
.biome-direction-rack > button {
    width: 100%;
    min-height: 58px;
    border: 2px solid #211b18;
    border-radius: 0;
    background: #fffefb;
    color: #17171b;
    font: inherit;
    font-weight: 850;
}

.biome-direction-rack input,
.biome-direction-rack select {
    padding: 0 14px;
}

.biome-direction-rack > button {
    cursor: pointer;
    background: #f5662d;
    box-shadow: 5px 5px 0 #f2bd3c;
    text-transform: uppercase;
}

.biome-direction-rack > button:hover,
.biome-direction-rack > button:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #f2bd3c;
}

.biome-direction-rack > button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.biome-preset-rack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 2px;
}

.biome-preset-rack > span {
    margin-right: 4px;
    font: 900 0.75rem/1 "Courier New", monospace;
}

.biome-preset-rack button {
    min-height: 37px;
    padding: 7px 11px;
    border: 1px solid #211b18;
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.biome-preset-rack button:hover,
.biome-preset-rack button:focus-visible {
    background: #f2bd3c;
}

.biome-bias-drawer {
    border: 2px solid #211b18;
    background: linear-gradient(90deg, #f7f0d3, #e7f7f3);
}

.biome-bias-drawer summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 900;
}

.biome-bias-drawer .bias-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 15px 16px;
}

.biome-bias-drawer .control-row {
    display: grid;
    gap: 6px;
}

.biome-bias-drawer label {
    display: flex;
    justify-content: space-between;
    font-weight: 850;
}

.biome-source-workshop {
    padding: 24px;
    background: #fffdf6;
}

.biome-source-workshop > header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.biome-source-workshop > header h2 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 2.8vw, 3rem);
}

.biome-source-workshop > header > p {
    max-width: 520px;
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.4;
}

.biome-source-workshop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.biome-source-workshop details {
    border: 2px solid #211b18;
    background: #f3edd8;
    box-shadow: 5px 5px 0 #d9d1b6;
}

.biome-source-workshop summary {
    padding: 15px 17px;
    background: #2b211c;
    color: #fff6dd;
    cursor: pointer;
    font-weight: 950;
    text-transform: uppercase;
}

.biome-source-tool-body {
    display: grid;
    gap: 14px;
    padding: 17px;
}

.biome-source-tool-body > p:first-child {
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.45;
}

.biome-reference-drop {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 3px dashed #211b18;
    background: #fff7d9;
    cursor: pointer;
    text-align: center;
}

.biome-reference-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.biome-reference-drop span {
    display: grid;
    gap: 5px;
}

.biome-reference-drop strong {
    font-size: 1.15rem;
}

.biome-reference-drop small {
    color: #555b66;
    font-weight: 800;
}

.biome-reference-preview {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr);
    gap: 10px;
}

.biome-reference-preview[hidden],
.biome-blend-output[hidden] {
    display: none;
}

.biome-reference-preview img {
    width: 100%;
    height: 150px;
    border: 2px solid #211b18;
    object-fit: cover;
}

.biome-reference-preview [data-biome-reference-palette] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 150px;
    border: 2px solid #211b18;
}

.biome-reference-preview i {
    min-width: 0;
}

.biome-source-tool-body > button,
.biome-blend-output > button {
    min-height: 46px;
    padding: 10px 14px;
    border: 2px solid #211b18;
    background: #f5662d;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 #f2bd3c;
}

.biome-source-tool-body > button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.biome-source-status {
    margin: 0;
    color: #555b66;
    font: 800 0.76rem/1.35 "Courier New", monospace;
}

.biome-blend-selectors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.biome-blend-selectors label,
.biome-blend-ratio {
    display: grid;
    gap: 7px;
    font: 900 0.73rem/1.2 "Courier New", monospace;
}

.biome-blend-selectors select {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 7px 9px;
    border: 2px solid #211b18;
    background: #fff;
    font: inherit;
    font-weight: 850;
}

.biome-blend-output {
    display: grid;
    gap: 13px;
    padding-top: 4px;
    border-top: 2px solid #211b18;
}

.biome-blend-ratio span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.biome-blend-ratio input {
    width: 100%;
    accent-color: #168e89;
}

.biome-transition-bands {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.biome-transition-bands button {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 5px;
    border: 2px solid #211b18;
    background: #fff;
    cursor: pointer;
}

.biome-transition-bands button[aria-pressed="true"] {
    outline: 4px solid #f5662d;
    outline-offset: 1px;
}

.biome-transition-bands button > span {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 60px;
    overflow: hidden;
}

.biome-transition-bands button i {
    min-width: 0;
}

.biome-transition-bands strong {
    overflow: hidden;
    font: 900 0.66rem/1.15 "Courier New", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.biome-workbench-pack {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fffdf6;
}

.biome-result-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    background:
        linear-gradient(110deg, rgba(22, 142, 137, 0.2), transparent 48%),
        #fffdf6;
}

.biome-result-title > p:last-child {
    max-width: 790px;
    margin: 12px 0 0;
    color: #515663;
    font-weight: 750;
    line-height: 1.45;
}

.biome-result-status {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 2px solid #211b18;
    background: #132f2d;
    color: #f8f1d9;
    box-shadow: 5px 5px 0 #f5662d;
}

.biome-result-status span,
.biome-result-status small {
    font: 800 0.75rem/1.3 "Courier New", monospace;
}

.biome-result-status span {
    color: #59d8ca;
}

.biome-result-status strong {
    font-size: 1.45rem;
}

.biome-scene-console {
    padding: 24px;
    border-top: 3px solid #211b18;
    background: #e9f4ef;
}

.biome-scene-console > header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 16px;
}

.biome-scene-console h3 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.biome-scene-console > header > p {
    max-width: 430px;
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.4;
}

.biome-preview-head-controls {
    display: grid;
    justify-items: end;
    gap: 10px;
    max-width: 520px;
}

.biome-preview-head-controls > p {
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.4;
    text-align: right;
}

.biome-preview-mode {
    display: inline-flex;
    border: 2px solid #211b18;
    background: #ffffff;
}

.biome-preview-mode button {
    min-height: 38px;
    padding: 7px 12px;
    border: 0;
    border-right: 2px solid #211b18;
    background: #ffffff;
    color: #17171b;
    cursor: pointer;
    font: 900 0.75rem/1 "Courier New", monospace;
    text-transform: uppercase;
}

.biome-preview-mode button:last-child {
    border-right: 0;
}

.biome-preview-mode button.is-active {
    background: #f2bd3c;
    box-shadow: inset 0 -5px 0 #f5662d;
}

.biome-preview-stack {
    min-width: 0;
}

.biome-preview-stack > [hidden] {
    display: none !important;
}

.biome-three-preview {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border: 3px solid #211b18;
    background: #152725;
    box-shadow: 6px 6px 0 #211b18;
}

.biome-three-preview canvas {
    display: block;
    width: 100%;
    height: 350px;
    cursor: grab;
    touch-action: none;
}

.biome-three-preview canvas:active {
    cursor: grabbing;
}

.biome-three-status,
.biome-three-hint {
    position: absolute;
    z-index: 4;
    padding: 6px 9px;
    background: rgba(33, 27, 24, 0.9);
    color: #fff6dd;
    font: 900 0.7rem/1.2 "Courier New", monospace;
    pointer-events: none;
}

.biome-three-status {
    inset: 50% auto auto 50%;
    max-width: calc(100% - 30px);
    transform: translate(-50%, -50%);
    text-align: center;
}

.biome-three-hint {
    right: 10px;
    bottom: 10px;
}
.biome-scene-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.55fr);
    gap: 16px;
}

.biome-scene {
    --scene-sky: #8ba9b8;
    --scene-haze: #f2bd3c;
    --scene-ridge-back: #665b55;
    --scene-ridge-front: #806b55;
    --scene-ground: #9c805c;
    --scene-ground-detail: #574b43;
    --scene-prop-one: #463d36;
    --scene-prop-two: #65574a;
    --scene-accent: #f3c44d;
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border: 3px solid #211b18;
    background: var(--scene-sky);
    box-shadow: 6px 6px 0 #211b18;
    isolation: isolate;
}

.biome-scene > div {
    position: absolute;
    transition: background-color 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.biome-scene-sky {
    inset: 0;
    z-index: -5;
    background: linear-gradient(to bottom, var(--scene-sky), color-mix(in srgb, var(--scene-haze) 48%, var(--scene-sky)) 68%, var(--scene-haze));
}

.biome-scene-sky i {
    position: absolute;
    top: 42px;
    right: 12%;
    width: 78px;
    height: 78px;
    border: 3px solid #211b18;
    border-radius: 50%;
    background: var(--scene-accent);
    box-shadow: 0 0 0 13px color-mix(in srgb, var(--scene-accent) 22%, transparent);
}

.biome-scene-sky b {
    position: absolute;
    top: 28px;
    left: 8%;
    width: 160px;
    height: 35px;
    border-top: 4px solid color-mix(in srgb, var(--scene-haze) 68%, transparent);
    border-bottom: 2px solid color-mix(in srgb, var(--scene-haze) 48%, transparent);
    transform: skewX(-24deg);
}

.biome-scene-haze {
    inset: 45% 0 auto;
    z-index: -4;
    height: 25%;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--scene-haze) 72%, transparent), transparent);
    filter: blur(7px);
}

.biome-scene-ridge {
    right: -4%;
    left: -4%;
    transform-origin: bottom;
}

.biome-scene-ridge-back {
    bottom: 32%;
    z-index: -3;
    height: 41%;
    background: var(--scene-ridge-back);
    clip-path: polygon(0 82%, 12% 43%, 22% 68%, 36% 16%, 48% 60%, 63% 29%, 75% 68%, 89% 24%, 100% 57%, 100% 100%, 0 100%);
    opacity: 0.72;
}

.biome-scene-ridge-front {
    bottom: 20%;
    z-index: -2;
    height: 42%;
    background: var(--scene-ridge-front);
    clip-path: polygon(0 70%, 15% 31%, 29% 62%, 44% 8%, 57% 66%, 72% 35%, 87% 57%, 100% 23%, 100% 100%, 0 100%);
}

.biome-scene-ground {
    inset: auto 0 0;
    z-index: -1;
    height: 34%;
    background:
        repeating-linear-gradient(168deg, transparent 0 28px, color-mix(in srgb, var(--scene-ground-detail) 54%, transparent) 29px 33px),
        var(--scene-ground);
    clip-path: polygon(0 16%, 20% 5%, 43% 17%, 63% 0, 81% 13%, 100% 4%, 100% 100%, 0 100%);
}

.biome-scene-prop {
    bottom: 16%;
    z-index: 2;
    border: 3px solid #211b18;
    background: var(--scene-prop-one);
}

.biome-scene-prop::before,
.biome-scene-prop::after {
    content: "";
    position: absolute;
    border: 3px solid #211b18;
    background: inherit;
}

.biome-scene-prop-left {
    left: 15%;
    width: 34px;
    height: 112px;
    transform: skewX(-5deg);
}

.biome-scene-prop-left::before {
    top: 19px;
    right: 27px;
    width: 38px;
    height: 14px;
}

.biome-scene-prop-left::after {
    top: 43px;
    left: 27px;
    width: 45px;
    height: 13px;
}

.biome-scene-prop-right {
    right: 18%;
    width: 82px;
    height: 72px;
    background: var(--scene-prop-two);
    clip-path: polygon(50% 0, 100% 34%, 88% 100%, 10% 100%, 0 33%);
}

.biome-scene-prop-right::before {
    display: none;
}

.biome-scene-prop-right::after {
    top: 24px;
    left: 27px;
    width: 20px;
    height: 32px;
    background: var(--scene-accent);
}

.biome-scene-effect {
    z-index: 3;
    width: 12px;
    height: 12px;
    border: 2px solid #211b18;
    border-radius: 50%;
    background: var(--scene-accent);
    box-shadow: 34px -38px 0 -2px var(--scene-accent), 68px 8px 0 -3px var(--scene-accent), 94px -56px 0 -2px var(--scene-accent);
}

.biome-scene-effect-one {
    bottom: 31%;
    left: 28%;
}

.biome-scene-effect-two {
    right: 34%;
    bottom: 25%;
    transform: scale(0.72);
}

.biome-scene[data-highlight-layer="terrain"] [data-biome-scene-zone="terrain"],
.biome-scene[data-highlight-layer="props"] [data-biome-scene-zone="props"],
.biome-scene[data-highlight-layer="effects"] [data-biome-scene-zone="effects"] {
    filter: brightness(1.18) saturate(1.24) drop-shadow(0 0 7px #fff8cf);
}

.biome-scene > span {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 6;
    padding: 5px 8px;
    background: #211b18;
    color: #fff6dd;
    font: 900 0.72rem/1.1 "Courier New", monospace;
}

.biome-variant-controls {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border: 3px solid #211b18;
    background: #fffdf6;
    box-shadow: 6px 6px 0 #f5662d;
}

.biome-variant-controls > span {
    font: 900 0.76rem/1 "Courier New", monospace;
}

.biome-variant-controls > div[role="group"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.biome-variant-controls button {
    min-height: 39px;
    border: 2px solid #211b18;
    background: #ffffff;
    color: #17171b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.biome-variant-controls button.is-active {
    background: #f2bd3c;
    box-shadow: inset 0 -5px 0 #f5662d;
}

.biome-variant-controls > p {
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.4;
}

.biome-lock-summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 2px solid #211b18;
    font: 900 0.8rem/1 "Courier New", monospace;
}

.biome-lock-summary button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}
.biome-comparison-console {
    margin-top: 18px;
    border: 2px solid #211b18;
    background: #fffdf6;
    box-shadow: 5px 5px 0 rgba(33, 27, 24, 0.24);
}

.biome-comparison-console > summary {
    padding: 14px 16px;
    background: #2b211c;
    color: #fff6dd;
    cursor: pointer;
    font-weight: 950;
    text-transform: uppercase;
}

.biome-comparison-console > p {
    margin: 14px 16px;
    color: #555b66;
    font-weight: 750;
}

.biome-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.biome-comparison-grid article {
    min-width: 0;
    border: 2px solid #211b18;
    background: #f3edd8;
    box-shadow: 4px 4px 0 #d9d1b6;
}

.biome-comparison-grid label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    font: 900 0.72rem/1 "Courier New", monospace;
}

.biome-comparison-grid select {
    min-width: 0;
    min-height: 36px;
    border: 2px solid #211b18;
    background: #fff;
    font: inherit;
    font-weight: 900;
}

.biome-compare-scene {
    position: relative;
    height: 112px;
    border-top: 2px solid #211b18;
    border-bottom: 2px solid #211b18;
}

.biome-compare-scene::after {
    content: attr(data-variant-label);
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    background: #211b18;
    color: #fff6dd;
    font: 900 0.68rem/1 "Courier New", monospace;
    text-transform: uppercase;
}

.biome-compare-materials {
    display: grid;
    grid-template-columns: repeat(5, minmax(24px, 1fr));
    gap: 5px;
    padding: 10px;
}

.biome-compare-materials button {
    aspect-ratio: 1;
    min-width: 0;
    border: 2px solid #211b18;
    cursor: pointer;
}

.biome-compare-materials button:hover,
.biome-compare-materials button:focus-visible {
    outline: 3px solid #f5662d;
    outline-offset: 1px;
    transform: translateY(-2px);
}

.biome-comparison-status {
    font: 800 0.76rem/1.35 "Courier New", monospace;
}
.biome-layer-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 3px solid #211b18;
    border-bottom: 3px solid #211b18;
}

.biome-layer-tabs button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
    min-height: 82px;
    padding: 12px 16px;
    border: 0;
    border-right: 2px solid #211b18;
    background: #ede6cc;
    color: #17171b;
    cursor: pointer;
    text-align: left;
}

.biome-layer-tabs button:last-child {
    border-right: 0;
}

.biome-layer-tabs button[aria-selected="true"] {
    background: #f2bd3c;
    box-shadow: inset 0 -7px 0 #f5662d;
}

.biome-layer-tabs span {
    grid-row: 1 / span 2;
    font: 900 1.2rem/1 "Courier New", monospace;
}

.biome-layer-tabs strong {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.biome-layer-tabs small {
    color: #555b66;
    font-weight: 800;
}

.biome-material-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: 0;
    align-items: stretch;
}

.biome-layer-panels {
    min-width: 0;
    padding: 24px;
    border-right: 3px solid #211b18;
    background: #f3edd8;
}

.biome-layer-panel[hidden] {
    display: none;
}

.biome-layer-panel > header,
.biome-system-checks > header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.biome-layer-panel h3,
.biome-system-checks h3,
.biome-export-console h3,
.biome-recent-shelf h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.biome-layer-panel > header > p,
.biome-system-checks > header > p {
    max-width: 430px;
    margin: 0;
    color: #555b66;
    font-weight: 750;
    line-height: 1.4;
}

.biome-material-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.biome-material-tile {
    position: relative;
    display: grid;
    grid-template-rows: 112px minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 315px;
    padding: 0;
    border: 2px solid #211b18;
    background: #fffef9;
    color: #17171b;
    cursor: pointer;
    text-align: left;
    box-shadow: 4px 4px 0 rgba(33, 27, 24, 0.22);
}

.biome-material-tile:hover,
.biome-material-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 5px 7px 0 rgba(33, 27, 24, 0.28);
}

.biome-material-tile.is-selected {
    outline: 5px solid #f5662d;
    outline-offset: -5px;
    box-shadow: 7px 7px 0 #168e89;
}

.biome-material-tile.is-locked::after {
    content: "LOCKED";
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 7px;
    border: 2px solid #211b18;
    background: #f2bd3c;
    color: #17171b;
    font: 900 0.68rem/1 "Courier New", monospace;
    box-shadow: 3px 3px 0 #168e89;
}

.biome-inspector-actions [data-biome-lock-selected][aria-pressed="true"] {
    background: #f2bd3c;
    color: #17171b;
}

.biome-material-tile-colour {
    display: block;
    background: var(--material-colour);
    border-bottom: 2px solid #211b18;
}

.biome-material-tile-copy {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 11px;
}

.biome-material-tile-copy strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.biome-material-tile-copy small {
    width: fit-content;
    padding: 3px 5px;
    background: #211b18;
    color: #fff7de;
    font: 800 0.7rem/1 "Courier New", monospace;
}

.biome-material-tile-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: #565b66;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.biome-material-tile > b {
    padding: 9px 11px;
    border-top: 1px solid #aaa38f;
    font: 900 0.72rem/1 "Courier New", monospace;
    text-transform: uppercase;
}

.biome-material-inspector {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 24px;
    background: #e7f5f2;
}

.biome-material-inspector h3 {
    margin-bottom: 0;
    font-size: 1.85rem;
}

.biome-inspector-colour {
    display: grid;
    place-items: end start;
    min-height: 155px;
    padding: 14px;
    border: 3px solid #211b18;
    box-shadow: 6px 6px 0 #f2bd3c;
}

.biome-inspector-colour span {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #17171b;
    font: 900 1rem/1 "Courier New", monospace;
}

.biome-inspector-colour.use-light-copy span {
    background: rgba(21, 22, 26, 0.88);
    color: #ffffff;
}

.biome-inspector-use {
    margin: 0;
    color: #4f5662;
    font-weight: 750;
    line-height: 1.45;
}

.biome-inspector-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.biome-inspector-meta span,
.biome-inspector-meta strong {
    padding: 6px 8px;
    border: 1px solid #211b18;
    background: #fffdf6;
    font: 900 0.72rem/1.15 "Courier New", monospace;
    text-transform: uppercase;
}

.biome-recipe-editor,
.biome-alternative-panel {
    border: 2px solid #211b18;
    background: rgba(255, 255, 255, 0.82);
}

.biome-recipe-editor > summary,
.biome-alternative-panel > summary {
    padding: 10px 12px;
    cursor: pointer;
    background: linear-gradient(90deg, #f7f0d3, #e7f7f3);
    font-weight: 900;
}

.biome-recipe-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #211b18;
}

.biome-recipe-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #444b56;
    font-size: 0.74rem;
    font-weight: 850;
}

.biome-recipe-fields label > span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    text-transform: uppercase;
}

.biome-recipe-fields input[type="text"],
.biome-recipe-fields textarea,
.biome-recipe-fields select {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #211b18;
    border-radius: 0;
    background: #ffffff;
    color: #17171b;
    font: inherit;
    font-weight: 800;
}

.biome-recipe-fields input[type="color"] {
    width: 100%;
    min-height: 40px;
    padding: 2px;
    border: 1px solid #211b18;
    background: #ffffff;
}

.biome-recipe-fields input[type="range"] {
    width: 100%;
}

.biome-edit-wide {
    grid-column: 1 / -1;
}

.biome-recipe-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}

.biome-recipe-editor-actions button,
.biome-alternative-grid button {
    min-height: 39px;
    border: 2px solid #211b18;
    background: #ffffff;
    color: #17171b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.biome-recipe-editor-actions [data-biome-apply-edit] {
    background: #f5662d;
    color: #ffffff;
}

.biome-alternative-panel > p {
    margin: 10px 12px 0;
    color: #555b66;
    font-size: 0.78rem;
    font-weight: 750;
}

.biome-alternative-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 12px 12px;
}

.biome-alternative-grid button {
    display: grid;
    grid-template-rows: 40px auto;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.biome-alternative-grid button > i {
    display: block;
    border-bottom: 2px solid #211b18;
}

.biome-alternative-grid button > span {
    display: grid;
    gap: 3px;
    padding: 7px;
}

.biome-alternative-grid button strong,
.biome-alternative-grid button b,
.biome-alternative-grid button small {
    overflow-wrap: anywhere;
}

.biome-alternative-grid button b {
    font: 900 0.68rem/1 "Courier New", monospace;
}

.biome-alternative-grid button small {
    color: #555b66;
    font-size: 0.68rem;
}
.biome-property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.biome-property-grid > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 9px;
    border: 1px solid #211b18;
    background: rgba(255, 255, 255, 0.82);
}

.biome-property-grid span {
    color: #555b66;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.biome-property-grid strong {
    font: 900 0.85rem/1 "Courier New", monospace;
}

.biome-property-grid i {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    background: #d5d7d3;
}

.biome-property-grid i b {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #168e89, #f2bd3c, #f5662d);
    transition: width 180ms ease;
}

.biome-mask-details {
    border: 1px solid #211b18;
    background: rgba(255, 255, 255, 0.72);
}

.biome-mask-details summary {
    padding: 9px 11px;
    cursor: pointer;
    font-weight: 850;
}

.biome-mask-details dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0 10px 10px;
}

.biome-mask-details dl div {
    padding: 7px;
    background: #f3edd8;
}

.biome-mask-details dt,
.biome-mask-details dd {
    margin: 0;
}

.biome-mask-details dt {
    color: #555b66;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.biome-mask-details dd {
    font-weight: 900;
}

.biome-inspector-actions,
.biome-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.biome-inspector-actions button,
.biome-export-actions button,
.biome-account-save button {
    min-height: 42px;
    padding: 9px 12px;
    border: 2px solid #211b18;
    background: #ffffff;
    color: #17171b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.biome-inspector-actions [data-send-noise-material] {
    background: #168e89;
    color: #ffffff;
}

.biome-inspector-actions [data-send-material],
.biome-export-actions [data-export-biome-pack],
.biome-export-actions [data-export-engine-pack] {
    background: #f5662d;
    color: #ffffff;
}

.biome-inspector-status,
.biome-export-status {
    margin: 0;
    font: 800 0.76rem/1.35 "Courier New", monospace;
}

.biome-system-checks {
    padding: 24px;
    border-top: 3px solid #211b18;
    background: #fffdf6;
}

.biome-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.biome-check-grid article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 2px solid #211b18;
    background: #ffffff;
    box-shadow: 4px 4px 0 #d9d1b6;
}

.biome-check-grid article[data-check-state="pass"] {
    border-bottom-color: #168e89;
}

.biome-check-grid article[data-check-state="review"] {
    border-bottom-color: #f5662d;
    box-shadow: 4px 4px 0 #f2bd3c;
}
.biome-check-grid span {
    color: #555b66;
    font: 900 0.72rem/1.2 "Courier New", monospace;
    text-transform: uppercase;
}

.biome-check-grid strong {
    font-size: 1.35rem;
}

.biome-check-grid small {
    color: #555b66;
    font-weight: 750;
    line-height: 1.35;
}

.biome-export-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 22px;
    align-items: center;
    padding: 24px;
    border-top: 3px solid #211b18;
    background: #2b211c;
    color: #fff6dd;
}

.biome-export-console > div:first-child p:last-child {
    max-width: 680px;
    margin-bottom: 0;
    color: #d8cfb7;
}

.biome-export-actions {
    justify-content: end;
}

.biome-export-status,
.biome-account-save {
    grid-column: 1 / -1;
}

.biome-account-save {
    padding-top: 10px;
    border-top: 1px solid #766b5d;
}

.biome-account-save form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.biome-account-save button {
    background: #f2bd3c;
}

.biome-account-save p,
.biome-account-save small {
    margin: 0;
    color: #fff6dd;
    font-weight: 800;
}

.biome-account-save a {
    color: #70dfd3;
}

.biome-recent-shelf {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.biome-recent-shelf > header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.biome-recent-shelf > header a {
    padding: 9px 12px;
    border: 2px solid #211b18;
    background: #f2bd3c;
    color: #17171b;
    font-weight: 900;
    text-decoration: none;
}

.biome-recent-shelf .saved-biome-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .biome-material-workspace,
    .biome-result-head,
    .biome-scene-layout {
        grid-template-columns: 1fr;
    }
    .biome-layer-panels {
        border-right: 0;
        border-bottom: 3px solid #211b18;
    }

    .biome-material-strip {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
        overflow-x: auto;
        padding: 5px 7px 12px 5px;
    }

    .biome-material-inspector {
        grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
    }

    .biome-material-inspector > header,
    .biome-material-inspector > .biome-inspector-use,
    .biome-material-inspector > .biome-inspector-meta,
    .biome-material-inspector > .biome-recipe-editor,
    .biome-material-inspector > .biome-alternative-panel,
    .biome-material-inspector > .biome-mask-details,
    .biome-material-inspector > .biome-inspector-actions,
    .biome-material-inspector > .biome-inspector-status {
        grid-column: 2;
    }

    .biome-material-inspector > .biome-inspector-colour {
        grid-column: 1;
        grid-row: 1 / span 4;
    }

    .biome-material-inspector > .biome-property-grid {
        grid-column: 2;
    }
}
@media (max-width: 860px) {
    .biome-lab {
        width: min(100% - 18px, 1680px);
        margin-top: 10px;
    }

    .biome-source-workshop-grid {
        grid-template-columns: 1fr;
    }

    .biome-source-workshop > header {
        align-items: flex-start;
        flex-direction: column;
    }
    .biome-lab-hero,
    .biome-direction-rack,
    .biome-material-inspector,
    .biome-export-console {
        grid-template-columns: 1fr;
    }

    .biome-lab-status {
        min-width: 0;
    }

    .biome-console-head,
    .biome-scene-console > header,
    .biome-layer-panel > header,
    .biome-system-checks > header,
    .biome-recent-shelf > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .biome-preview-head-controls {
        justify-items: start;
        max-width: none;
    }

    .biome-preview-head-controls > p {
        text-align: left;
    }
    .biome-comparison-grid {
        grid-template-columns: 1fr;
    }

    .biome-bias-drawer .bias-panel,
    .biome-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .biome-layer-tabs button {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px;
    }

    .biome-layer-tabs span {
        display: none;
    }

    .biome-material-inspector > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .biome-export-actions {
        justify-content: start;
    }

    .biome-recent-shelf .saved-biome-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .biome-source-workshop {
        padding-left: 14px;
        padding-right: 14px;
    }

    .biome-reference-preview,
    .biome-blend-selectors {
        grid-template-columns: 1fr;
    }

    .biome-transition-bands {
        grid-template-columns: repeat(5, minmax(46px, 1fr));
        overflow-x: auto;
        padding: 5px;
    }
    .biome-lab-hero {
        min-height: 0;
        padding: 24px 18px;
    }

    .biome-lab-hero h1 {
        font-size: clamp(2.8rem, 16vw, 5rem);
    }

    .biome-console-head,
    .biome-direction-form,
    .biome-result-head,
    .biome-layer-panels,
    .biome-material-inspector,
    .biome-system-checks,
    .biome-export-console,
    .biome-recent-shelf {
        padding-left: 14px;
        padding-right: 14px;
    }

    .biome-layer-tabs small {
        display: none;
    }

    .biome-layer-tabs strong {
        font-size: 0.78rem;
    }

    .biome-check-grid,
    .biome-property-grid,
    .biome-bias-drawer .bias-panel {
        grid-template-columns: 1fr;
    }

    .biome-preview-mode {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .biome-recipe-fields,
    .biome-alternative-grid {
        grid-template-columns: 1fr;
    }
    .biome-mask-details dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}