.texture-labels { pointer-events: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; inset: 0; }
.texture-labels span { align-self: start; width: max-content; max-width: calc(100% - 1.1rem); margin: 0.55rem; padding: 0.4rem 0.55rem; border-radius: 0.35rem; background: #101911eb; color: #f6f8ee; font-size: 0.77rem; line-height: 1.25; }
.texture-labels::after { content: ""; position: absolute; inset: 0 50% 0 auto; width: 1px; background: #b7d5a7; }
.viewer-picker small { display: block; font-size: 0.74rem; font-weight: 500; margin-top: 0.18rem; }
.texture-stage { height: clamp(20rem, 67vw, 37rem); }
.comparison-picker { display: grid; gap: .4rem; margin-block: .8rem; }
.comparison-picker label { font-weight: 700; }
.comparison-picker select { min-width: 0; width: 100%; min-height: 46px; padding: .6rem; border: 1px solid #617760; border-radius: .45rem; color: var(--text); background: var(--surface); font: inherit; }
.comparison-picker p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.texture-share { display: grid; gap: .5rem; margin-block: 1rem; min-width: 0; }
.texture-share label { font-weight: 700; font-size: .9rem; }
.texture-share input { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #617760; border-radius: .45rem; padding: .6rem; background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; }
.texture-share-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.texture-share-actions a, .texture-share-actions button { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem .75rem; border: 1px solid #617760; border-radius: .45rem; background: var(--surface); color: var(--accent); font: inherit; cursor: pointer; }
.texture-share p { margin: 0; font-size: .85rem; color: var(--muted); }
.block-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-block: 0.75rem; }
.block-filters label { min-width: 0; display: grid; gap: 0.25rem; font-size: 0.83rem; color: var(--muted); }
.block-filters label:first-child { grid-column: 1 / -1; }
.block-filters input, .block-filters select { min-width: 0; width: 100%; min-height: 44px; color: var(--text); background: var(--surface); border: 1px solid #617760; border-radius: 0.45rem; padding: 0.3rem 0.55rem; font: inherit; }
.block-filters input::placeholder { color: var(--muted); }
.block-gallery { margin-block: 1.15rem; }
.block-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 0.6rem; }
.block-heading h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin-bottom: 0.4rem; }
.block-heading p { margin-bottom: 0; }
.block-pages { display: flex; gap: 0.4rem; }
.block-pages button { min-width: 44px; min-height: 44px; background: #26372b; border: 1px solid #667963; color: var(--text); border-radius: 0.45rem; font: inherit; cursor: pointer; }
.block-pages button:disabled { opacity: 0.5; cursor: default; }
.block-totals { margin: 0.55rem 0 0.8rem; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.block-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.block-card { display: grid; text-align: left; align-content: center; gap: 0.18rem; min-width: 0; min-height: 56px; padding: 0.45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.45rem; color: var(--text); font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.block-card strong { font-size: 0.82rem; line-height: 1.25; }
.block-card span { color: var(--muted); font-size: 0.72rem; }
.block-card[aria-pressed="true"] { border-color: #deb66f; background: #342d21; }
.block-detail { margin-block: 0.75rem; padding: 0.75rem; border: 1px solid #63785f; border-radius: 0.55rem; background: var(--surface); overflow-wrap: anywhere; }
.block-detail h3 { margin-bottom: 0.25rem; }
.block-detail > code { color: var(--accent); }
.block-faces { display: grid; gap: 0.5rem; padding: 0; margin: 0.85rem 0 0; list-style: none; }
.block-face { display: grid; gap: .4rem; min-width: 0; padding-block: .4rem; border-top: 1px solid var(--line); }
.block-face div { display: grid; font-size: 0.8rem; line-height: 1.3; }
.block-face div span, .block-face code { color: var(--muted); }
.block-face code { font-size: 0.72rem; }
.block-swatch { width: 32px; height: 32px; background-color: #637165; background-repeat: no-repeat; }
@media (max-width: 25rem) {
  .block-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 45rem) {
  .block-filters { grid-template-columns: 1.4fr 1fr 1fr; }
  .block-filters label:first-child { grid-column: auto; }
  .block-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .block-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.texture-local { margin-block: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; min-width: 0; }
.texture-local h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.texture-local input { display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: .5rem; font: inherit; font-size: .85rem; }
.texture-local p, .texture-local details { font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.texture-local summary { cursor: pointer; min-height: 44px; padding-block: .5rem; }

.block-view-jump { display: flex; align-items: center; min-height: 44px; margin-block: .4rem; color: var(--accent); }
.block-face .block-face-sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; min-width: 0; }
.block-face .block-face-side { display: grid; align-content: start; gap: .3rem; min-width: 0; padding: .4rem; border: 1px solid var(--line); border-radius: .35rem; }
.block-side-label { color: var(--text); font-size: .78rem; }
.block-source-relation { color: var(--muted); font-size: .75rem; line-height: 1.4; }

.block-face .block-face-sides.two-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
