.items-workbench {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding: 16px 0 32px;
}

.items-workbench .list-hero {
    margin: 0;
    padding: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hero-stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 6px;
}

.hero-stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) 356px;
    gap: 16px;
    align-items: start;
}

.main-stack,
.side-stack {
    display: grid;
    gap: 16px;
}

.subtle-count {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.toolbar-filters {
    margin-top: -8px;
}

.search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
}

.search-box .search-icon {
    color: var(--muted);
    font-size: 14px;
}

.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.sort-select {
    display: block;
}

.sort-select select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
    color: var(--text);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.sort-select select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(226, 180, 67, 0.16);
}

.mini-button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: normal;
    line-height: 1.3;
}

.mini-button:hover,
.mini-button.is-active {
    border-color: var(--gold);
    background: var(--panel-2);
    color: #fff;
}

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

.item-tile {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--bg-2);
    color: var(--text);
    transition: all 0.16s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-tile:hover {
    border-color: var(--line-strong);
    background: var(--panel-2);
    transform: translateY(-1px);
}

.item-tile.is-active {
    border-color: var(--gold);
    background: var(--panel-2);
    box-shadow: 0 0 12px rgba(226, 180, 67, 0.12);
    outline: 1px solid var(--gold);
}

.tile-glyph {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(226, 180, 67, 0.12), rgba(7, 12, 10, 0.38)), var(--panel);
    color: var(--gold);
    display: grid;
    place-items: center;
}

.tile-glyph svg,
.tile-glyph img {
    width: 24px;
    height: 24px;
    display: block;
    image-rendering: pixelated;
}

.tile-name {
    font-size: 15px;
    font-weight: 750;
    color: #fff;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.tile-const {
    color: var(--soft);
    font-size: 10px;
    font-family: SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
}

.tile-summary {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    min-height: 54px;
}

.tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.route-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-2);
}

.route-card h3 {
    font-size: 13px;
    font-weight: 850;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}

.route-intro {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.route-list {
    display: grid;
    gap: 8px;
}

.route-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

a.route-row:hover {
    border-color: rgba(226, 180, 67, 0.32);
    background: var(--panel-2);
    transform: translateY(-1px);
}

.route-thumb {
    width: 54px;
    height: 42px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.route-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.route-thumb.is-sprite img {
    object-fit: contain;
    background: radial-gradient(circle at center, rgba(226, 180, 67, 0.08), transparent 68%), var(--bg);
    padding: 4px;
}

.route-thumb-fallback {
    color: var(--gold);
    font-size: 12px;
    font-weight: 850;
}

.route-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.route-copy strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

.route-copy small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.route-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--line-strong);
    color: var(--gold);
    background: var(--bg-2);
    align-self: start;
    text-align: center;
    overflow-wrap: anywhere;
}

.empty-block {
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed var(--line-strong);
    color: var(--soft);
    font-size: 11px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
}

.feature-frame {
    display: grid;
    gap: 14px;
}

.feature-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.feature-info,
.feature-price {
    min-width: 0;
}

.feature-kicker {
    color: var(--soft);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-info h2 {
    font-size: 20px;
    font-weight: 850;
    color: #fff;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.price-label {
    display: block;
    color: var(--soft);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
    text-align: right;
}

.feature-price strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-align: right;
}

.feature-visual {
    height: 184px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 30%, rgba(226, 180, 67, 0.18), transparent 54%), var(--bg-2);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.feature-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.feature-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 13, 0.12), rgba(8, 16, 13, 0.8));
}

.medallion {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    background: rgba(17, 34, 26, 0.92);
    box-shadow: 0 0 16px rgba(226, 180, 67, 0.15);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.medallion::after {
    content: none;
}

.medallion svg,
.medallion img {
    width: 48px;
    height: 48px;
    display: block;
    image-rendering: pixelated;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.detail-panel-title {
    font-size: 16px;
    font-weight: 850;
    color: #fff;
    margin: 0 0 4px;
}

.detail-panel-desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.fast-answer-box {
    border: 1px solid rgba(226, 180, 67, 0.28);
    border-radius: 6px;
    padding: 12px;
    background: rgba(226, 180, 67, 0.05);
    margin-bottom: 14px;
}

.fast-answer-box h3 {
    font-size: 11px;
    font-weight: 850;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}

.fast-answer-box p {
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.badge-pill {
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2.5px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.badge-pill.is-true {
    border: 1px solid var(--green);
    color: var(--green);
    background: rgba(68, 201, 130, 0.08);
}

.badge-pill.is-false {
    border: 1px solid var(--red);
    color: var(--red);
    background: rgba(225, 83, 83, 0.08);
}

.badge-pill.is-neutral {
    border: 1px solid var(--line-strong);
    color: var(--gold);
    background: var(--panel);
}

.cheat-panel {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    margin-top: 14px;
}

.cheat-panel h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 850;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.connected-link-grid {
    display: grid;
    gap: 8px;
}

.connected-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 11px;
    transition: border-color 0.16s ease, background 0.16s ease;
    min-width: 0;
}

.connected-link:hover {
    border-color: rgba(226, 180, 67, 0.32);
    background: var(--panel-2);
}

.connected-link span,
.connected-link small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.connected-link small {
    color: var(--muted);
    font-size: 10px;
}

.fact-stack {
    display: grid;
    gap: 6px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12px;
}

.fact-row:last-child {
    border-bottom: 0;
}

.fact-row span {
    color: var(--soft);
}

.fact-row strong {
    color: var(--text);
    font-family: SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    text-align: right;
    max-width: 58%;
    overflow-wrap: anywhere;
}

.source-panel {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.source-box {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.source-box h3 {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 850;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-link-list,
.holder-list {
    display: grid;
    gap: 8px;
}

.mini-link-card,
.holder-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.mini-link-card:hover,
.holder-card:hover {
    border-color: rgba(226, 180, 67, 0.32);
    background: rgba(255, 255, 255, 0.02);
}

.mini-link-avatar,
.holder-avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.mini-link-avatar img,
.holder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.mini-link-copy,
.holder-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.mini-link-copy strong,
.holder-copy strong {
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.mini-link-copy small,
.holder-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .shelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shelf,
    .route-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .route-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .route-badge {
        grid-column: 2;
        justify-self: start;
    }

    .feature-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-price {
        margin-top: 8px;
    }

    .price-label,
    .feature-price strong {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .items-workbench {
        width: min(100%, calc(100% - 16px));
    }

    .items-workbench .list-hero,
    .tool-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .toolbar > * {
        width: 100%;
    }

    .search-box,
    .sort-select select {
        width: 100%;
    }

    .item-tile,
    .route-card,
    .source-box,
    .cheat-panel,
    .fast-answer-box {
        padding: 12px;
    }

    .connected-link {
        flex-direction: column;
        align-items: flex-start;
    }
}
