.bs-market,
.bs-market-disclosure {
    --market-line: var(--bsh-ui-line);
    --market-surface: var(--bsh-ui-card);
    --market-muted: var(--bsh-ui-muted);
    --market-accent: var(--bsh-ui-accent);
    min-width: 0;
    color: #f3f0e8;
}
.bs-market {
    overflow: hidden;
    border: 1px solid var(--market-line);
    border-top: 2px solid var(--market-accent);
    border-radius: .6rem;
    background: var(--market-surface);
}
.bs-market [hidden] { display: none !important; }
.bs-market-content { padding: clamp(.75rem, 2vw, 1.25rem); }
.bs-market-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .6rem 1rem;
}
.bs-market-field {
    display: grid;
    flex: 1 1 10rem;
    gap: .25rem;
    min-width: 0;
    color: var(--market-muted);
    font-size: .9em;
}
.bs-market-field:has(input) { flex-grow: 2; }
.bs-market-field :is(select, input),
.bs-market-favourite,
.bs-market-more,
.bs-market-pages button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 2.5rem;
    padding: .35rem .65rem;
    border: 1px solid var(--market-line);
    border-radius: .3rem;
    background: var(--bsh-ui-page);
    color: #f3f0e8;
    font: inherit;
}
.bs-market-field :is(select, input) { width: 100%; }
.bs-market-field select:disabled { color: var(--market-muted); }
.bs-market :is(select, input, button, a):focus-visible {
    outline: 2px solid #ffd38b;
    outline-offset: 2px;
}
.bs-market .bs-market-status { margin: .8rem 0; color: var(--market-muted); font-size: .92em; }
.bs-market .bs-market-exchange { margin: .5rem 0 .85rem; color: var(--market-muted); font-size: .88em; }
.bs-market :is(.bs-market-exchange,.bs-market-price) img { vertical-align: middle; }
.bs-market button.bs-market-item {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: help;
}
#marktplatz-items, #marktplatz-marktpreise {
    scroll-margin-top: calc(var(--bsh-nav-space, 80px) + var(--bsh-admin-offset, 0px) + 1rem);
}
.bs-market-table { width: 100%; }
.bs-market .bs-market-table table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-collapse: collapse;
    background: var(--bsh-ui-card);
}
.bs-market-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.bs-market-table :is(th, td) {
    padding: .55rem .7rem;
    border: 0;
    border-bottom: 1px solid var(--bsh-ui-line);
    background: transparent;
    font-weight: normal;
    line-height: 1.35;
    text-align: start;
    vertical-align: middle;
}
.bs-market-table thead th { color: var(--market-accent); background: var(--bsh-ui-panel); font-weight: 650; }
.bs-market-table thead th:nth-child(2),
.bs-market-table .bs-market-price { text-align: end; }
.bs-market-table :is(th, td):nth-child(3) { width: 1%; text-align: center; }
.bs-market-item { display: flex; align-items: center; gap: .65rem; overflow-wrap: anywhere; }
.bs-market-icon { flex: 0 0 28px; width: 28px; height: 28px; }
.bs-market-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bs-market-item small,
.bs-market-price small { display: block; color: var(--market-muted); font-size: .85em; }
.bs-market-price strong { color: #f4d49c; font-variant-numeric: tabular-nums; }
.bs-market .bs-market-favourite { min-width: 2.5rem; padding: .2rem; color: #e8c388; font-size: 1.15rem; }
.bs-market-favourite[aria-pressed=true] { background: #383022; border-color: #b18d59; }
.bs-market-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .7rem; padding-top: .8rem; }
.bs-market-pages span { color: var(--market-muted); font-variant-numeric: tabular-nums; }
.bs-market-pages button:disabled { opacity: .5; }
.bs-market-more { margin-top: .8rem; }
.bs-market .bs-market-source { margin: 0; padding: .55rem clamp(.75rem, 2vw, 1.25rem); border-top: 1px solid var(--market-line); }
.bs-market-disclosure { margin-block: .75rem; }
.bs-market-disclosure > summary { cursor: pointer; padding-block: .5rem; }
@media (max-width: 36rem) {
    .bs-market-field { flex-basis: 8.5rem; }
    .bs-market-field:has(input) { flex-basis: 100%; }
    .bs-market-table :is(th, td) { padding: .45rem .3rem; }
    .bs-market-item { gap: .35rem; }
    .bs-market-icon { flex-basis: 20px; width: 20px; height: 20px; }
    .bs-market-pages { justify-content: space-between; }
}

.bs-market-workspace{display:grid;grid-template-columns:clamp(12.5rem,20%,18rem) minmax(0,1fr);gap:clamp(.85rem,2vw,2rem);align-items:start}
.bs-market-categories{display:grid;gap:.22rem}
.bs-market-categories button,.bs-market-leagues button{display:flex;align-items:center;text-align:start;gap:.65rem;min-height:44px;background:var(--bsh-ui-card);border:1px solid transparent;color:var(--bsh-ui-ink);border-radius:.32rem;padding:.3rem .6rem;font:inherit;line-height:1.18;cursor:pointer}
.bs-market-categories button{width:100%;font-size:1rem}
.bs-market-categories img{width:2.55rem;height:2.55rem;object-fit:contain;flex:none}
.bs-market :is(.bs-market-categories,.bs-market-leagues) button:hover{background:var(--bsh-ui-hover)}
.bs-market :is(.bs-market-categories,.bs-market-leagues) button[aria-pressed=true]{border-color:var(--market-accent);background:var(--bsh-ui-accent-tint);box-shadow:inset 3px 0 var(--market-accent);color:var(--bsh-ui-ink);font-weight:650}
.bs-market-leagues{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;width:100%;padding-bottom:.55rem;border-bottom:1px solid var(--market-line)}
.bs-market-leagues b{padding:.32em;border-radius:.22rem;color:#bbdbf3;background:#273a45;font-size:.81rem}
.bs-market-leagues [data-mode=hc] b{color:#ffc7b4;background:#49312e}
.bs-market-leagues button{border-color:var(--market-line);font-size:1rem}
.bs-market-main{min-width:0}
.bs-market .bs-market-icon{height:3.2rem;width:3.2rem;flex-basis:3.2rem}
.bs-market .bs-market-item,.bs-market .bs-market-price strong{font-size:1.09rem}
.bs-market-price .bs-market-last{color:#f3cb92}
.bs-atlas-reading:has([data-atlas-panel="atlas-marktpreise"]:not([hidden]))>.bs-atlas-outline{display:none}
.bs-atlas-reading:has([data-atlas-panel="atlas-marktpreise"]:not([hidden]))>.bs-atlas-panels{grid-column:1/-1;width:100%}
[data-market-tool]{margin-bottom:.75rem}
@media(max-width:48rem){
.bs-market-workspace{grid-template-columns:minmax(0,1fr)}
.bs-market-categories{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-template-rows:auto auto;overflow-x:auto;max-width:100%;padding:0 0 .45rem;scroll-snap-type:x proximity}
.bs-market-categories button{scroll-snap-align:start}
.bs-market-categories img{width:2.4rem;height:2.4rem}
.bs-market .bs-market-icon{width:2.8rem;height:2.8rem;flex-basis:2.8rem}
.bs-market-leagues button{flex:1 1 8rem}
}
.bs-market .bs-market-leagues button[data-mode="hc"][aria-pressed="true"]{border-color:#efa08c;box-shadow:inset 3px 0 #efa08c;background:#392e2d}

.bs-market-league-label{font-size:.98rem;color:#dbebe4;margin-inline-end:.25rem}@media(max-width:48rem){.bs-market-league-label{flex-basis:100%}}
