:root {
    color-scheme: dark;
    --bg: #071018;
    --bg-soft: #0b1620;
    --panel: #101c25;
    --panel-raised: #14232d;
    --panel-hover: #192b36;
    --border: #233945;
    --border-strong: #355666;
    --text: #f3f8fb;
    --text-soft: #b8c8d1;
    --muted: #8298a4;
    --cyan: #20d7e7;
    --cyan-bright: #7cf5ff;
    --cyan-wash: rgba(32, 215, 231, .11);
    --gold: #d6b85f;
    --gold-bright: #efd57e;
    --gold-deep: #9b7e31;
    --gold-wash: rgba(214, 184, 95, .1);
    --green: #72c795;
    --green-wash: rgba(114, 199, 149, .1);
    --red: #ec7b75;
    --red-wash: rgba(236, 123, 117, .1);
    --orange: #e6a85d;
    --blue: #79aeda;
    --shadow: 0 18px 48px rgba(0, 0, 0, .22);
    --radius: 10px;
    --radius-sm: 6px;
    --space-panel: 20px;
    --motion-fast: 140ms;
    --motion-enter: 200ms;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --sidebar: 208px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 72% -8%, rgba(32, 215, 231, .1), transparent 34rem),
        radial-gradient(circle at 12% 104%, rgba(214, 184, 95, .06), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

::selection { background: rgba(214, 184, 95, .25); color: #fff; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; z-index: 1000; top: 10px; left: 10px;
    padding: 9px 13px; border-radius: var(--radius-sm);
    background: var(--gold); color: #15130d; font-weight: 800;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    display: flex; flex-direction: column;
    width: var(--sidebar); padding: 20px 14px 16px;
    border-right: 1px solid var(--border);
    background: rgba(9, 20, 29, .98);
    box-shadow: 12px 0 42px rgba(0, 0, 0, .12);
}

.brand {
    display: flex; align-items: center; gap: 10px;
    min-height: 58px; margin: 0 4px 22px;
}
.brand-logo { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-copy strong { font-size: 15px; letter-spacing: .055em; }
.brand-copy small { margin-top: 4px; color: var(--cyan); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }

.primary-nav { display: flex; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; }
.nav-label {
    margin: 0 10px 8px; color: #646c6e;
    font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.nav-link {
    position: relative; display: flex; align-items: center; gap: 11px;
    min-height: 42px; padding: 8px 10px;
    border: 1px solid transparent; border-radius: var(--radius);
    color: #aeb2af; font-size: 13px; font-weight: 650;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-link:hover { background: #191d1f; color: var(--text); }
.nav-link.is-active {
    border-color: rgba(32, 215, 231, .22);
    background: linear-gradient(90deg, rgba(32, 215, 231, .14), rgba(32, 215, 231, .025));
    color: var(--cyan-bright);
}
.nav-link.is-active::before {
    position: absolute; content: ""; left: -15px; top: 10px; bottom: 10px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan);
}
.nav-icon {
    display: grid; place-items: center; flex: 0 0 24px;
    width: 24px; height: 24px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .035); color: #929a99;
    font-family: var(--mono); font-size: 12px; font-weight: 800;
}
.is-active .nav-icon { background: var(--cyan-wash); color: var(--cyan-bright); }
.nav-count {
    margin-left: auto; min-width: 20px; padding: 1px 6px;
    border-radius: 999px; background: #242a2c; color: var(--text-soft);
    font-size: 10px; text-align: center;
}
.sidebar-foot { display: grid; gap: 13px; padding-top: 14px; border-top: 1px solid var(--border); }
.source-note { display: flex; align-items: flex-start; gap: 9px; padding: 4px 10px; color: var(--text-soft); font-size: 11px; line-height: 1.4; }
.source-note small { color: var(--muted); }
.live-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(114, 199, 149, .09); }

.app-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 16px;
    height: 70px; padding: 0 clamp(20px, 3vw, 42px);
    border-bottom: 1px solid rgba(41, 48, 52, .82);
    background: rgba(7, 16, 24, .88); backdrop-filter: blur(18px);
}
.menu-button { display: none !important; }
.global-search { position: relative; display: flex; align-items: center; width: min(540px, 50vw); }
.global-search > span { position: absolute; left: 14px; color: var(--muted); font-size: 18px; }
.global-search input {
    width: 100%; height: 40px; padding: 0 50px 0 42px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #121618; color: var(--text); outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.global-search input::placeholder { color: #6f7677; }
.global-search input:focus { border-color: rgba(214, 184, 95, .55); box-shadow: 0 0 0 3px var(--gold-wash); }
.global-search kbd { position: absolute; right: 11px; padding: 1px 7px; border: 1px solid var(--border); border-bottom-color: #465054; border-radius: var(--radius-sm); color: var(--muted); background: #181c1e; font: 11px var(--mono); }
.search-results, .compare-suggestions {
    position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0;
    max-height: 390px; overflow: auto; padding: 7px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: #171b1d; box-shadow: var(--shadow);
}
.search-result {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.search-result:hover, .search-result:focus-visible { background: var(--panel-hover); }
.search-result img, .item-avatar { width: 31px; height: 31px; object-fit: contain; image-rendering: pixelated; }
.search-result div { min-width: 0; }
.search-result strong, .search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--muted); font: 10px var(--mono); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.api-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 11px; font-weight: 700;
}
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.is-online { background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.status-dot.is-degraded { background: var(--orange); box-shadow: 0 0 0 4px rgba(230, 168, 93, .1); }
.status-dot.is-offline { background: var(--red); box-shadow: 0 0 0 4px var(--red-wash); }
.status-dot.is-loading { animation: pulse 1.2s ease-in-out infinite; }

.main-content { width: min(1500px, 100%); min-height: calc(100vh - 160px); margin: 0 auto; padding: 32px clamp(20px, 3vw, 42px) 48px; }
.page-heading, .item-heading {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-bottom: 24px;
}
.compact-heading { margin-bottom: 20px; }
.page-heading h1, .item-heading h1 { margin: 1px 0 5px; font-size: clamp(26px, 3vw, 38px); line-height: 1.13; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow), .item-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); }
.eyebrow { margin: 0 0 3px; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.freshness {
    display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
    padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--muted); font-size: 11px;
}

.button, .icon-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 38px; padding: 0 14px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 12px; font-weight: 750;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: linear-gradient(135deg, var(--cyan), #159de8); color: #04131a; box-shadow: 0 9px 24px rgba(32, 215, 231, .16); }
.button-primary:hover { background: linear-gradient(135deg, var(--cyan-bright), #45b8ff); }
.button-secondary { border-color: rgba(214, 184, 95, .3); background: var(--gold-wash); color: var(--gold-bright); }
.button-secondary:hover { border-color: rgba(214, 184, 95, .55); background: rgba(214, 184, 95, .16); }
.button-ghost { border-color: var(--border); background: #141819; color: var(--text-soft); }
.button-ghost:hover { border-color: var(--border-strong); background: var(--panel-hover); color: var(--text); }
.button-compact { min-height: 34px; padding: 0 11px; font-size: 11px; }
.icon-button { width: 38px; padding: 0; background: transparent; border-color: var(--border); }
.text-link { padding: 0; border: 0; background: none; color: var(--gold); font-size: 11px; font-weight: 750; cursor: pointer; }
.text-link:hover { color: var(--gold-bright); }
.auction-open { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.auction-open:focus-visible, .auction-player:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.auction-player:hover { color: var(--gold); }
.player-search { display: flex; align-items: center; gap: 12px; padding: 18px; margin-bottom: 20px; }
.player-search .search-field { flex: 1; }
.player-hero { display: flex; align-items: center; gap: 24px; padding: 28px; margin-bottom: 20px; background: radial-gradient(ellipse at top right, #d6b85f18, transparent 65%), var(--panel); }
.player-portrait { width: 80px; height: 80px; image-rendering: pixelated; border-radius: var(--radius); border: 2px solid var(--border); }
.player-hero h2 { font-size: 30px; margin: 4px 0 8px; overflow-wrap: anywhere; }
.player-hero p { color: var(--muted); }
.player-activity-panel { margin-top: 24px; }
.player-activity-panel > .kpi-grid { padding: 0 20px; }
.player-source-caption { padding: 0 20px 18px; }
.player-material { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.activity-tag { display: inline-flex; border-radius: var(--radius-sm); padding: 5px 9px; font-size: 11px; font-weight: 650; background: #79aeda1a; color: #79aeda; }
.activity-sold { background: #d6b85f1a; color: #d6b85f; }
.activity-won { background: #72c7951a; color: #72c795; }
@media (max-width: 600px) { .player-search { align-items: stretch; flex-direction: column; } .player-hero { padding: 20px; gap: 16px; } .player-portrait { width: 56px; height: 56px; } .player-hero h2 { font-size: 24px; } }

.panel {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(25, 30, 32, .93), rgba(19, 23, 25, .98));
    box-shadow: 0 8px 28px rgba(0, 0, 0, .09);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; }
.panel-head h2 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.panel-head p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.help { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 10px; cursor: help; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card {
    position: relative; min-height: 116px; padding: 17px 18px;
    overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius);
    background: linear-gradient(145deg, var(--panel-raised), #141718);
}
.metric-card::after { position: absolute; content: ""; right: -25px; bottom: -40px; width: 100px; height: 100px; border-radius: 50%; background: rgba(214, 184, 95, .03); }
.metric-card > span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.metric-card strong { display: block; margin: 11px 0 2px; font-size: 25px; line-height: 1; letter-spacing: -.035em; }
.metric-card small { color: var(--text-soft); font-size: 10px; }
.metric-card .metric-icon { position: absolute; right: 16px; top: 15px; color: rgba(214, 184, 95, .55); font: 14px var(--mono); }
.metric-card .positive { color: var(--green); }
.metric-card .negative { color: var(--red); }

.dashboard-grid, .detail-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 14px 14px; }
.trend-card {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center;
    min-height: 80px; padding: 12px;
    border: 1px solid #262d30; border-radius: var(--radius); background: rgba(10, 13, 14, .34);
    transition: border-color .18s, background .18s;
}
a.trend-card:hover { border-color: rgba(214, 184, 95, .3); background: rgba(214, 184, 95, .04); }
.trend-card img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.trend-card strong { display: block; font-size: 12px; }
.trend-card small { display: block; margin-top: 2px; color: var(--muted); font: 9px var(--mono); }
.trend-price { text-align: right; }
.trend-price b { display: block; font-size: 13px; }
.change { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; }
.change.positive { color: var(--green); }
.change.negative { color: var(--red); }
.change.neutral { color: var(--muted); }

.rate-compact-list, .auction-compact-list { display: grid; gap: 0; padding: 0 14px 14px; }
.compact-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 5px; border-top: 1px solid rgba(41, 48, 52, .7); }
.compact-row:first-child { border-top: 0; }
.compact-row img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.compact-row-copy { min-width: 0; flex: 1; }
.compact-row-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.compact-row-copy small { display: block; color: var(--muted); font-size: 9px; }
.compact-value { text-align: right; }
.compact-value strong { display: block; font-size: 11px; }
.compact-value small { display: block; color: var(--gold); font-size: 9px; }

.truth-panel {
    display: flex; gap: 13px; align-items: flex-start;
    margin-top: 14px; padding: 15px 17px;
    border: 1px solid rgba(121, 174, 218, .18); border-radius: var(--radius);
    background: rgba(121, 174, 218, .045); color: var(--text-soft);
}
.truth-panel strong { display: block; color: var(--text); font-size: 11px; }
.truth-panel p { margin: 3px 0 0; font-size: 10px; line-height: 1.55; }
.truth-mark { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid rgba(121, 174, 218, .35); border-radius: 50%; color: var(--blue); font: 700 11px var(--mono); }
.warning-panel { margin: -8px 0 16px; border-color: rgba(230, 168, 93, .22); background: rgba(230, 168, 93, .055); }
.warning-panel .truth-mark { border-color: rgba(230, 168, 93, .4); color: var(--orange); }

.toolbar {
    display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap;
    margin-bottom: 13px; padding: 12px;
    border: 1px solid var(--border); border-radius: var(--radius); background: #121517;
}
.search-field { position: relative; display: flex; align-items: center; flex: 1 1 240px; }
.search-field > span:not(.sr-only) { position: absolute; left: 12px; color: var(--muted); font-size: 17px; }
.search-field input, .select-field select, .calculator-form input, .calculator-form select, .login-form input {
    height: 39px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0f1213; color: var(--text); outline: none;
}
.search-field input { width: 100%; padding: 0 12px 0 38px; }
.search-field input:focus, .select-field select:focus, .calculator-form input:focus, .calculator-form select:focus, .login-form input:focus { border-color: rgba(214, 184, 95, .55); box-shadow: 0 0 0 3px var(--gold-wash); }
.select-field { display: grid; gap: 4px; flex: 0 1 175px; }
.select-field > span, .calculator-form label > span, .login-form label > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.select-field select { min-width: 145px; padding: 0 30px 0 11px; }

.table-panel { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th {
    height: 38px; padding: 0 13px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(9, 11, 12, .36); color: #808889;
    font-size: 9px; font-weight: 850; letter-spacing: .065em; text-align: left; text-transform: uppercase; white-space: nowrap;
}
.data-table td { height: 57px; padding: 8px 13px; border-bottom: 1px solid rgba(41, 48, 52, .68); color: var(--text-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .price-buy { color: var(--green); font-weight: 760; }
.data-table .price-sell { color: var(--gold-bright); font-weight: 760; }
.order-note { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.data-table code { color: var(--muted); font: 9px var(--mono); }
.table-item { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.table-item img { width: 33px; height: 33px; object-fit: contain; image-rendering: pixelated; }
.table-item strong { display: block; color: var(--text); font-size: 11px; }
.table-item small { display: block; color: var(--muted); font: 9px var(--mono); }
.category-tag, .status-tag {
    display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: rgba(255, 255, 255, .02); font-size: 9px;
}
.status-tag.success { border-color: rgba(114, 199, 149, .25); background: var(--green-wash); color: var(--green); }
.status-tag.failed { border-color: rgba(236, 123, 117, .25); background: var(--red-wash); color: var(--red); }
.status-tag.running { border-color: rgba(230, 168, 93, .25); color: var(--orange); }
.row-action { width: 31px; height: 31px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.row-action:hover { border-color: rgba(214, 184, 95, .35); color: var(--gold); }
.compact-table td { height: 48px; }
.market-summary-head { align-items: center; }
.legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; }
.legend > span, .chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.legend-swatch.buy { background: var(--green); }
.legend-swatch.sell, .legend-swatch.gold { background: var(--gold); }
.legend-swatch.moving { background: var(--green); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; padding: 8px 14px; border-top: 1px solid var(--border); }
.pagination p { margin: 0; color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 5px; }
.page-button { min-width: 31px; height: 31px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #121617; color: var(--text-soft); cursor: pointer; font-size: 10px; }
.page-button.is-active { border-color: rgba(214, 184, 95, .4); background: var(--gold-wash); color: var(--gold-bright); }

.breadcrumbs { display: flex; gap: 8px; margin-bottom: 17px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { color: var(--gold); }
.item-title { display: flex; align-items: center; gap: 15px; }
.item-icon-shell { display: grid; place-items: center; width: 67px; height: 67px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.item-icon-shell img { width: 50px; height: 50px; object-fit: contain; image-rendering: pixelated; }
.material-id { font: 9px var(--mono) !important; letter-spacing: .04em; }
.detail-kpis { margin-top: 2px; }
.chart-panel { min-width: 0; }
.chart-wrap { position: relative; height: 330px; margin: 0 14px; }
.chart-wrap.large { height: 390px; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-tooltip {
    position: absolute; z-index: 3; pointer-events: none;
    min-width: 150px; padding: 9px 10px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: rgba(17, 20, 21, .96); box-shadow: var(--shadow); color: var(--text-soft); font-size: 9px;
}
.chart-tooltip strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 10px; }
.chart-legend { display: flex; justify-content: space-between; padding: 10px 19px 16px; color: var(--text-soft); font-size: 9px; }
.muted { color: var(--muted) !important; }
.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0f1213; }
.segmented-control button { min-width: 48px; height: 27px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; cursor: pointer; }
.segmented-control button.is-active { background: var(--panel-hover); color: var(--gold-bright); box-shadow: 0 2px 7px rgba(0, 0, 0, .18); }
.stat-periods { display: grid; gap: 0; padding: 0 18px; }
.period-row { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 11px; min-height: 63px; border-top: 1px solid var(--border); }
.period-row:first-child { border-top: 0; }
.period-row > span { color: var(--gold); font-size: 10px; font-weight: 800; }
.period-row div strong { display: block; font-size: 13px; }
.period-row div small { display: block; color: var(--muted); font-size: 9px; }
.period-row > small { text-align: right; }
.definition-note { margin: 15px 17px 17px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 10, 11, .28); }
.definition-note strong { font-size: 10px; }
.definition-note p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

.result-strip { display: flex; align-items: center; justify-content: space-between; min-height: 43px; margin-bottom: 8px; }
.result-strip p { margin: 0; color: var(--muted); font-size: 10px; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.view-toggle button { width: 31px; height: 26px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.view-toggle button.is-active { background: var(--panel-hover); color: var(--gold); }
.auction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.auction-card {
    position: relative; display: flex; flex-direction: column; min-height: 238px; padding: 15px;
    border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, var(--panel-raised), #121516);
    color: var(--text); text-align: left; cursor: pointer; transition: transform .16s, border-color .16s, background .16s;
}
.auction-card:hover { transform: translateY(-2px); border-color: rgba(214, 184, 95, .3); background: var(--panel-hover); }
.auction-card-head { display: flex; justify-content: space-between; gap: 10px; }
.auction-card img { width: 53px; height: 53px; object-fit: contain; image-rendering: pixelated; }
.amount-badge { position: absolute; top: 46px; left: 49px; min-width: 20px; padding: 1px 4px; border-radius: var(--radius-sm); background: #090b0c; color: #fff; font: 9px var(--mono); text-align: center; }
.ending-badge { display: inline-flex; height: 23px; align-items: center; padding: 0 7px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font: 9px var(--mono); }
.ending-badge.is-urgent { border-color: rgba(236, 123, 117, .28); background: var(--red-wash); color: var(--red); }
.auction-card h3 { margin: 13px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.auction-material { margin: 0; color: var(--muted); font: 9px var(--mono); }
.auction-card-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.auction-price { padding: 8px; border: 1px solid #252c2f; border-radius: var(--radius-sm); background: rgba(9, 11, 12, .27); }
.auction-price span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.auction-price strong { display: block; margin-top: 2px; color: var(--gold-bright); font-size: 11px; }
.auction-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 8px; }
.auction-grid.is-list { display: grid; grid-template-columns: 1fr; }
.auction-grid.is-list .auction-card { display: grid; grid-template-columns: 64px minmax(160px, 1fr) 190px 190px; align-items: center; min-height: 92px; }
.auction-grid.is-list .auction-card h3 { margin: 0; }
.auction-grid.is-list .auction-card-footer { margin: 0; padding: 0; }
.auction-grid.is-list .auction-meta { justify-content: flex-end; }
.load-more-wrap { display: flex; justify-content: center; padding: 18px; }
.auction-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #15191b; color: var(--text); box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }
.auction-dialog::backdrop { background: rgba(4, 5, 6, .76); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: 25px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 33px; height: 33px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111416; color: var(--muted); cursor: pointer; font-size: 20px; }
.auction-detail-head { display: flex; gap: 15px; padding-right: 40px; }
.auction-detail-head img { width: 65px; height: 65px; object-fit: contain; image-rendering: pixelated; }
.auction-detail-head h2 { margin: 2px 0 2px; font-size: 21px; }
.auction-detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.auction-detail-section h3 { margin: 0 0 9px; font-size: 11px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-fact { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111416; }
.detail-fact span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.detail-fact strong { display: block; margin-top: 3px; font-size: 11px; overflow-wrap: anywhere; }
.lore-list { margin: 0; padding-left: 17px; color: var(--text-soft); font-size: 10px; }

.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.op-card { min-height: 260px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-raised), #121516); }
.op-card-head { display: flex; gap: 13px; align-items: center; }
.op-card-head img { width: 51px; height: 51px; object-fit: contain; image-rendering: pixelated; }
.op-card h2 { margin: 0; font-size: 14px; }
.op-card .material-id { margin: 3px 0 0; color: var(--muted); }
.op-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; margin: 13px 0; }
.op-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.op-metrics { grid-template-columns: repeat(2, 1fr); }
.op-metric { padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(8, 10, 11, .25); }
.op-metric span { display: block; color: var(--muted); font-size: 8px; }
.op-metric strong { display: block; margin-top: 3px; font-size: 11px; }
.op-card-foot { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }

.rates-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 13px; margin-bottom: 13px; }
.calculator-form { display: grid; grid-template-columns: 1.5fr .7fr 1.2fr; gap: 12px; align-items: end; padding: 0 20px 20px; }
.calculator-form label, .login-form label { display: grid; gap: 5px; }
.calculator-form select, .calculator-form input { width: 100%; padding: 0 11px; }
.calculator-result { min-height: 70px; padding: 10px 13px; border: 1px solid rgba(214, 184, 95, .24); border-radius: var(--radius); background: var(--gold-wash); }
.calculator-result span { display: block; color: var(--gold); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.calculator-result strong { display: block; margin: 2px 0; font-size: 19px; }
.calculator-result small { color: var(--text-soft); font-size: 8px; }
.definition-list { margin: 0; padding: 0 18px 16px; }
.definition-list > div { padding: 9px 0; border-top: 1px solid var(--border); }
.definition-list > div:first-child { border-top: 0; }
.definition-list dt { color: var(--text); font-size: 10px; font-weight: 750; }
.definition-list dd { margin: 2px 0 0; color: var(--muted); font-size: 9px; }

.compare-builder { position: relative; margin-bottom: 13px; }
.compare-controls { position: relative; padding: 0 20px 18px; }
.compare-controls .search-field { max-width: 470px; }
.compare-suggestions { top: 45px; width: min(470px, 100%); }
.compare-chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 1px; margin-top: 10px; }
.compare-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 7px 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 10px; }
.compare-chip i { width: 7px; height: 7px; border-radius: 50%; }
.compare-chip button { width: 21px; height: 21px; padding: 0; border: 0; border-radius: 50%; background: #252b2d; color: var(--muted); cursor: pointer; }
.compare-chart-panel { position: relative; margin-bottom: 13px; overflow: hidden; }
.compare-legend { display: flex; gap: 15px; flex-wrap: wrap; min-height: 38px; padding: 8px 20px 14px; color: var(--text-soft); font-size: 9px; }
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend i { width: 8px; height: 8px; border-radius: 50%; }
.color-0 { color: #d6b85f; background-color: #d6b85f; }
.color-1 { color: #72c795; background-color: #72c795; }
.color-2 { color: #79aeda; background-color: #79aeda; }
.color-3 { color: #c98ad6; background-color: #c98ad6; }
.chart-dot { background: transparent; }
.icon-missing { position: relative; }
.icon-missing::after { content: "◇"; display: grid; place-items: center; min-width: 30px; min-height: 30px; color: var(--gold-deep); font: 18px var(--mono); }
[data-watch-toggle].is-watching { border-color: rgba(214, 184, 95, .45); color: var(--gold-bright); }
.empty-overlay { position: absolute; inset: 70px 0 0; display: grid; place-content: center; text-align: center; background: rgba(21, 25, 27, .8); }
.empty-overlay strong { font-size: 14px; }
.empty-overlay p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.empty-overlay[hidden] { display: none; }

.watchlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.watch-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.watch-card img { width: 47px; height: 47px; object-fit: contain; image-rendering: pixelated; }
.watch-card h2 { margin: 0; font-size: 13px; }
.watch-card .material-id { margin: 2px 0 10px; color: var(--muted); }
.watch-prices { display: flex; gap: 17px; }
.watch-prices span { display: block; color: var(--muted); font-size: 8px; }
.watch-prices strong { display: block; color: var(--text); font-size: 11px; }
.watch-actions { display: flex; gap: 7px; grid-column: 1 / -1; }

.status-overview { margin-bottom: 13px; }
.status-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.status-hero.is-online { border-color: rgba(114, 199, 149, .22); background: linear-gradient(90deg, var(--green-wash), var(--panel)); }
.status-hero.is-degraded { border-color: rgba(230, 168, 93, .25); background: linear-gradient(90deg, rgba(230, 168, 93, .09), var(--panel)); }
.status-hero.is-offline { border-color: rgba(236, 123, 117, .25); background: linear-gradient(90deg, var(--red-wash), var(--panel)); }
.status-orb { width: 34px; height: 34px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 8px rgba(127, 135, 136, .08); }
.is-online .status-orb { background: var(--green); box-shadow: 0 0 0 8px var(--green-wash); }
.is-degraded .status-orb { background: var(--orange); box-shadow: 0 0 0 8px rgba(230, 168, 93, .1); }
.is-offline .status-orb { background: var(--red); box-shadow: 0 0 0 8px var(--red-wash); }
.status-hero strong { font-size: 14px; }
.status-hero p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 13px; }
.status-card { min-height: 175px; padding: 17px; }
.status-card-head { display: flex; justify-content: space-between; align-items: center; }
.status-card h2 { margin: 0; font-size: 14px; }
.status-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 17px; }
.status-fact, .system-fact { padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.status-fact span, .system-fact span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.status-fact strong, .system-fact strong { display: block; margin-top: 3px; font-size: 10px; }
.system-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 18px 18px; }

.login-panel { max-width: 520px; }
.login-form { display: grid; gap: 12px; padding: 0 20px 20px; }
.login-form input { width: 100%; padding: 0 11px; }
.login-form .button { margin-top: 4px; }
.inline-alert { margin: 0 20px 17px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.inline-alert strong { font-size: 10px; }
.inline-alert p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.inline-alert.warning { border-color: rgba(230, 168, 93, .24); background: rgba(230, 168, 93, .05); }
.inline-alert code { color: var(--gold-bright); }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 13px; }
.admin-summary .panel { display: flex; flex-direction: column; min-height: 105px; padding: 16px; }
.admin-summary strong { margin-top: 8px; font-size: 15px; }
.admin-summary small { color: var(--muted); font-size: 9px; }
.fact-label { color: var(--gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.logout-card .text-link { align-self: flex-start; margin-top: auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 20px 18px; }

.account-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 10px 3px 5px;
    border: 1px solid var(--border); border-radius: 999px; background: rgba(16, 28, 37, .82);
    color: var(--text-soft); font-size: 12px; font-weight: 750;
}
.account-pill:hover { border-color: rgba(32, 215, 231, .4); color: var(--text); }
.account-pill.is-authenticated { border-color: rgba(32, 215, 231, .24); }
.account-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(145deg, var(--cyan), #177dc9); color: #03131a; font-size: 11px; font-weight: 900; }
.account-avatar-large { width: 58px; height: 58px; font-size: 23px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); gap: 14px; }
.auth-card { overflow: hidden; }
.accent-card { border-color: rgba(32, 215, 231, .22); background: linear-gradient(155deg, rgba(20, 43, 54, .96), rgba(13, 24, 32, .98)); }
.account-overview { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.account-profile { display: flex; align-items: center; gap: 18px; padding: 22px; }
.account-profile h2 { margin: 2px 0; font-size: 22px; }
.account-profile p:not(.eyebrow), .account-action-card p { margin: 2px 0 0; color: var(--muted); }
.account-action-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 150px; padding: 20px; }
.account-action-card strong { font-size: 16px; }
.account-action-card .button { margin-top: auto; }
.watch-login-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 13px 15px; border: 1px solid rgba(32, 215, 231, .2); border-radius: var(--radius); background: var(--cyan-wash); color: var(--text-soft); }
.data-caption { margin: 10px 2px 0; color: var(--muted); font-size: 12px; }
.archive-table .table-item { min-width: 250px; }
.archive-recent-panel { margin-top: 18px; }

.empty-state { padding: 26px 15px; color: var(--muted); text-align: center; font-size: 10px; }
.empty-state.large { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: 13px; }
.empty-state p { margin: 0; }
.empty-state.is-loading::before { display: inline-block; content: ""; width: 12px; height: 12px; margin: 0 8px -2px 0; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton-block, .skeleton-line { position: relative; overflow: hidden; background: #202527 !important; color: transparent !important; }
.skeleton-block::after, .skeleton-line::after { position: absolute; content: ""; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent); animation: shimmer 1.5s infinite; }
.skeleton-line { width: 58%; height: 19px; border-radius: var(--radius-sm); }
.skeleton-line.short { width: 38%; height: 8px; }
.skeleton-block { min-height: 80px; }

.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(350px, calc(100vw - 36px)); }
.toast { padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #1a1f21; box-shadow: var(--shadow); color: var(--text-soft); font-size: 10px; animation: toast-in .2s ease-out; }
.toast.is-static { margin: -12px 0 18px; }
.toast.is-success { border-color: rgba(114, 199, 149, .35); }
.toast.is-error { border-color: rgba(236, 123, 117, .38); }
.toast.is-warning { border-color: rgba(230, 168, 93, .38); }
.footer { display: flex; justify-content: space-between; gap: 24px; padding: 22px clamp(20px, 3vw, 42px); border-top: 1px solid var(--border); color: #656d6e; font-size: 8px; }
.footer p { margin: 0; }
.footer p:last-child { display: flex; align-items: center; gap: 7px; text-align: right; }
.footer .truth-mark { flex-basis: 16px; width: 16px; height: 16px; font-size: 8px; }
.not-found { display: grid; justify-items: start; max-width: 520px; padding: 8vh 0; }
.not-found-code { color: rgba(214, 184, 95, .14); font-size: clamp(90px, 18vw, 170px); font-weight: 900; line-height: .82; letter-spacing: -.09em; }
.not-found h1 { margin: 7px 0; font-size: 30px; }
.not-found > p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); }
.mobile-scrim { display: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes toast-in { from { transform: translateY(7px); opacity: 0; } }

.nav-label, .eyebrow, .metric-card > span, .fact-label { font-size: 11px; }
.nav-link, .page-heading p:not(.eyebrow), .item-heading p:not(.eyebrow), .panel-head p:not(.eyebrow), .source-note, .freshness, .button, .api-pill { font-size: 12px; }
.data-table { font-size: 13px; }
.data-table th, .select-field > span, .calculator-form label > span, .login-form label > span, .status-fact span, .system-fact span, .op-metric span, .watch-prices span, .auction-price span, .detail-fact span { font-size: 11px; }
.table-item strong, .auction-price strong, .op-metric strong, .watch-prices strong, .detail-fact strong, .compact-row-copy strong, .compact-value strong { font-size: 13px; }
.table-item small, .compact-row-copy small, .compact-value small, .material-id, .auction-material, .auction-meta, .op-card-foot, .definition-list dd, .order-note, .empty-state, .toast { font-size: 11px; }
.footer { font-size: 11px; }

@media (max-width: 1180px) {
    .auction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .watchlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auction-grid.is-list .auction-card { grid-template-columns: 64px minmax(150px, 1fr) 180px; }
    .auction-grid.is-list .auction-meta { display: none; }
}

@media (max-width: 960px) {
    :root { --sidebar: 218px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; }
    .dashboard-grid .span-8, .dashboard-grid .span-4 { grid-column: span 12; }
    .dashboard-grid .span-7, .dashboard-grid .span-5 { grid-column: span 12; }
    .rates-layout { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr; }
    .status-card { min-height: auto; }
    .auction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legend { display: none; }
    .account-overview { grid-template-columns: 1fr 1fr; }
    .account-profile { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .sidebar {
        width: min(280px, 84vw); transform: translateX(-105%);
        transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .45);
    }
    body.menu-open { overflow: hidden; }
    body.menu-open .sidebar { transform: translateX(0); }
    .mobile-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(3, 4, 5, .68); }
    body.menu-open .mobile-scrim { display: block; }
    .app-shell { margin-left: 0; }
    .topbar { height: 62px; padding: 0 14px; gap: 9px; }
    .menu-button { display: inline-flex !important; flex: 0 0 38px; }
    .global-search { width: auto; flex: 1; }
    .global-search input { padding-right: 12px; }
    .global-search kbd, .api-pill span:last-child, .topbar-actions .button span, .account-pill > span:last-child { display: none; }
    .account-pill { width: 36px; padding: 4px; justify-content: center; }
    .api-pill { width: 34px; padding: 0; justify-content: center; }
    .topbar-actions { gap: 6px; }
    .main-content { padding: 23px 14px 38px; }
    .page-heading, .item-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
    .page-heading h1, .item-heading h1 { font-size: 29px; }
    .freshness { align-self: flex-start; }
    .trend-grid { grid-template-columns: 1fr; }
    .panel-head { padding: 16px 15px 12px; }
    .toolbar { align-items: stretch; }
    .search-field, .select-field { flex-basis: 100%; }
    .select-field select { width: 100%; }
    .auction-toolbar .select-field { flex-basis: calc(50% - 5px); }
    .auction-grid.is-list .auction-card { display: flex; min-height: 238px; }
    .auction-grid.is-list .auction-meta { display: flex; }
    .auction-grid.is-list .auction-card-footer { margin-top: auto; padding-top: 14px; }
    .op-grid, .watchlist-grid, .auth-grid, .account-overview { grid-template-columns: 1fr; }
    .account-profile { grid-column: auto; }
    .calculator-form { grid-template-columns: 1fr; padding: 0 15px 16px; }
    .system-facts, .admin-summary { grid-template-columns: 1fr; }
    .chart-wrap { height: 285px; margin: 0 6px; }
    .chart-wrap.large { height: 320px; }
    .chart-panel .panel-head { flex-direction: column; }
    .footer { flex-direction: column; padding: 18px 14px; }
    .footer p:last-child { text-align: left; }
}

@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-card { min-height: 105px; padding: 14px; }
    .metric-card strong { font-size: 21px; }
    .auction-grid { grid-template-columns: 1fr; }
    .auction-toolbar .select-field { flex-basis: 100%; }
    .trend-card { grid-template-columns: auto 1fr; }
    .trend-price { grid-column: 2; text-align: left; }
    .item-icon-shell { width: 56px; height: 56px; }
    .item-icon-shell img { width: 43px; height: 43px; }
    .segmented-control { width: 100%; }
    .segmented-control button { flex: 1; min-width: 0; }
    .detail-facts { grid-template-columns: 1fr; }
    .pagination { align-items: flex-start; flex-direction: column; }
    .market-summary-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.verification-panel{padding:28px;margin-top:24px}.verification-panel .panel-head{padding:0 0 24px}.verification-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:0 0 28px;list-style:none;counter-reset:verify}.verification-steps li{counter-increment:verify;display:grid;gap:8px}.verification-steps li::before{content:counter(verify,decimal-leading-zero);font-size:24px;color:var(--accent,#60d9f2);font-weight:700}.verification-steps span{color:var(--muted,#9aaab7);font-size:14px;line-height:1.6}.verification-name{display:grid;gap:8px;max-width:340px;margin-bottom:20px}.verification-code-row{display:flex;gap:12px;margin:8px 0 20px}.verification-code-row input{flex:1;min-width:0;font:16px ui-monospace,monospace;letter-spacing:.03em}.verification-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.verification-message{margin:20px 0 0;font-size:14px;line-height:1.6}.verification-message.is-error{color:#f3a1a1}.profile-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0}.profile-market{padding:24px;margin-top:24px}.profile-market .panel-head{padding:0 0 20px}.auction-chart-section{margin-top:24px}.auction-chart-section .chart-wrap{height:260px;margin-top:16px}.auction-chart-section .chart-wrap canvas{width:100%;height:100%}.auction-chart-section .chart-controls{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.auction-chart-section .chart-controls h3{margin:0}.auction-chart-section .chart-legend{font-size:12px;gap:16px;flex-wrap:wrap}.account-action-card form{margin-top:12px}.chart-summary{font-size:14px;color:var(--muted,#9aaab7)}.chart-link{white-space:nowrap}.pagination [aria-current="page"]{font-weight:700}.verification-name input,.verification-code-row input{padding:12px;border:1px solid #2b4557;background:#0b1c29;color:#edf7ff;border-radius:9px}.verification-panel label{font-size:14px}.table-panel .toolbar{margin:0 20px 20px}
@media(max-width:700px){.verification-steps{grid-template-columns:1fr;gap:20px}.verification-steps li{grid-template-columns:36px 1fr}.verification-steps li::before{grid-row:span 2}.verification-steps span{grid-column:2}.verification-panel{padding:20px}.verification-code-row{flex-direction:column}.profile-kpis{grid-template-columns:1fr}.auction-chart-section .chart-wrap{height:220px}.pagination{flex-wrap:wrap;gap:12px}}

/* Konten, Administration und Auktionshistorie */
.account-avatar {
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(32, 215, 231, .3);
    object-fit: cover;
    image-rendering: pixelated;
}
.account-avatar-large { width: 64px; height: 64px; border-radius: var(--radius); }
.account-avatar-placeholder { display: grid; place-items: center; }
.profile-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.edition-tag {
    display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px;
    border: 1px solid rgba(32, 215, 231, .22); border-radius: 999px;
    background: rgba(32, 215, 231, .06); color: var(--cyan); font-size: 11px; font-weight: 750;
}
.login-form select { width: 100%; padding: 0 11px; }
.form-hint { display: block; margin-top: -6px; color: var(--muted); font-size: 12px; }
.verification-identity-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }
.verification-identity-fields .verification-name { flex: 1 1 260px; max-width: 420px; margin-bottom: 0; }
.verification-platform { flex: 0 1 190px; }
.verification-edition-note { margin: 10px 0 20px; color: var(--muted); font-size: 12px; }

.admin-kpis { margin-bottom: 14px; }
.admin-command-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 14px; margin-bottom: 14px; }
.admin-command-card { padding: 22px; }
.admin-command-card h2 { margin: 2px 0 7px; font-size: 19px; }
.admin-command-card > div > p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-command-card .admin-actions { padding: 20px 0 0; }
.admin-result { min-height: 50px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 10, 11, .28); color: var(--muted); font-size: 12px; }
.admin-result strong, .admin-result > span { display: block; }
.admin-result > span { margin-top: 3px; }
.admin-result > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-result.is-running { border-color: rgba(230, 168, 93, .3); color: var(--orange); }
.admin-result.is-success { border-color: rgba(114, 199, 149, .3); color: var(--text-soft); }
.admin-result.is-error { border-color: rgba(236, 123, 117, .34); color: var(--red); }
.admin-job-chip { padding: 4px 7px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111416; color: var(--text-soft); font-size: 11px; }
.admin-system-card { overflow: hidden; }
.admin-system-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-links { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 18px 18px; }
.system-value-success { color: var(--green); }
.system-value-running { color: var(--orange); }
.system-value-failed { color: var(--red); }
.admin-users-panel { margin-bottom: 12px; }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.player-cell span { min-width: 0; }
.player-cell strong, .player-cell small { display: block; }
.player-cell small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.player-face { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(32, 215, 231, .24); border-radius: var(--radius-sm); object-fit: cover; image-rendering: pixelated; background: #111416; }
.admin-logout { display: flex; justify-content: flex-end; padding-top: 7px; }
.auction-player { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; vertical-align: middle; color: var(--text-soft); }
.auction-player [data-player-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; text-transform: none; }
.auction-player img, .auction-card .auction-player img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: cover; image-rendering: pixelated; border-radius: var(--radius-sm); }
.auction-seller { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 24px; }
.auction-seller > span:first-child { color: var(--muted); font-size: 12px; }
.auction-grid.is-list .auction-seller { grid-column: 2 / -1; justify-content: flex-start; margin-top: 4px; }

.archive-groups-panel { margin-top: 18px; }
.archive-toolbar { margin-bottom: 18px !important; }
.past-auctions-table .table-item { min-width: 230px; }
.mono-value { display: inline-block; max-width: 160px; overflow: hidden; color: var(--text-soft); font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.auction-dialog { width: min(820px, calc(100vw - 24px)); }
.auction-chart-section { margin-top: 18px; }
.auction-chart-section .chart-controls { align-items: flex-end; }
.auction-chart-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.auction-chart-filters .select-field { min-width: 150px; }
.auction-price-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.auction-price-kpis > div { padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111416; }
.auction-price-kpis span, .auction-price-kpis strong { display: block; }
.auction-price-kpis span { color: var(--muted); font-size: 11px; }
.auction-price-kpis strong { margin-top: 4px; color: var(--text); font-size: 14px; }
.auction-chart-section .auction-history-chart { height: 285px; margin: 8px 0 0; }
.auction-history-legend { justify-content: flex-start; gap: 22px; padding: 8px 0 14px; font-size: 12px; }
.auction-offers { margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--border); }
.auction-offers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.auction-offers-head h4 { margin: 0; font-size: 14px; }
.auction-offers-head span { color: var(--muted); font-size: 11px; }
.auction-offers .table-wrap { max-height: 245px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.auction-offers .data-table th { position: sticky; top: 0; z-index: 1; background: #171b1d; }
.chart-tooltip small { display: block; margin-top: 5px; color: var(--muted); }

@media (max-width: 960px) {
    .admin-command-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .verification-identity-fields { display: grid; grid-template-columns: 1fr; }
    .verification-platform { width: 100%; }
    .auction-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }
    .dialog-shell { padding: 20px 15px; }
    .auction-chart-filters { width: 100%; justify-content: stretch; }
    .auction-chart-filters .select-field { flex: 1 1 140px; }
    .auction-price-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auction-chart-section .auction-history-chart { height: 235px; }
    .auction-offers-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Ruhigere, einheitliche Oberfläche */
body { background: var(--bg); }
.sidebar { background: #09141d; box-shadow: none; }
.topbar { background: #071018; backdrop-filter: none; }
.panel,
.metric-card,
.accent-card,
.player-hero { background: var(--panel); box-shadow: none; }
.metric-card { border-radius: var(--radius); }
.metric-card::after { display: none; }
.nav-link.is-active { background: var(--cyan-wash); }
.button-primary { background: var(--cyan); box-shadow: none; }
.button-primary:hover { background: var(--cyan-bright); }
.page-heading h1,
.item-heading h1 { max-width: 950px; font-weight: 760; }
.page-heading p:not(.eyebrow),
.item-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
.panel-head h2 { font-size: 18px; }
.panel-head p:not(.eyebrow) { font-size: 13px; line-height: 1.55; }
.metric-card > span,
.metric-card small,
.data-table th,
.select-field > span,
.calculator-form label > span,
.login-form label > span { font-size: 12px; }
.metric-card strong { font-size: 27px; }
.empty-state { font-size: 13px; line-height: 1.55; }
.footer { color: var(--muted); font-size: 12px; }
.community-note { margin: 0; padding: 0 10px; color: var(--text-soft); font-size: 11px; line-height: 1.45; }
.community-note small { color: var(--muted); }
.data-table tbody tr { transition: background-color .14s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.button,
.icon-button { min-height: 40px; font-size: 13px; }
.button-compact { min-height: 34px; font-size: 12px; }
.search-field input,
.select-field select,
.login-form input,
.login-form select { min-height: 42px; }
.verification-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.verification-steps li { align-content: start; }
.verification-steps li::before { color: var(--gold); }
.verification-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-soft); }
.verification-help summary { width: fit-content; cursor: pointer; color: var(--gold-bright); font-weight: 700; }
.verification-help p { max-width: 850px; margin: 10px 0 0; color: var(--muted); }
.player-search-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; }
.player-search-help h2 { margin: 0 0 5px; font-size: 18px; }
.player-search-help p { max-width: 760px; margin: 0; color: var(--muted); }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 24px; }
.home-intro h2 { margin: 0 0 7px; font-size: 20px; }
.home-intro p:not(.eyebrow) { max-width: 900px; margin: 0; color: var(--text-soft); }
.home-intro .data-caption { margin-top: 8px !important; color: var(--muted) !important; }
.section-links { display: flex; flex: 0 0 auto; gap: 9px; flex-wrap: wrap; }
.noscript-note { margin-bottom: 18px; }
.data-loading-card { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; }
.trend-grid > .empty-state:only-child { grid-column: 1 / -1; }
.mobile-market-nav { display: none; }
.nav-icon, .metric-icon { display: none; }
.nav-label { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.brand-copy strong { letter-spacing: -.025em; font-size: 1rem; }
.brand-copy small { font-size: .75rem; text-transform: none; letter-spacing: 0; color: var(--muted); }
.brand-logo { filter: none; }
.nav-link { min-height: 42px; font-size: .875rem; border-radius: var(--radius-sm); }
.nav-link.is-active { background: #122a35; box-shadow: inset 3px 0 var(--cyan); }
.main-content { max-width: 1560px; margin-inline: auto; }
.eyebrow { font-size: .8125rem; text-transform: none; letter-spacing: .01em; color: var(--muted); font-weight: 500; }
.page-heading { align-items: center; margin-bottom: 24px; }
.page-heading h1, .item-heading h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.2; }
.page-heading p:not(.eyebrow), .item-heading p:not(.eyebrow) { font-size: .875rem; }
.panel, .op-card, .auction-card, .watch-card, .status-hero { border-radius: var(--radius); background: var(--panel); box-shadow: none; }
.panel-head { padding-top: 18px; padding-bottom: 15px; }
.panel-head h2 { font-size: 1.125rem; letter-spacing: -.02em; }
.kpi-grid { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.kpi-grid .metric-card { min-height: 105px; padding: 17px 22px; background: transparent; border: 0; border-radius: 0; border-right: 1px solid var(--border); }
.kpi-grid .metric-card:last-child { border-right: 0; }
.metric-card strong { font-size: 1.65rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric-card > span, .metric-card small { font-size: .8125rem; }
.metric-card > span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.button, .icon-button { font-size: .875rem; border-radius: var(--radius-sm); font-weight: 600; }
.button-compact { font-size: .8125rem; }
.button-primary { background: #43cad9; color: #071018; }
.button:hover, .auction-card:hover, .op-card:hover { transform: none; box-shadow: none; }
.toolbar { align-items: end; gap: 12px; background: transparent; }
.auction-toolbar, .archive-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auction-toolbar .search-field, .archive-toolbar .search-field { grid-column: span 2; }
.select-field { min-width: 0; }
.select-field > span, .login-form label > span { font-size: .8125rem; text-transform: none; letter-spacing: 0; }
.select-field input { display: block; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-soft); font: inherit; }
.search-field input, .select-field select, .select-field input { font-size: .875rem; }
.data-table { font-size: .875rem; }
.data-table th { font-size: .8125rem; text-transform: none; letter-spacing: 0; font-weight: 600; background: #0d1922; }
.data-table td { padding-top: 13px; padding-bottom: 13px; }
.data-table .num { font-variant-numeric: tabular-nums; }
.table-item { gap: 10px; }
.table-item strong { font-size: .875rem; font-weight: 600; }
.table-item small, .order-note { font-size: .75rem; }
.table-item img { width: 36px; height: 36px; object-fit: contain; }
.auction-grid.is-list { display: block; padding: 0; overflow: hidden; }
.auction-grid.is-list > .table-wrap { width: 100%; }
.auction-ledger { min-width: 930px; }
.auction-ledger .table-item { min-width: 180px; }
.auction-ledger .auction-player { min-width: 110px; }
.auction-grid:not(.is-list) { background: transparent; border: 0; box-shadow: none; }
.auction-card { background: var(--panel); }
.auction-player img { width: 24px; height: 24px; object-fit: cover; image-rendering: pixelated; border-radius: 3px; }
.item-actions { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.technical-details { margin-top: 12px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.technical-details summary { cursor: pointer; }
.snapshot-note { margin: 0 0 16px; padding-left: 10px; border-left: 2px solid var(--gold); color: var(--text-soft); font-size: .8125rem; }
.snapshot-note.is-current { border-color: var(--green); }
.trend-grid { display: block; }
.trend-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.trend-card:last-child { border-bottom: 0; }
.trend-card img { width: 34px; height: 34px; }
.trend-price { margin-left: auto; text-align: right; }
.home-intro { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-panel); }
.item-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 20px; }
.item-side { padding: 20px; }
.item-side h2 { margin-top: 0; font-size: 1rem; }
.item-side .button { display: flex; width: 100%; margin-top: 12px; }
.auction-price-kpis > div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.auction-price-kpis span, .auction-offers-head span { font-size: .8125rem; }
.auction-price-kpis strong { font-size: 1rem; }
.auction-chart-section .auction-history-chart { height: 300px; }
.chart-legend { flex-wrap: wrap; font-size: .8125rem; }
.legend-swatch.offer-bid { background: #79aeda; }
.legend-swatch.offer-instant { background: #d6b85f; }
.chart-data-note { font-size: .8125rem; color: var(--muted); }
.empty-state, .data-caption { font-size: .875rem; }
.verification-steps { display: flex; flex-direction: column; gap: 16px; }
.verification-steps li { grid-template-columns: 30px minmax(0, 1fr); padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.verification-help p { font-size: .875rem; }
.status-orb { width: 12px; height: 12px; box-shadow: none; animation: none; }
.pagination { flex-wrap: wrap; gap: 10px; }
.pagination > div { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 1100px) {
    .auction-toolbar, .archive-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .item-overview { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .auction-toolbar, .archive-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auction-toolbar .search-field, .archive-toolbar .search-field { grid-column: 1 / -1; }
    .kpi-grid .metric-card { padding: 14px; min-height: 90px; border-bottom: 1px solid var(--border); }
    .metric-card strong { font-size: 1.4rem; }
    .auction-chart-section .auction-history-chart { height: 245px; }
    .chart-controls { flex-direction: column; align-items: stretch; }
    .topbar .global-search { min-width: 0; }
    .account-pill { max-width: 125px; }
    .account-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.item-image-placeholder { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); background: var(--bg-soft); }
.form-link { width: fit-content; color: var(--gold-bright); font-size: .875rem; font-weight: 600; }
.form-link:hover { color: var(--text); }
.password-settings { max-width: 920px; margin-top: 20px; }
.password-settings .panel-head, .reset-card .panel-head { padding-bottom: 8px; }
.password-change-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.password-change-form .button { align-self: end; }
.reset-card { max-width: 760px; padding-bottom: 20px; }
.reset-card > .button { margin: 0 20px; }
.reset-verification { max-width: 1040px; }
.reset-verification .verification-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reset-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reset-actions form { margin: 0; }
@media (max-width: 900px) {
    .password-change-form { grid-template-columns: 1fr; }
    .reset-verification .verification-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 700px) {
    .verification-steps { grid-template-columns: 1fr; }
    .player-search-help { align-items: flex-start; flex-direction: column; }
    .home-intro { align-items: flex-start; flex-direction: column; }
    .section-links { width: 100%; }
    .section-links .button { flex: 1 1 150px; }
    .page-heading p:not(.eyebrow),
    .item-heading p:not(.eyebrow) { font-size: 13px; }
    .reset-verification .verification-steps { grid-template-columns: 1fr; }
}

.archive-sync-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 16px; color: var(--muted); font-size: .8125rem; }
.archive-sync-line.is-error { color: #f0aba6; }
.archive-sync-line .button { flex: 0 0 auto; }
.compact-filters { grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); }
.compact-filters > .search-field { grid-column: auto; }
.filter-details { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--border); }
.filter-details > summary { cursor: pointer; padding: 12px 0; color: var(--text-soft); font-size: .875rem; font-weight: 600; }
.filter-details[open] > summary { color: var(--cyan); }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; padding-bottom: 4px; }
.filter-fields input, .filter-fields select { max-width: 100%; min-width: 0; }
.archive-kpis { margin-bottom: 18px; }
.archive-kpis .metric-card { min-height: 82px; }

@media (max-width: 760px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
    .app-shell, .main-content, .panel, .table-wrap { min-width: 0; max-width: 100%; }
    .topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; height: 60px; gap: 6px; padding: 0 12px; background: #09141d; }
    .topbar .menu-button { width: 44px; height: 44px; border-color: transparent; }
    .topbar .global-search { width: 100%; min-width: 0; }
    .topbar .global-search input { height: 44px; padding-left: 30px; padding-right: 8px; border-radius: var(--radius-sm); font-size: 16px; }
    .topbar .global-search > span { left: 9px; }
    .topbar-actions { gap: 4px; }
    .topbar-actions .api-pill { display: none; }
    .topbar-actions > .button, .topbar-actions .account-pill { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: var(--radius-sm); border-color: transparent; background: transparent; }
    .topbar-actions > .button { font-size: 20px; }
    .topbar .search-results { position: fixed; top: 59px; left: 12px; right: 12px; width: auto; max-height: 55vh; overflow-y: auto; }
    .main-content { padding: 18px 12px 24px; }
    .page-heading, .item-heading { gap: 8px; margin-bottom: 16px; }
    .page-heading h1, .item-heading h1 { font-size: 26px; line-height: 1.2; }
    .page-heading p:not(.eyebrow), .item-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.45; margin-top: 6px; }
    .freshness { padding: 0; min-height: 22px; border: 0; background: transparent; font-size: 12px; }
    .archive-sync-line { margin: 0 0 12px; gap: 8px; align-items: flex-start; }
    .archive-sync-line > span { padding-top: 8px; line-height: 1.4; }
    .archive-sync-line .button { padding-inline: 8px; font-size: 12px; min-height: 36px; }
    .kpi-grid { gap: 0; }
    .kpi-grid .metric-card { min-height: 80px; padding: 12px; }
    .kpi-grid .metric-card:nth-child(even) { border-right: 0; }
    .kpi-grid .metric-card > span { font-size: 13px; line-height: 1.35; }
    .kpi-grid .metric-card strong { font-size: 22px; }
    .archive-kpis { margin-bottom: 16px; }
    .archive-kpis .metric-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 55px; padding: 10px 12px; }
    .archive-kpis .metric-card strong { font-size: 21px; margin: 0; }
    .archive-kpis .metric-card > span { max-width: 100px; }
    .panel-head { padding: 14px 12px 10px; gap: 10px; flex-wrap: wrap; }
    .panel-head h2 { font-size: 18px; }
    .panel-head p:not(.eyebrow) { font-size: 13px; margin: 5px 0 0; }
    .panel-head .eyebrow { margin-bottom: 3px; }
    .table-panel .toolbar { margin: 0 12px 12px; }
    .compact-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .compact-filters > .search-field { grid-column: 1 / -1; }
    .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .filter-details > summary { min-height: 44px; padding: 11px 0; }
    .filter-fields > .button { grid-column: 1 / -1; }
    input:not([type="checkbox"]):not([type="radio"]), select, textarea,
    .search-field input, .select-field select, .select-field input, .login-form input { font-size: 16px; min-height: 44px; }
    .button, .icon-button, .page-button, .view-toggle button { min-height: 44px; }
    .mobile-market-nav { position: fixed; inset: auto 0 0; z-index: 24; display: flex; align-items: center; overflow-x: auto; overscroll-behavior-x: contain; gap: 2px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-strong); background: #0b1620; scrollbar-width: none; }
    .mobile-market-nav::-webkit-scrollbar { display: none; }
    .mobile-market-nav a { display: flex; align-items: center; justify-content: center; flex: 1 0 auto; white-space: nowrap; min-height: 44px; padding: 0 12px; color: var(--text-soft); font-size: 14px; border-radius: var(--radius-sm); }
    .mobile-market-nav a[aria-current] { color: var(--cyan); background: #142a34; }
    .toast-stack { bottom: calc(62px + env(safe-area-inset-bottom)); }
    .toast { font-size: 14px; }
    .pagination { padding: 12px; }
    .pagination > div { max-width: 100%; gap: 4px; }
    .pagination .page-button { min-width: 38px; }
    .pagination .page-position { width: 100%; font-size: 13px; margin-top: 4px; }
    .data-table[data-mobile-ledger] { display: block; width: 100%; min-width: 0; }
    .data-table[data-mobile-ledger] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .data-table[data-mobile-ledger] tbody { display: block; }
    .data-table[data-mobile-ledger] tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 12px; border-bottom: 1px solid var(--border-strong); }
    .data-table[data-mobile-ledger] tbody tr:last-child { border-bottom: 0; }
    .data-table[data-mobile-ledger] tbody td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
    .data-table[data-mobile-ledger] tbody td::before { content: attr(data-label); font-size: 12px; line-height: 1.3; font-weight: 400; color: var(--muted); }
    .data-table[data-mobile-ledger] tbody td:first-child { grid-column: 1 / -1; }
    .data-table[data-mobile-ledger] tbody td:first-child::before,
    .data-table[data-mobile-ledger] tbody td[data-label=""]::before { display: none; }
    .data-table[data-mobile-ledger] .table-item { min-width: 0; max-width: 100%; align-items: center; }
    .data-table[data-mobile-ledger] .table-item > span { min-width: 0; }
    .data-table[data-mobile-ledger] .table-item strong { white-space: normal; font-size: 15px; line-height: 1.35; }
    .data-table[data-mobile-ledger] .table-item small { white-space: normal; font-size: 12px; }
    .data-table[data-mobile-ledger] .auction-player { min-width: 0; max-width: 100%; }
    .data-table[data-mobile-ledger] .is-empty-row { display: block; padding: 0; }
    .data-table[data-mobile-ledger] .is-empty-row td { display: block; }
    .data-table[data-mobile-ledger] .empty-state { width: 100%; padding: 24px 12px; }
    .archive-groups-panel { margin-top: 18px; }
    .account-action-card { min-height: 120px; }
    .account-action-card .button { margin-top: 10px; }
    .verification-panel { padding: 16px; }
    .auction-dialog { width: calc(100% - 16px); max-width: none; max-height: 88vh; max-height: 88dvh; margin: auto; border-radius: var(--radius); }
    .dialog-shell { padding: 18px 12px; }
    .dialog-close { width: 44px; height: 44px; top: 8px; right: 8px; }
    .auction-price-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Gemeinsame Oberflächen und dezente Bewegung */
.app-shell {
    background-image:
        linear-gradient(rgba(121, 174, 218, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 174, 218, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: 0 70px;
}
.panel,
.op-card,
.auction-card,
.watch-card,
.status-hero,
.metric-card,
.kpi-grid { background-clip: padding-box; }

.detail-fact,
.op-metric,
.status-fact,
.system-fact,
.auction-price,
.calculator-result,
.admin-result,
.truth-panel,
.warning-panel,
.watch-login-cta,
.empty-state.large { border-radius: var(--radius); }

.search-results,
.compare-suggestions,
.auction-dialog { border-radius: var(--radius); background: var(--panel); }

.global-search input,
.verification-name input,
.verification-code-row input,
.account-pill { border-radius: var(--radius-sm); }

.auction-card,
.op-card,
.watch-card,
.account-action-card,
.item-side,
.admin-command-card { padding: var(--space-panel); }

.panel-head { padding-inline: var(--space-panel); }
.panel-head > div,
.watch-card > div,
.account-profile > div { min-width: 0; }
.panel-head h2,
.account-action-card strong { overflow-wrap: anywhere; }
.auction-price-kpis > div,
.detail-fact,
.op-metric { min-width: 0; }
.auction-price-kpis strong,
.detail-fact strong,
.op-metric strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.panel > .table-wrap:last-child,
.panel > .trend-grid:last-child,
.panel > .pagination:last-child {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}
.trend-grid { padding: 0; }
.trend-card { padding-inline: var(--space-panel); }
.trend-card:last-child {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}
.status-hero.is-online,
.status-hero.is-degraded,
.status-hero.is-offline { background: var(--panel); }
.topbar, .footer { border-color: var(--border); }
.footer { background: var(--bg); }
.nav-link.is-active::before { display: none; }
.button-primary:hover:not(:disabled) { background: #6bdeea; }
.button:disabled:hover, .icon-button:disabled:hover { transform: none; }
.account-avatar { background: var(--bg-soft); }
.status-fact, .system-fact, .detail-fact, .op-metric { background: var(--bg-soft); }
.auction-price span, .detail-fact span, .op-metric span,
.status-fact span, .system-fact span, .calculator-result span {
    font-size: .8125rem; line-height: 1.4; text-transform: none; letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
    .auction-card:hover, .watch-card:hover, .op-card:hover {
        border-color: var(--border-strong); background: var(--panel);
    }
    .text-link:hover, .form-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
    .button, .icon-button, .row-action, .page-button,
    .account-pill, .auction-card, .op-card, .watch-card,
    .mobile-market-nav a {
        transition: background-color var(--motion-fast) ease,
            border-color var(--motion-fast) ease, color var(--motion-fast) ease,
            transform var(--motion-fast) var(--ease-out);
    }
    .button:active:not(:disabled), .icon-button:active:not(:disabled),
    .row-action:active:not(:disabled), .page-button:active:not(:disabled) {
        transform: translateY(1px);
    }
    .main-content > .page-heading,
    .main-content > .item-heading { animation: surface-enter var(--motion-enter) var(--ease-out); }
    .main-content > .panel,
    .main-content > .kpi-grid,
    .filter-details[open] > .filter-fields { animation: surface-fade var(--motion-enter) ease-out; }
    .auction-dialog[open] { animation: surface-enter var(--motion-enter) var(--ease-out); }
    .auction-dialog[open]::backdrop { animation: surface-fade var(--motion-enter) ease-out; }
}
@keyframes surface-enter {
    from { opacity: .4; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes surface-fade {
    from { opacity: .5; }
    to { opacity: 1; }
}
@media (min-width: 761px) and (max-width: 960px) {
    .kpi-grid:not(.profile-kpis) .metric-card { border-bottom: 1px solid var(--border); }
    .kpi-grid:not(.profile-kpis) .metric-card:nth-child(even) { border-right: 0; }
    .kpi-grid:not(.profile-kpis) .metric-card:last-child,
    .kpi-grid:not(.profile-kpis) .metric-card:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 760px) {
    :root { --space-panel: 14px; }
    .app-shell {
        background-size: 64px 64px;
        background-position: 0 60px;
    }
    .panel-head { padding-inline: var(--space-panel); }
    .topbar .global-search input,
    .topbar-actions > .button,
    .topbar-actions .account-pill,
    .mobile-market-nav a { border-radius: var(--radius-sm); }
    .verification-panel,
    .profile-market,
    .player-search-help,
    .account-profile { padding: var(--space-panel); }
    .kpi-grid .metric-card { border-bottom: 1px solid var(--border); }
    .kpi-grid .metric-card:last-child { border-bottom: 0; }
    .kpi-grid:not(.profile-kpis) .metric-card:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .profile-kpis { grid-template-columns: 1fr; }
    .profile-kpis .metric-card { border-right: 0; }
    .table-panel .toolbar { margin-inline: var(--space-panel); }
}
@media (prefers-reduced-motion: reduce) {
    .button:hover, .icon-button:hover,
    .auction-card:hover { transform: none; }
}

.database-panel { margin-bottom: 20px; scroll-margin-top: 84px; }
.database-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 var(--space-panel) 18px; }
.database-counts > div { min-width: 0; padding: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.database-counts dt { color: var(--muted); font-size: .8125rem; }
.database-counts dd { margin: 4px 0 0; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.database-settings { padding: 0 var(--space-panel) 18px; }
.database-settings > summary { cursor: pointer; min-height: 44px; padding-block: 9px; color: var(--cyan); font-weight: 600; }
.database-settings > p, .database-settings > ol { max-width: 850px; color: var(--text-soft); font-size: .875rem; }
.database-settings li + li { margin-top: 6px; }
.database-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr); gap: 16px; max-width: 800px; padding: 12px 0 0; }
.database-form label { min-width: 0; }
.database-form input { width: 100%; min-width: 0; border-radius: var(--radius-sm); }
.database-password, .database-actions, .database-progress { grid-column: 1 / -1; }
.database-form .form-hint { margin-top: 6px; }
.database-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.database-progress { margin: 0; color: var(--text-soft); font-size: .875rem; }
.database-progress:empty { display: none; }
.database-progress.is-error { color: #f0aba6; }
@media (max-width: 760px) {
    .database-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .database-form { grid-template-columns: minmax(0, 1fr); }
    .database-actions .button { width: 100%; white-space: normal; }
}
